ddb: de-register
This commit is contained in:
parent
66cbed6659
commit
0a95ab74df
@ -311,7 +311,7 @@ db_cmd_search(char *name, struct command_table *table, struct command **cmdp)
|
|||||||
static void
|
static void
|
||||||
db_cmd_list(struct command_table *table)
|
db_cmd_list(struct command_table *table)
|
||||||
{
|
{
|
||||||
register struct command *cmd;
|
struct command *cmd;
|
||||||
|
|
||||||
LIST_FOREACH(cmd, table, next) {
|
LIST_FOREACH(cmd, table, next) {
|
||||||
db_printf("%-16s", cmd->name);
|
db_printf("%-16s", cmd->name);
|
||||||
|
@ -97,7 +97,7 @@ db_delete(n, bwd)
|
|||||||
int n;
|
int n;
|
||||||
int bwd;
|
int bwd;
|
||||||
{
|
{
|
||||||
register char *p;
|
char *p;
|
||||||
|
|
||||||
if (bwd) {
|
if (bwd) {
|
||||||
db_lc -= n;
|
db_lc -= n;
|
||||||
@ -276,7 +276,7 @@ db_inputchar(c)
|
|||||||
cnputc('\007');
|
cnputc('\007');
|
||||||
}
|
}
|
||||||
else if (c >= ' ' && c <= '~') {
|
else if (c >= ' ' && c <= '~') {
|
||||||
register char *p;
|
char *p;
|
||||||
|
|
||||||
for (p = db_le; p > db_lc; p--)
|
for (p = db_le; p > db_lc; p--)
|
||||||
*p = *(p-1);
|
*p = *(p-1);
|
||||||
@ -348,7 +348,7 @@ db_readline(lstart, lsize)
|
|||||||
void
|
void
|
||||||
db_check_interrupt(void)
|
db_check_interrupt(void)
|
||||||
{
|
{
|
||||||
register int c;
|
int c;
|
||||||
|
|
||||||
c = cnmaygetc();
|
c = cnmaygetc();
|
||||||
switch (c) {
|
switch (c) {
|
||||||
|
@ -80,8 +80,8 @@ db_breakpoint_t db_taken_bkpt = 0;
|
|||||||
bool
|
bool
|
||||||
db_stop_at_pc(bool *is_breakpoint)
|
db_stop_at_pc(bool *is_breakpoint)
|
||||||
{
|
{
|
||||||
register db_addr_t pc;
|
db_addr_t pc;
|
||||||
register db_breakpoint_t bkpt;
|
db_breakpoint_t bkpt;
|
||||||
|
|
||||||
pc = PC_REGS();
|
pc = PC_REGS();
|
||||||
#ifdef SOFTWARE_SSTEP
|
#ifdef SOFTWARE_SSTEP
|
||||||
@ -149,7 +149,7 @@ db_stop_at_pc(bool *is_breakpoint)
|
|||||||
(!inst_return(ins) || --db_call_depth != 0)) {
|
(!inst_return(ins) || --db_call_depth != 0)) {
|
||||||
if (db_sstep_print) {
|
if (db_sstep_print) {
|
||||||
if (inst_call(ins) || inst_return(ins)) {
|
if (inst_call(ins) || inst_return(ins)) {
|
||||||
register int i;
|
int i;
|
||||||
|
|
||||||
db_printf("[after %6d] ", db_inst_count);
|
db_printf("[after %6d] ", db_inst_count);
|
||||||
for (i = db_call_depth; --i > 0; )
|
for (i = db_call_depth; --i > 0; )
|
||||||
@ -181,7 +181,7 @@ db_stop_at_pc(bool *is_breakpoint)
|
|||||||
void
|
void
|
||||||
db_restart_at_pc(bool watchpt)
|
db_restart_at_pc(bool watchpt)
|
||||||
{
|
{
|
||||||
register db_addr_t pc = PC_REGS();
|
db_addr_t pc = PC_REGS();
|
||||||
|
|
||||||
if ((db_run_mode == STEP_COUNT) ||
|
if ((db_run_mode == STEP_COUNT) ||
|
||||||
(db_run_mode == STEP_RETURN) ||
|
(db_run_mode == STEP_RETURN) ||
|
||||||
|
@ -69,7 +69,7 @@ static void db_set_watchpoint(vm_map_t map, db_addr_t addr,
|
|||||||
static db_watchpoint_t
|
static db_watchpoint_t
|
||||||
db_watchpoint_alloc(void)
|
db_watchpoint_alloc(void)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
|
|
||||||
if ((watch = db_free_watchpoints) != 0) {
|
if ((watch = db_free_watchpoints) != 0) {
|
||||||
db_free_watchpoints = watch->link;
|
db_free_watchpoints = watch->link;
|
||||||
@ -95,7 +95,7 @@ db_watchpoint_free(db_watchpoint_t watch)
|
|||||||
static void
|
static void
|
||||||
db_set_watchpoint(vm_map_t map, db_addr_t addr, vm_size_t size)
|
db_set_watchpoint(vm_map_t map, db_addr_t addr, vm_size_t size)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
|
|
||||||
if (map == NULL) {
|
if (map == NULL) {
|
||||||
db_printf("No map.\n");
|
db_printf("No map.\n");
|
||||||
@ -135,8 +135,8 @@ db_set_watchpoint(vm_map_t map, db_addr_t addr, vm_size_t size)
|
|||||||
static void
|
static void
|
||||||
db_delete_watchpoint(vm_map_t map, db_addr_t addr)
|
db_delete_watchpoint(vm_map_t map, db_addr_t addr)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
register db_watchpoint_t *prev;
|
db_watchpoint_t *prev;
|
||||||
|
|
||||||
for (prev = &db_watchpoint_list;
|
for (prev = &db_watchpoint_list;
|
||||||
(watch = *prev) != 0;
|
(watch = *prev) != 0;
|
||||||
@ -155,7 +155,7 @@ db_delete_watchpoint(vm_map_t map, db_addr_t addr)
|
|||||||
static void
|
static void
|
||||||
db_list_watchpoints(void)
|
db_list_watchpoints(void)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
|
|
||||||
if (db_watchpoint_list == 0) {
|
if (db_watchpoint_list == 0) {
|
||||||
db_printf("No watchpoints set\n");
|
db_printf("No watchpoints set\n");
|
||||||
@ -220,7 +220,7 @@ DB_SHOW_COMMAND(watches, db_listwatch_cmd)
|
|||||||
void
|
void
|
||||||
db_set_watchpoints(void)
|
db_set_watchpoints(void)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
|
|
||||||
if (!db_watchpoints_inserted) {
|
if (!db_watchpoints_inserted) {
|
||||||
for (watch = db_watchpoint_list;
|
for (watch = db_watchpoint_list;
|
||||||
@ -245,7 +245,7 @@ db_clear_watchpoints(void)
|
|||||||
static bool
|
static bool
|
||||||
db_find_watchpoint(vm_map_t map, db_addr_t addr, db_regs_t regs)
|
db_find_watchpoint(vm_map_t map, db_addr_t addr, db_regs_t regs)
|
||||||
{
|
{
|
||||||
register db_watchpoint_t watch;
|
db_watchpoint_t watch;
|
||||||
db_watchpoint_t found = 0;
|
db_watchpoint_t found = 0;
|
||||||
|
|
||||||
for (watch = db_watchpoint_list;
|
for (watch = db_watchpoint_list;
|
||||||
|
@ -46,12 +46,10 @@ void
|
|||||||
db_write_cmd(db_expr_t address, bool have_addr, db_expr_t count,
|
db_write_cmd(db_expr_t address, bool have_addr, db_expr_t count,
|
||||||
char * modif)
|
char * modif)
|
||||||
{
|
{
|
||||||
register
|
|
||||||
db_addr_t addr;
|
db_addr_t addr;
|
||||||
register
|
|
||||||
db_expr_t old_value;
|
db_expr_t old_value;
|
||||||
db_expr_t new_value;
|
db_expr_t new_value;
|
||||||
register int size;
|
int size;
|
||||||
bool wrote_one = false;
|
bool wrote_one = false;
|
||||||
|
|
||||||
addr = (db_addr_t) address;
|
addr = (db_addr_t) address;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user