+2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * jit.c (jit_inferior_init): Forward declare.
+ (jit_breakpoint_re_set_internal): Call jit_inferior_init.
+
2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix false GCC warning.
static const struct inferior_data *jit_inferior_data = NULL;
+static void
+jit_inferior_init (struct gdbarch *gdbarch);
+
/* Non-zero if we want to see trace of jit level stuff. */
static int jit_debug = 0;
inf_data->breakpoint_addr = SYMBOL_VALUE_ADDRESS (reg_symbol);
if (inf_data->breakpoint_addr == 0)
return 2;
+
+ /* If we have not read the jit descriptor yet (e.g. because the JITer
+ itself is in a shared library which just got loaded), do so now. */
+ if (inf_data->descriptor_addr == 0)
+ jit_inferior_init (gdbarch);
}
else
return 0;
+2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.base/jit-so.exp: New test.
+ * gdb.base/jit-dlmain.c: New file.
+ * gdb.base/jit-main.c: Allow "main" to be elsewhere.
+
2011-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.cp/temargs.exp (set sixth breakpoint for temargs): Move the test
}
}
+#ifndef MAIN
+#define MAIN main
+#endif
+
int
-main (int argc, char *argv[])
+MAIN (int argc, char *argv[])
{
/* These variables are here so they can easily be set from jit.exp. */
const char *libname = NULL;