ST20–SWC
9/21
3
The INQUEST debugger can debug ANSI C ST20 programs either interactively or post-mortem. A
user interface displays source code or disassembled code and enables the user to interact with the
debugger by means of buttons and menus, mouse and keyboard. The interface is built using the X
Window System and OSF/Motif for Sun-4s or Microsoft Windows for PCs.
The program being debugged may consist of any number of tasks (or threads of execution) some
of which may be running while others are stopped or being single stepped. The host debugger
program is asynchronous and holds a copy of the last stopped state of each thread, so values may
be inspected by the host while the user program is running on the ST20. Multiple debugging windows
may be opened to view different parts of the program simultaneously.
The INQUEST debugger has three debugging modes:
interactive debugging, i.e. monitoring the application as it executes on the target processor;
post-mortem debugging on the target processor when the application has stopped;
post-mortem debugging on the host from a dump file.
INQUEST windowing debugger
+.2$01 /,40$/
(66 3(04 7:4404.
(66 *549752 89566,+ (9 +
(66 8:3 */(4;(0904.
(66 -,,+ */(4;(0904.
7,. 7,. 7,.
/,"$00$0
+.2$01
-1',+0
')$ 5 $"21',+
3$+10
/' !)$0
'+#,4
$)-
/,%/ *
&!$"#&% "& '&*549752*
do
{
printf(”Please type n : ”);
} while (scanf(”%d”, &n) !=1);
30
31
32
33
34
35
36
37
38
return (n);
}
void close_down (Channel *in, Channel *o
,+1'+2$
+1$//2-1
1$-
$51
1$- 21
1$-,
/$ (
1"&
$)$1$
/'+1
2*-
/'+1
," 1$
01 31
+.2$01 *#)'+$
(66 3(04 )7,(165049 (9 (66*
*54904:,
049,77:69
(66 *549752 049,77:69,+ (9 +
Figure 2
The Microsoft Windows debugger display
+.2$01 /,40$/
-(*9570(2 (9 -(*8*
-(*9570(2 (9 -(*8*
3(04 (9 -(*8*
/,"$00$0
&/$ #0
7,. 7,. 7,.
Figure 3
A Microsoft Windows stack trace
+.2$01 *#)'+$
67049 6
>
2041
;87,9
;)(8, *+,
;80=,
*/(4 ,369<
Figure 4
Displaying a structured variable on Microsoft Windows