public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
@ 2010-04-04 21:53 ` jan dot kratochvil at redhat dot com
2010-04-04 21:55 ` jan dot kratochvil at redhat dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-04-04 21:53 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-04-04 21:52 -------
*** Bug 9341 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |stephenma at telus dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
2010-04-04 21:53 ` [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries jan dot kratochvil at redhat dot com
@ 2010-04-04 21:55 ` jan dot kratochvil at redhat dot com
2010-04-04 21:58 ` pedro at codesourcery dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-04-04 21:55 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-04-04 21:54 -------
Fix:
http://sourceware.org/ml/gdb-patches/2010-04/msg00059.html
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|jan dot kratochvil at redhat
|org |dot com
Version|6.7 |7.1
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
2010-04-04 21:53 ` [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries jan dot kratochvil at redhat dot com
2010-04-04 21:55 ` jan dot kratochvil at redhat dot com
@ 2010-04-04 21:58 ` pedro at codesourcery dot com
2010-04-04 22:14 ` jan dot kratochvil at redhat dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-04 21:58 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From pedro at codesourcery dot com 2010-04-04 21:58 -------
No, not a complete fix for this one. That patch doesn't fix the case of
a user breakpoint on top of a shared library event
breakpoint (BPSTAT_WHAT_CHECK_SHLIBS).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
` (2 preceding siblings ...)
2010-04-04 21:58 ` pedro at codesourcery dot com
@ 2010-04-04 22:14 ` jan dot kratochvil at redhat dot com
2010-04-04 22:16 ` jan dot kratochvil at redhat dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-04-04 22:14 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-04-04 22:14 -------
OK, sorry, closed only PR 9341 now.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|jan dot kratochvil at redhat|unassigned at sourceware dot
|dot com |org
Status|ASSIGNED |NEW
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
` (3 preceding siblings ...)
2010-04-04 22:14 ` jan dot kratochvil at redhat dot com
@ 2010-04-04 22:16 ` jan dot kratochvil at redhat dot com
2010-05-17 21:47 ` jan dot kratochvil at redhat dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-04-04 22:16 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan dot kratochvil at redhat
| |dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
` (4 preceding siblings ...)
2010-04-04 22:16 ` jan dot kratochvil at redhat dot com
@ 2010-05-17 21:47 ` jan dot kratochvil at redhat dot com
2010-06-24 15:19 ` jan dot kratochvil at redhat dot com
2010-06-24 15:20 ` jan dot kratochvil at redhat dot com
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-05-17 21:47 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-05-17 21:47 -------
Fix of this PR (+associated 1/3 and 2/3):
Re: [patch 3/3] bpstat_what removal
http://sourceware.org/ml/gdb-patches/2010-05/msg00370.html
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
` (5 preceding siblings ...)
2010-05-17 21:47 ` jan dot kratochvil at redhat dot com
@ 2010-06-24 15:19 ` jan dot kratochvil at redhat dot com
2010-06-24 15:20 ` jan dot kratochvil at redhat dot com
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-24 15:19 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-06-24 15:17 -------
Subject: Bug 9436
CVSROOT: /cvs/src
Module name: src
Changes by: jkratoch@sourceware.org 2010-06-24 15:17:32
Modified files:
gdb : ChangeLog breakpoint.c breakpoint.h inferior.h
infrun.c
gdb/testsuite : ChangeLog
Added files:
gdb/testsuite/gdb.base: nostdlib.c nostdlib.exp
Log message:
gdb/
Fix PR 9436.
* breakpoint.c (handle_jit_event): New function.
(bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
jit, err, table and bs_class. New variables shlib_event, jit_event,
this_action and bptype. Change bs_class assignments to this_action
assignments. new unhandled bptype internal error. Move here
shlib_event and jit_event handling from handle_inferior_event.
* breakpoint.h (enum bpstat_what_main_action): Extend the comment.
Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT.
* inferior.h (debug_infrun, stop_on_solib_events): New declarations.
* infrun.c (debug_infrun, stop_on_solib_events): Remove static.
(handle_inferior_event): Reinitialize frame and gdbarch after
bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
gdbarch when frame gets reinitialized.
gdb/testsuite/
Test PR 9436.
* gdb.base/nostdlib.exp, gdb.base/nostdlib.c: New.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11920&r2=1.11921
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.492&r2=1.493
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.h.diff?cvsroot=src&r1=1.120&r2=1.121
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/inferior.h.diff?cvsroot=src&r1=1.144&r2=1.145
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.443&r2=1.444
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2347&r2=1.2348
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/nostdlib.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/nostdlib.exp.diff?cvsroot=src&r1=NONE&r2=1.1
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-06-24 15:19 -------
http://sourceware.org/ml/gdb-cvs/2010-06/msg00160.html
gdb/
Fix PR 9436.
* breakpoint.c (handle_jit_event): New function.
(bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
jit, err, table and bs_class. New variables shlib_event, jit_event,
this_action and bptype. Change bs_class assignments to this_action
assignments. new unhandled bptype internal error. Move here
shlib_event and jit_event handling from handle_inferior_event.
* breakpoint.h (enum bpstat_what_main_action): Extend the comment.
Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT.
* inferior.h (debug_infrun, stop_on_solib_events): New declarations.
* infrun.c (debug_infrun, stop_on_solib_events): Remove static.
(handle_inferior_event): Reinitialize frame and gdbarch after
bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
gdbarch when frame gets reinitialized.
gdb/testsuite/
Test PR 9436.
* gdb.base/nostdlib.exp, gdb.base/nostdlib.c: New.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware dot|jan dot kratochvil at redhat
|org |dot com
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries
[not found] <20071011093801.9436.xt28@gmx.de>
` (6 preceding siblings ...)
2010-06-24 15:19 ` jan dot kratochvil at redhat dot com
@ 2010-06-24 15:20 ` jan dot kratochvil at redhat dot com
7 siblings, 0 replies; 8+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2010-06-24 15:20 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-06-24 15:20 -------
$ ./gdb -nx /sbin/ldconfig
(gdb) info files
...
Entry point: 0x400360
...
(gdb) b *0x400360
Breakpoint 1 at 0x400360: file ../sysdeps/x86_64/elf/start.S, line 65.
(gdb) r
Starting program: /sbin/ldconfig
Breakpoint 1, _start () at ../sysdeps/x86_64/elf/start.S:65
65 xorl %ebp, %ebp
(gdb) p/x $pc
$1 = 0x400360
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://sourceware.org/bugzilla/show_bug.cgi?id=9436
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-06-24 15:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20071011093801.9436.xt28@gmx.de>
2010-04-04 21:53 ` [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries jan dot kratochvil at redhat dot com
2010-04-04 21:55 ` jan dot kratochvil at redhat dot com
2010-04-04 21:58 ` pedro at codesourcery dot com
2010-04-04 22:14 ` jan dot kratochvil at redhat dot com
2010-04-04 22:16 ` jan dot kratochvil at redhat dot com
2010-05-17 21:47 ` jan dot kratochvil at redhat dot com
2010-06-24 15:19 ` jan dot kratochvil at redhat dot com
2010-06-24 15:20 ` jan dot 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).