Ok, I think I've nailed it (but we've been here before ;).
It looks like there were some breakpoints set in the applications kdbgrc
file that gdb didn't like, and kdbg couldn't grok gdbs repsonses.
I tracked it down by writing a gdb wrapper (attached).
It tee's gdb output to a text file.
Gdbs output is also attached, for reference.
I tried different versions of gdb from 7.5 back to 7.1a to see if any
worked - the one I ran this test with was 7.5.
Regards,
Philip Ashmore
#!/bin/sh
/usr/local/bin/gdb $@ 21 | tee /v3c/bin/gdb-out.txt
GNU gdb (GDB) 7.5
Copyright (C) 2012 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-unknown-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
(gdb) (gdb) (gdb) (gdb) (gdb) (gdb) (gdb) (gdb) (gdb) (kdbg)(kdbg)Reading
symbols from /v3c/dev/autobook/storyboard/build/sb/.libs/sbt2sbd-d...done.
(kdbg)(kdbg)Working directory /v3c/dev/autobook/storyboard/build/sb/tests.
(kdbg)(kdbg)Breakpoint 1 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Breakpoint 2 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoint 1 also set at pc 0x404ea3.
Breakpoint 3 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoint 2 also set at pc 0x405172.
Breakpoint 4 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Breakpoint 5 at 0x7796e9a9
(kdbg)Breakpoint 6 at 0x7796ec30
(kdbg)Breakpoint 7 at 0x407594: file ../../sb/sbt2sbd.cpp, line 101.
(kdbg)Breakpoint 8 at 0x404e85: file ../../sb/sbt2sbd.cpp, line 118.
(kdbg)Note: breakpoints 1 and 3 also set at pc 0x404ea3.
Breakpoint 9 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2 and 4 also set at pc 0x405172.
Breakpoint 10 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3 and 9 also set at pc 0x404ea3.
Breakpoint 11 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4 and 10 also set at pc 0x405172.
Breakpoint 12 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9 and 11 also set at pc 0x404ea3.
Breakpoint 13 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10 and 12 also set at pc 0x405172.
Breakpoint 14 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11 and 13 also set at pc 0x404ea3.
Breakpoint 15 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12 and 14 also set at pc 0x405172.
Breakpoint 16 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13 and 15 also set at pc 0x404ea3.
Breakpoint 17 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14 and 16 also set at pc 0x405172.
Breakpoint 18 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15 and 17 also set at pc 0x404ea3.
Breakpoint 19 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16 and 18 also set at pc 0x405172.
Breakpoint 20 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15, 17 and 19 also set at pc 0x404ea3.
Breakpoint 21 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16, 18 and 20 also set at pc 0x405172.
Breakpoint 22 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15, 17, 19 and 21 also set at pc
0x404ea3.
Breakpoint 23 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16, 18, 20 and 22 also set at pc
0x405172.
Breakpoint 24 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15, 17, 19, 21 and 23 also set at pc
0x404ea3.
Breakpoint 25 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16, 18, 20, 22 and 24 also set at pc
0x405172.
Breakpoint 26 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15, 17, 19, 21, 23 and 25 also set at
pc 0x404ea3.
Breakpoint 27 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16, 18, 20, 22, 24 and 26 also set at
pc 0x405172.
Breakpoint 28 at 0x405172: file /usr/include/v3c/string_utils.hpp, line 28.
(kdbg)Note: breakpoints 1, 3, 9, 11, 13, 15, 17, 19, 21, 23, 25 and 27 also set
at pc 0x404ea3.
Breakpoint 29 at 0x404ea3: file ../../sb/sbt2sbd.cpp, line 122.
(kdbg)Note: breakpoints 2, 4, 10, 12, 14, 16, 18, 20, 22, 24, 26 and 28 also
set at pc 0x405172.
Breakpoint 30