diff options
author | Gary Benson <gbenson@redhat.com> | 2014-06-19 10:53:12 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2014-06-19 10:56:00 +0100 |
commit | 3a8ee006fb19680c444993a99a4fe3a64dd40a39 (patch) | |
tree | 2025b8ad7f91569a3c221bb80e870aa6146da645 /gdb/config | |
parent | 322a8e06b9675df9dfaaae956538b6cc8a695d4a (diff) | |
download | gdb-3a8ee006fb19680c444993a99a4fe3a64dd40a39.zip gdb-3a8ee006fb19680c444993a99a4fe3a64dd40a39.tar.gz gdb-3a8ee006fb19680c444993a99a4fe3a64dd40a39.tar.bz2 |
Create nat/i386-dregs.c
This commit moves code to be shared from i386-{nat,low}.[ch]
into a new file, nat/i386-dregs.c.
gdb/
2014-06-19 Gary Benson <gbenson@redhat.com>
* nat/i386-dregs.c: New file.
* Makefile.in (i386-dregs.o): New rule.
* config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
* config/i386/cygwin64.mh (NATDEPFILES): Likewise.
* config/i386/darwin.mh (NATDEPFILES): Likewise.
* config/i386/fbsd.mh (NATDEPFILES): Likewise.
* config/i386/fbsd64.mh (NATDEPFILES): Likewise.
* config/i386/go32.mh (NATDEPFILES): Likewise.
* config/i386/linux.mh (NATDEPFILES): Likewise.
* config/i386/linux64.mh (NATDEPFILES): Likewise.
* config/i386/mingw.mh (NATDEPFILES): Likewise.
* config/i386/mingw64.mh (NATDEPFILES): Likewise.
* i386-nat.h (debug_hw_points): New declaration.
* i386-nat.c (breakpoint.h): Remove include.
(command.h): Likewise.
(target.h): Likewise.
(gdb_assert.h): Likewise.
(debug_hw_points): Made nonstatic.
(debug_printf): Now in i386-dregs.c.
(TARGET_HAS_DR_LEN_8): Likewise.
(DR_CONTROL_SHIFT): Likewise.
(DR_CONTROL_SIZE): Likewise.
(DR_RW_EXECUTE): Likewise.
(DR_RW_WRITE): Likewise.
(DR_RW_READ): Likewise.
(DR_RW_IORW): Likewise.
(DR_LEN_1): Likewise.
(DR_LEN_2): Likewise.
(DR_LEN_4): Likewise.
(DR_LEN_8): Likewise.
(DR_LOCAL_ENABLE_SHIFT): Likewise.
(DR_GLOBAL_ENABLE_SHIFT): Likewise.
(DR_ENABLE_SIZE): Likewise.
(DR_LOCAL_SLOWDOWN): Likewise.
(DR_GLOBAL_SLOWDOWN): Likewise.
(DR_CONTROL_RESERVED): Likewise.
(I386_DR_CONTROL_MASK): Likewise.
(I386_DR_VACANT): Likewise.
(I386_DR_LOCAL_ENABLE): Likewise.
(I386_DR_GLOBAL_ENABLE): Likewise.
(I386_DR_DISABLE): Likewise.
(I386_DR_SET_RW_LEN): Likewise.
(I386_DR_GET_RW_LEN): Likewise.
(I386_DR_WATCH_HIT): Likewise.
(i386_wp_op_t): Likewise.
(i386_show_dr): Likewise.
(i386_length_and_rw_bits): Likewise.
(i386_insert_aligned_watchpoint): Likewise.
(i386_remove_aligned_watchpoint): Likewise.
(i386_handle_nonaligned_watchpoint): Likewise.
(i386_update_inferior_debug_regs): Likewise.
(i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
(i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
(i386_region_ok_for_watchpoint):
Use i386_dr_region_ok_for_watchpoint.
(i386_stopped_data_address): Use i386_dr_stopped_data_address.
gdb/gdbserver/
2014-06-19 Gary Benson <gbenson@redhat.com>
* Makefile.in (i386-dregs.o): New rule.
* configure.srv: Add i386-dregs.o to all targets using i386-low.o.
* i386-low.c (target.h): Remove include.
(TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
(DR_CONTROL_SHIFT): Likewise.
(DR_CONTROL_SIZE): Likewise.
(DR_RW_EXECUTE): Likewise.
(DR_RW_WRITE): Likewise.
(DR_RW_READ): Likewise.
(DR_RW_IORW): Likewise.
(DR_LEN_1): Likewise.
(DR_LEN_2): Likewise.
(DR_LEN_4): Likewise.
(DR_LEN_8): Likewise.
(DR_LOCAL_ENABLE_SHIFT): Likewise.
(DR_GLOBAL_ENABLE_SHIFT): Likewise.
(DR_ENABLE_SIZE): Likewise.
(DR_LOCAL_SLOWDOWN): Likewise.
(DR_GLOBAL_SLOWDOWN): Likewise.
(DR_CONTROL_RESERVED): Likewise.
(I386_DR_CONTROL_MASK): Likewise.
(I386_DR_VACANT): Likewise.
(I386_DR_LOCAL_ENABLE): Likewise.
(I386_DR_GLOBAL_ENABLE): Likewise.
(I386_DR_DISABLE): Likewise.
(I386_DR_SET_RW_LEN): Likewise.
(I386_DR_GET_RW_LEN): Likewise.
(I386_DR_WATCH_HIT): Likewise.
(i386_wp_op_t): Likewise.
(i386_show_dr): Likewise.
(i386_length_and_rw_bits): Likewise.
(i386_insert_aligned_watchpoint): Likewise.
(i386_remove_aligned_watchpoint): Likewise.
(i386_handle_nonaligned_watchpoint): Likewise.
i386_update_inferior_debug_regs(): Likewise.
(i386_dr_insert_watchpoint): Likewise.
(i386_dr_remove_watchpoint): Likewise.
(i386_dr_region_ok_for_watchpoint): Likewise.
(i386_dr_stopped_data_address): Likewise.
(i386_dr_stopped_by_watchpoint): Likewise.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i386/cygwin.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/cygwin64.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/darwin.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/fbsd.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/fbsd64.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/go32.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/linux.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/linux64.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/mingw.mh | 2 | ||||
-rw-r--r-- | gdb/config/i386/mingw64.mh | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/gdb/config/i386/cygwin.mh b/gdb/config/i386/cygwin.mh index b704158..07f06f2 100644 --- a/gdb/config/i386/cygwin.mh +++ b/gdb/config/i386/cygwin.mh @@ -1,3 +1,3 @@ MH_CFLAGS= -NATDEPFILES= i386-nat.o windows-nat.o i386-windows-nat.o +NATDEPFILES= i386-nat.o i386-dregs.o windows-nat.o i386-windows-nat.o XM_CLIBS= diff --git a/gdb/config/i386/cygwin64.mh b/gdb/config/i386/cygwin64.mh index 1c21fc6..5ce3095 100644 --- a/gdb/config/i386/cygwin64.mh +++ b/gdb/config/i386/cygwin64.mh @@ -17,4 +17,4 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. */ -NATDEPFILES= i386-nat.o windows-nat.o amd64-windows-nat.o +NATDEPFILES= i386-nat.o i386-dregs.o windows-nat.o amd64-windows-nat.o diff --git a/gdb/config/i386/darwin.mh b/gdb/config/i386/darwin.mh index 190d56c..bd4d57e 100644 --- a/gdb/config/i386/darwin.mh +++ b/gdb/config/i386/darwin.mh @@ -1,4 +1,4 @@ # Host: IA86 running Darwin NATDEPFILES = fork-child.o darwin-nat.o \ - i386-darwin-nat.o i386-nat.o amd64-nat.o darwin-nat-info.o + i386-darwin-nat.o i386-nat.o i386-dregs.o amd64-nat.o darwin-nat-info.o diff --git a/gdb/config/i386/fbsd.mh b/gdb/config/i386/fbsd.mh index 2c9cd9a..7aa6a69 100644 --- a/gdb/config/i386/fbsd.mh +++ b/gdb/config/i386/fbsd.mh @@ -1,6 +1,6 @@ # Host: FreeBSD/i386 NATDEPFILES= fork-child.o inf-ptrace.o \ - fbsd-nat.o i386-nat.o i386bsd-nat.o i386fbsd-nat.o \ + fbsd-nat.o i386-nat.o i386-dregs.o i386bsd-nat.o i386fbsd-nat.o \ bsd-kvm.o NAT_FILE= nm-fbsd.h HAVE_NATIVE_GCORE_HOST = 1 diff --git a/gdb/config/i386/fbsd64.mh b/gdb/config/i386/fbsd64.mh index c719a17..c37f460 100644 --- a/gdb/config/i386/fbsd64.mh +++ b/gdb/config/i386/fbsd64.mh @@ -1,7 +1,7 @@ # Host: FreeBSD/amd64 NATDEPFILES= fork-child.o inf-ptrace.o \ fbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \ - bsd-kvm.o i386-nat.o + bsd-kvm.o i386-nat.o i386-dregs.o HAVE_NATIVE_GCORE_HOST = 1 LOADLIBES= -lkvm diff --git a/gdb/config/i386/go32.mh b/gdb/config/i386/go32.mh index 9cebf01..1b8ce86 100644 --- a/gdb/config/i386/go32.mh +++ b/gdb/config/i386/go32.mh @@ -3,7 +3,7 @@ # We include several header files from config/djgpp MH_CFLAGS= -I$(srcdir)/config/djgpp -NATDEPFILES= go32-nat.o i386-nat.o +NATDEPFILES= go32-nat.o i386-nat.o i386-dregs.o HOST_IPC= CC= gcc diff --git a/gdb/config/i386/linux.mh b/gdb/config/i386/linux.mh index 10a2584..be18dcf 100644 --- a/gdb/config/i386/linux.mh +++ b/gdb/config/i386/linux.mh @@ -2,7 +2,7 @@ NAT_FILE= config/nm-linux.h NATDEPFILES= inf-ptrace.o fork-child.o \ - i386-nat.o i386-linux-nat.o \ + i386-nat.o i386-dregs.o i386-linux-nat.o \ proc-service.o linux-thread-db.o \ linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \ linux-btrace.o linux-waitpid.o diff --git a/gdb/config/i386/linux64.mh b/gdb/config/i386/linux64.mh index 686c363..3126b75 100644 --- a/gdb/config/i386/linux64.mh +++ b/gdb/config/i386/linux64.mh @@ -1,6 +1,6 @@ # Host: GNU/Linux x86-64 NATDEPFILES= inf-ptrace.o fork-child.o \ - i386-nat.o amd64-nat.o amd64-linux-nat.o \ + i386-nat.o i386-dregs.o amd64-nat.o amd64-linux-nat.o \ linux-nat.o linux-osdata.o \ proc-service.o linux-thread-db.o linux-fork.o \ linux-procfs.o linux-ptrace.o linux-btrace.o \ diff --git a/gdb/config/i386/mingw.mh b/gdb/config/i386/mingw.mh index b704158..07f06f2 100644 --- a/gdb/config/i386/mingw.mh +++ b/gdb/config/i386/mingw.mh @@ -1,3 +1,3 @@ MH_CFLAGS= -NATDEPFILES= i386-nat.o windows-nat.o i386-windows-nat.o +NATDEPFILES= i386-nat.o i386-dregs.o windows-nat.o i386-windows-nat.o XM_CLIBS= diff --git a/gdb/config/i386/mingw64.mh b/gdb/config/i386/mingw64.mh index ba6fd9f..740f508 100644 --- a/gdb/config/i386/mingw64.mh +++ b/gdb/config/i386/mingw64.mh @@ -1 +1 @@ -NATDEPFILES= i386-nat.o windows-nat.o amd64-windows-nat.o +NATDEPFILES= i386-nat.o i386-dregs.o windows-nat.o amd64-windows-nat.o |