From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5640 invoked by alias); 24 Jun 2010 15:19:52 -0000 Received: (qmail 5622 invoked by uid 48); 24 Jun 2010 15:19:51 -0000 Date: Thu, 24 Jun 2010 15:19:00 -0000 Message-ID: <20100624151951.5621.qmail@sourceware.org> From: "jan dot kratochvil at redhat dot com" To: gdb-prs@sourceware.org In-Reply-To: <20071011093801.9436.xt28@gmx.de> References: <20071011093801.9436.xt28@gmx.de> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug breakpoints/9436] gdb cannot break on entry point for statically linked binaries X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00462.txt.bz2 ------- 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.