1<html lang="en"> 2<head> 3<title>libthread_db.so.1 file - Debugging with GDB</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Debugging with GDB"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Auto_002dloading.html#Auto_002dloading" title="Auto-loading"> 9<link rel="prev" href="Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory" title="Init File in the Current Directory"> 10<link rel="next" href="objfile_002dgdb_002egdb-file.html#objfile_002dgdb_002egdb-file" title="objfile-gdb.gdb file"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<!-- 13Copyright (C) 1988-2013 Free Software Foundation, Inc. 14 15Permission is granted to copy, distribute and/or modify this document 16under the terms of the GNU Free Documentation License, Version 1.3 or 17any later version published by the Free Software Foundation; with the 18Invariant Sections being ``Free Software'' and ``Free Software Needs 19Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,'' 20and with the Back-Cover Texts as in (a) below. 21 22(a) The FSF's Back-Cover Text is: ``You are free to copy and modify 23this GNU Manual. Buying copies from GNU Press supports the FSF in 24developing GNU and promoting software freedom.'' 25--> 26<meta http-equiv="Content-Style-Type" content="text/css"> 27<style type="text/css"><!-- 28 pre.display { font-family:inherit } 29 pre.format { font-family:inherit } 30 pre.smalldisplay { font-family:inherit; font-size:smaller } 31 pre.smallformat { font-family:inherit; font-size:smaller } 32 pre.smallexample { font-size:smaller } 33 pre.smalllisp { font-size:smaller } 34 span.sc { font-variant:small-caps } 35 span.roman { font-family:serif; font-weight:normal; } 36 span.sansserif { font-family:sans-serif; font-weight:normal; } 37--></style> 38<link rel="stylesheet" type="text/css" href="../cs.css"> 39</head> 40<body> 41<div class="node"> 42<a name="libthread_db.so.1-file"></a> 43<a name="libthread_005fdb_002eso_002e1-file"></a> 44<p> 45Next: <a rel="next" accesskey="n" href="objfile_002dgdb_002egdb-file.html#objfile_002dgdb_002egdb-file">objfile-gdb.gdb file</a>, 46Previous: <a rel="previous" accesskey="p" href="Init-File-in-the-Current-Directory.html#Init-File-in-the-Current-Directory">Init File in the Current Directory</a>, 47Up: <a rel="up" accesskey="u" href="Auto_002dloading.html#Auto_002dloading">Auto-loading</a> 48<hr> 49</div> 50 51<h4 class="subsection">22.7.2 Automatically loading thread debugging library</h4> 52 53<p><a name="index-auto_002dloading-libthread_005fdb_002eso_002e1-1606"></a> 54This feature is currently present only on <span class="sc">gnu</span>/Linux native hosts. 55 56 <p><span class="sc">gdb</span> reads in some cases thread debugging library from places specific 57to the inferior (see <a href="set-libthread_002ddb_002dsearch_002dpath.html#set-libthread_002ddb_002dsearch_002dpath">set libthread-db-search-path</a>). 58 59 <p>The special ‘<samp><span class="samp">libthread-db-search-path</span></samp>’ entry ‘<samp><span class="samp">$sdir</span></samp>’ is processed 60without checking this ‘<samp><span class="samp">set auto-load libthread-db</span></samp>’ switch as system 61libraries have to be trusted in general. In all other cases of 62‘<samp><span class="samp">libthread-db-search-path</span></samp>’ entries <span class="sc">gdb</span> checks first if ‘<samp><span class="samp">set 63auto-load libthread-db</span></samp>’ is enabled before trying to open such thread debugging 64library. 65 66 <p>Note that loading of this debugging library also requires accordingly configured 67<code>auto-load safe-path</code> (see <a href="Auto_002dloading-safe-path.html#Auto_002dloading-safe-path">Auto-loading safe path</a>). 68 69 <dl> 70<a name="set-auto_002dload-libthread_002ddb"></a><a name="index-set-auto_002dload-libthread_002ddb-1607"></a><dt><code>set auto-load libthread-db [on|off]</code><dd>Enable or disable the auto-loading of inferior specific thread debugging library. 71 72 <p><a name="show-auto_002dload-libthread_002ddb"></a><a name="index-show-auto_002dload-libthread_002ddb-1608"></a><br><dt><code>show auto-load libthread-db</code><dd>Show whether auto-loading of inferior specific thread debugging library is 73enabled or disabled. 74 75 <p><a name="info-auto_002dload-libthread_002ddb"></a><a name="index-info-auto_002dload-libthread_002ddb-1609"></a><br><dt><code>info auto-load libthread-db</code><dd>Print the list of all loaded inferior specific thread debugging libraries and 76for each such library print list of inferior <var>pid</var>s using it. 77</dl> 78 79 </body></html> 80 81