From a58cfdac407bc1d8fedc11acd924b275ba28cc51 Mon Sep 17 00:00:00 2001 From: "SND\\dario86_cp" Date: Sat, 12 Mar 2011 18:54:28 +0000 Subject: Commited patch in issue #8171 (by darktjm). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@64524 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/debug.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libpcsxcore/debug.c') 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; } -- cgit v1.2.3