This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

Re: psim bug


Daniel Kahlin wrote:
> 
> Hi,
> 
> BUG:
>   When loading sections using 'psim' they incorrectly get placed at their
>   respective VMA's instead of their LMA's.  This makes debugging of romable
>   code impossible, because crt0.S will break when it tries to copy the
>   .data section into ram.
> 
> FIX:
>   Always load sections to their LMA.
>   If the LMA and the VMA differ, mark the LMA area read-only, and
>   allocate the VMA area filling it with zeroes.

It may or may not be a bug.  It really depends on the emulation mode
being used.  Can you post the output from:

	.....-run -t dump-device-tree <program>

thanks,
	Andrew


PS: Please submit patches as text attachments and not as compressed tar
archives (no matter how big :-).  That way the reviewer can quickly
exmaine the change and determine if it is applicable.

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