#48927 [Opn->Asn]: dump_bt in .gdbinit should use printu
| From: | kalle@php.net | Date: | Sat, 01 Aug 2009 11:06:32 +0000 |
| Subject: | #48927 [Opn->Asn]: dump_bt in .gdbinit should use printu | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140552@lists.php.net to get a copy of this message | ||
ID: 48927
Updated by: kalle@php.net
Reported By: alex dot emsenhuber at bluewin dot ch
-Status: Open
+Status: Assigned
Bug Type: Unicode Engine related
Operating System: Mac OS X 10.5
PHP Version: 6CVS-2009-07-15 (CVS)
-Assigned To:
+Assigned To: cellog
New Comment:
Greg, did you fix this recently?
Previous Comments:
------------------------------------------------------------------------
[2009-07-15 16:20:04] alex dot emsenhuber at bluewin dot ch
Description:
------------
Function's names are now unicode strings and the function/macro dump_bt
in .gdbinit should be updated accordingly to use printu rather than
printf.
Proposed patch:
Index: .gdbinit
===================================================================
--- .gdbinit (revision 284128)
+++ .gdbinit (working copy)
@@ -20,7 +20,8 @@
while $t
printf "[0x%08x] ", $t
if $t->function_state.function->common.function_name
- printf "%s() ", $t->function_state.function->common.function_name
+ printu $t->function_state.function->common.function_name 0
+ printf "() "
else
printf "??? "
end
Reproduce code:
---------------
Running php from gdb and entring the following command when a
breakpoint/error occurs:
(gdb) zbacktrace
Expected result:
----------------
the backtrace prints correctly
Actual result:
--------------
[0x02e59368] Value can't be converted to integer.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48927&edit=1