This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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]

Re: set debug remote 1


On Tue, 2004-11-30 at 04:59, Ilko Iliev wrote:
> Hi,
> I have try to debug remote connection with:
> set debug remote 1
> from the insight console window and it dosn't work.
> It doesn't print debug info neither in insight console window  nor in 
> xterm console.

I hate to say stuff like this, but... It works for me. From the insight
console (snapshot of cvs today):

(gdb) tar sim
Connected to the simulator.

(gdb) load
Loading section .text, size 0x9210 vma 0x8000
Loading section .rodata, size 0x314 vma 0x11210
Loading section .data, size 0x864 vma 0x11624
Loading section .ctors, size 0x8 vma 0x11e88
Loading section .dtors, size 0x8 vma 0x11e90
Start address 0x8000
Transfer rate: 322752 bits in <1 sec.

(gdb) b main
Breakpoint 3 at 0x80fc: file pi.c, line 25.

(gdb) set debug remote 1
(gdb) r
Starting program: /home/keiths/pi/pi-print.arm-elf 
gdbsim_create_inferior: exec_file "/home/keiths/pi/pi-print.arm-elf",
args ""
gdbsim_kill
gdbsim_fetch_register: 13	0x800
gdbsim_xfer_inferior_memory: myaddr 0x0x9a90e50, memaddr 0x8d54, len 4,
write 0
	0xe59f2064
gdbsim_xfer_inferior_memory: myaddr 0x0x83534d0, memaddr 0x8d54, len 4,
write 1
	0xe7ffdefe
gdbsim_xfer_inferior_memory: myaddr 0x0x9a28b98, memaddr 0x80fc, len 4,
write 0
	0xe3a03000
gdbsim_xfer_inferior_memory: myaddr 0x0x83534d0, memaddr 0x80fc, len 4,
write 1
	0xe7ffdefe
gdbsim_fetch_register: 15	0x8000
gdbsim_resume: step 0, signal 0
gdbsim_wait
gdbsim_fetch_register: 15	0x80fc
gdbsim_fetch_register: 13	0x1fffd8
gdbsim_xfer_inferior_memory: myaddr 0x0x9a90e50, memaddr 0x8d54, len 4,
write 1
	0xe59f2064
gdbsim_xfer_inferior_memory: myaddr 0x0x9a28b98, memaddr 0x80fc, len 4,
write 1
	0xe3a03000

Breakpoint 3, main (argc=gdbsim_fetch_register: 11	0x1ffff8
gdbsim_xfer_inferior_memory: myaddr 0x0x9ab5b30, memaddr 0x1fffe4, len
4, write 0
	0x1
1, argv=gdbsim_xfer_inferior_memory: myaddr 0x0x9a98ba0, memaddr
0x1fffe0, len 4, write 0
	0x1ffffc
0x1ffffc) at pi.c:25

Are you using "set debug remote" or "set remotedebug"/"set remote debug"
which are deprecated?

Keith


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