svn commit: r283315 - head/sys/ddb
Pedro F. Giffuni
pfg at FreeBSD.org
Sat May 23 14:59:30 UTC 2015
Author: pfg
Date: Sat May 23 14:59:27 2015
New Revision: 283315
URL: https://svnweb.freebsd.org/changeset/base/283315
Log:
ddb: de-register
Modified:
head/sys/ddb/db_command.c
head/sys/ddb/db_input.c
head/sys/ddb/db_run.c
head/sys/ddb/db_watch.c
head/sys/ddb/db_write_cmd.c
Modified: head/sys/ddb/db_command.c
==============================================================================
--- head/sys/ddb/db_command.c Sat May 23 14:48:03 2015 (r283314)
+++ head/sys/ddb/db_command.c Sat May 23 14:59:27 2015 (r283315)
@@ -311,7 +311,7 @@ db_cmd_search(char *name, struct command
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);
Modified: head/sys/ddb/db_input.c
==============================================================================
--- head/sys/ddb/db_input.c Sat May 23 14:48:03 2015 (r283314)
+++ head/sys/ddb/db_input.c Sat May 23 14:59:27 2015 (r283315)
@@ -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) {
Modified: head/sys/ddb/db_run.c
==============================================================================
--- head/sys/ddb/db_run.c Sat May 23 14:48:03 2015 (r283314)
+++ head/sys/ddb/db_run.c Sat May 23 14:59:27 2015 (r283315)
@@ -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) ||
Modified: head/sys/ddb/db_watch.c
==============================================================================
--- head/sys/ddb/db_watch.c Sat May 23 14:48:03 2015 (r283314)
+++ head/sys/ddb/db_watch.c Sat May 23 14:59:27 2015 (r283315)
@@ -69,7 +69,7 @@ static void db_set_watchpoint(vm_map_t
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_
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_ad
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_cm
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;
Modified: head/sys/ddb/db_write_cmd.c
==============================================================================
--- head/sys/ddb/db_write_cmd.c Sat May 23 14:48:03 2015 (r283314)
+++ head/sys/ddb/db_write_cmd.c Sat May 23 14:59:27 2015 (r283315)
@@ -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;
More information about the svn-src-head
mailing list