Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] coffread.c: support dwarf2 info
@ 2001-06-23  9:08 Mark E.
  2001-06-28  4:55 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Mark E. @ 2001-06-23  9:08 UTC (permalink / raw)
  To: gdb-patches

Hello folks,
A few months ago I successfully added coff support for dwarf2 info to 
binutils so djgpp debuggers could use it. And the new version of gcc has been 
configured to generate dwarf2 info. GDB just needs a small change to (almost) 
complete the chain.

I've altered coffread.c to read in dwarf2 info just like in elfread.c. Please 
consider commiting the following patch:

gdb/Changelog

2001-06-23  Mark Elbrecht  <snowball@bigfoot.com>

	* coffread.c (coff_symfile_read): Parse DWARF2 info if present.

*** coffread.c.orig	Tue May 29 06:45:10 2001
--- coffread.c	Fri Jun 22 17:02:56 2001
*************** coff_symfile_read (struct objfile *objfi
*** 689,694 ****
--- 689,699 ----
  			       info->stabsects,
  			       info->stabstrsect->filepos, stabstrsize);
      }
+   if (dwarf2_has_info (abfd))
+     {
+       /* DWARF 2 sections */
+       dwarf2_build_psymtabs (objfile, mainline);
+     }
  
    do_cleanups (back_to);
  }

After that, only one obstacle remains. The dwarf2 reader uses 
'bfd_get_sign_extended_vma' from the bfd library. For whatever reason, that 
function only works with the elf format. But that's not a program that you 
folks can fix since it's in the bfd library. After I hacked it to return a 
legit value, I was able to set breakpoints and step through programs 
containing dwarf2 info.

Mark


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] coffread.c: support dwarf2 info
  2001-06-23  9:08 [RFA] coffread.c: support dwarf2 info Mark E.
@ 2001-06-28  4:55 ` Eli Zaretskii
  2001-06-29  5:44   ` Philippe De Muyter
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2001-06-28  4:55 UTC (permalink / raw)
  To: gdb-patches; +Cc: snowball3, phdm

> From: "Mark E." <snowball3@bigfoot.com>
> Date: Sat, 23 Jun 2001 12:07:50 -0400
> 
> A few months ago I successfully added coff support for dwarf2 info to 
> binutils so djgpp debuggers could use it. And the new version of gcc has been 
> configured to generate dwarf2 info. GDB just needs a small change to (almost) 
> complete the chain.
> 
> I've altered coffread.c to read in dwarf2 info just like in
> elfread.c. Please consider commiting the following patch:

Ping!  No one responded to this until now.

According to MAINTAINERS:

   coff reader           Philippe De Muyter      phdm@macqel.be

Philippe, could you please look at this?  Thanks.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] coffread.c: support dwarf2 info
  2001-06-28  4:55 ` Eli Zaretskii
@ 2001-06-29  5:44   ` Philippe De Muyter
  2001-07-01  3:05     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe De Muyter @ 2001-06-29  5:44 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb-patches, snowball3

Eli Zaretskii wrote :
> > From: "Mark E." <snowball3@bigfoot.com>
> > Date: Sat, 23 Jun 2001 12:07:50 -0400
> > 
> > A few months ago I successfully added coff support for dwarf2 info to 
> > binutils so djgpp debuggers could use it. And the new version of gcc has been 
> > configured to generate dwarf2 info. GDB just needs a small change to (almost) 
> > complete the chain.
> > 
> > I've altered coffread.c to read in dwarf2 info just like in
> > elfread.c. Please consider commiting the following patch:
> 
> Ping!  No one responded to this until now.
> 
> According to MAINTAINERS:
> 
>    coff reader           Philippe De Muyter      phdm@macqel.be
> 
> Philippe, could you please look at this?  Thanks.
> 
No problem for me, Mark.  You may install it.

Philippe


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [RFA] coffread.c: support dwarf2 info
  2001-06-29  5:44   ` Philippe De Muyter
@ 2001-07-01  3:05     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2001-07-01  3:05 UTC (permalink / raw)
  To: Philippe De Muyter; +Cc: gdb-patches, snowball3

On Fri, 29 Jun 2001, Philippe De Muyter wrote:

> Eli Zaretskii wrote :
> > > From: "Mark E." <snowball3@bigfoot.com>
> > > Date: Sat, 23 Jun 2001 12:07:50 -0400
> > > 
> > > A few months ago I successfully added coff support for dwarf2 info to 
> > > binutils so djgpp debuggers could use it. And the new version of gcc has been 
> > > configured to generate dwarf2 info. GDB just needs a small change to (almost) 
> > > complete the chain.
> > > 
> > > I've altered coffread.c to read in dwarf2 info just like in
> > > elfread.c. Please consider commiting the following patch:
> > 
> > Ping!  No one responded to this until now.
> > 
> > According to MAINTAINERS:
> > 
> >    coff reader           Philippe De Muyter      phdm@macqel.be
> > 
> > Philippe, could you please look at this?  Thanks.
> > 
> No problem for me, Mark.  You may install it.

Committed.  Thanks!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-07-01  3:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-23  9:08 [RFA] coffread.c: support dwarf2 info Mark E.
2001-06-28  4:55 ` Eli Zaretskii
2001-06-29  5:44   ` Philippe De Muyter
2001-07-01  3:05     ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox