This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: MIPS32 gdb vectors question
On Fri, 2003-02-28 at 06:02, Tim Michals wrote:
> Mark,
>
> Here's the latest output..., this dump is after a modification to eCOS
>
>
> /ecos-c/mips/acacia/ecos/examples
> $ mipsisa32-elf-gdb.exe twothreads
> GNU gdb 5.3
> Copyright 2002 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=i686-pc-cygwin --target=mipsisa32-elf"...
> (gdb) set remotebaud 115200
> (gdb) load
> You can't do that when your target is `exec'
> (gdb) target remote com2
> Remote debugging using com2
> ?? () at fp-bit.c:183
> 183 {
> Current language: auto; currently c
> (gdb) load
> Loading section .rom_vectors, size 0xcc lma 0x80500000
> Loading section .text, size 0x42c28 lma 0x805000cc
> Loading section .rodata, size 0x3f00 lma 0x80542cf8
> Loading section .data, size 0x20a38 lma 0x80546bf8
> Loading section .ctors, size 0x58 lma 0x80567630
> Loading section .dtors, size 0x40 lma 0x80567688
> Loading section .devtab, size 0x260 lma 0x805676c8
> Start address 0x805000bc, load size 424228
> Transfer rate: 80805 bits/sec, 248
>
> Tracing the code out in gdb5.3
> - the issue is the number of registers in gdb it is defined as PC_REGNUM 37
> (tm-mips.h)
> In mips-tdep.c in gdb source
>
> 764 mips_read_pc (ptid_t ptid)
> - 765 {
> - 766 return read_signed_register_pid (PC_REGNUM, ptid);
> - 767 }
>
> - In mips-regs.h it is 107, hence the packet length?
>
> If I change mips-stub.h to #if defined(CYGPKG_HAL_MIPS_GDB_REPORT_CP0)
> #define NUMREGS 37
> #else
> #define NUMREGS 37
> #endif
>
I don't see the point of this change. Am I missing something?
> ----- Original Message -----
> From: "Mark Salter" <msalter at redhat dot com>
> To: <t dot michals at attbi dot com>
> Cc: <nickg at ecoscentric dot com>; <jifl at ecoscentric dot com>;
> <ecos-discuss at sources dot redhat dot com>
> Sent: Friday, February 28, 2003 6:59 AM
> Subject: Re: [ECOS] MIPS32 gdb vectors question
>
>
> > >>>>> Tim Michals writes:
> >
> > > sorry for the confusion, I'm getting gcc 3.2 an gdb versions confused.
> I'm
> > > using the latest gdb 5.3. If you look at the screen dumps, it is gdb
> 5.3.
> >
> > I've missed the screen dump if you posted it. What does gdb print at
> > startup?
> >
> > --Mark
> >
>
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary dot thomas at mind dot be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss