* 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

@@ -88,19 +88,6 @@ int current_display_number;
int inspect_it = 0;
void
print_value_flags (t)
struct type *t;
{
/* FIXME: Should we be printing * for references as well as pointers? */
if (t != NULL
&& TYPE_CODE (t) == TYPE_CODE_PTR
&& TYPE_CODE (TYPE_TARGET_TYPE (t)) != TYPE_CODE_VOID)
printf_filtered ("*");
else
printf_filtered ("-");
}
struct display
{
/* Chain link to next auto-display item. */