This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Patch to fix mips-elf failures in simulator for relocate.exp
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fred Fish <fnf at specifix dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 15 May 2006 11:54:24 -0400
- Subject: Re: [RFA] Patch to fix mips-elf failures in simulator for relocate.exp
- References: <200605111142.06271.fnf@specifix.com>
On Thu, May 11, 2006 at 11:42:06AM -0400, Fred Fish wrote:
> 2006-05-11 Fred Fish <fnf@specifix.com>
>
> * gdb.base/relocate.exp: Use gdb_file_cmd rather than
> gdb_load, so it works in the simulator.
Yeah, this is OK. Thanks.
Fred and I discussed this earlier. I arranged (back when I added this
test) for "file foo.o" to assign addresses to its sections somewhat
arbitrarily, so that they would not overlap, so that static data could
be read and written. But gdb_load, which normally does a "file" only,
is overridden by e.g. simulator targets to actually load sections to
the target, and that didn't work out very well, because the mocked-up
addresses didn't get used:
(gdb) load
Loading section .text, size 0x48 vma 0x0
Loading section .sdata, size 0x10 vma 0x0
Start address 0x0
I don't think that's particularly worth fixing, since it doesn't have a
clear meaning. So let's make the test just use "file".
--
Daniel Jacobowitz
CodeSourcery