aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-05-17 23:54:32 +0000
committerFred Fish <fnf@specifix.com>1992-05-17 23:54:32 +0000
commit6c316cfd666cefcdb824fbcb823358c308255b29 (patch)
treedea599c7f5f3b0b9641620b06dd8288b8156bf15 /gdb/dwarfread.c
parentbec9b335511df9f349805bf807d07b1e26d98010 (diff)
downloadgdb-6c316cfd666cefcdb824fbcb823358c308255b29.zip
gdb-6c316cfd666cefcdb824fbcb823358c308255b29.tar.gz
gdb-6c316cfd666cefcdb824fbcb823358c308255b29.tar.bz2
* inflow.c (new_tty): Temporarily ignore SIGTTOU when
disconnecting from controlling terminal, to avoid gdb hanging on SVR4. Fixes bug reported by Oliver Okrongli. * procfs.c (PROC_NAME_FMT): Change format to match default used by system, as suggested by Oliver Okrongli. * tm-68k.h (FRAME_FIND_SAVED_REGS): Apply missing parentheses bug fix from Brent Townshend (bst%tt@cam.ORG). * c-exp.y (nonempty_typelist): Fix memory overrun bug reported by turlais@rechser.total.fr. * dwarfread.c (decode_subscr_data): Fix bug in calculation of length of non-zero lowerbound arrays. Bug fix from Peggy Fieland. * objfiles.h (unlink_objfile): Add prototype. * objfiles.c (unlink_objfile): Add function. * objfiles.c (free_objfile): Call unlink_objfile. * objfiles.c (allocate_objfile): Call unlink_objfile on newly remapped objfiles. Bug reported by hahn@sunshine.labs.tek.com. Also, discard old possibly bogus sf struct. * symfile.c (symbol_file_add): Call init_entry_point_info() and find_sym_fns() for remapped symbol files, in case of any changes since the last mapping.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 1cd34cd..8a9cebd 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -1114,7 +1114,7 @@ decode_subscr_data (scan, end)
TYPE_OBJFILE (typep) = current_objfile;
TYPE_CODE (typep) = TYPE_CODE_ARRAY;
TYPE_LENGTH (typep) = TYPE_LENGTH (nexttype);
- TYPE_LENGTH (typep) *= lowbound + highbound + 1;
+ TYPE_LENGTH (typep) *= (highbound - lowbound) + 1;
TYPE_TARGET_TYPE (typep) = nexttype;
}
}