Giter Site home page Giter Site logo

librspd's Introduction

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:

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)

librspd's People

Contributors

nsauzede avatar

Stargazers

Jevin Sweval avatar  avatar Joaquín Colonnello avatar Mike Miller avatar JS Deck avatar

Watchers

Jevin Sweval avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.