[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-13 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 Mark Wielaard changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-12 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 Mark Wielaard changed: What|Removed |Added Status|REPORTED|ASSIGNED Assignee|jsew...@acm.org

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-12 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #27 from Alexandra Hajkova --- Created attachment 158030 --> https://bugs.kde.org/attachment.cgi?id=158030&action=edit patch this version updates: - fix Darwin compilation - Correct vargv arguments, last element should be NULL - cleanup_f

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #26 from Paul Floyd --- (In reply to Mark Wielaard from comment #24) > (In reply to Paul Floyd from comment #21) > Does that also mean it doesn't build on Darwin? > We can use accept on Darwin in that case. It just means it will possibly >

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #25 from Mark Wielaard --- (In reply to Tom Tromey from comment #22) > (In reply to Paul Floyd from comment #21) > > > I also tried to make the startup even easier and after searching a bit and > > getting some info on SO I came up with >

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #24 from Mark Wielaard --- (In reply to Paul Floyd from comment #21) > It seems quite intermittent. I've only reproduced it once, and without > debug/verbose. Too bad, those are the worst bugs to debug. > I had a very quick look on Illumos

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #23 from Paul Floyd --- To give a bit more context, the example in the xml doc is # gdb prog (gdb) set remote exec-file prog (gdb) set sysroot / (gdb) target extended-remote | vgdb --multi --vargs -q (gdb) start And what I was trying to to

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Tom Tromey
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #22 from Tom Tromey --- (In reply to Paul Floyd from comment #21) > I also tried to make the startup even easier and after searching a bit and > getting some info on SO I came up with I don't know the exact problem here -- I don't use "ext

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-09 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #21 from Paul Floyd --- It seems quite intermittent. I've only reproduced it once, and without debug/verbose. I had a very quick look on Illumos and Darwin and Illumos has a man page for accept4 but not Darwin. I also tried to make the sta

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-08 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #20 from Mark Wielaard --- I wonder if there is still a timing issue if it works with extra verbose/debug output. We tried to remove any explicit waiting/spinning. Could you show a full session (gdb command line plus arguments and gdb promp

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-08 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #19 from Paul Floyd --- I tried again (with lots of -d / -v) and it worked. -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-08 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #18 from Paul Floyd --- Builds cleanly on FreeBSD But I still get errors like (gdb) start Temporary breakpoint 4 at 0x201ab8: file new_delete_mismatch_size.cpp, line 12. Starting program: /usr/home/paulf/scratch/valgrind/memcheck/tests/new

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-07 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #17 from Paul Floyd --- I'll have a go over the weekend. -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-07 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #16 from Mark Wielaard --- Thanks, last patch looks pretty nice. I threw it at the try builder and it at least compiles cleanly: https://builder.sourceware.org/buildbot/#/changes/23263 That of course is all different GNU/Linux setups, maybe

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-05 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 Alexandra Hajkova changed: What|Removed |Added Attachment #157862|0 |1 is obsolete|

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-04-05 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 Alexandra Hajkova changed: What|Removed |Added Attachment #157529|0 |1 is obsolete|

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-03-29 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #13 from Paul Floyd --- > I see accept4 (which is used to set SOCK_CLOEXEC) is also a GNU extension. > But that does also work on other systems? It compiles and there is a manpage for accept4 which is always a good start. I thought the ne

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-03-29 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #12 from Mark Wielaard --- (In reply to Paul Floyd from comment #11) > When I saw this > > +/* For accept4 and execvpe. */ > +#define _GNU_SOURCE > #include "vgdb.h" > > I had a bit of a bad feeling, which was confirmed when I tried to b

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-03-27 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #11 from Paul Floyd --- When I saw this +/* For accept4 and execvpe. */ +#define _GNU_SOURCE #include "vgdb.h" I had a bit of a bad feeling, which was confirmed when I tried to build. vgdb.c:1185:16: warning: implicit declaration of fun

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-03-23 Thread Paul Floyd
https://bugs.kde.org/show_bug.cgi?id=434057 Paul Floyd changed: What|Removed |Added CC||pjfl...@wanadoo.fr -- You are receiving this mail

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-03-23 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 Alexandra Hajkova changed: What|Removed |Added Attachment #153923|0 |1 is obsolete|

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-02-14 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=434057 Sam James changed: What|Removed |Added CC||s...@gentoo.org -- You are receiving this mail bec

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2023-02-10 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #9 from Alexandra Hajkova --- Created attachment 156128 --> https://bugs.kde.org/attachment.cgi?id=156128&action=edit patch The new updated version -- You are receiving this mail because: You are watching all bug changes.

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-11-23 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #8 from Mark Wielaard --- We reviewed (about half) of the patch and found a couple of things to cleanup: - There is a sleep(3) after fork, before execve in the parent (vgdb) to wait for valgrind to fully startup This should be replaced wi

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-11-21 Thread Alexandra Hajkova
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #7 from Alexandra Hajkova --- Created attachment 153923 --> https://bugs.kde.org/attachment.cgi?id=153923&action=edit patch vgdb: Add multi mode In this mode, Vgdb uses extended remote protocol to communicate with Gdb. in the ext

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-06-09 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #6 from Mark Wielaard --- There is a fork on sourcehut that contains the start of work on a --multi option for vgdb that implements extended-remote mode so that vgdb can start a valgrind process in response to a vrun packet. Currently the vg

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-02-21 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #5 from Mark Wielaard --- (In reply to Mark Wielaard from comment #4) > This is only half of the work though. Although you can change the way gdb > and vgdb communicate (it doesn't need to be through stdio, but we could also > add a "normal"

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-02-21 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 --- Comment #4 from Mark Wielaard --- We have been looking at this and for the valgrind side it would involve something like Pedro suggests in comment #3. So vgdb would intercept the extended-remote packages (which aren't currently implemented in the va

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2022-02-08 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 Mark Wielaard changed: What|Removed |Added CC||ahajk...@redhat.com -- You are receiving this

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2021-03-12 Thread Pedro Alves
https://bugs.kde.org/show_bug.cgi?id=434057 Pedro Alves changed: What|Removed |Added CC||pe...@palves.net --- Comment #3 from Pedro Alves

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2021-03-09 Thread Mark Wielaard
https://bugs.kde.org/show_bug.cgi?id=434057 Mark Wielaard changed: What|Removed |Added CC||m...@klomp.org --- Comment #2 from Mark Wielaar

[valgrind] [Bug 434057] Add stdio mode to valgrind's gdbserver

2021-03-06 Thread Philippe Waroquiers
https://bugs.kde.org/show_bug.cgi?id=434057 Philippe Waroquiers changed: What|Removed |Added CC||philippe.waroquiers@skynet.