delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/06/22/17:40:46

From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com, eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Date: Fri, 22 Jun 2001 17:40:39 -0400
MIME-Version: 1.0
Subject: Re: latest rhide and dwarf2
Message-ID: <3B338317.508.4ACF68@localhost>
In-reply-to: <3B337C68.28282.30B172@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12c)
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

>   if (dwarf2_has_info (abfd))
>     {
>       /* DWARF 2 sections */
>       dwarf2_build_psymtabs (objfile, mainline);
>     }

I added this to coffread.c and built a gdb snapshot (a first for me). Then I 
ran into one additional problem.

gdb aborts because 'bfd_get_sign_extended_vma' is defined only for elf. I 
changed that function to return 1 instead of returning an error. After I re-
built gdb, I was able to set a breakpoint in a sample program and step 
through the program.

So for gdb to support dwarf2 debugging, the coff symbol reading routined 
needs to read in the dwarf2 info when present and 'bfd_get_sign_extended_vma' 
needs work to support coff.

Mark

- Raw text -


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