This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug server/17258] New: $pdir in LIBTHREAD_DB_SEARCH_PATH doesn't work with gdbserver


https://sourceware.org/bugzilla/show_bug.cgi?id=17258

            Bug ID: 17258
           Summary: $pdir in LIBTHREAD_DB_SEARCH_PATH doesn't work with
                    gdbserver
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

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.  */
        }

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]