Skip to content

Conversation

@Trass3r
Copy link
Contributor

@Trass3r Trass3r commented Aug 26, 2020

Tested on gdb 8/10.
Fixes #1027.

// step out
else if (reason == "function-finished")
{
string resultVar = results.Results.TryFindString("gdb-result-var"); // a gdb value history var like "$1"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately we only get the name of the caller instead of the callee here.

@Trass3r
Copy link
Contributor Author

Trass3r commented Sep 5, 2020

@WardenGnaw
I cleaned it up.

@WardenGnaw WardenGnaw changed the base branch from master to main September 11, 2020 21:28
Copy link
Member

@WardenGnaw WardenGnaw left a comment

Choose a reason for hiding this comment

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

Will this only support return value on step-out until GDB supports getting a return value?

@Trass3r
Copy link
Contributor Author

Trass3r commented Sep 17, 2020

Done. Yes only works on step out.

@Trass3r Trass3r requested a review from WardenGnaw September 17, 2020 22:05
@WardenGnaw
Copy link
Member

@Trass3r Thank you again for your contribution!

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.

Display function return value

3 participants