Date: Tue, 11 May 2004 22:57:17 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 52709 for review Message-ID: <200405120557.i4C5vHn9085950@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=52709 Change 52709 by marcel@marcel_nfs on 2004/05/11 22:56:57 Remove db_jmpbuf. All exception handling is done through kdb_jmpbuf(). Call kdb_reenter() from db_error() instead of using longjmp(). Affected files ... .. //depot/projects/gdb/sys/ddb/db_command.c#5 edit Differences ... ==== //depot/projects/gdb/sys/ddb/db_command.c#5 (text+ko) ==== @@ -37,6 +37,7 @@ #include <sys/param.h> #include <sys/linker_set.h> #include <sys/lock.h> +#include <sys/kdb.h> #include <sys/mutex.h> #include <sys/proc.h> #include <sys/reboot.h> @@ -58,7 +59,6 @@ */ boolean_t db_cmd_loop_done; db_addr_t db_dot; -jmp_buf db_jmpbuf; db_addr_t db_last_addr; db_addr_t db_prev; db_addr_t db_next; @@ -443,8 +443,6 @@ db_cmd_loop_done = 0; while (!db_cmd_loop_done) { - - (void) setjmp(db_jmpbuf); if (db_print_position() != 0) db_printf("\n"); @@ -463,7 +461,7 @@ if (s) db_printf("%s", s); db_flush_lex(); - longjmp(db_jmpbuf, 1); + kdb_reenter(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405120557.i4C5vHn9085950>