aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorDon Breazeal <donb@codesourcery.com>2015-02-04 13:15:06 -0800
committerDon Breazeal <donb@codesourcery.com>2015-02-04 13:24:35 -0800
commitb9394193d08bef2193f805ded0af898e4c10a509 (patch)
treedaf3134b6f87ed89547af9ae89ffef01499d3670 /gdb/testsuite/ChangeLog
parent881d5d5db08ee6b343e1f1fc560d785fed29428e (diff)
downloadgdb-b9394193d08bef2193f805ded0af898e4c10a509.zip
gdb-b9394193d08bef2193f805ded0af898e4c10a509.tar.gz
gdb-b9394193d08bef2193f805ded0af898e4c10a509.tar.bz2
Clean up System V IPC objects allocated by test.
This commit modifies the test program gdb.base/info-os.c so that it cleans up all allocated System V IPC objects when a fatal error occurs. Without this, it was possible for the program to leave IPC objects on the system, and such objects persist until they are manually deleted or the system reboots. I looked at changing the SysV IPC key for allocating the IPC objects to IPC_PRIVATE. That would prevent errors due to namespace conflicts with the key. However, the test needs to read the actual key number from the 'info os' command output, and IPC_PRIVATE won't work for that. gdb/testsuite/ChangeLog: 2015-02-04 Don Breazeal <donb@codesourcery.com> * gdb.base/info-os.c (shmid, semid, msqid): Make variables static and initialize them. (ipc_cleanup): New function. (main): Don't declare shmid, semid, and msqid. Add a call to atexit so that we call ipc_cleanup on exit.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fcc16cb..6fdaa89 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2015-02-04 Don Breazeal <donb@codesourcery.com>
+
+ * gdb.base/info-os.c (shmid, semid, msqid): Make variables static
+ and initialize them.
+ (ipc_cleanup): New function.
+ (main): Don't declare shmid, semid, and msqid. Add a call to
+ atexit so that we call ipc_cleanup on exit.
+
2015-02-04 Pedro Alves <palves@redhat.com>
* boards/native-extended-gdbserver.exp: Remove any target variant