aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-11-10 06:53:55 +0000
committerDoug Evans <dje@google.com>2011-11-10 06:53:55 +0000
commit9bc118a5d44548773b26f6a7f186f14009f00786 (patch)
tree72a0e9a9d991634a884c28c710dffddb06830f05 /gdb
parent2c339f710d5c9dfa791386e1982c20cb09a334ad (diff)
downloadgdb-9bc118a5d44548773b26f6a7f186f14009f00786.zip
gdb-9bc118a5d44548773b26f6a7f186f14009f00786.tar.gz
gdb-9bc118a5d44548773b26f6a7f186f14009f00786.tar.bz2
* gdbtypes.c (check_typedef): Document that this function can
throw an exception.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.c4
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.