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 remote/15255] New: remote_read_qxfer hides remote errors


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

             Bug #: 15255
           Summary: remote_read_qxfer hides remote errors
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jan.kratochvil@redhat.com
    Classification: Unclassified


Created attachment 6921
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6921
Simple artifical error in gdbserver.

Patch gdbserver by the attachment.
(gdb) record btrace
(gdb) step
(gdb) set debug remote 1
(gdb) record function-call-history 
Sending packet: $qXfer:btrace:read:new:0,fff#d3...Packet received: E.Must
select a single thread.
No trace.
(gdb) 

GDB could print: Must select a single thread.

It looks to me as:
remote_read_qxfer:
  if (packet_len < 0 || packet_ok (rs->buf, packet) != PACKET_OK)
    return -1;

PACKET_ERROR with "E." is not handled.

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