PATCH: Support gcc v3 unwind frame in gcc pre 3.0
H . J . Lu
hjl@lucon.org
Mon Jul 9 10:49:00 GMT 2001
On Mon, Jul 09, 2001 at 01:07:17AM -0700, H . J . Lu wrote:
> This is not a patch against gcc 2.95. It is for gcc 2.96 from RedHat
> 7.1. But the idea for gcc 2.95 is the same. Combining frame-dwarf2.c
> from gcc 2.96 as well as unwind-dw2-fde.c, unwind-dw2-fde.h,
> unwind-pe.h and unwind-dw2.c fro gcc 3.0, we can put a mixed gcc v2
> and v3 frame unwinder in glibc. I will post my updated glibc patch
> later.
>
Here is a patch for gcc 2.95. It seems to work for me.
H.J.
-----
2001-07-09 H.J. Lu (hjl@gnu.org)
* dwarf2.h: Updated from gcc 3.0.
* frame.c: Include glibc heade files instead if _LIBC is
defined. Support the frame unwinder only build in glibc.
(cie_info): Add pc, fde_encoding, lsda_encoding and saw_z.
(extract_cie_info): Recognize gcc v3 unwind frame.
(execute_cfa_insn): Remove the last argument. `pc' is passed
in `info' now.
(__frame_state_for): Call _Unwind_GetFrameForV2 for gcc v3
unwind frame if NEED__Unwind_GetFrameForV2 is defined.
More information about the Libc-alpha
mailing list