Why don't you try it and see.

The limitation is on "arbitrary" local variables. Not "no local variables". 
Basically, if the optimizer has optimized the variable away, you can't look at 
it. Not all variables are optimized away, at least not in nontrivial code.

---------------------------------------------------
Keith Bierman AIM: kbiermank
[email protected]
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of ????? ????????????
Sent: Wednesday, April 28, 2010 1:17 AM
To: Maxim Kartashev
Cc: [email protected]
Subject: Re: [tools-compilers] Source level debugging of Sun Studiooptimized 
code?

The values and names of local variables are the data I require, so the
answer is more like 'no', right?

Olga

2010/4/28 Maxim Kartashev <[email protected]>:
> Short answer is yes.
>
> Long answer is longer:
> 1. Use *latest* version of
>  - compiler that generates debug info (-g -O)
>  - dbx that reads and processes it
> 2. Expect certain limitations (such as inability to print arbitrary local 
> variable)
> 3. See `help optimized-code' in dbx
>
> ольга крыжановская wrote:
>> Does dbx have an option to debug optimized Sun Studio code at source level?
>>
>> Olga
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     [email protected]   \-`\-'----.
 `'-..-| /     Solaris/BSD//C/C++ programmer   \ |-..-'`
      /\/\                                     /\/\
      `--`                                      `--`
_______________________________________________
tools-compilers mailing list
[email protected]

----------------------------------------------------------------------
The information contained in this transmission may be confidential. Any 
disclosure, copying, or further distribution of confidential information is not 
permitted unless such privilege is explicitly granted in writing by Quantum. 
Quantum reserves the right to have electronic communications, including email 
and attachments, sent across its networks filtered through anti virus and spam 
software programs and retain such messages in order to comply with applicable 
data security and retention requirements. Quantum is not responsible for the 
proper and complete transmission of the substance of this communication or for 
any delay in its receipt.
_______________________________________________
tools-compilers mailing list
[email protected]

Reply via email to