This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC][PATCH] Allow JIT unwinder provide symbol information
- From: Doug Evans <dje at google dot com>
- To: Alexander Smundak <asmundak at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 11 Apr 2014 11:58:35 -0700
- Subject: Re: [RFC][PATCH] Allow JIT unwinder provide symbol information
- Authentication-results: sourceware.org; auth=none
- References: <20131226183618 dot D264CA18A0 at sasha2 dot mtv dot corp dot google dot com> <21204 dot 13416 dot 607204 dot 485255 at ruffy dot mtv dot corp dot google dot com> <CAHQ51u6Hd3+B78RUK5rTh49nqvFgt_o1x6f=sePPZVDEo1ueTA at mail dot gmail dot com> <CADPb22Qithfi41fs1Ax5tz_g-zf8pzPRWKbnBrJZCiSqrO=KuA at mail dot gmail dot com> <CADPb22Rf5jpi_YCF5UE13=CUmUV-FNZHPSpfbmpO3KNQq1sKfQ at mail dot gmail dot com> <CAHQ51u7ZzfLQp2NH15FzM-pGM+rOyczeAZc2nH-+XS175gTmyw at mail dot gmail dot com>
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;
};