aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-20 21:54:11 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit652099717dbb767c9d3eaed4c533486dd99d5e5b (patch)
tree1165879a9bb9e6d433559addb0e492e602d7c4c5 /gdb/guile
parent012cfab919e7da355b2ac7f86674211cbce26041 (diff)
downloadgdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.zip
gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.gz
gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.bz2
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method. Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
Diffstat (limited to 'gdb/guile')
-rw-r--r--gdb/guile/scm-symtab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/guile/scm-symtab.c b/gdb/guile/scm-symtab.c
index e2a90e5..d1a5056 100644
--- a/gdb/guile/scm-symtab.c
+++ b/gdb/guile/scm-symtab.c
@@ -109,7 +109,7 @@ stscm_eq_symtab_smob (const void *ap, const void *bp)
static htab_t
stscm_objfile_symtab_map (struct symtab *symtab)
{
- struct objfile *objfile = SYMTAB_OBJFILE (symtab);
+ struct objfile *objfile = symtab->objfile ();
htab_t htab = (htab_t) objfile_data (objfile, stscm_objfile_data_key);
if (htab == NULL)
@@ -348,7 +348,7 @@ gdbscm_symtab_objfile (SCM self)
= stscm_get_valid_symtab_smob_arg_unsafe (self, SCM_ARG1, FUNC_NAME);
const struct symtab *symtab = st_smob->symtab;
- return ofscm_scm_from_objfile (SYMTAB_OBJFILE (symtab));
+ return ofscm_scm_from_objfile (symtab->objfile ());
}
/* (symtab-global-block <gdb:symtab>) -> <gdb:block>
@@ -366,7 +366,7 @@ gdbscm_symtab_global_block (SCM self)
blockvector = symtab->blockvector ();
block = BLOCKVECTOR_BLOCK (blockvector, GLOBAL_BLOCK);
- return bkscm_scm_from_block (block, SYMTAB_OBJFILE (symtab));
+ return bkscm_scm_from_block (block, symtab->objfile ());
}
/* (symtab-static-block <gdb:symtab>) -> <gdb:block>
@@ -384,7 +384,7 @@ gdbscm_symtab_static_block (SCM self)
blockvector = symtab->blockvector ();
block = BLOCKVECTOR_BLOCK (blockvector, STATIC_BLOCK);
- return bkscm_scm_from_block (block, SYMTAB_OBJFILE (symtab));
+ return bkscm_scm_from_block (block, symtab->objfile ());
}
/* Administrivia for sal (symtab-and-line) smobs. */