aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-12-31 01:34:10 +0000
committerPedro Alves <palves@redhat.com>2008-12-31 01:34:10 +0000
commit3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e (patch)
tree4eadb500393dfd9e5fbb66ca09d7bc29d355d294 /gdb/infrun.c
parentc5d46bc6b9f2de4cf88b9379385cdae1b8f4e4d1 (diff)
downloadgdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.zip
gdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.tar.gz
gdb-3a031f650c8eea9f5b38fce3dc0b0c4f41cd358e.tar.bz2
2008-12-31 Pedro Alves <pedro@codesourcery.com>
PR gdb/8812: * infrun.c (handle_command): Don't print a header or notify the target about signal changes if we didn't change any signal. 2008-12-31 Pedro Alves <pedro@codesourcery.com> PR gdb/8812: * gdb.base/signal.exp: Change kfail to fail, and update PR number.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index eb2528c..a85d769 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -4639,20 +4639,22 @@ Are you sure you want to change it? ", target_signal_to_name ((enum target_signa
argv++;
}
- target_notice_signals (inferior_ptid);
+ for (signum = 0; signum < nsigs; signum++)
+ if (sigs[signum])
+ {
+ target_notice_signals (inferior_ptid);
- if (from_tty)
- {
- /* Show the results. */
- sig_print_header ();
- for (signum = 0; signum < nsigs; signum++)
- {
- if (sigs[signum])
- {
- sig_print_info (signum);
- }
- }
- }
+ if (from_tty)
+ {
+ /* Show the results. */
+ sig_print_header ();
+ for (; signum < nsigs; signum++)
+ if (sigs[signum])
+ sig_print_info (signum);
+ }
+
+ break;
+ }
do_cleanups (old_chain);
}