Giter Club home page Giter Club logo

libgdbr's People

Contributors

rlaemmert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

sohide

libgdbr's Issues

More portable code for sockets

See these errors due to missing <sys/select.h> while compiling on WIndows + MINGW32:

make[2]: Entering directory `/d/Work/radare/radare2/shlr/gdb'
mkdir -p lib
gcc -c  -MD    -g -Wall -DMINGW32=1 -I/d/Work/radare/radare2/libr/include -Iincl
ude -o src/core.o src/core.c
gcc -c  -MD    -g -Wall -DMINGW32=1 -I/d/Work/radare/radare2/libr/include -Iincl
ude -o src/libgdbr.o src/libgdbr.c
gcc -c  -MD    -g -Wall -DMINGW32=1 -I/d/Work/radare/radare2/libr/include -Iincl
ude -o src/messages.o src/messages.c
gcc -c  -MD    -g -Wall -DMINGW32=1 -I/d/Work/radare/radare2/libr/include -Iincl
ude -o src/packet.o src/packet.c
src/packet.c: In function 'send_packet':
src/packet.c:103:2: warning: implicit declaration of function 'send' [-Wimplicit
-function-declaration]
src/packet.c: In function 'read_packet':
src/packet.c:109:2: error: unknown type name 'fd_set'
src/packet.c:111:17: error: storage size of 'tv' isn't known
src/packet.c:119:3: warning: implicit declaration of function 'FD_ZERO' [-Wimpli
cit-function-declaration]
src/packet.c:120:3: warning: implicit declaration of function 'FD_SET' [-Wimplic
it-function-declaration]
src/packet.c:121:3: warning: implicit declaration of function 'select' [-Wimplic
it-function-declaration]
src/packet.c:123:4: warning: implicit declaration of function 'FD_ISSET' [-Wimpl
icit-function-declaration]
src/packet.c:124:5: warning: implicit declaration of function 'recv' [-Wimplicit
-function-declaration]
src/packet.c:111:17: warning: unused variable 'tv' [-Wunused-variable]
make[2]: *** [src/packet.o] Error 1
make[2]: Leaving directory `/d/Work/radare/radare2/shlr/gdb'
make[1]: *** [libgdbr] Error 2
make[1]: Leaving directory `/d/Work/radare/radare2/shlr'
make: *** [all] Error 2

Issue title goes here

  • lldb is a dick, it won't even connect if it doesn't receive a ack right after connection
  • Consider adding a 'retry' param as sometimes connect fails with ECONNREFUSED
  • Send 'k' on disconnect
  • Use QStartNoAckMode to avoid the useless acks
  • Use qRegisterInfo to build register profiles on-the-go (ways better than gdb xml thing)
  • Doesn't seem to accept 'g'/'G' (maybe because I didn't specify any thread id), lldb uses 'p'/'P' instead
  • You should null-terminate 'data' at 'target_pos' in 'parse_packet', the output looks ugly when printed :P

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.