projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: visium: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git]
/
gdb
/
printcmd.c
diff --git
a/gdb/printcmd.c
b/gdb/printcmd.c
index f7674cf1d0107389c1fb35d0d091dc169e769358..77cdd77a16115e7bce27deec51ffab0d9ea10759 100644
(file)
--- a/
gdb/printcmd.c
+++ b/
gdb/printcmd.c
@@
-1152,6
+1152,9
@@
print_command_parse_format (const char **expp, const char *cmdname,
{
const char *exp = *expp;
{
const char *exp = *expp;
+ /* opts->raw value might already have been set by 'set print raw-values'
+ or by using 'print -raw-values'.
+ So, do not set opts->raw to 0, only set it to 1 if /r is given. */
if (exp && *exp == '/')
{
format_data fmt;
if (exp && *exp == '/')
{
format_data fmt;
@@
-1162,12
+1165,11
@@
print_command_parse_format (const char **expp, const char *cmdname,
last_format = fmt.format;
opts->format = fmt.format;
last_format = fmt.format;
opts->format = fmt.format;
- opts->raw = fmt.raw;
+ opts->raw =
opts->raw ||
fmt.raw;
}
else
{
opts->format = 0;
}
else
{
opts->format = 0;
- opts->raw = 0;
}
*expp = exp;
}
*expp = exp;
@@
-1365,7
+1367,7
@@
info_symbol_command (const char *arg, int from_tty)
gdb_assert (osect->objfile && objfile_name (osect->objfile));
obj_name = objfile_name (osect->objfile);
gdb_assert (osect->objfile && objfile_name (osect->objfile));
obj_name = objfile_name (osect->objfile);
- if (
MULTI_OBJFILE_P
())
+ if (
current_program_space->multi_objfile_p
())
if (pc_in_unmapped_range (addr, osect))
if (section_is_overlay (osect))
printf_filtered (_("%s in load address range of "
if (pc_in_unmapped_range (addr, osect))
if (section_is_overlay (osect))
printf_filtered (_("%s in load address range of "
This page took
0.024416 seconds
and
4
git commands to generate.