Add a fall-through comment to stabsread.c
authorTom Tromey <tom@tromey.com>
Thu, 5 Apr 2018 21:39:57 +0000 (15:39 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 5 May 2018 04:04:46 +0000 (22:04 -0600)
This adds a fall-through comment to stabsread.c.  I skimmed the stabs
manual a bit and it seems that 'p' and 'P' are similar enough that
this makes sense.  Also, stabs is mostly deprecated, and the code has
been this way for a long time, so it seemed safest to keep the status
quo.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

* stabsread.c (define_symbol) <case 'p'>: Add fall-through
comment.

gdb/ChangeLog
gdb/stabsread.c

index 4bdd444..8e767c0 100644 (file)
@@ -1,5 +1,10 @@
 2018-05-04  Tom Tromey  <tom@tromey.com>
 
+       * stabsread.c (define_symbol) <case 'p'>: Add fall-through
+       comment.
+
+2018-05-04  Tom Tromey  <tom@tromey.com>
+
        * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
        * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
        * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
index 8d39290..a56702a 100644 (file)
@@ -1100,6 +1100,7 @@ define_symbol (CORE_ADDR valu, const char *string, int desc, int type,
            }
          break;
        }
+      /* Fall through.  */
 
     case 'P':
       /* acc seems to use P to declare the prototypes of functions that