Page 1 of 1
debugger: determine COFF symbol value
Posted: Mon Oct 24, 2011 10:59 pm
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.
Re: debugger: determine COFF symbol value
Posted: Mon Oct 24, 2011 11:24 pm
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?
Re: debugger: determine COFF symbol value
Posted: Tue Oct 25, 2011 6:15 am
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.