diff options
author | Doug Evans <dje@google.com> | 2011-11-10 06:53:55 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-11-10 06:53:55 +0000 |
commit | 9bc118a5d44548773b26f6a7f186f14009f00786 (patch) | |
tree | 72a0e9a9d991634a884c28c710dffddb06830f05 | |
parent | 2c339f710d5c9dfa791386e1982c20cb09a334ad (diff) | |
download | binutils-9bc118a5d44548773b26f6a7f186f14009f00786.zip binutils-9bc118a5d44548773b26f6a7f186f14009f00786.tar.gz binutils-9bc118a5d44548773b26f6a7f186f14009f00786.tar.bz2 |
* gdbtypes.c (check_typedef): Document that this function can
throw an exception.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbtypes.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d489d08..4af9349 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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: diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 614b813..d0cb678 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. |