From 9bc118a5d44548773b26f6a7f186f14009f00786 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 10 Nov 2011 06:53:55 +0000 Subject: [PATCH] * gdbtypes.c (check_typedef): Document that this function can throw an exception. --- gdb/ChangeLog | 5 +++++ gdb/gdbtypes.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d489d081d52..4af934957bf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-11-09 Doug Evans + + * gdbtypes.c (check_typedef): Document that this function can + throw an exception. + 2011-11-09 Tom Tromey PR c++/13342: diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 614b813c2b6..d0cb678e116 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1454,6 +1454,10 @@ stub_noname_complaint (void) not been computed and we're either in the middle of reading symbols, or there was no name for the typedef in the debug info. + NOTE: Lookup of opaque types can throw errors for invalid symbol files. + QUITs in the symbol reading code can also throw. + Thus this function can throw an exception. + If TYPE is a TYPE_CODE_TYPEDEF, its length is updated to the length of the target type. -- 2.30.2