[Barrelfish-users] gdb and qemu

Georgios Varisteas yorgos at kth.se
Mon Dec 5 17:07:46 CET 2011

Thanks for the quick reply. Unfortunately it didn't help much as I get this:

../src//tools/debug.sh "qemu-system-x86_64 -smp 2 -m 1024 -net nic,model=ne2k_pci -net user  -fda ../src//tools/grub-qemu.img -tftp /home/yorgos/Projects/barrelfish/build -nographic" "gdb" "-x x86_64/debug.gdb " "file:/dev/stdout"
Deleting stale lockfile /tmp/qemu_debugsim_yorgos_1234.pid
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
add symbol table from file "./x86_64/sbin/cpu" at
        .text_addr = 0xffffffffc0100000

(gdb) continue
The program is not being run.
(gdb) continue -a
The program is not being run.

Any other hint?


From: Simon Peter [speter at inf.ethz.ch]
Sent: Monday, December 05, 2011 17:00
To: Georgios Varisteas
Cc: barrelfish-users at lists.inf.ethz.ch
Subject: Re: [Barrelfish-users] gdb and qemu

The way we start QEMU is that it stops the simulated system immediately
after GDB attaches. So, the appropriate command to resume execution is

Hope this helps,

On 05.12.2011 16:56, Georgios Varisteas wrote:
> Hello,
> How does the gdb-qemu combination exactly bootstraps? I tried the debugsim target and also studied/played with the commands manually but I can't figure out what to do when the gdb prompt comes up. Run obviously fails and I shouldn't have to attach gdb as the debug script does that. But still qemu does not run cause I do not get any output on stdout. A quick and dirty run-through of the involved commands and logic would be sufficient. Thanks in advance.
> --Georgios
> _______________________________________________
> Barrelfish-users mailing list
> Barrelfish-users at lists.inf.ethz.ch
> https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users

More information about the Barrelfish-users mailing list