This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2038: load error "Memory access error while loading section %s."
- From: iwabuchi at sec dot co dot jp
- To: gdb-gnats at sources dot redhat dot com
- Date: 29 Nov 2005 04:50:54 -0000
- Subject: gdb/2038: load error "Memory access error while loading section %s."
- Reply-to: iwabuchi at sec dot co dot jp
>Number: 2038
>Category: gdb
>Synopsis: load error "Memory access error while loading section %s."
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 29 04:58:01 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: iwabuchi@sec.co.jp
>Release: gdb 6.3
>Organization:
>Environment:
cygwin
gcc 3.4.4(cygwin special)(gdc 0.12, using dmd 0.125)
>Description:
When I load a file which has size over 512byte by "load" command, fail the command with error message "Memory access error while loading section %s."
This message is outputed at symfile.c:1499, when the valiable "err" is set to != 0 in the function "target_write_memory_partial".
However, if the routine in the function "target_write_memory_partial" branch off to "target_xfer_partial", "err" is not setted.
So, the "err" is refferd without initialization at symfile.c:1457.
(symfile.c revision 1.162)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: