Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] constify null_ptid and minus_one_ptid
@ 2019-03-04 20:25 Tom Tromey
  2019-03-04 20:25 ` [PATCH 2/2] Make null_ptid and minus_one_ptid "const" Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tom Tromey @ 2019-03-04 20:25 UTC (permalink / raw)
  To: gdb-patches

I noticed that null_ptid and minus_one_ptid should probably be const,
to avoid accidental assignments.

This mostly went fine, except some calls to iterate_over_lwps would
have had to cast away const in order to work.  To avoid this, I
changed this function to accept a gdb::function_view.

Regression tested by the buildbot.

Tom



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

end of thread, other threads:[~2019-03-12 16:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-04 20:25 [PATCH 0/2] constify null_ptid and minus_one_ptid Tom Tromey
2019-03-04 20:25 ` [PATCH 2/2] Make null_ptid and minus_one_ptid "const" Tom Tromey
2019-03-04 23:30   ` Kevin Buettner
2019-03-04 20:25 ` [PATCH 1/2] Change iterate_over_lwps to take a gdb::function_view Tom Tromey
2019-03-04 23:28   ` Kevin Buettner
2019-03-12 16:46 ` [PATCH 0/2] constify null_ptid and minus_one_ptid Tom Tromey

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