This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] remove dead code
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 13 May 2010 14:12:58 -0700
- Subject: [patch] remove dead code
These lines have been if0'ed since 1999 or before.
2010-05-13 Michael Snyder <msnyder@vmware.com>
* stack.c (initialize_stack): Remove long-dead code.
Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.214
diff -u -p -r1.214 stack.c
--- stack.c 6 May 2010 19:14:09 -0000 1.214
+++ stack.c 13 May 2010 21:10:53 -0000
@@ -2140,10 +2140,6 @@ void _initialize_stack (void);
void
_initialize_stack (void)
{
-#if 0
- backtrace_limit = 30;
-#endif
-
add_com ("return", class_stack, return_command, _("\
Make selected stack frame return to its caller.\n\
Control remains in the debugger, but when you continue\n\
@@ -2248,12 +2244,4 @@ source line."),
show_disassemble_next_line,
&setlist, &showlist);
disassemble_next_line = AUTO_BOOLEAN_FALSE;
-
-#if 0
- add_cmd ("backtrace-limit", class_stack, set_backtrace_limit_command, _(\
-"Specify maximum number of frames for \"backtrace\" to print by default."),
- &setlist);
- add_info ("backtrace-limit", backtrace_limit_info, _("\
-The maximum number of frames for \"backtrace\" to print by default."));
-#endif
}