Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 145505 Details for
Bug 140532
PPC CFI and non-CFI backtraces broken
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Andreas Schwab's original imported PPC .eh_frame support patch.
gdb-6.5-bz140532-ppc-eh_frame-regnum.patch (text/plain), 2.92 KB, created by
Jan Kratochvil
on 2007-01-13 00:32:15 UTC
(
hide
)
Description:
Andreas Schwab's original imported PPC .eh_frame support patch.
Filename:
MIME Type:
Creator:
Jan Kratochvil
Created:
2007-01-13 00:32:15 UTC
Size:
2.92 KB
patch
obsolete
>https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=140532 > > >2006-05-09 Andreas Schwab <schwab@suse.de> > > * rs6000-tdep.c: Include "dwarf2-frame.h". > (rs6000_eh_frame_regnum): Define. > (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder. > Register rs6000_eh_frame_regnum. > > * Makefile.in (rs6000-tdep.o): Update dependencies. > > >http://sourceware.org/ml/gdb-patches/2006-05/msg00341.html > Selectively enabling them on platforms that are unlikely to have ever > used GCC versions before 3.4 should be fine. > > >--- ./gdb/Makefile.in 5 May 2006 22:39:12 -0000 1.812 >+++ ./gdb/Makefile.in 9 May 2006 14:10:40 -0000 >@@ -2515,7 +2515,7 @@ rs6000-tdep.o: rs6000-tdep.c $(defs_h) $ > $(reggroups_h) $(libbfd_h) $(coff_internal_h) $(libcoff_h) \ > $(coff_xcoff_h) $(libxcoff_h) $(elf_bfd_h) $(solib_svr4_h) \ > $(ppc_tdep_h) $(gdb_assert_h) $(dis_asm_h) $(trad_frame_h) \ >- $(frame_unwind_h) $(frame_base_h) $(rs6000_tdep_h) >+ $(frame_unwind_h) $(frame_base_h) $(rs6000_tdep_h) $(dwarf2_frame_h) > rs6000-aix-tdep.o: rs6000-aix-tdep.c $(defs_h) $(osabi_h) $(rs6000_tdep_h) > s390-nat.o: s390-nat.c $(defs_h) $(tm_h) $(regcache_h) $(inferior_h) \ > $(s390_tdep_h) $(target_h) $(linux_nat_h) >--- ./gdb/rs6000-tdep.c 23 Apr 2006 14:15:01 -0000 1.258 >+++ ./gdb/rs6000-tdep.c 9 May 2006 14:10:15 -0000 >@@ -40,6 +40,7 @@ > #include "sim-regno.h" > #include "gdb/sim-ppc.h" > #include "reggroups.h" >+#include "dwarf2-frame.h" > > #include "libbfd.h" /* for bfd_default_set_arch_mach */ > #include "coff/internal.h" /* for libcoff.h */ >@@ -2243,6 +2244,40 @@ rs6000_dwarf2_reg_to_regnum (int num) > } > > >+/* Convert a .eh_frame register number to a Dwarf 2 register number. */ >+static int >+rs6000_eh_frame_regnum (struct gdbarch *gdbarch, int num) >+{ >+ if (0 <= num && num <= 63) /* r0-r31,fp0-fp31 */ >+ return num; >+ else if (68 <= num && num <= 75) /* cr0-cr8 */ >+ return num - 68 + 86; >+ else if (77 <= num && num <= 108) /* vr0-vr31 */ >+ return num - 77 + 1124; >+ else >+ switch (num) >+ { >+ case 64: /* mq */ >+ return 100; >+ case 65: /* lr */ >+ return 108; >+ case 66: /* ctr */ >+ return 109; >+ case 76: /* xer */ >+ return 101; >+ case 109: /* vrsave */ >+ return 356; >+ case 110: /* vscr */ >+ return 67; >+ case 111: /* spe_acc */ >+ return 99; >+ case 112: /* spefscr */ >+ return 612; >+ default: >+ return num; >+ } >+} >+ > static void > rs6000_store_return_value (struct type *type, > struct regcache *regcache, >@@ -3461,6 +3496,10 @@ rs6000_gdbarch_init (struct gdbarch_info > /* Helpers for function argument information. */ > set_gdbarch_fetch_pointer_argument (gdbarch, rs6000_fetch_pointer_argument); > >+ /* Hook in the DWARF CFI frame unwinder. */ >+ frame_unwind_append_sniffer (gdbarch, dwarf2_frame_sniffer); >+ dwarf2_frame_set_eh_frame_regnum (gdbarch, rs6000_eh_frame_regnum); >+ > /* Hook in ABI-specific overrides, if they have been registered. */ > gdbarch_init_osabi (info, gdbarch); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 140532
:
144612
|
144613
| 145505 |
145506
|
145513
|
230151