public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] MIPS GDB Problems
@ 2000-11-27  5:59 Colin Spier
  2000-11-27  9:57 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Colin Spier @ 2000-11-27  5:59 UTC (permalink / raw)
  To: Ecos-Discuss@Sourceware. Cygnus. Com

Hi,

I'm trying to use eCos with a slightly unusual MIPS chip (I'm compiling
with -mcpu=r4000 -mips2).  I'm using a GNU toolchain (binutils 2.10.1, gcc
2.95.2 and insight 5.0) built for mips-elf (I had to make some slight
changes to the gcc makefile so that I can use -mips2)

I've built with '-g' and located my code at 0x80000000.  It runs OK, but GDB
can't find the code...

If I try 'list main' then it lists the 'abort' code.  Similarly, if I try
'list breakpoint' it also lists the 'abort' code!  If I single step
assembler instructions then gdb complains, e.g. "Warning: GDB can't find the
start of the function at 0x8003c50c"

I wonder if this is because the address has been sign extended.
mips-elf-objdump shows the code starting at 0xffffffff80000000.  Similarly,
if I have a 'main' function at 0x80028644 then if I try to 'disassemble
0x80028644' gdb says "No function contains specified address".  However, if
I 'disassemble 0xffffffff80028644' then this shows the assembly code for my
main function.


All suggestions as to how I can get gdb to see my source are welcome!

Thanks,

Colin.
--
Colin Spier
PipingHot Networks Ltd.
Office: +44 (0)1364 655500
DDI: +44 (0)1364 655521
Fax: +44 (0)1364 654625
mailto:colin.spier@pipinghotnetworks.com
http://www.pipinghotnetworks.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-11-28  9:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-27  5:59 [ECOS] MIPS GDB Problems Colin Spier
2000-11-27  9:57 ` Jonathan Larmour
2000-11-28  6:29   ` Colin Spier
2000-11-28  9:01     ` Jonathan Larmour
2000-11-28  9:38       ` Colin Spier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).