This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Patch to fix mips-elf failures in simulator for relocate.exp


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]