aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dap/modules.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-08-04 09:50:01 -0600
committerTom Tromey <tromey@adacore.com>2023-08-16 09:55:10 -0600
commit100dbc6de52e6d4bfaf4b330ee923267e56e936c (patch)
treebec880d472556d9bc20931102b0fd3f2ce5c0baa /gdb/testsuite/gdb.dap/modules.c
parenta345d14fa65c2b69f2ba3abac8847b1c6a4dc656 (diff)
downloadbinutils-100dbc6de52e6d4bfaf4b330ee923267e56e936c.zip
binutils-100dbc6de52e6d4bfaf4b330ee923267e56e936c.tar.gz
binutils-100dbc6de52e6d4bfaf4b330ee923267e56e936c.tar.bz2
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 <ahajkova@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.dap/modules.c')
-rw-r--r--gdb/testsuite/gdb.dap/modules.c3
1 files changed, 3 insertions, 0 deletions
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;
}