From 168997566e2a9a7050bd9f236c4b6d9a2223864c Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 13 Mar 2012 21:02:40 +0000 Subject: [PATCH] * NEWS: Mention symbol-reloading has been deleted. * symfile.c (symbol_reloading): Delete. (show_symbol_reloading): Delete. (_initialize_symfile): Delete set/show symbol-reloading. doc/ * gdb.texinfo (Help): Change apropos example to use "alias" instead of "reload". (Symbols): Delete docs for set/show symbol-reloading. * gdbint.texinfo (Defining Other Architecture Features): Delete SYMBOL_RELOADING_DEFAULT. * refcard.tex: Delete reference to symbol-reloading. testsuite/ * gdb.base/default.exp: Delete tests for symbol-reloading. * gdb.base/help.exp: Ditto. * gdb.base/setshow.exp: Ditto. * gdb.base/gdb_history: Delete references to symbol-reloading. --- gdb/ChangeLog | 5 ++++ gdb/NEWS | 2 ++ gdb/doc/ChangeLog | 9 +++++++ gdb/doc/gdb.texinfo | 38 +++++------------------------- gdb/doc/gdbint.texinfo | 5 ---- gdb/doc/refcard.tex | 2 +- gdb/symfile.c | 25 -------------------- gdb/testsuite/ChangeLog | 7 ++++++ gdb/testsuite/gdb.base/default.exp | 4 ---- gdb/testsuite/gdb.base/gdb_history | 2 -- gdb/testsuite/gdb.base/help.exp | 4 ---- gdb/testsuite/gdb.base/setshow.exp | 4 ---- 12 files changed, 30 insertions(+), 77 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0db4a16ce7c..c946296e67c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-03-13 Doug Evans + * NEWS: Mention symbol-reloading has been deleted. + * symfile.c (symbol_reloading): Delete. + (show_symbol_reloading): Delete. + (_initialize_symfile): Delete set/show symbol-reloading. + * dwarf2read.c (load_partial_comp_unit): Defer adding cu to read_in_chain until we have successfully read it in. (load_full_comp_unit): Ditto. diff --git a/gdb/NEWS b/gdb/NEWS index 9c893464ab3..7d70404e88c 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,8 @@ *** Changes since GDB 7.4 +* The option "symbol-reloading" has been deleted as it is no longer used. + * Python scripting ** GDB commands implemented in Python can now be put in command class diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 20f2816f1d6..80dd326c441 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,12 @@ +2012-03-13 Doug Evans + + * gdb.texinfo (Help): Change apropos example to use "alias" instead + of "reload". + (Symbols): Delete docs for set/show symbol-reloading. + * gdbint.texinfo (Defining Other Architecture Features): Delete + SYMBOL_RELOADING_DEFAULT. + * refcard.tex: Delete reference to symbol-reloading. + 2012-03-07 Pedro Alves * gdb.texinfo (General Query Packets): Document new diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index e8bbdedf34a..a5022d4d327 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1700,7 +1700,7 @@ commands, and their documentation, for the regular expression specified in @var{args}. It prints out all matches found. For example: @smallexample -apropos reload +apropos alias @end smallexample @noindent @@ -1708,10 +1708,11 @@ results in: @smallexample @c @group -set symbol-reloading -- Set dynamic symbol table reloading - multiple times in one run -show symbol-reloading -- Show dynamic symbol table reloading - multiple times in one run +alias -- Define a new command that is an alias of an existing command +aliases -- Aliases of other commands +d -- Delete some breakpoints or auto-display expressions +del -- Delete some breakpoints or auto-display expressions +delete -- Delete some breakpoints or auto-display expressions @c @end group @end smallexample @@ -14721,33 +14722,6 @@ from the @code{ptype} command can be overwhelming and hard to use. The which match the regular-expression @var{regexp}. @end ignore -@cindex reloading symbols -Some systems allow individual object files that make up your program to -be replaced without stopping and restarting your program. For example, -in VxWorks you can simply recompile a defective object file and keep on -running. If you are running on one of these systems, you can allow -@value{GDBN} to reload the symbols for automatically relinked modules: - -@table @code -@kindex set symbol-reloading -@item set symbol-reloading on -Replace symbol definitions for the corresponding source file when an -object file with a particular name is seen again. - -@item set symbol-reloading off -Do not replace symbol definitions when encountering object files of the -same name more than once. This is the default state; if you are not -running on a system that permits automatic relinking of modules, you -should leave @code{symbol-reloading} off, since otherwise @value{GDBN} -may discard symbols when linking large programs, that may contain -several modules (from different directories or libraries) with the same -name. - -@kindex show symbol-reloading -@item show symbol-reloading -Show the current @code{on} or @code{off} setting. -@end table - @cindex opaque data types @kindex set opaque-type-resolution @item set opaque-type-resolution on diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index 026dc599f9c..fcc106ce613 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -4916,11 +4916,6 @@ number of that register. Use this function to convert stab register @var{stab_regnr} into @value{GDBN} regnum. If not defined, no conversion will be done. -@item SYMBOL_RELOADING_DEFAULT -@findex SYMBOL_RELOADING_DEFAULT -The default value of the ``symbol-reloading'' variable. (Never defined in -current sources.) - @item TARGET_CHAR_BIT @findex TARGET_CHAR_BIT Number of bits in a char; defaults to 8. diff --git a/gdb/doc/refcard.tex b/gdb/doc/refcard.tex index c6656e5d2eb..bee7c3d4643 100644 --- a/gdb/doc/refcard.tex +++ b/gdb/doc/refcard.tex @@ -68,7 +68,7 @@ % all variations of a command. % The GDB-under-Emacs section omits gdb-mode functions without default % keybindings. GDB startup options are not described. -% set print sevenbit-strings, set symbol-reloading omitted. +% set print sevenbit-strings omitted. % printsyms, printpsyms, omitted since they're for GDB maintenance primarily % share omitted due to obsolescence % set check range/type omitted at least til code is in GDB. diff --git a/gdb/symfile.c b/gdb/symfile.c index ad46748451a..816b574adfa 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -147,23 +147,6 @@ DEF_VEC_P (sym_fns_ptr); static VEC (sym_fns_ptr) *symtab_fns = NULL; -/* Flag for whether user will be reloading symbols multiple times. - Defaults to ON for VxWorks, otherwise OFF. */ - -#ifdef SYMBOL_RELOADING_DEFAULT -int symbol_reloading = SYMBOL_RELOADING_DEFAULT; -#else -int symbol_reloading = 0; -#endif -static void -show_symbol_reloading (struct ui_file *file, int from_tty, - struct cmd_list_element *c, const char *value) -{ - fprintf_filtered (file, _("Dynamic symbol table reloading " - "multiple times in one run is %s.\n"), - value); -} - /* If non-zero, shared library symbols will be added automatically when the inferior is created, new libraries are loaded, or when attaching to the inferior. This is almost always what users will @@ -3833,14 +3816,6 @@ for access from GDB.\n\ A load OFFSET may also be given."), &cmdlist); set_cmd_completer (c, filename_completer); - add_setshow_boolean_cmd ("symbol-reloading", class_support, - &symbol_reloading, _("\ -Set dynamic symbol table reloading multiple times in one run."), _("\ -Show dynamic symbol table reloading multiple times in one run."), NULL, - NULL, - show_symbol_reloading, - &setlist, &showlist); - add_prefix_cmd ("overlay", class_support, overlay_command, _("Commands for debugging overlays."), &overlaylist, "overlay ", 0, &cmdlist); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d30037bafd9..bb112f5ee0e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2012-03-13 Doug Evans + + * gdb.base/default.exp: Delete tests for symbol-reloading. + * gdb.base/help.exp: Ditto. + * gdb.base/setshow.exp: Ditto. + * gdb.base/gdb_history: Delete references to symbol-reloading. + 2012-03-06 Jan Kratochvil * gdb.base/attach-twice.c: New files. diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 89426c26403..c656a203a89 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -560,8 +560,6 @@ gdb_test_no_output "set print vtbl" "set print vtbl" # FIXME -- need a test for "set prompt" #test set radix gdb_test "set radix" "Input and output radices now set to decimal 10, hex a, octal 12.*" "set radix" -#test set symbol-reloading -gdb_test_no_output "set symbol-reloading" "set symbol-reloading" #test set variable gdb_test "set variable" "Argument required .expression to compute.*" "set variable" #test set verbose @@ -663,8 +661,6 @@ gdb_test "show print vtbl" "Printing of C\[+\]+ virtual function tables is on." gdb_test "show prompt" "Gdb's prompt is \"$gdb_prompt \".*" "show prompt" #test show radix gdb_test "show radix" "Input and output radices set to decimal 10, hex a, octal 12." "show radix" -#test show symbol-reloading -gdb_test "show symbol-reloading" "Dynamic symbol table reloading multiple times in one run is on." "show symbol-reloading" #test show user gdb_test_no_output "show user" "show user" #test show values diff --git a/gdb/testsuite/gdb.base/gdb_history b/gdb/testsuite/gdb.base/gdb_history index 231ba3372cf..aa1f21fd402 100644 --- a/gdb/testsuite/gdb.base/gdb_history +++ b/gdb/testsuite/gdb.base/gdb_history @@ -176,7 +176,6 @@ set print sevenbit-strings set print union set print vtbl set radix -set symbol-reloading set variable set verbose set width @@ -220,7 +219,6 @@ show print union show print vtbl show prompt show radix -show symbol-reloading show user show values show verbose diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp index a7ed8bd1c38..b5d350e44c8 100644 --- a/gdb/testsuite/gdb.base/help.exp +++ b/gdb/testsuite/gdb.base/help.exp @@ -458,8 +458,6 @@ gdb_test "help set print vtbl" "Set printing of C\[+\]+ virtual function tables\ gdb_test "help set prompt" "Set gdb's prompt" "help set prompt" # test help set radix gdb_test "help set radix" "Set default input and output number radices\.\[\r\n\]+Use \'set input-radix\' or \'set output-radix\' to independently set each\.\[\r\n\]+Without an argument, sets both radices back to the default value of 10\." "help set radix" -# test help set symbol-reloading -gdb_test "help set symbol-reloading" "Set dynamic symbol table reloading multiple times in one run\." "help set symbol-reloading" # test help set variable gdb_test "help set variable" "Evaluate expression EXP and assign result to variable VAR, using assignment\[\r\n\]+syntax appropriate for the current language \\(VAR = EXP or VAR := EXP for\[\r\n\]+example\\)\. VAR may be a debugger \"convenience\" variable \\(names starting\[\r\n\]+with \\\$\\), a register \\(a few standard names starting with \\\$\\), or an actual\[\r\n\]+variable in the program being debugged\. EXP is any valid expression\.\[\r\n\]+This may usually be abbreviated to simply \"set\"\." "help set variable" # test help set verbose @@ -571,8 +569,6 @@ gdb_test "help show print vtbl" "Show printing of C\[+\]+ virtual function table gdb_test "help show prompt" "Show gdb's prompt" "help show prompt" # test help show radix gdb_test "help show radix" "Show the default input and output number radices\.\[\r\n\]+Use \'show input-radix\' or \'show output-radix\' to independently show each\." "help show radix" -# test help show symbol-reloading -gdb_test "help show symbol-reloading" "Show dynamic symbol table reloading multiple times in one run\." "help show symbol-reloading" # test help show user gdb_test "help show user" "Show definitions of non-python user defined commands\.\[\r\n\]+Argument is the name of the user defined command\.\[\r\n\]+With no argument, show definitions of all user defined commands\." "help show user" # test help show values diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp index a24fbba25fb..b2183143120 100644 --- a/gdb/testsuite/gdb.base/setshow.exp +++ b/gdb/testsuite/gdb.base/setshow.exp @@ -242,10 +242,6 @@ gdb_test_no_output "set write on" "set write on" #test show write on # This is only supported on targets which use exec.o. gdb_test "show write" "Writing into executable and core files is on..*" "show write (on)" -#test set symbol-reloading on -gdb_test_no_output "set symbol-reloading on" "set symbol-reloading on" -#test show symbol-reloading on -gdb_test "show symbol-reloading" "Dynamic symbol table reloading multiple times in one run is on..*" "show symbol-reloading (on)" #test show user gdb_test_no_output "show user" "show user" #test set verbose on -- 2.30.2