Launching Qemu & Remote debugging

  • From: "Kittyfisto" < >
  • To:
  • Subject: Launching Qemu & Remote debugging
  • Date: Mon, 20 Aug 2012 16:57:59 -0400

Hi there,

I'm trying to use Netbeans, the gdbserver plugin and qemu to debug my simple 
operating system.

It took me half a day, but I finally got it working and I can now debug my 
code by first launching Qemu with the "Run Project (F6)" button (I've 
configured it to execute '"C:\Program Files (x86)\qemu 0.13.0\qemu.exe" -gdb 
tcp:127.0.0.1:1234 -cdrom kernel.iso') and then attaching the remote debugger 
by clicking the arrow besides the "Debug Project" button, selecting attach 
debugger and then pressing ok.

I've repeated this step about 50 times today and it's really tedious.

Q1: Is there any way to automate this process so that I can just click one 
button to launch qemu and attach the remote debugger?

Q2: Is this even the best way to debug qemu? I've tried to use the "normal" 
"Debug Project" button, however I can't get gdb to remotely connect to my 
qemu instance. It seems to me that netbeans first executes the command from 
my .gdbinit file:


Code:

file kernel.bin
target remote localhost:1234




and *then* starts qemu. Obviously the debugger is unable to connect with the 
server because the commands are not executed in the "correct" order.






Launching Qemu & Remote debugging

Kittyfisto 08/20/2012

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close