[RFA 4/4] Constify parse_linesepc
Keith Seitz
keiths@redhat.com
Mon Sep 30 18:57:00 GMT 2013
Hi,
This last patch const-ifies a fair bit of linespec.c around parse_linespec.
Tested as in all previous patches.
Keith
ChangeLog
2013-09-24 Keith Seitz <keiths@redhat.com>
* linespec.c (struct ls_parser): Make 'saved_arg' const.
(parse_linespec): Make 'argptr' const.
Remove temporary cast of 'argptr' to const char **.
(decode_line_full): Pass const pointer to parse_linespec.
(decode_line_1): Likewise.
(decode_objc): Make local variable 'new_argptr' const.
(find_function_symbols): Remove temporary cast to char *
to find_imps.
* objc-lang.c (find_imps): Make argument 'method' const.
Return const.
* objc-lang.h (find_imps): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constify-parse_linespec.patch
Type: text/x-patch
Size: 4843 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20130930/bb6d2ff8/attachment.bin>
More information about the Gdb-patches
mailing list