How to read DWARF file

Hi All,
I am new to this group.I would like to know, how to read DWARF file?Is there any simple sample program that can be used for reading DWARF file.Basically I would like to retrieve file name, function name and the line number from the DWAF file.My OS is MacOSX.

Thanks in advance.
-R
 
From this section of the post description: "Howtos & FAQs Would you like to share some of your solutions for certain problems? Tips or tricks? Post here."

Your question would be better placed in one of the other forum section.
Welcome aboard btw ;)
 
Sure, but I'm obstinately sticking to the theory that he asked on a FreeBSD forum for a reason.

And, if he researches the leads he's been given, I'm sure something OSeXy will turn up for him.
 
fronclynne said:
Sure, but I'm obstinately sticking to the theory that he asked on a FreeBSD forum for a reason.
Maybe because OS-X borrowed heavily from FreeBSD? :e

Even though there's a lot of FreeBSD stuff in OS-X, DWARF isn't one of them.
 
SirDice said:
Maybe because OS-X borrowed heavily from FreeBSD?

In this case, it doesn't actually matter. DWARF debugging symbols is supported by gcc, the default cc on both FreeBSD and OSX (with Xcode installed).
 
CarminPolitano said:
Use the terminal command dwarfdump.

You're responding to a post that's almost three years old. Dwarfdump has already been mentioned.
 
Back
Top