Bug 17258 - $pdir in LIBTHREAD_DB_SEARCH_PATH doesn't work with gdbserver
Summary: $pdir in LIBTHREAD_DB_SEARCH_PATH doesn't work with gdbserver
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: server (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-11 22:40 UTC by dje
Modified: 2014-08-11 22:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2014-08-11 22:40:49 UTC
Filing this for reference sake.

nat/gdb_thread_db.h has this:

#define LIBTHREAD_DB_SEARCH_PATH "$sdir:$pdir"

$pdir currently doesn't work with gdbserver.
gdbserver/thread-db.c has this:

      if (strncmp (this_dir, "$pdir", pdir_len) == 0
          && (this_dir[pdir_len] == '\0'
              || this_dir[pdir_len] == '/'))
        {
          /* We don't maintain a list of loaded libraries so we don't know
             where libpthread lives.  We *could* fetch the info, but we don't
             do that yet.  Ignore it.  */
        }