summaryrefslogtreecommitdiffstats
path: root/gdb/symtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index e6cbbc6110..60b7211064 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -972,7 +972,8 @@ find_pc_symtab (pc)
will cause a core dump), but maybe we can successfully
continue, so let's not. */
warning ("\
-(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
+(Internal error: pc 0x%lx in read in psymtab, but not in symtab.)\n",
+ (unsigned long) pc);
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);
@@ -2585,8 +2586,8 @@ list_symbols (regexp, class, bpt)
printf_filtered ("\nNon-debugging symbols:\n");
found_in_file = 1;
}
- printf_filtered (" %08x %s\n",
- SYMBOL_VALUE_ADDRESS (msymbol),
+ printf_filtered (" %08lx %s\n",
+ (unsigned long) SYMBOL_VALUE_ADDRESS (msymbol),
SYMBOL_SOURCE_NAME (msymbol));
}
}
OpenPOWER on IntegriCloud