mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-27 00:05:10 +00:00
* Fix build for linux-mips
* Add missing debug/t/Makefile
This commit is contained in:
parent
eb99dd1203
commit
65c744d67e
@ -23,13 +23,13 @@ libs:
|
||||
@for lib in ${LIBLIST}; do ( cd $${lib} && ${MAKE} all ); done
|
||||
@echo Build done for: ${LIBLIST}
|
||||
|
||||
libr: .objs libr.a libr.so
|
||||
libr: .objs libr.${LIB_AR} libr.${LIB_SO}
|
||||
|
||||
libr.${LIBAR}:
|
||||
ar -r libr.${LIBAR} .objs/*.o
|
||||
libr.${LIB_AR}:
|
||||
ar -r libr.${LIB_AR} .objs/*.o
|
||||
|
||||
libr.so:
|
||||
${CC} -shared -fPIC .objs/*.o -o libr.so
|
||||
libr.${LIB_SO}:
|
||||
${CC} -shared -fPIC .objs/*.o -o libr.${LIB_SO}
|
||||
|
||||
# XXX needs autodetection of deps to remake and so..
|
||||
.objs:
|
||||
|
@ -115,7 +115,7 @@ static int r_debug_ptrace_reg_read(struct r_debug_t *dbg, int type, ut8 *buf, in
|
||||
int pid = dbg->pid;
|
||||
if (type == R_REG_TYPE_GPR) {
|
||||
// XXX this must be defined somewhere else
|
||||
#if __linux__
|
||||
#if __linux__ && (__i386__ || __x86_64__)
|
||||
#include <sys/user.h>
|
||||
#include <limits.h>
|
||||
struct user_regs_struct regs;
|
||||
|
5
libr/debug/t/Makefile
Normal file
5
libr/debug/t/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
OBJ=main.o
|
||||
BIN=main
|
||||
BINDEPS=r_util r_lib r_debug r_bp r_io r_reg r_cons
|
||||
|
||||
include ../../rules.mk
|
@ -175,7 +175,7 @@ static int __close(struct r_io_t *io, int pid)
|
||||
static int __system(struct r_io_t *io, int fd, const char *cmd)
|
||||
{
|
||||
//printf("ptrace io command (%s)\n", cmd);
|
||||
#if __linux__
|
||||
#if __linux__ && ( __i386__ || __x86_64__ )
|
||||
#include <sys/user.h>
|
||||
#include <limits.h>
|
||||
/* XXX ugly hack for testing purposes */
|
||||
|
@ -3,6 +3,7 @@
|
||||
functions by Mandingo, Copyleft, 2009-02-20
|
||||
*/
|
||||
|
||||
#include <r_types.h>
|
||||
#if __UNIX__
|
||||
|
||||
#include <regex.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user