2001-07-20 02:09:11 +08:00
|
|
|
|
/* Target signal translation functions for GDB.
|
2020-01-01 14:20:01 +08:00
|
|
|
|
Copyright (C) 1990-2020 Free Software Foundation, Inc.
|
2001-07-20 02:09:11 +08:00
|
|
|
|
Contributed by Cygnus Support.
|
|
|
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-08-24 02:08:50 +08:00
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2001-07-20 02:09:11 +08:00
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-08-24 02:08:50 +08:00
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
2014-09-12 17:11:42 +08:00
|
|
|
|
#include "common-defs.h"
|
2002-03-27 13:12:35 +08:00
|
|
|
|
|
gdb/
* arm-wince-tdep.c: New.
* config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
(MT_CFLAGS): Delete.
(TM_CLIBS): Delete.
(TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
solib-legacy.o, solib-svr4.o, and remove wince.o.
* configure.tgt (arm*-*-mingw32ce*): Add.
* signals/signals.c [HAVE_SIGNAL_H]: Check.
(do_target_signal_to_host): Silence 'not used' warning.
* config/arm/tm-wince.h: Remove.
gdb/gdbserver/
* gdbserver/configure.ac: Add errno checking.
(AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
sys/file.h and malloc.h.
(AC_CHECK_DECLS): Add perror.
(srv_mingwce): Handle.
* gdbserver/configure.srv (i[34567]86-*-cygwin*): Add
win32-i386-low.o to srv_tgtobj.
(i[34567]86-*-mingw*): Likewise.
(arm*-*-mingw32ce*): Add case.
* gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
[__MINGW32CE__] (strerror): New function.
[__MINGW32CE__] (errno): Define to GetLastError.
[__MINGW32CE__] (COUNTOF): New macro.
(remote_open): Remove extra close call.
* mem-break.c (delete_breakpoint_at): New function.
* mem-break.h (delete_breakpoint_at): Declare.
* remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
[USE_WIN32API] (read, write): Add char* casts.
* server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
* server.h: Include wincecompat.h on Windows CE.
[HAVE_ERRNO_H]: Check.
(perror): Declare if not declared.
* utils.c: Add stdlib.h, errno.h and malloc.h includes.
(perror_with_name): Remove errno declaration.
* wincecompat.h: New.
* wincecompat.c: New.
* win32-low.h: New.
* win32-arm-low.c: New.
* win32-i386-low.c: New.
(win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
(OUTMSG2): Make it safe.
(_T): New macro.
(COUNTOF): New macro.
(NUM_REGS): Get it from the low target.
(CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
(thread_rec): Let low target handle debug registers.
(child_add_thread): Likewise.
(child_init_thread_list): Likewise.
(continue_one_thread): Likewise.
(regptr): New.
(do_child_fetch_inferior_registers): Move to ...
* win32-i386-low.c: ... here, and rename to ...
(do_fetch_inferior_registers): ... this.
* win32-low.c (child_fetch_inferior_registers):
Go through the low target.
(do_child_store_inferior_registers): Use regptr.
(strwinerror): New function.
(win32_create_inferior): Handle Windows CE.
Use strwinerror instead of strerror on Windows error
codes. Add program to the error output.
Don't close the main thread handle on Windows CE.
(win32_attach): Use coredll.dll on Windows CE.
(win32_kill): Close current process and current
thread handles.
(win32_detach): Use coredll.dll on Windows CE.
(win32_resume): Let low target handle debug registers, and
step request.
(handle_exception): Add/Remove initial breakpoint. Avoid
non-existant WSTOPSIG on Windows CE.
(win32_read_inferior_memory): Cast to remove warning.
(win32_arch_string): Go through the low target.
(initialize_low): Call set_breakpoint_data with the low
target's breakpoint.
* win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
FOP_REGNUM, mappings): Move to ...
* win32-i386-low.c: ... here.
* win32-low.c (win32_thread_info): Move to ...
* win32-low.h: ... here.
* Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
win32-arm-low.c and wincecompat.c.
(all:): Add $EXEEXT.
(install-only:): Likewise.
(gdbserver:): Likewise.
(gdbreplay:): Likewise.
* config.in: Regenerate.
* configure: Regenerate.
2007-03-29 09:06:48 +08:00
|
|
|
|
#ifdef HAVE_SIGNAL_H
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#include <signal.h>
|
gdb/
* arm-wince-tdep.c: New.
* config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
(MT_CFLAGS): Delete.
(TM_CLIBS): Delete.
(TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
solib-legacy.o, solib-svr4.o, and remove wince.o.
* configure.tgt (arm*-*-mingw32ce*): Add.
* signals/signals.c [HAVE_SIGNAL_H]: Check.
(do_target_signal_to_host): Silence 'not used' warning.
* config/arm/tm-wince.h: Remove.
gdb/gdbserver/
* gdbserver/configure.ac: Add errno checking.
(AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
sys/file.h and malloc.h.
(AC_CHECK_DECLS): Add perror.
(srv_mingwce): Handle.
* gdbserver/configure.srv (i[34567]86-*-cygwin*): Add
win32-i386-low.o to srv_tgtobj.
(i[34567]86-*-mingw*): Likewise.
(arm*-*-mingw32ce*): Add case.
* gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
[__MINGW32CE__] (strerror): New function.
[__MINGW32CE__] (errno): Define to GetLastError.
[__MINGW32CE__] (COUNTOF): New macro.
(remote_open): Remove extra close call.
* mem-break.c (delete_breakpoint_at): New function.
* mem-break.h (delete_breakpoint_at): Declare.
* remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
[USE_WIN32API] (read, write): Add char* casts.
* server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
* server.h: Include wincecompat.h on Windows CE.
[HAVE_ERRNO_H]: Check.
(perror): Declare if not declared.
* utils.c: Add stdlib.h, errno.h and malloc.h includes.
(perror_with_name): Remove errno declaration.
* wincecompat.h: New.
* wincecompat.c: New.
* win32-low.h: New.
* win32-arm-low.c: New.
* win32-i386-low.c: New.
(win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
(OUTMSG2): Make it safe.
(_T): New macro.
(COUNTOF): New macro.
(NUM_REGS): Get it from the low target.
(CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
(thread_rec): Let low target handle debug registers.
(child_add_thread): Likewise.
(child_init_thread_list): Likewise.
(continue_one_thread): Likewise.
(regptr): New.
(do_child_fetch_inferior_registers): Move to ...
* win32-i386-low.c: ... here, and rename to ...
(do_fetch_inferior_registers): ... this.
* win32-low.c (child_fetch_inferior_registers):
Go through the low target.
(do_child_store_inferior_registers): Use regptr.
(strwinerror): New function.
(win32_create_inferior): Handle Windows CE.
Use strwinerror instead of strerror on Windows error
codes. Add program to the error output.
Don't close the main thread handle on Windows CE.
(win32_attach): Use coredll.dll on Windows CE.
(win32_kill): Close current process and current
thread handles.
(win32_detach): Use coredll.dll on Windows CE.
(win32_resume): Let low target handle debug registers, and
step request.
(handle_exception): Add/Remove initial breakpoint. Avoid
non-existant WSTOPSIG on Windows CE.
(win32_read_inferior_memory): Cast to remove warning.
(win32_arch_string): Go through the low target.
(initialize_low): Call set_breakpoint_data with the low
target's breakpoint.
* win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
FOP_REGNUM, mappings): Move to ...
* win32-i386-low.c: ... here.
* win32-low.c (win32_thread_info): Move to ...
* win32-low.h: ... here.
* Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
win32-arm-low.c and wincecompat.c.
(all:): Add $EXEEXT.
(install-only:): Likewise.
(gdbserver:): Likewise.
(gdbreplay:): Likewise.
* config.in: Regenerate.
* configure: Regenerate.
2007-03-29 09:06:48 +08:00
|
|
|
|
#endif
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
2009-03-02 08:45:13 +08:00
|
|
|
|
#include "gdb_signals.h"
|
|
|
|
|
|
2008-05-02 03:31:52 +08:00
|
|
|
|
struct gdbarch;
|
|
|
|
|
|
2003-03-27 00:29:39 +08:00
|
|
|
|
/* Always use __SIGRTMIN if it's available. SIGRTMIN is the lowest
|
|
|
|
|
_available_ realtime signal, not the lowest supported; glibc takes
|
|
|
|
|
several for its own use. */
|
|
|
|
|
|
|
|
|
|
#ifndef REALTIME_LO
|
|
|
|
|
# if defined(__SIGRTMIN)
|
|
|
|
|
# define REALTIME_LO __SIGRTMIN
|
2006-11-29 03:45:07 +08:00
|
|
|
|
# define REALTIME_HI (__SIGRTMAX + 1)
|
2003-03-27 00:29:39 +08:00
|
|
|
|
# elif defined(SIGRTMIN)
|
2003-03-27 01:21:16 +08:00
|
|
|
|
# define REALTIME_LO SIGRTMIN
|
2006-11-29 03:45:07 +08:00
|
|
|
|
# define REALTIME_HI (SIGRTMAX + 1)
|
2003-03-27 00:29:39 +08:00
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2011-01-06 08:57:05 +08:00
|
|
|
|
/* This table must match in order and size the signals in enum
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal. */
|
2010-07-31 12:17:44 +08:00
|
|
|
|
|
2009-01-16 06:07:20 +08:00
|
|
|
|
static const struct {
|
infrun debug output: print enum gdb_signal symbol names instead of POSIX signal names.
The other day while debugging something related to random signals, I
got confused with "set debug infrun 1" output, for it said:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
On GNU/Linux, 20 is SIGTSTP. For some reason, it took me a few
minutes to realize that 20 is actually a GDB signal number, not a
target signal number (duh!). In any case, I propose making GDB's
output clearer here:
One way would be to use gdb_signal_to_name, like already used
elsewhere:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal SIGCHLD (20)
but I think that might confuse someone too ("20? Why does GDB believe
SIGCHLD is 20?"). So I thought of printing the enum string instead:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal GDB_SIGNAL_CHLD (20)
Looking at a more complete infrun debug log, we had actually printed
the (POSIX) signal name name a bit before:
infrun: target_wait (-1, status) =
infrun: 9300 [Thread 0x7ffff7fcb740 (LWP 9300)],
infrun: status->kind = stopped, signal = SIGCHLD
...
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
So I'm now thinking that it'd be even better to make infrun output
consistently use the enum symbol string, like so:
infrun: clear_proceed_status_thread (Thread 0x7ffff7fca700 (LWP 25663))
infrun: clear_proceed_status_thread (Thread 0x7ffff7fcb740 (LWP 25659))
- infrun: proceed (addr=0xffffffffffffffff, signal=144, step=1)
+ infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
- infrun: resume (step=1, signal=0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: wait_for_inferior ()
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGCHLD
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_CHLD
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400700
- infrun: random signal 20
+ infrun: random signal (GDB_SIGNAL_CHLD)
infrun: random signal, keep going
- infrun: resume (step=1, signal=20), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_CHLD), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGTRAP
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400704
infrun: stepi/nexti
infrun: stop_stepping
GDB's signal numbers are public and hardcoded (see
include/gdb/signals.h), so there's really no need to clutter the
output with numeric values in some places while others not. Replacing
the magic "144" with GDB_SIGNAL_DEFAULT in "proceed"'s debug output
(see above) I think is quite nice.
I posit that all this makes it clearer to newcomers that GDB has its
own signal numbering (and that there must be some mapping going on).
Tested on x86_64 Fedora 17.
gdb/
2013-10-23 Pedro Alves <palves@redhat.com>
* common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
* common/signals.c: Include "gdb_assert.h".
(signals): New field 'symbol'.
(SET): Use the 'symbol' parameter.
(gdb_signal_to_symbol_string): New function.
* infrun.c (handle_inferior_event) <random signal>: In debug
output, print the random signal enum as string in addition to its
number.
* target/waitstatus.c (target_waitstatus_to_string): Print the
signal's enum value as string instead of the (POSIX) signal name.
2013-10-23 23:14:53 +08:00
|
|
|
|
const char *symbol;
|
2009-01-16 06:07:20 +08:00
|
|
|
|
const char *name;
|
|
|
|
|
const char *string;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
} signals [] =
|
|
|
|
|
{
|
infrun debug output: print enum gdb_signal symbol names instead of POSIX signal names.
The other day while debugging something related to random signals, I
got confused with "set debug infrun 1" output, for it said:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
On GNU/Linux, 20 is SIGTSTP. For some reason, it took me a few
minutes to realize that 20 is actually a GDB signal number, not a
target signal number (duh!). In any case, I propose making GDB's
output clearer here:
One way would be to use gdb_signal_to_name, like already used
elsewhere:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal SIGCHLD (20)
but I think that might confuse someone too ("20? Why does GDB believe
SIGCHLD is 20?"). So I thought of printing the enum string instead:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal GDB_SIGNAL_CHLD (20)
Looking at a more complete infrun debug log, we had actually printed
the (POSIX) signal name name a bit before:
infrun: target_wait (-1, status) =
infrun: 9300 [Thread 0x7ffff7fcb740 (LWP 9300)],
infrun: status->kind = stopped, signal = SIGCHLD
...
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
So I'm now thinking that it'd be even better to make infrun output
consistently use the enum symbol string, like so:
infrun: clear_proceed_status_thread (Thread 0x7ffff7fca700 (LWP 25663))
infrun: clear_proceed_status_thread (Thread 0x7ffff7fcb740 (LWP 25659))
- infrun: proceed (addr=0xffffffffffffffff, signal=144, step=1)
+ infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
- infrun: resume (step=1, signal=0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: wait_for_inferior ()
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGCHLD
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_CHLD
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400700
- infrun: random signal 20
+ infrun: random signal (GDB_SIGNAL_CHLD)
infrun: random signal, keep going
- infrun: resume (step=1, signal=20), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_CHLD), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGTRAP
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400704
infrun: stepi/nexti
infrun: stop_stepping
GDB's signal numbers are public and hardcoded (see
include/gdb/signals.h), so there's really no need to clutter the
output with numeric values in some places while others not. Replacing
the magic "144" with GDB_SIGNAL_DEFAULT in "proceed"'s debug output
(see above) I think is quite nice.
I posit that all this makes it clearer to newcomers that GDB has its
own signal numbering (and that there must be some mapping going on).
Tested on x86_64 Fedora 17.
gdb/
2013-10-23 Pedro Alves <palves@redhat.com>
* common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
* common/signals.c: Include "gdb_assert.h".
(signals): New field 'symbol'.
(SET): Use the 'symbol' parameter.
(gdb_signal_to_symbol_string): New function.
* infrun.c (handle_inferior_event) <random signal>: In debug
output, print the random signal enum as string in addition to its
number.
* target/waitstatus.c (target_waitstatus_to_string): Print the
signal's enum value as string instead of the (POSIX) signal name.
2013-10-23 23:14:53 +08:00
|
|
|
|
#define SET(symbol, constant, name, string) { #symbol, name, string },
|
2010-07-31 12:17:44 +08:00
|
|
|
|
#include "gdb/signals.def"
|
|
|
|
|
#undef SET
|
2001-07-20 02:09:11 +08:00
|
|
|
|
};
|
|
|
|
|
|
infrun debug output: print enum gdb_signal symbol names instead of POSIX signal names.
The other day while debugging something related to random signals, I
got confused with "set debug infrun 1" output, for it said:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
On GNU/Linux, 20 is SIGTSTP. For some reason, it took me a few
minutes to realize that 20 is actually a GDB signal number, not a
target signal number (duh!). In any case, I propose making GDB's
output clearer here:
One way would be to use gdb_signal_to_name, like already used
elsewhere:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal SIGCHLD (20)
but I think that might confuse someone too ("20? Why does GDB believe
SIGCHLD is 20?"). So I thought of printing the enum string instead:
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal GDB_SIGNAL_CHLD (20)
Looking at a more complete infrun debug log, we had actually printed
the (POSIX) signal name name a bit before:
infrun: target_wait (-1, status) =
infrun: 9300 [Thread 0x7ffff7fcb740 (LWP 9300)],
infrun: status->kind = stopped, signal = SIGCHLD
...
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x323d4e8b94
infrun: random signal 20
So I'm now thinking that it'd be even better to make infrun output
consistently use the enum symbol string, like so:
infrun: clear_proceed_status_thread (Thread 0x7ffff7fca700 (LWP 25663))
infrun: clear_proceed_status_thread (Thread 0x7ffff7fcb740 (LWP 25659))
- infrun: proceed (addr=0xffffffffffffffff, signal=144, step=1)
+ infrun: proceed (addr=0xffffffffffffffff, signal=GDB_SIGNAL_DEFAULT, step=1)
- infrun: resume (step=1, signal=0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: wait_for_inferior ()
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGCHLD
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_CHLD
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400700
- infrun: random signal 20
+ infrun: random signal (GDB_SIGNAL_CHLD)
infrun: random signal, keep going
- infrun: resume (step=1, signal=20), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
+ infrun: resume (step=1, signal=GDB_SIGNAL_CHLD), trap_expected=0, current thread [Thread 0x7ffff7fcb740 (LWP 25659)] at 0x400700
infrun: prepare_to_wait
infrun: target_wait (-1, status) =
infrun: 25659 [Thread 0x7ffff7fcb740 (LWP 25659)],
- infrun: status->kind = stopped, signal = SIGTRAP
+ infrun: status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: infwait_normal_state
infrun: TARGET_WAITKIND_STOPPED
infrun: stop_pc = 0x400704
infrun: stepi/nexti
infrun: stop_stepping
GDB's signal numbers are public and hardcoded (see
include/gdb/signals.h), so there's really no need to clutter the
output with numeric values in some places while others not. Replacing
the magic "144" with GDB_SIGNAL_DEFAULT in "proceed"'s debug output
(see above) I think is quite nice.
I posit that all this makes it clearer to newcomers that GDB has its
own signal numbering (and that there must be some mapping going on).
Tested on x86_64 Fedora 17.
gdb/
2013-10-23 Pedro Alves <palves@redhat.com>
* common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
* common/signals.c: Include "gdb_assert.h".
(signals): New field 'symbol'.
(SET): Use the 'symbol' parameter.
(gdb_signal_to_symbol_string): New function.
* infrun.c (handle_inferior_event) <random signal>: In debug
output, print the random signal enum as string in addition to its
number.
* target/waitstatus.c (target_waitstatus_to_string): Print the
signal's enum value as string instead of the (POSIX) signal name.
2013-10-23 23:14:53 +08:00
|
|
|
|
const char *
|
|
|
|
|
gdb_signal_to_symbol_string (enum gdb_signal sig)
|
|
|
|
|
{
|
|
|
|
|
gdb_assert ((int) sig >= GDB_SIGNAL_FIRST && (int) sig <= GDB_SIGNAL_LAST);
|
|
|
|
|
|
|
|
|
|
return signals[sig].symbol;
|
|
|
|
|
}
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
|
|
|
|
/* Return the string for a signal. */
|
2009-01-16 06:07:20 +08:00
|
|
|
|
const char *
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal_to_string (enum gdb_signal sig)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
2012-05-25 00:51:47 +08:00
|
|
|
|
if ((int) sig >= GDB_SIGNAL_FIRST && (int) sig <= GDB_SIGNAL_LAST)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return signals[sig].string;
|
|
|
|
|
else
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return signals[GDB_SIGNAL_UNKNOWN].string;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Return the name for a signal. */
|
2009-01-16 06:07:20 +08:00
|
|
|
|
const char *
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal_to_name (enum gdb_signal sig)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
2012-05-25 00:51:47 +08:00
|
|
|
|
if ((int) sig >= GDB_SIGNAL_FIRST && (int) sig <= GDB_SIGNAL_LAST
|
2002-01-14 05:58:16 +08:00
|
|
|
|
&& signals[sig].name != NULL)
|
2002-01-14 05:11:38 +08:00
|
|
|
|
return signals[sig].name;
|
|
|
|
|
else
|
2002-01-14 05:58:16 +08:00
|
|
|
|
/* I think the code which prints this will always print it along
|
|
|
|
|
with the string, so no need to be verbose (very old comment). */
|
|
|
|
|
return "?";
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Given a name, return its signal. */
|
2012-05-25 00:39:15 +08:00
|
|
|
|
enum gdb_signal
|
|
|
|
|
gdb_signal_from_name (const char *name)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
2012-05-25 00:39:15 +08:00
|
|
|
|
enum gdb_signal sig;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
|
|
|
|
/* It's possible we also should allow "SIGCLD" as well as "SIGCHLD"
|
2012-05-25 00:51:47 +08:00
|
|
|
|
for GDB_SIGNAL_SIGCHLD. SIGIOT, on the other hand, is more
|
2001-07-20 02:09:11 +08:00
|
|
|
|
questionable; seems like by now people should call it SIGABRT
|
|
|
|
|
instead. */
|
|
|
|
|
|
|
|
|
|
/* This ugly cast brought to you by the native VAX compiler. */
|
2012-05-25 00:51:47 +08:00
|
|
|
|
for (sig = GDB_SIGNAL_HUP;
|
|
|
|
|
sig < GDB_SIGNAL_LAST;
|
2012-05-25 00:39:15 +08:00
|
|
|
|
sig = (enum gdb_signal) ((int) sig + 1))
|
2002-05-10 06:20:29 +08:00
|
|
|
|
if (signals[sig].name != NULL
|
|
|
|
|
&& strcmp (name, signals[sig].name) == 0)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return sig;
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_UNKNOWN;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* The following functions are to help certain targets deal
|
|
|
|
|
with the signal/waitstatus stuff. They could just as well be in
|
|
|
|
|
a file called native-utils.c or unixwaitstatus-utils.c or whatever. */
|
|
|
|
|
|
|
|
|
|
/* Convert host signal to our signals. */
|
2012-05-25 00:39:15 +08:00
|
|
|
|
enum gdb_signal
|
|
|
|
|
gdb_signal_from_host (int hostsig)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
2014-06-09 17:34:33 +08:00
|
|
|
|
/* A switch statement would make sense but would require special
|
|
|
|
|
kludges to deal with the cases where more than one signal has the
|
|
|
|
|
same number. Signals are ordered ANSI-standard signals first,
|
|
|
|
|
other signals second, with signals in each block ordered by their
|
|
|
|
|
numerical values on a typical POSIX platform. */
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
|
|
|
|
if (hostsig == 0)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_0;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
2014-06-09 17:34:33 +08:00
|
|
|
|
/* SIGINT, SIGILL, SIGABRT, SIGFPE, SIGSEGV and SIGTERM
|
|
|
|
|
are ANSI-standard signals and are always available. */
|
|
|
|
|
if (hostsig == SIGINT)
|
|
|
|
|
return GDB_SIGNAL_INT;
|
|
|
|
|
if (hostsig == SIGILL)
|
|
|
|
|
return GDB_SIGNAL_ILL;
|
|
|
|
|
if (hostsig == SIGABRT)
|
|
|
|
|
return GDB_SIGNAL_ABRT;
|
|
|
|
|
if (hostsig == SIGFPE)
|
|
|
|
|
return GDB_SIGNAL_FPE;
|
|
|
|
|
if (hostsig == SIGSEGV)
|
|
|
|
|
return GDB_SIGNAL_SEGV;
|
|
|
|
|
if (hostsig == SIGTERM)
|
|
|
|
|
return GDB_SIGNAL_TERM;
|
|
|
|
|
|
|
|
|
|
/* All other signals need preprocessor conditionals. */
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#if defined (SIGHUP)
|
|
|
|
|
if (hostsig == SIGHUP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_HUP;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGQUIT)
|
|
|
|
|
if (hostsig == SIGQUIT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_QUIT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTRAP)
|
|
|
|
|
if (hostsig == SIGTRAP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_TRAP;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGEMT)
|
|
|
|
|
if (hostsig == SIGEMT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_EMT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGKILL)
|
|
|
|
|
if (hostsig == SIGKILL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_KILL;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGBUS)
|
|
|
|
|
if (hostsig == SIGBUS)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_BUS;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSYS)
|
|
|
|
|
if (hostsig == SIGSYS)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_SYS;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPIPE)
|
|
|
|
|
if (hostsig == SIGPIPE)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_PIPE;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGALRM)
|
|
|
|
|
if (hostsig == SIGALRM)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_ALRM;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGUSR1)
|
|
|
|
|
if (hostsig == SIGUSR1)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_USR1;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGUSR2)
|
|
|
|
|
if (hostsig == SIGUSR2)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_USR2;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCLD)
|
|
|
|
|
if (hostsig == SIGCLD)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_CHLD;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCHLD)
|
|
|
|
|
if (hostsig == SIGCHLD)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_CHLD;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPWR)
|
|
|
|
|
if (hostsig == SIGPWR)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_PWR;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWINCH)
|
|
|
|
|
if (hostsig == SIGWINCH)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_WINCH;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGURG)
|
|
|
|
|
if (hostsig == SIGURG)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_URG;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGIO)
|
|
|
|
|
if (hostsig == SIGIO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_IO;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPOLL)
|
|
|
|
|
if (hostsig == SIGPOLL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_POLL;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSTOP)
|
|
|
|
|
if (hostsig == SIGSTOP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_STOP;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTSTP)
|
|
|
|
|
if (hostsig == SIGTSTP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_TSTP;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCONT)
|
|
|
|
|
if (hostsig == SIGCONT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_CONT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTTIN)
|
|
|
|
|
if (hostsig == SIGTTIN)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_TTIN;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTTOU)
|
|
|
|
|
if (hostsig == SIGTTOU)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_TTOU;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGVTALRM)
|
|
|
|
|
if (hostsig == SIGVTALRM)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_VTALRM;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPROF)
|
|
|
|
|
if (hostsig == SIGPROF)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_PROF;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGXCPU)
|
|
|
|
|
if (hostsig == SIGXCPU)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_XCPU;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGXFSZ)
|
|
|
|
|
if (hostsig == SIGXFSZ)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_XFSZ;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWIND)
|
|
|
|
|
if (hostsig == SIGWIND)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_WIND;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPHONE)
|
|
|
|
|
if (hostsig == SIGPHONE)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_PHONE;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGLOST)
|
|
|
|
|
if (hostsig == SIGLOST)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_LOST;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWAITING)
|
|
|
|
|
if (hostsig == SIGWAITING)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_WAITING;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCANCEL)
|
|
|
|
|
if (hostsig == SIGCANCEL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_CANCEL;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGLWP)
|
|
|
|
|
if (hostsig == SIGLWP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_LWP;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGDANGER)
|
|
|
|
|
if (hostsig == SIGDANGER)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_DANGER;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGGRANT)
|
|
|
|
|
if (hostsig == SIGGRANT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_GRANT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGRETRACT)
|
|
|
|
|
if (hostsig == SIGRETRACT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_RETRACT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGMSG)
|
|
|
|
|
if (hostsig == SIGMSG)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_MSG;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSOUND)
|
|
|
|
|
if (hostsig == SIGSOUND)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_SOUND;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSAK)
|
|
|
|
|
if (hostsig == SIGSAK)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_SAK;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPRIO)
|
|
|
|
|
if (hostsig == SIGPRIO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_PRIO;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Mach exceptions. Assumes that the values for EXC_ are positive! */
|
|
|
|
|
#if defined (EXC_BAD_ACCESS) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_BAD_ACCESS)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_BAD_ACCESS;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_BAD_INSTRUCTION) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_BAD_INSTRUCTION)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_BAD_INSTRUCTION;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_ARITHMETIC) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_ARITHMETIC)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_ARITHMETIC;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_EMULATION) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_EMULATION)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_EMULATION;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_SOFTWARE) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_SOFTWARE)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_SOFTWARE;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_BREAKPOINT) && defined (_NSIG)
|
|
|
|
|
if (hostsig == _NSIG + EXC_BREAKPOINT)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
return GDB_EXC_BREAKPOINT;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined (SIGINFO)
|
|
|
|
|
if (hostsig == SIGINFO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_INFO;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
2016-07-04 02:56:21 +08:00
|
|
|
|
#if defined (SIGLIBRT)
|
|
|
|
|
if (hostsig == SIGLIBRT)
|
|
|
|
|
return GDB_SIGNAL_LIBRT;
|
|
|
|
|
#endif
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
|
|
|
|
#if defined (REALTIME_LO)
|
|
|
|
|
if (hostsig >= REALTIME_LO && hostsig < REALTIME_HI)
|
|
|
|
|
{
|
2012-05-25 00:51:47 +08:00
|
|
|
|
/* This block of GDB_SIGNAL_REALTIME value is in order. */
|
2001-07-20 02:09:11 +08:00
|
|
|
|
if (33 <= hostsig && hostsig <= 63)
|
2012-05-25 00:39:15 +08:00
|
|
|
|
return (enum gdb_signal)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
(hostsig - 33 + (int) GDB_SIGNAL_REALTIME_33);
|
2001-07-20 02:09:11 +08:00
|
|
|
|
else if (hostsig == 32)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_REALTIME_32;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
else if (64 <= hostsig && hostsig <= 127)
|
2012-05-25 00:39:15 +08:00
|
|
|
|
return (enum gdb_signal)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
(hostsig - 64 + (int) GDB_SIGNAL_REALTIME_64);
|
2001-07-20 02:09:11 +08:00
|
|
|
|
else
|
2012-05-25 00:39:15 +08:00
|
|
|
|
error (_("GDB bug: target.c (gdb_signal_from_host): "
|
2011-03-18 21:03:31 +08:00
|
|
|
|
"unrecognized real-time signal"));
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2012-05-25 00:51:47 +08:00
|
|
|
|
return GDB_SIGNAL_UNKNOWN;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
2012-05-25 00:39:15 +08:00
|
|
|
|
/* Convert a OURSIG (an enum gdb_signal) to the form used by the
|
2001-07-20 02:09:11 +08:00
|
|
|
|
target operating system (refered to as the ``host'') or zero if the
|
|
|
|
|
equivalent host signal is not available. Set/clear OURSIG_OK
|
|
|
|
|
accordingly. */
|
|
|
|
|
|
|
|
|
|
static int
|
2012-05-25 00:39:15 +08:00
|
|
|
|
do_gdb_signal_to_host (enum gdb_signal oursig,
|
2001-07-20 02:09:11 +08:00
|
|
|
|
int *oursig_ok)
|
|
|
|
|
{
|
2003-03-27 04:44:39 +08:00
|
|
|
|
int retsig;
|
gdb/
* arm-wince-tdep.c: New.
* config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
(MT_CFLAGS): Delete.
(TM_CLIBS): Delete.
(TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
solib-legacy.o, solib-svr4.o, and remove wince.o.
* configure.tgt (arm*-*-mingw32ce*): Add.
* signals/signals.c [HAVE_SIGNAL_H]: Check.
(do_target_signal_to_host): Silence 'not used' warning.
* config/arm/tm-wince.h: Remove.
gdb/gdbserver/
* gdbserver/configure.ac: Add errno checking.
(AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
sys/file.h and malloc.h.
(AC_CHECK_DECLS): Add perror.
(srv_mingwce): Handle.
* gdbserver/configure.srv (i[34567]86-*-cygwin*): Add
win32-i386-low.o to srv_tgtobj.
(i[34567]86-*-mingw*): Likewise.
(arm*-*-mingw32ce*): Add case.
* gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
[__MINGW32CE__] (strerror): New function.
[__MINGW32CE__] (errno): Define to GetLastError.
[__MINGW32CE__] (COUNTOF): New macro.
(remote_open): Remove extra close call.
* mem-break.c (delete_breakpoint_at): New function.
* mem-break.h (delete_breakpoint_at): Declare.
* remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
[USE_WIN32API] (read, write): Add char* casts.
* server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
* server.h: Include wincecompat.h on Windows CE.
[HAVE_ERRNO_H]: Check.
(perror): Declare if not declared.
* utils.c: Add stdlib.h, errno.h and malloc.h includes.
(perror_with_name): Remove errno declaration.
* wincecompat.h: New.
* wincecompat.c: New.
* win32-low.h: New.
* win32-arm-low.c: New.
* win32-i386-low.c: New.
(win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
(OUTMSG2): Make it safe.
(_T): New macro.
(COUNTOF): New macro.
(NUM_REGS): Get it from the low target.
(CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
(thread_rec): Let low target handle debug registers.
(child_add_thread): Likewise.
(child_init_thread_list): Likewise.
(continue_one_thread): Likewise.
(regptr): New.
(do_child_fetch_inferior_registers): Move to ...
* win32-i386-low.c: ... here, and rename to ...
(do_fetch_inferior_registers): ... this.
* win32-low.c (child_fetch_inferior_registers):
Go through the low target.
(do_child_store_inferior_registers): Use regptr.
(strwinerror): New function.
(win32_create_inferior): Handle Windows CE.
Use strwinerror instead of strerror on Windows error
codes. Add program to the error output.
Don't close the main thread handle on Windows CE.
(win32_attach): Use coredll.dll on Windows CE.
(win32_kill): Close current process and current
thread handles.
(win32_detach): Use coredll.dll on Windows CE.
(win32_resume): Let low target handle debug registers, and
step request.
(handle_exception): Add/Remove initial breakpoint. Avoid
non-existant WSTOPSIG on Windows CE.
(win32_read_inferior_memory): Cast to remove warning.
(win32_arch_string): Go through the low target.
(initialize_low): Call set_breakpoint_data with the low
target's breakpoint.
* win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
FOP_REGNUM, mappings): Move to ...
* win32-i386-low.c: ... here.
* win32-low.c (win32_thread_info): Move to ...
* win32-low.h: ... here.
* Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
win32-arm-low.c and wincecompat.c.
(all:): Add $EXEEXT.
(install-only:): Likewise.
(gdbserver:): Likewise.
(gdbreplay:): Likewise.
* config.in: Regenerate.
* configure: Regenerate.
2007-03-29 09:06:48 +08:00
|
|
|
|
/* Silence the 'not used' warning, for targets that
|
|
|
|
|
do not support signals. */
|
|
|
|
|
(void) retsig;
|
2003-03-27 04:44:39 +08:00
|
|
|
|
|
2014-06-09 17:34:33 +08:00
|
|
|
|
/* Signals are ordered ANSI-standard signals first, other signals
|
|
|
|
|
second, with signals in each block ordered by their numerical
|
|
|
|
|
values on a typical POSIX platform. */
|
|
|
|
|
|
2001-07-20 02:09:11 +08:00
|
|
|
|
*oursig_ok = 1;
|
|
|
|
|
switch (oursig)
|
|
|
|
|
{
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_0:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return 0;
|
|
|
|
|
|
2014-06-09 17:34:33 +08:00
|
|
|
|
/* SIGINT, SIGILL, SIGABRT, SIGFPE, SIGSEGV and SIGTERM
|
|
|
|
|
are ANSI-standard signals and are always available. */
|
|
|
|
|
case GDB_SIGNAL_INT:
|
|
|
|
|
return SIGINT;
|
|
|
|
|
case GDB_SIGNAL_ILL:
|
|
|
|
|
return SIGILL;
|
|
|
|
|
case GDB_SIGNAL_ABRT:
|
|
|
|
|
return SIGABRT;
|
|
|
|
|
case GDB_SIGNAL_FPE:
|
|
|
|
|
return SIGFPE;
|
|
|
|
|
case GDB_SIGNAL_SEGV:
|
|
|
|
|
return SIGSEGV;
|
|
|
|
|
case GDB_SIGNAL_TERM:
|
|
|
|
|
return SIGTERM;
|
|
|
|
|
|
|
|
|
|
/* All other signals need preprocessor conditionals. */
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#if defined (SIGHUP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_HUP:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGHUP;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGQUIT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_QUIT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGQUIT;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTRAP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_TRAP:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGTRAP;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGEMT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_EMT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGEMT;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGKILL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_KILL:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGKILL;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGBUS)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_BUS:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGBUS;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSYS)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_SYS:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGSYS;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPIPE)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_PIPE:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPIPE;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGALRM)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_ALRM:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGALRM;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGUSR1)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_USR1:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGUSR1;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGUSR2)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_USR2:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGUSR2;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCHLD) || defined (SIGCLD)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_CHLD:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#if defined (SIGCHLD)
|
|
|
|
|
return SIGCHLD;
|
|
|
|
|
#else
|
|
|
|
|
return SIGCLD;
|
|
|
|
|
#endif
|
|
|
|
|
#endif /* SIGCLD or SIGCHLD */
|
|
|
|
|
#if defined (SIGPWR)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_PWR:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPWR;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWINCH)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_WINCH:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGWINCH;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGURG)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_URG:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGURG;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGIO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_IO:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGIO;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPOLL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_POLL:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPOLL;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSTOP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_STOP:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGSTOP;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTSTP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_TSTP:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGTSTP;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCONT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_CONT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGCONT;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTTIN)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_TTIN:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGTTIN;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGTTOU)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_TTOU:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGTTOU;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGVTALRM)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_VTALRM:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGVTALRM;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPROF)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_PROF:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPROF;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGXCPU)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_XCPU:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGXCPU;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGXFSZ)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_XFSZ:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGXFSZ;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWIND)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_WIND:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGWIND;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPHONE)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_PHONE:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPHONE;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGLOST)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_LOST:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGLOST;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGWAITING)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_WAITING:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGWAITING;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGCANCEL)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_CANCEL:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGCANCEL;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGLWP)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_LWP:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGLWP;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGDANGER)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_DANGER:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGDANGER;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGGRANT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_GRANT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGGRANT;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGRETRACT)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_RETRACT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGRETRACT;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGMSG)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_MSG:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGMSG;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSOUND)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_SOUND:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGSOUND;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGSAK)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_SAK:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGSAK;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (SIGPRIO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_PRIO:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGPRIO;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Mach exceptions. Assumes that the values for EXC_ are positive! */
|
|
|
|
|
#if defined (EXC_BAD_ACCESS) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_BAD_ACCESS:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_BAD_ACCESS;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_BAD_INSTRUCTION) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_BAD_INSTRUCTION:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_BAD_INSTRUCTION;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_ARITHMETIC) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_ARITHMETIC:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_ARITHMETIC;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_EMULATION) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_EMULATION:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_EMULATION;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_SOFTWARE) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_SOFTWARE:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_SOFTWARE;
|
|
|
|
|
#endif
|
|
|
|
|
#if defined (EXC_BREAKPOINT) && defined (_NSIG)
|
2013-10-22 19:16:51 +08:00
|
|
|
|
case GDB_EXC_BREAKPOINT:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return _NSIG + EXC_BREAKPOINT;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined (SIGINFO)
|
2012-05-25 00:51:47 +08:00
|
|
|
|
case GDB_SIGNAL_INFO:
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return SIGINFO;
|
|
|
|
|
#endif
|
2016-07-04 02:56:21 +08:00
|
|
|
|
#if defined (SIGLIBRT)
|
|
|
|
|
case GDB_SIGNAL_LIBRT:
|
|
|
|
|
return SIGLIBRT;
|
|
|
|
|
#endif
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
#if defined (REALTIME_LO)
|
2003-03-27 04:44:39 +08:00
|
|
|
|
retsig = 0;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
|
2012-05-25 00:51:47 +08:00
|
|
|
|
if (oursig >= GDB_SIGNAL_REALTIME_33
|
|
|
|
|
&& oursig <= GDB_SIGNAL_REALTIME_63)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
|
|
|
|
/* This block of signals is continuous, and
|
gdb, gdbserver, gdbsupport: fix leading space vs tabs issues
Many spots incorrectly use only spaces for indentation (for example,
there are a lot of spots in ada-lang.c). I've always found it awkward
when I needed to edit one of these spots: do I keep the original wrong
indentation, or do I fix it? What if the lines around it are also
wrong, do I fix them too? I probably don't want to fix them in the same
patch, to avoid adding noise to my patch.
So I propose to fix as much as possible once and for all (hopefully).
One typical counter argument for this is that it makes code archeology
more difficult, because git-blame will show this commit as the last
change for these lines. My counter counter argument is: when
git-blaming, you often need to do "blame the file at the parent commit"
anyway, to go past some other refactor that touched the line you are
interested in, but is not the change you are looking for. So you
already need a somewhat efficient way to do this.
Using some interactive tool, rather than plain git-blame, makes this
trivial. For example, I use "tig blame <file>", where going back past
the commit that changed the currently selected line is one keystroke.
It looks like Magit in Emacs does it too (though I've never used it).
Web viewers of Github and Gitlab do it too. My point is that it won't
really make archeology more difficult.
The other typical counter argument is that it will cause conflicts with
existing patches. That's true... but it's a one time cost, and those
are not conflicts that are difficult to resolve. I have also tried "git
rebase --ignore-whitespace", it seems to work well. Although that will
re-introduce the faulty indentation, so one needs to take care of fixing
the indentation in the patch after that (which is easy).
gdb/ChangeLog:
* aarch64-linux-tdep.c: Fix indentation.
* aarch64-ravenscar-thread.c: Fix indentation.
* aarch64-tdep.c: Fix indentation.
* aarch64-tdep.h: Fix indentation.
* ada-lang.c: Fix indentation.
* ada-lang.h: Fix indentation.
* ada-tasks.c: Fix indentation.
* ada-typeprint.c: Fix indentation.
* ada-valprint.c: Fix indentation.
* ada-varobj.c: Fix indentation.
* addrmap.c: Fix indentation.
* addrmap.h: Fix indentation.
* agent.c: Fix indentation.
* aix-thread.c: Fix indentation.
* alpha-bsd-nat.c: Fix indentation.
* alpha-linux-tdep.c: Fix indentation.
* alpha-mdebug-tdep.c: Fix indentation.
* alpha-nbsd-tdep.c: Fix indentation.
* alpha-obsd-tdep.c: Fix indentation.
* alpha-tdep.c: Fix indentation.
* amd64-bsd-nat.c: Fix indentation.
* amd64-darwin-tdep.c: Fix indentation.
* amd64-linux-nat.c: Fix indentation.
* amd64-linux-tdep.c: Fix indentation.
* amd64-nat.c: Fix indentation.
* amd64-obsd-tdep.c: Fix indentation.
* amd64-tdep.c: Fix indentation.
* amd64-windows-tdep.c: Fix indentation.
* annotate.c: Fix indentation.
* arc-tdep.c: Fix indentation.
* arch-utils.c: Fix indentation.
* arch/arm-get-next-pcs.c: Fix indentation.
* arch/arm.c: Fix indentation.
* arm-linux-nat.c: Fix indentation.
* arm-linux-tdep.c: Fix indentation.
* arm-nbsd-tdep.c: Fix indentation.
* arm-pikeos-tdep.c: Fix indentation.
* arm-tdep.c: Fix indentation.
* arm-tdep.h: Fix indentation.
* arm-wince-tdep.c: Fix indentation.
* auto-load.c: Fix indentation.
* auxv.c: Fix indentation.
* avr-tdep.c: Fix indentation.
* ax-gdb.c: Fix indentation.
* ax-general.c: Fix indentation.
* bfin-linux-tdep.c: Fix indentation.
* block.c: Fix indentation.
* block.h: Fix indentation.
* blockframe.c: Fix indentation.
* bpf-tdep.c: Fix indentation.
* break-catch-sig.c: Fix indentation.
* break-catch-syscall.c: Fix indentation.
* break-catch-throw.c: Fix indentation.
* breakpoint.c: Fix indentation.
* breakpoint.h: Fix indentation.
* bsd-uthread.c: Fix indentation.
* btrace.c: Fix indentation.
* build-id.c: Fix indentation.
* buildsym-legacy.h: Fix indentation.
* buildsym.c: Fix indentation.
* c-typeprint.c: Fix indentation.
* c-valprint.c: Fix indentation.
* c-varobj.c: Fix indentation.
* charset.c: Fix indentation.
* cli/cli-cmds.c: Fix indentation.
* cli/cli-decode.c: Fix indentation.
* cli/cli-decode.h: Fix indentation.
* cli/cli-script.c: Fix indentation.
* cli/cli-setshow.c: Fix indentation.
* coff-pe-read.c: Fix indentation.
* coffread.c: Fix indentation.
* compile/compile-cplus-types.c: Fix indentation.
* compile/compile-object-load.c: Fix indentation.
* compile/compile-object-run.c: Fix indentation.
* completer.c: Fix indentation.
* corefile.c: Fix indentation.
* corelow.c: Fix indentation.
* cp-abi.h: Fix indentation.
* cp-namespace.c: Fix indentation.
* cp-support.c: Fix indentation.
* cp-valprint.c: Fix indentation.
* cris-linux-tdep.c: Fix indentation.
* cris-tdep.c: Fix indentation.
* darwin-nat-info.c: Fix indentation.
* darwin-nat.c: Fix indentation.
* darwin-nat.h: Fix indentation.
* dbxread.c: Fix indentation.
* dcache.c: Fix indentation.
* disasm.c: Fix indentation.
* dtrace-probe.c: Fix indentation.
* dwarf2/abbrev.c: Fix indentation.
* dwarf2/attribute.c: Fix indentation.
* dwarf2/expr.c: Fix indentation.
* dwarf2/frame.c: Fix indentation.
* dwarf2/index-cache.c: Fix indentation.
* dwarf2/index-write.c: Fix indentation.
* dwarf2/line-header.c: Fix indentation.
* dwarf2/loc.c: Fix indentation.
* dwarf2/macro.c: Fix indentation.
* dwarf2/read.c: Fix indentation.
* dwarf2/read.h: Fix indentation.
* elfread.c: Fix indentation.
* eval.c: Fix indentation.
* event-top.c: Fix indentation.
* exec.c: Fix indentation.
* exec.h: Fix indentation.
* expprint.c: Fix indentation.
* f-lang.c: Fix indentation.
* f-typeprint.c: Fix indentation.
* f-valprint.c: Fix indentation.
* fbsd-nat.c: Fix indentation.
* fbsd-tdep.c: Fix indentation.
* findvar.c: Fix indentation.
* fork-child.c: Fix indentation.
* frame-unwind.c: Fix indentation.
* frame-unwind.h: Fix indentation.
* frame.c: Fix indentation.
* frv-linux-tdep.c: Fix indentation.
* frv-tdep.c: Fix indentation.
* frv-tdep.h: Fix indentation.
* ft32-tdep.c: Fix indentation.
* gcore.c: Fix indentation.
* gdb_bfd.c: Fix indentation.
* gdbarch.sh: Fix indentation.
* gdbarch.c: Re-generate
* gdbarch.h: Re-generate.
* gdbcore.h: Fix indentation.
* gdbthread.h: Fix indentation.
* gdbtypes.c: Fix indentation.
* gdbtypes.h: Fix indentation.
* glibc-tdep.c: Fix indentation.
* gnu-nat.c: Fix indentation.
* gnu-nat.h: Fix indentation.
* gnu-v2-abi.c: Fix indentation.
* gnu-v3-abi.c: Fix indentation.
* go32-nat.c: Fix indentation.
* guile/guile-internal.h: Fix indentation.
* guile/scm-cmd.c: Fix indentation.
* guile/scm-frame.c: Fix indentation.
* guile/scm-iterator.c: Fix indentation.
* guile/scm-math.c: Fix indentation.
* guile/scm-ports.c: Fix indentation.
* guile/scm-pretty-print.c: Fix indentation.
* guile/scm-value.c: Fix indentation.
* h8300-tdep.c: Fix indentation.
* hppa-linux-nat.c: Fix indentation.
* hppa-linux-tdep.c: Fix indentation.
* hppa-nbsd-nat.c: Fix indentation.
* hppa-nbsd-tdep.c: Fix indentation.
* hppa-obsd-nat.c: Fix indentation.
* hppa-tdep.c: Fix indentation.
* hppa-tdep.h: Fix indentation.
* i386-bsd-nat.c: Fix indentation.
* i386-darwin-nat.c: Fix indentation.
* i386-darwin-tdep.c: Fix indentation.
* i386-dicos-tdep.c: Fix indentation.
* i386-gnu-nat.c: Fix indentation.
* i386-linux-nat.c: Fix indentation.
* i386-linux-tdep.c: Fix indentation.
* i386-nto-tdep.c: Fix indentation.
* i386-obsd-tdep.c: Fix indentation.
* i386-sol2-nat.c: Fix indentation.
* i386-tdep.c: Fix indentation.
* i386-tdep.h: Fix indentation.
* i386-windows-tdep.c: Fix indentation.
* i387-tdep.c: Fix indentation.
* i387-tdep.h: Fix indentation.
* ia64-libunwind-tdep.c: Fix indentation.
* ia64-libunwind-tdep.h: Fix indentation.
* ia64-linux-nat.c: Fix indentation.
* ia64-linux-tdep.c: Fix indentation.
* ia64-tdep.c: Fix indentation.
* ia64-tdep.h: Fix indentation.
* ia64-vms-tdep.c: Fix indentation.
* infcall.c: Fix indentation.
* infcmd.c: Fix indentation.
* inferior.c: Fix indentation.
* infrun.c: Fix indentation.
* iq2000-tdep.c: Fix indentation.
* language.c: Fix indentation.
* linespec.c: Fix indentation.
* linux-fork.c: Fix indentation.
* linux-nat.c: Fix indentation.
* linux-tdep.c: Fix indentation.
* linux-thread-db.c: Fix indentation.
* lm32-tdep.c: Fix indentation.
* m2-lang.c: Fix indentation.
* m2-typeprint.c: Fix indentation.
* m2-valprint.c: Fix indentation.
* m32c-tdep.c: Fix indentation.
* m32r-linux-tdep.c: Fix indentation.
* m32r-tdep.c: Fix indentation.
* m68hc11-tdep.c: Fix indentation.
* m68k-bsd-nat.c: Fix indentation.
* m68k-linux-nat.c: Fix indentation.
* m68k-linux-tdep.c: Fix indentation.
* m68k-tdep.c: Fix indentation.
* machoread.c: Fix indentation.
* macrocmd.c: Fix indentation.
* macroexp.c: Fix indentation.
* macroscope.c: Fix indentation.
* macrotab.c: Fix indentation.
* macrotab.h: Fix indentation.
* main.c: Fix indentation.
* mdebugread.c: Fix indentation.
* mep-tdep.c: Fix indentation.
* mi/mi-cmd-catch.c: Fix indentation.
* mi/mi-cmd-disas.c: Fix indentation.
* mi/mi-cmd-env.c: Fix indentation.
* mi/mi-cmd-stack.c: Fix indentation.
* mi/mi-cmd-var.c: Fix indentation.
* mi/mi-cmds.c: Fix indentation.
* mi/mi-main.c: Fix indentation.
* mi/mi-parse.c: Fix indentation.
* microblaze-tdep.c: Fix indentation.
* minidebug.c: Fix indentation.
* minsyms.c: Fix indentation.
* mips-linux-nat.c: Fix indentation.
* mips-linux-tdep.c: Fix indentation.
* mips-nbsd-tdep.c: Fix indentation.
* mips-tdep.c: Fix indentation.
* mn10300-linux-tdep.c: Fix indentation.
* mn10300-tdep.c: Fix indentation.
* moxie-tdep.c: Fix indentation.
* msp430-tdep.c: Fix indentation.
* namespace.h: Fix indentation.
* nat/fork-inferior.c: Fix indentation.
* nat/gdb_ptrace.h: Fix indentation.
* nat/linux-namespaces.c: Fix indentation.
* nat/linux-osdata.c: Fix indentation.
* nat/netbsd-nat.c: Fix indentation.
* nat/x86-dregs.c: Fix indentation.
* nbsd-nat.c: Fix indentation.
* nbsd-tdep.c: Fix indentation.
* nios2-linux-tdep.c: Fix indentation.
* nios2-tdep.c: Fix indentation.
* nto-procfs.c: Fix indentation.
* nto-tdep.c: Fix indentation.
* objfiles.c: Fix indentation.
* objfiles.h: Fix indentation.
* opencl-lang.c: Fix indentation.
* or1k-tdep.c: Fix indentation.
* osabi.c: Fix indentation.
* osabi.h: Fix indentation.
* osdata.c: Fix indentation.
* p-lang.c: Fix indentation.
* p-typeprint.c: Fix indentation.
* p-valprint.c: Fix indentation.
* parse.c: Fix indentation.
* ppc-linux-nat.c: Fix indentation.
* ppc-linux-tdep.c: Fix indentation.
* ppc-nbsd-nat.c: Fix indentation.
* ppc-nbsd-tdep.c: Fix indentation.
* ppc-obsd-nat.c: Fix indentation.
* ppc-ravenscar-thread.c: Fix indentation.
* ppc-sysv-tdep.c: Fix indentation.
* ppc64-tdep.c: Fix indentation.
* printcmd.c: Fix indentation.
* proc-api.c: Fix indentation.
* producer.c: Fix indentation.
* producer.h: Fix indentation.
* prologue-value.c: Fix indentation.
* prologue-value.h: Fix indentation.
* psymtab.c: Fix indentation.
* python/py-arch.c: Fix indentation.
* python/py-bpevent.c: Fix indentation.
* python/py-event.c: Fix indentation.
* python/py-event.h: Fix indentation.
* python/py-finishbreakpoint.c: Fix indentation.
* python/py-frame.c: Fix indentation.
* python/py-framefilter.c: Fix indentation.
* python/py-inferior.c: Fix indentation.
* python/py-infthread.c: Fix indentation.
* python/py-objfile.c: Fix indentation.
* python/py-prettyprint.c: Fix indentation.
* python/py-registers.c: Fix indentation.
* python/py-signalevent.c: Fix indentation.
* python/py-stopevent.c: Fix indentation.
* python/py-stopevent.h: Fix indentation.
* python/py-threadevent.c: Fix indentation.
* python/py-tui.c: Fix indentation.
* python/py-unwind.c: Fix indentation.
* python/py-value.c: Fix indentation.
* python/py-xmethods.c: Fix indentation.
* python/python-internal.h: Fix indentation.
* python/python.c: Fix indentation.
* ravenscar-thread.c: Fix indentation.
* record-btrace.c: Fix indentation.
* record-full.c: Fix indentation.
* record.c: Fix indentation.
* reggroups.c: Fix indentation.
* regset.h: Fix indentation.
* remote-fileio.c: Fix indentation.
* remote.c: Fix indentation.
* reverse.c: Fix indentation.
* riscv-linux-tdep.c: Fix indentation.
* riscv-ravenscar-thread.c: Fix indentation.
* riscv-tdep.c: Fix indentation.
* rl78-tdep.c: Fix indentation.
* rs6000-aix-tdep.c: Fix indentation.
* rs6000-lynx178-tdep.c: Fix indentation.
* rs6000-nat.c: Fix indentation.
* rs6000-tdep.c: Fix indentation.
* rust-lang.c: Fix indentation.
* rx-tdep.c: Fix indentation.
* s12z-tdep.c: Fix indentation.
* s390-linux-tdep.c: Fix indentation.
* score-tdep.c: Fix indentation.
* ser-base.c: Fix indentation.
* ser-mingw.c: Fix indentation.
* ser-uds.c: Fix indentation.
* ser-unix.c: Fix indentation.
* serial.c: Fix indentation.
* sh-linux-tdep.c: Fix indentation.
* sh-nbsd-tdep.c: Fix indentation.
* sh-tdep.c: Fix indentation.
* skip.c: Fix indentation.
* sol-thread.c: Fix indentation.
* solib-aix.c: Fix indentation.
* solib-darwin.c: Fix indentation.
* solib-frv.c: Fix indentation.
* solib-svr4.c: Fix indentation.
* solib.c: Fix indentation.
* source.c: Fix indentation.
* sparc-linux-tdep.c: Fix indentation.
* sparc-nbsd-tdep.c: Fix indentation.
* sparc-obsd-tdep.c: Fix indentation.
* sparc-ravenscar-thread.c: Fix indentation.
* sparc-tdep.c: Fix indentation.
* sparc64-linux-tdep.c: Fix indentation.
* sparc64-nbsd-tdep.c: Fix indentation.
* sparc64-obsd-tdep.c: Fix indentation.
* sparc64-tdep.c: Fix indentation.
* stabsread.c: Fix indentation.
* stack.c: Fix indentation.
* stap-probe.c: Fix indentation.
* stubs/ia64vms-stub.c: Fix indentation.
* stubs/m32r-stub.c: Fix indentation.
* stubs/m68k-stub.c: Fix indentation.
* stubs/sh-stub.c: Fix indentation.
* stubs/sparc-stub.c: Fix indentation.
* symfile-mem.c: Fix indentation.
* symfile.c: Fix indentation.
* symfile.h: Fix indentation.
* symmisc.c: Fix indentation.
* symtab.c: Fix indentation.
* symtab.h: Fix indentation.
* target-float.c: Fix indentation.
* target.c: Fix indentation.
* target.h: Fix indentation.
* tic6x-tdep.c: Fix indentation.
* tilegx-linux-tdep.c: Fix indentation.
* tilegx-tdep.c: Fix indentation.
* top.c: Fix indentation.
* tracefile-tfile.c: Fix indentation.
* tracepoint.c: Fix indentation.
* tui/tui-disasm.c: Fix indentation.
* tui/tui-io.c: Fix indentation.
* tui/tui-regs.c: Fix indentation.
* tui/tui-stack.c: Fix indentation.
* tui/tui-win.c: Fix indentation.
* tui/tui-winsource.c: Fix indentation.
* tui/tui.c: Fix indentation.
* typeprint.c: Fix indentation.
* ui-out.h: Fix indentation.
* unittests/copy_bitwise-selftests.c: Fix indentation.
* unittests/memory-map-selftests.c: Fix indentation.
* utils.c: Fix indentation.
* v850-tdep.c: Fix indentation.
* valarith.c: Fix indentation.
* valops.c: Fix indentation.
* valprint.c: Fix indentation.
* valprint.h: Fix indentation.
* value.c: Fix indentation.
* value.h: Fix indentation.
* varobj.c: Fix indentation.
* vax-tdep.c: Fix indentation.
* windows-nat.c: Fix indentation.
* windows-tdep.c: Fix indentation.
* xcoffread.c: Fix indentation.
* xml-syscall.c: Fix indentation.
* xml-tdesc.c: Fix indentation.
* xstormy16-tdep.c: Fix indentation.
* xtensa-config.c: Fix indentation.
* xtensa-linux-nat.c: Fix indentation.
* xtensa-linux-tdep.c: Fix indentation.
* xtensa-tdep.c: Fix indentation.
gdbserver/ChangeLog:
* ax.cc: Fix indentation.
* dll.cc: Fix indentation.
* inferiors.h: Fix indentation.
* linux-low.cc: Fix indentation.
* linux-nios2-low.cc: Fix indentation.
* linux-ppc-ipa.cc: Fix indentation.
* linux-ppc-low.cc: Fix indentation.
* linux-x86-low.cc: Fix indentation.
* linux-xtensa-low.cc: Fix indentation.
* regcache.cc: Fix indentation.
* server.cc: Fix indentation.
* tracepoint.cc: Fix indentation.
gdbsupport/ChangeLog:
* common-exceptions.h: Fix indentation.
* event-loop.cc: Fix indentation.
* fileio.cc: Fix indentation.
* filestuff.cc: Fix indentation.
* gdb-dlfcn.cc: Fix indentation.
* gdb_string_view.h: Fix indentation.
* job-control.cc: Fix indentation.
* signals.cc: Fix indentation.
Change-Id: I4bad7ae6be0fbe14168b8ebafb98ffe14964a695
2020-11-02 23:26:14 +08:00
|
|
|
|
GDB_SIGNAL_REALTIME_33 is 33 by definition. */
|
2012-05-25 00:51:47 +08:00
|
|
|
|
retsig = (int) oursig - (int) GDB_SIGNAL_REALTIME_33 + 33;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
}
|
2012-05-25 00:51:47 +08:00
|
|
|
|
else if (oursig == GDB_SIGNAL_REALTIME_32)
|
2002-06-10 03:42:11 +08:00
|
|
|
|
{
|
2012-05-25 00:51:47 +08:00
|
|
|
|
/* GDB_SIGNAL_REALTIME_32 isn't contiguous with
|
gdb, gdbserver, gdbsupport: fix leading space vs tabs issues
Many spots incorrectly use only spaces for indentation (for example,
there are a lot of spots in ada-lang.c). I've always found it awkward
when I needed to edit one of these spots: do I keep the original wrong
indentation, or do I fix it? What if the lines around it are also
wrong, do I fix them too? I probably don't want to fix them in the same
patch, to avoid adding noise to my patch.
So I propose to fix as much as possible once and for all (hopefully).
One typical counter argument for this is that it makes code archeology
more difficult, because git-blame will show this commit as the last
change for these lines. My counter counter argument is: when
git-blaming, you often need to do "blame the file at the parent commit"
anyway, to go past some other refactor that touched the line you are
interested in, but is not the change you are looking for. So you
already need a somewhat efficient way to do this.
Using some interactive tool, rather than plain git-blame, makes this
trivial. For example, I use "tig blame <file>", where going back past
the commit that changed the currently selected line is one keystroke.
It looks like Magit in Emacs does it too (though I've never used it).
Web viewers of Github and Gitlab do it too. My point is that it won't
really make archeology more difficult.
The other typical counter argument is that it will cause conflicts with
existing patches. That's true... but it's a one time cost, and those
are not conflicts that are difficult to resolve. I have also tried "git
rebase --ignore-whitespace", it seems to work well. Although that will
re-introduce the faulty indentation, so one needs to take care of fixing
the indentation in the patch after that (which is easy).
gdb/ChangeLog:
* aarch64-linux-tdep.c: Fix indentation.
* aarch64-ravenscar-thread.c: Fix indentation.
* aarch64-tdep.c: Fix indentation.
* aarch64-tdep.h: Fix indentation.
* ada-lang.c: Fix indentation.
* ada-lang.h: Fix indentation.
* ada-tasks.c: Fix indentation.
* ada-typeprint.c: Fix indentation.
* ada-valprint.c: Fix indentation.
* ada-varobj.c: Fix indentation.
* addrmap.c: Fix indentation.
* addrmap.h: Fix indentation.
* agent.c: Fix indentation.
* aix-thread.c: Fix indentation.
* alpha-bsd-nat.c: Fix indentation.
* alpha-linux-tdep.c: Fix indentation.
* alpha-mdebug-tdep.c: Fix indentation.
* alpha-nbsd-tdep.c: Fix indentation.
* alpha-obsd-tdep.c: Fix indentation.
* alpha-tdep.c: Fix indentation.
* amd64-bsd-nat.c: Fix indentation.
* amd64-darwin-tdep.c: Fix indentation.
* amd64-linux-nat.c: Fix indentation.
* amd64-linux-tdep.c: Fix indentation.
* amd64-nat.c: Fix indentation.
* amd64-obsd-tdep.c: Fix indentation.
* amd64-tdep.c: Fix indentation.
* amd64-windows-tdep.c: Fix indentation.
* annotate.c: Fix indentation.
* arc-tdep.c: Fix indentation.
* arch-utils.c: Fix indentation.
* arch/arm-get-next-pcs.c: Fix indentation.
* arch/arm.c: Fix indentation.
* arm-linux-nat.c: Fix indentation.
* arm-linux-tdep.c: Fix indentation.
* arm-nbsd-tdep.c: Fix indentation.
* arm-pikeos-tdep.c: Fix indentation.
* arm-tdep.c: Fix indentation.
* arm-tdep.h: Fix indentation.
* arm-wince-tdep.c: Fix indentation.
* auto-load.c: Fix indentation.
* auxv.c: Fix indentation.
* avr-tdep.c: Fix indentation.
* ax-gdb.c: Fix indentation.
* ax-general.c: Fix indentation.
* bfin-linux-tdep.c: Fix indentation.
* block.c: Fix indentation.
* block.h: Fix indentation.
* blockframe.c: Fix indentation.
* bpf-tdep.c: Fix indentation.
* break-catch-sig.c: Fix indentation.
* break-catch-syscall.c: Fix indentation.
* break-catch-throw.c: Fix indentation.
* breakpoint.c: Fix indentation.
* breakpoint.h: Fix indentation.
* bsd-uthread.c: Fix indentation.
* btrace.c: Fix indentation.
* build-id.c: Fix indentation.
* buildsym-legacy.h: Fix indentation.
* buildsym.c: Fix indentation.
* c-typeprint.c: Fix indentation.
* c-valprint.c: Fix indentation.
* c-varobj.c: Fix indentation.
* charset.c: Fix indentation.
* cli/cli-cmds.c: Fix indentation.
* cli/cli-decode.c: Fix indentation.
* cli/cli-decode.h: Fix indentation.
* cli/cli-script.c: Fix indentation.
* cli/cli-setshow.c: Fix indentation.
* coff-pe-read.c: Fix indentation.
* coffread.c: Fix indentation.
* compile/compile-cplus-types.c: Fix indentation.
* compile/compile-object-load.c: Fix indentation.
* compile/compile-object-run.c: Fix indentation.
* completer.c: Fix indentation.
* corefile.c: Fix indentation.
* corelow.c: Fix indentation.
* cp-abi.h: Fix indentation.
* cp-namespace.c: Fix indentation.
* cp-support.c: Fix indentation.
* cp-valprint.c: Fix indentation.
* cris-linux-tdep.c: Fix indentation.
* cris-tdep.c: Fix indentation.
* darwin-nat-info.c: Fix indentation.
* darwin-nat.c: Fix indentation.
* darwin-nat.h: Fix indentation.
* dbxread.c: Fix indentation.
* dcache.c: Fix indentation.
* disasm.c: Fix indentation.
* dtrace-probe.c: Fix indentation.
* dwarf2/abbrev.c: Fix indentation.
* dwarf2/attribute.c: Fix indentation.
* dwarf2/expr.c: Fix indentation.
* dwarf2/frame.c: Fix indentation.
* dwarf2/index-cache.c: Fix indentation.
* dwarf2/index-write.c: Fix indentation.
* dwarf2/line-header.c: Fix indentation.
* dwarf2/loc.c: Fix indentation.
* dwarf2/macro.c: Fix indentation.
* dwarf2/read.c: Fix indentation.
* dwarf2/read.h: Fix indentation.
* elfread.c: Fix indentation.
* eval.c: Fix indentation.
* event-top.c: Fix indentation.
* exec.c: Fix indentation.
* exec.h: Fix indentation.
* expprint.c: Fix indentation.
* f-lang.c: Fix indentation.
* f-typeprint.c: Fix indentation.
* f-valprint.c: Fix indentation.
* fbsd-nat.c: Fix indentation.
* fbsd-tdep.c: Fix indentation.
* findvar.c: Fix indentation.
* fork-child.c: Fix indentation.
* frame-unwind.c: Fix indentation.
* frame-unwind.h: Fix indentation.
* frame.c: Fix indentation.
* frv-linux-tdep.c: Fix indentation.
* frv-tdep.c: Fix indentation.
* frv-tdep.h: Fix indentation.
* ft32-tdep.c: Fix indentation.
* gcore.c: Fix indentation.
* gdb_bfd.c: Fix indentation.
* gdbarch.sh: Fix indentation.
* gdbarch.c: Re-generate
* gdbarch.h: Re-generate.
* gdbcore.h: Fix indentation.
* gdbthread.h: Fix indentation.
* gdbtypes.c: Fix indentation.
* gdbtypes.h: Fix indentation.
* glibc-tdep.c: Fix indentation.
* gnu-nat.c: Fix indentation.
* gnu-nat.h: Fix indentation.
* gnu-v2-abi.c: Fix indentation.
* gnu-v3-abi.c: Fix indentation.
* go32-nat.c: Fix indentation.
* guile/guile-internal.h: Fix indentation.
* guile/scm-cmd.c: Fix indentation.
* guile/scm-frame.c: Fix indentation.
* guile/scm-iterator.c: Fix indentation.
* guile/scm-math.c: Fix indentation.
* guile/scm-ports.c: Fix indentation.
* guile/scm-pretty-print.c: Fix indentation.
* guile/scm-value.c: Fix indentation.
* h8300-tdep.c: Fix indentation.
* hppa-linux-nat.c: Fix indentation.
* hppa-linux-tdep.c: Fix indentation.
* hppa-nbsd-nat.c: Fix indentation.
* hppa-nbsd-tdep.c: Fix indentation.
* hppa-obsd-nat.c: Fix indentation.
* hppa-tdep.c: Fix indentation.
* hppa-tdep.h: Fix indentation.
* i386-bsd-nat.c: Fix indentation.
* i386-darwin-nat.c: Fix indentation.
* i386-darwin-tdep.c: Fix indentation.
* i386-dicos-tdep.c: Fix indentation.
* i386-gnu-nat.c: Fix indentation.
* i386-linux-nat.c: Fix indentation.
* i386-linux-tdep.c: Fix indentation.
* i386-nto-tdep.c: Fix indentation.
* i386-obsd-tdep.c: Fix indentation.
* i386-sol2-nat.c: Fix indentation.
* i386-tdep.c: Fix indentation.
* i386-tdep.h: Fix indentation.
* i386-windows-tdep.c: Fix indentation.
* i387-tdep.c: Fix indentation.
* i387-tdep.h: Fix indentation.
* ia64-libunwind-tdep.c: Fix indentation.
* ia64-libunwind-tdep.h: Fix indentation.
* ia64-linux-nat.c: Fix indentation.
* ia64-linux-tdep.c: Fix indentation.
* ia64-tdep.c: Fix indentation.
* ia64-tdep.h: Fix indentation.
* ia64-vms-tdep.c: Fix indentation.
* infcall.c: Fix indentation.
* infcmd.c: Fix indentation.
* inferior.c: Fix indentation.
* infrun.c: Fix indentation.
* iq2000-tdep.c: Fix indentation.
* language.c: Fix indentation.
* linespec.c: Fix indentation.
* linux-fork.c: Fix indentation.
* linux-nat.c: Fix indentation.
* linux-tdep.c: Fix indentation.
* linux-thread-db.c: Fix indentation.
* lm32-tdep.c: Fix indentation.
* m2-lang.c: Fix indentation.
* m2-typeprint.c: Fix indentation.
* m2-valprint.c: Fix indentation.
* m32c-tdep.c: Fix indentation.
* m32r-linux-tdep.c: Fix indentation.
* m32r-tdep.c: Fix indentation.
* m68hc11-tdep.c: Fix indentation.
* m68k-bsd-nat.c: Fix indentation.
* m68k-linux-nat.c: Fix indentation.
* m68k-linux-tdep.c: Fix indentation.
* m68k-tdep.c: Fix indentation.
* machoread.c: Fix indentation.
* macrocmd.c: Fix indentation.
* macroexp.c: Fix indentation.
* macroscope.c: Fix indentation.
* macrotab.c: Fix indentation.
* macrotab.h: Fix indentation.
* main.c: Fix indentation.
* mdebugread.c: Fix indentation.
* mep-tdep.c: Fix indentation.
* mi/mi-cmd-catch.c: Fix indentation.
* mi/mi-cmd-disas.c: Fix indentation.
* mi/mi-cmd-env.c: Fix indentation.
* mi/mi-cmd-stack.c: Fix indentation.
* mi/mi-cmd-var.c: Fix indentation.
* mi/mi-cmds.c: Fix indentation.
* mi/mi-main.c: Fix indentation.
* mi/mi-parse.c: Fix indentation.
* microblaze-tdep.c: Fix indentation.
* minidebug.c: Fix indentation.
* minsyms.c: Fix indentation.
* mips-linux-nat.c: Fix indentation.
* mips-linux-tdep.c: Fix indentation.
* mips-nbsd-tdep.c: Fix indentation.
* mips-tdep.c: Fix indentation.
* mn10300-linux-tdep.c: Fix indentation.
* mn10300-tdep.c: Fix indentation.
* moxie-tdep.c: Fix indentation.
* msp430-tdep.c: Fix indentation.
* namespace.h: Fix indentation.
* nat/fork-inferior.c: Fix indentation.
* nat/gdb_ptrace.h: Fix indentation.
* nat/linux-namespaces.c: Fix indentation.
* nat/linux-osdata.c: Fix indentation.
* nat/netbsd-nat.c: Fix indentation.
* nat/x86-dregs.c: Fix indentation.
* nbsd-nat.c: Fix indentation.
* nbsd-tdep.c: Fix indentation.
* nios2-linux-tdep.c: Fix indentation.
* nios2-tdep.c: Fix indentation.
* nto-procfs.c: Fix indentation.
* nto-tdep.c: Fix indentation.
* objfiles.c: Fix indentation.
* objfiles.h: Fix indentation.
* opencl-lang.c: Fix indentation.
* or1k-tdep.c: Fix indentation.
* osabi.c: Fix indentation.
* osabi.h: Fix indentation.
* osdata.c: Fix indentation.
* p-lang.c: Fix indentation.
* p-typeprint.c: Fix indentation.
* p-valprint.c: Fix indentation.
* parse.c: Fix indentation.
* ppc-linux-nat.c: Fix indentation.
* ppc-linux-tdep.c: Fix indentation.
* ppc-nbsd-nat.c: Fix indentation.
* ppc-nbsd-tdep.c: Fix indentation.
* ppc-obsd-nat.c: Fix indentation.
* ppc-ravenscar-thread.c: Fix indentation.
* ppc-sysv-tdep.c: Fix indentation.
* ppc64-tdep.c: Fix indentation.
* printcmd.c: Fix indentation.
* proc-api.c: Fix indentation.
* producer.c: Fix indentation.
* producer.h: Fix indentation.
* prologue-value.c: Fix indentation.
* prologue-value.h: Fix indentation.
* psymtab.c: Fix indentation.
* python/py-arch.c: Fix indentation.
* python/py-bpevent.c: Fix indentation.
* python/py-event.c: Fix indentation.
* python/py-event.h: Fix indentation.
* python/py-finishbreakpoint.c: Fix indentation.
* python/py-frame.c: Fix indentation.
* python/py-framefilter.c: Fix indentation.
* python/py-inferior.c: Fix indentation.
* python/py-infthread.c: Fix indentation.
* python/py-objfile.c: Fix indentation.
* python/py-prettyprint.c: Fix indentation.
* python/py-registers.c: Fix indentation.
* python/py-signalevent.c: Fix indentation.
* python/py-stopevent.c: Fix indentation.
* python/py-stopevent.h: Fix indentation.
* python/py-threadevent.c: Fix indentation.
* python/py-tui.c: Fix indentation.
* python/py-unwind.c: Fix indentation.
* python/py-value.c: Fix indentation.
* python/py-xmethods.c: Fix indentation.
* python/python-internal.h: Fix indentation.
* python/python.c: Fix indentation.
* ravenscar-thread.c: Fix indentation.
* record-btrace.c: Fix indentation.
* record-full.c: Fix indentation.
* record.c: Fix indentation.
* reggroups.c: Fix indentation.
* regset.h: Fix indentation.
* remote-fileio.c: Fix indentation.
* remote.c: Fix indentation.
* reverse.c: Fix indentation.
* riscv-linux-tdep.c: Fix indentation.
* riscv-ravenscar-thread.c: Fix indentation.
* riscv-tdep.c: Fix indentation.
* rl78-tdep.c: Fix indentation.
* rs6000-aix-tdep.c: Fix indentation.
* rs6000-lynx178-tdep.c: Fix indentation.
* rs6000-nat.c: Fix indentation.
* rs6000-tdep.c: Fix indentation.
* rust-lang.c: Fix indentation.
* rx-tdep.c: Fix indentation.
* s12z-tdep.c: Fix indentation.
* s390-linux-tdep.c: Fix indentation.
* score-tdep.c: Fix indentation.
* ser-base.c: Fix indentation.
* ser-mingw.c: Fix indentation.
* ser-uds.c: Fix indentation.
* ser-unix.c: Fix indentation.
* serial.c: Fix indentation.
* sh-linux-tdep.c: Fix indentation.
* sh-nbsd-tdep.c: Fix indentation.
* sh-tdep.c: Fix indentation.
* skip.c: Fix indentation.
* sol-thread.c: Fix indentation.
* solib-aix.c: Fix indentation.
* solib-darwin.c: Fix indentation.
* solib-frv.c: Fix indentation.
* solib-svr4.c: Fix indentation.
* solib.c: Fix indentation.
* source.c: Fix indentation.
* sparc-linux-tdep.c: Fix indentation.
* sparc-nbsd-tdep.c: Fix indentation.
* sparc-obsd-tdep.c: Fix indentation.
* sparc-ravenscar-thread.c: Fix indentation.
* sparc-tdep.c: Fix indentation.
* sparc64-linux-tdep.c: Fix indentation.
* sparc64-nbsd-tdep.c: Fix indentation.
* sparc64-obsd-tdep.c: Fix indentation.
* sparc64-tdep.c: Fix indentation.
* stabsread.c: Fix indentation.
* stack.c: Fix indentation.
* stap-probe.c: Fix indentation.
* stubs/ia64vms-stub.c: Fix indentation.
* stubs/m32r-stub.c: Fix indentation.
* stubs/m68k-stub.c: Fix indentation.
* stubs/sh-stub.c: Fix indentation.
* stubs/sparc-stub.c: Fix indentation.
* symfile-mem.c: Fix indentation.
* symfile.c: Fix indentation.
* symfile.h: Fix indentation.
* symmisc.c: Fix indentation.
* symtab.c: Fix indentation.
* symtab.h: Fix indentation.
* target-float.c: Fix indentation.
* target.c: Fix indentation.
* target.h: Fix indentation.
* tic6x-tdep.c: Fix indentation.
* tilegx-linux-tdep.c: Fix indentation.
* tilegx-tdep.c: Fix indentation.
* top.c: Fix indentation.
* tracefile-tfile.c: Fix indentation.
* tracepoint.c: Fix indentation.
* tui/tui-disasm.c: Fix indentation.
* tui/tui-io.c: Fix indentation.
* tui/tui-regs.c: Fix indentation.
* tui/tui-stack.c: Fix indentation.
* tui/tui-win.c: Fix indentation.
* tui/tui-winsource.c: Fix indentation.
* tui/tui.c: Fix indentation.
* typeprint.c: Fix indentation.
* ui-out.h: Fix indentation.
* unittests/copy_bitwise-selftests.c: Fix indentation.
* unittests/memory-map-selftests.c: Fix indentation.
* utils.c: Fix indentation.
* v850-tdep.c: Fix indentation.
* valarith.c: Fix indentation.
* valops.c: Fix indentation.
* valprint.c: Fix indentation.
* valprint.h: Fix indentation.
* value.c: Fix indentation.
* value.h: Fix indentation.
* varobj.c: Fix indentation.
* vax-tdep.c: Fix indentation.
* windows-nat.c: Fix indentation.
* windows-tdep.c: Fix indentation.
* xcoffread.c: Fix indentation.
* xml-syscall.c: Fix indentation.
* xml-tdesc.c: Fix indentation.
* xstormy16-tdep.c: Fix indentation.
* xtensa-config.c: Fix indentation.
* xtensa-linux-nat.c: Fix indentation.
* xtensa-linux-tdep.c: Fix indentation.
* xtensa-tdep.c: Fix indentation.
gdbserver/ChangeLog:
* ax.cc: Fix indentation.
* dll.cc: Fix indentation.
* inferiors.h: Fix indentation.
* linux-low.cc: Fix indentation.
* linux-nios2-low.cc: Fix indentation.
* linux-ppc-ipa.cc: Fix indentation.
* linux-ppc-low.cc: Fix indentation.
* linux-x86-low.cc: Fix indentation.
* linux-xtensa-low.cc: Fix indentation.
* regcache.cc: Fix indentation.
* server.cc: Fix indentation.
* tracepoint.cc: Fix indentation.
gdbsupport/ChangeLog:
* common-exceptions.h: Fix indentation.
* event-loop.cc: Fix indentation.
* fileio.cc: Fix indentation.
* filestuff.cc: Fix indentation.
* gdb-dlfcn.cc: Fix indentation.
* gdb_string_view.h: Fix indentation.
* job-control.cc: Fix indentation.
* signals.cc: Fix indentation.
Change-Id: I4bad7ae6be0fbe14168b8ebafb98ffe14964a695
2020-11-02 23:26:14 +08:00
|
|
|
|
GDB_SIGNAL_REALTIME_33. It is 32 by definition. */
|
2003-03-27 04:44:39 +08:00
|
|
|
|
retsig = 32;
|
2002-06-10 03:42:11 +08:00
|
|
|
|
}
|
2012-05-25 00:51:47 +08:00
|
|
|
|
else if (oursig >= GDB_SIGNAL_REALTIME_64
|
|
|
|
|
&& oursig <= GDB_SIGNAL_REALTIME_127)
|
2002-06-10 03:42:11 +08:00
|
|
|
|
{
|
|
|
|
|
/* This block of signals is continuous, and
|
gdb, gdbserver, gdbsupport: fix leading space vs tabs issues
Many spots incorrectly use only spaces for indentation (for example,
there are a lot of spots in ada-lang.c). I've always found it awkward
when I needed to edit one of these spots: do I keep the original wrong
indentation, or do I fix it? What if the lines around it are also
wrong, do I fix them too? I probably don't want to fix them in the same
patch, to avoid adding noise to my patch.
So I propose to fix as much as possible once and for all (hopefully).
One typical counter argument for this is that it makes code archeology
more difficult, because git-blame will show this commit as the last
change for these lines. My counter counter argument is: when
git-blaming, you often need to do "blame the file at the parent commit"
anyway, to go past some other refactor that touched the line you are
interested in, but is not the change you are looking for. So you
already need a somewhat efficient way to do this.
Using some interactive tool, rather than plain git-blame, makes this
trivial. For example, I use "tig blame <file>", where going back past
the commit that changed the currently selected line is one keystroke.
It looks like Magit in Emacs does it too (though I've never used it).
Web viewers of Github and Gitlab do it too. My point is that it won't
really make archeology more difficult.
The other typical counter argument is that it will cause conflicts with
existing patches. That's true... but it's a one time cost, and those
are not conflicts that are difficult to resolve. I have also tried "git
rebase --ignore-whitespace", it seems to work well. Although that will
re-introduce the faulty indentation, so one needs to take care of fixing
the indentation in the patch after that (which is easy).
gdb/ChangeLog:
* aarch64-linux-tdep.c: Fix indentation.
* aarch64-ravenscar-thread.c: Fix indentation.
* aarch64-tdep.c: Fix indentation.
* aarch64-tdep.h: Fix indentation.
* ada-lang.c: Fix indentation.
* ada-lang.h: Fix indentation.
* ada-tasks.c: Fix indentation.
* ada-typeprint.c: Fix indentation.
* ada-valprint.c: Fix indentation.
* ada-varobj.c: Fix indentation.
* addrmap.c: Fix indentation.
* addrmap.h: Fix indentation.
* agent.c: Fix indentation.
* aix-thread.c: Fix indentation.
* alpha-bsd-nat.c: Fix indentation.
* alpha-linux-tdep.c: Fix indentation.
* alpha-mdebug-tdep.c: Fix indentation.
* alpha-nbsd-tdep.c: Fix indentation.
* alpha-obsd-tdep.c: Fix indentation.
* alpha-tdep.c: Fix indentation.
* amd64-bsd-nat.c: Fix indentation.
* amd64-darwin-tdep.c: Fix indentation.
* amd64-linux-nat.c: Fix indentation.
* amd64-linux-tdep.c: Fix indentation.
* amd64-nat.c: Fix indentation.
* amd64-obsd-tdep.c: Fix indentation.
* amd64-tdep.c: Fix indentation.
* amd64-windows-tdep.c: Fix indentation.
* annotate.c: Fix indentation.
* arc-tdep.c: Fix indentation.
* arch-utils.c: Fix indentation.
* arch/arm-get-next-pcs.c: Fix indentation.
* arch/arm.c: Fix indentation.
* arm-linux-nat.c: Fix indentation.
* arm-linux-tdep.c: Fix indentation.
* arm-nbsd-tdep.c: Fix indentation.
* arm-pikeos-tdep.c: Fix indentation.
* arm-tdep.c: Fix indentation.
* arm-tdep.h: Fix indentation.
* arm-wince-tdep.c: Fix indentation.
* auto-load.c: Fix indentation.
* auxv.c: Fix indentation.
* avr-tdep.c: Fix indentation.
* ax-gdb.c: Fix indentation.
* ax-general.c: Fix indentation.
* bfin-linux-tdep.c: Fix indentation.
* block.c: Fix indentation.
* block.h: Fix indentation.
* blockframe.c: Fix indentation.
* bpf-tdep.c: Fix indentation.
* break-catch-sig.c: Fix indentation.
* break-catch-syscall.c: Fix indentation.
* break-catch-throw.c: Fix indentation.
* breakpoint.c: Fix indentation.
* breakpoint.h: Fix indentation.
* bsd-uthread.c: Fix indentation.
* btrace.c: Fix indentation.
* build-id.c: Fix indentation.
* buildsym-legacy.h: Fix indentation.
* buildsym.c: Fix indentation.
* c-typeprint.c: Fix indentation.
* c-valprint.c: Fix indentation.
* c-varobj.c: Fix indentation.
* charset.c: Fix indentation.
* cli/cli-cmds.c: Fix indentation.
* cli/cli-decode.c: Fix indentation.
* cli/cli-decode.h: Fix indentation.
* cli/cli-script.c: Fix indentation.
* cli/cli-setshow.c: Fix indentation.
* coff-pe-read.c: Fix indentation.
* coffread.c: Fix indentation.
* compile/compile-cplus-types.c: Fix indentation.
* compile/compile-object-load.c: Fix indentation.
* compile/compile-object-run.c: Fix indentation.
* completer.c: Fix indentation.
* corefile.c: Fix indentation.
* corelow.c: Fix indentation.
* cp-abi.h: Fix indentation.
* cp-namespace.c: Fix indentation.
* cp-support.c: Fix indentation.
* cp-valprint.c: Fix indentation.
* cris-linux-tdep.c: Fix indentation.
* cris-tdep.c: Fix indentation.
* darwin-nat-info.c: Fix indentation.
* darwin-nat.c: Fix indentation.
* darwin-nat.h: Fix indentation.
* dbxread.c: Fix indentation.
* dcache.c: Fix indentation.
* disasm.c: Fix indentation.
* dtrace-probe.c: Fix indentation.
* dwarf2/abbrev.c: Fix indentation.
* dwarf2/attribute.c: Fix indentation.
* dwarf2/expr.c: Fix indentation.
* dwarf2/frame.c: Fix indentation.
* dwarf2/index-cache.c: Fix indentation.
* dwarf2/index-write.c: Fix indentation.
* dwarf2/line-header.c: Fix indentation.
* dwarf2/loc.c: Fix indentation.
* dwarf2/macro.c: Fix indentation.
* dwarf2/read.c: Fix indentation.
* dwarf2/read.h: Fix indentation.
* elfread.c: Fix indentation.
* eval.c: Fix indentation.
* event-top.c: Fix indentation.
* exec.c: Fix indentation.
* exec.h: Fix indentation.
* expprint.c: Fix indentation.
* f-lang.c: Fix indentation.
* f-typeprint.c: Fix indentation.
* f-valprint.c: Fix indentation.
* fbsd-nat.c: Fix indentation.
* fbsd-tdep.c: Fix indentation.
* findvar.c: Fix indentation.
* fork-child.c: Fix indentation.
* frame-unwind.c: Fix indentation.
* frame-unwind.h: Fix indentation.
* frame.c: Fix indentation.
* frv-linux-tdep.c: Fix indentation.
* frv-tdep.c: Fix indentation.
* frv-tdep.h: Fix indentation.
* ft32-tdep.c: Fix indentation.
* gcore.c: Fix indentation.
* gdb_bfd.c: Fix indentation.
* gdbarch.sh: Fix indentation.
* gdbarch.c: Re-generate
* gdbarch.h: Re-generate.
* gdbcore.h: Fix indentation.
* gdbthread.h: Fix indentation.
* gdbtypes.c: Fix indentation.
* gdbtypes.h: Fix indentation.
* glibc-tdep.c: Fix indentation.
* gnu-nat.c: Fix indentation.
* gnu-nat.h: Fix indentation.
* gnu-v2-abi.c: Fix indentation.
* gnu-v3-abi.c: Fix indentation.
* go32-nat.c: Fix indentation.
* guile/guile-internal.h: Fix indentation.
* guile/scm-cmd.c: Fix indentation.
* guile/scm-frame.c: Fix indentation.
* guile/scm-iterator.c: Fix indentation.
* guile/scm-math.c: Fix indentation.
* guile/scm-ports.c: Fix indentation.
* guile/scm-pretty-print.c: Fix indentation.
* guile/scm-value.c: Fix indentation.
* h8300-tdep.c: Fix indentation.
* hppa-linux-nat.c: Fix indentation.
* hppa-linux-tdep.c: Fix indentation.
* hppa-nbsd-nat.c: Fix indentation.
* hppa-nbsd-tdep.c: Fix indentation.
* hppa-obsd-nat.c: Fix indentation.
* hppa-tdep.c: Fix indentation.
* hppa-tdep.h: Fix indentation.
* i386-bsd-nat.c: Fix indentation.
* i386-darwin-nat.c: Fix indentation.
* i386-darwin-tdep.c: Fix indentation.
* i386-dicos-tdep.c: Fix indentation.
* i386-gnu-nat.c: Fix indentation.
* i386-linux-nat.c: Fix indentation.
* i386-linux-tdep.c: Fix indentation.
* i386-nto-tdep.c: Fix indentation.
* i386-obsd-tdep.c: Fix indentation.
* i386-sol2-nat.c: Fix indentation.
* i386-tdep.c: Fix indentation.
* i386-tdep.h: Fix indentation.
* i386-windows-tdep.c: Fix indentation.
* i387-tdep.c: Fix indentation.
* i387-tdep.h: Fix indentation.
* ia64-libunwind-tdep.c: Fix indentation.
* ia64-libunwind-tdep.h: Fix indentation.
* ia64-linux-nat.c: Fix indentation.
* ia64-linux-tdep.c: Fix indentation.
* ia64-tdep.c: Fix indentation.
* ia64-tdep.h: Fix indentation.
* ia64-vms-tdep.c: Fix indentation.
* infcall.c: Fix indentation.
* infcmd.c: Fix indentation.
* inferior.c: Fix indentation.
* infrun.c: Fix indentation.
* iq2000-tdep.c: Fix indentation.
* language.c: Fix indentation.
* linespec.c: Fix indentation.
* linux-fork.c: Fix indentation.
* linux-nat.c: Fix indentation.
* linux-tdep.c: Fix indentation.
* linux-thread-db.c: Fix indentation.
* lm32-tdep.c: Fix indentation.
* m2-lang.c: Fix indentation.
* m2-typeprint.c: Fix indentation.
* m2-valprint.c: Fix indentation.
* m32c-tdep.c: Fix indentation.
* m32r-linux-tdep.c: Fix indentation.
* m32r-tdep.c: Fix indentation.
* m68hc11-tdep.c: Fix indentation.
* m68k-bsd-nat.c: Fix indentation.
* m68k-linux-nat.c: Fix indentation.
* m68k-linux-tdep.c: Fix indentation.
* m68k-tdep.c: Fix indentation.
* machoread.c: Fix indentation.
* macrocmd.c: Fix indentation.
* macroexp.c: Fix indentation.
* macroscope.c: Fix indentation.
* macrotab.c: Fix indentation.
* macrotab.h: Fix indentation.
* main.c: Fix indentation.
* mdebugread.c: Fix indentation.
* mep-tdep.c: Fix indentation.
* mi/mi-cmd-catch.c: Fix indentation.
* mi/mi-cmd-disas.c: Fix indentation.
* mi/mi-cmd-env.c: Fix indentation.
* mi/mi-cmd-stack.c: Fix indentation.
* mi/mi-cmd-var.c: Fix indentation.
* mi/mi-cmds.c: Fix indentation.
* mi/mi-main.c: Fix indentation.
* mi/mi-parse.c: Fix indentation.
* microblaze-tdep.c: Fix indentation.
* minidebug.c: Fix indentation.
* minsyms.c: Fix indentation.
* mips-linux-nat.c: Fix indentation.
* mips-linux-tdep.c: Fix indentation.
* mips-nbsd-tdep.c: Fix indentation.
* mips-tdep.c: Fix indentation.
* mn10300-linux-tdep.c: Fix indentation.
* mn10300-tdep.c: Fix indentation.
* moxie-tdep.c: Fix indentation.
* msp430-tdep.c: Fix indentation.
* namespace.h: Fix indentation.
* nat/fork-inferior.c: Fix indentation.
* nat/gdb_ptrace.h: Fix indentation.
* nat/linux-namespaces.c: Fix indentation.
* nat/linux-osdata.c: Fix indentation.
* nat/netbsd-nat.c: Fix indentation.
* nat/x86-dregs.c: Fix indentation.
* nbsd-nat.c: Fix indentation.
* nbsd-tdep.c: Fix indentation.
* nios2-linux-tdep.c: Fix indentation.
* nios2-tdep.c: Fix indentation.
* nto-procfs.c: Fix indentation.
* nto-tdep.c: Fix indentation.
* objfiles.c: Fix indentation.
* objfiles.h: Fix indentation.
* opencl-lang.c: Fix indentation.
* or1k-tdep.c: Fix indentation.
* osabi.c: Fix indentation.
* osabi.h: Fix indentation.
* osdata.c: Fix indentation.
* p-lang.c: Fix indentation.
* p-typeprint.c: Fix indentation.
* p-valprint.c: Fix indentation.
* parse.c: Fix indentation.
* ppc-linux-nat.c: Fix indentation.
* ppc-linux-tdep.c: Fix indentation.
* ppc-nbsd-nat.c: Fix indentation.
* ppc-nbsd-tdep.c: Fix indentation.
* ppc-obsd-nat.c: Fix indentation.
* ppc-ravenscar-thread.c: Fix indentation.
* ppc-sysv-tdep.c: Fix indentation.
* ppc64-tdep.c: Fix indentation.
* printcmd.c: Fix indentation.
* proc-api.c: Fix indentation.
* producer.c: Fix indentation.
* producer.h: Fix indentation.
* prologue-value.c: Fix indentation.
* prologue-value.h: Fix indentation.
* psymtab.c: Fix indentation.
* python/py-arch.c: Fix indentation.
* python/py-bpevent.c: Fix indentation.
* python/py-event.c: Fix indentation.
* python/py-event.h: Fix indentation.
* python/py-finishbreakpoint.c: Fix indentation.
* python/py-frame.c: Fix indentation.
* python/py-framefilter.c: Fix indentation.
* python/py-inferior.c: Fix indentation.
* python/py-infthread.c: Fix indentation.
* python/py-objfile.c: Fix indentation.
* python/py-prettyprint.c: Fix indentation.
* python/py-registers.c: Fix indentation.
* python/py-signalevent.c: Fix indentation.
* python/py-stopevent.c: Fix indentation.
* python/py-stopevent.h: Fix indentation.
* python/py-threadevent.c: Fix indentation.
* python/py-tui.c: Fix indentation.
* python/py-unwind.c: Fix indentation.
* python/py-value.c: Fix indentation.
* python/py-xmethods.c: Fix indentation.
* python/python-internal.h: Fix indentation.
* python/python.c: Fix indentation.
* ravenscar-thread.c: Fix indentation.
* record-btrace.c: Fix indentation.
* record-full.c: Fix indentation.
* record.c: Fix indentation.
* reggroups.c: Fix indentation.
* regset.h: Fix indentation.
* remote-fileio.c: Fix indentation.
* remote.c: Fix indentation.
* reverse.c: Fix indentation.
* riscv-linux-tdep.c: Fix indentation.
* riscv-ravenscar-thread.c: Fix indentation.
* riscv-tdep.c: Fix indentation.
* rl78-tdep.c: Fix indentation.
* rs6000-aix-tdep.c: Fix indentation.
* rs6000-lynx178-tdep.c: Fix indentation.
* rs6000-nat.c: Fix indentation.
* rs6000-tdep.c: Fix indentation.
* rust-lang.c: Fix indentation.
* rx-tdep.c: Fix indentation.
* s12z-tdep.c: Fix indentation.
* s390-linux-tdep.c: Fix indentation.
* score-tdep.c: Fix indentation.
* ser-base.c: Fix indentation.
* ser-mingw.c: Fix indentation.
* ser-uds.c: Fix indentation.
* ser-unix.c: Fix indentation.
* serial.c: Fix indentation.
* sh-linux-tdep.c: Fix indentation.
* sh-nbsd-tdep.c: Fix indentation.
* sh-tdep.c: Fix indentation.
* skip.c: Fix indentation.
* sol-thread.c: Fix indentation.
* solib-aix.c: Fix indentation.
* solib-darwin.c: Fix indentation.
* solib-frv.c: Fix indentation.
* solib-svr4.c: Fix indentation.
* solib.c: Fix indentation.
* source.c: Fix indentation.
* sparc-linux-tdep.c: Fix indentation.
* sparc-nbsd-tdep.c: Fix indentation.
* sparc-obsd-tdep.c: Fix indentation.
* sparc-ravenscar-thread.c: Fix indentation.
* sparc-tdep.c: Fix indentation.
* sparc64-linux-tdep.c: Fix indentation.
* sparc64-nbsd-tdep.c: Fix indentation.
* sparc64-obsd-tdep.c: Fix indentation.
* sparc64-tdep.c: Fix indentation.
* stabsread.c: Fix indentation.
* stack.c: Fix indentation.
* stap-probe.c: Fix indentation.
* stubs/ia64vms-stub.c: Fix indentation.
* stubs/m32r-stub.c: Fix indentation.
* stubs/m68k-stub.c: Fix indentation.
* stubs/sh-stub.c: Fix indentation.
* stubs/sparc-stub.c: Fix indentation.
* symfile-mem.c: Fix indentation.
* symfile.c: Fix indentation.
* symfile.h: Fix indentation.
* symmisc.c: Fix indentation.
* symtab.c: Fix indentation.
* symtab.h: Fix indentation.
* target-float.c: Fix indentation.
* target.c: Fix indentation.
* target.h: Fix indentation.
* tic6x-tdep.c: Fix indentation.
* tilegx-linux-tdep.c: Fix indentation.
* tilegx-tdep.c: Fix indentation.
* top.c: Fix indentation.
* tracefile-tfile.c: Fix indentation.
* tracepoint.c: Fix indentation.
* tui/tui-disasm.c: Fix indentation.
* tui/tui-io.c: Fix indentation.
* tui/tui-regs.c: Fix indentation.
* tui/tui-stack.c: Fix indentation.
* tui/tui-win.c: Fix indentation.
* tui/tui-winsource.c: Fix indentation.
* tui/tui.c: Fix indentation.
* typeprint.c: Fix indentation.
* ui-out.h: Fix indentation.
* unittests/copy_bitwise-selftests.c: Fix indentation.
* unittests/memory-map-selftests.c: Fix indentation.
* utils.c: Fix indentation.
* v850-tdep.c: Fix indentation.
* valarith.c: Fix indentation.
* valops.c: Fix indentation.
* valprint.c: Fix indentation.
* valprint.h: Fix indentation.
* value.c: Fix indentation.
* value.h: Fix indentation.
* varobj.c: Fix indentation.
* vax-tdep.c: Fix indentation.
* windows-nat.c: Fix indentation.
* windows-tdep.c: Fix indentation.
* xcoffread.c: Fix indentation.
* xml-syscall.c: Fix indentation.
* xml-tdesc.c: Fix indentation.
* xstormy16-tdep.c: Fix indentation.
* xtensa-config.c: Fix indentation.
* xtensa-linux-nat.c: Fix indentation.
* xtensa-linux-tdep.c: Fix indentation.
* xtensa-tdep.c: Fix indentation.
gdbserver/ChangeLog:
* ax.cc: Fix indentation.
* dll.cc: Fix indentation.
* inferiors.h: Fix indentation.
* linux-low.cc: Fix indentation.
* linux-nios2-low.cc: Fix indentation.
* linux-ppc-ipa.cc: Fix indentation.
* linux-ppc-low.cc: Fix indentation.
* linux-x86-low.cc: Fix indentation.
* linux-xtensa-low.cc: Fix indentation.
* regcache.cc: Fix indentation.
* server.cc: Fix indentation.
* tracepoint.cc: Fix indentation.
gdbsupport/ChangeLog:
* common-exceptions.h: Fix indentation.
* event-loop.cc: Fix indentation.
* fileio.cc: Fix indentation.
* filestuff.cc: Fix indentation.
* gdb-dlfcn.cc: Fix indentation.
* gdb_string_view.h: Fix indentation.
* job-control.cc: Fix indentation.
* signals.cc: Fix indentation.
Change-Id: I4bad7ae6be0fbe14168b8ebafb98ffe14964a695
2020-11-02 23:26:14 +08:00
|
|
|
|
GDB_SIGNAL_REALTIME_64 is 64 by definition. */
|
2012-05-25 00:51:47 +08:00
|
|
|
|
retsig = (int) oursig - (int) GDB_SIGNAL_REALTIME_64 + 64;
|
2002-06-10 03:42:11 +08:00
|
|
|
|
}
|
2003-03-27 04:44:39 +08:00
|
|
|
|
|
|
|
|
|
if (retsig >= REALTIME_LO && retsig < REALTIME_HI)
|
|
|
|
|
return retsig;
|
2001-07-20 02:09:11 +08:00
|
|
|
|
#endif
|
2003-03-27 00:29:39 +08:00
|
|
|
|
|
2001-07-20 02:09:11 +08:00
|
|
|
|
*oursig_ok = 0;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal_to_host_p (enum gdb_signal oursig)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
|
|
|
|
int oursig_ok;
|
2012-05-25 00:39:15 +08:00
|
|
|
|
do_gdb_signal_to_host (oursig, &oursig_ok);
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return oursig_ok;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal_to_host (enum gdb_signal oursig)
|
2001-07-20 02:09:11 +08:00
|
|
|
|
{
|
|
|
|
|
int oursig_ok;
|
2012-05-25 00:39:15 +08:00
|
|
|
|
int targ_signo = do_gdb_signal_to_host (oursig, &oursig_ok);
|
2001-07-20 02:09:11 +08:00
|
|
|
|
if (!oursig_ok)
|
|
|
|
|
{
|
|
|
|
|
/* The user might be trying to do "signal SIGSAK" where this system
|
gdb, gdbserver, gdbsupport: fix leading space vs tabs issues
Many spots incorrectly use only spaces for indentation (for example,
there are a lot of spots in ada-lang.c). I've always found it awkward
when I needed to edit one of these spots: do I keep the original wrong
indentation, or do I fix it? What if the lines around it are also
wrong, do I fix them too? I probably don't want to fix them in the same
patch, to avoid adding noise to my patch.
So I propose to fix as much as possible once and for all (hopefully).
One typical counter argument for this is that it makes code archeology
more difficult, because git-blame will show this commit as the last
change for these lines. My counter counter argument is: when
git-blaming, you often need to do "blame the file at the parent commit"
anyway, to go past some other refactor that touched the line you are
interested in, but is not the change you are looking for. So you
already need a somewhat efficient way to do this.
Using some interactive tool, rather than plain git-blame, makes this
trivial. For example, I use "tig blame <file>", where going back past
the commit that changed the currently selected line is one keystroke.
It looks like Magit in Emacs does it too (though I've never used it).
Web viewers of Github and Gitlab do it too. My point is that it won't
really make archeology more difficult.
The other typical counter argument is that it will cause conflicts with
existing patches. That's true... but it's a one time cost, and those
are not conflicts that are difficult to resolve. I have also tried "git
rebase --ignore-whitespace", it seems to work well. Although that will
re-introduce the faulty indentation, so one needs to take care of fixing
the indentation in the patch after that (which is easy).
gdb/ChangeLog:
* aarch64-linux-tdep.c: Fix indentation.
* aarch64-ravenscar-thread.c: Fix indentation.
* aarch64-tdep.c: Fix indentation.
* aarch64-tdep.h: Fix indentation.
* ada-lang.c: Fix indentation.
* ada-lang.h: Fix indentation.
* ada-tasks.c: Fix indentation.
* ada-typeprint.c: Fix indentation.
* ada-valprint.c: Fix indentation.
* ada-varobj.c: Fix indentation.
* addrmap.c: Fix indentation.
* addrmap.h: Fix indentation.
* agent.c: Fix indentation.
* aix-thread.c: Fix indentation.
* alpha-bsd-nat.c: Fix indentation.
* alpha-linux-tdep.c: Fix indentation.
* alpha-mdebug-tdep.c: Fix indentation.
* alpha-nbsd-tdep.c: Fix indentation.
* alpha-obsd-tdep.c: Fix indentation.
* alpha-tdep.c: Fix indentation.
* amd64-bsd-nat.c: Fix indentation.
* amd64-darwin-tdep.c: Fix indentation.
* amd64-linux-nat.c: Fix indentation.
* amd64-linux-tdep.c: Fix indentation.
* amd64-nat.c: Fix indentation.
* amd64-obsd-tdep.c: Fix indentation.
* amd64-tdep.c: Fix indentation.
* amd64-windows-tdep.c: Fix indentation.
* annotate.c: Fix indentation.
* arc-tdep.c: Fix indentation.
* arch-utils.c: Fix indentation.
* arch/arm-get-next-pcs.c: Fix indentation.
* arch/arm.c: Fix indentation.
* arm-linux-nat.c: Fix indentation.
* arm-linux-tdep.c: Fix indentation.
* arm-nbsd-tdep.c: Fix indentation.
* arm-pikeos-tdep.c: Fix indentation.
* arm-tdep.c: Fix indentation.
* arm-tdep.h: Fix indentation.
* arm-wince-tdep.c: Fix indentation.
* auto-load.c: Fix indentation.
* auxv.c: Fix indentation.
* avr-tdep.c: Fix indentation.
* ax-gdb.c: Fix indentation.
* ax-general.c: Fix indentation.
* bfin-linux-tdep.c: Fix indentation.
* block.c: Fix indentation.
* block.h: Fix indentation.
* blockframe.c: Fix indentation.
* bpf-tdep.c: Fix indentation.
* break-catch-sig.c: Fix indentation.
* break-catch-syscall.c: Fix indentation.
* break-catch-throw.c: Fix indentation.
* breakpoint.c: Fix indentation.
* breakpoint.h: Fix indentation.
* bsd-uthread.c: Fix indentation.
* btrace.c: Fix indentation.
* build-id.c: Fix indentation.
* buildsym-legacy.h: Fix indentation.
* buildsym.c: Fix indentation.
* c-typeprint.c: Fix indentation.
* c-valprint.c: Fix indentation.
* c-varobj.c: Fix indentation.
* charset.c: Fix indentation.
* cli/cli-cmds.c: Fix indentation.
* cli/cli-decode.c: Fix indentation.
* cli/cli-decode.h: Fix indentation.
* cli/cli-script.c: Fix indentation.
* cli/cli-setshow.c: Fix indentation.
* coff-pe-read.c: Fix indentation.
* coffread.c: Fix indentation.
* compile/compile-cplus-types.c: Fix indentation.
* compile/compile-object-load.c: Fix indentation.
* compile/compile-object-run.c: Fix indentation.
* completer.c: Fix indentation.
* corefile.c: Fix indentation.
* corelow.c: Fix indentation.
* cp-abi.h: Fix indentation.
* cp-namespace.c: Fix indentation.
* cp-support.c: Fix indentation.
* cp-valprint.c: Fix indentation.
* cris-linux-tdep.c: Fix indentation.
* cris-tdep.c: Fix indentation.
* darwin-nat-info.c: Fix indentation.
* darwin-nat.c: Fix indentation.
* darwin-nat.h: Fix indentation.
* dbxread.c: Fix indentation.
* dcache.c: Fix indentation.
* disasm.c: Fix indentation.
* dtrace-probe.c: Fix indentation.
* dwarf2/abbrev.c: Fix indentation.
* dwarf2/attribute.c: Fix indentation.
* dwarf2/expr.c: Fix indentation.
* dwarf2/frame.c: Fix indentation.
* dwarf2/index-cache.c: Fix indentation.
* dwarf2/index-write.c: Fix indentation.
* dwarf2/line-header.c: Fix indentation.
* dwarf2/loc.c: Fix indentation.
* dwarf2/macro.c: Fix indentation.
* dwarf2/read.c: Fix indentation.
* dwarf2/read.h: Fix indentation.
* elfread.c: Fix indentation.
* eval.c: Fix indentation.
* event-top.c: Fix indentation.
* exec.c: Fix indentation.
* exec.h: Fix indentation.
* expprint.c: Fix indentation.
* f-lang.c: Fix indentation.
* f-typeprint.c: Fix indentation.
* f-valprint.c: Fix indentation.
* fbsd-nat.c: Fix indentation.
* fbsd-tdep.c: Fix indentation.
* findvar.c: Fix indentation.
* fork-child.c: Fix indentation.
* frame-unwind.c: Fix indentation.
* frame-unwind.h: Fix indentation.
* frame.c: Fix indentation.
* frv-linux-tdep.c: Fix indentation.
* frv-tdep.c: Fix indentation.
* frv-tdep.h: Fix indentation.
* ft32-tdep.c: Fix indentation.
* gcore.c: Fix indentation.
* gdb_bfd.c: Fix indentation.
* gdbarch.sh: Fix indentation.
* gdbarch.c: Re-generate
* gdbarch.h: Re-generate.
* gdbcore.h: Fix indentation.
* gdbthread.h: Fix indentation.
* gdbtypes.c: Fix indentation.
* gdbtypes.h: Fix indentation.
* glibc-tdep.c: Fix indentation.
* gnu-nat.c: Fix indentation.
* gnu-nat.h: Fix indentation.
* gnu-v2-abi.c: Fix indentation.
* gnu-v3-abi.c: Fix indentation.
* go32-nat.c: Fix indentation.
* guile/guile-internal.h: Fix indentation.
* guile/scm-cmd.c: Fix indentation.
* guile/scm-frame.c: Fix indentation.
* guile/scm-iterator.c: Fix indentation.
* guile/scm-math.c: Fix indentation.
* guile/scm-ports.c: Fix indentation.
* guile/scm-pretty-print.c: Fix indentation.
* guile/scm-value.c: Fix indentation.
* h8300-tdep.c: Fix indentation.
* hppa-linux-nat.c: Fix indentation.
* hppa-linux-tdep.c: Fix indentation.
* hppa-nbsd-nat.c: Fix indentation.
* hppa-nbsd-tdep.c: Fix indentation.
* hppa-obsd-nat.c: Fix indentation.
* hppa-tdep.c: Fix indentation.
* hppa-tdep.h: Fix indentation.
* i386-bsd-nat.c: Fix indentation.
* i386-darwin-nat.c: Fix indentation.
* i386-darwin-tdep.c: Fix indentation.
* i386-dicos-tdep.c: Fix indentation.
* i386-gnu-nat.c: Fix indentation.
* i386-linux-nat.c: Fix indentation.
* i386-linux-tdep.c: Fix indentation.
* i386-nto-tdep.c: Fix indentation.
* i386-obsd-tdep.c: Fix indentation.
* i386-sol2-nat.c: Fix indentation.
* i386-tdep.c: Fix indentation.
* i386-tdep.h: Fix indentation.
* i386-windows-tdep.c: Fix indentation.
* i387-tdep.c: Fix indentation.
* i387-tdep.h: Fix indentation.
* ia64-libunwind-tdep.c: Fix indentation.
* ia64-libunwind-tdep.h: Fix indentation.
* ia64-linux-nat.c: Fix indentation.
* ia64-linux-tdep.c: Fix indentation.
* ia64-tdep.c: Fix indentation.
* ia64-tdep.h: Fix indentation.
* ia64-vms-tdep.c: Fix indentation.
* infcall.c: Fix indentation.
* infcmd.c: Fix indentation.
* inferior.c: Fix indentation.
* infrun.c: Fix indentation.
* iq2000-tdep.c: Fix indentation.
* language.c: Fix indentation.
* linespec.c: Fix indentation.
* linux-fork.c: Fix indentation.
* linux-nat.c: Fix indentation.
* linux-tdep.c: Fix indentation.
* linux-thread-db.c: Fix indentation.
* lm32-tdep.c: Fix indentation.
* m2-lang.c: Fix indentation.
* m2-typeprint.c: Fix indentation.
* m2-valprint.c: Fix indentation.
* m32c-tdep.c: Fix indentation.
* m32r-linux-tdep.c: Fix indentation.
* m32r-tdep.c: Fix indentation.
* m68hc11-tdep.c: Fix indentation.
* m68k-bsd-nat.c: Fix indentation.
* m68k-linux-nat.c: Fix indentation.
* m68k-linux-tdep.c: Fix indentation.
* m68k-tdep.c: Fix indentation.
* machoread.c: Fix indentation.
* macrocmd.c: Fix indentation.
* macroexp.c: Fix indentation.
* macroscope.c: Fix indentation.
* macrotab.c: Fix indentation.
* macrotab.h: Fix indentation.
* main.c: Fix indentation.
* mdebugread.c: Fix indentation.
* mep-tdep.c: Fix indentation.
* mi/mi-cmd-catch.c: Fix indentation.
* mi/mi-cmd-disas.c: Fix indentation.
* mi/mi-cmd-env.c: Fix indentation.
* mi/mi-cmd-stack.c: Fix indentation.
* mi/mi-cmd-var.c: Fix indentation.
* mi/mi-cmds.c: Fix indentation.
* mi/mi-main.c: Fix indentation.
* mi/mi-parse.c: Fix indentation.
* microblaze-tdep.c: Fix indentation.
* minidebug.c: Fix indentation.
* minsyms.c: Fix indentation.
* mips-linux-nat.c: Fix indentation.
* mips-linux-tdep.c: Fix indentation.
* mips-nbsd-tdep.c: Fix indentation.
* mips-tdep.c: Fix indentation.
* mn10300-linux-tdep.c: Fix indentation.
* mn10300-tdep.c: Fix indentation.
* moxie-tdep.c: Fix indentation.
* msp430-tdep.c: Fix indentation.
* namespace.h: Fix indentation.
* nat/fork-inferior.c: Fix indentation.
* nat/gdb_ptrace.h: Fix indentation.
* nat/linux-namespaces.c: Fix indentation.
* nat/linux-osdata.c: Fix indentation.
* nat/netbsd-nat.c: Fix indentation.
* nat/x86-dregs.c: Fix indentation.
* nbsd-nat.c: Fix indentation.
* nbsd-tdep.c: Fix indentation.
* nios2-linux-tdep.c: Fix indentation.
* nios2-tdep.c: Fix indentation.
* nto-procfs.c: Fix indentation.
* nto-tdep.c: Fix indentation.
* objfiles.c: Fix indentation.
* objfiles.h: Fix indentation.
* opencl-lang.c: Fix indentation.
* or1k-tdep.c: Fix indentation.
* osabi.c: Fix indentation.
* osabi.h: Fix indentation.
* osdata.c: Fix indentation.
* p-lang.c: Fix indentation.
* p-typeprint.c: Fix indentation.
* p-valprint.c: Fix indentation.
* parse.c: Fix indentation.
* ppc-linux-nat.c: Fix indentation.
* ppc-linux-tdep.c: Fix indentation.
* ppc-nbsd-nat.c: Fix indentation.
* ppc-nbsd-tdep.c: Fix indentation.
* ppc-obsd-nat.c: Fix indentation.
* ppc-ravenscar-thread.c: Fix indentation.
* ppc-sysv-tdep.c: Fix indentation.
* ppc64-tdep.c: Fix indentation.
* printcmd.c: Fix indentation.
* proc-api.c: Fix indentation.
* producer.c: Fix indentation.
* producer.h: Fix indentation.
* prologue-value.c: Fix indentation.
* prologue-value.h: Fix indentation.
* psymtab.c: Fix indentation.
* python/py-arch.c: Fix indentation.
* python/py-bpevent.c: Fix indentation.
* python/py-event.c: Fix indentation.
* python/py-event.h: Fix indentation.
* python/py-finishbreakpoint.c: Fix indentation.
* python/py-frame.c: Fix indentation.
* python/py-framefilter.c: Fix indentation.
* python/py-inferior.c: Fix indentation.
* python/py-infthread.c: Fix indentation.
* python/py-objfile.c: Fix indentation.
* python/py-prettyprint.c: Fix indentation.
* python/py-registers.c: Fix indentation.
* python/py-signalevent.c: Fix indentation.
* python/py-stopevent.c: Fix indentation.
* python/py-stopevent.h: Fix indentation.
* python/py-threadevent.c: Fix indentation.
* python/py-tui.c: Fix indentation.
* python/py-unwind.c: Fix indentation.
* python/py-value.c: Fix indentation.
* python/py-xmethods.c: Fix indentation.
* python/python-internal.h: Fix indentation.
* python/python.c: Fix indentation.
* ravenscar-thread.c: Fix indentation.
* record-btrace.c: Fix indentation.
* record-full.c: Fix indentation.
* record.c: Fix indentation.
* reggroups.c: Fix indentation.
* regset.h: Fix indentation.
* remote-fileio.c: Fix indentation.
* remote.c: Fix indentation.
* reverse.c: Fix indentation.
* riscv-linux-tdep.c: Fix indentation.
* riscv-ravenscar-thread.c: Fix indentation.
* riscv-tdep.c: Fix indentation.
* rl78-tdep.c: Fix indentation.
* rs6000-aix-tdep.c: Fix indentation.
* rs6000-lynx178-tdep.c: Fix indentation.
* rs6000-nat.c: Fix indentation.
* rs6000-tdep.c: Fix indentation.
* rust-lang.c: Fix indentation.
* rx-tdep.c: Fix indentation.
* s12z-tdep.c: Fix indentation.
* s390-linux-tdep.c: Fix indentation.
* score-tdep.c: Fix indentation.
* ser-base.c: Fix indentation.
* ser-mingw.c: Fix indentation.
* ser-uds.c: Fix indentation.
* ser-unix.c: Fix indentation.
* serial.c: Fix indentation.
* sh-linux-tdep.c: Fix indentation.
* sh-nbsd-tdep.c: Fix indentation.
* sh-tdep.c: Fix indentation.
* skip.c: Fix indentation.
* sol-thread.c: Fix indentation.
* solib-aix.c: Fix indentation.
* solib-darwin.c: Fix indentation.
* solib-frv.c: Fix indentation.
* solib-svr4.c: Fix indentation.
* solib.c: Fix indentation.
* source.c: Fix indentation.
* sparc-linux-tdep.c: Fix indentation.
* sparc-nbsd-tdep.c: Fix indentation.
* sparc-obsd-tdep.c: Fix indentation.
* sparc-ravenscar-thread.c: Fix indentation.
* sparc-tdep.c: Fix indentation.
* sparc64-linux-tdep.c: Fix indentation.
* sparc64-nbsd-tdep.c: Fix indentation.
* sparc64-obsd-tdep.c: Fix indentation.
* sparc64-tdep.c: Fix indentation.
* stabsread.c: Fix indentation.
* stack.c: Fix indentation.
* stap-probe.c: Fix indentation.
* stubs/ia64vms-stub.c: Fix indentation.
* stubs/m32r-stub.c: Fix indentation.
* stubs/m68k-stub.c: Fix indentation.
* stubs/sh-stub.c: Fix indentation.
* stubs/sparc-stub.c: Fix indentation.
* symfile-mem.c: Fix indentation.
* symfile.c: Fix indentation.
* symfile.h: Fix indentation.
* symmisc.c: Fix indentation.
* symtab.c: Fix indentation.
* symtab.h: Fix indentation.
* target-float.c: Fix indentation.
* target.c: Fix indentation.
* target.h: Fix indentation.
* tic6x-tdep.c: Fix indentation.
* tilegx-linux-tdep.c: Fix indentation.
* tilegx-tdep.c: Fix indentation.
* top.c: Fix indentation.
* tracefile-tfile.c: Fix indentation.
* tracepoint.c: Fix indentation.
* tui/tui-disasm.c: Fix indentation.
* tui/tui-io.c: Fix indentation.
* tui/tui-regs.c: Fix indentation.
* tui/tui-stack.c: Fix indentation.
* tui/tui-win.c: Fix indentation.
* tui/tui-winsource.c: Fix indentation.
* tui/tui.c: Fix indentation.
* typeprint.c: Fix indentation.
* ui-out.h: Fix indentation.
* unittests/copy_bitwise-selftests.c: Fix indentation.
* unittests/memory-map-selftests.c: Fix indentation.
* utils.c: Fix indentation.
* v850-tdep.c: Fix indentation.
* valarith.c: Fix indentation.
* valops.c: Fix indentation.
* valprint.c: Fix indentation.
* valprint.h: Fix indentation.
* value.c: Fix indentation.
* value.h: Fix indentation.
* varobj.c: Fix indentation.
* vax-tdep.c: Fix indentation.
* windows-nat.c: Fix indentation.
* windows-tdep.c: Fix indentation.
* xcoffread.c: Fix indentation.
* xml-syscall.c: Fix indentation.
* xml-tdesc.c: Fix indentation.
* xstormy16-tdep.c: Fix indentation.
* xtensa-config.c: Fix indentation.
* xtensa-linux-nat.c: Fix indentation.
* xtensa-linux-tdep.c: Fix indentation.
* xtensa-tdep.c: Fix indentation.
gdbserver/ChangeLog:
* ax.cc: Fix indentation.
* dll.cc: Fix indentation.
* inferiors.h: Fix indentation.
* linux-low.cc: Fix indentation.
* linux-nios2-low.cc: Fix indentation.
* linux-ppc-ipa.cc: Fix indentation.
* linux-ppc-low.cc: Fix indentation.
* linux-x86-low.cc: Fix indentation.
* linux-xtensa-low.cc: Fix indentation.
* regcache.cc: Fix indentation.
* server.cc: Fix indentation.
* tracepoint.cc: Fix indentation.
gdbsupport/ChangeLog:
* common-exceptions.h: Fix indentation.
* event-loop.cc: Fix indentation.
* fileio.cc: Fix indentation.
* filestuff.cc: Fix indentation.
* gdb-dlfcn.cc: Fix indentation.
* gdb_string_view.h: Fix indentation.
* job-control.cc: Fix indentation.
* signals.cc: Fix indentation.
Change-Id: I4bad7ae6be0fbe14168b8ebafb98ffe14964a695
2020-11-02 23:26:14 +08:00
|
|
|
|
doesn't have SIGSAK. */
|
2011-03-18 21:03:31 +08:00
|
|
|
|
warning (_("Signal %s does not exist on this system."),
|
2012-05-25 00:39:15 +08:00
|
|
|
|
gdb_signal_to_name (oursig));
|
2001-07-20 02:09:11 +08:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
return targ_signo;
|
|
|
|
|
}
|