#include "expression.h"
#include "parser-defs.h"
-#include "gdb_assert.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "gdb_obstack.h"
-#include <string.h>
#include "hashtab.h"
#include "breakpoint.h"
}
/* Retrieve the gdbarch associated with OBJFILE. */
+
struct gdbarch *
-get_objfile_arch (struct objfile *objfile)
+get_objfile_arch (const struct objfile *objfile)
{
return objfile->per_bfd->gdbarch;
}
ALL_OBJFILE_SYMTABS (objfile, s)
{
struct linetable *l;
- struct blockvector *bv;
+ const struct blockvector *bv;
int i;
/* First the line table. */
}
int
-userloaded_objfile_contains_address_p (struct program_space *pspace,
- CORE_ADDR address)
+shared_objfile_contains_address_p (struct program_space *pspace,
+ CORE_ADDR address)
{
struct objfile *objfile;
ALL_PSPACE_OBJFILES (pspace, objfile)
{
- if ((objfile->flags & OBJF_USERLOADED) != 0
+ if ((objfile->flags & OBJF_SHARED) != 0
&& is_addr_in_objfile (address, objfile))
return 1;
}