]> sourceware.org Git - valgrind.git/commit
vgdb: implement the extended-remote protocol
authorAlexandra Petlanova Hajkova <ahajkova@redhat.com>
Thu, 3 Mar 2022 09:46:03 +0000 (04:46 -0500)
committerMark Wielaard <mark@klomp.org>
Thu, 13 Apr 2023 22:08:53 +0000 (00:08 +0200)
commit0432ce486d61f84f6fcbeab0d812bb1f61c57561
treec7e492847c4eb66d63f2cd909d2993ebec55851c
parent0ae17c117edbad1785c148693a31268b3bec4565
vgdb: implement the extended-remote protocol

Executing vgdb --multi makes vgdb talk the gdb extended-remote
protocol. This means that the gdb run command is supported and
vgdb will start up the program under valgrind. Which means you
don't need to run gdb and valgrind from different terminals.
Also vgdb keeps being connected to gdb after valgrind exits. So
you can easily rerun the program with the same breakpoints in
place.

vgdb now implements a minimal gdbserver that just recognizes
a few extended-remote protocol packets. Once it starts up valgrind
it sets up noack and qsupported then it will forward packets
between gdb and valgrind gdbserver. After valgrind shutsdown it
resumes handling gdb packets itself.

https://bugs.kde.org/show_bug.cgi?id=434057

Co-authored-by: Mark Wielaard <mark@klomp.org>
NEWS
coregrind/docs/vgdb-manpage.xml
coregrind/m_gdbserver/m_gdbserver.c
coregrind/m_gdbserver/remote-utils.c
coregrind/m_gdbserver/server.c
coregrind/m_main.c
coregrind/m_options.c
coregrind/vgdb.c
docs/xml/manual-core-adv.xml
include/pub_tool_options.h
vg-in-place
This page took 0.036356 seconds and 5 git commands to generate.