public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/10469] New: Regression: hook-continue no longer gets called by exec-continue
@ 2009-07-31 12:15 andreas dot fritiofson at gmail dot com
  0 siblings, 0 replies; only message in thread
From: andreas dot fritiofson at gmail dot com @ 2009-07-31 12:15 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-31 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-31 12:15 [Bug mi/10469] New: Regression: hook-continue no longer gets called by exec-continue andreas dot fritiofson at gmail 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).