diff options
author | Gary Benson <gbenson@redhat.com> | 2018-06-08 18:06:46 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2018-06-08 18:06:46 +0100 |
commit | 5045b3d78903d1f6faa4cb511fa801e50dfacf48 (patch) | |
tree | c9d0de294605fc4784caf427f95d799f62088ce3 /gdb/NEWS | |
parent | 2f4f025ff15b900706c8597060003a506107cf23 (diff) | |
download | gdb-5045b3d78903d1f6faa4cb511fa801e50dfacf48.zip gdb-5045b3d78903d1f6faa4cb511fa801e50dfacf48.tar.gz gdb-5045b3d78903d1f6faa4cb511fa801e50dfacf48.tar.bz2 |
linux: Add maintenance commands to test libthread_db
This commit adds two new commands which may be used to test thread
debugging libraries used by GDB:
* "maint check libthread-db" tests the thread debugging library GDB
is using for the current inferior.
* "maint set/show check-libthread-db" selects whether libthread_db
tests should be run automatically as libthread_db is auto-loaded.
The default is to not run tests automatically.
The test itself is a basic integrity check exercising all libthread_db
functions used by GDB on GNU/Linux systems. By extension this also
exercises the proc_service functions provided by GDB that libthread_db
uses.
This functionality is useful for NPTL developers and libthread_db
developers. It could also prove useful investigating bugs reported
against GDB where the thread debugging library or GDB's proc_service
layer is suspect.
gdb/ChangeLog:
* linux-thread-db.c (valprint.h): New include.
(struct check_thread_db_info): New structure.
(check_thread_db_on_load, tdb_testinfo): New static globals.
(check_thread_db, check_thread_db_callback): New functions.
(try_thread_db_load_1): Run integrity checks if requested.
(maintenance_check_libthread_db): New function.
(_initialize_thread_db): Register "maint check libthread-db"
and "maint set/show check-libthread-db".
* NEWS: Mention the above new commands.
gdb/doc/ChangeLog:
* gdb.texinfo (Maintenance Commands): Document "maint check
libthread-db" and "maint set/show check-libthread-db".
gdb/testsuite/ChangeLog:
* gdb.threads/check-libthread-db.exp: New file.
* gdb.threads/check-libthread-db.c: Likewise.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -36,6 +36,16 @@ set|show record btrace cpu Controls the processor to be used for enabling errata workarounds for branch trace decode. +maint check libthread-db + Run integrity checks on the current inferior's thread debugging + library + +maint set check-libthread-db (on|off) +maint show check-libthread-db + Control whether to run integrity checks on inferior specific thread + debugging libraries as they are loaded. The default is not to + perform such checks. + * Python API ** Type alignment is now exposed via the "align" attribute of a gdb.Type. |