public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
@ 2024-01-10 14:31 vries at gcc dot gnu.org
  2024-01-10 14:31 ` [Bug testsuite/31229] " vries at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-10 14:31 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31229
           Summary: [gdb/testsuite, powerpc64le] FAIL:
                    gdb.linespec/explicit.exp: complete after -source: tab
                    complete "b -source thr" (timeout)
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

In OBS, on powerpc64le I ran into:
...
(gdb) b -source thread_pointer.h FAIL: gdb.linespec/explicit.exp: complete
after -source: tab complete "b -source thr" (timeout)
Quit^M
(gdb) complete b -source thr^M
b -source thread_pointer.h^M
(gdb) FAIL: gdb.linespec/explicit.exp: complete after -source: cmd complete "b
-source thr"
...

My guess is that the file thread_pointer.h is a glibc file.

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

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

* [Bug testsuite/31229] [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
  2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
@ 2024-01-10 14:31 ` vries at gcc dot gnu.org
  2024-12-17 14:12 ` vries at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2024-01-10 14:31 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|HEAD                        |13.1

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
With 13.2-based package.

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

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

* [Bug testsuite/31229] [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
  2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
  2024-01-10 14:31 ` [Bug testsuite/31229] " vries at gcc dot gnu.org
@ 2024-12-17 14:12 ` vries at gcc dot gnu.org
  2024-12-18 19:39 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2024-12-17 14:12 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
On openSUSE Leap 15.6 ppc64le, I ran into:
...
(gdb) b -source thread_pointer.h FAIL: gdb.linespec/explicit.exp: complete
after -source: tab complete "b -source thr"
Quit^M
...

I could reproduce this, and found in the debug info of the executable:
...
 The File Name Table (offset 0xb5):
  Entry Dir     Time    Size    Name
  1     0       0       0       abi-note.c
  2     1       0       0       types.h
  3     2       0       0       stdint-intn.h
  4     2       0       0       stdint-uintn.h
  5     3       0       0       elf.h
  6     4       0       0       thread_pointer.h
...

Looks like "thr" is not unique enough.

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

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

* [Bug testsuite/31229] [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
  2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
  2024-01-10 14:31 ` [Bug testsuite/31229] " vries at gcc dot gnu.org
  2024-12-17 14:12 ` vries at gcc dot gnu.org
@ 2024-12-18 19:39 ` vries at gcc dot gnu.org
  2024-12-20  5:17 ` cvs-commit at gcc dot gnu.org
  2024-12-20  5:18 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2024-12-18 19:39 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2024-December/214254.html

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

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

* [Bug testsuite/31229] [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
  2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-12-18 19:39 ` vries at gcc dot gnu.org
@ 2024-12-20  5:17 ` cvs-commit at gcc dot gnu.org
  2024-12-20  5:18 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-12-20  5:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=45b4f0499cbea2ed0efb2e1e2719617a3734a9ab

commit 45b4f0499cbea2ed0efb2e1e2719617a3734a9ab
Author: Tom de Vries <tdevries@suse.de>
Date:   Fri Dec 20 06:16:55 2024 +0100

    [gdb/testsuite] Use -nostdlib in gdb.linespec/explicit.exp

    On openSUSE Leap 15.6 ppc64le-linux, with gdb.linespec/explicit.exp I run
    into:
    ...
    (gdb) b -source thread_pointer.h FAIL: $exp: complete after -source: tab
complete "b -source thr"
    Quit^M
    ...

    The test-case already contains a related workaround:
    ...
            # Get rid of symbols from shared libraries, otherwise
            # "b -source thr<tab>" could find some system library's
            # source.
            gdb_test_no_output "nosharedlibrary"
    ...
    but that doesn't work in this case because the debug info is in the
executable
    itself:
    ...
     The File Name Table (offset 0xb5):
      Entry Dir     Time    Size    Name
      1     0       0       0       abi-note.c
      2     1       0       0       types.h
      3     2       0       0       stdint-intn.h
      4     2       0       0       stdint-uintn.h
      5     3       0       0       elf.h
      6     4       0       0       thread_pointer.h
    ...
    due to debug info in some glibc object file.

    Fix this by:
    - using -nostdlib, ensuring only debug info from the three test-case
sources
      is present in the executable, and
    - adding a _start wrapping main.

    Tested on x86_64-linux and ppc64le-linux.

    Reviewed-By: Keith Seitz <keiths@redhat.com>

    PR testsuite/31229
    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31229

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

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

* [Bug testsuite/31229] [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout)
  2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-12-20  5:17 ` cvs-commit at gcc dot gnu.org
@ 2024-12-20  5:18 ` vries at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vries at gcc dot gnu.org @ 2024-12-20  5:18 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |16.1
             Status|NEW                         |RESOLVED

--- Comment #5 from Tom de Vries <vries at gcc dot gnu.org> ---
Fixed.

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

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

end of thread, other threads:[~2024-12-20  5:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 14:31 [Bug testsuite/31229] New: [gdb/testsuite, powerpc64le] FAIL: gdb.linespec/explicit.exp: complete after -source: tab complete "b -source thr" (timeout) vries at gcc dot gnu.org
2024-01-10 14:31 ` [Bug testsuite/31229] " vries at gcc dot gnu.org
2024-12-17 14:12 ` vries at gcc dot gnu.org
2024-12-18 19:39 ` vries at gcc dot gnu.org
2024-12-20  5:17 ` cvs-commit at gcc dot gnu.org
2024-12-20  5:18 ` vries at gcc dot gnu.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).