diff options
author | Tom Tromey <tromey@adacore.com> | 2019-03-12 11:03:03 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-03-12 11:07:43 -0600 |
commit | ffdd69cf7840f3b158de16819591361c8dae3a4d (patch) | |
tree | 0663887ec134b7ba5687dc40935a9cad29b4160f /gdb/source-cache.c | |
parent | ec148c577eaa29f26a943c13b0b66ca3877bb5aa (diff) | |
download | gdb-ffdd69cf7840f3b158de16819591361c8dae3a4d.zip gdb-ffdd69cf7840f3b158de16819591361c8dae3a4d.tar.gz gdb-ffdd69cf7840f3b158de16819591361c8dae3a4d.tar.bz2 |
Make remote.c ptid constants "const"
This changes magic_null_ptid, not_sent_ptid, and any_thread_ptid to be
"const". This is a minor improvement that makes it so these can't be
accidentally modified.
Tested by rebuilding. I'm checking this in.
gdb/ChangeLog
2019-03-12 Tom Tromey <tromey@adacore.com>
* remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
const. Add initializers.
(_initialize_remote): Don't initialize ptid globals.
Diffstat (limited to 'gdb/source-cache.c')
0 files changed, 0 insertions, 0 deletions