From 07298b03567f75a9fec7e7722dec731fbcc7fef4 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 12 Sep 2018 01:16:29 +0430 Subject: update --- test/autowasm.c | 2 ++ test/makefile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/autowasm.c b/test/autowasm.c index 37bbbe5..87478c1 100644 --- a/test/autowasm.c +++ b/test/autowasm.c @@ -14,10 +14,12 @@ int main (int argc, char** argv) { int wasm = open("./test.wasm", O_RDONLY); wasm_lib_ret_t* lib_ret = read_aggr_wasm(wasm); + printf("finished reading\n"); printf("magic_number:%x\n", lib_ret->obj->magic_number_container->magic_number); printf("version:%x\n", lib_ret->obj->version_container->version); + printf("fuck\n"); printf("type section id:%d\n", lib_ret->obj->W_Type_Section_container->id); printf("type section payloadlength:%d\n", lib_ret->obj->W_Type_Section_container->payloadlength); printf("type_section entry count:%d\n", lib_ret->obj->W_Type_Section_container->count); diff --git a/test/makefile b/test/makefile index 86f0a6b..4f2c90d 100644 --- a/test/makefile +++ b/test/makefile @@ -53,7 +53,7 @@ LD_FLAGS+=$(EXTRA_LD_FLAGS) .PHONY:all clean help ASM SO TAGS -all:$(TARGET) +all:$(TARGET) $(TARGET)-dbg everything:$(TARGET) A ASM SO $(TARGET)-static $(TARGET)-dbg TAGS $(TARGET)-cov @@ -82,7 +82,7 @@ $(TARGET): $(TARGET).o read.o aggregate.o structs.o $(TARGET)-static: $(TARGET).o read.o aggregate.o structs.o $(CC) $^ $(LD_FLAGS) -static -o $@ -$(TARGET)-dbg: $(TARGET).odbg read.o aggregate.o structs.o +$(TARGET)-dbg: $(TARGET).odbg read.odbg aggregate.odbg structs.odbg $(CC) $^ $(LD_FLAGS) -g -o $@ $(TARGET)-cov: $(TARGET).ocov read.o aggregate.o structs.o -- cgit v1.2.3