Skip to content

Commit 8f0353d

Browse files
PGAnonamoussp193
authored andcommitted
Updated ps2gdbStub.c to resolve #2. I don't know if it is actually functional at this time as I have never actually used gdb but I figured I would give it a shot.
1 parent 350a892 commit 8f0353d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ee/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EE_LDFLAGS += -Wl,-Map,ps2gdbStub.map -L. -L../lib -L$(PS2SDK)/ee/lib
1111
all: $(EE_LIB)
1212
$(EE_AR) rcs $(EE_LIB) $(EE_OBJS)
1313
clean:
14-
rm -f *.a *.o *.map
14+
rm -f *.a *.o *.map $(EE_LIB)
1515

1616
include ../Makefile.pref
1717
include ../Makefile.eeglobal

ee/ps2gdbStub.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
#include <tamtypes.h>
1010
#include <kernel.h>
1111
#include <stdio.h>
12+
#include <string.h>
1213
#include <debug.h>
13-
#include <ps2ip.h>
14+
#include <ps2ips.h>
15+
#include <loadfile.h>
1416
#include <tcpip.h>
1517
#include "gdb-stub.h"
1618
#include "inst.h"
@@ -110,7 +112,6 @@ typedef struct _gdbstub_comms_data
110112
} gdbstub_comms_data;
111113

112114
char gdbstub_exception_stack[8*1024] __attribute__((aligned(16))); // This may be needed, I don't use it at present...
113-
extern int _gp;
114115

115116
gdb_regs_ps2 gdbstub_ps2_regs __attribute__((aligned(16)));
116117
struct gdb_regs gdbstub_regs;
@@ -1434,4 +1435,6 @@ int gdb_stub_main( int argc, char *argv[] )
14341435
ExitDeleteThread();
14351436
return -1;
14361437
}
1438+
1439+
return 0;
14371440
}

0 commit comments

Comments
 (0)