* gdbtypes.c (check_typedef): Document that this function can
authorDoug Evans <dje@google.com>
Thu, 10 Nov 2011 06:53:55 +0000 (06:53 +0000)
committerDoug Evans <dje@google.com>
Thu, 10 Nov 2011 06:53:55 +0000 (06:53 +0000)
throw an exception.

gdb/ChangeLog
gdb/gdbtypes.c

index d489d08..4af9349 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-09  Doug Evans  <dje@google.com>
+
+       * gdbtypes.c (check_typedef): Document that this function can
+       throw an exception.
+
 2011-11-09  Tom Tromey  <tromey@redhat.com>
 
        PR c++/13342:
index 614b813..d0cb678 100644 (file)
@@ -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.