home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
262_01
/
debug.f3
< prev
next >
Wrap
Text File
|
1988-03-30
|
2KB
|
48 lines
.hd //
.bp
.so a:ljtbl
-------------------------------------------------------------------------------------------------
page 0 | | | | | | |
-------------------------------------------------------------------------------------------------
| | | | | | |
code segment |call trap |call trap |call trap | | |call trap |
| | | | | | |
-------------------------------------------------------------------------------------------------
data segment | | | | | | |
| | | | | | |
-------------------------------------------------------------------------------------------------
free memory | | | |return address |return address | |
contains symbol| | | | | | |
table | | | | | | |
| | | | | | |
-------------------------------------------------------------------------------------------------
| | | | | | |
| | | | | | |
stack | | | | | | |
| | |fprint+3 |fprint | | |
| |return address |return address |resume |resume |return address |
| |arg1 |arg1 |arg1 |arg1 |arg1 |
| |arg2 |arg2 |arg2 |arg2 |arg2 |
-------------------------------------------------------------------------------------------------
operating | | | | | | |
system | | | | | | |
-------------------------------------------------------------------------------------------------
|memory after |fprint is |trap is called |call trap is |trap returns |resume restores|
|setup |called | |replaced with |to fprint. |original return|
|original |fprint returns |address and |
|contents. |to resume. |call trap |
|return address | |instruction |
|replaced by |
|address of |
|resume. |
Figure 3
.so a:ljstup
|original return|
|original |fprint returns |address and |
|contents. |to resume. |call trap