diff options
| author | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
|---|---|---|
| committer | SND\dario86_cp <SND\dario86_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-03-12 18:54:28 +0000 |
| commit | a58cfdac407bc1d8fedc11acd924b275ba28cc51 (patch) | |
| tree | b4c2e08c34ef1bfe0ba947ef8eed931c9a43fc0e /libpcsxcore/debug.c | |
| parent | 9bdd06684bcc627c06ddcf4c406f6b48f0dfe389 (diff) | |
| download | pcsxr-a58cfdac407bc1d8fedc11acd924b275ba28cc51.tar.gz | |
Commited patch in issue #8171 (by darktjm).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/debug.c')
| -rw-r--r-- | libpcsxcore/debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpcsxcore/debug.c b/libpcsxcore/debug.c index 307a0020..5455e305 100644 --- a/libpcsxcore/debug.c +++ b/libpcsxcore/debug.c @@ -256,7 +256,7 @@ typedef struct breakpoint_s { static breakpoint_t *first = NULL; -int add_breakpoint(int type, u32 address) { +static int add_breakpoint(int type, u32 address) { breakpoint_t *bp = (breakpoint_t *)malloc(sizeof(breakpoint_t)); bp->type = type; @@ -278,7 +278,7 @@ int add_breakpoint(int type, u32 address) { return bp->number; } -void delete_breakpoint(breakpoint_t * bp) { +static void delete_breakpoint(breakpoint_t * bp) { if (bp == first) { if (bp->next == bp) { first = NULL; @@ -293,11 +293,11 @@ void delete_breakpoint(breakpoint_t * bp) { free(bp); } -breakpoint_t *next_breakpoint(breakpoint_t *bp) { +static breakpoint_t *next_breakpoint(breakpoint_t *bp) { return bp->next != first ? bp->next : 0; } -breakpoint_t *find_breakpoint(int number) { +static breakpoint_t *find_breakpoint(int number) { breakpoint_t *p; for (p = first; p; p = next_breakpoint(p)) { @@ -371,12 +371,12 @@ void DebugVSync() { ProcessCommands(); } -void MarkMap(u32 address, int mask) { +static void MarkMap(u32 address, int mask) { if ((address & 0xff000000) != 0x80000000) return; MemoryMap[address & 0x001fffff] |= mask; } -int IsMapMarked(u32 address, int mask) { +static int IsMapMarked(u32 address, int mask) { return (MemoryMap[address & 0x001fffff] & mask) != 0; } |
