delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/22/07:19:00

Date: Wed, 22 Aug 2001 14:02:50 +0300 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: "Mark E." <snowball3 AT bigfoot DOT com>
Cc: djgpp-workers AT delorie DOT com, binutils AT sources DOT redhat DOT com
Subject: Re: rhgdb and dwarf2 oddity
In-Reply-To: <3B82C0E4.31510.103144@localhost>
Message-ID: <Pine.A41.4.05.10108221359310.46608-100000@ieva06.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Tue, 21 Aug 2001, Mark E. wrote:

> Hi all,
> 
> You can finally debug programs using dwarf2 with rhgdb/rhide after applying 
> the dwarf2 section alignment fixes for binutils I posted to the binutils 
> list. 
> 
> I've found an anomaly debugging dwarf2 with rhgdb (didn't test rhide). When I 
> set a breakpoint at a line with dwarf2 info, rhgbd sets the breakpoint 
> without complaint. Quit rhgdb and then run it again with the same program. 
> This time rhgdb complains the breakpoint just set is invalid. But running the 
> program with Run | Run generates no complaint like an invalid breakpoint 
> would, and the program does stop at the breakpoint.
> 

Had to add missing comma to build binutils. No real testing yet
though

Andris
 
--- src/bfd/coff-stgo32.c~1     Wed Aug 22 02:00:48 2001
+++ src/bfd/coff-stgo32.c       Wed Aug 22 14:02:01 2001
@@ -49,7 +49,7 @@
 { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 4 }, \
 { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
-  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 } \
+  COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
 { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi"), \
   COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }


- Raw text -


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