diff options
author | Alan Modra <amodra@gmail.com> | 2024-01-30 09:38:56 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-01-30 09:42:59 +1030 |
commit | e175a2fc60cb9709c4461cdd8596ae05e529d67b (patch) | |
tree | d1e63b4144bb99a39f4e0609861152f6eee1575e | |
parent | 920d9f0b39e9e8e42134c0317e772dbb93cdf8c8 (diff) | |
download | gdb-e175a2fc60cb9709c4461cdd8596ae05e529d67b.zip gdb-e175a2fc60cb9709c4461cdd8596ae05e529d67b.tar.gz gdb-e175a2fc60cb9709c4461cdd8596ae05e529d67b.tar.bz2 |
PR31314, chew crashing on use of uninitialized value
The "drop" call in wrap_comment already increments pc. Defining DOCDD
in proto.str is a warning fix.
PR 31314
* chew.c (wrap_comment): Don't increment pc.
* proto.str (DOCDD): Define.
-rw-r--r-- | bfd/doc/chew.c | 2 | ||||
-rw-r--r-- | bfd/doc/proto.str | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c index 28c8072..842d415 100644 --- a/bfd/doc/chew.c +++ b/bfd/doc/chew.c @@ -541,8 +541,6 @@ wrap_comment (void) overwrite_string (tos - 1, &out); drop (); - - pc++; } /* Mod tos so that only lines with leading dots remain */ diff --git a/bfd/doc/proto.str b/bfd/doc/proto.str index ee06c31..9a56397 100644 --- a/bfd/doc/proto.str +++ b/bfd/doc/proto.str @@ -166,6 +166,7 @@ : SUBSUBSECTION ignore ; : INODE ignore ; : DESCRIPTION ignore ; +: DOCDD ignore ; : ENDDD EXTERNAL ; : FUNCTION EXTERNAL ; : INTERNAL_FUNCTION INTERNAL ; |