• Define GDB_CORE_XML and hack things similarly to ARM so that despite the
    FP registers coming in between the GPRs and some status registers,
    everything works out OK no matter which kind of GDB we're communicating
    with.
    
    It matters whether we're built to target 64-bit or 32-bit cores.  I
    think there are still problems if we are debugging 32-bit programs on a
    built-for-64-bit QEMU (QEMU will always send 64-bit registers), but I
    don't know if there's a good way around that at the time being.
    
    Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
    Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6421 c046a42c-6fe2-441c-8c8c-71466251a162
    aurel32 authored
     
    Browse Code »










  • This patch enhances QEMU's built-in debugger for SMP guest debugging.
    Using the thread support of the gdb remote protocol, each VCPU is mapped
    on a pseudo thread and exposed to the gdb frontend. This way you can
    easy switch the focus of gdb between the VCPUs and observe their states.
    On breakpoint hit, the focus is automatically adjusted just as for
    normal multi-threaded application under gdb control.
    
    Furthermore, the patch propagates breakpoint and watchpoint insertions
    or removals to all CPUs, not just the current one as it was the case so
    far. Without this, SMP guest debugging was practically unfeasible.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5743 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »
  • This patch prepares the QEMU cpu_watchpoint/breakpoint API to allow the
    succeeding enhancements this series comes with.
    
    First of all, it overcomes MAX_BREAKPOINTS/MAX_WATCHPOINTS by switching
    to dynamically allocated data structures that are kept in linked lists.
    This also allows to return a stable reference to the related objects,
    required for later introduced x86 debug register support.
    
    Breakpoints and watchpoints are stored with their full information set
    and an additional flag field that makes them easily extensible for use
    beyond pure guest debugging.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5738 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse File »
  • Return the appropriate type prefix (r, a, none) when reporting
    watchpoint hits to the gdb front-end.
    
    Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5737 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »

  • This patch makes qemu keep track of the character devices in use and
    implements a "info chardev" monitor command to print a list.
    
    qemu_chr_open() sticks the devices into a linked list now.  It got a new
    argument (label), so there is a name for each device.  It also assigns a
    filename to each character device.  By default it just copyes the
    filename passed in.  Individual drivers can fill in something else
    though.  qemu_chr_open_pty() sets the filename to name of the pseudo tty
    allocated.
    
    Output looks like this:
    
      (qemu) info chardev
      monitor: filename=unix:/tmp/run.sh-26827/monitor,server,nowait
      serial0: filename=unix:/tmp/run.sh-26827/console,server
      serial1: filename=pty:/dev/pts/5
      parallel0: filename=vc:640x480
    
    Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
    Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
    
    
    
    git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5575 c046a42c-6fe2-441c-8c8c-71466251a162
    aliguori authored
     
    Browse Code »