aboutsummaryrefslogtreecommitdiff
path: root/sim/common/dv-core.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-03-22 05:33:41 +0000
committerAndrew Cagney <cagney@redhat.com>1998-03-22 05:33:41 +0000
commit937a4bdc12d90b400da5b5f5e1e3770c6e4b39ea (patch)
treeb7135ca122c197fb366f93c02325e0cd69aa6bda /sim/common/dv-core.c
parente5f0d498af49da4680564df06b9709423523ba6e (diff)
downloadgdb-937a4bdc12d90b400da5b5f5e1e3770c6e4b39ea.zip
gdb-937a4bdc12d90b400da5b5f5e1e3770c6e4b39ea.tar.gz
gdb-937a4bdc12d90b400da5b5f5e1e3770c6e4b39ea.tar.bz2
Add function hw_trace() and macro HW_TRACE - provides trace support
for HW devices.
Diffstat (limited to 'sim/common/dv-core.c')
-rw-r--r--sim/common/dv-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/common/dv-core.c b/sim/common/dv-core.c
index bdb612c..e84f70d 100644
--- a/sim/common/dv-core.c
+++ b/sim/common/dv-core.c
@@ -52,6 +52,8 @@ dv_core_attach_address_callback (struct hw *me,
address_word nr_bytes,
struct hw *client)
{
+ HW_TRACE ((me, "attach (level=%d, space=%d, addr=0x%lx, nr_bytes=%ld, client=0x%lx)",
+ level, space, (unsigned long) addr, (unsigned long) nr_bytes, (unsigned long) client));
/* NOTE: At preset the space is assumed to be zero. Perhaphs the
space should be mapped onto something for instance: space0 -
unified memory; space1 - IO memory; ... */