Stack Trace does not want to work
-
- Member
- Posts: 5588
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Stack Trace does not want to work
Well, get_ebp is returning zero, so it looks like the real problem is that there's nothing for you to trace...
- makerimages
- Member
- Posts: 27
- Joined: Sun Dec 28, 2014 11:16 am
- Libera.chat IRC: Makerimages
- Location: Estonia
Re: Stack Trace does not want to work
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?
Working on SinusOS.
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Stack Trace does not want to work
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.