This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug gdb/12733] New: Reading memory from target omits the first byte


http://sourceware.org/bugzilla/show_bug.cgi?id=12733

           Summary: Reading memory from target omits the first byte
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: fyzmat@gmail.com


Created attachment 5706
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5706
Place of the bug and fix

Hello,

I found out that gdb omits the first byte of memory in a special case. If the
reading of large amount of memory fails, the gdb tries to read just one byte at
first and then it reads smaller pieces of memory. In this case the first read
byte is omitted.

I have done some investigation of this behaviour and a probable bug in function
target_read_until_error in file target.c. I am attaching my fix.

Regards,
Tomas

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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