debugger: determine COFF symbol value

Programming, for all ages and all languages.
Post Reply
user12
Posts: 3
Joined: Sun Jul 18, 2010 9:17 am

debugger: determine COFF symbol value

Post by user12 »

Hi.

How could I determine the runtime value of a given symbol using the COFF info?
For ELF I did it, COFF line info is successfully interpreted also.
(under windows)

Maybe you recommend "gdb", but it is too big.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: debugger: determine COFF symbol value

Post by Solar »

Too little info. What is the context? Are you writing your own debugger, or do you want to debug a specific application of your own?

If it's the former, I would rather invest the time and effort into porting an existing one (and yes, gdb is big, but it's the best there is and shouldn't be too hard to port).

If it is the latter, what makes gdb "too big", and why can't you just printf() the value?
Every good solution is obvious once you've found it.
user12
Posts: 3
Joined: Sun Jul 18, 2010 9:17 am

Re: debugger: determine COFF symbol value

Post by user12 »

It is a microcontroller C code debugger in an windows application, with breakpoints, watches, hints, etc.
The compiler is invoked from command line, and the resulting COFF file is used.
Post Reply