In article <8e4j6b$ga4$[EMAIL PROTECTED]>, Elizabeth Harriman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> We get the following error when compiling a simple c program with gcc
> 2.95.2, then running gdb on it:
>
> % gcc test.c
> % gdb a.out
> GNU gdb 4.18
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "rs6000-ibm-aix4.3.2.0"...
> (gdb) b main
> Breakpoint 1 at 0x10000354
> (gdb) run
> Starting program: /u8/bustaff/ejh/a.out
> "/usr/lib/libcrypt.a": not in executable format: File format not recognized.
>
> Has anyone else had these problems, or does anyone have any suggestions?
Elizabeth-
Yes, I've seen similar problems on AIX 4.3.x. My guess is that gdb doesn't
understand "big format" libraries (run
file /usr/lib/libcrypt.a
to see what I mean), though that is just a guess. I've encountered other
difficulties with gdb on AIX in the past (even prior to versions with big
format libraries).
The gdb team would probably welcome patches contributed from an
AIX-knowledgeable person (any IBM engineers listening?!) that enhances
gdb's support for AIX. HP did it to improve gdb's support of HP-UX, so
maybe IBM will follow suit. I wouldn't hold my breath, though.
Tim
--
Tim Mooney [EMAIL PROTECTED]
Information Technology Services (701) 231-1076 (Voice)
Room 242-J1, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164