Hi,
I'm using gdb with a simulator to whitch I connect through jtag and for some reason I'm having problems setting breakpoints. I think that this is because of code::blocks sending the wrong path to the debugger.
My settings are:
target: Debug
output filename: ./bt/except/except-icdc.bt
execution work dir.: .
debugger initialisation commands: target jtag jtag://localhost:9998
This is the debugger log:
Command-line: /opt/bt-elf/bin/bt-elf-gdb -nx -fullname -quiet -args ./bt/except/except-icdc.bt
Working dir : /home/domenv/svn/
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.5
Copyright (C) 2006 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=x86_64-unknown-linux-gnu --target=bt-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 disassembly-flavor att
No symbol "disassembly" in current context.
>>>>>>cb_gdb:
> target jtag jtag://localhost:9998
Remote or1k debugging using jtag://localhost:9998
8 hw watchpoints available
0x00000100 in vec_start ()
>>>>>>cb_gdb:
> directory /home/domenv/svn/
>>>>>>cb_gdb:
> delete breakpoints
>>>>>>cb_gdb:
> break "bt/except/except_c.c:1349"
No source file named bt/except/except_c.c.
Breakpoint 1 ("bt/except/except_c.c:1349) pending.
>>>>>>cb_gdb:
The part that is giving me a head ache is:
> break "bt/except/except_c.c:1349"
No source file named bt/except/except_c.c.
Breakpoint 1 ("bt/except/except_c.c:1349) pending.
How do I change the path that code::blocks is using to set breakpoints?