This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Connecting to GDB stubs


Hi,

I cannot connect to my target from gdb using GDB stubs in the target application. The host is a Windows machine with cygwin and my target is an i386 PC with GRUB startup type. I have included CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS and CYGDBG_HAL_DEBUG_GDB_INITIAL_BREAK and when I boot my application from GRUB it stops (probably at the initial breakpoint). Then I try to connect using gdb, but get following errors:

$ i386-elf-gdb
GNU gdb 5.3 (eCosCentric)
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-cygwin --target=i386-elf".
(gdb) set remotebaud 38400
(gdb) target remote /dev/com1
Remote debugging using /dev/com1
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)



Note, that I have no problems to upload applications with RAM startup type using com1 (or ethernet) so it should not be any problems with my serial connection.


Anyone have any ideas?

/Joel Eriksson

_________________________________________________________________
Auktioner: Tjäna en hacka på gamla prylar http://tradera.msn.se


-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]