benson@odi.com (Benson Margulies) (06/06/89)
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