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]

gdb/490: function parameters displayed incorrectly



>Number:         490
>Category:       gdb
>Synopsis:       function parameters displayed incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 16 02:18:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     jochen.erwied@mbs-software.de
>Release:        gdb-5.1.1
>Organization:
>Environment:
Linux x86, Debian Woody. GCC 2.95.4 20011002 (Debian prerelease)
>Description:
Functions with character-parameters are displayed wrong.

>How-To-Repeat:
$ gdb a.out
[...]
(gdb) break func
Breakpoint 1 at 0x80483f6: file test.c, line 6.
(gdb) run
Starting program: /home/joe/a.out

Breakpoint 1, func (a=1, b=64 '@', c=15992) at test.c:6
6       {
(gdb) cont
Continuing.
a=1, b=98, c=3

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"

I2luY2x1ZGUgPHN0ZGlvLmg+CgojcHJhZ21hIHBhY2soOCkKCmludCBmdW5jKGludCBhLCBjaGFy
IGIsIHNob3J0IGMpCnsKCXByaW50ZigiYT0lZCwgYj0lZCwgYz0lZFxuIiwgKGludClhLCAoaW50
KWIsIChpbnQpYyk7CglyZXR1cm4gMTsKfQoKaW50IG1haW4odm9pZCkKewoJaW50IGEgPSAxOwoJ
Y2hhciBiID0gJ2InOwoJc2hvcnQgYyA9IDM7CgoJZnVuYyhhLCBiLCBjKTsKCXJldHVybiAwOwp9
Cg==


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