Trouble viewing disassembly with Sun Studio 11

I was wondering how someone can bring up a window with a program抯 disassembly when debugging a C program with Sun Studio 11. (SPARC). I would like to be able to set breakpoints at specific assembly instructions using Sun Studios抯 GUI interface rather than using typed commands with DBX. I would also like to know how to get a window that shows the current value of the registers. Any help would be greatly appreciated.

Chris

[437 byte] By [ccammack77a] at [2007-11-27 3:37:49]
# 1

Not sure about 11, but Sun Studio 12 EA has decent disassembler window. Moreover, next version of the IDE is much more suitable for development purposes than Sun Studio 11.

Stable version will be available very soon, but you can use compilers from Sun Studio 11 and the IDE from 12 if you want production quality of stable version and greatly improved usability of latest version.

MaximKartasheva at 2007-7-12 8:41:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Oops, it appears that you can't set breakpoints through Disassembler window, it just shows the code and current position within the code, that's all.It gives you better view of context than dbx's 'dis' or 'list -i' commands, though.

If you need this feature, please file an RFE (Request For Enhancement) through bugs.sun.com

MaximKartasheva at 2007-7-12 8:41:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

> Oops, it appears that you can't set breakpoints

> through Disassembler window, it just shows the code

> and current position within the code, that's all.It

> gives you better view of context than dbx's 'dis' or

> 'list -i' commands, though.

Actually you can set breakpoints through Disassembler window:

- select an address, click right mouse button to open context menu

- choose "Set Breakpoint"

> If you need this feature, please file an RFE (Request

> For Enhancement) through bugs.sun.com

The Disassembler window has been significantly improved between

EA1 and FCS. Now users can set and delete breakpoints using the

same way as they do in source file - click on the left gray area (toggle

breakpoints). Also Disassembler window has "Step Into", "Step Over",

"Step Out" and "Run To Cursor" buttons.

Thanks,

Nik

Nik.Molchanova at 2007-7-12 8:41:07 > top of Java-index,Development Tools,Solaris and Linux Development Tools...