Bug 13087 - code cleanup: obstack_merge required
Summary: code cleanup: obstack_merge required
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: HEAD
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-13 16:46 UTC by Jan Kratochvil
Modified: 2011-08-13 16:46 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2011-08-13 16:46:32 UTC
There will be soon in FSF GDB HEAD:
Re: [RFA] c++/12266 (again) [cp_canonicalize_no_typedefs-4.patch]
http://sourceware.org/ml/gdb-patches/2011-08/msg00212.html

cp_merge_demangle_parse_infos:
+   NOTE 2: The string from which SRC was parsed must not be freed, since
+   this function will place pointers to that string into DEST.  */

There should be merge of obstacks functions so that it can track the source string.

Obstack API needs an update to be 64bit anyway (it is a Fedora patch now) so this could come together when increasing the obstack API version.