projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* ada-lang.c (ada_read_renaming_var_value): Pass const
[deliverable/binutils-gdb.git]
/
gdb
/
cli
/
cli-cmds.c
diff --git
a/gdb/cli/cli-cmds.c
b/gdb/cli/cli-cmds.c
index 0d37d578b451e3f72e59b93b8ec255aa5b300cb0..77da7382d0e17071b5d507b138c56edd4ae98652 100644
(file)
--- a/
gdb/cli/cli-cmds.c
+++ b/
gdb/cli/cli-cmds.c
@@
-1113,20
+1113,22
@@
disassemble_command (char *arg, int from_tty)
const char *name;
CORE_ADDR pc;
int flags;
const char *name;
CORE_ADDR pc;
int flags;
+ const char *p;
+ p = arg;
name = NULL;
flags = 0;
name = NULL;
flags = 0;
- if (
arg && *arg
== '/')
+ if (
p && *p
== '/')
{
{
- ++
arg
;
+ ++
p
;
- if (*
arg
== '\0')
+ if (*
p
== '\0')
error (_("Missing modifier."));
error (_("Missing modifier."));
- while (*
arg && ! isspace (*arg
))
+ while (*
p && ! isspace (*p
))
{
{
- switch (*
arg
++)
+ switch (*
p
++)
{
case 'm':
flags |= DISASSEMBLY_SOURCE;
{
case 'm':
flags |= DISASSEMBLY_SOURCE;
@@
-1139,20
+1141,20
@@
disassemble_command (char *arg, int from_tty)
}
}
}
}
-
arg = skip_spaces (arg
);
+
p = skip_spaces_const (p
);
}
}
- if (!
arg || ! *arg
)
+ if (!
p || ! *p
)
{
flags |= DISASSEMBLY_OMIT_FNAME;
disassemble_current_function (flags);
return;
}
{
flags |= DISASSEMBLY_OMIT_FNAME;
disassemble_current_function (flags);
return;
}
- pc = value_as_address (parse_to_comma_and_eval (&
arg
));
- if (
arg
[0] == ',')
- ++
arg
;
- if (
arg
[0] == '\0')
+ pc = value_as_address (parse_to_comma_and_eval (&
p
));
+ if (
p
[0] == ',')
+ ++
p
;
+ if (
p
[0] == '\0')
{
/* One argument. */
if (find_pc_partial_function (pc, &name, &low, &high) == 0)
{
/* One argument. */
if (find_pc_partial_function (pc, &name, &low, &high) == 0)
@@
-1172,13
+1174,13
@@
disassemble_command (char *arg, int from_tty)
/* Two arguments. */
int incl_flag = 0;
low = pc;
/* Two arguments. */
int incl_flag = 0;
low = pc;
-
arg = skip_spaces (arg
);
- if (
arg
[0] == '+')
+
p = skip_spaces_const (p
);
+ if (
p
[0] == '+')
{
{
- ++
arg
;
+ ++
p
;
incl_flag = 1;
}
incl_flag = 1;
}
- high = parse_and_eval_address (
arg
);
+ high = parse_and_eval_address (
p
);
if (incl_flag)
high += low;
}
if (incl_flag)
high += low;
}
This page took
0.02726 seconds
and
4
git commands to generate.