public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/13014] New: member th is only added to struct lwp_info if HAVE_THREAD_DB_H defined, but code doesnt check
@ 2011-07-21 20:18 wkor97gy0eef1fr at p dot mintemail.com
  2022-02-27 23:49 ` [Bug build/13014] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: wkor97gy0eef1fr at p dot mintemail.com @ 2011-07-21 20:18 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug build/13014] member th is only added to struct lwp_info if HAVE_THREAD_DB_H defined, but code doesnt check
  2011-07-21 20:18 [Bug build/13014] New: member th is only added to struct lwp_info if HAVE_THREAD_DB_H defined, but code doesnt check wkor97gy0eef1fr at p dot mintemail.com
@ 2022-02-27 23:49 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2022-02-27 23:49 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
> there is no code in the Makefile, configure, or any source file that defines this symbol.

I would expect it to be created by

AC_CHECK_HEADERS( [...] thread_db.h [...] )

in common.m4

If you run configure do you see this check happening?
I tend to suspect that, given the age, this bug is obsolete.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-27 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-21 20:18 [Bug build/13014] New: member th is only added to struct lwp_info if HAVE_THREAD_DB_H defined, but code doesnt check wkor97gy0eef1fr at p dot mintemail.com
2022-02-27 23:49 ` [Bug build/13014] " tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).