Bochs GDB stub

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.
Kim

Re:Bochs GDB stub

Post by Kim »

Why don't you enable paging and remove that GDT trick, setting the segments to a base of 0 and limit to 4gb.
Crazed123

Re:Bochs GDB stub

Post by Crazed123 »

I'm going to, paging is the next thing to get done in my kernel. I just don't see why GDB shouldn't work with the segmentation.
AR

Re:Bochs GDB stub

Post by AR »

Crazed123 wrote:I'm going to, paging is the next thing to get done in my kernel. I just don't see why GDB shouldn't work with the segmentation.
Very few compilers support segmentation, GCC isn't one of them and since GDB was intended for use with GCC, it wouldn't have been necessary to support it.
Crazed123

Re:Bochs GDB stub

Post by Crazed123 »

So it does support paging? As far as I know the stub is in Bochs, so I don't see why the Bochs stub doesn't translate according to what Bochs knows is going on. Perhaps it has something to do with GDB's architecture.
Post Reply