php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48927 dump_bt in .gdbinit should use printu
Submitted: 2009-07-15 16:20 UTC Modified: 2009-08-01 16:20 UTC
From: alex dot emsenhuber at bluewin dot ch Assigned: cellog (profile)
Status: Closed Package: Unicode Engine related
PHP Version: 6CVS-2009-07-15 (CVS) OS: Mac OS X 10.5
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 7 = ?
Subscribe to this entry?

 
 [2009-07-15 16:20 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-01 11:06 UTC] kalle@php.net
Greg, did you fix this recently?
 [2009-08-01 16:20 UTC] cellog@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

yup
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 20:01:27 2024 UTC