Skip to content

Instantly share code, notes, and snippets.

@hdonnay
Created October 12, 2016 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hdonnay/02a9b12a5124aee2e247cc92daa9128b to your computer and use it in GitHub Desktop.
Save hdonnay/02a9b12a5124aee2e247cc92daa9128b to your computer and use it in GitHub Desktop.
gdbserver work
% gdb amd64/bin/cat
GNU gdb (GDB; openSUSE Tumbleweed) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from amd64/bin/cat...done.
(gdb) target remote localhost:12345
Remote debugging using localhost:12345
../../gdb/thread.c:89: internal-error: inferior_thread: Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) n
This is a bug, please report it. For instructions, see:
<http://bugs.opensuse.org/>.
../../gdb/thread.c:89: internal-error: inferior_thread: Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n) n
Command aborted.
(gdb)
10.0.2.15# aux/listen1 -tv tcp!*!12345 /bin/gdbserver cat /dev/null
listen started
incoming call for tcp!*!12345 from 10.0.2.2 in /net/tcp/24
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+;xmlRegisters=i386:
10.0.2.15 Oct 12 15:25:51 RETURN ::
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :vMustReplyEmpty:
10.0.2.15 Oct 12 15:25:51 RETURN ::
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :Hg0:
10.0.2.15 Oct 12 15:25:51 Warning: using 1 instead of 0
Qgdbregs: va 713870, rptr +offset fffffffff1747d30, n 156
10.0.2.15 Oct 12 15:25:51 Try to use thread 1: <nil>
10.0.2.15 Oct 12 15:25:51 RETURN :OK:
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qTStatus:
10.0.2.15 Oct 12 15:25:51 RETURN ::
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :?:
10.0.2.15 Oct 12 15:25:51 RETURN :S00:
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qfThreadInfo:
10.0.2.15 Oct 12 15:25:51 RETURN :m31006861,32006861,38360068,34006861,35006861,36006861,38006861,31320068,31300068,38340068,31330068,31340068,31350068,31370068,31380068,33350068,32330068:
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qsThreadInfo:
10.0.2.15 Oct 12 15:25:51 RETURN ::
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qAttached:
10.0.2.15 Oct 12 15:25:51 RETURN ::
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :Hc-1:
10.0.2.15 Oct 12 15:25:51 RETURN :OK:
10.0.2.15 Oct 12 15:25:51 gdbstub.c 177
10.0.2.15 Oct 12 15:25:51 gdbstub.c 195
10.0.2.15 Oct 12 15:25:51 packet :qC:
10.0.2.15 Oct 12 15:25:52 RETURN :QC01000000:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment