This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/10469] New: Regression: hook-continue no longer gets called by exec-continue


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]