Daniel Jacobowitz wrote, on 2007-10-12 23:17:
On Thu, Oct 11, 2007 at 11:25:27AM +0930, Arthur Marsh wrote:
Package: gdb
Version: 6.6.dfsg.90.20070912-1
Severity: wishlist
I was able to use gdb to debug amsn (a wish script) by doing:
gdb --args /usr/bin/wish8.4 /usr/bin/amsn
Could gdb be modified to have the capability to do:
gdb /usr/bin/amsn
given that /usr/bin/amsn is a script that starts with:
#!/bin/bash
# \
exec wish $0
It's possible but unlikely. It's a fair amount of work and easy to do
by hand (you did it the right way).
The two parts are:
- Recognize #! files and parse their start lines to open the correct
executable file.
- Trace across execve since the executable is initially bash here.
Exec debugging will probably happen sometime in the next few years. I
don't know about #! support though.
Could a wrapper script for gdb accomplish this?
Regards,
Arthur.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]