This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
remote/1836: Memory access error while loading section xxx
- From: sbalasubramanian at ra dot rockwell dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 27 Dec 2004 20:56:08 -0000
- Subject: remote/1836: Memory access error while loading section xxx
- Reply-to: sbalasubramanian at ra dot rockwell dot com
>Number: 1836
>Category: remote
>Synopsis: Memory access error while loading section xxx
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 27 20:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Sivaram Balasubramanian
>Release: GDB-6.3
>Organization:
>Environment:
>Description:
Gdb6.3 fails to download target image when a load command is issued as part of remote debug beyond first packet and erroneously displays "Memory access error while loading section xxx". This behavior is because function "load_section_callback"
in file "symfile.c" checks variable "err" after calling function "target_write_memory_partial". Variable "err" is not properly set inside "target_write_memory_partial" under all paths. See Fix for simple solution.
>How-To-Repeat:
>Fix:
Set variable err = 0; on line 1435 of "symfile.c", in
function "load_section_callback" before calling function "target_write_memory_partial". This ensures err is properly initialized on return for paths which don't set err explicitly.
>Release-Note:
>Audit-Trail:
>Unformatted: