Re: [BUG] MI: -target-download

Daniel Jacobowitz
2007-02-20T20:43:36Z

On Wed, Feb 21, 2007 at 09:22:38AM +1300, Nick Roberts wrote:
> All of it. I just get the CLI output. I should say this is GDB 6.6.

Hmm. I tested several versions from GDB 6.3.90 through CVS HEAD and
they all worked. I was using gdbserver, though - load works just well
enough with it to test GDB, though don't try to run the result.

This looks specific to the simulator. Take a look at
sim/common/sim-load.c:

if (verbose_p)
{
xprintf (callback, "Loading section %s, size 0x%lx %s ",
bfd_get_section_name (result_bfd, s),
(unsigned long) size,
(lma_p ? "lma" : "vma"));
xprintf_bfd_vma (callback, lma);
xprintf (callback, "\n");
}

Whoops. It's got its own copy, it isn't using the GDB load routine at
all.

--
Daniel Jacobowitz
CodeSourcery