Friday Oct 05, 2007

dbx commands and disassembly

Here's a list of the command supported by dbx. The listi command shows the disassembled code for the next instructions:

% dbx a.out
(dbx) stop in main
dbx: warning: 'main' has no debugger info -- will trigger on first instruction
(2) stop in main
(dbx) run
Running: a.out
(process id 16158)
Reading libc_psr.so.1
stopped in main at 0x00010cd0
0x00010cd0: main       :        save     %sp, -120, %sp
(dbx) listi
dbx: warning: no source lines at current PC; use "dis" instead
0x00010cd4: main+0x0004:        sethi    %hi(0x21000), %l0
0x00010cd8: main+0x0008:        clr      [%l0 + 0x00000164]
...
About

Darryl Gove is a senior engineer in the Solaris Studio team, working on optimising applications and benchmarks for current and future processors. He is also the author of the books:
Multicore Application Programming
Solaris Application Programming
The Developer's Edge

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
5
6
8
9
10
12
13
14
15
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
The Developer's Edge
Solaris Application Programming
Publications
Webcasts
Presentations
OpenSPARC Book
Multicore Application Programming
Docs