[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
objdump assertion failure
From: |
Sami Kantoluoto |
Subject: |
objdump assertion failure |
Date: |
Sun, 4 Aug 2002 19:05:56 +0300 |
User-agent: |
Mutt/1.2.5i |
Hi,
I'm getting following message when using "mcore-elf-objdump -g <obj>" on
some object files:
assertion "info->stack->visibility != DEBUG_VISIBILITY_IGNORE" failed: file
"/pub/devel/gnu/binutils-2.11.2/binutils/prdbg.c", line 997
Object file is generated with "mcore-elf-gcc -gstabs+ -o <obj> -c <src>".
Error can be reproduced using following source:
/* begin of test.c */
typedef struct dummy {
union {
char Data[0];
int Error;
} D;
} dummy_t;
/* end of test.c */
If I delete the line 'int Error;' or change 'Data[0]' to e.g. 'Data[1]',
error disappears.
Shell dump:
# mcore-elf-gcc -gstabs+ -o test.o -c test.c
# mcore-elf-objdump -g test.o
test.o: file format elf32-mcore-little
/home/skanto/work/sjk/twc13/app/test.c:
typedef int32 int;
typedef uint8 char;
typedef int32 long int;
typedef uint32 unsigned int;
typedef uint32 long unsigned int;
typedef int64 long long int;
typedef uint64 long long unsigned int;
typedef int16 short int;
typedef uint16 short unsigned int;
typedef int8 signed char;
typedef uint8 unsigned char;
typedef float float;
typedef double double;
typedef double long double;
typedef struct %anon1 { /* size 8 */
int real; /* bitsize 32, bitpos 0 */
int imag; /* bitsize 32, bitpos 32 */
} complex int;
typedef complex double complex float;
typedef complex float128 complex double;
typedef complex float128 complex long double;
typedef void *__builtin_va_list;
typedef bool32 boolean;
typedef boolean _Bool;
assertion "info->stack->visibility != DEBUG_VISIBILITY_IGNORE" failed: file
"/pub/devel/gnu/binutils-2.11.2/binutils/prdbg.c", line 997
Abort trap
#
# mcore-elf-gcc -v
Reading specs from /usr/cross/mcore/lib/gcc-lib/mcore-elf/3.0.3/specs
Configured with: /pub/devel/gnu/gcc-3.0.3/configure --target=mcore-elf
--with-gnu-as --with-gnu-ld --prefix=/usr/cross/mcore -v --with-newlib
--with-headers=/pub/devel/gnu/newlib-1.9.0/newlib/libc/include
Thread model: single
gcc version 3.0.3
#
# mcore-elf-objdump --version
GNU objdump 2.11.2
Copyright 1997, 98, 99, 2000, 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
-sk
pgpIYIq7lbi54.pgp
Description: PGP signature
- objdump assertion failure,
Sami Kantoluoto <=