diff options
author | Doug Evans <dje@google.com> | 2009-03-02 00:45:13 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-03-02 00:45:13 +0000 |
commit | 2aecd87f56afd1168356ad2d2efbbc7bd1bc31db (patch) | |
tree | f111694f5d2c4c11c934c86561bb0bdd10d9a588 /gdb/gdbserver | |
parent | 04e2c417f9d55d3a9abf23a78a36a863886b8059 (diff) | |
download | gdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.zip gdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.tar.gz gdb-2aecd87f56afd1168356ad2d2efbbc7bd1bc31db.tar.bz2 |
* Makefile.in (GDB_CFLAGS): Add -I$(srcdir)/common.
(init.c): signals/ -> common/.
(signals.o): Update.
* target.h (target_signal_to_string,target_signal_to_string)
(target_signal_from_name,target_signal_to_host_p)
(target_signal_from_host,target_signal_to_host): Move to ...
* common/gdb_signals.h: ... here. New file.
* common/signals.c: Moved here from signals/signals.c.
#include gdb_signals.h, remove #include of target.h in gdb case.
(target_signal_from_command,default_target_signal_to_host)
(default_target_signal_from_host): Move inside #ifndef GDBSERVER.
* gdbserver/Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
(server_h): Add gdb_signals.h.
(signals.o): Update.
* server.h (target_signal_from_host,target_signal_to_host_p)
(target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/gdbserver/Makefile.in | 7 | ||||
-rw-r--r-- | gdb/gdbserver/server.h | 8 |
3 files changed, 13 insertions, 10 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 70cc4d5..1f3752e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,11 @@ +2009-03-01 Doug Evans <dje@google.com> + + * gdbserver/Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common. + (server_h): Add gdb_signals.h. + (signals.o): Update. + * server.h (target_signal_from_host,target_signal_to_host_p) + (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h. + 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr> * remote-utils.c (getpkt): Also generate remote-debug diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index 520b63e..27878c2 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -74,7 +74,8 @@ INCLUDE_DEP = $$(INCLUDE_DIR) # -I. for config files. # -I${srcdir} for our headers. # -I$(srcdir)/../regformats for regdef.h. -INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../regformats -I$(INCLUDE_DIR) +INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \ + -I$(srcdir)/../regformats -I$(INCLUDE_DIR) # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS # from the config/ directory. @@ -263,7 +264,7 @@ regdat_sh = $(srcdir)/../regformats/regdat.sh regdef_h = $(srcdir)/../regformats/regdef.h regcache_h = $(srcdir)/regcache.h server_h = $(srcdir)/server.h $(regcache_h) config.h $(srcdir)/target.h \ - $(srcdir)/mem-break.h + $(srcdir)/mem-break.h $(srcdir)/../common/gdb_signals.h hostio.o: hostio.c $(server_h) hostio-errno.o: hostio-errno.c $(server_h) @@ -278,7 +279,7 @@ thread-db.o: thread-db.c $(server_h) $(gdb_proc_service_h) utils.o: utils.c $(server_h) gdbreplay.o: gdbreplay.c config.h -signals.o: ../signals/signals.c $(server_h) +signals.o: ../common/signals.c $(server_h) $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER memmem.o: ../gnulib/memmem.c diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 6e4dfd8..db750bd 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -110,7 +110,7 @@ struct dll_info #include "regcache.h" #include "gdb/signals.h" - +#include "gdb_signals.h" #include "target.h" #include "mem-break.h" @@ -265,12 +265,6 @@ void buffer_xml_printf (struct buffer *buffer, const char *format, ...) #define buffer_grow_str0(BUFFER,STRING) \ buffer_grow (BUFFER, STRING, strlen (STRING) + 1) -/* Functions from ``signals.c''. */ -enum target_signal target_signal_from_host (int hostsig); -int target_signal_to_host_p (enum target_signal oursig); -int target_signal_to_host (enum target_signal oursig); -const char *target_signal_to_name (enum target_signal); - /* Functions from utils.c */ void *xmalloc (size_t) ATTR_MALLOC; |