This is the mail archive of the gdb-prs@sources.redhat.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]
Other format: [Raw text]

remote/1836: Memory access error while loading section xxx


>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:


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