Date: Sat, 1 Apr 2006 00:27:47 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94372 for review Message-ID: <200604010027.k310Rlte033133@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94372 Change 94372 by kmacy@kmacy_storage:sun4vtmp on 2006/04/01 00:26:53 make DDB work ... sort of Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/db_hwwatch.c#2 edit .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/db_trace.c#2 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/db_hwwatch.c#2 (text+ko) ==== @@ -41,7 +41,7 @@ #include <ddb/db_sym.h> #include <ddb/db_variables.h> #include <ddb/db_watch.h> - +#if 0 static void db_watch_print(vm_offset_t wp, int bm); int @@ -209,3 +209,21 @@ } else db_printf("\tnot active.\n"); } +#endif +void +db_md_list_watchpoints(void) +{ +} + +int +db_md_clr_watchpoint(db_expr_t addr, db_expr_t size) +{ + + return (0); +} + +int +db_md_set_watchpoint(db_expr_t addr, db_expr_t size) +{ + return (0); +} ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/db_trace.c#2 (text+ko) ==== @@ -144,39 +144,50 @@ db_addr_t func; db_addr_t tpc; u_long type; +#if 0 u_long sfar; u_long sfsr; u_long tar; u_long level; u_long pil; +#endif u_long code; u_long o7; int user; + type = 5; p = td->td_proc; +#if 0 type = db_get_value((db_addr_t)&tf->tf_type, sizeof(tf->tf_type), FALSE); db_printf("-- %s", trap_msg[type & ~T_KERNEL]); +#endif switch (type & ~T_KERNEL) { case T_DATA_PROTECTION: +#if 0 tar = (u_long)db_get_value((db_addr_t)&tf->tf_tar, sizeof(tf->tf_tar), FALSE); db_printf(" tar=%#lx", tar); +#endif /* fall through */ case T_DATA_EXCEPTION: case T_INSTRUCTION_EXCEPTION: case T_MEM_ADDRESS_NOT_ALIGNED: +#if 0 sfar = (u_long)db_get_value((db_addr_t)&tf->tf_sfar, sizeof(tf->tf_sfar), FALSE); sfsr = (u_long)db_get_value((db_addr_t)&tf->tf_sfsr, sizeof(tf->tf_sfsr), FALSE); db_printf(" sfar=%#lx sfsr=%#lx", sfar, sfsr); +#endif break; case T_DATA_MISS: case T_INSTRUCTION_MISS: +#if 0 tar = (u_long)db_get_value((db_addr_t)&tf->tf_tar, sizeof(tf->tf_tar), FALSE); db_printf(" tar=%#lx", tar); +#endif break; case T_SYSCALL: code = db_get_value((db_addr_t)&tf->tf_global[1], @@ -194,11 +205,13 @@ } break; case T_INTERRUPT: +#if 0 level = (u_long)db_get_value((db_addr_t)&tf->tf_level, sizeof(tf->tf_level), FALSE); pil = (u_long)db_get_value((db_addr_t)&tf->tf_pil, sizeof(tf->tf_pil), FALSE); db_printf(" level=%#lx pil=%#lx", level, pil); +#endif break; default: break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604010027.k310Rlte033133>