[25572] in Athena Bugs
Re: sun4 9.2.28: matlab
daemon@ATHENA.MIT.EDU (Alex T Prengel)
Fri Apr 2 18:05:50 2004
Message-Id: <200404022304.i32N4rPt025769@dit.mit.edu>
To: asanka@mit.edu
In-reply-to: "[25569] in Athena Bugs"
Date: Fri, 02 Apr 2004 18:04:53 -0500
From: Alex T Prengel <alexp@mit.edu>
cc: alexp@mit.edu
cc: jamous@mit.edu
cc: bugs@mit.edu
Errors-To: bugs-bounces@mit.edu
Hi Asanka,
You report:
>What's wrong:
>
> >matlab -Dgdb
>GNU gdb 4.18
>Copyright 1998 Free Software Foundation, Inc.
>...
>This GDB was configured as "sparc-sun-solaris2.8"...
>...
>"/mit/matlab_v6.5.1/distrib/bin/matlab": not in executable format: File format not recognized
>
> gdb is trying to debug a matlab startup script.
>
>What should have happened:
>
> gdb should have loaded the matlab binary.
I looked into this and found that there are two problems- the first
(which I can easily fix) is an error in our launch script;
unfortunately if I do that it still won't work, because the main
Matlab binary is wrapped with the MIT wrapper to log usage- the
resulting modification turns it into a script that gdb can't handle;
we're essentially back to the first problem.
There's no easy way around this, other than unwrapping Matlab which we
don't want to do. If it's important that you be able to run this so
you can debug someone's problem, I can temporarily make it possible
for you to access an unwrapped copy (for a few hours or so). I can't
do this until sometime Wd. afternoon or later as I'll be out Monday
and Tuesday. Let me know if and when you want to do this. I'd rather
not do it unless it's important.
Alex