PR gdb/13431:
authorTom Tromey <tromey@redhat.com>
Wed, 1 Feb 2012 20:21:22 +0000 (20:21 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 1 Feb 2012 20:21:22 +0000 (20:21 +0000)
commit03bef283c2d3ba61c9fa2d6b5004bc669d6405a8
tree633d953e19997609738a13865e14ff5e63ae2786
parentf0bbc364ac022e53f4a338c9bf0478a1b6ebc43a
PR gdb/13431:
* jit.c (struct jit_inferior_data): Rewrite.
(struct jit_objfile_data): New.
(get_jit_objfile_data): New function.
(add_objfile_entry): Update.
(jit_read_descriptor): Return int.  Replace descriptor_addr
argument with inf_data.  Update.  Don't call error.
(jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
descriptor here.
(jit_inferior_init): Don't look up descriptor.  Don't call error.
(jit_reset_inferior_data_and_breakpoints)
(jit_inferior_created_observer): Remove.
(jit_inferior_exit_hook): Update.
(jit_executable_changed_observer): Remove.
(jit_event_handler): Update.
(free_objfile_data): Reset inferior data if needed.
(_initialize_jit): Update.
gdb/testsuite
* gdb.base/jit-simple.exp: New file.
* gdb.base/jit-simple.c: New file.
gdb/ChangeLog
gdb/jit.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/jit-simple.c [new file with mode: 0644]
gdb/testsuite/gdb.base/jit-simple.exp [new file with mode: 0644]