aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/inferior.h2
-rw-r--r--gdb/target.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 0178001..bb3aec1 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -369,7 +369,7 @@ public:
int unpush_target (struct target_ops *t);
/* Returns true if T is pushed in this inferior's target stack. */
- bool target_is_pushed (target_ops *t)
+ bool target_is_pushed (const target_ops *t)
{ return m_target_stack.is_pushed (t); }
/* Find the target beneath T in this inferior's target stack. */
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. */