ddb: space/tab fixes.

No functional change.

MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2014-10-11 20:25:19 +00:00
parent d0d8c133c7
commit 1549fb22e6
11 changed files with 19 additions and 19 deletions

View File

@ -161,13 +161,13 @@ db_breakpoint_t
db_find_breakpoint_here(addr)
db_addr_t addr;
{
return db_find_breakpoint(db_map_addr(addr), addr);
return db_find_breakpoint(db_map_addr(addr), addr);
}
static boolean_t db_breakpoints_inserted = TRUE;
#ifndef BKPT_WRITE
#define BKPT_WRITE(addr, storage) \
#define BKPT_WRITE(addr, storage) \
do { \
*storage = db_get_value(addr, BKPT_SIZE, FALSE); \
db_put_value(addr, BKPT_SIZE, BKPT_SET(*storage)); \
@ -175,7 +175,7 @@ do { \
#endif
#ifndef BKPT_CLEAR
#define BKPT_CLEAR(addr, storage) \
#define BKPT_CLEAR(addr, storage) \
db_put_value(addr, BKPT_SIZE, *storage)
#endif

View File

@ -648,7 +648,7 @@ db_kill(dummy1, dummy2, dummy3, dummy4)
db_expr_t old_radix, pid, sig;
struct proc *p;
#define DB_ERROR(f) do { db_printf f; db_flush_lex(); goto out; } while (0)
#define DB_ERROR(f) do { db_printf f; db_flush_lex(); goto out; } while (0)
/*
* PIDs and signal numbers are typically represented in base

View File

@ -30,7 +30,7 @@
#define _DDB_DB_OUTPUT_H_
/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 8/90
*/

View File

@ -25,7 +25,7 @@
*
*/
/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/

View File

@ -155,7 +155,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
else if (wflag)
state[0] = 'W';
else
state[0] = '?';
state[0] = '?';
}
break;
case PRS_NEW:
@ -211,7 +211,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
p = LIST_NEXT(p, p_list);
if (p == NULL && np > 0)
p = LIST_FIRST(&zombproc);
}
}
}
static void

View File

@ -54,7 +54,7 @@ static int db_run_mode;
#define STEP_RETURN 2
#define STEP_CALLT 3
#define STEP_CONTINUE 4
#define STEP_INVISIBLE 5
#define STEP_INVISIBLE 5
#define STEP_COUNT 6
static boolean_t db_sstep_print;

View File

@ -30,7 +30,7 @@
#define _DDB_DB_SYM_H_
/*
* Author: Alessandro Forin, Carnegie Mellon University
* Author: Alessandro Forin, Carnegie Mellon University
* Date: 8/90
*/

View File

@ -348,8 +348,8 @@ textdump_dump_msgbuf(struct dumperinfo *di)
*/
total_len = 0;
offset = 0;
msgbuf_peekbytes(msgbufp, NULL, 0, &seq);
while ((len = msgbuf_peekbytes(msgbufp, buf, sizeof(buf), &seq)) > 0) {
msgbuf_peekbytes(msgbufp, NULL, 0, &seq);
while ((len = msgbuf_peekbytes(msgbufp, buf, sizeof(buf), &seq)) > 0) {
for (i = 0; i < len; i++) {
if (buf[i] == '\0')
continue;
@ -362,7 +362,7 @@ textdump_dump_msgbuf(struct dumperinfo *di)
total_len += offset;
offset = 0;
}
}
}
total_len += offset; /* Without the zero-padding. */
if (offset != 0) {
bzero(textdump_block_buffer + offset,

View File

@ -27,7 +27,7 @@
*/
/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 7/90
*/

View File

@ -303,8 +303,8 @@ db_deletehwatch_cmd(addr, have_addr, count, modif)
{
int rc;
if (count < 0)
count = 4;
if (count < 0)
count = 4;
rc = db_md_clr_watchpoint(addr, count);
if (rc < 0)
@ -322,8 +322,8 @@ db_hwatchpoint_cmd(addr, have_addr, count, modif)
{
int rc;
if (count < 0)
count = 4;
if (count < 0)
count = 4;
rc = db_md_set_watchpoint(addr, count);
if (rc < 0)

View File

@ -27,7 +27,7 @@
*/
/*
* Author: David B. Golub, Carnegie Mellon University
* Author: David B. Golub, Carnegie Mellon University
* Date: 10/90
*/