This is the mail archive of the gdb-patches@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] | |
Hello,
There was on ommision inside amd64-tdep.c:amd64_classify regarding
the handling of TYPE_CODE_CHAR types. This shows up when printing
the return value after making a function call inside the inferior.
This shows up inside gdb.ada/char_param.exp:
FAIL: gdb.ada/char_param.exp: call next
Here is what the logs show:
(gdb) call next (first)
$3 = 0 '["00"]'
The expected output is:
(gdb) call next (first)
$3 = 98 'b'
The following patch fixes that ommission:
2007-12-26 Joel Brobecker <brobecker@adacore.com>
* amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
Tested on x86_64-linux, fixes the FAIL above. No regression.
OK to commit?
Thanks,
--
Joel
Attachment:
amd64-tdep.c.diff
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |