I have the same problem for the gdb/g++. For a simple program it looks as
though you can ignore the error using the 'continue' command:
(gdb) run
Starting program: /home/e1/prog/plus
"/usr/lib/libcrypt.a": not in executable format: File format not recognized.
(gdb) step
Single stepping until exit from function __start,
which has no line number information.
main () at plus.cc:4
4 int i, sum=0;
(gdb) cont
Continuing.
sum of squares 1 to 10: 285
Program exited normally.
I would like to know what the consequences are for more complicated
programs. I cannot convert the file format. e.g. if I try ar -g libcrypt.a I
get an error message:
ar: 0707-130 The archive contains one or more 64-bit objects. It cannot be
converted to the small archive format.
If I extract all files and build a new library without the 64bit files the
libcrypt.a I can use the -g flag and the error has disappeared. (But I get
the same error for libc.a. I guess I have to rebuild all libraries for 32
bit.
Anyone tried this already?
Martin Warf
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]namens
[EMAIL PROTECTED] (Tim Mooney)
Gepost op: woensdag 26 april 2000 20:42
Gepost naar: bug
Discussie: GDB problems on AIX 4.3.2
Onderwerp: Re: GDB problems on AIX 4.3.2
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
application/ms-tnef