]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbreplay: Add --debug-logging option
authorAlexandra Hájková <ahajkova@redhat.com>
Wed, 16 Oct 2024 11:25:41 +0000 (13:25 +0200)
committerAlexandra Hájková <ahajkova@redhat.com>
Mon, 21 Oct 2024 14:38:18 +0000 (16:38 +0200)
commit0cb7f3a837c238cc94f6868eb0344ded34942af4
treea9b499e2be08e6bd98ef654aad62c7baf282a3dc
parent32ffcd0737a703398646f7e0b62bd5de348319e1
gdbreplay: Add --debug-logging option

As gdbreplay communicates with GDB, it outputs all the remote
protocol communication it reads from the remotelogfile to stderr.
This patch disables this behavior by default but adds the new
--debug-logging option which turns printing the packets
to stderr on again.

The motivation for this change is to make it possible to use
gdbreplay with TCL tests. Printing the whole remotelog file out
seems to overflow the expect cache wich causes gdbreplay to not
to get the packet its expects and results in going out of sync
with GDB. Other motivation is making communication between GDB
and gdbreplay faster as printing bigger remotelogfile takes
considerable amount of time.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Approved-By: Tom Tromey <tom@tromey.com>
gdbserver/README
gdbserver/gdbreplay.cc