Skip to content

Commit b1f3428

Browse files
authored
Merge pull request #7 from AKuHAK/master
Fixed example a bit
2 parents 1ae09c0 + c34075e commit b1f3428

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/compilation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
name: sample
2828
path: |
2929
sample/*.elf
30+
sample/*.irx
3031
3132
- name: Create release
3233
if: github.ref == 'refs/heads/master'
@@ -37,3 +38,4 @@ jobs:
3738
title: "Latest development build"
3839
files: |
3940
sample/*.elf
41+
sample/*.irx

README

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
Writing/Reading variables, memory, registers (only as 32bit), call stack - works.
44

5-
Usage: run app with ps2link
6-
mips64r5900el-ps2-elf-gdb -ex 'target remote:192.168.0.10:12'
5+
Example usage: run sample with ps2link:
6+
ps2client -h 192.168.1.13 execee host:testgdb.elf
7+
in nanother terminal
8+
mips64r5900el-ps2-elf-gdb -x ps2.sh
79

810
TODO: rewrite metwork stack
911

ps2.cmd

Lines changed: 0 additions & 9 deletions
This file was deleted.

ps2.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
target remote 192.168.1.13:12
2+
symbol-file sample/testgdb.elf
3+
layout src
4+
layout asm
5+
layout split
6+
list main
7+
b testgdb.c:12
8+
c

sample/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
# Makefile template
33
#
44

5-
EE_BIN = sample_gdb.elf
6-
EE_OBJS = main.o
5+
EE_BIN = testgdb.elf
6+
EE_OBJS = testgdb.o
77

88
EE_CFLAGS += -g -w
99
EE_LIBS = -ldebug -lps2gdbStub -lps2ips
1010
EE_LDFLAGS += -L../lib
1111

1212
all:
13+
cp -f $(PS2SDK)/iop/irx/ps2ips.irx ./
1314
$(MAKE) $(EE_BIN)
1415

1516
clean:
16-
rm -f $(EE_BIN) $(EE_OBJS)
17+
rm -f $(EE_BIN) $(EE_OBJS) ps2ips.irx
1718

1819
include $(PS2SDK)/samples/Makefile.pref
1920
include $(PS2SDK)/samples/Makefile.eeglobal
File renamed without changes.

0 commit comments

Comments
 (0)