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 symtab/18150] New: Review testsuite results with removal of expansion of main's symtab


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

            Bug ID: 18150
           Summary: Review testsuite results with removal of expansion of
                    main's symtab
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

As a followup to bug 18148, I see several testsuite regressions when I apply
the appended patch.  I haven't put any time into root causing them, some
mightn't be bugs at all. But I think it will be a useful exercise.

diff --git a/gdb/symfile.c b/gdb/symfile.c
index ba099d3..96baf21 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1693,7 +1693,7 @@ set_initial_language (void)
 {
   enum language lang = main_language ();

-  if (lang == language_unknown)
+  if (0 && lang == language_unknown)
     {
       char *name = main_name ();
       struct symbol *sym = lookup_symbol (name, NULL, VAR_DOMAIN, NULL);

The point of the patch is to stop the expansion of the symtab with main,
which for many tests is the only useful symtab.

-- 
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]