From: Fabio G. <fg...@ti...> - 2002-03-25 09:30:09
|
>You don't mention whether you still have minicom running or not. >To allow gdb clear communication to the stub, you need to terminate or >suspend >minicom. Yes. I suspend minicom. > >Regarding your later mail, moving io.h up is definitely the right fix; if >you Yes. I muved up io.h and the compilation finishes good. >don't do the sti() then the breakpoint() tries to do a trapa while the BL >bit is >set and the CPU will take a reset exception. > >Have you already moved io.h up and it didn't help -- you don't see the 'g' >or the >initial GDB packet ($S05#b8)? I understand, and I verified the commenting sti(); a reset is generated. I have to add: 1) I'm using sh SCI port and not SCIF; 2) to communicate with the extern world I need a connector simulating the full rs232 connection (pin 1 and 5 of the DB-9 connector connected togheter), so I have: PC ---- connector ---- cable ----- my board 3) If I connect my linux PC to a wi98 PC instead of my board and I run iperterminal, when I run "gdb) target remote /dev/ttyS0" I see +$Hc-1#09$Hc-1#09$Hc-1#09$Hc-1#09---+$qC#b4$qC#b4$qC#b4$qC#b4---+$qOffsets#4b $qOffsets#4b$qOffsets#4b$qOffsets#4b---+ Is it right? Thanks. P.S. After suspending minicom I run the following steps. Are they correct? bash-2.05# sh-linux-gnu-gdb ./sh/linux/vmlinux GNU gdb 5.1.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 "--host=i686-pc-linux-gnu --target=sh-linux-gnu"... (gdb) set endian little The target is assumed to be little endian (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 Ignoring packet error, continuing... Ignoring packet error, continuing... Ignoring packet error, continuing... Couldn't establish connection to remote target Malformed response to offset query, timeout (gdb) |