home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
seedump.zip
/
SAMPLES
/
DEMO.BAG
< prev
next >
Wrap
Text File
|
1995-08-14
|
2KB
|
55 lines
/* demo rexx script for seedump properties */
address CMD "erase demo.log"
/* setting config variables:
* SOURCE, SYMBOLS, EXES, DLLS, MACROS, WORK, LOG
*/
r = RxMessageBox( "a priori solutions GmbH & wolf neumann", "welcome to the world of SeeDump", ,INFORMATION )
/*
r = RxMessageBox( "", "tracing rexx", ,INFORMATION )
trace ?i
do i=1 to 3
say "simple "i
end
say "trace off"
trace ?o
*/
set log "demo.log" /* sets log file to "demo.log", all listboxes are duplicated
* into this file */
/* get config variables:
* right now only register is supported.
* planned are SOURCE, SYMBOLS, EXES, DLLS, MACROS, WORK, LOG
*/
r = RxMessageBox( "Display in History Window","Get Register", ,INFORMATION )
get register
say "reg esp="reg.esp
say "reg ebp="reg.ebp
/* elements of stack trace window can be put into stem variable */
r = RxMessageBox( "Display in History Window","Get the Stack Trace", ,INFORMATION )
stacktrace
do i=1 to stacktrace.0
say stacktrace.i
end
r = RxMessageBox( stacktrace.1, "Display 1st entry in this MessageBox",,INFORMATION )
r = RxMessageBox( stacktrace.2, "Display 2nd entry in this MessageBox",,INFORMATION )
/* show a prompt box and get the result */
say 'please enter a string'
parse pull a
say a
r = RxMessageBox( a, "you entered", ,INFORMATION )
r = RxMessageBox( "", "doing arithmetic", ,INFORMATION )
r = calc('4 * 50')
say "4*50 is "r
i = "1234"
say "big endian "i "is little endian" intel( i, 0, 4 )
say "thank you for your patience"
/*bye*/