Mention the NetBSD support in "info proc" documentation
[deliverable/binutils-gdb.git] / gdb / objfiles.h
index a568fa4bcdac82cdaf7415755b7ecbca6a3bcbf1..77f94e4f21d14a8fb1e8b1ff883e49a9ce01e9ce 100644 (file)
@@ -544,6 +544,12 @@ public:
                                                        str.size () + 1);
   }
 
+  /* Retrieve the gdbarch associated with this objfile.  */
+  struct gdbarch *arch () const
+  {
+    return per_bfd->gdbarch;
+  }
+
 
   /* The object file's original name as specified by the user,
      made absolute, and tilde-expanded.  However, it is not canonicalized
@@ -709,8 +715,6 @@ typedef std::unique_ptr<objfile, objfile_deleter> objfile_up;
 
 /* Declarations for functions defined in objfiles.c */
 
-extern struct gdbarch *get_objfile_arch (const struct objfile *);
-
 extern int entry_point_address_query (CORE_ADDR *entry_p);
 
 extern CORE_ADDR entry_point_address (void);
This page took 0.065473 seconds and 4 git commands to generate.