[Bug server/24751] New: doc: Can 'm' return partial read?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug server/24751] New: doc: Can 'm' return partial read?

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24751

            Bug ID: 24751
           Summary: doc: Can 'm' return partial read?
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
  Target Milestone: ---

GDB documentation
  https://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#Packets
says for the 'm' packet:
  "The reply may contain fewer addressable memory units than requested if the
server was able to read only part of the region of memory."
GNU gdbserver gdb_read_memory() does return only full length or error, contrary
what the documentation says:
  res = read_inferior_memory (memaddr, myaddr, len);
  return res == 0 ? len : -1;
So is documentation right or gdbserver right?
Then there is "may" which permits interpretation both ways but I do not find
that kind of documentation useful.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug server/24751] doc: Can 'm' return partial read?

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24751

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com
           Assignee|unassigned at sourceware dot org   |palves at redhat dot com

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug server/24751] doc: Can 'm' return partial read?

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24751

Pavel Labath <labath at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |labath at google dot com

--
You are receiving this mail because:
You are on the CC list for the bug.