Article View: gnu.gdb.bug
Article #794GDB and the shell and sunos 4 and cetra.
From: Benson Margulies
Date: Mon, 05 Jun 1989 19:31
Date: Mon, 05 Jun 1989 19:31
21 lines
1219 bytes
1219 bytes
Under SunOS 4, execing a dynamically linked object from inside a process that has done a ptrace(PTRACE_TRACE_ME) results in an extra breakpoint intended to let the debugger keep up with the linker. /bin/csh is dynamically linked. So gdb's code that depends on a shell to take care of redirection and the like hits this breakpoint if one tries to use /bin/csh so as to get ~ expansion. I'd like to get gdb to actually work with dynamic linking some day. It can't be done so long as gdb uses the trick of execing the shell to get redirects and the like, unless gdb examined the shell to see if it was dynamic, and if so expected one bogus breakpoint for free. Is anyone else interested in using bourne-again-shell code to put the redirects and such inline? --benson Benson I. Margulies
Technical Details
Message-ID:
<379@odi.ODI.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!odi!indirect!bensonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!odi!indirect!benson From: benson@odi.com (Benson Margulies) Newsgroups: gnu.gdb.bug Subject: GDB and the shell and sunos 4 and cetra. Message-ID: <379@odi.ODI.COM> Date: 5 Jun 89 19:31:33 GMT Sender: news@odi.com Reply-To: <benson@odi.com> Distribution: gnu Organization: Object Design Inc., Burlington, MA Lines: 21