Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/sh5 - Tweak the output format slightly to show ...
details: https://anonhg.NetBSD.org/src/rev/fdcf450b8639
branches: trunk
changeset: 536627:fdcf450b8639
user: scw <scw%NetBSD.org@localhost>
date: Thu Sep 19 13:04:02 2002 +0000
description:
- Tweak the output format slightly to show the frame address first.
- When dealing with an exception frame, we might as well print some
useful details while we're passing through.
diffstat:
sys/arch/sh5/sh5/db_trace.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 128036efdaab -r fdcf450b8639 sys/arch/sh5/sh5/db_trace.c
--- a/sys/arch/sh5/sh5/db_trace.c Thu Sep 19 12:08:37 2002 +0000
+++ b/sys/arch/sh5/sh5/db_trace.c Thu Sep 19 13:04:02 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.3 2002/09/19 11:25:13 scw Exp $ */
+/* $NetBSD: db_trace.c,v 1.4 2002/09/19 13:04:02 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -228,7 +228,7 @@
* Pointer value and a disassembly of the prologue to
* figure out what's what anyway.
*/
- (*pr)("%s(fp=0x%lx) at ", symp, fp);
+ (*pr)("0x%lx: %s() at ", fp, symp);
db_printsym(pc, DB_STGY_PROC, pr);
(*pr)("\n");
@@ -252,6 +252,12 @@
pc = (db_addr_t) tf->tf_state.sf_spc & ~1;
fp = (db_addr_t) tf->tf_caller.r14;
cur_intrframe = &tf->tf_ifr;
+ (*pr)("\tTrap Type: %s\n",
+ trap_type((int)tf->tf_state.sf_expevt));
+ (*pr)("\tSSR=0x%lx, TEA=0x%lx, TRA=0x%lx\n",
+ (long)tf->tf_state.sf_ssr,
+ (long)tf->tf_state.sf_tea,
+ (long)tf->tf_state.sf_tra);
} else
if (strcmp(symp, "Lsh5_event_interrupt") == 0 ||
strcmp(symp, "Lintrexit") == 0) {
@@ -265,6 +271,9 @@
pc = (db_addr_t) tf->if_state.sf_spc & ~1;
fp = (db_addr_t) tf->if_caller.r14;
cur_intrframe = tf;
+ (*pr)("\tSSR=0x%lx, INTEVT=0x%lx\n",
+ (long)tf->if_state.sf_ssr,
+ (long)tf->if_state.sf_intevt);
} else
if (prev_frame(fp, pc, &nextfp, &nextpc) == 0) {
(*pr)("Can't find caller's stack frame.\n");
Home |
Main Index |
Thread Index |
Old Index