public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/12435] New: gcc46: prologue skip skips too far
@ 2011-01-25 16:11 jan.kratochvil at redhat dot com
2011-01-26 10:17 ` [Bug breakpoints/12435] " jan.kratochvil at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-01-25 16:11 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
Summary: gcc46: prologue skip skips too far
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
Host: x86_64-fedora15-linux-gnu
Target: x86_64-fedora15-linux-gnu
Created attachment 5209
--> http://sourceware.org/bugzilla/attachment.cgi?id=5209
naive GDB patch
GDB HEAD
gcc-4.6.0-0.3.fc15.x86_64
->
`break internal_error' (that is the function GDB) is never hit.
./gdb -nx ./gdb -ex 'b internal_error' -ex 'disass internal_error'
Breakpoint 1 at 0x48f3cd: file utils.c, line 1242.
Dump of assembler code for function internal_error:
0x000000000048f39c <+0>: push %rbp
0x000000000048f39d <+1>: mov %rsp,%rbp
0x000000000048f3a0 <+4>: sub $0xf0,%rsp
0x000000000048f3a7 <+11>: mov %rdi,-0xd8(%rbp)
0x000000000048f3ae <+18>: mov %esi,-0xdc(%rbp)
0x000000000048f3b4 <+24>: mov %rcx,-0x98(%rbp)
0x000000000048f3bb <+31>: mov %r8,-0x90(%rbp)
0x000000000048f3c2 <+38>: mov %r9,-0x88(%rbp)
0x000000000048f3c9 <+45>: test %al,%al
0x000000000048f3cb <+47>: je 0x48f3ed <internal_error+81>
=== breakponit here
0x000000000048f3cd <+49>: movaps %xmm0,-0x80(%rbp)
0x000000000048f3d1 <+53>: movaps %xmm1,-0x70(%rbp)
0x000000000048f3d5 <+57>: movaps %xmm2,-0x60(%rbp)
0x000000000048f3d9 <+61>: movaps %xmm3,-0x50(%rbp)
0x000000000048f3dd <+65>: movaps %xmm4,-0x40(%rbp)
0x000000000048f3e1 <+69>: movaps %xmm5,-0x30(%rbp)
0x000000000048f3e5 <+73>: movaps %xmm6,-0x20(%rbp)
0x000000000048f3e9 <+77>: movaps %xmm7,-0x10(%rbp)
0x000000000048f3ed <+81>: mov %rdx,-0xe8(%rbp)
=== jump target
0x000000000048f3f4 <+88>: movl $0x18,-0xc8(%rbp)
.debug_line is weird
Fixed by the naive attached GDB patch but it has heavy regressions.
Maybe GCC should be fixed?
There is still missing the prologue end marker.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
@ 2011-01-26 10:17 ` jan.kratochvil at redhat dot com
2011-01-26 10:26 ` jan.kratochvil at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-01-26 10:17 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5209|0 |1
is obsolete| |
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-01-26 10:17:36 UTC ---
Created attachment 5214
--> http://sourceware.org/bugzilla/attachment.cgi?id=5214
Working patch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
2011-01-26 10:17 ` [Bug breakpoints/12435] " jan.kratochvil at redhat dot com
@ 2011-01-26 10:26 ` jan.kratochvil at redhat dot com
2011-03-26 7:01 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-01-26 10:26 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-01-26 10:26:29 UTC ---
GCC PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47471
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
2011-01-26 10:17 ` [Bug breakpoints/12435] " jan.kratochvil at redhat dot com
2011-01-26 10:26 ` jan.kratochvil at redhat dot com
@ 2011-03-26 7:01 ` jan.kratochvil at redhat dot com
2011-07-22 21:59 ` jan.kratochvil at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-03-26 7:01 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-03-26 07:01:36 UTC ---
gdb-patches post:
http://sourceware.org/ml/gdb-patches/2011-03/msg01108.html
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2011-03-26 7:01 ` jan.kratochvil at redhat dot com
@ 2011-07-22 21:59 ` jan.kratochvil at redhat dot com
2011-09-08 15:41 ` cvs-commit at gcc dot gnu.org
2011-09-08 19:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-07-22 21:59 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at sourceware |jan.kratochvil at redhat
|dot org |dot com
--- Comment #4 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-07-22 21:59:23 UTC ---
[patch] workaround gcc46: prologue skip skips too far (PR 12435) #2
http://sourceware.org/ml/gdb-patches/2011-07/msg00645.html
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2011-07-22 21:59 ` jan.kratochvil at redhat dot com
@ 2011-09-08 15:41 ` cvs-commit at gcc dot gnu.org
2011-09-08 19:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2011-09-08 15:41 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-09-08 15:38:24 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: jkratoch@sourceware.org 2011-09-08 15:38:16
Modified files:
gdb : ChangeLog amd64-tdep.c dwarf2read.c symtab.h
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.arch: amd64-prologue-xmm.c
amd64-prologue-xmm.exp
amd64-prologue-xmm.s
Log message:
gdb/
PR breakpoints/12435
* amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
* dwarf2read.c (process_full_comp_unit): Initialize
amd64_prologue_line_bug.
* symtab.h (struct symtab): New field amd64_prologue_line_bug.
gdb/testsuite/
PR breakpoints/12435
* gdb.arch/amd64-prologue-xmm.c: New file.
* gdb.arch/amd64-prologue-xmm.exp: New file.
* gdb.arch/amd64-prologue-xmm.s: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.13312&r2=1.13313
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-tdep.c.diff?cvsroot=src&r1=1.91&r2=1.92
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.558&r2=1.559
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/symtab.h.diff?cvsroot=src&r1=1.186&r2=1.187
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2847&r2=1.2848
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.arch/amd64-prologue-xmm.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.arch/amd64-prologue-xmm.s.diff?cvsroot=src&r1=NONE&r2=1.1
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug breakpoints/12435] gcc46: prologue skip skips too far
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2011-09-08 15:41 ` cvs-commit at gcc dot gnu.org
@ 2011-09-08 19:29 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2011-09-08 19:29 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12435
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-09-08 15:41:08 UTC ---
Workarounded.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-09-08 15:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 16:11 [Bug breakpoints/12435] New: gcc46: prologue skip skips too far jan.kratochvil at redhat dot com
2011-01-26 10:17 ` [Bug breakpoints/12435] " jan.kratochvil at redhat dot com
2011-01-26 10:26 ` jan.kratochvil at redhat dot com
2011-03-26 7:01 ` jan.kratochvil at redhat dot com
2011-07-22 21:59 ` jan.kratochvil at redhat dot com
2011-09-08 15:41 ` cvs-commit at gcc dot gnu.org
2011-09-08 19:29 ` jan.kratochvil at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).