aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2021-06-09 19:31:18 -0700
committerKevin Buettner <kevinb@redhat.com>2021-06-11 14:56:20 -0700
commit72c4daa36a3d35d578533d208668eb3ff9e7708f (patch)
tree555dadd9901d70c40b7c05b4d6f6e430d40f1dc8 /gdb/testsuite/ChangeLog
parent4cc2e60671b926ad7e5ed3928c4e54e456c7c344 (diff)
downloadgdb-72c4daa36a3d35d578533d208668eb3ff9e7708f.zip
gdb-72c4daa36a3d35d578533d208668eb3ff9e7708f.tar.gz
gdb-72c4daa36a3d35d578533d208668eb3ff9e7708f.tar.bz2
print-symbol-loading.exp: Allow libc symbols to be already loaded
One consequence of changing libpthread_name_p() in solib.c to (also) match libc is that the symbols for libc will now be loaded by solib_add() in solib.c. I think this is mostly harmless because we'll likely want these symbols to be loaded anyway, but it did cause two failures in gdb.base/print-symbol-loading.exp. Specifically... 1) sharedlibrary .* (gdb) PASS: gdb.base/print-symbol-loading.exp: shlib off: load shared-lib now looks like this: sharedlibrary .* Symbols already loaded for /lib64/libc.so.6 (gdb) PASS: gdb.base/print-symbol-loading.exp: shlib off: load shared-lib 2) sharedlibrary .* Loading symbols for shared libraries: .* (gdb) PASS: gdb.base/print-symbol-loading.exp: shlib brief: load shared-lib now looks like this: sharedlibrary .* Loading symbols for shared libraries: .* Symbols already loaded for /lib64/libc.so.6 (gdb) PASS: gdb.base/print-symbol-loading.exp: shlib brief: load shared-lib Fixing case #2 ended up being easier than #1. #1 had been using gdb_test_no_output to correctly match this no-output case. I ended up replacing it with gdb_test_multiple, matching the exact expected output for each of the two now acceptable cases. For case #2, I simply added an optional non-capturing group for the potential new output. gdb/testsuite/ChangeLog: * gdb.base/print-symbol-loading.exp (proc test_load_shlib): Allow "Symbols already loaded for..." messages.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fa22fc3..5f9db54 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2021-06-11 Kevin Buettner <kevinb@redhat.com>
+ * gdb.base/print-symbol-loading.exp (proc test_load_shlib):
+ Allow "Symbols already loaded for..." messages.
+
+2021-06-11 Kevin Buettner <kevinb@redhat.com>
+
* gdb.base/execl-update-breakpoints.exp: Add regular
expression for optionally matching output related to
libthread_db.