* [pushed] gdb: constify inferior::target_is_pushed
@ 2022-10-03 13:34 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-10-03 13:34 UTC (permalink / raw)
To: gdb-patches
Change-Id: Ia4143b9c63cb76e2c824ba773c66f5c5cd94b2aa
---
gdb/inferior.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/inferior.h b/gdb/inferior.h
index bb3aec1e8f80..27765304ece8 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -369,7 +369,7 @@ class inferior : public refcounted_object,
int unpush_target (struct target_ops *t);
/* Returns true if T is pushed in this inferior's target stack. */
- bool target_is_pushed (const target_ops *t)
+ bool target_is_pushed (const target_ops *t) const
{ return m_target_stack.is_pushed (t); }
/* Find the target beneath T in this inferior's target stack. */
base-commit: e63ae49b6a87b779714c1dc922479a76882af977
--
2.37.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-03 13:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-03 13:34 [pushed] gdb: constify inferior::target_is_pushed Simon Marchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).