This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12733] New: Reading memory from target omits the first byte
- From: "fyzmat at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 5 May 2011 12:08:27 +0000
- Subject: [Bug gdb/12733] New: Reading memory from target omits the first byte
- Auto-submitted: auto-generated
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.