#48927 [NEW]: dump_bt in .gdbinit should use printu
| From: | alex dot emsenhuber at bluewin dot ch | Date: | Wed, 15 Jul 2009 16:20:05 +0000 |
| Subject: | #48927 [NEW]: dump_bt in .gdbinit should use printu | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139761@lists.php.net to get a copy of this message | ||
From: alex dot emsenhuber at bluewin dot ch
Operating system: Mac OS X 10.5
PHP version: 6CVS-2009-07-15 (CVS)
PHP Bug Type: Unicode Engine related
Bug description: dump_bt in .gdbinit should use printu
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 bug report at http://bugs.php.net/?id=48927&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48927&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48927&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48927&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48927&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48927&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48927&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48927&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48927&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48927&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48927&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48927&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48927&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48927&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48927&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48927&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48927&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48927&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48927&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48927&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48927&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48927&r=mysqlcfg