Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
name: sample
path: |
sample/*.elf
sample/*.irx

- name: Create release
if: github.ref == 'refs/heads/master'
Expand All @@ -37,3 +38,4 @@ jobs:
title: "Latest development build"
files: |
sample/*.elf
sample/*.irx
6 changes: 4 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

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

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

TODO: rewrite metwork stack

Expand Down
9 changes: 0 additions & 9 deletions ps2.cmd

This file was deleted.

8 changes: 8 additions & 0 deletions ps2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
target remote 192.168.1.13:12
symbol-file sample/testgdb.elf
layout src
layout asm
layout split
list main
b testgdb.c:12
c
7 changes: 4 additions & 3 deletions sample/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
# Makefile template
#

EE_BIN = sample_gdb.elf
EE_OBJS = main.o
EE_BIN = testgdb.elf
EE_OBJS = testgdb.o

EE_CFLAGS += -g -w
EE_LIBS = -ldebug -lps2gdbStub -lps2ips
EE_LDFLAGS += -L../lib

all:
cp -f $(PS2SDK)/iop/irx/ps2ips.irx ./
$(MAKE) $(EE_BIN)

clean:
rm -f $(EE_BIN) $(EE_OBJS)
rm -f $(EE_BIN) $(EE_OBJS) ps2ips.irx

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