public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/30026] New: ctf test program gives weird results with "list"
@ 2023-01-19 18:53 tromey at sourceware dot org
  2023-01-19 18:56 ` [Bug symtab/30026] " tromey at sourceware dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: tromey at sourceware dot org @ 2023-01-19 18:53 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30026
           Summary: ctf test program gives weird results with "list"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I tried the test programs in gdb.ctf.
If I debug one and then type "list" I get very weird output:

murgatroyd. ../gdb -nx ./outputs/gdb.ctf/cross-tu-cyclic/cross-tu-cyclic 
[...]
(gdb) list
1       ^?ELF^B^A^A


What's happening here is that in ctfread.c:scan_partial_symbols:

  if (strcmp (fname, ".ctf") == 0)
    {
      fname = bfd_get_filename (of->obfd.get ());
      isparent = true;
    }

  ctf_psymtab *pst = create_partial_symtab (fname, tup->arc, cfp,
                                            partial_symtabs, of);

IOW, ctfread is saying that the source file for this psymtab
is the executable itself, which is clearly wrong.

-- 
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:[~2023-12-06 20:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-19 18:53 [Bug symtab/30026] New: ctf test program gives weird results with "list" tromey at sourceware dot org
2023-01-19 18:56 ` [Bug symtab/30026] " tromey at sourceware dot org
2023-01-23 11:45 ` nick.alcock at oracle dot com
2023-01-23 13:15 ` tromey at sourceware dot org
2023-01-26 14:05 ` nick.alcock at oracle dot com
2023-01-30  4:16 ` tromey at sourceware dot org
2023-12-06 11:58 ` nick.alcock at oracle dot com
2023-12-06 20:10 ` 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).