GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - nsauzede/librspd: 🥡 Simple header-only RSP server library

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.clang-format
.clang-format
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
librspd.h
librspd.h
 
 
rspd.c
rspd.c
 
 
rspd2.c
rspd2.c
 
 
run_gdb.sh
run_gdb.sh
 
 

Repository files navigation

librspd

Simple header-only, arch-agnostic, RSP server library.

What is it about, already ?

See https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html

You can see usage of it here:

  • https://github.com/nsauzede/xtem
  • https://github.com/nsauzede/myrv

Test it

Run the simple example, a fake x86 gdb stub that always returns 0 for everything, and accepts RSP commands '?', 'g', 'm', 's', 'c' and 'k'.

$ make mrproper all && (./rspd &) && ./run_gdb.sh
rm -f rspd *.o
cc -Wall -Werror -Wextra -g -O0   -c -o rspd.o rspd.c
cc -o rspd rspd.o -pthread
Listening on port 1235..
Remote debugging using :1235
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x00000000 in ?? ()
(gdb) si
0x00000000 in ?? ()
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000000 in ?? ()
(gdb) info r
eax            0x0                 0
ecx            0x0                 0
edx            0x0                 0
ebx            0x0                 0
esp            0x0                 0x0
ebp            0x0                 0x0
esi            0x0                 0
edi            0x0                 0
eip            0x0                 0x0
eflags         0x0                 [ ]
cs             0x0                 0
ss             0x0                 0
ds             0x0                 0
es             0x0                 0
fs             0x0                 0
gs             0x0                 0
(gdb)

About

🥡 Simple header-only RSP server library

Topics

gdbrspserverstub

Resources

Readme
LGPL-2.1 license
Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.