aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2013-04-01 12:48:03 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2013-04-01 12:48:03 +0000
commite2df15478a4103e20ce9dd41384eb3c33b15876f (patch)
treea24887ed1d62fd61770fedf5e80f2575720fca53 /gdb
parentd81e75c0756f21d2c3d45ce86d8b45c65f01ef67 (diff)
downloadgdb-e2df15478a4103e20ce9dd41384eb3c33b15876f.zip
gdb-e2df15478a4103e20ce9dd41384eb3c33b15876f.tar.gz
gdb-e2df15478a4103e20ce9dd41384eb3c33b15876f.tar.bz2
Cleanup: remove unused - breakpoint, buildsym
* breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'. (print_it_watchpoint): Remove unused 'bl'. (say_where): Remove unused 'uiout'. (bpstat_remove_breakpoint_callback): Remove unused 'uiout'. (bkpt_breakpoint_hit): Remove unused 'b'. (internal_bkpt_print_it): Remove unused 'uiout'. * buildsym.c (augment_type_symtab): Remove unused 'i'. Reference: http://sourceware.org/ml/gdb-patches/2013-03/msg01080.html
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/breakpoint.c8
-rw-r--r--gdb/buildsym.c1
3 files changed, 10 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 431fbcc..00739df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
+
+ * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
+ (print_it_watchpoint): Remove unused 'bl'.
+ (say_where): Remove unused 'uiout'.
+ (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
+ (bkpt_breakpoint_hit): Remove unused 'b'.
+ (internal_bkpt_print_it): Remove unused 'uiout'.
+ * buildsym.c (augment_type_symtab): Remove unused 'i'.
+
2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
* ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index c844187..ff161a0 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -2047,7 +2047,6 @@ static struct agent_expr *
parse_cond_to_aexpr (CORE_ADDR scope, struct expression *cond)
{
struct agent_expr *aexpr = NULL;
- struct cleanup *old_chain = NULL;
volatile struct gdb_exception ex;
if (!cond)
@@ -2185,7 +2184,6 @@ parse_cmd_to_aexpr (CORE_ADDR scope, char *cmd)
struct cleanup *old_cleanups = 0;
struct expression *expr, **argvec;
struct agent_expr *aexpr = NULL;
- struct cleanup *old_chain = NULL;
volatile struct gdb_exception ex;
const char *cmdrest;
const char *format_start, *format_end;
@@ -10485,7 +10483,6 @@ print_it_watchpoint (bpstat bs)
{
struct cleanup *old_chain;
struct breakpoint *b;
- const struct bp_location *bl;
struct ui_file *stb;
enum print_stop_action result;
struct watchpoint *w;
@@ -10493,7 +10490,6 @@ print_it_watchpoint (bpstat bs)
gdb_assert (bs->bp_location_at != NULL);
- bl = bs->bp_location_at;
b = bs->breakpoint_at;
w = (struct watchpoint *) b;
@@ -12719,7 +12715,6 @@ bpstat_remove_breakpoint_callback (struct thread_info *th, void *data)
static void
say_where (struct breakpoint *b)
{
- struct ui_out *uiout = current_uiout;
struct value_print_options opts;
get_user_print_options (&opts);
@@ -12988,8 +12983,6 @@ bkpt_breakpoint_hit (const struct bp_location *bl,
struct address_space *aspace, CORE_ADDR bp_addr,
const struct target_waitstatus *ws)
{
- struct breakpoint *b = bl->owner;
-
if (ws->kind != TARGET_WAITKIND_STOPPED
|| ws->value.sig != GDB_SIGNAL_TRAP)
return 0;
@@ -13183,7 +13176,6 @@ internal_bkpt_check_status (bpstat bs)
static enum print_stop_action
internal_bkpt_print_it (bpstat bs)
{
- struct ui_out *uiout = current_uiout;
struct breakpoint *b;
b = bs->breakpoint_at;
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 4d861a5..823ad41 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -1367,7 +1367,6 @@ void
augment_type_symtab (struct objfile *objfile, struct symtab *primary_symtab)
{
struct blockvector *blockvector = primary_symtab->blockvector;
- int i;
if (context_stack_depth > 0)
{