From dd6007359647d3873d1cb777660b7e0ef0b9352f Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 17 Feb 1998 22:42:02 +0000 Subject: [PATCH] Tue Feb 17 14:28:33 1998 Peter Schauer * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE. * configure.in: Ditto. * configure: Regenerated. Tue Feb 17 14:07:34 1998 Peter Schauer * gdbtypes.c (check_typedef): Do not try to resolve the length of a type which has TYPE_FLAG_TARGET_STUB set, if the target type has set TYPE_FLAG_TARGET_STUB as well. Patches from Peter. --- gdb/ChangeLog | 12 ++++++++++++ gdb/acconfig.h | 2 +- gdb/configure | 5 ++--- gdb/configure.in | 2 +- gdb/gdbtypes.c | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 80e7ec7b3fd..702ea22e2d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Tue Feb 17 14:28:33 1998 Peter Schauer + + * acconfig.h: FORCE_MMCHECK changed to MMCHECK_FORCE. + * configure.in: Ditto. + * configure: Regenerated. + +Tue Feb 17 14:07:34 1998 Peter Schauer + + * gdbtypes.c (check_typedef): Do not try to resolve the length of + a type which has TYPE_FLAG_TARGET_STUB set, if the target type has + set TYPE_FLAG_TARGET_STUB as well. + Tue Feb 17 14:32:18 1998 Andrew Cagney * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): diff --git a/gdb/acconfig.h b/gdb/acconfig.h index 3978e0d2285..20908e8e813 100644 --- a/gdb/acconfig.h +++ b/gdb/acconfig.h @@ -44,4 +44,4 @@ to initialize mmalloc, and we want to force checking to be used anyway. This may cause spurious memory corruption messages if the runtime tries to explicitly deallocate that memory when gdb calls exit. */ -#undef FORCE_MMCHECK +#undef MMCHECK_FORCE diff --git a/gdb/configure b/gdb/configure index ca0fbf6b29e..916e6023b4f 100755 --- a/gdb/configure +++ b/gdb/configure @@ -2517,7 +2517,7 @@ if test x$want_mmalloc = xtrue; then EOF cat >> confdefs.h <<\EOF -#define FORCE_MMCHECK 1 +#define MMCHECK_FORCE 1 EOF MMALLOC_CFLAGS="-I$srcdir/../mmalloc" @@ -3446,8 +3446,7 @@ echo "configure:3446: checking for executable suffix" >&5 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - -if test "$CYGWIN32" = yes -o "$MINGW32" = yes; then + if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else cat > am_c_test.c << 'EOF' diff --git a/gdb/configure.in b/gdb/configure.in index 4e8793c9db7..c2d01ab8b0a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -279,7 +279,7 @@ esac],[want_mmalloc=false])dnl if test x$want_mmalloc = xtrue; then AC_DEFINE(USE_MMALLOC) - AC_DEFINE(FORCE_MMCHECK) + AC_DEFINE(MMCHECK_FORCE) MMALLOC_CFLAGS="-I$srcdir/../mmalloc" MMALLOC='../mmalloc/libmmalloc.a' fi diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 2f4e411fb30..d1bfa98ba3d 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -989,7 +989,7 @@ check_typedef (type) struct type *range_type; struct type *target_type = check_typedef (TYPE_TARGET_TYPE (type)); - if (TYPE_FLAGS (target_type) & TYPE_FLAG_STUB) + if (TYPE_FLAGS (target_type) & (TYPE_FLAG_STUB | TYPE_FLAG_TARGET_STUB)) { } else if (TYPE_CODE (type) == TYPE_CODE_ARRAY && TYPE_NFIELDS (type) == 1 -- 2.30.2