Rename fprintf_symbol_filtered
fprintf_symbol_filtered is misnamed, because whether filtering happens is now up to the stream. This renames it to fprintf_symbol, which isn't a great name (the first "f" doesn't mean much and the second one is truly meaningless here), but "print_symbol" was already taken.
This commit is contained in:
parent
9fbf7f083e
commit
bed009b9d8
6 changed files with 21 additions and 21 deletions
|
@ -283,9 +283,9 @@ cp_type_print_method_args (struct type *mtype, const char *prefix,
|
||||||
int varargs = mtype->has_varargs ();
|
int varargs = mtype->has_varargs ();
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
fprintf_symbol_filtered (stream, prefix,
|
fprintf_symbol (stream, prefix,
|
||||||
language_cplus, DMGL_ANSI);
|
language_cplus, DMGL_ANSI);
|
||||||
fprintf_symbol_filtered (stream, varstring,
|
fprintf_symbol (stream, varstring,
|
||||||
language_cplus, DMGL_ANSI);
|
language_cplus, DMGL_ANSI);
|
||||||
gdb_puts ("(", stream);
|
gdb_puts ("(", stream);
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ cp_print_value_fields (struct value *val, struct ui_file *stream,
|
||||||
if (field_is_static (&type->field (i)))
|
if (field_is_static (&type->field (i)))
|
||||||
{
|
{
|
||||||
gdb_puts ("static ", stream);
|
gdb_puts ("static ", stream);
|
||||||
fprintf_symbol_filtered (stream,
|
fprintf_symbol (stream,
|
||||||
type->field (i).name (),
|
type->field (i).name (),
|
||||||
current_language->la_language,
|
current_language->la_language,
|
||||||
DMGL_PARAMS | DMGL_ANSI);
|
DMGL_PARAMS | DMGL_ANSI);
|
||||||
|
|
|
@ -582,7 +582,7 @@ pascal_object_print_value_fields (struct value *val, struct ui_file *stream,
|
||||||
if (field_is_static (&type->field (i)))
|
if (field_is_static (&type->field (i)))
|
||||||
{
|
{
|
||||||
gdb_puts ("static ", stream);
|
gdb_puts ("static ", stream);
|
||||||
fprintf_symbol_filtered (stream,
|
fprintf_symbol (stream,
|
||||||
type->field (i).name (),
|
type->field (i).name (),
|
||||||
current_language->la_language,
|
current_language->la_language,
|
||||||
DMGL_PARAMS | DMGL_ANSI);
|
DMGL_PARAMS | DMGL_ANSI);
|
||||||
|
|
|
@ -1633,7 +1633,7 @@ info_address_command (const char *exp, int from_tty)
|
||||||
if (is_a_field_of_this.type != NULL)
|
if (is_a_field_of_this.type != NULL)
|
||||||
{
|
{
|
||||||
gdb_printf ("Symbol \"");
|
gdb_printf ("Symbol \"");
|
||||||
fprintf_symbol_filtered (gdb_stdout, exp,
|
fprintf_symbol (gdb_stdout, exp,
|
||||||
current_language->la_language, DMGL_ANSI);
|
current_language->la_language, DMGL_ANSI);
|
||||||
gdb_printf ("\" is a field of the local class variable ");
|
gdb_printf ("\" is a field of the local class variable ");
|
||||||
if (current_language->la_language == language_objc)
|
if (current_language->la_language == language_objc)
|
||||||
|
@ -1653,7 +1653,7 @@ info_address_command (const char *exp, int from_tty)
|
||||||
load_addr = BMSYMBOL_VALUE_ADDRESS (msymbol);
|
load_addr = BMSYMBOL_VALUE_ADDRESS (msymbol);
|
||||||
|
|
||||||
gdb_printf ("Symbol \"");
|
gdb_printf ("Symbol \"");
|
||||||
fprintf_symbol_filtered (gdb_stdout, exp,
|
fprintf_symbol (gdb_stdout, exp,
|
||||||
current_language->la_language, DMGL_ANSI);
|
current_language->la_language, DMGL_ANSI);
|
||||||
gdb_printf ("\" is at ");
|
gdb_printf ("\" is at ");
|
||||||
fputs_styled (paddress (gdbarch, load_addr), address_style.style (),
|
fputs_styled (paddress (gdbarch, load_addr), address_style.style (),
|
||||||
|
|
|
@ -1913,13 +1913,13 @@ print_spaces (int n, struct ui_file *stream)
|
||||||
|
|
||||||
/* C++/ObjC demangler stuff. */
|
/* C++/ObjC demangler stuff. */
|
||||||
|
|
||||||
/* fprintf_symbol_filtered attempts to demangle NAME, a symbol in language
|
/* fprintf_symbol attempts to demangle NAME, a symbol in language
|
||||||
LANG, using demangling args ARG_MODE, and print it filtered to STREAM.
|
LANG, using demangling args ARG_MODE, and print it filtered to STREAM.
|
||||||
If the name is not mangled, or the language for the name is unknown, or
|
If the name is not mangled, or the language for the name is unknown, or
|
||||||
demangling is off, the name is printed in its "raw" form. */
|
demangling is off, the name is printed in its "raw" form. */
|
||||||
|
|
||||||
void
|
void
|
||||||
fprintf_symbol_filtered (struct ui_file *stream, const char *name,
|
fprintf_symbol (struct ui_file *stream, const char *name,
|
||||||
enum language lang, int arg_mode)
|
enum language lang, int arg_mode)
|
||||||
{
|
{
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
|
|
|
@ -305,7 +305,7 @@ extern const char *print_core_address (struct gdbarch *gdbarch,
|
||||||
|
|
||||||
extern CORE_ADDR string_to_core_addr (const char *my_string);
|
extern CORE_ADDR string_to_core_addr (const char *my_string);
|
||||||
|
|
||||||
extern void fprintf_symbol_filtered (struct ui_file *, const char *,
|
extern void fprintf_symbol (struct ui_file *, const char *,
|
||||||
enum language, int);
|
enum language, int);
|
||||||
|
|
||||||
extern void throw_perror_with_name (enum errors errcode, const char *string)
|
extern void throw_perror_with_name (enum errors errcode, const char *string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue