From 100dbc6de52e6d4bfaf4b330ee923267e56e936c Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 4 Aug 2023 09:50:01 -0600 Subject: Implement DAP module-removed event DAP specifies an event that should be sent when a module is removed. This patch implements this. Tested-By: Alexandra Petlanova Hajkova --- gdb/testsuite/gdb.dap/modules.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/testsuite/gdb.dap/modules.c') diff --git a/gdb/testsuite/gdb.dap/modules.c b/gdb/testsuite/gdb.dap/modules.c index 6ef8a60..7a4b9f0 100644 --- a/gdb/testsuite/gdb.dap/modules.c +++ b/gdb/testsuite/gdb.dap/modules.c @@ -36,5 +36,8 @@ main (void) func = (int (*)(void (*) (void))) dlsym (handle, "call_me"); func (stop); + dlclose (handle); + stop (); + return 0; } -- cgit v1.1