From 9ad8c5832d0092e1c02069b1189ec0ff59089957 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 30 May 2024 14:53:53 -0400 Subject: gdb: make progspace::exec_filename private, add getter / setter Just like the title says... I think this makes things a bit clearer, for instance where the exec filename is set. It also makes the read call sites a bit nicer, avoiding the `.get ()`. Change-Id: If8b58ae8f6270c8a34b868f6ca06128c6671ea3c Approved-By: Tom Tromey --- gdb/python/py-progspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/python/py-progspace.c') diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index a5b22ce..5bc0015 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -148,7 +148,7 @@ pspy_get_exec_file (PyObject *self, void *closure) PSPY_REQUIRE_VALID (obj); - const char *filename = obj->pspace->exec_filename.get (); + const char *filename = obj->pspace->exec_filename (); if (filename != nullptr) return host_string_to_python_string (filename).release (); -- cgit v1.1