From: Peter Schauer Date: Sun, 20 Oct 1996 11:41:30 +0000 (+0000) Subject: * corelow.c (core_close): Clear inferior_pid only if there is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=972256e712d8fa041244f75ec25c4deba13df787;p=binutils-gdb.git * corelow.c (core_close): Clear inferior_pid only if there is an open core_bfd. * cp-valprint.c (cp_print_value_fields): Pass correct address to val_print, not 0. From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de): * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase typedefs before checking for integral type of right operand. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bea4a5c4489..f0ce5581bd7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,15 @@ +Sun Oct 20 04:38:39 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) + + * corelow.c (core_close): Clear inferior_pid only if there is + an open core_bfd. + + * cp-valprint.c (cp_print_value_fields): Pass correct address + to val_print, not 0. + + From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de): + * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase + typedefs before checking for integral type of right operand. + Fri Oct 18 17:26:22 1996 Mark Alexander * mdebugread.c (parse_symbol): Fix crash when malloc has diff --git a/gdb/corelow.c b/gdb/corelow.c index 1bbc47c218e..c3ddebbd26d 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -1,5 +1,5 @@ /* Core dump and executable file functions below target vector, for GDB. - Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995 + Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -80,10 +80,10 @@ core_close (quitting) { char *name; - inferior_pid = 0; /* Avoid confusion from thread stuff */ - if (core_bfd) { + inferior_pid = 0; /* Avoid confusion from thread stuff */ + name = bfd_get_filename (core_bfd); if (!bfd_close (core_bfd)) warning ("cannot close \"%s\": %s", diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 48f490518c6..b2015c7a304 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -351,7 +351,8 @@ cp_print_value_fields (type, valaddr, address, stream, format, recurse, pretty, { val_print (TYPE_FIELD_TYPE (type, i), valaddr + TYPE_FIELD_BITPOS (type, i) / 8, - 0, stream, format, 0, recurse + 1, pretty); + address + TYPE_FIELD_BITPOS (type, i) / 8, + stream, format, 0, recurse + 1, pretty); } } annotate_field_end ();