[lldb-dev] Variable shadowing

Greg Clayton via lldb-dev lldb-dev at lists.llvm.org
Thu Jun 23 13:02:05 PDT 2016


% svn commit shadow.py 
Adding         shadow.py
Transmitting file data .done
Committing transaction...
Committed revision 273604.

It is now in examples/python/shadow.py and the command is called "shadow".



> On Jun 23, 2016, at 6:39 AM, Bogdan Hopulele <bogdan.hopulele at ni.com> wrote:
> 
> Thanks!
> Using the blocks I can get all the information I need: locals, function statics and arguments plus shadowing. Now I only need globals which I can get using "target.FindGlobalVariables('.', 1000, eMatchTypeRegex)" and search for variable names in the dictionary.
> 
> Your script seems pretty useful. Maybe you can add it to the python examples.
> 
> -----Original Message-----
> From: Greg Clayton [mailto:gclayton at apple.com]
> Sent: Thursday, June 23, 2016 12:00 AM
> To: Greg Clayton <gclayton at apple.com>
> Cc: Bogdan Hopulele <bogdan.hopulele at ni.com>; lldb-dev at lists.llvm.org
> Subject: Re: [lldb-dev] Variable shadowing
> 
> 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:
> 
> National Instruments Romania S.R.L.
> ------------------------------------------------------
> B-dul 21 Decembrie 1989, nr. 77, A2
> Cluj-Napoca 400604, Romania
> C.I.F.: RO17961616 | O.R.C.: J12/3337/2005
> Telefon: +40 264 406428 | Fax: +40 264 406429
> E-mail: office.cluj at ni.com
> Web: romania.ni.com
> 
> Vanzari si suport tehnic:
> Telefon gratuit : 0800 070071
> E-mail vanzari: ni.romania at ni.com
> E-mail suport tehnic: techsupport at ni.com



More information about the lldb-dev mailing list