ry.
>
> Your script seems pretty useful. Maybe you can add it to the python examples.
>
> -Original Message-
> From: Greg Clayton [mailto:gclay...@apple.com]
> Sent: Thursday, June 23, 2016 12:00 AM
> To: Greg Clayton
> Cc: Bogdan Hopulele ; lldb-dev@lists.llvm.org
script seems pretty useful. Maybe you can add it to the python examples.
-Original Message-
From: Greg Clayton [mailto:gclay...@apple.com]
Sent: Thursday, June 23, 2016 12:00 AM
To: Greg Clayton
Cc: Bogdan Hopulele ; lldb-dev@lists.llvm.org
Subject: Re: [lldb-dev] Variable shadowing
The
The logic is a bit wrong in my script, it should first print out the variables
we have already found, followed by the one we are currently processing. The
fixed script is attached:
#!/usr/bin/python
import lldb
import shlex
@lldb.command("check-shadow")
def check_shadow_command(debugger, comma
You can currently do this by checking for other variables to see if any names
match.
In python when stopped in the function below you can do use the API:
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> frame_vars = lldb.frame.GetVariables(True, True
Hi all,
I'm using lldb 3.9 through the C++ API and I'm trying to determine if a local
variable is shadowed or not with no luck.
For the code below:
1. Is there an API call, that I somehow missed, that can tell me that (v
= 2) shadows (v = 1)?
2. Can I rely on their order in the SB