summaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2012-03-01 21:11:17 +0000
committerPedro Alves <pedro@codesourcery.com>2012-03-01 21:11:17 +0000
commiteae9ac185a655ee630af1a8f7a76e41125aec402 (patch)
tree9d284db052334d3f9bb97272ea82a533978b26d7 /gdb/inferior.h
parentdf19014971c3df33ff240b1ad1390fa50d81217e (diff)
downloadgdb-eae9ac185a655ee630af1a8f7a76e41125aec402.tar.gz
2012-03-01 Pedro Alves <palves@redhat.com>
* common/signals.c (default_target_signal_to_host) (default_target_signal_from_host): Move ... * arch-utils.c: ... here. * arch-utils.h (default_target_signal_to_host) (default_target_signal_from_host): Declare. * common/signals.c (target_signal_from_command): Move ... * infrun.c: ... here. * inferior.h (target_signal_from_command): Declare. * target.h (target_signal_from_command) (default_target_signal_from_host, default_target_signal_to_host): Delete declarations. * common/signals.c (_initialize_signals): Delete.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 65abf264b3c..9b2817fa188 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -645,4 +645,14 @@ extern struct inferior *add_inferior_with_spaces (void);
extern void update_observer_mode (void);
+/* In some circumstances we allow a command to specify a numeric
+ signal. The idea is to keep these circumstances limited so that
+ users (and scripts) develop portable habits. For comparison,
+ POSIX.2 `kill' requires that 1,2,3,6,9,14, and 15 work (and using a
+ numeric signal at all is obsolescent. We are slightly more lenient
+ and allow 1-15 which should match host signal numbers on most
+ systems. Use of symbolic signal names is strongly encouraged. */
+
+enum target_signal target_signal_from_command (int num);
+
#endif /* !defined (INFERIOR_H) */