aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1992-06-14* dbxread.c (end_psymtab): Only reset texthigh if it's not alreadyJohn Gilmore3-17/+44
set. Don't reset our own texthigh, or dependency-only pst's, in scanning all the rest of the psymtabs. (process_one_symbol): Fix comments around N_OBJ, N_OPT, N_UNDF. * buildsym.h (N_UNDF): Improve comments. (N_LSYM, etc): Skip types without names (":T(0,3)=sfoob...").
1992-06-13* symtab.h (struct symbol): Add aux_value union for preservingFred Fish2-21/+30
an additional per-symbol value. * symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID): Add defines. * frame.h (FRAME_GET_BASEREG_VALUE): Provide default definition. * findvar.c (read_var_value): Use SYMBOL_BASEREG if valid. * printcmd.c (address_info): Use SYMBOL_BASEREG if valid. * symmisc.c (print_symbol): Use SYMBOL_BASEREG if valid.
1992-06-13Make `clear_symtab_users_once' non-static so objfiles can be linked.Michael Tiemann1-0/+5
1992-06-13* elfread.c (record_minimal_symbol_and_info): Kludged to putJohn Gilmore5-18/+134
extra info in the minimal symbol. (elf_symtab_read): The extra info is the size of an ELF object, which was kludged to us in the `udata' field of the BFD symbol. Gag me with a crowbar... (elf_symfile_read): Keep track of both the absolute load address, and the offset between load addr and symbols. Handle STABS as well as DWARF sections, passing the absolute load address to elfstab_build_psymtabs. * objfiles.c (free_objfile): Eliminate storage leaks. Contributed by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>. * symfile.c (symfile_bfd_open): Comment where name is freed. * symmisc.c (extend_psymbol_list): Comment where list is freed.
1992-06-13* dbxread.c: Add symbol_size to struct dbx_symfile_info.John Gilmore4-65/+406
Add symbol_size and file offsets to struct symloc. Add static symbol_table_offset, string_table_offset, file_string_table_offset, next_file_string_table_offset, last_function_name. (add_old_header_file): Convert error() to complain()t. (dbx_symfile_read): Get symbol size via the objfile. Also get symbol_table_offset. (dbx_symfile_init): Record symbol size and count via the objfile. (dbx_next_symbol_text): Always add file_string_table_offset when accessing string table. (read_dbx_symtab): Initialize file_string_table_offset to 0. (SET_NAMESTRING): Use the offset. (end_psymtab): Large kludge to determine addresses where source files start and end (for the psymtab header). (psymtab_to_symtab_1): Set file_string_table_offset before reading. Get this, symbol size, and symbol offset, from psymtab. (read_ofile_symtab): Don't back up one symbol for Solaris2. Patch up last_source_start_addr if zero in N_SO. (process_one_symbol): Add variable function_start_offset. ( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for BLOCK_ADDRESS_FUNCTION_RELATIVE. ( "", N_OBJ, N_OPT): Ignore. (elfstab_build_psymtabs): New function to read stabs out of an ELF file. * Makefile.in: Accept $(BISON) even though we really want $(YACC). (gdb): use GLOBAL_CFLAGS when linking, too. * partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets. (N_OBJ, N_OPT): Ignore. ('f', 'F'): Save last function name. * symfile.h: Prototype elfstab_build_psymtabs. * symfile.c: Add almost-OK debug versions of add_psymbol_*to_list. * xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
1992-06-13Remove reg_names decl (now in defs.h).John Gilmore9-34/+14
1992-06-13LintJohn Gilmore1-1/+1
1992-06-13* buildsym.h: Add processing_acc_compilation flag.John Gilmore8-4/+320
* buildsym.c (read_sun_builtin_type, read_sun_floating_type): New. (define_symbol): Skip arg types in function entries. Resolve overloaded 'P' which acc uses for prototypes of functions called by this file. (read_type: 'b', 'r'): Handle Solaris2 builtin types. * minsyms.c (prim_record_minimal_symbol_and_info): Hack to save size of ELF symbols. FIXME. * tm-sun4os5.h: Rename to tm-sun4sol2.h. Update defines for Sol2. * xm-sun4os5.h: Rename to xm-sun4sol2.h. Hack more defines. * config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht]; new xm, tm.
1992-06-13* configure.in: Solaris config is sparc-sun-solaris2.John Gilmore4-2/+39
* config/sun4os5.m[ht]: Rename to config/sun4sol2.m[ht].
1992-06-12 * expprint.c (print_subexp): Add missing ']'.Fred Fish3-4/+38
* defs.h (reg_names): Fix declaration to match that in infcmd.c * stack.c (reg_names): Delete redundant (and inconsistent) decl. * WHATS.NEW: Point out improved C++ function name handling. * gdbtypes.c (lookup_fundamental_type): For now, use the same type names for both implicitly and explicitly signed integral types. See comment in the source code.
1992-06-11Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):John Gilmore3-75/+155
* defs.h (longest_to_int): Avoid void arm of ?: in error case. * expprint.c (print_subexp): Fix printing of register names.
1992-06-11Latest and greatest, many bug fixes, value annotations, stack frameStu Grossman1-122/+651
annotations, etc...
1992-06-11Small changes from Solaris port. The big stuff is not all working yet.John Gilmore10-71/+181
* inferior.h (register_valid): Declare. * remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h: Remove decl. * objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}): Add macros for traversing the data structures in a single objfile. * tm-m88k.h, tm-sparc.h (REGISTER_NAMES): Remove extra semicolon. * tm-i960.h (REGISTER_NAMES): Cosmetic change. * infcmd.c: Lint.
1992-06-10 * c-exp.y, m2-exp.y: Move remapping defines for malloc andFred Fish8-16/+61
realloc. Add remapping defines for {yyss, yyssp, yyvs, yyvsp}. * config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh, sun4os5.mh}: Add definition for INSTALL using /usr/ucb/install.
1992-06-09Oops, forgot depend!Stu Grossman1-1/+6
1992-06-09* depend: rebuild to account for remote-st2000.c.Stu Grossman3-414/+261
* remote-st2000.c: Almost works now. * tm-st2000.h: Need to turn on HAVE_68881, else things won't compile.
1992-06-09 * c-exp.y (yylex): Recognize single-quoted strings that specifyFred Fish5-354/+204
tokens with embedded whitespace, such as C++ demangled names. * defs.h (demangle_and_match, strcmp_iw, skip_quoted): Prototypes. * main.c (gdb_completer_quote_characters): Add global variable. * main.c (symbol_completion_function): Total rewrite for C++ demangled name handling. * main.c (skip_quoted): New function. * main.c (main): Set rl_completer_quote_characters. * symmisc.c (dump_symtab): Print source language for symtab. * symtab.c (expensive_mangler): Add prototype and function. * symtab.c (completion_list_add_symbol): Total rewrite for new C++ demangled name handling. * symtab.c (lookup_symbol): Check for demangled C++ symbol first, other changes for demangled C++ symbol handling. * symtab.c (lookup_demangled_block_symbol): Use demangle_and_match. * symtab.c (lookup_demangled_partial_symbol): Use demangle_and_match. * symtab.c (decode_line_1): Recognize C++ demangled names on input. * symtab.c (completion_list_add_symbol): Total rewrite for new C++ demangled name handling. * symtab.c (expensive_mangler): New function. * utils.c (strcmp_iw, demangle_and_match): New functions. * xcoffread.c (aixcoff_symfile_read): Fix prototype.
1992-06-09* Makefile.in: Roll VERSION to 4.5.4.John Gilmore16-21/+30
* Makefile.in, config/*.mh, config/*.mt: Rename TM_CFLAGS to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names. * config/sun4os5.mh: Add MH_CFLAGS=-xs to save debug info.
1992-06-09TypoJohn Gilmore1-1/+1
1992-06-08See gdb/Changelog for details.Stu Grossman1-1/+1
1992-06-08* alldeps.mak: Rebuild to account for new files.Stu Grossman2-0/+23
* config/st2000.mt: Use tm-st2000.h, not tm-68k.h. * tm-st2000.h: New file.
1992-06-08* configure.in: Tandem debug monitor (st2000) support.Stu Grossman3-0/+1012
* remote-st2000.c, config/st2000.mt: ditto.
1992-06-08See gdb/Changelog for detailsStu Grossman1-0/+7
1992-06-05* blockframe.c (inside_entry_file, inside_main_func,John Gilmore1-1/+6
inside_entry_func): Return 0 if no symbols; avoid crashing.
1992-06-04* xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclassJohn Gilmore2-1/+15
without masking, since it is signed and will later be compared against signed quantities. The right fix is probably to make it all unsigned, but this is a small, safe fix for this release. FIXME -- make the real change sometime soon. (Imported from progressive.)
1992-06-02Fix from net: when predigesting doc for texi2roff, search for "@c " atRoland Pesch1-3/+3
the beginning of a line, rather than just "@C" at the beginning of a line, to identify (and remove) comments.
1992-06-02Tracking changes from Lucid: option formerly known as eitherRoland Pesch1-2/+1
"-cadillac" or "-energize" is called "-context" now.
1992-06-01Pass the correct number of parameters to `symbol_file_add'.Michael Tiemann2-2/+5
1992-06-01Define MALLOC_INCOMPATIBLE so we can compile files which include <malloc.h>Michael Tiemann2-0/+16
1992-05-31Handle -m680[01234]0-wrs as specific vxworks68 targets. With -nfp,Michael Tiemann1-0/+9
this offers full control over the CPU parameters of vxworks systems we are likely to encounter (not to mention other 68k embedded targets that run a.out as their debugging format).
1992-05-30Fix lint found by GCC.Michael Tiemann2-1/+6
1992-05-27LintJohn Gilmore1-1/+11
1992-05-26lintSteve Chamberlain1-1/+1
1992-05-21PTR vs. void*. Sorry.Sean Eric Fagan1-1/+1
1992-05-21qsort returns a void*, according to the manual pages on two different systems.Sean Eric Fagan1-9/+52
1992-05-20* coredep.c (fetch_core_registers): Remove premature warning,John Gilmore2-23/+24
which triggers on DECstation even though all regs are accessible. * m68k-pinsn.c (print_insn_arg): Use new macros to get sign-extension of instruction fields even on unsigned-char hosts. Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
1992-05-2088K changes inspired by Ted Lemon (uunet!lupine!mellon)John Gilmore4-17/+40
* tm-m88k.h, tm-umax.h: Avoid sizeof() in REGISTER_xxx macros, since they define the target, not the host. * m88k-pinsn.c: Fix typo. Patches by Paul Eggert <eggert@twinsun.com>. * valarith.c (value_zerop): -0.0 is still zero. * eval.c (evaluate_subexp): Avoid NaN anomalies in float compares.
1992-05-19Removed RMS email address from inside cover page, at his request.Roland Pesch1-1/+1
1992-05-18* alldeps.mak, depend: re-make to account for ser-*.c.Stu Grossman2-288/+334
1992-05-17 * inflow.c (new_tty): Temporarily ignore SIGTTOU whenFred Fish7-23/+73
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.
1992-05-15Thu May 14 17:09:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)Roland Pesch3-12/+26
* gdb.texinfo: slight expansion of new text on reading info files * gdbinv-s.m4.in: correct and expand info on cross-debugging H8/300 from DOS. * ChangeLog: guess...
1992-05-13 Changes to support GDB running on DOS using GO32 and H8 supportSteve Chamberlain4-1/+17
* defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h", allowing hosts with different text and binary file formats to work. * coffread.c (read_coff_symtab): changed calling convention and operation - now it opens its own file with FOPEN_RB rather than duping and fdopening the provided handle. * dbxread.c, cplus-dem.c: #include mangling. * exec.c: If O_BINARY isn't defined, set it to 0, call openp for binary files oring in the right bit. * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals. * remote-hms.c: cleanup to use the new remote serial stuff * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host independent remote terminal I/O. * remote.c: if DONT_USE_REMOTE is defined, then don't use it. * source.c (openp): fix off by one problem removing / - can now open a source file in the root directory with DOS. * values.c (value_as_pointer): remove bogus address bits from long. (unpack_long): unpack into unsigned long/short if pointer. sun4.mh: use the ser-termios stuff go32.mh: use the ser-go32 stuff
1992-05-13 Changes to support GDB running on DOS using GO32 and H8 supportSteve Chamberlain12-404/+860
* defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h", allowing hosts with different text and binary file formats to work. * coffread.c (read_coff_symtab): changed calling convention and operation - now it opens its own file with FOPEN_RB rather than duping and fdopening the provided handle. * dbxread.c, cplus-dem.c: #include mangling. * exec.c: If O_BINARY isn't defined, set it to 0, call openp for binary files oring in the right bit. * utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals. * remote-hms.c: cleanup to use the new remote serial stuff * serial.h, ser-termios.c, ser-go32.c: newfiles to provide host independent remote terminal I/O. * remote.c: if DONT_USE_REMOTE is defined, then don't use it. * source.c (openp): fix off by one problem removing / - can now open a source file in the root directory with DOS. * values.c (value_as_pointer): remove bogus address bits from long. (unpack_long): unpack into unsigned long/short if pointer.
1992-05-12* infrun.c (child_attach): Don't allow gdb to attach to itself.Stu Grossman2-9/+12
It gets permanently stuck in many OSes. * breakpoint.c, infcmd.c, infrun.c, utils.c: Change many printfs to printf_filtered. * breakpoint.c: Improve help text for info breakpoints.
1992-05-12* infrun.c (child_attach): Don't allow gdb to attach to itself.Stu Grossman1-1/+3
It gets permanently stuck in many OSes. * breakpoint.c, infcmd.c, infrun.c: Change many printfs to printf_filtered. * breakpoint.c: Improve help text for info breakpoints.
1992-05-12* breakpoint.c, infcmd.c: Change many printfs to printf_filtered.Stu Grossman1-2/+2
* breakpoint.c: Improve help text for info breakpoints.
1992-05-12* breakpoint.c: Change many printfs to printf_filtered. ImproveStu Grossman1-2/+24
help text for info breakpoints.
1992-05-12`info user' => `show user'. Noticed by David Taylor.John Gilmore2-3/+7
1992-05-12* README: Add pointer to internals doc, and describe readingJohn Gilmore1-3/+8
info files. * utils.c (print_sys_errmsg): Use stderr. Reported by Pierre Willard. * symtab.c (output_source_filename): Remove old glop for wrapping lines, use wrap_here. Reported by Pierre Willard (pierre@la.tce.com). * Makefile.in: version.c should depend on Makefile, not Makefile.in. * munch: Add sort -u to avoid duplications. * symtab.c (lookup_symbol): Improve Stu's fix of 22 April. Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
1992-05-12Say how to read the `info' files.John Gilmore2-0/+8