gbdb: re-indent the file
To make up for variations in editor config.
This commit is contained in:
@@ -193,12 +193,12 @@ static void echo(char *arg_list)
|
||||
|
||||
static void breakpoint_cb(struct lr35902_state *lr)
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
|
||||
paused_breakpoint = 1;
|
||||
paused = 1;
|
||||
paused_breakpoint = 1;
|
||||
paused = 1;
|
||||
|
||||
breakpoint_addr_hit(cpu.pc);
|
||||
breakpoint_addr_hit(cpu.pc);
|
||||
}
|
||||
|
||||
|
||||
@@ -223,7 +223,7 @@ static void step(char *arg_list)
|
||||
|
||||
while(end_steps > cpu.metrics.retired_instrs &&
|
||||
!paused) {
|
||||
cycle();
|
||||
cycle();
|
||||
}
|
||||
|
||||
if (end_steps <= cpu.metrics.retired_instrs) {
|
||||
@@ -521,12 +521,12 @@ static struct breakpoint *get_breakpoint(int id)
|
||||
|
||||
static void reset_breakpoints(void)
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < num_breakpoints; i++) {
|
||||
struct breakpoint *bkpt = &breakpoints[i];
|
||||
*bkpt->ptr = 0xd3;
|
||||
}
|
||||
for (i = 0; i < num_breakpoints; i++) {
|
||||
struct breakpoint *bkpt = &breakpoints[i];
|
||||
*bkpt->ptr = 0xd3;
|
||||
}
|
||||
}
|
||||
|
||||
static int do_set_breakpoint(uint16_t addr, bool temp)
|
||||
@@ -537,9 +537,9 @@ static int do_set_breakpoint(uint16_t addr, bool temp)
|
||||
breakpoints[num_breakpoints].addr = addr;
|
||||
breakpoints[num_breakpoints].op = mem_read(NULL, addr);
|
||||
if (bootrom_mapped && addr < 0x100) {
|
||||
breakpoints[num_breakpoints].ptr = &bootrom[addr];
|
||||
breakpoints[num_breakpoints].ptr = &bootrom[addr];
|
||||
} else {
|
||||
breakpoints[num_breakpoints].ptr = &ram[addr];
|
||||
breakpoints[num_breakpoints].ptr = &ram[addr];
|
||||
}
|
||||
*breakpoints[num_breakpoints].ptr = 0xd3;
|
||||
breakpoints[num_breakpoints].id = id++;
|
||||
@@ -597,7 +597,7 @@ static int do_delete_breakpoint(int id)
|
||||
|
||||
index = bkpt - breakpoints;
|
||||
memmove(&breakpoints[index], &breakpoints[index + 1],
|
||||
num_breakpoints - index - 1);
|
||||
num_breakpoints - index - 1);
|
||||
num_breakpoints--;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user