From c1e56572463d2126e46eda8ce8d4bce221667f98 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 17 Oct 2010 17:45:17 +0000 Subject: gdb/ * infrun.c (follow_exec): Replace symbol_file_add_main by symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and breakpoint_re_set. * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for clear_symtab_users. * objfiles.c (free_all_objfiles): Likewise. * remote-m32r-sdi.c (m32r_load): Likewise. * solib-som.c (som_solib_create_inferior_hook): Likewise. * symfile.c (new_symfile_objfile): New comment for add_flags. Call clear_symtab_users with ADD_FLAGS. (reread_symbols): Use parameter 0 for clear_symtab_users. (clear_symtab_users): New parameter add_flags. Do not call breakpoint_re_set if SYMFILE_DEFER_BP_RESET. (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users. * symtab.h (clear_symtab_users): New parameter add_flags. gdb/testsuite/ * gdb.base/pie-execl.exp: New file. * gdb.base/pie-execl.c: New file. --- gdb/symtab.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index 04cb443..be1a746 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1186,7 +1186,7 @@ extern void skip_prologue_sal (struct symtab_and_line *); /* symfile.c */ -extern void clear_symtab_users (void); +extern void clear_symtab_users (int add_flags); extern enum language deduce_language_from_filename (const char *); -- cgit v1.1