From owner-freebsd-current Sat May 23 09:15:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA06458 for freebsd-current-outgoing; Sat, 23 May 1998 09:15:09 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA06437 for ; Sat, 23 May 1998 09:15:04 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.8.8/8.8.5) with SMTP id RAA05067; Sat, 23 May 1998 17:16:27 +0100 (BST) Date: Sat, 23 May 1998 17:16:27 +0100 (BST) From: Doug Rabson To: Amancio Hasty cc: current@FreeBSD.ORG Subject: Re: gdb elf-binary? In-Reply-To: <199805231612.JAA07931@rah.star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 23 May 1998, Amancio Hasty wrote: > Very well, I will look into it a bit more and my -current is about 4 days > old. I realised after someone else was having problems that I forgot to commit the changes to link.h. I have now done this, so you either need to cvsup that or apply this patch: Index: link.h =================================================================== RCS file: /home/ncvs/src/include/link.h,v retrieving revision 1.18 diff -u -c -r1.18 link.h *** link.h 1998/02/06 16:46:44 1.18 --- link.h 1998/04/30 07:39:28 *************** *** 41,46 **** --- 41,73 ---- #ifndef _LINK_H_ #define _LINK_H_ + #if (defined(FREEBSD_ELF) || defined(__ELF__)) && !defined(FREEBSD_AOUT) + + #include + + struct link_map { + caddr_t l_addr; /* Base Address of library */ + #ifdef __mips__ + caddr_t l_offs; /* Load Offset of library */ + #endif + const char *l_name; /* Absolute Path to Library */ + const void *l_ld; /* Pointer to .dynamic in memory */ + struct link_map *l_next, *l_prev; /* linked list of of mapped libs */ + }; + + struct r_debug { + int r_version; /* not used */ + struct link_map *r_map; /* list of loaded images */ + void (*r_brk)(void); /* pointer to break point */ + enum { + RT_CONSISTENT, /* things are stable */ + RT_ADD, /* adding a shared library */ + RT_DELETE /* removing a shared library */ + } r_state; + }; + + #else /* !__ELF__ */ + struct dl_info; /* *************** *** 285,289 **** --- 312,318 ---- }; #define _PATH_LD_HINTS "/var/run/ld.so.hints" + + #endif /* !__ELF__ */ #endif /* _LINK_H_ */ -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message