Date: Wed, 26 May 1999 07:41:04 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: pavenis AT lanet DOT lv, Robert Hoehne cc: djgpp-workers AT delorie DOT com Subject: Re: gdb 4.18 for DJGPP (alpha) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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 (); }