Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I just need to see what is stored, in realtime, in some particular variables and struct used by an application written in C.

I need something like the stack tracer that comes with the ADT plugins for Eclipse as part of the Android sdk.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

If I understand correctly you just need to use a debugger. If you compiled with gcc then you can use gdb. You will want to add the -g -O0 flags to include debugging symbols and turn off optimization. If you need to you can even attach gdb to a running process. I know microsoft has a similar debugger I'm just not familiar with it.

share|improve this answer
    
the problem is that, as you pointed out, this tools needs a series of symbols, if i can't access the source code to recompile the app, how can i solve this? –  user827992 Jul 2 '12 at 0:56
    
@user827992 You can't...... Without the debug information the debugger has no way to know where the source code is located, so cannot show you the source. You can still debug at the assembly level. –  mattnz Jul 2 '12 at 4:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.