Stack Trace does not want to work

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Octocontrabass
Member
Member
Posts: 5588
Joined: Mon Mar 25, 2013 7:01 pm

Re: Stack Trace does not want to work

Post by Octocontrabass »

Well, get_ebp is returning zero, so it looks like the real problem is that there's nothing for you to trace...
User avatar
makerimages
Member
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

Post 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?
Working on SinusOS.
User avatar
xenos
Member
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

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply