* Problem cross-debugging from Solaris to Linux/PPC
@ 2002-10-04 9:46 Paul J.Y. Lahaie
2002-10-04 11:39 ` Paul Koning
0 siblings, 1 reply; 2+ messages in thread
From: Paul J.Y. Lahaie @ 2002-10-04 9:46 UTC (permalink / raw)
To: gdb
I'm trying to cross-debug from Solaris 9/SPARC to Linux/PPC and I am
unable to get it working.
I've got Linux/x86 to Linux/PPC working with gdb 5.2 and I am using the
same gdbserver on the Linux/PPC host.
On the Solaris host I get the following:
(gdb) file ~/hello
Reading symbols from ~/hello...done.
(gdb) target remote ppc:5000
Remote debugging using ppc:5000
0x30010e40 in ?? ()
(gdb) break main
Breakpoint 1 at 0x100004bc: file hello.c, line 5.
(gdb) cont
Continuing.
warning: Cannot insert breakpoint -1:
Cannot access memory at address 0x3001a084
(gdb)
I've tried both 5.2 and 5.2.1, compiled with gcc 3.2 and gcc 2.95.3.
Paul
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem cross-debugging from Solaris to Linux/PPC
2002-10-04 9:46 Problem cross-debugging from Solaris to Linux/PPC Paul J.Y. Lahaie
@ 2002-10-04 11:39 ` Paul Koning
0 siblings, 0 replies; 2+ messages in thread
From: Paul Koning @ 2002-10-04 11:39 UTC (permalink / raw)
To: pjlahaie; +Cc: gdb
>>>>> "Paul" == Paul J Y Lahaie <Paul> writes:
Paul> I'm trying to cross-debug from Solaris 9/SPARC to Linux/PPC and
Paul> I am unable to get it working.
Paul> I've got Linux/x86 to Linux/PPC working with gdb 5.2 and I am
Paul> using the same gdbserver on the Linux/PPC host.
Paul> On the Solaris host I get the following:
Paul> (gdb) file ~/hello Reading symbols from ~/hello...done. (gdb)
Paul> target remote ppc:5000 Remote debugging using ppc:5000
Paul> 0x30010e40 in ?? () (gdb) break main Breakpoint 1 at
Paul> 0x100004bc: file hello.c, line 5. (gdb) cont Continuing.
Paul> warning: Cannot insert breakpoint -1: Cannot access memory at
Paul> address 0x3001a084 (gdb)
I tripped over this too on a different target. What a pain.
The problem is that gdb is trying to set a breakpoint at _start,
__start, or main, whichever it finds first. If the one it finds is an
address that you can't access, you get this error.
It sure would be better if gdb would ignore errors in such attempts to
set internally generated magical breakpoints, rather than throwing up
like this.
As a solution, either make _start or __start go away (so main is used,
which apparently is a valid address) or redefine them to some innocent
address.
paul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-04 18:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04 9:46 Problem cross-debugging from Solaris to Linux/PPC Paul J.Y. Lahaie
2002-10-04 11:39 ` Paul Koning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox