aboutsummaryrefslogtreecommitdiff
path: root/gprof/alpha.c
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-13 06:56:58 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-25 14:09:02 -0500
commit5396ae1717ade2dbbdb73790eafcdd885045860b (patch)
tree7e65db82ae94b112929a615f4a3d772a99e7e47d /gprof/alpha.c
parent5c49f2cd78c69d50bc7c7119596a226f05939d06 (diff)
downloadgdb-5396ae1717ade2dbbdb73790eafcdd885045860b.zip
gdb-5396ae1717ade2dbbdb73790eafcdd885045860b.tar.gz
gdb-5396ae1717ade2dbbdb73790eafcdd885045860b.tar.bz2
Don't make an extra copy + allocation of the demangled name
We can just keep around the malloc()-ed name we got from bfd and free it later. gdb/ChangeLog: 2019-10-25 Christian Biesinger <cbiesinger@google.com> * symtab.c (struct demangled_name_entry): Change demangled name to a unique_xmalloc_ptr<char>, now that we don't allocate it as part of the struct anymore. (symbol_set_names): No longer obstack allocate + copy the demangled name, just store the allocated name from bfd. Change-Id: Ie6ad50e1e1e73509f55d756f0a437897bb93e3b0
Diffstat (limited to 'gprof/alpha.c')
0 files changed, 0 insertions, 0 deletions