Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA 0/4] finish command constification
@ 2017-10-16  3:22 Tom Tromey
  2017-10-16  3:22 ` [RFA 2/4] Remove cmd_cfunc_ftype Tom Tromey
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Tom Tromey @ 2017-10-16  3:22 UTC (permalink / raw)
  To: gdb-patches

This series completes my command constification efforts.  This turned
out to be much simpler than I had anticipated; partly because I
started automating some of the changes, and partly because C++ makes
some incremental refactorings simpler -- as discussed before, in this
case by allowing the introduction of const overloads.

This series touches some files I can't compile.  I made a best effort
to inspect them for const correctness; but it's hard to be sure.
Given the experience of this series as a whole, I think it is safe to
say that any required changes will be minimal.

These patches point out that a number of spots in gdb were not really
const-correct.  For example there was code like:

    some_command ((char *) "a constant"), ...)

These weren't actually unsafe but nevertheless were ugly.

Regression tested by the buildbot.

Tom


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-11-08  9:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-16  3:22 [RFA 0/4] finish command constification Tom Tromey
2017-10-16  3:22 ` [RFA 2/4] Remove cmd_cfunc_ftype Tom Tromey
2017-11-06 11:58   ` Yao Qi
2017-11-06 16:39     ` Tom Tromey
2017-10-16  3:23 ` [RFA 4/4] Constify execute_command Tom Tromey
2017-10-16  3:23 ` [RFA 1/4] Constify add_info Tom Tromey
2017-10-16  3:23 ` [RFA 3/4] Constify add_setshow_* Tom Tromey
2017-11-05 16:52 ` [RFA 0/4] finish command constification Tom Tromey
2017-11-06 12:03 ` Yao Qi
2017-11-07 20:55   ` Tom Tromey
2017-11-08  9:50     ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox