[Barrelfish-users] Barrelfish OS-gdb session

Stefan Kästle stefan.kaestle at inf.ethz.ch
Fri Feb 28 09:31:18 CET 2014

Good morning,

I didn't try this in a while, but this is what I remember:

1) $ make debugsim
This should build Barrelfish and start qemu and pop up a gdb prompt

2) (gdb) debug_qemu
Which will point gdb to the symbol table (in that case the one for the 

3) (gdb) c
To start execution

That being said, there are some limitations, the most severe one maybe 
being that qemu is not able to distinguish between different address 
spaces. This means, that if you set a breakpoint at a certain address 
(say a function), this breakpoint will be trigger even if a program in a 
another address space is executing something at the same address.


On 02/28/2014 01:37 AM, Vishwas K.M. wrote:
> Hello All,
> I have recently stared working on BF OS and need assistance to 
> understand the OS internals.
> I am using "make sim" on x86_64 and it compiles and runs the BF till 
> it reachs the fish prompt.
> Now to get into the BF internals I am trying to get the compiled BF 
> code into a gdb session and start the run part so that I can get into 
> each module and see the things.
> Please assist me a way out..
> Thanks,
> Vishwas K.M
> _______________________________________________
> Barrelfish-users mailing list
> Barrelfish-users at lists.inf.ethz.ch
> https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20140228/6678843d/attachment.html 

More information about the Barrelfish-users mailing list