OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/gnu-old/gdb-6.8/gdb/testsuite/gdb.hp/gdb.base-hp
    from Rev 827 to Rev 840
    Reverse comparison

Rev 827 → Rev 840

/configure
0,0 → 1,2246
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59.
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
 
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh
 
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
as_unset=unset
else
as_unset=false
fi
 
 
# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
 
# NLS nuisances.
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
eval $as_var=C; export $as_var
else
$as_unset $as_var
fi
done
 
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
 
 
# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
. : '\(.\)' 2>/dev/null ||
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
 
 
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
 
 
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" || {
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
 
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for as_base in sh bash ksh sh5; do
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
fi;;
esac
done
done
;;
esac
 
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '=' <$as_myself |
sed '
N
s,$,-,
: loop
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
t loop
s,-$,,
s,^['$as_cr_digits']*\n,,
' >$as_me.lineno &&
chmod +x $as_me.lineno ||
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
{ (exit 1); exit 1; }; }
 
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
. ./$as_me.lineno
# Exit status is that of the last command.
exit
}
 
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
 
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
 
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conf$$.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file
 
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
 
as_executable_p="test -f"
 
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
 
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" $as_nl"
 
# CDPATH.
$as_unset CDPATH
 
 
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
exec 6>&1
 
#
# Initializations.
#
ac_default_prefix=/usr/local
ac_config_libobj_dir=.
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
 
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
 
# Identity of this package.
PACKAGE_NAME=
PACKAGE_TARNAME=
PACKAGE_VERSION=
PACKAGE_STRING=
PACKAGE_BUGREPORT=
 
ac_unique_file="dollar.exp"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBOBJS LTLIBOBJS'
ac_subst_files=''
 
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
 
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
 
ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
 
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
# Accept the important Cygnus configure options, so we can diagnose typos.
 
case $ac_option in
 
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir=$ac_optarg ;;
 
-build | --build | --buil | --bui | --bu)
ac_prev=build_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build_alias=$ac_optarg ;;
 
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file=$ac_optarg ;;
 
--config-cache | -C)
cache_file=config.cache ;;
 
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir=$ac_optarg ;;
 
-disable-* | --disable-*)
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
eval "enable_$ac_feature=no" ;;
 
-enable-* | --enable-*)
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) ac_optarg=yes ;;
esac
eval "enable_$ac_feature='$ac_optarg'" ;;
 
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix=$ac_optarg ;;
 
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
 
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
 
-host | --host | --hos | --ho)
ac_prev=host_alias ;;
-host=* | --host=* | --hos=* | --ho=*)
host_alias=$ac_optarg ;;
 
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir=$ac_optarg ;;
 
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir=$ac_optarg ;;
 
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir=$ac_optarg ;;
 
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir=$ac_optarg ;;
 
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir=$ac_optarg ;;
 
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir=$ac_optarg ;;
 
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
 
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c | -n)
no_create=yes ;;
 
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
 
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir=$ac_optarg ;;
 
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
prefix=$ac_optarg ;;
 
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
program_prefix=$ac_optarg ;;
 
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
program_suffix=$ac_optarg ;;
 
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
program_transform_name=$ac_optarg ;;
 
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
 
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir=$ac_optarg ;;
 
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir=$ac_optarg ;;
 
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site=$ac_optarg ;;
 
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir=$ac_optarg ;;
 
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir=$ac_optarg ;;
 
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target_alias ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target_alias=$ac_optarg ;;
 
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
 
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
 
-with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package| sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) ac_optarg=yes ;;
esac
eval "with_$ac_package='$ac_optarg'" ;;
 
-without-* | --without-*)
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package | sed 's/-/_/g'`
eval "with_$ac_package=no" ;;
 
--x)
# Obsolete; use --with-x.
with_x=yes ;;
 
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes=$ac_optarg ;;
 
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
 
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
;;
 
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
{ (exit 1); exit 1; }; }
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
 
*)
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
;;
 
esac
done
 
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "$as_me: error: missing argument to $ac_option" >&2
{ (exit 1); exit 1; }; }
fi
 
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
esac
done
 
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
localstatedir libdir includedir oldincludedir infodir mandir
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
esac
done
 
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias
 
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
 
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
test "$silent" = yes && exec 6>/dev/null
 
 
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
{ (exit 1); exit 1; }; }
else
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
{ (exit 1); exit 1; }; }
fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
{ (exit 1); exit 1; }; }
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
 
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures this package to adapt to many kinds of systems.
 
Usage: $0 [OPTION]... [VAR=VALUE]...
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
 
Defaults for the options are specified in brackets.
 
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
 
_ACEOF
 
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
 
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
 
For better control, use the options below.
 
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
_ACEOF
 
cat <<\_ACEOF
 
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
_ACEOF
fi
 
if test -n "$ac_init_help"; then
 
cat <<\_ACEOF
 
_ACEOF
fi
 
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d $ac_dir || continue
ac_builddir=.
 
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
 
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
 
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
 
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
$SHELL $ac_srcdir/configure.gnu --help=recursive
elif test -f $ac_srcdir/configure; then
echo
$SHELL $ac_srcdir/configure --help=recursive
elif test -f $ac_srcdir/configure.ac ||
test -f $ac_srcdir/configure.in; then
echo
$ac_configure --help
else
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi
cd $ac_popdir
done
fi
 
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
 
Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
It was created by $as_me, which was
generated by GNU Autoconf 2.59. Invocation command line was
 
$ $0 $@
 
_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
 
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
 
_ASUNAME
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir"
done
 
} >&5
 
cat >&5 <<_ACEOF
 
 
## ----------- ##
## Core tests. ##
## ----------- ##
 
_ACEOF
 
 
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_sep=
ac_must_keep_next=false
for ac_pass in 1 2
do
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
# Get rid of the leading space.
ac_sep=" "
;;
esac
done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
 
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
{
(set) 2>&1 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
;;
*)
sed -n \
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
}
echo
 
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=$`echo $ac_var`
echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
 
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
fi
 
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
sed "/^$/d" confdefs.h | sort
echo
fi
test "$ac_signal" != 0 &&
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
rm -f core *.core &&
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
 
# Predefined preprocessor variables.
 
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
 
 
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
 
 
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
 
 
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
 
 
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
 
 
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file"
fi
done
 
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
else
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
 
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
echo "$as_me: former value: $ac_old_val" >&2;}
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
echo "$as_me: current value: $ac_new_val" >&2;}
ac_cache_corrupted=:
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
esac
fi
done
if $ac_cache_corrupted; then
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; }
fi
 
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CC=${CC-cc}
 
ac_aux_dir=
for ac_dir in `cd $srcdir;pwd`/../../../.. $srcdir/`cd $srcdir;pwd`/../../../..; do
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f $ac_dir/install.sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f $ac_dir/shtool; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../../../.. $srcdir/\`cd $srcdir;pwd\`/../../../.." >&5
echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/../../../.. $srcdir/\`cd $srcdir;pwd\`/../../../.." >&2;}
{ (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
{ (exit 1); exit 1; }; }
 
echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
{ (exit 1); exit 1; }; }
 
fi
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
 
echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
{ (exit 1); exit 1; }; }
 
fi
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
 
echo "$as_me:$LINENO: checking target system type" >&5
echo $ECHO_N "checking target system type... $ECHO_C" >&6
if test "${ac_cv_target+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_target_alias=$target_alias
test "x$ac_cv_target_alias" = "x" &&
ac_cv_target_alias=$ac_cv_host_alias
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
{ (exit 1); exit 1; }; }
 
fi
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
echo "${ECHO_T}$ac_cv_target" >&6
target=$ac_cv_target
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
 
# The aliases save the names the user supplied, while $host etc.
# will get canonicalized.
test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
 
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs, see configure's option --config-cache.
# It is not useful on other systems. If it contains results you don't
# want to keep, you may remove or edit it.
#
# config.status only pays attention to the cache file if you give it
# the --recheck option to rerun configure.
#
# `ac_cv_env_foo' variables (set or unset) will be overridden when
# loading this file, other *unset* `ac_cv_foo' will be assigned the
# following values.
 
_ACEOF
 
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
{
(set) 2>&1 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote
# substitution turns \\\\ into \\, and sed turns \\ into \).
sed -n \
"s/'/'\\\\''/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
;;
*)
# `set' quotes correctly as required by POSIX, so do not add quotes.
sed -n \
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
} |
sed '
t clear
: clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
: end' >>confcache
if diff $cache_file confcache >/dev/null 2>&1; then :; else
if test -w $cache_file; then
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
cat confcache >$cache_file
else
echo "not updating unwritable cache $cache_file"
fi
fi
rm -f confcache
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
# trailing colons and then remove the whole line if VPATH becomes empty
# (actually we leave an empty line to preserve line numbers).
if test "x$srcdir" = x.; then
ac_vpsub='/^[ ]*VPATH[ ]*=/{
s/:*\$(srcdir):*/:/;
s/:*\${srcdir}:*/:/;
s/:*@srcdir@:*/:/;
s/^\([^=]*=[ ]*\):*/\1/;
s/:*$//;
s/^[^=]*=[ ]*$//;
}'
fi
 
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
#
# If the first sed substitution is executed (which looks for macros that
# take arguments), then we branch to the quote section. Otherwise,
# look for a macro that doesn't take arguments.
cat >confdef2opt.sed <<\_ACEOF
t clear
: clear
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
t quote
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
t quote
d
: quote
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
s,\[,\\&,g
s,\],\\&,g
s,\$,$$,g
p
_ACEOF
# We use echo to avoid assuming a particular line-breaking character.
# The extra dot is to prevent the shell from consuming trailing
# line-breaks from the sub-command output. A line-break within
# single-quotes doesn't work because, if this script is created in a
# platform that uses two characters for line-breaks (e.g., DOS), tr
# would break.
ac_LF_and_DOT=`echo; echo .`
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
rm -f confdef2opt.sed
 
 
ac_libobjs=
ac_ltlibobjs=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
ac_i=`echo "$ac_i" |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
# 2. Add them.
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs
 
LTLIBOBJS=$ac_ltlibobjs
 
 
 
: ${CONFIG_STATUS=./config.status}
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
echo "$as_me: creating $CONFIG_STATUS" >&6;}
cat >$CONFIG_STATUS <<_ACEOF
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
# Compiler output produced by configure, useful for debugging
# configure, is in config.log if it exists.
 
debug=false
ac_cs_recheck=false
ac_cs_silent=false
SHELL=\${CONFIG_SHELL-$SHELL}
_ACEOF
 
cat >>$CONFIG_STATUS <<\_ACEOF
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
 
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh
 
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
as_unset=unset
else
as_unset=false
fi
 
 
# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
 
# NLS nuisances.
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
eval $as_var=C; export $as_var
else
$as_unset $as_var
fi
done
 
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
 
 
# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
. : '\(.\)' 2>/dev/null ||
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
 
 
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
 
 
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" || {
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
 
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for as_base in sh bash ksh sh5; do
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
fi;;
esac
done
done
;;
esac
 
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '=' <$as_myself |
sed '
N
s,$,-,
: loop
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
t loop
s,-$,,
s,^['$as_cr_digits']*\n,,
' >$as_me.lineno &&
chmod +x $as_me.lineno ||
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
{ (exit 1); exit 1; }; }
 
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
. ./$as_me.lineno
# Exit status is that of the last command.
exit
}
 
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
 
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
 
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conf$$.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file
 
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
 
as_executable_p="test -f"
 
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
 
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" $as_nl"
 
# CDPATH.
$as_unset CDPATH
 
exec 6>&1
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. Logging --version etc. is OK.
exec 5>>config.log
{
echo
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
} >&5
cat >&5 <<_CSEOF
 
This file was extended by $as_me, which was
generated by GNU Autoconf 2.59. Invocation command line was
 
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_LINKS = $CONFIG_LINKS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
 
_CSEOF
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
echo >&5
_ACEOF
 
# Files that config.status was made for.
if test -n "$ac_config_files"; then
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
fi
 
if test -n "$ac_config_headers"; then
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
fi
 
if test -n "$ac_config_links"; then
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
fi
 
if test -n "$ac_config_commands"; then
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
fi
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
ac_cs_usage="\
\`$as_me' instantiates files from templates according to the
current configuration.
 
Usage: $0 [OPTIONS] [FILE]...
 
-h, --help print this help, then exit
-V, --version print version number, then exit
-q, --quiet do not print progress messages
-d, --debug don't remove temporary files
--recheck update $as_me by reconfiguring in the same conditions
--file=FILE[:TEMPLATE]
instantiate the configuration file FILE
 
Configuration files:
$config_files
 
Report bugs to <bug-autoconf@gnu.org>."
_ACEOF
 
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
config.status
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
Copyright (C) 2003 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
srcdir=$srcdir
_ACEOF
 
cat >>$CONFIG_STATUS <<\_ACEOF
# If no file are specified by the user, then we need to provide default
# value. By we need to know if files were specified by the user.
ac_need_defaults=:
while test $# != 0
do
case $1 in
--*=*)
ac_option=`expr "x$1" : 'x\([^=]*\)='`
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
ac_shift=:
;;
-*)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
*) # This is not an option, so the user has probably given explicit
# arguments.
ac_option=$1
ac_need_defaults=false;;
esac
 
case $ac_option in
# Handling of the options.
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
--version | --vers* | -V )
echo "$ac_cs_version"; exit 0 ;;
--he | --h)
# Conflict between --help and --header
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: ambiguous option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; };;
--help | --hel | -h )
echo "$ac_cs_usage"; exit 0 ;;
--debug | --d* | -d )
debug=: ;;
--file | --fil | --fi | --f )
$ac_shift
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
ac_need_defaults=false;;
--header | --heade | --head | --hea )
$ac_shift
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
ac_need_defaults=false;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil | --si | --s)
ac_cs_silent=: ;;
 
# This is an error.
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Try \`$0 --help' for more information." >&5
echo "$as_me: error: unrecognized option: $1
Try \`$0 --help' for more information." >&2;}
{ (exit 1); exit 1; }; } ;;
 
*) ac_config_targets="$ac_config_targets $1" ;;
 
esac
shift
done
 
ac_configure_extra_args=
 
if $ac_cs_silent; then
exec 6>/dev/null
ac_configure_extra_args="$ac_configure_extra_args --silent"
fi
 
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
if \$ac_cs_recheck; then
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fi
 
_ACEOF
 
 
 
 
 
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_config_target in $ac_config_targets
do
case "$ac_config_target" in
# Handling of arguments.
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
{ (exit 1); exit 1; }; };;
esac
done
 
# If the user did not use the arguments to specify the items to instantiate,
# then the envvar interface is used. Set only those that are not.
# We use the long form for the default assignment because of an extremely
# bizarre bug on SunOS 4.1.3.
if $ac_need_defaults; then
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
fi
 
# Have a temporary directory for convenience. Make it in the build tree
# simply because there is no reason to put it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
# Create a temporary directory, and hook for its removal unless debugging.
$debug ||
{
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
trap '{ (exit 1); exit 1; }' 1 2 13 15
}
 
# Create a (secure) tmp directory for tmp files.
 
{
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
} ||
{
tmp=./confstat$$-$RANDOM
(umask 077 && mkdir $tmp)
} ||
{
echo "$me: cannot create a temporary directory in ." >&2
{ (exit 1); exit 1; }
}
 
_ACEOF
 
cat >>$CONFIG_STATUS <<_ACEOF
 
#
# CONFIG_FILES section.
#
 
# No need to generate the scripts if there are no CONFIG_FILES.
# This happens for instance when ./config.status config.h
if test -n "\$CONFIG_FILES"; then
# Protect against being on the right side of a sed subst in config.status.
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
s,@SHELL@,$SHELL,;t t
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
s,@exec_prefix@,$exec_prefix,;t t
s,@prefix@,$prefix,;t t
s,@program_transform_name@,$program_transform_name,;t t
s,@bindir@,$bindir,;t t
s,@sbindir@,$sbindir,;t t
s,@libexecdir@,$libexecdir,;t t
s,@datadir@,$datadir,;t t
s,@sysconfdir@,$sysconfdir,;t t
s,@sharedstatedir@,$sharedstatedir,;t t
s,@localstatedir@,$localstatedir,;t t
s,@libdir@,$libdir,;t t
s,@includedir@,$includedir,;t t
s,@oldincludedir@,$oldincludedir,;t t
s,@infodir@,$infodir,;t t
s,@mandir@,$mandir,;t t
s,@build_alias@,$build_alias,;t t
s,@host_alias@,$host_alias,;t t
s,@target_alias@,$target_alias,;t t
s,@DEFS@,$DEFS,;t t
s,@ECHO_C@,$ECHO_C,;t t
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@CC@,$CC,;t t
s,@build@,$build,;t t
s,@build_cpu@,$build_cpu,;t t
s,@build_vendor@,$build_vendor,;t t
s,@build_os@,$build_os,;t t
s,@host@,$host,;t t
s,@host_cpu@,$host_cpu,;t t
s,@host_vendor@,$host_vendor,;t t
s,@host_os@,$host_os,;t t
s,@target@,$target,;t t
s,@target_cpu@,$target_cpu,;t t
s,@target_vendor@,$target_vendor,;t t
s,@target_os@,$target_os,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
CEOF
 
_ACEOF
 
cat >>$CONFIG_STATUS <<\_ACEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_lines=48
ac_sed_frag=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_lines # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
else
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
fi
if test ! -s $tmp/subs.frag; then
ac_more_lines=false
else
# The purpose of the label and of the branching condition is to
# speed up the sed processing (if there are no `@' at all, there
# is no need to browse any of the substitutions).
# These are the two extra sed commands mentioned above.
(echo ':t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
else
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
fi
ac_sed_frag=`expr $ac_sed_frag + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_lines`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
fi # test -n "$CONFIG_FILES"
 
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case $ac_file in
- | *:- | *:-:* ) # input from stdin
cat >$tmp/stdin
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
* ) ac_file_in=$ac_file.in ;;
esac
 
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_file" : 'X\(//\)[^/]' \| \
X"$ac_file" : 'X\(//\)$' \| \
X"$ac_file" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$ac_file" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
{ if $as_mkdir_p; then
mkdir -p "$ac_dir"
else
as_dir="$ac_dir"
as_dirs=
while test ! -d "$as_dir"; do
as_dirs="$as_dir $as_dirs"
as_dir=`(dirname "$as_dir") 2>/dev/null ||
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$as_dir" : 'X\(//\)[^/]' \| \
X"$as_dir" : 'X\(//\)$' \| \
X"$as_dir" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$as_dir" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
done
test ! -n "$as_dirs" || mkdir $as_dirs
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
{ (exit 1); exit 1; }; }; }
 
ac_builddir=.
 
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
 
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
 
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
 
 
 
if test x"$ac_file" != x-; then
{ echo "$as_me:$LINENO: creating $ac_file" >&5
echo "$as_me: creating $ac_file" >&6;}
rm -f "$ac_file"
fi
# Let's still pretend it is `configure' which instantiates (i.e., don't
# use $as_me), people would be surprised to read:
# /* config.h. Generated by config.status. */
if test x"$ac_file" = x-; then
configure_input=
else
configure_input="$ac_file. "
fi
configure_input=$configure_input"Generated from `echo $ac_file_in |
sed 's,.*/,,'` by configure."
 
# First look for the input files in the build tree, otherwise in the
# src tree.
ac_file_inputs=`IFS=:
for f in $ac_file_in; do
case $f in
-) echo $tmp/stdin ;;
[\\/$]*)
# Absolute (can't be DOS-style, as IFS=:)
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
echo "$f";;
*) # Relative
if test -f "$f"; then
# Build tree
echo "$f"
elif test -f "$srcdir/$f"; then
# Source tree
echo "$srcdir/$f"
else
# /dev/null tree
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
echo "$as_me: error: cannot find input file: $f" >&2;}
{ (exit 1); exit 1; }; }
fi;;
esac
done` || { (exit 1); exit 1; }
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF
sed "$ac_vpsub
$extrasub
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s,@configure_input@,$configure_input,;t t
s,@srcdir@,$ac_srcdir,;t t
s,@abs_srcdir@,$ac_abs_srcdir,;t t
s,@top_srcdir@,$ac_top_srcdir,;t t
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
s,@builddir@,$ac_builddir,;t t
s,@abs_builddir@,$ac_abs_builddir,;t t
s,@top_builddir@,$ac_top_builddir,;t t
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
rm -f $tmp/stdin
if test x"$ac_file" != x-; then
mv $tmp/out $ac_file
else
cat $tmp/out
rm -f $tmp/out
fi
 
done
_ACEOF
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
{ (exit 0); exit 0; }
_ACEOF
chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save
 
 
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
# Unfortunately, on DOS this fails, as config.log is still kept open
# by configure, so config.status won't be able to write to it; its
# output is simply discarded. So we exec the FD to /dev/null,
# effectively closing config.log, so it can be properly (re)opened and
# appended to by config.status. When coming back to configure, we
# need to make the FD available again.
if test "$no_create" != yes; then
ac_cs_success=:
ac_config_status_args=
test "$silent" = yes &&
ac_config_status_args="$ac_config_status_args --quiet"
exec 5>/dev/null
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
exec 5>>config.log
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
# would make configure fail if this is the last instruction.
$ac_cs_success || { (exit 1); exit 1; }
fi
 
configure Property changes : Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Index: Makefile.in =================================================================== --- Makefile.in (nonexistent) +++ Makefile.in (revision 840) @@ -0,0 +1,32 @@ +VPATH = @srcdir@ +srcdir = @srcdir@ + +EXECUTABLES = dollar hwwatchbus.bak pxdb reg reg-pa64 \ + so-thresh genso-thresh sized-enum + +MISCELLANEOUS = so-thresh.c so-thresh.lopt so-thresh.make.out \ + lib*-so-thresh.* + +all: + @echo "Nothing to be done for all..." + +info: +install-info: +dvi: +install: +uninstall: force +installcheck: +check: + +clean mostlyclean: + -rm -f *~ *.o *.ci + -rm -f core $(EXECUTABLES) + -rm -f $(MISCELLANEOUS) + +distclean maintainer-clean realclean: clean + -rm -f Makefile config.status config.log + -rm -f *-init.exp + -rm -fr *.log summary detail *.plog *.sum *.psum site.* + +Makefile : $(srcdir)/Makefile.in $(srcdir)/configure.in + $(SHELL) ./config.status --recheck Index: reg-pa64.exp =================================================================== --- reg-pa64.exp (nonexistent) +++ reg-pa64.exp (revision 840) @@ -0,0 +1,189 @@ +# Tests of wide register displays for GDB on HPPA 2.0 machines +# Copyright 1994, 1995, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# use this to debug: +#log_user 1 + +if $tracelevel { + strace $tracelevel +} + +if { [skip_hp_tests] } { continue } + +if ![istarget "hppa*-*-*"] { + verbose "Wide register test ignored for non-hppa targets." + return 0 +} + +if ![istarget "hppa64-hp-hpux*"] { + verbose "reg-pa64.exp is only for PA2.0W (aka PA64)." + return 0 +} + +set testfile "reg-pa64" +set srcfile ${testfile}.s +set binfile ${objdir}/${subdir}/${testfile} + +# To build a pa 2.0 executable +# +# as +DA2.0W -o reg-pa64 reg-pa64.s +# or +# cc +DA2.0W -g -o reg-pa64 reg-pa64.s +# +# Don't reject if there are warnings, as we expect this warning: +# +# (Warning) At least one PA 2.0 object file (pa2.0_test2.o) was detected. +# The linked output may not run on a PA 1.x system. +# + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested reg-pa64.exp + return -1 +} + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# test machine--there's no 2.0n architecture, so we have +# to try to run the app. +# +gdb_test "break main" "Breakpoint.*" "initial set-up" + +send_gdb "run\n" +gdb_expect { + -re ".*Executable file incompatible with hardware.*$gdb_prompt $" { + # Not hppa2.0 machine + # + return 0 + } + -re "Cannot exec.*$gdb_prompt $" { + # Not hppa2.0 machine + # + return 0 + } + -re ".*Starting program:.*$gdb_prompt $" { + pass "Ready to start test" + } + timeout { + fail "initial set-up, part 2 (timeout)" + return 0 + } +} + +# Let the program set known values. This secretly deletes +# the breakpoint at main and re-runs to mainend. +# +runto mainend + +# Look for known values +# +gdb_test "info reg r1" "r1 1" +gdb_test "info reg r4" "r4 2" +gdb_test "info reg r5" "r5 4" +gdb_test "info reg r6" "r6 8" +gdb_test "info reg r7" "r7 10" +gdb_test "info reg r8" "r8 20" +gdb_test "info reg r9" "r9 40" +gdb_test "info reg r10" "r10 80" +gdb_test "info reg r11" "r11 100" +gdb_test "info reg r12" "r12 200" +gdb_test "info reg r13" "r13 400" +gdb_test "info reg r14" "r14 800" +gdb_test "info reg r15" "r15 1000" +gdb_test "info reg r16" "r16 2000" + +# Two odd variants that GDB supports are: +# "1" means "r1", and +# "$1" means "r1" +# +gdb_test "info reg 1 4" "r1 1.*r4 2" +gdb_test "info reg \$1" "r1 1" + +# Verify that GDB responds gracefully to a register ID number that +# is out of range. +# +gdb_test "info reg 999" "999: invalid register" + +# Make sure the floating point status and error registers +# don't show up as floating point numbers! +# +gdb_test "info reg fpsr" ".*fpsr 0.*" "fpsr" +gdb_test "info reg fpe1" ".*fpe1 .*" "fpe1" +gdb_test "info reg fpe2" ".*fpe2 .*" "fpe2" +gdb_test "info reg fpe3" ".*fpe3 .*" "fpe3" +#DTS CLLbs16708 +#info reg should recognize fpe4..fpe7. +setup_xfail hppa64-hp-hpux* CLLbs16708 +gdb_test "info reg fpe4" ".*fpe4 .*" "fpe4" +setup_xfail hppa64-hp-hpux* CLLbs16708 +gdb_test "info reg fpe5" ".*fpe5 .*" "fpe5" +setup_xfail hppa64-hp-hpux* CLLbs16708 +gdb_test "info reg fpe6" ".*fpe6 .*" "fpe6" +setup_xfail hppa64-hp-hpux* CLLbs16708 +gdb_test "info reg fpe7" ".*fpe7 .*" "fpe7" + +gdb_test "info reg fr4" ".*fr4.*(double precision).* 1.*" +gdb_test "info reg fr5" ".*fr5.*(double precision).* 2.*" +gdb_test "info reg fr6" ".*fr6.*(double precision).* 2.*" +gdb_test "info reg fr7" ".*fr7.*(double precision).* 4.*" +gdb_test "info reg fr8" ".*fr8.*(double precision).* 8.*" +gdb_test "info reg fr9" ".*fr9.*(double precision).* 32.*" +gdb_test "info reg fr10" ".*fr10.*(double precision).* 256.*" + +gdb_test "info reg r19" "r19 deadbeefbadcadee" + +# Need to add test of use of $ +# +# Q: How do you say a literal "$" in expect? +# A: You say "\$". A literal "\" is "\\". +# +# Please note that this test will fail as long as we are running +# in 32-bit mode: it will produce "$1 = 0xbadcadee". To fix it +# would require building a real 64-bit gdb (expression evaluation, +# in particular). +# +send_gdb "p/x \$r19\n" +gdb_expect { + -re ".*= 0xdeadbeefbadcadee.*$gdb_prompt $" { + pass "64-bit works" + } + -re ".*= 0xbadcadee.*$gdb_prompt $" { + pass "32-bit extract when using PRINT; expected but not good" + } + -re ".*$gdb_prompt $" { + fail "didn't print any part of right value" + } + timeout { + fail "timeout on print" + } +} + +# Need to add tests of setting wide regs too. E.g. +# +# set $r4 = 0x1234567890123456 +# p/x $r4 +# + +# done +# +gdb_exit + +return 0 Index: so-thresh.mk =================================================================== --- so-thresh.mk (nonexistent) +++ so-thresh.mk (revision 840) @@ -0,0 +1,74 @@ +# Make file for so-thresh test + +OBJDIR=. +SRCDIR=. +CFLAGS = +DA1.1 -g +CC=cc + +# This is how to build this generator. +genso-thresh.o: ${SRCDIR}/genso-thresh.c + $(CC) $(CFLAGS) -o genso-thresh.o -c ${SRCDIR}/genso-thresh.c +genso-thresh: genso-thresh.o + $(CC) $(CFLAGS) -o genso-thresh genso-thresh.o + +# This is how to run this generator. +# This target should be made before the 'all' target, +# to ensure that the shlib sources are all available. +require_shlibs: genso-thresh + if ! [ -a lib00-so-thresh.c ] ; then \ + genso-thresh ; \ + fi + if ! [ -a lib01-so-thresh.c ] ; then \ + genso-thresh ; \ + fi + if ! [ -a lib02-so-thresh.c ] ; then \ + genso-thresh ; \ + fi + +# This is how to build all the shlibs. +# Be sure to first make the require_shlibs target! +lib00-so-thresh.o: lib00-so-thresh.c + $(CC) $(CFLAGS) +Z -o lib00-so-thresh.o -c lib00-so-thresh.c +lib00-so-thresh.sl: lib00-so-thresh.o + $(LD) $(LDFLAGS) -b -o lib00-so-thresh.sl lib00-so-thresh.o +lib01-so-thresh.o: lib01-so-thresh.c + $(CC) $(CFLAGS) +Z -o lib01-so-thresh.o -c lib01-so-thresh.c +lib01-so-thresh.sl: lib01-so-thresh.o + $(LD) $(LDFLAGS) -b -o lib01-so-thresh.sl lib01-so-thresh.o +lib02-so-thresh.o: lib02-so-thresh.c + $(CC) $(CFLAGS) +Z -o lib02-so-thresh.o -c lib02-so-thresh.c +lib02-so-thresh.sl: lib02-so-thresh.o + $(LD) $(LDFLAGS) -b -o lib02-so-thresh.sl lib02-so-thresh.o + + + + +# For convenience, here's names for all pieces of all shlibs. +SHLIB_SOURCES = \ + lib00-so-thresh.c \ + lib01-so-thresh.c \ + lib02-so-thresh.c + +SHLIB_OBJECTS = $(SHLIB_SOURCES:.c=.o) +SHLIBS = $(SHLIB_SOURCES:.c=.sl) +SHLIB_NAMES = $(SHLIB_SOURCES:.c=) +EXECUTABLES = $(SHLIBS) genso-thresh so-thresh +OBJECT_FILES = $(SHLIB_OBJECTS) genso-thresh.o so-thresh.o + +shlib_objects: $(SHLIB_OBJECTS) +shlibs: $(SHLIBS) + +# This is how to build the debuggable testcase that uses the shlibs. +so-thresh.o: so-thresh.c + $(CC) $(CFLAGS) -o so-thresh.o -c so-thresh.c +so-thresh: shlibs so-thresh.o + $(LD) $(LDFLAGS) -o so-thresh -lc -L${OBJDIR} -c so-thresh.lopt /opt/langtools/lib/end.o /lib/crt0.o so-thresh.o + +# Yeah, but you should first make the require_shlibs target! +all: so-thresh genso-thresh + +# To remove everything built via this makefile... +clean: + rm -f lib0*-so-thresh.* + rm -f *.o genso-thresh so-thresh.lopt so-thresh.c + rm -f so-thresh
so-thresh.mk Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: so-thresh.sh =================================================================== --- so-thresh.sh (nonexistent) +++ so-thresh.sh (revision 840) @@ -0,0 +1,34 @@ +#!/bin/ksh + +# so-thresh.sh +# +# This script is a "wrapper" to use the so-thresh.mk +# Makefile. See the comments in so-thresh.exp +# regarding why this script exists. + +#set -o xtrace +#set -o verbose + +if [ "$srcdir" = "${srcdir#/}" ] +then + srcdir="$PWD/$srcdir" +fi + +if [ "$objdir" = "${objdir#/}" ] +then + objdir="$PWD/$objdir" +fi + +subdir="$1" + +HERE=$PWD +cd $subdir + +MAKEFLAGS= +make -f ${srcdir}/${subdir}/so-thresh.mk clean require_shlibs all SRCDIR=${srcdir}/${subdir} OBJDIR=${objdir}/${subdir} > ${objdir}/${subdir}/so-thresh.make.out 2>&1 +STATUS=$? + +cd $HERE +echo "return STATUS is $STATUS" + +exit $STATUS
so-thresh.sh Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: reg-pa64.s =================================================================== --- reg-pa64.s (nonexistent) +++ reg-pa64.s (revision 840) @@ -0,0 +1,104 @@ +; assemble as "as -o reg-pa64 reg-pa64.s" +; or +; cc -g -o +DA2.0W +; +; PA-RISC 2.0 register contents test. +; + .level 2.0W + + .code + .export main,ENTRY + .export mainend,CODE + .export lab1,CODE + .space $TEXT$ + .subspa $CODE$ +one + .align 8 + .stringz "?\xF0\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00" + +main + .proc + .callinfo NO_CALLS,FRAME=0 + .entry + + ;; Test we have right register numbers + ;; + ADD %r0,%r0,%r1 ; 0 + LDI 1,%r1 ; 1 + ;; + ;; Don't put anything into r2 or r3--they are special registers. + ;; + ADD %r1,%r1,%r4 ; 2 + ADD %r4,%r4,%r5 ; 4 + ADD %r5,%r5,%r6 ; 8 + ADD %r6,%r6,%r7 ; 16 + ADD %r7,%r7,%r8 ; 32 + ADD %r8,%r8,%r9 ; 64 + ADD %r9,%r9,%r10 ; 128 + ADD %r10,%r10,%r11 ; 256 + ADD %r11,%r11,%r12 ; 512 + ADD %r12,%r12,%r13 ; 1024 + ADD %r13,%r13,%r14 ; 2048 + ADD %r14,%r14,%r15 ; 4096 + ADD %r15,%r15,%r16 ; 9192 + + ;; Test high bits, to be sure we show them. + ;; + LDI 0xde,%r19 ; "de" + DEPD,Z %r19,55,56,%r19 ; "de00" + LDI 0xad,%r18 ; "ad" + ADD %r18,%r19,%r19 ; "dead" + DEPD,Z %r19,55,56,%r19 ; "dead00" + LDI 0xbe,%r18 ; "be" + ADD %r18,%r19,%r19 ; "deadbe" + DEPD,Z %r19,55,56,%r19 ; "deadbe00" + LDI 0xef,%r18 ; "ef" + ADD %r18,%r19,%r19 ; "deadbeef" + ; + DEPD,Z %r19,55,56,%r19 ; "deadbeef00" + LDI 0xba,%r18 ; "ba" + ADD %r18,%r19,%r19 ; "deadbeefba" + DEPD,Z %r19,55,56,%r19 ; "deadbeefba00" + LDI 0xdc,%r18 ; "dc" + ADD %r18,%r19,%r19 ; "deadbeefbadc" + DEPD,Z %r19,55,56,%r19 ; "deadbeefbadc00" + LDI 0xad,%r18 ; "ad" + ADD %r18,%r19,%r19 ; "deadbeefbadcad" + DEPD,Z %r19,55,56,%r19 ; "deadbeefbadcad00" + LDI 0xee,%r18 ; "ee" + ADD %r18,%r19,%r19 ; "deadbeefbadcadee" + +lab1 ;; Test floating point registers + ;; + ;; LDIL LR'one,%r22 ; + ;; FLDD RR'one(%r22),%fr4 ; 1.0 + ;; FLDD RR'one+8(%r22),%fr5 ; 2.0 + ;; FLDD RR'one+8(%r22),%fr6 ; 2.0 + B,L here,%r2 + NOP +here DEPDI 0x0,63,2,%r2 + LDO one-here(%r2),%r2 + FLDD 0(%r2),%fr4 + FLDD 8(%r2),%fr5 + FLDD 8(%r2),%fr6 + + FMPY,DBL %fr5,%fr6,%fr7 ; 4.0 + FMPY,DBL %fr6,%fr7,%fr8 ; 8.0 + FMPY,DBL %fr7,%fr8,%fr9 ; 32.0 + FMPY,DBL %fr8,%fr9,%fr10 ; 256.0 + + ;; The NOP prevents anything from end.o or crt0.o from + ;; being appended immediately after "mainend". If that + ;; happens, then we may have other labels that have the + ;; same address as "mainend", and thus the debugger + ;; may symbolize this PC to something other than "mainend". +mainend + NOP + .exit + .procend + + .space $TEXT$ + .subspa $CODE$ + .subspa $LIT$ ;; ,QUAD=0,ALIGN=8,ACCESS=0x2c,SORT=16 + .end +
reg-pa64.s Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: genso-thresh.c =================================================================== --- genso-thresh.c (nonexistent) +++ genso-thresh.c (revision 840) @@ -0,0 +1,229 @@ +/* + * Program to generate the so-thresh testcase, + * including associated linked-against shared libraries. + * Build as: + * + * cc -g -o genso-thresh genso-thresh.c + * + * Invoke as: + * + * genso-thresh + * + * It will put all the code in the current directory ("."). + * + * A makefile can also be generated if the -makemake option is used. + * To use the makefile: + * + * make -f so-thresh.mk all + * + * The name of the application is + * + * so-thresh + * + * (Revised from a program by John Bishop. --rehrauer) + */ + +#include +#include +#include + +int main (argc, argv) +int argc; +char **argv; +{ +#define NUMBER_OF_INT_VARS 1500 +#define NUMBER_OF_LIBS 3 + int lib_num = NUMBER_OF_LIBS; + int i; + int i2; + FILE *main_file; + FILE *lib_file; + FILE *make_file; + FILE *link_file; + + char testcase_name [1000]; + char linkfile_name [1000]; + char makefile_name [1000]; + char mainfile_name [1000]; + + char file_name[100]; + /* + * 0123456789 <-- length of field + * "./fil0000000002.c"; <-- typical filename + * 12345678901234567890 <-- length of string + * 10 20 + * ^where null goes + */ + char file_name_core[100]; + + /* Verify input. + */ + if ((argc < 1) || (argc > 2) || (argv == NULL) || + ((argc == 2) && (strcmp (argv[1], "-makemake") != 0))) + { + printf ("** Syntax: %s [-makemake]\n", argv[0]); + return; + } + + if (strncmp (argv[0], "gen", 3) != 0) + { + printf ("** This tool expected to be named \"gen\"\n"); + return; + } + strcpy (testcase_name, argv[0]+3); + + strcpy (linkfile_name, testcase_name); + strcat (linkfile_name, ".lopt"); + link_file = fopen (linkfile_name, "w"); + fprintf (link_file, "# Linker options for %s test\n", testcase_name); + + /* Generate the makefile, if requested. + */ + if (argc == 2) + { + strcpy (makefile_name, testcase_name); + strcat (makefile_name, ".mk.new"); + make_file = fopen (makefile_name, "w"); + printf (" Note: New makefile (%s) generated.\n", makefile_name); + printf (" May want to update existing makefile, if any.\n"); + fprintf (make_file, "# Generated automatically by %s\n", argv[0]); + fprintf (make_file, "# Make file for %s test\n", testcase_name); + fprintf (make_file, "\n"); + fprintf (make_file, "CFLAGS = +DA1.1 -g\n"); + fprintf (make_file, "\n"); + fprintf (make_file, "# This is how to build this generator.\n"); + fprintf (make_file, "%s.o: %s.c\n", argv[0], argv[0]); + fprintf (make_file, "\t$(CC) $(CFLAGS) -o %s.o -c %s.c\n", argv[0], argv[0]); + fprintf (make_file, "%s: %s.o\n", argv[0], argv[0]); + fprintf (make_file, "\t$(CC) $(CFLAGS) -o %s %s.o\n", argv[0], argv[0]); + fprintf (make_file, "\n"); + fprintf (make_file, "# This is how to run this generator.\n"); + fprintf (make_file, "# This target should be made before the 'all' target,\n"); + fprintf (make_file, "# to ensure that the shlib sources are all available.\n"); + fprintf (make_file, "require_shlibs: %s\n", argv[0]); + for (i=0; i < lib_num; i++) + { + fprintf (make_file, "\tif ! [ -a lib%2.2d_%s.c ] ; then \\\n", i, testcase_name); + fprintf (make_file, "\t %s ; \\\n", argv[0]); + fprintf (make_file, "\tfi\n"); + } + fprintf (make_file, "\n"); + fprintf (make_file, "# This is how to build all the shlibs.\n"); + fprintf (make_file, "# Be sure to first make the require_shlibs target!\n"); + for (i=0; i < lib_num; i++) + { + fprintf (make_file, "lib%2.2d_%s.o: lib%2.2d_%s.c\n", i, testcase_name, i, testcase_name); + fprintf (make_file, "\t$(CC) $(CFLAGS) +Z -o lib%2.2d_%s.o -c lib%2.2d_%s.c\n", i, testcase_name, i, testcase_name); + fprintf (make_file, "lib%2.2d-%s.sl: lib%2.2d-%s.o\n", i, testcase_name, i, testcase_name); + fprintf (make_file, "\t$(LD) $(LDFLAGS) -b -o lib%2.2d-%s.sl lib%2.2d-%s.o\n", i, testcase_name, i, testcase_name); + } + fprintf (make_file, "\n"); +fprintf (make_file, "# For convenience, here's names for all pieces of all shlibs.\n"); + fprintf (make_file, "SHLIB_SOURCES = \\\n"); + for (i=0; i < lib_num-1; i++) + fprintf (make_file, "\tlib%2.2d-%s.c \\\n", i, testcase_name); + fprintf (make_file, "\tlib%2.2d-%s.c\n", lib_num-1, testcase_name); + fprintf (make_file, "SHLIB_OBJECTS = $(SHLIB_SOURCES:.c=.o)\n"); + fprintf (make_file, "SHLIBS = $(SHLIB_SOURCES:.c=.sl)\n"); + fprintf (make_file, "SHLIB_NAMES = $(SHLIB_SOURCES:.c=)\n"); + fprintf (make_file, "EXECUTABLES = $(SHLIBS) %s %s\n", argv[0], testcase_name); + fprintf (make_file, "OBJECT_FILES = $(SHLIB_OBJECTS) %s.o %s.o\n", argv[0], testcase_name); + fprintf (make_file, "\n"); + fprintf (make_file, "shlib_objects: $(SHLIB_OBJECTS)\n"); + fprintf (make_file, "shlibs: $(SHLIBS)\n"); + fprintf (make_file, "\n"); + fprintf (make_file, "# This is how to build the debuggable testcase that uses the shlibs.\n"); + fprintf (make_file, "%s.o: %s.c\n", testcase_name, testcase_name); + fprintf (make_file, "\t$(CC) $(CFLAGS) -o %s.o -c %s.c\n", testcase_name, testcase_name); + fprintf (make_file, "%s: shlibs %s.o\n", testcase_name, testcase_name); + fprintf (make_file, "\t$(LD) $(LDFLAGS) -o %s -lc -L. ", testcase_name); + fprintf (make_file, "-c %s /opt/langtools/lib/end.o /lib/crt0.o %s.o\n", linkfile_name, testcase_name); + fprintf (make_file, "\n"); + fprintf (make_file, "# Yeah, but you should first make the require_shlibs target!\n"); + fprintf (make_file, "all: %s %s\n", testcase_name, argv[0]); + fprintf (make_file, "\n"); + fprintf (make_file, "# To remove everything built via this makefile...\n"); + fprintf (make_file, "clean:\n"); + /* Do this carefully, to avoid hitting silly HP-UX ARG_MAX limits... */ + fprintf (make_file, "\trm -f lib0*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib1*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib2*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib3*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib4*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib5*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib6*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib7*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib8*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f lib9*-%s.*\n", testcase_name); + fprintf (make_file, "\trm -f %s %s %s %s.c\n", argv[0], testcase_name, linkfile_name, testcase_name); + fprintf (make_file, "\n"); + fclose (make_file); + } + + /* Generate the code for the libraries. + */ + for (i=0; i < lib_num; i++) { + + /* Generate the names for the library. + */ + sprintf (file_name, "lib%2.2d-%s.c", i, testcase_name); + sprintf (file_name_core, "lib%2.2d-%s", i, testcase_name); + + /* Generate the source code. + */ + lib_file = fopen (file_name, "w"); + fprintf (lib_file, "/* Shared library file number %d */\n", i); + fprintf (lib_file, "#include \n\n"); + fprintf (lib_file, "/* The following variables largely exist to bloat this library's debug info. */\n"); + fprintf (lib_file, "static char c_static_buf_%d [100];\n", i); + for (i2=0; i2\n\n"); + + for (i = 0; i < lib_num; i++) { + fprintf (main_file, "extern int r_%d();\n", i); + } + + fprintf (main_file, "\n"); + fprintf (main_file, "int main()\n"); + fprintf (main_file, "{\n"); + fprintf (main_file, " int accum;\n"); + fprintf (main_file, " int lib_num = %d;\n", lib_num); + + for (i = 0; i < lib_num; i++) { + fprintf (main_file, " accum += r_%d();\n", i); + } + + fprintf (main_file, " printf( \"Final value: %%d, should be %%d\\n\", accum, lib_num );\n\n"); + fprintf (main_file, " return 0;\n"); + fprintf (main_file, "}\n\n"); + fprintf (main_file, "/* end of generated file */\n"); + fclose (main_file); + + /* Finish up the link file and the build file + */ + fclose (link_file); +} + +/* End of file */
genso-thresh.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: pxdb.exp =================================================================== --- pxdb.exp (nonexistent) +++ pxdb.exp (revision 840) @@ -0,0 +1,128 @@ +# Copyright (C) 1998, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + + +# This file is part of the gdb testsuite + + +# pxdb.exp Test that gdb calls pxdb on an application +# built without it. +# +if $tracelevel then { + strace $tracelevel +} + +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } then { continue } + +set testfile pxdb +set srcfile ${testfile}.c +set objfile ${objdir}/${subdir}/${testfile}.o +set binfile ${objdir}/${subdir}/${testfile} + +if [get_compiler_info ${binfile} "c++"] { + return -1; +} + +if { $gcc_compiled } then { continue } + +# To build a non-pxdb-ed file, use +# +# +# export LD_PXDB /dev/null +# ld -o hello_no_pxdb hello.o /opt/langtools/lib/end.o /usr/ccs/lib/crt0.o -lc +# + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug}] != "" } { + untested pxdb.exp + return -1 +} + +# +# use this to debug: +#log_user 1 + + +# Following should get the error message: +# +# ld: (Warning) Can't exec pxdb using path: /dev/null +# +#execute_anywhere "ksh -c \"export LD_PXDB=/dev/null\"" + +if [istarget "hppa64-*-*"] { +set cmdline "ksh -c \"LD_PXDB=/dev/null ld -o ${binfile} ${objfile} /opt/langtools/lib/pa20_64/crt0.o /opt/langtools/lib/pa20_64/end.o -lc\"" +} else { +set cmdline "ksh -c \"LD_PXDB=/dev/null ld -o ${binfile} ${objfile} /usr/ccs/lib/crt0.o /opt/langtools/lib/end.o -lc\"" +} + +remote_exec build "rm ${binfile}" +remote_exec build $cmdline + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir + +# We expect to see this: +# +# "warning: File not processed by pxdb--about to process now. +# " +# ". +# "Procedures: 7 +# "Files: 2 +# "Reading symbols from ~/c_code.dir/hello_no_pxdb...done. +# "(gdb) +# +send_gdb "file ${binfile}\n" +gdb_expect { + + -re ".*warning: File not processed by pxdb.*Procedures: \[0-9\]+.*$gdb_prompt $"\ + { pass "PXDB call" } + + -re "$gdb_prompt $" { + if [istarget hppa*-*-hpux*] { + pass "Didn't call pxdb" + } else { + fail "Didn't call pxdb" + } + } + + -re ".*$gdb_prompt $" { fail "Some other message" } + + timeout { fail "call pxdb (timeout)" } +} + +# Make sure the new data makes sense +# +if { ![runto callee] } then { return } + +send_gdb "print x\n" +gdb_expect { + -re ".*= 1.*$gdb_prompt $" { pass "Good data after pxdb call" } + -re ".*$gdb_prompt $" { fail "No data after pxdb call" } + timeout { fail "(timeout)" } +} + +gdb_exit +return 0 + + + + + Index: dollar.c =================================================================== --- dollar.c (nonexistent) +++ dollar.c (revision 840) @@ -0,0 +1,10 @@ +#ifdef PROTOTYPES +int main (int argc, char **argv) +#else +main (argc, argv, envp) + int argc; + char **argv; +#endif +{ + return 0; +}
dollar.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: callfwmall.c =================================================================== --- callfwmall.c (nonexistent) +++ callfwmall.c (revision 840) @@ -0,0 +1,362 @@ +/* Support program for testing gdb's ability to call functions + in an inferior which doesn't itself call malloc, pass appropriate + arguments to those functions, and get the returned result. */ + +#ifdef NO_PROTOTYPES +#define PARAMS(paramlist) () +#else +#define PARAMS(paramlist) paramlist +#endif + +# include + +char char_val1 = 'a'; +char char_val2 = 'b'; + +short short_val1 = 10; +short short_val2 = -23; + +int int_val1 = 87; +int int_val2 = -26; + +long long_val1 = 789; +long long_val2 = -321; + +float float_val1 = 3.14159; +float float_val2 = -2.3765; + +double double_val1 = 45.654; +double double_val2 = -67.66; + +#define DELTA (0.001) + +char *string_val1 = (char *)"string 1"; +char *string_val2 = (char *)"string 2"; + +char char_array_val1[] = "carray 1"; +char char_array_val2[] = "carray 2"; + +struct struct1 { + char c; + short s; + int i; + long l; + float f; + double d; + char a[4]; +} struct_val1 = { 'x', 87, 76, 51, 2.1234, 9.876, "foo" }; + +/* Some functions that can be passed as arguments to other test + functions, or called directly. */ +#ifdef PROTOTYPES +int add (int a, int b) +#else +int add (a, b) int a, b; +#endif +{ + return (a + b); +} + +#ifdef PROTOTYPES +int doubleit (int a) +#else +int doubleit (a) +int a; +#endif +{ + return (a + a); +} + +int (*func_val1) PARAMS((int,int)) = add; +int (*func_val2) PARAMS((int)) = doubleit; + +/* An enumeration and functions that test for specific values. */ + +enum enumtype { enumval1, enumval2, enumval3 }; +enum enumtype enum_val1 = enumval1; +enum enumtype enum_val2 = enumval2; +enum enumtype enum_val3 = enumval3; + +#ifdef PROTOTYPES +int t_enum_value1 (enum enumtype enum_arg) +#else +t_enum_value1 (enum_arg) +enum enumtype enum_arg; +#endif +{ + return (enum_arg == enum_val1); +} + +#ifdef PROTOTYPES +int t_enum_value2 (enum enumtype enum_arg) +#else +t_enum_value2 (enum_arg) +enum enumtype enum_arg; +#endif +{ + return (enum_arg == enum_val2); +} + +#ifdef PROTOTYPES +int t_enum_value3 (enum enumtype enum_arg) +#else +t_enum_value3 (enum_arg) +enum enumtype enum_arg; +#endif +{ + return (enum_arg == enum_val3); +} + +/* A function that takes a vector of integers (along with an explicit + count) and returns their sum. */ + +#ifdef PROTOTYPES +int sum_args (int argc, int argv[]) +#else +int sum_args (argc, argv) +int argc; +int argv[]; +#endif +{ + int sumval = 0; + int idx; + + for (idx = 0; idx < argc; idx++) + { + sumval += argv[idx]; + } + return (sumval); +} + +/* Test that we can call functions that take structs and return + members from that struct */ + +#ifdef PROTOTYPES +char t_structs_c (struct struct1 tstruct) { return (tstruct.c); } +short t_structs_s (struct struct1 tstruct) { return (tstruct.s); } +int t_structs_i (struct struct1 tstruct) { return (tstruct.i); } +long t_structs_l (struct struct1 tstruct) { return (tstruct.l); } +float t_structs_f (struct struct1 tstruct) { return (tstruct.f); } +double t_structs_d (struct struct1 tstruct) { return (tstruct.d); } +char *t_structs_a (struct struct1 tstruct) +{ + static char buf[8]; + strcpy (buf, tstruct.a); + return buf; +} +#else +char t_structs_c (tstruct) struct struct1 tstruct; { return (tstruct.c); } +short t_structs_s (tstruct) struct struct1 tstruct; { return (tstruct.s); } +int t_structs_i (tstruct) struct struct1 tstruct; { return (tstruct.i); } +long t_structs_l (tstruct) struct struct1 tstruct; { return (tstruct.l); } +float t_structs_f (tstruct) struct struct1 tstruct; { return (tstruct.f); } +double t_structs_d (tstruct) struct struct1 tstruct; { return (tstruct.d); } +char *t_structs_a (tstruct) struct struct1 tstruct; +{ + static char buf[8]; + strcpy (buf, tstruct.a); + return buf; +} +#endif + +/* Test that calling functions works if there are a lot of arguments. */ +#ifdef PROTOTYPES +int sum10 (int i0, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9) +#else +int +sum10 (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9) + int i0, i1, i2, i3, i4, i5, i6, i7, i8, i9; +#endif +{ + return i0 + i1 + i2 + i3 + i4 + i5 + i6 + i7 + i8 + i9; +} + +/* Gotta have a main to be able to generate a linked, runnable + executable, and also provide a useful place to set a breakpoint. */ + +#ifdef PROTOTYPES +int main() +#else +main () +#endif +{ +#ifdef usestubs + set_debug_traps(); + breakpoint(); +#endif + t_structs_c(struct_val1); + return 0; + +} + +/* Functions that expect specific values to be passed and return + either 0 or 1, depending upon whether the values were + passed incorrectly or correctly, respectively. */ + +#ifdef PROTOTYPES +int t_char_values (char char_arg1, char char_arg2) +#else +int t_char_values (char_arg1, char_arg2) +char char_arg1, char_arg2; +#endif +{ + return ((char_arg1 == char_val1) && (char_arg2 == char_val2)); +} + +int +#ifdef PROTOTYPES +t_small_values (char arg1, short arg2, int arg3, char arg4, short arg5, + char arg6, short arg7, int arg8, short arg9, short arg10) +#else +t_small_values (arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) + char arg1; + short arg2; + int arg3; + char arg4; + short arg5; + char arg6; + short arg7; + int arg8; + short arg9; + short arg10; +#endif +{ + return arg1 + arg2 + arg3 + arg4 + arg5 + arg6 + arg7 + arg8 + arg9 + arg10; +} + +#ifdef PROTOTYPES +int t_short_values (short short_arg1, short short_arg2) +#else +int t_short_values (short_arg1, short_arg2) +short short_arg1, short_arg2; +#endif +{ + return ((short_arg1 == short_val1) && (short_arg2 == short_val2)); +} + +#ifdef PROTOTYPES +int t_int_values (int int_arg1, int int_arg2) +#else +int t_int_values (int_arg1, int_arg2) +int int_arg1, int_arg2; +#endif +{ + return ((int_arg1 == int_val1) && (int_arg2 == int_val2)); +} + +#ifdef PROTOTYPES +int t_long_values (long long_arg1, long long_arg2) +#else +int t_long_values (long_arg1, long_arg2) +long long_arg1, long_arg2; +#endif +{ + return ((long_arg1 == long_val1) && (long_arg2 == long_val2)); +} + +/* NOTE: THIS FUNCTION MUST NOT BE PROTOTYPED!!!!! + There must be one version of "t_float_values" (this one) + that is not prototyped, and one (if supported) that is (following). + That way GDB can be tested against both cases. */ + +int t_float_values (float_arg1, float_arg2) +float float_arg1, float_arg2; +{ + return ((float_arg1 - float_val1) < DELTA + && (float_arg1 - float_val1) > -DELTA + && (float_arg2 - float_val2) < DELTA + && (float_arg2 - float_val2) > -DELTA); +} + +int +#ifdef NO_PROTOTYPES +/* In this case we are just duplicating t_float_values, but that is the + easiest way to deal with either ANSI or non-ANSI. */ +t_float_values2 (float_arg1, float_arg2) + float float_arg1, float_arg2; +#else +t_float_values2 (float float_arg1, float float_arg2) +#endif +{ + return ((float_arg1 - float_val1) < DELTA + && (float_arg1 - float_val1) > -DELTA + && (float_arg2 - float_val2) < DELTA + && (float_arg2 - float_val2) > -DELTA); +} + +#ifdef PROTOTYPES +int t_double_values (double double_arg1, double double_arg2) +#else +int t_double_values (double_arg1, double_arg2) +double double_arg1, double_arg2; +#endif +{ + return ((double_arg1 - double_val1) < DELTA + && (double_arg1 - double_val1) > -DELTA + && (double_arg2 - double_val2) < DELTA + && (double_arg2 - double_val2) > -DELTA); +} + +#ifdef PROTOTYPES +int t_string_values (char *string_arg1, char *string_arg2) +#else +int t_string_values (string_arg1, string_arg2) +char *string_arg1, *string_arg2; +#endif +{ + return (!strcmp (string_arg1, string_val1) && + !strcmp (string_arg2, string_val2)); +} + +#ifdef PROTOTYPES +int t_char_array_values (char char_array_arg1[], char char_array_arg2[]) +#else +int t_char_array_values (char_array_arg1, char_array_arg2) +char char_array_arg1[], char_array_arg2[]; +#endif +{ + return (!strcmp (char_array_arg1, char_array_val1) && + !strcmp (char_array_arg2, char_array_val2)); +} + + +/* This used to simply compare the function pointer arguments with + known values for func_val1 and func_val2. Doing so is valid ANSI + code, but on some machines (RS6000, HPPA, others?) it may fail when + called directly by GDB. + + In a nutshell, it's not possible for GDB to determine when the address + of a function or the address of the function's stub/trampoline should + be passed. + + So, to avoid GDB lossage in the common case, we perform calls through the + various function pointers and compare the return values. For the HPPA + at least, this allows the common case to work. + + If one wants to try something more complicated, pass the address of + a function accepting a "double" as one of its first 4 arguments. Call + that function indirectly through the function pointer. This would fail + on the HPPA. */ + +#ifdef PROTOTYPES +int t_func_values (int (*func_arg1)(int, int), int (*func_arg2)(int)) +#else +int t_func_values (func_arg1, func_arg2) +int (*func_arg1) PARAMS ((int, int)); +int (*func_arg2) PARAMS ((int)); +#endif +{ + return ((*func_arg1) (5,5) == (*func_val1) (5,5) + && (*func_arg2) (6) == (*func_val2) (6)); +} + +#ifdef PROTOTYPES +int t_call_add (int (*func_arg1)(int, int), int a, int b) +#else +int t_call_add (func_arg1, a, b) +int (*func_arg1) PARAMS ((int, int)); +int a, b; +#endif +{ + return ((*func_arg1)(a, b)); +}
callfwmall.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: hwwatchbus.c =================================================================== --- hwwatchbus.c (nonexistent) +++ hwwatchbus.c (revision 840) @@ -0,0 +1,9 @@ +/* This program raises a SIGBUS signal on HP-UX when the + pointer "bogus_p" is dereferenced. + */ +int * bogus_p = (int *)3; + +int main() +{ + *bogus_p = 0xdeadbeef; +}
hwwatchbus.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: sized-enum.c =================================================================== --- sized-enum.c (nonexistent) +++ sized-enum.c (revision 840) @@ -0,0 +1,43 @@ + +enum Normal { + red, + blue, + green +}; + +short enum Small { + pink, + cyan, + grey +}; + +char enum Tiny { + orange, + yellow, + brown +}; + + +main() +{ + enum Normal normal[3]; + short enum Small small[3]; + char enum Tiny tiny[3]; + int i; + + for (i=0; i < 3; i++) + { + normal[i] = (enum Normal) i; + small[i] = (short enum Small) i; + tiny[i] = (char enum Tiny) i; + } + normal[0] = 0; /* place to hang a breakpoint */ +} + + + + + + + +
sized-enum.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: configure.ac =================================================================== --- configure.ac (nonexistent) +++ configure.ac (revision 840) @@ -0,0 +1,15 @@ +dnl Process this file file with autoconf to produce a configure script. +dnl This file is a shell script fragment that supplies the information +dnl necessary to tailor a template configure script into the configure +dnl script appropriate for this directory. For more information, check +dnl any existing configure script. + +AC_PREREQ(2.59) +AC_INIT(dollar.exp) + +CC=${CC-cc} +AC_SUBST(CC) +AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../../..) +AC_CANONICAL_SYSTEM + +AC_OUTPUT(Makefile)
configure.ac Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: so-thresh.exp =================================================================== --- so-thresh.exp (nonexistent) +++ so-thresh.exp (revision 840) @@ -0,0 +1,340 @@ +# Copyright (C) 1997, 1998, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +if $tracelevel then { + strace $tracelevel + } + +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } then { continue } + +set testfile "so-thresh" +set binfile ${objdir}/${subdir}/${testfile} + +if [get_compiler_info ${binfile}] { + return -1 +} + +# This testcase is relatively large, and therefore can take awhile to +# load. We'd best set the timeout to something suitable, or we may +# seem to fail... +# +set timeout 60 + +# Build procedure for this testcase: +# ${srcdir}/${subdir}/so-thresh.sh ${subdir} +# which calls, +# make -f ${srcdir}/${subdir}/so-thresh.mk +# which builds, +# genso-thresh (from genso-thresh.c) +# which generates, +# lib00-so-thresh.c +# lib01-so-thresh.c +# lib02-so-thresh.c +# so-thresh.lopt (link options file) +# lib0*-so-thresh.sl (from .c files above) +# so-thresh (from so-thresh.c) +# using lib0*-so-thresh.sl and so-thresh.lopt +# +# Since so-thresh.mk requires SRCDIR and OBJDIR macro definitions, +# and SRCDIR / OBJDIR could be in relative path format, we use +# so-thresh.sh script to pin down SRCDIR / OBJDIR (using $PWD/ prefix +# when detected relative path values for srcdir / objdir), before the +# 'cd $subdir' call (when this can be done in TCL here, we can call +# make directly instead). +# +# remote_exec build "sh -c \\\"cd ${objdir}/${subdir}\\; make -v -f ${srcdir}/${subdir}/${testfile}.mk clean require_shlibs all SRCDIR=${srcdir}/${subdir} OBJDIR=${objdir}/${subdir}\\\"" + +remote_exec build "${srcdir}/${subdir}/${testfile}.sh $subdir" + +# Only HP-UX (and any other platforms using SOM shared libraries, I +# guess) interprets the auto-solib-limit variable as a threshhold, +# rather than a boolean that strictly enables or disables automatic +# loading of shlib symbol tables. +# +# On HP-UX, it is the size threshhold (in megabytes) at which to +# stop auto loading of symbol tables. +# +if ![istarget "hppa*-hp-hpux*"] then { + setup_xfail "*-*-*" +} + +# Start with a fresh gdb +# +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# This is a test of gdb's ability on HP-UX to stop automatically +# loading symbols of shared libraries, when the total size of the +# debugger's symbol table reaches a specified threshhold. +# + +# On HP-UX, the help text for auto-solib-limit mentions that it +# serves as a threshhold. +# +send_gdb "help set auto-solib-limit\n" +gdb_expect { + -re "Set threshold .in Mb. for autoloading shared library symbols.* +When shared library autoloading is enabled, new libraries will be loaded.* +only until the total size of shared library symbols exceeds this.* +threshold in megabytes. Is ignored when using .sharedlibrary.*$gdb_prompt $"\ + {pass "help set auto-solib-limit"} + -re "$gdb_prompt $"\ + {fail "help set auto-solib-limit"} + timeout {fail "(timeout) help set auto-solib-limit"} +} + +# On HP-UX, the threshhold is by default set to 50, which means +# 50 megabytes. +# +send_gdb "show auto-solib-limit\n" +gdb_expect { + -re "Threshold .in Mb. for autoloading shared library symbols is $decimal.*$gdb_prompt $"\ + {pass "show auto-solib-limit "} + -re "$gdb_prompt $"\ + {fail "show auto-solib-limit "} + timeout {fail "(timeout) show auto-solib-limit "} +} + +send_gdb "set auto-solib-limit 1\n" +gdb_expect { + -re ".*$gdb_prompt $" + {pass "set auto-solib-limit to 1"} + -re ".*$gdb_prompt $" + {fail "set auto-solib-limit to 1"} + timeout {fail "(timeout) set auto-solib-limit to 1"} +} + + +# We have manually verified that our testcase exceeds 1 Mbytes +# of heap space in GDB to hold the symbols for the main program +# and all associated linked-against libraries. Thus, when we +# run to the program's main, and therefore notice all the linked- +# against shlibs, we expect to hit the threshhold. +# +# (Note that we're not using the expect [runto main] function here, +# 'cause we want to match on output from the run command. +# +send_gdb "break main\n" +gdb_expect { + -re "Breakpoint \[0-9\]* at.*$gdb_prompt $"\ + {pass "1 set break at main"} + -re "$gdb_prompt $"\ + {fail "1 set break at main"} + timeout {fail "(timeout) 1 set break at main"} +} + +send_gdb "run\n" +gdb_expect { + -re ".*warning. Symbols for some libraries have not been loaded, because.* +doing so would exceed the size threshold specified by auto-solib-limit.* +To manually load symbols, use the 'sharedlibrary' command.* +To raise the threshold, set auto-solib-limit to a larger value and rerun.* +the program.*$gdb_prompt $"\ + {pass "run to main hit auto-solib-limit threshold"} + -re "$gdb_prompt $"\ + {fail "run to main hit auto-solib-limit threshold"} + timeout {fail "(timeout) run to main hit auto-solib-limit threshold"} +} + +# Verify that "info share" mentions something about libraries whose +# symbols weren't loaded. +# +# We'll assume that at least the last two shlib's symbols weren't +# loaded. As a side-effect of matching this pattern, the text start +# address of the last one is captured in expect_out(1,string). +# (we'll need it for the 'add-symbol-file' command in a nonce...) +# +send_gdb "info sharedlibrary\n" +gdb_expect { + -re ".*lib01_$testfile.sl .*symbols not loaded.*0x\[0-9\]* (0x\[0-9a-fA-F\]*).*$gdb_prompt $"\ + { send_gdb "add-symbol-file lib02_$testfile.sl $expect_out(1,string)\n" + gdb_expect { + -re "add symbol table.*y or n.*$"\ + {send_gdb "y\n" + gdb_expect { + -re "$gdb_prompt $" {pass "add-symbol-file and info sharedlib"} + timeout {fail "(timeout) add-symbol-file and info sharedlib"} + }} + -re "$gdb_prompt $"\ + {fail "add-symbol-file and info sharedlib"} + timeout {fail "(timeout) add-symbol-file and info sharedlib"} + } + } + -re "$gdb_prompt $" { + setup_xfail hppa*-*-* CHFts24108 + fail "info sharedlibrary shows shlibs with unloaded symbols" + } + timeout {fail "(timeout) info sharedlibrary shows shlibs with unloaded symbols"} +} + +# Verify that we can manually load the symbol table of a library +# whose symbols weren't loaded. (We'll pick the last one.) +# + +# I moved this test inside the one above, because the expect_out array is not ok if the +# previous test has failed, and expect would error out (elz) +# +#send_gdb "add-symbol-file lib02_$testfile.sl $expect_out(1,string)\n" +#gdb_expect { +# -re "add symbol table.*y or n.*$"\ +# {send_gdb "y\n" +# gdb_expect { +# -re "$gdb_prompt $" {pass "add-symbol-file"} +# timeout {fail "(timeout) add-symbol-file"} +# }} +# -re "$gdb_prompt $"\ +# {fail "add-symbol-file"} +# timeout {fail "(timeout) add-symbol-file"} +#} + +# Verify that we can manually load the symbols for all libraries +# which weren't already loaded. +# +# Warning! On a machine with little free swap space, this may +# fail! +# +send_gdb "sharedlibrary\n" +gdb_expect { + -re "Reading symbols from.*done.*$gdb_prompt $"\ + {pass "sharedlibrary"} + -re "$gdb_prompt $" { + setup_xfail hppa*-*-* CHFts24108 + fail "sharedlibrary" + } + timeout {fail "(timeout) sharedlibrary"} +} + +# Rerun the program, this time verifying that we can set the +# threshhold high enough to avoid hitting it. +# +# It appears that gdb isn't freeing memory when rerunning, as one +# would expect. To avoid potentially hitting a virtual memory +# ceiling, start with a fresh gdb. +# +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +send_gdb "break main\n" +gdb_expect { + -re "Breakpoint \[0-9\]* at.*$gdb_prompt $"\ + {pass "2 set break at main"} + -re "$gdb_prompt $"\ + {fail "2 set break at main"} + timeout {fail "(timeout) 2 set break at main"} +} + +send_gdb "set auto-solib-limit 9999\n" +gdb_expect { + -re "$gdb_prompt $"\ + {pass "set auto-solib-limit threshold to practical infinity"} + timeout {fail "(timeout) set auto-solib-limit threshold to practical infinity"} +} +send_gdb "run\n" +gdb_expect { + -re ".*warning. Symbols for some libraries have not been loaded, because.* +doing so would exceed the size threshold specified by auto-solib-limit.* +To manually load symbols, use the 'sharedlibrary' command.* +To raise the threshold, set auto-solib-limit to a larger value and rerun.* +the program.*$gdb_prompt $"\ + {fail "rerun threshold at practical infinity (still hit threshold)"} + -re "$gdb_prompt $"\ + {pass "rerun with threshold at practical infinity"} + timeout {fail "(timeout) rerun with threshold at practical infinity"} +} + +# Rerun the program, this time altogether disabling the auto loading +# feature. There should be no information at all about shared +# libraries now. +# +# ??rehrauer: Personally, I'd call that a bug, since it doesn't give +# you the ability to manually load single shlibs (you need the text +# start address that 'info share' normall gives you). On the other +# hand, one can easily choose to load them all... +# +# It appears that gdb isn't freeing memory when rerunning, as one +# would expect. To avoid potentially hitting a virtual memory +# ceiling, start with a fresh gdb. +# +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +send_gdb "break main\n" +gdb_expect { + -re "Breakpoint \[0-9\]* at.*$gdb_prompt $"\ + {pass "3 set break at main"} + -re "$gdb_prompt $"\ + {fail "3 set break at main"} + timeout {fail "(timeout) 3 set break at main"} +} + +send_gdb "set auto-solib-limit 0\n" +gdb_expect { + -re "$gdb_prompt $"\ + {pass "set auto-solib-limit threshold to 0"} + timeout {fail "(timeout) set auto-solib-limit threshold to 0"} +} +send_gdb "run\n" +gdb_expect { + -re ".*warning. Symbols for some libraries have not been loaded, because.* +doing so would exceed the size threshold specified by auto-solib-limit.* +To manually load symbols, use the 'sharedlibrary' command.* +To raise the threshold, set auto-solib-limit to a larger value and rerun.* +the program.*$gdb_prompt $"\ + {fail "rerun threshold at 0 (still hit threshold)"} + -re "$gdb_prompt $"\ + {pass "rerun with threshold at 0"} + timeout {fail "(timeout) rerun with threshold at 0"} +} + +# Verify that we can still manually load symbols for all libraries. +# (We'll assume that if the last shlib's symbols are loaded, that +# all of them were.) +# +# Note that we set the GDB "height" variable to prevent GDB from +# prompting +# +# Warning! On a machine with little free swap space, this may +# fail! +# +send_gdb "set height 9999\n" +gdb_expect { + -re "$gdb_prompt $"\ + {pass "set screen page height to practical infinity"} + timeout {fail "(timeout) set screen page height to practical infinity"} +} +send_gdb "sharedlibrary\n" +gdb_expect { + -re ".*Reading symbols from .*/lib02-so-thresh\\.sl\\.\\.\\.done\\..*$gdb_prompt $"\ + {pass "manually load all symbols"} + -re "$gdb_prompt $" { + setup_xfail hppa*-*-* CHFts24108 + fail "manually load all symbols (CHFts24108)" + } + timeout {fail "(timeout) manually load all symbols"} +} + +return 0 Index: dollar.exp =================================================================== --- dollar.exp (nonexistent) +++ dollar.exp (revision 840) @@ -0,0 +1,155 @@ +# Copyright (C) 1997, 1998, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# GDB tests for names beginning with '$' + +# This is aimed at HP-UX systems where a lot of system +# routines and names begin with '$' or '$$'. GDB 4.16 was +# unable to deal with these names as they clashed with +# convenience variables. Wildebeest should accept such +# names in preference to convenience variables. + +# This file was written by Satish Pai +# 1997-09-24 + +if $tracelevel then { + strace $tracelevel + } + +# +# test running programs +# +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } { continue } + +set testfile "dollar" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested dollar.exp + return -1 +} + +#source ${binfile}.ci + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# +# set it up at a breakpoint so we can play with the variable values +# + +if ![runto_main] then { + perror "couldn't run to breakpoint" + continue +} + +# Test for millicode routines +# hppa64 does not support dyncall +if ![istarget "hppa64*-*-*"] { +send_gdb "print \$\$dyncall\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{\\} $hex <>.*$gdb_prompt $" { pass "print \$\$dyncall" } + -re "\\$\[0-9\]* = \\{\\} $hex <.*dyncall>.*$gdb_prompt $" { pass "print \$\$dyncall" } + -re "\\$\[0-9\]* = void" { fail "print \$\$dyncall -- interpreted as convenience var" } + -re "$gdb_prompt $" { fail "print \$\$dyncall" } + timeout { fail "(timeout) print \$\$dyncall" } +} +send_gdb "print \$\$dyncall_external\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{\\} $hex <>.*$gdb_prompt $" { pass "print \$\$dyncall_external" } + -re "\\$\[0-9\]* = \\{\\} $hex <.*dyncall_external>.*$gdb_prompt $" { pass "print \$\$dyncall_external" } + -re "\\$\[0-9\]* = void" { fail "print \$\$dyncall_external -- interpreted as convenience var" } + -re "$gdb_prompt $" { fail "print \$\$dyncall_external" } + timeout { fail "(timeout) print \$\$dyncall_external" } +} + +# Set a breakpoint on a millicode routine +send_gdb "break \$\$dyncall\n" +gdb_expect { + -re "Breakpoint \[0-9\]* at $hex.*$gdb_prompt $" { pass "break \$\$dyncall" } + -re "Function.*not defined.*$gdb_prompt $" {fail "break \$\$dyncall -- no \$\$dyncall?" } + -re "Convenience variables used in line specs must have integer values\\..*$gdb_prompt $" { + fail "break \$\$dyncall -- treated as convenince variable" + } + -re "$gdb_prompt $" { fail "print break \$\$dyncall" } + timeout { fail "(timeout) print break \$\$dyncall" } +} + +# Disassemble $$dyncall +send_gdb "disassemble \$\$dyncall\n" +gdb_expect { + -re "Dump of assembler code for function.*$gdb_prompt $" { pass "disas \$\$dyncall" } + -re "$gdb_prompt $" { fail "disas \$\$dyncall" } + timeout { fail "(timeout) disas \$\$dyncall" } +} + +# Try to set $$dyncall like a convenience var. +send_gdb "set \$\$dyncall = 77\n" +gdb_expect { + -re "Invalid cast.*$gdb_prompt $" { pass "set \$\$dyncall = 77" } + -re "$gdb_prompt $" { fail "set \$\$dyncall = 77" } + timeout { fail "(timeout) set \$\$dyncall = 77" } +} +} + +# Try out some other $ name, not millicode +if [istarget "hppa64*-*-*"] { + #hppa64 uses __argv instead of $ARGV. + send_gdb "print \__argv\n" + gdb_expect { + -re "\\$\[0-9\]* = \[0-9\]*.*$gdb_prompt $" { pass "print \__argv" } + -re "\\$\[0-9\]* = void.*$gdb_prompt $" { + fail "print \__argv (interpreted as convenience var)" + } + -re "$gdb_prompt $" { fail "print \__argv" } + timeout { fail "(timeout) print \__argv" } + } + + send_gdb "ptype \__argv\n" + gdb_expect { + -re "type = .*$gdb_prompt $" { + pass "ptype \__argv" + } + -re "type = void.*$gdb_prompt $" { + fail "ptype \__argv (interpreted as convenience var)" + } + -re "$gdb_prompt $" { fail "ptype \__argv" } + timeout { fail "(timeout) ptype \__argv" } + } +} else { +send_gdb "print \$ARGV\n" +gdb_expect { + -re "\\$\[0-9\]* = \[0-9\]*.*$gdb_prompt $" { pass "print \$ARGV" } + -re "\\$\[0-9\]* = void.*$gdb_prompt $" { fail "print \$ARGV (interpreted as convenience var)" } + -re "$gdb_prompt $" { fail "print \$ARGV" } + timeout { fail "(timeout) print \$ARGV" } +} +send_gdb "ptype \$ARGV\n" +gdb_expect { + -re "type = .*$gdb_prompt $" { pass "ptype \$ARGV" } + -re "type = void.*$gdb_prompt $" { fail "ptype \$ARGV (interpreted as convenience var)" } + -re "$gdb_prompt $" { fail "ptype \$ARGV" } + timeout { fail "(timeout) ptype \$ARGV" } +} +} Index: reg.exp =================================================================== --- reg.exp (nonexistent) +++ reg.exp (revision 840) @@ -0,0 +1,238 @@ +# This test script is part of GDB, the GNU debugger. + +# Copyright 1998, 1999, 2001, 2004, +# Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# Tests of wide register displays for GDB on HPPA 2.0 machines + +# use this to debug: +#log_user 1 + +if $tracelevel then { + strace $tracelevel + } + +if { [skip_hp_tests] } then { continue } + +set testfile "reg" + +if [istarget "hppa64-hp-hpux*"] { + verbose "reg.exp is not for PA2.0W." + return 0 +} +set srcfile ${testfile}.s +set binfile ${objdir}/${subdir}/${testfile} + +# To build a pa 2.0 executable +# +# as -o reg reg.s +# or +# cc -g -o reg reg.s +# +# The +DA2.0N flag doesn't seem to be needed. +# +# Don't reject if there are warnings, as we expect this warning: +# +# (Warning) At least one PA 2.0 object file (pa2.0_test2.o) was detected. +# The linked output may not run on a PA 1.x system. +# + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested reg.exp + return -1 +} + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# test machine--there's no 2.0n architecture, so we have +# to try to run the app. +# +send_gdb "break main\n" + gdb_expect { + -re "Breakpoint.*$gdb_prompt $" { + pass "initial set-up" + } + -re ".*$gdb_prompt $" { + fail "initial set-up" + } + timeout { + fail "initial set-up (timeout)" + } + } + +send_gdb "run\n" + gdb_expect { + -re ".*Executable file incompatible with hardware.*$gdb_prompt $" { + # Not hppa2.0 machine + # + return 0 + } + -re "Cannot exec.*$gdb_prompt $" { + # Not hppa2.0 machine + # + return 0 + } + -re ".*Starting program:.*$gdb_prompt $" { + pass "Ready to start test" + } + timeout { + fail "initial set-up, part 2 (timeout)" + return 0 + } + } + +# Let the program set known values. This secretly deletes +# the breakpoint at main and re-runs to mainend. +# +runto mainend + +# Look for known values +# +# The output format changed between gdb 6.1.1 and gdb HEAD 2004-06-01. +# +# gdb 6.1.1: +# (gdb) info reg r1 +# r1 1 +# +# gdb HEAD 2004-06-01: +# (gdb) info reg r1 +# r1 0x1 1 +# +# For now, I accept both formats. In the future, you can remove +# the old gdb 6.1.1 format. +# +# -- chastain 2004-06-26 + +set ws "\[\r\n\t \]+" + +proc hp_integer_reg {regname vhex vdec} { + global ws + set value_611 "$regname${ws}$vhex" + set value_new "$regname${ws}0x$vhex${ws}$vdec" + gdb_test "info reg $regname" "$value_611|$value_new" +} + +hp_integer_reg "r1" "1" "1" +hp_integer_reg "r4" "2" "2" +hp_integer_reg "r5" "4" "4" +hp_integer_reg "r6" "8" "8" +hp_integer_reg "r7" "10" "16" +hp_integer_reg "r8" "20" "32" +hp_integer_reg "r9" "40" "64" +hp_integer_reg "r10" "80" "128" +hp_integer_reg "r11" "100" "256" +hp_integer_reg "r12" "200" "512" +hp_integer_reg "r13" "400" "1024" +hp_integer_reg "r14" "800" "2048" +hp_integer_reg "r15" "1000" "4096" +hp_integer_reg "r16" "2000" "8192" + +# Two odd variants that GDB supports are: +# "1" means "r1", and +# "$1" means "r1" + +hp_integer_reg "1" "1" "1" +hp_integer_reg "4" "2" "2" + +set name "info reg \$1" +gdb_test_multiple "info reg \$1" "$name" { + -re "r1${ws}1\r\n$gdb_prompt $" { + pass "$name" + } + -re "r1${ws}0x1${ws}1\r\n$gdb_prompt $" { + pass "$name" + } +} + +# Verify that GDB responds gracefully to a register ID number that +# is out of range. + +gdb_test "info reg 999" "Invalid register.*999.*" + +# Make sure the floating point status and error registers +# don't show up as floating point numbers! + +hp_integer_reg "fpsr" "0" "0" +hp_integer_reg "fpe1" "0" "0" +hp_integer_reg "fpe2" "0" "0" +hp_integer_reg "fpe3" "0" "0" +hp_integer_reg "fpe4" "0" "0" +hp_integer_reg "fpe5" "0" "0" +hp_integer_reg "fpe6" "0" "0" +hp_integer_reg "fpe7" "0" "0" + +# Floating point registers. +# TODO: these are old format only. + +gdb_test "info reg fr4" ".*fr4.*(double precision).* 1" +gdb_test "info reg fr5" ".*fr5.*(double precision).* 2" +gdb_test "info reg fr6" ".*fr6.*(double precision).* 2" +gdb_test "info reg fr7" ".*fr7.*(double precision).* 4" +gdb_test "info reg fr8" ".*fr8.*(double precision).* 8" +gdb_test "info reg fr9" ".*fr9.*(double precision).* 32" +gdb_test "info reg fr10" ".*fr10.*(double precision).* 256" + +# An integer register with a 64-bit value. + +set name "info reg r19" +gdb_test_multiple "info reg r19" "$name" { + -re "r19${ws}deadbeefbadcadee\r\n$gdb_prompt $" { + # old gdb 6.1.1 format, good result + pass "$name" + } + -re "r19${ws}badcadee\r\n$gdb_prompt $" { + # old gdb 6.1.1 format, bad result + fail "$name (32-bit truncation)" + } + -re "r19${ws}0xdeadbeefbadcadee${ws}16045690984232431086\r\n$gdb_prompt $" { + # new gdb HEAD 2004-06-01 format, good result + pass "$name" + } + -re "r19${ws}0xbadcadee${ws}3135024622\r\n$gdb_prompt $" { + # new gdb HEAD 2004-06-01 format, 32 bit truncation + fail "$name (32-bit truncation)" + } +} + +set name "print /x \$r19" +gdb_test_multiple "print /x \$r19" "$name" { + -re "= 0xdeadbeefbadcadee\r\n$gdb_prompt $" { + pass "$name" + } + -re "= 0xbadcadee\r\n$gdb_prompt $" { + # this was a PASS in the last version so keep it PASS for now + # -- chastain 2004-06-26 + pass "$name (32-bit truncation)" + } +} + +# Need to add tests of setting wide regs too. E.g. +# +# set $r4 = 0x1234567890123456 +# p/x $r4 +# + +# done +# +gdb_exit + +return 0 Index: callfwmall.exp =================================================================== --- callfwmall.exp (nonexistent) +++ callfwmall.exp (revision 840) @@ -0,0 +1,343 @@ +# Copyright 1997, 1998, 1999, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# This file was written by Fred Fish. (fnf@cygnus.com) + +# These tests are the same as those in callfuncs.exp, except that the +# test program here does not call malloc. +# +# "What in the world does malloc have to do with calling functions in +# the inferior?" Well, nothing. GDB's ability to invoke a function +# in the inferior program works just fine in programs that have no +# malloc function available. It doesn't rely on the inferior's +# malloc, directly or indirectly. It just uses the inferior's stack +# space. +# +# "Then what's the point of this test file?" Well, it just so happens +# that this file, in addition to testing inferior function calls, also +# tests GDB's ability to evaluate string literals (like "string 1" and +# "string 2" in the tests below). Evaluating *those* sorts of +# expressions does require malloc. +# +# (As an extension to C, GDB also has a syntax for literal arrays of +# anything, not just characters. For example, the expression +# {2,3,4,5} (which appears in the tests below) evaluates to an array +# of four ints. So rather than talking just about string literals, +# we'll use the broader term "array literals".) +# +# Now, in this file, we only evaluate array literals when we're about +# to pass them to a function, but don't be confused --- this is a red +# herring. You can evaluate "abcdef" even if you're not about to pass +# that to a function, and doing so requires malloc even if you're just +# going to store a pointer to it in a variable, like this: +# +# (gdb) ptype s +# type = char * +# (gdb) set variable s = "abcdef" +# +# According to C's rules for evaluating expressions, arrays are +# converted into pointers to their first element. This means that, in +# order to evaluate an expression like "abcdef", GDB needs to actually +# find some memory in the inferior we can plop the characters into; +# then we use that memory's address as the address of our array +# literal. GDB finds this memory by calling the inferior's malloc +# function, if it has one. So, evaluating an array literal depends on +# performing an inferior function call, but not vice versa. (GDB +# can't just allocate the space on the stack; the pointer may remain +# live long after the current frame has been popped.) +# +# "But, if evaluating array literals requires malloc, what's the point +# of testing that GDB can do so in a program that doesn't have malloc? +# It can't work!" On most systems, that's right, but HP-UX has some +# sort of dynamic linking magic that ensures that *every* program has +# malloc. So on HP-UX, GDB can evaluate array literals even in +# inferior programs that don't use malloc. That's why this test is in +# gdb.hp. +# +# This file has, for some reason, led to well more than its fair share +# of misunderstandings about the relationship between array literal +# expressions and inferior function calls. Folks talk as if you can +# only evaluate array literals when you're about to pass them to a +# function. I think they're assuming that, since GDB is constructing +# a new frame on the inferior's stack (correct), it's going to use +# that space for the array literals (incorrect). Remember that those +# array literals may need to be live long after the inferior function +# call returns; GDB can't tell. +# +# What makes the confusion worse is that there *is* a relationship +# between array literals and inferior function calls --- GDB uses +# inferior function calls to evaluate array literals. But many people +# jump to other, incorrect conclusions about this. + +if $tracelevel then { + strace $tracelevel +} + +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } then { continue } + +set testfile "callfwmall" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested callfwmall.exp + return -1 +} + +# Create and source the file that provides information about the compiler +# used to compile the test case. + +if [get_compiler_info ${binfile}] { + return -1; +} + +if {$hp_aCC_compiler} { + set prototypes 1 +} else { + set prototypes 0 +} + + +# Some targets can't call functions, so don't even bother with this +# test. +if [target_info exists gdb,cannot_call_functions] { + setup_xfail "*-*-*" 2416 + fail "This target can not call functions" + continue +} + +# Set the current language to C. This counts as a test. If it +# fails, then we skip the other tests. + +proc set_lang_c {} { + global gdb_prompt + + send_gdb "set language c\n" + gdb_expect { + -re ".*$gdb_prompt $" {} + timeout { fail "set language c (timeout)" ; return 0 } + } + + send_gdb "show language\n" + gdb_expect { + -re ".* source language is \"c\".*$gdb_prompt $" { + pass "set language to \"c\"" + return 1 + } + -re ".*$gdb_prompt $" { + fail "setting language to \"c\"" + return 0 + } + timeout { + fail "can't show language (timeout)" + return 0 + } + } +} + +# FIXME: Before calling this proc, we should probably verify that +# we can call inferior functions and get a valid integral value +# returned. +# Note that it is OK to check for 0 or 1 as the returned values, because C +# specifies that the numeric value of a relational or logical expression +# (computed in the inferior) is 1 for true and 0 for false. + +proc do_function_calls {} { + global prototypes + global gcc_compiled + global gdb_prompt + + # We need to up this because this can be really slow on some boards. + set timeout 60; + + gdb_test "p t_char_values(0,0)" " = 0" + gdb_test "p t_char_values('a','b')" " = 1" + gdb_test "p t_char_values(char_val1,char_val2)" " = 1" + gdb_test "p t_char_values('a',char_val2)" " = 1" + gdb_test "p t_char_values(char_val1,'b')" " = 1" + + gdb_test "p t_short_values(0,0)" " = 0" + gdb_test "p t_short_values(10,-23)" " = 1" + gdb_test "p t_short_values(short_val1,short_val2)" " = 1" + gdb_test "p t_short_values(10,short_val2)" " = 1" + gdb_test "p t_short_values(short_val1,-23)" " = 1" + + gdb_test "p t_int_values(0,0)" " = 0" + gdb_test "p t_int_values(87,-26)" " = 1" + gdb_test "p t_int_values(int_val1,int_val2)" " = 1" + gdb_test "p t_int_values(87,int_val2)" " = 1" + gdb_test "p t_int_values(int_val1,-26)" " = 1" + + gdb_test "p t_long_values(0,0)" " = 0" + gdb_test "p t_long_values(789,-321)" " = 1" + gdb_test "p t_long_values(long_val1,long_val2)" " = 1" + gdb_test "p t_long_values(789,long_val2)" " = 1" + gdb_test "p t_long_values(long_val1,-321)" " = 1" + + if ![target_info exists gdb,skip_float_tests] { + gdb_test "p t_float_values(0.0,0.0)" " = 0" + + # These next four tests fail on the mn10300. + # The first value is passed in regs, the other in memory. + # Gcc emits different stabs for the two parameters; the first is + # claimed to be a float, the second a double. + # dbxout.c in gcc claims this is the desired behavior. + setup_xfail "mn10300-*-*" + gdb_test "p t_float_values(3.14159,-2.3765)" " = 1" + setup_xfail "mn10300-*-*" + gdb_test "p t_float_values(float_val1,float_val2)" " = 1" + setup_xfail "mn10300-*-*" + gdb_test "p t_float_values(3.14159,float_val2)" " = 1" + setup_xfail "mn10300-*-*" + gdb_test "p t_float_values(float_val1,-2.3765)" " = 1" + + # Test passing of arguments which might not be widened. + gdb_test "p t_float_values2(0.0,0.0)" " = 0" + + # Although PR 5318 mentions SunOS specifically, this seems + # to be a generic problem on quite a few platforms. + if $prototypes then { + setup_xfail "sparc-*-*" "mips*-*-*" 5318 + if {!$gcc_compiled} then { + setup_xfail "alpha-dec-osf2*" "i*86-*-sysv4*" 5318 + } + } + gdb_test "p t_float_values2(3.14159,float_val2)" " = 1" + gdb_test "p t_small_values(1,2,3,4,5,6,7,8,9,10)" " = 55" + + gdb_test "p t_double_values(0.0,0.0)" " = 0" + gdb_test "p t_double_values(45.654,-67.66)" " = 1" + gdb_test "p t_double_values(double_val1,double_val2)" " = 1" + gdb_test "p t_double_values(45.654,double_val2)" " = 1" + gdb_test "p t_double_values(double_val1,-67.66)" " = 1" + + } + + gdb_test "p t_string_values(string_val2,string_val1)" " = 0" + gdb_test "p t_string_values(string_val1,string_val2)" " = 1" + gdb_test "p t_string_values(\"string 1\",\"string 2\")" " = 1" + gdb_test "p t_string_values(\"string 1\",string_val2)" " = 1" + gdb_test "p t_string_values(string_val1,\"string 2\")" " = 1" + + gdb_test "p t_char_array_values(char_array_val2,char_array_val1)" " = 0" + gdb_test "p t_char_array_values(char_array_val1,char_array_val2)" " = 1" + gdb_test "p t_char_array_values(\"carray 1\",\"carray 2\")" " = 1" + gdb_test "p t_char_array_values(\"carray 1\",char_array_val2)" " = 1" + gdb_test "p t_char_array_values(char_array_val1,\"carray 2\")" " = 1" + + gdb_test "p doubleit(4)" " = 8" + gdb_test "p add(4,5)" " = 9" + gdb_test "p t_func_values(func_val2,func_val1)" " = 0" + gdb_test "p t_func_values(func_val1,func_val2)" " = 1" + + # On the rs6000, we need to pass the address of the trampoline routine, + # not the address of add itself. I don't know how to go from add to + # the address of the trampoline. Similar problems exist on the HPPA, + # and in fact can present an unsolvable problem as the stubs may not + # even exist in the user's program. We've slightly recoded t_func_values + # to avoid such problems in the common case. This may or may not help + # the RS6000. + setup_xfail "rs6000*-*-*" + + if {![istarget hppa*-*-hpux*]} then { + gdb_test "p t_func_values(add,func_val2)" " = 1" + } + + setup_xfail "rs6000*-*-*" + + if {![istarget hppa*-*-hpux*]} then { + gdb_test "p t_func_values(func_val1,doubleit)" " = 1" + } + + gdb_test "p t_call_add(func_val1,3,4)" " = 7" + + setup_xfail "rs6000*-*-*" + + if {![istarget hppa*-*-hpux*]} then { + gdb_test "p t_call_add(add,3,4)" " = 7" + } + + gdb_test "p t_enum_value1(enumval1)" " = 1" + gdb_test "p t_enum_value1(enum_val1)" " = 1" + gdb_test "p t_enum_value1(enum_val2)" " = 0" + + gdb_test "p t_enum_value2(enumval2)" " = 1" + gdb_test "p t_enum_value2(enum_val2)" " = 1" + gdb_test "p t_enum_value2(enum_val1)" " = 0" + + gdb_test "p sum_args(1,{2})" " = 2" + gdb_test "p sum_args(2,{2,3})" " = 5" + gdb_test "p sum_args(3,{2,3,4})" " = 9" + gdb_test "p sum_args(4,{2,3,4,5})" " = 14" + gdb_test "p sum10 (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)" " = 55" + + gdb_test "p t_structs_c(struct_val1)" "= 120 'x'" \ + "call inferior func with struct - returns char" + gdb_test "p t_structs_s(struct_val1)" "= 87" \ + "call inferior func with struct - returns short" + gdb_test "p t_structs_i(struct_val1)" "= 76" \ + "call inferior func with struct - returns int" + gdb_test "p t_structs_l(struct_val1)" "= 51" \ + "call inferior func with struct - returns long" + gdb_test "p t_structs_f(struct_val1)" "= 2.12.*" \ + "call inferior func with struct - returns float" + gdb_test "p t_structs_d(struct_val1)" "= 9.87.*" \ + "call inferior func with struct - returns double" + gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?\"foo\"" \ + "call inferior func with struct - returns char *" + +} + +# Start with a fresh gdb. + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +gdb_test "set print sevenbit-strings" "" +gdb_test "set print address off" "" +gdb_test "set width 0" "" + +if { $hp_aCC_compiler } { + # Do not set language explicitly to 'C'. This will cause aCC + # tests to fail because promotion rules are different. Just let + # the language be set to the default. + + if { ![runto_main] } { + gdb_suppress_tests; + } + + gdb_test "set overload-resolution 0" ".*" +} else { + if { ![set_lang_c] } { + gdb_suppress_tests; + } else { + if { ![runto_main] } { + gdb_suppress_tests; + } + } +} + +gdb_test "next" ".*" +do_function_calls + +return 0 Index: hwwatchbus.exp =================================================================== --- hwwatchbus.exp (nonexistent) +++ hwwatchbus.exp (revision 840) @@ -0,0 +1,83 @@ +# Copyright (C) 1997, 1998, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +if $tracelevel then { + strace $tracelevel + } + +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } then { continue } + +if { ![istarget "hppa*-*-hpux11.*"] } { + verbose "HPUX h/w watch test ignored for non-hppa or pre-HP/UX-10.30 targets." + return 0 +} + +set testfile "hwwatchbus" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +# build the first test case +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested hwwatchbus.exp + return -1 +} + +if [get_compiler_info ${binfile}] { + return -1 +} + +# Start with a fresh gdb + +gdb_exit +remote_exec build "rm -f ${binfile}.bak" +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + + +# We ought to be able to set a hardware watchpoint, step, and +# get a SIGBUS or SIGSEGV signal reported. +# +if ![runto_main] then { + fail "can't run to main" + return 0 +} + +send_gdb "watch bogus_p\n" +gdb_expect { + -re "Hardware watchpoint \[0-9\]*: bogus_p.*$gdb_prompt $"\ + {pass "set h/w watchpoint"} + -re "$gdb_prompt $"\ + {fail "set h/w watchpoint"} + timeout {fail "(timeout) set h/w watchpoint"} +} + +send_gdb "step\n" +gdb_expect { + -re "Program received signal (SIGBUS|SIGSEGV), (Bus error|Segmentation fault).* in main .*${srcfile}:8.*$gdb_prompt $"\ + {pass "see real signal when h/w watchpoint set"} + -re "$gdb_prompt $"\ + {fail "see real signal when h/w watchpoint set"} + timeout {fail "(timeout) see real signal when h/w watchpoint set"} +} + +remote_exec build "mv ${binfile} ${binfile}.bak" +return 0 Index: sized-enum.exp =================================================================== --- sized-enum.exp (nonexistent) +++ sized-enum.exp (revision 840) @@ -0,0 +1,165 @@ +# Copyright (C) 1997, 1998, 2007, 2008 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . */ + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + +# GDB tests for sized enumerations + +# This is aimed at HP-UX systems. The HP C compiler +# allows specifying "char" or "short" for an enum, to +# indicate that it is 1 or 2 bytes long. + +# This file was written by Satish Pai +# 1997-09-24 + +if $tracelevel then { + strace $tracelevel + } + +# +# test running programs +# +set prms_id 0 +set bug_id 0 + +if { [skip_hp_tests] } then { continue } + +set testfile "sized-enum" +set srcfile ${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +if [get_compiler_info ${binfile}] { + return -1 +} + +if { $gcc_compiled } then { continue } +if {$hp_aCC_compiler} {continue} + +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + untested sized-enum.exp + return -1 +} + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# +# set it up at a breakpoint so we can play with the variable values +# + +if ![runto_main] then { + perror "couldn't run to breakpoint" + continue +} + +# set a breakpoint and go there +send_gdb "break 34\n" +gdb_expect { + -re "Breakpoint.*line 34.*$gdb_prompt $" { pass "set break 34" } + -re "$gdb_prompt $" { fail "set break 34" } + timeout { fail "(timeout) set break 34" } +} +send_gdb "continue\n" +gdb_expect { + -re "Continuing\\.\r\n\r\nBreakpoint \[0-9\]*, main....at.*sized-enum\\.c:34\r\n34.*\r\n$gdb_prompt $" { pass "continue" } + -re "$gdb_prompt $" { fail "continue" } + timeout { fail "(timeout) continue" } +} + +# print stuff +send_gdb "print normal\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{red, blue, green\\}.*$gdb_prompt $" { pass "print normal" } + -re "$gdb_prompt $" { fail "print normal" } + timeout { fail "(timeout) print normal" } +} +send_gdb "print small\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{pink, cyan, grey\\}.*$gdb_prompt $" { pass "print small" } + -re "$gdb_prompt $" { fail "print small" } + timeout { fail "(timeout) print small" } +} +send_gdb "print tiny\n" +gdb_expect { + -re "\\$\[0-9\]* = \\{orange, yellow, brown\\}.*$gdb_prompt $" { pass "print tiny" } + -re "$gdb_prompt $" { fail "print tiny" } + timeout { fail "(timeout) print tiny" } +} + +# print type sizes +send_gdb "print sizeof (Normal)\n" +gdb_expect { + -re "\\$\[0-9\]* = 4.*$gdb_prompt $" { pass "print sizeof (Normal)" } + -re "$gdb_prompt $" { fail "print sizeof (Normal)" } + timeout { fail "(timeout) print sizeof (Normal)" } +} +send_gdb "print sizeof (Small)\n" +gdb_expect { + -re "\\$\[0-9\]* = 2.*$gdb_prompt $" { pass "print sizeof (Small)" } + -re "$gdb_prompt $" { fail "print sizeof (Small)" } + timeout { fail "(timeout) print sizeof (Small)" } +} +send_gdb "print sizeof (Tiny)\n" +gdb_expect { + -re "\\$\[0-9\]* = 1.*$gdb_prompt $" { pass "print sizeof (Tiny)" } + -re "$gdb_prompt $" { fail "print sizeof (Tiny)" } + timeout { fail "(timeout) print sizeof (Tiny)" } +} + +# print types +send_gdb "ptype normal\n" +gdb_expect { + -re "type = enum Normal \\{red, blue, green\\} \\\[3\\\].*$gdb_prompt $" { pass "ptype normal" } + -re "$gdb_prompt $" { fail "ptype normal" } + timeout { fail "(timeout) ptype normal" } +} +send_gdb "ptype small\n" +gdb_expect { + -re "type = short enum Small \\{pink, cyan, grey\\} \\\[3\\\].*$gdb_prompt $" { pass "ptype small" } + -re "$gdb_prompt $" { fail "ptype small" } + timeout { fail "(timeout) ptype small" } +} +send_gdb "ptype tiny\n" +gdb_expect { + -re "type = char enum Tiny \\{orange, yellow, brown\\} \\\[3\\\].*$gdb_prompt $" { pass "ptype tiny" } + -re "$gdb_prompt $" { fail "ptype tiny" } + timeout { fail "(timeout) ptype tiny" } +} + +# convert to int +send_gdb "print (int) blue\n" +gdb_expect { + -re "\\$\[0-9\]* = 1.*$gdb_prompt $" { pass "print (int) blue" } + -re "$gdb_prompt $" { fail "print (int) blue" } + timeout { fail "(timeout) print (int) blue" } +} +send_gdb "print (int) cyan\n" +gdb_expect { + -re "\\$\[0-9\]* = 1.*$gdb_prompt $" { pass "print (int) cyan" } + -re "$gdb_prompt $" { fail "print (int) cyan" } + timeout { fail "(timeout) print (int) cyan" } +} +send_gdb "print (int) yellow\n" +gdb_expect { + -re "\\$\[0-9\]* = 1.*$gdb_prompt $" { pass "print (int) yellow" } + -re "$gdb_prompt $" { fail "print (int) yellow" } + timeout { fail "(timeout) print (int) yellow" } +} + + + Index: reg.s =================================================================== --- reg.s (nonexistent) +++ reg.s (revision 840) @@ -0,0 +1,96 @@ +; assemble as "as -o reg reg.s" +; or +; cc -g -o +DA2.0N +; +; PA-RISC 2.0 register contents test. +; + .level 2.0 + + .code + .export main,ENTRY + .export mainend,CODE + .export lab1,CODE + .space $TEXT$ + .subspa $CODE$ + +main + .proc + .callinfo NO_CALLS,FRAME=0 + .entry + + ;; Test we have right register numbers + ;; + ADD %r0,%r0,%r1 ; 0 + LDI 1,%r1 ; 1 + ;; + ;; Don't put anything into r2 or r3--they are special registers. + ;; + ADD %r1,%r1,%r4 ; 2 + ADD %r4,%r4,%r5 ; 4 + ADD %r5,%r5,%r6 ; 8 + ADD %r6,%r6,%r7 ; 16 + ADD %r7,%r7,%r8 ; 32 + ADD %r8,%r8,%r9 ; 64 + ADD %r9,%r9,%r10 ; 128 + ADD %r10,%r10,%r11 ; 256 + ADD %r11,%r11,%r12 ; 512 + ADD %r12,%r12,%r13 ; 1024 + ADD %r13,%r13,%r14 ; 2048 + ADD %r14,%r14,%r15 ; 4096 + ADD %r15,%r15,%r16 ; 9192 + + ;; Test high bits, to be sure we show them. + ;; + LDI 0xde,%r19 ; "de" + DEPD,Z %r19,55,56,%r19 ; "de00" + LDI 0xad,%r18 ; "ad" + ADD %r18,%r19,%r19 ; "dead" + DEPD,Z %r19,55,56,%r19 ; "dead00" + LDI 0xbe,%r18 ; "be" + ADD %r18,%r19,%r19 ; "deadbe" + DEPD,Z %r19,55,56,%r19 ; "deadbe00" + LDI 0xef,%r18 ; "ef" + ADD %r18,%r19,%r19 ; "deadbeef" + ; + DEPD,Z %r19,55,56,%r19 ; "deadbeef00" + LDI 0xba,%r18 ; "ba" + ADD %r18,%r19,%r19 ; "deadbeefba" + DEPD,Z %r19,55,56,%r19 ; "deadbeefba00" + LDI 0xdc,%r18 ; "dc" + ADD %r18,%r19,%r19 ; "deadbeefbadc" + DEPD,Z %r19,55,56,%r19 ; "deadbeefbadc00" + LDI 0xad,%r18 ; "ad" + ADD %r18,%r19,%r19 ; "deadbeefbadcad" + DEPD,Z %r19,55,56,%r19 ; "deadbeefbadcad00" + LDI 0xee,%r18 ; "ee" + ADD %r18,%r19,%r19 ; "deadbeefbadcadee" + +lab1 ;; Test floating point registers + ;; + LDIL LR'one,%r22 ; + FLDD RR'one(%r22),%fr4 ; 1.0 + FLDD RR'one+8(%r22),%fr5 ; 2.0 + FLDD RR'one+8(%r22),%fr6 ; 2.0 + FMPY,DBL %fr5,%fr6,%fr7 ; 4.0 + FMPY,DBL %fr6,%fr7,%fr8 ; 8.0 + FMPY,DBL %fr7,%fr8,%fr9 ; 32.0 + FMPY,DBL %fr8,%fr9,%fr10 ; 256.0 + + ;; The NOP prevents anything from end.o or crt0.o from + ;; being appended immediately after "mainend". If that + ;; happens, then we may have other labels that have the + ;; same address as "mainend", and thus the debugger + ;; may symbolize this PC to something other than "mainend". +mainend + NOP + .exit + .procend + + .space $TEXT$ + .subspa $CODE$ + .subspa $LIT$ ;; ,QUAD=0,ALIGN=8,ACCESS=0x2c,SORT=16 +one + .align 8 + .stringz "?\xF0\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00" + .end +
reg.s Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: pxdb.c =================================================================== --- pxdb.c (nonexistent) +++ pxdb.c (revision 840) @@ -0,0 +1,37 @@ +#include + +#ifdef PROTOTYPES +int callee (int x) +#else +int callee( x ) +int x; +#endif +{ + int y = x * x; + return (y - 2); +} + +int main() +{ + int i; + for (i = 1; i < 10; i++) + { + printf( "%d ", callee( i )); + + } + printf( " Goodbye!\n" ); + return 0; +} +/* This routine exists only for aCC. The way we compile this test is + that we use aCC for the actual compile into the object file but then + use ld directly for the link. When we do this, we get an undefined + symbol _main(). Therefore, for aCC, we have this routine in here and + ld is happy. */ + +#ifdef __cplusplus +extern "C" { +void _main() +{ +} +} +#endif
pxdb.c Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.