[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504 Tim Turner changed: What|Removed |Added CC||timturnerc at yahoo dot com --- Comment #20 from Tim Turner --- [gdb/symtab] Handle DW_TAG_type_unit in process_psymtab_comp_unit When running test-case gdb.cp/cpexprs-debug-types.exp with target board unix/gdb:debug_flags=-gdwarf-5, I run into: ... (gdb) file cpexprs-debug-types^M Reading symbols from cpexprs-debug-types...^M ERROR: Couldn't load cpexprs-debug-types into GDB (eof). ERROR: Couldn't send delete breakpoints to GDB. ERROR: GDB process no longer exists GDB process exited with wait status 23054 exp9 0 0 CHILDKILLED SIGABRT SIGABRT ... https://www.webb-dev.co.uk/crypto/crypto-for-investing/ We're running into this abort in process_psymtab_comp_unit: ... switch (reader.comp_unit_die->tag) { case DW_TAG_compile_unit: this_cu->unit_type = DW_UT_compile; http://www.compilatori.com/tech/nvidia-and-samsung/ break; case DW_TAG_partial_unit: this_cu->unit_type = DW_UT_partial; http://www.acpirateradio.co.uk/tech/nvidia-and-samsung/ break; default: abort (); http://www.logoarts.co.uk/tech/nvidia-and-samsung/ } ... because reader.comp_unit_die->tag == DW_TAG_type_unit. http://www.slipstone.co.uk/tech/nvidia-and-samsung/ Fix this by adding a DW_TAG_type_unit case. Tested on x86_64-linux. gdb/ChangeLog: http://embermanchester.uk/tech/nvidia-and-samsung/ [gdb/symtab] Handle DW_TAG_type_unit in process_psymtab_comp_unit When running test-case gdb.cp/cpexprs-debug-types.exp with target board unix/gdb:debug_flags=-gdwarf-5, I run into: http://connstr.net/tech/nvidia-and-samsung/ ... (gdb) file cpexprs-debug-types^M Reading symbols from cpexprs-debug-types...^M http://joerg.li/tech/nvidia-and-samsung/ ERROR: Couldn't load cpexprs-debug-types into GDB (eof). ERROR: Couldn't send delete breakpoints to GDB. ERROR: GDB process no longer exists http://www.jopspeech.com/tech/nvidia-and-samsung/ GDB process exited with wait status 23054 exp9 0 0 CHILDKILLED SIGABRT SIGABRT ... We're running into this abort in process_psymtab_comp_unit: http://www.wearelondonmade.com/tech/nvidia-and-samsung/ ... switch (reader.comp_unit_die->tag) { case DW_TAG_compile_unit: https://waytowhatsnext.com/technology/korean-technology/ this_cu->unit_type = DW_UT_compile; break; case DW_TAG_partial_unit: http://www.iu-bloomington.com/technology/miui13/ this_cu->unit_type = DW_UT_partial; break; default: abort (); https://komiya-dental.com/technology/miui-13/ } ... because reader.comp_unit_die->tag == DW_TAG_type_unit. http://www-look-4.com/tech/nvidia-and-samsung/ Fix this by adding a DW_TAG_type_unit case. Tested on x86_64-linux. https://www.webb-dev.co.uk/technology/grt-r910/ gdb/ChangeLog:
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #19 from pinskia at gcc dot gnu dot org 2006-11-17 01:41 --- *** Bug 29875 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||lenlen at zoellich dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #17 from pinskia at gcc dot gnu dot org 2006-10-10 16:27 --- *** Bug 29409 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||rumjantsev at papillon dot ||ru http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #18 from aesok at gcc dot gnu dot org 2006-10-10 22:18 --- Subject: Bug 26504 Author: aesok Date: Tue Oct 10 22:18:06 2006 New Revision: 117616 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=117616 Log: * config/avr/predicates.md: New file. * config/avr/avr.md: Include it. (REG_SP): New constant. (peepholes): Use predicates. (sbrx_branch, sbrx_and_branchhi, sbrx_and_branchsi, branch, rvbranch, difficult_branch, difficult_rvbranch, cbi, sbi, sbix_branch, sbix_branch_bit7, sbix_branch_tmp, sbix_branch_tmp_bit7): Ditto. PR target/26504 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define. Added: trunk/gcc/config/avr/predicates.md (with props) Modified: trunk/gcc/ChangeLog trunk/gcc/config/avr/avr.md Propchange: trunk/gcc/config/avr/predicates.md ('svn:executable' added) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #14 from aesok at gcc dot gnu dot org 2006-09-14 21:11 --- Subject: Bug 26504 Author: aesok Date: Thu Sep 14 21:11:33 2006 New Revision: 116950 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116950 Log: PR target/26504 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define. Modified: trunk/gcc/ChangeLog trunk/gcc/config/avr/avr.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #15 from aesok at gcc dot gnu dot org 2006-09-14 21:19 --- Subject: Bug 26504 Author: aesok Date: Thu Sep 14 21:19:10 2006 New Revision: 116952 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116952 Log: PR target/26504 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Define. Modified: branches/gcc-4_1-branch/gcc/ChangeLog branches/gcc-4_1-branch/gcc/config/avr/avr.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #16 from aesok at gcc dot gnu dot org 2006-09-14 21:39 --- Change Status to FIXED. -- aesok at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #13 from mmitchel at gcc dot gnu dot org 2006-09-07 01:13 --- AVR is not a primary or secondary platform. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #12 from pinskia at gcc dot gnu dot org 2006-09-03 05:33 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added CC||pinskia at gcc dot gnu dot ||org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-09-03 05:33:31 date|| Summary|compute_frame_pointer_to_cfa|[4.1/4.2 Regression] |_displacement error for avr |compute_frame_pointer_to_cfa |target with --with-dwarf2 |_displacement error for avr ||target with --with-dwarf2 Target Milestone|--- |4.1.2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504