This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2][RFC] Rename target_signal to gdb_signal


Rename enum target_signal => enum gdb_signal

So the subject of "enum target_signal" and target_signal_from_host's
confusing naming came up again in the "MIPS Linux signals" thread.

>From the discussion, it seems everyone would be at least happy with
the target_signal => gdb_signal rename (and that is also suggested in
PR7205).

So I took a few minutes and did

      s/target_signal/gdb_signal/g
      s/TARGET_SIGNAL_/GDB_SIGNAL_/g

over the whole src tree.  I also regenerated gdbarch.h|c , and
reindented a couple things (realigning function parameters).

GDB still builds fine for me on x86_64 Fedora 16.  That doesn't cover
the sim, or many other native-only bits, but I think it's likely that
no problems will arise (other than merge conflict problems, that is).

What do people think of this?  Should we do it?

Ignore the diffstat on the individual patches.  There seems to be a
bug in stgit somewhere that messes the diffstat generation.  The
diffstat below should be correct.

---

Pedro Alves (2):
      s/target_signal/gdb_signal/g
      s/TARGET_SIGNAL_/GDB_SIGNAL_/g


 gdb/aix-thread.c                   |    8 +-
 gdb/amd64-linux-tdep.c             |    2 +-
 gdb/arch-utils.c                   |   10 +-
 gdb/arch-utils.h                   |    6 +-
 gdb/breakpoint.c                   |    6 +-
 gdb/bsd-uthread.c                  |    2 +-
 gdb/common/agent.c                 |    6 +-
 gdb/common/gdb_signals.h           |   24 ++--
 gdb/common/signals.c               |  274 ++++++++++++++++----------------
 gdb/corelow.c                      |   14 +-
 gdb/darwin-nat.c                   |   26 ++--
 gdb/defs.h                         |    2 +-
 gdb/fbsd-nat.c                     |    6 +-
 gdb/fork-child.c                   |   12 +-
 gdb/gdbarch.c                      |   60 ++++----
 gdb/gdbarch.h                      |   16 +-
 gdb/gdbarch.sh                     |    6 +-
 gdb/gdbserver/linux-low.c          |   30 ++--
 gdb/gdbserver/lynx-low.c           |    8 +-
 gdb/gdbserver/nto-low.c            |   10 +-
 gdb/gdbserver/server.c             |   38 +++---
 gdb/gdbserver/spu-low.c            |    6 +-
 gdb/gdbserver/target.c             |    8 +-
 gdb/gdbserver/target.h             |    4 +-
 gdb/gdbserver/win32-low.c          |   56 ++++----
 gdb/gdbthread.h                    |    2 +-
 gdb/gnu-nat.c                      |   28 ++--
 gdb/go32-nat.c                     |   90 ++++++------
 gdb/i386-linux-nat.c               |    4 +-
 gdb/i386-linux-tdep.c              |    2 +-
 gdb/i386fbsd-nat.c                 |    4 +-
 gdb/ia64-hpux-nat.c                |    4 +-
 gdb/inf-child.c                    |    4 +-
 gdb/inf-ptrace.c                   |    6 +-
 gdb/inf-ttrace.c                   |    8 +-
 gdb/infcall.c                      |    2 +-
 gdb/infcmd.c                       |   52 +++---
 gdb/inferior.h                     |    8 +-
 gdb/infrun.c                       |  282 +++++++++++++++++-----------------
 gdb/linux-nat.c                    |   78 +++++-----
 gdb/linux-tdep.c                   |   12 +-
 gdb/linux-tdep.h                   |    2 +-
 gdb/linux-thread-db.c              |    8 +-
 gdb/mi/mi-main.c                   |    2 +-
 gdb/monitor.c                      |    4 +-
 gdb/nto-procfs.c                   |   20 ++--
 gdb/nto-tdep.c                     |    6 +-
 gdb/procfs.c                       |   28 ++--
 gdb/python/py-inferior.c           |    2 +-
 gdb/python/py-signalevent.c        |    4 +-
 gdb/python/py-stopevent.c          |    6 +-
 gdb/python/py-stopevent.h          |    4 +-
 gdb/ravenscar-thread.c             |    4 +-
 gdb/record.c                       |   36 ++--
 gdb/remote-m32r-sdi.c              |   12 +-
 gdb/remote-mips.c                  |   12 +-
 gdb/remote-sim.c                   |   14 +-
 gdb/remote.c                       |   32 ++--
 gdb/rs6000-nat.c                   |    2 +-
 gdb/sol-thread.c                   |    2 +-
 gdb/solib-irix.c                   |    4 +-
 gdb/solib-osf.c                    |    4 +-
 gdb/solib-spu.c                    |    2 +-
 gdb/solib-sunos.c                  |    4 +-
 gdb/solib-svr4.c                   |    4 +-
 gdb/spu-linux-nat.c                |    2 +-
 gdb/target.c                       |   12 +-
 gdb/target.h                       |   14 +-
 gdb/testsuite/gdb.base/signals.exp |    4 +-
 gdb/windows-nat.c                  |   72 +++++-----
 include/gdb/callback.h             |    2 +-
 include/gdb/signals.def            |  300 ++++++++++++++++++------------------
 include/gdb/signals.h              |    4 +-
 sim/arm/wrapper.c                  |    6 +-
 sim/avr/interp.c                   |    6 +-
 sim/common/sim-signal.c            |   22 ++--
 sim/common/sim-signal.h            |    2 +-
 sim/cr16/interp.c                  |    6 +-
 sim/d10v/interp.c                  |    4 +-
 sim/erc32/interf.c                 |    4 +-
 sim/m32c/gdb-if.c                  |   20 ++--
 sim/ppc/psim.c                     |    2 +-
 sim/ppc/sim_calls.c                |    4 +-
 sim/rl78/gdb-if.c                  |   22 ++--
 sim/rx/gdb-if.c                    |    8 +-
 85 files changed, 980 insertions(+), 980 deletions(-)

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]