public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
@ 2024-05-10  6:23 vries at gcc dot gnu.org
  2024-05-10 18:21 ` [Bug gdb/31721] " blarsen at redhat dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-05-10  6:23 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 31721
           Summary: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none:
                    print before start
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

On openSUSE Leap 15.5, I run into:
...
FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
FAIL: gdb.base/list-dot-nodebug.exp: debug=some: print before start
...

I more detail:
...
(gdb) list .^M
warning: 1      ../sysdeps/x86_64/crtn.S: No such file or directory^M
(gdb) FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
...
and likewise:
...
(gdb) list .^M
warning: 1      ../sysdeps/x86_64/crtn.S: No such file or directory^M
(gdb) FAIL: gdb.base/list-dot-nodebug.exp: debug=some: print before start
...

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
@ 2024-05-10 18:21 ` blarsen at redhat dot com
  2024-05-11  8:05 ` vries at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: blarsen at redhat dot com @ 2024-05-10 18:21 UTC (permalink / raw)
  To: gdb-prs

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

Guinevere Larsen <blarsen at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blarsen at redhat dot com

--- Comment #1 from Guinevere Larsen <blarsen at redhat dot com> ---
this looks like 2 problems at once?

We're not getting the error message we wanted, yes, but also, we should be
trying to print around the main function, why did gdb decide to print the start
of sysdeps/whatever?

I think theresz something off about how we decide the default location...

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
  2024-05-10 18:21 ` [Bug gdb/31721] " blarsen at redhat dot com
@ 2024-05-11  8:05 ` vries at gcc dot gnu.org
  2024-05-11  8:37 ` vries at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-05-11  8:05 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Guinevere Larsen from comment #1)
> why did gdb decide to print the
> start of sysdeps/whatever?

The exec list-dot-nodebug-none has debug info for the following CUs:
...
$ readelf -wi outputs/gdb.base/list-dot-nodebug/list-dot-nodebug-none | grep
-A3 DW_TAG_compile | grep DW_AT_name
    <56>   DW_AT_name        : (indirect string, offset: 0x2e45): init.c
    <98>   DW_AT_name        : (indirect string, offset: 0x1ba):
../sysdeps/x86_64/crti.S
    <b7>   DW_AT_name        : (indirect string, offset: 0x1712):
../sysdeps/x86/libc-start.c
    <47c0>   DW_AT_name        : (indirect string, offset: 0x2d00): check_fds.c
    <523a>   DW_AT_name        : (indirect string, offset: 0x2e10): libc-tls.c
    <8cd3>   DW_AT_name        : (indirect string, offset: 0x2e41): elf-init.c
    <8ef7>   DW_AT_name        : (indirect string, offset: 0x2eb8): errno.c
    <9579>   DW_AT_name        : (indirect string, offset: 0x2ed3): assert.c
    <d12a>   DW_AT_name        : (indirect string, offset: 0x3325): dcgettext.c
    <f401>   DW_AT_name        : (indirect string, offset: 0x57d3):
dcigettext.c
    <14e35>   DW_AT_name        : (indirect string, offset: 0x580d):
finddomain.c
    <17eba>   DW_AT_name        : (indirect string, offset: 0x588a):
loadmsgcat.c
    <1bb8e>   DW_AT_name        : (indirect string, offset: 0x5cf4):
localealias.c
    <1eeb2>   DW_AT_name        : (indirect string, offset: 0x5dc9):
../sysdeps/x86_64/l10nflist.c
    <203c1>   DW_AT_name        : (indirect string, offset: 0x5e82):
explodename.c
    <2066d>   DW_AT_name        : (indirect string, offset: 0x5f7e):
/home/abuild/rpmbuild/BUILD/glibc-2.31/cc-base/intl/plural.c
    <21383>   DW_AT_name        : (indirect string, offset: 0x614f):
plural-exp.c
    <22359>   DW_AT_name        : (indirect string, offset: 0x616e):
hash-string.c
    <2243f>   DW_AT_name        : (indirect string, offset: 0x6373):
../sysdeps/unix/sysv/linux/raise.c
    <23043>   DW_AT_name        : (indirect string, offset: 0x6442): abort.c
    <25a9b>   DW_AT_name        : (indirect string, offset: 0x6680): msort.c
    <26f25>   DW_AT_name        : (indirect string, offset: 0xed60): getenv.c
    <276f6>   DW_AT_name        : (indirect string, offset: 0xbb1b): exit.c
    <2a133>   DW_AT_name        : (indirect string, offset: 0x7766):
cxa_atexit.c
    <2c39c>   DW_AT_name        : (indirect string, offset: 0x7798):
../sysdeps/wordsize-64/strtoul.c
    <2d10f>   DW_AT_name        : (indirect string, offset: 0x7822):
../sysdeps/wordsize-64/strtoul_l.c
    <2ee4b>   DW_AT_name        : (indirect string, offset: 0x789b): grouping.c
    <2f00a>   DW_AT_name        : (indirect string, offset: 0x8434): asprintf.c
    <31729>   DW_AT_name        : (indirect string, offset: 0x7d0b): fxprintf.c
    <3464d>   DW_AT_name        : (indirect string, offset: 0x7e2c): iofclose.c
    <37ba1>   DW_AT_name        : (indirect string, offset: 0x7e51): iofflush.c
    <3a750>   DW_AT_name        : (indirect string, offset: 0x7e89): iofopen.c
    <3cfdc>   DW_AT_name        : (indirect string, offset: 0x8027): wfileops.c
    <4109e>   DW_AT_name        : (indirect string, offset: 0x8270): iofwide.c
    <4478b>   DW_AT_name        : (indirect string, offset: 0x8433):
vasprintf.c
    <4714d>   DW_AT_name        : (indirect string, offset: 0x845b):
../sysdeps/unix/sysv/linux/libc_fatal.c
    <4adff>   DW_AT_name        : (indirect string, offset: 0x84e2): vtables.c
    <4e9e7>   DW_AT_name        : (indirect string, offset: 0x8502):
iofgets_u.c
    <510b4>   DW_AT_name        : (indirect string, offset: 0x8028): fileops.c
    <56b04>   DW_AT_name        : (indirect string, offset: 0xf9fd): genops.c
    <5d179>   DW_AT_name        : (indirect string, offset: 0x8cea): stdfiles.c
    <5f840>   DW_AT_name        : (indirect string, offset: 0x8d3b): stdio.c
    <61e78>   DW_AT_name        : (indirect string, offset: 0x8e0c): strops.c
    <64d4e>   DW_AT_name        : (indirect string, offset: 0x9016):
alloca_cutoff.c
    <66b4e>   DW_AT_name        : (indirect string, offset: 0x903c):
libc-lowlevellock.c
    <672c7>   DW_AT_name        : (indirect string, offset: 0x941a): malloc.c
    <753ec>   DW_AT_name        : (indirect string, offset: 0x9da3): morecore.c
    <75ce8>   DW_AT_name        : (indirect string, offset: 0x9dae):
../sysdeps/x86_64/multiarch/strchr.c
    <78e5a>   DW_AT_name        : (indirect string, offset: 0x9e24):
../sysdeps/x86_64/multiarch/strcmp.c
    <7bfcc>   DW_AT_name        : (indirect string, offset: 0x9e8f):
../sysdeps/x86_64/multiarch/strcpy.c
    <7f148>   DW_AT_name        : (indirect string, offset: 0x9eb4):
../sysdeps/x86_64/multiarch/strcspn.c
    <822aa>   DW_AT_name        : (indirect string, offset: 0x9eff): strdup.c
    <824b5>   DW_AT_name        : (indirect string, offset: 0x9f2b):
../sysdeps/x86_64/multiarch/strlen.c
    <85622>   DW_AT_name        : (indirect string, offset: 0x9f67):
../sysdeps/x86_64/multiarch/strncmp.c
    <88799>   DW_AT_name        : (indirect string, offset: 0x9fa2):
../sysdeps/x86_64/multiarch/strstr.c
    <8bed1>   DW_AT_name        : (indirect string, offset: 0xa09d):
../sysdeps/x86_64/multiarch/memcmp.c
    <8f058>   DW_AT_name        : (indirect string, offset: 0xa0fa):
../sysdeps/x86_64/multiarch/memmove.c
    <921cf>   DW_AT_name        : (indirect string, offset: 0xa137):
../sysdeps/x86_64/multiarch/memset.c
    <95346>   DW_AT_name        : (indirect string, offset: 0xa183):
../sysdeps/x86_64/multiarch/mempcpy.c
    <984c7>   DW_AT_name        : (indirect string, offset: 0xa1ce):
../sysdeps/x86_64/multiarch/stpcpy.c
    <9b643>   DW_AT_name        : (indirect string, offset: 0xa1f3):
../sysdeps/x86_64/multiarch/strcasecmp_l.c
    <9e86b>   DW_AT_name        : (indirect string, offset: 0xa262):
../sysdeps/x86_64/multiarch/memcpy.c
    <a19ec>   DW_AT_name        : (indirect string, offset: 0xa2c8):
../sysdeps/x86_64/multiarch/rawmemchr.c
    <a4b5e>   DW_AT_name        : (indirect string, offset: 0xa31b):
../sysdeps/x86_64/multiarch/strchrnul.c
    <a890e>   DW_AT_name        : (indirect string, offset: 0xad9f):
../sysdeps/x86_64/multiarch/strcspn-c.c
    <a8fea>   DW_AT_name        : (indirect string, offset: 0xadc7):
../sysdeps/x86_64/multiarch/varshift.c
    <a9d86>   DW_AT_name        : (indirect string, offset: 0xb7af):
../sysdeps/x86/cacheinfo.c
    <adf99>   DW_AT_name        : (indirect string, offset: 0xb93c):
../sysdeps/x86_64/strcasecmp_l-nonascii.c
    <aecfc>   DW_AT_name        : (indirect string, offset: 0xb97e): wmempcpy.c
    <aee1e>   DW_AT_name        : (indirect string, offset: 0xb9c5):
mbsrtowcs.c
    <afbad>   DW_AT_name        : (indirect string, offset: 0xba18):
wcsmbsload.c
    <b389f>   DW_AT_name        : (indirect string, offset: 0xbab4):
mbsrtowcs_l.c
    <b654c>   DW_AT_name        : (indirect string, offset: 0xbaff):
../sysdeps/unix/sysv/linux/_exit.c
    <b6ce4>   DW_AT_name        : (indirect string, offset: 0xbc1e):
../sysdeps/unix/sysv/linux/x86/sysconf.c
    <bb177>   DW_AT_name        : (indirect string, offset: 0xbdb5):
../sysdeps/unix/get_child_max.c
    <bb31f>   DW_AT_name        : (indirect string, offset: 0xbdd5): environ.c
    <bb413>   DW_AT_name        : (indirect string, offset: 0xbe14):
../sysdeps/unix/sysv/linux/wordsize-64/xstat.c
    <bbcba>   DW_AT_name        : (indirect string, offset: 0xbe61):
../sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
    <bc560>   DW_AT_name        : (indirect string, offset: 0xc015):
../sysdeps/unix/sysv/linux/open64.c
    <bcea0>   DW_AT_name        : (indirect string, offset: 0xc059):
../sysdeps/unix/sysv/linux/read.c
    <bd844>   DW_AT_name        : (indirect string, offset: 0xc087):
../sysdeps/unix/sysv/linux/write.c
    <be1ed>   DW_AT_name        : (indirect string, offset: 0xc0aa):
../sysdeps/unix/sysv/linux/lseek64.c
    <be9a4>   DW_AT_name        : (indirect string, offset: 0xc0f5):
../sysdeps/unix/sysv/linux/getcwd.c
    <c0f4c>   DW_AT_name        : (indirect string, offset: 0xc24a):
../sysdeps/unix/sysv/linux/close_nocancel.c
    <c16a6>   DW_AT_name        : (indirect string, offset: 0xc2a4):
../sysdeps/unix/sysv/linux/fcntl_nocancel.c
    <c2126>   DW_AT_name        : (indirect string, offset: 0xc305):
../sysdeps/unix/sysv/linux/open64_nocancel.c
    <c29a9>   DW_AT_name        : (indirect string, offset: 0xc344):
../sysdeps/unix/sysv/linux/openat64_nocancel.c
    <c3250>   DW_AT_name        : (indirect string, offset: 0xc373):
../sysdeps/unix/sysv/linux/read_nocancel.c
    <c3a1f>   DW_AT_name        : (indirect string, offset: 0xc39e):
../sysdeps/unix/sysv/linux/write_nocancel.c
    <c41f3>   DW_AT_name        : (indirect string, offset: 0xc3ca):
../sysdeps/unix/sysv/linux/getrlimit64.c
    <c4a0d>   DW_AT_name        : (indirect string, offset: 0xc47d): sbrk.c
    <c51b8>   DW_AT_name        : (indirect string, offset: 0xc48d):
../sysdeps/unix/sysv/linux/getpagesize.c
    <c833a>   DW_AT_name        : (indirect string, offset: 0xc4b6):
../sysdeps/unix/sysv/linux/getdtsz.c
    <c8539>   DW_AT_name        : (indirect string, offset: 0xc4e2):
../sysdeps/unix/sysv/linux/mmap64.c
    <cbacb>   DW_AT_name        : (indirect string, offset: 0xc576): tsearch.c
    <cc7a4>   DW_AT_name        : (indirect string, offset: 0xc656):
../sysdeps/unix/sysv/linux/getsysstats.c
    <cfa91>   DW_AT_name        : (indirect string, offset: 0xc77f):
../sysdeps/unix/sysv/linux/getclktck.c
    <d2b3b>   DW_AT_name        : (indirect string, offset: 0xc7ca):
init-misc.c
    <d2db5>   DW_AT_name        : (indirect string, offset: 0xc823): chk_fail.c
    <d35bd>   DW_AT_name        : (indirect string, offset: 0xc81d):
stack_chk_fail.c
    <d3cec>   DW_AT_name        : (indirect string, offset: 0xc82e):
fortify_fail.c
    <d444c>   DW_AT_name        : (indirect string, offset: 0xc868): dl-debug.c
    <d75ce>   DW_AT_name        : (indirect string, offset: 0xca03):
../sysdeps/x86_64/dl-tls.c
    <db25a>   DW_AT_name        : (indirect string, offset: 0xcd97):
dl-tunables.c
    <dee6c>   DW_AT_name        : (indirect string, offset: 0xce04):
dl-support.c
    <e2fb5>   DW_AT_name        : (indirect string, offset: 0xd05c):
enbl-secure.c
    <e31a4>   DW_AT_name        : (indirect string, offset: 0xd099):
dl-profstub.c
    <e62c1>   DW_AT_name        : (indirect string, offset: 0xd0c2):
../sysdeps/unix/sysv/linux/x86/dl-sysdep.c
    <ea01d>   DW_AT_name        : (indirect string, offset: 0xd17f): dl-error.c
    <edda4>   DW_AT_name        : (indirect string, offset: 0xd237):
init-first.c
    <f1c6a>   DW_AT_name        : (indirect string, offset: 0xd288):
gconv_open.c
    <f519c>   DW_AT_name        : (indirect string, offset: 0xd2a0): gconv.c
    <f7c5f>   DW_AT_name        : (indirect string, offset: 0xd2b2):
gconv_close.c
    <fa1db>   DW_AT_name        : (indirect string, offset: 0xd3af): gconv_db.c
    <fe7dd>   DW_AT_name        : (indirect string, offset: 0xd59d):
gconv_conf.c
    <1027d6>   DW_AT_name        : (indirect string, offset: 0xd77f):
gconv_builtin.c
    <104db7>   DW_AT_name        : (indirect string, offset: 0xdaf9):
gconv_simple.c
    <10d4c3>   DW_AT_name        : (indirect string, offset: 0xdca9):
gconv_trans.c
    <110cae>   DW_AT_name        : (indirect string, offset: 0xdd5a):
gconv_cache.c
    <114251>   DW_AT_name        : (indirect string, offset: 0xdeda):
gconv_dl.c
    <11703c>   DW_AT_name        : (indirect string, offset: 0xdf61):
gconv_charset.c
    <11976e>   DW_AT_name        : (indirect string, offset: 0xe2af):
setlocale.c
    <11c817>   DW_AT_name        : (indirect string, offset: 0xe3a9):
findlocale.c
    <1201e2>   DW_AT_name        : (indirect string, offset: 0xe546):
loadlocale.c
    <12255b>   DW_AT_name        : (indirect string, offset: 0xe76a):
loadarchive.c
    <124440>   DW_AT_name        : (indirect string, offset: 0xe78b):
lc-ctype.c
    <125da6>   DW_AT_name        : (indirect string, offset: 0xe8dd): C-ctype.c
    <127dc5>   DW_AT_name        : (indirect string, offset: 0xe9f7):
SYS_libc.c
    <127f0a>   DW_AT_name        : (indirect string, offset: 0xea02): C_name.c
    <128bdb>   DW_AT_name        : (indirect string, offset: 0xea0b): xlocale.c
    <1298eb>   DW_AT_name        : (indirect string, offset: 0xea15):
localename.c
    <12a579>   DW_AT_name        : (indirect string, offset: 0xea22):
global-locale.c
    <12b29b>   DW_AT_name        : (indirect string, offset: 0xea32):
ctype-info.c
    <12cc87>   DW_AT_name        : (indirect string, offset: 0xeaca):
setfpucw.c
    <12cd7f>   DW_AT_name        : (indirect string, offset: 0xead5):
fpu_control.c
    <12ce6d>   DW_AT_name        : (indirect string, offset: 0xeb35): sigjmp.c
    <12d114>   DW_AT_name        : (indirect string, offset: 0xebb8):
../sysdeps/unix/sysv/linux/x86_64/sigaction.c
    <12de0e>   DW_AT_name        : (indirect string, offset: 0xec32):
../sysdeps/unix/sysv/linux/sigprocmask.c
    <12fd57>   DW_AT_name        : (indirect string, offset: 0xecaa): qsort.c
    <130367>   DW_AT_name        : (indirect string, offset: 0xed45): setenv.c
    <132ead>   DW_AT_name        : (indirect string, offset: 0xed59):
secure-getenv.c
    <1330a4>   DW_AT_name        : (indirect string, offset: 0xed69):
../sysdeps/wordsize-64/strtol.c
    <133e17>   DW_AT_name        : (indirect string, offset: 0xedba):
../sysdeps/wordsize-64/strtol_l.c
    <135ba5>   DW_AT_name        : (indirect string, offset: 0xede7): fprintf.c
    <1382c4>   DW_AT_name        : (indirect string, offset: 0xf535):
vfprintf-internal.c
    <14054a>   DW_AT_name        : (indirect string, offset: 0xf6c3):
vfwprintf-internal.c
    <14863c>   DW_AT_name        : (indirect string, offset: 0xf740):
printf-parsemb.c
    <1499a4>   DW_AT_name        : (indirect string, offset: 0xf776):
printf-parsewc.c
    <14acf3>   DW_AT_name        : (indirect string, offset: 0xf7d8):
filedoalloc.c
    <14d6a7>   DW_AT_name        : (indirect string, offset: 0xf7cd): iofputs.c
    <1502b1>   DW_AT_name        : (indirect string, offset: 0xf7d7):
wfiledoalloc.c
    <152978>   DW_AT_name        : (indirect string, offset: 0xf7fb):
iofwrite.c
    <15557d>   DW_AT_name        : (indirect string, offset: 0xf825):
iogetdelim.c
    <1581c4>   DW_AT_name        : (indirect string, offset: 0xf86b):
iogetline.c
    <15aa46>   DW_AT_name        : (indirect string, offset: 0xf89a): iopadn.c
    <15d292>   DW_AT_name        : (indirect string, offset: 0xf8aa): iowpadn.c
    <15fae9>   DW_AT_name        : (indirect string, offset: 0xf9fc): wgenops.c
    <1632dd>   DW_AT_name        : (indirect string, offset: 0xfa48):
scratch_buffer_grow_preserve.c
    <163b27>   DW_AT_name        : (indirect string, offset: 0xfa7a):
scratch_buffer_set_array_size.c
    <1643c1>   DW_AT_name        : (indirect string, offset: 0xfa9a): strndup.c
    <164c40>   DW_AT_name        : (indirect string, offset: 0xfaab):
_strerror.c
    <1657f2>   DW_AT_name        : (indirect string, offset: 0xfad5):
../sysdeps/x86_64/multiarch/strnlen.c
    <168964>   DW_AT_name        : (indirect string, offset: 0xfb20):
../sysdeps/x86_64/multiarch/strrchr.c
    <16bad6>   DW_AT_name        : (indirect string, offset: 0xfb66):
strtok_r.c
    <16bc12>   DW_AT_name        : (indirect string, offset: 0xfb78):
../sysdeps/x86_64/multiarch/memchr.c
    <16ed89>   DW_AT_name        : (indirect string, offset: 0xfb9d): memmem.c
    <16f36d>   DW_AT_name        : (indirect string, offset: 0xfbae):
argz-ctsep.c
    <16faf3>   DW_AT_name        : (indirect string, offset: 0xfbbb):
argz-addsep.c
    <170591>   DW_AT_name        : (indirect string, offset: 0xfd51):
../sysdeps/x86_64/multiarch/wcslen.c
    <173715>   DW_AT_name        : (indirect string, offset: 0xfd76): wmemcpy.c
    <173837>   DW_AT_name        : (indirect string, offset: 0xfd80):
wmemmove.c
    <173955>   DW_AT_name        : (indirect string, offset: 0xfd8b): btowc.c
    <17684d>   DW_AT_name        : (indirect string, offset: 0xfd93): wcrtomb.c
    <17a00d>   DW_AT_name        : (indirect string, offset: 0xfd9d):
wcsrtombs.c
    <17ccc7>   DW_AT_name        : (indirect string, offset: 0xfda9):
../sysdeps/x86_64/multiarch/wcsnlen.c
    <17fe50>   DW_AT_name        : (indirect string, offset: 0xfdf6):
wcschrnul.c
    <17ff40>   DW_AT_name        : (indirect string, offset: 0xfe33):
../sysdeps/x86_64/multiarch/wcsnlen-c.c
    <18020d>   DW_AT_name        : (indirect string, offset: 0xff31):
../sysdeps/unix/sysv/linux/clock_gettime.c
    <18337a>   DW_AT_name        : (indirect string, offset: 0xff6e):
../sysdeps/posix/opendir.c
    <185b78>   DW_AT_name        : (indirect string, offset: 0x10038):
../sysdeps/posix/closedir.c
    <187807>   DW_AT_name        : (indirect string, offset: 0x10054):
../sysdeps/posix/rewinddir.c
    <18973d>   DW_AT_name        : (indirect string, offset: 0x1008e):
../sysdeps/unix/sysv/linux/readdir64.c
    <18b6a3>   DW_AT_name        : (indirect string, offset: 0x100b5):
../sysdeps/posix/fdopendir.c
    <18d68e>   DW_AT_name        : (indirect string, offset: 0x100d2):
../sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
    <18df35>   DW_AT_name        : (indirect string, offset: 0x10116):
../sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
    <18ee96>   DW_AT_name        : (indirect string, offset: 0x1018c):
../sysdeps/posix/isatty.c
    <18f086>   DW_AT_name        : (indirect string, offset: 0x101fb):
../sysdeps/unix/sysv/linux/tcgetattr.c
    <18f972>   DW_AT_name        : (indirect string, offset: 0x1023d):
../sysdeps/unix/sysv/linux/x86_64/brk.c
    <1900dc>   DW_AT_name        : (indirect string, offset: 0x102d0):
wctrans.c
    <191a7a>   DW_AT_name        : (indirect string, offset: 0x102ce):
towctrans.c
    <191cfe>   DW_AT_name        : (indirect string, offset: 0x1030c):
../sysdeps/unix/sysv/linux/readonly-area.c
    <1944f8>   DW_AT_name        : (indirect string, offset: 0x107d9):
dl-load.c
    <19b1c4>   DW_AT_name        : (indirect string, offset: 0x10a5c):
dl-lookup.c
    <19fdbf>   DW_AT_name        : (indirect string, offset: 0x10dd0):
dl-object.c
    <1a3207>   DW_AT_name        : (indirect string, offset: 0x10f92):
dl-reloc.c
    <1a7a62>   DW_AT_name        : (indirect string, offset: 0x11072):
dl-hwcaps.c
    <1ab1e5>   DW_AT_name        : (indirect string, offset: 0x110cc):
dl-misc.c
    <1aecbb>   DW_AT_name        : (indirect string, offset: 0x11224):
dl-profile.c
    <1b312a>   DW_AT_name        : (indirect string, offset: 0x113aa):
../sysdeps/unix/sysv/linux/dl-origin.c
    <1b646b>   DW_AT_name        : (indirect string, offset: 0x113d1):
dl-scope.c
    <1b95c7>   DW_AT_name        : (indirect string, offset: 0x11405):
../sysdeps/unix/sysv/linux/dl-execstack.c
    <1bc863>   DW_AT_name        : (indirect string, offset: 0x114e0):
dl-exception.c
    <1c0009>   DW_AT_name        : (indirect string, offset: 0x1154c):
dl-cache.c
    <1c3951>   DW_AT_name        : (indirect string, offset: 0x11679):
dl-libc.c
    <1c7413>   DW_AT_name        : (indirect string, offset: 0x11756):
lc-numeric.c
    <1c8078>   DW_AT_name        : (indirect string, offset: 0x11763):
C-messages.c
    <1c8ce5>   DW_AT_name        : (indirect string, offset: 0x11770):
C-monetary.c
    <1c99a6>   DW_AT_name        : (indirect string, offset: 0x1179b):
C-numeric.c
    <1ca613>   DW_AT_name        : (indirect string, offset: 0x117a7): C-time.c
    <1cb280>   DW_AT_name        : (indirect string, offset: 0x117b0):
C-paper.c
    <1cbeed>   DW_AT_name        : (indirect string, offset: 0x117ba): C-name.c
    <1ccb5a>   DW_AT_name        : (indirect string, offset: 0x117c3):
C-address.c
    <1cd7c7>   DW_AT_name        : (indirect string, offset: 0x117cf):
C-telephone.c
    <1ce434>   DW_AT_name        : (indirect string, offset: 0x117dd):
C-measurement.c
    <1cf0a1>   DW_AT_name        : (indirect string, offset: 0x117ed):
C-identification.c
    <1cfd0e>   DW_AT_name        : (indirect string, offset: 0x11800):
C-collate.c
    <1d09d0>   DW_AT_name        : (indirect string, offset: 0x11846): _itoa.c
    <1d0d39>   DW_AT_name        : (indirect string, offset: 0x11911):
itoa-digits.c
    <1d0dba>   DW_AT_name        : (indirect string, offset: 0x1191f):
itoa-udigits.c
    <1d0e3b>   DW_AT_name        : (indirect string, offset: 0x1192e):
itowa-digits.c
    <1d0ecc>   DW_AT_name        : (indirect string, offset: 0x11b00):
printf_fp.c
    <1d67a0>   DW_AT_name        : (indirect string, offset: 0x11c91):
reg-printf.c
    <1d880c>   DW_AT_name        : (indirect string, offset: 0x11de8):
../sysdeps/x86_64/fpu/printf_fphex.c
    <1dd3c8>   DW_AT_name        : (indirect string, offset: 0x11e46):
reg-modifier.c
    <1dfc5e>   DW_AT_name        : (indirect string, offset: 0x11e6e):
reg-type.c
    <1e1b34>   DW_AT_name        : (indirect string, offset: 0x11e9d):
../sysdeps/pthread/funlockfile.c
    <1e3e3d>   DW_AT_name        : (indirect string, offset: 0x12081):
../sysdeps/gnu/errlist.c
    <1e464b>   DW_AT_name        : (indirect string, offset: 0x120c5):
sdlerror.c
    <1e8506>   DW_AT_name        : (indirect string, offset: 0x12160):
sdladdr.c
    <1eb604>   DW_AT_name        : (indirect string, offset: 0x12186):
sdladdr1.c
    <1ee753>   DW_AT_name        : (indirect string, offset: 0x121b0):
sdlinfo.c
    <1f1ad3>   DW_AT_name        : (indirect string, offset: 0x1229e):
sdlmopen.c
    <1f4e8a>   DW_AT_name        : (indirect string, offset: 0xfaac):
strerror.c
    <1f5d2c>   DW_AT_name        : (indirect string, offset: 0x122fa):
../sysdeps/x86_64/multiarch/strspn.c
    <1f8e8e>   DW_AT_name        : (indirect string, offset: 0x1231f): strsep.c
    <1f8fe9>   DW_AT_name        : (indirect string, offset: 0x12368):
../sysdeps/x86_64/multiarch/strspn-c.c
    <1f95e0>   DW_AT_name        : (indirect string, offset: 0x1239f):
../sysdeps/x86_64/multiarch/wmemchr.c
    <1fc774>   DW_AT_name        : (indirect string, offset: 0x123d5):
../sysdeps/x86_64/multiarch/wmemset.c
    <1ffa11>   DW_AT_name        : (indirect string, offset: 0x12452):
../sysdeps/unix/sysv/linux/getdents64.c
    <201642>   DW_AT_name        : (indirect string, offset: 0x1247a):
../sysdeps/unix/sysv/linux/pread64_nocancel.c
    <201e52>   DW_AT_name        : (indirect string, offset: 0x125cd):
../sysdeps/unix/sysv/linux/profil.c
    <202f9c>   DW_AT_name        : (indirect string, offset: 0x1278c):
../sysdeps/unix/sysv/linux/prof-freq.c
    <206051>   DW_AT_name        : (indirect string, offset: 0x127cc):
../sysdeps/x86_64/dl-runtime.c
    <20a051>   DW_AT_name        : (indirect string, offset: 0x12960):
dl-open.c
    <20efa0>   DW_AT_name        : (indirect string, offset: 0x12bcf):
dl-close.c
    <213883>   DW_AT_name        : (indirect string, offset: 0x12bf7):
dl-sort-maps.c
    <216b95>   DW_AT_name        : (indirect string, offset: 0x12c3e):
../sysdeps/x86_64/tlsdesc.c
    <21a09c>   DW_AT_name        : (indirect string, offset: 0x12d04):
dl-addr.c
    <21d41f>   DW_AT_name        : (indirect string, offset: 0x12d0e):
dl-addr-obj.c
    <21fb48>   DW_AT_name        : (indirect string, offset: 0x12d1c):
lc-monetary.c
    <2207ad>   DW_AT_name        : (indirect string, offset: 0xa0bc): cmp.c
    <220a10>   DW_AT_name        : (indirect string, offset: 0x12d76): divrem.c
    <220f9f>   DW_AT_name        : (indirect string, offset: 0x12e6d): mul.c
    <2215da>   DW_AT_name        : (indirect string, offset: 0x12ee5): mul_n.c
    <222625>   DW_AT_name        : (indirect string, offset: 0x12f24):
../sysdeps/ieee754/dbl-64/dbl2mpn.c
    <222a4b>   DW_AT_name        : (indirect string, offset: 0x12f4d):
../sysdeps/x86_64/ldbl2mpn.c
    <222e98>   DW_AT_name        : (indirect string, offset: 0x12f6a):
../sysdeps/ieee754/float128/float1282mpn.c
    <223825>   DW_AT_name        : (indirect string, offset: 0x12f95):
fpioconst.c
    <223998>   DW_AT_name        : (indirect string, offset: 0x12faa):
sdlopen.c
    <226d59>   DW_AT_name        : (indirect string, offset: 0x12fc0):
sdlclose.c
    <229e91>   DW_AT_name        : (indirect string, offset: 0x12fe2): sdlsym.c
    <22d0cd>   DW_AT_name        : (indirect string, offset: 0x13006):
sdlvsym.c
    <23037f>   DW_AT_name        : (indirect string, offset: 0x13090):
dl-deps.c
    <234402>   DW_AT_name        : (indirect string, offset: 0x130ec):
dl-init.c
    <23779d>   DW_AT_name        : (indirect string, offset: 0x1317c):
dl-version.c
    <23b2e2>   DW_AT_name        : (indirect string, offset: 0x13258): dl-sym.c
    <23f2db>   DW_AT_name        : (indirect string, offset: 0x1349a):
../../../libgcc/soft-fp/unordtf2.c
    <23f5bb>   DW_AT_name        : (indirect string, offset: 0x134bd):
../../../libgcc/config/i386/64/letf2.c
    <23f88d>   DW_AT_name        : (indirect string, offset: 0x13533):
../../../libgcc/config/i386/sfp-exceptions.c
    <23fadc>   DW_AT_name        : (indirect string, offset: 0x13e43):
../../../libgcc/unwind-dw2.c
    <2451da>   DW_AT_name        : (indirect string, offset: 0x15f58):
../../../libgcc/unwind-dw2-fde-dip.c
    <2494b3>   DW_AT_name        : (indirect string, offset: 0x163fe):
../../../libgcc/unwind-c.c
    <24a37a>   DW_AT_name        : (indirect string, offset: 0x16593):
dl-iteratephdr.c
    <24d68d>   DW_AT_name        : (indirect string, offset: 0x165ae):
../sysdeps/x86_64/crtn.S
...

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
  2024-05-10 18:21 ` [Bug gdb/31721] " blarsen at redhat dot com
  2024-05-11  8:05 ` vries at gcc dot gnu.org
@ 2024-05-11  8:37 ` vries at gcc dot gnu.org
  2024-05-11  8:38 ` vries at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-05-11  8:37 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 15514
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15514&action=edit
list-dot-nodebug-none.gz

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-05-11  8:37 ` vries at gcc dot gnu.org
@ 2024-05-11  8:38 ` vries at gcc dot gnu.org
  2024-05-29 19:44 ` blarsen at redhat dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-05-11  8:38 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 15515
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15515&action=edit
list-dot-nodebug-some.gz

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-05-11  8:38 ` vries at gcc dot gnu.org
@ 2024-05-29 19:44 ` blarsen at redhat dot com
  2024-06-01 10:06 ` vries at gcc dot gnu.org
  2024-06-10 20:24 ` blarsen at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: blarsen at redhat dot com @ 2024-05-29 19:44 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #5 from Guinevere Larsen <blarsen at redhat dot com> ---
I'm looking into this problem, and I am convinced that the problem is in how
GDB determines the default location. There are multiple issues I am trying to
fix, but the one specific to this exact bug is that gdb can't find any compile
units for the objfile.

I'm at this point:

(top-gdb) bt 10
#0  lookup_symbol_in_objfile_symtabs (objfile=0x2c8dde0,
block_index=GLOBAL_BLOCK, name=0x7fffbc02a500 "main", 
    domain=...) at ../../binutils-gdb/gdb/symtab.c:2351
#1  0x0000000000bde85f in lookup_symbol_in_objfile (objfile=0x2c8dde0,
block_index=GLOBAL_BLOCK, 
    name=0x7fffbc02a500 "main", domain=...) at
../../binutils-gdb/gdb/symtab.c:2563
#2  0x0000000000bde98c in operator() (__closure=0x7fffffffcca0,
objfile_iter=0x2c8dde0)
    at ../../binutils-gdb/gdb/symtab.c:2619
#3  0x0000000000beb194 in operator() (__closure=0x0, ecall=...,
args#0=0x2c8dde0)
    at ../../binutils-gdb/gdb/../gdbsupport/function-view.h:305
#4  0x0000000000beb1bb in _FUN () at
../../binutils-gdb/gdb/../gdbsupport/function-view.h:299
#5  0x000000000098c41b in gdb::function_view<bool(objfile*)>::operator()
(this=0x7fffffffcb80, args#0=0x2c8dde0)
    at ../../binutils-gdb/gdb/../gdbsupport/function-view.h:289
#6  0x0000000000b74f25 in svr4_iterate_over_objfiles_in_search_order
(gdbarch=0x2d28d70, cb=..., current_objfile=0x0)
    at ../../binutils-gdb/gdb/solib-svr4.c:3351
#7  0x00000000004e186b in gdbarch_iterate_over_objfiles_in_search_order
(gdbarch=0x2d28d70, cb=..., 
    current_objfile=0x0) at ../../binutils-gdb/gdb/gdbarch.c:5110
#8  0x0000000000bdeb14 in lookup_global_or_static_symbol (name=0x7fffbc02a500
"main", block_index=GLOBAL_BLOCK, 
    objfile=0x0, domain=...) at ../../binutils-gdb/gdb/symtab.c:2616
#9  0x0000000000bdec88 in lookup_global_symbol (name=0x7fffbc02a500 "main",
block=0x0, domain=...)
    at ../../binutils-gdb/gdb/symtab.c:2673
(top-gdb) p objfile->compunits()
$40 = {m_begin = {m_item = 0x0}, m_end = {m_item = 0x0}}

In the -none file, this is the only call to lookup_symbol_in_objfile_symtabs,
so we should have all 788 compile units that readelf finds. For the -some file,
there are 2 calls to this function, both of which have empty compunit lists.

What I don't understand is why, when using "list main" after the unsuccessful
"list .", we DO find compunits. On the other hand, if we use "list main" first,
we never get compunits. I'm at a loss here

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-05-29 19:44 ` blarsen at redhat dot com
@ 2024-06-01 10:06 ` vries at gcc dot gnu.org
  2024-06-10 20:24 ` blarsen at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: vries at gcc dot gnu.org @ 2024-06-01 10:06 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> ---
The linaro CI reports here ( https://linaro.atlassian.net/browse/GNU-1223 ):
...
(gdb) list .^M                                                                  
warning: 1      <built-in>: No such file or directory^M                         
(gdb) FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start       
...
and:
...
(gdb) list .^M                                                                  
warning: 1      <built-in>: No such file or directory^M                         
(gdb) FAIL: gdb.base/list-dot-nodebug.exp: debug=some: print before start       
...

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

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

* [Bug gdb/31721] [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start
  2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2024-06-01 10:06 ` vries at gcc dot gnu.org
@ 2024-06-10 20:24 ` blarsen at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: blarsen at redhat dot com @ 2024-06-10 20:24 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #7 from Guinevere Larsen <blarsen at redhat dot com> ---
OK, I had some time to circle back to this.

I think I understood what's up. "list main" is not, in fact, finding the main
function. What it does is just print nothing if main isn't found. In contrast,
"set_default_source_location" doesn't have the luxury of not setting anything,
and if a main isn't found we set default location to the last symtab found. 

The test compiles the .c file statically specifically to avoid these as much as
possible, but I guess we can't avoid them all. I'll add an XFAIL for this test

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

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

end of thread, other threads:[~2024-06-10 20:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10  6:23 [Bug gdb/31721] New: [gdb] FAIL: gdb.base/list-dot-nodebug.exp: debug=none: print before start vries at gcc dot gnu.org
2024-05-10 18:21 ` [Bug gdb/31721] " blarsen at redhat dot com
2024-05-11  8:05 ` vries at gcc dot gnu.org
2024-05-11  8:37 ` vries at gcc dot gnu.org
2024-05-11  8:38 ` vries at gcc dot gnu.org
2024-05-29 19:44 ` blarsen at redhat dot com
2024-06-01 10:06 ` vries at gcc dot gnu.org
2024-06-10 20:24 ` blarsen at redhat dot com

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).