symfile, vdso: remove target sections
authorMarkus Metzger <markus.t.metzger@intel.com>
Mon, 2 Jun 2014 09:35:22 +0000 (11:35 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 6 Jun 2014 07:40:02 +0000 (09:40 +0200)
commitc33b2f12584e8ae5be0e7a54927194d6b5851623
treedeb833c67b35e54cd9b0dac52132b84be1ea86d0
parent34fd659b79bed7333311a092e18f990e3bd31b2f
symfile, vdso: remove target sections

Target sections added by the add-symbol-file-from-memory command are not
removed when the process exits.  In fact, they are not removed, at all.

This causes GDB to crash in gdb.base/break-interp.exp.

Change the owner of those target sections to the object file generated in
symbol_file_add_from_memory and generalize the free_objfile observer in
symfile.c to remove target sections of any freed object file.
gdb/ChangeLog
gdb/symfile-mem.c
gdb/symfile.c
This page took 0.026507 seconds and 4 git commands to generate.