This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
IA-64 broken_backtrace on 4.0
- From: Andrew Haley <aph at redhat dot com>
- To: java at gcc dot gnu dot org, gbenson at redhat dot com
- Cc: Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 14 Jul 2005 16:51:53 +0100
- Subject: IA-64 broken_backtrace on 4.0
IA-64 configure.ac on 4.0 branch doesn't define HAVE_BACKTRACE:
AC_CHECK_FUNC(backtrace, [
case "$host" in
ia64-*-linux*)
# Has broken backtrace()
;;
Does anyone know *why* this is defined?
This test works:
#include <execinfo.h>
#include <stdio.h>
int
main (void)
{
void *p[12];
int NN = backtrace (p, 12);
char **pp = backtrace_symbols (p, NN);
printf ("trace: %d\n", NN);
int i;
for (i=0; i<NN; i++)
printf (" %s \n", pp[i]);
}
Can we just delete this IA-64 special case?
Andrew.