From owner-freebsd-hackers Tue Aug 6 08:18:33 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA24280 for hackers-outgoing; Tue, 6 Aug 1996 08:18:33 -0700 (PDT) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA24274 for ; Tue, 6 Aug 1996 08:18:29 -0700 (PDT) Received: from fiber.eng.umd.edu (fiber.eng.umd.edu [129.2.98.185]) by po2.glue.umd.edu (8.7.5/8.7.3) with ESMTP id LAA22904; Tue, 6 Aug 1996 11:18:23 -0400 (EDT) Received: from localhost (chuckr@localhost) by fiber.eng.umd.edu (8.7.5/8.7.3) with SMTP id LAA26738; Tue, 6 Aug 1996 11:18:23 -0400 (EDT) X-Authentication-Warning: fiber.eng.umd.edu: chuckr owned process doing -bs Date: Tue, 6 Aug 1996 11:18:22 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@fiber.eng.umd.edu To: Marty Leisner cc: gdb-testers@cygnus.com, hackers@freebsd.org Subject: Re: gdb 960725 on freebsd 2.2.(5/1/96) In-Reply-To: <9608061509.AA17018@gnu.mc.xerox.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 6 Aug 1996, Marty Leisner wrote: > > > > Did you actually check that it recognized FreeBSD executeables? Getting > > it to compile is a long way from getting it to work, unfortunately. > > > Well, it almost works... > > : leisner@compaq.home;gdb ls > GDB is free software and you are welcome to distribute copies of it > under certain conditions; type "show copying" to see the conditions. > There is absolutely no warranty for GDB; type "show warranty" for details. > GDB 960725 (i386-unknown-freebsd2.2), > Copyright 1996 Free Software Foundation, Inc... > (gdb) break main > Breakpoint 1 at 0x1b81: file /pb/usr/local/src/gnu/fileutils-3.13/src/ls.c, > line 650. > (gdb) r > Starting program: /usr/local/bin/ls > > Breakpoint 1, main (argc=1, argv=0xefbfd45c) > at /pb/usr/local/src/gnu/fileutils-3.13/src/ls.c:650 > 650 program_name = argv[0]; > (gdb) n > 651 setlocale (LC_ALL, ""); > (gdb) n > 0xb15c in _DYNAMIC () > (gdb) n > Single stepping until exit from function _DYNAMIC, > which has no line number information. > ld.so: Undefined symbol "10nflist" called from ls:ls at 0xb15c > > Program exited with code 01. > (gdb) > It seems to work if I don't go into shared libraries... > I haven't done much work with it yes (I haven't rebuilt the libraries > on freebsd). > > Or tried -static... I understand it only works this far because of John Polstra's work in getting ELF libs working for FreeBSD. They do work now, natively, for FreeBSD-current, and I think that gdb is very likely to work in those cases, but not using the zmagic linking that is still the standard (and seemingly likely to stay that way). ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------