From owner-p4-projects@FreeBSD.ORG Sat Apr 1 00:27:48 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4D68616A420; Sat, 1 Apr 2006 00:27:48 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC9C16A401 for ; Sat, 1 Apr 2006 00:27:48 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D32D143D48 for ; Sat, 1 Apr 2006 00:27:47 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k310Rlpi033136 for ; Sat, 1 Apr 2006 00:27:47 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k310Rlte033133 for perforce@freebsd.org; Sat, 1 Apr 2006 00:27:47 GMT (envelope-from kmacy@freebsd.org) Date: Sat, 1 Apr 2006 00:27:47 GMT Message-Id: <200604010027.k310Rlte033133@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 94372 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 00:27:48 -0000 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 #include #include - +#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;