This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[eliz@is.elta.co.il: Hardware breakpoints in DJGPP port of GDB]
- To: gdb-patches@sourceware.cygnus.com
- Subject: [eliz@is.elta.co.il: Hardware breakpoints in DJGPP port of GDB]
- From: DJ Delorie <dj@delorie.com>
- Date: Sun, 27 Jun 1999 13:47:55 -0400
------- Start of forwarded message -------
Date: Sun, 27 Jun 1999 18:47:54 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
X-Sender: eliz@is
To: gdb-patches@sourceware.cygnus.com
cc: DJ Delorie <dj@delorie.com>
Subject: Hardware breakpoints in DJGPP port of GDB
Content-Type: TEXT/PLAIN; charset=US-ASCII
The following change resurrects hardware breakpoints in the DJGPP port of
GDB, and avoid referencing a char array beyond its end:
1999-06-26 Eli Zaretskii <eliz@is.elta.co.il>
* config/i386/xm-go32.h (ROOTED_P): Don't reference X[1] if X[0]
is a null character.
* config/i386/nm-go32.h (DECR_PC_AFTER_HW_BREAK): Define to 1.
*** cvs/gdb/config/i386/xm-go32.h Mon Apr 26 21:26:22 1999
- --- gdb/config/i386/xm-go32.h Fri May 21 09:45:34 1999
***************
*** 25,31 ****
#define SLASH_P(X) ((X)=='\\' || (X) == '/')
! #define ROOTED_P(X) ((SLASH_P((X)[0]))|| ((X)[1] ==':'))
#define SLASH_CHAR '/'
#define SLASH_STRING "/"
- --- 25,31 ----
#define SLASH_P(X) ((X)=='\\' || (X) == '/')
! #define ROOTED_P(X) ((SLASH_P((X)[0])) || ((X)[0] && (X)[1] ==':'))
#define SLASH_CHAR '/'
#define SLASH_STRING "/"
*** cvs/gdb/config/i386/nm-go32.h Tue Apr 27 04:26:18 1999
- --- gdb/config/i386/nm-go32.h Tue May 25 20:13:40 1999
***************
*** 48,54 ****
#define target_remove_hw_breakpoint(addr, shadow) \
go32_remove_hw_breakpoint(addr, shadow)
! #define DECR_PC_AFTER_HW_BREAK 0
#undef FLOAT_INFO
#define FLOAT_INFO { i386_go32_float_info (); }
- --- 48,54 ----
#define target_remove_hw_breakpoint(addr, shadow) \
go32_remove_hw_breakpoint(addr, shadow)
! #define DECR_PC_AFTER_HW_BREAK 1
#undef FLOAT_INFO
#define FLOAT_INFO { i386_go32_float_info (); }
------- End of forwarded message -------