Mercurial > repos > blastem
comparison debug.c @ 525:62860044337d
Support single stepping in gdb remote debugger
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 11 Feb 2014 22:38:47 -0800 |
parents | fb39534b6604 |
children | a3afee2271ce b76d2a628ab9 |
comparison
equal
deleted
inserted
replaced
524:fb39534b6604 | 525:62860044337d |
---|---|
2 #include "blastem.h" | 2 #include "blastem.h" |
3 #include "68kinst.h" | 3 #include "68kinst.h" |
4 #include <stdlib.h> | 4 #include <stdlib.h> |
5 #include <string.h> | 5 #include <string.h> |
6 | 6 |
7 bp_def * breakpoints = NULL; | 7 static bp_def * breakpoints = NULL; |
8 bp_def * zbreakpoints = NULL; | 8 static bp_def * zbreakpoints = NULL; |
9 uint32_t bp_index = 0; | 9 static uint32_t bp_index = 0; |
10 uint32_t zbp_index = 0; | 10 static uint32_t zbp_index = 0; |
11 | 11 |
12 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address) | 12 bp_def ** find_breakpoint(bp_def ** cur, uint32_t address) |
13 { | 13 { |
14 while (*cur) { | 14 while (*cur) { |
15 if ((*cur)->address == address) { | 15 if ((*cur)->address == address) { |