Datasheet

ARMulator Reference
4-52 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI0058D
4.11 Accessing the debugger
This section describes the input, output, and RDI functions that you can use to access
the debugger.
Several functions are provided to display messages in the host debugger. Under
armsd
,
these functions print messages to the console. Under AXD, they display messages to the
relevant window:
Hostif_DebugPrint
Hostif_ConsolePrint on page 4-53
Hostif_PrettyPrint on page 4-53
Hostif_DebugPause on page 4-56.
All of these functions take the following as the first parameter:
const struct RDI_HostosInterface *hostif
This value is available in the state datastructure of the model, as defined between the
BEGIN_STATE_DECL()
and
END_STATE_DECL()
macros (see Basic model interface on
page 4-12).
4.11.1 Hostif_DebugPrint
This function displays a message in the RDI logging window under a GUI debugger, or
to the console under
armsd
.
Syntax
void Hostif_DebugPrint(const struct RDI_HostosInterface *hostif,
const char *format, ...)
where:
hostif
is the handle for the host interface.
format
is a pointer to a printf-style formatted output string.
...
are a variable number of parameters associated with
format
.