bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

target remote: could not set breakpoint


From: Radu Grigore
Subject: target remote: could not set breakpoint
Date: 10 Jul 2002 01:13:02 -0700

I'm not sure if this is a bug.

Background:
----------
GDB version 5.2.
Compiled using uclibc like this:
 - configure
 - make
 - cd gdb/gdbserver
 - joe Makefile # so it uses ARM compiler (as specified on
www.uclibc.org)
 - make

The target has an ARM processor and is connected to the i686 host
using Ethernet.


The problem:
------------

The commands:
 - on target: gdbsever host_ip:123 test.arm
 - on host: gdb test.arm, target remote target_ip:123, break main,
continue

The response (on host) is:

warning: Cannot insert breakpoint -3:
Cannot access memory at address 0x207c

By using "set debug remote 1" the following information is obtained:

--------------------------------------------------------
remote debugging using 10.32.0.19:123
Sending packet: $Hc-1#09...Ack
Packet received: OK
Sending packet: $qC#b4...Ack
Packet received: 
Sending packet: $qOffsets#4b...Ack
Packet received: 
Sending packet: $?#3f...Ack
Packet received: T0508:00000000;05:00000000;04:2c0e0040;
Sending packet: $m0,8#01...Ack
Packet received: ffffffffffffffff
Sending packet: $m0,7#00...Ack
Packet received: ffffffffffffff
0x00000000 in ?? ()
Sending packet: $m10394,60#00...Ack
Packet received: 
01000000010000000400000000810000050000002c820000060000004c8100000a000000960000000b00000010000000150000000000000003000000800301000200000010000000140000001100000017000000c48200000000000000000000
Sending packet: $qSymbol::#5b...Ack
Packet received: 
Packet qSymbol (symbol-lookup) is NOT supported
(gdb) break main
Sending packet: $m8320,1#97...Ack
Packet received: 0d
Sending packet: $m8320,1#97...Ack
Packet received: 0d
Note: breakpoint 1 also set at pc 0x8320.
Breakpoint 2 at 0x8320: file test.c, line 4.
(gdb) c
Continuing.
Sending packet: $Z0,8320,1#e0...Ack
Packet received: 
Packet Z0 (software-breakpoint) is NOT supported
Sending packet: $m8320,1#97...Ack
Packet received: 0d
Sending packet: $X8320,0:#bb...Ack
Packet received: 
binary downloading NOT suppported by target
Sending packet: $M8320,1:cc#77...Ack
Packet received: OK
Sending packet: $m207c,1#c6...Ack
Packet received: ff
Sending packet: $M207c,1:cc#a6...Ack
Packet received: ENN
Sending packet: $M207c,1:cc#a6...Ack
Packet received: ENN
warning: Cannot insert breakpoint -3:
Cannot access memory at address 0x207c
-----------------------------------------------------------------

Why does the target not support those things (symbol-lookup,
software-breakpoint, binary d/l)?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]