summaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorsanjoyd <sanjoyd>2011-11-29 08:30:21 +0000
committersanjoyd <sanjoyd>2011-11-29 08:30:21 +0000
commitc14201d3d537e058ac319a0d75487e44c4319b15 (patch)
treea81487c5987b699da88707521019632e465ab3dc /gdb/jit.c
parent52bb12eb94e7eb694404c33ab124b3579df0e437 (diff)
downloadgdb-c14201d3d537e058ac319a0d75487e44c4319b15.tar.gz
gdb/
* jit.c (add_objfile_entry, jit_reader_try_read_symtab) (jit_bfd_try_read_symtab): Fix comments.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r--gdb/jit.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index 099f79d048f..843c768e184 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -239,7 +239,8 @@ struct jit_inferior_data
CORE_ADDR descriptor_addr; /* &__jit_debug_descriptor */
};
-/* Remember a mapping from entry_addr to objfile. */
+/* Remember OBJFILE has been created for struct jit_code_entry located
+ at inferior address ENTRY. */
static void
add_objfile_entry (struct objfile *objfile, CORE_ADDR entry)
@@ -711,8 +712,8 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
}
/* Try to read CODE_ENTRY using the loaded jit reader (if any).
- ENTRY_ADDR is the address of the object file (in the target's
- address space) being read. */
+ ENTRY_ADDR is the address of the struct jit_code_entry in the
+ inferior address space. */
static int
jit_reader_try_read_symtab (struct jit_code_entry *code_entry,
@@ -769,7 +770,7 @@ jit_reader_try_read_symtab (struct jit_code_entry *code_entry,
}
/* Try to read CODE_ENTRY using BFD. ENTRY_ADDR is the address of the
- object file (in the target's address space) being read. */
+ struct jit_code_entry in the inferior address space. */
static void
jit_bfd_try_read_symtab (struct jit_code_entry *code_entry,