Mail Archives: djgpp-workers/1999/05/26/05:11:33
Confirmed. Seems to work.
Andris
PS. Now we have more than in Linux as hbreak didn't work for me
with gdb-4.18.
On 26 May 99, at 7:41, Eli Zaretskii wrote:
>
> On Tue, 25 May 1999 pavenis AT lanet DOT lv wrote:
>
> > I got SIGTRAP only on hardware breakpoints (eg. hbreak).
>
> The following simple patch seems to make hbreak work for me. (You may
> need to run configure, as I am not sure the Makefile copies nm-go32.h
> into nm.h.)
>
> I have no idea why was DECR_PC_AFTER_HW_BREAK set to zero; I think 1 is
> the correct value.
>
> Watchpoints still don't work, at least sometimes, but that is the case
> with Robert's binary (and with GDB 4.16) as well.
>
> *** gdb/config/i386/nm-go32.h~ Wed May 5 23:06:26 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 (); }
>
- Raw text -