From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14295 invoked by alias); 31 Jul 2009 12:15:46 -0000 Received: (qmail 14281 invoked by uid 48); 31 Jul 2009 12:15:45 -0000 Date: Fri, 31 Jul 2009 12:15:00 -0000 From: "andreas dot fritiofson at gmail dot com" To: gdb-prs@sourceware.org Message-ID: <20090731121543.10469.andreas.fritiofson@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug mi/10469] New: Regression: hook-continue no longer gets called by exec-continue 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: 2009-q3/txt/msg00030.txt.bz2 I have a few hooks in my .gdbinit to take care of target specific tweaks when stopping/resuming. In particular, interrupts should be disabled when stepping, but not when running: define hook-stop mon cortex_m3 maskisr on end define hook-continue mon cortex_m3 maskisr off end define hook-until mon cortex_m3 maskisr off end This worked great in gdb 6.7, even when gdb was controlled via the MI interface (from eclipse). In 6.8 however, the continue hook has stopped working over the MI interface. It still works from the CLI and other hooks, such as the above hook-until, works even over MI ("run-to-line" correctly unmasks interupts in eclipse, but "resume" doesn't). I suspect the culprit is changing mi_cmd_exec_continue() (mi/mi-main.c) from being a wrapper around "continue" to using libgdb. ( http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/mi/mi-main.c.diff?r1=1.125&r2=1.126&cvsroot=src ) Other commands such as exec-next are still wrappers and their hooks work, but they have FIXME notices to switch to libgdb, so I fear they won't in the future. -- Summary: Regression: hook-continue no longer gets called by exec- continue Product: gdb Version: 6.8 Status: UNCONFIRMED Severity: normal Priority: P2 Component: mi AssignedTo: unassigned at sourceware dot org ReportedBy: andreas dot fritiofson at gmail dot com CC: gdb-prs at sourceware dot org GCC host triplet: i686-mingw32 GCC target triplet: arm-none-eabi http://sourceware.org/bugzilla/show_bug.cgi?id=10469 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.