summaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2010-05-06 19:14:08 +0000
committerMichael Snyder <msnyder@specifix.com>2010-05-06 19:14:08 +0000
commit2a57de41aa57946e997b20f907b766f0bdfdb0a7 (patch)
treee1a230d3908e97d4c2af64690e3766bbc889829d /gdb/stack.c
parent096667dd0d10dfe49d82a08ea40b11eb06f5b4af (diff)
downloadgdb-2a57de41aa57946e997b20f907b766f0bdfdb0a7.tar.gz
2010-05-06 Michael Snyder <msnyder@vmware.com>
* linespec.c (decode_compound): Delete unused variable. * dictionary.c (iterator_next_hashed): Delete unused variable. * infcall.c (call_function_by_hand): Delete unused variable. * infcmd.c (step_1): Delete unused variable. (registers_info): Delete unused variable. (attach_command): Delete unused variable. * infrun.c (follow_exec): Delete unused variable. (handle_step_into_function_backwards): Delete unused variable. (_initialize_infrun): Delete unused variable. * stack.c (parse_frame_specification_1): Delete unused variable. (frame_info): Delete unused variable. (backtrace_command_1): Delete unused variable. (catch_info): Delete unused variable.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 53d4aebb858..06322454009 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -865,9 +865,6 @@ parse_frame_specification_1 (const char *frame_exp, const char *message,
numargs = 0;
else
{
- char *addr_string;
- struct cleanup *tmp_cleanup;
-
numargs = 0;
while (1)
{
@@ -994,7 +991,7 @@ frame_info (char *addr_exp, int from_tty)
struct symbol *func;
struct symtab *s;
struct frame_info *calling_frame_info;
- int i, count, numregs;
+ int numregs;
char *funname = 0;
enum language funlang = language_unknown;
const char *pc_regname;
@@ -1314,8 +1311,6 @@ backtrace_command_1 (char *count_exp, int show_locals, int from_tty)
if (info_verbose)
{
- struct partial_symtab *ps;
-
/* Read in symbols for all of the frames. Need to do this in a
separate pass so that "Reading in symbols for xxx" messages
don't screw up the appearance of the backtrace. Also if
@@ -1693,8 +1688,6 @@ locals_info (char *args, int from_tty)
static void
catch_info (char *ignore, int from_tty)
{
- struct symtab_and_line *sal;
-
/* Assume g++ compiled code; old GDB 4.16 behaviour. */
print_frame_label_vars (get_selected_frame (_("No frame selected.")),
0, gdb_stdout);