diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-04-01 10:48:48 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-04-01 10:48:48 +0000 |
commit | 7bf0983e946fee707de4cd03ecd990c550cd9c38 (patch) | |
tree | ff7fb0ea3fddc277f3dbf68f7b3c894a06696fe1 /gdb | |
parent | b37052ae3bd1f55e339925e58102c5d972b7cc62 (diff) | |
download | gdb-7bf0983e946fee707de4cd03ecd990c550cd9c38.zip gdb-7bf0983e946fee707de4cd03ecd990c550cd9c38.tar.gz gdb-7bf0983e946fee707de4cd03ecd990c550cd9c38.tar.bz2 |
* i386-linux-nat.c (i386_linux_dr_get): Change type of return
value to `unsigned long'. Change type of `value' to `unsigned
long'.
(i386_linux_dr_set): Change type of second argument to `unsigned
long'.
(i386_linux_dr_set_control): Change type of first argument to
`unsigned long'.
(i386_linux_dr_get_status): Change type of return value to
unsigned long.
* config/i386/nm-linux.h (i386_linux_dr_set_control,
i386_linux_dr_get_status): Adjust prototypes accordingly.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 14 | ||||
-rw-r--r-- | gdb/config/i386/nm-linux.h | 4 | ||||
-rw-r--r-- | gdb/i386-linux-nat.c | 12 |
3 files changed, 22 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2263eda..3bc5c4c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2001-04-01 Mark Kettenis <kettenis@gnu.org> + + * i386-linux-nat.c (i386_linux_dr_get): Change type of return + value to `unsigned long'. Change type of `value' to `unsigned + long'. + (i386_linux_dr_set): Change type of second argument to `unsigned + long'. + (i386_linux_dr_set_control): Change type of first argument to + `unsigned long'. + (i386_linux_dr_get_status): Change type of return value to + unsigned long. + * config/i386/nm-linux.h (i386_linux_dr_set_control, + i386_linux_dr_get_status): Adjust prototypes accordingly. + 2001-03-31 Kevin Buettner <kevinb@redhat.com> * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h index 15b373e..dcdbc03 100644 --- a/gdb/config/i386/nm-linux.h +++ b/gdb/config/i386/nm-linux.h @@ -43,7 +43,7 @@ extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum); /* Provide access to the i386 hardware debugging registers. */ -extern void i386_linux_dr_set_control (long control); +extern void i386_linux_dr_set_control (unsigned long control); #define I386_DR_LOW_SET_CONTROL(control) \ i386_linux_dr_set_control (control) @@ -55,7 +55,7 @@ extern void i386_linux_dr_reset_addr (int regnum); #define I386_DR_LOW_RESET_ADDR(regnum) \ i386_linux_dr_reset_addr (regnum) -extern long i386_linux_dr_get_status (void); +extern unsigned long i386_linux_dr_get_status (void); #define I386_DR_LOW_GET_STATUS() \ i386_linux_dr_get_status () diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index 66b0159..114e4ce 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -701,11 +701,11 @@ store_inferior_registers (int regno) } -static long +static unsigned long i386_linux_dr_get (int regnum) { int tid; - long value; + unsigned long value; /* FIXME: kettenis/2001-01-29: It's not clear what we should do with multi-threaded processes here. For now, pretend there is just @@ -731,7 +731,7 @@ i386_linux_dr_get (int regnum) } static void -i386_linux_dr_set (int regnum, long value) +i386_linux_dr_set (int regnum, unsigned long value) { int tid; @@ -748,7 +748,7 @@ i386_linux_dr_set (int regnum, long value) } void -i386_linux_dr_set_control (long control) +i386_linux_dr_set_control (unsigned long control) { i386_linux_dr_set (DR_CONTROL, control); } @@ -769,7 +769,7 @@ i386_linux_dr_reset_addr (int regnum) i386_linux_dr_set (DR_FIRSTADDR + regnum, 0L); } -long +unsigned long i386_linux_dr_get_status (void) { return i386_linux_dr_get (DR_STATUS); @@ -916,7 +916,7 @@ child_resume (int pid, int step, enum target_signal signal) CORE_ADDR sp = read_register (SP_REGNUM); CORE_ADDR addr = sp; unsigned long int eflags; - + if (syscall == SYS_rt_sigreturn) addr = read_memory_integer (sp + 8, 4) + 20; |