1 Sat Dec 21 12:57:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3 * config/mips/tm-mips.h (PC_IN_CALL_DUMMY): Removed, the default
4 definition in inferior.h is sufficient.
5 * mips-tdep.c (mips_pc_in_call_dummy): Ditto.
6 (mips_push_arguments): Make sure that the stack is aligned to a
7 multiple of 8 after the arguments are pushed.
8 Structures are always passed by value in the old ABI.
9 Adjust argument register value on big endian targets when passing
10 a value whose length is less than the register size.
11 Write stack arguments with a single write_memory call.
12 (mips_pop_frame): Use frame_saved_regs instead of proc_desc to
13 decide which registers have to be restored.
15 * irix5-nat.c (fill_gregset): Sign extend registers before
16 filling in the gregset structure.
18 Fri Dec 20 11:06:03 1996 Stu Grossman (grossman@critters.cygnus.com)
20 * mswin/genmakes: Don't define _DEBUG. This breaks wingdb.
23 Thu Dec 19 19:42:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
25 * v850-tdep.c (v850_scan_prologue): Deal with -mep shorting
26 register saves by using the ep register.
30 Thu Dec 19 15:57:16 1996 Doug Evans <dje@canuck.cygnus.com>
32 * m32r-tdep.c (m32r_frame_find_saved_regs): Fix thinko in arg def.
35 Thu Dec 19 09:38:56 1996 Mark Alexander <marka@cygnus.com>
37 * values.c (unpack_double): Make it compile with MSVC++ 2.x.
38 * remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
40 (common_open): Fix help string.
42 Wed Dec 18 23:01:32 1996 Stan Shebs <shebs@andros.cygnus.com>
44 * mpw-make.sed: Use NewFolderRecursive for installation.
46 Sat Dec 14 20:50:01 1996 Mark Alexander <marka@cygnus.com>
48 * mips-tdep.c (mips_push_arguments): Handle floating point args.
49 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
50 correctly for PIC on Irix 5.
52 Sat Dec 14 09:52:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
54 * i386-tdep.c (i386_frame_find_saved_regs): Handle zero return
55 from get_pc_function_start gracefully.
57 Sat Dec 14 00:43:57 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
59 * c-exp.y (qualified_name): Replace explicit check for valid
60 destructor name with call to destructor_name_p.
62 * c-lang.h, c-typeprint.c (cp_type_print_method_args): Removed,
65 * c-typeprint.c (c_type_print_varspec_prefix, c_type_print_base):
66 Replace remaining fprintf_unfiltered calls with their filtered variant.
67 (c_type_print_base): Do not print return type for destructors from
69 Replace cp_type_print_method_args with cplus_demangle call to get
70 consistent type output for stubbed and unstubbed methods.
72 * cp-valprint.c (cp_print_class_method): Replace
73 cp_type_print_method_args with cplus_demangle call to get consistent
74 type output for stubbed and unstubbed methods.
76 * gdbtypes.c, gdbtypes.h (get_destructor_fn_field): New function
77 to find the destructor field indices for a type.
79 * gdbtypes.h (struct type): Clarify comments for vptr_basetype
81 (struct fn_field): Remove args field, no longer used.
83 * symtab.c (decode_line_1), valops.c (value_struct_elt,
84 check_field_in): Use get_destructor_fn_field to find the destructor
85 field indices instead of assuming that the compiler passes the member
86 function fields in a specific order.
88 * symtab.c (find_methods): Pass NULL instead of SYMBOL_BLOCK_VALUE
90 (list_symbol): Replace cp_type_print_method_args with cplus_demangle
91 call in zapped out code and explain why this code is zapped out.
93 Thu Dec 12 13:29:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
95 * config/powerpc/ppc{,le}-sim.mt (SIM): Add the simulator common
96 library ../sim/common/libcommon.a.
98 Wed Dec 11 18:51:35 1996 Mark Alexander <marka@cygnus.com>
100 * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
102 Wed Dec 11 11:15:08 1996 Doug Evans <dje@canuck.cygnus.com>
104 * monitor.c (monitor_load): Add support for load address argument.
105 * dsrec.c: #include <time.h>.
106 (load_srec): New argument load_offset. Print download stats.
107 * srec.h (load_srec): Update prototype.
108 * sh3-rom.c (sh3_load): Update call to load_srec.
110 Mon Dec 9 17:34:05 1996 Geoffrey Noer <noer@cygnus.com>
112 * config/mn10300/tm-mn10300.h: more small register fixes
113 * mn10300-tdep.c: filled in from another target
115 Mon Dec 9 17:12:19 1996 Doug Evans <dje@canuck.cygnus.com>
117 * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.
119 Mon Dec 9 15:58:51 1996 Mark Alexander <marka@cygnus.com>
121 * config/mips/tm-mips.h: Get rid of call-dummy code.
122 Minor changes to make pre-ANSI compilers happy.
123 * mips-tdep.c: Minor changes to make pre-ANSI compilers happy.
124 (mips_push_arguments): Rewrite to partially support EABI.
125 (mips_pc_in_call_dummy): New function.
126 * infcmd.c: Include symfile.h to get prototype of entry_point_address,
127 which fixes 64-bit sign extension bug on MIPS.
129 Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
131 * config/mn10300/tm-mn10300.h: fix register names
132 * mn10300-tdep.c: new skeleton tdep for mn10300
134 Sun Dec 8 18:02:57 1996 Doug Evans <dje@canuck.cygnus.com>
136 * remote-sim.h: Update some comments.
137 * remote-sim.c (gdb_os_error): New function.
138 (init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
139 (gdb_os_printf_filtered): Use gdb_stdout, not stdout.
141 Sun Dec 8 00:36:31 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
143 * irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
144 from O32 and N32 ABI.
145 (xfer_link_map_member): Work around problem with alignments
146 in struct obj when compiling GDB under N32 ABI.
149 Thu Dec 5 23:30:44 1996 Stan Shebs <shebs@andros.cygnus.com>
151 * d10v-tdep.c: Add support for examination and interpretation
152 of instruction trace buffer.
153 (trace, untrace, info trace, tdisassemble): New commands.
156 Thu Dec 5 14:06:23 1996 Doug Evans <dje@canuck.cygnus.com>
158 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER): Undef.
159 (TARGET_BYTE_ORDER_SELECTABLE): Define.
161 ({BIG,LITTLE}_BREAKPOINT): Define.
162 (TM_PRINT_INSN_MACH): Redefine for sparclet.
164 Wed Dec 4 16:34:05 1996 Geoffrey Noer <noer@cygnus.com>
166 * config/mn10300/mn10300.mt, config/mn10300/tm-mn10300.h: New.
168 Tue Dec 3 13:02:08 1996 Fred Fish <fnf@ninemoons.com>
170 * infptrace.c (store_inferior_registers): Move some common code out
171 to store_register, like fetch_inferior_registers & fetch_register.
172 (store_register): New function, from store_inferior_registers.
173 (fetch_inferior_registers, fetch_register): Minor code tweaks to
174 make {fetch,store}_inferior_registers and {fetch,store}_register
175 routines as similar in structure as possible.
176 (fetch_inferior_registers, store_inferior_registers): Eliminate
177 local variable numregs and just use ARCH_NUM_REGS directly.
179 Tue Dec 3 11:38:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
181 * blockframe.c: add macro USE_GENERIC_DUMMY_FRAMES to enable/disable
182 code for generic call_dummy frames.
183 * config/h8300/tm-h8300.h: turn on USE_GENERIC_DUMMY_FRAMES
185 * config/m32r/tm-m32r.h: Ditto.
187 * config/sh/tm-sh.h: Ditto.
189 * config/v850/tm-v850.h: Ditto.
192 Sun Dec 1 00:41:47 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
194 * vax-tdep.c (vax_print_insn, print_insn_arg): Use info functions
195 for printing. From Valeriy Ushakov <uwe@ptc.spbu.ru>.
197 Sun Dec 1 00:40:46 1996 Geoffrey Noer <noer@cygnus.com>
199 * configure.tgt: Add new mn10300 entry.
201 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
203 Add support for Irix 6.2 native O32 and N32 ABI.
205 * config.in, configure.in, configure: Check for <objlist.h>.
206 * configure.tgt: Handle mips*-sgi-irix6* like irix5 for now.
208 * cp-valprint.c (cp_print_value_fields): Use SYMBOL_VALUE_ADDRESS
209 instead of SYMBOL_BLOCK_VALUE to get the address of a static member.
211 * dwarf2read.c: Turn warnings and recoverable errors into complaints,
212 add new complaints where appropriate.
214 (struct line_head): Change line_base from char to int to avoid
215 problems with compilers whose plain char is represented by an
217 (struct partial_die_info): Add is_declaration field.
218 (dwarf2_tmp_obstack): New obstack for allocating temporary storage
219 used during symbol reading.
220 (cu_header_offset): New variable for resolving relative reference
222 (optimized_out, basereg, islocal, frame_base_reg, frame_base_offset):
223 New interface variables for decode_locdesc.
224 (struct dwarf2_pinfo): New structure for communication between
225 psymtab and symtab reading, passed via pst->read_symtab_private.
226 (dwarf2_has_info, dwarf2_build_psymtabs): Accept objects files
227 without line number sections.
228 (dwarf2_build_psymtabs_hard): Initialize temporary obstack
230 Allocate and initialize pst->read_symtab_private.
231 Relocate pst->textlow and pst->texthigh with baseaddr.
232 (scan_partial_symbols): Do not add DW_AT_declaration symbols
233 to the partial symbol table.
234 Add file scope enumerator symbols to the partial symbol table.
235 Fix typo in highpc computation.
236 If we didn't find a lowpc, set it to highpc to avoid complaints
238 (add_partial_symbol): Relocate symbol values with baseaddr.
239 Add static DW_TAG_subprogram and DW_TAG_variable symbols to the
240 minimal symbol table.
241 Obtain symbol values for DW_TAG_variable symbols from the location
242 descriptor, skip symbols with missing location desciptors.
243 Skip symbols for aggregate types without children.
244 Handle enumerator symbols.
245 (dwarf2_psymtab_to_symtab): Issue symbol reading message if verbose.
246 (psymtab_to_symtab_1): Set local variables from
247 pst->read_symtab_private, set cu_header_offset and baseaddr.
248 Initialize temporary obstack for symbol reading, initialize
249 buildsym and add a cleanup to really_free_pendings.
250 Relocate highpc with baseaddr when calling end_symtab.
251 If the compilation is from a C file generated by language
252 preprocessors, do not set the symtab language if it was already
253 deduced by start_subfile.
254 Removed verbose sorting symbol table message.
255 (process_die): Handle DW_TAG_ptr_to_member_type and
256 DW_TAG_reference_type.
257 Use read_subroutine_type to get the function type for
258 DW_TAG_subprogram before calling read_func_scope.
259 (read_file_scope): Initialize file name to <unknown>, start_subfile
260 expects a non-NULL name.
261 If we didn't find a lowpc, set it to highpc to avoid complaints
263 Relocate lowpc and highpc with baseaddr.
264 Get rid of Irix6.2 native cc compile machine prefix in comp_dir.
265 Zero out ftypes for each new compilation unit (may be different
266 language or different objfile).
267 Accept compilation units without line number information, pass
268 comp_dir to decode_lines.
269 (read_func_scope): Initialize function name to <unknown> to avoid
270 core dumps when DW_AT_name is missing.
271 Relocate lowpc and highpc with baseaddr.
272 Handle DW_AT_frame_base, keep result for DW_OP_fbreg operations.
273 Pass function type to new_symbol.
274 (read_lexical_block_scope): Relocate lowpc and highpc with baseaddr.
275 (read_structure_scope): Set TYPE_TAG_NAME, not TYPE_NAME.
276 Handle DW_TAG_class_type.
277 Copy fields to type_obstack, release temporary storage for fields.
278 Don't add symbol if die is a stub die and has no children.
279 Handle C++ static member fields.
280 (read_enumeration): Set TYPE_TAG_NAME, not TYPE_NAME.
281 Copy fields to type_obstack, release temporary storage for fields.
282 Let new_symbol handle the symbol creation for enumerators
283 instead of handcrafting a symbol.
284 Determine signedness of enum type from enumerators.
285 (dwarf_read_array_type): Handle variable length arrays.
286 Use lookup_pointer_type instead of handcrafting a type.
287 Create array type only if a DW_TAG_subrange_type was found.
288 (read_tag_pointer_type, read_tag_reference_type):
289 Use lookup_pointer_type and lookup_reference_type instead
290 of handcrafting a type.
291 (read_tag_ptr_to_member_type): New function to handle
292 DW_TAG_ptr_to_member_type.
293 (read_subroutine_type): Handle parameter dies.
294 Use lookup_function_type instead of handcrafting a type.
295 (read_typedef): Allocate a TYPE_CODE_TYPEDEF type for the typedef.
296 (read_base_type): If the type has a name, use init_type to create
297 a new type instead of second guessing a fundamental type.
298 (read_comp_unit): Reset die reference table before building
300 (dwarf2_read_section): Read section contents into psymbol_obstack.
301 (dwarf2_read_abbrevs): Handle unterminated abbreviations
302 for a compile unit gracefully.
303 (read_partial_die): Zero partial die before reading its info.
304 Handle DW_AT_declaration.
305 Fix typo in handling of DW_FORM_block4.
306 (read_full_die): Fix typo in handling of DW_FORM_block4.
307 (read_1_signed_byte, read_2_signed_bytes, read_4_signed_bytes):
308 New routines to get signed values from a buffer.
309 (read_n_bytes, read_string): Allocate storage from the temporary
310 obstack. If the host char size permits it, return pointer
311 to buffer instead of allocating storage.
312 (set_cu_language): Handle DW_LANG_Mips_Assembler.
313 (dwarf_attr): Return NULL if reference die for DW_AT_specification
314 or DW_AT_abstract_origin die is not found.
315 (record_minimal_symbol): Removed, replaced with a direct call to
316 prim_record_minimal_symbol, it now handles saving the string itself.
317 (convert_locdesc): Removed, partial symtab reading now uses
319 (dwarf_attr): Use dwarf2_get_ref_die_offset to get the absolute
320 offset for the die reference.
321 (dwarf_decode_lines): Complain if the line section info is missing.
322 Use read_1_signed_byte to extract lh.line_base to avoid
323 problems with compilers whose plain char is represented by an
325 Add cleanups for allocated temporary storage.
326 Start a subfile for the first file in the state machine.
327 Fix off by one problem with dirs.dirs access.
328 Use comp_dir when directory index is 0.
329 Support multiple sequences (from Jason Merrill <jason@cygnus.com>).
330 (dwarf2_start_subfile): Try to keep line numbers from identical
331 absolute and relative file names in a common subfile.
332 (new_symbol): Allocate symbol and symbol name on the symbol_obstack.
333 Set SYMBOL_LINE from DW_AT_decl_line if present.
334 Set SYMBOL_TYPE from passed type if not NULL.
335 Change DW_TAG_variable symbol types with missing type entries
337 Handle optimized_out, offreg and islocal storage classes.
338 Add external symbols with type information whose address isn't
339 known as LOC_UNRESOLVED symbols.
340 Synthesize typedefs for C++ classes, structs, unions and enumerations.
341 Handle DW_TAG_enumerator symbols, complain for unrecognized
343 (die_type): A missing DW_AT_type represents a void type.
344 Use dwarf2_get_ref_die_offset to get the absolute offset for
346 (die_containing_type): New function to build type from
347 DW_AT_containing_type attribut.
348 (read_type_die): Handle DW_TAG_ptr_to_member_type.
349 Treat DW_TAG_subprogram like DW_TAG_subroutine_type.
350 (dwarf_base_type): Fix typo with creation of FT_UNSIGNED_SHORT
352 (create_name): Removed, symbol name allocation is now done
354 (dump_die): Use print_address_numeric to print a CORE_ADDR.
355 (dwarf2_empty_die_ref_table): New function to clear the die
357 (dwarf2_get_ref_die_offset): New function to get the absolute
358 die offset from a die reference attribute.
359 (decode_locdesc): Complete rewrite using a stack, code mostly
360 borrowed from dwarfread.c:locval.
361 (dwarf_alloc_type): Removed, replaced by direct calls to alloc_type.
362 (dwarf_alloc_block): Allocate block on temporary obstack.
364 * elfread.c (elf_symtab_read): When handling Irix dynamic symbols,
365 skip section name symbols and relocate all others.
366 (elf_symfile_read): Build dwarf2 psymtab even if offset is non-zero.
368 * irix5-nat.c (fetch_core_registers): Handle core_reg_sect
369 from N32 executables. Call registers_fetched after extracting
371 (obj_list_variant, struct link_map, LM_OFFSET, LM_ADDR): New
372 definitions to enable support of O32 and N32 format objlists.
373 (struct so_list): New members offset, so_name and lmstart to
374 eliminate dependencies from the objlist format used.
375 (solib_map_sections, symbol_add_stub, solib_add,
376 info_sharedlibrary_command, solib_address, clear_solib): Use
377 so_name and LM_OFFSET.
378 (first_link_map_member): Rewrite to enable support of O32 and N32
380 (next_link_map_member, xfer_link_map_member): New functions to
381 support O32 and N32 format objlists.
382 (find_solib): Use first_link_map_member, next_link_map_member and
383 xfer_link_map_member.
384 (solib_create_inferior_hook): Use TARGET_SIGNAL_* instead of
387 * mdebugread.c (parse_partial_symbols, handle_psymbol_enumerators):
388 Pass CORE_ADDR variant to add_psymbol_to_list.
390 * mips-tdep.c (heuristic_proc_desc): Stop examining the prologue
391 if we encounter a positive stack adjustment. Handle `move $30,$sp'.
392 Handle `sd reg,offset($sp)' for 32 bit ABIs.
394 * symmisc.c (dump_msymbols, print_partial_symbols): Use
395 print_address_numeric to print a SYMBOL_VALUE_ADDRESS.
396 (dump_symtab): Print compilation directory if it is not NULL.
398 * valops.c (search_struct_field, value_struct_elt_for_reference):
399 Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_BLOCK_VALUE to get the
400 address of a static member.
402 Thu Nov 28 00:46:24 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
404 * vax-tdep.c (vax_print_insn): Made static, modified to take
405 disassemble_info as parameter.
406 (_initialize_vax_tdep): New function to initialize tm_print_insn
409 Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
411 * blockframe.c: Remove old-style CALL_DUMMY code.
412 * h8300-tdep.c, config/h8300/tm-h8300.h: Ditto.
414 * m32r-tdep.c, config/m32r/tm-m32r.h: Ditto.
416 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
418 * v850-tdep.c, config/v850/tm-v850.h: Ditto.
421 Wed Nov 27 10:32:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
423 * breakpoint.c: DELETE command will not delete CALL_DUMMY breakpoint.
424 * blockframe.c: Add target-independant support for managing
425 CALL_DUMMY frames on the host side.
426 * frame.h: Declarations for generic CALL_DUMMY frame support.
427 * h8300-tdep.c: Add target function calls using generic frame support.
428 * config/h8300/tm-h8300.h: config for generic target function calls.
430 * m32r-tdep.c: Add target function calls using generic frame support.
431 * config/m32r/tm-m32r.h: config for generic target function calls.
433 * sh-tdep.c: Add target function calls using generic frame support.
434 * config/sh/tm-sh.h: config for generic target function calls.
436 * v850-tdep.c: Add target function calls using generic frame support.
437 * config/v850/tm-v850.h: config for generic target function calls.
439 * valops.c: ADD PUSH_RETURN_ADDRESS so that it doesn't have to be
440 done by PUSH_ARGUMENTS when there's no CALL_DUMMY.
442 Tue Nov 26 19:21:35 1996 Mark Alexander <marka@cygnus.com>
444 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
445 (mips_addr_bits_remove): Declare.
446 * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post
447 errors when hitting breakpoints during inferior function calls
449 (fix_sign_extension): Make public, rename to mips_addr_bits_remove.
450 * utils.c (paddr_nz, preg_nz): New functions, similar to
451 paddr and preg but don't print leading zeroes.
452 * defs.h (paddr_nz, preg_nz): Declare.
453 * remote-mips.c: Use paddr_nz instead of paddr throughout
454 to reduce packet size.
455 (pmon_end_download): Improve timeout error handling.
457 Tue Nov 26 17:21:37 1996 Ian Lance Taylor <ian@cygnus.com>
459 * configure: Rebuild with autoconf 2.12.
461 Mon Nov 25 13:17:16 1996 Fred Fish <fnf@ninemoons.com>
463 From: Paul Eggert <eggert@twinsun.com>
464 * remote-bug.c (wait_strings): Avoid creating a trigraph.
467 Fri Nov 22 15:55:22 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
469 * valops.c (value_at, value_fetch_lazy): Put in D10V call
470 to fix up address pointers.
471 * values.c (value_from_longest): Removed previous d10v changes.
472 * config/d10v/tm-d10v.h (TARGET_PTR_BIT): Change to 4 bytes.
475 Fri Nov 22 10:06:19 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
477 * config/i386/nm-i386v4.h (LOSING_POLL): Define, needed for
480 Thu Nov 21 19:13:58 1996 Mark Alexander <marka@cygnus.com>
482 * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN.
483 (common_breakpoint): Use paddr instead of %x to print 64-bit values.
484 (heuristic_proc_desc): Add tests for 64-bit instructions.
485 (init_extra_frame_info, mips_push_arguments): Recognize additional
487 * remote-mips.c: Extend DDB target to allow TFTP downloads.
488 * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS):
491 Wed Nov 20 19:09:16 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
493 * infcmd.c (do_registers_info): Call val_print with the
494 virtual buf instead of the raw buf. Needed for REGISTER_CONVERT
495 to work with non-floating point regs.
498 * d10v-tdep.c (d10v_skip_prologue): If we have line debugging
499 information, then the end of the prologue should the first
500 assembly instruction of the first source line.
502 * values.c (value_from_longest): Put in D10V call to
503 fix up address pointers.
505 * config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified.
506 (REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM.
507 (REGISTER_CONVERTIBLE): Make PC and SP convertible.
508 (REGISTER_CONVERT_TO_VIRTUAL): Define.
509 (REGISTER_CONVERT_TO_RAW): Define.
510 (D10V_MAKE_DADDR): Define.
511 (D10V_MAKE_IADDR): Define.
513 Wed Nov 20 16:15:15 1996 Geoffrey Noer <noer@cygnus.com>
515 * config/i386/cygwin32.mh: add MMALLOC_CFLAGS = -I$(MMALLOC_SRC)
516 -DMMCHECK_FORCE=1 so memory checks are loaded for cygwin32 gdb
518 Wed Nov 20 00:43:09 1996 Doug Evans <dje@canuck.cygnus.com>
520 * callback.h: Delete, moved to ../include.
521 * callback.c: Delete, moved to ../sim/common.
522 * Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
523 (callback.o): Delete rule.
524 * remote-sim.h: No longer include callback.h.
525 (sim_callback_write_stdout): Delete prototype.
526 * remote-sim.c (init_callbacks,end_callbacks): New functions.
527 (gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
528 (gdb_callback, callbacks_initialized): New static globals.
529 (gdbsim_open): Call init_callbacks.
530 (gdbsim_close): Call end_callbacks.
531 (simulator_command): Call init_callbacks.
533 * config/h8300/h8300.mt (SIM): Change to ../sim/h8300/libsim.a.
534 * config/h8500/h8500.mt (SIM): Change to ../sim/h8500/libsim.a.
537 Tue Nov 19 09:26:14 1996 Tom Tromey <tromey@cygnus.com>
539 * gdbtk.c (gdbtk_readline): Fix memory leak.
541 Mon Nov 18 23:43:05 1996 Tom Tromey <tromey@cygnus.com>
543 Fixes for Tcl 7.6 / Tk 4.2:
544 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
545 Remove old fileselect code.
546 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
549 Mon Nov 18 15:58:05 1996 Jim Wilson <wilson@cygnus.com>
551 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Change unsigned LONGEST
554 Fri Nov 15 15:34:18 1996 Fred Fish <fnf@cygnus.com>
556 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
557 * procfs.c (wait_fd): Handle EINTR error return from poll
558 by restarting the poll.
559 * defs.h (PIDGET): Define a default version that just
560 returns its argument unchanged.
561 * inflow.c (terminal_init_inferior): Eliminate #ifdef
562 of PIDGET and fold both alternatives into common code.
563 (pass_signal): Use PIDGET for pid passed to kill().
565 Thu Nov 14 15:54:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
567 * utils.c (paddr,preg): Use a static variable initialized to 32
568 instead of doing addr>>32 to eliminate a warning produced by GCC
572 * config/d10v/tm-d10v.h (ULONGEST): Define.
575 Tue Nov 12 12:25:27 1996 Jim Wilson <wilson@cygnus.com>
577 * c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
578 recursive call to type_print.
580 Tue Nov 12 12:18:29 1996 Jim Wilson <wilson@cygnus.com>
582 * defs.h (ULONGEST): New macro.
583 * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
584 corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
585 m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
586 valarith.c, valops.c, values.c, config/gould/tm-np1.h,
587 config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
588 mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
589 Change all occurances of unsigned LONGEST to ULONGEST.
591 * configure.host (mips-sgi-irix6): Add.
593 Tue Nov 12 12:16:40 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
595 * sh-tdep.c: Add functionality for target function calls.
596 * config/sh/tm-sh.h: Add support for target function calls.
599 Tue Nov 12 12:06:58 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
601 * m32r-tdep.c: Add functionality for target function calls.
602 * valops.c: Small change to support target function calls.
603 * config/m32r/tm-m32r.h: Add support for target function calls.
606 Mon Nov 11 17:15:59 1996 Geoffrey Noer <noer@cygnus.com>
608 * defs.h: Modify Nov 11 12:59:00 change so _MSC_VER is checked
610 * win32-nat.c: Fix Nov 11 12:59:00 change (windows.h should
611 be included instead of windefs.h for compilers other than
613 * mswin/windefs.h: Remove ^Ms and change C++ style comments
616 Mon Nov 11 14:32:38 1996 Mark Alexander <marka@cygnus.com>
618 * utils.c (get_cell): Fix off-by-one bug.
619 * mips-tdep.c (get_frame_pointer, fix_sign_extension):
620 New functions to consolidate common code.
621 (mips_frame_chain, init_extra_frame_info): Use new functions
622 to fix problems with backtrace and finish commands on ddb board.
624 Mon Nov 11 12:59:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
626 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
627 config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
628 * defs.h: Cleanup; add prototypes.
629 * corefile.c: Change FIXME #ifdef
630 * win32-nat.c: Include windefs instead of windows.h.
631 * utils.c: Add routines for printing addresses and registers
634 Sat Nov 9 01:05:10 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
636 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
637 if we encounter a positive stack adjustment.
638 (find_proc_desc): If heuristic_fence_post is non-zero, use
639 heuristic_proc_start to determine the start of a function before
640 calling heuristic_proc_desc.
642 * coffread.c (coff_symtab_read): Change minimal symbol types
643 for C_LABEL symbols from mst_* to mst_file_*.
645 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
647 * configure.in: Handle error message from sun3 native ld when
648 configuring HLDFLAGS.
649 * configure: Regenerated with autoconf.
651 * c-valprint.c (c_value_print): Adjust value address by VALUE_OFFSET.
652 * cp-valprint.c (cp_print_value): Prevent gdb crashes by making sure
653 that the virtual base pointer from an user object still points to
656 * dbxread.c (dbx_symfile_init): Initialize sym_stab_info to
657 clear the recently added header_files fields.
658 (dbx_symfile_finish): Free hfiles[i].vector to avoid storage leak.
660 Fri Nov 8 14:30:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
662 * config/tm-sh.h: Added a missing comma in middle of
665 Fri Nov 8 12:29:51 1996 Stan Shebs <shebs@andros.cygnus.com>
667 * monitor.c: Fix some formatting and comments.
669 * remote-sim.c (simulator_command): Set up callbacks before
670 entering the simulator.
673 Thu Nov 7 15:19:08 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
675 * d10v-tdep.c: Fix some problems with inferior function calls.
676 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
677 a pointer to the dummy's stack instead of just a flag.
681 Tue Nov 5 10:21:02 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
683 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
684 * config/tm-m32r.h: Add framesize and register to extra_frame_info.
687 Tue Nov 5 10:08:07 1996 Stu Grossman (grossman@critters.cygnus.com)
689 * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
690 * mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1): Initialize depth
691 to fix divide-by-zero problem with clicking on source window.
693 Mon Nov 4 00:48:37 1996 Stu Grossman (grossman@critters.cygnus.com)
695 * mswin/recordit: Fix problem with absolute paths.
696 * mswin/recordit: Fix problem with relative paths.
698 Sun Nov 3 18:06:42 1996 Stu Grossman (grossman@critters.cygnus.com)
700 * mswin/{Makefile.in configure configure.in}: New files for
701 configuring wingdb under Unix.
703 Sat Nov 2 03:54:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
705 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
706 missing or zero-sized .text sections properly.
707 * mdebugread.c: Handle scRConst and scSUndefined storage classes.
708 * stabsread.c (scan_file_globals): Try to resolve symbols
709 for shared libraries from the minimal symbol table of the main
713 Fri Nov 1 13:59:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
715 * d10v-tdep.c, config/d10v/tm-d10v.h: Major fixes to support
716 inferior function calls and proper stack backtracing on D10V-EVA
720 Fri Nov 1 10:50:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
722 * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it
724 (GDBSERVER_DEPFILES,TERMCAP): Ditto.
726 * monitor.c (dev_name,targ_ops): Move static variables before
727 first use, to avoid compiler warnings.
730 Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
732 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
733 * configure.tgt: Add entry for m32r target.
734 * monitor.h: Add a flag to tell monitor_store_register to use
735 (val, regno) instead of (regno, val).
736 * monitor.c: Make monitor_store_register honor the above flag.
737 Make monitor_exp ignore DC1/DC3 for m32r.
738 Increase buf size in monitor_dump_regs.
740 Wed Oct 30 18:14:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
742 * m32r-tdep.c, m32r-rom.c: New files.
743 * config/m32r/m32r.mt: New file.
744 * config/m32r/tm-m32r.h: New file.
747 Tue Oct 29 16:56:01 1996 Geoffrey Noer <noer@cygnus.com>
749 * config/i386/xm-cygwin32.h:
750 * config/powerpc/xm-cygwin32.h:
751 add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
754 Tue Oct 29 18:36:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
756 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE):
759 Tue Oct 29 14:59:20 1996 Stan Shebs <shebs@andros.cygnus.com>
761 * TODO: Add item suggesting an "info bfd" command.
764 Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
766 * d10v-tdep.c: Snapshot that supports D10V-EVA board.
768 * config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
769 (TARGET_READ_FP,TARGET_WRITE_FP): Define.
772 Mon Oct 28 17:34:24 1996 Stu Grossman (grossman@critters.cygnus.com)
774 * mswin/genmakes mswin/recordit: New scripts to generate make
777 Sun Oct 27 20:18:04 1996 Mark Alexander <marka@cygnus.com>
779 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
781 * configure.tgt: Modify cases for vr5000 to use new files.
783 Sat Oct 26 07:15:14 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
785 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
787 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
788 the entry to the exit system call to detect termination of the
789 inferior stopped working. Trace termination of the inferior via
790 PRFS_STOPTERM instead.
791 (procfs_init_inferior): Do not trace entry to exit system call
792 if PIOCSSPCACT is defined.
793 (procfs_wait): Handle PR_DEAD event, which signals the termination
794 of the inferior if PRFS_STOPTERM is set.
796 * mdebugread.c (parse_partial_symbols): Ignore stNil section
797 start address symbols.
799 * sparc-tdep.c (get_saved_register): Get saved PC from the
800 frame info if not in innermost frame.
802 Thu Oct 24 10:51:45 1996 Mark Alexander <marka@cygnus.com>
804 * dbxread.c (process_one_symbol): Interpret end-of-function
805 markers correctly; this fixes problem on Vr5000 where all
806 functions in a module had the same address.
807 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
808 Correct for pc-linux-gnu problem in config.guess.
809 * configure: Regenerate.
811 Thu Oct 24 10:06:58 1996 Stu Grossman (grossman@critters.cygnus.com)
813 * dbxread.c: Don't swap symbols in place, since internal and
814 external forms may have different sizes. Don't assume that an
815 internal_nlist has the same layout as an external_nlist. Create
816 symbol for n_strx element so to hide specifics of nlist from
818 * partial-stab.h: Don't reference dbxread symbols directly. Use
819 CUR_SYMBOL_STRX instead.
820 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
823 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
825 * mswin/gdbwin.c (reg_order): Define register order for V850.
826 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
828 * mswin/regdoc.h: Define MAXREGS for V850.
831 Tue Oct 22 16:28:20 1996 Stu Grossman (grossman@critters.cygnus.com)
833 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
834 prologues correctly. First, prologue end is now defined by
835 presence of a branch, jump or call insn. Second, can no longer
836 fix frame offsets because we may not know the offset until after a
837 register has been saved.
838 * (v850_init_extra_frame_info): Fixup frame offsets here because
839 we have all the info at this time.
840 * (v850_frame_chain): Use new calling convention for scan_prologue.
844 Tue Oct 22 10:25:29 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
846 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
847 backtraces and inferior function calls.
850 Tue Oct 22 10:32:46 1996 Stan Shebs <shebs@andros.cygnus.com>
852 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
853 (@HLDFLAGS@): Always edit out.
855 Mon Oct 21 18:17:08 1996 Mark Alexander <marka@cygnus.com>
857 * mdebugread.c (parse_partial_symbols): Fix 64-bit
858 sign-extension problems in calculating psymtab addresses.
859 * buildsym.c (end_symtab): Use macro to pop context.
862 Mon Oct 21 14:40:50 1996 Stu Grossman (grossman@critters.cygnus.com)
864 * v850-tdep.c: Cleanup lots of things. Add many comments.
866 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
867 sign bugs with scanning prologues. Get a little smarter about
868 calculating the length of uninteresting instructions.
871 Mon Oct 21 14:01:38 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
873 * top.c: Add new commands "set annotate" and "show annotate".
875 Sun Oct 20 04:38:39 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
877 * corelow.c (core_close): Clear inferior_pid only if there is
880 * cp-valprint.c (cp_print_value_fields): Pass correct address
883 From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
884 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
885 typedefs before checking for integral type of right operand.
887 Fri Oct 18 17:26:22 1996 Mark Alexander <marka@cygnus.com>
889 * mdebugread.c (parse_symbol): Fix crash when malloc has
890 no type info and void type has no associated pointer type.
892 Thu Oct 17 18:18:20 1996 Stan Shebs <shebs@andros.cygnus.com>
894 * configure.host: New file, host configuration mapping.
895 * configure.tgt: New file, target configuration mapping.
896 * configure.in: Remove host and target mapping.
897 * configure: Rebuild.
899 Wed Oct 16 17:46:03 1996 Stan Shebs <shebs@andros.cygnus.com>
901 * breakpoint.c (must_shift_inst_regs): New global.
902 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
903 equivalent expression uses.
904 * infrun.c (wait_for_inferior): Ditto.
907 Wed Oct 16 01:53:43 1996 Stu Grossman (grossman@critters.cygnus.com)
909 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
911 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
914 Tue Oct 15 16:30:07 1996 Stu Grossman (grossman@critters.cygnus.com)
916 * Makefile.in (init.c): Don't use -s option with grep. It means
917 something different under Digital Unix.
919 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
920 LOC_LOCAL_ARG as arguments so that GDB will know about function
921 args declared this way. Mostly affects dwarf.
922 * dwarfread.c (decode_die_type): Change default type from int to
923 void. This allows GDB to recognize void functions.
924 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
926 * findvar.c (extract_floating store_floating): Clean up comments
928 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
929 function has a prototype. Currently, only dwarf supports this.
930 * utils.c (floatformat_from_doublest): Fix logic error with
931 converting from double to float. (It wasn't shifting mant_long if
932 it had a hidden bit.)
935 * v850-tdep.c: Add support for function calling. Fix some
936 problems with debugging code w/o debug symbols.
937 * config/v850/tm-v850.h: Ditto.
940 Tue Oct 15 18:19:42 1996 Ian Lance Taylor <ian@cygnus.com>
942 * utils.c: Always ensure that size_t is defined. Check
943 HAVE_STDDEF_H rather than __STDC__
944 (xmalloc, xrealloc): Use size_t rather than long.
946 Tue Oct 15 14:24:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
948 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
949 can use single-step commands.
951 Sun Oct 13 11:38:25 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
953 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
954 follow typedefs before checking TYPE_CODE for structures and unions.
956 Fri Oct 11 15:43:54 1996 Stu Grossman (grossman@critters.cygnus.com)
958 * frame.h: Move definition of struct frame_saved_regs to before
959 struct frame to make it possible to use frame_saved_regs in
960 EXTRA_FRAME_INFO macro.
963 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
964 macros to make frame operations (such as backtrace) work.
967 Fri Oct 11 14:23:50 1996 Fred Fish <fnf@cygnus.com>
969 * dbxread.c (process_one_symbol): Check for null string directly
970 rather than using strcmp against "".
971 * partial-stab.h: Ditto.
973 Fri Oct 11 12:18:32 1996 Mark Alexander <marka@cygnus.com>
975 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
976 Make it compile on Linux and eliminate some warnings.
978 Thu Oct 10 16:32:08 1996 Stu Grossman (grossman@critters.cygnus.com)
980 * Makefile.in (init.c): Fixup final sed script to work around
981 Linux bug with `p' operator.
983 Wed Oct 9 18:02:48 1996 Stan Shebs <shebs@andros.cygnus.com>
985 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
987 (ddb_ops, pmon_ops): Fix the documentation strings.
989 Wed Oct 9 07:42:44 1996 Stu Grossman (grossman@critters.cygnus.com)
991 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
992 filenames with sed instead.
994 Tue Oct 8 15:59:44 1996 Stu Grossman (grossman@critters.cygnus.com)
996 * defs.h: Remove decls of xmalloc and xrealloc. There is a
997 conflicting definition in libiberty.h.
999 Tue Oct 8 11:47:13 1996 Fred Fish <fnf@cygnus.com>
1001 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
1002 than poking global variable (which is now static).
1003 * hpread.c (hpread_build_psymtabs): Ditto.
1004 * os9kread.c (os9k_symfile_read): Ditto.
1005 * xcoffread.c (xcoff_initial_scan): Ditto.
1007 * buildsym.h (free_pending_blocks): Declare here.
1008 (pending_blocks): Remove declaration of global symbol.
1009 (free_pendings): Remove declaration of global symbol.
1010 (make_blockvector): Declare here.
1011 (record_pending_block): Declare here.
1013 * dstread.c (make_blockvector): Remove static copy that was old
1014 clone of version in buildsym.c.
1015 (process_dst_block): Call record_pending_block rather than doing
1017 (read_dst_symtab): Ditto.
1019 * buildsym.c (make_blockvector): Make global rather than static,
1020 (record_pending_block): New function, code moved from finish_block.
1021 (finish_block): Use record_pending_block.
1022 (free_pending_blocks): New function.
1023 (really_free_pendings): Call free_pending_blocks.
1024 (pending_blocks): Make static instead of global.
1025 (free_pendings): Make static instead of global.
1027 Tue Oct 8 09:03:22 1996 Stu Grossman (grossman@critters.cygnus.com)
1029 * config/i386/windows.mh config/i386/xm-windows.h:: New config
1030 files to support building Wingdb (built under Microsoft build
1033 * Makefile.in: Add rule for hpux-thread.o (needs special header
1035 * (SUBDIRS): Remove mswin.
1036 * Change procedure for creating init.c. Speeds things up quite a
1038 * config.in configure configure.in: Check for select, poll.
1039 * Check for OSF header files before including hpux-thread.o.
1040 * Don't configure doc or testsuite when building under MSVC.
1041 * findvar.c value.h (read_register_pid write_register_pid): Make
1042 global. Needed for hppa-tdep.c.
1043 * (supply_register): Don't set pid to inferior_pid when supplying
1045 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
1047 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
1048 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
1049 Use write_pc instead, which uses the correct pid.
1050 * (target_read_pc target_write_pc): Use read/write_register_pid
1051 instead of read/write_register to preserve the pid passed in.
1052 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
1053 hpux-threads.c to override this as a runnable target.
1054 * config/pa/nm-hppah.h: Define target_new_objfile and
1056 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
1057 instead of frame_saved_pc.
1058 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
1059 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
1060 we can't easily determine the start file bounds with ELF.
1061 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
1062 * hpux-thread.c: New file for HPUX/OSF thread support.
1063 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
1064 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
1065 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
1066 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
1067 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
1070 Sun Oct 6 15:48:09 1996 Fred Fish <fnf@cygnus.com>
1072 * buildsym.c (finish_block): Change innerblock_anon_complaint to
1073 print the addresses as part of the complaint. Add a complaint for
1074 cases where the block end address is smaller than the block start
1075 address, in case any such conditions slip through our fixup mechanism.
1076 * symmisc.c (dump_symtab): Only print blockvector for primary
1077 symtabs, to avoid massive duplication of output due to secondary
1078 symtabs that point to same blockvector. Also do some minor
1081 Mon Oct 7 10:42:32 1996 Per Bothner <bothner@deneb.cygnus.com>
1083 Replace header_files global by per-objfile field.
1084 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
1085 n_header_files, n_allocated_header_files.
1086 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
1087 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
1088 N_ALLOCATED_HEADER_FILES.
1089 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
1090 (free_header_files, init_header-files): Don't free/init headerfiles.
1091 (various functions): Use macros instead of header_files globals.
1092 * stabsread.c (various functions): Likewise.
1094 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
1096 * dwarf2read.c (read_tag_reference_type): New fn.
1097 (read_type_die): Call it.
1098 (dwarf_attr): Also look in the DIEs referred to by specification
1099 or abstract_origin attributes.
1101 Wed Oct 2 22:07:16 1996 Fred Fish <fnf@cygnus.com>
1103 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
1105 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
1106 Define with dummy pc arg.
1107 * config/m68k/tm-nbsd.h: Ditto.
1108 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
1109 SIGTRAMP_END are macros that take an single argument.
1111 Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
1113 * defs.h: Remove define of PRIVATE_XMALLOC.
1116 Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com)
1118 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
1121 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
1123 * top.c (execute_control_command): Free values from while_control
1124 and if_control conditions after evaluation to avoid storage leaks.
1128 Fri Sep 27 17:43:06 1996 Stu Grossman (grossman@critters.cygnus.com)
1130 * configure configure.in: Recognize v850 target.
1131 * v850-tdep.c: New file, NEC V850 target support.
1132 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
1135 Fri Sep 27 14:48:15 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1137 * infrun.c (wait_for_inferior): Update current_line and
1138 current_symtab when stepping continues in the middle of a new line.
1140 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
1142 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
1143 standards for the --version option.
1144 (print_gnu_advertisement): Remove, now part of print_gdb_version.
1145 (show_version): Remove call to print_gnu_advertisement.
1146 * top.h (print_gnu_advertisement): Remove prototype.
1147 * main.c (print_gdb_help): Move help to static function and
1149 (main): Call print_gdb_help rather than inlining it.
1150 (main): Remove call to print_gnu_advertisement.
1151 start-sanitize-gdbtk
1152 * gdbtk.tcl (create_copyright_window): Increase timeout from
1153 15 seconds to 30 seconds.
1157 Fri Sep 27 13:32:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1159 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
1160 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
1163 Thu Sep 26 23:10:26 1996 Mark Alexander <marka@cygnus.com>
1165 * configure.in, config/i386/tm-linux.h: Fix configure
1166 problem on older Linux systems that prevented core files
1167 from being recognized.
1169 Wed Sep 25 18:31:33 1996 Stan Shebs <shebs@andros.cygnus.com>
1171 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
1172 * config/m68k/monitor.mt (TDEPFILES): Add it.
1176 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1178 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
1179 Now single-steps correctly.
1180 * d10v-tdep.c (d10v_pop_frame): Fixed.
1183 Fri Sep 20 16:10:58 1996 Stan Shebs <shebs@andros.cygnus.com>
1185 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
1186 be consistent with GCC.
1187 (FPUL_REGNUM, etc): Renumber to match list changes.
1188 (ADDR_BITS_REMOVE): Delete.
1189 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
1190 Rearrange to match REGISTER_NAMES.
1191 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
1194 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1196 * d10v-tdep.c: Stack chain should work now.
1198 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1200 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
1203 Tue Sep 17 12:20:50 1996 Ian Lance Taylor <ian@cygnus.com>
1205 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
1206 * configure: Rebuild.
1208 Tue Sep 17 12:09:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
1210 * ser-e7kpc.c: Added wingdb support for target e7000pc.
1212 Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
1214 * remote-mips.c (pmon_wait): DDB PMON does not require forced
1215 re-entry back into debug mode.
1217 Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1219 * remote-mips.c (mips_load): Ensure that the PC is explicitly
1220 loaded after a load to a DDB PMON system.
1222 Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
1224 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
1225 (HLDENV): Set to @HLDENV@.
1226 (gdb): Prefix link command line with $(HLDENV).
1227 * configure.in: Add support to test for --enable-shared and
1228 generate appropriate values for HLDFLAGS and HLDENV.
1229 * configure: Regenerated with autoconf.
1231 Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
1233 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
1234 change for core_read_registers in struct core_fns.
1235 * core-regset.c (fetch_core_registers): Ditto & add prototype.
1236 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
1237 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
1238 * i386b-nat.c (fetch_core_registers): Ditto.
1239 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
1240 * irix4-nat.c (fetch_core_registers): Ditto.
1241 * irix5-nat.c (fetch_core_registers): Ditto.
1242 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
1243 * m68knbsd-nat.c (fetch_core_registers): Ditto.
1244 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
1245 * rs6000-nat.c (fetch_core_registers): Ditto.
1246 * sparc-nat.c (fetch_core_registers): Ditto.
1247 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
1248 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
1250 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
1251 * delta68-nat.c (register_addr): Ditto.
1252 * gdbserver/low-linux.c (register_addr): Ditto.
1253 * gdbserver/low-hppabsd.c (register_addr): Ditto.
1254 * i386m3-nat.c (register_addr): Ditto.
1255 * mips-nat.c (register_addr): Ditto.
1256 * ultra3-nat.c (register_addr): Ditto.
1258 Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
1260 * blockframe.c (inside_main_func): Cleanup slightly. Move
1261 mainsym def into the block it's used in.
1262 * configure.in configure: Allow NATDEPFILES to be recognized in
1263 .mh files regardless of whitespace.
1265 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
1266 keep downloads from hanging.
1268 * remote-wiggler.c: Add support for flash upgrades.
1269 * (wiggler_error): Fix message format. Add new error code.
1270 * (wiggler_write_byets): Error code is hex. Report errors with
1271 proper routine name.
1272 * (wiggler_read_byets): Report errors with proper routine name.
1273 * (get_packet): Add support for new flash commands.
1274 * (wiggler_load): Call clear_symtab_users() to reset things
1275 properly after download.
1276 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
1277 support flash upgrades for Wiggler.
1278 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
1280 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
1282 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
1284 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
1286 * config/i386/cygwin32.mh:
1287 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
1289 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
1291 * value.h (COERCE_REF): Fix previous change.
1292 (COERCE_ENUM): Add a check_typedef (this is the real fix).
1294 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1296 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
1297 better check of array boundaries.
1299 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
1301 * configure: Update aclocal.m4 and re-run autoconf to get correct
1303 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
1304 fix default message generation.
1306 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
1308 * Makefile.in: Add mswin to SUBDIRS. Add rules for
1309 mswin/libwingdb.a and remote-wiggler.o.
1310 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
1311 * (breakpoint_inserted_here_p): New func, just like
1312 breakpoint_here_p, except it's honest. Honestly.
1313 * breakpoint.h: Proto for above.
1314 start-sanitize-gdbtk
1315 * configure configure.in: Add host *windows* to list of hosts
1316 that don't support GDBtk.
1318 * configure configure.in: Add mswin to configdirs if host is
1319 i[3456]86-*-windows.
1320 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
1321 Change all vars that can contain addresses to type CORE_ADDR.
1322 * findvar.c (supply_register): Allow val to be NULL. This means
1323 that regno is unsupported.
1324 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
1325 just call pid forms with inferior_pid so that there's only once
1326 place to hack PC's and such.
1327 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
1328 * remote-wiggler.c: New file. Support for BDM interface from
1330 * serial.c: Enhance serial logging capability. Add hex and octal
1331 output modes (set remotelogbase {hex|octal|ascii}. Also log
1332 breaks, timeouts, errors, and eofs.
1333 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
1334 function so that we can log breaks. Don't export serial_logfile
1336 * top.c (execute_command): Don't test for serial_logfp here.
1337 Just call serial_log_comand, and let serial.c sort it out.
1338 * valops.c (value_of_variable): Don't attempt to establish frames
1339 for static and global variables. This makes things work a bit
1340 better if the stack or frame pointer is trashed.
1341 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
1342 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
1343 misaligned stacks during function calls.
1345 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
1347 * terminal.h: Don't use #elif.
1349 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1351 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
1354 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
1355 check number of args against bounds of array to avoid
1358 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
1359 a TYPE_CODE_TYPEDEF.
1361 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
1363 * remote-mips.c: Provide support for DDBVR4300 target board.
1364 (ddb_open, ddb_ops): Added.
1365 (mips_monitor_type): MON_DDB Added.
1366 (mips_enter_debug, mips_exit_debug, mips_initialize,
1367 mips_fetch_registers, common_breakpoint, mips_load,
1368 _initialize_remote_mips): Updated.
1370 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1372 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1373 * nlm/configure: Regenerate.
1375 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
1378 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
1380 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
1381 CY_AC_LOAD_TCLCONFIG.
1382 * configure: Rebuild.
1384 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
1386 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
1387 find_pc_partial_function.
1389 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1391 * configure: Regenerate again.
1393 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
1395 * configure.in: work around host_alias configure bug.
1396 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
1397 and second by AC_CANONICAL_SYSTEM). The second clobbers the
1398 previous setting. Circumventing by moving the second check
1399 to before the first.
1400 * configure: regenerated
1403 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1405 * config/d10v/d10v.mt: New file.
1406 * config/d10v/tm-d10v.h: New file.
1407 * configure.in: New target D10V.
1408 * d10v-tdep.c: New file.
1411 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
1413 * rs6000-tdep.c: Fix typo in comment.
1414 * valops.c (call_function_by_hand): Set using_gcc to 2
1415 for code compiled without -g, per comment in code.
1416 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
1417 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
1418 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
1419 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
1420 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
1421 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1422 (STACK_ALIGN): Add comment, move to be with other associated
1423 macros, and document.
1424 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1425 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
1426 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1427 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
1428 handled by PUSH_ARGUMENTS.
1429 (PUSH_ARGUMENTS): Enclose args in ()'s.
1431 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1433 * infrun.c (wait_for_inferior): Try to reenable shared library
1434 breakpoints even if auto_solib_load is not set.
1436 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
1438 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1439 gracefully degrade to using command line interface if none is
1442 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
1444 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
1445 PRINTF_HAS_LONG_LONG.
1446 * expprint.c (dump_expression): Ditto.
1447 * configure.in: Fix check for long long support in compiler to
1448 use a function body, not a nested function.
1449 * configure: Rebuild with autoconf.
1451 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
1453 * aclocal.m4: Include ../bfd/aclocal.m4.
1454 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
1455 BFD_NEED_DECLARATION on malloc, realloc, and free.
1456 * acconfig.h: Add NEED_DECLARATION_MALLOC,
1457 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
1458 * configure, config.in: Rebuild.
1459 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
1460 rather than __STDC__. Only declare malloc, realloc, and free if
1461 NEED_DECLARATION_* is defined.
1463 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
1465 * solib.c (_initialize_solib): Add missing '\' chars at ends of
1466 strings that continue on next line.
1467 (enable_break): Replace "return 0" with setting success to zero
1468 and letting normal return handle the return.
1470 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
1472 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
1473 are properly aligned.
1475 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
1477 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
1478 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
1479 to function, declare function correctly.
1481 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
1483 * symtab.h: changed namespace to _namespace for compiling under
1486 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
1488 * mpw-make.sed: Update for various recent changes, add some
1491 * mpw-config.in: Fix name of Magic Cap-specific file.
1494 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1496 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
1497 integer for type correctness.
1499 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
1501 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
1502 simulator is included.
1504 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
1506 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
1508 (read_register_pid): Only needed when TARGET_READ_PC is not
1510 * hppa-tdep.c (frame_saved_pc): Remove prototype.
1511 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
1513 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
1515 * xcoffsolib.c (command.h): Include for needed prototypes.
1517 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
1519 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
1522 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
1524 From Blair MacIntyre <bm@cs.columbia.edu>:
1525 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
1526 than SYMBOL_TYPE on msymbols.
1527 * somsolib.c (som_solib_create_inferior_hook): Ditto.
1529 * Makefile.in (init.c): Generate with prototypes.
1531 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
1532 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
1533 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
1534 (pc_load_segment_name): Ditto.
1536 (extract_return_value): Ditto.
1537 (is_magic_function_pointer): Ditto.
1538 (push_dummy_frame): Ditto.
1539 (fix_call_dummy): Ditto.
1540 (push_arguments): Ditto.
1541 (skip_trampoline_code): Ditto.
1542 (aix_process_linenos): Ditto.
1544 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
1545 * config/m68k/tm-es1800.h: Ditto.
1546 * config/m68k/tm-vx68.h: Ditto.
1547 * config/m68k/tm-sun3.h: Ditto.
1548 * config/m68k/tm-m68kv4.h: Ditto.
1550 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
1552 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
1553 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
1554 * remote-mips.c (mips_read_processor_type): Remove prototype.
1555 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
1556 * irix5-nat.c (fetch_core_registers): Add prototype.
1558 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
1560 * remote-pa.c (boot_board): Add dummy params to make type compatible
1561 for passing to add_com.
1562 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
1563 * buildsym.c (compare_line_numbers): Change function to match
1564 prototype and also what qsort expects.
1566 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
1568 * remote.c: Make remote_write_size public.
1569 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
1570 to prevent packet errors with some versions of CMON.
1572 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
1574 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
1575 C, else it's `const'.
1576 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
1577 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
1579 * configure configure.in defs.h: Use AC_C_CONST to figure out if
1580 the compiler supports const. Gets rid of some cruft in defs.h.
1581 * dwarf2read.c: <string.h> -> "gdb_string.h"
1582 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
1583 * sparcl-tdep.c (download): Add prototypes to write_routine and
1586 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
1587 rid of varargs.h Include string.h.
1588 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
1589 update): Fix prototypes, fix calls.
1590 * (update): Return value for catch_errors.
1591 * (run_execute_command togdb_command_from_tty togdb_command):
1592 Cleanup catching of errors from calls to execute_command. Also,
1593 dup command string to avoid modifying const strings.
1594 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
1595 of NULL when see if b->address isn't set.
1596 * (bi_disable_bpt bi_enable_bpt bi_delete_all
1597 bi_delete_breakpoint): Add arg to calls to update.
1598 * (gui_command): Add prototype.
1599 * (mswin_query): Fix prototype.
1600 * (_initialize_gdbwin): Dup string to avoid modifying const.
1601 * (info_path togdb_get_info_path): Remove const from decls cuz
1602 this can't be const (it points at malloc'ed memory).
1603 * (togdb_searchpath): Remove const from path. Dup string to
1604 avoid modifying const strings.
1605 * rindex -> strrchr.
1606 * (gdbwin_list_symbols): Regexp param is const.
1607 * Fix lots of refs to psymtabs to deref correct pointers.
1608 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
1610 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
1611 toget_set_info_path): Fix prototypes to match reality.
1612 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
1613 with proper prototypes.
1614 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
1615 * mswin/ser-win32s.c: Fix defs of min and max.
1616 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
1618 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
1619 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1621 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1623 * main.c (main): Make sure command loop is used with cygwin32.
1624 * terminal.h: Allow cygwin32 to use termios.h.
1626 start-sanitize-gdbtk
1627 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1629 * Makefile.in (LIB_INSTALL_DIR): New macro.
1630 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1633 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
1635 * somread.c (som_symtab_read): Handle secondary definition
1636 symbols (aka weak symbols).
1638 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
1641 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1643 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
1646 * somread.c: Rearrange order of includes to fix warnings under
1647 hpux-10.10. Also don't include sys/file.h.
1649 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1651 * dbxread.c: Don't include param.h or sys/file.h.
1652 * (dbx_symfile_read): Determine symfile_relocatable from bfd
1653 flags instead of file extension. Also clean up a little bit.
1655 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
1657 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
1658 mdebugread.c os9kread.c source.c top.c utils.c: Don't
1659 include param.h or sys/file.h (or unistd.h in some cases).
1660 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
1661 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
1662 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
1663 * main.c: Remove #ifndef WINGDB around option processing. Fix
1664 bug with passing argc==0 and argv==NULL to getopt.
1665 * (main) Remove calls to access() before source_command. Let
1666 soure_command handle access errors.
1667 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
1668 * symtab.c (operator_chars): Make this global for wingdb.
1669 * top.c (disconnect): #ifdef out for _WIN32.
1670 * (source_command): If got an error and from_tty, then call print
1671 error, else just return quietly.
1672 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
1674 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
1677 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
1679 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
1680 structures > 4 bytes in size.
1682 * valops.c (call_function_by_hand): Handle aligning stacks that
1684 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
1685 (STACK_ALIGN): Define.
1686 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
1687 alignment on structs/unions.
1689 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
1691 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
1692 which is the documented type under at least AIX 3 and AIX 4.
1694 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
1696 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
1698 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
1701 start-sanitize-gdbtk
1702 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
1704 * gdbtk.c (mainWindow): Deleted.
1705 (cleanup_init): Don't destroy main window.
1706 (gdbtk_init): Main window now created by Tk_Init.
1708 * configure.in: Most X checks now handled automatically by Tk.
1709 Use new macros to find Tcl/Tk.
1710 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1711 * config.in, configure: Regenerated.
1713 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1714 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1717 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
1719 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
1720 this, define when contents are included.
1721 (mips_read_processor_type): Add prototype.
1722 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
1723 * mdebugread.c (ecoff_relocate_efi): Add prototype.
1724 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1726 start-sanitize-gdbtk
1727 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1729 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1732 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
1734 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
1735 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
1736 (fetch_core_registers): Add prototype.
1737 (vmap_symtab): Ditto.
1738 (objfile_symbol_add): Ditto.
1740 (vmap_ldinfo): Ditto.
1743 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
1745 * stabsread.c (get_substring): Declare second arg as int.
1747 * remote-es.c: Include gdb_string.h after defs.h.
1749 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
1751 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
1752 (branch_dest): Remove unused variable "offset".
1753 (pop_dummy_frame): Add prototype and make static.
1754 (push_arguments): Guard against using len uninitialized.
1755 (push_arguments): Guard against using arg uninitialized.
1756 (frame_saved_pc): Remove unused variable "frameless".
1757 (free_loadinfo): Ifdef out unused function.
1759 * xcoffread.c (compare_lte): Change prototype and function to
1760 be correct type for passing to qsort.
1761 (add_stab_to_list): Ifdef out unused function and prototype.
1762 (compare_lte): Add prototype
1763 (arrange_linetable): Ditto.
1764 (record_include_begin): Ditto.
1765 (record_include_end): Ditto.
1766 (process_linenos): Ditto.
1767 (xcoff_next_symbol_text): Ditto.
1768 (scan_xcoff_symtab): Ditto.
1769 (xcoff_initial_scan): Ditto.
1771 * mips-tdep.c (mips_read_processor_type): Add parens around
1772 bitwise-and operands in comparison; previous expression always
1773 evaluated to 0 because of equality comparison of two constants.
1775 * rs6000-tdep.c (skip_prologue): Add missing parens around
1776 operands of logical-or so that first operand does not bind
1777 to previous logical-and.
1779 * configure.in: Expand "long long" test to include code that triggers
1780 known problem on HPUX with native compiler.
1781 (configure): Regenerated.
1783 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
1785 * somsolib.c (som_solib_create_inferior_hook): Don't
1786 warn if __d_pid can't be found.
1788 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
1790 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1791 (struct type): Ditto.
1792 (struct value): Ditto.
1794 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1795 from mips-tdep.c to here.
1796 (sigtramp_end): Ditto.
1797 (fixup_sigtramp): Ditto.
1799 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1800 (mips_frame_chain): Ditto.
1801 (mips_step_skips_delay): Ditto.
1802 (mips_frame_saved_pc): Ditto.
1803 (mips_find_saved_regs): Ditto.
1804 (mips_frame_num_args): Ditto.
1805 (mips_pop_frame): Ditto.
1806 (mips_extract_return_value): Ditto.
1807 (mips_store_return_value): Ditto.
1808 (mips_push_dummy_frame): Ditto.
1809 (mips_push_arguments): Ditto.
1810 (mips_do_registers_info): Ditto.
1811 (ecoff_relocate_efi): Ditto.
1812 (ecoff_relocate_efi): Ditto.
1813 * irix4-nat.c (fetch_core_registers): Add prototype.
1814 * mips-tdep.c (read_next_frame_reg): Add prototype
1815 (heuristic_proc_start): Ditto.
1816 (heuristic_proc_desc): Ditto.
1817 (mips_print_register): Ditto.
1818 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1819 (procfs_stopped_by_watchpoint): Ditto.
1820 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1821 (procfs_stopped_by_watchpoint): Ditto.
1822 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1823 (struct symbol): Add forward decl for prototype.
1825 * breakpoint.c (internal_breakpoint_number): Only needed if
1826 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1828 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1830 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
1832 * configure.in: Add test for "long long" support.
1833 * configure: Regenerate with autoconf.
1834 * acconfig.h: Add CC_HAS_LONG_LONG
1835 * config.in: Regenerate with autoheader.
1836 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1837 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1838 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1839 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1840 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1841 (PRINTF_HAS_LONG_LONG): Remove.
1842 (FORCE_LONG_LONG): Remove.
1843 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1844 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1845 (PRINTF_HAS_LONG_LONG): Remove.
1846 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1847 (PRINTF_HAS_LONG_LONG): Remove.
1848 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1849 subtraction inside shift. Put parens around subtraction
1850 in operand of bitwise and.
1851 (struct frame_info): Forward declare
1852 if __STDC__ defined.
1853 (frame_saved_regs): Ditto.
1854 (struct value): Ditto.
1855 (struct type): Ditto.
1856 (struct inferior_status): Ditto.
1857 (init_extra_frame_info): Add prototype.
1858 (skip_prologue): Ditto.
1859 (frameless_function_invocation): Ditto.
1860 (frame_chain): Ditto.
1861 (frame_chain_valid): Ditto.
1862 (saved_pc_after_call): Ditto.
1863 (hppa_fix_call_dummy): Ditto.
1864 (hppa_push_arguments): Ditto.
1865 (pa_do_registers_info): Ditto.
1866 (in_solib_call_trampoline): Ditto.
1867 (in_solib_return_trampoline): Ditto.
1868 (push_dummy_frame): Ditto.
1869 * convex-tdep.c (decout): Use print_longest rather than
1871 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1873 (INT_MIN): Fix so it works correctly when assigned to a long long.
1874 * valprint.c (longest_to_int): Rewrite to remove dependence
1875 on INT_MIN and INT_MAX.
1876 (print_longest): Rewrite the code that falls back to synthesized
1877 hex output when LONGEST value is not representable as in a long and
1878 printf doesn't support printing long longs.
1879 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1880 chill_print_type_scalar to LONGEST.
1881 chill_print_type_scalar): Make static and add prototype.
1882 * hppa-tdep.c (get_field): Ifdef out unused function.
1885 (extract_5_store): Ditto.
1886 (extract_11): Ditto.
1887 (extract_12): Ditto.
1888 (deposit_17): Ditto.
1889 (extract_14): Convert to static and add prototype.
1890 (deposit_14): Ditto.
1891 (extract_21): Ditto.
1892 (deposit_21): Ditto.
1893 (extract_17): Ditto.
1894 (extract_5r_store): Ditto.
1895 (extract_5R_store): Ditto.
1896 (extract_5_load): Ditto.
1897 (find_proc_framesize): Ditto.
1898 (find_dummy_frame_regs): Ditto.
1899 (sign_extend): Ditto.
1900 (find_unwind_entry): Add prototype.
1901 (find_return_regnum): Ditto.
1902 (unwind_command): Ditto.
1903 (find_dummy_frame_regs): Add parens around subtraction in operand
1905 (skip_prologue): Add parens around operands of logical-and inside
1906 operand of logical-or.
1907 (sign_extend): Add parens around operands of subtraction inside
1909 (low_sign_extend): Ditto.
1910 * top.c (filename_completer): Convert old style decl of
1911 filename_completion_function into prototype.
1912 * f-lang.c (patch_common_entries): Ifdef out unused function.
1913 * stabsread.c (read_cfront_baseclasses): Remove unused local
1914 variable "msg_noterm".
1915 (resolve_cfront_continuation): Remove unused local variable "fip".
1916 (read_type): Remove unused variable xtypenums.
1917 (read_cfront_static_fields): Remove unused variable "i".
1918 (read_cfront_static_fields): Remove unused variable "nfields".
1919 (read_cfront_member_functions): Add missing comment terminator.
1920 (read_cfront_static_fields): Return 1 rather than random value.
1921 (read_cfront_baseclasses): Ditto.
1922 (read_cfront_baseclasses): Ditto.
1923 (read_cfront_baseclasses): Ditto.
1924 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1926 (som_solib_create_inferior_hook): Remove unused variable
1928 (language.h): Add for needed prototypes.
1929 (som_solib_sharedlibrary_command): Add prototype.
1930 * hpread.c: (hpread_read_array_type): Add prototype.
1931 * somread.c (hpread_build_pysmtabs): Add prototype.
1932 (hpread_symfile_finish): Ditto.
1933 (hpread_symfile_init): Ditto.
1934 * hppah-nat.c (fetch_register): Convert old style decl
1936 (gdbcore.h): Include for needed prototypes.
1937 (fetch_register): Remove unused variable "mess".
1938 * remote-pa.c (get_offsets): Ifdef out unused function.
1939 (remote_start_remote): Remove unused variable "timeout".
1940 (boot_board): Add prototype.
1941 (reaad_frame): Add prototype.
1942 (getpkt): Remove unused variable "bp".
1943 (remote_kill): Add prototype.
1944 (remote_mourn): Add prototype.
1945 (remote_insert_breakpoint): Add prototype.
1946 (remote_remove_breakpoint): Add prototype.
1947 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1948 * infcmd.c (do_registers_info): Only need prototype if
1949 DO_REGISTERS_INFO is not defined.
1950 (breakpoint_auto_delete_contents): Only need if
1951 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1953 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
1955 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1956 (END_PSYMTAB): Ditto.
1957 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1959 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
1961 * printcmd.c (_initialize_printcmd): Initialize
1962 tm_print_insn_info.flavour.
1963 start-sanitize-gdbtk
1964 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1967 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
1969 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1970 (arm-tdep.o): Ditto.
1972 (i386ly-tdep.o): Ditto.
1973 (i960-tdep.o): Ditto.
1974 (m68k-tdep.o): Ditto.
1975 (nindy-tdep.o): Ditto.
1976 (scm-lang.o): Ditto.
1977 (w65-tdep.o): Ditto.
1978 (z8k-tdep.o): Ditto.
1979 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1980 (m2-valprint.o): Depends upon m2-lang.h.
1981 (sparc-tdep.o): Depends upon gdb_string.h
1982 (valprint.o): Depends upon valprint.h
1984 * remote-e7000.c (notice_quit): Remove prototype.
1985 * top.c (initialize_targets): Remove prototype, now in target.h.
1986 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1987 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1988 * symfile.h (set_demangling_style): Remove prototype.
1989 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1990 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1992 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1994 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1995 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1996 * scm-lang.c (find_function_in_inferior): Remove prototype.
1997 (value_allocate_space_in_inferior): Ditto.
1998 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1999 * defs.h (strchr): Remove declarations, they are declared in
2005 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
2006 passed to f77_print_array_1.
2007 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
2008 * scm-exp.c (scm_istr2int): Remove unused variable "j".
2009 (scm_parse): Remove unused variable "str".
2010 * hp300ux-nat.c (store_inferior_register): Remove unused variable
2012 (store_inferior_registers): Remove unnecessary decl "registers".
2013 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
2014 * scm-lang.c (scm_get_field): Remove unused variable "val".
2015 (scm_lookup_name): Remove unused variable "symval".
2016 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
2017 * procfs.c (do_attach, do_detach): Remove unused variable "result".
2018 (last_resume_pid): Remove unused static variable.
2019 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
2021 * objfiles.c (map_to_address): Remove unused function.
2022 * f-valprint.c (print_max): Remove extraneous extern decl,
2024 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
2025 * ch-exp.c (write_lower_upper_value): Remove prototype for
2028 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
2029 * ch-exp.c (parse_mode_call): Ditto.
2030 * f-valprint.c (there_is_a_visible_common_named): Ditto.
2031 * f-lang.c (clear_function_list): Ditto.
2032 (get_bf_for_fcn): Ditto.
2033 (clear_bf_list): Ditto.
2034 (add_common_block): Ditto.
2035 (patch_all_commons_by_name): Ditto.
2036 (find_first_common_named): Ditto.
2037 (add_common_entry): Ditto.
2038 (allocate_saved_function_node): Ditto.
2039 (allocate_saved_bf_node): Ditto.
2040 (allocate_common_entry_node): Ditto.
2041 (allocate_saved_f77_common_node): Ditto.
2043 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
2044 * dcache.c (gdbcore.h): Ditto.
2045 * i386ly-tdep.c (gdbcore.h): Ditto.
2046 * i960-tdep.c (gdbcore.h): Ditto.
2047 * m2-valprint.c (m2-lang.h): Ditto.
2048 * m68k-tdep.c (gdbcore.h): Ditto.
2050 (gdb_string.h): Ditto.
2051 * nindy-tdep.c (gdbcore.h): Ditto.
2052 * scm-lang.c (gdbcore.h): Ditto.
2053 * scm-valprint.c (gdbcore.h): Ditto.
2054 * w65-tdep.c (gdbcore.h): Ditto.
2055 * z8k-tdep.c (gdbcore.h): Ditto.
2056 * sparc-tdep.c (gdb_string.h): Include.
2057 * valprint.c (valprint.h): Include.
2059 * config/xm-lynx.h: Remove part of comment about INT_MIN
2060 redefined warnings from defs.h, since INT_MIN define in
2061 defs.h is now protected by #ifndef INT_MIN.
2062 * config/i386/xm-i386bsd.h: Ditto.
2063 * config/m68k/xm-hp300bsd.h: Ditto.
2064 * config/m68k/xm-news.h: Ditto.
2066 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
2067 definition as 0x80000000. The macro in defs.h is better.
2068 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
2069 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
2070 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
2071 * config/pa/xm-hppab.h: Ditto.
2073 * core-aout.c (fetch_core_registers): Add prototype.
2074 * hp300ux-nat.c (fetch_inferior_register): Ditto.
2075 (store_inferior_register_1): Ditto.
2076 (store_inferior_register): Ditto.
2077 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
2078 *scm-valprint.c (c_val_print): Ditto.
2079 * procfs.c (add_fd): Ditto.
2082 (sigcodename): Ditto.
2083 (sigcodedesc): Ditto.
2084 (procfs_kill_inferior): Ditto.
2085 (procfs_xfer_memory): Ditto.
2086 (procfs_store_registers): Ditto.
2087 (create_procinfo): Ditto.
2088 (procfs_init_inferior): Ditto.
2089 (proc_set_exec_trap): Ditto.
2090 (procfs_attach): Ditto.
2091 (procfs_detach): Ditto.
2092 (procfs_prepare_to_store): Ditto.
2093 (procfs_files_info): Ditto.
2094 (procfs_open): Ditto.
2095 (procfs_wait): Ditto.
2096 (procfs_fetch_registers): Ditto.
2097 (procfs_mourn_inferior): Ditto.
2098 (procfs_can_run): Ditto.
2099 (procfs_thread_alive): Ditto.
2100 (procfs_stop): Ditto.
2101 * alpha-nat.c (fetch_core_registers): Ditto.
2102 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
2103 * objfiles.c (ecoff_relocate_efi): Ditto.
2104 * inflow.c (pass_signal): Ditto.
2105 (handle_sigio): Ditto.
2106 * annotate.c (breakpoint_changed): Ditto.
2107 * callback.c (wrap): Ditto.
2110 * utils.c (malloc_botch): Ditto.
2111 (fputs_maybe_filtered): Ditto.
2112 (vfprintf_maybe_filtered): Ditto.
2113 * defs.h (notice_quit): Ditto.
2114 * defs.h (xmalloc, xrealloc): Ditto.
2115 * top.c (stop_sig): Ditto.
2116 (init_signals): Ditto.
2117 (user_defined_command): Ditto.
2118 (source_cleanup_lines): Ditto.
2119 (dont_repeat_command): Ditto.
2120 (serial_log_command): Ditto.
2121 (disconnect): Ditto.
2122 * target.h (initialize_targets): Ditto.
2123 * os9kread.c (read_minimal_symbols): Ditto.
2124 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
2126 (push_parse_stack): Ditto.
2127 (pop_parse_stack): Ditto.
2128 (is_pending_symbol): Ditto.
2129 (add_pending): Ditto.
2130 * serial.c (serial_logchar): Ditto.
2131 (serial_interface_lookup): Ditto.
2132 * serial.h (serial_log_command): Ditto.
2133 * f-valprint.c (info_common_command): Ditto.
2134 * gdbtypes.h (print_type_scalar): Ditto.
2135 * scm-valprint.c (scm_scmlist_print): Ditto.
2137 * scm-lang.c (scm_printstr): Ditto.
2139 (evaluate_subexp_scm): Ditto.
2140 * scm-exp.c (scm_read_token): Ditto.
2141 (scm_skip_ws): Ditto.
2142 (scm_lreadparen): Ditto.
2143 * m2-lang.c (emit_char): Ditto.
2144 (m2_printchar): Ditto.
2145 (m2_printstr): Ditto.
2146 (m2_create_fundamental_type): Ditto.
2147 * f-lang.c (emit_char): Ditto.
2148 (f_printchar): Ditto.
2149 (f_printstr): Ditto.
2150 (f_create_fundamental_type): Ditto.
2151 * ch-lang.c (chill_printchar): Ditto.
2152 (chill_printstr): Ditto.
2153 (chill_create_fundamental_type): Ditto.
2154 (value_chill_length): Ditto.
2155 (value_chill_card): Ditto.
2156 (value_chill_max_min): Ditto.
2157 (evaluate_subexp_chill): Ditto.
2158 * ch-exp.c (PEEK_TOKEN): Ditto.
2159 (peek_token_): Ditto.
2160 (forward_token_): Ditto.
2161 (parse_case_label): Ditto.
2162 (parse_opt_untyped_expr): Ditto.
2163 (parse_unary_call): Ditto.
2164 (parse_call): Ditto.
2165 (parse_named_record_element): Ditto.
2166 (parse_tuple_element): Ditto.
2167 (parse_opt_element_list): Ditto.
2168 (parse_tuple): Ditto.
2169 (parse_primval): Ditto.
2170 (parse_operand6): Ditto.
2171 (parse_operand5): Ditto.
2172 (parse_operand4): Ditto.
2173 (parse_operand3): Ditto.
2174 (parse_operand2): Ditto.
2175 (parse_operand1): Ditto.
2176 (parse_operand0): Ditto.
2177 (parse_expr): Ditto.
2178 (parse_then_alternative): Ditto.
2179 (parse_else_alternative): Ditto.
2180 (parse_if_expression): Ditto.
2181 (parse_untyped_expr): Ditto.
2182 (growbuf_by_size): Ditto.
2183 (match_simple_name_string): Ditto.
2184 (decode_integer_value): Ditto.
2185 (decode_integer_literal): Ditto.
2186 (match_float_literal): Ditto.
2187 (match_float_literal): Ditto.
2188 (match_string_literal): Ditto.
2189 (match_character_literal): Ditto.
2190 (match_integer_literal): Ditto.
2191 (match_bitstring_literal): Ditto.
2192 (write_lower_upper_value): Ditto.
2193 * ch-lang.h (type_lower_upper): Ditto.
2194 * c-lang.c (emit_char): Ditto.
2195 * dwarfread.c (free_utypes): Ditto.
2196 * stabsread.h (resolve_cfront_continuation): Ditto.
2197 * stabsread.c (get_substring): Ditto.
2198 (read_one_struct_field): Ditto.
2199 * stabsread.h (process_later): Ditto.
2200 * demangle.c (set_demangling_command): Ditto.
2201 * defs.h (set_demangling_style): Ditto.
2202 * maint.c (maintenance_info_command): Ditto.
2203 (print_section_table): Ditto.
2204 (maintenance_info_sections): Ditto.
2205 (maintenance_print_command): Ditto.
2206 * symtab.h (maintenance_print_statistics): Ditto.
2207 * objfiles.h (in_plt_section): Ditto.
2208 * objfiles.c (add_to_objfile_sections): Ditto.
2209 * bcache.c (hash): Ditto.
2210 (lookup_cache): Ditto.
2211 * exec.c (bfdsec_to_vmap): Ditto.
2213 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
2214 * language.c (unk_lang_printchar): Ditto.
2215 (unk_lang_printstr): Ditto.
2216 (unk_lang_create_fundamental_type): Ditto.
2217 (unk_lang_print_type): Ditto.
2218 (unk_lang_val_print): Ditto.
2219 (unk_lang_value_print): Ditto.
2220 * target.c (update_current_target): Ditto.
2221 (debug_to_open): Ditto.
2222 (debug_to_close): Ditto.
2223 (debug_to_attach): Ditto.
2224 (debug_to_detach): Ditto.
2225 (debug_to_resume): Ditto.
2226 (debug_to_wait): Ditto.
2227 (debug_to_fetch_registers): Ditto.
2228 (debug_to_store_registers): Ditto.
2229 (debug_to_prepare_to_store): Ditto.
2230 (debug_to_xfer_memory): Ditto.
2231 (debug_to_files_info): Ditto.
2232 (debug_to_insert_breakpoint): Ditto.
2233 (debug_to_remove_breakpoint): Ditto.
2234 (debug_to_terminal_init): Ditto.
2235 (debug_to_terminal_inferior): Ditto.
2236 (debug_to_terminal_ours_for_output): Ditto.
2237 (debug_to_terminal_ours): Ditto.
2238 (debug_to_terminal_info): Ditto.
2239 (debug_to_kill): Ditto.
2240 (debug_to_load): Ditto.
2241 (debug_to_lookup_symbol): Ditto.
2242 (debug_to_create_inferior): Ditto.
2243 (debug_to_mourn_inferior): Ditto.
2244 (debug_to_can_run): Ditto.
2245 (debug_to_notice_signals): Ditto.
2246 (debug_to_thread_alive): Ditto.
2247 (debug_to_stop): Ditto.
2248 start-sanitize-gdbtk
2249 * gdbtk.c (null_routine): Ditto.
2250 (gdbtk_flush): Ditto.
2251 (gdbtk_fputs): Ditto.
2252 (gdbtk_query): Ditto.
2253 (gdbtk_readline): Ditto.
2254 (gdbtk_readline_end): Ditto.
2255 (gdb_get_breakpoint_list): Ditto.
2256 (gdb_get_breakpoint_info): Ditto.
2257 (breakpoint_notify): Ditto.
2258 (gdbtk_create_breakpoint): Ditto.
2259 (gdbtk_delete_breakpoint): Ditto.
2260 (gdbtk_modify_breakpoint): Ditto.
2263 (gdb_sourcelines): Ditto.
2264 (map_arg_registers): Ditto.
2265 (get_register_name): Ditto.
2266 (gdb_regnames): Ditto.
2267 (get_register): Ditto.
2268 (gdb_fetch_registers): Ditto.
2269 (register_changed_p): Ditto.
2270 (gdb_changed_register_list): Ditto.
2272 (call_wrapper): Ditto.
2273 (gdb_listfiles): Ditto.
2275 (gdbtk_dis_asm_read_memory): Ditto.
2276 (compare_lines): Ditto.
2277 (gdb_disassemble): Ditto.
2278 (tk_command): Ditto.
2279 (cleanup_init): Ditto.
2280 (gdbtk_interactive): Ditto.
2282 (gdbtk_wait): Ditto.
2283 (gdbtk_call_command): Ditto.
2284 (tk_command_loop): Ditto.
2285 (gdbtk_init): Ditto.
2287 * breakpoint.h (set_breakpoint_sal): Ditto.
2288 * remote-utils.c (usage): Ditto.
2289 * remote.c (set_thread): Ditto.
2290 (remote_thread_alive): Ditto.
2291 (get_offsets): Ditto.
2292 (read_frame): Ditto.
2293 (remote_insert_breakpoint): Ditto.
2294 (remote_remove_breakpoint): Ditto.
2295 * sparc-nat.c (fetch_core_registers): Ditto.
2296 * corelow.c (add_to_thread_list): Ditto.
2298 * inftarg.c (proc_wait): Ditto.
2299 * infptrace.c (udot_info): Ditto.
2300 (fetch_register): Ditto.
2301 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
2302 (hardwire_print_tty_state): Ditto.
2303 (hardwire_flush_output): Ditto.
2304 (hardwire_flush_input): Ditto.
2305 (hardwire_send_break): Ditto.
2306 (hardwire_setstopbits): Ditto.
2307 * ser-tcp.c (tcp_return_0): Ditto.
2308 (tcp_noflush_set_tty_state): Ditto.
2309 (tcp_print_tty_state): Ditto.
2310 * solib.c (match_main): Ditto.
2311 * gdbtypes.c (print_bit_vector): Ditto.
2312 (print_arg_types): Ditto.
2313 (dump_fn_fieldlists): Ditto.
2314 (print_cplus_stuff): Ditto.
2315 * symfile.h (entry_point_address): Ditto.
2316 * symfile.c (decrement_reading_symtab): Ditto.
2317 * valops.c (value_arg_coerce): Ditto.
2318 * value.h (find_function_in_inferior): Ditto.
2319 (value_allocate_space_in_inferior): Ditto.
2320 * values.c (vb_match): Ditto.
2321 * thread.c (info_thread_command): Ditto.
2322 (restore_current_thread): Ditto.
2323 (thread_apply_all_command): Ditto.
2324 (thread_apply_command): Ditto.
2325 * inferior.h (write_pc_pid): Ditto.
2326 * infrun.c (delete_breakpoint_current_contents): Ditto.
2327 * breakpoint.c (print_it_normal): Ditto.
2328 (watchpoint_check): Ditto.
2329 (print_it_done): Ditto.
2330 (print_it_noop): Ditto.
2331 (maintenance_info_breakpoints): Ditto.
2332 (create_longjmp_breakpoint): Ditto.
2333 (hbreak_command): Ditto.
2334 (thbreak_command): Ditto.
2335 (watch_commnd_1): Ditto.
2336 (rwatch_command): Ditto.
2337 (awatch_command): Ditto.
2338 (do_enable_breakpoint): Ditto.
2339 * ch-valprint.c (chill_val_print_array_elements): Ditto.
2340 * eval.c (evaluate_subexp): Ditto.
2342 (evaluate_struct_tuple): Ditto.
2343 * eval.c (init_array_element): Ditto.
2345 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
2346 * breakpoint.c (hw_breakpoint_used_count): Ditto.
2347 (hw_watchpoint_used_count): Ditto.
2348 * findvar.c (write_register_gen): Ditto.
2349 (read_register_pid): Ditto.
2350 * symtab.c (cplusplus_hint): Ditto.
2351 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
2352 * ch-valprint.c (chill_print_type_scalar): Ditto.
2353 * gdbtypes.c (add_name): Ditto.
2354 (add_mangled_type): Ditto.
2355 (cfront_mangle_name): Ditto.
2356 * sparc-tdep.c (isbranch): Ditto.
2357 * inftarg.c (child_stop): Ditto.
2358 * win32-nat.c (child_stop): Ditto.
2359 * mac-nat.c (child_stop): Ditto.
2360 * remote-utils.c (sr_com): Ditto.
2361 * dbxread.c (process_now): Ditto.
2362 * ch-exp.c (require): Ditto.
2363 (check_token): Ditto.
2365 (parse_mode_call): Ditto.
2366 (parse_mode_or_normal_call): Ditto.
2367 * scm-lang.c (scm_lookup_name): Ditto
2368 * f-lang.c (allocate_saved_bf_node): Ditto.
2369 (allocate_saved_function_node): Ditto.
2370 (allocate_saved_f77_common_node): Ditto.
2371 (allocate_common_entry_node): Ditto.
2372 (add_common_block): Ditto.
2373 (add_common_entry): Ditto.
2374 (find_first_common_named): Ditto.
2375 (patch_common_entries): Ditto.
2376 (patch_all_commons_by_name): Ditto.
2377 (clear_bf_list): Ditto.
2378 (get_bf_for_fcn): Ditto.
2379 (clear_function_list): Ditto.
2380 * scm-exp.c (scm_istr2int): Ditto.
2381 (scm_istring2number): Ditto.
2382 * scm-valprint.c (scm_inferior_print): Ditto.
2383 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
2384 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
2385 (f77_create_arrayprint_offset_tbl): Ditto.
2386 (f77_print_array_1): Ditto.
2387 (f77_print_array): Ditto.
2388 (list_all_visible_commons): Ditto.
2389 (there_is_a_visible_common_named): Ditto.
2390 * mdebugread.c (ecoff_relocate_efi): Ditto.
2391 * callback.c (os_close): Ditto.
2392 (os_get_errno): Ditto.
2397 (os_read_stdin): Ditto.
2399 (os_write_stdout): Ditto.
2404 (os_shutdown): Ditto.
2406 (os_printf_filtered): Ditto.
2408 * scm-lang.h (scm_parse): Change old style decl to prototype.
2409 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
2410 * top.c (init_proc): Ditto.
2411 (query_hook): Ditto.
2412 (error_hook): Ditto.
2413 * f-lang.c (c_value_print): Ditto.
2414 * ch-exp.c (parse_expression): Ditto.
2415 (parse_primval): Ditto.
2416 (parse_untyped_expr): Ditto.
2417 (parse_opt_untyped_expr): Ditto.
2419 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
2420 (sparc_frame_saved_pc): Ditto.
2421 (sparc_push_dummy_frame): Ditto.
2422 (sparc_pop_frame): Ditto.
2423 * defs.h (fclose): Ditto.
2425 (error_hook): Ditto.
2427 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
2428 * rs6000-tdep.c (single_step): Ditto.
2429 * sparc-tdep.c (single_step): Ditto.
2431 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
2432 to PTR which is what make_cleanup expects.
2433 * utils.c (null_cleanup): Change arg type to PTR.
2434 * defs.h (null_cleanup): Change prototype to match actual function.
2435 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
2436 * ch-valprint.c (chill_val_print): Cast 2nd arg of
2437 chill_print_type_scalar to LONGEST.
2438 * infrun.c (wait_for_inferior): Have empty switch case for
2439 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
2440 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
2441 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
2443 * symfile.c (generic_load): Scan long int using a long int spec,
2445 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
2447 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
2449 * inflow.c (handle_sigio): Only need prototype when the actual
2450 function is compiled in.
2451 * valprint.c (longest_to_int): Expand error message to be
2452 separate messages for args larger than largest signed int
2453 and args smaller than smallest signed int.
2454 * valprint.c (print_longest): Fix problems with support for case
2455 where compiler supports type "long long" but the runtime doesn't
2456 support printing them with "%ll".
2457 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
2458 return types to void since we don't actually return anything
2459 meaningful and callees ignore the values anyway.
2460 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
2462 (modify_run_on_last_close_flag): Ditto.
2463 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
2465 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
2467 * infrun.c (wait_for_inferior): Ensure random_signal is not used
2469 * valops.c (call_function_by_hand): Ensure struct_addr is not used
2471 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
2473 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
2475 start-sanitize-gdbtk
2476 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
2477 to proper pointer type, from int.
2478 (gdbtk_query): Change first arg to "const char *" from "char *".
2480 * infptrace.c (udot_info): Add two dummy args so that the type is
2481 correct for passing to add_info.
2482 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
2484 (saved_bf_symnum): Ditto.
2485 (SAVED_FUNCTION): Ditto.
2486 (SAVED_FUNCTION_PTR): Ditto.
2488 (SAVED_BF_PTR): Ditto.
2489 * ch-exp.c (parse_named_record_element): Build error message in
2490 temporary buffer before passing it to expect, rather than passing
2491 wrong number of args to expect.
2492 * demangle.c (set_demangling_style): Call set_demangling_command with
2493 correct number of arguments.
2494 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
2495 int to match actual function.
2496 (os_isatty): Call fdmap with right number of arguments, was missing
2497 the host_callback* arg.
2498 * target.c (cleanup_target): Prototype all functions casts.
2499 * target.h (one_stepped, single_step): Declare here and convert
2500 single_step to prototype.
2501 * infrun.c (one_stepped, single_step): Don't declare externs
2502 here, they have moved to target.h.
2503 * eval.c (init_array_element): Declare previously undeclared
2504 last two args as LONGEST.
2505 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
2506 start-sanitize-gdbtk
2507 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
2510 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
2512 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
2514 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
2516 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
2517 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
2518 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
2519 text address. Use a seperate flag (textlow_not_set) instead.
2520 This makes stabs in ELF .o files work a lot better.
2521 * mdebugread.c xcoffread.c: Define textlow_not_set for
2523 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
2525 start-sanitize-gdbtk
2526 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
2528 * gdbtk.tcl (files_command): Reorder the binding tags for
2529 the listbox widget to avoid referencing the listbox after
2530 the containing widget has been destroyed by the action of
2534 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
2536 * dwarf2read.c (struct filenames): Change internal "struct file"
2537 to "struct fileinfo" to avoid conflict with "struct file" in
2538 <sys/file.h> on HPUX and Solaris.
2540 start-sanitize-gdbtk
2541 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
2543 * gdbtk.tcl (delete_expr): Unset corresponding element of
2544 expr_update_list when destroying an expression.
2545 (create_expr_window): Initialize expr_num, delete_expr_num,
2546 and expr_update_list here when each new expression window
2547 is created, rather than once at startup.
2550 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2552 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
2553 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
2554 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
2555 (SFILES): Add dwarf2read.c.
2556 (dwarf2read.o): Add build rule.
2557 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
2559 * elfread.c (elf_symfile_read): Call them.
2560 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
2562 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
2564 * symfile.c (symfile_bfd_open):
2565 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
2566 free the user from having to type the .exe extension.
2568 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
2570 * mon960-rom.c: Shorten the mon960_inits string to a single
2571 carriage return; this prevents a hang on connecting immediately
2572 after powerup, when MON960 is attempting autobaud detection.
2574 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
2576 * a29k-tdep.c (get_saved_register): Allow PC to be modified
2577 when innermost frame is selected, but not in outer frames.
2579 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2581 * command.c (do_setshow_command): Don't segfault when showing
2582 var_string and var_string_noescape vars that are NULL.
2584 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
2586 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
2587 cygwin32_conv_to_posix_path.
2588 (child_create_inferior): unix_path_to_dos_path renamed to
2589 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
2591 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
2593 * defs.h printcmd.c: Create global disassemble_info structure
2595 start-sanitize-gdbtk
2596 * gdbtk.c (gdb_disassemble): Setup di.mach from
2597 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
2599 * i386-tdep.c (set_assembly_language_command): set
2600 tm_print_insn_info.mach to the appropriate value for 386 or 8086
2602 * printcmd.c (print_insn): Move init of disassembler_info to
2603 _initialize_printcmd. Set endian for disassembler here.
2604 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
2605 select sparc/sparclite.
2606 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
2607 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
2608 bfd_mach_sparc/bfd_mach_sparc_sparclite.
2610 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
2612 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
2613 than xmalloc/xrealloc.
2615 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
2617 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
2618 a NULL pointer, not a -1.
2620 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
2622 * i386-tdep.c (set_assembly_language_command): New routine to
2623 select between i386 and i8086 instruction sets for disassembly.
2624 New command `set assembly-language {i386 i8086}'.
2626 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
2628 * monitor.c (monitor_write_memory, monitor_read_memory_single):
2629 Disable use of "long long" memory read/write commands; can't
2630 use them because we hold the values to read/write in an int
2631 variable, and because strtoul fails on values that exceed the
2632 size of a long. This fixes breakpoint problems on MON960.
2634 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
2636 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
2637 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
2639 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
2641 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
2642 and MMALLOC_CHECK macros, and add comment indicating how host dependent
2643 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
2644 to use it but to not do heap corruption checking.
2645 * gdbserver/Makefile.in: Ditto.
2646 * utils.c (init_malloc): Replace warning() use with direct call of
2647 fprintf_unfiltered, since current_target has not yet been set and thus
2648 we cannot use warning(). If we try to use mmcheck and it fails,
2649 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
2650 defined. Other small mmalloc related cleanups.
2651 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
2652 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
2654 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2655 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2656 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2657 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2658 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
2659 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2660 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2661 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2662 Remove obsolete defines.
2664 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
2665 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
2666 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
2667 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
2668 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
2669 * config/powerpc/aix.mh (MMALLOC_DISABLE):
2670 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
2671 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
2672 * config/mips/decstation.mh (MMALLOC_DISABLE):
2673 * config/m88k/cxux.mh (MMALLOC_DISABLE):
2674 * config/i386/i386mk.mh (MMALLOC_DISABLE):
2675 * config/i386/i386m3.mh (MMALLOC_DISABLE):
2676 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
2677 Use MMALLOC_CFLAGS instead.
2679 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
2681 * h8300-tdep.c: Remove some outdated comments.
2682 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
2683 Handle stm.l insns for the H8/S.
2684 (examine_prologue): Likewise.
2686 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
2688 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
2690 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
2692 * mon960-rom.c (mon960_open): Add floating point detection to
2693 prevent hang on non-FPU processors (PR 9775).
2694 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
2695 setting breakpoints and improve loading speed.
2697 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
2699 * coffread.c (record_minimal_symbol): Don't presave name string
2700 on symbol_obstack before passing to prim_record_minimal_symbol.
2701 It now handles saving the string itself.
2702 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2703 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
2704 * os9kread.c (record_minimal_symbol): Ditto.
2705 * solib.c (solib_add_common_symbols): Ditto.
2707 * coffread.c (coff_symtab_read): Don't presave name string on
2708 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
2709 It now handles saving the string itself.
2710 * dbxread.c (record_minimal_symbol): Ditto.
2711 * elfread.c (record_minimal_symbol_and_info): Ditto.
2713 * dstread.c (record_minimal_symbol): Remove static function that just
2714 called prim_record_minimal_symbol with the same args (after change to
2715 prim_record_minimal_symbol to do it's own name string saves).
2716 * nlmread.c (record_minimal_symbol): Ditto.
2717 * somread.c (record_minimal_symbol): Ditto.
2719 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
2720 (hpread_read_function_type): Ditto.
2721 (hpread_process_one_debug_symbol): Ditto.
2722 * mdebugread.c (parse_symbol): Ditto.
2723 (new_symbol): Ditto.
2724 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
2726 * coffread.c (process_coff_symbol): Use obsavestring to save
2727 SYMBOL_NAME, rather than obstack_copy0.
2728 * dstread.c (create_new_symbol): Ditto
2729 * symfile.c (obconcat): Ditto.
2730 * stabsread.c (patch_block_stabs): Ditto.
2731 * xcoffread.c (SYMNAME_ALLOC): Ditto.
2733 * symfile.c (obsavestring): Update comments
2734 * solib.c (solib_add_common_symbols): Remove local var origname.
2736 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2738 * configure: Re-build with autoconf-2.10.
2740 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
2741 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
2742 TM_PRINT_INSN, which comes from the tm file.
2744 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
2746 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
2747 os9kread.c: Replace identical sym_offsets functions with
2748 default_symfile_offsets.
2749 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
2750 macro to allocate section_offsets.
2751 * symfile.c (default_symfile_offsets): New function.
2752 * symfile.h: Declare default_symfile_offsets.
2753 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
2754 simplify allocation of section_offsets.
2756 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2758 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2759 * configure configure.in: Only make sol-thread.o for native.
2760 Also, switch to dlopened libthread_db.so.1.
2761 * sol-thread.c: Switch to using dlopen to get the thread_db
2764 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2766 * configure, configure.in: Change test for libthread_db to only
2767 work for configs where build/host/target are the same.
2769 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2771 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2774 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2776 * configure: Regenerate.
2778 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
2780 From Raymond Jou <rjou@mexican.cygnus.com>:
2781 * mpw-make.sed: Add lines to whack out autoconf hook
2784 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
2786 * remote-e7000.c (e7000_stop): New function.
2788 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
2790 * configure, configure.in: Add target sparclet.
2791 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2792 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2793 command to start process running on target is different from one
2794 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2795 have a "0x" prefix).
2796 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2797 registers array. This is to allow NULLs to be place holders in
2798 the tm-*.h file so that only minor changes are needed when a new
2799 processor is introduced (eg, one without floating point).
2800 * sparc-tdep.c: Conditionally remove dependancies on floating
2802 * sparclet-rom.c, config/sparc/sparclet.mt,
2803 config/sparc/tm-sparclet.h: New files for target sparclet.
2804 * symfile.c (load_command): Add option for 2nd parameter; a load
2805 offset added to the vma of each section.
2807 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
2809 * main.c (main): Add option "l" for setting remote_timeout.
2811 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
2813 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2814 "remote_timeout" for setting remote_timeout. Add set option
2815 "use_hard_breakpoints" for setting hardware .vs. memory
2818 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
2820 * remote-e7000.c (e7000_parse_device): New function.
2821 Add option "tcp_remote" to target command if using
2822 tcp to connect to a remote host which is then connected
2823 via serial port to the e7000 (for exampole, a port master).
2824 (e7000_open): Change to call e7000_parse_device.
2826 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
2828 * monitor.c (monitor_debug): Fix remotedebug buffering.
2830 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
2832 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2833 (NATDEPFILES): Add a space.
2835 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2837 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2838 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2840 * ch-exp.c (calculate_array_length): Function removed.
2842 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2844 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2845 (e7000_xfer_inferior_memory): Call it.
2847 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2849 * gdb/gdbserver/Makefile.in (docdir): Removed.
2851 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2853 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2854 Use autoconf set values.
2856 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2857 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2858 includedir): Use autoconf set values.
2860 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2861 * nlm/configure: Rebuilt.
2862 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2864 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
2866 * stabsread.c (read_cfront_member_functions): add type
2868 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
2870 * win32-nat.c: #include <unistd.h>.
2871 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2872 (child_create_inferior): Convert only env var PATH to win32 style.
2873 (set_pathstyle_dos): Delete.
2874 (_initialize_inftarg): Delete dos-path-style command.
2876 start-sanitize-gdbtk
2877 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
2879 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2880 Add global declarations for various reg_format_* variables.
2881 * gdbtk.tcl (populate_register_window): Make initial window one
2882 line taller to account for new column header line.
2884 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
2886 * gdbtk.c (get_register): Support for printing raw formats.
2887 * gdbtk.tcl: Add hint for using debug_interface.
2888 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2889 Enclose arg in braces for consistency.
2890 (create_registers_window, populate_reg_window, update_registers):
2891 Major rewrite to support displaying multiple formats in the register
2893 (init_reg_info): New function.
2894 (recompute_reg_display_list): Reset reg_display_list, start
2895 register display lines at line 2.
2898 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
2900 * configure.in: Revise sol-thread.o test.
2901 * configure: Regenerated.
2903 * source.c (find_source_lines): Reassign size to result of read.
2905 start-sanitize-gdbtk
2906 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
2908 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2909 avoid backing up over prompt. At every input, make sure insert
2910 point is at least after command start, handle control-u to delete
2912 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2913 control-u to delete current input line.
2915 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
2917 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2918 * configure: regenerated with autoconf 2.8
2921 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2923 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2924 (h8300_command): Likewise.
2925 (set_machine): Likewise.
2926 (set_machine_hook): Likewise.
2927 (_initialize_h8300m): Likewise.
2929 * config/h8300/tm-h8300.h (h8300smode): Declare.
2931 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2933 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2934 of shl_load calls for hpux10.
2936 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
2938 * config.in: Regenerated.
2939 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2941 * configure: Regenerated.
2942 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2943 avoid name clashes with SunOS headers.
2945 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
2947 From Michael Snyder <Michael_Snyder@next.com>:
2948 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2949 exception if one or more objfile has no symbols, such as when
2950 a dynamic library has been stripped.
2952 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2954 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2955 * configure configure.in: Only make sol-thread.o for native.
2956 Also, switch to dlopened libthread_db.so.1.
2957 * sol-thread.c: Switch to using dlopen to get the thread_db
2960 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
2962 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2963 Change from 0xE0000000 to 0xC0000000.
2965 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2967 * config/powerpc/xm-solaris.h: Initial version of support for
2970 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2972 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2974 * configure: Rebuild.
2976 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2977 little-endian builds.
2979 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
2981 * inftarg.c (child_thread_alive): Protect declaration with
2982 #ifndef CHILD_THREAD_ALIVE.
2984 * source.c (find_source_lines): Check the time on the symtab's bfd if
2985 it exists, else check the time on the exec_bfd.
2987 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
2989 * dsrec.c (make_srec): Fix calculation of address size
2990 to allow addresses less than 0x100.
2992 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2994 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2996 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
2998 * remote-mips.c: cannot use EINVAL for breakpoint test since
2999 its value varies for different hosts (e.g. go32's is 19, while
3000 sunos is 22). Changed to hardcoded 22 since that is what the
3003 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
3005 * configure: Regenerated.
3006 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
3007 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
3009 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3011 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
3012 (_initialize_solib): Add set/show commands for those variables.
3013 (solib_map_sections): Implement searching using them.
3015 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
3017 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
3019 * NEWS: Add Alpha Linux as a new native configuration.
3021 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
3022 return type VOID, assume no debugging info is available for that
3023 object file and patch the return value into VOID *. Otherwise,
3024 operations requiring an implicit call to malloc() will fail.
3026 * infrun.c (wait_for_inferior): The criterion to detect entering a
3027 sigtramp handler is now: (a) the current pc is inside a sigtramp
3028 handler, (b) the previous pc is not in a sigtramp handler, and (c)
3029 the current stack pointer is "inner" than the old one. Condition
3030 (c) is new to avoid mistaking a return from a signal handler into
3031 sigtramp as a new sigtramp invocation.
3033 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
3034 int may not be big enough to hold an address.
3035 (dcache_hit): Ditto.
3036 (dcache_peek_byte): Fix indentation.
3038 * configure.in (alpha-*-linux*): Add target.
3039 * configure: Rebuild
3041 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
3042 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3043 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3044 (SIGCONTEXT_ADDR): Ditto.
3045 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3047 * config/alpha/alpha-linux.mh: New file.
3048 * config/alpha/alpha-linux.mt: Ditto.
3049 * config/alpha/nm-linux.h: Ditto.
3050 * config/alpha/tm-alphalinux.h: Ditto.
3051 * config/alpha/xm-alphalinux.h: Ditto.
3052 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
3053 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
3055 * config/alpha/alpha-osf2.mh: Ditto.
3057 * blockframe.c (find_pc_partial_function): Pass PC to
3058 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
3059 that detect sigtramp code via designated code sequences (as is the
3060 case for Linux/Alpha, for example).
3062 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
3063 to ignore new PC argument.
3064 * config/m68k/tm-hp300bsd.h: Ditto.
3065 * config/vax/tm-vax.h: Ditto.
3067 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
3068 (alpha_osf_skip_sigtramp_frame): Ditto.
3069 (push_sigtramp_desc): Ditto.
3070 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
3071 sigcontext address from frame.
3072 (alpha_saved_pc_after_call): When in sigtramp, use
3073 alpha_frame_saved_pc() instead of read-register().
3074 (after_prologue): When inside a dynamically generated sigtramp
3075 function, there is no prologue, so return address of first
3077 (alpha_in_prologue): Fix typo in comment.
3078 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
3079 whether we're inside a dynamicaly generated sigtramp function. If
3080 so, create and push and appropriate procedure descriptor.
3081 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
3082 the frame past a sigtramp frame (if the current frame is indeed a
3084 (init_extra_frame_info): Don't read next frame register off of
3085 stack-pointer when inside a dynamiccaly generated sigtramp.
3086 (alpha_pop_frame): Also unlink and destroy procedure descriptors
3087 created for dynamically generated sigtramp functions.
3089 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
3090 <alpha/ptrace.h> instead of <machine/reg.h>
3092 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
3094 * gnu-nat.c (inf_validate_task_sc):
3095 Give terminal to gdb while asking question.
3096 (inf_resume): Don't validate the task suspend-count while execing.
3098 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
3100 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
3101 additional suspend count.
3102 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
3103 (inf_resume): Call inf_validate_task_sc here.
3104 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
3106 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
3108 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
3110 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
3112 * h8300-tdep.c (IS_PUSH): Refine.
3113 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
3114 (IS_SUB4_SP, IS_SUBL_SP): New macros.
3115 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
3116 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
3117 when in H8/300H mode. Get the return pointer's address correctly
3118 for the H8/300H. Handle H8/300H prolouge code sequences.
3120 * symfile.c (generic_load): Print the starting address
3121 of the file just loaded.
3123 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
3125 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
3127 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3129 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
3130 if a `source' command is contained in bs->commands.
3132 * infrun.c (wait_for_inferior): Update step_frame_address when
3133 stepping into a new line.
3135 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
3136 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
3139 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
3141 * dsrec.c (load_srec): Add WAITACK parameter, for machines
3142 like EST visionICE that send back an ACK after each S-record.
3143 * monitor.c (monitor_wait_srec_ack): New function.
3144 (monitor_load): Pass monitor_wait_srec_ack to load_srec
3145 if the monitor's MO_SREC_ACK flag is set.
3146 * monitor.h: Define MO_SREC_ACK flag.
3147 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
3148 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
3149 * srec.h: Add WAITACK parameter to load_srec prototype.
3151 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
3153 * config/sparc/sparclite.mt: Add the sparc simulator.
3155 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
3157 * defs.h (read_command_lines, query_hook): Update prototypes.
3158 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
3159 * breakpoint.c (commands_command): Build message in temporary buffer
3160 and pass that, as well as tty control flag, to read_command_lines.
3161 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
3163 (command_loop): Check for non-NULL instream before looping.
3164 (command_line_input): Use readline_hook when appropriate, to get
3165 user input from a GUI window.
3166 (read_next_line): Also build prompt if getting user input from a GUI.
3167 (recurse_read_control_structure): Fix typo in comment.
3168 (read_command_lines): Use passed in prompt and tty flag to decide how
3169 to build message. Use readline_begin_hook when appropriate, to set
3170 up a GUI interaction window. Just return head, whether NULL or not,
3171 after using readline_end_hook to complete GUI interaction.
3172 (define_command, document_command): Build message in a temporary
3173 buffer and pass it to read_command_lines, along with tty flag.
3175 start-sanitize-gdbtk
3176 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
3178 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
3179 (gdbtk_init): Set readline_begin_hook, readline_hook,
3180 and readline_end_hook.
3181 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
3182 gdbtk_tcl_readline_end): New functions.
3183 (tclsh): Pack scroll bar on right side of window, not left.
3186 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3188 * blockframe.c (frameless_look_for_prologue):
3189 Add FUNCTION_START_OFFSET only if func_start is non-zero.
3190 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
3191 pc is not in a known section.
3192 * stack.c (print_frame_info): Remove check for fi->pc in known
3193 section, now handled by lookup_minimal_symbol_by_pc.
3195 start-sanitize-gdbtk
3196 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
3198 * gdbtk.tcl (create_command_window): Change a misspelled "get"
3199 to the intended "cget".
3200 (delete_line): Fix so it deletes the current line at the
3204 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
3206 * sh-stub.c: New file, was config/sh/stub.c.
3208 start-sanitize-gdbtk
3209 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
3211 * gdbtk.tcl (gdb_prompt): Set this early on.
3212 (create_command_window): Use gdb_prompt rather than "(gdb) ".
3213 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
3214 (tclsh): If an evaluation window already exists, just bring it
3215 to the front instead of trying to create another.
3216 * gdbtk.c (tk_command_loop): New function.
3217 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
3219 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
3221 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
3222 implement a tcl evaluation window for gdbtk maintainers to use.
3224 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
3226 * gdbtk.tcl (files_command): Correctly insert list of files into
3229 * gdbtk.tcl (files_command): listbox command no longer accepts
3232 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3234 * gdbtk.tcl (create_command_window): If command window's buffer
3235 is disabled, don't execute any of the key bindings.
3238 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
3240 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
3242 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
3244 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
3245 Flush cached frames just before exiting.
3246 * remote-sim.c (gdbsim_resume): Complain if the program isn't
3248 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
3250 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3252 * procfs.c (procfs_thread_alive procfs_stop): Make static.
3253 (procfs_pid_to_str): New routine to print out thread id's in an
3254 intelligible manner.
3255 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
3256 which supply_register is called to fix bug with writing
3258 * config/sparc/tm-sun4sol2.h: Define default for
3259 target_pid_to_str in case host lacks libthread_db.
3261 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
3263 * Makefile.in config.in configure configure.in
3264 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
3265 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
3266 and pthread support, since pre-2.5 systems don't come with
3269 * procfs.c (info_proc): Use int instead of id_t. Old versions of
3270 Irix don't seem to define this.
3272 start-sanitize-gdbtk
3273 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
3275 * gdbtk.c (tk_command): Catch case where no argument is given
3276 since this will cause the tcl interpreter to dump core.
3279 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
3281 * top.c (execute_control_command, case while_control): Allow
3282 a while command to be interrupted.
3284 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
3286 * sol-thread.c: More cleanup, add comments.
3287 (sol_thread_resume): Prevent people from trying to step
3289 (sol_thread_wait sol_thread_fetch_registers
3290 sol_thread_store_registers): Remove unnecessary check for
3291 sol_thread_active. These routines won't get called unless threads
3294 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
3296 SH3-E support from Allan Tajii <atajii@hmsi.com>:
3297 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
3299 (sh3e_reg_names): New register name array.
3300 (sh_processor_type_table): Add sh3e processor type.
3301 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
3302 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
3303 full set of registers.
3304 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
3305 (e7000_fetch_registers, e7000_wait): Use them.
3306 * sh3-rom.c (sh3_regnames): Add float registers.
3307 (sh3e_cmds, sh3e_ops): New globals.
3308 (sh3e_open): New function.
3309 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
3312 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
3314 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
3315 Print out messages instead of codes for thread_db errors. Make
3316 access macros for thread and lwp manipulation. Make cleanups to
3317 fixup inferior_pid in case of errors.
3319 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
3321 * aclocal.m4: Remove unused definition of AC_C_CROSS.
3322 * configure.in: Add powerpcle-*-solaris* host and target config
3323 so April 30th change does not get lost next time configure is
3326 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
3328 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
3329 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
3330 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
3331 avoid conflict with Solaris /usr/include/thread.h.
3333 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3335 * abug-rom.c: Config file for the older style ABug monitor that
3336 runs on the mvme13x boards.
3337 * config/m68k/monitor.mt: Add abug support for m68k cross
3340 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
3342 * infcmd.c (do_registers_info): Always print the raw floating
3343 point value's bytes in big endian order, so the the leftmost bit
3344 is the most significant.
3345 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
3346 that is referenced nowhere else.
3347 (set_breakpoint): Ditto.
3348 (do_enable_breakpoint): Created from enable_once_breakpoint
3349 with a couple of changes.
3350 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
3351 bpdisp enum value to set disposition of breakpoint.
3352 (enable_once_breakpoint): Ditto.
3353 (enable_delete_breakpoint): Ditto.
3354 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
3355 * symtab.c (find_pc_line): Improve comments.
3356 start-sanitize-gdbtk
3357 * gdbtk.c: Fix a couple of misspellings.
3359 * xcoffread.c: Ditto.
3361 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
3363 * target.c (debug_to_xfer_memory): Insert line breaks when
3364 dumping the memory block.
3366 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3368 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
3369 returns a possibly modified pid.
3370 * inftarg.c (ptrace_him): Now returns pid;
3371 * m3-nat.c (m3_trace_him): Now returns pid;
3372 * infcmd.c (run_command): Minor cleanup.
3373 * infrun.c (wait_for_inferior): Add another check for one_stepped
3374 near where we read the pc to avoid erroneously setting
3375 random_signal for multi-threaded support.
3376 * procfs.c: Add support for Solaris LWPs. Remove def of
3377 LOSING_POLL. Many cleanups... Several workarounds for Solaris
3378 lossage. System call entry and exit are now handled by
3379 dynamically registered handlers.
3380 * (syscallname): Don't barf when handed an unknown syscall
3382 * (info_proc_syscalls): Ditto.
3383 * sol-thread.c: New file. Implements Solaris thread support.
3384 * symfile.c (symbol_file_add): Add call to target_new_objfile to
3385 notify target-dependent code about new symbol tables.
3386 * (clear_symtab_users): Call target_new_objfile to notify it of
3387 the removal of all symbol tables.
3388 * target.c (push_target): Make sure that to_close is non-zero
3390 * target.h (target_new_objfile): Provide default.
3391 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
3392 of OSF can't hack using poll with /proc.
3393 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
3394 sol-thread-new-objfile.
3395 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
3396 add libthread_db.so.1 to NAT_CLIBS.
3397 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
3400 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
3402 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
3403 removal of the requested fd.
3405 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3407 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
3410 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
3412 start-sanitize-gdbtk
3413 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
3415 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
3416 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
3417 (file_popup_menu): Delete, never used.
3418 (listing_window_popup): Rename from listing_window_button_1,
3419 remove breakpoint toggling code.
3420 (toggle_breakpoint): New procedure.
3421 (create_file_win): Bind popup menu to button 2, toggle breakpoints
3422 with button 1 in breakpoint area, add display of tagged areas if
3426 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
3429 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
3430 * breakpoint.c (insert_breakpoints, watchpoint_check,
3431 bpstat_stop_status): Avoid bad references to memory freed via
3432 delete_breakpoint on watchpoints going out of scope.
3433 Do not delete these watchpoints, disable them and change their
3434 disposition to del_at_next_stop instead.
3435 (breakpoint_auto_delete): Delete all breakpoints whose disposition
3436 is del_at_next_stop.
3437 (breakpoint_init_inferior): Use switch to avoid reference to
3438 already deleted breakpoint.
3440 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
3442 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
3443 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
3444 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
3445 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
3446 (solib_info): Call xcoff_relocate_symtab via the hook.
3447 (sharedlibrary_command): Ditto.
3448 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
3449 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
3450 (xcoff_init_loadinfo_hook): Define and initialize here.
3451 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
3452 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
3453 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
3454 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
3455 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
3456 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
3457 of xcoff_relocate_symtab_hook.
3459 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3461 * configure (powerpcle-*-solaris*): Add Solaris support.
3463 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
3466 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
3468 * c-valprint.c (c_val_print): Fix printing for arrays defined
3471 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
3473 Support for bi-endian remote breakpoints.
3474 * remote.c (big_break_insn, little_break_insn): New globals.
3475 (break_insn): Remove.
3476 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
3477 code if REMOTE_BREAKPOINT defined, otherwise call memory
3478 breakpoint functions.
3479 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
3480 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
3482 * mon960-rom.c (mon960_cmds): Remove forward decl.
3483 (mon960_load): Use current_monitor instead of mon960_cmds.
3484 (mon960_regnames): Remove backslashes from line ends.
3485 (_initialize_mon960): Fix documentation string.
3487 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
3489 * symfile.h (psymbol_allocation_list): Expand comments which
3490 describe the psymbol allocation list and how each field is
3493 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3495 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
3497 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
3499 * infcmd.c (run_command), solib.c (locate_base): Check for
3500 target_has_execution in addition to inferior_pid, a core file
3501 from a threaded program is yielding a non-zero inferior_pid.
3503 * sparc-tdep.c (get_saved_register): Handle window registers
3504 in a dummy frame correctly.
3506 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
3508 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
3509 so that anything that wants an allocation function not yet pulled
3510 in, will get it from mmalloc rather than a system library.
3511 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
3512 to avoid surprising results when used.
3514 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
3516 * stabsread.c: Changes and bug fixes for cfront support.
3517 Fix bug for class data members.
3518 Fix parsing bug when no base classes exist.
3519 Fix memory bug - allocate space for cplusplus specific info.
3520 Add support for static data.
3521 Add prototypes for static functions.
3522 Enhance comments to show what each function expects to parse.
3524 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
3525 function to resolve_cfront_continuation.
3527 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
3529 * infrun.c (wait_for_inferior): Call registers_changed when
3530 restarting the inferior to get over a nullified instruction.
3532 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
3534 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
3535 Add new support for parsing cfront stabs.
3537 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
3539 * infrun.c (wait_for_inferior): Move "have_waited" label
3540 outside of #ifdef conditionals. Don't trash the wait status
3541 if we get a signal and the current instruction is nullified.
3543 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
3545 * Makefile.in (VERSION): Bump version number to 4.16.1.
3546 * NEWS: Update for 4.16 release.
3548 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
3550 * monitor.h: Clean up comment formatting.
3551 (current_monitor): Remove decl.
3552 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
3553 (push_monitor, SREC_SIZE): Remove.
3554 * monitor.c: Expand old macro into current_monitor derefs
3556 * remote-os9k.c (current_monitor): Remove definition.
3558 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
3560 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
3562 (call_extra_exec_file_hooks): New function.
3563 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
3564 remove unused variables.
3565 (set_machine_hook): New function.
3566 (_initialize_h8300m): Initialize it.
3568 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
3570 * remote-mips.c (encoding): Don't specify size, to avoid bug in
3571 SunOS native compiler.
3573 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3575 * monitor.c: Use int rather than LONGEST for values, since
3576 the formatting strings are not prepared to accept long longs.
3578 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
3580 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
3582 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
3584 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
3585 before de-referencing it. Prevents deref of NULL pointer if core
3586 file lacks .reg section.
3587 * defs.h: Rename floatformat_{to from}_long_double to
3588 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
3590 * findvar.c (extract_floating store_floating): Change all refs to
3591 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
3592 * utils.c: Change floatformat_{to from}_long_double to
3593 floatformat_{to from}_doublest cuz the new routines will use
3594 whatever size (double or long double) is appropriate.
3595 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3596 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
3597 floatformat... routine calls.
3599 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
3601 * stabsread.c (read_type): Move handling of '@' from type
3602 number handling to handling of types proper (as emitted by gcc!).
3603 For typedefs, allocate the typedef type before reading its
3604 definition, to properly handling recursive types.
3606 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
3608 * ch-exp.c (calculate_array_length): Fix prototype.
3610 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3612 * remote-nindy.c (nindy_open): Acquire more target state so that
3613 user can attach to a previously running program.
3614 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
3615 conversion code. That's all handled in {extract store}_floating
3617 * utils.c (floatformat_to_double): Don't bias exponent when
3618 handling zero's, denorms or NaNs.
3619 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3620 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
3621 FLOATFORMAT_TO/FROM_DOUBLEST macros.
3622 * config/i960/tm-nindy960.h: Undefine
3623 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
3624 REGISTER_CONVERTIBLE. These are no longer necessary now that all
3625 the magic happens in extract/store_floating.
3627 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3629 * eval.c (evaluate_subexp_standard): Report error when attempting to
3630 evaluate subscripts for types which cannot be subscripted.
3632 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
3633 Return a zero value with the return type of the member function
3634 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
3636 * values.h (value_x_binop, value_x_unop): Update prototypes
3638 * eval.c (evaluate_subexp_standard): Update all callers of
3639 value_x_binop, value_x_unop accordingly.
3641 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
3642 integral promotion on operands.
3644 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
3646 * README: Update for 4.16 release.
3647 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
3648 * configure: Regenerate with autoconf.
3649 * config.in: Regenerate with autoheader.
3650 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
3651 * top.c (command_loop): Ditto.
3653 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
3655 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3656 defaults for bi-endian targets. Replace function pointers for
3657 floatformat routines with macros. No need for these to be runtime
3659 * findvar.c: Get rid of floatformat function pointers. Use
3660 macros in extract_floating and store_floating.
3661 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
3662 Use floatformat macros.
3664 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
3666 From: Miles Bader <miles@gnu.ai.mit.edu>
3667 * configure.in (AC_CHECK_HEADERS): check for endian.h.
3668 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
3669 Add host & target cases for i[345]86-*-gnu*.
3670 * config.in: Regenerate with autoheader.
3671 * configure: Regenerate with autoconf.
3672 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
3673 (init.c): Don't scan mig-generated files.
3674 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
3675 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
3676 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
3677 rather than "#ifndef MACH".
3679 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3681 * remote.c (remotewritesize): New GDB variable, controls size
3682 of memory packets sent to the target.
3684 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3686 * dcache.c: Add prototypes. Make many functions static.
3687 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
3688 dcache_poke call dcache_xfer_memory directly in order to fix
3689 problems with turning off dcache. dcache_peek is now unnecessary,
3692 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3693 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
3694 to a struct floatformat. This allows for better handling of
3695 targets whose floating point formats differ from the host by more
3696 than just byte order.
3697 * (floatformat_to_long_double floatformat_from_long_double):
3698 Prototypes for new functions in utils.c.
3699 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
3700 for pointers to floating point conversion functions. The actual
3701 function uses either double or long double if the host supports it.
3702 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
3703 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
3704 * (extract_floating store_floating): Rewrite. Now, if host fp
3705 format is the same as the target, we just do a copy. Otherwise,
3706 we call floatformat_{to from}_doublest.
3707 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
3708 `write' to `should_write'.
3709 * utils.c (floatformat_to_long_double
3710 floatformat_from_long_double): New routines that implement long
3711 double versions of functions in libiberty/floatformat.c.
3712 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
3713 i960 extended real (80 bit) numbers.
3714 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
3715 actually read or written.
3717 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3719 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
3720 (calculate_array_length): Move function from here ...
3722 * ch-exp.c (calculate_array_length): ... to here.
3723 (parse_primval): If we have a symbol with an array type
3724 and the length is 0, call calculate_array_length.
3726 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3728 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
3729 Add some checks for powerset compatibility.
3731 * valops.c (value_slice): Use lowbound instead of lowerbound for
3732 call to slice_range_type to get correct bounds.
3734 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
3736 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
3738 * scm-lang.c (gdb_string.h): Include.
3739 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
3740 call to correct type (char *).
3741 * cp-valprint.c (cp_print_static_field): Ditto.
3742 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
3743 for external find_unwind_entry function (from hppa-tdep.c).
3744 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
3745 type of second arg to "char *" to be type compatible with
3747 (remote_wait): Cast second arg to strtol to correct type.
3748 * hppa-tdep.c (compare_unwind_entries): Change argument types to
3749 "const void *" to be type compatible with qsort, and then
3750 assign to local args prior to use.
3752 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
3754 * infptrace.c (kill_inferior): Remove call to "kill"; update
3757 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
3759 * remote-e7000.c: don't append :23 to target port if __WIN32__
3760 is defined (it's WinGDB).
3762 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
3764 From: Miles Bader <miles@gnu.ai.mit.edu>
3765 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
3766 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
3767 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
3768 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3770 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
3772 * configure.in (case host): Add i386sco5 host.
3773 * configure: Regenerate.
3775 From: Robert Lipe <robertl@dgii.com>
3776 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3777 target is an SVR3.2 with COFF, ELF, and shared libes, but
3779 * config/i386/i386sco5.mh: New file.
3780 * config/i386/nm-i386sco5.h: New file.
3782 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
3784 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3785 BCACHE_MAXLENGTH, stash chunk as unique copy.
3787 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
3789 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3790 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3791 use it, rather than calling add_psymbol_addr_to_list.
3792 (add_psymbol_addr_to_list): Delete.
3793 (add_psymbol_to_list): Make psymbol static to avoid random data in
3794 gaps due to alignment of structure members.
3795 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3796 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3797 performance improvements by inlining via complicated macros and
3798 they just make gdb larger and harder to maintain.
3799 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3800 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3801 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3802 (add_partial_symbol): Ditto.
3803 * partial-stab.h: Ditto.
3804 * os9kread.c (read_os9k_psymtab): Ditto
3805 * mdebugread.c (parse_partial_symbols): Ditto.
3806 (handle_psymbol_enumerators): Ditto.
3807 (demangle.h): Include.
3808 * hpread.c (hpread_build_psymtabs): Ditto.
3809 (hpread_build_psymtabs): Ditto.
3810 (demangle.h): Include
3812 start-sanitize-gdbtk
3813 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3815 * gdbtk.c (running_now): New global variable.
3816 (gdb_cmd): Test it before executing any command.
3817 (gdbtk_call_command): Set it when inferior is running.
3818 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3819 disable interaction with command window's text appropriately.
3821 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3823 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3824 some versions of the kernel don't support it.
3827 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
3829 * configure.in: Check for setpgid function.
3830 * config.in: Regenerate with autoheader.
3831 * configure: Regenerate with autoconf.
3832 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3833 if it is actually defined.
3834 (gdb_setpgid): Use HAVE_SETPGID.
3835 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3836 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3837 * c-exp.y, serial.c: Include <ctype.h>.
3838 * config/m68k/nm-news.h: Add typedef for pid_t which is
3839 apparently missing from <sys/types.h>. Enclose entire
3840 file in NM_NEWS_H ifndef and define when included.
3841 * config/mips/nm-news-mips.h: Ditto.
3842 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3843 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3845 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3847 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3848 * arm-tdep.c (arm_apcs_32): New global.
3849 (arm_addr_bits_remove, arm_saved_pc_after_call,
3850 arm_push_dummy_frame, arm_pop_frame): New functions.
3851 (arm_skip_prologue): Updated version from Richard Earnshaw.
3852 (_initialize_arm_tdep): Add set/show "apcs32".
3853 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3854 arm_addr_bits_remove.
3855 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3856 (frame_find_saved_regs): Declare properly.
3857 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3858 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3860 * config/arm/nm-arm.h: New file.
3861 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3862 Move definitions to nm-arm.h.
3863 * config/arm/arm.mh (NAT_FILE): Define.
3865 * symfile.c (generic_load): Initialize data_count properly.
3867 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
3869 * symmisc.c (print_objfile_statistics): Print memory used by
3870 psymbol cache obstack.
3872 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
3874 * symfile.c (report_transfer_performance): New function.
3875 (generic_load): Call it to report transfer rate.
3876 * remote-e7000.c (e7000_load): Ditto.
3878 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3880 * mpw-make.sed: Change references to config.h to be in objdir,
3881 edit out rules to rebuild config.h.
3883 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
3885 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3888 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
3890 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3891 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3892 by infptrace.c rather than calling ptrace directly.
3894 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3896 * mon960-rom.c: Cleanups and elimination of unused code,
3897 clarify documentation string.
3898 (mon960_serial, mon960_ttyname): Remove.
3899 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3900 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3902 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
3904 * configure.in: Check whether printf family supports printing
3905 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3906 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3907 * configure: Regenerate.
3908 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3909 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3910 * configure.in: Fix have_gregset and have_fpregset autoconf
3911 variable names so that they match the pattern required to
3914 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
3916 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3917 before testing against reg_ptr.
3918 * eval.c (evaluate_subexp_standard): Cast type of
3919 TYPE_FN_FIELD_VOFFSET to int.
3920 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3921 extract_long_unsigned_integer): Cast type of sizeof to int.
3922 * values.c (unpack_field_as_long, modify_field): Ditto.
3923 * valops.c (value_assign, call_function_by_hand): Ditto.
3924 * infcmd.c (do_registers_info): Ditto.
3925 * ser-tcp.c (tcp_open): Ditto.
3926 * remote.c (putpkt): Ditto.
3927 * dcache.c (dcache_peek): Ditto.
3928 * dcache.c (dcache_poke): Ditto.
3929 * m2-exp.y (yylex): Ditto.
3930 * gnu-regex.c (re_match_2): Ditto.
3931 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3932 out unused macro definition and variables.
3933 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3934 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3935 * main.c (wait.h): Include.
3936 * top.c (command_line_input): Remove unused variable "c".
3937 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3938 value TYPE_CODE_TYPEDEF to switch statement.
3939 (f_type_print_varspec_suffix): Add missing enum value
3940 TYPE_CODE_TYPEDEF to switch statement.
3941 * ch-exp.c (parse_primval): Add remaining enumeration values to
3942 switch statement, with no specific action.
3943 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3944 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3945 * stabsread.c (cleanup_undefined_types): Remove unused label
3947 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3948 * maint.c (objfiles.h): Include.
3949 (maintenance_print_statistics): Remove unused variable "temp".
3950 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3951 unused variable "found_file_symbol".
3952 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3953 * language.c (lang_bool_type): Use existing function local type
3954 variable rather than create block local variables.
3955 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3956 * infptrace.c (wait.h, command.h): Include.
3957 * ser-tcp.c (gdb_string.h): Include
3958 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3959 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3960 * command.c (complete_on_enum): Make assignment used as truth value
3961 explictly check against NULL.
3963 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3964 that uses it is ifdef'd out.
3965 * parser-defs.h: Add prototype for write_dollar_variable.
3966 * infrun.c: Add prototype for write_pc_pid.
3967 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3968 * symmisc.c (bcache.h): Include.
3969 * bcache.h: Add prototype for print_bcache_statistics.
3970 * symfile.c: Include <time.h>.
3971 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3972 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3973 * valarith.c (value_binop): Change result_len, promoted_len1,
3974 and promoted_len2 to unsigned int.
3975 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3976 elt_size to unsigned int.
3977 * valops.c (value_array): Change typelength to unsigned int.
3978 (destructor_name_p): Change len to unsigned int.
3979 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3980 * symfile.c (decrement_reading_symtab): Change return type to void.
3981 * valarith.c (value_subscript): Remove unused variable "word".
3982 (value_subscript): Remove unused variable "tint".
3983 * valops.c (auto_abandon): Ifdef out, since code using it is also
3985 * eval.c (init_array_element): Remove unused variable "val".
3986 * Makefile.in (values.o): Depends on scm-lang.h.
3987 (command.o): Depends upon wait_h.
3988 (ser-tcp.o): Depends upon gdb_string.h.
3989 (infptrace.o): Depends upon wait_h and command_h.
3990 (maint.o): Depends on objfiles.h and symfile.h.
3991 * values.c (allocate_repeat_value): Remove unused variable
3993 (scm-lang.h): Include.
3994 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3995 GET_LONGJMP_TARGET define, unused otherwise.
3996 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3997 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3999 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
4001 * configure.in (sparc64-*-solaris2*): Delete.
4002 Stick with sparc-*-solaris2*.
4003 * configure: Regenerated.
4005 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
4007 * valops.c (value_assign): Make copy of internal variable value
4008 before returning it as a new value, since it is owned by the
4009 internal variable and will be freed along with it.
4011 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
4013 * From Peter Schauer.
4014 * breakpoint.c (breakpoint_re_set_one): Keep temporary
4015 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
4016 and bp_step_resume in case breakpoint_re_set_one is called due
4017 to a step over a dlopen call.
4018 * infrun.c (wait_for_inferior): Always remove breakpoints from
4019 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
4021 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
4023 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
4024 non-prototyped case over prototyped case for C.
4025 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
4027 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
4029 * os9kread.c (os9k_process_one_symbol): Note nonportable
4030 assumption that an int can hold a char *.
4032 * bcache.h (struct hashlink): Wrap data[] inside union with
4033 double to force longest alignment.
4034 (BCACHE_DATA): New macro to access data[].
4035 (BCACHE_ALIGNMENT): New macro to get offset to data[].
4036 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
4037 address of cached data. Use BCACHE_ALIGNMENT to compute
4038 amount of space to allocate for each hashlink struct.
4040 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
4042 * ch-lang.c (evaluate_subexp_chill): Fix typo.
4044 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
4046 * Makefile.in (VERSION): Bump version to 4.15.3
4048 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
4050 * config.in: Rename from config.h.in.
4051 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
4052 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
4053 * configure: Rebuild.
4054 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
4055 Set CONFIG_HEADERS to config.h:config.in.
4057 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4059 * partial-stab.h (case N_ENDM): Finish current partial symbol
4060 table for Solaris 2 cc.
4062 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
4064 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
4065 PC in the registers array. From Peter Schauer.
4067 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
4069 * symfile.c (reread_symbols): Reinitialize bcache struct
4070 members to zero using memset. Also use memset to reinit
4071 global_psymbols and static_psymbols, rather than explicitly
4072 resetting each structure member.
4074 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
4076 * configure.in: Add fragment to create stamp-h.
4078 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4079 * configure.in (AC_CHECK_HEADERS): Check for link.h.
4080 * configure: Regenerate with autoconf.
4081 * config.h.in: Regenerate with autoheader.
4082 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
4084 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
4085 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
4086 older a.out based systems.
4088 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
4090 * config.h.in: New file.
4091 * acconfig.h: New file, for autoheader.
4092 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
4093 * configure: Regenerate.
4094 * Makefile.in (defs_h): Add config.h
4095 (distclean): Remove config.h and stamp-h during distclean.
4096 (config.h, stamp-h): New targets to remake config.h when necessary.
4097 * defs.h (config.h): Include before any other includes or defines.
4098 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
4099 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
4101 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
4103 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4104 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
4105 result in an empty line, to work around a bug in native Ultrix 4.4
4106 and OSF/1-3.2C make.
4108 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
4110 * configure.in: Add gdbserver to configdirs under linux.
4111 * configure: Regenerate.
4113 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4115 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
4116 * config/i386/tm-nbsd.h (NUM_REGS): Define.
4118 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
4120 * solib.c (solib_break_names): Add _r_debug_state for
4121 vanilla SVR4 implementations. From Peter Schauer.
4123 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
4125 * mon960-rom.c: New file; support mon960 rom monitor on i960.
4126 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
4127 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
4128 epecting prompt and echo during open.
4129 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
4130 determine if break should be sent as stop command.
4131 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
4132 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
4133 stack frame on mon960.
4134 * Makefile.in: Add mon960 files.
4135 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
4136 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
4137 * configure: Regenerated.
4138 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
4139 support mon960 rom monitor on i960.
4141 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
4143 With Michael Snyder:
4144 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
4145 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
4146 (handle_load_dll): Don't reload symbols.
4147 (handle_exception): Use the DEBUG_* names.
4148 (child_wait): Add DEBUG_* code.
4149 (_initialize_inftarg): Add new commands to set debug_ names.
4151 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
4153 * From Peter Schauer:
4154 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
4155 (bpstat_stop_status): Likewise.
4156 (remove_solib_event_breakpoints): Likewise.
4157 (clear_momentary_breakpoints): Likewise.
4158 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
4159 if we still can't read the memory for that breakpoint.
4160 (mention): Add bp_shlib_event case to keep gcc quiet.
4162 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
4164 * breakpoint.h (enum enable): New enum shlib_disabled for
4165 shared library breakpoints that have been temporarily disabled.
4166 * breakpoint.c: Handle temporarily disabled shared library
4167 breakpoints like disabled breakpoints in most places.
4168 (insert_breakpoints): Use shlib_disabled to indicate
4169 that an unsettable breakpoint is only temporarily disabled.
4170 (re_enable_breakpoints_in_shlibs): New function.
4171 * corelow.c (solib_add_stub): After adding shared libraries,
4172 try to reenable any temporarily disabled breakpoints.
4173 * infcmd.c (attach_command): Likewise.
4174 * infrun.c (wait_for_inferior): Likewise.
4176 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
4178 * defs.h (extract_long_unsigned_integer): Declare.
4179 * findvar.c (extract_long_unsigned_integer): New function.
4180 * printcmd.c (print_scalar_formatted): Use it.
4181 * valprint.c (val_print_type_code_int): Likewise.
4183 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
4185 * infcmd.c (do_registers_info): Ignore anonymous registers.
4186 * sh-tdep.c (set processor): New command to set specific
4188 (sh_reg_names, sh3_reg_names): Arrays of register names for
4189 SH and SH3 processors.
4190 (sh_set_processor_type): New function.
4191 * sh3-rom.c (sh3_open): Call it.
4192 (sh3_regname): Add names of all the bank registers.
4193 (sh3_supply_register): Clean up formatting.
4194 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
4196 (REGISTER_NAMES): Add names of bank registers.
4197 (FP15_REGNUM): Define.
4198 (REGISTER_VIRTUAL_TYPE): Use it.
4199 * monitor.c: Clean up some comments.
4201 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4203 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
4204 s* and t* symbols too.
4206 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
4208 * symfile.c (generic_load): Avoid division by zero.
4210 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
4212 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
4213 not just those with HANDLE_SVR4_EXEC_EMULATORS.
4216 * breakpoint.c (internal_breakpoint_number): Move to file scope.
4217 (create_solib_event_breakpoint): Use an internal breakpoint number.
4219 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4221 * valarith.c (value_in): Change builtin_type_chill_bool to
4224 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4226 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
4227 (match_string_literal): Handle control sequence.
4228 (match_character_literal): Deto.
4230 * ch-lang.c (chill_printchar): Change formating of nonprintable
4231 characters from C'xx' to ^(num).
4232 (chill_printstr): Deto.
4233 (value_chill_card, value_chill_max_min): New functions to process
4234 Chill's CARD, MAX, MIN.
4235 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
4237 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
4238 for Chill's CARD, MAX, MIN.
4240 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
4241 and change return type from builtin_type_int to
4242 builtin_type_chill_bool.
4244 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
4246 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
4247 from config/nm-nbsd.h.
4248 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
4249 from config/sparc/tm-nbsd.h.
4251 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
4252 instead of in config/m68k/xm-hp300hpux.h.
4254 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4256 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
4257 implementation for NetBSD systems.
4259 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
4261 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
4262 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
4264 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
4265 if "function" is pointer to non-function.
4267 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
4269 * top.c (print_gdb_version): Update copyright year.
4271 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
4274 * infrun.c (wait_for_inferior): Remove breakpoints and
4275 switch terminal settings before calling SOLIB_ADD.
4276 * solib.c (enable_break, SVR4 variant): Don't map in symbols
4277 for the dynamic linker, the namespace pollution causes real
4280 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
4282 * remote-mips.c (common_breakpoint): Explicitly terminate the
4285 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
4287 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4288 * remote.c (remote_detach): Send a command 'D' to the target
4289 when detaching, update the function's comments.
4291 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
4293 * gnu-nat.c (thread_cmd_list): New declaration.
4294 (parse_int_arg): New function.
4296 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
4298 * gnu-nat.h (struct proc): Add DETACH_SC field.
4299 * gnu-nat.c (make_proc): Set DETACH_SC.
4300 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4301 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4302 (add_thread_commands): Add set/show for detach-suspend-count.
4303 Add takeover-suspend-count cmd.
4304 (inf_detach): Set suspend counts to the detach SC, not 0.
4305 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
4306 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
4307 set_thread_default_thread_detach_sc_cmd,
4308 show_thread_default_thread_detach_sc_cmd): New functions.
4309 (show_task_cmd): Also show detach-suspend-count values.
4310 (thread_takeover_sc_cmd): New function.
4312 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
4314 * gnu-nat.c (show_thread_run_cmd): Actually print state.
4316 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
4318 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
4320 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
4322 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
4323 pointer to the flags now, not the flags themselves.
4325 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
4327 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
4328 (gnu_create_inferior): Check return from ptrace.
4330 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
4332 * gnu-nat.h (struct proc): Add DEAD field.
4333 * gnu-nat.c (make_proc): Initialize DEAD.
4334 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
4335 (gnu_wait): Only abort for 0 threads if the task isn't dead.
4337 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
4339 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
4341 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
4343 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
4344 (inf_set_traced): Only give no-signal-thread error message if
4345 turning *on* tracing.
4347 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4349 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
4350 set inf->threads_up_to_date to 0.
4351 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
4352 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
4353 (proc_update_sc): Cast thread state arg to thread_set_state.
4354 (proc_get_state): Cast thread state arg to thread_get_state.
4355 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
4356 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
4357 inf_update_procs before we lookup the thread.
4358 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
4360 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
4362 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
4364 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
4366 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
4367 INIT_TRACEMASK instead of setting the exec flags.
4369 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4371 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
4372 the task's died, so others have a chance at it.
4373 (gnu_resume): When single-stepping a single thread, given an error
4374 if there is no such thread. When single-stepping one but running
4375 the others, just given a warning and still run all the threads.
4376 (gnu_wait): If there seem to be no threads, look harder, and
4377 signal an error if there really aren't any.
4378 (gnu_attach): Reset thread numbering to 0.
4380 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
4381 thread name in warning messages.
4383 * gnu-nat.c (active_inf): New function.
4384 (show_sig_thread_cmd, show_stopped_cmd): Use it.
4385 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
4386 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
4388 (add_task_commands): Add new port-right info commands.
4390 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4392 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
4393 use mach_msg with MACH_RCV_INTERRUPT.
4394 (set_noninvasive_cmd): New function.
4395 (add_task_commands): Add command entry for `set noninvasive'.
4397 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4399 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
4400 (safe_bcopy): Function removed.
4402 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
4404 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
4405 (make_proc): Initialize state_valid & state_changed fields.
4407 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
4409 * reply_mig_hack.awk: New file.
4411 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
4413 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
4415 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
4418 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
4420 * target.c (debug_to_check_threads): New function.
4422 * inflow.c (terminal_init_inferior_with_pgrp): New function.
4423 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
4424 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
4425 but only if PROCESS_GROUP_TYPE is defined.
4427 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
4429 * target.c (debug_to_thread_alive): Pass through the return value.
4431 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
4433 * target.c (signals, target_signal_from_host, target_signal_to_host):
4434 Add mach exceptions.
4435 * target.h (enum target_signal): Add mach exceptions.
4437 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
4439 * gnu-nat.c: New file: gnu native backend.
4440 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
4441 * gnu-nat.h: New file.
4442 * config/nm-gnu.h: New file.
4443 * config/tm-i386gnu.h: New file.
4444 * config/xm-i386gnu.h: New file.
4445 * config/i386/i386gnu.mh: New file.
4446 * config/i386/i386gnu.mt: New file.
4448 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
4450 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
4451 baseline for gdb 4.16 rerelease testing.
4453 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
4455 * somsolib.c (som_solib_create_inferior_hook): Before returning
4456 call clear_symtab_users.
4458 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
4460 * remote-e7000.c (e7000_open): Delete all breakpoints when
4461 connecting to e7000. Change connect message to allow use of
4462 monitor.exp in test suite.
4463 * (e7000_load): Print transfer rate of download.
4464 * symfile.c (generic_load): Print transfer rate of download.
4466 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
4468 * configure.in (mips*-*-vxworks*): New config.
4469 * configure: Regenerated.
4471 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
4472 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
4475 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4477 * partial-stab.h (case N_FUN): Function symbols generated
4478 by SPARCworks cc have a meaningless zero value, do not update
4479 pst->textlow if the function symbol value is zero.
4481 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
4482 for function prototype declaration symbols.
4484 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
4486 * remote-e7000.c (e7000_load): New routine to download via the
4488 * (e7000_wait): Don't backup PC when we hit a breakpoint.
4489 Apparantly new sh2 pods get this right...
4490 * (e7000_ops): Add call to e7000_load.
4492 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4494 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
4495 m68knbsd-nat.c: New files, support for NetBSD/m68k.
4497 * configure.in (m68k-*-netbsd*): New config.
4498 * configure: Regenerated.
4500 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
4502 * standalone.c (open, _initialize_standalone): Fix obvious typos
4503 reported by Martin Pool <martin@citr.uq.oz.au>.
4505 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
4507 * solib.c (solib_create_inferior_hook): Fix thinko.
4509 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
4511 * solib.c (solib_break_names): Define for Solaris and Linux.
4512 (enable_break): For SVR4 systems, first try to use the debugger
4513 interfaces in the dynamic linker to track shared library events
4514 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
4515 BKPT_AT_SYMBOL code to use shared library event breakpoints.
4516 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
4517 it no longer needs to restart/wait on the inferior.
4518 * symfile.c (find_lowest_section): No longer static.
4519 * symfile.h (find_lowest_section): Corresponding changes.
4521 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
4523 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
4524 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
4525 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
4526 * config/mips/tm-mips.h: Ditto.
4527 * config/pa/tm-hppa.h: Ditto.
4528 * config/rs6000/tm-rs6000.h: Ditto.
4529 * config/sparc/tm-sparc.h: Ditto.
4531 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4533 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
4535 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
4536 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4537 #ifdef'd out definitions --- Causes serious gdb failures on
4538 the i386. Need to investigate further before enabling.
4540 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
4541 fetch_core_registers): New functions. These functions are defined
4542 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
4543 with ptrace PT_GETREGS/PT_SETREGS.
4545 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
4547 * findvar.c (extract_floating store_floating): Replace `long
4548 double' with `DOUBLEST'.
4550 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4552 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4555 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
4557 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
4559 * breakpoint.h (remove_solib_event_breakpoints): Declare.
4560 * breakpoint.c (remove_solib_event_breakpoints): New function.
4561 * somsolib.c (solib_create_inferior_hook): Remove all solib event
4562 breakpoints before inserting any new ones. Use a solib event
4563 breakpoint for the breakpoint at "_start".
4564 Remove extraneous "\n" from calls to warning.
4566 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
4569 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
4571 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
4572 for CORE_ADDR values.
4573 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
4574 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
4576 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4578 * mipsread.c (mipscoff_symfile_read): Unconditionally add
4579 alpha coff dynamic symbols for all symbol files. Makes skipping
4580 over the trampoline code work when stepping from a function in a
4581 shared library into a function in a different shared library.
4583 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
4585 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
4586 RETURN_VALUE_ON_STACK to return long doubles on the stack.
4588 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
4590 * Makefile.in (ch-exp.o): Add dependencies.
4591 (various): Add gdb_string.h to dependencies that need it.
4593 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
4595 * symmisc.c (print_symbol_bcache_statistics): Update description for
4596 printing byte cache statistics.
4598 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
4600 * Add native support for long double data type.
4601 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
4602 to store actual data. Change types of INT and FLOAT tokens to
4603 typed_val_int and typed_val_float respectively. Create new token
4604 DOUBLE_KEYWORD to specify the string `double'. Make production
4605 for FLOAT use type determined by parse_number. Add production for
4606 "long double" data type.
4607 * (parse_number): Use sscanf to parse numbers as float, double or
4608 long double depending upon the type of typed_val_float.dval. Also
4609 allow user to specify `f' or `l' suffix to explicitly specify
4610 float or long double constants. Change typed_val to
4612 * (yylex): Change typed_val to typed_val_int. Also, scan for
4614 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
4616 * configure, configure.in: Add check for long double support in
4618 * defs.h: Define DOUBLEST appropriatly depending on whether
4619 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
4620 for functions that handle this type.
4621 * expression.h (union exp_element): doubleconst is now type
4623 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
4624 * findvar.c (extract_floating): Make return value be DOUBLEST.
4625 Also, add support for numbers with size of long double.
4626 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
4628 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
4630 * valarith.c (value_binop): Change temp variables v1, v2 and v to
4631 type DOUBLEST. Coerce type of result to long double if either op
4633 * valops.c (value_arg_coerce): If argument type is bigger than
4634 double, coerce to long double.
4635 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
4636 arg type is float and > 8 bytes, then use pointer-to-object
4637 calling conventions.
4638 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
4639 Use appropriate format and precision to print out floating point
4641 * value.h: Fixup prototypes for value_as_double,
4642 value_from_double, and unpack_double to use DOUBLEST.
4643 * values.c (record_latest_value): Remove check for invalid
4644 floats. Allow history to store them so that people may examine
4645 them in hex if they want.
4646 * (value_as_double unpack_double): Change return value to DOUBLEST.
4647 * (value_from_double): Arg `num' is now DOUBLEST.
4648 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
4649 specific) to expect certain types to always be returned on the stack.
4651 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
4653 * bcache.c, bcache.h: New files to implement a byte cache.
4654 * Makefile.in (SFILES): Add bcache.c.
4655 (symtab_h): Add bcache.h.
4656 (HFILES_NO_SRCDIR): add bcache.h
4657 (COMMON_OBJS): Add bcache.o
4658 (bcache.o): New target.
4659 * dbxread.c (start_psymtab): Make global_syms & static_syms
4660 type "partial_symbol **".
4661 * hpread.c (hpread_start_symtab): Ditto.
4662 * os9kread.c (os9k_start_psymtab): Ditto.
4663 * stabsread.h (start_psymtab): Ditto.
4664 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
4665 * maint.c (maintenance_print_statistics): Call
4666 print_symbol_bcache_statistics.
4667 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
4669 * solib.c (allocate_rt_common_objfile): Ditto.
4670 * symfile.c (reread_symbols): Ditto.
4671 (free_objfile): Free psymbol bcache when objfile is freed.
4672 (objfile_relocate): Use new indirect psymbol pointers.
4673 * objfiles.h (struct objfile): Add psymbol cache.
4674 * symfile.c (compare_psymbols): Now passed pointers to pointers to
4676 (reread_symbols): Free psymbol bcache when freeing other objfile
4678 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
4679 psymbol using the psymbol bcache.
4680 (init_psymbol_list): Psymbol lists now contain pointers rather than
4681 the actual psymbols.
4682 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
4683 grown arrays of pointers.
4684 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
4686 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
4688 (print_symbol_bcache_statistics): New function to print per objfile
4690 (print_partial_symbol, print_partial_symbols,
4691 maintenance_check_symtabs, extend_psymbol_list):
4692 Account for change to pointer to pointer to partial symbol.
4693 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
4694 make_symbol_completion_list):
4695 Account for change to pointer to pointer to partial symbol.
4696 * symtab.h (bcache.h): Include.
4697 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
4698 type "partial_symbol **".
4700 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
4702 * dwarfread.c (free_utypes): New function.
4703 (read_file_scope): Call free_utypes as cleanup, rather than just
4704 freeing the utypes pointer.
4706 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4708 * demangle.c (is_cplus_marker): New function, checks if a
4709 character is one of the commonly used C++ marker characters.
4710 * defs.h (is_cplus_marker): Add prototype.
4711 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
4712 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
4713 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
4714 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
4715 values.c (vb_match): Use is_cplus_marker instead of comparison
4718 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
4720 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
4721 delete entirely someday.
4723 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4725 * mpw-make.sed: Edit out makefile rebuild rule.
4726 (host_alias, target_alias): Comment out instead of deleting.
4727 (@LIBS@): Edit out references.
4729 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
4731 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4732 Use n_psyms in OBJSTAT, not psyms.
4734 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
4736 * configure.in (sparclet-*-aout*): New config.
4737 * configure: Regenerated.
4739 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
4741 * somsolib.c (som_solib_add): Use xmalloc rather than bare
4742 unchecked call to malloc.
4743 * remote-mips.c (pmon_load_fast): ditto.
4744 * remote-mm.c (mm_open): ditto.
4745 * hpread.c (hpread_lookup_type): ditto.
4746 * remote-adapt.c (adapt_open): ditto.
4748 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
4750 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
4751 allocate_saved_f77_common_node, allocate_common_entry_node,
4752 add_common_block): Use xmalloc rather than malloc, some of which
4754 * gnu-regex.c: At same point as other gdb specific changes
4755 #undef malloc and then #define it to xmalloc.
4756 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
4757 bare unchecked calls to malloc/realloc.
4758 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
4759 unchecked call to malloc.
4761 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
4763 * symtab.c (gdb_mangle_name): Change opname var to be const to
4764 match return val of cplus_mangle_name.
4765 * i960-tdep.c: Change arg types of next_insn to match callers.
4767 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
4769 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
4770 apparently aren't needed in any reasonably recent version of
4773 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
4775 * stabsread.c (read_range_type): If !self-subrange and language
4776 is Chill, assume a true range. If a true_range is a sub_subrange,
4777 use builtin_type_int for index_type.
4779 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
4781 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4782 with an ANSI compiler.
4784 start-sanitize-gdbtk
4785 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
4787 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4788 double-clicking will work again.
4789 (create_asm_win): Put "break" at end of all B1 bindings.
4790 (create_file_win): Lower "sel" tag, don't raise it.
4791 (ensure_line_visible): New proc.
4792 (update_listing, update_assembly): Use it.
4793 (create_copyright_window): Destroy window on Leave event.
4794 (create_command_window): Put "break" at end of all B2 bindings.
4797 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
4799 From Michael_Snyder@NeXT.COM (Michael Snyder):
4800 * valops.c (value_arg_coerce): Coerce float to double, unless the
4801 function prototype specifies float.
4803 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
4805 * language.c (set_language_command): Use languages table when
4806 printing available languages.
4808 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
4810 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
4811 * command.c (add_cmd): Add missing initialization for enums member.
4812 Reorder members to match structure declaration to make it easier to
4813 tell when one is missing.
4814 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4815 memory is referenced after being freed.
4817 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4819 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4820 AT_name tag is missing.
4822 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4823 FLTWATCH and FLTKWATCH are defined.
4825 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4826 return number of bytes transferred for partial reads.
4828 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4830 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
4832 * win32-nat.c (mappings): Add ppc registers.
4833 (child_resume): Turn off step for ppc.
4835 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
4837 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4838 xm-cygwin32.h): New.
4839 * config/i386/(*win32*): Becomes *cygwin32*.
4840 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4841 (powerpcle-*-cygwin32): New.
4842 * configure: Regenerate.
4843 * win32-nat.c (child_create_inferior): Call CreateProcess
4844 with the right program arg.
4846 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
4848 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4850 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
4852 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4854 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4856 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4858 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4860 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4861 here from config/i386/xm-i386mach.h, fix name.
4862 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4863 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4864 here from config/i386/xm-ptx4.h.
4865 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4866 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4867 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4868 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4869 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4871 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4872 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4873 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4875 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
4877 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4878 floating point correctly.
4879 (STORE_RETURN_VALUE): Likewise.
4880 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4882 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
4884 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4885 Define to what should be reasonable values. However, apparently
4886 a bug in linux mmap prevents mapped symbol tables from working.
4888 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
4890 * defs.h (errno.h>: Move #include closer to head of file to solve
4891 obscure problem with systems that declare perror with const arg, in
4892 both errno.h and stdio.h, and const is defined away by intervening
4895 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
4897 From Jon Reeves <reeves@zk3.dec.com>:
4898 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4899 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4901 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
4903 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4904 exist in doc/Makefile.in.
4906 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
4908 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4910 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4912 * ch-valprint.c (calculate_array_length): New function to
4913 determine the length of an array type.
4914 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4915 array type is zero, call calculate_array_length.
4917 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4918 values may not be sorted. Scan all entries and set the real lower
4921 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
4923 * config/xm-linux.h: Move include of solib.h and #define of
4924 SVR4_SHARED_LIBS from here ...
4925 * config/nm-linux.h: ...to here.
4927 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
4929 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4930 Also check for gregset_t and fpregset_t types.
4931 * configure: Regenerate.
4932 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4934 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4935 and HAVE_FPREGSET_T are defined. These changes allow systems
4936 like linux that are migrating to /proc support to use a single
4937 configuration for both new and old versions.
4939 * config/i386/linux.mt: Note that this is now for both a.out and
4941 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4943 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4944 * config/i386/xm-linux.h (solib.h): Include
4945 (SVR4_SHARED_LIBS): Define.
4946 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4947 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4948 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4951 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4953 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4954 * config/i386/xm-sun386.h: Ditto.
4955 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4957 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
4959 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4961 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
4963 From Greg McGary <gkm@gnu.ai.mit.edu>:
4964 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4967 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
4969 * infrun.c (normal_stop): Fix test for shared library event.
4971 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
4973 * configure.in (sparc64-*-*): Add default host configuration.
4974 start-sanitize-gdbtk
4975 (sparc64-*-solaris2* host): Link statically if GCC used.
4977 (sparc64-*-solaris2*): Add target configuration.
4978 * configure: Regenerated.
4979 * sparc/sp64sol2.mt: New file.
4981 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
4983 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4985 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
4987 * Makefile.in (lint): Close backquotes.
4989 start-sanitize-gdbtk
4990 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
4992 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4994 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4996 * configure: Rebuilt.
4999 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
5001 * NEWS: Make note of new record and replay feature for
5002 remote debug sessions.
5003 * serial.c (gdbcmd.h): Include.
5004 (serial_logfile, serial_logfp, serial_reading, serial_writing):
5005 Define here, for remote debug session logging.
5006 (serial_log_command, serial_logchar, serial_write, serial_readchar):
5007 New functions for remote debug session logging.
5008 (serial_open): Open remote debug session log file when needed.
5009 (serial_close): Close remote debug session log file when needed.
5010 (_initialize_serial): Add set/show commands for name of remote
5011 debug session log file.
5012 * serial.h (serial_readchar): Declare
5013 (SERIAL_READCHAR): Call serial_readchar().
5014 (SERIAL_WRITE): Call serial_write().
5015 (serial_close): Declare as extern.
5016 (serial_logfile, serial_logfp): Declare.
5017 * top.c (execute_command): Declare serial_logfp. Log user command
5018 in remote debug session log if log file is open.
5019 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
5020 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
5021 * remote-array.c (SREC_SIZE): Remove, duplicates define in
5023 * remote-array.c (hexchars, hex2mem): Remove, unused.
5024 * gdbserver/low-linux.c (store_inferior_registers): Remove
5025 unnecessary extern declaration of registers[].
5026 * gdbserver/Makefile.in (all): Add gdbreplay.
5027 * gdbserver/gdbreplay.c: New file.
5028 * gdbserver/README: Give example of recording a remote
5029 debug session with gdb and then replaying it with gdbreplay.
5031 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
5033 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
5034 (read_one_struct_field): Support boolean bitfields.
5035 * c-valprint.c (c_val_print): Print booleans properly.
5037 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
5039 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
5041 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
5043 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
5045 * ch-exp.c (parse_tuple): Error if invalid mode.
5047 * value.h (COERCE_ARRAY): Don't coerce enums.
5048 (COERCE_ENUM): Don't COERCE_REF.
5049 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
5050 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
5051 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
5052 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
5053 Add COERCE_REF before COERCE_ENUM.
5054 * values.c (value_as_long): Simplify.
5056 * valops.c (value_array): Create internalvar if !c_style_arrays.
5058 * language.c (lang_bool_type): Add Fortran support.
5059 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
5061 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
5063 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
5064 All references changed.
5065 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
5066 Update state table. Reformat so that it's still readable.
5067 When we hit the shlib_event breakpoint, set the calss of shlib_event.
5068 (breakpoint_1): Add "shlib events" as a breakpoint type.
5069 Print the shlib_event breakpoint like other breakpoints.
5070 (create_solib_event_breakpoint): New function.
5071 (breakpoint_re_set_one): Handle solib_event breakpoints.
5072 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
5073 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
5075 (create_solib_event_breakpoint): Declare.
5076 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
5077 (normal_stop): Inform the user when the inferior stoped due
5078 to a shared library event.
5079 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
5080 to control whether or not gdb continues the inferior or stops it when
5081 a shared library event occurs.
5082 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
5083 * somsolib.c (TODO list): Update.
5084 (som_solib_create_inferior_hook): Arrange for gdb to be notified
5085 when significant shared library events occur.
5086 * hppa-tdep.c (find_unwind_entry): No longer static.
5088 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
5090 * printcmd.c (print_insn): Pass fprintf_unfiltered to
5091 INIT_DISASSEMBLE_INFO.
5092 start-sanitize-gdbtk
5093 * gdbtk.c (gdb_disassemble): Likewise.
5096 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
5098 * remote.c (remotebreak): New GDB variable.
5099 (remote_break): New global.
5100 (remote_interrupt): Send a break instead of ^C if remote_break.
5101 * NEWS: Describe the new variable.
5103 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
5105 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
5107 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
5109 * hp300ux-nat.c (getpagesize): Remove unused function
5110 fetch_core_registers.
5111 (hp300ux_core_fns): Remove, is unused.
5112 (_initialize_core_hp300ux): Remove, is unused.
5113 (gdbcore.h): Remove #include, no longer needed.
5115 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
5117 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
5118 ptrace bug in aix4.1.3 on the rs6000.
5120 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
5122 * remote-hms.c (hms_ops): Add value for to_thread_alive.
5123 * remote-nindy.c (nindy_ops): Ditto.
5124 * remote-udi.c (udi_ops): Ditto.
5126 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
5128 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
5129 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
5130 pmon_load_fast): New functions. Support for the PMON monitor world.
5131 (common_open): New function to merge support for different monitors.
5132 (mips_open): Use common_open().
5133 (mips_send_command): New function.
5134 (mips_send_packet): Scan out-of-sequence packets.
5135 (mips_enter_debug, mips_exit_debug): New functions.
5136 (pmon_ops): New target definition structure.
5138 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
5140 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
5141 specified on the make command line (via make LIBS=xxx).
5143 * configure.in (enable-gm): magic.o -> gmagic.o.
5146 start-sanitize-gdbtk
5147 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
5149 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
5150 (add_expr): Changes from create_expr_window.
5151 (create_command_window): Set focus.
5152 (delete_expr): Rewrote.
5153 (expr_update_button): New proc.
5154 (add_expr): Put bindings on FocusIn, FocusOut.
5155 Don't allow .file_popup to be torn off.
5158 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
5160 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
5161 is set but there are no psymtabs.
5163 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
5165 * dsrec.c (load_srec): Remove unused variable.
5166 * monitor.c (monitor_expect): Don't expect a ^C to echo.
5167 * serial.c (serial_open): Add parallel interface.
5168 * sh3-rom.c (parallel, parallel_in_use): New.
5169 (sh3_load): If parallel_in_use, download though the
5171 (sh3_open): Open parallel port if specified.
5172 (sh3_close): New function.
5173 (_inititalize_sh3): Add sh3_close hook and documentation.
5174 * monitor.c (monitor_close): Export.
5175 * monitor.h (monitor_close): Add prototype.
5177 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
5179 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5180 * remote.c (remotetimeout): New GDB variable, use to set the
5181 remote timeout for reading.
5183 start-sanitize-gdbtk
5184 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
5186 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
5187 (update_listing): Use lassign. Use "see" to scroll. Don't need
5188 screen_top, screen_bot, screen_height.
5189 (update_assembly): Use "see" to scroll.
5190 (textscrollproc): Removed.
5191 (create_file_win): Don't use textscrollproc.
5192 (asmscrollproc): Removed.
5193 (create_asm_window): Don't use asmscrollproc.
5194 (create_asm_win): Ditto.
5195 (screen_height, screen_top, screen_bot): Removed.
5196 (run_editor): New proc.
5197 (build_framework): Use it.
5198 (create_file_win, create_source_window): Don't use textscrollproc.
5199 (create_breakpoints_window): Set -xscrollcommand on canvas.
5200 (not_implemented_yet): Default button is 0.
5201 (delete_char): Don't use tk_textBackspace.
5202 (create_command_window): Allow Tk bindings to fire after deleting
5204 (create_command_window): Make Delete delete left, not right.
5207 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
5209 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
5210 to get "struct core_fns" defined.
5211 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
5212 Are dependent upon gdbcore_h.
5214 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
5216 * symfile.c (decrement_reading_symtab): New function.
5217 * symfile.c, symtab.h (currently_reading_symtab): New variable.
5218 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
5219 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
5220 currently_reading_symtab (since that could infinitely recurse).
5222 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
5224 * stabsread.c (read_struct_type): Trivial simplification.
5226 * stabsread.c (define-symbol): Use invisible references
5227 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
5228 * valops.c (call_function_by_hand): Likewise.
5229 * eval.c (evaluate_subexp_standard): When known, use the formal
5230 parameter type as the expected type when evaluating arg expressions.
5231 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
5233 start-sanitize-gdbtk
5234 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
5236 * main.c (main): Disable window interface if --help or --version
5239 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
5241 Changes in sync with expect:
5242 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
5244 * aclocal.m4: Replaced with version from expect.
5245 * configure: Regenerated.
5248 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5250 * configure.in, configure: Recognize rs6000-*-aix4*.
5251 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
5252 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
5253 * config/rs6000/xm-aix4.h: New file.
5254 * config/xm-aix4.h: New file.
5256 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
5258 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5259 * gdbserver/low-linux.c: New file.
5260 * remote.c (remote_read_bytes): Fix aborts on larger packets.
5262 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
5264 * stabsread.c (define_symbol): If register value is too large,
5265 tell what it is and what max is.
5267 start-sanitize-gdbtk
5268 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
5270 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
5271 gdbtk_tcl_flush): Use "see", not "yview".
5272 (gdbtk_tcl_query): Use questhead bitmap.
5273 various: Always wrap condition of 'if' in {...}.
5274 (add_breakpoint_frame): Set -value on radiobuttons.
5275 (lassign): New proc.
5276 (add_breakpoint_frame): Use lassign, not series of assignments.
5277 (decr): Made faster.
5278 (interactive_cmd): Use "see", not "yview".
5279 (not_implemented_yet): Use warning bitmap.
5280 (update_expr): Don't allow $expr to be evalled by Tcl.
5281 (create_expr_window): Don't use "focus".
5282 (delete_char, delete_line): Define globally.
5283 (delete_line, delete_char, create_command_window, update_autocmd,
5284 build_framework, create_asm_win, create_file_win): Use "see", not
5286 (create_copyright_window, center_window, bind_widget_after_class):
5288 (FSBox,create_command_window, create_autocmd_window): Binding
5290 (textscrollproc): Define globally.
5291 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
5292 Home, End, Up, and Down are all defined by Tk.
5293 (apply_filespec): Use error bitmap in dialog.
5294 (files_command): Don't use tk_listboxSingleSelect.
5295 (files_command): Don't use "uniq" to remove duplicates from a
5297 (update_assembly): Use lassign.
5298 (create_asm_win): Removed redundant bindings.
5299 (listing_window_button_1, file_popup_menu): Use tk_popup.
5300 (ButtonRelease-1 binding): Just remove tag from window; rest
5303 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
5304 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
5305 (gdbtk_call_command): Ditto.
5308 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
5310 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
5311 enum namespace -> enum_namespace change.
5313 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
5315 * ch-exp.c (parse_primval): In case ARRAY, add missing
5318 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
5320 * remote-mips.c (mips_receive_header): Recognize \012 instead
5321 of \n, but write \n when program sends a \012.
5322 * ser-mac.c (mac_input_buffer): Increase size of buffer.
5324 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
5326 * infptrace.c (initialize_infptrace): Move function out of
5327 #ifdef conditional; put code within the function inside an
5330 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
5331 arguments. Sorting is now dependent on OBJF_REORDERED. All
5332 callers/references changed.
5333 * dbxread.c (read_ofile_symtab): Correctly determine value for
5334 last_source_start_addr for reordered executables.
5335 (process_one_symbol): Handle N_FUN with no name as an end of
5337 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
5338 is the high text address for a psymtab.
5339 (case N_SO): Likewise.
5340 (case N_FUN): Handle N_FUN with no name as an end of function
5342 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
5343 at the same address rather than a random subset of them.
5344 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
5345 * elfread.c (elf_symfile_init): Similarly.
5346 * somread.c (som_symfile_init): Similarly.
5347 * xcoffread.c (xcoff_symfile_init): Similarly.
5349 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
5351 * stack.c (print_stack_frame print_frame_info) symmisc.c
5352 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
5353 that catch_errors doesn't get blindsided by QUIT and lose the
5354 cleanup chain. This fixes a problem where ^C while in a
5355 user-defined command sometimes leaves instream NULL and causes a
5356 segfault in command_loop.
5358 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5360 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
5362 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
5364 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
5365 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
5366 srec.o renamed to dsrec.o.
5368 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
5370 * breakpoint.c (remove_breakpoint): Change error to warning so
5371 that hardware watchpoint removal problems won't leave breakpoint
5372 traps in the target.
5373 start-sanitize-gdbtk
5374 * configure configure.in: Make --enable-gdbtk be the default.
5376 * remote-e7000.c (e7000_insert_breakpoint,
5377 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
5379 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
5380 compensate for e7000 maladjustment.
5381 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
5382 which prevented hardware watchpoints from working.
5384 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
5386 * infptrace.c (udot_info): New function.
5387 (PT_*): Define each individually if that one is not defined.
5388 * rs6000-nat.c (kernel_u_size): New function
5389 Include <sys/user.h> for "struct user"
5390 * alpha-nat.c (kernel_u_size): New function.
5391 Include <sys/user.h> for "struct user"
5392 * sparc-nat.c (kernel_u_size): New function.
5393 Include <sys/user.h> for "struct user"
5394 * i386b-nat.c (kernel_u_size): New function.
5395 * i386v-nat.c (kernel_u_size): New function.
5396 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
5397 (kernel_u_size): Declare.
5398 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
5399 (kernel_u_size): Declare.
5400 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
5401 (kernel_u_size): Declare.
5402 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
5403 (kernel_u_size): Declare.
5404 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
5405 (kernel_u_size): Declare.
5407 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
5409 * mdebugread.c (mylookup_symbol): enum namespace becomes
5410 enum_namespace type.
5411 * symfile.c (add_psymbol_to_list)
5412 (add_psymbol_addr_to_list): Ditto.
5413 * symtab.c (lookup_partial_symbol): Ditto.
5414 (lookup_symbol): Ditto.
5415 (lookup_block_symbol): Ditto.
5416 * win32-nat.c (handle_load_dll): Use incoming dll base.
5417 (child_wait): Catch DLL load errors.
5418 (create_child_inferior): Translated between paths correctly.
5420 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
5422 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
5423 from NUM_REGS to get number of general registers that we care about.
5424 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
5425 of number of general regs and number of floating point regs.
5427 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
5429 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
5430 (SKIP_TRAMPOLINE_CODE): New.
5431 * config/i386/xm-win32.h (CANT_FORK): Deleted.
5432 (SLASH*) Changed to use unix style slash.
5433 * symtab.h (namespace enum): becomes typedef to avoid namespace
5435 * infcmd.c (path_command): Use empty string if PATH name not set.
5436 * i386-tdep.c (skip_trampoline_code): New function.
5437 * srec.c: Renamed dsrec.c to avoid filename collision.
5438 * Makefile.in: Cope with renaming.
5440 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
5442 * symmisc.c (print_objfile_statistics): Print memory use statistics
5443 for objfile psymbol, symbol, and type obstacks.
5445 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
5447 * config/mips/nm-irix5.h: Restore.
5448 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
5449 from Lee Iverson <leei@ai.sri.com>.
5450 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
5451 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
5453 For older changes see ChangeLog-95
5459 version-control: never