mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 11:39:26 +08:00
* configure: Update aclocal.m4 and re-run autoconf to get correct
defs for BFD stuff. * remote-wiggler.c (wiggler_error): Error codes are hex. Also, fix default message generation.
This commit is contained in:
@ -1,3 +1,10 @@
|
||||
Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
|
||||
|
||||
* configure: Update aclocal.m4 and re-run autoconf to get correct
|
||||
defs for BFD stuff.
|
||||
* remote-wiggler.c (wiggler_error): Error codes are hex. Also,
|
||||
fix default message generation.
|
||||
|
||||
Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
|
||||
|
||||
* Makefile.in: Add mswin to SUBDIRS. Add rules for
|
||||
|
152
gdb/configure
vendored
152
gdb/configure
vendored
@ -1869,9 +1869,147 @@ EOF
|
||||
fi
|
||||
|
||||
|
||||
BFD_NEED_DECLARATION(malloc)
|
||||
BFD_NEED_DECLARATION(realloc)
|
||||
BFD_NEED_DECLARATION(free)
|
||||
echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1878 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#else
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
int main() { return 0; }
|
||||
int t() {
|
||||
char *(*pfn) = (char *(*)) malloc
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_malloc=no
|
||||
else
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_malloc=yes
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
|
||||
echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
|
||||
if test $bfd_cv_decl_needed_malloc = yes; then
|
||||
bfd_tr_decl=NEED_DECLARATION_`echo malloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
cat >> confdefs.h <<EOF
|
||||
#define $bfd_tr_decl 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1925 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#else
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
int main() { return 0; }
|
||||
int t() {
|
||||
char *(*pfn) = (char *(*)) realloc
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_realloc=no
|
||||
else
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_realloc=yes
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
|
||||
echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
|
||||
if test $bfd_cv_decl_needed_realloc = yes; then
|
||||
bfd_tr_decl=NEED_DECLARATION_`echo realloc | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
cat >> confdefs.h <<EOF
|
||||
#define $bfd_tr_decl 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
|
||||
if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 1972 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#else
|
||||
#ifdef HAVE_STRINGS_H
|
||||
#include <strings.h>
|
||||
#endif
|
||||
#endif
|
||||
#ifdef HAVE_STDLIB_H
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
int main() { return 0; }
|
||||
int t() {
|
||||
char *(*pfn) = (char *(*)) free
|
||||
; return 0; }
|
||||
EOF
|
||||
if { (eval echo configure:1994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_free=no
|
||||
else
|
||||
rm -rf conftest*
|
||||
bfd_cv_decl_needed_free=yes
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
|
||||
echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
|
||||
if test $bfd_cv_decl_needed_free = yes; then
|
||||
bfd_tr_decl=NEED_DECLARATION_`echo free | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
||||
cat >> confdefs.h <<EOF
|
||||
#define $bfd_tr_decl 1
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2266,12 +2404,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2270 "configure"
|
||||
#line 2408 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <tclInt.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:2413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
@ -2398,12 +2536,12 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
|
||||
echo $ac_n "(cached) $ac_c" 1>&6
|
||||
else
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 2402 "configure"
|
||||
#line 2540 "configure"
|
||||
#include "confdefs.h"
|
||||
#include <tk.h>
|
||||
EOF
|
||||
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
|
||||
{ (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
{ (eval echo configure:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
|
||||
ac_err=`grep -v '^ *+' conftest.out`
|
||||
if test -z "$ac_err"; then
|
||||
rm -rf conftest*
|
||||
|
@ -198,19 +198,22 @@ wiggler_error (s, error_code)
|
||||
|
||||
switch (error_code)
|
||||
{
|
||||
case 1: s = "Unknown fault"; break;
|
||||
case 2: s = "Power failed"; break;
|
||||
case 3: s = "Cable disconnected"; break;
|
||||
case 4: s = "Couldn't enter BDM"; break;
|
||||
case 5: s = "Target stuck in reset"; break;
|
||||
case 6: s = "Port not configured"; break;
|
||||
case 7: s = "Write verify failed"; break;
|
||||
case 11: s = "Bus error"; break;
|
||||
case 12: s = "Checksum error"; break;
|
||||
case 13: s = "Illegal command"; break;
|
||||
case 14: s = "Parameter error"; break;
|
||||
case 0x1: s = "Unknown fault"; break;
|
||||
case 0x2: s = "Power failed"; break;
|
||||
case 0x3: s = "Cable disconnected"; break;
|
||||
case 0x4: s = "Couldn't enter BDM"; break;
|
||||
case 0x5: s = "Target stuck in reset"; break;
|
||||
case 0x6: s = "Port not configured"; break;
|
||||
case 0x7: s = "Write verify failed"; break;
|
||||
case 0x11: s = "Bus error"; break;
|
||||
case 0x12: s = "Checksum error"; break;
|
||||
case 0x13: s = "Illegal command"; break;
|
||||
case 0x14: s = "Parameter error"; break;
|
||||
case 0x15: s = "Internal error"; break;
|
||||
case 0x16: s = "Register buffer error"; break;
|
||||
default:
|
||||
sprintf (buf, "Unknown error code %d", error_code);
|
||||
s = buf;
|
||||
}
|
||||
|
||||
error (s);
|
||||
|
Reference in New Issue
Block a user