0

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.

asked Jul 1, 2012 at 22:58

1 Answer 1

3

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.

answered Jul 2, 2012 at 0:48
2
  • 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? Commented Jul 2, 2012 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. Commented Jul 2, 2012 at 4:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.