For those of you who have hit a compile problem with dbsym, here's
the patch which allows dbsym to build from the djgpp <stdio.h> (because
dbsym runs under DOS/djgpp) while still using the needed header from
dbg/. patch appears to come with djgpp, so I'm assuming you folks will
have no trouble applying this:
*** c:/tmp/T0AA.AAA Fri Aug 13 09:23:00 1993
--- make/make.tai Fri Aug 13 09:13:46 1993
***************
*** 1,12 ****
vsta: $(OBJS) dbsym
$(LD) -e _start -o vsta @objs $(LIBS)
go32 dbsym vsta
dbsym: ../dbg/dbsym.c
! $(CC) $(CFLAGS) -o dbsym ../dbg/dbsym.c
clean:
rm -f genassym assym.h locore.s *.o
clobber: clean
rm -f vsta
--- 1,12 ----
vsta: $(OBJS) dbsym
$(LD) -e _start -o vsta @objs $(LIBS)
go32 dbsym vsta
dbsym: ../dbg/dbsym.c
! $(CC) $(DEFS) -o dbsym ../dbg/dbsym.c
clean:
rm -f genassym assym.h locore.s *.o
clobber: clean
rm -f vsta
*** c:/tmp/T0AA.AAA Fri Aug 13 09:23:00 1993
--- dbg/dbsym.c Fri Aug 13 09:11:38 1993
***************
*** 3,15 ****
* Hacked for VSTa by Andy Valencia (jtk@netcom.com). This file is
* still in the public domain.
*/
#ifdef KDB
#include <stdio.h>
#include <aout.h>
! #include <dbg/dbg.h>
extern void *malloc();
#define FILE_OFFSET(vadr) \
(vadr - N_DATADDR(hdr) + N_DATOFF(hdr))
--- 3,15 ----
* Hacked for VSTa by Andy Valencia (jtk@netcom.com). This file is
* still in the public domain.
*/
#ifdef KDB
#include <stdio.h>
#include <aout.h>
! #include "../dbg/dbg.h"
extern void *malloc();
#define FILE_OFFSET(vadr) \
(vadr - N_DATADDR(hdr) + N_DATOFF(hdr))
*** c:/tmp/T0AA.AAA Fri Aug 13 09:23:00 1993
--- dbg/dbg.h Fri Aug 13 09:11:20 1993
***************
*** 1,14 ****
#ifndef _NAMES_H
#define _NAMES_H
/*
* names.h
* Values shared between kernel and utiliies
*/
- #include <sys/types.h>
-
#define DBG_NAMESZ (20*1024) /* Buffer for namelist data */
/*
* Type of each entry in dbg_names[]
*/
#define DBG_END (1)
--- 1,12 ----
***************
*** 16,29 ****
#define DBG_DATA (3)
/*
* Structure superimposed onto the stream of bytes in dbg_names[]
*/
struct sym {
! uchar s_type; /* Must be first--see dbg_names[] */
! ulong s_val;
char s_name[1];
};
/*
* How to advance to end of current struct sym
*/
--- 14,27 ----
#define DBG_DATA (3)
/*
* Structure superimposed onto the stream of bytes in dbg_names[]
*/
struct sym {
! unsigned char s_type; /* Must be first--see dbg_names[] */
! unsigned long s_val;
char s_name[1];
};
/*
* How to advance to end of current struct sym
*/
Received on Mon Aug 16 16:54:15 1993
This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 19:37:12 PDT