This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] constify null_ptid and minus_one_ptid
- From: Tom Tromey <tromey at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 4 Mar 2019 13:25:14 -0700
- Subject: [PATCH 0/2] constify null_ptid and minus_one_ptid
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