473,413 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

<OT> interpreting dwarf sections form elf binary

Guys,

Extremely sorry for posting something that is not related to c
programming. Actually, I did a lot of search but failed to find
something useful.
Is anyone aware of any utility (with source code) that can interpret
the dwarf debugging information from an elf executable and print the
structure information. (all the members of structure, their offsets
and names, their types and size).

I would be highly grateful for any pointer to any link.

Jan 23 '08 #1
3 1635
"ju**********@yahoo.co.in" <ju**********@yahoo.co.inwrote:
Is anyone aware of any utility (with source code) that can interpret
the dwarf debugging information from an elf executable
Yes. NetHack. Source is available from <http://www.nethack.org/>.

HTH; HAND.

Richard
Jan 23 '08 #2
Junky Fellow wrote:
Extremely sorry for posting something that is not related to C
programming.
You know your message is inappropriate for this newsgroup, yet you
post anyway? (For the record, your post would have been topical in
comp.unix.programmer)
Actually, I did a lot of search but failed to find something useful.
Wikipedia is often a good starting point.
( http://en.wikipedia.org/wiki/DWARF )
Is anyone aware of any utility (with source code) that can interpret
the dwarf debugging information from an elf executable and print the
structure information. (all the members of structure, their offsets
and names, their types and size).
http://en.wikipedia.org/wiki/DWARF#External_links
Jan 23 '08 #3
In article <99**********************************@e4g2000hsg.g ooglegroups.com>,
ju**********@yahoo.co.in <ju**********@yahoo.co.inwrote:
>Guys,
>Is anyone aware of any utility (with source code) that can interpret
the dwarf debugging information from an elf executable and print the
structure information. (all the members of structure, their offsets
and names, their types and size).
I'd start by looking at the GNU binutils. "objdump -W" looks like
it might do what you want, and if it doesn't you can hack it.

-- Richard
--
:wq
Jan 23 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

34
by: wilson | last post by:
Hi All, I am a novice at C and just have learned pointer for a short period. Today one error had occured while executing my program below. And I cannot find the error out since it's checked "OK"...
74
by: Suyog_Linux | last post by:
I wish to know how the free()function knows how much memory to be freed as we only give pointer to allocated memory as an argument to free(). Does system use an internal variable to store allocated...
122
by: ivan | last post by:
hi all, if I have: if(A && B || C) which operation gets executed first? If I remeber well should be &&, am I correct? thanks
10
by: Chad | last post by:
Given: #include <stdio.h> #include <stdlib.h> #define MAXLINE 200 int main(void) { char buff;
232
by: robert maas, see http://tinyurl.com/uh3t | last post by:
I'm working on examples of programming in several languages, all (except PHP) running under CGI so that I can show both the source files and the actually running of the examples online. The first...
15
by: robert maas, see http://tinyurl.com/uh3t | last post by:
Here's the source: #include <stdio.h> #include <errno.h> main () { char* str = "9999999999"; long long int llin; char* endptr; /* Set by strtoll */ int nch; errno = 0; llin = strtoll(str,...
16
by: horacius.rex | last post by:
Hi, I don't know if it is better to post this question to a C or C++ group, so my apologies. My general question: I have a very big C++ program (Main.cpp) which compiles on machine X with...
14
by: jt | last post by:
hello everyone.., i'm using ubuntu 8.04 OS. I'm not able to output the non-printable ascii chatacters. for eg. printf("%c",1); // nothing is outputted..... is there any way to output these...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.