aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-05-24 17:03:28 +0000
committerPedro Alves <palves@redhat.com>2012-05-24 17:03:28 +0000
commit22203bbfb7c46db2901fa8a10d604bfc38dabfc7 (patch)
treed20b1f8775341e054750ffb49eae4fdc1c93f0ca /gdb/gdbarch.h
parenta493e3e2e429e4832b8620bd920ad07d0c2892d7 (diff)
downloadgdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.zip
gdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.tar.gz
gdb-22203bbfb7c46db2901fa8a10d604bfc38dabfc7.tar.bz2
2012-05-24 Pedro Alves <palves@redhat.com>
PR gdb/7205 * arch-utils.c (default_gdb_signal_to_host): Rename to ... (default_gdb_signal_to_target): ... this. Add comment. (default_gdb_signal_from_host): Rename to ... (default_gdb_signal_from_target): ... this. Add comment. * arch-utils.h (default_gdb_signal_to_host): Rename to ... (default_gdb_signal_to_target): ... this. (default_gdb_signal_from_host): Rename to ... (default_gdb_signal_from_target): ... this. * corelow.c (core_open): Adjust to naming change. Replace comment. * gdbarch.sh (gdb_signal_from_host): Rename to ... (gdb_signal_from_target): ... this. Adjust to default_gdb_signal_from_host naming change. Extend comment. (gdb_signal_to_host): Rename to ... (gdb_signal_to_target): ... this. Adjust to default_gdb_signal_to_host naming change. * gdbarch.h, gdbarch.c: Renegerate.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 582bae6..5d73d72 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -939,12 +939,15 @@ typedef int (gdbarch_process_record_signal_ftype) (struct gdbarch *gdbarch, stru
extern int gdbarch_process_record_signal (struct gdbarch *gdbarch, struct regcache *regcache, enum gdb_signal signal);
extern void set_gdbarch_process_record_signal (struct gdbarch *gdbarch, gdbarch_process_record_signal_ftype *process_record_signal);
-/* Signal translation: translate inferior's signal (host's) number into
- GDB's representation. */
-
-typedef enum gdb_signal (gdbarch_gdb_signal_from_host_ftype) (struct gdbarch *gdbarch, int signo);
-extern enum gdb_signal gdbarch_gdb_signal_from_host (struct gdbarch *gdbarch, int signo);
-extern void set_gdbarch_gdb_signal_from_host (struct gdbarch *gdbarch, gdbarch_gdb_signal_from_host_ftype *gdb_signal_from_host);
+/* Signal translation: translate inferior's signal (target's) number
+ into GDB's representation. This is mainly used when cross-debugging
+ core files --- "Live" targets hide the translation behind the target
+ interface (target_wait, target_resume, etc.). The default is to do
+ the translation using host signal numbers. */
+
+typedef enum gdb_signal (gdbarch_gdb_signal_from_target_ftype) (struct gdbarch *gdbarch, int signo);
+extern enum gdb_signal gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, int signo);
+extern void set_gdbarch_gdb_signal_from_target (struct gdbarch *gdbarch, gdbarch_gdb_signal_from_target_ftype *gdb_signal_from_target);
/* Extra signal info inspection.