aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-24 22:15:42 -0700
committerTom Tromey <tom@tromey.com>2022-01-05 11:36:33 -0700
commit56c5b29b616e95749d0c99f936340897e14ab252 (patch)
treee6111e339eb0fa728668d3e9447a88d6b7385815 /gdb/hppa-tdep.c
parent7f762abff6e7b2e48c1f4a1d0a087ce4eb5677a7 (diff)
downloadgdb-56c5b29b616e95749d0c99f936340897e14ab252.zip
gdb-56c5b29b616e95749d0c99f936340897e14ab252.tar.gz
gdb-56c5b29b616e95749d0c99f936340897e14ab252.tar.bz2
Use filtered output in *-tdep commands
Various targets introduce their own commands, which then use unfiltered output. It's better to use filtered output by default, so this patch fixes the instances I found.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 6c6e538..32c5435 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -2572,19 +2572,19 @@ unwind_command (const char *exp, int from_tty)
if (!u)
{
- printf_unfiltered ("Can't find unwind table entry for %s\n", exp);
+ printf_filtered ("Can't find unwind table entry for %s\n", exp);
return;
}
- printf_unfiltered ("unwind_table_entry (%s):\n", host_address_to_string (u));
+ printf_filtered ("unwind_table_entry (%s):\n", host_address_to_string (u));
- printf_unfiltered ("\tregion_start = %s\n", hex_string (u->region_start));
+ printf_filtered ("\tregion_start = %s\n", hex_string (u->region_start));
- printf_unfiltered ("\tregion_end = %s\n", hex_string (u->region_end));
+ printf_filtered ("\tregion_end = %s\n", hex_string (u->region_end));
-#define pif(FLD) if (u->FLD) printf_unfiltered (" "#FLD);
+#define pif(FLD) if (u->FLD) printf_filtered (" "#FLD);
- printf_unfiltered ("\n\tflags =");
+ printf_filtered ("\n\tflags =");
pif (Cannot_unwind);
pif (Millicode);
pif (Millicode_save_sr0);
@@ -2609,9 +2609,9 @@ unwind_command (const char *exp, int from_tty)
pif (Large_frame);
pif (alloca_frame);
- putchar_unfiltered ('\n');
+ putchar_filtered ('\n');
-#define pin(FLD) printf_unfiltered ("\t"#FLD" = 0x%x\n", u->FLD);
+#define pin(FLD) printf_filtered ("\t"#FLD" = 0x%x\n", u->FLD);
pin (Region_description);
pin (Entry_FR);
@@ -2620,26 +2620,26 @@ unwind_command (const char *exp, int from_tty)
if (u->stub_unwind.stub_type)
{
- printf_unfiltered ("\tstub type = ");
+ printf_filtered ("\tstub type = ");
switch (u->stub_unwind.stub_type)
{
case LONG_BRANCH:
- printf_unfiltered ("long branch\n");
+ printf_filtered ("long branch\n");
break;
case PARAMETER_RELOCATION:
- printf_unfiltered ("parameter relocation\n");
+ printf_filtered ("parameter relocation\n");
break;
case EXPORT:
- printf_unfiltered ("export\n");
+ printf_filtered ("export\n");
break;
case IMPORT:
- printf_unfiltered ("import\n");
+ printf_filtered ("import\n");
break;
case IMPORT_SHLIB:
- printf_unfiltered ("import shlib\n");
+ printf_filtered ("import shlib\n");
break;
default:
- printf_unfiltered ("unknown (%d)\n", u->stub_unwind.stub_type);
+ printf_filtered ("unknown (%d)\n", u->stub_unwind.stub_type);
}
}
}