[lldb-dev] [Bug 52393] New: LLDB crashes while printing optional member from parent class

2021-11-03 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=52393 Bug ID: 52393 Summary: LLDB crashes while printing optional member from parent class Product: lldb Version: 12.0 Hardware: PC OS: Linux Status: NEW

Re: [lldb-dev] how to attach to process with python scripting on lldb?

2021-11-03 Thread Ted Woodward via lldb-dev
Try target.AttachToProcessWithID() instead of target.LaunchSimple(). LaunchSimple tells lldb to run, creating a new process, instead of attaching to an existing one. See the SBTarget Python documentation here: https://lldb.llvm.org/python_reference/lldb.SBTarget-class.html . You should also be

[lldb-dev] how to attach to process with python scripting on lldb?

2021-11-03 Thread Pi Pony via lldb-dev
Hello, I have been trying for some days to resolve a symbol of address using lldb python api but I haven't found how to do that. So I think that I need to attach to the PID using python but it's not working, I tried: target = lldb.debugger.FindTargetWithProcessID(71321) process = target.LaunchSim

Re: [lldb-dev] [RFC] lldb integration with (user mode) qemu

2021-11-03 Thread David Spickett via lldb-dev
> Yeah, I think we can start with that. No need to consider this now but it could easily be adapted to qemu-system as well. Spinning up qemu-system for Cortex-M debug might be a future use case. Once you've got a "run this program and connect to this port" platform you can sub in almost anything t

Re: [lldb-dev] The two PDB plugins in LLDB

2021-11-03 Thread Martin Storsjö via lldb-dev
CC Nico On Wed, 3 Nov 2021, Pavel Labath wrote: [+ aleksandr] On 03/11/2021 09:18, Martin Storsjö via lldb-dev wrote: As far as I know, this is clearly the intended direction, but my understanding is also that the native PDB plugin isn't quite on the same functionality level yet. While t

Re: [lldb-dev] [RFC] lldb integration with (user mode) qemu

2021-11-03 Thread Pavel Labath via lldb-dev
On 29/10/2021 14:55, David Spickett wrote: I don't think it does. Or at least I'm not sure how do you propose to solve them (who is "you" in the paragraph above?). I tend to use "you" meaning "you or I" in hypotheticals. Same thing as "if I had" but for whatever reason I phrase it like that to

Re: [lldb-dev] The two PDB plugins in LLDB

2021-11-03 Thread Pavel Labath via lldb-dev
[+ aleksandr] On 03/11/2021 09:18, Martin Storsjö via lldb-dev wrote: On Tue, 2 Nov 2021, Raphael Isemann via lldb-dev wrote: Unless removing the non-native PDB plugin has some negative impact on users (e.g., missing features in native plugin that work with the non-native plugin), I would prop

Re: [lldb-dev] The two PDB plugins in LLDB

2021-11-03 Thread Martin Storsjö via lldb-dev
On Tue, 2 Nov 2021, Raphael Isemann via lldb-dev wrote: Unless removing the non-native PDB plugin has some negative impact on users (e.g., missing features in native plugin that work with the non-native plugin), I would propose we delete it and only keep the native PDB plugin in LLDB which seems