1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

ddb: de-register

This commit is contained in:
Pedro F. Giffuni 2015-05-23 14:59:27 +00:00
parent 66cbed6659
commit 0a95ab74df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283315
5 changed files with 16 additions and 18 deletions

View File

@ -311,7 +311,7 @@ db_cmd_search(char *name, struct command_table *table, struct command **cmdp)
static void
db_cmd_list(struct command_table *table)
{
register struct command *cmd;
struct command *cmd;
LIST_FOREACH(cmd, table, next) {
db_printf("%-16s", cmd->name);

View File

@ -97,7 +97,7 @@ db_delete(n, bwd)
int n;
int bwd;
{
register char *p;
char *p;
if (bwd) {
db_lc -= n;
@ -276,7 +276,7 @@ db_inputchar(c)
cnputc('\007');
}
else if (c >= ' ' && c <= '~') {
register char *p;
char *p;
for (p = db_le; p > db_lc; p--)
*p = *(p-1);
@ -348,7 +348,7 @@ db_readline(lstart, lsize)
void
db_check_interrupt(void)
{
register int c;
int c;
c = cnmaygetc();
switch (c) {

View File

@ -80,8 +80,8 @@ db_breakpoint_t db_taken_bkpt = 0;
bool
db_stop_at_pc(bool *is_breakpoint)
{
register db_addr_t pc;
register db_breakpoint_t bkpt;
db_addr_t pc;
db_breakpoint_t bkpt;
pc = PC_REGS();
#ifdef SOFTWARE_SSTEP
@ -149,7 +149,7 @@ db_stop_at_pc(bool *is_breakpoint)
(!inst_return(ins) || --db_call_depth != 0)) {
if (db_sstep_print) {
if (inst_call(ins) || inst_return(ins)) {
register int i;
int i;
db_printf("[after %6d] ", db_inst_count);
for (i = db_call_depth; --i > 0; )
@ -181,7 +181,7 @@ db_stop_at_pc(bool *is_breakpoint)
void
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) ||
(db_run_mode == STEP_RETURN) ||

View File

@ -69,7 +69,7 @@ static void db_set_watchpoint(vm_map_t map, db_addr_t addr,
static db_watchpoint_t
db_watchpoint_alloc(void)
{
register db_watchpoint_t watch;
db_watchpoint_t watch;
if ((watch = db_free_watchpoints) != 0) {
db_free_watchpoints = watch->link;
@ -95,7 +95,7 @@ db_watchpoint_free(db_watchpoint_t watch)
static void
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) {
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
db_delete_watchpoint(vm_map_t map, db_addr_t addr)
{
register db_watchpoint_t watch;
register db_watchpoint_t *prev;
db_watchpoint_t watch;
db_watchpoint_t *prev;
for (prev = &db_watchpoint_list;
(watch = *prev) != 0;
@ -155,7 +155,7 @@ db_delete_watchpoint(vm_map_t map, db_addr_t addr)
static void
db_list_watchpoints(void)
{
register db_watchpoint_t watch;
db_watchpoint_t watch;
if (db_watchpoint_list == 0) {
db_printf("No watchpoints set\n");
@ -220,7 +220,7 @@ DB_SHOW_COMMAND(watches, db_listwatch_cmd)
void
db_set_watchpoints(void)
{
register db_watchpoint_t watch;
db_watchpoint_t watch;
if (!db_watchpoints_inserted) {
for (watch = db_watchpoint_list;
@ -245,7 +245,7 @@ db_clear_watchpoints(void)
static bool
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;
for (watch = db_watchpoint_list;

View File

@ -46,12 +46,10 @@ void
db_write_cmd(db_expr_t address, bool have_addr, db_expr_t count,
char * modif)
{
register
db_addr_t addr;
register
db_expr_t old_value;
db_expr_t new_value;
register int size;
int size;
bool wrote_one = false;
addr = (db_addr_t) address;