bsd licenses for people who believe in those things

This commit is contained in:
George Hotz 2014-09-23 16:56:31 -04:00
parent 96b040fead
commit 8efefedc10
5 changed files with 33 additions and 4 deletions

2
.gitignore vendored
View File

@ -29,5 +29,5 @@ tests/bap/*.log
bap/
static/python32
testvm/.vagrant
radare2
radare

3
README
View File

@ -1,6 +1,7 @@
QIRA is a competitor to strace and gdb
See http://qira.me/ for high level usage information
All QIRA code is released under GPLv2
All QIRA code is released under GPLv2 or BSD
Other code in this repo released under it's respective license
== Installing latest release ==

View File

@ -15,6 +15,7 @@ if qira_config.WITH_RADARE:
#sys.path.append(qira_config.BASEDIR+"/radare2/radare2-bindings/ctypes")
#import r_bin
from r2.r_bin import *
from r2.r_core import RCore
# should namespace be changed to static?
@ -197,6 +198,7 @@ def graph_dot():
# *** INIT FUNCTIONS ***
def init_radare(path):
"""
io = RIO()
desc = io.open(path, 0, 0)
if desc == None:
@ -205,7 +207,11 @@ def init_radare(path):
b = RBin()
b.iobind(io)
b.load(path, 0, 0, 0, desc.fd, False)
print "*** radare bin loaded @",hex(b.get_baddr())
print "*** radare bin loaded @",ghex(b.get_baddr())
"""
core = RCore()
core.bin.load(path, 0, 0, 0, 0, 0)
print (core.cmd_str ("pd 12 @ entry0"))
def init_static(lprogram):
global program

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash -e
mkdir -p radare
cd radare
@ -6,6 +6,7 @@ sudo apt-get install valac-0.22 libvala-0.22-dev
pushd .
git clone https://github.com/radare/valabind.git
cd valabind
make
sudo make install
popd

21
tests/switchtest.c Normal file
View File

@ -0,0 +1,21 @@
int main(int argc, char *argv[]) {
switch(argc) {
case 1:
printf("1 args\n");
break;
case 2:
printf("2 args\n");
break;
case 3:
printf("3 args\n");
break;
case 10:
printf("10 args\n");
break;
case 47:
printf("47 args\n");
break;
}
return 0;
}