public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions
@ 2012-09-06 9:00 jan.kratochvil at redhat dot com
2012-09-06 9:02 ` [Bug gdb/14548] " jan.kratochvil at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-06 9:00 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
Bug #: 14548
Summary: reverse: cannot step-over jmp-only-functions
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: jan.kratochvil@redhat.com
Classification: Unclassified
Created attachment 6625
--> http://sourceware.org/bugzilla/attachment.cgi?id=6625
testcase.c
formerly: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54405
gdb ./a.out -ex start -ex record -ex next -ex next -ex 'set debug infrun 1' -ex
reverse-next
FAIL:
No more reverse-execution history.
main () at 12.c:18
18 v = 1;
PASS:
19 f ();
You should compile it with gcc < 4.7 (such as FSF GCC 4.6) to avoid another
bug.
--
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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
@ 2012-09-06 9:02 ` jan.kratochvil at redhat dot com
2012-09-06 9:04 ` jan.kratochvil at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-06 9:02 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-06 09:02:09 UTC ---
Created attachment 6626
--> http://sourceware.org/bugzilla/attachment.cgi?id=6626
non-regression-tested GDB fix
--
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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
2012-09-06 9:02 ` [Bug gdb/14548] " jan.kratochvil at redhat dot com
@ 2012-09-06 9:04 ` jan.kratochvil at redhat dot com
2012-09-12 18:05 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-06 9:04 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-06 09:03:32 UTC ---
Created attachment 6627
--> http://sourceware.org/bugzilla/attachment.cgi?id=6627
Unrelated fix (for myself) for gcc >= 4.7
--
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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
2012-09-06 9:02 ` [Bug gdb/14548] " jan.kratochvil at redhat dot com
2012-09-06 9:04 ` jan.kratochvil at redhat dot com
@ 2012-09-12 18:05 ` jan.kratochvil at redhat dot com
2012-09-17 7:10 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-12 18:05 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #6627|0 |1
is obsolete| |
--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-12 18:05:12 UTC ---
Comment on attachment 6627
--> http://sourceware.org/bugzilla/attachment.cgi?id=6627
Unrelated fix (for myself) for gcc >= 4.7
Included instead in:
[patch+7.5?] Fix GDB-return into TAILCALL_FRAME (PR 14119)
http://sourceware.org/ml/gdb-patches/2012-09/msg00218.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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2012-09-12 18:05 ` jan.kratochvil at redhat dot com
@ 2012-09-17 7:10 ` cvs-commit at gcc dot gnu.org
2012-09-17 7:15 ` cvs-commit at gcc dot gnu.org
2012-09-17 7:22 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-09-17 7:10 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-09-17 07:09:43 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: jkratoch@sourceware.org 2012-09-17 07:09:35
Modified files:
gdb : ChangeLog infrun.c
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.reverse: singlejmp-reverse-nodebug.S
singlejmp-reverse-nodebug.c
singlejmp-reverse.S
singlejmp-reverse.c
singlejmp-reverse.exp
Log message:
gdb/
PR 14548
* infrun.c (handle_inferior_event): Do not reverse-continue back to the
function start if we are already at function start. Both for
reverse-next and for reverse-step into function without line number
info.
gdb/testsuite/
PR 14548
* gdb.reverse/singlejmp-reverse-nodebug.S: New file.
* gdb.reverse/singlejmp-reverse-nodebug.c: New file.
* gdb.reverse/singlejmp-reverse.S: New file.
* gdb.reverse/singlejmp-reverse.c: New file.
* gdb.reverse/singlejmp-reverse.exp: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14662&r2=1.14663
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.557&r2=1.558
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3374&r2=1.3375
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse-nodebug.S.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse-nodebug.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.S.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp.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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2012-09-17 7:10 ` cvs-commit at gcc dot gnu.org
@ 2012-09-17 7:15 ` cvs-commit at gcc dot gnu.org
2012-09-17 7:22 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-09-17 7:15 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-09-17 07:15:01 UTC ---
CVSROOT: /cvs/src
Module name: src
Branch: gdb_7_5-branch
Changes by: jkratoch@sourceware.org 2012-09-17 07:14:56
Modified files:
gdb : ChangeLog infrun.c
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.reverse: singlejmp-reverse-nodebug.S
singlejmp-reverse-nodebug.c
singlejmp-reverse.S
singlejmp-reverse.c
singlejmp-reverse.exp
Log message:
gdb/
PR 14548
* infrun.c (handle_inferior_event): Do not reverse-continue back to the
function start if we are already at function start. Both for
reverse-next and for reverse-step into function without line number
info.
gdb/testsuite/
PR 14548
* gdb.reverse/singlejmp-reverse-nodebug.S: New file.
* gdb.reverse/singlejmp-reverse-nodebug.c: New file.
* gdb.reverse/singlejmp-reverse.S: New file.
* gdb.reverse/singlejmp-reverse.c: New file.
* gdb.reverse/singlejmp-reverse.exp: New file.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=1.14469.2.31&r2=1.14469.2.32
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=1.549&r2=1.549.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=1.3295.2.21&r2=1.3295.2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse-nodebug.S.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse-nodebug.c.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.S.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.c.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.reverse/singlejmp-reverse.exp.diff?cvsroot=src&only_with_tag=gdb_7_5-branch&r1=NONE&r2=1.1.2.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 gdb/14548] reverse: cannot step-over jmp-only-functions
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2012-09-17 7:15 ` cvs-commit at gcc dot gnu.org
@ 2012-09-17 7:22 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-09-17 7:22 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14548
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |jan.kratochvil at redhat
| |dot com
Resolution| |FIXED
AssignedTo|unassigned at sourceware |jan.kratochvil at redhat
|dot org |dot com
Target Milestone|--- |7.5
--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-09-17 07:22:20 UTC ---
Checked in for 7.5.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
end of thread, other threads:[~2012-09-17 7:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-06 9:00 [Bug gdb/14548] New: reverse: cannot step-over jmp-only-functions jan.kratochvil at redhat dot com
2012-09-06 9:02 ` [Bug gdb/14548] " jan.kratochvil at redhat dot com
2012-09-06 9:04 ` jan.kratochvil at redhat dot com
2012-09-12 18:05 ` jan.kratochvil at redhat dot com
2012-09-17 7:10 ` cvs-commit at gcc dot gnu.org
2012-09-17 7:15 ` cvs-commit at gcc dot gnu.org
2012-09-17 7:22 ` 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).