From 74c1b0ba6b1f4e6b84e862e573864549cde87f45 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 11 Sep 1998 21:03:29 +0000 Subject: [PATCH] Fri Sep 11 14:02:49 1998 Michael Snyder * tracepoint.c: clean up several unused variables and such. --- gdb/ChangeLog | 5 ++++- gdb/tracepoint.c | 13 ++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a1f3aa5b5..f3783841e0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,6 @@ +Fri Sep 11 14:02:49 1998 Michael Snyder + + * tracepoint.c: clean up several unused variables and such. Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com) @@ -6,7 +9,7 @@ Fri Sep 11 12:38:34 EDT 1998 Zdenek Radouch (radouch@cygnus.com) Thu Sep 10 20:51:23 1998 Michael Snyder * mn10300-tdep.c (mn10300_analyze_prologue): guard against NULL. - + Wed Sep 9 19:37:36 1998 Stan Shebs * dbxread.c (IGNORE_SYMBOL): Remove definition, is never used. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 107ff4d46f..2a9e7dbf38 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -497,7 +497,7 @@ tracepoints_info (tpnum_exp, from_tty) t->enabled == enabled ? "y" : "n"); if (addressprint) printf_filtered ("%s ", - local_hex_string_custom ((unsigned long) t->address, + local_hex_string_custom ((unsigned long) t->address, "08l")); printf_filtered ("%-5d %-5d ", t->pass_count, t->step_count); @@ -1831,7 +1831,7 @@ finish_tfind_command (msg, from_tty) while (reply && *reply) switch (*reply) { case 'F': - if ((target_frameno = strtol (++reply, &reply, 16)) == -1) + if ((target_frameno = (int) strtol (++reply, &reply, 16)) == -1) { /* A request for a non-existant trace frame has failed. Our response will be different, depending on FROM_TTY: @@ -1868,7 +1868,7 @@ finish_tfind_command (msg, from_tty) } break; case 'T': - if ((target_tracept = strtol (++reply, &reply, 16)) == -1) + if ((target_tracept = (int) strtol (++reply, &reply, 16)) == -1) error ("Target failed to find requested trace frame."); break; case 'O': /* "OK"? */ @@ -1940,7 +1940,6 @@ trace_find_command (args, from_tty) { /* STUB_COMM PART_IMPLEMENTED */ /* this should only be called with a numeric argument */ int frameno = -1; - int target_frameno = -1, target_tracept = -1, target_stepfrm = 0; char *tmp; if (target_is_remote ()) @@ -2008,7 +2007,6 @@ trace_find_pc_command (args, from_tty) int from_tty; { /* STUB_COMM PART_IMPLEMENTED */ CORE_ADDR pc; - int target_frameno; char *tmp; if (target_is_remote ()) @@ -2031,7 +2029,7 @@ trace_find_tracepoint_command (args, from_tty) char *args; int from_tty; { /* STUB_COMM PART_IMPLEMENTED */ - int target_frameno, tdp; + int tdp; char buf[40], *tmp; if (target_is_remote ()) @@ -2067,7 +2065,6 @@ trace_find_line_command (args, from_tty) static CORE_ADDR start_pc, end_pc; struct symtabs_and_lines sals; struct symtab_and_line sal; - int target_frameno; char *tmp; struct cleanup *old_chain; @@ -2154,7 +2151,6 @@ trace_find_range_command (args, from_tty) int from_tty; { /* STUB_COMM PART_IMPLEMENTED */ static CORE_ADDR start, stop; - int target_frameno; char *tmp; if (target_is_remote ()) @@ -2193,7 +2189,6 @@ trace_find_outside_command (args, from_tty) int from_tty; { /* STUB_COMM PART_IMPLEMENTED */ CORE_ADDR start, stop; - int target_frameno; char *tmp; if (target_is_remote ())