www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/26/00:44:08

Date: Wed, 26 May 1999 07:41:04 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: pavenis AT lanet DOT lv, Robert Hoehne <robert DOT hoehne AT gmx DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: gdb 4.18 for DJGPP (alpha)
In-Reply-To: <B0000088084@stargate.astr.lu.lv>
Message-ID: <Pine.SUN.3.91.990526073713.20715A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019