Skip to content

[gdb] DbgObject.locals does not work #77

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

Closed
cbiesinger opened this issue May 1, 2019 · 3 comments
Closed

[gdb] DbgObject.locals does not work #77

cbiesinger opened this issue May 1, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cbiesinger
Copy link
Collaborator

Returns an empty array.

Looking at the verbose output, it looks like it works by calling GetCallStack followed by LookupSymbolName, and the latter does not currently work for stack variables

@cbiesinger
Copy link
Collaborator Author

OK, I used the function incorrectly but there are actual bugs here:

> JsDbg.GetCallStack(20, (e) => { JsDbg.LookupLocalsInStackFrame(e[0].instructionAddress, e[0].stackAddress, e[0].frameAddress, (E) => console.log(E)) });
VM1227:1 {error: "Can't find stack frame"}

> JsDbg.GetCallStack(20, (e) => { JsDbg.LookupLocalsInStackFrame(e[1].instructionAddress, e[1].stackAddress, e[1].frameAddress, (E) => console.log(E)) });
VM1294:1 {error: "'gdb.Value' object has no attribute 'value'"}

@sanketj sanketj added the bug Something isn't working label May 3, 2019
@cbiesinger
Copy link
Collaborator Author

The problem with the first stack frame is fixed by #84

Still need to figure out the gdb.Value issue

@cbiesinger
Copy link
Collaborator Author

This was fixed by #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants