* RE: Problems debugging multithreaded program wirh gdbserver via ser ial port
@ 2004-11-08 15:53 Yoni Rabinovitch
2004-11-08 15:53 ` Yoni Rabinovitch
2004-11-09 0:57 ` Daniel Jacobowitz
0 siblings, 2 replies; 5+ messages in thread
From: Yoni Rabinovitch @ 2004-11-08 15:53 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]
>> 1) If I try to run the program from gdbserver (i.e. gdbserver /dev/ttyS0 wlsd), I get "readchar: Input/output error" messages,
>> and nothing works. See attached file gdb_fail.
>> What is going on here ?
>It sounds like your serial port is messed up.
What exactly do you mean by "messed up" ?
minicom seems to work OK. What do I need to check ?
>> 3) If I repeat the scenario described in 2), but with "set debug remote 1", it seems to work somewhat faster
>> (e.g. bt takes about 1 minute to complete).
>> I am seeing alot of "Packet instead of Ack, ignoring it" messages.
>> See attached file gdb_trace_debug.
>> What do these messages mean ?
>Try "set debug serial 1" in addition - it's very verbose but maybe it
> will tell you what the "packet" is.
Running with "set debug serial 1" gives me the following:
In the gdb session,I see lots of the following messages:
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
Simultaneously, in the gdbserver session (via minicom) I see:
+$OK#9a
Then, in the gdb session, I see lots of the following:
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
at which point, the gdbserver (minicom) session now proudly shows:
+$OK#9a$279c390c#04
See the attached file (gdb_trace_serial).
Why am I seeing stuff printed at the gdbserver (minicom) session ? Is this an indication that
something is wrong with the serial port, and if so, what ? What is the significance of the
messages gdb thinks are "Packet instead of Ack", which also seem to get printed out (once) in the
gdbserver session ?
Thanks !!
[-- Attachment #2: gdb_trace_serial --]
[-- Type: application/octet-stream, Size: 16899 bytes --]
gdbserver output (via minicom)
==============================
TDN# gdbserver /dev/ttyS0 --attach 80
Attached; pid = 80
Remote debugging using /dev/ttyS0
+$OK#9a+$279c390c#04
gdb output
==========
[root@LinuxApps wlsd]# /pub/mips-gdb -b 115200
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=mips-hardhat-linux".
(gdb) file bin/wlsd
Load new symbol table from "/pub/xs1000/WLS/WLS_1.01/wls/wlsd/bin/wlsd"? (y or n) y
Reading symbols from /pub/xs1000/WLS/WLS_1.01/wls/wlsd/bin/wlsd...done.
(gdb) set solib-absolute-prefix /pub/mips-gnu/
(gdb)
(gdb) set debug remote 1
(gdb) set debug serial 1
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Sending packet: $Hc-1#09...[
r +]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qC#b4...[+]Ack
[$][#][0][0]Packet received:
Sending packet: $qOffsets#4b...[+]Ack
[$][#][0][0]Packet received:
Sending packet: $?#3f...[+]Ack
[$][T][1][1][2][5][:][2][a][d][0][0][b][8][4][;][1][d][:][7][f][f][f][7][d][0][8][;][#][2][d]Packet received: T1125:2ad00b84;1d:7fff7d08;
Sending packet: $m2ad00b84,4#f2...[+]Ack
[$][1][4][e][0][f][f][f][6][#][6][2]Packet received: 14e0fff6
Sending packet: $m2ad00b80,4#ee...[+]Ack
[$][0][0][0][0][0][0][0][c][#][b][3]Packet received: 0000000c
Sending packet: $m2ad00b84,4#f2...[+]Ack
[$][1][4][e][0][f][f][f][6][#][6][2]Packet received: 14e0fff6
Sending packet: $m2ad00b80,4#ee...[+]Ack
[$][0][0][0][0][0][0][0][c][#][b][3]Packet received: 0000000c
0x2ad00b84 in ?? ()
Sending packet: $m400168,100#5d...[+]Ack
[$][0][0][0][0][0][0][0][1][0][0][0][0][0][0][5][7][0][0][0][0][0][0][0][1][0][0][0][0][0][0][7][0][0][0][0][0][0][0][0][1][0][0][0][1][2][f][3][6][0][0][0][0][0][0][0][c][0][0][4][2][6][e][b][0][0][0][0][0][0][0][0][d][0][0][6][f][3][9][5][0][0][0][0][0][0][0][0][4][0][0][4][0][0][2][6][8][0][0][0][0][0][0][0][5][0][0][4][1][2][4][e][0][0][0][0][0][0][0][0][6][0][0][4][0][5][6][3][0][0][0][0][0][0][0][0][a][0][0][0][1][2][f][6][3][0][0][0][0][0][0][0][b][0][0][0][0][0][0][1][0][7][0][0][0][0][0][1][6][1][0][0][2][b][a][8][0][0][0][0][0][0][0][1][5][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][3][1][0][0][2][b][a][a][0][0][0][0][0][0][0][1][1][0][0][4][2][6][e][a][0][0][0][0][0][0][0][1][2][0][0][0][0][0][0][1][0][0][0][0][0][0][0][1][3][0][0][0][0][0][0][0][8][7][0][0][0][0][0][0][1][0][0][0][0][0][0][0][1][7][0][0][0][0][0][0][5][0][0][0][0][0][0][0][2][7][0][0][0][0][0][0][6][0][0][4][0][0][0][0][0][7][0][0][0][0][0][0][a][0][0][0][0][0][0][3][c][7][0][0][0][0][0][1][1][0][0][0][0][0][c][e][b][7][0][0][0][0][0][1][2][0][0][0][0][0][0][2][4][7][0][0][0][0][0][1][3][0][0][0][0][0][0][0][5][6][f][f][f][f][f][f][e][0][0][4][2][6][e][1][c][6][f][f][f][f][f][f][f][0][0][0][0][0][0][0][3][6][f][f][f][f][f][f][0][0][0][4][2][5][4][4][4][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][#][6][b]Packet received: 000000010000005700000001000000700000000100012f360000000c00426eb00000000d006f3950000000040040026800000005004124e000000006004056300000000a00012f630000000b00000010700000161002ba800000001500000000000000031002baa00000001100426ea0000000120000001000000013000000087000000100000001700000050000000270000006004000007000000a0000003c7000001100000ceb700000120000002470000013000000056ffffffe00426e1c6fffffff000000036ffffff000425444000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sending packet: $m1002ba80,4#bb...[+]Ack
[$][2][a][b][1][9][3][7][0][#][f][9]Packet received: 2ab19370
Sending packet: $m2ab19374,4#ca...[+]Ack
[$][2][a][b][1][9][3][8][8][#][0][2]Packet received: 2ab19388
Sending packet: $m2ab19388,14#00...[+]Ack
[$][0][0][0][0][0][0][0][0][2][a][a][d][6][6][4][8][0][0][4][0][0][1][6][8][2][a][b][1][9][8][c][0][0][0][0][0][0][0][0][0][#][e][d]Packet received: 000000002aad6648004001682ab198c000000000
Sending packet: $m2ab198c0,14#28...[+]Ack
[$][2][a][b][4][0][0][0][0][2][a][b][1][9][8][a][8][2][a][b][4][0][1][2][c][2][a][b][1][9][b][8][0][2][a][b][1][9][3][8][8][#][6][3]Packet received: 2ab400002ab198a82ab4012c2ab19b802ab19388
Sending packet: $m2ab198a8,4#fd...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab198ac,4#28...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab198b0,4#f6...[+]Ack
[$][7][0][7][4][6][8][7][2][#][a][9]Packet received: 70746872
Sending packet: $m2ab198b4,4#fa...[+]Ack
[$][6][5][6][1][6][4][2][e][#][d][3]Packet received: 6561642e
Sending packet: $m2ab198b8,4#fe...[+]Ack
[$][7][3][6][f][2][e][3][0][#][0][0]Packet received: 736f2e30
Sending packet: $m2ab198bc,4#29...[+]Ack
[$][0][0][0][0][0][0][0][0][#][8][0]Packet received: 00000000
Sending packet: $m2ab19b80,14#27...[+]Ack
[$][2][a][b][c][0][0][0][0][2][a][b][1][9][b][7][0][2][a][b][c][0][1][2][c][2][a][a][a][8][0][0][0][2][a][b][1][9][8][c][0][#][d][5]Packet received: 2abc00002ab19b702abc012c2aaa80002ab198c0
Sending packet: $m2ab19b70,4#f5...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19b74,4#f9...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19b78,4#fd...[+]Ack
[$][7][2][7][4][2][e][7][3][#][d][5]Packet received: 72742e73
Sending packet: $m2ab19b7c,4#28...[+]Ack
[$][6][f][2][e][3][1][0][0][#][f][7]Packet received: 6f2e3100
Sending packet: $m2aaa8000,14#1b...[+]Ack
[$][2][a][c][4][0][0][0][0][2][a][b][1][9][e][2][0][2][a][c][4][0][1][4][c][2][a][b][1][9][0][d][0][2][a][b][1][9][b][8][0][#][7][e]Packet received: 2ac400002ab19e202ac4014c2ab190d02ab19b80
Sending packet: $m2ab19e20,4#f3...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19e24,4#f7...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19e28,4#fb...[+]Ack
[$][6][3][2][e][7][3][6][f][#][0][6]Packet received: 632e736f
Sending packet: $m2ab19e2c,4#26...[+]Ack
[$][2][e][3][6][0][0][0][0][#][c][0]Packet received: 2e360000
Sending packet: $m2ab190d0,14#21...[+]Ack
[$][2][a][a][c][0][0][0][0][0][0][4][0][0][1][1][4][2][a][a][c][0][0][c][c][0][0][0][0][0][0][0][0][2][a][a][a][8][0][0][0][#][b][b]Packet received: 2aac0000004001142aac00cc000000002aaa8000
Sending packet: $m400114,4#f7...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m400118,4#fb...[+]Ack
[$][2][f][6][c][6][4][2][e][#][3][2]Packet received: 2f6c642e
Sending packet: $m40011c,4#26...[+]Ack
[$][7][3][6][f][2][e][3][1][#][0][1]Packet received: 736f2e31
Sending packet: $m400120,4#f4...[+]Ack
[$][0][0][0][0][0][0][0][0][#][8][0]Packet received: 00000000
Sending packet: $qSymbol::#5b...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][5][7][6][6][5][6][e][7][4][7][3][#][0][d]Packet received: qSymbol:5f5f707468726561645f746872656164735f6576656e7473
Packet qSymbol (symbol-lookup) is supported
Sending packet: $qSymbol:2ab98948:5f5f707468726561645f746872656164735f6576656e7473#52...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][c][6][1][7][3][7][4][5][f][6][5][7][6][6][5][6][e][7][4][#][9][0]Packet received: qSymbol:5f5f707468726561645f6c6173745f6576656e74
Sending packet: $qSymbol:2ab98950:5f5f707468726561645f6c6173745f6576656e74#ce...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][8][6][1][6][e][6][4][6][c][6][5][7][3][5][f][6][e][7][5][6][d][#][5][b]Packet received: qSymbol:5f5f707468726561645f68616e646c65735f6e756d
Sending packet: $qSymbol:2ab95ab0:5f5f707468726561645f68616e646c65735f6e756d#eb...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][8][6][1][6][e][6][4][6][c][6][5][7][3][#][1][f]Packet received: qSymbol:5f5f707468726561645f68616e646c6573
Sending packet: $qSymbol:2ab91ab0:5f5f707468726561645f68616e646c6573#ab...[+]Ack[$][q][S][y][m][b][o][l][:][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][b][6][5][7][9][7][3][#][7][e]Packet received: qSymbol:707468726561645f6b657973
Sending packet: $qSymbol:2ab96540:707468726561645f6b657973#b5...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][d][6][1][7][8][#][c][b]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178
Sending packet: $qSymbol:2ab51a10:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178#22...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][b][6][5][7][9][7][3][5][f][6][d][6][1][7][8][#][c][0]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178
Sending packet: $qSymbol:2ab51a80:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178#1e...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][3][6][9][7][a][6][5][6][f][6][6][5][f][6][4][6][5][7][3][6][3][7][2][#][6][8]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372
Sending packet: $qSymbol:2ab51a50:5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372#c3...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][3][7][2][6][5][6][1][7][4][6][5][5][f][6][5][7][6][6][5][6][e][7][4][#][b][6]Packet received: qSymbol:5f5f6c696e7578746872656164735f6372656174655f6576656e74
Sending packet: $qSymbol:2ab51460:5f5f6c696e7578746872656164735f6372656174655f6576656e74#e5...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet
instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet
instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>][<Timeout: 60 seconds>]Timed out.
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
(gdb) break low_level_input
Sending packet: $m460184,4#04...[+]Ack
[$][3][c][1][c][0][f][b][d][#][8][6]Packet received: 3c1c0fbd
Sending packet: $m460188,4#08...[<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>][<Timeout: 60 seconds>]Timed out.
[$][2][7][9][c][3][9][0][c][#][0][4]Packet received: 279c390c
Sending packet: $m46018c,4#33...[+]Ack
[$][0][3][9][9][e][0][2][1][#][c][d]Packet received: 0399e021
Sending packet: $m460190,4#01...[+]Ack
[$][2][7][b][d][f][f][9][0][#][6][4]Packet received: 27bdff90
Sending packet: $m460194,4#05...[+]Ack
[$][a][f][b][c][0][0][1][0][#][4][d]Packet received: afbc0010
Sending packet: $m460198,4#09...[+]Ack
[$][a][f][b][f][0][0][6][c][#][8][8]Packet received: afbf006c
Sending packet: $m46019c,4#34...[+]Ack
[$][a][f][b][c][0][0][6][8][#][5][a]Packet received: afbc0068
Breakpoint 1 at 0x4601a0: file /pub/xs1000/WLS/WLS_1.01/wls/wlsd/src/tun/wls_tun.c, line 606.
(gdb)
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Problems debugging multithreaded program wirh gdbserver via ser ial port
2004-11-08 15:53 Problems debugging multithreaded program wirh gdbserver via ser ial port Yoni Rabinovitch
@ 2004-11-08 15:53 ` Yoni Rabinovitch
2004-11-09 0:57 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Yoni Rabinovitch @ 2004-11-08 15:53 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-mips
[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]
>> 1) If I try to run the program from gdbserver (i.e. gdbserver /dev/ttyS0 wlsd), I get "readchar: Input/output error" messages,
>> and nothing works. See attached file gdb_fail.
>> What is going on here ?
>It sounds like your serial port is messed up.
What exactly do you mean by "messed up" ?
minicom seems to work OK. What do I need to check ?
>> 3) If I repeat the scenario described in 2), but with "set debug remote 1", it seems to work somewhat faster
>> (e.g. bt takes about 1 minute to complete).
>> I am seeing alot of "Packet instead of Ack, ignoring it" messages.
>> See attached file gdb_trace_debug.
>> What do these messages mean ?
>Try "set debug serial 1" in addition - it's very verbose but maybe it
> will tell you what the "packet" is.
Running with "set debug serial 1" gives me the following:
In the gdb session,I see lots of the following messages:
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
Simultaneously, in the gdbserver session (via minicom) I see:
+$OK#9a
Then, in the gdb session, I see lots of the following:
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
at which point, the gdbserver (minicom) session now proudly shows:
+$OK#9a$279c390c#04
See the attached file (gdb_trace_serial).
Why am I seeing stuff printed at the gdbserver (minicom) session ? Is this an indication that
something is wrong with the serial port, and if so, what ? What is the significance of the
messages gdb thinks are "Packet instead of Ack", which also seem to get printed out (once) in the
gdbserver session ?
Thanks !!
[-- Attachment #2: gdb_trace_serial --]
[-- Type: application/octet-stream, Size: 16899 bytes --]
gdbserver output (via minicom)
==============================
TDN# gdbserver /dev/ttyS0 --attach 80
Attached; pid = 80
Remote debugging using /dev/ttyS0
+$OK#9a+$279c390c#04
gdb output
==========
[root@LinuxApps wlsd]# /pub/mips-gdb -b 115200
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=mips-hardhat-linux".
(gdb) file bin/wlsd
Load new symbol table from "/pub/xs1000/WLS/WLS_1.01/wls/wlsd/bin/wlsd"? (y or n) y
Reading symbols from /pub/xs1000/WLS/WLS_1.01/wls/wlsd/bin/wlsd...done.
(gdb) set solib-absolute-prefix /pub/mips-gnu/
(gdb)
(gdb) set debug remote 1
(gdb) set debug serial 1
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Sending packet: $Hc-1#09...[
r +]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qC#b4...[+]Ack
[$][#][0][0]Packet received:
Sending packet: $qOffsets#4b...[+]Ack
[$][#][0][0]Packet received:
Sending packet: $?#3f...[+]Ack
[$][T][1][1][2][5][:][2][a][d][0][0][b][8][4][;][1][d][:][7][f][f][f][7][d][0][8][;][#][2][d]Packet received: T1125:2ad00b84;1d:7fff7d08;
Sending packet: $m2ad00b84,4#f2...[+]Ack
[$][1][4][e][0][f][f][f][6][#][6][2]Packet received: 14e0fff6
Sending packet: $m2ad00b80,4#ee...[+]Ack
[$][0][0][0][0][0][0][0][c][#][b][3]Packet received: 0000000c
Sending packet: $m2ad00b84,4#f2...[+]Ack
[$][1][4][e][0][f][f][f][6][#][6][2]Packet received: 14e0fff6
Sending packet: $m2ad00b80,4#ee...[+]Ack
[$][0][0][0][0][0][0][0][c][#][b][3]Packet received: 0000000c
0x2ad00b84 in ?? ()
Sending packet: $m400168,100#5d...[+]Ack
[$][0][0][0][0][0][0][0][1][0][0][0][0][0][0][5][7][0][0][0][0][0][0][0][1][0][0][0][0][0][0][7][0][0][0][0][0][0][0][0][1][0][0][0][1][2][f][3][6][0][0][0][0][0][0][0][c][0][0][4][2][6][e][b][0][0][0][0][0][0][0][0][d][0][0][6][f][3][9][5][0][0][0][0][0][0][0][0][4][0][0][4][0][0][2][6][8][0][0][0][0][0][0][0][5][0][0][4][1][2][4][e][0][0][0][0][0][0][0][0][6][0][0][4][0][5][6][3][0][0][0][0][0][0][0][0][a][0][0][0][1][2][f][6][3][0][0][0][0][0][0][0][b][0][0][0][0][0][0][1][0][7][0][0][0][0][0][1][6][1][0][0][2][b][a][8][0][0][0][0][0][0][0][1][5][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][3][1][0][0][2][b][a][a][0][0][0][0][0][0][0][1][1][0][0][4][2][6][e][a][0][0][0][0][0][0][0][1][2][0][0][0][0][0][0][1][0][0][0][0][0][0][0][1][3][0][0][0][0][0][0][0][8][7][0][0][0][0][0][0][1][0][0][0][0][0][0][0][1][7][0][0][0][0][0][0][5][0][0][0][0][0][0][0][2][7][0][0][0][0][0][0][6][0][0][4][0][0][0][0][0][7][0][0][0][0][0][0][a][0][0][0][0][0][0][3][c][7][0][0][0][0][0][1][1][0][0][0][0][0][c][e][b][7][0][0][0][0][0][1][2][0][0][0][0][0][0][2][4][7][0][0][0][0][0][1][3][0][0][0][0][0][0][0][5][6][f][f][f][f][f][f][e][0][0][4][2][6][e][1][c][6][f][f][f][f][f][f][f][0][0][0][0][0][0][0][3][6][f][f][f][f][f][f][0][0][0][4][2][5][4][4][4][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][#][6][b]Packet received: 000000010000005700000001000000700000000100012f360000000c00426eb00000000d006f3950000000040040026800000005004124e000000006004056300000000a00012f630000000b00000010700000161002ba800000001500000000000000031002baa00000001100426ea0000000120000001000000013000000087000000100000001700000050000000270000006004000007000000a0000003c7000001100000ceb700000120000002470000013000000056ffffffe00426e1c6fffffff000000036ffffff000425444000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Sending packet: $m1002ba80,4#bb...[+]Ack
[$][2][a][b][1][9][3][7][0][#][f][9]Packet received: 2ab19370
Sending packet: $m2ab19374,4#ca...[+]Ack
[$][2][a][b][1][9][3][8][8][#][0][2]Packet received: 2ab19388
Sending packet: $m2ab19388,14#00...[+]Ack
[$][0][0][0][0][0][0][0][0][2][a][a][d][6][6][4][8][0][0][4][0][0][1][6][8][2][a][b][1][9][8][c][0][0][0][0][0][0][0][0][0][#][e][d]Packet received: 000000002aad6648004001682ab198c000000000
Sending packet: $m2ab198c0,14#28...[+]Ack
[$][2][a][b][4][0][0][0][0][2][a][b][1][9][8][a][8][2][a][b][4][0][1][2][c][2][a][b][1][9][b][8][0][2][a][b][1][9][3][8][8][#][6][3]Packet received: 2ab400002ab198a82ab4012c2ab19b802ab19388
Sending packet: $m2ab198a8,4#fd...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab198ac,4#28...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab198b0,4#f6...[+]Ack
[$][7][0][7][4][6][8][7][2][#][a][9]Packet received: 70746872
Sending packet: $m2ab198b4,4#fa...[+]Ack
[$][6][5][6][1][6][4][2][e][#][d][3]Packet received: 6561642e
Sending packet: $m2ab198b8,4#fe...[+]Ack
[$][7][3][6][f][2][e][3][0][#][0][0]Packet received: 736f2e30
Sending packet: $m2ab198bc,4#29...[+]Ack
[$][0][0][0][0][0][0][0][0][#][8][0]Packet received: 00000000
Sending packet: $m2ab19b80,14#27...[+]Ack
[$][2][a][b][c][0][0][0][0][2][a][b][1][9][b][7][0][2][a][b][c][0][1][2][c][2][a][a][a][8][0][0][0][2][a][b][1][9][8][c][0][#][d][5]Packet received: 2abc00002ab19b702abc012c2aaa80002ab198c0
Sending packet: $m2ab19b70,4#f5...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19b74,4#f9...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19b78,4#fd...[+]Ack
[$][7][2][7][4][2][e][7][3][#][d][5]Packet received: 72742e73
Sending packet: $m2ab19b7c,4#28...[+]Ack
[$][6][f][2][e][3][1][0][0][#][f][7]Packet received: 6f2e3100
Sending packet: $m2aaa8000,14#1b...[+]Ack
[$][2][a][c][4][0][0][0][0][2][a][b][1][9][e][2][0][2][a][c][4][0][1][4][c][2][a][b][1][9][0][d][0][2][a][b][1][9][b][8][0][#][7][e]Packet received: 2ac400002ab19e202ac4014c2ab190d02ab19b80
Sending packet: $m2ab19e20,4#f3...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19e24,4#f7...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m2ab19e28,4#fb...[+]Ack
[$][6][3][2][e][7][3][6][f][#][0][6]Packet received: 632e736f
Sending packet: $m2ab19e2c,4#26...[+]Ack
[$][2][e][3][6][0][0][0][0][#][c][0]Packet received: 2e360000
Sending packet: $m2ab190d0,14#21...[+]Ack
[$][2][a][a][c][0][0][0][0][0][0][4][0][0][1][1][4][2][a][a][c][0][0][c][c][0][0][0][0][0][0][0][0][2][a][a][a][8][0][0][0][#][b][b]Packet received: 2aac0000004001142aac00cc000000002aaa8000
Sending packet: $m400114,4#f7...[+]Ack
[$][2][f][6][c][6][9][6][2][#][0][8]Packet received: 2f6c6962
Sending packet: $m400118,4#fb...[+]Ack
[$][2][f][6][c][6][4][2][e][#][3][2]Packet received: 2f6c642e
Sending packet: $m40011c,4#26...[+]Ack
[$][7][3][6][f][2][e][3][1][#][0][1]Packet received: 736f2e31
Sending packet: $m400120,4#f4...[+]Ack
[$][0][0][0][0][0][0][0][0][#][8][0]Packet received: 00000000
Sending packet: $qSymbol::#5b...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][5][7][6][6][5][6][e][7][4][7][3][#][0][d]Packet received: qSymbol:5f5f707468726561645f746872656164735f6576656e7473
Packet qSymbol (symbol-lookup) is supported
Sending packet: $qSymbol:2ab98948:5f5f707468726561645f746872656164735f6576656e7473#52...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][c][6][1][7][3][7][4][5][f][6][5][7][6][6][5][6][e][7][4][#][9][0]Packet received: qSymbol:5f5f707468726561645f6c6173745f6576656e74
Sending packet: $qSymbol:2ab98950:5f5f707468726561645f6c6173745f6576656e74#ce...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][8][6][1][6][e][6][4][6][c][6][5][7][3][5][f][6][e][7][5][6][d][#][5][b]Packet received: qSymbol:5f5f707468726561645f68616e646c65735f6e756d
Sending packet: $qSymbol:2ab95ab0:5f5f707468726561645f68616e646c65735f6e756d#eb...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][8][6][1][6][e][6][4][6][c][6][5][7][3][#][1][f]Packet received: qSymbol:5f5f707468726561645f68616e646c6573
Sending packet: $qSymbol:2ab91ab0:5f5f707468726561645f68616e646c6573#ab...[+]Ack[$][q][S][y][m][b][o][l][:][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][b][6][5][7][9][7][3][#][7][e]Packet received: qSymbol:707468726561645f6b657973
Sending packet: $qSymbol:2ab96540:707468726561645f6b657973#b5...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][d][6][1][7][8][#][c][b]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178
Sending packet: $qSymbol:2ab51a10:5f5f6c696e7578746872656164735f707468726561645f746872656164735f6d6178#22...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][6][b][6][5][7][9][7][3][5][f][6][d][6][1][7][8][#][c][0]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178
Sending packet: $qSymbol:2ab51a80:5f5f6c696e7578746872656164735f707468726561645f6b6579735f6d6178#1e...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][7][0][7][4][6][8][7][2][6][5][6][1][6][4][5][f][7][3][6][9][7][a][6][5][6][f][6][6][5][f][6][4][6][5][7][3][6][3][7][2][#][6][8]Packet received: qSymbol:5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372
Sending packet: $qSymbol:2ab51a50:5f5f6c696e7578746872656164735f707468726561645f73697a656f665f6465736372#c3...[+]Ack
[$][q][S][y][m][b][o][l][:][5][f][5][f][6][c][6][9][6][e][7][5][7][8][7][4][6][8][7][2][6][5][6][1][6][4][7][3][5][f][6][3][7][2][6][5][6][1][7][4][6][5][5][f][6][5][7][6][6][5][6][e][7][4][#][b][6]Packet received: qSymbol:5f5f6c696e7578746872656164735f6372656174655f6576656e74
Sending packet: $qSymbol:2ab51460:5f5f6c696e7578746872656164735f6372656174655f6576656e74#e5...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet
instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>]Sending packet: $qSymbol::#5b...[$]Packet
instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][$]Packet instead of Ack, ignoring it
[O][K][#][9][a][<Timeout: 60 seconds>][<Timeout: 60 seconds>]Timed out.
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
Sending packet: $qSymbol::#5b...[+]Ack
[$][O][K][#][9][a]Packet received: OK
(gdb) break low_level_input
Sending packet: $m460184,4#04...[+]Ack
[$][3][c][1][c][0][f][b][d][#][8][6]Packet received: 3c1c0fbd
Sending packet: $m460188,4#08...[<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>]Sending packet: $m460188,4#08...[$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][$]Packet instead of Ack, ignoring it
[2][7][9][c][3][9][0][c][#][0][4][<Timeout: 60 seconds>][<Timeout: 60 seconds>]Timed out.
[$][2][7][9][c][3][9][0][c][#][0][4]Packet received: 279c390c
Sending packet: $m46018c,4#33...[+]Ack
[$][0][3][9][9][e][0][2][1][#][c][d]Packet received: 0399e021
Sending packet: $m460190,4#01...[+]Ack
[$][2][7][b][d][f][f][9][0][#][6][4]Packet received: 27bdff90
Sending packet: $m460194,4#05...[+]Ack
[$][a][f][b][c][0][0][1][0][#][4][d]Packet received: afbc0010
Sending packet: $m460198,4#09...[+]Ack
[$][a][f][b][f][0][0][6][c][#][8][8]Packet received: afbf006c
Sending packet: $m46019c,4#34...[+]Ack
[$][a][f][b][c][0][0][6][8][#][5][a]Packet received: afbc0068
Breakpoint 1 at 0x4601a0: file /pub/xs1000/WLS/WLS_1.01/wls/wlsd/src/tun/wls_tun.c, line 606.
(gdb)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problems debugging multithreaded program wirh gdbserver via ser ial port
2004-11-08 15:53 Problems debugging multithreaded program wirh gdbserver via ser ial port Yoni Rabinovitch
2004-11-08 15:53 ` Yoni Rabinovitch
@ 2004-11-09 0:57 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2004-11-09 0:57 UTC (permalink / raw)
To: Yoni Rabinovitch; +Cc: linux-mips
On Mon, Nov 08, 2004 at 05:53:40PM +0200, Yoni Rabinovitch wrote:
> Running with "set debug serial 1" gives me the following:
>
> In the gdb session,I see lots of the following messages:
> [O][K][#][9][a][$]Packet instead of Ack, ignoring it
>
> Simultaneously, in the gdbserver session (via minicom) I see:
> +$OK#9a
Um.... you're running with a serial port open on the same port you're
trying to debug on? That can't work. Use one for console and the
other for gdbserver, or come to some other arrangement if your board
only has one.
--
Daniel Jacobowitz
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Problems debugging multithreaded program wirh gdbserver via ser ial port
@ 2004-11-09 16:08 Yoni Rabinovitch
2004-11-09 16:08 ` Yoni Rabinovitch
0 siblings, 1 reply; 5+ messages in thread
From: Yoni Rabinovitch @ 2004-11-09 16:08 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-mips
>> Simultaneously, in the gdbserver session (via minicom) I see:
>> +$OK#9a
>Um.... you're running with a serial port open on the same port you're
>trying to debug on? That can't work. Use one for console and the
>other for gdbserver, or come to some other arrangement if your board
>only has one.
OK, thanks. I now have this sorted out. It seems the only way it agrees to work
is if I start gdbserver in a minicom session, and then kill -9 the minicom session, and then connect
with gdb.
So, now I have basic (command line) gdb <-> gdbserver working OK over the serial connection.
However, I am trying to run gdb from a GUI front end, which is running gdb/mi.
What I am seeing is that the GUI is invoking gdb/mi stack-info-depth, which seems to be
causing a memory exception in frame_register_unwind ("Cannot access memory at address 0x2c").
Thus, even though gdb is able to decipher the stack, the error at the end of the backtrace causes
the gdb/mi GUI to choke.
How can I work around this ?
Thanks !!
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Problems debugging multithreaded program wirh gdbserver via ser ial port
2004-11-09 16:08 Yoni Rabinovitch
@ 2004-11-09 16:08 ` Yoni Rabinovitch
0 siblings, 0 replies; 5+ messages in thread
From: Yoni Rabinovitch @ 2004-11-09 16:08 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: linux-mips
>> Simultaneously, in the gdbserver session (via minicom) I see:
>> +$OK#9a
>Um.... you're running with a serial port open on the same port you're
>trying to debug on? That can't work. Use one for console and the
>other for gdbserver, or come to some other arrangement if your board
>only has one.
OK, thanks. I now have this sorted out. It seems the only way it agrees to work
is if I start gdbserver in a minicom session, and then kill -9 the minicom session, and then connect
with gdb.
So, now I have basic (command line) gdb <-> gdbserver working OK over the serial connection.
However, I am trying to run gdb from a GUI front end, which is running gdb/mi.
What I am seeing is that the GUI is invoking gdb/mi stack-info-depth, which seems to be
causing a memory exception in frame_register_unwind ("Cannot access memory at address 0x2c").
Thus, even though gdb is able to decipher the stack, the error at the end of the backtrace causes
the gdb/mi GUI to choke.
How can I work around this ?
Thanks !!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-09 16:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-08 15:53 Problems debugging multithreaded program wirh gdbserver via ser ial port Yoni Rabinovitch
2004-11-08 15:53 ` Yoni Rabinovitch
2004-11-09 0:57 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2004-11-09 16:08 Yoni Rabinovitch
2004-11-09 16:08 ` Yoni Rabinovitch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox