Page 2 of 2

Re: Stack Trace does not want to work

Posted: Thu Feb 19, 2015 7:40 am
by Octocontrabass
Well, get_ebp is returning zero, so it looks like the real problem is that there's nothing for you to trace...

Re: Stack Trace does not want to work

Posted: Thu Feb 19, 2015 2:33 pm
by makerimages
That'd imply that something forces ebp to 0 and/or it doesn't go up at all. Could gcc do that? Am I missing some obvious flag or sth? Or Do I just have crappy design?

Re: Stack Trace does not want to work

Posted: Thu Feb 19, 2015 3:52 pm
by xenos
I would suggest running your code in Bochs with debugger enabled, so you can actually see the register contents of EBP (and all other registers) and compare them with your output, instead of guessing their values.