This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2] Make null_ptid and minus_one_ptid "const"


On Mon,  4 Mar 2019 13:25:16 -0700
Tom Tromey <tromey@adacore.com> wrote:

> This makes null_ptid and minus_one_ptid "const".  I think this is an
> improvement because it means they can't be accidentally modified.
> 
> xgdb/ChangeLog
> 2019-03-04  Tom Tromey  <tromey@adacore.com>
> 
> 	* common/ptid.c (null_ptid, minus_one_ptid): Now const.
> 	* common/ptid.h (null_ptid, minus_one_ptid): Now const.

LGTM.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]