diff options
author | Yao Qi <yao@codesourcery.com> | 2014-10-08 19:25:59 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-10-09 09:48:42 +0800 |
commit | fcbdedf866d777b3598cf8703737eb0f987c2aca (patch) | |
tree | fcc9cdcd2cb247574c78d9d2c75a345f3fd7fe09 | |
parent | 3abb874c138ec12f9ed65e87d7f62d86e90479f4 (diff) | |
download | gdb-fcbdedf866d777b3598cf8703737eb0f987c2aca.zip gdb-fcbdedf866d777b3598cf8703737eb0f987c2aca.tar.gz gdb-fcbdedf866d777b3598cf8703737eb0f987c2aca.tar.bz2 |
Remove unused local variable
As a result of commit b57bacec, local variable 'printed' is no longer
used. This patch is to remove it.
gdb:
2014-10-09 Yao Qi <yao@codesourcery.com>
* infrun.c (handle_signal_stop): Remove local variable 'printed'.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3796a99..ee82f1f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-10-09 Yao Qi <yao@codesourcery.com> + + * infrun.c (handle_signal_stop): Remove local variable + 'printed'. + 2014-10-08 Stan Shebs <stan@codesourcery.com> * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi. diff --git a/gdb/infrun.c b/gdb/infrun.c index 7b43785..4681175 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -4425,7 +4425,6 @@ handle_signal_stop (struct execution_control_state *ecs) if (random_signal) { /* Signal not for debugging purposes. */ - int printed = 0; struct inferior *inf = find_inferior_pid (ptid_get_pid (ecs->ptid)); enum gdb_signal stop_signal = ecs->event_thread->suspend.stop_signal; |