Remove "noisy" parameter from clear_complaints
authorTom Tromey <tom@tromey.com>
Thu, 17 May 2018 04:27:50 +0000 (22:27 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 23 May 2018 15:17:00 +0000 (09:17 -0600)
After the previous patch, the "noisy" parameter to clear_complaints is
no longer used, so this patch removes it.

gdb/ChangeLog
2018-05-23  Tom Tromey  <tom@tromey.com>

* complaints.c (clear_complaints): Remove "noisy" parameter.
* complaints.h (clear_complaints): Update.
* symfile.c (syms_from_objfile_1, finish_new_objfile)
(reread_symbols): Update.

gdb/testsuite/ChangeLog
2018-05-23  Tom Tromey  <tom@tromey.com>

* gdb.gdb/complaints.exp (test_empty_complaints): Update.

gdb/ChangeLog
gdb/complaints.c
gdb/complaints.h
gdb/symfile.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.gdb/complaints.exp

index 40564810a5b9b9803722175478fe0b504a9e0359..6b5c336b1e372bffec98424bec978a243947dc41 100644 (file)
@@ -1,3 +1,10 @@
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * complaints.c (clear_complaints): Remove "noisy" parameter.
+       * complaints.h (clear_complaints): Update.
+       * symfile.c (syms_from_objfile_1, finish_new_objfile)
+       (reread_symbols): Update.
+
 2018-05-23  Tom Tromey  <tom@tromey.com>
 
        * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
index 71d36e6326cc980d9fc3cdabc9078bd83d31faec..d29b3c78303a4c5388d41ce84b89c088cb5a0f91 100644 (file)
@@ -220,12 +220,10 @@ complaint_internal (struct complaints **complaints, const char *fmt, ...)
    incremented.  If LESS_VERBOSE is 1, be less verbose about
    successive complaints, since the messages are appearing all
    together during a command that is reporting a contiguous block of
-   complaints (rather than being interleaved with other messages).  If
-   noisy is 1, we are in a noisy command, and our caller will print
-   enough context for the user to figure it out.  */
+   complaints (rather than being interleaved with other messages).  */
 
 void
-clear_complaints (struct complaints **c, int less_verbose, int noisy)
+clear_complaints (struct complaints **c, int less_verbose)
 {
   struct complaints *complaints = get_complaints (c);
   struct complain *p;
index 37648fb525545254b44ba4a6b6c32a5dc6bd87a1..652827e47bad11404ddd267bad08641544d7125d 100644 (file)
@@ -56,7 +56,7 @@ extern void complaint_internal (struct complaints **complaints,
    enough context for the user to figure it out.  */
 
 extern void clear_complaints (struct complaints **complaints,
-                             int less_verbose, int noisy);
+                             int less_verbose);
 
 
 #endif /* !defined (COMPLAINTS_H) */
index 7bc03fbb8f1ebcc90be1c3f63eba374b67773d2c..e48089a1301bda2fdee41304329c7ac3481a34a1 100644 (file)
@@ -986,7 +986,7 @@ syms_from_objfile_1 (struct objfile *objfile,
      initial symbol reading for this file.  */
 
   (*objfile->sf->sym_init) (objfile);
-  clear_complaints (&symfile_complaints, 1, add_flags & SYMFILE_VERBOSE);
+  clear_complaints (&symfile_complaints, 1);
 
   (*objfile->sf->sym_offsets) (objfile, *addrs);
 
@@ -1033,7 +1033,7 @@ finish_new_objfile (struct objfile *objfile, symfile_add_flags add_flags)
     }
 
   /* We're done reading the symbol file; finish off complaints.  */
-  clear_complaints (&symfile_complaints, 0, add_flags & SYMFILE_VERBOSE);
+  clear_complaints (&symfile_complaints, 0);
 }
 
 /* Process a symbol file, as either the main file or as a dynamically
@@ -2457,7 +2457,7 @@ reread_symbols (void)
            }
 
          (*objfile->sf->sym_init) (objfile);
-         clear_complaints (&symfile_complaints, 1, 1);
+         clear_complaints (&symfile_complaints, 1);
 
          objfile->flags &= ~OBJF_PSYMTABS_READ;
 
@@ -2487,7 +2487,7 @@ reread_symbols (void)
            }
 
          /* We're done reading the symbol file; finish off complaints.  */
-         clear_complaints (&symfile_complaints, 0, 1);
+         clear_complaints (&symfile_complaints, 0);
 
          /* Getting new symbols may change our opinion about what is
             frameless.  */
index 5650461909ea7e83c7ea506755f76d1843902575..e0ac1164939acb13e6e75f87fa6eb963a7051462 100644 (file)
@@ -1,3 +1,7 @@
+2018-05-23  Tom Tromey  <tom@tromey.com>
+
+       * gdb.gdb/complaints.exp (test_empty_complaints): Update.
+
 2018-05-23  Tom Tromey  <tom@tromey.com>
 
        * gdb.gdb/complaints.exp (test_serial_complaints): Remove.
index 1d532b7fd6c81f763a8940072dad9ae3855b5694..774ff89ae6483652b6ca40f089c062adb69561d7 100644 (file)
@@ -88,7 +88,7 @@ proc test_initial_complaints { } {
 # For short complaints, all are the same
 
 proc test_short_complaints { } {
-    gdb_test_exact "call clear_complaints (&symfile_complaints, 1, 1)" "" "short start"
+    gdb_test_exact "call clear_complaints (&symfile_complaints, 1)" "" "short start"
 
     # Prime the system
     test_complaint \
@@ -131,14 +131,10 @@ proc test_empty_complaint { cmd msg } {
 
 proc test_empty_complaints { } {
 
-    test_empty_complaint "call clear_complaints(&symfile_complaints,0,0)" \
-           "empty non-verbose non-noisy clear"
-    test_empty_complaint "call clear_complaints(&symfile_complaints,1,0)" \
-           "empty verbose non-noisy clear"
-    test_empty_complaint "call clear_complaints(&symfile_complaints,1,1)" \
-           "empty verbose noisy clear"
-    test_empty_complaint "call clear_complaints(&symfile_complaints,0,1)" \
-           "empty non-verbose noisy clear"
+    test_empty_complaint "call clear_complaints(&symfile_complaints,0)" \
+           "empty non-verbose clear"
+    test_empty_complaint "call clear_complaints(&symfile_complaints,1)" \
+           "empty verbose clear"
 
     return 0
 }
This page took 0.033785 seconds and 4 git commands to generate.