diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-29 16:39:13 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-29 16:39:13 -0400 |
commit | 31282a849107d95d3cfe115ba160f976dd99844c (patch) | |
tree | a4b5c21ff798c0540880653ad146820cbf090891 /gdb/target.h | |
parent | ac9b8c676e9f52c5238bbc61a2cdd27e3d59db10 (diff) | |
download | gdb-31282a849107d95d3cfe115ba160f976dd99844c.zip gdb-31282a849107d95d3cfe115ba160f976dd99844c.tar.gz gdb-31282a849107d95d3cfe115ba160f976dd99844c.tar.bz2 |
gdb: constify target_stack::is_pushed
The target_ops parameters here can be made const.
Change-Id: Ibc18b17d6b21d06145251a03e68aca90538117d6
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index 0b78427..8e13ada 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1385,7 +1385,7 @@ public: bool unpush (target_ops *t); /* Returns true if T is pushed on the target stack. */ - bool is_pushed (target_ops *t) const + bool is_pushed (const target_ops *t) const { return at (t->stratum ()) == t; } /* Return the target at STRATUM. */ |