This is the mail archive of the gdb-prs@sources.redhat.com 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]

remote/1695: Incorrect error message


>Number:         1695
>Category:       remote
>Synopsis:       Incorrect error message
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 26 20:18:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     jon@beniston.com
>Release:        6.0
>Organization:
>Environment:
Cygwin
>Description:
Error message: "Reply contains invalid hex digit xx" actually displays a decimal value, rather than hex.

This occurs in remote.c:fromhex() and remote-sds.c:fromhex() because %d is used instead of %x.
>How-To-Repeat:

>Fix:
Change:
error ("Reply contains invalid hex digit %d", a);
to:
error ("Reply contains invalid hex digit %x", a);
>Release-Note:
>Audit-Trail:
>Unformatted:


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