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.
This commit is contained in:
parent
a493e3e2e4
commit
22203bbfb7
7 changed files with 58 additions and 30 deletions
|
@ -440,13 +440,11 @@ core_open (char *filename, int from_tty)
|
|||
siggy = bfd_core_file_failing_signal (core_bfd);
|
||||
if (siggy > 0)
|
||||
{
|
||||
/* NOTE: gdb_signal_from_host() converts a target signal
|
||||
value into gdb's internal signal value. Unfortunately gdb's
|
||||
internal value is called ``gdb_signal'' and this function
|
||||
got the name ..._from_host(). */
|
||||
/* If we don't have a CORE_GDBARCH to work with, assume a native
|
||||
core. */
|
||||
enum gdb_signal sig = (core_gdbarch != NULL
|
||||
? gdbarch_gdb_signal_from_host (core_gdbarch,
|
||||
siggy)
|
||||
? gdbarch_gdb_signal_from_target (core_gdbarch,
|
||||
siggy)
|
||||
: gdb_signal_from_host (siggy));
|
||||
|
||||
printf_filtered (_("Program terminated with signal %d, %s.\n"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue