Skip to content

Implemented FR #63188 (Display class name when debugging with gdb macro ... #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 1, 2012

Conversation

reeze
Copy link
Contributor

@reeze reeze commented Sep 29, 2012

This PR makes zbacktrace display class name when debugging with gdb.

see: https://bugs.php.net/bug.php?id=63188

@laruence
Copy link
Member

it's a bad idea that make 'zbacktrace' require a running process, that will make zbacktrace useless.

Most of the time scope are avaible, but if not, it will be hard to get them,
since we can't call function if no proccess running. try to get class name
if we can.
if $t->object
if $fst.function.common.scope
printf "%s->", $fst.function.common.scope->name
else
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch will not be executed that much, but for completeness, I have to do that...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants