aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffexec.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-10-08 11:54:29 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-10-08 11:54:29 +0000
commit76212295984365ba3f767cf7c99d1d535360fb99 (patch)
treeadbbde523d4e3016a6ce2b59d15eeb2997daac6e /gdb/xcoffexec.c
parent15a90f75cbf0e00e49b7900d5e317a57b46de265 (diff)
downloadgdb-76212295984365ba3f767cf7c99d1d535360fb99.zip
gdb-76212295984365ba3f767cf7c99d1d535360fb99.tar.gz
gdb-76212295984365ba3f767cf7c99d1d535360fb99.tar.bz2
Speed up GDB startup time by not demangling partial symbols.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST), symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list): No longer demangle partial symbols. * symtab.c (lookup_symbol, list_symbols): Handle mangled variables, e.g. C++ static members, via the minimal symbols. Handle reordered functions in an objfile, for Irix 5.2 shared libraries. * objfiles.h (OBJF_REORDERED): New bit in the objfile flags, set if the functions in an objfile are reordered. * mdebugread.c (parse_partial_symbols): Detect reordered functions in an objfile. * symtab.c (find_pc_psymtab, find_pc_symtab): Use expensive lookup algorithm if the functions in the objfile are reordered. * xcoffexec.c (exec_close): If the current target has a copy of the exec_ops sections, reflect the freeing of the sections in current_target. * valops.c (call_function_by_hand): Use `sizeof dummy1', not `sizeof dummy', for constructing the call dummy code. * config/sparc/tm-sparc.h: Add PARAMS declarations to all function declarations. * sparc-tdep.c (sparc_pop_frame): Cast result of read_memory_integer to CORE_ADDR when passing it to PC_ADJUST. * irix5-nat.c (enable_break): Set breakpoint at the entry point of the executable, to handle the case where main resides in a shared library. * irix5-nat.c (solib_create_inferior_hook): Reset stop_soon_quietly after shared library symbol reading, to get rid of a warning from heuristic_proc_start if the startup code has no symbolic debug info. * breakpoint.h (struct breakpoint): Add new fields language and input_radix, to enable breakpoint resetting with the proper language and radix. * breakpoint.c (set_raw_breakpoint): Initialize them. (breakpoint_re_set_one): Use them when resetting the breakpoint. (breakpoint_re_set): Preserve current language and input_radix across breakpoint_re_set_one calls. * symtab.c (decode_line_1): Do not build a canonical line specification for `*expr' line specifications. * breakpoint.h (bpstat_stop_status): Fix prototype declaration.
Diffstat (limited to 'gdb/xcoffexec.c')
-rw-r--r--gdb/xcoffexec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/xcoffexec.c b/gdb/xcoffexec.c
index 775ccf8..35c8902 100644
--- a/gdb/xcoffexec.c
+++ b/gdb/xcoffexec.c
@@ -111,6 +111,16 @@ exec_close (quitting)
if (exec_ops.to_sections)
{
+ /* Reflect to_sections freeing in current_target if it is
+ the exec target. Otherwise target_xfer_memory (eventually
+ called from clear_symtab_users) might access the freed
+ exec_ops.to_sections via the copy in current_target. */
+ if (current_target.to_sections == exec_ops.to_sections)
+ {
+ current_target.to_sections = NULL;
+ current_target.to_sections_end = NULL;
+ }
+
free (exec_ops.to_sections);
exec_ops.to_sections = NULL;
exec_ops.to_sections_end = NULL;