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.
debugger: determine COFF symbol value
Re: debugger: determine COFF symbol value
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?
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.
Re: debugger: determine COFF symbol value
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.
The compiler is invoked from command line, and the resulting COFF file is used.