mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
* value.h (common_val_print): Return void.
* valprint.c (common_val_print): Return void.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-03-01 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* value.h (common_val_print): Return void.
|
||||||
|
* valprint.c (common_val_print): Return void.
|
||||||
|
|
||||||
2012-03-01 Tom Tromey <tromey@redhat.com>
|
2012-03-01 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* value.h (value_print): Return void.
|
* value.h (value_print): Return void.
|
||||||
|
@ -432,19 +432,16 @@ value_check_printable (struct value *val, struct ui_file *stream,
|
|||||||
/* Print using the given LANGUAGE the value VAL onto stream STREAM according
|
/* Print using the given LANGUAGE the value VAL onto stream STREAM according
|
||||||
to OPTIONS.
|
to OPTIONS.
|
||||||
|
|
||||||
If the data are a string pointer, returns the number of string characters
|
|
||||||
printed.
|
|
||||||
|
|
||||||
This is a preferable interface to val_print, above, because it uses
|
This is a preferable interface to val_print, above, because it uses
|
||||||
GDB's value mechanism. */
|
GDB's value mechanism. */
|
||||||
|
|
||||||
int
|
void
|
||||||
common_val_print (struct value *val, struct ui_file *stream, int recurse,
|
common_val_print (struct value *val, struct ui_file *stream, int recurse,
|
||||||
const struct value_print_options *options,
|
const struct value_print_options *options,
|
||||||
const struct language_defn *language)
|
const struct language_defn *language)
|
||||||
{
|
{
|
||||||
if (!value_check_printable (val, stream, options))
|
if (!value_check_printable (val, stream, options))
|
||||||
return 0;
|
return;
|
||||||
|
|
||||||
if (language->la_language == language_ada)
|
if (language->la_language == language_ada)
|
||||||
/* The value might have a dynamic type, which would cause trouble
|
/* The value might have a dynamic type, which would cause trouble
|
||||||
@ -453,10 +450,10 @@ common_val_print (struct value *val, struct ui_file *stream, int recurse,
|
|||||||
get a fixed representation of our value. */
|
get a fixed representation of our value. */
|
||||||
val = ada_to_fixed_value (val);
|
val = ada_to_fixed_value (val);
|
||||||
|
|
||||||
return val_print (value_type (val), value_contents_for_printing (val),
|
val_print (value_type (val), value_contents_for_printing (val),
|
||||||
value_embedded_offset (val), value_address (val),
|
value_embedded_offset (val), value_address (val),
|
||||||
stream, recurse,
|
stream, recurse,
|
||||||
val, options, language);
|
val, options, language);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print on stream STREAM the value VAL according to OPTIONS. The value
|
/* Print on stream STREAM the value VAL according to OPTIONS. The value
|
||||||
|
@ -824,10 +824,10 @@ extern int val_print (struct type *type, const gdb_byte *valaddr,
|
|||||||
const struct value_print_options *options,
|
const struct value_print_options *options,
|
||||||
const struct language_defn *language);
|
const struct language_defn *language);
|
||||||
|
|
||||||
extern int common_val_print (struct value *val,
|
extern void common_val_print (struct value *val,
|
||||||
struct ui_file *stream, int recurse,
|
struct ui_file *stream, int recurse,
|
||||||
const struct value_print_options *options,
|
const struct value_print_options *options,
|
||||||
const struct language_defn *language);
|
const struct language_defn *language);
|
||||||
|
|
||||||
extern int val_print_string (struct type *elttype, const char *encoding,
|
extern int val_print_string (struct type *elttype, const char *encoding,
|
||||||
CORE_ADDR addr, int len,
|
CORE_ADDR addr, int len,
|
||||||
|
Reference in New Issue
Block a user