]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[ChangeLog]
authorJason Molenda <jmolenda@apple.com>
Fri, 14 Feb 2003 01:13:45 +0000 (01:13 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 14 Feb 2003 01:13:45 +0000 (01:13 +0000)
2003-02-12  Jason Molenda  (jmolenda@apple.com)

        * symmisc.c (print_objfile_statistics): Include information about
        the number of psymtabs and symtabs in each object file.

[testsuite/ChangeLog]
2003-02-13  Jason Molenda  (jmolenda@apple.com)

        * gdb.base/maint.exp: Update maint print statistics regexp to include
        new entries.

gdb/ChangeLog
gdb/symmisc.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/maint.exp

index 6d39a74bceeba454b8eeb87b5e87f8f5bdac2950..34b1159ebce16129f81491af21e119469a3a0949 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-12  Jason Molenda  (jmolenda@apple.com)
+
+        * symmisc.c (print_objfile_statistics): Include information about
+        the number of psymtabs and symtabs in each object file.
+
 2003-02-13  Keith R Seitz  <keiths@redhat.com>
 
        * main.h (struct captured_main_args): Add interpreter_p.
index 995372d1d05242966eb4beee79c4a37282c6259c..3011335230ad3983fb8039f0213e22b0055f4350 100644 (file)
@@ -179,6 +179,9 @@ void
 print_objfile_statistics (void)
 {
   struct objfile *objfile;
+  struct symtab *s;
+  struct partial_symtab *ps;
+  int i, linetables, blockvectors;
 
   immediate_quit++;
   ALL_OBJFILES (objfile)
@@ -199,6 +202,28 @@ print_objfile_statistics (void)
     if (OBJSTAT (objfile, n_types) > 0)
       printf_filtered ("  Number of \"types\" defined: %d\n",
                       OBJSTAT (objfile, n_types));
+    i = 0;
+    ALL_OBJFILE_PSYMTABS (objfile, ps)
+      {
+        if (ps->readin == 0)
+          i++;
+      }
+    printf_filtered ("  Number of psym tables (not yet expanded): %d\n", i);
+    i = linetables = blockvectors = 0;
+    ALL_OBJFILE_SYMTABS (objfile, s)
+      {
+        i++;
+        if (s->linetable != NULL)
+          linetables++;
+        if (s->primary == 1)
+          blockvectors++;
+      }
+    printf_filtered ("  Number of symbol tables: %d\n", i);
+    printf_filtered ("  Number of symbol tables with line tables: %d\n", 
+                     linetables);
+    printf_filtered ("  Number of symbol tables with blockvectors: %d\n", 
+                     blockvectors);
+    
     if (OBJSTAT (objfile, sz_strtab) > 0)
       printf_filtered ("  Space used by a.out string tables: %d\n",
                       OBJSTAT (objfile, sz_strtab));
index 6304f4800dd0bd46a0ec372856922ea676affafe..44ecc4b32edfdd40f34c8d05a3bc0b89197a7d08 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-13  Jason Molenda  (jmolenda@apple.com)
+
+       * gdb.base/maint.exp: Update maint print statistics regexp to include
+       new entries.
+
 2003-02-13  Michael Chastain  <mec@shout.net>
 
        * gdb.c++/inherit.exp: Remove call to get_debug_format.
index 69fecaddf17efc3cffee19a3d0bee8a5d488551a..d8286508699237e247f240011c509610595e3f23 100644 (file)
@@ -180,7 +180,7 @@ gdb_expect  {
 
 send_gdb "maint print statistics\n"
 gdb_expect  {
-        -re "Statistics for.*break.*Number of \"minimal\" symbols read.*Number of \"partial\" symbols read.*Number of \"types\" defined.*Total memory used for psymbol obstack.*Total memory used for psymbol cache.*Total memory used for symbol obstack.*Total memory used for type obstack.*$gdb_prompt $"\
+        -re "Statistics for.*break.*Number of \"minimal\" symbols read.*Number of \"partial\" symbols read.*Number of \"types\" defined.*Number of psym tables \\(not yet expanded\\).*Number of symbol tables.*Number of symbol tables with line tables.*Number of symbol tables with blockvectors.*Total memory used for psymbol obstack.*Total memory used for psymbol cache.*Total memory used for symbol obstack.*Total memory used for type obstack.*$gdb_prompt $"\
                         { pass "maint print statistics" }
         -re ".*$gdb_prompt $"       { fail "maint print statistics" }
         timeout         { fail "(timeout) maint print statistics" }