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 build/13014] New: member th is only added to struct lwp_info ifHAVE_THREAD_DB_H defined, but code doesnt check


http://sourceware.org/bugzilla/show_bug.cgi?id=13014

           Summary: member th is only added to struct lwp_info if
                    HAVE_THREAD_DB_H defined, but code doesnt check
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: wkor97gy0eef1fr@p.mintemail.com


thread-db.c: In function `find_one_thread':
thread-db.c:293: warning: long int format, thread_t arg (arg 3)
thread-db.c:316: error: structure has no member named `th'


line 316 (uncoditional access):
   lwp->th = th;

is defined earlier in the function as
  struct lwp_info *lwp;

definiton in 

./gdb/gdbserver/linux-low.h (line 245)

#ifdef HAVE_THREAD_DB_H
  /* The thread handle, used for e.g. TLS access.  Only valid if
     THREAD_KNOWN is set.  */
  td_thrhandle_t th;
#endif

there is no code in the Makefile, configure, or any source file that defines
this symbol.

note, compilation was done on a system using musl libc.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]