Hi all,
I'm currently trying to get GDB 6.7.1 working with CodeBlocks but I can't get it working.
Here's my log:
PATH=.;C:\Program Files\CodeBlocks\dc\sh-elf\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Smart Projects\IsoBuster;C:\Program Files\QuickTime\QTSystem\
Command-line: C:\Program Files\CodeBlocks\dc\sh-elf\bin\sh-elf-gdb.exe -nx -fullname -quiet -args hello.elf
Working dir : C:\cb_mingw_test\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.7.1
Copyright (C) 2007 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 "--host=i686-pc-mingw32 --target=sh-elf".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
No symbol "debugevents" in current context.
>>>>>>cb_gdb:
> set new-console on
No symbol "new" in current context.
>>>>>>cb_gdb:
> set disassembly-flavor att
No symbol "disassembly" in current context.
>>>>>>cb_gdb:
> target remote: 2159
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
gdb_init () at gdb_stub.c:989
warning: Invalid remote reply:
c:\MinGW\dreamcast\kos\kernel\arch\dreamcast\kernel/gdb_stub.c:989:24742:beg:0x8c010ed4
>>>>>>cb_gdb:
> directory C:/cb_mingw_test/
>>>>>>cb_gdb:
> run
I just tried using GDB manually and have it working using the following commands:
sh-elf-gdb "C:\Documents and Settings\Cyle\Desktop\cb_mingw_test\hello.elf"
target remote: 2159
next
sh-elf-gdb.exe "c:\Documents and Settings\Cyle\Desktop\cb_mingw_test\hello.elf"
GNU gdb 6.7.1
Copyright (C) 2007 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 "--host=i686-pc-mingw32 --target=sh-elf"...
(gdb) target remote: 2159
Remote debugging using : 2159
gdb_init () at gdb_stub.c:989
989 }
(gdb) next
main (argc=255, argv=0x8c010e20)
at C:\Documents and Settings\Cyle\Desktop\cb_mingw_test\main.c:7
7 printf("\nHello world!\n\n");
Any ideas?
Thanks!