This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH] Allow JIT unwinder provide symbol information


Alexander Smundak writes:
 >[...]
 > diff --git a/gdb/jit-reader.in b/gdb/jit-reader.in
 > index 6e2ee64..a6a0ab1 100644
 > --- a/gdb/jit-reader.in
 > +++ b/gdb/jit-reader.in
 > @@ -270,7 +307,14 @@ struct gdb_unwind_callbacks
 >    gdb_unwind_reg_get *reg_get;
 >    gdb_unwind_reg_set *reg_set;
 >    gdb_target_read *target_read;
 > -
 > +  gdb_unwind_stash *stash;
 > +  gdb_unwind_reg_get *cpu_reg_get;
 > +  gdb_find_symbol *find_symbol;
 > +  gdb_get_jtid *get_jtid;
 > +  gdb_enumerate_shared *enumerate_shared;
 > +  gdb_unwind_debug_flag *debug_flag;
 > +  gdb_architecture_name *architecture_name;
 > +  gdb_pointer_size *pointer_size;
 >    /* For internal use by GDB.  */
 >    void *priv_data;
 >  };

Oops, missed this one.

Move the new entries to the end.

@@ -270,7 +307,14 @@ struct gdb_unwind_callbacks
   gdb_unwind_reg_get *reg_get;
   gdb_unwind_reg_set *reg_set;
   gdb_target_read *target_read;

   /* For internal use by GDB.  */
   void *priv_data;
+
+  /* New entries for version 2 interface.  */
+  gdb_unwind_stash *stash;
+  gdb_unwind_reg_get *cpu_reg_get;
+  gdb_find_symbol *find_symbol;
+  gdb_get_jtid *get_jtid;
+  gdb_enumerate_shared *enumerate_shared;
+  gdb_unwind_debug_flag *debug_flag;
+  gdb_architecture_name *architecture_name;
+  gdb_pointer_size *pointer_size;
 };


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]