aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
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/arch-utils.c
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/arch-utils.c')
-rw-r--r--gdb/arch-utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 803ce1c..98cf4b8 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -794,8 +794,11 @@ default_gen_return_address (struct gdbarch *gdbarch,
}
enum gdb_signal
-default_gdb_signal_from_host (struct gdbarch *gdbarch, int signo)
+default_gdb_signal_from_target (struct gdbarch *gdbarch, int signo)
{
+ /* Lacking a better mapping, assume host signal numbers. If
+ debugging a cross-core, most likely this translation will be
+ incorrect. */
return gdb_signal_from_host (signo);
}