1*b725ae77SkettenisMon Dec 30 10:57:02 1991 Per Bothner (bothner at cygnus.com) 2*b725ae77Skettenis 3*b725ae77Skettenis Mainly stuff to improve handling of TYPE_CODE_REF values. 4*b725ae77Skettenis * valops.c (value_addr): If taking the addres of a 5*b725ae77Skettenis TYPE_CODE_REF, just cast the object to the corresponding 6*b725ae77Skettenis TYPE_CODE_PTR. This yields correct C++ semantics, and 7*b725ae77Skettenis preserves the location information, which has the nice effect 8*b725ae77Skettenis that &(&R) given the location containing R. 9*b725ae77Skettenis * values.c (value_copy): Make non-static (used by value_addr). 10*b725ae77Skettenis * eval.c (evaluate_subexp_for_address): Use the default 11*b725ae77Skettenis scheme (with value_addr) for a variable if it has TYPE_CODE_REF. 12*b725ae77Skettenis * valops.c (value_addr), eval.c (evaluate_subexp_for_address, 13*b725ae77Skettenis evaluate_subexp_with_coercion): Factor out some common 14*b725ae77Skettenis expressions into variables, for easier reading. 15*b725ae77Skettenis * findvar.c (locate_var_value): Remove code to handle 16*b725ae77Skettenis TYPE_CODE_REF - it should no longer be needed. 17*b725ae77Skettenis * valops.c (value_assign): Do a COERCE_REF on the 18*b725ae77Skettenis destination operand, for correct C++ semantics. 19*b725ae77Skettenis * valarith.c (value_x_binop): Ditto: De-reference C++ 20*b725ae77Skettenis references in the arguments. 21*b725ae77Skettenis * valops.c: ANSI-fy: bcopy->memcpy, bzero->memset. 22*b725ae77Skettenis 23*b725ae77SkettenisSat Dec 28 11:30:26 1991 Per Bothner (bothner at cygnus.com) 24*b725ae77Skettenis 25*b725ae77Skettenis * dwarfread.c, coffread.c: Use INIT_CPLUS_SPECIFIC. 26*b725ae77Skettenis * symtab.c (gdb_mangle_name): Recognize and handle 27*b725ae77Skettenis constructors specially. 28*b725ae77Skettenis * symtab.c (check_stub_method): Test for failure from 29*b725ae77Skettenis cplus-demangle by calling error() instead of seg-faulting ... 30*b725ae77Skettenis 31*b725ae77SkettenisFri Dec 27 22:21:30 1991 Fred Fish (fnf at cygnus.com) 32*b725ae77Skettenis 33*b725ae77Skettenis * defs.h: Add definition of null_cleanup() 34*b725ae77Skettenis 35*b725ae77Skettenis * procfs.c: Many small changes to add base support for a new 36*b725ae77Skettenis "info proc" command (currently only printing of the address 37*b725ae77Skettenis space mapping is implemented) and allow iteration over the 38*b725ae77Skettenis address space mapping, calling an arbitrary function for each 39*b725ae77Skettenis mapping (used for shared library support). 40*b725ae77Skettenis 41*b725ae77Skettenis * solib.c: Change all ifdefs that checked for "sun" to check 42*b725ae77Skettenis for "!SVR4_SHARED_LIBS" instead. Rewrite lookup_base() to 43*b725ae77Skettenis handle locating the debug base address even when not currently 44*b725ae77Skettenis stopped at the dynamic linker entry point. 45*b725ae77Skettenis 46*b725ae77Skettenis * utils.c: Add null_cleanup() as a known function that does 47*b725ae77Skettenis nothing to serve as a base for possibly long cleanup chains 48*b725ae77Skettenis with no specific "first cleanup" to serve as an anchor. 49*b725ae77Skettenis 50*b725ae77Skettenis * xm-sysv4.h: Add define of SVR4_SHARED_LIBS 51*b725ae77Skettenis 52*b725ae77SkettenisFri Dec 27 10:11:33 1991 Per Bothner (bothner at cygnus.com) 53*b725ae77Skettenis 54*b725ae77Skettenis * arm-opcode.h, m88k-opcode.h, pn-opcode.h, np1-opcode.h, 55*b725ae77Skettenis pyr-opcode.h, tahoe-opcode, vax-opcode.h: Removed - 56*b725ae77Skettenis these are all essentially the same as the versions 57*b725ae77Skettenis in ../include/opcode. The remaining *-opcode.h here 58*b725ae77Skettenis are not quite so obviously the same, and need study. 59*b725ae77Skettenis * arm-pinsn.c, gould-pinsn.c, m88k-pinsn.c, pyr-pinsn.c, 60*b725ae77Skettenis tahoe-pinsn.c, vax-pinsn.c: Change so these include 61*b725ae77Skettenis opcode/FOO.h (actually ../include/opcode/FOO.h) 62*b725ae77Skettenis instead of the recenntly departed opcode-FOO.h files. 63*b725ae77Skettenis * sparc-pinsn.c: Now that we're using the much tighter 64*b725ae77Skettenis opcode table in ../include/opcode/sparc.h, we shouldn't 65*b725ae77Skettenis need to sort the opcodes before dis-assembly. 66*b725ae77Skettenis 67*b725ae77Skettenis * symtab.h, symmisc.c: Make cplus_struct_default be const. 68*b725ae77Skettenis * symtab.h, buildsym.c: Add and use INIT_CPLUS_SPECIFIC macro. 69*b725ae77Skettenis * symmisc.c: Remove unused 'nfields' variable. 70*b725ae77Skettenis * buildsym.h: Add extern decl of unknown_symtype_complaint, 71*b725ae77Skettenis since it used used by partial-stab.h (included two places). 72*b725ae77Skettenis * partial-stab.h: Re-arrange DBXREAD_ONLY #ifdefs so that 73*b725ae77Skettenis we should never hit the default case (until new stab codes 74*b725ae77Skettenis are added). Hence, we can leave the complaint in the 75*b725ae77Skettenis default case in even when DBXREAD_ONLY is off. 76*b725ae77Skettenis * partial_stab.h: Recognize a pair of N_SO stabs (one for the 77*b725ae77Skettenis directory, one for the filename proper) without peeking ahead. 78*b725ae77Skettenis * dbxread.c, mipsread.c: Because of previous change, don't need 79*b725ae77Skettenis ugly CHECK_SECOND_N_SO macro. 80*b725ae77Skettenis * buildsym.h, dbxread.c, mipsread.c: Make next_symbol_text a 81*b725ae77Skettenis macro that invokes a function pointer in next_symbol_text_func. 82*b725ae77Skettenis * mipsread.c: Added comments various places to 83*b725ae77Skettenis explain what is going on. 84*b725ae77Skettenis * mipsread.c (parse_symbol): Support the new (SGI-specific?) 85*b725ae77Skettenis symbol types stStruct, stUnion, and stEnum. 86*b725ae77Skettenis Also, some fixes in the code for dealing with tags. 87*b725ae77Skettenis * mipsread.c: Change handling of startup_file_start and _end 88*b725ae77Skettenis - now just use the textlow and texhigh of a psymtab 89*b725ae77Skettenis to check if we've found the startup-file. 90*b725ae77Skettenis * mipsread.c: Replace s_idx by global cur_sdx in many places. 91*b725ae77Skettenis This is so mips_next_symbol_text can get at it. 92*b725ae77Skettenis 93*b725ae77SkettenisThu Dec 26 19:52:01 1991 Fred Fish (fnf at cygnus.com) 94*b725ae77Skettenis 95*b725ae77Skettenis * dbxread.c, symmisc.c: Move add_psymbol_to_plist() from 96*b725ae77Skettenis dbxread.c to symmisc and change name to add_psymbol_to_list. 97*b725ae77Skettenis Ditto for add_psymbol_addr_to_plist(). Also expand their 98*b725ae77Skettenis body to not use ADD_PSYMBOL_VT_TO_LIST. 99*b725ae77Skettenis 100*b725ae77Skettenis * dwarfread.c: Remove add_psymbol_to_list() and convert usages 101*b725ae77Skettenis to the ADD_PSYMBOL_TO_LIST macro. 102*b725ae77Skettenis 103*b725ae77Skettenis * ieee-float.c: Change "#ifdef DEBUG" to "#ifdef IEEE_DEBUG" 104*b725ae77Skettenis to avoid collision with the DEBUG for ADD_PSYMBOL_VT_TO_LIST. 105*b725ae77Skettenis 106*b725ae77Skettenis * partial-stab.h, symfile.h: Move definitions of the macros 107*b725ae77Skettenis ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LIST from 108*b725ae77Skettenis partial-stab.h to symfile.h. They aren't stab specific. 109*b725ae77Skettenis Change ADD_PSYMBOL_VT_TO_LIST to use memcpy rather than strncpy. 110*b725ae77Skettenis 111*b725ae77SkettenisTue Dec 24 11:38:08 1991 John Gilmore (gnu at cygnus.com) 112*b725ae77Skettenis 113*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.3.2. 114*b725ae77Skettenis 115*b725ae77SkettenisMon Dec 23 13:54:35 1991 Per Bothner (bothner at cygnus.com) 116*b725ae77Skettenis 117*b725ae77Skettenis * m68k-opcode.h, mips-opcode.h, sparc-opcode.h: Deleted. 118*b725ae77Skettenis * m68k-pinsn.c, mips-pinsn.c, sparc-pinsn.c: 119*b725ae77Skettenis Include <opcode/FOO.h> instead of <FOO-opcode.h>. 120*b725ae77Skettenis 121*b725ae77Skettenis * symtab.h, symtab.c, coffread.c, dwarfread.c, symmisc.c, 122*b725ae77Skettenis dbxread.c: The TYPE_CPLUS_SPECIFIC structure is now only 123*b725ae77Skettenis allocated when it is needed. Until it is needed, it points 124*b725ae77Skettenis to a shared statically allocated structure. 125*b725ae77Skettenis 126*b725ae77Skettenis * buildsym.h, buildsym.c, dbxread.c: Remove the kludgy code 127*b725ae77Skettenis in read_ofile_symtab to recognize two initial N_SO stabs, 128*b725ae77Skettenis and let process_on_symbol handle it. This is cleaner, more 129*b725ae77Skettenis efficient, and lets mipsread.c share the same code. 130*b725ae77Skettenis 131*b725ae77Skettenis * symfile.h, partial-stab.h: Move ADD_PSYMBOL_VT_TO_LIST 132*b725ae77Skettenis and related macros to here ... 133*b725ae77Skettenis * dbxread.c: ... from here. 134*b725ae77Skettenis * symmisc.c: Move the "overflow" handling from 135*b725ae77Skettenis ADD_PSYMBOL_VT_TO_LIST macro into new function extend_psymbol_list. 136*b725ae77Skettenis * dwarfread.c: Re-write add_psymbol_to_list to use 137*b725ae77Skettenis ADD_PSYMBOL_VT_TO_LIST macro. 138*b725ae77Skettenis 139*b725ae77Skettenis * mipsread.c: Extend mipsread.c to handle stabs-style symbols 140*b725ae77Skettenis encapsulated in ecoff symbols. This enable full g++ debugging. 141*b725ae77Skettenis * partial-stab.h: Move the code for pre-scanning symbols 142*b725ae77Skettenis and building psymtabs to an include file, out from dbxread.c. 143*b725ae77Skettenis This way, the same code can also be used by mipsread.c. 144*b725ae77Skettenis * dbxread.c, buildsym.h: Various changes to allow some functions 145*b725ae77Skettenis to be used by mipsread.c (also some arguable stylistic changes). 146*b725ae77Skettenis 147*b725ae77Skettenis * tm-mips.h: Define BLOCK_ADDRESS_ABSOLUTE, at least for now, 148*b725ae77Skettenis since mips-tfile puts relocatable addresses into LBRAC/RBRAC 149*b725ae77Skettenis stabs. 150*b725ae77Skettenis 151*b725ae77Skettenis * mipsread.c: Replace code to handle ambiguous tag blocks. 152*b725ae77Skettenis Instead of allocating a TYPE_CODE_UNDEF, guess (by looking 153*b725ae77Skettenis at types and offsets) if a tag is a struct, union, or enum. 154*b725ae77Skettenis Still patch it later if we find out for sure. 155*b725ae77Skettenis * mipsread.c: In various ways, replace Forin's 156*b725ae77Skettenis ideo-syncratic code by code that fits better with the 157*b725ae77Skettenis rest of gdb, for both stabs-based and ecoff-based symtabs. 158*b725ae77Skettenis E.g. use end_psymtab; don't do extra passes over FDR table to 159*b725ae77Skettenis pre-partition global data; don't use external symbols to 160*b725ae77Skettenis create static/global symbols (just put them in the 161*b725ae77Skettenis misc_vector); use ADD_PSYMBOL_TO_LIST macro; don't 162*b725ae77Skettenis sort psymtabs or symtabs; use obstacks more. 163*b725ae77Skettenis 164*b725ae77Skettenis * symtab.c, mipsread.c, dbxread.c, buildsym.c: 165*b725ae77Skettenis ANSIfy: Replace bcopy by memcpy, bzero by memset. 166*b725ae77Skettenis 167*b725ae77SkettenisSun Dec 22 19:31:04 1991 Fred Fish (fnf at cygnus.com) 168*b725ae77Skettenis 169*b725ae77Skettenis * solib.c (locate_base): Fix uninitialized variable that was 170*b725ae77Skettenis causing return of random value to callee. 171*b725ae77Skettenis 172*b725ae77Skettenis * config/mh-amix, config/mh-i386v4: Change to find alloca by 173*b725ae77Skettenis compiling and linking alloca.c, even when it is not strictly 174*b725ae77Skettenis required. Also arrange to link with -ltermlib rather than 175*b725ae77Skettenis -ltermcap. 176*b725ae77Skettenis 177*b725ae77Skettenis * Makefile.in: Move TERMCAP definition to prior to inclusion 178*b725ae77Skettenis of host makefile fragments so it can be overridden. 179*b725ae77Skettenis 180*b725ae77SkettenisFri Dec 20 16:33:39 1991 John Gilmore (gnu at cygnus.com) 181*b725ae77Skettenis 182*b725ae77Skettenis * xcoffread.c (read_symbol_lineno): Logic error in incrementing 183*b725ae77Skettenis symbol table entry number. (From Metin Ozisik.) 184*b725ae77Skettenis 185*b725ae77SkettenisFri Dec 20 11:36:38 1991 Fred Fish (fnf at cygnus.com) 186*b725ae77Skettenis 187*b725ae77Skettenis * config/mh-i386v4: Change XM_CLIBS to "-lc /usr/ucblib/libucb.a" 188*b725ae77Skettenis so compiles with native compilers (without builtin alloca) can 189*b725ae77Skettenis pick up the version from the bsd emulation library. However, we 190*b725ae77Skettenis search the standard C library first so we don't pick up lots of 191*b725ae77Skettenis other broken stuff from libucb.a, that we *don't* want. 192*b725ae77Skettenis 193*b725ae77Skettenis * configure.in, tm-amix.h, tm-i386v4.h, xm-amix.h, xm-i386v4.h: 194*b725ae77Skettenis Change svr4 references to sysv4. 195*b725ae77Skettenis 196*b725ae77Skettenis * source.c: Move declaration of external function index to 197*b725ae77Skettenis front of file so it is in scope for all references. 198*b725ae77Skettenis 199*b725ae77Skettenis * utils.c (error, fatal): Make definitions consistent with 200*b725ae77Skettenis defs.h declarations (declared as "volatile void"). 201*b725ae77Skettenis 202*b725ae77SkettenisFri Dec 20 10:55:36 1991 John Gilmore (gnu at cygnus.com) 203*b725ae77Skettenis 204*b725ae77Skettenis * rs6k-opcode.h: Bugfix sfe and stbrx. By Al Kossow. 205*b725ae77Skettenis 206*b725ae77SkettenisWed Dec 18 17:09:06 1991 Stu Grossman (grossman at cygnus.com) 207*b725ae77Skettenis 208*b725ae77Skettenis * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c, 209*b725ae77Skettenis sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h, 210*b725ae77Skettenis vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h: ANSIfy enums. 211*b725ae77Skettenis 212*b725ae77SkettenisMon Dec 16 12:31:46 1991 Fred Fish (fnf at cygnus.com) 213*b725ae77Skettenis 214*b725ae77Skettenis * config/mt-amix, config/mt-i386v4: Add solib.o to TDEPFILES 215*b725ae77Skettenis for these SVR4 systems. 216*b725ae77Skettenis 217*b725ae77Skettenis * symfile.c (symbol_file_add): When verbose is set, print 218*b725ae77Skettenis the names of files from which symbols are being loaded, as 219*b725ae77Skettenis when from_tty is true. 220*b725ae77Skettenis 221*b725ae77Skettenis * solib.c: Completely reorganized (rewritten) to support 222*b725ae77Skettenis SVR4 shared libraries in a manner very close to the original 223*b725ae77Skettenis SunOS implementation. This support is expected to change and 224*b725ae77Skettenis become more general at some future time. The SVR4 version 225*b725ae77Skettenis does not yet work for attached processes, for example. 226*b725ae77Skettenis 227*b725ae77Skettenis * dwarfread.c: Arrange in dwarf_build_psymtabs() for the 228*b725ae77Skettenis relocation address to be valid whether or not symbols are 229*b725ae77Skettenis being read from a shared library or an executable. Use the 230*b725ae77Skettenis relocation address recorded in the psymtab when reading 231*b725ae77Skettenis full symbol tables (in read_ofile_symtab). Ensure that the 232*b725ae77Skettenis relocated address ranges are recorded in partial symtabs. 233*b725ae77Skettenis 234*b725ae77Skettenis * elfread.c: Add new function elf_interpreter() to return the 235*b725ae77Skettenis string from the ELF ".interp" section. This is the interpreter 236*b725ae77Skettenis that the kernel tries to run and feed the executable to. 237*b725ae77Skettenis Expand arguments to record_misc_function to include a type arg. 238*b725ae77Skettenis Modify elf_symtab_read() to supply the type arg, and to do symbol 239*b725ae77Skettenis relocations for symbols read in from shared libraries. 240*b725ae77Skettenis 241*b725ae77Skettenis * procfs.c: Add new functions proc_base_address() and 242*b725ae77Skettenis proc_address_to_fd(), used by shared library support. 243*b725ae77Skettenis 244*b725ae77Skettenis * tm-svr4.h: Add macros to support SVR4 shared libraries. 245*b725ae77Skettenis Definitions for SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK, 246*b725ae77Skettenis CLEAR_SOLIB, and DISABLE_UNSETTABLE_BREAK. 247*b725ae77Skettenis 248*b725ae77SkettenisFri Dec 13 20:11:26 1991 John Gilmore (gnu at cygnus.com) 249*b725ae77Skettenis 250*b725ae77Skettenis * infrun.c, remote-eb.c, remote-nindy.c, remote-vx.c: Remove 251*b725ae77Skettenis unused START_INFERIOR_HOOK. 252*b725ae77Skettenis 253*b725ae77Skettenis * remote-eb.c: Change timeout to 24 seconds (*10 fits in byte) 254*b725ae77Skettenis to account for slow loading from floppies. 255*b725ae77Skettenis (eb_create_inferior): New fn, from eb_start and 256*b725ae77Skettenis nindy_create_inferior. 257*b725ae77Skettenis (eb_close): Only use log_file if nonzero. 258*b725ae77Skettenis (eb_xfer_inferior_memory): If not writing, then read! 259*b725ae77Skettenis (eb_read_inferior_memory, eb_write_inferior_memory): Return length. 260*b725ae77Skettenis (eb_kill): A new no-op. 261*b725ae77Skettenis (eb_mourn_inferior): Remove breakpoints, then generically weep. 262*b725ae77Skettenis 263*b725ae77SkettenisFri Dec 13 16:09:23 1991 Fred Fish (fnf at cygnus.com) 264*b725ae77Skettenis 265*b725ae77Skettenis * breakpoint.c, findvar.c, infrun.c, putenv.c, stack.c: Fix 266*b725ae77Skettenis miscellaneous comparisons of integer with NULL that elicit 267*b725ae77Skettenis compiler warnings about comparison of integer with pointer, when 268*b725ae77Skettenis NULL is ((void *) 0) rather than just a bare 0. 269*b725ae77Skettenis 270*b725ae77SkettenisWed Dec 11 13:02:58 1991 John Gilmore (gnu at cygnus.com) 271*b725ae77Skettenis 272*b725ae77Skettenis * breakpoint.c (breakpoint_re_set_one): Disable each breakpoint 273*b725ae77Skettenis while we reset it, in case of problems. Print breakpoint number 274*b725ae77Skettenis in error messages. 275*b725ae77Skettenis 276*b725ae77Skettenis * buildsym.c (read_struct_type): Avoid sun3 compiler bug with 277*b725ae77Skettenis foo[--n]. 278*b725ae77Skettenis 279*b725ae77Skettenis * source.c (find_source_lines): If getting file mod time fails, 280*b725ae77Skettenis don't warn. 281*b725ae77Skettenis 282*b725ae77Skettenis * target.c (target_xfer_memory): If errno is set, return it, 283*b725ae77Skettenis rather than EIO. 284*b725ae77Skettenis 285*b725ae77SkettenisTue Dec 10 04:07:22 1991 K. Richard Pixley (rich at rtl.cygnus.com) 286*b725ae77Skettenis 287*b725ae77Skettenis * Makefile.in: infodir belongs in datadir. 288*b725ae77Skettenis 289*b725ae77SkettenisSun Dec 8 21:13:33 1991 Michael Tiemann (tiemann at sphagnum.cygnus.com) 290*b725ae77Skettenis 291*b725ae77Skettenis * symtab.h (struct fn_field): Add new fields `is_private', 292*b725ae77Skettenis `is_protected', `is_stub', making room by reducing the size of 293*b725ae77Skettenis `voffset'. 294*b725ae77Skettenis (struct fn_fieldlist): Delete the fields `private_fn_field_bits' 295*b725ae77Skettenis and `protected_fn_field_bits'. 296*b725ae77Skettenis (TYPE_FN_{PRIVATE,PROTECTED}_BITS): Deleted. 297*b725ae77Skettenis (SET_TYPE_FN_{PRIVATE,PROTECTED}): Deleted. 298*b725ae77Skettenis (TYPE_FN_{PRIVATE,PROTECTED}): Deleted. 299*b725ae77Skettenis (TYPE_FN_FIELD_{STUB,PRIVATE,PROTECTED}): New macros. 300*b725ae77Skettenis * valops.c, valprint.c, symtab.c: All callers updated. 301*b725ae77Skettenis 302*b725ae77Skettenis * buildsym.c (read_struct_type): Delete the `visibility' field 303*b725ae77Skettenis from `struct next_fnfield', and rework code so that visibility 304*b725ae77Skettenis info is stored into the fn_field directly. Also, hacked to set 305*b725ae77Skettenis TYPE_FN_FIELD_STUB for both static and normal member functions. 306*b725ae77Skettenis 307*b725ae77SkettenisSat Dec 7 18:13:11 1991 Fred Fish (fnf at cygnus.com) 308*b725ae77Skettenis 309*b725ae77Skettenis * i386-tdep.c: Fix a problem on i386 systems where buffered code 310*b725ae77Skettenis stream access was failing to take into account the minimum size 311*b725ae77Skettenis granularity of the code section. For now, the buffering is simply 312*b725ae77Skettenis disabled. There is a similar problem in the i386 disassember code 313*b725ae77Skettenis that has not yet been fixed (FIXME). 314*b725ae77Skettenis 315*b725ae77Skettenis * gmalloc.c: Use macros to hide some of the ugly casting required 316*b725ae77Skettenis in the previously applied fix for pointers with high bits set. 317*b725ae77Skettenis 318*b725ae77SkettenisSat Dec 7 16:49:35 1991 John Gilmore (gnu at cygnus.com) 319*b725ae77Skettenis 320*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.3.1. 321*b725ae77Skettenis 322*b725ae77SkettenisSat Dec 7 04:12:35 1991 John Gilmore (gnu at cygnus.com) 323*b725ae77Skettenis 324*b725ae77Skettenis GDB-4.3 release! 325*b725ae77Skettenis 326*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.3 327*b725ae77Skettenis * README, TODO, WHATS.NEW, depend: Update. 328*b725ae77Skettenis 329*b725ae77Skettenis * inflow.c (terminal_inferior): Avoid error msg if attached. 330*b725ae77Skettenis 331*b725ae77Skettenis * gmalloc.c: Fix bug that causes malloc & free to 332*b725ae77Skettenis fail on systems where pointers have the high bit set (0x800efcf0 333*b725ae77Skettenis for example). The problem is that the difference between two 334*b725ae77Skettenis pointers is a signed integer, so the computation 335*b725ae77Skettenis 336*b725ae77Skettenis (char *) 0x800efcf0 - (char *) 0 337*b725ae77Skettenis 338*b725ae77Skettenis yields a negative value. The sign of the result of the modulus 339*b725ae77Skettenis operator is machine dependent for negative operands, thus it is 340*b725ae77Skettenis possible for it to end up negative. From Fred Fish. 341*b725ae77Skettenis 342*b725ae77SkettenisSat Dec 7 00:00:15 1991 K. Richard Pixley (rich at rtl.cygnus.com) 343*b725ae77Skettenis 344*b725ae77Skettenis * Makefile.in: install using INSTALL_PROGRAM and INSTALL_DATA. 345*b725ae77Skettenis added clean-info. added some standards.text support and made it 346*b725ae77Skettenis look like our other Makefiles. 347*b725ae77Skettenis 348*b725ae77Skettenis * configure.in: mark this directory target dependent. configure 349*b725ae77Skettenis now runs entirely in objdir so make existence tests and 350*b725ae77Skettenis references against ${srcdir}. 351*b725ae77Skettenis 352*b725ae77SkettenisFri Dec 6 08:30:36 1991 Fred Fish (fnf at cygnus.com) 353*b725ae77Skettenis 354*b725ae77Skettenis * dwarfread.c (enum_type, struct_type): Fixes for opaque and 355*b725ae77Skettenis anonymous enumerations, structures, and unions. Now passes all 356*b725ae77Skettenis the current gdb test suite tests. 357*b725ae77Skettenis 358*b725ae77SkettenisThu Dec 5 22:46:13 1991 K. Richard Pixley (rich at rtl.cygnus.com) 359*b725ae77Skettenis 360*b725ae77Skettenis * Makefile.in: idestdir and ddestdir go away. Added copyrights 361*b725ae77Skettenis and shift gpl to v2. Added ChangeLog if it didn't exist. docdir 362*b725ae77Skettenis and mandir now keyed off datadir by default. 363*b725ae77Skettenis 364*b725ae77SkettenisThu Dec 5 21:53:21 1991 John Gilmore (gnu at cygnus.com) 365*b725ae77Skettenis 366*b725ae77Skettenis * symtab.c (decode_line_1): If SKIP_PROLOGUE leaves us in 367*b725ae77Skettenis mid-line, be more careful about possibly advancing to the next line. 368*b725ae77Skettenis 369*b725ae77SkettenisThu Dec 5 18:59:51 1991 Michael Tiemann (tiemann at cygnus.com) 370*b725ae77Skettenis 371*b725ae77Skettenis * cplus-dem.c (cplus_demangle): Call `string_need' when 372*b725ae77Skettenis null-terminating a partially-computed string. 373*b725ae77Skettenis 374*b725ae77SkettenisThu Dec 5 18:19:43 1991 Fred Fish (fnf at cygnus.com) 375*b725ae77Skettenis 376*b725ae77Skettenis * dwarfread.c (enum_type): Build a correct TYPE_NAME, add a 377*b725ae77Skettenis symbol to the symbol table for each member of the enum. 378*b725ae77Skettenis 379*b725ae77Skettenis * dwarfread.c (struct_type): Build a correct TYPE_NAME. 380*b725ae77Skettenis 381*b725ae77Skettenis * dwarfread.c (add_enum_psymbol): New function to extract enum 382*b725ae77Skettenis member names and add them to the partial symbol table while 383*b725ae77Skettenis building partial symbol tables. 384*b725ae77Skettenis 385*b725ae77SkettenisThu Dec 5 17:31:05 1991 John Gilmore (gnu at cygnus.com) 386*b725ae77Skettenis 387*b725ae77Skettenis * symtab.c (check_stub_method): Must allocate two extra argument 388*b725ae77Skettenis slots (one for `this', one for arglist terminator). 389*b725ae77Skettenis 390*b725ae77SkettenisThu Dec 5 10:51:05 1991 Fred Fish (fnf at cygnus.com) 391*b725ae77Skettenis 392*b725ae77Skettenis * inflow.c (child_terminal_info): Supply missing '"' character. 393*b725ae77Skettenis 394*b725ae77Skettenis * buildsym.c (define_symbol): Supply missing parenthesis. 395*b725ae77Skettenis 396*b725ae77SkettenisThu Dec 5 03:34:21 1991 John Gilmore (gnu at cygnus.com) 397*b725ae77Skettenis 398*b725ae77Skettenis * coredep.c (fetch_core_registers): Fencepost error. Fixed by 399*b725ae77Skettenis Jay Lepreau <lepreau@cs.utah.edu>. 400*b725ae77Skettenis 401*b725ae77Skettenis * inflow.c: Remember whether GDB has a terminal. Avoid switching 402*b725ae77Skettenis terminals back and forth if we don't have one. 403*b725ae77Skettenis 404*b725ae77Skettenis * c-exp.y (parse_number): Zero is not an unsigned int constant! 405*b725ae77Skettenis * dbxread.c (read_dbx_symtab): Enum type numbers can be in (1,2) form. 406*b725ae77Skettenis 407*b725ae77Skettenis Improve type parsing. 408*b725ae77Skettenis * buildsym.c (define_symbol, read_range_type): Add 409*b725ae77Skettenis long_kludge_name that passes the names of range types being 410*b725ae77Skettenis defined, down to where we must choose between 'int' and 'long' 411*b725ae77Skettenis variants. This fails on Sun C anyway since the compiler itself is 412*b725ae77Skettenis confused between int and long. 413*b725ae77Skettenis (read_array_type, cleanup_undefined_types): Correct the size of 414*b725ae77Skettenis array type whose element-type size isn't immediately known. 415*b725ae77Skettenis 416*b725ae77Skettenis Early preparation to blow away many builtin types, building them 417*b725ae77Skettenis on the fly as needed. Don't compare types to builtin types with 418*b725ae77Skettenis ==; examine the relevant fields instead. 419*b725ae77Skettenis * coffread.c (process_coff_symbol: C_ARG, C_REGPARM): Avoid ==. 420*b725ae77Skettenis * buildsym.c (define_symbol, case 'p'): Avoid ==. 421*b725ae77Skettenis * valops.c (value_arg_coerce): Avoid ==. Don't assume host and 422*b725ae77Skettenis target types are the same. 423*b725ae77Skettenis * valprint.c (val_print): I finally understand arrays, remove FIXME. 424*b725ae77Skettenis 425*b725ae77Skettenis * symmisc.c (printpsyms_command): Reduce redundancy, and put all 426*b725ae77Skettenis addresses in GDB itself into parens for easy cleanup and diffing. 427*b725ae77Skettenis 428*b725ae77SkettenisWed Dec 4 21:05:30 1991 Fred Fish (fnf at cygnus.com) 429*b725ae77Skettenis 430*b725ae77Skettenis * dwarfread (enum_type): Arrange for the order of enumeration 431*b725ae77Skettenis members to match the source code order; not the order in the 432*b725ae77Skettenis Dwarf information, which is explicitly reverse order. 433*b725ae77Skettenis 434*b725ae77SkettenisWed Dec 4 18:24:39 1991 John Gilmore (gnu at cygnus.com) 435*b725ae77Skettenis 436*b725ae77Skettenis * main.c (input_from_terminal_p): Check whether GDB has a 437*b725ae77Skettenis terminal at all. 438*b725ae77Skettenis (initialize_main): Revise doc for `set editing'. 439*b725ae77Skettenis 440*b725ae77SkettenisWed Dec 4 15:36:39 1991 Fred Fish (fnf at cygnus.com) 441*b725ae77Skettenis 442*b725ae77Skettenis * dwarfread.c (struct_type): Handle structures and unions which 443*b725ae77Skettenis contain DIE's other than just member dies. 444*b725ae77Skettenis 445*b725ae77SkettenisWed Dec 4 01:59:05 1991 John Gilmore (gnu at cygnus.com) 446*b725ae77Skettenis 447*b725ae77Skettenis * symfile.c (reread_symbols): Avoid kludging mtime_set, now that 448*b725ae77Skettenis BFD is fixed. 449*b725ae77Skettenis 450*b725ae77SkettenisTue Dec 3 17:24:57 1991 John Gilmore (gnu at cygnus.com) 451*b725ae77Skettenis 452*b725ae77Skettenis * Makefile.in: VERSION 4.2.96. 453*b725ae77Skettenis 454*b725ae77Skettenis * main.c (initialize_main): Revise command descriptions. 455*b725ae77Skettenis * command.c (show_user): `info user' -> `show user'. 456*b725ae77Skettenis * symtab.c (_initialize_symtab): Typo in `info types' desc. 457*b725ae77Skettenis 458*b725ae77Skettenis * coffread.c (coff_symfile_read): Avoid select_source_symtab, 459*b725ae77Skettenis since it is not needed and can cause errors when examining ".o"s. 460*b725ae77Skettenis (read_coff_symtab, decode_base_type): Use complain, not printf. 461*b725ae77Skettenis Print symbol name, not its number. 462*b725ae77Skettenis Remove "#if defined(clipper) #define BELIEVE_PCC_PROMOTION", which 463*b725ae77Skettenis someday should go in a clipper target config file. 464*b725ae77Skettenis 465*b725ae77Skettenis * symfile.c (compact_misc_function_vector): Handle empty vector. 466*b725ae77Skettenis (complain, clear_complaints, syms_from_objfile): Fix complaint 467*b725ae77Skettenis formatting. 468*b725ae77Skettenis * xcoffexec.c: Change syms_from_objfile caller. 469*b725ae77Skettenis 470*b725ae77Skettenis * sparc-xdep.c: Force tm-file as tm-sparc.h, to make it compile 471*b725ae77Skettenis when configured for cross debugging. FIXME, this needs a more 472*b725ae77Skettenis general solution. 473*b725ae77Skettenis 474*b725ae77SkettenisMon Dec 2 11:04:05 1991 Per Bothner (bothner at cygnus.com) 475*b725ae77Skettenis 476*b725ae77Skettenis * mips-tdep.c (init_extra_frame_info): Float register 477*b725ae77Skettenis 'i' has gdb-internal number 'FP0+i', not '32+i'. 478*b725ae77Skettenis * mipsread.c (new_symbol): Translate g++ special 479*b725ae77Skettenis symbol "$t" to "this". 480*b725ae77Skettenis 481*b725ae77SkettenisSat Nov 30 21:29:55 1991 Steve Chamberlain (sac at cygnus.com) 482*b725ae77Skettenis Changes due to include file renaming: 483*b725ae77Skettenis 484*b725ae77Skettenis * xcoffread.c: internalcoff.h ->coff/internal.c, 485*b725ae77Skettenis coff-rs6000.h ->coff/rs6000.h 486*b725ae77Skettenis * mipsread.c: coff-mips.h ->coff/mips.h 487*b725ae77Skettenis * elfread.c: elf-common.h ->elf/common.h 488*b725ae77Skettenis elf-external.h ->elf/external.h, 489*b725ae77Skettenis elf-internal.h ->elf/internal.h 490*b725ae77Skettenis * dwarfread.c dwarf.h ->elf/dwarf.h 491*b725ae77Skettenis * dbxread.c: aout64.h ->aout/aout64.h 492*b725ae77Skettenis stab.gnu.h ->aout/stab_gnu.h 493*b725ae77Skettenis 494*b725ae77Skettenis * coffread.c: internalcoff.h ->coff/internal.h 495*b725ae77Skettenis * buildsym.c: stab.gnu.h ->aout/stab_gnu.h 496*b725ae77Skettenis * depend Updated to take the above into account. 497*b725ae77Skettenis 498*b725ae77SkettenisFri Nov 29 16:59:25 1991 Fred Fish (fnf at cygnus.com) 499*b725ae77Skettenis 500*b725ae77Skettenis * configure.in: Add SVR4 i386 configurations. 501*b725ae77Skettenis 502*b725ae77Skettenis * config/mh-i386v4, config/mt-i386v4, tm-i386v4.h, xm-i386v4.h: 503*b725ae77Skettenis New files for i386/SVR4. 504*b725ae77Skettenis 505*b725ae77Skettenis * tm-i386v.h: Allow START_INFERIOR_TRAPS_EXPECTED and 506*b725ae77Skettenis DECR_PC_AFTER_BREAK to be predefined by files including 507*b725ae77Skettenis tm-i386v.h. 508*b725ae77Skettenis 509*b725ae77Skettenis * i386-tdep.c: Add supply_gregset(), fill_gregset(), 510*b725ae77Skettenis supply_fpregset(), and fill_fpregset() functions, which are 511*b725ae77Skettenis target dependent support functions for the SVR4 /proc register 512*b725ae77Skettenis interface. 513*b725ae77Skettenis 514*b725ae77Skettenis * dwarfread.c (enum_type, struct_type): Expand recognized 515*b725ae77Skettenis compiler generated tags to include symbols beginning with '.' as 516*b725ae77Skettenis well as '~'. 517*b725ae77Skettenis 518*b725ae77Skettenis * symtab.c (sources_info): Change simple printf of error message 519*b725ae77Skettenis to call to error(). 520*b725ae77Skettenis 521*b725ae77SkettenisFri Nov 29 16:04:21 1991 Roland H. Pesch (pesch at cygnus.com) 522*b725ae77Skettenis 523*b725ae77Skettenis * doc/gdb.texinfo: remove leading comments that survived M4 but 524*b725ae77Skettenis described its role in the doc; add one more font to colophon; 525*b725ae77Skettenis strengthen disclaimer about unsupported configs. 526*b725ae77Skettenis 527*b725ae77SkettenisWed Nov 27 01:23:41 1991 John Gilmore (gnu at cygnus.com) 528*b725ae77Skettenis 529*b725ae77Skettenis Fix bugs in C++ debugging. 530*b725ae77Skettenis 531*b725ae77Skettenis * symtab.h: target_type is not used in record types. 532*b725ae77Skettenis Eliminate TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT. Eliminate 533*b725ae77Skettenis lookup_method_type. Add TYPE_TYPE_SPECIFIC macro. 534*b725ae77Skettenis 535*b725ae77Skettenis * symtab.c (lookup_member_type): Don't chain them up, just 536*b725ae77Skettenis allocate one in symbol_obstack when we need one. 537*b725ae77Skettenis (allocate_stub_method): Build stub in symbol_obstack. 538*b725ae77Skettenis (check_stub_method): Move here from values.c. Don't deallocate 539*b725ae77Skettenis stub; overwrite it. 540*b725ae77Skettenis (lookup_method_type): Gone now. 541*b725ae77Skettenis 542*b725ae77Skettenis * buildsym.c: Handle g++ v1 stabs a little bit better. 543*b725ae77Skettenis Change some C++ parsing error()s to complain()ts. 544*b725ae77Skettenis * buildsym.c, findvar.c, printcmd.c, symtab.c: Make unions and 545*b725ae77Skettenis structs have the same representation and work the same as far as 546*b725ae77Skettenis C++ is concerned. 547*b725ae77Skettenis * buildsym.c, symtab.c, values.c: Remove all references to 548*b725ae77Skettenis TYPE_MAIN_VARIANT and TYPE_NEXT_VARIANT. 549*b725ae77Skettenis 550*b725ae77Skettenis * valops.c: Improve comments and indentation. Only call 551*b725ae77Skettenis check_stub_method when the stub flag is on. 552*b725ae77Skettenis * valprint.c: Fix or mark minor bugs and unportabilities. 553*b725ae77Skettenis 554*b725ae77Skettenis * coffread.c (anonymous unions): Allocate a cplus structure. 555*b725ae77Skettenis 556*b725ae77Skettenis * mipsread.c: Eliminate "template" types. Build new, real 557*b725ae77Skettenis types whenever we need them. Allocate cplus structures as needed. 558*b725ae77Skettenis Bulletproof the type parsing a bit more. Mark storage leaks. 559*b725ae77Skettenis (parse_type): Copy TYPE_TYPE_SPECIFIC when copying a real type 560*b725ae77Skettenis on top of a partial type. 561*b725ae77Skettenis 562*b725ae77SkettenisFri Nov 22 16:39:57 1991 John Gilmore (gnu at cygnus.com) 563*b725ae77Skettenis 564*b725ae77Skettenis * inflow.c (terminal_inferior): Check the results of ioctl's, and 565*b725ae77Skettenis print a message if any of them fail. 566*b725ae77Skettenis (terminal_ours_1): Store result of ioctl's for debugging, but 567*b725ae77Skettenis don't print (the terminal isn't ours...). 568*b725ae77Skettenis 569*b725ae77Skettenis * tm-tahoe.h (FRAME_ARGS_ADDRESS): No need to offset from frame 570*b725ae77Skettenis pointer. 571*b725ae77Skettenis 572*b725ae77Skettenis * m2-exp.y (MAX, MIN): Rename to MAX_FUNC, MIN_FUNC to avoid 573*b725ae77Skettenis conflicts with system header files. 574*b725ae77Skettenis 575*b725ae77SkettenisFri Nov 22 08:27:40 1991 John Gilmore (gnu at cygnus.com) 576*b725ae77Skettenis 577*b725ae77Skettenis * Roll VERSION to 4.2.95. 578*b725ae77Skettenis 579*b725ae77Skettenis * buildsym.c, coredep.c, mem-break.c, xcoffread.c: Put <stdio.h> 580*b725ae77Skettenis first, before defs.h. 581*b725ae77Skettenis * config/mh-i386sco: Override compiler to gcc, print warning. 582*b725ae77Skettenis * configure.in: Handle i386-none-aout rather than i386-aout-none. 583*b725ae77Skettenis * infptrace.c, language.h, utils.c: Lint. 584*b725ae77Skettenis * m2-exp.y: #undef MAX and MIN in case system includes set them. 585*b725ae77Skettenis * xm-tahoe.h: Set HOST_BYTE_ORDER. Include system versions of 586*b725ae77Skettenis {BIG,LITTLE}_ENDIAN and the INT_MAX family first, to avoid 587*b725ae77Skettenis redefinition warnings. 588*b725ae77Skettenis * defs.h: Reorder things so that the xm-file gets first crack 589*b725ae77Skettenis at #define's, followed by defs.h and then the tm-file. 590*b725ae77Skettenis * Makefile.in: Remove spaces after 'ignore exit code' - flags. 591*b725ae77Skettenis Late-model BSD 'make's don't cope with them. 592*b725ae77Skettenis 593*b725ae77SkettenisThu Nov 21 23:48:56 1991 John Gilmore (gnu at cygnus.com) 594*b725ae77Skettenis 595*b725ae77Skettenis * Makefile.in: Roll new files into various lists. 596*b725ae77Skettenis 597*b725ae77SkettenisThu Nov 21 18:26:11 1991 Fred Fish (fnf at cygnus.com) 598*b725ae77Skettenis 599*b725ae77Skettenis * dwarfread.c (struct_type): Must initialize the c++ specific 600*b725ae77Skettenis portion of union types as well as struct types, since gdb attempts 601*b725ae77Skettenis to reference the c++ specific info for both types. 602*b725ae77Skettenis 603*b725ae77SkettenisThu Nov 21 10:23:52 1991 John Gilmore (gnu at cygnus.com) 604*b725ae77Skettenis 605*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.2.90. 606*b725ae77Skettenis 607*b725ae77Skettenis * defs.h: Incorporate param.h into defs.h. All users changed. 608*b725ae77Skettenis * param-no-tm.h: Change users to define TM_FILE_OVERRIDE instead. 609*b725ae77Skettenis * param.h, param-no-tm.h: Removed. 610*b725ae77Skettenis * Update copyrights in all changed files. 611*b725ae77Skettenis * dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c, 612*b725ae77Skettenis solib.c, symtab.h, tm-umax.h, valprint.c: Lint. 613*b725ae77Skettenis * tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h, 614*b725ae77Skettenis xm-merlin.h: Avoid host include files in target descriptions. 615*b725ae77Skettenis * getpagesize.h: Removed, libiberty copes now. 616*b725ae77Skettenis * Makefile.in: Remove getpagesize.h, param.h, param-no-tm.h. 617*b725ae77Skettenis 618*b725ae77Skettenis * exec.c (exec_files_info): If `verbose' is set, show file offset 619*b725ae77Skettenis as well. 620*b725ae77Skettenis 621*b725ae77Skettenis * main.c: Use getcwd rather than getwd. 622*b725ae77Skettenis * standalone.c: Fake getcwd rather than getwd. 623*b725ae77Skettenis * xm-*.h: Remove fake values of MAXPATHLEN. 624*b725ae77Skettenis 625*b725ae77Skettenis * xcoffexec.c: Add /* */ to #if 0'd thing to help ANSI. 626*b725ae77Skettenis 627*b725ae77SkettenisWed Nov 20 18:35:56 1991 John Gilmore (gnu at cygnus.com) 628*b725ae77Skettenis 629*b725ae77Skettenis * Remove gdb/hp-include. Support for HP a.out oddities should be 630*b725ae77Skettenis in BFD, not in GDB. Move gdb/hp-include/a.out.h to include/a.out.hp.h. 631*b725ae77Skettenis 632*b725ae77Skettenis * infptrace.c, tm-sun386.h: Cashier <a.out.gnu.h>, remove refs. 633*b725ae77Skettenis 634*b725ae77Skettenis * configure.in, xconfig, tconfig, Makefile.in, doc/gdbint.texinfo: 635*b725ae77Skettenis Makefile fragments for various hosts and targets now come from 636*b725ae77Skettenis gdb/config/mh-* and gdb/config/mt-*. This is for consistency with 637*b725ae77Skettenis other config setups. 638*b725ae77Skettenis 639*b725ae77Skettenis * rs6000-pinsn.c, rs6k-opcode.h: Clean up. 640*b725ae77Skettenis * rs6k-opcode.def: Delete. 641*b725ae77Skettenis 642*b725ae77SkettenisWed Nov 20 05:04:40 1991 Fred Fish (fnf at cygnus.com) 643*b725ae77Skettenis 644*b725ae77Skettenis * dwarfread.c: Recognize obsolete form of AT_element_list 645*b725ae77Skettenis attribute still used by at least one AT&T compiler, and possibly 646*b725ae77Skettenis more. 647*b725ae77Skettenis 648*b725ae77SkettenisTue Nov 19 07:53:55 1991 Fred Fish (fnf at cygnus.com) 649*b725ae77Skettenis 650*b725ae77Skettenis * dwarfread.c (enum_type, struct_type): Ignore names invented by 651*b725ae77Skettenis helpful compilers for anonymous structs, unions, and enums. 652*b725ae77Skettenis 653*b725ae77Skettenis * c-exp.y, m2-exp.y: Add defines for yymaxdepth, yy_yys, and 654*b725ae77Skettenis yy_yyv, so multiple parsers produced by SVR4 versions of yacc 655*b725ae77Skettenis can coexist in the same executable without collision. 656*b725ae77Skettenis 657*b725ae77Skettenis * symtab.h: Add declaration for lookup_template_type() to kill 658*b725ae77Skettenis compiler warnings about conversions from int to pointer. 659*b725ae77Skettenis 660*b725ae77SkettenisMon Nov 18 17:45:18 1991 Fred Fish (fnf at cygnus.com) 661*b725ae77Skettenis 662*b725ae77Skettenis * procfs.c: Move inclusion of defs.h to before param.h, as in 663*b725ae77Skettenis all the other source files that include both. This is required 664*b725ae77Skettenis to supply some typedefs that are used in files included by param.h. 665*b725ae77Skettenis 666*b725ae77Skettenis * m68k-tdep.c (m68k_skip_prologue): Add generic m68k support for 667*b725ae77Skettenis skipping function prologues, ala the other cpu families (i386, 668*b725ae77Skettenis mips, m88k, etc). Add the ability to skip movm and fmovm 669*b725ae77Skettenis instructions in the prologues. Still needs support for profile 670*b725ae77Skettenis (-p compiled) prologue sequences (FIXME). 671*b725ae77Skettenis 672*b725ae77Skettenis * tm-68k.h: Change SKIP_PROLOGUE macro to use the new generic 673*b725ae77Skettenis m68k prologue skipping function by default. 674*b725ae77Skettenis 675*b725ae77Skettenis * tm-altos.h, tm-isi.h: Continue to use the old definition of 676*b725ae77Skettenis SKIP_PROLOGUE. 677*b725ae77Skettenis 678*b725ae77SkettenisMon Nov 18 15:12:45 1991 John Gilmore (gnu at cygnus.com) 679*b725ae77Skettenis 680*b725ae77Skettenis * Makefile.in: Remove tdesc stuff, and extra blanks before colons. 681*b725ae77Skettenis * blockframe.c: Remove tdesc-related code. Default 682*b725ae77Skettenis FRAME_CHAIN_COMBINE. 683*b725ae77Skettenis * infrun.c: Remove tdesc-related code. 684*b725ae77Skettenis * m88k-tdep.c (frame_chain_combine, init_frame_pc): Remove copies 685*b725ae77Skettenis of defaultable things. 686*b725ae77Skettenis * tm-m88k.h: New file, common to all Moto 88k target configs. 687*b725ae77Skettenis Derived from tm-delta88.h. 688*b725ae77Skettenis * tm-delta88.h: Use it. 689*b725ae77Skettenis * xm-m88k.h: Common file for 88K hosts. Remove obsolete stuff. 690*b725ae77Skettenis * xm-delta88.h: Use it. 691*b725ae77Skettenis * tm-*.h: Remove FRAME_CHAIN_COMBINE macros, since all are 692*b725ae77Skettenis default. 693*b725ae77Skettenis * coffread.c: Remove tdesc stuff. 694*b725ae77Skettenis * tconfig/delta88, tconfig/m88k: Remove tdesc stuff. 695*b725ae77Skettenis * xconfig/m88k: Rename tm-88k.h to tm-m88k.h. 696*b725ae77Skettenis 697*b725ae77SkettenisMon Nov 18 13:51:37 1991 Per Bothner (bothner at cygnus.com) 698*b725ae77Skettenis 699*b725ae77Skettenis * source.c (open_source_file): If openp fails, try again 700*b725ae77Skettenis using just the base (non-directory) part of the filename. 701*b725ae77Skettenis This solves various annoying problems, such as when the 702*b725ae77Skettenis source was compiled with an absolute pathname - and the 703*b725ae77Skettenis source files have moved. Or if the source was compiled 704*b725ae77Skettenis using a relative pathname, it can be more convenient 705*b725ae77Skettenis to just specific the source directory to the dir command. 706*b725ae77Skettenis 707*b725ae77SkettenisMon Nov 18 00:04:41 1991 Fred Fish (fnf at cygnus.com) 708*b725ae77Skettenis 709*b725ae77Skettenis * cplus-dem.c (munge_function_name): Add missing third arg to 710*b725ae77Skettenis instance of call to do_type(). 711*b725ae77Skettenis 712*b725ae77Skettenis * dwarfread.c: Changes to match new dwarf.h. Remove 713*b725ae77Skettenis AT_deriv_list, AT_loclist, AT_incomplete, AT_const_data, 714*b725ae77Skettenis and AT_is_external. 715*b725ae77Skettenis 716*b725ae77SkettenisSun Nov 17 16:20:53 1991 Michael Tiemann (tiemann at rtl.cygnus.com) 717*b725ae77Skettenis 718*b725ae77Skettenis * symtab.h (struct type): Moved C++-specific fields into new type 719*b725ae77Skettenis `struct cplus_struct_type'. Now takes 10% less memory. Many 720*b725ae77Skettenis macros changed. 721*b725ae77Skettenis * symtab.c (init_type): Don't set fields belonging to 722*b725ae77Skettenis TYPE_CPLUS_SPECIFIC unless TYPE is TYPE_CODE_STRUCT. 723*b725ae77Skettenis * buildsym.c (read_type): Allocate TYPE_CPLUS_SPECIFIC for 724*b725ae77Skettenis TYPE_CODE_STRUCT. 725*b725ae77Skettenis (read_struct_type): Ditto. Also, add comments about how we can 726*b725ae77Skettenis deduce TYPE_VPTR_FIELDNO from inheritance info and fieldname info. 727*b725ae77Skettenis * coffread.c (decode_base_type): Allocate TYPE_CPLUS_SPECIFIC for 728*b725ae77Skettenis TYPE_CODE_STRUCT. 729*b725ae77Skettenis (read_struct_type): Ditto. 730*b725ae77Skettenis * dwarfread.c (struct_type): Ditto. 731*b725ae77Skettenis 732*b725ae77Skettenis * symtab.c (read_range_type): Don't set TYPE_MAIN_VARIANT. 733*b725ae77Skettenis (lookup_pointer_type): Don't use or set TYPE_MAIN_VARIANT. 734*b725ae77Skettenis (lookup_reference_type): Ditto. 735*b725ae77Skettenis 736*b725ae77Skettenis * cplus-dem.c: Many changes made to handle decoding of 737*b725ae77Skettenis ANSI-mangled names. 738*b725ae77Skettenis * symtab.c (gdb_mangle_name): Mangle/demangle ANSI-mangled names 739*b725ae77Skettenis as well. 740*b725ae77Skettenis 741*b725ae77SkettenisFri Nov 15 17:57:59 1991 Stu Grossman (grossman at cygnus.com) 742*b725ae77Skettenis 743*b725ae77Skettenis * mipsread.c (parse_partial_symbols): patch to keep DEC C 744*b725ae77Skettenis compiler from making gdb bomb out. Thanks to Ed Santiago! 745*b725ae77Skettenis 746*b725ae77SkettenisThu Nov 14 19:27:30 1991 Fred Fish (fnf at cygnus.com) 747*b725ae77Skettenis 748*b725ae77Skettenis * symfile.c: Add function compact_misc_function_vector() to 749*b725ae77Skettenis remove duplicate misc function vector entries. See comments 750*b725ae77Skettenis in source for why this is necessary/desirable. 751*b725ae77Skettenis 752*b725ae77Skettenis * dwarfread.c: Add misc function type parameter to internal 753*b725ae77Skettenis record_misc_function(). Remove calls to init_misc_bunches() 754*b725ae77Skettenis and condense_misc_bunches(), these are now done in elfread.c. 755*b725ae77Skettenis 756*b725ae77Skettenis * elfread.c: Add support for reading bfd canonical symbol tables 757*b725ae77Skettenis and generating misc function vector entries for global and 758*b725ae77Skettenis absolute symbols. Do calls to init_misc_bunches() and 759*b725ae77Skettenis condense_misc_bunches() where they will enclose all calls to 760*b725ae77Skettenis record_misc_function(), including those in dwarfread.c. 761*b725ae77Skettenis 762*b725ae77SkettenisThu Nov 14 17:02:11 1991 Roland H. Pesch (pesch at cygnus.com) 763*b725ae77Skettenis 764*b725ae77Skettenis * doc/Makefile.in: new targets gdb.me, gdb.ms, gdb.mm 765*b725ae77Skettenis (roffable documentation). 766*b725ae77Skettenis * doc/gdb.texinfo: embedded hints (as comments) for better 767*b725ae77Skettenis texi2roff conversion. 768*b725ae77Skettenis 769*b725ae77SkettenisThu Nov 14 13:18:25 1991 John Gilmore (gnu at cygnus.com) 770*b725ae77Skettenis 771*b725ae77Skettenis * m88k-tdep.c (examine_prologue): Deal with OR instructions 772*b725ae77Skettenis that shuffle parameters into other regs. 773*b725ae77Skettenis * symtab.c (decode_line_1): Fix bug introduced in Per's change 774*b725ae77Skettenis of Nov 12th. 775*b725ae77Skettenis 776*b725ae77SkettenisWed Nov 13 19:51:11 1991 Steve Chamberlain (sac at cygnus.com) 777*b725ae77Skettenis 778*b725ae77Skettenis * Makefile.in, xconfig/delta88 made it install a sysV manual page; 779*b725ae77Skettenis gdb.z into the right place. 780*b725ae77Skettenis 781*b725ae77SkettenisWed Nov 13 16:45:13 1991 John Gilmore (gnu at cygnus.com) 782*b725ae77Skettenis 783*b725ae77Skettenis Motorola 88000 port without tears, I mean without tdescs. 784*b725ae77Skettenis 785*b725ae77Skettenis * m88k-tdep.c: Blow away all tdesc stuff. 786*b725ae77Skettenis Provide functions for all the frame-related macros in 787*b725ae77Skettenis tm-delta88.h. Adopt i960-style EXTRA_FRAME_INFO. 788*b725ae77Skettenis (examine_prologue, frame_find_saved_regs, skip_prologue): borrow 789*b725ae77Skettenis from i960-tdep.c and adapt to the function prologues on the 88k. 790*b725ae77Skettenis (read_next_frame_reg): Borrow from mips-tdep.c. 791*b725ae77Skettenis FIXME: frame_locals_address should go away. 792*b725ae77Skettenis 793*b725ae77Skettenis * tm-delta88.h: Dump all the tdesc stuff. 794*b725ae77Skettenis Macros for all frame-related stuff call fns of same name. 795*b725ae77Skettenis Remove duplicated definitions. FP_REGNUM becomes same as 796*b725ae77Skettenis SP_REGNUM. 797*b725ae77Skettenis 798*b725ae77Skettenis * xm-88k.h: Eliminate lots of library dependencies, now handled 799*b725ae77Skettenis in libiberty. Eliminate KDB nonsupport. 800*b725ae77Skettenis 801*b725ae77Skettenis * doc/gdbint.texinfo: Add rudiments on frames. FIXME, add more. 802*b725ae77Skettenis 803*b725ae77Skettenis 804*b725ae77Skettenis * stack.c (frame_info): Mark frameless functions. 805*b725ae77Skettenis Print locals address (FIXME, remove if same). 806*b725ae77Skettenis * blockframe.c: Comment changes, FIXME after. 807*b725ae77Skettenis * coffread.c: Even without TDESC, need to zap "@" symbols. 808*b725ae77Skettenis Don't register for wierd format names; change the names in BFD. 809*b725ae77Skettenis 810*b725ae77Skettenis * alloca.c, language.c, tdesc.c: Lint. 811*b725ae77Skettenis * tdesc.c, tdesc-lib: FIXME: remove these. 812*b725ae77Skettenis 813*b725ae77SkettenisTue Nov 12 19:30:22 1991 John Gilmore (gnu at cygnus.com) 814*b725ae77Skettenis 815*b725ae77Skettenis * Makefile.in: Add tdesc library support. Fixups to lint, 816*b725ae77Skettenis copying.c rules. 817*b725ae77Skettenis 818*b725ae77SkettenisTue Nov 12 13:43:26 1991 Per Bothner (bothner at cygnus.com) 819*b725ae77Skettenis 820*b725ae77Skettenis * symtab.c (decode_line_1): Remove spurious call to operator_chars. 821*b725ae77Skettenis 822*b725ae77Skettenis Allow setting breakpoints on C++ destructors. 823*b725ae77Skettenis * valops.c (destructor_name_p): Don't check TYPE_HAS_DESTRUCTOR, 824*b725ae77Skettenis since it lies. Rely on callers to catch missing destructors. 825*b725ae77Skettenis * symtab.c (decode_line_1): For example (see above), here. 826*b725ae77Skettenis * buildsym.c, symtab.h: Remove TYPE_FLAGS_HAS{CON,DE}STRUCTOR 827*b725ae77Skettenis flags since they are no longer used. 828*b725ae77Skettenis 829*b725ae77Skettenis Fixes to support C++ methods with functional parameters. 830*b725ae77Skettenis * c-exp.y (func_mod rule): Allow (and ignore) list of parameter 831*b725ae77Skettenis types in a function type. 832*b725ae77Skettenis * eval.c (parse_and_eval_type), value.h: New function, 833*b725ae77Skettenis parse_and_eval_type, is based on old code from check_stub_method. 834*b725ae77Skettenis But don't actually evaluate the cast, since that calls 835*b725ae77Skettenis value_cast(), whcih may fail. Just extract the type 836*b725ae77Skettenis from the parsed expression. 837*b725ae77Skettenis * values.c (check_stub_method): While looping through the 838*b725ae77Skettenis arguments, adjust depth *after* parameter has been handled. 839*b725ae77Skettenis Replace call and setup of parse_and_eval with new function 840*b725ae77Skettenis parse_and_eval_type. 841*b725ae77Skettenis 842*b725ae77SkettenisTue Nov 12 09:40:07 1991 Fred Fish (fnf at cygnus.com) 843*b725ae77Skettenis 844*b725ae77Skettenis * utils.c, rem-multi.shar: Remove fixed arg count version of 845*b725ae77Skettenis concat(). 846*b725ae77Skettenis 847*b725ae77Skettenis * altos-xdep.c, arm-xdep.c, coffread.c, command.c, convex-xdep.c, 848*b725ae77Skettenis core.c, dwarfread.c, gould-xdep.c, infcmd.c, language.c, 849*b725ae77Skettenis m88k-xdep.c, main.c, printcmd.c, pyr-xdep.c, source.c, 850*b725ae77Skettenis sun386-xdep.c, symm-xdep.c, umax-xdep.c, values.c, xcoffread.c: 851*b725ae77Skettenis Change all instances of use of fixed args concat() to variable 852*b725ae77Skettenis args concat() now located in libiberty. 853*b725ae77Skettenis 854*b725ae77SkettenisTue Nov 12 07:23:46 1991 John Gilmore (gnu at cygnus.com) 855*b725ae77Skettenis 856*b725ae77Skettenis * Makefile.in: Add xcoffread.c, xcoffexec.c. 857*b725ae77Skettenis * xcoffread.c: New file for handling AIX mangled-coff files. 858*b725ae77Skettenis * xconfig/rs6000, tconfig/rs6000: New files. 859*b725ae77Skettenis * buildsym.c: Add hooks for xcoffread.c. 860*b725ae77Skettenis * rs6000-pinsn.c, rs6000-tdep.c, rs6000-xdep.c, tm-rs6000.h, 861*b725ae77Skettenis xm-rs6000.h, rs6k-opcode.def, rs6k-opcode.h: New files. 862*b725ae77Skettenis * xcoffexec.c: New file for handling AIX shared libraries. 863*b725ae77Skettenis 864*b725ae77SkettenisMon Nov 11 19:14:31 1991 Fred Fish (fnf at cygnus.com) 865*b725ae77Skettenis 866*b725ae77Skettenis * core.c: Minor rewording of message to user containing name of 867*b725ae77Skettenis (and possibly arguments to) the program that generated a core 868*b725ae77Skettenis file. 869*b725ae77Skettenis 870*b725ae77Skettenis * elfread.c: Remove the register_addr() stub now that it is no 871*b725ae77Skettenis longer needed. 872*b725ae77Skettenis 873*b725ae77Skettenis * procfs.c: Move misplaced #endif for ATTACH_DETACH. Add new 874*b725ae77Skettenis fetch_core_registers() function for core file support. 875*b725ae77Skettenis 876*b725ae77SkettenisSat Nov 9 13:37:57 1991 Fred Fish (fnf at cygnus.com) 877*b725ae77Skettenis 878*b725ae77Skettenis * dwarfread.c (dwarf_psymtab_to_symtab): Remove leftover call 879*b725ae77Skettenis to do_cleanups() which resulted from a previous change. 880*b725ae77Skettenis 881*b725ae77Skettenis * elfread.c: Re-enable compilation of register_addr() stub 882*b725ae77Skettenis whenever it is not supplied by coredep.c 883*b725ae77Skettenis 884*b725ae77SkettenisSat Nov 9 00:40:32 1991 John Gilmore (gnu at cygnus.com) 885*b725ae77Skettenis 886*b725ae77Skettenis Add tracking of object files (that contain symbols) to gdb. 887*b725ae77Skettenis This includes a "struct objfile" that owns symtabs and psymtabs 888*b725ae77Skettenis that were read in from that binary file. 889*b725ae77Skettenis 890*b725ae77Skettenis * symfile.h: Add struct objfile. Add pointer to the objfile 891*b725ae77Skettenis into the struct sym_fns. 892*b725ae77Skettenis Replace global `symfile' and `symfile_mtime' with 893*b725ae77Skettenis `symfile_objfile'. Add global object_files chain. 894*b725ae77Skettenis 895*b725ae77Skettenis * symfile.c: Move param.h above symtab.h. 896*b725ae77Skettenis (sort_misc_function_vector): Add. 897*b725ae77Skettenis (syms_from_objfile): Was syms_from_bfd. 898*b725ae77Skettenis (symfile_open): Now returns objfile. 899*b725ae77Skettenis (allocate_objfile): New. 900*b725ae77Skettenis (free_objfile): New, replacing free_all_.*symtabs. 901*b725ae77Skettenis (symfile_init): Takes objfile arg, puts it in sym_fns result. 902*b725ae77Skettenis (reread_symbols): Searches whole chain of objfiles. 903*b725ae77Skettenis (allocate_symtab): Takes objfile as new parameter, chains them. 904*b725ae77Skettenis Handle INIT_EXTRA_SYMTAB_INFO. 905*b725ae77Skettenis (free_all_psymtabs, free_all_symtabs): Move here from symmisc.c. 906*b725ae77Skettenis 907*b725ae77Skettenis * dbxread.c: Make more errors into complaints. 908*b725ae77Skettenis (push_subfile, pop_subfile): Move to buildsym.c. 909*b725ae77Skettenis (dbx_symfile_read, dbx_symfile_init, fill_symbuf, read_dbx_symtab, 910*b725ae77Skettenis start_psymtab, psymtab_to_symtab_1, read_ofile_symtab, 911*b725ae77Skettenis dbx_psymtab_to_symtab, ): Use bfd ops, don't use file descriptor. 912*b725ae77Skettenis Pass objfile. Change callers. 913*b725ae77Skettenis (fill_symbuf, SWAP_SYMBOL): Take bfd as arg. 914*b725ae77Skettenis (read_dbx_symtab): Just wipe out new symbols, not all, on error. 915*b725ae77Skettenis (end_psymtab): Blow away psymtab if empty. 916*b725ae77Skettenis (process_symbol_pair): Swallow into read_ofile_symtab. 917*b725ae77Skettenis (process_one_symbol): Use push_context and pop_context. 918*b725ae77Skettenis (virtual_context): Delete #if 0'd obsolete stuff. 919*b725ae77Skettenis 920*b725ae77Skettenis * buildsym.c (end_symtab): Pass objfile. 921*b725ae77Skettenis (dbx_lookup_type): Handle null typevector. 922*b725ae77Skettenis (dbx_alloc_type): Check file number, not sym number, for -1. 923*b725ae77Skettenis (find_symbol_in_list): Add for xcoffread. 924*b725ae77Skettenis (start_symtab): Default typevector is empty. Keep reusing same 925*b725ae77Skettenis context_stack. 926*b725ae77Skettenis (end_symtab): Take objfile argument and pass it to 927*b725ae77Skettenis allocate_symtab. Don't make a symtab if no blocks or symbols. 928*b725ae77Skettenis Handle empty typevector. 929*b725ae77Skettenis (push_context): New function for context stack nesting. 930*b725ae77Skettenis (read_type): Mark FIXME where we need to reintroduce type smashing. 931*b725ae77Skettenis 932*b725ae77Skettenis * buildsym.h (pop_context): Macro, paired with push_context. 933*b725ae77Skettenis (subfile_stack): Move here from dbxread.c. 934*b725ae77Skettenis 935*b725ae77Skettenis * coffread.c (end_symtab, read_coff_symtab): Take and use objfile arg. 936*b725ae77Skettenis (read_coff_symtab): Cleanup by freeing objfile, not all symtabs. 937*b725ae77Skettenis 938*b725ae77Skettenis * mipsread.c (read_mips_symtab, parse_partial_symbols, parse_fdr, 939*b725ae77Skettenis new_psymtab, new_symtab): Take and use objfile arg. 940*b725ae77Skettenis 941*b725ae77Skettenis * dwarfread.c (scan_compilation_units, start_psymtab, 942*b725ae77Skettenis process_dies, end_symtab, dwarf_build_psymtabs, 943*b725ae77Skettenis read_lexical_block_scope, read_func_scope, read_file_scope): Take 944*b725ae77Skettenis and use objfile argument. 945*b725ae77Skettenis (psymtab_to_symtab_1, read_ofile_symtab): Don't take or use file 946*b725ae77Skettenis descriptor. Use BFD internal functions instead. 947*b725ae77Skettenis (end_symtab): Call global allocate_symtab. 948*b725ae77Skettenis 949*b725ae77Skettenis * elfread.c, target.c: Minor changes to accommodate objfiles. 950*b725ae77Skettenis * symtab.h: partial_symbol_table has no symfile_name member now. 951*b725ae77Skettenis (fn_fieldlists voffset): avoid non-int bitfield. 952*b725ae77Skettenis (struct symtab): Add objfile * and objfile_chain * of symtabs. 953*b725ae77Skettenis (struct partial_symtab): Add objfile * and objfile_chain * of 954*b725ae77Skettenis psymtabs. Remove symfile_name. 955*b725ae77Skettenis 956*b725ae77Skettenis * symmisc.c: Lose free_all_symtabs, free_all_psymtabs. 957*b725ae77Skettenis (printsyms_command): Rename from print_symtabs. Add selective 958*b725ae77Skettenis listing if 2nd argument given. Print objfile info. 959*b725ae77Skettenis (printpsyms_command): Rename from print_partial_symtabs. Ditto all. 960*b725ae77Skettenis (printobjfiles_command): New; prints objfiles lists, and checks 961*b725ae77Skettenis for consistency of symtab, psymtab, and objfile lists. 962*b725ae77Skettenis 963*b725ae77Skettenis * symfile.h, symfile.c, symtab.h: Lint 964*b725ae77Skettenis 965*b725ae77SkettenisFri Nov 8 23:38:48 1991 John Gilmore (gnu at cygnus.com) 966*b725ae77Skettenis 967*b725ae77Skettenis * command.c: Include param.h. 968*b725ae77Skettenis * defs.h (warning_setup, warning): Declare. 969*b725ae77Skettenis * expprint.c (print_subexp, UNOP_MEMVAL case): Lint. 970*b725ae77Skettenis * inflow.c (new_tty): Use USE_O_NOCTTY #define. 971*b725ae77Skettenis * language.c, printcmd.c (print_scalar_formatted), signame.c, 972*b725ae77Skettenis stack.c: lint. 973*b725ae77Skettenis 974*b725ae77SkettenisThu Nov 7 18:26:15 1991 Steve Chamberlain (sac at rtl.cygnus.com) 975*b725ae77Skettenis 976*b725ae77Skettenis * Makefile.in: link with libiberty after libreadline, since 977*b725ae77Skettenis readline might want something in libiberty. 978*b725ae77Skettenis * m88k-xdep.c: Fixed the register offsets in the ptrace_user 979*b725ae77Skettenis struct for BCS 88k machines. 980*b725ae77Skettenis * xm-m88k.h: don't define USIZE if already defined. 981*b725ae77Skettenis * configure.in: Added delta88 target. 982*b725ae77Skettenis 983*b725ae77SkettenisThu Nov 7 04:51:19 1991 John Gilmore (gnu at cygnus.com) 984*b725ae77Skettenis 985*b725ae77Skettenis * am29k-pinsn.c, am29k-opcode.h: Fix decoding of mtacc, dmac, fmac. 986*b725ae77Skettenis 987*b725ae77Skettenis * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and 988*b725ae77Skettenis READ_MIPS_FORMAT, which have been unused since BFD. Still 989*b725ae77Skettenis remaining is COFF_NO_LONG_FILE_NAMES. 990*b725ae77Skettenis * tm-sun3.h, tm-altos.h: Remove detritus accidentally left from 991*b725ae77Skettenis function calling code moved to m68k-tdep.c. 992*b725ae77Skettenis 993*b725ae77SkettenisWed Nov 6 17:21:59 1991 John Gilmore (gnu at cygnus.com) 994*b725ae77Skettenis 995*b725ae77Skettenis * coffread.c: Eliminate c_nsyms in favor of c_naux. 996*b725ae77Skettenis Complain if no auxents on .bf and .ef FCN symbols, and assume 997*b725ae77Skettenis lots of line numbers. 998*b725ae77Skettenis (init_linenos, enter_linenos): Use a sentinel at the end of the 999*b725ae77Skettenis read-in linenos, to make for a fast, safe loop-end test. 1000*b725ae77Skettenis 1001*b725ae77SkettenisWed Nov 6 02:54:08 1991 Steve Chamberlain (sac at cygnus.com) 1002*b725ae77Skettenis 1003*b725ae77Skettenis * coffread.c (read_coff_symtab): coffread used to rely on the 1004*b725ae77Skettenis x_sym.x_misc.x_lnsz.x_lnno field giving the # of linnos in a 1005*b725ae77Skettenis function. Two of the formats I'm using (29k and 88k) don't seem to 1006*b725ae77Skettenis set it. Ths patch to fcn_last_line and (enter_linenos) is an 1007*b725ae77Skettenis attempt to use the actual size of the linno table in the file to set 1008*b725ae77Skettenis the number of linenos to process. 1009*b725ae77Skettenis 1010*b725ae77SkettenisTue Nov 5 22:47:46 1991 Steve Chamberlain (sac at cygnus.com) 1011*b725ae77Skettenis 1012*b725ae77Skettenis * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and 1013*b725ae77Skettenis mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files 1014*b725ae77Skettenis are created in place, so the mv fails, then the make continues. 1015*b725ae77Skettenis 1016*b725ae77SkettenisTue Nov 5 16:47:47 1991 Per Bothner (bothner at cygnus.com) 1017*b725ae77Skettenis 1018*b725ae77Skettenis Add C++ as a separate language. 1019*b725ae77Skettenis * defs.h (enum language): Add language_cplus. 1020*b725ae77Skettenis * dwarfread.c (end_symtab): Support language_cplus. 1021*b725ae77Skettenis * c-exp.y: Add new struct language_defn cplus_language_defn. 1022*b725ae77Skettenis Don't set c to be the default language (see main.c). 1023*b725ae77Skettenis * c-exp.y (yylex): Only look for field of this if 1024*b725ae77Skettenis language is C++. (First difference from C!) 1025*b725ae77Skettenis * language.c: Add case branches for C++ (currently, all 1026*b725ae77Skettenis the same as C). Also, add c++ to "usage" note for "set lang". 1027*b725ae77Skettenis * valprint.c (typedef_print). Add case branches for C++. 1028*b725ae77Skettenis * main.c (main): New way to set initial language: Look at 1029*b725ae77Skettenis file extension of psymtab containing main(). (Same as we 1030*b725ae77Skettenis do for symtabs, but avoid loading the symtab yet.) 1031*b725ae77Skettenis * symtab.c: New routine find_main_psymtab(), used by main() 1032*b725ae77Skettenis to set initial language. 1033*b725ae77Skettenis * symfile.c (allocate_symtab): Move code for mapping file 1034*b725ae77Skettenis extensions-> languages to new deduce_language_from_filename(). 1035*b725ae77Skettenis 1036*b725ae77Skettenis Fix a C++ problem when looking for methods in super-classes. 1037*b725ae77Skettenis There was confusion between base and derived types. 1038*b725ae77Skettenis * valops.c (value_fn_field): Change function interface. 1039*b725ae77Skettenis * values.c: Use new value_fn_field interface. 1040*b725ae77Skettenis 1041*b725ae77SkettenisMon Nov 4 10:49:33 1991 Per Bothner (bothner at cygnus.com) 1042*b725ae77Skettenis 1043*b725ae77Skettenis * infrun.c: Fixed typo in comment. 1044*b725ae77Skettenis * utils.c: All the v*fprintf emulation is now in libiberty, 1045*b725ae77Skettenis so we can get rid of some junk. 1046*b725ae77Skettenis * xm-sun3os4.h, xm-sun4os4.h, xconfig/decstation, xconfig/i386sco, 1047*b725ae77Skettenis xconfig/sun3os4, xconfig/sun4os4: Don`t need HAVE_STRSTR any more. 1048*b725ae77Skettenis * m68k-pinsn.c (print_insn_arg): Support BB/BW/BL 1049*b725ae77Skettenis type operands, as used by branch instructions. 1050*b725ae77Skettenis * gmalloc.c: Fix prototype of memcpy. 1051*b725ae77Skettenis * elfread.c: Comment out register_addr, since it conflicts 1052*b725ae77Skettenis with the one in coredep.c. 1053*b725ae77Skettenis * buildsym.h: Remove extern declarations of two functions 1054*b725ae77Skettenis that are really static in buildsym.c. 1055*b725ae77Skettenis * tm-mips.h: Add symbolic names for more registers. 1056*b725ae77Skettenis * mips-xdep.c (store_inferior_registers): Use new register names. 1057*b725ae77Skettenis * xm-mips.h: Simplify REGISTER_U_ADDR, since it is now 1058*b725ae77Skettenis only used for core files, not ptrace. Therefore, 1059*b725ae77Skettenis the KERNEL_U_ADDR hack is no longer needed. 1060*b725ae77Skettenis The mapping to ptrace number is now in in mips-xdep.c. 1061*b725ae77Skettenis * mips-xdep.c: Define REGISTER_PTRACE_ADDR (using the 1062*b725ae77Skettenis mapping from the old REGISTER_U_ADDR), and use it 1063*b725ae77Skettenis in {fetch,store}_inferior_registers. 1064*b725ae77Skettenis * mipsread.c: Rename #include ecoff.h to new name coff-mips.h. 1065*b725ae77Skettenis * mips-tdep.c (mips_push_dummy_frame, mips_pop_frame): 1066*b725ae77Skettenis Save/restore FP regs correctly (?). 1067*b725ae77Skettenis * dbxread.c: Remove duplicate define_symbol and type_synonym_name 1068*b725ae77Skettenis (these had been previously moved to buildsym.c). 1069*b725ae77Skettenis Hence, define_symbol becomes extern instead of static. 1070*b725ae77Skettenis * buildsym.c (read_struct_type): Comment out bogus handling 1071*b725ae77Skettenis of C++ operator methods. Minor hacking of reading of class 1072*b725ae77Skettenis contexts. Make define_symbol non-static, so dbxread.c can call it. 1073*b725ae77Skettenis 1074*b725ae77SkettenisFri Nov 1 11:05:47 1991 John Gilmore (gnu at cygnus.com) 1075*b725ae77Skettenis 1076*b725ae77Skettenis * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real 1077*b725ae77Skettenis filename with error messages. 1078*b725ae77Skettenis * stack.c (frame_select_command): Rename to select_frame_command 1079*b725ae77Skettenis to avoid "fr" and "fra" having nonunique completions. 1080*b725ae77Skettenis * symfile.c (sort_symtab_syms): Ignore sort of zero symtab *. 1081*b725ae77Skettenis (symfile_init): Print file format name when unable to handle it. 1082*b725ae77Skettenis (free_named_symtabs): Use BLOCKVECTOR rather than obsolete BLOCKLIST. 1083*b725ae77Skettenis * symmisc.c (free_symtab): Only free linetable if nonzero. 1084*b725ae77Skettenis * symtab.h: Remove obsolete BLOCKLIST macros. 1085*b725ae77Skettenis 1086*b725ae77SkettenisThu Oct 31 18:12:43 1991 Stu Grossman (grossman at cygnus.com) 1087*b725ae77Skettenis 1088*b725ae77Skettenis * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure 1089*b725ae77Skettenis that stop_step is 1 at bottom of main loop. I don't know why this 1090*b725ae77Skettenis needs to be done, but it helps me sleep better at night. 1091*b725ae77Skettenis 1092*b725ae77SkettenisSun Oct 27 18:18:39 1991 Stu Grossman (grossman at cygnus.com) 1093*b725ae77Skettenis 1094*b725ae77Skettenis * main.c (initialize_history): Read history after reading all 1095*b725ae77Skettenis init files. 1096*b725ae77Skettenis 1097*b725ae77SkettenisSun Oct 27 14:09:25 1991 John Gilmore (gnu at cygnus.com) 1098*b725ae77Skettenis 1099*b725ae77Skettenis * buildsym.c: Break out initial malloc sizes. 1100*b725ae77Skettenis (record_line): Record directly in a subfile. Alloc on demand. 1101*b725ae77Skettenis (compare_line_numbers): Add from xcoffread.c. 1102*b725ae77Skettenis (end_symtab): New params say whether to sort pendings and 1103*b725ae77Skettenis linetable. Patch block stabs if defined. Shrink linetable before 1104*b725ae77Skettenis allocating the symtab. 1105*b725ae77Skettenis * buildsym.h: Delete line_vector* and prev_line_number. Add 1106*b725ae77Skettenis global_stabs and file_stabs for xcoffread. 1107*b725ae77Skettenis * dbxread.c (start_subfile): Move to buildsym. Change above calls. 1108*b725ae77Skettenis * symtab.h: LINETABLE(symtab) can now be null. Zap LINELIST. 1109*b725ae77Skettenis * symmisc.c, symtab.c: Cope with null LINETABLEs. 1110*b725ae77Skettenis 1111*b725ae77Skettenis * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO. 1112*b725ae77Skettenis * tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h, 1113*b725ae77Skettenis tm-sparc.h: Accept fromleaf parameter. 1114*b725ae77Skettenis * c-exp.y (yyerror): Pass error message if given. 1115*b725ae77Skettenis * configure.in: Add rs6000 host and target. 1116*b725ae77Skettenis * inflow.c (new_tty): O_NOCTTY kludge for RS/6000. 1117*b725ae77Skettenis * symfile.h (entry_point): Add. 1118*b725ae77Skettenis 1119*b725ae77SkettenisSat Oct 26 00:16:32 1991 John Gilmore (gnu at cygus.com) 1120*b725ae77Skettenis 1121*b725ae77Skettenis * buildsym.c: New file. Breaks out symbol-table-building routines 1122*b725ae77Skettenis from dbxread.c, so they can be shared with xcoffread.c. 1123*b725ae77Skettenis * buildsym.h: New file. Declarations for buildsym.c users. 1124*b725ae77Skettenis * dbxread.c: Remove large chunks into buildsym.c. 1125*b725ae77Skettenis * Makefile.in: Add buildsym.c and buildsym.h. 1126*b725ae77Skettenis 1127*b725ae77Skettenis * symfile.c (syms_from_bfd): New routine. 1128*b725ae77Skettenis (add_symbol_file): Call it to do the real work. 1129*b725ae77Skettenis (syms_from_bfd): Initialize entry_point before calling symfile_init. 1130*b725ae77Skettenis * symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c: 1131*b725ae77Skettenis Avoid declaring or setting entry_point (symfile.h & symfile.c cope). 1132*b725ae77Skettenis 1133*b725ae77SkettenisFri Oct 25 10:58:16 1991 Mark Eichin (eichin at cygnus.com) 1134*b725ae77Skettenis 1135*b725ae77Skettenis * cplus-dem.c (cplus-demangle): added support for templates, static 1136*b725ae77Skettenis data, and the new (correct) mangling for destructors. 1137*b725ae77Skettenis 1138*b725ae77Skettenis * dwarfread.c: (dwarfwarn): created a varargs version of 1139*b725ae77Skettenis dwarfwarn, for non __STDC__ compilers. 1140*b725ae77Skettenis 1141*b725ae77Skettenis * c-exp.y: (yylex): added match for "template" token. 1142*b725ae77Skettenis (typebase): added TEMPLATE name '<' type '>' clause, for explicit 1143*b725ae77Skettenis specification of template types. 1144*b725ae77Skettenis 1145*b725ae77Skettenis * symtab.c: (lookup_template_type): new function for finding 1146*b725ae77Skettenis templates in symbol table. 1147*b725ae77Skettenis (type_name_no_tag): changed to explicitly check for s/u/e at the 1148*b725ae77Skettenis beginning of the symbol - if it is a template, none of these will 1149*b725ae77Skettenis be there (but the name will still contain spaces.) 1150*b725ae77Skettenis 1151*b725ae77SkettenisFri Oct 25 18:59:32 1991 Per Bothner (bothner at cygnus.com) 1152*b725ae77Skettenis 1153*b725ae77Skettenis Various fixes to improve g++ debugging. 1154*b725ae77Skettenis * symtab.h: Add is_const and is_volatile flags for each method. 1155*b725ae77Skettenis These are bit fields - take their space from voffset, 1156*b725ae77Skettenis which shrinks to 30 bits. Since voffset is now a bitfield, 1157*b725ae77Skettenis make it unsigned for portability. This changes its interpretation 1158*b725ae77Skettenis slightly: Static methods now have voffset 1 instead of -1, 1159*b725ae77Skettenis and virtual offsets start at 2, not 1. 1160*b725ae77Skettenis * symtab.c: Renamed gdb_mangle_typename to gdb_mangle_name, 1161*b725ae77Skettenis since it now returns an entire magled method name, not just 1162*b725ae77Skettenis the type part. This avoids some duplication. 1163*b725ae77Skettenis It also allows us to correctly mangle const and volatile 1164*b725ae77Skettenis methods (using the new is_const and is_volatile bit fields 1165*b725ae77Skettenis mentioned above). 1166*b725ae77Skettenis * valprint.c (type_print_base), values.c (check_stub_method): 1167*b725ae77Skettenis Simplify by using new gdb_mangle_name. 1168*b725ae77Skettenis * values.c (value_headof): Fix to correctly handle single 1169*b725ae77Skettenis inheritance (actually two fixes, either of which suffices). 1170*b725ae77Skettenis * dbxread.c (read_struct_type): Handle const and volatile 1171*b725ae77Skettenis method specifiers. 1172*b725ae77Skettenis * dbxread.c (read_struct_type): Yet one more place where 1173*b725ae77Skettenis we must handle '\\' continuations. 1174*b725ae77Skettenis * valprint.c (vtbl_ptr_name): Add final '\0'. 1175*b725ae77Skettenis 1176*b725ae77SkettenisFri Oct 25 16:06:38 1991 Stu Grossman (grossman at cygnus.com) 1177*b725ae77Skettenis 1178*b725ae77Skettenis * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of 1179*b725ae77Skettenis short return values for sparc and 68k. Patch from Paul Eggert. 1180*b725ae77Skettenis 1181*b725ae77Skettenis * coffread.c, coredep.c, i386-xdep.c: install patches for 1182*b725ae77Skettenis SysV/386 3.2 from Mauro DePalma. 1183*b725ae77Skettenis 1184*b725ae77SkettenisFri Oct 25 02:02:13 1991 John Gilmore (gnu at cygnus.com) 1185*b725ae77Skettenis 1186*b725ae77Skettenis * core.c (core_file_info), exec.c (exec_file_info): Print file 1187*b725ae77Skettenis type. Use printf_filtered. 1188*b725ae77Skettenis 1189*b725ae77Skettenis * valops.c (value_fetch_lazy): Avoid 0-length fetches. 1190*b725ae77Skettenis 1191*b725ae77SkettenisThu Oct 24 23:06:40 1991 Fred Fish (fnf at cygnus.com) 1192*b725ae77Skettenis 1193*b725ae77Skettenis * dwarfread.c: Add casts to remove compiler warnings. 1194*b725ae77Skettenis 1195*b725ae77Skettenis * tm-3b1.h, tm-68k.h, tm-altos.h, tm-amix.h, tm-hp300bsd.h, 1196*b725ae77Skettenis tm-hp300hpux.h, tm-isi.h, tm-news.h, tm-pn.h, tm-sun2.h, 1197*b725ae77Skettenis tm-sun3.h: Remove locally duplicated code for calling functions 1198*b725ae77Skettenis in the inferior. The only differences were in the specific trap 1199*b725ae77Skettenis vectors used and whether or not an fpu was present. These are 1200*b725ae77Skettenis now handled by appropriate definitions of BPT_VECTOR and 1201*b725ae77Skettenis HAVE_68881 respectively. Other minor obvious cleanups. 1202*b725ae77Skettenis 1203*b725ae77Skettenis * valops.c: Correct a minor misspelling. 1204*b725ae77Skettenis 1205*b725ae77Skettenis * utils.c: Remove local BSD/USG hacks that are now in libiberty. 1206*b725ae77Skettenis 1207*b725ae77Skettenis * dwarfread.c: Remove prototype for dwarfwarn. Does not work 1208*b725ae77Skettenis with <varargs.h>. 1209*b725ae77Skettenis 1210*b725ae77SkettenisThu Oct 24 09:33:44 1991 John Gilmore (gnu at cygnus.com) 1211*b725ae77Skettenis 1212*b725ae77Skettenis * stack.c (frame_command): Always print. Use new 1213*b725ae77Skettenis frame_select_command to select a frame without printing. 1214*b725ae77Skettenis 1215*b725ae77Skettenis * dwarfread.c: Use <varargs.h>, since <stdarg.h> is not portable. 1216*b725ae77Skettenis 1217*b725ae77SkettenisThu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com) 1218*b725ae77Skettenis 1219*b725ae77Skettenis * dwarfread.c: New file for DWARF debugging format support. 1220*b725ae77Skettenis 1221*b725ae77Skettenis * elfread.c: New file for ELF object file format support. 1222*b725ae77Skettenis 1223*b725ae77Skettenis * procfs.c: New file for SVR4 /proc (process file system) support. 1224*b725ae77Skettenis 1225*b725ae77Skettenis * tm-amix.h, xm-amix.h, tconfig/amix, xconfig/amix: New files for 1226*b725ae77Skettenis Amiga UNIX support. 1227*b725ae77Skettenis 1228*b725ae77Skettenis * xm-svr4.h, tm-svr4.h: New files for SVR4 support. 1229*b725ae77Skettenis 1230*b725ae77Skettenis * xm-m68k.h: New file for host machines with m68k cpu. 1231*b725ae77Skettenis 1232*b725ae77Skettenis * Makefile.in: Add elfread.c and dwarfread.c to SFILES_MAINDIR. 1233*b725ae77Skettenis Add elfread.o and dwarfread.o to OBS. 1234*b725ae77Skettenis 1235*b725ae77Skettenis * symfile.h: Add "elf" to list of supported formats in comment. 1236*b725ae77Skettenis 1237*b725ae77Skettenis * c-exp.y, defs.h, symtab.h, valprint.c: Add three new builtin 1238*b725ae77Skettenis types to gdb, builtin_type_long_double, builtin_type_complex, and 1239*b725ae77Skettenis builtin_type_double_complex. Add and use new TARGET_SHORT_BIT, 1240*b725ae77Skettenis TARGET_INT_BIT, TARGET_LONG_BIT, TARGET_FLOAT_BIT, 1241*b725ae77Skettenis TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_COMPLEX_BIT, and 1242*b725ae77Skettenis TARGET_DOUBLE_COMPLEX_BIT, as the sizes in bits of the indicated 1243*b725ae77Skettenis types on the target machine (ala the existing TARGET_LONG_LONG_BIT). 1244*b725ae77Skettenis 1245*b725ae77Skettenis * infrun.c: When using SVR4 /proc interface instead of ptrace(), 1246*b725ae77Skettenis call proc_set_exec_trap() to setup child to stop at first instruction. 1247*b725ae77Skettenis 1248*b725ae77Skettenis * inftarg.c: When using SVR4 /proc interface, call proc_wait() 1249*b725ae77Skettenis rather than wait(). 1250*b725ae77Skettenis 1251*b725ae77Skettenis * m68k-tdep.c: Add new routines supply_gregset(), fill_gregset(), 1252*b725ae77Skettenis supply_fpregset(), and fill_fpregset(), which are machine 1253*b725ae77Skettenis dependent support routines for SVR4 /proc interface. 1254*b725ae77Skettenis 1255*b725ae77Skettenis * utils.c: Add warning_setup() and warning(). Warning() behaves 1256*b725ae77Skettenis the same as error() except that it returns normally rather than 1257*b725ae77Skettenis jumping back to command level. Modules that don't want to call 1258*b725ae77Skettenis warning() for some reason, but want to produce their own warnings, 1259*b725ae77Skettenis can call warning_setup() to ensure compatibility with the way 1260*b725ae77Skettenis warning() and error() deal with the terminal. 1261*b725ae77Skettenis 1262*b725ae77Skettenis * symtab.c: Make internal errors produce more useful messages. 1263*b725ae77Skettenis 1264*b725ae77Skettenis * tm-68k.h: Move code that is duplicated in almost every single 1265*b725ae77Skettenis m68k based machine's configuration files to this common file. 1266*b725ae77Skettenis Duplications in the configuration files still need to be removed 1267*b725ae77Skettenis (FIXME). 1268*b725ae77Skettenis 1269*b725ae77Skettenis * infrun.c (child_create_inferior): System V versions must call 1270*b725ae77Skettenis setpgrp() with no arguments, to comply with prototyping typically 1271*b725ae77Skettenis in <unistd.h>. 1272*b725ae77Skettenis 1273*b725ae77Skettenis * munch: Add support for SVR4 style nm output. 1274*b725ae77Skettenis 1275*b725ae77Skettenis * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object 1276*b725ae77Skettenis file specific fields from the partial symbol table structure and 1277*b725ae77Skettenis replace them with a pointer to private data for each different 1278*b725ae77Skettenis flavor of object file reader to initialize appropriately. 1279*b725ae77Skettenis 1280*b725ae77SkettenisWed Oct 23 09:38:20 1991 John Gilmore (gnu at cygnus.com) 1281*b725ae77Skettenis 1282*b725ae77Skettenis * xconfig/sun[34]os4: Add note about strstr botch on sunos4.0.3c 1283*b725ae77Skettenis and previous. 1284*b725ae77Skettenis 1285*b725ae77Skettenis * mipsread.c (fixup_undef_type): New function. If a struct / 1286*b725ae77Skettenis union / enum is defined in a header file but nowhere else used, 1287*b725ae77Skettenis (by typedefing, pointer referencing or declaration) the mipsread code 1288*b725ae77Skettenis builds the complete tree for the structure but leaves its code as 1289*b725ae77Skettenis TYPE_CODE_UNDEF as it doesn't know what kind of aggregate it is. 1290*b725ae77Skettenis Guess its type based on the details of the members. 1291*b725ae77Skettenis 1292*b725ae77SkettenisTue Oct 22 18:04:32 1991 Stu Grossman (grossman at cygnus.com) 1293*b725ae77Skettenis 1294*b725ae77Skettenis * infrun.c (wait_for_inferior): Check return value from 1295*b725ae77Skettenis find_pc_line. 1296*b725ae77Skettenis 1297*b725ae77SkettenisMon Oct 21 17:47:03 1991 Stu Grossman (grossman at cygnus.com) 1298*b725ae77Skettenis 1299*b725ae77Skettenis * infrun.c (wait_for_inferior): fix stepi/nexti that was broken 1300*b725ae77Skettenis by my last edit to this routine. 1301*b725ae77Skettenis 1302*b725ae77SkettenisMon Oct 21 14:27:43 1991 John Gilmore (gnu at cygnus.com) 1303*b725ae77Skettenis 1304*b725ae77Skettenis * tm-sun3.h (FIX_CALL_DUMMY): problem with cross debugging. 1305*b725ae77Skettenis FIX_CALL_DUMMY does unaligned accesses and/or forgets to byte swap 1306*b725ae77Skettenis the values before putting them into the dummy code. (From Peter 1307*b725ae77Skettenis Schauer) 1308*b725ae77Skettenis 1309*b725ae77SkettenisMon Oct 21 10:04:39 1991 Steve Chamberlain (steve at rtl.cygnus.com) 1310*b725ae77Skettenis 1311*b725ae77Skettenis * configure.in: added ebmon target. 1312*b725ae77Skettenis 1313*b725ae77SkettenisWed Oct 16 22:49:58 1991 John Gilmore (gnu at cygnus.com) 1314*b725ae77Skettenis 1315*b725ae77Skettenis GDB-4.2 release! 1316*b725ae77Skettenis 1317*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.2. 1318*b725ae77Skettenis * README, TODO, WHATS.NEW: Update. 1319*b725ae77Skettenis 1320*b725ae77Skettenis * core.c (core_open): Improve error message for bad file. 1321*b725ae77Skettenis Pass .reg virtual memory address to fetch_core_registers to help 1322*b725ae77Skettenis it find the registers in the core-file header. 1323*b725ae77Skettenis * coredep.c (fetch_core_registers): Take new argument, use it, 1324*b725ae77Skettenis and pass it to register_addr to locate the block of registers. 1325*b725ae77Skettenis * xm-mips.h: Update KERNEL_U_ADDR for new scheme. Cleanup a bit. 1326*b725ae77Skettenis 1327*b725ae77Skettenis * dbxread.c (read_dbx_symtab, process_one_symbol): Handle 1328*b725ae77Skettenis Sequent N_FN_SEQ like everybody else's N_FN. 1329*b725ae77Skettenis 1330*b725ae77Skettenis * main.c: Circumvent SCO cc bug with #if !!defined(USG). 1331*b725ae77Skettenis * tm-i386v.h: #endif guck. 1332*b725ae77Skettenis * xconfig/i386*: Remove -Dgetpagesize()=4096 kludge. 1333*b725ae77Skettenis * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath. 1334*b725ae77Skettenis * xconfig/tahoe: Add REGEX, which seems to be missing. 1335*b725ae77Skettenis 1336*b725ae77Skettenis * coredep.c: Add <sys/types.h> for SCOnix. 1337*b725ae77Skettenis * dbxread.c (read_dbx_symntab): Avoid coredump on malformed file. 1338*b725ae77Skettenis * printcmd.c (print_formatted): Flush output before disassembly. 1339*b725ae77Skettenis 1340*b725ae77SkettenisTue Oct 15 20:12:32 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 1341*b725ae77Skettenis 1342*b725ae77Skettenis * doc/refcard.tex (sec "Working Files"): consistent metavars and 1343*b725ae77Skettenis other improvements, due to comments by Fran�ois Pinard 1344*b725ae77Skettenis (pinard@iro.umontreal.ca) 1345*b725ae77Skettenis 1346*b725ae77Skettenis * doc/gdb.texinfo (appendix "Installing GDB"): changes in 1347*b725ae77Skettenis configure, and improvenets related to Pinard's refcard comments 1348*b725ae77Skettenis 1349*b725ae77SkettenisTue Oct 15 08:45:12 1991 John Gilmore (gnu at cygnus.com) 1350*b725ae77Skettenis 1351*b725ae77Skettenis Changes from Fred Fish: 1352*b725ae77Skettenis * tm-68k.h (FPI_REGNUM): Add. 1353*b725ae77Skettenis * infrun.c (child_create_inferior): flush stdout and stderr 1354*b725ae77Skettenis before forking. 1355*b725ae77Skettenis * configure.in: Handle amigados, amix hosts and targets. 1356*b725ae77Skettenis * inflow.c: Handle TIOCGLTC_BROKEN for Amiga. 1357*b725ae77Skettenis 1358*b725ae77Skettenis From Andreas Schwab: 1359*b725ae77Skettenis * values.c (show_convenience): Use printf_filtered. 1360*b725ae77Skettenis * main.c (define_command): Check result of lookup_command for 1361*b725ae77Skettenis exact match. 1362*b725ae77Skettenis (echo_command): Use printf_filtered, and force output out. 1363*b725ae77Skettenis 1364*b725ae77Skettenis * dbxread.c (read_enum_type): Avoid Modula-2 kludge that breaks C 1365*b725ae77Skettenis programs. 1366*b725ae77Skettenis * i387-tdep.c (double_to_i387): Fix typo for double_to_ieee_extended. 1367*b725ae77Skettenis * utils.c (_initialize_utils): If !ISATTY, don't paginate. 1368*b725ae77Skettenis * configure.in, tconfig/decstation, xconfig/decstation: Rename 1369*b725ae77Skettenis dec3100 to decstation. 1370*b725ae77Skettenis 1371*b725ae77SkettenisMon Oct 14 13:37:50 1991 Roland H. Pesch (pesch at cygnus.com) 1372*b725ae77Skettenis 1373*b725ae77Skettenis * doc/gdb.texinfo: Catch up to changes recorded here in ChangeLog 1374*b725ae77Skettenis (nodes Continuing and Stepping; Memory; Targets) clarifications 1375*b725ae77Skettenis due to Larry Breed 1376*b725ae77Skettenis 1377*b725ae77SkettenisFri Oct 11 23:27:06 1991 John Gilmore (gnu at cygnus.com) 1378*b725ae77Skettenis 1379*b725ae77Skettenis * tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move 1380*b725ae77Skettenis REGISTER_U_ADDR to corresponding xm- file. Sugg. by Peter Schauer. 1381*b725ae77Skettenis 1382*b725ae77Skettenis * symmisc.c (print_partial_symtabs): Add printpsyms debug cmd. 1383*b725ae77Skettenis 1384*b725ae77Skettenis * m68k-tdep.c (m68k_push_dummy_frame, m68k_pop_frame): Add 1385*b725ae77Skettenis generic routines for calling inferior functions. 1386*b725ae77Skettenis 1387*b725ae77Skettenis * blockframe.c (inside_main_scope, inside_entry_scope): New. 1388*b725ae77Skettenis 1389*b725ae77Skettenis * copying.awk: Filter formfeeds out of copying & warrantee. 1390*b725ae77Skettenis Make them available as `show copying' and `show warrantee' also. 1391*b725ae77Skettenis * main.c (print_gnu_advertisement): Advt `show' commands. 1392*b725ae77Skettenis 1393*b725ae77SkettenisThu Oct 10 17:25:47 1991 John Gilmore (gnu at cygnus.com) 1394*b725ae77Skettenis 1395*b725ae77Skettenis * mach386-xdep.c: Even when cross-compiling, leave in the 1396*b725ae77Skettenis core-file reading code. 1397*b725ae77Skettenis * core.c (get_core_registers): Avoid coredump if no .reg section. 1398*b725ae77Skettenis 1399*b725ae77SkettenisWed Oct 9 17:03:34 1991 John Gilmore (gnu at cygnus.com) 1400*b725ae77Skettenis 1401*b725ae77Skettenis * mipsread.c, coffread.c: initialise TYPE_VPTR_FIELDNO to -1. 1402*b725ae77Skettenis This avoids coredumps under `set print object on' in value_headof 1403*b725ae77Skettenis (called erroneously by value_from_vtable_info) for `p &struct' 1404*b725ae77Skettenis or `p *struct'. From Peter Schauer. 1405*b725ae77Skettenis 1406*b725ae77SkettenisMon Oct 7 00:06:52 1991 John Gilmore (gnu at cygnus.com) 1407*b725ae77Skettenis 1408*b725ae77Skettenis * Makefile.in: Roll version to 4.1.2. 1409*b725ae77Skettenis * dbxread.c: Use aout64.h, not a.out.gnu.h. Get external symbol entry 1410*b725ae77Skettenis size from BFD (but, FIXME, we don't yet read external nlists's and 1411*b725ae77Skettenis convert them to internal nlists's before handling them -- we still 1412*b725ae77Skettenis assume they have the same size and alignment.) Use SET_NAMESTRING 1413*b725ae77Skettenis everywhere useful. 1414*b725ae77Skettenis * exec.c (exec_file_command): Move dead coff-encapsulation code 1415*b725ae77Skettenis to BFD. 1416*b725ae77Skettenis * m88k-tdep.c, m88k-xdep.c: Remove encap test and #inc <a.out.h>. 1417*b725ae77Skettenis 1418*b725ae77SkettenisFri Oct 4 22:30:06 1991 John Gilmore (gnu at cygnus.com) 1419*b725ae77Skettenis 1420*b725ae77Skettenis * configure.in, tm-i386v.h, xm-i386v.h: Intel 386 Mach host port. 1421*b725ae77Skettenis * xm-i386mach.h, mach386-xdep.c, xconfig/i386mach: New files. 1422*b725ae77Skettenis 1423*b725ae77SkettenisFri Oct 4 17:04:31 1991 Per Bothner (bothner at cygnus.com) 1424*b725ae77Skettenis 1425*b725ae77Skettenis More patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>: 1426*b725ae77Skettenis * mips-xdep.c (store_inferior_registers): Don't try to 1427*b725ae77Skettenis write the (pseudo) FP. 1428*b725ae77Skettenis * mipsread.c (parse_partial_symbols): Improved algorithm for 1429*b725ae77Skettenis setting pst->texthigh. 1430*b725ae77Skettenis 1431*b725ae77SkettenisFri Oct 4 16:47:32 1991 Roland H. Pesch (pesch at cygnus.com) 1432*b725ae77Skettenis 1433*b725ae77Skettenis * doc/Makefile: make TEXINPUTS include . everywhere 1434*b725ae77Skettenis 1435*b725ae77SkettenisFri Oct 4 00:35:56 1991 John Gilmore (gnu at cygnus.com) 1436*b725ae77Skettenis 1437*b725ae77Skettenis * coffread.c, dbxread.c, symfile.c, symmisc.c, symtab.h: Remove 1438*b725ae77Skettenis vestiges of typevectors, which were for symsegs and are no longer 1439*b725ae77Skettenis used. (From a question by Eliot Dresselhaus 1440*b725ae77Skettenis <dresselh@RFT30.nas.nasa.gov>). 1441*b725ae77Skettenis 1442*b725ae77SkettenisThu Oct 3 09:33:26 1991 John Gilmore (gnu at cygnus.com) 1443*b725ae77Skettenis 1444*b725ae77Skettenis * dbxread.c, coffread.c: static-ize functions that were 1445*b725ae77Skettenis gratuitiously external. (From Fred Fish.) 1446*b725ae77Skettenis 1447*b725ae77Skettenis * c-exp.y: sym->class to SYMBOL_CLASS (sym). 1448*b725ae77Skettenis 1449*b725ae77Skettenis * dbxread.c (dbx_lookup_type): Keep doubling size of typevector 1450*b725ae77Skettenis until it is large enough. 1451*b725ae77Skettenis 1452*b725ae77Skettenis * dbxread.c (read_type): Handle error case slightly better. 1453*b725ae77Skettenis Make complaint message not C++-specific. 1454*b725ae77Skettenis 1455*b725ae77SkettenisWed Oct 2 17:21:07 1991 Stu Grossman (grossman at cygnus.com) 1456*b725ae77Skettenis 1457*b725ae77Skettenis * infrun.c (wait_for_inferior): Fix step/next so that you only 1458*b725ae77Skettenis stop at the beginning of a new line. This fixes various problems 1459*b725ae77Skettenis with for loops, nested if-else's and switch statements. 1460*b725ae77Skettenis 1461*b725ae77SkettenisTue Oct 1 06:33:55 1991 John Gilmore (gnu at cygnus.com) 1462*b725ae77Skettenis 1463*b725ae77Skettenis * symtab.c (lookup_symtab_1, lookup_symbol): "fatal" errors 1464*b725ae77Skettenis between symtabs and psymtabs become ordinary error()s. 1465*b725ae77Skettenis 1466*b725ae77Skettenis * dbxread.c (read_dbx_symtab): Relocate end_of_text_addr 1467*b725ae77Skettenis properly, making "end pc" correct in shared lib psymtabs. 1468*b725ae77Skettenis (From Guy Harris <guy@auspex.com>.) 1469*b725ae77Skettenis 1470*b725ae77SkettenisMon Sep 30 13:15:31 1991 John Gilmore (gnu at cygnus.com) 1471*b725ae77Skettenis 1472*b725ae77Skettenis * dbxread.c: Enable, but soften, const_vol_complaint. 1473*b725ae77Skettenis (read_dbx_symtab): N_STSYM and N_LCSYM define static vars. 1474*b725ae77Skettenis Ditto Gould N_NBSTS and N_NBLCS. Also, all types in the psymtab 1475*b725ae77Skettenis should be file-scope, not global. 1476*b725ae77Skettenis (read_struct_type): Remove ancient multiple-inheritance warning. 1477*b725ae77Skettenis (read_range_type): Check base type, complain & patch if undefined. 1478*b725ae77Skettenis * stack.c (frame_info): Demangle the function name in `info stack'. 1479*b725ae77Skettenis (From Peter Schauer) 1480*b725ae77Skettenis 1481*b725ae77SkettenisSat Sep 28 10:02:33 1991 John Gilmore (gnu at cygnus.com) 1482*b725ae77Skettenis 1483*b725ae77Skettenis * eval.c (evaluate_subexp_for_address): Don't use 1484*b725ae77Skettenis TYPE_POINTER_TYPE directly (it might be zero if this type has 1485*b725ae77Skettenis never had a pointer created before); use lookup_pointer_type. 1486*b725ae77Skettenis * symtab.c (lookup_method_type): Arguments were swapped in all 1487*b725ae77Skettenis callers, so fix it here. I'm amazed this worked at all! 1488*b725ae77Skettenis 1489*b725ae77SkettenisFri Sep 27 18:09:31 1991 John Gilmore (gnu at cygnus.com) 1490*b725ae77Skettenis 1491*b725ae77Skettenis * c-exp.y, m2-exp.y: Define more yysymbols that happen to be 1492*b725ae77Skettenis "bss" rather than "data" symbols, but which still conflict. 1493*b725ae77Skettenis * m2-exp.y: Lint. 1494*b725ae77Skettenis 1495*b725ae77Skettenis * coffread.c (coff_symfile_read): Use xmalloc, not malloc. 1496*b725ae77Skettenis * core.c (core_files_info): Shorten output. 1497*b725ae77Skettenis * exec.c (exec_files_info): Ditto. 1498*b725ae77Skettenis (build_section_table): Ignore zero-length sections. 1499*b725ae77Skettenis * language.c, printcmd.c: Lint. 1500*b725ae77Skettenis * language.h (get_frame_language): Declare. 1501*b725ae77Skettenis * saber.suppress: update. 1502*b725ae77Skettenis * stack.c (find_relative_frame): Remove complex code that was 1503*b725ae77Skettenis #if 0'd, stick with simple code. Lint. 1504*b725ae77Skettenis * saber.suppress: Update a bit. 1505*b725ae77Skettenis * symfile.c (add_symbol_file_command): Add "?" to question. 1506*b725ae77Skettenis * utils.c (parse_escape): Avoid \a due to bdead compilers. 1507*b725ae77Skettenis * value.h: Declare typedef_print. 1508*b725ae77Skettenis 1509*b725ae77Skettenis * valprint.c (val_print, type_print_base): TYPE_CODE_RANGE less 1510*b725ae77Skettenis kludgey. 1511*b725ae77Skettenis 1512*b725ae77Skettenis * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func. 1513*b725ae77Skettenis (Reported by Mark Peek <mark@imagen.com>.) 1514*b725ae77Skettenis 1515*b725ae77Skettenis * solib.c (solib_map_sections): Relocate all sections, even 1516*b725ae77Skettenis though only the text section's size is tracked. Mark ld_text 1517*b725ae77Skettenis for eventual elimination as we generalize to N sections. 1518*b725ae77Skettenis 1519*b725ae77Skettenis * infrun.c (wait_for_inferior): Don't check if the PC is in a 1520*b725ae77Skettenis call_dummy if we were stopped by a random signal that is being 1521*b725ae77Skettenis passed to the program. This produced wierd results when calling 1522*b725ae77Skettenis functions in the inferior and signals (e.g. SIGALRM) were in use. 1523*b725ae77Skettenis 1524*b725ae77SkettenisTue Sep 24 18:05:30 1991 John Gilmore (gnu at cygnus.com) 1525*b725ae77Skettenis 1526*b725ae77Skettenis * infrun.c (IN_SIGTRAMP): Not parenthesized properly. 1527*b725ae77Skettenis Bugfix from Paul Eggert <eggert@twinsun.com>. 1528*b725ae77Skettenis * tm-ultra3.h (IN_SIGTRAMP): Ditto. 1529*b725ae77Skettenis * valprint.c (print_floating): Print 9 digits for IEEE floats. 1530*b725ae77Skettenis From Paul Eggert. 1531*b725ae77Skettenis 1532*b725ae77SkettenisMon Sep 23 15:50:07 1991 John Gilmore (gnu at cygnus.com) 1533*b725ae77Skettenis 1534*b725ae77Skettenis * Makefile.in: Roll VERSION to 4.1.1. 1535*b725ae77Skettenis * source.c (line_info): Peter Schauer fixes a bug I introduced in 1536*b725ae77Skettenis hex conversion. 1537*b725ae77Skettenis 1538*b725ae77SkettenisFri Sep 20 16:10:52 1991 John Gilmore (gnu at cygnus.com) 1539*b725ae77Skettenis 1540*b725ae77Skettenis GDB-4.1 release! 1541*b725ae77Skettenis 1542*b725ae77Skettenis * Makefile.in (VERSION): Set to 4.1. 1543*b725ae77Skettenis * language.c (set_language_command): Print useful help message, 1544*b725ae77Skettenis and restore the language string after giving help. 1545*b725ae77Skettenis * valprint.c (typedef_print): Print typedef in C or M2. 1546*b725ae77Skettenis * symtab.c (list_symbols): Use it. 1547*b725ae77Skettenis * main.c (main): Avoid any output before (gdb) prompt when -q. 1548*b725ae77Skettenis * language.c (set_language_command): Handle errors by restoring 1549*b725ae77Skettenis the language string to its current state (fix from A. Beers). 1550*b725ae77Skettenis * doc/gdbint.texinfo: Roll in information from README. Rearrange 1551*b725ae77Skettenis "how to install" and "how to print the doc" stuff so it drops 1552*b725ae77Skettenis easier into README. 1553*b725ae77Skettenis * configure.in: Rename rtpc CPU to romp to match config.sub. 1554*b725ae77Skettenis * README, WHATS.NEW, TODO: Update for gdb-4.1. 1555*b725ae77Skettenis 1556*b725ae77SkettenisFri Sep 20 17:39:14 1991 Roland H. Pesch (pesch at cygnus.com) 1557*b725ae77Skettenis 1558*b725ae77Skettenis * doc/gdb.texinfo: Updates from ChangeLog. set/show write, 1559*b725ae77Skettenis autoloading shared libs, copyright etc on GDB startup, clean up $_ 1560*b725ae77Skettenis and $__ index refs, set/show listsize and related updates to list 1561*b725ae77Skettenis cmd. New host/target configs. 1562*b725ae77Skettenis 1563*b725ae77SkettenisFri Sep 20 15:46:00 1991 Roland H. Pesch (pesch at cygnus.com) 1564*b725ae77Skettenis 1565*b725ae77Skettenis * doc/Makefile: generate aux version-no file doc/gdbVN.m4 1566*b725ae77Skettenis from main Makefile.in version definition 1567*b725ae77Skettenis doc/gdb.texinfo: use version recorded in doc/gdbVN.m4 for current 1568*b725ae77Skettenis GDB version no refs 1569*b725ae77Skettenis Makefile.in (setup-to-dist): generate doc/gdbVN.m4 1570*b725ae77Skettenis 1571*b725ae77Skettenis * doc/gdb.texinfo: merge new language-switching and lang-specific 1572*b725ae77Skettenis doc by Andrew Beers 1573*b725ae77Skettenis 1574*b725ae77SkettenisFri Sep 20 15:00:57 1991 Per Bothner (bothner at cygnus.com) 1575*b725ae77Skettenis 1576*b725ae77Skettenis * mcheck.c: Add __ONEFILE kludge to allow compilation by non-ANSI 1577*b725ae77Skettenis compilers (which may lack stddef.h). 1578*b725ae77Skettenis 1579*b725ae77SkettenisFri Sep 20 13:29:42 1991 John Gilmore (gnu at cygnus.com) 1580*b725ae77Skettenis 1581*b725ae77Skettenis * dbxread.c (read_dbx_symtab, process_one_symbol): N_FN and 1582*b725ae77Skettenis N_WARNING are the same except for the N_EXT bit, so just use their 1583*b725ae77Skettenis values alone, rather than OR-ing them with N_EXT. 1584*b725ae77Skettenis 1585*b725ae77SkettenisFri Sep 20 12:27:55 1991 Stu Grossman (grossman at cygnus.com) 1586*b725ae77Skettenis 1587*b725ae77Skettenis * mipsread.c (parse_lines): Deal with negative extended line 1588*b725ae77Skettenis offsets correctly. 1589*b725ae77Skettenis 1590*b725ae77Skettenis * c-exp.y, m2-exp.y: #define yyerrflag and yynerrs to avoid 1591*b725ae77Skettenis global symbol conflicts. 1592*b725ae77Skettenis 1593*b725ae77SkettenisFri Sep 20 02:28:15 1991 John Gilmore (gnu at cygnus.com) 1594*b725ae77Skettenis 1595*b725ae77Skettenis * .gdbinit: Move 'set complaints' to top, so it runs even in 1596*b725ae77Skettenis case we aren't debugging GDB. 1597*b725ae77Skettenis * language.c (_initialize_language): Fix type check and range 1598*b725ae77Skettenis check documentation strings. 1599*b725ae77Skettenis * utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so 1600*b725ae77Skettenis language.c can use it. (Though language.c should really not be 1601*b725ae77Skettenis handling warnings/errors the way it does, FIXME.) 1602*b725ae77Skettenis * symtab.c (lookup_primitive_type): const lint. 1603*b725ae77Skettenis 1604*b725ae77Skettenis Bugfix from Peter Schauer: 1605*b725ae77Skettenis * source.c (lines_to_list): Make signed, to avoid comparison 1606*b725ae77Skettenis going unsigned and complaining that -3 is too high for 21 lines. 1607*b725ae77Skettenis * stack.c (lines_to_list): Ditto. 1608*b725ae77Skettenis 1609*b725ae77SkettenisThu Sep 19 23:33:41 1991 John Gilmore (gnu at cygnus.com) 1610*b725ae77Skettenis 1611*b725ae77Skettenis * Makefile.in (HFILES): Add minimon.h. 1612*b725ae77Skettenis (VERSION): Roll version number to 4.0.95. 1613*b725ae77Skettenis (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist, gdb-XXX.tar.Z): 1614*b725ae77Skettenis New rules for building distributions. Normal distribution 1615*b725ae77Skettenis is built by doing `make -f Makefile.in gdb.tar.Z' in the directory 1616*b725ae77Skettenis one level up from here; it calls make-proto-gdb.dir to build a 1617*b725ae77Skettenis directory `proto-gdb' which is an image of the release. The old 1618*b725ae77Skettenis `gdb.tar.Z' rule still works too. 1619*b725ae77Skettenis * config.sub, configure: Roll in latest from .. 1620*b725ae77Skettenis 1621*b725ae77SkettenisThu Sep 19 17:41:24 1991 Roland H. Pesch (pesch at cygnus.com) 1622*b725ae77Skettenis 1623*b725ae77Skettenis * doc/gdbint.texinfo: Reorder contents; reorganize new-host, 1624*b725ae77Skettenis new-target, and new-config chapters; fix minor typos; come closer 1625*b725ae77Skettenis to usual GNU markup conventions for @file @samp @code @var. 1626*b725ae77Skettenis 1627*b725ae77SkettenisThu Sep 19 17:04:12 1991 Per Bothner (bothner at cygnus.com) 1628*b725ae77Skettenis 1629*b725ae77Skettenis Patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>: 1630*b725ae77Skettenis * mipsread.c (parse_partial_symbols): Enter the name of all 1631*b725ae77Skettenis structs/unions... into the psymtab so we can access them if the 1632*b725ae77Skettenis symtab is not read in. 1633*b725ae77Skettenis * mips-tdep.c: Remove some unneeded #includes. 1634*b725ae77Skettenis * xconfig/dec3100: Add HAVE_STRSTR. 1635*b725ae77Skettenis 1636*b725ae77SkettenisThu Sep 19 15:14:23 1991 John Gilmore (gnu at cygnus.com) 1637*b725ae77Skettenis 1638*b725ae77Skettenis * Makefile.in: Circumvent Sun Make bug on *-exp.tab.o. 1639*b725ae77Skettenis * c-exp.y, m2-exp.y: Lint. 1640*b725ae77Skettenis * m2-exp.y: Avoid using yytname[] which is a Bison-ism. 1641*b725ae77Skettenis * valprint.c (val_print_fields): Check for stub type. 1642*b725ae77Skettenis * mipsread.c (_initialize_mipsread): Avoid using 1643*b725ae77Skettenis builtin_type_void at initialize time. 1644*b725ae77Skettenis (mipscoff_symfile_read): use it now. 1645*b725ae77Skettenis 1646*b725ae77SkettenisWed Sep 18 15:55:51 1991 John Gilmore (gnu at cygnus.com) 1647*b725ae77Skettenis 1648*b725ae77Skettenis Merge multiple-language support, and partial Modula-2 support, 1649*b725ae77Skettenis from Andrew Beers <beers@cs.buffalo.edu>. 1650*b725ae77Skettenis 1651*b725ae77Skettenis * i387-tdep.c: New file, consolidates most 80387 support, 1652*b725ae77Skettenis and eliminates host dependency on double<->extended conversions. 1653*b725ae77Skettenis * i386-xdep.c, symm-xdep.c: Remove most 387 support. 1654*b725ae77Skettenis * xconfig/i386{sco,v,v-g,v32,v32-g}: Now need i387-tdep.o. 1655*b725ae77Skettenis 1656*b725ae77Skettenis * symfile.c (allocate_symtab): New fn, consolidates the work 1657*b725ae77Skettenis of allocating and initializing a new struct symtab. Set the 1658*b725ae77Skettenis language of the symtab based on its filename extension. 1659*b725ae77Skettenis * symfile.h: Declare it. 1660*b725ae77Skettenis * mipsread.c (new_symtab): Use it. Minor formatting changes. 1661*b725ae77Skettenis * dbxread.c (end_symtab): Use it. 1662*b725ae77Skettenis 1663*b725ae77Skettenis * mipsread.c (parse_symbol, case stParam and stProc): Add #if 0'd 1664*b725ae77Skettenis code for saving types of parameters with each function definition. 1665*b725ae77Skettenis * dbxread.c (define_symbol, function and parameter cases): Ditto. 1666*b725ae77Skettenis (read_dbx_symtab, case N_DEFD): Ignore. 1667*b725ae77Skettenis (read_enum_type): Recognize FALSE/TRUE enum as Modula-2 BOOLEAN. 1668*b725ae77Skettenis (read_range_type): Rename MAX_OF_TYPE to MAX_OF_C_TYPE, etc. 1669*b725ae77Skettenis #if 0 out its uses, though, since they set a dead value. 1670*b725ae77Skettenis * coffread.c (end_symtab): Use allocate_symtab. 1671*b725ae77Skettenis (process_coff_symbol): #if 0'd for functions and params as above. 1672*b725ae77Skettenis (read_enum_type): Recognize Modula-2 BOOLEAN. 1673*b725ae77Skettenis * symtab.c (add_param_to_type): #if 0'd function to add a 1674*b725ae77Skettenis parameter type to a function type's field list. 1675*b725ae77Skettenis 1676*b725ae77Skettenis * defs.h (local_hex_format, local_hex_string, *_custom): Add. 1677*b725ae77Skettenis * i386-xdep.c, pyr-tdep.c, pyr-xdep.c, remote-vx.c, solib.c, 1678*b725ae77Skettenis source.c, symfile.c, dbxread.c, breakpoint.c, core.c, exec.c, 1679*b725ae77Skettenis i387-tdep.c, infcmd.c, mips-tdep.c, stack.c, printcmd.c: Output 1680*b725ae77Skettenis hex with local_hex_string for Modula-2 support. 1681*b725ae77Skettenis 1682*b725ae77Skettenis * breakpoint.c (breakpoint_cond_eval): Use new value_true to test 1683*b725ae77Skettenis breakpoint condition language-independently. 1684*b725ae77Skettenis 1685*b725ae77Skettenis * parse.c: New file with the common code remains of expread.y. 1686*b725ae77Skettenis * parser-defs.h: New file with common declarations from expread.y. 1687*b725ae77Skettenis * c-exp.y: New file with the C parser from expread.y, and other 1688*b725ae77Skettenis language-specific information. 1689*b725ae77Skettenis * m2-exp.y: New file with the Modula-2 parser and etc. 1690*b725ae77Skettenis * expread.y, expread.tab.c: Remove. 1691*b725ae77Skettenis * breakpoint.c, eval.c, printcmd.c, expression.h: Use 1692*b725ae77Skettenis parse_expression and parse_exp_1 rather than parse_c_expression 1693*b725ae77Skettenis and parse_c_1. 1694*b725ae77Skettenis 1695*b725ae77Skettenis * symtab.h (enum languages): Move to defs.h. 1696*b725ae77Skettenis (enum type_code): Add TYPE_CODE_CHAR and TYPE_CODE_BOOL. 1697*b725ae77Skettenis Declare Modula-2 builtin types. 1698*b725ae77Skettenis Add MAX_OF_TYPE and MIN_OF_TYPE macros. 1699*b725ae77Skettenis 1700*b725ae77Skettenis * symtab.c (_initialize_symtab): Remove builtin type 1701*b725ae77Skettenis definition and initialization to *-exp.y. 1702*b725ae77Skettenis (lookup_primitive_typename): Use language-dependent vector. 1703*b725ae77Skettenis (lookup_typename): Fix bug, make it work if primitive typename. 1704*b725ae77Skettenis (lookup_unsigned_typename): Call above. 1705*b725ae77Skettenis (create_array_type): Set up range type for array index. 1706*b725ae77Skettenis (list_symbols): Call typedef_print to print typedefs. 1707*b725ae77Skettenis 1708*b725ae77Skettenis * values.c (unpack_long, value_from_longest): Handle 1709*b725ae77Skettenis TYPE_CODE_BOOL and TYPE_CODE_CHAR. 1710*b725ae77Skettenis 1711*b725ae77Skettenis * expression.h (enum exp_opcode): Add Modula-2 specific opcodes. 1712*b725ae77Skettenis * expprint.c: Look up expression opcodes in language-specific 1713*b725ae77Skettenis table, based on expression's language. Handle some Modula-2 1714*b725ae77Skettenis specific opcodes. 1715*b725ae77Skettenis 1716*b725ae77Skettenis * stack.c (frame_info): Print language of stack frame. 1717*b725ae77Skettenis (select_frame): Also select language, if in auto-mode. 1718*b725ae77Skettenis (get_frame_language): New subroutine. 1719*b725ae77Skettenis * main.c (execute_command): Warn as language changes automatically. 1720*b725ae77Skettenis 1721*b725ae77Skettenis * printcmd.c (ptype_command): Parse types using the language 1722*b725ae77Skettenis parser, both for language-independence, and so that scopes can 1723*b725ae77Skettenis be specified. 1724*b725ae77Skettenis 1725*b725ae77Skettenis * language.h, language.c: New files for language-specific macros, 1726*b725ae77Skettenis declarations, and definitions. 1727*b725ae77Skettenis 1728*b725ae77Skettenis Misc fixes: 1729*b725ae77Skettenis 1730*b725ae77Skettenis * main.c (main): If error() is called during early 1731*b725ae77Skettenis initialization, print its message and then exit(1) from GDB. 1732*b725ae77Skettenis 1733*b725ae77Skettenis * valprint.c (type_print_base): Avoid printing garbage for ints 1734*b725ae77Skettenis of unusual sizes. 1735*b725ae77Skettenis (_initialize_valprint): Warn about host/target size assumption; 1736*b725ae77Skettenis improve long long support slightly. 1737*b725ae77Skettenis 1738*b725ae77Skettenis * convex-tdep.c (comm_registers_info): Avoid parsing decimal and 1739*b725ae77Skettenis hex -- let parse_and_eval_address do it. 1740*b725ae77Skettenis 1741*b725ae77Skettenis * doc/gdbint.texinfo (Languages): Doc how to add a language. 1742*b725ae77Skettenis 1743*b725ae77Skettenis * Makefile.in: Cope with new files and removed files. 1744*b725ae77Skettenis 1745*b725ae77SkettenisTue Sep 17 08:37:41 1991 John Gilmore (gnu at cygint.cygnus.com) 1746*b725ae77Skettenis 1747*b725ae77Skettenis Add Andrew Beers' changes for Modula-2 support. His ChangeLog 1748*b725ae77Skettenis entries are enclosed herein. Not all of these changes 1749*b725ae77Skettenis have been merged into the master GDB sources -- check the 1750*b725ae77Skettenis ChangeLog above here for the merge log. 1751*b725ae77Skettenis 1752*b725ae77SkettenisMon Jun 3 17:05:45 EDT 1991 1753*b725ae77Skettenis 1754*b725ae77Skettenis m2-exp.y Created. Tested outside of GDB for a few days. Proper 1755*b725ae77Skettenis operators were added, C specific operators and tokens 1756*b725ae77Skettenis removed. yylex() revamped to some extent. Still things 1757*b725ae77Skettenis missing from the grammar, such as sets. 1758*b725ae77Skettenis Tested for two weeks in GDB v3.5. 1759*b725ae77Skettenis 1760*b725ae77SkettenisTue Jun 11 17:23:48 EDT 1991 1761*b725ae77Skettenis 1762*b725ae77Skettenis m2-exp.y Added boolean constants TRUE and FALSE to the grammar 1763*b725ae77Skettenis so they are built-in. Sort of a hack. 1764*b725ae77Skettenis 1765*b725ae77SkettenisFri Jun 14 12:53:51 EDT 1991 1766*b725ae77Skettenis 1767*b725ae77Skettenis m2-exp.y Added range checking for numeric constants. Any numeric 1768*b725ae77Skettenis constant is assumed to be of builtin type INTEGER unless: 1769*b725ae77Skettenis (1) it is octal or hexadecimal, in which case it is a 1770*b725ae77Skettenis CARDINAL; (2) it is too big to fit into an INTEGER, in 1771*b725ae77Skettenis which case it is a CARDINAL. 1772*b725ae77Skettenis eval.c Added simple range checking for +, -, and * on integers. 1773*b725ae77Skettenis Doesn't work very well for *, since 6 * 1,000,000,000 = 1774*b725ae77Skettenis 1,705,032,704, which fails the simple test of result >= 1775*b725ae77Skettenis first_operand, no matter in what order the operands are. 1776*b725ae77Skettenis 1777*b725ae77SkettenisTue Jun 18 14:11:30 EDT 1991 1778*b725ae77Skettenis 1779*b725ae77Skettenis Broke the parser into parts, one containing the C grammar and the other 1780*b725ae77Skettenis containing code to be shared by all of the grammars. 1781*b725ae77Skettenis 1782*b725ae77Skettenis The following files no longer exist: 1783*b725ae77Skettenis 1784*b725ae77Skettenis expread.y 1785*b725ae77Skettenis expread.tab.c 1786*b725ae77Skettenis 1787*b725ae77Skettenis The following files were added: 1788*b725ae77Skettenis 1789*b725ae77Skettenis c-exp.y (The C grammar) 1790*b725ae77Skettenis m2-exp.y (The Modula-2 grammar) 1791*b725ae77Skettenis parser-code.c (Code that is shared by the above grammar) 1792*b725ae77Skettenis parser-code.h 1793*b725ae77Skettenis parser-defs.h 1794*b725ae77Skettenis 1795*b725ae77Skettenis Makefile.dist Changed to reflect the above dependencies. NOTE: It is 1796*b725ae77Skettenis now necessary to use the Bison compiler compiler, since it 1797*b725ae77Skettenis will generate function/variable prefixes other than yy. 1798*b725ae77Skettenis 1799*b725ae77SkettenisTue Jun 18 16:47:49 EDT 1991 1800*b725ae77Skettenis 1801*b725ae77Skettenis symtab.[ch] Added the external variable working_lang, than holds the 1802*b725ae77Skettenis value of the current working language. 1803*b725ae77Skettenis Added the ennumerated type language_mode, with the values 1804*b725ae77Skettenis language_auto and language_manual, the former meaning that 1805*b725ae77Skettenis GDB sets working_lang as needed, and the latter meaning 1806*b725ae77Skettenis that the value of working_lang is totally under user 1807*b725ae77Skettenis control. 1808*b725ae77Skettenis symtab.[ch] Added the Modula-2 pervasive types INTEGER, CARDINAL, 1809*b725ae77Skettenis REAL, BOOLEAN and CHAR. Also added the type codes 1810*b725ae77Skettenis TYPE_CODE_BOOL and TYPE_CODE_CHAR. 1811*b725ae77Skettenis utils.c Added set_language_command and show_language_command to 1812*b725ae77Skettenis implement the GDB support commands "set language" and 1813*b725ae77Skettenis "show language". 1814*b725ae77Skettenis expression.h A number of identifiers were added to the type exp_opcode 1815*b725ae77Skettenis to facilitate Modula-2 builtin functions, integer 1816*b725ae77Skettenis division, and array indexing. 1817*b725ae77Skettenis 1818*b725ae77SkettenisWed Jun 19 13:25:58 EDT 1991 1819*b725ae77Skettenis 1820*b725ae77Skettenis language.h Added the macro STRICT_TYPE, which evaluates to non-zero 1821*b725ae77Skettenis if the language specified by working_lang requires the use 1822*b725ae77Skettenis of strict typing of expressions. Eventually, even this 1823*b725ae77Skettenis will be able to be changed by the user. 1824*b725ae77Skettenis Added the macro RANGE_CHECK, which evaluates to non-zero 1825*b725ae77Skettenis if the language specified by working_lang requires the 1826*b725ae77Skettenis checking of a value against the domain of its type. 1827*b725ae77Skettenis Eventually, even this will be able to be changed by the 1828*b725ae77Skettenis user. 1829*b725ae77Skettenis language.[ch] Predicates involving types (simple_type, ordered_type, 1830*b725ae77Skettenis same_type, integral_type, numeric_type, character_type, 1831*b725ae77Skettenis boolean_type, float_type) are added. These predicates are 1832*b725ae77Skettenis based on the current value of working_lang, and are handy 1833*b725ae77Skettenis in type-checking. 1834*b725ae77Skettenis 1835*b725ae77SkettenisWed Jun 19 15:39:34 EDT 1991 1836*b725ae77Skettenis 1837*b725ae77Skettenis eval.c Added the function type_array_rank which computes the rank 1838*b725ae77Skettenis of an array type. 1839*b725ae77Skettenis valarith.c Added the funtion value_bool, which when given a integer 1840*b725ae77Skettenis value.h value (ie. struct value *) as an argument, it returns a 1841*b725ae77Skettenis boolean value (ie. struct value *) true if that integer 1842*b725ae77Skettenis is non-zero, and a boolean value false otherwise. 1843*b725ae77Skettenis valprint.c Added cases for TYPE_CODE_BOOL, so Modula-2 BOOLEAN values 1844*b725ae77Skettenis will print out properly. 1845*b725ae77Skettenis 1846*b725ae77SkettenisWed Jun 19 16:36:34 EDT 1991 1847*b725ae77Skettenis 1848*b725ae77Skettenis valops.c Added the function value_capitalize, which returns it 1849*b725ae77Skettenis value.h argument capitalized if its argument is a lowercase 1850*b725ae77Skettenis letter, or the argument unchanged if its argument is not a 1851*b725ae77Skettenis letter. 1852*b725ae77Skettenis valarith.c Added the function range_check_p, which returns non-zero 1853*b725ae77Skettenis value.h if its value argument is between the integral bounds upper 1854*b725ae77Skettenis and lower. 1855*b725ae77Skettenis Added the function range_check_enum_p, which makes sure 1856*b725ae77Skettenis that its value argument is a valid member of the domain of 1857*b725ae77Skettenis its type argument. 1858*b725ae77Skettenis Added the function range_check_range_p, which makes sure 1859*b725ae77Skettenis its value argument lies between the upper and lower bounds 1860*b725ae77Skettenis of its type argument, which must be a ranged type. 1861*b725ae77Skettenis Added the function check_array_index, which range and type 1862*b725ae77Skettenis checks an index of an array. 1863*b725ae77Skettenis Added the function value_multi_subscript, which computes 1864*b725ae77Skettenis array[idx1,idx2...idxN], given a value array and an array 1865*b725ae77Skettenis of values representing indicies. 1866*b725ae77Skettenis values.c Changed value_from_long to work with TYPE_CODE_CHAR and 1867*b725ae77Skettenis unpack_long to work with TYPE_CODE_BOOL and 1868*b725ae77Skettenis TYPE_CODE_CHAR. 1869*b725ae77Skettenis 1870*b725ae77SkettenisWed Jun 19 18:04:08 EDT 1991 1871*b725ae77Skettenis 1872*b725ae77Skettenis symtab.c Stored pervasive types in a structure and make 1873*b725ae77Skettenis lookup_pervasive_type() a lookup function that was based 1874*b725ae77Skettenis on working_lang. If lookup_pervasive_type() returned 1875*b725ae77Skettenis non-zero, then that value was returned (a fix, since 1876*b725ae77Skettenis before it simply wouldn't return the pervasive type.) 1877*b725ae77Skettenis language.h Added the macro CAST_IS_CONVERSION, which evaluates to 1878*b725ae77Skettenis non-zero if the language specified by working_lang means 1879*b725ae77Skettenis "conversion" when it says "cast". 1880*b725ae77Skettenis valops.c Added the function value_real_cast(), which performs a 1881*b725ae77Skettenis value.h *cast*, not a *conversion*, which is what value_cast() 1882*b725ae77Skettenis does when it can. In particular, 1883*b725ae77Skettenis value_cast(<float_type>,4) = 4.0, while 1884*b725ae77Skettenis value_real_cast(<float_type>,4) = some mess. 1885*b725ae77Skettenis eval.c Modula-2 builtin functions implemented: ABS, CAP, CHR, 1886*b725ae77Skettenis parser-code.c FLOAT, HIGH, MAX, MIN, ODD, ORD, TRUNC, and VAL. 1887*b725ae77Skettenis expression.h Added macros MAX_OF_TYPE and MIN_OF_TYPE to work with MAX 1888*b725ae77Skettenis and MIN on integral types. *NOTE*: These are currently 1889*b725ae77Skettenis hardcoded to work only if there are 8 bits per storage 1890*b725ae77Skettenis unit. FIXME. 1891*b725ae77Skettenis eval.c Made logical functions call value_bool to return a 1892*b725ae77Skettenis properly typed boolean value, based on working_lang. 1893*b725ae77Skettenis 1894*b725ae77SkettenisThu Jun 20 11:55:27 EDT 1991 1895*b725ae77Skettenis 1896*b725ae77Skettenis valprint.c Types now print out in a Modula-2 fashion. This works for 1897*b725ae77Skettenis the cases when the type is printed out step-by-step, that 1898*b725ae77Skettenis is, it doesn't work when the name of a structured type 1899*b725ae77Skettenis (which includes the keyword "struct", etc.) is simply 1900*b725ae77Skettenis displayed. 1901*b725ae77Skettenis FIXME: Perhaps this is bad. Parts of it seem to kludgey, 1902*b725ae77Skettenis since type specifications in C and Modula-2 are very 1903*b725ae77Skettenis different. The C printing of a type is very recursive, 1904*b725ae77Skettenis whereas in Modula-2 it is generally very simple. C has 1905*b725ae77Skettenis type prefixes and suffixes, which have no real analogue in 1906*b725ae77Skettenis Modula-2. Maybe type_print() should call a language 1907*b725ae77Skettenis specific type printer. This is also advantageous if we 1908*b725ae77Skettenis compile GDB to exclude some of the languages. We'll just 1909*b725ae77Skettenis leave those functions out. 1910*b725ae77Skettenis 1911*b725ae77SkettenisThu Jun 20 16:57:10 EDT 1991 1912*b725ae77Skettenis 1913*b725ae77Skettenis dbxread.c When reading the complete symbol table in (via 1914*b725ae77Skettenis psymtab_to_symtab()), the number and types of function 1915*b725ae77Skettenis arguments are added to a function type. define_symbol() 1916*b725ae77Skettenis calls add_param_to_type() to accomplish this. 1917*b725ae77Skettenis Assumption: when we come across a function definition 1918*b725ae77Skettenis (N_FUN symbol with an 'f' or 'F' in the name), its 1919*b725ae77Skettenis arguments will appear before another function definition. 1920*b725ae77Skettenis When a function is found, a pointer to its type is placed 1921*b725ae77Skettenis in the global in_function_type. Changes that 1922*b725ae77Skettenis add_param_to_type() makes are to this global. 1923*b725ae77Skettenis valprint.c The type of a function now includes (for Modula-2) the 1924*b725ae77Skettenis types of its parameters. 1925*b725ae77Skettenis eval.c Type checking and a check for the proper number of 1926*b725ae77Skettenis arguments is now done for function calls. Not sure of the 1927*b725ae77Skettenis impact this has on C++ member function yet. 1928*b725ae77Skettenis 1929*b725ae77SkettenisThu Jun 20 19:58:48 EDT 1991 1930*b725ae77Skettenis 1931*b725ae77Skettenis valprint.c Rewrote the type printer. Broke it into two language 1932*b725ae77Skettenis specific parts, adding the functions type_print_m2() and 1933*b725ae77Skettenis type_print_m2_1(). 1934*b725ae77Skettenis An unfortunate consequence is this: if you debugging a C 1935*b725ae77Skettenis program in Modula-2 mode (why?), info types does not work 1936*b725ae77Skettenis well with regular expressions, since the types are printed 1937*b725ae77Skettenis out in Modula-2 terminology, but stored in C terminology. 1938*b725ae77Skettenis language.[ch] Added the functions new_type_last(), type_keyword(), and 1939*b725ae77Skettenis type_sep() to aid in the printing of typedefs. 1940*b725ae77Skettenis symtab.c Made the printing of typedefs as language independent as 1941*b725ae77Skettenis possible through calls to new_type_last(), type_keyword(), 1942*b725ae77Skettenis and type_sep(). 1943*b725ae77Skettenis 1944*b725ae77SkettenisFri Jun 21 11:50:26 EDT 1991 1945*b725ae77Skettenis 1946*b725ae77Skettenis dbxread.c Check all incoming ennumerated types. If it looks like 1947*b725ae77Skettenis Modula-2's BOOLEAN type, then change the type_code of the 1948*b725ae77Skettenis type to TYPE_CODE_BOOL so we can process it as a boolean 1949*b725ae77Skettenis variable. 1950*b725ae77Skettenis valprint.c Replaced some of the 0x%x with calls to sprintf and 1951*b725ae77Skettenis hexformat() in val_print(). 1952*b725ae77Skettenis language.[ch] Added the function hex_to_string(), which converts its 1953*b725ae77Skettenis integral argument to a hexadecimal number (format is 1954*b725ae77Skettenis language based) and returns the result as a string. 1955*b725ae77Skettenis 1956*b725ae77SkettenisMon Jun 24 12:25:07 EDT 1991 1957*b725ae77Skettenis 1958*b725ae77Skettenis valprint.c Some functions call type_print_1() directly, instead of 1959*b725ae77Skettenis value.h using type_print(), so they can specify where (column) to 1960*b725ae77Skettenis print things. Since type_print() takes care of language 1961*b725ae77Skettenis dependence, that needs to be called first. Added a 1962*b725ae77Skettenis parameter depth to type_print() (so it is now like 1963*b725ae77Skettenis type_print_1). Changed type_print to type_print_at, and 1964*b725ae77Skettenis made type_print a macro that passes a depth argument of 1965*b725ae77Skettenis zero. 1966*b725ae77Skettenis symmisc.c Changed all calls to type_print_1 to calls to 1967*b725ae77Skettenis type_print_at. 1968*b725ae77Skettenis Makefile.dist Made it possible to build GDB for a specific set of 1969*b725ae77Skettenis depend languages. Do this by passing a definition for the macro 1970*b725ae77Skettenis LANGS to make. LANGS should be a string containing a 1971*b725ae77Skettenis space-separated list of language names (ie. LANGS="c m2"). 1972*b725ae77Skettenis The default is to build all languages. Note that grammar 1973*b725ae77Skettenis files must follow the naming convention of <lang>-exp.y. 1974*b725ae77Skettenis gdb.lang This holds the current value of the LANGS macro. It is 1975*b725ae77Skettenis examined every time make is called, and is updated if 1976*b725ae77Skettenis necessary. 1977*b725ae77Skettenis eval.c Added #ifdef _LANG_<lang> to these files. 1978*b725ae77Skettenis expread.c Still need to add them to dbxread.c and coffread.c. 1979*b725ae77Skettenis main.c 1980*b725ae77Skettenis source.c 1981*b725ae77Skettenis symtab.c 1982*b725ae77Skettenis utils.c 1983*b725ae77Skettenis valarith.c 1984*b725ae77Skettenis valprint.c 1985*b725ae77Skettenis 1986*b725ae77SkettenisMon Jun 24 16:33:11 EDT 1991 1987*b725ae77Skettenis 1988*b725ae77Skettenis language.[ch] Added the functions hexformat_pre() and 1989*b725ae77Skettenis hex_to_string_pre(), which take a prefix argument to 1990*b725ae77Skettenis include in the format string. Thus, hexformat_pre("08") will 1991*b725ae77Skettenis return "0x08x" (if the working language is language_c). 1992*b725ae77Skettenis Made hexformat() and hex_to_string() calls to the above 1993*b725ae77Skettenis with "" as the prefix argument. 1994*b725ae77Skettenis 1995*b725ae77Skettenis am29k-pinsn.c, arm-pinsn.c, breakpoint.c, convex-tdep.c, exec.c, core.c, 1996*b725ae77Skettenis dbxread.c, i386-pinsn.c, i386-stub.c, i386-xdep.c, i960-pinsn.c, 1997*b725ae77Skettenis infcmd.c, inflow.c, m68k-pinsn.c, m68k-stub.c, m88k-pinsn.c, 1998*b725ae77Skettenis mips-pinsn.c, mips-tdep.c, ns32k-pinsn.c, printcmd.c, pyr-pinsn.c, 1999*b725ae77Skettenis pyr-tdep.c, pyr-xdep.c, remote-vx.c, remote.c, solib.c, source.c, 2000*b725ae77Skettenis stack.c, sun386-xdep.c, symfile.c, symm-xdep.c, symmisc.c, tahoe-pinsn.c, 2001*b725ae77Skettenis valprint.c, vax-pinsn.c 2002*b725ae77Skettenis 2003*b725ae77Skettenis Changed all occurences of 0x%[0-9]*l*x in printf format strings to 2004*b725ae77Skettenis calls to hexformat() and hex_to_string(). Format strings without 2005*b725ae77Skettenis the leading "0x" were ignored. 2006*b725ae77Skettenis 2007*b725ae77Skettenis depend Updated to take the above into account. 2008*b725ae77Skettenis 2009*b725ae77Skettenis 2010*b725ae77SkettenisTue Jun 25 15:27:18 EDT 1991 2011*b725ae77Skettenis 2012*b725ae77Skettenis symtab.h Added the types range_mode_t, range_check_t, type_mode_t, 2013*b725ae77Skettenis and type_check_t to keep track of the current state of 2014*b725ae77Skettenis range and type checking. 2015*b725ae77Skettenis main.c Added the variables range_mode, range_check, type_mode, 2016*b725ae77Skettenis and type_check to record the current state of range and 2017*b725ae77Skettenis type checking. Added initialization code to main(). 2018*b725ae77Skettenis language.h Changed the macros STRICT_TYPE and RANGE_CHECK to examine 2019*b725ae77Skettenis the above variables. 2020*b725ae77Skettenis 2021*b725ae77Skettenis 2022*b725ae77SkettenisTue Jun 25 17:57:08 EDT 1991 2023*b725ae77Skettenis 2024*b725ae77Skettenis dbxread.c process_one_symbol() updates the variable (enum language) 2025*b725ae77Skettenis source_lang based on the extension of the filename 2026*b725ae77Skettenis contained in the N_SO sybmol that started this symtab. 2027*b725ae77Skettenis When end_symtab() is called, the value of source_lang is 2028*b725ae77Skettenis put into the language field. 2029*b725ae77Skettenis stack.c select_frame() sets working_lang (and possibly type_check 2030*b725ae77Skettenis and range_check) to the language field of the symtab 2031*b725ae77Skettenis associated with the frame that is selected if working_mode 2032*b725ae77Skettenis is language_auto. If working_mode is language_manual, a 2033*b725ae77Skettenis warning is printed and working_lang is not set. 2034*b725ae77Skettenis language.c Added the function set_type_range(), which sets the value of 2035*b725ae77Skettenis type_check and range_check (if their modes call for 2036*b725ae77Skettenis automatic setting) based on the current value of 2037*b725ae77Skettenis working_lang. A non-zero argument will cause the current 2038*b725ae77Skettenis settings to be output. 2039*b725ae77Skettenis 2040*b725ae77Skettenis 2041*b725ae77SkettenisWed Jun 26 14:51:40 EDT 1991 2042*b725ae77Skettenis 2043*b725ae77Skettenis eval.c Added range checks on assignment. 2044*b725ae77Skettenis m2-exp.y Added the grammar for sets to the language. Currently, 2045*b725ae77Skettenis these do not do anything except print an error message. 2046*b725ae77Skettenis 2047*b725ae77SkettenisWed Jun 26 17:01:04 EDT 1991 2048*b725ae77Skettenis 2049*b725ae77Skettenis m2-exp.y Added the ability for parse_number() to parse negative 2050*b725ae77Skettenis numbers. A global flag is set upon encountering a unary 2051*b725ae77Skettenis minus. This was done to make, for example, 1 parse as a 2052*b725ae77Skettenis CARDINAL, and not as an integer, per Wirth's examples in 2053*b725ae77Skettenis Programming in Modula-2 ed.4. 2054*b725ae77Skettenis valprint.c Added support for "set radix 2" by then setting 2055*b725ae77Skettenis output_format to 't'. 2056*b725ae77Skettenis eval.c Implemented range checking on subrange types. Added calls 2057*b725ae77Skettenis to range_check_range_p for BINOP_ASSIGN and BINOP_VAL. 2058*b725ae77Skettenis Implemented MIN and MAX for ennumerated types. The 2059*b725ae77Skettenis minimum value of an ennumerated type is defined by Wirth 2060*b725ae77Skettenis as the first identifier, and the maximum as the last. 2061*b725ae77Skettenis m2-exp.y Made octal numbers ending with "B" be characters and those 2062*b725ae77Skettenis ending with "C" be numbers, per Wirth's book. (p. 34) 2063*b725ae77Skettenis 2064*b725ae77SkettenisThu Jun 27 14:11:52 EDT 1991 2065*b725ae77Skettenis 2066*b725ae77Skettenis stack.c select_frame() now only sets working_lang, it does not 2067*b725ae77Skettenis notify the user. If working_mode is language_manual, then 2068*b725ae77Skettenis a warning is issued once. 2069*b725ae77Skettenis main.c At the end of each call to execute_command(), working_lang 2070*b725ae77Skettenis is checked against the local static (enum language) 2071*b725ae77Skettenis current. If they differ and working_mode is 2072*b725ae77Skettenis language_auto, the new settings of language, type and 2073*b725ae77Skettenis range checking are printed out. 2074*b725ae77Skettenis stack.c Modified frame_info() to include the language of the 2075*b725ae77Skettenis current frame in the output of "info frame". 2076*b725ae77Skettenis language.[ch] Added the function language_str() which returns the name 2077*b725ae77Skettenis of the current language. 2078*b725ae77Skettenis 2079*b725ae77SkettenisFri Jun 28 15:33:14 EDT 1991 2080*b725ae77Skettenis 2081*b725ae77Skettenis m2-exp.y Added the built-in procedures INC, INCL, DEC, and DECL to 2082*b725ae77Skettenis the language. INCL and DECL currently cause an error, 2083*b725ae77Skettenis since sets are not implemented yet. INC and DEC are 2084*b725ae77Skettenis implemented as PREINCREMENT/PREDECREMENT with one 2085*b725ae77Skettenis argument, and as ASSIGN_MODIFY with two arguments. 2086*b725ae77Skettenis eval.c Added type checking to the above cases. 2087*b725ae77Skettenis value.h Added not_lval_constant to the lval_type ennumerated type. 2088*b725ae77Skettenis not_lval_constant means that the value is a constant 2089*b725ae77Skettenis value; that is 3 or 'a' or TRUE, not as in a constant 2090*b725ae77Skettenis identifier. This is used to help coerce numbers such as 3 2091*b725ae77Skettenis to either signed or unsigned numbers. 2092*b725ae77Skettenis valops.c Added the function value_coerce_constants() which coerces 2093*b725ae77Skettenis constant integers as following: if one is a constant and 2094*b725ae77Skettenis the other is not, the constant's type is set to the type 2095*b725ae77Skettenis of the other argument. If both are constants and one is 2096*b725ae77Skettenis signed, the other is converted to a signed constant. 2097*b725ae77Skettenis 2098*b725ae77SkettenisSat Jun 29 17:26:29 EDT 1991 2099*b725ae77Skettenis 2100*b725ae77Skettenis valarith.c Added a better range checker. It now checks range 2101*b725ae77Skettenis (successfully) on integral operations [+-] (signed and 2102*b725ae77Skettenis unsigned) for any C sized type. Still does not work well 2103*b725ae77Skettenis for multiplication.) 2104*b725ae77Skettenis int_in_size() returns an integer that is coerced to fit into 2105*b725ae77Skettenis specified number of bytes. 2106*b725ae77Skettenis 2107*b725ae77SkettenisMon Jul 1 13:04:14 EDT 1991 2108*b725ae77Skettenis 2109*b725ae77Skettenis language.[ch] Added the function binop_result_type(), which returns the 2110*b725ae77Skettenis builtin (struct type *) type that would be the result of a 2111*b725ae77Skettenis binop on the two values V1 and V2. 2112*b725ae77Skettenis 2113*b725ae77SkettenisWed Jul 3 19:22:53 EDT 1991 2114*b725ae77Skettenis 2115*b725ae77Skettenis source.c Extended source_info() to include the source language in 2116*b725ae77Skettenis the output from "info source". 2117*b725ae77Skettenis 2118*b725ae77SkettenisFri Jul 5 13:48:52 EDT 1991 2119*b725ae77Skettenis 2120*b725ae77Skettenis utils.c Moved the support functions for the GDB set/show commands 2121*b725ae77Skettenis dealing with language into language.c. 2122*b725ae77Skettenis language.c Added the function language_info(), which displays info 2123*b725ae77Skettenis about the current working language, type and range check 2124*b725ae77Skettenis settings. Called via the GDB command "info language". 2125*b725ae77Skettenis Added an initialization routine _initialize_language(), 2126*b725ae77Skettenis that sets defaults for the language, type and range 2127*b725ae77Skettenis variables and sets up the new GDB commands. 2128*b725ae77Skettenis main.c Language setup moved to language.c. 2129*b725ae77Skettenis depend Rebuilt. 2130*b725ae77Skettenis 2131*b725ae77SkettenisMon Jul 8 10:10:22 EDT 1991 2132*b725ae77Skettenis 2133*b725ae77Skettenis valarith.c Debugged the range checker for arithmetic. Still does not 2134*b725ae77Skettenis work for multiplication very well. 2135*b725ae77Skettenis 2136*b725ae77SkettenisMon Jul 8 12:40:37 EDT 1991 2137*b725ae77Skettenis 2138*b725ae77Skettenis language.[ch] Added the function value_true() which returns non-zero if 2139*b725ae77Skettenis its argument represents a boolean true value. 2140*b725ae77Skettenis breakpoint.c Changed breakpoint_cond_eval() to call value_true() to 2141*b725ae77Skettenis check the truth of an expression. 2142*b725ae77Skettenis 2143*b725ae77SkettenisThu Jul 11 12:51:34 EDT 1991 2144*b725ae77Skettenis 2145*b725ae77Skettenis language.[ch] Added the predicate structured_type(), which returns 2146*b725ae77Skettenis non-zero if the argument is a structured type. 2147*b725ae77Skettenis Added the predicate pointer_type(), which returns non-zero 2148*b725ae77Skettenis if the argument is a pointer type. 2149*b725ae77Skettenis eval.c Added the ability to do addition and substraction on 2150*b725ae77Skettenis pointers and integers. This case simply bypasses the 2151*b725ae77Skettenis type checker. 2152*b725ae77Skettenis 2153*b725ae77SkettenisThu Jul 11 14:41:42 EDT 1991 2154*b725ae77Skettenis 2155*b725ae77Skettenis include/stab.def 2156*b725ae77Skettenis Added the symbol N_DEFD (0x4a) which is a definition 2157*b725ae77Skettenis module dependency that is used by the GNU Modula-2 2158*b725ae77Skettenis compiler and the linker. It is not important to GDB, 2159*b725ae77Skettenis except that [dbx|coff|mips]read.c should ignore these 2160*b725ae77Skettenis symbols. 2161*b725ae77Skettenis 2162*b725ae77SkettenisFri Jul 12 16:07:00 EDT 1991 2163*b725ae77Skettenis 2164*b725ae77Skettenis valprint.c Changed the TYPE_LENGTH(type) >= 0 to TYPE_LENGTH(type) > 2165*b725ae77Skettenis 0 in val_print(). Also added statements to the else part 2166*b725ae77Skettenis to coerce type (argument to val_print) to a pointer type 2167*b725ae77Skettenis if it is an "array of unspecified length". 2168*b725ae77Skettenis valops.c Added the function value_m2_string(), which returns a 2169*b725ae77Skettenis (value) value which is a constant string, whose type is 2170*b725ae77Skettenis (ARRAY [0..n] OF CHAR). The length field of the type 2171*b725ae77Skettenis structure is set to zero, so it will be interpreted as an 2172*b725ae77Skettenis "array of unspecified length". 2173*b725ae77Skettenis stack.c Moved the language/frame mismatch check to 2174*b725ae77Skettenis main.c:execute_command(). 2175*b725ae77Skettenis main.c The working language is recorded each time 2176*b725ae77Skettenis execute_command() is executed. If working lang has 2177*b725ae77Skettenis changed during its execution, then the new 2178*b725ae77Skettenis language/type/range info is printed out for the user. If 2179*b725ae77Skettenis the working language does not match the language of the 2180*b725ae77Skettenis frame, a warning is issued. 2181*b725ae77Skettenis 2182*b725ae77SkettenisSat Jul 13 16:16:39 EDT 1991 2183*b725ae77Skettenis 2184*b725ae77Skettenis eval.c Moved all the type-checking stuff for operators to 2185*b725ae77Skettenis language.[ch] language.c. This is so we can keep language-specific 2186*b725ae77Skettenis stuff (like for what type operators are defined) in 2187*b725ae77Skettenis language.c. 2188*b725ae77Skettenis language.[ch] Added the function binop_type_check(), which checks to see 2189*b725ae77Skettenis if its two (value) arguments are type-compatible with its 2190*b725ae77Skettenis opcode argument. The opcode should represent an operation 2191*b725ae77Skettenis involving an operator. Also added the macro function 2192*b725ae77Skettenis unop_type_check, which calls binop_type_check with a 2193*b725ae77Skettenis NULL second argument. 2194*b725ae77Skettenis expprint.c Added Modula-2 operators to the op_print_tab, so info 2195*b725ae77Skettenis expression.h break works correctly. Also added "op_string", which 2196*b725ae77Skettenis returns the string corresponding to the (enum exp_opcode) 2197*b725ae77Skettenis opcode that is its argument. 2198*b725ae77Skettenis 2199*b725ae77Skettenis 2200*b725ae77SkettenisSat Jul 13 18:26:18 EDT 1991 2201*b725ae77Skettenis 2202*b725ae77Skettenis coffread.c Added code to record the type of function arguments with 2203*b725ae77Skettenis each paricular function. Code is very similar to that 2204*b725ae77Skettenis added to dbxread.c. 2205*b725ae77Skettenis dbxread.c Moved add_param_to_type() to symtab.c 2206*b725ae77Skettenis symtab.[ch] Added function add_param_to_type() from dbxread.c 2207*b725ae77Skettenis 2208*b725ae77Skettenis *** NOTE: The above additions have not been tested. 2209*b725ae77Skettenis 2210*b725ae77SkettenisMon Jul 15 12:50:47 EDT 1991 2211*b725ae77Skettenis 2212*b725ae77Skettenis langauge.[ch] Added the functions type_error and range_error, which work 2213*b725ae77Skettenis like error() except if the type/range mode is set to 2214*b725ae77Skettenis *_mode_warn, then they do not do a return_to_top_level(), 2215*b725ae77Skettenis but merely print a warning. 2216*b725ae77Skettenis Also changed [set|show]_[type|range]_command() to support 2217*b725ae77Skettenis the new "warn" feature. 2218*b725ae77Skettenis 2219*b725ae77SkettenisThu Jul 18 17:50:54 EDT 1991 2220*b725ae77Skettenis 2221*b725ae77Skettenis mipsread.c Added code to record the type of function arguments with 2222*b725ae77Skettenis each particular function. Code is very similar to that 2223*b725ae77Skettenis added to dbxread.c. 2224*b725ae77Skettenis 2225*b725ae77Skettenis *** NOTE: The above additions have not been tested. 2226*b725ae77Skettenis 2227*b725ae77SkettenisFri Jul 19 11:19:10 EDT 1991 2228*b725ae77Skettenis 2229*b725ae77Skettenis defs.h Added macros MAX_OF_SIZE, MIN_OF_SIZE, UMAX_OF_SIZE, and 2230*b725ae77Skettenis UMIN_OF_SIZE, which when given a size of a numeric type, 2231*b725ae77Skettenis return the maximum and minimum value it can hold. UMAX... 2232*b725ae77Skettenis and UMIN... return the result for unsigned types. 2233*b725ae77Skettenis symtab.h Added the macros MAX_OF_TYPE and MIN_OF_TYPE to operate on 2234*b725ae77Skettenis struct types. They call above macros. 2235*b725ae77Skettenis dbxread.c Renamed the MAX and MIN_OF_TYPE macros to ..._OF_CTYPE to 2236*b725ae77Skettenis avoid a name conlict with the above. 2237*b725ae77Skettenis c-exp.y Added range checking on numeric constants in 2238*b725ae77Skettenis parse_number() for completeness. 2239*b725ae77Skettenis valarith.c Made binop_user_defined_p() and unop_user_defined_p() 2240*b725ae77Skettenis return 0 if working_lang is not language_c. 2241*b725ae77Skettenis 2242*b725ae77SkettenisThu Aug 8 14:17:22 EDT 1991 2243*b725ae77Skettenis 2244*b725ae77Skettenis main.c 2245*b725ae77Skettenis printcmd.c 2246*b725ae77Skettenis breakpoint.c Documentation strings of some commands changed to 2247*b725ae77Skettenis eliminate the references to the C language where 2248*b725ae77Skettenis appropriate. 2249*b725ae77Skettenis 2250*b725ae77SkettenisTue Aug 13 15:48:03 EDT 1991 2251*b725ae77Skettenis 2252*b725ae77Skettenis m2-exp.y Added qualified identifiers to the grammar. The semantics 2253*b725ae77Skettenis are slightly different from those of the GDB operator :: 2254*b725ae77Skettenis c-exp.y 2255*b725ae77Skettenis m2-exp.y Added a rule to each grammar of the form: start ::= exp | 2256*b725ae77Skettenis type_exp, where type_exp is any valid type expression. 2257*b725ae77Skettenis expression.h 2258*b725ae77Skettenis eval.c Added the opcode OP_TYPE, and an error case in eval.c. 2259*b725ae77Skettenis printcmd.c Modified ptype_command() so it actually parses the input 2260*b725ae77Skettenis (necessary for type expressions with scope qualifiers). 2261*b725ae77Skettenis Added the function ptype_eval() which expects an 2262*b725ae77Skettenis expression composed of one OP_TYPE element. 2263*b725ae77Skettenis *.[ch] Replaced all occurences of parse_c_expression with 2264*b725ae77Skettenis parse_expression 2265*b725ae77Skettenis *.[ch] Replaced all occurences of parse_c_1 with parse_exp_1 2266*b725ae77Skettenis 2267*b725ae77Skettenis[End of ChangeLog entries from Andrew Beers for Modula-2 support.] 2268*b725ae77Skettenis 2269*b725ae77SkettenisMon Sep 16 17:19:46 1991 John Gilmore (gnu at cygnus.com) 2270*b725ae77Skettenis 2271*b725ae77Skettenis Small fixes from Peter Schauer: 2272*b725ae77Skettenis 2273*b725ae77Skettenis * infrun.c (child_attach): Lint. 2274*b725ae77Skettenis * solib.c (find_solib): Handle shared libs version 2. 2275*b725ae77Skettenis 2276*b725ae77Skettenis Small fixes from David Wood: 2277*b725ae77Skettenis 2278*b725ae77Skettenis * xm-ultra3.h (SYS_SIGLIST_MISSING): Typo. 2279*b725ae77Skettenis 2280*b725ae77Skettenis Small fixes: 2281*b725ae77Skettenis 2282*b725ae77Skettenis * remote-vx.c: Move <stdio.h> to top, for FILE. Fix from 2283*b725ae77Skettenis John S <basrai%kanga.dnet@c3po.sm-alc.af.mil>. 2284*b725ae77Skettenis 2285*b725ae77Skettenis * utils.c (wrap_here): Avoid wrap action of fputs_filtered if 2286*b725ae77Skettenis chars_per_line is at maximum (user typed `set width 0'). Fix 2287*b725ae77Skettenis from Andreas Schwab <schwab@ls5.informatik.uni-dortmund.de>. 2288*b725ae77Skettenis 2289*b725ae77SkettenisTue Sep 17 17:31:04 1991 Stu Grossman (grossman at cygnus.com) 2290*b725ae77Skettenis 2291*b725ae77Skettenis * coredep.c: include ptrace.h where necessary. 2292*b725ae77Skettenis * mipsread.c(parse_lines): fix unsigned char problem that was 2293*b725ae77Skettenis messing up line numbers on SGI's and possibly other MIPS based 2294*b725ae77Skettenis platforms. 2295*b725ae77Skettenis * infrun.c (child_create_inferior): use better test to check 2296*b725ae77Skettenis return val from setpgrp(). 2297*b725ae77Skettenis * tm-irix3.h, xm-irix3.h, tconfig/irix3, xconfig/irix3: add these 2298*b725ae77Skettenis for sgi/irix support. 2299*b725ae77Skettenis 2300*b725ae77SkettenisWed Sep 18 04:33:31 1991 Per Bothner (bothner at cygnus.com) 2301*b725ae77Skettenis 2302*b725ae77Skettenis * mipsread.c (parse_symbol): Put non-static procedures 2303*b725ae77Skettenis in the global block. 2304*b725ae77Skettenis 2305*b725ae77SkettenisFri Sep 13 00:14:52 1991 John Gilmore (gnu at cygnus.com) 2306*b725ae77Skettenis 2307*b725ae77Skettenis Patch together `text_start' and `text_end' for 29K port. 2308*b725ae77Skettenis 2309*b725ae77Skettenis * exec.c (exec_command): If NEED_TEXT_START_END, define the 2310*b725ae77Skettenis variables and set them based on the exec file. 2311*b725ae77Skettenis * am29k-tdep.c: declare text_start. 2312*b725ae77Skettenis * valops.c (call_function_by_hand): declare text_end. 2313*b725ae77Skettenis 2314*b725ae77Skettenis * inferior.h: Eliminate CANNOT_EXECUTE_STACK in favor of 2315*b725ae77Skettenis defining CALL_DUMMY_LOCATION as BEFORE_TEXT_END. This is 2316*b725ae77Skettenis because machines that do this will also have to know to 2317*b725ae77Skettenis set NEED_TEXT_START_END. Besides, it was a redundant way to 2318*b725ae77Skettenis say the same thing. 2319*b725ae77Skettenis * tm-29k.h, tm-convex.h, tm-np1.h: Eliminate 2320*b725ae77Skettenis CANNOT_EXECUTE_STACK, define CALL_DUMMY_LOCATION and 2321*b725ae77Skettenis NEED_TEXT_START_END. 2322*b725ae77Skettenis 2323*b725ae77SkettenisThu Sep 12 00:22:24 1991 John Gilmore (gnu at cygint.cygnus.com) 2324*b725ae77Skettenis 2325*b725ae77Skettenis AMD 29000 changes from David Wood <wood@david.ultra.nyu.edu>: 2326*b725ae77Skettenis 2327*b725ae77Skettenis * Makefile.in (CLIBS): Put XM_CLIBS and TM_CLIBS at end. 2328*b725ae77Skettenis Pass MUNCH_DEFINE to munch whenever we run it. 2329*b725ae77Skettenis * am29k-pinsn.c (print_insn): Handle NOP specially. Avoid %#x 2330*b725ae77Skettenis format string; use 0x%x instead. 2331*b725ae77Skettenis * am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM. 2332*b725ae77Skettenis * ultra-xdep.c, xm-ultra.h: New files for Ultracomputer host system. 2333*b725ae77Skettenis * xm-rtbsd.h: New host support for RT/PC running BSD Unix. 2334*b725ae77Skettenis * inflow.c: Handle `short' process group IDs. 2335*b725ae77Skettenis * infptrace.c (fetch_register): Support CANNOT_FETCH_REGISTER, 2336*b725ae77Skettenis and check for ptrace errors. 2337*b725ae77Skettenis * coffread.c (SDB_REG_TO_REGNUM): Define if not already. 2338*b725ae77Skettenis (coff_symfile_init): Initialize text_bfd_scnum. 2339*b725ae77Skettenis (read_coff_symtab): Use it to find the text [and absolute?] sections. 2340*b725ae77Skettenis * ../config.sub: Add vendor nyu and os "sym[1-9]*". 2341*b725ae77Skettenis * configure.in: Add hosts rtpc-*-* and a29k-*-*. 2342*b725ae77Skettenis Merge target arm case with other "easy" cases. Add target 2343*b725ae77Skettenis cases a29k-*-none (rehack of am29k), a29k-*-kern (remote to 2344*b725ae77Skettenis Ultracomputer kernel), and a29k-*-sym1 (ultracomputer OS's user 2345*b725ae77Skettenis process). 2346*b725ae77Skettenis * minimon.h, remote-adapt.c, remote-mm.c: Add. 2347*b725ae77Skettenis * munch: Cope with RT/PC putting fns in data segment. 2348*b725ae77Skettenis Restore ability to override `nm' by specifying MUNCH_NM. 2349*b725ae77Skettenis * xconfig/rtbsd, xconfig/ultra3: New host systems. 2350*b725ae77Skettenis * tconfig/a29k: Rename from tconfig/am29k. Add remote-mm 2351*b725ae77Skettenis and remote-adapt. Remove encapsulated coff #define's (the 2352*b725ae77Skettenis support should go in BFD, and gdb shouldn't know or care). 2353*b725ae77Skettenis * tconfig/a29k-kern: Same, but for remote kernel debugging. 2354*b725ae77Skettenis * tconfig/ultra3: For debugging user processes on Ultra3/Sym1. 2355*b725ae77Skettenis * tm-29k.h: Update BADMAG (though it should go away). 2356*b725ae77Skettenis Allow the register definitions to be overridden in another 2357*b725ae77Skettenis tm-file. Fix SR_REGNUM. Add a mess of _REGNUM's. Separate 2358*b725ae77Skettenis RETURN_REGNUM from GR96_REGNUM and DUMMY_SAVE_GREGS from 2359*b725ae77Skettenis DUMMY_SAVE_GR96, for handling kernel calling conventions 2360*b725ae77Skettenis that use GR64+ rather than GR96+. 2361*b725ae77Skettenis * tm-ultra3.h: New file, for use on Ultra3 Unix as well as for 2362*b725ae77Skettenis remote debugging of Ultra3 kernel. Includes tm-29k.h and 2363*b725ae77Skettenis overrides various things. 2364*b725ae77Skettenis 2365*b725ae77Skettenis * remote-mm.c (mm_attach, mm_wait): Handle attach like 2366*b725ae77Skettenis child_attach does, making a clean stop in the newly attached 2367*b725ae77Skettenis program. 2368*b725ae77Skettenis * remote-eb.c: Lint. 2369*b725ae77Skettenis 2370*b725ae77Skettenis * coffread.c: Make coffread independent of any particular 2371*b725ae77Skettenis variant of COFF. Avoid #include-ing any particular one except 2372*b725ae77Skettenis internalcoff.h. BFD now passes key values for symbol reading 2373*b725ae77Skettenis as part of its coff_data structure (LINESZ, SYMESZ, AUXESZ, 2374*b725ae77Skettenis and the symbol masks and shifts); use them. 2375*b725ae77Skettenis Remove obsolete end_of_text_addr. 2376*b725ae77Skettenis 2377*b725ae77Skettenis * exec.c: Remove unused include files. 2378*b725ae77Skettenis 2379*b725ae77SkettenisWed Sep 11 19:38:44 1991 John Gilmore (gnu at cygint.cygnus.com) 2380*b725ae77Skettenis 2381*b725ae77Skettenis * Makefile.in (documentation targets): Pass $(M4). 2382*b725ae77Skettenis Bugfix from eggert@twinsun.com (Paul Eggert). 2383*b725ae77Skettenis 2384*b725ae77Skettenis * stack.c (down_silently_command): Check for stack existence. 2385*b725ae77Skettenis 2386*b725ae77SkettenisTue Sep 10 23:08:29 1991 John Gilmore (gnu at cygint.cygnus.com) 2387*b725ae77Skettenis 2388*b725ae77Skettenis * Makefile.in (VERSION): Update to 4.0.3. 2389*b725ae77Skettenis 2390*b725ae77SkettenisTue Sep 10 09:19:29 1991 John Gilmore (gnu at cygint.cygnus.com) 2391*b725ae77Skettenis 2392*b725ae77Skettenis * core.c (core_file_command): Print frame at coredump with 2393*b725ae77Skettenis its level number, by calling print_stack_frame. 2394*b725ae77Skettenis * frame.h: Add selected_frame_level, print_stack_frame. 2395*b725ae77Skettenis * frame.h, stack.c: Remove print_sel_frame, print_selected_frame. 2396*b725ae77Skettenis * convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c: 2397*b725ae77Skettenis Change print_sel_frame and print_selected_frame callers to 2398*b725ae77Skettenis print_stack_frame. 2399*b725ae77Skettenis 2400*b725ae77Skettenis * dbxread.c (read_ofile_symtab): Avoid empty else clause. 2401*b725ae77Skettenis * symfile.c (free_named_symtabs): Ditto. 2402*b725ae77Skettenis * main.c (main): wrap_here needs an arg. 2403*b725ae77Skettenis * solib.c (find_solib): Avoid memory access if _DYNAMIC is zero. 2404*b725ae77Skettenis (solib_add): Avoid noise. 2405*b725ae77Skettenis (solib_create_inferior_hook): Lint. 2406*b725ae77Skettenis (sharedlibrary_command): Move dont_repeat to here. 2407*b725ae77Skettenis * utils.c (error): Call wrap_here to force buffered output. 2408*b725ae77Skettenis 2409*b725ae77Skettenis Small patches from Peter Schauer: 2410*b725ae77Skettenis 2411*b725ae77Skettenis * coffread.c (start_symtab): Free any existing line_vector before 2412*b725ae77Skettenis malloc-ing new one. 2413*b725ae77Skettenis (read_coff_symtab): Ditto for type_vector. 2414*b725ae77Skettenis 2415*b725ae77Skettenis * source.c (lines_to_list): New variable, replacing function. 2416*b725ae77Skettenis (all uses): Use as variable. 2417*b725ae77Skettenis (_initialize_source): Add 'set listsize' and 'show listsize'. 2418*b725ae77Skettenis * utils.c (lines_to_list): Remove function. 2419*b725ae77Skettenis * stack.c (print_frame_info): Use as variable. 2420*b725ae77Skettenis * defs.h (lines_to_list): Remove declaration. 2421*b725ae77Skettenis 2422*b725ae77SkettenisMon Sep 9 13:45:57 1991 John Gilmore (gnu at cygint.cygnus.com) 2423*b725ae77Skettenis 2424*b725ae77Skettenis * breakpoint.c (insert_breakpoints): Restore warning about 2425*b725ae77Skettenis the program might be running in another process, but only for 2426*b725ae77Skettenis systems with this brain death (#ifdef ONE_PROCESS_WRITETEXT). 2427*b725ae77Skettenis * xm-hp300bsd.h, xm-mips.h, xm-vax.h: Define it. 2428*b725ae77Skettenis 2429*b725ae77Skettenis * utils.c (error): if error_pre_print is set, print the string 2430*b725ae77Skettenis first. 2431*b725ae77Skettenis * main.c (main, print_gnu_advertisement, print_gdb_version): 2432*b725ae77Skettenis Reformat legalese so it always prints, but acts as an "I'm here" 2433*b725ae77Skettenis message while symbols are being read. If any errors occur, 2434*b725ae77Skettenis print a few newlines to set off the message and start it at the 2435*b725ae77Skettenis left margin. Remove mention of "help" command, and don't yak 2436*b725ae77Skettenis about symbol reading. 2437*b725ae77Skettenis (catch_errors): Error string is now printed first in case of 2438*b725ae77Skettenis error, not last. 2439*b725ae77Skettenis * command.c (undef_cmd_error, lookup_cmd): On undefined command, 2440*b725ae77Skettenis suggest the "help" command. 2441*b725ae77Skettenis 2442*b725ae77Skettenis * Makefile.in (VERSION): Set to 4.0.2. 2443*b725ae77Skettenis 2444*b725ae77SkettenisThu Sep 5 23:49:48 1991 John Gilmore (gnu at cygint.cygnus.com) 2445*b725ae77Skettenis 2446*b725ae77Skettenis * .gdbinit: Remove useless "rr" command. Set complaints 2447*b725ae77Skettenis to 1 for people debugging gdb. 2448*b725ae77Skettenis 2449*b725ae77Skettenis * breakpoint.c, remote-vx.c: Reword strings printed by 2450*b725ae77Skettenis catch_errors callers. 2451*b725ae77Skettenis 2452*b725ae77SkettenisWed Sep 4 11:07:50 1991 John Gilmore (gnu at cygint.cygnus.com) 2453*b725ae77Skettenis 2454*b725ae77Skettenis * WHATS.NEW: "history write -> history save". Doc "write on/off". 2455*b725ae77Skettenis (Fix from kenc@viewlogic.com.) 2456*b725ae77Skettenis 2457*b725ae77Skettenis Fix some infrastructure to be able to cope with host and target 2458*b725ae77Skettenis machines with different sized basic types (ints, ptrs, etc). 2459*b725ae77Skettenis (Idea from pierre@la.tce.com (Pierre Willard).) 2460*b725ae77Skettenis 2461*b725ae77Skettenis * values.c (value_from_longest): Rename from value_from_long. 2462*b725ae77Skettenis Handle pointer types as well as integers, so that targets with 2463*b725ae77Skettenis different pointer sizes from the host can be accomodated. 2464*b725ae77Skettenis * breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c, 2465*b725ae77Skettenis valarith.c, valops.c, valprint.c, value.h, values.c: Rename 2466*b725ae77Skettenis uses of value_from_long to value_from_longest. 2467*b725ae77Skettenis * eval.c, findvar.c, printcmd.c, valarith.c, valops.c: Pass 2468*b725ae77Skettenis the correct pointer type to value_from_long{est}. 2469*b725ae77Skettenis 2470*b725ae77Skettenis * doc/gdb.texinfo ($_, $__): Describe types of these variables. 2471*b725ae77Skettenis 2472*b725ae77Skettenis * remote-vx.c: Remove obsolete code for calling functions via 2473*b725ae77Skettenis vxworks kludge interface (it referenced value_from_long). 2474*b725ae77Skettenis 2475*b725ae77Skettenis * valops.c (value_string): Find malloc with lookup_misc_func, not 2476*b725ae77Skettenis raw search. 2477*b725ae77Skettenis 2478*b725ae77SkettenisTue Sep 3 18:37:46 1991 John Gilmore (gnu at cygint.cygnus.com) 2479*b725ae77Skettenis 2480*b725ae77Skettenis Make writing to files work properly. (Fixes to BFD are also needed.) 2481*b725ae77Skettenis 2482*b725ae77Skettenis * core.c (core_open): Open file ourselves, read or r/w, depending on 2483*b725ae77Skettenis write_files. Use bfd_fdopenr. 2484*b725ae77Skettenis * gdbcore.h (write_files): New variable. 2485*b725ae77Skettenis * exec.c (write_files): Define variable, add set&show for it. 2486*b725ae77Skettenis (exec_file_command): Use write_files to open for read or r/write. 2487*b725ae77Skettenis 2488*b725ae77Skettenis Make shared library reading happen automatically. These changes 2489*b725ae77Skettenis are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>. 2490*b725ae77Skettenis 2491*b725ae77Skettenis * inferior.h (stop_soon_quietly): Add to exported variables. 2492*b725ae77Skettenis * infrun.c (child_create_inferior): call solib hook, if defined. 2493*b725ae77Skettenis (child_attach): call solib hook, if defined. 2494*b725ae77Skettenis * solib.c: Include inferior.h. Add from_tty to so_list as kludge. 2495*b725ae77Skettenis (find_solib): Use lookup_misc_func rather than hand-rolled. 2496*b725ae77Skettenis (symbol_add_stub): New stub for catch_errors. 2497*b725ae77Skettenis (solib_add): Avoid output if !from_tty. Catch errors rather 2498*b725ae77Skettenis than just calling symbol_file_add and bombing. 2499*b725ae77Skettenis (solib_create_inferior_hook): Interface with the target process 2500*b725ae77Skettenis to let it read and alloc shared libs, then figure out what it did. 2501*b725ae77Skettenis 2502*b725ae77Skettenis * core.c (validate_files): Fix typo, soften warning. 2503*b725ae77Skettenis (Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.) 2504*b725ae77Skettenis 2505*b725ae77Skettenis * utils.c (fputs_demangled): Avoid duplicate printing if 2506*b725ae77Skettenis demangling is off. (Fix from J.T. Conklin <jtc@cayenne.com>.) 2507*b725ae77Skettenis 2508*b725ae77Skettenis * infrun.c (proceed): Cast -1 to (CORE_ADDR) before comparing. 2509*b725ae77Skettenis (Fix from pierre@la.tce.com (Pierre Willard).) 2510*b725ae77Skettenis 2511*b725ae77Skettenis * main.c (catch_errors): Change argument to a char * from an int, 2512*b725ae77Skettenis since a char * can point to a struct full of glop, but an int 2513*b725ae77Skettenis is not guaranteed to be able to hold a pointer. 2514*b725ae77Skettenis * breakpoint.c (breakpoint_cond_eval, bpstat_stop_status, 2515*b725ae77Skettenis breakpoint_re_set_one, breakpoint_re_set): Adapt. 2516*b725ae77Skettenis * core.c (core_open, solib_add_stub): Adapt. 2517*b725ae77Skettenis * remote-vx.c (symbol_stub, add_symbol_stub, callers): Adapt. 2518*b725ae77Skettenis 2519*b725ae77SkettenisWed Aug 28 18:18:05 1991 John Gilmore (gnu at cygint.cygnus.com) 2520*b725ae77Skettenis 2521*b725ae77Skettenis * Makefile.in: Update VERSION to 4.0.1. Evade GNU Make bug 2522*b725ae77Skettenis by adding .NOEXPORT target. 2523*b725ae77Skettenis 2524*b725ae77SkettenisFri Aug 23 17:14:25 1991 John Gilmore (gnu at cygint.cygnus.com) 2525*b725ae77Skettenis 2526*b725ae77Skettenis * GDB-4.0 release! 2527*b725ae77Skettenis * Update README. 2528*b725ae77Skettenis * Makefile.in (VERSION): Roll to 4.0. 2529*b725ae77Skettenis (gdb.tar.Z): Make refcard.ps as well, for shipment. 2530*b725ae77Skettenis 2531*b725ae77SkettenisFri Aug 23 14:07:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2532*b725ae77Skettenis 2533*b725ae77Skettenis * doc/gdb.texinfo: minor rewordings, crossref to ptype from print, 2534*b725ae77Skettenis more on printsyms. 2535*b725ae77Skettenis 2536*b725ae77Skettenis * doc/Makefile, Makefile.in: generate "gdb-all.texi" rather than 2537*b725ae77Skettenis "gdb-all.texinfo" 2538*b725ae77Skettenis 2539*b725ae77Skettenis * doc/rdl-apps.texi: renamed from rdl-apps.texinfo 2540*b725ae77Skettenis 2541*b725ae77Skettenis * Makefile.in, doc/Makefile, doc/gdb.texinfo: 2542*b725ae77Skettenis reflect above name change 2543*b725ae77Skettenis 2544*b725ae77Skettenis * WHATS.NEW: correct pointer to refcard. 2545*b725ae77Skettenis 2546*b725ae77Skettenis * doc/gdb.texinfo: update New Features, Installing 2547*b725ae77Skettenis 2548*b725ae77Skettenis * doc/gdbint.texinfo: add short description of configure +template 2549*b725ae77Skettenis 2550*b725ae77SkettenisFri Aug 23 11:46:08 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2551*b725ae77Skettenis 2552*b725ae77Skettenis * doc/gdb.texinfo: update, fix bugs in "Installing" appendix 2553*b725ae77Skettenis 2554*b725ae77SkettenisFri Aug 23 01:02:00 1991 John Gilmore (gnu at cygint.cygnus.com) 2555*b725ae77Skettenis 2556*b725ae77Skettenis * Makefile.in: Add config.sub, make doc/rdl-apps.texinfo for 2557*b725ae77Skettenis tar file, add dependencies for referenced doc files. 2558*b725ae77Skettenis 2559*b725ae77SkettenisThu Aug 22 22:17:06 1991 Stu Grossman (grossman at cygint.cygnus.com) 2560*b725ae77Skettenis 2561*b725ae77Skettenis * coffread.c, symfile.c, stack.c: saberized. 2562*b725ae77Skettenis 2563*b725ae77SkettenisThu Aug 22 16:20:27 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2564*b725ae77Skettenis 2565*b725ae77Skettenis * doc/refcard.tex: permuted Essential Commands sec 2566*b725ae77Skettenis 2567*b725ae77Skettenis * doc/gdb.texinfo: new C++ chapter; revised installation appendix; 2568*b725ae77Skettenis new doc for 2569*b725ae77Skettenis set/show symbol-reloading 2570*b725ae77Skettenis default set complaints 0 2571*b725ae77Skettenis info all-registers 2572*b725ae77Skettenis RET-repeat disabled after prompted long displays 2573*b725ae77Skettenis processID (attach) interpretation of 2nd GDB cmdline arg 2574*b725ae77Skettenis 2575*b725ae77SkettenisThu Aug 22 14:05:47 1991 Stu Grossman (grossman at cygint.cygnus.com) 2576*b725ae77Skettenis 2577*b725ae77Skettenis * expread.y, coffread.c, dbxread.c, target.c, mem-break.c, 2578*b725ae77Skettenis cplus-dem.c, values.c, valprint.c, symfile.c, remote.c, 2579*b725ae77Skettenis breakpoint.c, main.c: lint. 2580*b725ae77Skettenis 2581*b725ae77SkettenisThu Aug 22 02:02:26 1991 John Gilmore (gnu at cygint.cygnus.com) 2582*b725ae77Skettenis 2583*b725ae77Skettenis Install new configuration scheme for GDB and friends. 2584*b725ae77Skettenis 2585*b725ae77Skettenis * config.sub: Translate ordinary names to three-part names. 2586*b725ae77Skettenis * configure: Use three-part names internally. 2587*b725ae77Skettenis * configure.in: Translate three-part names to filenames. 2588*b725ae77Skettenis 2589*b725ae77Skettenis * README, WHATS.NEW: Update for gdb-4.0. 2590*b725ae77Skettenis * Makefile.in: Roll VERSION to 3.99. 2591*b725ae77Skettenis 2592*b725ae77SkettenisWed Aug 21 18:21:09 1991 John Gilmore (gnu at cygint.cygnus.com) 2593*b725ae77Skettenis 2594*b725ae77Skettenis * infptrace.c (KERNEL_U_ADDR_BSD): Include a.out.gnu.h. 2595*b725ae77Skettenis * i960-tdep.c, m68k-tdep.c, sparc-tdep.c, tm-i960.h, 2596*b725ae77Skettenis tm-m68k.h, remote-nindy.c: Change ext_format_XXX structs 2597*b725ae77Skettenis to single structures rather than arrays; when passing 2598*b725ae77Skettenis their address, use &. This avoids trouble with bdead compilers. 2599*b725ae77Skettenis * mcheck.c: Don't include <stdlib.h>; just declare "void abort();" 2600*b725ae77Skettenis instead. This avoids portability headaches. 2601*b725ae77Skettenis * mips-tdep.c (mips_do_registers_info): Only print FP regs if 2602*b725ae77Skettenis asked to. 2603*b725ae77Skettenis * source.c (open_source_file): Avoid ANSI const bdeath by 2604*b725ae77Skettenis skipping declaration and then casting result value. 2605*b725ae77Skettenis * tm-hp300bsd.h: Clarify comment. 2606*b725ae77Skettenis * utils.c (strstr): Result is const char *; ANSI bdeath. 2607*b725ae77Skettenis * xm-hp300bsd.h: Define HOST_BYTE_ORDER. Redefine INT_MIN, 2608*b725ae77Skettenis since system include file defines it differently from "defs.h", 2609*b725ae77Skettenis though the two are equivalent for our purposes. 2610*b725ae77Skettenis * tconfig/hp300bsd: Add m68k-tdep.o. 2611*b725ae77Skettenis 2612*b725ae77SkettenisTue Aug 20 16:01:11 1991 John Gilmore (gnu at cygint.cygnus.com) 2613*b725ae77Skettenis 2614*b725ae77Skettenis * tconfig/sun*4: Remove warnings about system assembler. 2615*b725ae77Skettenis 2616*b725ae77SkettenisMon Aug 19 13:44:46 1991 John Gilmore (gnu at cygint.cygnus.com) 2617*b725ae77Skettenis 2618*b725ae77Skettenis * mcheck.c: Avoid warning about undeclared abort fn. 2619*b725ae77Skettenis * tm-sparc.h (PC_ADJUST): Avoid calling error() from this; 2620*b725ae77Skettenis it causes recursive calls to error() when used in cleanups. 2621*b725ae77Skettenis To do so requires that we make it a function, so we do. 2622*b725ae77Skettenis * sparc-tdep.c (sparc_pc_adjust): New implem of PC_ADJUST. 2623*b725ae77Skettenis * utils.c (do_cleanups): Remove the current cleanup from the 2624*b725ae77Skettenis chain *before* calling it, in case error() is called from it. 2625*b725ae77Skettenis The result won't be pretty, but won't be an infinite loop either. 2626*b725ae77Skettenis 2627*b725ae77SkettenisMon Aug 19 00:41:04 1991 Michael Tiemann (tiemann at cygint.cygnus.com) 2628*b725ae77Skettenis 2629*b725ae77Skettenis * dbxread.c (read_struct_type): Grok anon structs for C++. 2630*b725ae77Skettenis (vb_name, vptr_name): Null terminate these strings. 2631*b725ae77Skettenis 2632*b725ae77SkettenisFri Aug 16 08:31:03 1991 John Gilmore (gnu at cygint.cygnus.com) 2633*b725ae77Skettenis 2634*b725ae77Skettenis Minor bug fixes from BSD Net2 gdb: 2635*b725ae77Skettenis 2636*b725ae77Skettenis * blockframe.c (get_prev_frame_info): If FRAME_CHAIN_COMBINE 2637*b725ae77Skettenis returns 0, there is no previous frame. 2638*b725ae77Skettenis * breakpoint.c (commands_command): If !from_tty, don't call 2639*b725ae77Skettenis input_from_terminal_p(). 2640*b725ae77Skettenis * dbxread.c (record_misc_function): Speed up slightly. 2641*b725ae77Skettenis (compare_psymbols): Ditto. 2642*b725ae77Skettenis * infcmd.c (do_registers_info): Take a second argument to 2643*b725ae77Skettenis determine whether to print float registers. "info registers" 2644*b725ae77Skettenis does not do so anymore. "info all-registers" does, now. 2645*b725ae77Skettenis * mips-tdep.c, pyr-tdep.c (xxx_do_registers_info): Take second 2646*b725ae77Skettenis arg and ignore it. 2647*b725ae77Skettenis * tm-mips.h, tm-pyr.h (DO_REGISTERS_INFO): Pass second arg. 2648*b725ae77Skettenis * inflow.c (initialize_inflow): Set tflags_ours correctly. 2649*b725ae77Skettenis 2650*b725ae77Skettenis Other fixes: 2651*b725ae77Skettenis 2652*b725ae77Skettenis * breakpoint.c (bpstat_do_actions): Use a cleanup to restore 2653*b725ae77Skettenis executing_breakpoint_commands if we are interrupted by error. 2654*b725ae77Skettenis * coffread.c (init_lineno): Avoid problem with zero-sized linetab 2655*b725ae77Skettenis versus malloc/free. From: john@labtam.labtam.oz.au (John Carey). 2656*b725ae77Skettenis * core.c (solib_add_stub, core_open): Call SOLIB_ADD inside a 2657*b725ae77Skettenis catch_errors() so we can setup the frame regardless of whether 2658*b725ae77Skettenis the shared libs work. 2659*b725ae77Skettenis * ieee-float.c (double_to_ieee_extended): Get exponent from 2660*b725ae77Skettenis right place in little-endian systems. From John Carey. 2661*b725ae77Skettenis 2662*b725ae77SkettenisThu Aug 15 18:43:57 1991 John Gilmore (gnu at cygint.cygnus.com) 2663*b725ae77Skettenis 2664*b725ae77Skettenis * main.c: Remove unused terminating_signals and catch_termination(). 2665*b725ae77Skettenis (long_options): Terminate with a zero element. 2666*b725ae77Skettenis [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.] 2667*b725ae77Skettenis (gdb_readline): Make call-compatible with readline. 2668*b725ae77Skettenis (init_signals): Improve comments re vfork vs. signal. 2669*b725ae77Skettenis 2670*b725ae77Skettenis * utils.c (prompt_for_continue): Use new gdb_readline(). 2671*b725ae77Skettenis If we prompt for continuation, we don't let CR repeat the previous 2672*b725ae77Skettenis command, once we get back to a prompt. It's too easy to keep 2673*b725ae77Skettenis hitting CR, expecting "--more--" prompts, and have some long 2674*b725ae77Skettenis command start repeating on you. 2675*b725ae77Skettenis 2676*b725ae77SkettenisTue Aug 13 16:17:56 1991 John Gilmore (gnu at cygint.cygnus.com) 2677*b725ae77Skettenis 2678*b725ae77Skettenis * blockframe.c (frameless_look_for_prologue): Speed up by 2679*b725ae77Skettenis calling SKIP_PROLOGUE_FRAMELESS_P if it's defined. 2680*b725ae77Skettenis * tm-sparc.h (SKIP_PROLOGUE, SKIP_PROLOGUE_FRAMELESS_P): 2681*b725ae77Skettenis Define two variants, one faster. 2682*b725ae77Skettenis * sparc-tdep.c (sparc_frame_chain): Use target_read_memory 2683*b725ae77Skettenis and return zero, rather than giving an error. 2684*b725ae77Skettenis (setup_arbitrary_frame): Initialize the PC in the new frame. 2685*b725ae77Skettenis (skip_prologue): Add a second arg saying whether we're just 2686*b725ae77Skettenis checking for a frameless function or not. 2687*b725ae77Skettenis 2688*b725ae77Skettenis * core.c (core_open, core_close, core_xfer_memory): Move 2689*b725ae77Skettenis section table pointers and bfd* into the target_ops. 2690*b725ae77Skettenis (core_open): Allow errors in shared lib reading, etc. 2691*b725ae77Skettenis (core_files_info): Describe shared library sections. 2692*b725ae77Skettenis 2693*b725ae77Skettenis * exec.c (exec_open, exec_close, exec_xfer_memory, xfer_memory, 2694*b725ae77Skettenis exec_files_info, set_section_command): Move section table 2695*b725ae77Skettenis pointers and bfd* into the target_ops. 2696*b725ae77Skettenis (add_to_section_table): Add BFD to section table. 2697*b725ae77Skettenis 2698*b725ae77Skettenis * target.c (target_xfer_memory, target_info): Pass target to 2699*b725ae77Skettenis xfer_memory and target_info functions. 2700*b725ae77Skettenis * target.h: '' 2701*b725ae77Skettenis 2702*b725ae77Skettenis * gdbcore.h: Move struct section_table. 2703*b725ae77Skettenis * target.h: New home of struct section_table. 2704*b725ae77Skettenis 2705*b725ae77Skettenis * solib.c (solib_add): New argument is the target_ops whose 2706*b725ae77Skettenis section list is to be added to, if any. Reallocate the 2707*b725ae77Skettenis sections in that target to add any that come from shared libs. 2708*b725ae77Skettenis (throughout) so_sections renamed to sections. 2709*b725ae77Skettenis (solib_xfer_memory): Deleted. 2710*b725ae77Skettenis * tm-sunos.h (SOLIB_ADD): Add target argument. 2711*b725ae77Skettenis (SOLIB_XFER_MEMORY): Delete. 2712*b725ae77Skettenis 2713*b725ae77Skettenis * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c, 2714*b725ae77Skettenis remote-vx.c, remote.c, target.c, target.h: Remove add_syms vector 2715*b725ae77Skettenis from target_ops. It's the same on all targets. Add two section 2716*b725ae77Skettenis pointers to target_ops. 2717*b725ae77Skettenis 2718*b725ae77Skettenis * stack.c (find_relative_frame): Dump ancient algorithm for 2719*b725ae77Skettenis "down", just use handy "next" pointers. 2720*b725ae77Skettenis (frame_command): Don't error if there is no stack; let user 2721*b725ae77Skettenis set one. 2722*b725ae77Skettenis 2723*b725ae77Skettenis * inflow.c (new_tty_prefork, new_tty): New prefork routine 2724*b725ae77Skettenis modifies static state in the parent process; new_tty itself 2725*b725ae77Skettenis runs in the child and modifies the child's file descriptors 2726*b725ae77Skettenis to match the saved static state. 2727*b725ae77Skettenis * infrun.c (child_create_inferior): Call new_tty_prefork, 2728*b725ae77Skettenis fork, then new_tty. 2729*b725ae77Skettenis 2730*b725ae77Skettenis * infptrace.c (child_xfer_memory): Add ignored target arg. 2731*b725ae77Skettenis * remote-eb.c (eb_xfer_inferior_memory): '' 2732*b725ae77Skettenis * remote-nindy.c (nindy_xfer_inferior_memory): '' 2733*b725ae77Skettenis * remote-vx.c (vx_xfer_memory): '' 2734*b725ae77Skettenis * remote.c (remote_xfer_memory): ''. Rename from 2735*b725ae77Skettenis remote_xfer_inferior_memory. 2736*b725ae77Skettenis 2737*b725ae77Skettenis * main.c (main): Only try to attach "corefile" argument if 2738*b725ae77Skettenis it starts with a digit. 2739*b725ae77Skettenis 2740*b725ae77Skettenis * symfile.c (symbol_reloading): New "set/show" variable. 2741*b725ae77Skettenis (symbol_file_add): Shorten message about symbol reading. 2742*b725ae77Skettenis (add_symbol_file_command): Merge with add_syms_addr_command, 2743*b725ae77Skettenis since this should work on all targets now. 2744*b725ae77Skettenis (stop_whining): Default to zero, to shut up complaints 2745*b725ae77Skettenis about bad symbol tables on many systems. 2746*b725ae77Skettenis (free_named_symtabs): Just exit unless symbol_reloading. 2747*b725ae77Skettenis 2748*b725ae77Skettenis * xm-sun3os4.h, xm-sun4os4.h: Define BROKEN_LARGE_ALLOCA, 2749*b725ae77Skettenis and add comment explaining shared library screw. 2750*b725ae77Skettenis 2751*b725ae77Skettenis * source.c: #if defined => #ifdef. 2752*b725ae77Skettenis 2753*b725ae77SkettenisThu Aug 8 12:23:19 1991 John Gilmore (gnu at cygint.cygnus.com) 2754*b725ae77Skettenis 2755*b725ae77Skettenis * doc/gdbint.texinfo: Improve doc on porting to new OS's. 2756*b725ae77Skettenis 2757*b725ae77SkettenisTue Aug 6 17:16:15 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2758*b725ae77Skettenis 2759*b725ae77Skettenis * doc/rdl-apps.texinfo: provide default readline-appendix finder 2760*b725ae77Skettenis (doc/Makefile knows how to make one for local config) 2761*b725ae77Skettenis 2762*b725ae77Skettenis * Makefile.in: use doc/Makefile for doc targets 2763*b725ae77Skettenis 2764*b725ae77Skettenis * doc/Makefile: GDB documentation now has its own Makefile 2765*b725ae77Skettenis doc/refcard.tex: renamed from "gdbrc.tex" 2766*b725ae77Skettenis doc/gdbint.texinfo: add markup in "Cleanups" chapter 2767*b725ae77Skettenis 2768*b725ae77Skettenis 2769*b725ae77SkettenisFri Aug 2 00:13:06 1991 John Gilmore (gnu at cygint.cygnus.com) 2770*b725ae77Skettenis 2771*b725ae77Skettenis * values.c (baseclass_addr): When reading target memory, use the 2772*b725ae77Skettenis length of the basetype, not the upper type. We've only malloc'd 2773*b725ae77Skettenis enough space for the basetype, leading to errors in free(). 2774*b725ae77Skettenis 2775*b725ae77Skettenis * expprint.c (print_subexp): Print UNOP_MEMVAL of an OP_LONG that 2776*b725ae77Skettenis ends up as a function specially, since we know the actual type of 2777*b725ae77Skettenis the pointed-to address. This (somewhat) fixes display of 2778*b725ae77Skettenis expressions that include misc_function_vector names. Try `cond 1 2779*b725ae77Skettenis !strcmp("a","b")' then `i b'. 2780*b725ae77Skettenis 2781*b725ae77Skettenis * infrun.c: Move DO_DEFERRED_STORES from proceed() to resume(). 2782*b725ae77Skettenis The child can be proceeded from inside wait_for_inferior in 2783*b725ae77Skettenis evaluating breakpoint conditions, and DO_DEFERRED_STORES was 2784*b725ae77Skettenis getting skipped in that case. 2785*b725ae77Skettenis 2786*b725ae77Skettenis * expprint.c (print_subexp): Use filtered output, since the 2787*b725ae77Skettenis subroutines we call use it, otherwise the output is horribly 2788*b725ae77Skettenis mangled, since output of wrappable stuff comes out late. 2789*b725ae77Skettenis 2790*b725ae77Skettenis * Makefile.in: Bump VERSION to 3.98.1 2791*b725ae77Skettenis 2792*b725ae77Skettenis * infrun.c (child_create_process): Use execlp to find the 2793*b725ae77Skettenis shell to exec our target program. This requires some fiddling 2794*b725ae77Skettenis with `environ' since there is no execlpe(). 2795*b725ae77Skettenis 2796*b725ae77SkettenisThu Aug 1 15:35:17 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 2797*b725ae77Skettenis 2798*b725ae77Skettenis * Makefile.in, doc/gdbrc.tex, doc/rc-* (new files): 2799*b725ae77Skettenis Minor rearrangement of refcard permits two new make targets-- 2800*b725ae77Skettenis gdbrc.dvi DVI output for refcard, using CM fonts 2801*b725ae77Skettenis gdbrc.ps PostScript refcard, using PS fonts 2802*b725ae77Skettenis 2803*b725ae77SkettenisWed Jul 31 16:46:21 1991 John Gilmore (gnu at cygint.cygnus.com) 2804*b725ae77Skettenis 2805*b725ae77Skettenis * GDB-3.98 release. 2806*b725ae77Skettenis 2807*b725ae77Skettenis * TODO, Projects, WHATS.NEW, README: Update for gdb-3.98. 2808*b725ae77Skettenis * Makefile.in (gdb-all.texinfo): Avoid touching file if M4 dies. 2809*b725ae77Skettenis 2810*b725ae77SkettenisWed Jul 31 16:35:58 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2811*b725ae77Skettenis 2812*b725ae77Skettenis * doc/gdb.texinfo: last changes for release. 2813*b725ae77Skettenis Minor typo and formatting fixes; incorporated most fixes remaining from 2814*b725ae77Skettenis filed mail commenting on earlier drafts. 2815*b725ae77Skettenis 2816*b725ae77Skettenis Added warnings: pipes don't work in run command; 2817*b725ae77Skettenis conditions are converse of assertions; 2818*b725ae77Skettenis step over fn without debug info goes to next fn; 2819*b725ae77Skettenis vars may have "wrong" values near fn entrance, exit 2820*b725ae77Skettenis 2821*b725ae77Skettenis Added example from Kingston on printing repeated nonadjacent values 2822*b725ae77Skettenis 2823*b725ae77Skettenis Added explicit mention that in Emacs gdb mode C-c and C-z are like 2824*b725ae77Skettenis shell mode for signals 2825*b725ae77Skettenis 2826*b725ae77Skettenis Renamed "Stepping and Continuing" to "Continuing and Stepping" so it 2827*b725ae77Skettenis doesn't sound so much like its parent "Stopping and Continuing"; also 2828*b725ae77Skettenis moved entries on continue to top of section, so they don't get lost. 2829*b725ae77Skettenis 2830*b725ae77Skettenis Improved installation directions in appendix, added manual formatting 2831*b725ae77Skettenis instructions 2832*b725ae77Skettenis 2833*b725ae77SkettenisTue Jul 30 17:26:39 1991 John Gilmore (gnu at cygint.cygnus.com) 2834*b725ae77Skettenis 2835*b725ae77Skettenis * configure.in: Remove xm.h and tm.h even if we aren't linking 2836*b725ae77Skettenis new ones, so "./configure sun4; ./configure none" does the right 2837*b725ae77Skettenis thing. Assume that alldeps.mak and depend are already built in 2838*b725ae77Skettenis srcdir, and avoid running "make" (particularly "make depend", 2839*b725ae77Skettenis which involves "gcc") from inside configure. Build Makefile 2840*b725ae77Skettenis directly rather than building Makefile.conf first. 2841*b725ae77Skettenis * configure: Regenerate with above changes. 2842*b725ae77Skettenis * Makefile.in: Use $(BISON) to find bison. Roll VERSION 2843*b725ae77Skettenis to 3.98. Revise gdb.tar.Z procedure to produce a file 2844*b725ae77Skettenis called gdb-$(VERSION).tar.Z but which unpacks into a 2845*b725ae77Skettenis directory called "gdb". Move non-source files out of 2846*b725ae77Skettenis $(SFILES_SUBDIR). Pretty up alldeps.mak with comments. 2847*b725ae77Skettenis (depend): Don't try to do "gcc expread.y". 2848*b725ae77Skettenis (expread.o): Update dependencies by hand. 2849*b725ae77Skettenis 2850*b725ae77SkettenisMon Jul 29 15:21:09 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2851*b725ae77Skettenis 2852*b725ae77Skettenis * doc/gdb.texinfo: 2853*b725ae77Skettenis Fixed a variety of small typos that prevented info from formatting 2854*b725ae77Skettenis cleanly; altered too-long heading for GPL Appendix, as discussed 2855*b725ae77Skettenis w/RMS; Changed date on cover to July 91. 2856*b725ae77Skettenis 2857*b725ae77SkettenisFri Jul 26 13:20:02 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2858*b725ae77Skettenis 2859*b725ae77Skettenis * doc/gdb.texinfo: 2860*b725ae77Skettenis (1) Applied some fixes due to comments from Larry Breed (easier ones 2861*b725ae77Skettenis through chapsec 5.2) 2862*b725ae77Skettenis (2) Eliminated use of @footnote---had my doubts about it anyways, and 2863*b725ae77Skettenis it's broken in latest texinfo 2864*b725ae77Skettenis (3) Introduced *some* use of [] for optional arguments, where 2865*b725ae77Skettenis explanation is not simpler by listing cmd w arg and cmd w/out arg 2866*b725ae77Skettenis separately. Still not using @deffn. 2867*b725ae77Skettenis (4) Dropped in GPL-2. NOTE: one of GPL-2 or texinfo is broken; a 2868*b725ae77Skettenis couple of headings are too long. Need patches to texinfo or revision 2869*b725ae77Skettenis to GPL-2. 2870*b725ae77Skettenis 2871*b725ae77Skettenis * Partial update to README (which still needs work for this 2872*b725ae77Skettenis release!): (1) use of configure corrected for new script, 2873*b725ae77Skettenis (2) "make gdb.dvi" and "make gdb.info" mentioned. 2874*b725ae77Skettenis 2875*b725ae77SkettenisWed Jul 24 06:44:02 1991 John Gilmore (gnu at cygint.cygnus.com) 2876*b725ae77Skettenis 2877*b725ae77Skettenis * symtab.c (lookup_symbol): Don't complain right off about 2878*b725ae77Skettenis no debug symbols; use the misc function vector first. 2879*b725ae77Skettenis (list_symbols): Use misc function vector to find symbols 2880*b725ae77Skettenis that don't have debug info, and print them. 2881*b725ae77Skettenis (find_pc_symtab): Temporarily avoid fatal() when psymtab 2882*b725ae77Skettenis PC range doesn't match symtab PC range, as it does on the 2883*b725ae77Skettenis MIPS because our symtab reading isn't perfect. 2884*b725ae77Skettenis 2885*b725ae77Skettenis * dbxread.c (dbx_symfile_read): Make warning about 2886*b725ae77Skettenis "no debug symbols" slightly nicer. 2887*b725ae77Skettenis 2888*b725ae77Skettenis * source.c (select_source_symtab): If "main" symbol exists, 2889*b725ae77Skettenis but decode_line_spec can't find line info, don't just return 2890*b725ae77Skettenis a zero; try other source symtabs or give an error. 2891*b725ae77Skettenis 2892*b725ae77Skettenis * mipsread.c (parse_partial_symbols): Sort the psymtabs by 2893*b725ae77Skettenis their low addresses first, then rip through fixing high addrs. 2894*b725ae77Skettenis 2895*b725ae77Skettenis * ns32k-opcode.h (sfsr): Bugfix from Rune Nerg}rd, 2896*b725ae77Skettenis <runene@ifi.uio.no>. 2897*b725ae77Skettenis (NS32K_SVC_IMMED_OPERANDS): Reverse the #ifndef. 2898*b725ae77Skettenis 2899*b725ae77SkettenisTue Jul 23 18:52:43 1991 Roland H. Pesch (pesch at cygint.cygnus.com) 2900*b725ae77Skettenis 2901*b725ae77Skettenis * Minor, mostly mechanical, cleanup of doc subdir for clean 2902*b725ae77Skettenis makeinfo'ing and TeXing; also ensured gdb-all.texinfo (post-m4) 2903*b725ae77Skettenis and gdb.info (post- texinfo2 makeinfo) generated for distribution. 2904*b725ae77Skettenis 2905*b725ae77SkettenisSun Jul 21 03:54:52 1991 John Gilmore (gnu at cygint.cygnus.com) 2906*b725ae77Skettenis 2907*b725ae77Skettenis Mostly MIPS and general symbol-reading fixups. 2908*b725ae77Skettenis 2909*b725ae77Skettenis * doc/gdbint.texinfo: Add documentation on symbol-reading 2910*b725ae77Skettenis interface. 2911*b725ae77Skettenis 2912*b725ae77Skettenis * mipsread.c: Remove kludges around #include "ecoff.h". 2913*b725ae77Skettenis Remove redefinitions of a_magic, etc, no longer used. 2914*b725ae77Skettenis (parse_symbol, ): Convert "Internal:" printfs to complain()ts. 2915*b725ae77Skettenis Fix global overview comments to match symfile.c protocol. 2916*b725ae77Skettenis (mipscoff_new_init): Eliminate cur_hdr if we have one. 2917*b725ae77Skettenis (mipscoff_symfile_read): Eliminate unused code. Avoid 2918*b725ae77Skettenis sorting all the symtabs, when all we have read here is psymtabs. 2919*b725ae77Skettenis The symtabs are sorted as they are created anyway. Tell 2920*b725ae77Skettenis condense_misc_bunches whether we're mainline. 2921*b725ae77Skettenis (psymtab_to_symtab_1): Pass filename when recursing, to make 2922*b725ae77Skettenis stack trace more informative. 2923*b725ae77Skettenis (parse_partial_symbols): Assume cur_hdr as argument. 2924*b725ae77Skettenis (read_mips_symtab): Don't clobber cur_hdr, so it can be freed. 2925*b725ae77Skettenis Pass cur_hdr implicitly to parse_partial_symbols. Avoid checking 2926*b725ae77Skettenis the TYPE_NAME of char *, since that's done in symfile.c. 2927*b725ae77Skettenis (free_numargs, parse_symbol, add_symbol, add_block, 2928*b725ae77Skettenis shrink_linetable): Declare these fns void. 2929*b725ae77Skettenis (upgrade_type): Convert tree of if's to switch. Clean up 2930*b725ae77Skettenis bogus "off == 0" handling with a complaint. Avoid setting 2931*b725ae77Skettenis field bitpos and bitsize of array with lower and upper bounds. 2932*b725ae77Skettenis Check specified bitsize of elements against their actual type's 2933*b725ae77Skettenis bitsize, and complain if different. Complain about unknown 2934*b725ae77Skettenis type qualifiers. 2935*b725ae77Skettenis (parse_fdr): Don't assume sizeof(char *) == sizeof (struct *). 2936*b725ae77Skettenis (psymtab_to_symtab_1): Print names of subsidiary files that 2937*b725ae77Skettenis are being read in. FIXME, we read far too many files. This code 2938*b725ae77Skettenis is not the problem, the problem is in parse_fdr where the psymtabs 2939*b725ae77Skettenis are set up. 2940*b725ae77Skettenis (cross_ref): Result should indicate that we used one aux entry 2941*b725ae77Skettenis normally, or two if we encountered a "next" entry. This used 2942*b725ae77Skettenis to leave the caller pointing at the wrong aux entry. 2943*b725ae77Skettenis (add_symbol): If overflowed cur_block, reallocate it larger, 2944*b725ae77Skettenis chase all pointers to it, and complain(), rather than clobber memory. 2945*b725ae77Skettenis (shrink_block): Use xrealloc rather than xmalloc-and-copy. 2946*b725ae77Skettenis (new_field): Only allocate one field initially, not two. 2947*b725ae77Skettenis Pull ++ out of macro argument. Simplify. 2948*b725ae77Skettenis (_initialize_mipsread): Avoid initialization of importd 2949*b725ae77Skettenis global_psymbols and static_psymbols. 2950*b725ae77Skettenis 2951*b725ae77Skettenis * symfile.c (psymtab_to_symtab): Depend on XXX_psymtab_to_symtab 2952*b725ae77Skettenis to properly set pst->symtab; avoid searching for it. 2953*b725ae77Skettenis (symfile_fns): Improve comments, add a FIXME. 2954*b725ae77Skettenis * dbxread.c: Update comments to reflect symfile protocol. 2955*b725ae77Skettenis (read_ofile_symtab, end_symtab): Return the symtab. 2956*b725ae77Skettenis (psymtab_to_symtab_1): Set pst->symtab. 2957*b725ae77Skettenis 2958*b725ae77Skettenis * coffread.c (coff_symfile_read): tell condense_misc_bunches 2959*b725ae77Skettenis whether we're mainline. 2960*b725ae77Skettenis 2961*b725ae77Skettenis * symfile.h (sym_fns): Remove unused sym_discard member. 2962*b725ae77Skettenis * coffread.c, mipsread.c, dbxread.c: Remove XXX_symfile_discard. 2963*b725ae77Skettenis 2964*b725ae77Skettenis * mtrace.c (mtrace): Take effect if mallwatch is set, even if 2965*b725ae77Skettenis the environment variable is not. 2966*b725ae77Skettenis * infcmd.c (finish_command): Use filtered printfs. 2967*b725ae77Skettenis * cplus-dem.c: Add struct tags to a few unnamed structs. 2968*b725ae77Skettenis * valops.c (value_coerce_array): Improve comments. 2969*b725ae77Skettenis * valprint.c (type_print_varspec_suffix): Print array size only 2970*b725ae77Skettenis if greater than zero. 2971*b725ae77Skettenis * m88k-tdep.c: Shift some lines left by one space, that had 2972*b725ae77Skettenis apparently been trashed at some point. 2973*b725ae77Skettenis * TODO: More things to do, a few got done. 2974*b725ae77Skettenis 2975*b725ae77SkettenisThu Jul 18 22:46:05 1991 John Gilmore (gnu at cygint.cygnus.com) 2976*b725ae77Skettenis 2977*b725ae77Skettenis * symtab.h (LOC_EXTERNAL): Eliminate in favor of LOC_STATIC. 2978*b725ae77Skettenis (ldsymoff, ldsymlen, globals_offset, statics_offset): Improve 2979*b725ae77Skettenis comments. 2980*b725ae77Skettenis * dbxread.c (read_dbx_symtab): LOC_EXTERNAL -> LOC_STATIC. 2981*b725ae77Skettenis * expread.y, findvar.c, symmisc.c: Ditto. 2982*b725ae77Skettenis * printcmd.c (address_info): Update printed forms of LOC_ 2983*b725ae77Skettenis symbols. Elim LOC_EXTERNAL. 2984*b725ae77Skettenis (print_frame_args): Keep track of param stack offsets before 2985*b725ae77Skettenis re-looking up to find the local register param is kept in. 2986*b725ae77Skettenis 2987*b725ae77Skettenis * mipsread.c: Use <symconst.h> and <sym.h> rather than <syms.h>. 2988*b725ae77Skettenis Further integration of mipsread into gdb. Eliminate unused 2989*b725ae77Skettenis routines, duplicate declarations. Handle static symbols in 2990*b725ae77Skettenis psymtabs as well as external symbols. When reading symtabs, 2991*b725ae77Skettenis insert symbols into the correct block (global, static, or a local 2992*b725ae77Skettenis block). 2993*b725ae77Skettenis (read_mips_symtab, parse_partial_symbols): Don't pass useless 2994*b725ae77Skettenis "incremental" arg. 2995*b725ae77Skettenis (mipscoff_symfile_read): Don't call select_source_symtab. 2996*b725ae77Skettenis (parse_symbol): Use SYMBOL_VALUE_ADDRESS where appropriate, 2997*b725ae77Skettenis rather than SYMBOL_VALUE. 2998*b725ae77Skettenis (parse_external): Comment clobbering of top_stack. 2999*b725ae77Skettenis (parse_partial_symbols): Update comments. Allocate and parse 3000*b725ae77Skettenis static symbols as well as external symbols. FIXME, enum values 3001*b725ae77Skettenis are not handled in this pass, but should be. Inline new_psymbol. 3002*b725ae77Skettenis Use SYMBOL_VALUE_ADDRESS. 3003*b725ae77Skettenis (psymtab_to_symtab_1): Read symbols into global static block 3004*b725ae77Skettenis by default (until enter some function's local block context). 3005*b725ae77Skettenis (sort_blocks): Clean up STATIC_BLOCK as well as GLOBAL_BLOCK. 3006*b725ae77Skettenis (destroy_all_symtabs, new_psymbol): Eliminate, unused. 3007*b725ae77Skettenis 3008*b725ae77Skettenis * source.c (select_source_symtab): Select a source symtab 3009*b725ae77Skettenis from either the symtabs or, failing that, the psymtabs. 3010*b725ae77Skettenis (list_command): Update error message. 3011*b725ae77Skettenis (forward_search_command, reverse_search_command): Use getc, not 3012*b725ae77Skettenis fgetc, for speed. FIXME, add comment about buffers that die if 3013*b725ae77Skettenis overrun by long line. 3014*b725ae77Skettenis 3015*b725ae77Skettenis * values.c (unpack_field_as_long, modify_field): Avoid shifting 3016*b725ae77Skettenis by an entire word, which is not portable, if we have a 32-bit 3017*b725ae77Skettenis field. (Code in dbxread.c already turns such bitfields, if 3018*b725ae77Skettenis aligned, into ordinary ints, but fixing this will help for other 3019*b725ae77Skettenis symbol formats and for future changes.) 3020*b725ae77Skettenis * core.c (core_open): Handle ANSI const brain death. 3021*b725ae77Skettenis * utils.c (vprintf): Fix varargs typo. 3022*b725ae77Skettenis 3023*b725ae77SkettenisSun Jul 14 00:42:53 1991 John Gilmore (gnu at cygint.cygnus.com) 3024*b725ae77Skettenis 3025*b725ae77Skettenis * findvar.c (find_var_value): Handle &function better. 3026*b725ae77Skettenis * TODO: Document work needed on &fn and &array. 3027*b725ae77Skettenis * printcmd.c (print_address_symbolic): New arg is the prefix 3028*b725ae77Skettenis to print if a name is printed. 3029*b725ae77Skettenis (print_address_demangle): Honor "set print address" now. 3030*b725ae77Skettenis Use new arg above to improve spacing of output. 3031*b725ae77Skettenis * valprint.c (val_print): When printing function pointers, 3032*b725ae77Skettenis print symbolic form too. 3033*b725ae77Skettenis * breakpoint.c (breakpoint_1): Use new print_address_symbolic. 3034*b725ae77Skettenis 3035*b725ae77SkettenisMon Jul 8 19:02:46 1991 John Gilmore (gnu at cygint.cygnus.com) 3036*b725ae77Skettenis 3037*b725ae77Skettenis * core.c (memory_error): Reword error msg to mislead less. 3038*b725ae77Skettenis 3039*b725ae77Skettenis * mips-pinsn.c (print_insn_arg 'd'): Print $ with reg name. 3040*b725ae77Skettenis 3041*b725ae77Skettenis * mipsread.c (read_mips_symtab, read_the_mips_symtab, 3042*b725ae77Skettenis parse_partial_symbols): Use newer BFD internals (external_filehdr 3043*b725ae77Skettenis and external_aouthdr), byte-swap the fields that we care about 3044*b725ae77Skettenis before using them, and make the file header data local to 3045*b725ae77Skettenis read_the_mips_symtab rather than global. 3046*b725ae77Skettenis 3047*b725ae77SkettenisSat Jul 6 01:34:15 1991 John Gilmore (gnu at cygint.cygnus.com) 3048*b725ae77Skettenis 3049*b725ae77Skettenis * ns32k-opcode.h (movmw, movmd): Fix opcodes. Bug fix 3050*b725ae77Skettenis from Rune Nerg}rd <runene@ifi.uio.no> on 5 Jul 1991. 3051*b725ae77Skettenis 3052*b725ae77Skettenis * main.c (command_line_input): Flush stdout and stderr 3053*b725ae77Skettenis before every call to readline. This reportedly fixes a bug 3054*b725ae77Skettenis that comes up in Sys V running emacs-gdb and/or xxgdb, 3055*b725ae77Skettenis when stdin/out are pipes or sockets. 3056*b725ae77Skettenis 3057*b725ae77SkettenisThu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com) 3058*b725ae77Skettenis 3059*b725ae77Skettenis * configure.in, Makefile.in: Avoid rebuilding "depend" as much. 3060*b725ae77Skettenis Avoid declaring Makefile dependencies, because GNU Make stupidly 3061*b725ae77Skettenis tries to update it if we do. 3062*b725ae77Skettenis 3063*b725ae77Skettenis * coffread.c: Revise for minor changes to bfd internal coff 3064*b725ae77Skettenis indexes. 3065*b725ae77Skettenis 3066*b725ae77Skettenis * configure: If -template= is given a relative path, make it 3067*b725ae77Skettenis absolute before recurring in subdirectories. 3068*b725ae77Skettenis 3069*b725ae77Skettenis * configure, configure.in, Makefile.in: Install "configure" script 3070*b725ae77Skettenis as replacement for config.gdb. 3071*b725ae77Skettenis * config.gdb, Makefile.dist, Makefile.sdir: Remove 3072*b725ae77Skettenis * README: Update for configure, mostly. FIXME. 3073*b725ae77Skettenis 3074*b725ae77Skettenis * Add dec3100 as equivalent to littlemips. Indicate in all host & 3075*b725ae77Skettenis target config files that they are for the host. When the lines 3076*b725ae77Skettenis get copied into the Makefile, this makes it more obvious what's 3077*b725ae77Skettenis up. 3078*b725ae77Skettenis 3079*b725ae77SkettenisMon Jun 24 23:49:07 1991 John Gilmore (gnu at cygint.cygnus.com) 3080*b725ae77Skettenis 3081*b725ae77Skettenis * sparc-opcode.h (trap opcodes): Avoid leading spaces or 3082*b725ae77Skettenis tabs, which end up in the disassembler output inadvertently. 3083*b725ae77Skettenis 3084*b725ae77SkettenisWed May 29 23:01:03 1991 John Gilmore (gnu at cygint.cygnus.com) 3085*b725ae77Skettenis 3086*b725ae77Skettenis Make it compile cleanly in an ANSI GCC2 environment. 3087*b725ae77Skettenis 3088*b725ae77Skettenis * blockframe.c: <stdio.h> 3089*b725ae77Skettenis * cplus-dem.c: free takes a void *, ifdef __STDC__ 3090*b725ae77Skettenis * dbxread.c (read_huge_number): avoid gcc2 bug hoisting calc of 3091*b725ae77Skettenis LONG_MAX/radix. 3092*b725ae77Skettenis * defs.h (alloca): Avoid doing anything if alloca already def'd. 3093*b725ae77Skettenis * stddef.h, stdlib.h: Remove these files. 3094*b725ae77Skettenis * symtab.c: Avoid declaring qsort, close. 3095*b725ae77Skettenis * symfile.c: Avoid declaring close. 3096*b725ae77Skettenis * utils.c (vprintf): Declare "ap" arg as proper va_alist. 3097*b725ae77Skettenis * sparc-tdep.c: Avoid including lots of Sun-host-specific files. 3098*b725ae77Skettenis 3099*b725ae77Skettenis Assorted other changes. 3100*b725ae77Skettenis * dbxread.c: include "libaout.h", not "liba.out.h". 3101*b725ae77Skettenis * printcmd.c (print_frame_args): Set recurse properly for 3102*b725ae77Skettenis indentation of struct and array parameters. 3103*b725ae77Skettenis * valops.c (value_cast): Allow cast to void. 3104*b725ae77Skettenis * infrun.c (resume): If NO_SINGLE_STEP, call machine dependent 3105*b725ae77Skettenis single_step() in a target-independent fashion. 3106*b725ae77Skettenis * sparc-tdep.c (single_step): Don't call ptrace ourselves, just 3107*b725ae77Skettenis set up to be ready to continue. This makes us target independent. 3108*b725ae77Skettenis * infptrace.c (child_resume): Remove call to single_step; now 3109*b725ae77Skettenis can single step a SPARC target of any kind. 3110*b725ae77Skettenis 3111*b725ae77SkettenisWed May 22 18:18:24 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 3112*b725ae77Skettenis 3113*b725ae77Skettenis * Makefile.dist, doc/gdb.texinfo, doc/*-m4.texinfo: split up GDB 3114*b725ae77Skettenis docn into separate sections---basically chapters, plus two loose 3115*b725ae77Skettenis pieces that can be configured to go in different places. This 3116*b725ae77Skettenis allows GNU m4 to preprocess the manual without coredumping. 3117*b725ae77Skettenis 3118*b725ae77Skettenis * Makefile.dist: tell TeX where to find texinfo. 3119*b725ae77Skettenis 3120*b725ae77SkettenisMon May 20 12:15:04 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 3121*b725ae77Skettenis 3122*b725ae77Skettenis * Makefile.dist, doc/gdb.texinfo: respectively create, and use, 3123*b725ae77Skettenis the new target "rdl-apps.texinfo" which captures the Makefile 3124*b725ae77Skettenis variable that records where to find the Readline libraries. 3125*b725ae77Skettenis 3126*b725ae77SkettenisSun May 19 05:36:59 1991 John Gilmore (gnu at cygint.cygnus.com) 3127*b725ae77Skettenis 3128*b725ae77Skettenis * tahoe-pinsn.c: #include "tahoe-opcode.h", not "opcode.h". 3129*b725ae77Skettenis * tm-tahoe.h (FIX_CALL_DUMMY): Ignore more parameters. 3130*b725ae77Skettenis * defs.h (const, volatile): Only define if not already defined. 3131*b725ae77Skettenis * Makefile.dist (gdb.tar.Z): Create doc subdir w/out CVS/RCS crud. 3132*b725ae77Skettenis 3133*b725ae77Skettenis * README: Update for release 3.95. 3134*b725ae77Skettenis * config.gdb: Don't create readline dir in subdir builds. 3135*b725ae77Skettenis * main.c: Include with "..." form for non-system include files, 3136*b725ae77Skettenis so "gcc -MM" for "make depend" works. 3137*b725ae77Skettenis Include readline files with "...h" rather than <readline/...h>. 3138*b725ae77Skettenis * mipsread.c: Include "ecoff.h" rather than "intel-coff.h". 3139*b725ae77Skettenis 3140*b725ae77Skettenis * coffread.c: Undo minor damage done by Rich Pixley. Use 3141*b725ae77Skettenis different internal and external representations of COFF 3142*b725ae77Skettenis data structures. Use new BFD routines for swapping them in and 3143*b725ae77Skettenis out. 3144*b725ae77Skettenis * symfile.c (free_named_symtabs): Avoid freeing file names that 3145*b725ae77Skettenis are null or empty. Old i960 tools seem to produce files that 3146*b725ae77Skettenis claim to have empty names, causing each successive file read 3147*b725ae77Skettenis to blow away the previous one. 3148*b725ae77Skettenis * sparc-xdep.c (deferred_stores): Repair minor damage by Rich. 3149*b725ae77Skettenis Move deferred_stores to top of file, but don't separate its 3150*b725ae77Skettenis #define's from its variable. Add commentary. 3151*b725ae77Skettenis * Makefile.dist: Fix Rich damage; undo "configure" changes in 3152*b725ae77Skettenis favor of keeping the (working) config.gdb. Move readline 3153*b725ae77Skettenis library up a notch. 3154*b725ae77Skettenis 3155*b725ae77SkettenisFri May 17 12:49:56 1991 Per Bothner (via gnu at cygint.cygnus.com) 3156*b725ae77Skettenis 3157*b725ae77Skettenis * dbxread.c (read_struct_type): Try to handle g++ version 1 MI 3158*b725ae77Skettenis debug info. 3159*b725ae77Skettenis * infptrace.c (fetch_registers): no result, since now void. 3160*b725ae77Skettenis * tconfig/news: target depends on m68k-tdep too. 3161*b725ae77Skettenis 3162*b725ae77SkettenisFri May 17 14:40:14 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 3163*b725ae77Skettenis 3164*b725ae77Skettenis * Makefile.dist: added readline/inc-*.texinfo to dependencies for 3165*b725ae77Skettenis gdb.dvi target 3166*b725ae77Skettenis 3167*b725ae77Skettenis * readline/inc-history.texinfo, readline/inc-readline.texinfo: 3168*b725ae77Skettenis applied various small fixes due to or inspired by RMS comments 3169*b725ae77Skettenis 3170*b725ae77Skettenis * doc/gdb.texinfo: finished using all RMS comments, save those for 3171*b725ae77Skettenis appendices on readline and cmd history (which are in other source 3172*b725ae77Skettenis files) 3173*b725ae77Skettenis 3174*b725ae77SkettenisThu May 16 18:06:05 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 3175*b725ae77Skettenis 3176*b725ae77Skettenis * doc/gdb.texinfo: (1) Updated w/ref to RMS comments through 3177*b725ae77Skettenis chapter 9; (2) documented 'break' command's menu mode for 3178*b725ae77Skettenis overloaded names, in response to hgs problem report C++ p-31 3179*b725ae77Skettenis 3180*b725ae77SkettenisWed May 15 11:02:48 1991 Roland H. Pesch (pesch at fowanton.cygnus.com) 3181*b725ae77Skettenis 3182*b725ae77Skettenis * doc/gdb.texinfo: (1) better introductory example; (2) more 3183*b725ae77Skettenis consistent use of @code, @samp, @file, @kbd throughout; small 3184*b725ae77Skettenis cleanups to first three nodes; (3) new "Contributors" node; 3185*b725ae77Skettenis (4) Appendix, Renamed Commands; (5) divert specialized startup 3186*b725ae77Skettenis instructions to "Targets" chapter for generic manuals, while 3187*b725ae77Skettenis leaving them up front for manuals specific to specialized 3188*b725ae77Skettenis environments; (6) apply fixes from RMS comments through chapter 4. 3189*b725ae77Skettenis 3190*b725ae77Skettenis * pretex.m4: modify explanatory text slightly (and redefine 3191*b725ae77Skettenis "regexp") to keep GNU m4 from complaining. (It still crashes 3192*b725ae77Skettenis later, but one step at a time...) 3193*b725ae77Skettenis 3194*b725ae77SkettenisWed May 15 10:32:12 1991 John Gilmore (gnu at cygint.cygnus.com) 3195*b725ae77Skettenis 3196*b725ae77Skettenis * readline/readline.c (update_line): Avoid dereferencing a pointer 3197*b725ae77Skettenis before comparing it to its bounds. Saber caught this. 3198*b725ae77Skettenis (init_terminal_io): Don't set BC from the "pc=" termcap variable, 3199*b725ae77Skettenis and only set PC if tgetstr returned non-null. Saber caught this. 3200*b725ae77Skettenis 3201*b725ae77SkettenisTue May 14 16:29:53 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com) 3202*b725ae77Skettenis 3203*b725ae77Skettenis * Makefile.dist: put gdb.dvi stuff (updated to use M4 preprocessor 3204*b725ae77Skettenis stuff for config manual) here where it counts; updated 3205*b725ae77Skettenis to use new subdir structure (gdb/doc/). 3206*b725ae77Skettenis 3207*b725ae77Skettenis * Makefile: generated from above via 3208*b725ae77Skettenis config.gdb none 3209*b725ae77Skettenis before checkin 3210*b725ae77Skettenis 3211*b725ae77Skettenis * gdbint.texinfo: added instructions on generating gdb.info* files 3212*b725ae77Skettenis locally for release. These are ordinary info 3213*b725ae77Skettenis files, formatted from gdb.texinfo (via gdb-all.texinfo, see 3214*b725ae77Skettenis Makefile)---but due to use of texinfo 2, can't count on makeinfo 3215*b725ae77Skettenis to generate these, so we distribute them already formatted. 3216*b725ae77Skettenis 3217*b725ae77Skettenis * gdb.texinfo: included full Info node and menu crud (as generated 3218*b725ae77Skettenis by C-u M-x texinfo-master-menu using the texinfo-2 elisp code). 3219*b725ae77Skettenis 3220*b725ae77Skettenis * Makefile: updated "gdb.dvi" target to use M4 preprocessor; 3221*b725ae77Skettenis put in comments-for-future gdb.info target (one day makeinfo will 3222*b725ae77Skettenis work again). 3223*b725ae77Skettenis 3224*b725ae77SkettenisTue May 14 13:51:36 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com) 3225*b725ae77Skettenis 3226*b725ae77Skettenis * gdb.texinfo: Updated to include new or old undocumented 3227*b725ae77Skettenis commands, at least the following (perhaps some others I forgot to 3228*b725ae77Skettenis record): info f, info float, info path, info program, info s, info 3229*b725ae77Skettenis set, info source, info terminal, info types, info user, set/show 3230*b725ae77Skettenis print object. 3231*b725ae77Skettenis Also covered all recent GDB command renames for v4. 3232*b725ae77Skettenis 3233*b725ae77SkettenisMon May 13 14:57:46 1991 John Gilmore (gnu at cygint.cygnus.com) 3234*b725ae77Skettenis 3235*b725ae77Skettenis * mipsread.c: Rather than keeping count of how many symtabs 3236*b725ae77Skettenis and psymtabs we have, for sorting purposes, count them when 3237*b725ae77Skettenis we need to sort. This fixes bug in rereading of symbol tables. 3238*b725ae77Skettenis 3239*b725ae77SkettenisFri May 10 15:43:33 PDT 1991 Roland Pesch (pesch at cygint.cygnus.com) 3240*b725ae77Skettenis 3241*b725ae77Skettenis * infcmd.c: renamed "info path" to "show paths" 3242*b725ae77Skettenis * gdbrc.tex: documented above. 3243*b725ae77Skettenis 3244*b725ae77SkettenisWed May 8 04:51:11 1991 John Gilmore (gnu at cygint.cygnus.com) 3245*b725ae77Skettenis 3246*b725ae77Skettenis * remote.c: Fix comments. 3247*b725ae77Skettenis * utils.c (error): Force out any pending wrap output. 3248*b725ae77Skettenis 3249*b725ae77SkettenisSat May 4 11:11:07 1991 John Gilmore (gnu at cygint.cygnus.com) 3250*b725ae77Skettenis 3251*b725ae77Skettenis * Makefile.dist: Roll VERSION to 3.95. 3252*b725ae77Skettenis Fix up "saber_gdb" to work again. 3253*b725ae77Skettenis * saber.suppress: Update. 3254*b725ae77Skettenis 3255*b725ae77Skettenis * coffread.c, exec.c, infptrace.c, inftarg.c, remote.c, solib.c, 3256*b725ae77Skettenis symtab.h, target.c, target.h: Lint. 3257*b725ae77Skettenis * core.c: setup and select frame after reading shared libs, 3258*b725ae77Skettenis else reading shared libs will clobber them. Lint. 3259*b725ae77Skettenis * utils.c (error): Force out any buffered wrap text. 3260*b725ae77Skettenis 3261*b725ae77SkettenisFri May 3 22:01:56 1991 John Gilmore (gnu at cygint.cygnus.com) 3262*b725ae77Skettenis 3263*b725ae77Skettenis * remote.c: Remove decls of memory_insert_breakpoint 3264*b725ae77Skettenis and memory_remove_breakpoint, no longer used. (Suggestion of 3265*b725ae77Skettenis Jan Norden). 3266*b725ae77Skettenis 3267*b725ae77Skettenis * Makefile.dist: use ${subdir} in paths of BFD and LIBIBERTY, 3268*b725ae77Skettenis to make it easier to interface to "configure"'d libraries. 3269*b725ae77Skettenis 3270*b725ae77SkettenisFri May 3 13:10:01 PDT 1991 Roland Pesch (pesch at fowanton.cygnus.com) 3271*b725ae77Skettenis 3272*b725ae77Skettenis * valprint.c: introduce "set p", "set pr", "show p" and "show pr" as 3273*b725ae77Skettenis aliases for set/show print. 3274*b725ae77Skettenis 3275*b725ae77SkettenisThu May 2 11:22:02 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3276*b725ae77Skettenis 3277*b725ae77Skettenis * coffread.c (coff_sym_fns) [TDESC]: Make the type be m88kbcs. 3278*b725ae77Skettenis 3279*b725ae77Skettenis * m88k-tdep.c (IEEE_isNAN): New function. 3280*b725ae77Skettenis 3281*b725ae77Skettenis * infrun.c, m88k-tdep.c, m88k-xdep.c: Change 3282*b725ae77Skettenis initialize_{tdesc,dcontext} to init_{tdesc,dcontext}. 3283*b725ae77Skettenis 3284*b725ae77Skettenis * infrun.c [TDESC]: Add a bunch of crud. 3285*b725ae77Skettenis 3286*b725ae77Skettenis * xm-88k.h [__GNUC__]: Don't define memset. 3287*b725ae77Skettenis 3288*b725ae77Skettenis * m88k-xdep.c: #if 0 out push_breakpoint. 3289*b725ae77Skettenis 3290*b725ae77Skettenis * tm-88k.h: Define GET_SAVED_REGISTER. 3291*b725ae77Skettenis 3292*b725ae77Skettenis * tm-88k.h: Define DGUX. 3293*b725ae77Skettenis 3294*b725ae77Skettenis * m88k-opcode.h (UEXT, SEXT, MAKE): Put parentheses around arguments. 3295*b725ae77Skettenis 3296*b725ae77Skettenis * m88k-pinsn.c (sprint_address): Declare at top of file. 3297*b725ae77Skettenis 3298*b725ae77Skettenis * m88k-xdep.c: #if 0 out core_file_command. 3299*b725ae77Skettenis 3300*b725ae77Skettenis * values.c ({unpack_,value_as_}pointer): Just call 3301*b725ae77Skettenis {unpack_,value_as_}long (for now anyway). 3302*b725ae77Skettenis 3303*b725ae77Skettenis * m88k-tdep.c (get_saved_register): Make get_reg a dc_word_t (*)(). 3304*b725ae77Skettenis (psr_register): Change return type to dc_word_t. 3305*b725ae77Skettenis 3306*b725ae77Skettenis * m88k-tdep.c (tdesc_read_function): Comment out call to ptrace. 3307*b725ae77Skettenis 3308*b725ae77Skettenis * m88k-tdep.c (get_saved_register): Add lvalp parameter. 3309*b725ae77Skettenis 3310*b725ae77Skettenis * gdbcore.h (write_memory): Don't prototype it. 3311*b725ae77Skettenis 3312*b725ae77Skettenis * tm-88k.h, m88k-tdep.c: Make stack_error, stack_jmp global. 3313*b725ae77Skettenis m88k-xdep.c: Don't mention stack_error. 3314*b725ae77Skettenis 3315*b725ae77Skettenis * {x,t}config/m88k ({X,T}DEPFILES): Add missing files. 3316*b725ae77Skettenis 3317*b725ae77Skettenis * mtrace.c: Don't typedef things like size_t, just #define them. 3318*b725ae77Skettenis 3319*b725ae77Skettenis * coffread.c [TDESC]: #if 0 out references to coffsyn. 3320*b725ae77Skettenis 3321*b725ae77Skettenis * symtab.h (struct symtab): Include EXTRA_SYMTAB_INFO. 3322*b725ae77Skettenis tm-88k.h: Define EXTRA_SYMTAB_INFO. 3323*b725ae77Skettenis 3324*b725ae77Skettenis * coffread.c [TDESC]: Include "tdesc.h" and make tdesc_handle 3325*b725ae77Skettenis dc_dcontext_t not int. 3326*b725ae77Skettenis 3327*b725ae77Skettenis * coffread.c [TDESC]: Use system include files not <intel-coff.h>. 3328*b725ae77Skettenis 3329*b725ae77Skettenis * coffread.c [TDESC]: Move setting of debug_info from 3330*b725ae77Skettenis coff_symfile_read to find_linenos and make it work with BFD. 3331*b725ae77Skettenis 3332*b725ae77Skettenis * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*. 3333*b725ae77Skettenis 3334*b725ae77Skettenis * signame.c: Cast const char* to char* when assigning to sys_siglist. 3335*b725ae77Skettenis 3336*b725ae77Skettenis * utils.c (strsave): Make arg const char* not char*. 3337*b725ae77Skettenis 3338*b725ae77Skettenis * infrun.c (wait_for_inferior) [SHIFT_INSN_REGS]: Use 3339*b725ae77Skettenis bpstat_explains_signal (stop_bpstat) not stop_breakpoint. 3340*b725ae77Skettenis 3341*b725ae77Skettenis * tm-88k.h (START_INFERIOR_HOOK): Make tdesc_handle a dc_handle_t. 3342*b725ae77Skettenis 3343*b725ae77Skettenis * tm-88k.h (EXTRACT_RETURN_VALUE): Use char * not void *. 3344*b725ae77Skettenis 3345*b725ae77Skettenis * findvar.c (read_var_value, case LOC_CONST_BYTES): Put the address 3346*b725ae77Skettenis in a char *, not a CORE_ADDR. Use SYMBOL_VALUE_BYTES. 3347*b725ae77Skettenis 3348*b725ae77Skettenis * tm-88k.h (INIT_EXTRA_FRAME_INFO): Use fci not prev (fci is 3349*b725ae77Skettenis prev except from create_new_frame). Make next_frame a 3350*b725ae77Skettenis local variable. 3351*b725ae77Skettenis Declare get_prev_context. 3352*b725ae77Skettenis {x,t}m-88k.h: Enclose USG and BCS defines in #if !defined. 3353*b725ae77Skettenis m88k-{opcode.h,pinsn.c,xdep.c,tdep.c}: New files (same contents as 3354*b725ae77Skettenis before; they had just been left out of the distribution for a long 3355*b725ae77Skettenis time). 3356*b725ae77Skettenis 3357*b725ae77SkettenisThu May 2 17:53:56 1991 John Gilmore (gnu at cygint.cygnus.com) 3358*b725ae77Skettenis 3359*b725ae77Skettenis Mips bringup and general cleanup 3360*b725ae77Skettenis 3361*b725ae77Skettenis * cplus-dem.c: Move CPLUS_MARKER define to after defs.h. 3362*b725ae77Skettenis * infptrace.c (PT_WRITE_D, PT_READ_D): Use correct values. 3363*b725ae77Skettenis (This still doesn't seem to make MIPS bkpts work.) 3364*b725ae77Skettenis * mipsread.c: Remove dup "Reading symbol data..." msg. 3365*b725ae77Skettenis (symbol_file_command, add_file_command): Remove, obsol. 3366*b725ae77Skettenis * printcmd.c (ptype_command): Say "an enum" rather than "a enum". 3367*b725ae77Skettenis Wrap output appropriately. 3368*b725ae77Skettenis * stack.c (locals_info, catch_info, args_info): Check 3369*b725ae77Skettenis selected_frame rather than target_has_stack or coredumping. 3370*b725ae77Skettenis * valprint.c (type_print_varspec_suffix): Wrap "ptype" output of 3371*b725ae77Skettenis enums appropriately. 3372*b725ae77Skettenis 3373*b725ae77SkettenisWed May 1 14:10:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3374*b725ae77Skettenis 3375*b725ae77Skettenis * signame.c: Include defs.h and param.h. 3376*b725ae77Skettenis 3377*b725ae77Skettenis * cplus-dem.c: Include defs.h and param.h. 3378*b725ae77Skettenis Makefile.dist: Don't hack in the "param.h". 3379*b725ae77Skettenis param.h: Don't include defs.h. 3380*b725ae77Skettenis 3381*b725ae77Skettenis * expread.y: Use a union to deal with the fact that type_stack 3382*b725ae77Skettenis can have both ints and enum type_pieces in it. 3383*b725ae77Skettenis ({push,pop}_type_int): New functions. 3384*b725ae77Skettenis 3385*b725ae77SkettenisTue Apr 30 13:18:58 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3386*b725ae77Skettenis 3387*b725ae77Skettenis * cplus-dem.c (cplus_mangle_opname): Don't call error. 3388*b725ae77Skettenis values.c (check_stub_method): Call error if NULL return from 3389*b725ae77Skettenis cplus_mangle_opname. 3390*b725ae77Skettenis 3391*b725ae77Skettenis * blockframe.c, breakpoint.c, core.c, command.c, findvar.c, 3392*b725ae77Skettenis eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c, 3393*b725ae77Skettenis remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h, 3394*b725ae77Skettenis symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h, 3395*b725ae77Skettenis target.c, inftarg.c, ieee-float.c, environ.c, defs.h, 3396*b725ae77Skettenis command.h, inferior.h, gdbcore.h, symtab.h, expression.h, 3397*b725ae77Skettenis symtab.c, cplus-dem.c, value.h, expread.y, valprint.c, 3398*b725ae77Skettenis copying.awk, solib.c, inflow.c, symmisc.c 3399*b725ae77Skettenis : Lint. Use read_memory not read_memory_integer on CORE_ADDR's. 3400*b725ae77Skettenis Use {value_as,unpack}_pointer (added to values.c) 3401*b725ae77Skettenis not {value_as,unpack}_long on CORE_ADDR's. 3402*b725ae77Skettenis Use longest_to_int (added to defs.h) instead of cast to int. 3403*b725ae77Skettenis Remove from_tty arg to mod_path. 3404*b725ae77Skettenis Put symfile_bfd in {coff,dbx}read.c not symfile.h. 3405*b725ae77Skettenis Use OP_NULL instead of 0 where dummy enum exp_opcode needed. 3406*b725ae77Skettenis 3407*b725ae77Skettenis * tm-sparc.h: Remove GET_RWINDOW_REG. 3408*b725ae77Skettenis (FRAME_CHAIN): Call sparc_frame_chain. 3409*b725ae77Skettenis sparc-tdep.c (sparc_frame_chain): New function. 3410*b725ae77Skettenis tm-sparc.h (EXTRACT_STRUCT_VALUE_ADDRESS): call 3411*b725ae77Skettenis sparc_extract_struct_value_address (added to sparc-tdep.c). 3412*b725ae77Skettenis 3413*b725ae77Skettenis * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE. 3414*b725ae77Skettenis 3415*b725ae77SkettenisTue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com) 3416*b725ae77Skettenis 3417*b725ae77Skettenis * valprint.c (type_print_base): If the type being printed is a 3418*b725ae77Skettenis struct containing undefined types, print "<undefine type>" 3419*b725ae77Skettenis as the type instead of crashing. 3420*b725ae77Skettenis * values.c (value_headof): Get the vtable pointer taking 3421*b725ae77Skettenis TYPE_VPTR_BASETYPE into account. 3422*b725ae77Skettenis * symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches. 3423*b725ae77Skettenis 3424*b725ae77SkettenisMon Apr 29 13:22:51 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3425*b725ae77Skettenis 3426*b725ae77Skettenis * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h. 3427*b725ae77Skettenis 3428*b725ae77Skettenis * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide empty 3429*b725ae77Skettenis functions which don't do anything. 3430*b725ae77Skettenis tm-sun386.h: Define GDB_TARGET_IS_SUN386. 3431*b725ae77Skettenis 3432*b725ae77Skettenis * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc. 3433*b725ae77Skettenis 3434*b725ae77Skettenis * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to 3435*b725ae77Skettenis GDB_TARGET_IS_SUN3. 3436*b725ae77Skettenis 3437*b725ae77Skettenis * infrun.c: Don't include sys/user.h and friends (wrong for 3438*b725ae77Skettenis cross-debugging and not necessary anymore (see IN_SIGTRAMP in 3439*b725ae77Skettenis xm-vax.h)). 3440*b725ae77Skettenis [SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>. 3441*b725ae77Skettenis xm-tahoe.h: Don't define _DIRENT_. 3442*b725ae77Skettenis 3443*b725ae77Skettenis * xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h 3444*b725ae77Skettenis includes sgtty.h before sys/ioctl.h). 3445*b725ae77Skettenis 3446*b725ae77SkettenisSun Apr 28 22:04:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3447*b725ae77Skettenis 3448*b725ae77Skettenis * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined 3449*b725ae77Skettenis or not defined. Don't define it based on TARGET_BYTE_ORDER if 3450*b725ae77Skettenis it's already defined (in the tm.h file). 3451*b725ae77Skettenis mips-opcode.h (BIT_FIELDS_*), 3452*b725ae77Skettenis values.c (modify_field, unpack_field_as_long): 3453*b725ae77Skettenis Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN. 3454*b725ae77Skettenis {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files. 3455*b725ae77Skettenis 3456*b725ae77SkettenisFri Apr 26 12:02:06 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3457*b725ae77Skettenis 3458*b725ae77Skettenis * tm-sparc.h: Add comments about gcc version 2 and structure passing. 3459*b725ae77Skettenis 3460*b725ae77Skettenis * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096. 3461*b725ae77Skettenis gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code. 3462*b725ae77Skettenis 3463*b725ae77Skettenis * expread.y (abs_decl): Accept '&' and '&' abs_decl. 3464*b725ae77Skettenis 3465*b725ae77Skettenis * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long 3466*b725ae77Skettenis regardless of LONG_LONG. 3467*b725ae77Skettenis defs.h (TARGET_LONG_LONG_BIT): New macro. 3468*b725ae77Skettenis expread.y (typebase): Add {unsigned,} long long {,int}. 3469*b725ae77Skettenis 3470*b725ae77SkettenisThu Apr 25 12:31:22 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3471*b725ae77Skettenis 3472*b725ae77Skettenis * valops.c (typecmp): If t2 == 0, return 1. 3473*b725ae77Skettenis 3474*b725ae77SkettenisWed Apr 24 09:45:17 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3475*b725ae77Skettenis Changes from Tiemann: 3476*b725ae77Skettenis * cplus-dem.c (optable): Add "nw", "dl", "compound". 3477*b725ae77Skettenis (cplus_mangle_opname): New function. 3478*b725ae77Skettenis (do_type): Add case 'Q'. 3479*b725ae77Skettenis * values.c (check_stub_method): Do lookup_method_type and stuff 3480*b725ae77Skettenis rather than smash_to_method_type. 3481*b725ae77Skettenis symtab.c, symtab.h (allocate_stub_method): New function. 3482*b725ae77Skettenis dbxread.c (read_type): If we get "##", don't lookup_function_type 3483*b725ae77Skettenis and start clobbering it; allocate_stub_method instead. 3484*b725ae77Skettenis * printcmd.c (x_command): Dereference references. 3485*b725ae77Skettenis * valprint.c (type_print_varspec_prefix, case TYPE_CODE_METHOD): 3486*b725ae77Skettenis Don't print " " type_print_base (...) "::" if !passed_a_ptr. 3487*b725ae77Skettenis * dbxread.c (read_struct_type): Put "op$" instead of "operator" 3488*b725ae77Skettenis in the symbol table. 3489*b725ae77Skettenis * values.c (check_stub_method): Deal with operator names. 3490*b725ae77Skettenis * valprint.c (cplus_val_print): Check for error in baseclass_addr. 3491*b725ae77Skettenis * values.c: Move declaration of cplus_demangle to top of file. 3492*b725ae77Skettenis * values.c (baseclass_addr): If can't read memory, set *ERRP 3493*b725ae77Skettenis rather than calling error(). 3494*b725ae77Skettenis * value.h: Remove redundant declaration of value_static_field. 3495*b725ae77Skettenis * values.c (value_static_field): Recursively check all baseclasses. 3496*b725ae77Skettenis Return NULL if not found. 3497*b725ae77Skettenis * values.c, value.h: New functions value_{headof,from_vtable_info}. 3498*b725ae77Skettenis * valprint.c (val_print): Print out first element of vtbl 3499*b725ae77Skettenis specially. 3500*b725ae77Skettenis * valprint.c: Move print controls to top and add objectprint. 3501*b725ae77Skettenis Add command "set print object on/off". 3502*b725ae77Skettenis * valprint.c (value_print, is_vtbl_member): Put things in local 3503*b725ae77Skettenis variables rather than continually doing VALUE_TYPE (val), etc. 3504*b725ae77Skettenis * valops.c (value_struct_elt_for_address): Call check_stub_method. 3505*b725ae77Skettenis * valops.c (value_struct_elt): Remove found, arg1_as_ptr. 3506*b725ae77Skettenis * valops.c (search_struct_method): Give error if j > 0 && args == 0. 3507*b725ae77Skettenis * valops.c (search_struct_field): New argument looking_for_baseclass. 3508*b725ae77Skettenis Give error if value_static_field or value_primitive_field 3509*b725ae77Skettenis return NULL. 3510*b725ae77Skettenis valops.c (various): Call search_struct_field with extra parameter. 3511*b725ae77Skettenis * symtab.c (decode_line_1): Deal with operators specified as 3512*b725ae77Skettenis "operator" <optional whitespace> <symbols for operator>. 3513*b725ae77Skettenis (operator_chars): Help do it. 3514*b725ae77Skettenis * symtab.c (lookup_struct_elt_type): Call check_stub_type. 3515*b725ae77Skettenis Take additional argument noerr. 3516*b725ae77Skettenis Don't dump core if TYPE_FIELD_NAME is NULL. 3517*b725ae77Skettenis Check the baseclasses recursively. 3518*b725ae77Skettenis * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type. 3519*b725ae77Skettenis Return void not int. (also declarations in symfile.h and value.h). 3520*b725ae77Skettenis Deal with multiple inheritance. 3521*b725ae77Skettenis * printcmd.c (print_command_1): Add if (objectprint) code. 3522*b725ae77Skettenis * expread.y (variable): Allow for destructor with foo::~name. 3523*b725ae77Skettenis * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcode 3524*b725ae77Skettenis is OP_SCOPE, give an error. 3525*b725ae77Skettenis * eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type. 3526*b725ae77Skettenis * eval.c (evaluate_subexp), values.c (value_virtual_fn_field): 3527*b725ae77Skettenis Don't bother to do anything with 3528*b725ae77Skettenis return value from fill_in_vptr_fieldno. 3529*b725ae77Skettenis * eval.c (evaluate_subexp): If value_static_field returns NULL, 3530*b725ae77Skettenis give an error. 3531*b725ae77Skettenis * dbxread.c (read_struct_type): Set fcontext to 0 for normal member 3532*b725ae77Skettenis function. 3533*b725ae77Skettenis * dbxread.c (read_struct_type): Initialize name to 0. 3534*b725ae77Skettenis * dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value. 3535*b725ae77Skettenis * dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE. 3536*b725ae77Skettenis (read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO} 3537*b725ae77Skettenis if it's just going to be {0,1}. 3538*b725ae77Skettenis 3539*b725ae77Skettenis * dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0 3540*b725ae77Skettenis (yes, it's #if 0, but just in case...). 3541*b725ae77Skettenis 3542*b725ae77Skettenis * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some 3543*b725ae77Skettenis things "const". 3544*b725ae77Skettenis 3545*b725ae77Skettenis * i386-stub.c: New file. 3546*b725ae77Skettenis 3547*b725ae77Skettenis * WHATS.NEW: Remove mention of readline and more paging (in 3.5). 3548*b725ae77Skettenis Try to keep command names up to date with renaming. 3549*b725ae77Skettenis 3550*b725ae77Skettenis * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize. 3551*b725ae77Skettenis 3552*b725ae77Skettenis * infun.c (resume, resume_cleanups): New functions. 3553*b725ae77Skettenis (wait_for_inferior, proceed, child_create_inferior): Use resume 3554*b725ae77Skettenis not target_resume. 3555*b725ae77Skettenis 3556*b725ae77Skettenis * remote.c (getpkt): Don't set immediate_quit. 3557*b725ae77Skettenis 3558*b725ae77Skettenis * blockframe.c, frame.h (reinit_frame_cache): New function. 3559*b725ae77Skettenis solib.c (solib_add), symfile.c ({,add_}symbol_file_command): 3560*b725ae77Skettenis Use it. 3561*b725ae77Skettenis 3562*b725ae77SkettenisTue Apr 23 10:38:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3563*b725ae77Skettenis 3564*b725ae77Skettenis * symtab.c (lookup_symbol): Add 3 more of those loops through 3565*b725ae77Skettenis the symtabs which we all know and love: (1) Look in the 3566*b725ae77Skettenis STATIC_BLOCK for mangled symbols right after we check the blocks, 3567*b725ae77Skettenis (2, 3) Look in the STATIC_BLOCK for all the symtabs and psymtabs 3568*b725ae77Skettenis at the end. 3569*b725ae77Skettenis 3570*b725ae77Skettenis * main.c (cd_command): Call dont_repeat. 3571*b725ae77Skettenis 3572*b725ae77Skettenis * dbxread.c (read_struct_type): If const/volatile character is 3573*b725ae77Skettenis missing, don't complain, just continue. 3574*b725ae77Skettenis 3575*b725ae77Skettenis * dbxread.c (read_struct_type): Only try to read the fcontext if 3576*b725ae77Skettenis it is there. Also change "error_type " to "return error_type ". 3577*b725ae77Skettenis values.c (value_virtual_fn_field): If there is no fcontext, 3578*b725ae77Skettenis then do things the way GDB 3.x did. 3579*b725ae77Skettenis valops.c (search_struct_method): Add type to value_virtual_fn_field 3580*b725ae77Skettenis arguments. 3581*b725ae77Skettenis 3582*b725ae77Skettenis * dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'. 3583*b725ae77Skettenis 3584*b725ae77SkettenisMon Apr 22 00:02:43 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3585*b725ae77Skettenis 3586*b725ae77Skettenis * printcmd.c (print_scalar_formatted): Add 't' for binary. 3587*b725ae77Skettenis 3588*b725ae77Skettenis * dbxread.c (end_psymtab): Initialize pst->symtab. 3589*b725ae77Skettenis 3590*b725ae77Skettenis * core.c (core_open): Call ADD_SOLIB. 3591*b725ae77Skettenis 3592*b725ae77Skettenis * tm-sparc.h: Include <sun4/reg.h> not <machine/reg.h>. 3593*b725ae77Skettenis sparc-tdep.c: Don't include <machine/reg.h>. 3594*b725ae77Skettenis 3595*b725ae77Skettenis * sun3-xdep.c [!TARGET_SUN3]: Just provide empty functions which 3596*b725ae77Skettenis don't do anything. 3597*b725ae77Skettenis 3598*b725ae77Skettenis * core.c (core_open): Add make_cleanup (unpush_target, &core_ops). 3599*b725ae77Skettenis 3600*b725ae77Skettenis * Shared library/corefile changes from Peter Schauer: 3601*b725ae77Skettenis core.c (core_close): Call CLEAR_SOLIB. 3602*b725ae77Skettenis (core_open): Remove comment about "should deal with shared lib". 3603*b725ae77Skettenis (core_xfer_memory): If we can't xfer the usual way, try the 3604*b725ae77Skettenis shared libraries. 3605*b725ae77Skettenis solib.c (so_list): New fields so_bfd and so_sections{,_end}. 3606*b725ae77Skettenis (find_solib): Use solib_map_sections to get ld_text. 3607*b725ae77Skettenis (solib_map_sections, solib_xfer_memory): New functions. 3608*b725ae77Skettenis (clear_solib): Free so_sections and close so_bfd. 3609*b725ae77Skettenis tm-sunos.h: Add solib_xfer_memory, solib_add. 3610*b725ae77Skettenis 3611*b725ae77Skettenis * sparc-tdep.c (skip_prologue): Don't skip anything unless there 3612*b725ae77Skettenis is a "save" instruction in there somewhere. 3613*b725ae77Skettenis 3614*b725ae77Skettenis * symfile.c (symbol_file_add): Add comment. 3615*b725ae77Skettenis solib.c (solib_add): Don't malloc name passed to symbol_file_add. 3616*b725ae77Skettenis 3617*b725ae77Skettenis * exec.c (build_section_table): If *start isn't NULL, free it. 3618*b725ae77Skettenis 3619*b725ae77Skettenis * stack.c (parse_frame_specification): Error if NULL selected_frame. 3620*b725ae77Skettenis infcmd.c (finish_command): Error if NULL selected_frame. 3621*b725ae77Skettenis inflow.c (kill_command): Deal with NULL selected_frame. 3622*b725ae77Skettenis stack.c (record_selected_frame): Set *FRAMEP to NULL if there 3623*b725ae77Skettenis is no selected frame. 3624*b725ae77Skettenis infrun.c (restore_inferior_status): Add comment. 3625*b725ae77Skettenis findvar.c (read_var_value): Check for NULL frame where we need 3626*b725ae77Skettenis a frame. 3627*b725ae77Skettenis breakpoint.c (get_catch_sals): Check for NULL selected_frame. 3628*b725ae77Skettenis 3629*b725ae77Skettenis * breakpoint.c (bpstat_print): Try all elements on the bpstat 3630*b725ae77Skettenis chain before giving up with an internal error. 3631*b725ae77Skettenis 3632*b725ae77SkettenisSun Apr 21 21:43:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3633*b725ae77Skettenis 3634*b725ae77Skettenis * value.h, values.c (value_{,free_to_}mark): New functions. 3635*b725ae77Skettenis breakpoint.c (bpstat_stop_status): Use them. 3636*b725ae77Skettenis 3637*b725ae77Skettenis * tm-i386v{,-g}.h: Remove N_SET_MAGIC define. 3638*b725ae77Skettenis 3639*b725ae77SkettenisSat Apr 20 21:42:47 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3640*b725ae77Skettenis 3641*b725ae77Skettenis * i386-tdep.c: Remove unnecessary #includes. 3642*b725ae77Skettenis 3643*b725ae77Skettenis * symtab.c (various): Change error return of find_line_common to -1. 3644*b725ae77Skettenis 3645*b725ae77Skettenis * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno). 3646*b725ae77Skettenis 3647*b725ae77Skettenis * coffread.c (end_symtab): Initialize language, dirname, and 3648*b725ae77Skettenis fullname fields. 3649*b725ae77Skettenis 3650*b725ae77SkettenisFri Apr 19 18:18:31 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3651*b725ae77Skettenis 3652*b725ae77Skettenis * mips-tdep.c (mips_frame_chain): Don't chain if saved_pc == 0. 3653*b725ae77Skettenis 3654*b725ae77Skettenis * stddef.h (size_t): Let either _SIZE_T or _SIZE_T_ guard it. 3655*b725ae77Skettenis 3656*b725ae77Skettenis * mipsread.c (parse_symbol): Set startup_file_{start,end} if 3657*b725ae77Skettenis entry_point is in current file. 3658*b725ae77Skettenis 3659*b725ae77Skettenis * findvar.c (read_register_gen): Add "target byte-order" comment. 3660*b725ae77Skettenis 3661*b725ae77SkettenisWed Apr 17 17:09:48 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3662*b725ae77Skettenis 3663*b725ae77Skettenis * i386-tdep.c (i386_get_frame_setup): Use SWAP_TARGET_AND_HOST 3664*b725ae77Skettenis before returning locals or slocals. 3665*b725ae77Skettenis 3666*b725ae77Skettenis * i386-tdep.c (i386_follow_jump): Do not add data16 to pos in 3667*b725ae77Skettenis call to codestream_seek; add one to pos if (and only if) 3668*b725ae77Skettenis we are dealing with a jump with data16 == 1 (i.e. 0x66, 0xe9). 3669*b725ae77Skettenis 3670*b725ae77SkettenisMon Apr 15 12:04:32 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3671*b725ae77Skettenis 3672*b725ae77Skettenis * valops.c (call_function_by_hand): Put dummy1 in target order 3673*b725ae77Skettenis before FIX_CALL_DUMMY. 3674*b725ae77Skettenis 3675*b725ae77Skettenis * tm-i386v.h (FIX_CALL_DUMMY): Don't depend on host byte order. 3676*b725ae77Skettenis 3677*b725ae77SkettenisSun Apr 14 11:55:19 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3678*b725ae77Skettenis 3679*b725ae77Skettenis * valops.c (push_word): Add SWAP_TARGET_AND_HOST. 3680*b725ae77Skettenis 3681*b725ae77Skettenis * remote.c (remote_open): Send '+' before calling putpkt(). 3682*b725ae77Skettenis 3683*b725ae77Skettenis * tm-i386v.h (REGISTER_VIRTUAL_TYPE): Return pointer to void, 3684*b725ae77Skettenis not int, for pc, fp, and sp. 3685*b725ae77Skettenis 3686*b725ae77Skettenis * remote.c (remote_open): Call start_remote after putpkt("?"); 3687*b725ae77Skettenis infrun.c (start_remote): Also call wait_for_inferior & normal_stop. 3688*b725ae77Skettenis 3689*b725ae77SkettenisSat Apr 13 22:11:42 1991 Jim Kingdon (kingdon at spiff.cygnus.com) 3690*b725ae77Skettenis 3691*b725ae77Skettenis * exec.c: Include <ctype.h>. 3692*b725ae77Skettenis 3693*b725ae77Skettenis * sun3-xdep.c (fetch_core_registers): Add #ifdef FP0_REGNUM. 3694*b725ae77Skettenis 3695*b725ae77SkettenisFri Apr 19 09:36:50 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3696*b725ae77Skettenis 3697*b725ae77Skettenis * tm-68k.h (NUM_REGS): Conditionalize on TARGET_SUN3 not sun. 3698*b725ae77Skettenis tm-sun3.h: Define TARGET_SUN3. 3699*b725ae77Skettenis 3700*b725ae77Skettenis * utils.c: Use CPLUS_MARKER not '$'. 3701*b725ae77Skettenis 3702*b725ae77Skettenis * cplus-dem.c: Use CPLUS_MARKER not '$'. If CPLUS_MARKER isn't 3703*b725ae77Skettenis defined, define it to '$'. 3704*b725ae77Skettenis 3705*b725ae77Skettenis * arm-opcode.h: New file (same contents as before; it had 3706*b725ae77Skettenis just been left out of the distribution for a long time). 3707*b725ae77Skettenis 3708*b725ae77Skettenis * tm-68k.h: Put declaration of ext_format_68881 outside the macros. 3709*b725ae77Skettenis 3710*b725ae77Skettenis * main.c: New HAVE_SIGSETMASK #ifdefs. 3711*b725ae77Skettenis 3712*b725ae77Skettenis * coffread.c (read_coff_symtab): Check for "LF%" with all the 3713*b725ae77Skettenis other L*% things. 3714*b725ae77Skettenis 3715*b725ae77Skettenis * coffread.c (SDB_TYPE): New macro. 3716*b725ae77Skettenis various: Use it instead of checking against T_NULL. 3717*b725ae77Skettenis 3718*b725ae77Skettenis * Makefile.dist (cplus-dem.o): Hack in an #include "param.h" 3719*b725ae77Skettenis before we compile it. 3720*b725ae77Skettenis defs.h: Protect against multiple inclusion. 3721*b725ae77Skettenis param.h: Include defs.h. 3722*b725ae77Skettenis signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if. 3723*b725ae77Skettenis param-no-tm.h: Define SYS_SIGLIST_MISSING from USG. 3724*b725ae77Skettenis 3725*b725ae77SkettenisThu Apr 18 19:49:10 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3726*b725ae77Skettenis 3727*b725ae77Skettenis * i386-pinsn.c (OP_E): Change %d to 0x%x for consistency. 3728*b725ae77Skettenis 3729*b725ae77Skettenis * putenv.c: New file 3730*b725ae77Skettenis Makefile.dist: Add it to $(OBS). 3731*b725ae77Skettenis 3732*b725ae77Skettenis * mipsread.c [!CMUCS]: #include <syms.h>. 3733*b725ae77Skettenis 3734*b725ae77Skettenis * mips-xdep.c (fetch_core_registers): #if 0 out the whole function. 3735*b725ae77Skettenis 3736*b725ae77Skettenis * Move read_memory_nobpt from mem-break.c to breakpoint.c. 3737*b725ae77Skettenis 3738*b725ae77SkettenisMon Apr 15 21:45:35 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3739*b725ae77Skettenis 3740*b725ae77Skettenis * utils.c (_initialize_utils): Rename "set demangle" to 3741*b725ae77Skettenis "set print demangle", "set asm-demangle" to "set print 3742*b725ae77Skettenis asm-demangle" and "set sevenbit-strings" to "set print 3743*b725ae77Skettenis sevenbit-strings". 3744*b725ae77Skettenis 3745*b725ae77Skettenis * main.c (initialize_main): Rename "set history write" to 3746*b725ae77Skettenis "set history save". 3747*b725ae77Skettenis 3748*b725ae77Skettenis * main.c (initialize_main): Rename "set caution" to 3749*b725ae77Skettenis "set confirm". 3750*b725ae77Skettenis 3751*b725ae77Skettenis * values.c (_initialize_values): Remove "info history" alias 3752*b725ae77Skettenis for (what is now) "show values". 3753*b725ae77Skettenis 3754*b725ae77Skettenis * infcmd.c, gdbcmd.h: Add unsetlist. 3755*b725ae77Skettenis infcmd.c: Add unset_command. 3756*b725ae77Skettenis (_initialize_infcmd): Add "unset" and use it for "unset env". 3757*b725ae77Skettenis 3758*b725ae77Skettenis * breakpoint.c (_initialize_breakpoint): Remove "unset". 3759*b725ae77Skettenis 3760*b725ae77Skettenis * valprint.c: Add "set/show print", {set,show}_print. 3761*b725ae77Skettenis Rename "set addressprint" to "set print address". 3762*b725ae77Skettenis Rename "set arrayprint" to "set print array". 3763*b725ae77Skettenis Rename "set array-max" to "set print elements". 3764*b725ae77Skettenis Rename "set prettyprint" to "set print pretty". 3765*b725ae77Skettenis Rename "set unionprint" to "set print union". 3766*b725ae77Skettenis Rename "set vtblprint" to "set print vtbl". 3767*b725ae77Skettenis 3768*b725ae77Skettenis * main.c: Rename version_info to show_version. 3769*b725ae77Skettenis (_initialize_main): Rename "info version" to "show version". 3770*b725ae77Skettenis 3771*b725ae77Skettenis * values.c: Rename value_history_info to show_values. 3772*b725ae77Skettenis (_initialize_values): Rename "info values" to "show values". 3773*b725ae77Skettenis 3774*b725ae77SkettenisSun Apr 14 23:08:34 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3775*b725ae77Skettenis 3776*b725ae77Skettenis * inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open): 3777*b725ae77Skettenis New function to give correct error message. 3778*b725ae77Skettenis 3779*b725ae77SkettenisThu Apr 11 17:19:41 1991 Jim Kingdon (kingdon at cygint.cygnus.com) 3780*b725ae77Skettenis 3781*b725ae77Skettenis * target.h: Add to_doc and target_preopen. 3782*b725ae77Skettenis target.c: Add target_preopen and target_command. 3783*b725ae77Skettenis Remove target_info. 3784*b725ae77Skettenis (add_target): Call add_cmd and mess with targetlist->doc. 3785*b725ae77Skettenis core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c, 3786*b725ae77Skettenis remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct. 3787*b725ae77Skettenis Call target_preopen from open routine. 3788*b725ae77Skettenis 3789*b725ae77Skettenis * main.c: Rename editing_info to show_commands. 3790*b725ae77Skettenis (_initialize_main): Rename "info editing" to "show commands". 3791*b725ae77Skettenis 3792*b725ae77Skettenis * source.c: Rename directories_info to show_directories. 3793*b725ae77Skettenis (_initialize_values): Rename "info directories" to "show directories". 3794*b725ae77Skettenis 3795*b725ae77Skettenis * values.c: Rename convenience_info to show_convenience. 3796*b725ae77Skettenis (_initialize_values): Rename "info convenience" to "show convenience". 3797*b725ae77Skettenis 3798*b725ae77Skettenis * copying.awk (_initialize_copying): Rename "info copying" to 3799*b725ae77Skettenis "show copying" and "info warranty" to "show warranty". 3800*b725ae77Skettenis Rename {copying,warranty}_info to show_{copying,warranty}. 3801*b725ae77Skettenis 3802*b725ae77Skettenis * symfile.c: Rename add_syms_command to add_symbol_file_command. 3803*b725ae77Skettenis (_initialize_symfile, add_syms_addr_command): 3804*b725ae77Skettenis Rename add-syms to add-symbol-file. 3805*b725ae77Skettenis 3806*b725ae77SkettenisThu Apr 18 18:08:30 1991 John Gilmore (gnu at cygint.cygnus.com) 3807*b725ae77Skettenis 3808*b725ae77Skettenis * symfile.h (free_named_symtabs): Rename from free_named_symtab. 3809*b725ae77Skettenis * symfile.c (clear_symtab_users_once, cashier_psymtab, 3810*b725ae77Skettenis free_named_symtabs): Move these routines from symmisc.c. 3811*b725ae77Skettenis * symmisc.c (same): same. 3812*b725ae77Skettenis (free_symtab): Make non-static. 3813*b725ae77Skettenis * symtab.h (free_symtab): Declare as exported void fn now. 3814*b725ae77Skettenis * dbxread.c (end_symtab, end_psymtab): Change comments. 3815*b725ae77Skettenis (initialize_dbxread): Call dbx_new_init() in case the first 3816*b725ae77Skettenis command is add-symbols. 3817*b725ae77Skettenis * target.c (dummy_target): Permit add_syms_addr_command. 3818*b725ae77Skettenis 3819*b725ae77SkettenisSat Apr 13 14:46:07 1991 John Gilmore (gnu at cygint.cygnus.com) 3820*b725ae77Skettenis 3821*b725ae77Skettenis Permit symbols to be superseded when new symbol files have 3822*b725ae77Skettenis been read in, particularly for VxWorks. 3823*b725ae77Skettenis 3824*b725ae77Skettenis * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back 3825*b725ae77Skettenis to the main file, as well as to include files. Also, put global 3826*b725ae77Skettenis functions into the global psymtab, to make "i fun" work. 3827*b725ae77Skettenis (end_psymtab): Free named symtabs and psymtabs for a file, once a 3828*b725ae77Skettenis new psymtab for it has been read. 3829*b725ae77Skettenis * coffread.c (end_psymtab): Free named symtabs and psymtabs for 3830*b725ae77Skettenis a file, once a new symtab has been read for it. 3831*b725ae77Skettenis * mipsread.c: FIXME. We need to do the same for MIPS, but it 3832*b725ae77Skettenis looks harder to determine the top-level block before it's been 3833*b725ae77Skettenis queued to the psymtab list. 3834*b725ae77Skettenis 3835*b725ae77Skettenis * symfile.c (symbol_file_add): Use filtered printing and wrap it. 3836*b725ae77Skettenis If we have wiped out any old symbol tables, clean up at end of 3837*b725ae77Skettenis symbol reading. 3838*b725ae77Skettenis (symbol_file_command): Don't reference symfile_fns if it's zero. 3839*b725ae77Skettenis 3840*b725ae77Skettenis * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New 3841*b725ae77Skettenis defines for the blocks of a blockvector that contain global and 3842*b725ae77Skettenis file-static symbols and the first of the smaller scope contours. 3843*b725ae77Skettenis * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line, 3844*b725ae77Skettenis decode_line_1, make_symbol_completion_list): Use the above. 3845*b725ae77Skettenis * coffread.c (end_symtab, patch_opaque_types): Ditto. 3846*b725ae77Skettenis * dbxread.c (end_symtab): Ditto. 3847*b725ae77Skettenis * expread.y (block): Ditto. 3848*b725ae77Skettenis * mipsread.c (throughout): Ditto. 3849*b725ae77Skettenis * symmisc.c (free_named_symtabs): Ditto. 3850*b725ae77Skettenis 3851*b725ae77Skettenis * symtab.c (list_symbols): Process the first symbol of the 3852*b725ae77Skettenis static psymbols list. 3853*b725ae77Skettenis (types_info): Restore this function from its untimely #if 0. 3854*b725ae77Skettenis It's not perfect, but it is better than nothing. 3855*b725ae77Skettenis (_initialize_symtab): Restore "info types". 3856*b725ae77Skettenis 3857*b725ae77SkettenisThu Apr 11 05:23:19 1991 John Gilmore (gnu at cygint.cygnus.com) 3858*b725ae77Skettenis 3859*b725ae77Skettenis * m68k-stub.c: Remote stub for 680x0's, created from 3860*b725ae77Skettenis rem-m68k.shar (which is removed). 3861*b725ae77Skettenis * nindy-share/{Makefile,Onindy.c,blout.h,env.h,nindy.c,ttyflush.c}: 3862*b725ae77Skettenis Remove RCS log stuff now that we use CVS and it blows our diffs. 3863*b725ae77Skettenis 3864*b725ae77SkettenisWed Apr 10 14:18:06 1991 John Gilmore (gnu at cygint.cygnus.com) 3865*b725ae77Skettenis 3866*b725ae77Skettenis * symmisc.c (free_named_symtab): Make it work, in its current 3867*b725ae77Skettenis kludgy fashion. Change result to indicate if we blew away bkpts. 3868*b725ae77Skettenis * dbxread.c (end_symtab): Accumulate result from 3869*b725ae77Skettenis free_named_symtab and print warning if we blew user's state. 3870*b725ae77Skettenis * symfile.h: free_named_symtab now returns an int. 3871*b725ae77Skettenis 3872*b725ae77SkettenisMon Apr 8 23:57:43 1991 John Gilmore (gnu at cygint.cygnus.com) 3873*b725ae77Skettenis 3874*b725ae77Skettenis * dbxread.c (dbx_symfile_read): Initialize psymbol list if this 3875*b725ae77Skettenis is the first symbol read, even if not mainline. 3876*b725ae77Skettenis (dbx_psymtab_to_symtab): symfile might be zero, cope. 3877*b725ae77Skettenis * exec.c (exec_ops): Add_syms_addr is valid in our tvec. 3878*b725ae77Skettenis (set_section_command): New command ("section xxx yyy" -- should 3879*b725ae77Skettenis be renamed to "set section xxx yyy" FIXME) which sets the 3880*b725ae77Skettenis base address of a section of the exec file, overriding the 3881*b725ae77Skettenis virtual address that BFD reports. 3882*b725ae77Skettenis 3883*b725ae77SkettenisFri Apr 5 17:14:39 1991 John Gilmore (gnu at cygint.cygnus.com) 3884*b725ae77Skettenis 3885*b725ae77Skettenis * exec.c: Add add_syms_addr_command to exec_ops, so you can 3886*b725ae77Skettenis load symbols at any address while examining an exec file. 3887*b725ae77Skettenis 3888*b725ae77SkettenisThu Apr 4 10:09:35 1991 John Gilmore (gnu at cygint.cygnus.com) 3889*b725ae77Skettenis 3890*b725ae77Skettenis * tm-i386v.h (FLOAT_INFO): Don't define it, since the code 3891*b725ae77Skettenis for printing the float info is host-dependent, not 3892*b725ae77Skettenis target-dependent. FIXME. 3893*b725ae77Skettenis * i386-pinsn.c: Move #includes to top, remove useless ones. 3894*b725ae77Skettenis * i386-tdep.c: Don't bother including <.../reg.h> since we 3895*b725ae77Skettenis don't use it (and it doesn't exist on host systems). 3896*b725ae77Skettenis 3897*b725ae77Skettenis * ieee-float.c (ieee_extended_to_double): Convert NaN to Inf. 3898*b725ae77Skettenis Convert negative numbers properly. 3899*b725ae77Skettenis (ieee_test): Make numbers really random; fix format arg. 3900*b725ae77Skettenis 3901*b725ae77Skettenis * infcmd.c (attach_command, detach_command): Don't repeat on CR. 3902*b725ae77Skettenis * core.c (core_detach): Unpush core_ops, which might not be on 3903*b725ae77Skettenis top. We used to just pop the top, which broke things. Don't 3904*b725ae77Skettenis need dont_repeat() any more. 3905*b725ae77Skettenis (core_file_command): Psst! Don't repeat it. 3906*b725ae77Skettenis * remote-nindy.c (nindy_detach): Don't need dont_repeat() now. 3907*b725ae77Skettenis * expprint.c (print_subexp): Avoid switch fallthru on 3908*b725ae77Skettenis BINOP_ASSIGN_MODIFY, so we can print += and such. 3909*b725ae77Skettenis * frame.h: Fix typo. 3910*b725ae77Skettenis * inflow.c (kill_command): After killing inferior, print our 3911*b725ae77Skettenis current frame in the core file, if we have one. 3912*b725ae77Skettenis (generic_mourn_inferior): When inferior dies, either select 3913*b725ae77Skettenis the current frame (in the new target, e.g. core file), or 3914*b725ae77Skettenis set both the current and selected frames to NULL. 3915*b725ae77Skettenis 3916*b725ae77Skettenis Changes from Peter Schauer. 3917*b725ae77Skettenis 3918*b725ae77Skettenis * infptrace.c: Avoid <sys/ptrace.h> on USG. 3919*b725ae77Skettenis 3920*b725ae77Skettenis * Make all file names fit in 14 characters (sigh and damn!): 3921*b725ae77Skettenis mv hp300hpux-xdep.c hp300ux-xdep.c 3922*b725ae77Skettenis mv symmetry-xdep.c symm-xdep.c 3923*b725ae77Skettenis mv symmetry-tdep.c symm-tdep.c 3924*b725ae77Skettenis mv convex-opcode.h convx-opcode.h 3925*b725ae77Skettenis mv tm-vxworks960.h tm-vx960.h 3926*b725ae77Skettenis mv tm-vxworks68.h tm-vx68.h 3927*b725ae77Skettenis mv Makefile.srcdir Makefile.sdir 3928*b725ae77Skettenis mv gdb-int.texinfo gdbint.texinfo 3929*b725ae77Skettenis mv remote-sa.m68k.shar rem-m68k.shar 3930*b725ae77Skettenis mv remote-multi.shar rem-multi.shar 3931*b725ae77Skettenis * Makefile.dist, README, config.gdb, convex-pinsn.c, 3932*b725ae77Skettenis tconfig/symmetry, tconfig/vxworks960, tconfig/vxworks68, 3933*b725ae77Skettenis xconfig/hp300hpux, xconfig/symmetry: Change names to shorter 3934*b725ae77Skettenis names. 3935*b725ae77Skettenis 3936*b725ae77Skettenis * command.c (user_info_1, user_info): New command for listing 3937*b725ae77Skettenis the user-defined commands. 3938*b725ae77Skettenis 3939*b725ae77SkettenisWed Apr 3 15:00:26 1991 John Gilmore (gnu at cygint.cygnus.com) 3940*b725ae77Skettenis 3941*b725ae77Skettenis * dbxread.c (really_free_pendings): Clear file_symbols 3942*b725ae77Skettenis and global_symbols after freeing them; otherwise, running 3943*b725ae77Skettenis this function twice (if it appears twice on the cleanup 3944*b725ae77Skettenis chain), we try to free things twice. 3945*b725ae77Skettenis 3946*b725ae77Skettenis * dbxread.c (read_dbx_symtab): Calculate end_of_text_addr 3947*b725ae77Skettenis based on text_addr (the address of text in core), not on addr (the 3948*b725ae77Skettenis offset between text in the .o file and in core). This change 3949*b725ae77Skettenis is from Peter Schauer. 3950*b725ae77Skettenis 3951*b725ae77Skettenis * main.c: Define ALL_CLEANUPS as a cast of zero. 3952*b725ae77Skettenis (return_to_top_level): Use it. 3953*b725ae77Skettenis (main): Do all cleanups after each command run as part 3954*b725ae77Skettenis of the gdb startup sequence. Also do all cleanups before 3955*b725ae77Skettenis entering the command loop, and every time we exit the command 3956*b725ae77Skettenis loop and reenter. Before, the cleanups from the startup sequence 3957*b725ae77Skettenis were being left undone until the first error! 3958*b725ae77Skettenis (command_loop): Rename do_nothing cleanup to command_loop_marker 3959*b725ae77Skettenis so we can see it easily when examining the cleanup chain. 3960*b725ae77Skettenis (init_signals): Add another do_nothing for signal handling. 3961*b725ae77Skettenis (quit_command): Only try to kill target if it has execution. 3962*b725ae77Skettenis Problems in the target stack got us into a state where 3963*b725ae77Skettenis inferior_pid was nonzero but none of the targets had execution. 3964*b725ae77Skettenis In this state you couldn't exit gdb. 3965*b725ae77Skettenis 3966*b725ae77Skettenis * dbxread.c: Two changes from Peter Schauer. 3967*b725ae77Skettenis (echo_command): Fflush output after an echo command. 3968*b725ae77Skettenis (show_history): Pass all args to cmd_show_list. 3969*b725ae77Skettenis 3970*b725ae77Skettenis * utils.c (init_malloc): Call mtrace to turn on tracing 3971*b725ae77Skettenis if the environment variable MALLOC_TRACE is set to a file name. 3972*b725ae77Skettenis * mtrace.c: Add source file which provides a log of every malloc, 3973*b725ae77Skettenis free, and realloc to a trace file. 3974*b725ae77Skettenis * mtrace.awk: Add source file which analyzes the trace file. 3975*b725ae77Skettenis * Makefile.dist (GNU_MALLOC, MALLOCSRC): Add mtrace.{c,o,awk}. 3976*b725ae77Skettenis (VERSION): Roll to 3.94.3. 3977*b725ae77Skettenis 3978*b725ae77Skettenis * breakpoint.c (breakpoint_1): Add a space to "i watch" output. 3979*b725ae77Skettenis (check_duplicates): Don't bother with watchpoints. 3980*b725ae77Skettenis (set_raw_breakpoint): Comment about danger of this routine. 3981*b725ae77Skettenis (watch_command): Parse and eval all args before calling 3982*b725ae77Skettenis set_raw_breakpoint. 3983*b725ae77Skettenis 3984*b725ae77Skettenis * solib.c (find_solib): Avoid error in referencing memory to 3985*b725ae77Skettenis see if any more shared libraries have been added. This is 3986*b725ae77Skettenis particularly useful if the target has terminated. Bug reported 3987*b725ae77Skettenis by Peter Schauer. 3988*b725ae77Skettenis 3989*b725ae77Skettenis Changes from Peter Schauer <pesrem@regent.e-technik.tu-muenchen.de> 3990*b725ae77Skettenis in bringing up 3.94.2 on the Sun-3. 3991*b725ae77Skettenis 3992*b725ae77Skettenis * Makefile.dist: Include CFLAGS in rule for cplus-dem.o. 3993*b725ae77Skettenis * breakpoint.c (enable_breakpoint): Check for valid watchpoint 3994*b725ae77Skettenis expression (in scope) before reenabling watchpoint. 3995*b725ae77Skettenis * signame.c (init_sigs): Add missing declaration of i, fix 3996*b725ae77Skettenis sys_siglist declaration. 3997*b725ae77Skettenis * source.c (list_command): Fixed range computation to use 3998*b725ae77Skettenis lines_to_list (). 3999*b725ae77Skettenis * stack.c (backtrace_command): Do not allow command if target has 4000*b725ae77Skettenis no stack, print informative error message. 4001*b725ae77Skettenis * target.c (target_command): Do not write into command line 4002*b725ae77Skettenis because this fails if the target command is used in a user defined 4003*b725ae77Skettenis command. [This change was enhanced by gnu to support any- 4004*b725ae77Skettenis unique-prefix matching on target names.] 4005*b725ae77Skettenis * valops.c (value_struct_elt): Avoid infinite loop on an 4006*b725ae77Skettenis erroneous attempt to print the member of function (try p main.p). 4007*b725ae77Skettenis 4008*b725ae77SkettenisMon Apr 1 17:05:45 1991 John Gilmore (gnu at cygint.cygnus.com) 4009*b725ae77Skettenis 4010*b725ae77Skettenis * expread.y (name_no_typename): Avoid reduce/reduce errors 4011*b725ae77Skettenis caused by ambiguity in handling NAME_OR_INT and NAME_OR_UINT. 4012*b725ae77Skettenis Since the GDB parser really doesn't use name_no_typename in a 4013*b725ae77Skettenis name-only context, the parser can't tell the diff between 4014*b725ae77Skettenis names and numbers here. Avoid allowing a name_no_typename 4015*b725ae77Skettenis to be a NAME_OR_*INT to resolve the conflict. 4016*b725ae77Skettenis 4017*b725ae77SkettenisSun Mar 31 20:12:07 1991 John Gilmore (gnu at cygint.cygnus.com) 4018*b725ae77Skettenis 4019*b725ae77Skettenis Bugfixes from Mark Fox (markf@wrs.com) (test=testField.c): 4020*b725ae77Skettenis 4021*b725ae77Skettenis * valprint.c (val_print_fields): bitfield printing didn't handle 4022*b725ae77Skettenis byte order. Indirect through a few more fns to cope. 4023*b725ae77Skettenis 4024*b725ae77Skettenis * values.c (modify_field): also cope with byte order. 4025*b725ae77Skettenis 4026*b725ae77SkettenisSat Mar 23 10:02:21 1991 John Gilmore (gnu at cygint.cygnus.com) 4027*b725ae77Skettenis 4028*b725ae77Skettenis Cleanup for release 3.94.2: 4029*b725ae77Skettenis 4030*b725ae77Skettenis * Makefile.dist: Pull REMOTE_OBS. Fix saber includes for BFD 4031*b725ae77Skettenis include files. Roll version to 3.94.2. 4032*b725ae77Skettenis 4033*b725ae77Skettenis * coffread.c (init_stringtab): Read length into unsigned char 4034*b725ae77Skettenis array before swapping; don't assume 32-bit longs. 4035*b725ae77Skettenis 4036*b725ae77Skettenis * target.c (target_info): Don't bother with get_sym_file, just use 4037*b725ae77Skettenis the symfile global variable. 4038*b725ae77Skettenis * symtab.h, symfile.c (get_sym_file): Delete it. 4039*b725ae77Skettenis 4040*b725ae77Skettenis * dbxread.c (dbx_symfile_init): Don't depend on long == 4 bytes. 4041*b725ae77Skettenis (define_symbol): Set symbol line number to 0 if not gcc-compiled. 4042*b725ae77Skettenis (read_type): Replace one more error() with complain(). 4043*b725ae77Skettenis 4044*b725ae77Skettenis * mipsread.c (parse_partial_symbols): Replace printf with complain. 4045*b725ae77Skettenis 4046*b725ae77Skettenis * i960-tdep.c: Fix copyright attribution. 4047*b725ae77Skettenis 4048*b725ae77Skettenis * config.gdb: Quote all backquotes in doublequotes. You can 4049*b725ae77Skettenis quote me on that. BSD 4.4 shell found this one. 4050*b725ae77Skettenis 4051*b725ae77Skettenis * infptrace.c (throughout): The third argument to ptrace is an 4052*b725ae77Skettenis int *, not an int. 4053*b725ae77Skettenis 4054*b725ae77Skettenis * infrun.c (wait_for_inferior): When program has terminated, we 4055*b725ae77Skettenis have to call target_terminal_ours before we pop that target off 4056*b725ae77Skettenis the stack (e.g. before a call to target_kill or 4057*b725ae77Skettenis target_mourn_inferior). This fixes problem where a program 4058*b725ae77Skettenis terminates, then GDB stops for (tty output) and you have to type 4059*b725ae77Skettenis "fg" to the shell to resume it. FIXME: This code for what to 4060*b725ae77Skettenis do after termination really should be in normal_stop instead. 4061*b725ae77Skettenis 4062*b725ae77Skettenis * gdbcore.h (read_memory_check): Change declaration; it changed 4063*b725ae77Skettenis names months ago. 4064*b725ae77Skettenis 4065*b725ae77Skettenis * terminal.h: Include <sgtty.h> before <sys/ioctl.h>, since in BSD 4066*b725ae77Skettenis 4.4 prereleases, this avoids a bug in their sgtty compatability 4067*b725ae77Skettenis support. 4068*b725ae77Skettenis * remote.c: Use terminal.h rather than hand-rolling the same. 4069*b725ae77Skettenis 4070*b725ae77Skettenis * signame.c, signame.h (psignal): Arg is unsigned, not int. 4071*b725ae77Skettenis * utils.c (strsave, strstr): Fix arg types. 4072*b725ae77Skettenis * valprint.c (val_print): lint 4073*b725ae77Skettenis 4074*b725ae77Skettenis MIPS symbol table support from Per Bothner: 4075*b725ae77Skettenis 4076*b725ae77Skettenis * symfile.c (symtab_fns): Remove initializer table that needs to 4077*b725ae77Skettenis be hacked for each new symbol file format supported. 4078*b725ae77Skettenis (add_symtab_fns): New function, chains symbol table 4079*b725ae77Skettenis handlers into the global list. 4080*b725ae77Skettenis (symfile_init): Search this list. 4081*b725ae77Skettenis * symfile.h: Add next pointer, declare add_symtab_fns. 4082*b725ae77Skettenis * coffread.c (_initialize_coffread): Call add_symtab_fns. 4083*b725ae77Skettenis * dbxread.c (_initialize_dbxread): Call add_symtab_fns. 4084*b725ae77Skettenis 4085*b725ae77Skettenis * mipsread.c (psymtab_to_symtab_1): return void instead of (struct 4086*b725ae77Skettenis symbol *). Thus, we no longer need the hack to trash 4087*b725ae77Skettenis pst->filename. Good, since that hack confused code in symfile.c! 4088*b725ae77Skettenis 4089*b725ae77Skettenis (reorder_symtabs, destroy_all_symtabs): Removed static 4090*b725ae77Skettenis all_symtabs, which was used to qsort symtabs in reorder_symtabs. 4091*b725ae77Skettenis Instead, the latter now uses a temporary array (stack-allocated 4092*b725ae77Skettenis from an obstack, and then freed). 4093*b725ae77Skettenis 4094*b725ae77Skettenis (parse_symbol): Added a hack to fix up BLOCK_{START,END} if they 4095*b725ae77Skettenis haven't been set in the outermost stBlock of a procedure. This was 4096*b725ae77Skettenis a problem with f77 binaries on Ultrix 4.?. 4097*b725ae77Skettenis 4098*b725ae77Skettenis (new_symtab, new_symbol, new_type): Continue changing code to use 4099*b725ae77Skettenis obstacks more and otherwise conform to dbxread internal style. 4100*b725ae77Skettenis Made the free_code of symtabs be free_linetable (as in dbxread) 4101*b725ae77Skettenis instead of free_contents. This implies memory leaks when reading 4102*b725ae77Skettenis a new symbol table, until the conversion is finished. Did change 4103*b725ae77Skettenis (struct symbol) and (struct type) to be allocated on the 4104*b725ae77Skettenis symbol_obstack. Blocks and blockvectors are among the things 4105*b725ae77Skettenis still "leaking." 4106*b725ae77Skettenis 4107*b725ae77Skettenis * mipsread.c (parse_partial_symbols, parse_fdr): It hasn't been 4108*b725ae77Skettenis tested much, but it solved one problem (reported by Meissner), and 4109*b725ae77Skettenis cleans up some other things. The problem happened when an 4110*b725ae77Skettenis included file contains actual code (functions) and not just 4111*b725ae77Skettenis definitions. The mips coff is a little inconvenient there, since 4112*b725ae77Skettenis it may cause a procedure to be mapped to the wrong psymtab. 4113*b725ae77Skettenis 4114*b725ae77Skettenis * mips-tdep.c (heuristic_proc_desc): Minor cleanup. 4115*b725ae77Skettenis * mips-xdep.c (fetch_core_registers): Minor cleanup. FIXME, 4116*b725ae77Skettenis this will need work for the new core paradigm. 4117*b725ae77Skettenis 4118*b725ae77Skettenis Opcode patches from the net: 4119*b725ae77Skettenis 4120*b725ae77Skettenis * mips-opcode.h: fix incorrect disassembly of the mfc1, cfc1, and 4121*b725ae77Skettenis ctc1 instructions. Also, the cvt.d.w and cvt.s.w instructions were 4122*b725ae77Skettenis missing altogether - they are added here. From Bruce Bauman. 4123*b725ae77Skettenis * mips-opcode.h: The low mask for C0 instructions was too small. 4124*b725ae77Skettenis From Garrett Lau. I modified the fix to check the entire 32-bit 4125*b725ae77Skettenis opcode. 4126*b725ae77Skettenis 4127*b725ae77Skettenis * ns32k-opcode.h: Fix opcodes for deiw and deid. From Bruce 4128*b725ae77Skettenis Bauman. 4129*b725ae77Skettenis 4130*b725ae77SkettenisThu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com) 4131*b725ae77Skettenis 4132*b725ae77Skettenis Roll in changes from Per Bothner (Tue, 25 Sep 90 11:11:04): 4133*b725ae77Skettenis 4134*b725ae77Skettenis * dbxread.c (read_type): Pointer subtraction (value_sub in 4135*b725ae77Skettenis valarith.c) sometimes failed because the types of the 4136*b725ae77Skettenis pointers being subtracted were not identical. 4137*b725ae77Skettenis These differed because dbxread.c was allocating pointer types 4138*b725ae77Skettenis using dbx_alloc_type+smash_to_pointer_type instead of 4139*b725ae77Skettenis lookup_pointer_type. I failed to find a justification for the 4140*b725ae77Skettenis former, so I changed it to use the latter. Similarly, I 4141*b725ae77Skettenis replaced smash_to_function_type by lookup_function_type, 4142*b725ae77Skettenis and smash_to_reference_type by lookup_reference_type. 4143*b725ae77Skettenis 4144*b725ae77Skettenis * mipsread.c (parse_symbol, upgrade_type, parse_procedure, 4145*b725ae77Skettenis _initialize_mipsread): corresponding changes. 4146*b725ae77Skettenis 4147*b725ae77Skettenis * symtab.c (smash_to_{pointer,reference,function}_type): eliminate. 4148*b725ae77Skettenis 4149*b725ae77Skettenis * source.c (mod_path): Do tilde_expand on each component of the path, 4150*b725ae77Skettenis rather than on the (list of) paths as a whole. 4151*b725ae77Skettenis (print_source_lines): Set first_line_listed in addition to 4152*b725ae77Skettenis current_source_symtab and current_source_line. If the source was 4153*b725ae77Skettenis not findable, after a "dir" command to fix the problem, 4154*b725ae77Skettenis a "list" would get the wrong lines. 4155*b725ae77Skettenis 4156*b725ae77Skettenis While I was there... (gnu): 4157*b725ae77Skettenis 4158*b725ae77Skettenis * dbxread.c (read_type): Change error to complaint. 4159*b725ae77Skettenis 4160*b725ae77SkettenisThu Mar 21 12:56:46 1991 John Gilmore (gnu at cygint.cygnus.com) 4161*b725ae77Skettenis 4162*b725ae77Skettenis First attempt at detailed understanding of symbol table memory alloc. 4163*b725ae77Skettenis 4164*b725ae77Skettenis * dbxread.c (dbx_symfile_read): Free our string table if we 4165*b725ae77Skettenis aren't the mainline. Free the "info" struct since we're done with 4166*b725ae77Skettenis it. 4167*b725ae77Skettenis (init_psymbol_list): Free any previously allocated psymbol lists. 4168*b725ae77Skettenis (): FIXME: Should realloc-down the psymbol lists when done reading 4169*b725ae77Skettenis the main symbol file? 4170*b725ae77Skettenis 4171*b725ae77Skettenis * symmisc.c (free_symtab): Free fullname field too. 4172*b725ae77Skettenis 4173*b725ae77Skettenis * xm-hp300hpux.h (USG): #undef then #define so Makefile can -D. 4174*b725ae77Skettenis (REGISTER_ADDR): Make result type unsigned int. 4175*b725ae77Skettenis 4176*b725ae77Skettenis * xconfig/{i386*,hp300hpux,altosgas,altos}: All config files that 4177*b725ae77Skettenis define REGEX must also define REGEX1 (its dependency). 4178*b725ae77Skettenis 4179*b725ae77SkettenisTue Mar 19 21:28:57 1991 John Gilmore (gnu at cygint.cygnus.com) 4180*b725ae77Skettenis 4181*b725ae77Skettenis * tconfig/i960: No longer works, points you at vxworks960 or 4182*b725ae77Skettenis nindy960. 4183*b725ae77Skettenis 4184*b725ae77Skettenis * xgdb.c, XGDB-README: Remove file. Users can get the much 4185*b725ae77Skettenis better xxgdb. 4186*b725ae77Skettenis * Makefile.dist: Remove all trace of xgdb. 4187*b725ae77Skettenis 4188*b725ae77Skettenis * breakpoint.c (breakpoint_1): Pass demangle arg to 4189*b725ae77Skettenis print_address_symbolic. 4190*b725ae77Skettenis (clear_breakpoints): Remove unused function. 4191*b725ae77Skettenis (breakpoint_re_set_one): Guts of breakpoint_re_set. 4192*b725ae77Skettenis (breakpoint_re_set): Use catch_errors to do them all anyway. 4193*b725ae77Skettenis 4194*b725ae77Skettenis * gdb-int.texinfo (Host versus Target): Add section on what is 4195*b725ae77Skettenis a "host" feature versus what is a "target" feature. 4196*b725ae77Skettenis 4197*b725ae77Skettenis * infcmd.c (path_command, path_info): Handle the PATH variable 4198*b725ae77Skettenis (object search path) as conveniently as the source search path. 4199*b725ae77Skettenis * environ.c (set_in_environ): Set some vars in GDB's environment, 4200*b725ae77Skettenis in addition to the child's. PATH, G960BASE, G960BIN for starters. 4201*b725ae77Skettenis * source.c (mod_path): New function, from guts of 4202*b725ae77Skettenis directory_command, modifies a path. Used by path_command. 4203*b725ae77Skettenis (directory_command): Call it. 4204*b725ae77Skettenis * defs.h (strsave): Declare. 4205*b725ae77Skettenis 4206*b725ae77Skettenis * utils.c (sevenbit_strings): Add new printing option. 4207*b725ae77Skettenis (printchar): Use it. 4208*b725ae77Skettenis (strsave): Provide this handy helper routine. 4209*b725ae77Skettenis (set_width_command): Rename set_screen_width_command. 4210*b725ae77Skettenis (_initialize_utils): "set screen-width" => "set width"; 4211*b725ae77Skettenis "set screen-height" => "set height"; add sevenbit-strings. 4212*b725ae77Skettenis 4213*b725ae77Skettenis * infcmd.c (do_registers_info): Print floating point registers 4214*b725ae77Skettenis in raw hex as well as float format, regardless of whether it is 4215*b725ae77Skettenis a "virtual" convertible register. 4216*b725ae77Skettenis * tm-sparc.h (PRINT_REGISTER_HOOK): Print every pair of float 4217*b725ae77Skettenis regs as a double, just in case it's being used that way. 4218*b725ae77Skettenis * values.c (unpack_long): Comment on array/function coercion. 4219*b725ae77Skettenis (unpack_double): Argument is in target byte order now. For 4220*b725ae77Skettenis integer arguments, just call unpack_long and float the result. 4221*b725ae77Skettenis * m68k-tdep.c: include defs.h for "const" handling. 4222*b725ae77Skettenis * remote-nindy.c: Use ieee-float stuff. 4223*b725ae77Skettenis (nindy_fetch_registers): Unpack double regs to host double, then 4224*b725ae77Skettenis to extended. 4225*b725ae77Skettenis (nindy_store_registers): Pack extendeds to host double, flip 4226*b725ae77Skettenis around by misusing unpack_double, send as target double. 4227*b725ae77Skettenis 4228*b725ae77Skettenis * tm-vxworks68.h (FRAME_CHAIN): Handle current frame pointer of 4229*b725ae77Skettenis zero, as when stopped at the first instruction of a process. 4230*b725ae77Skettenis 4231*b725ae77Skettenis * blockframe.c: Fix filename in comment (param.h => tm.h). 4232*b725ae77Skettenis * sparc-tdep.c (skip_prologue): More explicit nudging comments. 4233*b725ae77Skettenis * tm-68k.h: Fix typos. 4234*b725ae77Skettenis 4235*b725ae77SkettenisFri Mar 15 01:09:34 1991 John Gilmore (gnu at cygint.cygnus.com) 4236*b725ae77Skettenis 4237*b725ae77Skettenis Changes from a bringup on the DEC Vax under Ultrix 4.0. 4238*b725ae77Skettenis 4239*b725ae77Skettenis * coredep.c (fetch_core_registers): Pass end-address of register 4240*b725ae77Skettenis section to register_addr as expected. Don't call supply_register 4241*b725ae77Skettenis if we'd just pass it garbage. 4242*b725ae77Skettenis 4243*b725ae77Skettenis * dbxread.c (read_dbx_symtab): Skip N_NSYMS on Ultrix. 4244*b725ae77Skettenis 4245*b725ae77Skettenis * exec.c (xfer_memory): Use boolean xfer_fn result, not int. 4246*b725ae77Skettenis 4247*b725ae77Skettenis * target.c (push_target, target_info): Cast enums to int for < or 4248*b725ae77Skettenis > comparison. 4249*b725ae77Skettenis 4250*b725ae77Skettenis * stack.c (print_frame_info): Identify source file & line 4251*b725ae77Skettenis even if we can't print it. 4252*b725ae77Skettenis 4253*b725ae77Skettenis * xm-vax.h (MISSING_VPRINTF): No longer missing in Ultrix V4.0. 4254*b725ae77Skettenis 4255*b725ae77SkettenisSat Mar 9 10:08:20 1991 John Gilmore (gnu at cygint.cygnus.com) 4256*b725ae77Skettenis 4257*b725ae77Skettenis Clean up IEEE floating point support. 4258*b725ae77Skettenis 4259*b725ae77Skettenis * ieee-float.h: New file. 4260*b725ae77Skettenis * ieee-float.c: Write real routines to convert between host 4261*b725ae77Skettenis doubles and various target IEEE extendeds. 4262*b725ae77Skettenis * m68k-xdep.c: Eliminate assembler code for extended floats. 4263*b725ae77Skettenis * xconfig/{3b1,altos,altosgas,hp300bsd,isi,news,news1000,sun2os3, 4264*b725ae77Skettenis sun2os4,sun3,sun3os3,sun3os4}: Eliminate use of m68k-xdep.o. 4265*b725ae77Skettenis * tm-i960.h, tm-68k.h (REGISTER_CONVERT_TO_VIRTUAL, 4266*b725ae77Skettenis REGISTER_CONVERT_TO_RAW): Use ieee_extended_to_double and 4267*b725ae77Skettenis double_to_ieee_extended. 4268*b725ae77Skettenis * i960-tdep.c: Define ext_format_i960. 4269*b725ae77Skettenis * m68k-tdep.c: Define ext_format_68881. 4270*b725ae77Skettenis * sparc-tdep.c: Define ext_format_sparc, though unused. 4271*b725ae77Skettenis * Makefile.dist (HFILES): Add ieee-float.h. 4272*b725ae77Skettenis * inftarg.c: #include "ieee-float.h" for the REGISTER_CONVERT 4273*b725ae77Skettenis macros. 4274*b725ae77Skettenis 4275*b725ae77Skettenis Obsolete the "coffstrip" program in favor of using BFD's strip. 4276*b725ae77Skettenis 4277*b725ae77Skettenis * nindy-share/coffstrip.c: Remove file. 4278*b725ae77Skettenis * nindy-share/nindy.c (coffstrip): Routine to run bfd_strip. 4279*b725ae77Skettenis * Makefile.dist: Remove references to nindy-share/coffstrip.c. 4280*b725ae77Skettenis * tconfig/nindy960: Remove reference to coffstrip.o. 4281*b725ae77Skettenis 4282*b725ae77Skettenis * Makefile.dist: Roll version number to 3.94.1 (not yet final). 4283*b725ae77Skettenis 4284*b725ae77SkettenisWed Mar 6 09:56:45 1991 John Gilmore (gnu at cygint.cygnus.com) 4285*b725ae77Skettenis 4286*b725ae77Skettenis * symfile.h: Add symfile_bfd, common between dbxread and coffread. 4287*b725ae77Skettenis * dbxread.c: Remove static symfile_bfd. 4288*b725ae77Skettenis * infcmd.c (do_registers_info): Add PRINT_REGISTER_HOOK, though 4289*b725ae77Skettenis it is not used yet. 4290*b725ae77Skettenis * inftarg.c (child_detach): Pop the child_ops vector if the 4291*b725ae77Skettenis detach is successful. 4292*b725ae77Skettenis * remote-nindy.c (nindy_create_inferior): Don't push a new 4293*b725ae77Skettenis nindy_ops since nindy uses the same one for execution and memory 4294*b725ae77Skettenis examination anyway. 4295*b725ae77Skettenis * core.c (core_ops): Use child_attach and child_create_inferior 4296*b725ae77Skettenis rather than default attach and create_inferior functions. 4297*b725ae77Skettenis 4298*b725ae77Skettenis Handle floating point registers in core files. 4299*b725ae77Skettenis 4300*b725ae77Skettenis * sparc-xdep.c (fetch_core_registers): Rewrite for float support. 4301*b725ae77Skettenis * sun3-xdep.c (fetch_core_registers): Rewrite for float support. 4302*b725ae77Skettenis This version untested since BFD doesn't yet support sun3 core 4303*b725ae77Skettenis files. 4304*b725ae77Skettenis * hp300hpux-xdep.c: Rewrite fetch_core_registers to new calling 4305*b725ae77Skettenis conventions. Fix comments and style. This version has not 4306*b725ae77Skettenis been compiled yet, since we have no HP inhouse. 4307*b725ae77Skettenis * core.c (get_core_registers): Look for two sections, ".reg" 4308*b725ae77Skettenis and ".reg2", and pass both to fetch_core_registers sequentially. 4309*b725ae77Skettenis 4310*b725ae77Skettenis Revise directory path yet again. 4311*b725ae77Skettenis 4312*b725ae77Skettenis * source.c (forget_cached_source_info): Not static any more. 4313*b725ae77Skettenis (init_source_path): New default source path is "$cdir:$cwd". 4314*b725ae77Skettenis (dir_command): Handle variable arguments ($cdir, $cwd). 4315*b725ae77Skettenis (source_info): Print "Compilation directory" rather than 4316*b725ae77Skettenis "Originally compiled in" to remind people of $cdir. 4317*b725ae77Skettenis (openp): If the path contains $cwd, use current directory. 4318*b725ae77Skettenis (open_source_file): If compilation directory is known, replace 4319*b725ae77Skettenis first $cdir in path with the compilation directory. 4320*b725ae77Skettenis (print_source_lines): Even if we can't print the lines, set the 4321*b725ae77Skettenis current symtab and line for future commands like "info source" or 4322*b725ae77Skettenis "breakpoint". Also, error message now contains the file name, 4323*b725ae77Skettenis line number, and file access error message. 4324*b725ae77Skettenis (_initialize_source): Fix help text to describe changes. 4325*b725ae77Skettenis * main.c (cd_command): Forget cached source info when we chdir. 4326*b725ae77Skettenis * utils.c (strstr): Add simple implementation. 4327*b725ae77Skettenis 4328*b725ae77SkettenisTue Mar 5 01:41:40 1991 John Gilmore (gnu at fowanton.cygnus.com) 4329*b725ae77Skettenis 4330*b725ae77Skettenis * coffread.c (read_one_sym, init_linetable, init_stringtab): 4331*b725ae77Skettenis Byte-swap COFF symbol tables if necessary when reading them in. 4332*b725ae77Skettenis Use complain() to replace error message in one spot. Needs 4333*b725ae77Skettenis corresponding change in bfd/coff-code.h to make some symbol 4334*b725ae77Skettenis swapping routines non-static. 4335*b725ae77Skettenis 4336*b725ae77SkettenisMon Mar 4 00:53:40 1991 John Gilmore (gnu at cygint.cygnus.com) 4337*b725ae77Skettenis 4338*b725ae77Skettenis Merge changes from Eirik Fuller, for UTek. 4339*b725ae77Skettenis 4340*b725ae77Skettenis * defs.h (errno): Add declaration. 4341*b725ae77Skettenis * altos-xdep.c, arm-xdep.c, convex-xdep.c, gould-xdep.c, 4342*b725ae77Skettenis hp300hpux-xdep.c, infrun.c, inflow.c, infptrace.c, i386-tdep.c, 4343*b725ae77Skettenis i386-xdep.c, pyr-xdep.c, mips-xdep.c, remote-eb.c, remote-nindy.c, 4344*b725ae77Skettenis remote-vx.c, source.c, standalone.c, stuff.c, sun386-xdep.c, 4345*b725ae77Skettenis symmetry-tdep.c, symmetry-xdep.c, umax-xdep.c, utils.c: Eliminate 4346*b725ae77Skettenis declarations of errno. 4347*b725ae77Skettenis 4348*b725ae77Skettenis * remote-eb.c: Define B19200 and B38400 as EXTA and EXTB. 4349*b725ae77Skettenis 4350*b725ae77Skettenis * remote-vx.c: Include <sys/time.h> for UTek; Sun gets it via 4351*b725ae77Skettenis <rpc/rpc.h> and <rpc/types.h>. 4352*b725ae77Skettenis 4353*b725ae77SkettenisSat Mar 2 15:47:55 1991 John Gilmore (gnu at cygint.cygnus.com) 4354*b725ae77Skettenis 4355*b725ae77Skettenis * i960-tdep.c (examine_prologue): Add new argument limit, 4356*b725ae77Skettenis which stops the scan at the end of the prologue, or at the PC. 4357*b725ae77Skettenis This fixes a problem where it walks down into the code for the 4358*b725ae77Skettenis user's statements if that code looks like function prologues. 4359*b725ae77Skettenis Mark Fox and I have been bouncing this code back and forth, making 4360*b725ae77Skettenis small changes to it. Callers changed to match. 4361*b725ae77Skettenis 4362*b725ae77SkettenisTue Feb 26 01:47:07 1991 Cygnus John Gilmore (cygnus at yuba) 4363*b725ae77Skettenis 4364*b725ae77Skettenis Cleanup for gdb-3.94 release final: 4365*b725ae77Skettenis 4366*b725ae77Skettenis * Makefile.dist: Remove remote-vx.c, remote-nindy.c, and all 4367*b725ae77Skettenis the .c files from vx-share and nindy-share, from the various 4368*b725ae77Skettenis macros, since they are not found via ALLDEPFILES. 4369*b725ae77Skettenis (SFILES): Add tm-i960.h. 4370*b725ae77Skettenis (alldeps.mak rule): Break out ALLDEPFILES_MAINDIR and 4371*b725ae77Skettenis ALLDEPFILES_SUBDIR. List all the nindy and vxworks subdir files 4372*b725ae77Skettenis in the SUBDIR list. 4373*b725ae77Skettenis (TAGFILES_MAINDIR): Change ALLDEPFILES to ALLDEPFILES_MAINDIR. 4374*b725ae77Skettenis (gdb.tar.Z): Use ALLDEPFILES_SUBDIR as well as SFILES_SUBDIR. 4375*b725ae77Skettenis 4376*b725ae77SkettenisMon Feb 25 16:02:35 1991 Cygnus John Gilmore (cygnus at oldman) 4377*b725ae77Skettenis 4378*b725ae77Skettenis * am29k-tdep.c: Add contribution line. 4379*b725ae77Skettenis (examine_prologue): Cache information about function prologues in 4380*b725ae77Skettenis the misc-function-vector to avoid lots of references over the 4381*b725ae77Skettenis serial line while examining instructions. 4382*b725ae77Skettenis 4383*b725ae77Skettenis * core.c (core_close): New function made from cleanup_core. 4384*b725ae77Skettenis 4385*b725ae77Skettenis * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c, 4386*b725ae77Skettenis remote-vx.c, remote.c, target.c, target.h, 4387*b725ae77Skettenis Update target_ops vector to add attach, close, and load entries. 4388*b725ae77Skettenis Use add_syms_addr_command, not add_file_addr_command, for 4389*b725ae77Skettenis add_file. Break out close routine from existing code. 4390*b725ae77Skettenis 4391*b725ae77Skettenis * dbxread.c (really_free_pendings): Don't free pending_blocks; 4392*b725ae77Skettenis they are in an obstack. 4393*b725ae77Skettenis (read_dbx_symtab): Relocate end_of_text_addr in the psymtab. 4394*b725ae77Skettenis Lint. 4395*b725ae77Skettenis (define_symbol): Add symbol type parameter; change callers; 4396*b725ae77Skettenis pass type parameter to DBX_PARM_SYMBOL_CLASS macro to allow 4397*b725ae77Skettenis it to influence the symbol class on the i960. 4398*b725ae77Skettenis (define_symbol): Swap LOC_CONST's into target byte order. 4399*b725ae77Skettenis 4400*b725ae77Skettenis * exec.c (exec_close): New function. 4401*b725ae77Skettenis (exec_file_command): Call it. 4402*b725ae77Skettenis 4403*b725ae77Skettenis * findvar.c (read_relative_register_raw_bytes): Doc byte order, 4404*b725ae77Skettenis Fix byte order of frame pointer. 4405*b725ae77Skettenis (read_var_value): Result of 0 if var's value can't be found, 4406*b725ae77Skettenis e.g. missing FRAME_ARGS_ADDRESS. Byte-swap LOC_CONST and 4407*b725ae77Skettenis LOC_LABEL values to target order. Add LOC_LOCAL_ARG. 4408*b725ae77Skettenis (locate_var_value): Use read_var_value and use its lazy address 4409*b725ae77Skettenis as the location of the var's value. Lint. 4410*b725ae77Skettenis 4411*b725ae77Skettenis * i960-pinsn.c (next_insn): Add routine from vxgdb for scanning 4412*b725ae77Skettenis instructions. 4413*b725ae77Skettenis 4414*b725ae77Skettenis * i960-tdep.c (arg_address, i960_frame_find_saved_regs): Remove 4415*b725ae77Skettenis obsolete Intel versions in favor of vxgdb versions. 4416*b725ae77Skettenis (check_host, byteswap, byteswap_val, reorder_val): Eliminate 4417*b725ae77Skettenis code dealing with byte order of values, which Intel did in host byte 4418*b725ae77Skettenis order rather than gdb-4's target byte order. 4419*b725ae77Skettenis (i960_frame_chain_valid): Move to nindy-tdep.c. 4420*b725ae77Skettenis (examine_prologue, skip_prologue, frame_find_saved_regs, 4421*b725ae77Skettenis frame_args_address, leafproc_return, saved_pc_after_call, 4422*b725ae77Skettenis pop_frame): Add vxgdb versions from Mark Fox. 4423*b725ae77Skettenis (examine_prologue, frame_struct_result_address): Add code 4424*b725ae77Skettenis to deal with the saved value of G13 (struct return address 4425*b725ae77Skettenis pointer). 4426*b725ae77Skettenis (frame_args_address): Modify Mark's version to prefer the 4427*b725ae77Skettenis saved value over the current value in the topmost frame. 4428*b725ae77Skettenis Cache result in the frame info to avoid performance hair in 4429*b725ae77Skettenis callers. 4430*b725ae77Skettenis (print_fault): Add gdb960 code for printing faults. 4431*b725ae77Skettenis (_initialize_i960): Actually call check_host. 4432*b725ae77Skettenis 4433*b725ae77Skettenis * ieee-float.c (ieee_extended_to_double, ieee_double_to_extended): 4434*b725ae77Skettenis add stub routines. FIXME, these currently just return zero! 4435*b725ae77Skettenis 4436*b725ae77Skettenis * infcmd.c (program_info): Use PRINT_RANDOM_SIGNAL. 4437*b725ae77Skettenis (attach_command): Call target_attach, not target_open, now. 4438*b725ae77Skettenis 4439*b725ae77Skettenis * infrun.c (normal_stop): Make global, not static, for vx_attach. 4440*b725ae77Skettenis (child_attach): Rename from child_open. 4441*b725ae77Skettenis (wait_for_inferior): Use PRINT_RANDOM_SIGNAL. If stop_pc is zero, 4442*b725ae77Skettenis don't confuse it with a zero step_resume_break_address. 4443*b725ae77Skettenis 4444*b725ae77Skettenis * inftarg.c (child_detach): Eliminate inferior_pid test. 4445*b725ae77Skettenis (child_files_info): Clean up message a bit. 4446*b725ae77Skettenis (child_ops): Use child_attach, not child_open, to attach. 4447*b725ae77Skettenis 4448*b725ae77Skettenis * mem-break.c: #ifdef out the whole file if BREAKPOINT is not 4449*b725ae77Skettenis set (e.g. on VxWorks or NINDY). Move read_memory_nobpt from 4450*b725ae77Skettenis findvar.c to here, since it depends on the contents of the 4451*b725ae77Skettenis shadow_contents of breakpoints, but keep if #if 0 since it is 4452*b725ae77Skettenis never called. 4453*b725ae77Skettenis 4454*b725ae77Skettenis * nindy-tdep.c: New file, contains nindy_frame_chain_valid, moved 4455*b725ae77Skettenis from i960-tdep.c. 4456*b725ae77Skettenis 4457*b725ae77Skettenis * printcmd.c (address_info): Handle LOC_LOCAL_ARG. Lint. 4458*b725ae77Skettenis (ptype_command, display_command): Eliminate have_inferior_p and 4459*b725ae77Skettenis have_core_file_p in favor of target_has_stack or 4460*b725ae77Skettenis target_has_execution. 4461*b725ae77Skettenis (print_frame_args): Handle LOC_LOCAL_ARG. Eliminate duplicate 4462*b725ae77Skettenis code for actually finding the values of arguments, though we still 4463*b725ae77Skettenis keep track of the maximum stack offset for use in printing unnamed 4464*b725ae77Skettenis arguments. Handle missing FRAME_ARGS_ADDRESS. 4465*b725ae77Skettenis 4466*b725ae77Skettenis * remote-nindy.c (i960_print_fault): Move to i960-tdep.c. 4467*b725ae77Skettenis (struct nindy_regs): Define registers passed to/from nindy. 4468*b725ae77Skettenis (nindy_fetch_registers, nindy_store-registers): Translate between 4469*b725ae77Skettenis nindy and GDB formats for the registers. 4470*b725ae77Skettenis (dcache_init): Statically allocate the cache, since it was being 4471*b725ae77Skettenis allocated by a malloc that was never freed anyway. 4472*b725ae77Skettenis (nindy_create_inferior): Error, not core dump, if no exec file. 4473*b725ae77Skettenis (nindy_before_main_loop): Use target_load, not target_add_file. 4474*b725ae77Skettenis 4475*b725ae77Skettenis * remote-vx.c (net_load): Specify large timeout for load 4476*b725ae77Skettenis requests. Allow user to break out with INTERRUPT. 4477*b725ae77Skettenis (net_break): Remove useless code, clean up. Change callers. 4478*b725ae77Skettenis (parse-args, skip_white_space, find_white_space): Clean up arg 4479*b725ae77Skettenis parsing to cope with quoted strings. 4480*b725ae77Skettenis (net_wait, net_quit): Never call error, just return status. 4481*b725ae77Skettenis (vx_read_register, vx_write_register): Cleanup status checking. 4482*b725ae77Skettenis #ifdef the code based on which CPU we are using (960 or 68k), 4483*b725ae77Skettenis FIXME, this should be completely general but it isn't yet. 4484*b725ae77Skettenis (vx_xfer_memory, vx_resume): Cleanup status checking. 4485*b725ae77Skettenis (vx_run_files_info): Improve message. 4486*b725ae77Skettenis (vx_load_command): Renamed from vx_add_file_command. Allow load 4487*b725ae77Skettenis to be interrupted. 4488*b725ae77Skettenis (net_ptrace): Remove unused routine. 4489*b725ae77Skettenis (vx_wait): Adopt code from vxgdb960 to cope with broken 4490*b725ae77Skettenis connections to target machine and prompt to disconnect. Remove 4491*b725ae77Skettenis debug printouts. Map some EVENT_'s to SIGnals. 4492*b725ae77Skettenis (add_symbol_stub, vx_open): Print names of object files we found, 4493*b725ae77Skettenis and "ok" if we read their symbols OK. Clarify output in general. 4494*b725ae77Skettenis (vx_attach, vx_detach, vx_kill): Add these commands. 4495*b725ae77Skettenis (vx_convert_from_virtual, vx_convert_to_virtual): Simplify. 4496*b725ae77Skettenis (vx_run_ops): Turn off all_mem, to avoid spurious msg in the 4497*b725ae77Skettenis "info files" output, and create_inferior, since we already have 4498*b725ae77Skettenis an inferior. 4499*b725ae77Skettenis 4500*b725ae77Skettenis * stack.c (frame_info): Replace Frame_unknown with 0. 4501*b725ae77Skettenis (print_frame_arg_vars): Handle LOC_LOCAL_ARG. 4502*b725ae77Skettenis (return_command): Pop until the PC matches as well as the FP, 4503*b725ae77Skettenis so it works even if the FP is shared with another function, 4504*b725ae77Skettenis as in "frameless" or "leaf" procedures. 4505*b725ae77Skettenis 4506*b725ae77Skettenis * symfile.c (load_command): renamed from add_file_target_command. 4507*b725ae77Skettenis (add_syms_addr_command): renamed from add_file_addr_command. 4508*b725ae77Skettenis (add_syms_command): Stub to call target_add_syms. 4509*b725ae77Skettenis (_initialize_symfile): Change command names and descriptions, 4510*b725ae77Skettenis add-file => add-syms, and load from alias to its own command. 4511*b725ae77Skettenis 4512*b725ae77Skettenis * target.c (kill_or_be_killed, maybe_kill_then_attach, 4513*b725ae77Skettenis maybe_kill_then_create_inferior): Default for attempts to start 4514*b725ae77Skettenis a process, if one is already running, is to ask about killing 4515*b725ae77Skettenis it and retry if yes. 4516*b725ae77Skettenis (upstack_create_inferior): #if-0 it, strata obsolete it. 4517*b725ae77Skettenis (push_target, unpush_target, pop_target): to_close() a target 4518*b725ae77Skettenis before unstacking it. 4519*b725ae77Skettenis (target_info): Renamed from target_files_info. 4520*b725ae77Skettenis (_initialize_targets): Rename "i files" as "i target", accessible 4521*b725ae77Skettenis under both names. 4522*b725ae77Skettenis 4523*b725ae77Skettenis * target.h: Improve comments about the target_ vectored routines. 4524*b725ae77Skettenis 4525*b725ae77Skettenis * tm-i960.h: Remove NINDY-specific stuff to tm-nindy960.h. 4526*b725ae77Skettenis Convert commenting style to standard GNU style. 4527*b725ae77Skettenis (DBX_PARM_SYMBOL_CLASS): allow LOC_LOCAL_ARG's to be recognized. 4528*b725ae77Skettenis (SKIP_PROLOGUE): No longer a no-op. 4529*b725ae77Skettenis (SAVED_PC_AFTER_CALL): Now handles leaf procedures. 4530*b725ae77Skettenis (*_REGNUM): Sort register numbers. 4531*b725ae77Skettenis (REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE, 4532*b725ae77Skettenis MAX_REGISTER_RAW_SIZE, REGISTER_CONVERTIBLE, 4533*b725ae77Skettenis REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Float regs 4534*b725ae77Skettenis are now 10 byte extendeds, not 8 byte doubles. 4535*b725ae77Skettenis (FRAME_CHAIN_VALID): Make this config-dependent, since it differs 4536*b725ae77Skettenis for nindy versus vxworks targets. FIXME, this should possibly go 4537*b725ae77Skettenis in the target vector. 4538*b725ae77Skettenis (EXTRA_FRAME_INFO, INIT_EXTRA_FRAME_INFO): Cache both 4539*b725ae77Skettenis frame_saved_regs and arg pointer with each frame. 4540*b725ae77Skettenis (FRAMELESS_FUNCTION_INVOCATION): New leafproc support. 4541*b725ae77Skettenis (FRAME_ARGS_ADDRESS): Use cached result. 4542*b725ae77Skettenis (FRAME_ARGS_ADDRESS_CORRECT): New, avoids g14 guessing. 4543*b725ae77Skettenis (FRAME_FIND_SAVED_REGS): Change arg to subsidiary fn. 4544*b725ae77Skettenis (PRINT_RAMDON_SIGNAL): Call print_fault. 4545*b725ae77Skettenis (POP_FRAME): Now works. 4546*b725ae77Skettenis 4547*b725ae77Skettenis * tm-nindy960.h: Break this off tm-i960.h. NINDY-specific 4548*b725ae77Skettenis option parsing and startup; STACK_END_ADDR, FRAME_CHAIN_VALID, 4549*b725ae77Skettenis BREAKPOINT, and DECR_PC_AFTER_BREAK are here. 4550*b725ae77Skettenis (ADDITIONAL_OPTION_HANDLER): use target_load, not 4551*b725ae77Skettenis target_add_file. 4552*b725ae77Skettenis 4553*b725ae77Skettenis * tm-vxworks960.h: Break this off tm-i960.h. VxGDB specific 4554*b725ae77Skettenis startup; DECR_PC_AFTER_BREAK, and FRAME_CHAIN_VALID are here. 4555*b725ae77Skettenis 4556*b725ae77Skettenis * valarith.c (value_subscripted_rvalue): Avoid handling 4557*b725ae77Skettenis floats and doubles specially; it gave alignment errors. Lint. 4558*b725ae77Skettenis 4559*b725ae77Skettenis * valops.c (value_of_variable, value_of_this): Error if unknown 4560*b725ae77Skettenis value. 4561*b725ae77Skettenis 4562*b725ae77Skettenis * valprint.c (print_floating): Bcopy rather than pointer-deref, 4563*b725ae77Skettenis to avoid alignment problems. 4564*b725ae77Skettenis (value_print): Handle unknown value address. 4565*b725ae77Skettenis (cplus_val_print): Two args are ignored; remove them. Change caller. 4566*b725ae77Skettenis (val_print): Use unpack_long rather than pointer-deref. 4567*b725ae77Skettenis 4568*b725ae77Skettenis * values.c: Lint. 4569*b725ae77Skettenis (unpack_long, unpack_double): Use bcopy rather than pointer-deref 4570*b725ae77Skettenis to avoid alignment problems. 4571*b725ae77Skettenis (value_being_returned): Error if return value unknown. 4572*b725ae77Skettenis (set_return_value): Add bogosity warning, FIXME. * 4573*b725ae77Skettenis 4574*b725ae77Skettenis * TODO: A woman's work is never done. 4575*b725ae77Skettenis 4576*b725ae77Skettenis * Makefile.dist: Distribute REMOTE_OBS into tconfig files. 4577*b725ae77Skettenis Separate INCLUDE_CFLAGS for use with lint. Add LINTFILES. 4578*b725ae77Skettenis Add ieee-float.o to OBS. 4579*b725ae77Skettenis * tconfig/{nindy960,vxworks68,vxworks960}: Include the desired 4580*b725ae77Skettenis REMOTE_OBS remote-interface files in the TDEPFILES and TM_FILE. 4581*b725ae77Skettenis * tconfig/i960: FIXME. Half-merge, produce warning if config'd. 4582*b725ae77Skettenis 4583*b725ae77Skettenis Changes to generalize the VxWorks RPC protocol slightly, to handle 4584*b725ae77Skettenis i960 as well as 68000. 4585*b725ae77Skettenis 4586*b725ae77Skettenis * vx-share/dbgRpcLib.h (VX_SOURCE_STEP): Add. 4587*b725ae77Skettenis * vx-share/reg.h: Produce i960 regs #ifdef I80960 4588*b725ae77Skettenis * vx-share/xdr_ptrace.c: Skip FPA registers if 960. 4589*b725ae77Skettenis * vx-share/xdr_rdb.h: Add SOURCE_STEP struct and xdr decl. 4590*b725ae77Skettenis * vx-share/xdr_rdb.c: Add xdr_SOURCE_STEP routine. 4591*b725ae77Skettenis * vx-share/xdr_regs.c: Add xdr_regs, xdr_fp_status, xdr_ext_fp 4592*b725ae77Skettenis for i960. Change xdr_vectors to xdr_opaques for 68k registers, 4593*b725ae77Skettenis so they will move in target byte order rather than network 4594*b725ae77Skettenis byte order (happens to be the same). 4595*b725ae77Skettenis 4596*b725ae77SkettenisMon Feb 25 03:41:44 1991 John Gilmore (gnu at cygint.cygnus.com) 4597*b725ae77Skettenis 4598*b725ae77Skettenis * tm-convex.h (END_OF_TEXT_DEFAULT): Remove #if 0'd block. 4599*b725ae77Skettenis 4600*b725ae77SkettenisSun Feb 24 00:55:53 1991 John Gilmore (gnu at cygint.cygnus.com) 4601*b725ae77Skettenis 4602*b725ae77Skettenis * am29k-pinsn.c, 4603*b725ae77Skettenis Add contribution lines to various files, showing where they 4604*b725ae77Skettenis came from. 4605*b725ae77Skettenis 4606*b725ae77Skettenis * breakpoint.c (break_insn, check_break_insn_size, 4607*b725ae77Skettenis read_memory_nobpt): Remove to mem-break.c. 4608*b725ae77Skettenis 4609*b725ae77Skettenis * xm-*.h, param-no-tm.h, tm-29k.h, valprint.c: Change BYTE_ORDER to 4610*b725ae77Skettenis HOST_BYTE_ORDER. 4611*b725ae77Skettenis 4612*b725ae77Skettenis * tm-29k.h (STAB_REG_TO_REGNUM): Warn user if symbol table 4613*b725ae77Skettenis entry has bad register number. This change is not 4614*b725ae77Skettenis tested in this release, FIXME. 4615*b725ae77Skettenis 4616*b725ae77Skettenis * frame.h: Eliminate Frame_unknown in favor of a simple zero. 4617*b725ae77Skettenis tm-vax.h: Ditto. 4618*b725ae77Skettenis 4619*b725ae77Skettenis * value.h: Force value's contents field to be aligned to hold 4620*b725ae77Skettenis at least a double or a long long (if supported). This avoids 4621*b725ae77Skettenis doing bcopy's in and out of the contents field. 4622*b725ae77Skettenis 4623*b725ae77Skettenis (step_1): Avoid coredump under obscure circumstances when we 4624*b725ae77Skettenis have no frame. 4625*b725ae77Skettenis 4626*b725ae77Skettenis * symtab.h (misc_info): Add field to misc function vector for 4627*b725ae77Skettenis any kind of cached information the target code desires. AMD 4628*b725ae77Skettenis 29000 uses this to avoid repeating examine_function_prologue's. 4629*b725ae77Skettenis 4630*b725ae77Skettenis * coffread.c: Lint. Remove static symfile, read_section_header. 4631*b725ae77Skettenis core.c (have_core_file_p): Lint: remove. 4632*b725ae77Skettenis expprint.c (print_subexp): Lint. 4633*b725ae77Skettenis infptrace.c, valops.c, valprint.c: lint. 4634*b725ae77Skettenis 4635*b725ae77Skettenis Roll in changes from vxgdb-5.0.1: 4636*b725ae77Skettenis 4637*b725ae77Skettenis * symtab.h: Comment byte order of each address class. Add 4638*b725ae77Skettenis LOC_LOCAL_ARG for frame-relative args (960). 4639*b725ae77Skettenis expread.y: Use LOC_LOCAL_ARG where LOC_ARG is used. 4640*b725ae77Skettenis symtab.c, symmisc.c: ditto. 4641*b725ae77Skettenis 4642*b725ae77Skettenis * infrun.c (init_wait_for_inferior): Clear stop_signal. 4643*b725ae77Skettenis 4644*b725ae77Skettenis * remote.c (remote_resume): Error if resume with a signal. 4645*b725ae77Skettenis 4646*b725ae77Skettenis * symfile.c (prim_record_misc_function): Clear misc_info. 4647*b725ae77Skettenis (fill_in_vptr_fieldno): Check stub type of arg. 4648*b725ae77Skettenis 4649*b725ae77Skettenis * valops.c (value_cast): Avoid looking up names of types whose 4650*b725ae77Skettenis name we don't know, to prevent coredump. Sun CC produces typedef 4651*b725ae77Skettenis rtx and the name of *rtx is zero... 4652*b725ae77Skettenis 4653*b725ae77SkettenisMon Feb 18 21:16:25 1991 John Gilmore (gnu at cygint.cygnus.com) 4654*b725ae77Skettenis 4655*b725ae77Skettenis Roll in changes from final AMD 29000 port (Tiemann). 4656*b725ae77Skettenis 4657*b725ae77Skettenis tconfig/am29k: Add COFF_ENCAPSULATE and TARGET=TARGET_AM29K 4658*b725ae77Skettenis for ../include/a.out.encap.h. This might not work now that BFD 4659*b725ae77Skettenis is separately compiled. Instead, BFD support for encap will have 4660*b725ae77Skettenis to translate machine type 29k into the right COFF_MAGIC. 4661*b725ae77Skettenis 4662*b725ae77Skettenis * infcmd.c: Remove references to inferior_pid that aren't used 4663*b725ae77Skettenis in actual ptrace calls; use target_has_execution, etc. 4664*b725ae77Skettenis (have_inferior_p): Remove function. 4665*b725ae77Skettenis (program_info): Print target info rather than "process number"; 4666*b725ae77Skettenis avoid gratuitous messages unless from_tty. 4667*b725ae77Skettenis (run_stack_dummy, finish_command): Set proceed_to_finish. 4668*b725ae77Skettenis infrun.c: Remove inferior_pid refs. Decl & init proceed_to_finish. 4669*b725ae77Skettenis main.c: Lint. Lose have_inferior_p(). 4670*b725ae77Skettenis inferior.h (have_inferior_p): Remove, lint. 4671*b725ae77Skettenis (proceed_to_finish): Add flag to ask that all regs be saved 4672*b725ae77Skettenis by normal_stop, for the few commands that need it, speeding up 4673*b725ae77Skettenis serial I/O. Add comments to stop_registers. 4674*b725ae77Skettenis 4675*b725ae77Skettenis * remote-eb.c: Remove newline from breakpoint message we grep 4676*b725ae77Skettenis for. Never time out when running the user program. 4677*b725ae77Skettenis 4678*b725ae77Skettenis 4679*b725ae77Skettenis 4680*b725ae77SkettenisWed Feb 13 15:34:40 1991 John Gilmore (gnu at cygint.cygnus.com) 4681*b725ae77Skettenis 4682*b725ae77Skettenis Roll in changes from vxgdb-5.0.1: 4683*b725ae77Skettenis 4684*b725ae77Skettenis * dbxread.c (read_dbx_symtab): If we encounter a "FORTRAN COMMON" 4685*b725ae77Skettenis symbol in its raw form, we are processing an unlinked ".o" file. 4686*b725ae77Skettenis See if the target environment has assigned it an address, using 4687*b725ae77Skettenis target_lookup_symbol (VxWorks does), and enter it into the symtab 4688*b725ae77Skettenis that way. 4689*b725ae77Skettenis 4690*b725ae77Skettenis * tm-vxworks.h (FRAME_CHAIN, FRAME_CHAIN_VALID): Override usual 4691*b725ae77Skettenis 68k versions for a simpler version that assumes zero FP at bottom. 4692*b725ae77Skettenis Fixes bug of truncated stack reports. 4693*b725ae77Skettenis 4694*b725ae77Skettenis * target.h (target_lookup_symbol): Define this routine's args 4695*b725ae77Skettenis and result, finally. 4696*b725ae77Skettenis 4697*b725ae77Skettenis * target.c (nosymbol): Default routine for target_lookup_symbol. 4698*b725ae77Skettenis (target_default): Default lookup_symbol and call_function too. 4699*b725ae77Skettenis (files_info): Only print has_all_memory warning if a non-dummy 4700*b725ae77Skettenis target follows. 4701*b725ae77Skettenis 4702*b725ae77Skettenis * remote-vx.c (vx_read_register, vx_convert_to_virtual, 4703*b725ae77Skettenis vx_convert_from_virtual): If target does not have floating point, 4704*b725ae77Skettenis zero register "values", and avoid doing cross-net conversions. 4705*b725ae77Skettenis (vx_lookup_symbol): Rename net_lookup_symbol, add to vectors. 4706*b725ae77Skettenis (vx_open): Rearrange code that attaches to target and reads 4707*b725ae77Skettenis symbols for all loaded modules, to work if some of the modules 4708*b725ae77Skettenis are not accessible. Add symbol_stub() and add_symbol_stub() 4709*b725ae77Skettenis as callbacks from catch_errors(). Allow connect attempt to be 4710*b725ae77Skettenis interrupted painlessly with ^C (FIXME, there are still some bugs 4711*b725ae77Skettenis if the interrupt happens during symbol reading.). Print 4712*b725ae77Skettenis final message with puts_filtered, since symbol messages are 4713*b725ae77Skettenis now filtered too. 4714*b725ae77Skettenis 4715*b725ae77Skettenis Misc cleanup: 4716*b725ae77Skettenis 4717*b725ae77Skettenis * main.c (catch_errors): Only print errstring if non-null. 4718*b725ae77Skettenis (command_loop): Avoid an ioctl per command to test ISATTY. 4719*b725ae77Skettenis 4720*b725ae77Skettenis * remote-vx.c (net_load): make static; avoid sophomoric msg. 4721*b725ae77Skettenis (vx_xfer_memory): Return correct result! 4722*b725ae77Skettenis (vx_files_info): Indicate whether target has float or not. 4723*b725ae77Skettenis (vx_lookup_symbol): Complain, not error, if target gone. 4724*b725ae77Skettenis (vx_open): Print "Connected" msg before disabling immediate-quit. 4725*b725ae77Skettenis [FIXME: lookup_symbol and vx_open changes need testing.] 4726*b725ae77Skettenis 4727*b725ae77Skettenis target.c, remote-eb.c, inftarg.c, am29k-opcode.h, target.h, 4728*b725ae77Skettenis tm-29k.h, tmm-vxworks68.h, symfile.c, gdb-int.texinfo: Add 4729*b725ae77Skettenis contributor lines and update copyrights to 1991. 4730*b725ae77Skettenis 4731*b725ae77Skettenis Changes from an attempted H-PUX host port: 4732*b725ae77Skettenis 4733*b725ae77Skettenis * infptrace.c (PT_ATTACH, PT_DETACH): Handle HP/UX, which 4734*b725ae77Skettenis defines PT_ATTACH and PT_DETACH but not PT_KILL. 4735*b725ae77Skettenis * remote-eb.c (eb_open): Misplaced endif kills sysv H/PUX. 4736*b725ae77Skettenis * remote-vx.c: include <sys/time.h> for HPUX. 4737*b725ae77Skettenis * hp300hpux-xdep.c (fetch_core_registers): Rewrite old 4738*b725ae77Skettenis "core_file_command" routine to BFD regime. May not work yet. 4739*b725ae77Skettenis 4740*b725ae77Skettenis Attempted port of "gdb-3.4 Van Jacobson xgdb" to modern gdb. 4741*b725ae77Skettenis 4742*b725ae77Skettenis * xgdb.c: Replace X10 version with some VJ version. 4743*b725ae77Skettenis (FIXME: Its copyright assignment is not on record.) 4744*b725ae77Skettenis * xgdb.c: Update include files to X11R4 (Xaw crud). 4745*b725ae77Skettenis (xgdb_display_source, create_text_widget): fix call to 4746*b725ae77Skettenis get_filename_and_charpos. Rewack source window stuff for X11R4 4747*b725ae77Skettenis (gleaned from include files, and "nm's" of binary libraries, since 4748*b725ae77Skettenis I had no doc available). 4749*b725ae77Skettenis (append_selection, append_selection_word): Disable with FIXME 4750*b725ae77Skettenis since R4 changed interface here. 4751*b725ae77Skettenis (create_buttons): Add back the old set of buttons. 4752*b725ae77Skettenis (xgdb_create_window): Fix call to XtInitialize (&argc not argc). 4753*b725ae77Skettenis 4754*b725ae77Skettenis * Makefile.dist (xgdb, xgdb-init.c): Update for X11R4 on Suns. 4755*b725ae77Skettenis Roll VERSION to 3.94 (not yet final though). 4756*b725ae77Skettenis 4757*b725ae77SkettenisSat Feb 9 09:46:25 1991 John Gilmore (gnu at cygint.cygnus.com) 4758*b725ae77Skettenis 4759*b725ae77Skettenis * obstack.h (obstack_ptr_grow, obstack_ptr_grow_fast, 4760*b725ae77Skettenis obstack_int_grow, obstack_int_grow_fast): Eliminate 4761*b725ae77Skettenis cast on left of assignment, which gives MIPS cc fits and is 4762*b725ae77Skettenis not Standard C. 4763*b725ae77Skettenis 4764*b725ae77Skettenis * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by 4765*b725ae77Skettenis F_ALIAS. Use printf, not fprintf, when not passing a file 4766*b725ae77Skettenis pointer... 4767*b725ae77Skettenis (compare_opcodes): Check that identical instructions have 4768*b725ae77Skettenis identical opcodes, complain otherwise. 4769*b725ae77Skettenis 4770*b725ae77Skettenis * sparc-opcode.h (st %fsr): Fix opcode "lose" mask. This 4771*b725ae77Skettenis was reported by Roland McGrath. 4772*b725ae77Skettenis (unimp): Only match if exactly zero instruction. (Roland) 4773*b725ae77Skettenis (branches and traps): Generate all variations of these 4774*b725ae77Skettenis instructions with macros, based on a single call that defines 4775*b725ae77Skettenis each condition name and its binary representation. 4776*b725ae77Skettenis (set): Turn on alias bit, to avoid test in sparc-pinsn.c. 4777*b725ae77Skettenis 4778*b725ae77Skettenis * valprint.c (val_print_fields): Take, and use, format parameter. 4779*b725ae77Skettenis This means that "p/x struct" again prints the elements in the 4780*b725ae77Skettenis desired format. Changed callers. 4781*b725ae77Skettenis 4782*b725ae77Skettenis * stack.c (frame_info): Use filtered output, and indicate wrap 4783*b725ae77Skettenis points. Remove kludgy formatting designed to avoid line wrap. 4784*b725ae77Skettenis 4785*b725ae77Skettenis * utils.c (wrap_here): If the line is already full (because 4786*b725ae77Skettenis we had printed a long indent or long wrapped string), do an 4787*b725ae77Skettenis immediate newline-and-indent. 4788*b725ae77Skettenis 4789*b725ae77Skettenis * m68k-pinsn.c (print_insn_arg): Bugfix from 4790*b725ae77Skettenis ntmtv!thompson@ames.arc.nasa.gov (Mike Thompson): 'bkpt #0' 4791*b725ae77Skettenis instruction is incorrectly disassembled as bkpt #8. 4792*b725ae77Skettenis 4793*b725ae77Skettenis * dbxread.c (end_psymtab): Bugfix from Peter Schauer 4794*b725ae77Skettenis <pesrem@regent.e-technik.tu-muenchen.de>: If you want to set a 4795*b725ae77Skettenis breakpoint in a *.y file gdb will say Reading in symbols for *.y... 4796*b725ae77Skettenis and then will dump core (sometimes). I traced it back to an 4797*b725ae77Skettenis uninitialized symfile_name in psymtab_to_symtab. 4798*b725ae77Skettenis (const_vol_complaint): Add quotes to message. 4799*b725ae77Skettenis (define_symbol): Only believe line number if gcc_compiled. 4800*b725ae77Skettenis Avoid allocating symbol if we will not return it. 4801*b725ae77Skettenis 4802*b725ae77Skettenis Add target strata support so that newly established targets go 4803*b725ae77Skettenis into their right place in the target stack (e.g. a new exec file 4804*b725ae77Skettenis doesn't wipe out the ability to access the running process). 4805*b725ae77Skettenis 4806*b725ae77Skettenis * target.h, core.c, exec.c, inftarg.c, remote-eb.c, 4807*b725ae77Skettenis remote-nindy.c, remote-vx.c, remote.c, target.c: Add to_stratum 4808*b725ae77Skettenis and initialize it properly in all the targets. 4809*b725ae77Skettenis 4810*b725ae77Skettenis * target.h: Document strata. Change return type of push_target. 4811*b725ae77Skettenis 4812*b725ae77Skettenis * target.c (nomemory): new function for dummy memory access. 4813*b725ae77Skettenis (tcomplain): Rename complain, now also used in symfile.c. 4814*b725ae77Skettenis (push_target): Push targets within strata. New return value shows 4815*b725ae77Skettenis whether new target is on top of stack or not. Always keep dummy 4816*b725ae77Skettenis target on stack. 4817*b725ae77Skettenis (target_files_info): Ignore dummy target. 4818*b725ae77Skettenis 4819*b725ae77Skettenis * core.c (core_open): Warn user, and skip accessing file, if the 4820*b725ae77Skettenis core target is not the topmost target in the stack. 4821*b725ae77Skettenis * remote-nindy.c (nindy_create_inferior): Avoid unpush_target, now 4822*b725ae77Skettenis already handled. 4823*b725ae77Skettenis 4824*b725ae77Skettenis * remote-vx.c: Remove vx_prepare_to_store from vxworks memory 4825*b725ae77Skettenis target_ops, it doesn't belong there since we have no regs there. 4826*b725ae77Skettenis Change name of target from machine => memory to clarify. 4827*b725ae77Skettenis 4828*b725ae77SkettenisThu Feb 7 16:32:09 1991 John Gilmore (gnu at spiff.cygnus.com) 4829*b725ae77Skettenis 4830*b725ae77Skettenis * Freeze version 3.93 for release. 4831*b725ae77Skettenis 4832*b725ae77Skettenis * Makefile.dist: Handle vx-share and nindy-share subdirs 4833*b725ae77Skettenis properly when building gdb.tar.Z. 4834*b725ae77Skettenis 4835*b725ae77Skettenis * symtab.c: lint; add no_symtab_msg to consolidate the messages 4836*b725ae77Skettenis printed in various places, so I could change just one copy. 4837*b725ae77Skettenis 4838*b725ae77Skettenis * dbxread.c, coffread.c: Change references to bfd->iostream 4839*b725ae77Skettenis to cast to FILE *, now that BFD avoids needing types defined 4840*b725ae77Skettenis in other header files. 4841*b725ae77Skettenis 4842*b725ae77SkettenisTue Feb 5 21:39:35 1991 John Gilmore (gnu at cygint.cygnus.com) 4843*b725ae77Skettenis 4844*b725ae77Skettenis * command.c, dbxread.c, expprint.c, infcmd.c, infptrace.c, 4845*b725ae77Skettenis infrun.c, printcmd.c, remote-nindy.c, source.c, sparc-tdep.c, 4846*b725ae77Skettenis sparc-xdep.c, symfile.h, symmisc.c, utils.c, valprint.c: Lint 4847*b725ae77Skettenis (actually gcc -Wall). 4848*b725ae77Skettenis 4849*b725ae77Skettenis * dbxread.c: Remove first_global_sym, last_global_sym, since 4850*b725ae77Skettenis they are never referenced. 4851*b725ae77Skettenis 4852*b725ae77Skettenis * defs.h (baud_rate): Declare. 4853*b725ae77Skettenis main.c: Define it, and add the -b option to set it. 4854*b725ae77Skettenis 4855*b725ae77Skettenis * gdb-int.texinfo: Add text on how to define a new host or target 4856*b725ae77Skettenis architecture, prompted by Per Bothner's questions about MIPS 4857*b725ae77Skettenis support. 4858*b725ae77Skettenis 4859*b725ae77Skettenis * gdb.texinfo: Document "complaints". Change doc of -q since 4860*b725ae77Skettenis gdb no longer prints the copyright and blurb if you specify a file 4861*b725ae77Skettenis name to be debugged (just like Emacs). Add doc for Nindy-specific 4862*b725ae77Skettenis command line flags for specifying target serial port and such. 4863*b725ae77Skettenis Update copyright to 1991. 4864*b725ae77Skettenis 4865*b725ae77Skettenis * gdbcore.h: Remove a large mass of now-useless crud, since BFD 4866*b725ae77Skettenis has taken over for us the job of ripping up executable files. The 4867*b725ae77Skettenis crud caused Per Bothner's port to not compile. 4868*b725ae77Skettenis 4869*b725ae77Skettenis * infrun.c (normal_stop): Avoid printing "Program exited 4870*b725ae77Skettenis normally" if we are in batch mode. This allows a GDB which 4871*b725ae77Skettenis executes a program on a target system, to behave like a Unix 4872*b725ae77Skettenis command (input from stdin, output to stdout, no extraneous 4873*b725ae77Skettenis output). 4874*b725ae77Skettenis 4875*b725ae77Skettenis * main.c (main): Allow additional machine-dependent command line 4876*b725ae77Skettenis options to be specified with the ADDITIONAL_OPTIONS, 4877*b725ae77Skettenis ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP, and 4878*b725ae77Skettenis ADDITIONAL_OPTION_HANDLER macros. Also allow machine-dependent 4879*b725ae77Skettenis processing to occur just before the main loop with 4880*b725ae77Skettenis BEFORE_MAIN_LOOP_HOOK. 4881*b725ae77Skettenis (main): If a "core file" argument is specified, and it is not a 4882*b725ae77Skettenis core file, try it as a process ID to attach. 4883*b725ae77Skettenis (symbol_completion_function): Attempt to cope with 4884*b725ae77Skettenis "show screen-" TAB, not very successfully. This needs more work, 4885*b725ae77Skettenis FIXME. 4886*b725ae77Skettenis (batch_file): New function, returns whether we are reading 4887*b725ae77Skettenis commands from an interactive tty on stdin, or from somewhere else. 4888*b725ae77Skettenis Called by normal_stop since it doesn't get from_tty passed down 4889*b725ae77Skettenis to it like many commands do. 4890*b725ae77Skettenis 4891*b725ae77Skettenis * remote-nindy.c: Handle command line options for nindy 4892*b725ae77Skettenis connection. 4893*b725ae77Skettenis (nindy_before_main_loop): Prompt user for tty name if they 4894*b725ae77Skettenis don't specify it before getting to the interactive command loop. 4895*b725ae77Skettenis 4896*b725ae77Skettenis * tm-i960.c: Add ADDITIONAL_OPTIONS, etc, to handle -O, -brk, 4897*b725ae77Skettenis and -r command line options. Also add hook before main loop 4898*b725ae77Skettenis to make it easy to specify a tty. 4899*b725ae77Skettenis 4900*b725ae77Skettenis * TODO: More things to do, one done. 4901*b725ae77Skettenis 4902*b725ae77SkettenisMon Feb 4 23:57:39 1991 John Gilmore and Mike Tiemann (at cygint.cygnus.com) 4903*b725ae77Skettenis 4904*b725ae77Skettenis * dbxread.c: Make complaint() calls pass pointer, not struct. 4905*b725ae77Skettenis Add complaints about badly formatted C++ type information 4906*b725ae77Skettenis (const/volatile indicator, and parse errors resulting in 4907*b725ae77Skettenis error_type). Fix C++ virtual member fn comment. 4908*b725ae77Skettenis (read_struct_type): Avoid bumping pointer if we got a parse 4909*b725ae77Skettenis error; this prevents our walking beyond the end of a string. 4910*b725ae77Skettenis Terminate loop on null char as well as semicolon. 4911*b725ae77Skettenis (process_one_symbol): Fix the LBRAC fix so that it uses the 4912*b725ae77Skettenis last previous SLINE, FUN, or SO record's PC address. C++ debug 4913*b725ae77Skettenis symbols did not have SLINE records in a useful order compared 4914*b725ae77Skettenis to the LBRAC records. 4915*b725ae77Skettenis (define_symbol): Handle "catch" records. 4916*b725ae77Skettenis 4917*b725ae77Skettenis * symtab.c (check_stub_type): Added new complain 4918*b725ae77Skettenis `stub_noname_complain' and added a consistency check to 4919*b725ae77Skettenis keep the debugger from crashing when finishing from an 4920*b725ae77Skettenis exception frame. A real fix will be needed later. 4921*b725ae77Skettenis 4922*b725ae77SkettenisSat Feb 2 10:43:05 1991 John Gilmore (gnu at cygint.cygnus.com) 4923*b725ae77Skettenis 4924*b725ae77Skettenis * infcmd.c (attach_command): Make global. 4925*b725ae77Skettenis 4926*b725ae77Skettenis * Makefile.dist (REMOTE_OBS): Make these compile by default, 4927*b725ae77Skettenis but make them easy to comment out. Perhaps later they should 4928*b725ae77Skettenis be enabled by what CPU you configure for? FIXME. 4929*b725ae77Skettenis (VERSION): Roll to 3.93. 4930*b725ae77Skettenis (pinsn.o): Remove rule for obsolete file. 4931*b725ae77Skettenis (dbxread.o,coffread.o,mipsread.o): Use ${srcdir} explicitly. 4932*b725ae77Skettenis 4933*b725ae77Skettenis Run down a problem that manifested by printing the wrong function 4934*b725ae77Skettenis name in stack traces of read_ofile_symtab. Turned out that the 4935*b725ae77Skettenis problem was the SunOS 4.1.1 (and previous) C compiler outputs 4936*b725ae77Skettenis the LBRAC symbol with an address in the *data* segment, which 4937*b725ae77Skettenis blew our binary search through the blocks. 4938*b725ae77Skettenis 4939*b725ae77Skettenis * dbxread.c: Use the complain() facility consistently to bitch 4940*b725ae77Skettenis about problems in the symbol file we are reading. 4941*b725ae77Skettenis (finish_block): Add code to check the nesting of the blocks; 4942*b725ae77Skettenis complain and Procrust them to fit if wrong. 4943*b725ae77Skettenis (make_blockvector): Check the order of the blocks, complain 4944*b725ae77Skettenis [but don't cope] if wrong. 4945*b725ae77Skettenis (process_one_symbol): ifndef SUN_FIXED_LBRAC_BUG, check LBRAC 4946*b725ae77Skettenis symbols to be sure their PC value is greater than the last SLINE 4947*b725ae77Skettenis (line number) symbol we've seen, complaining and adopting the 4948*b725ae77Skettenis SLINE PC value if wrong. 4949*b725ae77Skettenis 4950*b725ae77Skettenis * symfile.h (struct complaint, complaint_root, complain, 4951*b725ae77Skettenis clear_complaints): Add. 4952*b725ae77Skettenis * symfile.c (complain, complaint_root, clear_complaints): Add 4953*b725ae77Skettenis facility to deal with non-fatal complaints and to regularize their 4954*b725ae77Skettenis suppression. 4955*b725ae77Skettenis (symbol_file_add): Clear complaint counters to allow new complaints. 4956*b725ae77Skettenis (initialize_symfile): Add 'set complaints' and 'show complaints'. 4957*b725ae77Skettenis 4958*b725ae77Skettenis * dbxread.c (dbx_symfile_read): Remember the address and size 4959*b725ae77Skettenis of the string table for the main symbol file, so we won't read it 4960*b725ae77Skettenis more than once. 4961*b725ae77Skettenis (dbx_psymtab_to_symtab): Fix the check for main symbol file, 4962*b725ae77Skettenis to avoid reading the string table yet again. Lint. 4963*b725ae77Skettenis (throughout): Improve filtered output, including word wrap. 4964*b725ae77Skettenis (read_range_type): Improve Bothner's fix to handle other types too. 4965*b725ae77Skettenis 4966*b725ae77Skettenis * utils.c: Improve line wrap implementation. Handle unlimited 4967*b725ae77Skettenis width by making chars_per_line unsigned. 4968*b725ae77Skettenis (puts_filtered): New, easy, function. 4969*b725ae77Skettenis 4970*b725ae77Skettenis * defs.h (puts_filtered): add. 4971*b725ae77Skettenis 4972*b725ae77Skettenis * mipsread.c (compare_symbols, sort_symtab): Remove these fns, 4973*b725ae77Skettenis call the identical sort_symtab_syms() in symfile.c instead. 4974*b725ae77Skettenis 4975*b725ae77Skettenis * expread.y: Suggest the `file' command rather than `symbol-file'. 4976*b725ae77Skettenis 4977*b725ae77Skettenis * command.h (enum var_types): Add zinteger for seroable 4978*b725ae77Skettenis unsigned integer. 4979*b725ae77Skettenis * command.c (do_setshow_command): Handle var_zinteger. Restructure 4980*b725ae77Skettenis nested if's into a switch. 4981*b725ae77Skettenis 4982*b725ae77Skettenis * breakpoint.c (bpstat_print): If bpstat "print" flag is not set, 4983*b725ae77Skettenis we did not stop because of a breakpoint (it must have been for 4984*b725ae77Skettenis some other reason, like a "stepi"), so don't print anything. 4985*b725ae77Skettenis 4986*b725ae77Skettenis * symtab.c: Include <sys/types.h> all the time. Now that BFD 4987*b725ae77Skettenis doesn't include <sys/types.h>, old SunOS's require it for 4988*b725ae77Skettenis <sys/stat.h>. 4989*b725ae77Skettenis 4990*b725ae77SkettenisSat Feb 2 10:39:15 1991 Per Bothner (bothner@cs.wisc.edu) 4991*b725ae77Skettenis 4992*b725ae77Skettenis A test port of gdb-3.92.6 to the Sony NEWS. 4993*b725ae77Skettenis 4994*b725ae77Skettenis * Makefile.dist 4995*b725ae77Skettenis Don't normally link in remote- or vx stuff. 4996*b725ae77Skettenis Some of it doesn't compile, and it wastes space for 99% of the users. 4997*b725ae77Skettenis Remove reference to no-longer-used HAVE_VPRINTF. 4998*b725ae77Skettenis Fixed BFD_DEP typo to BFD_DIR. 4999*b725ae77Skettenis * dbxread.c 5000*b725ae77Skettenis Fix cast in arg to bfd_h_getlong. 5001*b725ae77Skettenis Make char *prefix be const. 5002*b725ae77Skettenis Fix how certain range types are mapped into builtin unsigned int types. 5003*b725ae77Skettenis * infrun.c 5004*b725ae77Skettenis Remove 2 #includes. They cause errors (on Sony, at least), 5005*b725ae77Skettenis and aren't needed (they wern't in earlier versions). 5006*b725ae77Skettenis * printcmd.c 5007*b725ae77Skettenis print_address_symbolic should never demangle labels 5008*b725ae77Skettenis (since it prints *assembler-level* labels). 5009*b725ae77Skettenis 5010*b725ae77Skettenis [This was superseded by the change to printcmd below.] 5011*b725ae77Skettenis 5012*b725ae77Skettenis * utils.c 5013*b725ae77Skettenis Add some "volatile" return types to avoid warnings. 5014*b725ae77Skettenis If MISSING_VPRINTF add vprintf function and not just macro 5015*b725ae77Skettenis (since vprintf is used in printcmd.c). 5016*b725ae77Skettenis * valprint.c 5017*b725ae77Skettenis Unless __GNUC__, use obstack_grow instead of obstack_ptr_grow. 5018*b725ae77Skettenis (The latter isn't grokked by some PCC-based compilers.) 5019*b725ae77Skettenis 5020*b725ae77Skettenis [This change is in abeyance, we prefer to fix obstack_ptr_grow.] 5021*b725ae77Skettenis 5022*b725ae77Skettenis Make chunk size of dont_print_obstack 32*4 instead of default 4096. 5023*b725ae77Skettenis * nindy-share/coffstrip.c 5024*b725ae77Skettenis Added some forward declarations (otherwise, gcc complains 5025*b725ae77Skettenis about implicit extern redefined as static). 5026*b725ae77Skettenis 5027*b725ae77SkettenisSun Jan 20 02:38:19 1991 John Gilmore (gnu at cygint.cygnus.com) 5028*b725ae77Skettenis 5029*b725ae77Skettenis Changes inspired by Per Bothner: 5030*b725ae77Skettenis * printcmd.c (print_address_symbolic): Take additional parameter 5031*b725ae77Skettenis specifying whether to demangle. 5032*b725ae77Skettenis (print_address): Pass in asm_demangle to control demangling. 5033*b725ae77Skettenis (print_address_demangle): New fn, takes explicit arg to control 5034*b725ae77Skettenis demangling. 5035*b725ae77Skettenis * utils.c: Add new vars demangle and asm_demangle, and let them 5036*b725ae77Skettenis be set and shown. 5037*b725ae77Skettenis (fputs_demangled): If !demangle, just print the argument. 5038*b725ae77Skettenis (fprint_symbol): If !demangle, just print raw symbol. 5039*b725ae77Skettenis * valprint.c (val_print): Call print_address_demangle rather than 5040*b725ae77Skettenis print_address, to cause demangling to depend on the global 5041*b725ae77Skettenis rather than assembler-level demangling setting. 5042*b725ae77Skettenis * WHATS.NEW, gdb.texinfo: Document. 5043*b725ae77Skettenis 5044*b725ae77Skettenis * main.c (show_command): Show all settings if no arg. 5045*b725ae77Skettenis (initialize_main): Make "info set" the same as naked "show". 5046*b725ae77Skettenis * command.c (cmd_show_list): Handle prefix commands in the 5047*b725ae77Skettenis list, and print the name of the setting as well as its English 5048*b725ae77Skettenis description and value. 5049*b725ae77Skettenis 5050*b725ae77Skettenis Allow gdb functions to specify where a line should wrap if it 5051*b725ae77Skettenis exceeds the size of a terminal line. Use it to make the output 5052*b725ae77Skettenis prettier. 5053*b725ae77Skettenis * utils.c (set_screen_width_command): New fn, mallocs a buffer 5054*b725ae77Skettenis of the right size when screen width changes. 5055*b725ae77Skettenis (set_screensize_command, screensize_info): Remove #if 0'd fns. 5056*b725ae77Skettenis (wrap_here): New fn, indicates a point in the output where we 5057*b725ae77Skettenis should wrap the line rather than just letting it overflow at a 5058*b725ae77Skettenis random place. 5059*b725ae77Skettenis (fputs_filtered): Implement wrapping. 5060*b725ae77Skettenis (n_spaces): New fn, returns a pointer to N spaces. 5061*b725ae77Skettenis (print_spaces_filtered): Use n_spaces. 5062*b725ae77Skettenis * defs.h (n_spaces): Declare. 5063*b725ae77Skettenis * stack.c (print_frame_info): Wrap with 4-space indent after 5064*b725ae77Skettenis fn name and before filename and line number. 5065*b725ae77Skettenis * printcmd.c (print_frame_args): Wrap with 4-space indent 5066*b725ae77Skettenis before each argument name is printed. 5067*b725ae77Skettenis * valprint.c (value_print): Wrap with no indentation before 5068*b725ae77Skettenis each repetition. 5069*b725ae77Skettenis (val_print_fields): Wrap with indentation relative to nesting 5070*b725ae77Skettenis level before each field name. 5071*b725ae77Skettenis (val_print): Wrap with nesting indentation before array elements. 5072*b725ae77Skettenis * command.c (do_setshow_command): Avoid extra newlines, 5073*b725ae77Skettenis wrap with 4-space indent around values printed, end with period. 5074*b725ae77Skettenis * WHATS.NEW, gdb.texinfo, gdb-int.texinfo: Document. 5075*b725ae77Skettenis 5076*b725ae77Skettenis * breakpoint.c (breakpoint_1): Implement addressprint for 5077*b725ae77Skettenis "info breakpoints" display. Change file name and line number 5078*b725ae77Skettenis format to " at file:nnn" rather than " (file line nnn)". 5079*b725ae77Skettenis * gdb.texinfo: Document. 5080*b725ae77Skettenis 5081*b725ae77Skettenis 5082*b725ae77SkettenisFri Jan 18 07:21:25 1991 John Gilmore (gnu at cygint.cygnus.com) 5083*b725ae77Skettenis 5084*b725ae77Skettenis Frozen for gdb-3.92.6 release. 5085*b725ae77Skettenis 5086*b725ae77Skettenis README, WHATS.NEW: Update for 3.92.6 release. 5087*b725ae77Skettenis 5088*b725ae77Skettenis tconfig/{altos, i386v, i386v32, m88k, umax}: Eliminate 5089*b725ae77Skettenis coffread.o from configs since it is now built by default. 5090*b725ae77Skettenis tconfig/{3b1, altosgas, arm, convex, hp300bsd, hp300hpux, 5091*b725ae77Skettenis i386v-g, i386v32-g, isi, merlin, news, news1000, np1, pn, 5092*b725ae77Skettenis pyramid, symmetry, vax, vxworks68}: Eliminate dbxread.o 5093*b725ae77Skettenis from configs since it is now built by default. 5094*b725ae77Skettenis 5095*b725ae77Skettenis Makefile.dist: Update for release 3.92.6. Handle files that 5096*b725ae77Skettenis have been moved to ../include, ../getopt, or ../bfd. Add 5097*b725ae77Skettenis saber.suppress and tests directory. Add config.status to 5098*b725ae77Skettenis the release (it will say "none"). 5099*b725ae77Skettenis 5100*b725ae77Skettenis coredep.c: Minor formatting fixes. 5101*b725ae77Skettenis 5102*b725ae77Skettenis These changes were made in early December but only checked in now: 5103*b725ae77Skettenis * nindy-share/Onindy.c, nindy-share/coffstrip.c, 5104*b725ae77Skettenis nindy-share/nindy.c: lint 5105*b725ae77Skettenis * nindy-share/nindy.c (ninStopWhy): Don't byteswap the 5106*b725ae77Skettenis register values coming back from the target; we store values 5107*b725ae77Skettenis in target byte order everywhere. 5108*b725ae77Skettenis 5109*b725ae77SkettenisWed Jan 16 19:01:37 1991 John Gilmore (gnu at cygint.cygnus.com) 5110*b725ae77Skettenis 5111*b725ae77Skettenis * am29k-opcode.h, am29k-pinsn.c: Add 29050 opcodes. 5112*b725ae77Skettenis 5113*b725ae77Skettenis * valprint.c (cplus_val_print, val_print_fields): New functions, 5114*b725ae77Skettenis which print C++ objects. They conspire to avoid printing a 5115*b725ae77Skettenis virtual base class more than once, following all the twists and 5116*b725ae77Skettenis turns of C++ virtual base rules. 5117*b725ae77Skettenis (val_print): Call the above rather than do it by hand. 5118*b725ae77Skettenis 5119*b725ae77Skettenis * symfile.c (symbol_file_add): Only reset symfile_mtime for main 5120*b725ae77Skettenis symbol file, not for added files like shared libs. This really 5121*b725ae77Skettenis needs to be generalized to a timestamp per file. 5122*b725ae77Skettenis 5123*b725ae77Skettenis * core.c (cleanup_core): Avoid coredump if no core file. 5124*b725ae77Skettenis 5125*b725ae77Skettenis * config.gdb: Accept -host or -target in place of +host or 5126*b725ae77Skettenis +target. 5127*b725ae77Skettenis 5128*b725ae77Skettenis * coffread.c (find_linenos): Avoid desupported BFD interface 5129*b725ae77Skettenis to line numbers. We still read them manually rather than using 5130*b725ae77Skettenis BFD's "generic" features. 5131*b725ae77Skettenis 5132*b725ae77Skettenis * gdbrc.tex, threecol.tex: Add GDB reference card and its 5133*b725ae77Skettenis formatting code. 5134*b725ae77Skettenis Makefile.dist: Add refcard to OTHERS list for creating tar files. 5135*b725ae77Skettenis 5136*b725ae77Skettenis * Makefile.dist: Eliminate use of $< in explicit targets. 5137*b725ae77Skettenis 5138*b725ae77Skettenis * readline/Makefile: Use $< rather than $*.c, which does not 5139*b725ae77Skettenis include the VPATH in GNU Make. 5140*b725ae77Skettenis 5141*b725ae77Skettenis * tconfig/i960-bout, tconfig/i960-coff: These are identical 5142*b725ae77Skettenis copies of tconfig/i960, added for global configuration 5143*b725ae77Skettenis compatability. All i960 versions can read both coff and b.out. 5144*b725ae77Skettenis 5145*b725ae77Skettenis * tm-88k.h: Fix multiline macro that lacked \'s. Remove 5146*b725ae77Skettenis COFF_FORMAT and COFF_CHECK_X_ZEROES since these are now handled 5147*b725ae77Skettenis automaticaly. 5148*b725ae77Skettenis 5149*b725ae77Skettenis * TODO: Think of more things to do. 5150*b725ae77Skettenis 5151*b725ae77SkettenisWed Jan 2 19:09:29 1991 John Gilmore (gnu at spiff.cygnus.com) 5152*b725ae77Skettenis 5153*b725ae77Skettenis tconfig/{am29k,i960,sun2*,sun3*,sun4*}: Eliminate config 5154*b725ae77Skettenis of sdb versus dbx debug symbols. Add kludge for 68881 80-bit to 5155*b725ae77Skettenis 64-bit float conversion. 5156*b725ae77Skettenis 5157*b725ae77Skettenis tconfig/sun4, tconfig/sun3, xconfig/sun4, xconfig/sun3: Make 5158*b725ae77Skettenis equivalent to sun?os4 so global config works. 5159*b725ae77Skettenis 5160*b725ae77SkettenisWed Jan 2 18:20:51 1991 John Gilmore (gnu at spiff.cygnus.com) 5161*b725ae77Skettenis 5162*b725ae77Skettenis Fix from Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de> 5163*b725ae77Skettenis 5164*b725ae77Skettenis * main.c: Only declare linesize once; declare pagesize not at 5165*b725ae77Skettenis all, since it is never used. 5166*b725ae77Skettenis (main): Clear newly allocated line before it is used. 5167*b725ae77Skettenis 5168*b725ae77SkettenisFor older changes see ChangeLog-1990 5169*b725ae77Skettenis 5170*b725ae77SkettenisLocal Variables: 5171*b725ae77Skettenismode: indented-text 5172*b725ae77Skettenisleft-margin: 8 5173*b725ae77Skettenisfill-column: 74 5174*b725ae77Skettenisversion-control: never 5175*b725ae77SkettenisEnd: 5176