[binutils-gdb] Remove some "stabsread" references
Tom Tromey via Gdb-cvs <[email protected]> Thu, 23 Jul 2026 16:07:43 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc7b6637c4d20= bb7c7d43bac92f680f3560d00aa6 commit c7b6637c4d20bb7c7d43bac92f680f3560d00aa6 Author: Tom Tromey <[email protected]> Date: Thu Jul 16 14:04:32 2026 -0600 Remove some "stabsread" references =20 I noticed a stray reference to "stabsread". This patch removes these. =20 I also removed a bit of Ada code that, I believe, was only relevant to the stabs reader. =20 Reviewed-By: Guinevere Larsen <[email protected]> Diff: --- gdb/ada-lang.c | 5 ----- gdb/gdbtypes.h | 4 ++-- gdb/symtab.h | 4 +--- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index a7019a4522c..3efe932c823 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -3340,11 +3340,6 @@ ada_index_type (struct type *type, int n, const char= *name) type =3D type->target_type (); } result_type =3D ada_check_typedef (type)->index_type ()->target_type= (); - /* FIXME: The stabs type r(0,0);bound;bound in an array type - has a target type of TYPE_CODE_UNDEF. We compensate here, but - perhaps stabsread.c would make more sense. */ - if (result_type && result_type->code () =3D=3D TYPE_CODE_UNDEF) - result_type =3D NULL; } else { diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index ecd71f96497..eda09641248 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1681,8 +1681,8 @@ struct fn_fieldlist { =20 /* The overloaded name. - This is generally allocated in the objfile's obstack. - However stabsread.c sometimes uses malloc. */ + This is generally allocated in the objfile's obstack, but it + could also be statically allocated. */ =20 const char *name; =20 diff --git a/gdb/symtab.h b/gdb/symtab.h index 7b96b8c989c..6443216fd7f 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -803,9 +803,7 @@ struct minimal_symbol : public general_symbol_info m_target_flag_2 =3D target_flag_2; } =20 - /* Size of this symbol. stabs_end_psymtab in stabsread.c uses this - information to calculate the end of the partial symtab based on the - address of the last symbol plus the size of the last symbol. */ + /* Size of this symbol. */ =20 unsigned long m_size;