Constification of parse_linespec and fallout:
https://sourceware.org/ml/gdb-patches/2013-09/msg01017.html https://sourceware.org/ml/gdb-patches/2013-09/msg01018.html https://sourceware.org/ml/gdb-patches/2013-09/msg01019.html https://sourceware.org/ml/gdb-patches/2013-09/msg01020.html
This commit is contained in:
parent
62574b938f
commit
d7561cbbf2
26 changed files with 289 additions and 132 deletions
|
@ -1412,7 +1412,7 @@ host_char_to_target (struct gdbarch *gdbarch, int c, int *target_c)
|
|||
after the zeros. A value of 0 does not mean end of string. */
|
||||
|
||||
int
|
||||
parse_escape (struct gdbarch *gdbarch, char **string_ptr)
|
||||
parse_escape (struct gdbarch *gdbarch, const char **string_ptr)
|
||||
{
|
||||
int target_char = -2; /* Initialize to avoid GCC warnings. */
|
||||
int c = *(*string_ptr)++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue