Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Issues with frame variable when examining std::vector #50

Closed
jkunlin opened this issue Apr 7, 2017 · 6 comments
Closed

Issues with frame variable when examining std::vector #50

jkunlin opened this issue Apr 7, 2017 · 6 comments
Labels
upstream-bug A bug that can be reproduced when purely using LLDB's Python API.

Comments

@jkunlin
Copy link

jkunlin commented Apr 7, 2017

Command 'frame variable' (so as the locals buffer) always shows that 'size = 0', while it works well with command 'display vec'.

I test with the run.sh, and here is the report:

Note: :LL- commands are not bound with this test instance
error: libc.so.6 0x003de11b: DW_TAG_variable has an invalid location:
DW_OP_lit13
DW_OP_const8s(0x0000000000000000)

@jkunlin
Copy link
Author

jkunlin commented Apr 7, 2017

"display" dose not print any message in log buffer as well.

BTW, everything goes well when using terminal.

@critiqjo
Copy link
Collaborator

critiqjo commented Apr 7, 2017

Command 'frame variable' (so as the locals buffer) always shows that 'size = 0', while it works well with command 'display vec'.

Yes, I'm aware of this bug. But this does not have anything to do with this plugin. This is a bug in their Python API. I'm not really sure why, but there are many breakages when working from the Python API which works perfectly with the lldb tool (another example is remote debugging).

"display" dose not print any message in log buffer as well.

display command is, I believe, well-tied with the front-end. So in order to get it work in this plugin, significant work may have to be done. (I am unable to recall much details about this, so I might be wrong.)

I'll leave this issue open until a "Known Issues" section is added to README.

@critiqjo critiqjo changed the title frame variable does wrong on std::vector Add a "Known Issues (with Python API)" section in README Apr 7, 2017
@jkunlin
Copy link
Author

jkunlin commented Apr 8, 2017

Is there any way to make "frame variable" works correctly?

@critiqjo
Copy link
Collaborator

critiqjo commented Apr 8, 2017

@jkunlin It might work in remote debugging mode. Start the server using lldb-server p --server --listen 2345 so that the server doesn't exit when the client leaves. (Note: For security reasons, it might be good to use a firewall to block remote connections to that port, at least while using the --server switch.)

@jkunlin
Copy link
Author

jkunlin commented Apr 8, 2017

It doesn't works in remote debugging mode too.

@johncf johncf added the upstream-bug A bug that can be reproduced when purely using LLDB's Python API. label Mar 11, 2018
@johncf johncf changed the title Add a "Known Issues (with Python API)" section in README Issues with frame variable when examining std::vector Mar 11, 2018
@johncf
Copy link
Member

johncf commented Mar 11, 2018

cc #59

@johncf johncf closed this as completed Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-bug A bug that can be reproduced when purely using LLDB's Python API.
Projects
None yet
Development

No branches or pull requests

3 participants