[Prev][Next][Index][Thread]
serial remote debugging with oskit and gdb
Hi
I have problems using the newest gdb 5.2.1 with oskit over a serial line.
As it seems the GDB Remote Serial Protocol has changed a bit, or an
implentation has a small quirk (oskit or gdb?).
wagi@newton:~/hurd/oskit-test$ /usr/local/gdb/bin/gdb pcmcia_init
GNU gdb 5.2.1
Copyright 2002 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 "i686-pc-linux-gnu"...
(gdb) set debug serial 1
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
[
r +][$][#][0][0][+][$][#][0][0][+][$][#][0][0][+][$][S][0][5][#][b][8][+][$][#][0][0][+][$][e][f][f][*]["][0][4][0][*]["][2][1][0][*]["][e][0][a][0][0][2][0][0][7][0][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][8][a][0][0][1][0][0][0][0][2][0][2][0][*][ ][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][6][0][0][1][8][0][0][1][4][0][*][*][1][2][0][0][#][8][7][+][$][0][6][0][*]["][#][e][2][+][$][0][*]["][0][1][#][d][d]main (argc=6, argv=0x1000000) at pcmcia_init.c:97
97 oskit_clientos_init();
[+][$][#][0][0](gdb) n
[+][$][#][0][0][+][$][e][b][#][c][7][+][$][O][K][#][9][a][+][$][O][K][#][9][a][+][$][#][0][0][+][$][S][0][5][#][b][8][+][$][e][f][f][*]["][0][4][0][*]["][2][1][0][*]["][e][0][a][0][0][2][0][0][6][c][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][c][0][0][2][1][0][0][0][0][2][0][3][0][1][0][0][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][4][0][0][1][8][0][*][&][1][2][0][*]["][1][6][0][0][#][1][5][+][$][8][f][0][0][1][0][0][0][#][b][f][+][$][e][8][#][9][d][+][$][O][K][#][9][a][+][$][S][0][5][#][b][8][+][$][0][*][.][8][0][1][4][0][0][e][0][a][0][0][2][0][0][7][0][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][9][0][0][0][1][0][0][0][4][6][0][2][0][*][ ][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][6][0][0][1][8][0][0][1][4][0][*][$][0][1][0][*][ ][1][0][0][0][#][a][b][+][$][O][K][#][9][a][+][$][E][0][4][#][a][9]Remote failure reply: E04
[+][$][O][K][#][9][a](gdb)
wagi@newton:~/hurd/oskit-test$ /usr/local/gdb-5.0/bin/gdb pcmcia_init
GNU gdb 5.0
Copyright 2000 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 "i686-pc-linux-gnu"...
(gdb) set debug serial 1
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
[
r +][$][#][0][0][+][$][#][0][0][+][$][#][0][0][+][$][S][0][5][#][b][8][+][$][#][0][0][+][$][e][f][f][*]["][0][4][0][*]["][2][1][0][*]["][e][0][a][0][0][2][0][0][7][0][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][8][a][0][0][1][0][0][0][0][2][0][2][0][*][ ][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][6][0][0][1][8][0][0][1][4][0][*][*][1][2][0][0][#][8][7][+][$][0][6][0][*]["][#][e][2]main ([+][$][0][*]["][0][1][#][d][d]argc=6, argv=0x1000000) at pcmcia_init.c:97
97 oskit_clientos_init();
(gdb) n
[+][$][#][0][0][+][$][S][0][5][#][b][8][+][$][e][f][f][*]["][0][4][0][*]["][2][1][0][*]["][e][0][a][0][0][2][0][0][6][c][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][c][0][0][2][1][0][0][0][0][2][0][3][0][1][0][0][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][4][0][0][1][8][0][*][&][1][2][0][*]["][1][6][0][0][#][1][5][+][$][8][f][0][0][1][0][0][0][#][b][f][+][$][#][0][0][+][$][e][8][#][9][d][+][$][O][K][#][9][a][+][$][O][K][#][9][a][+][$][S][0][5][#][b][8][+][$][0][*][.][8][0][1][4][0][0][e][0][a][0][0][2][0][0][7][0][5][f][1][6][0][0][a][8][5][f][1][6][0][0][1][4][a][1][0][2][0][0][d][4][d][b][1][6][0][0][9][0][0][0][1][0][0][0][4][6][0][2][0][*][ ][1][1][0][*]["][1][9][0][*]["][1][8][0][0][1][6][0][0][1][8][0][0][1][4][0][*][$][0][1][0][*][ ][1][0][0][0][#][a][b][+][$][O][K][#][9][a][+][$][O][K][#][9][a]98 oskit_print_version ();
(gdb)
Does anybody know what's going wrong?
- wagi
Follow-Ups: