Staticize and cleanup.
This commit is contained in:
parent
76092b8329
commit
25eb640d90
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_break.c,v 1.8 1995/11/29 10:25:09 phk Exp $
|
||||
* $Id: db_break.c,v 1.9 1995/12/07 12:44:46 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -46,7 +46,7 @@
|
||||
#include <ddb/db_sym.h>
|
||||
|
||||
#define NBREAKPOINTS 100
|
||||
struct db_breakpoint db_break_table[NBREAKPOINTS];
|
||||
static struct db_breakpoint db_break_table[NBREAKPOINTS];
|
||||
static db_breakpoint_t db_next_free_breakpoint = &db_break_table[0];
|
||||
static db_breakpoint_t db_free_breakpoints = 0;
|
||||
static db_breakpoint_t db_breakpoint_list = 0;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_input.c,v 1.9 1995/11/29 10:25:21 phk Exp $
|
||||
* $Id: db_input.c,v 1.10 1995/12/07 12:44:51 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -48,10 +48,10 @@
|
||||
* since input always ends with a new-line. We just
|
||||
* reset the line position at the end.
|
||||
*/
|
||||
char * db_lbuf_start; /* start of input line buffer */
|
||||
char * db_lbuf_end; /* end of input line buffer */
|
||||
char * db_lc; /* current character */
|
||||
char * db_le; /* one past last character */
|
||||
static char * db_lbuf_start; /* start of input line buffer */
|
||||
static char * db_lbuf_end; /* end of input line buffer */
|
||||
static char * db_lc; /* current character */
|
||||
static char * db_le; /* one past last character */
|
||||
|
||||
#define CTRL(c) ((c) & 0x1f)
|
||||
#define isspace(c) ((c) == ' ' || (c) == '\t')
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_lex.c,v 1.8 1995/11/29 10:25:23 phk Exp $
|
||||
* $Id: db_lex.c,v 1.9 1995/12/07 12:44:52 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -39,8 +39,8 @@
|
||||
#include <ddb/ddb.h>
|
||||
#include <ddb/db_lex.h>
|
||||
|
||||
char db_line[120];
|
||||
char * db_lp, *db_endlp;
|
||||
static char db_line[120];
|
||||
static char * db_lp, *db_endlp;
|
||||
|
||||
static int db_lex __P((void));
|
||||
static void db_flush_line __P((void));
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_run.c,v 1.7 1995/11/29 10:25:31 phk Exp $
|
||||
* $Id: db_run.c,v 1.8 1995/12/07 12:44:57 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -45,7 +45,7 @@
|
||||
#include <ddb/db_break.h>
|
||||
#include <ddb/db_access.h>
|
||||
|
||||
int db_run_mode;
|
||||
static int db_run_mode;
|
||||
#define STEP_NONE 0
|
||||
#define STEP_ONCE 1
|
||||
#define STEP_RETURN 2
|
||||
@ -54,9 +54,9 @@ int db_run_mode;
|
||||
#define STEP_INVISIBLE 5
|
||||
#define STEP_COUNT 6
|
||||
|
||||
boolean_t db_sstep_print;
|
||||
int db_loop_count;
|
||||
int db_call_depth;
|
||||
static boolean_t db_sstep_print;
|
||||
static int db_loop_count;
|
||||
static int db_call_depth;
|
||||
|
||||
int db_inst_count;
|
||||
int db_load_count;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_sym.c,v 1.11 1995/11/29 10:25:35 phk Exp $
|
||||
* $Id: db_sym.c,v 1.12 1995/12/07 12:44:58 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -47,7 +47,7 @@
|
||||
static db_symtab_t db_symtabs[MAXNOSYMTABS] = {{0,},};
|
||||
static int db_nsymtab = 0;
|
||||
|
||||
db_symtab_t *db_last_symtab;
|
||||
static db_symtab_t *db_last_symtab;
|
||||
|
||||
static db_sym_t db_lookup __P(( char *symstr));
|
||||
static char *db_qualify __P((db_sym_t sym, char *symtabname));
|
||||
|
@ -23,7 +23,7 @@
|
||||
* any improvements or extensions that they make and grant Carnegie the
|
||||
* rights to redistribute these changes.
|
||||
*
|
||||
* $Id: db_watch.c,v 1.8 1995/11/29 10:25:44 phk Exp $
|
||||
* $Id: db_watch.c,v 1.9 1995/12/07 12:45:05 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -54,7 +54,7 @@
|
||||
static boolean_t db_watchpoints_inserted = TRUE;
|
||||
|
||||
#define NWATCHPOINTS 100
|
||||
struct db_watchpoint db_watch_table[NWATCHPOINTS];
|
||||
static struct db_watchpoint db_watch_table[NWATCHPOINTS];
|
||||
static db_watchpoint_t db_next_free_watchpoint = &db_watch_table[0];
|
||||
static db_watchpoint_t db_free_watchpoints = 0;
|
||||
static db_watchpoint_t db_watchpoint_list = 0;
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ddb.h,v 1.8 1995/11/29 10:25:50 phk Exp $
|
||||
* $Id: ddb.h,v 1.9 1995/12/07 12:45:08 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -88,7 +88,6 @@ void db_write_bytes __P((vm_offset_t addr, int size, char *data));
|
||||
/* machine-dependent */
|
||||
void kdb_init __P((void));
|
||||
void kdbprintf __P((const char *fmt, ...));
|
||||
void kdbprinttrap __P((int, int));
|
||||
|
||||
db_cmdfcn_t db_breakpoint_cmd;
|
||||
db_cmdfcn_t db_continue_cmd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user