* utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Call

fputs_unfiltered and exit directly, rather than fatal.  The latter
	calls vfprintf_unfiltered!

	* gdbtypes.h, gdbtypes.c (can_dereference): New function.
	* value.h, printcmd.c (print_value_flags): Move from here...
	* annotate.c: ...to here, and make it use can_dereference.
This commit is contained in:
Jim Kingdon 1994-05-17 20:13:50 +00:00
parent ee8b834600
commit 9c036bd836
6 changed files with 44 additions and 15 deletions

View file

@ -21,7 +21,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "annotate.h"
#include "value.h"
#include "target.h"
#include "gdbtypes.h"
static void print_value_flags PARAMS ((struct type *));
static void
print_value_flags (t)
struct type *t;
{
if (can_dereference (t))
printf_filtered ("*");
else
printf_filtered ("-");
}
void
breakpoints_changed ()
{