From e5dc0d5d04e68328242fc171098e78f79589c7b7 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Tue, 23 Apr 2024 09:22:59 -0400 Subject: gdb: move a bunch of quit-related things to event-top.{c,h} Move some declarations related to the "quit" machinery from defs.h to event-top.h. Most of the definitions associated to these declarations are in event-top.c. The exceptions are `quit()` and `maybe_quit()`, that are defined in utils.c. For consistency, move these two definitions to event-top.c. Include "event-top.h" in many files that use these things. Change-Id: I6594f6df9047a9a480e7b9934275d186afb14378 Approved-By: Tom Tromey --- gdb/p-lang.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/p-lang.c') diff --git a/gdb/p-lang.c b/gdb/p-lang.c index ddacccc..d3d491c 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -19,6 +19,7 @@ /* This file is derived from c-lang.c */ +#include "event-top.h" #include "extract-store-integer.h" #include "symtab.h" #include "gdbtypes.h" -- cgit v1.1