Path: 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: Distribution: gnu Organization: Object Design Inc., Burlington, MA Lines: 21 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