Stuff
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@947 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9afcb30f8b
commit
f3dab9d45c
7 changed files with 8 additions and 13 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
SRCS = demangle.c return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
|
||||
OBJS = demangle.o return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o main.o
|
||||
SRCS = return.c default.c stack.c stab.c elf.c object.c init.c segment.c signal.c
|
||||
OBJS = return.o default.o stack.o stab.o elf.o object.o signal.o segment.o init.o main.o
|
||||
INCLUDE = -I../Include -I.
|
||||
OPT = -DWAD_SOLARIS
|
||||
LIBS =
|
||||
|
|
@ -33,6 +33,9 @@ linux::
|
|||
debug::
|
||||
cc -g debug.c $(INCLUDE) -L. -R. -lwad
|
||||
|
||||
plus::
|
||||
CC -g debug.cxx $(INCLUDE) -L. -R. -lwad
|
||||
|
||||
wc::
|
||||
wc $(SRCS)
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ void wad_init() {
|
|||
wad_debug_mode |= DEBUG_RETURN;
|
||||
}
|
||||
|
||||
|
||||
#ifndef WAD_LINUX
|
||||
if (!init) {
|
||||
wad_signal_init();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
#include "wad.h"
|
||||
#include <ar.h>
|
||||
|
||||
|
||||
/* Maximum number of files that can be loaded at once */
|
||||
|
||||
#define WAD_MAX_FILE 32
|
||||
|
|
@ -29,7 +28,6 @@ typedef struct WadFile {
|
|||
static WadFile wad_files[WAD_MAX_FILE]; /* Array of file objects */
|
||||
|
||||
/* private function to manage the loading of raw files into memory */
|
||||
|
||||
static WadFile *
|
||||
load_file(const char *path) {
|
||||
int i;
|
||||
|
|
@ -125,7 +123,6 @@ void wad_object_init() {
|
|||
wad_files[i].size = 0;
|
||||
wad_files[i].path[0] = 0;
|
||||
}
|
||||
|
||||
wad_obj_nfree = 0;
|
||||
for (i = 0; i < WAD_MAX_OBJECT; i++) {
|
||||
wad_objects[i].ptr = 0;
|
||||
|
|
|
|||
|
|
@ -48,3 +48,4 @@ WadReturnFunc *wad_check_return(const char *name) {
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -13,8 +13,7 @@
|
|||
#include "wad.h"
|
||||
|
||||
|
||||
/* stabs data structure. This appears to be somewhat universal. I ripped
|
||||
it out of the Sun C compiler include directory */
|
||||
/* stabs data structure. This appears to be somewhat universal. */
|
||||
|
||||
typedef struct Stab {
|
||||
unsigned n_strx; /* index into file string table */
|
||||
|
|
@ -158,8 +157,6 @@ wad_search_stab(void *sp, int size, char *stabstr, WadSymbol *wsym, unsigned lon
|
|||
debug->parms[debug->nargs].loc = PARM_STACK;
|
||||
|
||||
debug->parms[debug->nargs].value = s->n_value;
|
||||
/* printf("%s : %d: %d : %s\n", debug->parms[debug->nargs].name, s->n_type, debug->parms[debug->nargs].value,pname); */
|
||||
|
||||
debug->nargs++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ wad_stack_trace(unsigned long pc, unsigned long sp, unsigned long fp) {
|
|||
symname = 0;
|
||||
}
|
||||
|
||||
if (symname) symname = wad_cplus_demangle(&wsym);
|
||||
/* if (symname) symname = wad_cplus_demangle(&wsym); */
|
||||
|
||||
value = wsym.value;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue