2 Sun Dec 22 15:52:25 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
4 * d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where
5 some breakpoints weren't being set.
8 Sat Dec 21 12:57:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10 * config/mips/tm-mips.h (PC_IN_CALL_DUMMY): Removed, the default
11 definition in inferior.h is sufficient.
12 * mips-tdep.c (mips_pc_in_call_dummy): Ditto.
13 (mips_push_arguments): Make sure that the stack is aligned to a
14 multiple of 8 after the arguments are pushed.
15 Structures are always passed by value in the old ABI.
16 Adjust argument register value on big endian targets when passing
17 a value whose length is less than the register size.
18 Write stack arguments with a single write_memory call.
19 (mips_pop_frame): Use frame_saved_regs instead of proc_desc to
20 decide which registers have to be restored.
22 * irix5-nat.c (fill_gregset): Sign extend registers before
23 filling in the gregset structure.
25 Fri Dec 20 11:06:03 1996 Stu Grossman (grossman@critters.cygnus.com)
27 * mswin/genmakes: Don't define _DEBUG. This breaks wingdb.
30 Thu Dec 19 19:42:44 1996 Michael Meissner <meissner@tiktok.cygnus.com>
32 * v850-tdep.c (v850_scan_prologue): Deal with -mep shorting
33 register saves by using the ep register.
37 Thu Dec 19 15:57:16 1996 Doug Evans <dje@canuck.cygnus.com>
39 * m32r-tdep.c (m32r_frame_find_saved_regs): Fix thinko in arg def.
42 Thu Dec 19 09:38:56 1996 Mark Alexander <marka@cygnus.com>
44 * values.c (unpack_double): Make it compile with MSVC++ 2.x.
45 * remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
47 (common_open): Fix help string.
49 Wed Dec 18 23:01:32 1996 Stan Shebs <shebs@andros.cygnus.com>
51 * mpw-make.sed: Use NewFolderRecursive for installation.
53 Sat Dec 14 20:50:01 1996 Mark Alexander <marka@cygnus.com>
55 * mips-tdep.c (mips_push_arguments): Handle floating point args.
56 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
57 correctly for PIC on Irix 5.
59 Sat Dec 14 09:52:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
61 * i386-tdep.c (i386_frame_find_saved_regs): Handle zero return
62 from get_pc_function_start gracefully.
64 Sat Dec 14 00:43:57 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
66 * c-exp.y (qualified_name): Replace explicit check for valid
67 destructor name with call to destructor_name_p.
69 * c-lang.h, c-typeprint.c (cp_type_print_method_args): Removed,
72 * c-typeprint.c (c_type_print_varspec_prefix, c_type_print_base):
73 Replace remaining fprintf_unfiltered calls with their filtered variant.
74 (c_type_print_base): Do not print return type for destructors from
76 Replace cp_type_print_method_args with cplus_demangle call to get
77 consistent type output for stubbed and unstubbed methods.
79 * cp-valprint.c (cp_print_class_method): Replace
80 cp_type_print_method_args with cplus_demangle call to get consistent
81 type output for stubbed and unstubbed methods.
83 * gdbtypes.c, gdbtypes.h (get_destructor_fn_field): New function
84 to find the destructor field indices for a type.
86 * gdbtypes.h (struct type): Clarify comments for vptr_basetype
88 (struct fn_field): Remove args field, no longer used.
90 * symtab.c (decode_line_1), valops.c (value_struct_elt,
91 check_field_in): Use get_destructor_fn_field to find the destructor
92 field indices instead of assuming that the compiler passes the member
93 function fields in a specific order.
95 * symtab.c (find_methods): Pass NULL instead of SYMBOL_BLOCK_VALUE
97 (list_symbol): Replace cp_type_print_method_args with cplus_demangle
98 call in zapped out code and explain why this code is zapped out.
100 Thu Dec 12 13:29:14 1996 Michael Meissner <meissner@tiktok.cygnus.com>
102 * config/powerpc/ppc{,le}-sim.mt (SIM): Add the simulator common
103 library ../sim/common/libcommon.a.
105 Wed Dec 11 18:51:35 1996 Mark Alexander <marka@cygnus.com>
107 * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
109 Wed Dec 11 11:15:08 1996 Doug Evans <dje@canuck.cygnus.com>
111 * monitor.c (monitor_load): Add support for load address argument.
112 * dsrec.c: #include <time.h>.
113 (load_srec): New argument load_offset. Print download stats.
114 * srec.h (load_srec): Update prototype.
115 * sh3-rom.c (sh3_load): Update call to load_srec.
117 Mon Dec 9 17:34:05 1996 Geoffrey Noer <noer@cygnus.com>
119 * config/mn10300/tm-mn10300.h: more small register fixes
120 * mn10300-tdep.c: filled in from another target
122 Mon Dec 9 17:12:19 1996 Doug Evans <dje@canuck.cygnus.com>
124 * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.
126 Mon Dec 9 15:58:51 1996 Mark Alexander <marka@cygnus.com>
128 * config/mips/tm-mips.h: Get rid of call-dummy code.
129 Minor changes to make pre-ANSI compilers happy.
130 * mips-tdep.c: Minor changes to make pre-ANSI compilers happy.
131 (mips_push_arguments): Rewrite to partially support EABI.
132 (mips_pc_in_call_dummy): New function.
133 * infcmd.c: Include symfile.h to get prototype of entry_point_address,
134 which fixes 64-bit sign extension bug on MIPS.
136 Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
138 * config/mn10300/tm-mn10300.h: fix register names
139 * mn10300-tdep.c: new skeleton tdep for mn10300
141 Sun Dec 8 18:02:57 1996 Doug Evans <dje@canuck.cygnus.com>
143 * remote-sim.h: Update some comments.
144 * remote-sim.c (gdb_os_error): New function.
145 (init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
146 (gdb_os_printf_filtered): Use gdb_stdout, not stdout.
148 Sun Dec 8 00:36:31 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
150 * irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
151 from O32 and N32 ABI.
152 (xfer_link_map_member): Work around problem with alignments
153 in struct obj when compiling GDB under N32 ABI.
156 Thu Dec 5 23:30:44 1996 Stan Shebs <shebs@andros.cygnus.com>
158 * d10v-tdep.c: Add support for examination and interpretation
159 of instruction trace buffer.
160 (trace, untrace, info trace, tdisassemble): New commands.
163 Thu Dec 5 14:06:23 1996 Doug Evans <dje@canuck.cygnus.com>
165 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER): Undef.
166 (TARGET_BYTE_ORDER_SELECTABLE): Define.
168 ({BIG,LITTLE}_BREAKPOINT): Define.
169 (TM_PRINT_INSN_MACH): Redefine for sparclet.
171 Wed Dec 4 16:34:05 1996 Geoffrey Noer <noer@cygnus.com>
173 * config/mn10300/mn10300.mt, config/mn10300/tm-mn10300.h: New.
175 Tue Dec 3 13:02:08 1996 Fred Fish <fnf@ninemoons.com>
177 * infptrace.c (store_inferior_registers): Move some common code out
178 to store_register, like fetch_inferior_registers & fetch_register.
179 (store_register): New function, from store_inferior_registers.
180 (fetch_inferior_registers, fetch_register): Minor code tweaks to
181 make {fetch,store}_inferior_registers and {fetch,store}_register
182 routines as similar in structure as possible.
183 (fetch_inferior_registers, store_inferior_registers): Eliminate
184 local variable numregs and just use ARCH_NUM_REGS directly.
186 Tue Dec 3 11:38:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
188 * blockframe.c: add macro USE_GENERIC_DUMMY_FRAMES to enable/disable
189 code for generic call_dummy frames.
190 * config/h8300/tm-h8300.h: turn on USE_GENERIC_DUMMY_FRAMES
192 * config/m32r/tm-m32r.h: Ditto.
194 * config/sh/tm-sh.h: Ditto.
196 * config/v850/tm-v850.h: Ditto.
199 Sun Dec 1 00:41:47 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
201 * vax-tdep.c (vax_print_insn, print_insn_arg): Use info functions
202 for printing. From Valeriy Ushakov <uwe@ptc.spbu.ru>.
204 Sun Dec 1 00:40:46 1996 Geoffrey Noer <noer@cygnus.com>
206 * configure.tgt: Add new mn10300 entry.
208 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
210 Add support for Irix 6.2 native O32 and N32 ABI.
212 * config.in, configure.in, configure: Check for <objlist.h>.
213 * configure.tgt: Handle mips*-sgi-irix6* like irix5 for now.
215 * cp-valprint.c (cp_print_value_fields): Use SYMBOL_VALUE_ADDRESS
216 instead of SYMBOL_BLOCK_VALUE to get the address of a static member.
218 * dwarf2read.c: Turn warnings and recoverable errors into complaints,
219 add new complaints where appropriate.
221 (struct line_head): Change line_base from char to int to avoid
222 problems with compilers whose plain char is represented by an
224 (struct partial_die_info): Add is_declaration field.
225 (dwarf2_tmp_obstack): New obstack for allocating temporary storage
226 used during symbol reading.
227 (cu_header_offset): New variable for resolving relative reference
229 (optimized_out, basereg, islocal, frame_base_reg, frame_base_offset):
230 New interface variables for decode_locdesc.
231 (struct dwarf2_pinfo): New structure for communication between
232 psymtab and symtab reading, passed via pst->read_symtab_private.
233 (dwarf2_has_info, dwarf2_build_psymtabs): Accept objects files
234 without line number sections.
235 (dwarf2_build_psymtabs_hard): Initialize temporary obstack
237 Allocate and initialize pst->read_symtab_private.
238 Relocate pst->textlow and pst->texthigh with baseaddr.
239 (scan_partial_symbols): Do not add DW_AT_declaration symbols
240 to the partial symbol table.
241 Add file scope enumerator symbols to the partial symbol table.
242 Fix typo in highpc computation.
243 If we didn't find a lowpc, set it to highpc to avoid complaints
245 (add_partial_symbol): Relocate symbol values with baseaddr.
246 Add static DW_TAG_subprogram and DW_TAG_variable symbols to the
247 minimal symbol table.
248 Obtain symbol values for DW_TAG_variable symbols from the location
249 descriptor, skip symbols with missing location desciptors.
250 Skip symbols for aggregate types without children.
251 Handle enumerator symbols.
252 (dwarf2_psymtab_to_symtab): Issue symbol reading message if verbose.
253 (psymtab_to_symtab_1): Set local variables from
254 pst->read_symtab_private, set cu_header_offset and baseaddr.
255 Initialize temporary obstack for symbol reading, initialize
256 buildsym and add a cleanup to really_free_pendings.
257 Relocate highpc with baseaddr when calling end_symtab.
258 If the compilation is from a C file generated by language
259 preprocessors, do not set the symtab language if it was already
260 deduced by start_subfile.
261 Removed verbose sorting symbol table message.
262 (process_die): Handle DW_TAG_ptr_to_member_type and
263 DW_TAG_reference_type.
264 Use read_subroutine_type to get the function type for
265 DW_TAG_subprogram before calling read_func_scope.
266 (read_file_scope): Initialize file name to <unknown>, start_subfile
267 expects a non-NULL name.
268 If we didn't find a lowpc, set it to highpc to avoid complaints
270 Relocate lowpc and highpc with baseaddr.
271 Get rid of Irix6.2 native cc compile machine prefix in comp_dir.
272 Zero out ftypes for each new compilation unit (may be different
273 language or different objfile).
274 Accept compilation units without line number information, pass
275 comp_dir to decode_lines.
276 (read_func_scope): Initialize function name to <unknown> to avoid
277 core dumps when DW_AT_name is missing.
278 Relocate lowpc and highpc with baseaddr.
279 Handle DW_AT_frame_base, keep result for DW_OP_fbreg operations.
280 Pass function type to new_symbol.
281 (read_lexical_block_scope): Relocate lowpc and highpc with baseaddr.
282 (read_structure_scope): Set TYPE_TAG_NAME, not TYPE_NAME.
283 Handle DW_TAG_class_type.
284 Copy fields to type_obstack, release temporary storage for fields.
285 Don't add symbol if die is a stub die and has no children.
286 Handle C++ static member fields.
287 (read_enumeration): Set TYPE_TAG_NAME, not TYPE_NAME.
288 Copy fields to type_obstack, release temporary storage for fields.
289 Let new_symbol handle the symbol creation for enumerators
290 instead of handcrafting a symbol.
291 Determine signedness of enum type from enumerators.
292 (dwarf_read_array_type): Handle variable length arrays.
293 Use lookup_pointer_type instead of handcrafting a type.
294 Create array type only if a DW_TAG_subrange_type was found.
295 (read_tag_pointer_type, read_tag_reference_type):
296 Use lookup_pointer_type and lookup_reference_type instead
297 of handcrafting a type.
298 (read_tag_ptr_to_member_type): New function to handle
299 DW_TAG_ptr_to_member_type.
300 (read_subroutine_type): Handle parameter dies.
301 Use lookup_function_type instead of handcrafting a type.
302 (read_typedef): Allocate a TYPE_CODE_TYPEDEF type for the typedef.
303 (read_base_type): If the type has a name, use init_type to create
304 a new type instead of second guessing a fundamental type.
305 (read_comp_unit): Reset die reference table before building
307 (dwarf2_read_section): Read section contents into psymbol_obstack.
308 (dwarf2_read_abbrevs): Handle unterminated abbreviations
309 for a compile unit gracefully.
310 (read_partial_die): Zero partial die before reading its info.
311 Handle DW_AT_declaration.
312 Fix typo in handling of DW_FORM_block4.
313 (read_full_die): Fix typo in handling of DW_FORM_block4.
314 (read_1_signed_byte, read_2_signed_bytes, read_4_signed_bytes):
315 New routines to get signed values from a buffer.
316 (read_n_bytes, read_string): Allocate storage from the temporary
317 obstack. If the host char size permits it, return pointer
318 to buffer instead of allocating storage.
319 (set_cu_language): Handle DW_LANG_Mips_Assembler.
320 (dwarf_attr): Return NULL if reference die for DW_AT_specification
321 or DW_AT_abstract_origin die is not found.
322 (record_minimal_symbol): Removed, replaced with a direct call to
323 prim_record_minimal_symbol, it now handles saving the string itself.
324 (convert_locdesc): Removed, partial symtab reading now uses
326 (dwarf_attr): Use dwarf2_get_ref_die_offset to get the absolute
327 offset for the die reference.
328 (dwarf_decode_lines): Complain if the line section info is missing.
329 Use read_1_signed_byte to extract lh.line_base to avoid
330 problems with compilers whose plain char is represented by an
332 Add cleanups for allocated temporary storage.
333 Start a subfile for the first file in the state machine.
334 Fix off by one problem with dirs.dirs access.
335 Use comp_dir when directory index is 0.
336 Support multiple sequences (from Jason Merrill <jason@cygnus.com>).
337 (dwarf2_start_subfile): Try to keep line numbers from identical
338 absolute and relative file names in a common subfile.
339 (new_symbol): Allocate symbol and symbol name on the symbol_obstack.
340 Set SYMBOL_LINE from DW_AT_decl_line if present.
341 Set SYMBOL_TYPE from passed type if not NULL.
342 Change DW_TAG_variable symbol types with missing type entries
344 Handle optimized_out, offreg and islocal storage classes.
345 Add external symbols with type information whose address isn't
346 known as LOC_UNRESOLVED symbols.
347 Synthesize typedefs for C++ classes, structs, unions and enumerations.
348 Handle DW_TAG_enumerator symbols, complain for unrecognized
350 (die_type): A missing DW_AT_type represents a void type.
351 Use dwarf2_get_ref_die_offset to get the absolute offset for
353 (die_containing_type): New function to build type from
354 DW_AT_containing_type attribut.
355 (read_type_die): Handle DW_TAG_ptr_to_member_type.
356 Treat DW_TAG_subprogram like DW_TAG_subroutine_type.
357 (dwarf_base_type): Fix typo with creation of FT_UNSIGNED_SHORT
359 (create_name): Removed, symbol name allocation is now done
361 (dump_die): Use print_address_numeric to print a CORE_ADDR.
362 (dwarf2_empty_die_ref_table): New function to clear the die
364 (dwarf2_get_ref_die_offset): New function to get the absolute
365 die offset from a die reference attribute.
366 (decode_locdesc): Complete rewrite using a stack, code mostly
367 borrowed from dwarfread.c:locval.
368 (dwarf_alloc_type): Removed, replaced by direct calls to alloc_type.
369 (dwarf_alloc_block): Allocate block on temporary obstack.
371 * elfread.c (elf_symtab_read): When handling Irix dynamic symbols,
372 skip section name symbols and relocate all others.
373 (elf_symfile_read): Build dwarf2 psymtab even if offset is non-zero.
375 * irix5-nat.c (fetch_core_registers): Handle core_reg_sect
376 from N32 executables. Call registers_fetched after extracting
378 (obj_list_variant, struct link_map, LM_OFFSET, LM_ADDR): New
379 definitions to enable support of O32 and N32 format objlists.
380 (struct so_list): New members offset, so_name and lmstart to
381 eliminate dependencies from the objlist format used.
382 (solib_map_sections, symbol_add_stub, solib_add,
383 info_sharedlibrary_command, solib_address, clear_solib): Use
384 so_name and LM_OFFSET.
385 (first_link_map_member): Rewrite to enable support of O32 and N32
387 (next_link_map_member, xfer_link_map_member): New functions to
388 support O32 and N32 format objlists.
389 (find_solib): Use first_link_map_member, next_link_map_member and
390 xfer_link_map_member.
391 (solib_create_inferior_hook): Use TARGET_SIGNAL_* instead of
394 * mdebugread.c (parse_partial_symbols, handle_psymbol_enumerators):
395 Pass CORE_ADDR variant to add_psymbol_to_list.
397 * mips-tdep.c (heuristic_proc_desc): Stop examining the prologue
398 if we encounter a positive stack adjustment. Handle `move $30,$sp'.
399 Handle `sd reg,offset($sp)' for 32 bit ABIs.
401 * symmisc.c (dump_msymbols, print_partial_symbols): Use
402 print_address_numeric to print a SYMBOL_VALUE_ADDRESS.
403 (dump_symtab): Print compilation directory if it is not NULL.
405 * valops.c (search_struct_field, value_struct_elt_for_reference):
406 Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_BLOCK_VALUE to get the
407 address of a static member.
409 Thu Nov 28 00:46:24 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
411 * vax-tdep.c (vax_print_insn): Made static, modified to take
412 disassemble_info as parameter.
413 (_initialize_vax_tdep): New function to initialize tm_print_insn
416 Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
418 * blockframe.c: Remove old-style CALL_DUMMY code.
419 * h8300-tdep.c, config/h8300/tm-h8300.h: Ditto.
421 * m32r-tdep.c, config/m32r/tm-m32r.h: Ditto.
423 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
425 * v850-tdep.c, config/v850/tm-v850.h: Ditto.
428 Wed Nov 27 10:32:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
430 * breakpoint.c: DELETE command will not delete CALL_DUMMY breakpoint.
431 * blockframe.c: Add target-independant support for managing
432 CALL_DUMMY frames on the host side.
433 * frame.h: Declarations for generic CALL_DUMMY frame support.
434 * h8300-tdep.c: Add target function calls using generic frame support.
435 * config/h8300/tm-h8300.h: config for generic target function calls.
437 * m32r-tdep.c: Add target function calls using generic frame support.
438 * config/m32r/tm-m32r.h: config for generic target function calls.
440 * sh-tdep.c: Add target function calls using generic frame support.
441 * config/sh/tm-sh.h: config for generic target function calls.
443 * v850-tdep.c: Add target function calls using generic frame support.
444 * config/v850/tm-v850.h: config for generic target function calls.
446 * valops.c: ADD PUSH_RETURN_ADDRESS so that it doesn't have to be
447 done by PUSH_ARGUMENTS when there's no CALL_DUMMY.
449 Tue Nov 26 19:21:35 1996 Mark Alexander <marka@cygnus.com>
451 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
452 (mips_addr_bits_remove): Declare.
453 * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post
454 errors when hitting breakpoints during inferior function calls
456 (fix_sign_extension): Make public, rename to mips_addr_bits_remove.
457 * utils.c (paddr_nz, preg_nz): New functions, similar to
458 paddr and preg but don't print leading zeroes.
459 * defs.h (paddr_nz, preg_nz): Declare.
460 * remote-mips.c: Use paddr_nz instead of paddr throughout
461 to reduce packet size.
462 (pmon_end_download): Improve timeout error handling.
464 Tue Nov 26 17:21:37 1996 Ian Lance Taylor <ian@cygnus.com>
466 * configure: Rebuild with autoconf 2.12.
468 Mon Nov 25 13:17:16 1996 Fred Fish <fnf@ninemoons.com>
470 From: Paul Eggert <eggert@twinsun.com>
471 * remote-bug.c (wait_strings): Avoid creating a trigraph.
474 Fri Nov 22 15:55:22 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
476 * valops.c (value_at, value_fetch_lazy): Put in D10V call
477 to fix up address pointers.
478 * values.c (value_from_longest): Removed previous d10v changes.
479 * config/d10v/tm-d10v.h (TARGET_PTR_BIT): Change to 4 bytes.
482 Fri Nov 22 10:06:19 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
484 * config/i386/nm-i386v4.h (LOSING_POLL): Define, needed for
487 Thu Nov 21 19:13:58 1996 Mark Alexander <marka@cygnus.com>
489 * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN.
490 (common_breakpoint): Use paddr instead of %x to print 64-bit values.
491 (heuristic_proc_desc): Add tests for 64-bit instructions.
492 (init_extra_frame_info, mips_push_arguments): Recognize additional
494 * remote-mips.c: Extend DDB target to allow TFTP downloads.
495 * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS):
498 Wed Nov 20 19:09:16 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
500 * infcmd.c (do_registers_info): Call val_print with the
501 virtual buf instead of the raw buf. Needed for REGISTER_CONVERT
502 to work with non-floating point regs.
505 * d10v-tdep.c (d10v_skip_prologue): If we have line debugging
506 information, then the end of the prologue should the first
507 assembly instruction of the first source line.
509 * values.c (value_from_longest): Put in D10V call to
510 fix up address pointers.
512 * config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified.
513 (REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM.
514 (REGISTER_CONVERTIBLE): Make PC and SP convertible.
515 (REGISTER_CONVERT_TO_VIRTUAL): Define.
516 (REGISTER_CONVERT_TO_RAW): Define.
517 (D10V_MAKE_DADDR): Define.
518 (D10V_MAKE_IADDR): Define.
520 Wed Nov 20 16:15:15 1996 Geoffrey Noer <noer@cygnus.com>
522 * config/i386/cygwin32.mh: add MMALLOC_CFLAGS = -I$(MMALLOC_SRC)
523 -DMMCHECK_FORCE=1 so memory checks are loaded for cygwin32 gdb
525 Wed Nov 20 00:43:09 1996 Doug Evans <dje@canuck.cygnus.com>
527 * callback.h: Delete, moved to ../include.
528 * callback.c: Delete, moved to ../sim/common.
529 * Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
530 (callback.o): Delete rule.
531 * remote-sim.h: No longer include callback.h.
532 (sim_callback_write_stdout): Delete prototype.
533 * remote-sim.c (init_callbacks,end_callbacks): New functions.
534 (gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
535 (gdb_callback, callbacks_initialized): New static globals.
536 (gdbsim_open): Call init_callbacks.
537 (gdbsim_close): Call end_callbacks.
538 (simulator_command): Call init_callbacks.
540 * config/h8300/h8300.mt (SIM): Change to ../sim/h8300/libsim.a.
541 * config/h8500/h8500.mt (SIM): Change to ../sim/h8500/libsim.a.
544 Tue Nov 19 09:26:14 1996 Tom Tromey <tromey@cygnus.com>
546 * gdbtk.c (gdbtk_readline): Fix memory leak.
548 Mon Nov 18 23:43:05 1996 Tom Tromey <tromey@cygnus.com>
550 Fixes for Tcl 7.6 / Tk 4.2:
551 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
552 Remove old fileselect code.
553 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
556 Mon Nov 18 15:58:05 1996 Jim Wilson <wilson@cygnus.com>
558 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Change unsigned LONGEST
561 Fri Nov 15 15:34:18 1996 Fred Fish <fnf@cygnus.com>
563 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
564 * procfs.c (wait_fd): Handle EINTR error return from poll
565 by restarting the poll.
566 * defs.h (PIDGET): Define a default version that just
567 returns its argument unchanged.
568 * inflow.c (terminal_init_inferior): Eliminate #ifdef
569 of PIDGET and fold both alternatives into common code.
570 (pass_signal): Use PIDGET for pid passed to kill().
572 Thu Nov 14 15:54:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
574 * utils.c (paddr,preg): Use a static variable initialized to 32
575 instead of doing addr>>32 to eliminate a warning produced by GCC
579 * config/d10v/tm-d10v.h (ULONGEST): Define.
582 Tue Nov 12 12:25:27 1996 Jim Wilson <wilson@cygnus.com>
584 * c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
585 recursive call to type_print.
587 Tue Nov 12 12:18:29 1996 Jim Wilson <wilson@cygnus.com>
589 * defs.h (ULONGEST): New macro.
590 * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
591 corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
592 m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
593 valarith.c, valops.c, values.c, config/gould/tm-np1.h,
594 config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
595 mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
596 Change all occurances of unsigned LONGEST to ULONGEST.
598 * configure.host (mips-sgi-irix6): Add.
600 Tue Nov 12 12:16:40 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
602 * sh-tdep.c: Add functionality for target function calls.
603 * config/sh/tm-sh.h: Add support for target function calls.
606 Tue Nov 12 12:06:58 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
608 * m32r-tdep.c: Add functionality for target function calls.
609 * valops.c: Small change to support target function calls.
610 * config/m32r/tm-m32r.h: Add support for target function calls.
613 Mon Nov 11 17:15:59 1996 Geoffrey Noer <noer@cygnus.com>
615 * defs.h: Modify Nov 11 12:59:00 change so _MSC_VER is checked
617 * win32-nat.c: Fix Nov 11 12:59:00 change (windows.h should
618 be included instead of windefs.h for compilers other than
620 * mswin/windefs.h: Remove ^Ms and change C++ style comments
623 Mon Nov 11 14:32:38 1996 Mark Alexander <marka@cygnus.com>
625 * utils.c (get_cell): Fix off-by-one bug.
626 * mips-tdep.c (get_frame_pointer, fix_sign_extension):
627 New functions to consolidate common code.
628 (mips_frame_chain, init_extra_frame_info): Use new functions
629 to fix problems with backtrace and finish commands on ddb board.
631 Mon Nov 11 12:59:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
633 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
634 config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
635 * defs.h: Cleanup; add prototypes.
636 * corefile.c: Change FIXME #ifdef
637 * win32-nat.c: Include windefs instead of windows.h.
638 * utils.c: Add routines for printing addresses and registers
641 Sat Nov 9 01:05:10 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
643 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
644 if we encounter a positive stack adjustment.
645 (find_proc_desc): If heuristic_fence_post is non-zero, use
646 heuristic_proc_start to determine the start of a function before
647 calling heuristic_proc_desc.
649 * coffread.c (coff_symtab_read): Change minimal symbol types
650 for C_LABEL symbols from mst_* to mst_file_*.
652 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
654 * configure.in: Handle error message from sun3 native ld when
655 configuring HLDFLAGS.
656 * configure: Regenerated with autoconf.
658 * c-valprint.c (c_value_print): Adjust value address by VALUE_OFFSET.
659 * cp-valprint.c (cp_print_value): Prevent gdb crashes by making sure
660 that the virtual base pointer from an user object still points to
663 * dbxread.c (dbx_symfile_init): Initialize sym_stab_info to
664 clear the recently added header_files fields.
665 (dbx_symfile_finish): Free hfiles[i].vector to avoid storage leak.
667 Fri Nov 8 14:30:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
669 * config/tm-sh.h: Added a missing comma in middle of
672 Fri Nov 8 12:29:51 1996 Stan Shebs <shebs@andros.cygnus.com>
674 * monitor.c: Fix some formatting and comments.
676 * remote-sim.c (simulator_command): Set up callbacks before
677 entering the simulator.
680 Thu Nov 7 15:19:08 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
682 * d10v-tdep.c: Fix some problems with inferior function calls.
683 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
684 a pointer to the dummy's stack instead of just a flag.
688 Tue Nov 5 10:21:02 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
690 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
691 * config/tm-m32r.h: Add framesize and register to extra_frame_info.
694 Tue Nov 5 10:08:07 1996 Stu Grossman (grossman@critters.cygnus.com)
696 * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
697 * mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1): Initialize depth
698 to fix divide-by-zero problem with clicking on source window.
700 Mon Nov 4 00:48:37 1996 Stu Grossman (grossman@critters.cygnus.com)
702 * mswin/recordit: Fix problem with absolute paths.
703 * mswin/recordit: Fix problem with relative paths.
705 Sun Nov 3 18:06:42 1996 Stu Grossman (grossman@critters.cygnus.com)
707 * mswin/{Makefile.in configure configure.in}: New files for
708 configuring wingdb under Unix.
710 Sat Nov 2 03:54:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
712 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
713 missing or zero-sized .text sections properly.
714 * mdebugread.c: Handle scRConst and scSUndefined storage classes.
715 * stabsread.c (scan_file_globals): Try to resolve symbols
716 for shared libraries from the minimal symbol table of the main
720 Fri Nov 1 13:59:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
722 * d10v-tdep.c, config/d10v/tm-d10v.h: Major fixes to support
723 inferior function calls and proper stack backtracing on D10V-EVA
727 Fri Nov 1 10:50:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
729 * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it
731 (GDBSERVER_DEPFILES,TERMCAP): Ditto.
733 * monitor.c (dev_name,targ_ops): Move static variables before
734 first use, to avoid compiler warnings.
737 Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
739 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
740 * configure.tgt: Add entry for m32r target.
741 * monitor.h: Add a flag to tell monitor_store_register to use
742 (val, regno) instead of (regno, val).
743 * monitor.c: Make monitor_store_register honor the above flag.
744 Make monitor_exp ignore DC1/DC3 for m32r.
745 Increase buf size in monitor_dump_regs.
747 Wed Oct 30 18:14:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
749 * m32r-tdep.c, m32r-rom.c: New files.
750 * config/m32r/m32r.mt: New file.
751 * config/m32r/tm-m32r.h: New file.
754 Tue Oct 29 16:56:01 1996 Geoffrey Noer <noer@cygnus.com>
756 * config/i386/xm-cygwin32.h:
757 * config/powerpc/xm-cygwin32.h:
758 add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
761 Tue Oct 29 18:36:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
763 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE):
766 Tue Oct 29 14:59:20 1996 Stan Shebs <shebs@andros.cygnus.com>
768 * TODO: Add item suggesting an "info bfd" command.
771 Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
773 * d10v-tdep.c: Snapshot that supports D10V-EVA board.
775 * config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
776 (TARGET_READ_FP,TARGET_WRITE_FP): Define.
779 Mon Oct 28 17:34:24 1996 Stu Grossman (grossman@critters.cygnus.com)
781 * mswin/genmakes mswin/recordit: New scripts to generate make
784 Sun Oct 27 20:18:04 1996 Mark Alexander <marka@cygnus.com>
786 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
788 * configure.tgt: Modify cases for vr5000 to use new files.
790 Sat Oct 26 07:15:14 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
792 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
794 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
795 the entry to the exit system call to detect termination of the
796 inferior stopped working. Trace termination of the inferior via
797 PRFS_STOPTERM instead.
798 (procfs_init_inferior): Do not trace entry to exit system call
799 if PIOCSSPCACT is defined.
800 (procfs_wait): Handle PR_DEAD event, which signals the termination
801 of the inferior if PRFS_STOPTERM is set.
803 * mdebugread.c (parse_partial_symbols): Ignore stNil section
804 start address symbols.
806 * sparc-tdep.c (get_saved_register): Get saved PC from the
807 frame info if not in innermost frame.
809 Thu Oct 24 10:51:45 1996 Mark Alexander <marka@cygnus.com>
811 * dbxread.c (process_one_symbol): Interpret end-of-function
812 markers correctly; this fixes problem on Vr5000 where all
813 functions in a module had the same address.
814 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
815 Correct for pc-linux-gnu problem in config.guess.
816 * configure: Regenerate.
818 Thu Oct 24 10:06:58 1996 Stu Grossman (grossman@critters.cygnus.com)
820 * dbxread.c: Don't swap symbols in place, since internal and
821 external forms may have different sizes. Don't assume that an
822 internal_nlist has the same layout as an external_nlist. Create
823 symbol for n_strx element so to hide specifics of nlist from
825 * partial-stab.h: Don't reference dbxread symbols directly. Use
826 CUR_SYMBOL_STRX instead.
827 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
830 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
832 * mswin/gdbwin.c (reg_order): Define register order for V850.
833 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
835 * mswin/regdoc.h: Define MAXREGS for V850.
838 Tue Oct 22 16:28:20 1996 Stu Grossman (grossman@critters.cygnus.com)
840 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
841 prologues correctly. First, prologue end is now defined by
842 presence of a branch, jump or call insn. Second, can no longer
843 fix frame offsets because we may not know the offset until after a
844 register has been saved.
845 * (v850_init_extra_frame_info): Fixup frame offsets here because
846 we have all the info at this time.
847 * (v850_frame_chain): Use new calling convention for scan_prologue.
851 Tue Oct 22 10:25:29 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
853 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
854 backtraces and inferior function calls.
857 Tue Oct 22 10:32:46 1996 Stan Shebs <shebs@andros.cygnus.com>
859 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
860 (@HLDFLAGS@): Always edit out.
862 Mon Oct 21 18:17:08 1996 Mark Alexander <marka@cygnus.com>
864 * mdebugread.c (parse_partial_symbols): Fix 64-bit
865 sign-extension problems in calculating psymtab addresses.
866 * buildsym.c (end_symtab): Use macro to pop context.
869 Mon Oct 21 14:40:50 1996 Stu Grossman (grossman@critters.cygnus.com)
871 * v850-tdep.c: Cleanup lots of things. Add many comments.
873 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
874 sign bugs with scanning prologues. Get a little smarter about
875 calculating the length of uninteresting instructions.
878 Mon Oct 21 14:01:38 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
880 * top.c: Add new commands "set annotate" and "show annotate".
882 Sun Oct 20 04:38:39 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
884 * corelow.c (core_close): Clear inferior_pid only if there is
887 * cp-valprint.c (cp_print_value_fields): Pass correct address
890 From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
891 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
892 typedefs before checking for integral type of right operand.
894 Fri Oct 18 17:26:22 1996 Mark Alexander <marka@cygnus.com>
896 * mdebugread.c (parse_symbol): Fix crash when malloc has
897 no type info and void type has no associated pointer type.
899 Thu Oct 17 18:18:20 1996 Stan Shebs <shebs@andros.cygnus.com>
901 * configure.host: New file, host configuration mapping.
902 * configure.tgt: New file, target configuration mapping.
903 * configure.in: Remove host and target mapping.
904 * configure: Rebuild.
906 Wed Oct 16 17:46:03 1996 Stan Shebs <shebs@andros.cygnus.com>
908 * breakpoint.c (must_shift_inst_regs): New global.
909 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
910 equivalent expression uses.
911 * infrun.c (wait_for_inferior): Ditto.
914 Wed Oct 16 01:53:43 1996 Stu Grossman (grossman@critters.cygnus.com)
916 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
918 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
921 Tue Oct 15 16:30:07 1996 Stu Grossman (grossman@critters.cygnus.com)
923 * Makefile.in (init.c): Don't use -s option with grep. It means
924 something different under Digital Unix.
926 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
927 LOC_LOCAL_ARG as arguments so that GDB will know about function
928 args declared this way. Mostly affects dwarf.
929 * dwarfread.c (decode_die_type): Change default type from int to
930 void. This allows GDB to recognize void functions.
931 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
933 * findvar.c (extract_floating store_floating): Clean up comments
935 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
936 function has a prototype. Currently, only dwarf supports this.
937 * utils.c (floatformat_from_doublest): Fix logic error with
938 converting from double to float. (It wasn't shifting mant_long if
939 it had a hidden bit.)
942 * v850-tdep.c: Add support for function calling. Fix some
943 problems with debugging code w/o debug symbols.
944 * config/v850/tm-v850.h: Ditto.
947 Tue Oct 15 18:19:42 1996 Ian Lance Taylor <ian@cygnus.com>
949 * utils.c: Always ensure that size_t is defined. Check
950 HAVE_STDDEF_H rather than __STDC__
951 (xmalloc, xrealloc): Use size_t rather than long.
953 Tue Oct 15 14:24:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
955 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
956 can use single-step commands.
958 Sun Oct 13 11:38:25 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
960 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
961 follow typedefs before checking TYPE_CODE for structures and unions.
963 Fri Oct 11 15:43:54 1996 Stu Grossman (grossman@critters.cygnus.com)
965 * frame.h: Move definition of struct frame_saved_regs to before
966 struct frame to make it possible to use frame_saved_regs in
967 EXTRA_FRAME_INFO macro.
970 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
971 macros to make frame operations (such as backtrace) work.
974 Fri Oct 11 14:23:50 1996 Fred Fish <fnf@cygnus.com>
976 * dbxread.c (process_one_symbol): Check for null string directly
977 rather than using strcmp against "".
978 * partial-stab.h: Ditto.
980 Fri Oct 11 12:18:32 1996 Mark Alexander <marka@cygnus.com>
982 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
983 Make it compile on Linux and eliminate some warnings.
985 Thu Oct 10 16:32:08 1996 Stu Grossman (grossman@critters.cygnus.com)
987 * Makefile.in (init.c): Fixup final sed script to work around
988 Linux bug with `p' operator.
990 Wed Oct 9 18:02:48 1996 Stan Shebs <shebs@andros.cygnus.com>
992 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
994 (ddb_ops, pmon_ops): Fix the documentation strings.
996 Wed Oct 9 07:42:44 1996 Stu Grossman (grossman@critters.cygnus.com)
998 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
999 filenames with sed instead.
1001 Tue Oct 8 15:59:44 1996 Stu Grossman (grossman@critters.cygnus.com)
1003 * defs.h: Remove decls of xmalloc and xrealloc. There is a
1004 conflicting definition in libiberty.h.
1006 Tue Oct 8 11:47:13 1996 Fred Fish <fnf@cygnus.com>
1008 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
1009 than poking global variable (which is now static).
1010 * hpread.c (hpread_build_psymtabs): Ditto.
1011 * os9kread.c (os9k_symfile_read): Ditto.
1012 * xcoffread.c (xcoff_initial_scan): Ditto.
1014 * buildsym.h (free_pending_blocks): Declare here.
1015 (pending_blocks): Remove declaration of global symbol.
1016 (free_pendings): Remove declaration of global symbol.
1017 (make_blockvector): Declare here.
1018 (record_pending_block): Declare here.
1020 * dstread.c (make_blockvector): Remove static copy that was old
1021 clone of version in buildsym.c.
1022 (process_dst_block): Call record_pending_block rather than doing
1024 (read_dst_symtab): Ditto.
1026 * buildsym.c (make_blockvector): Make global rather than static,
1027 (record_pending_block): New function, code moved from finish_block.
1028 (finish_block): Use record_pending_block.
1029 (free_pending_blocks): New function.
1030 (really_free_pendings): Call free_pending_blocks.
1031 (pending_blocks): Make static instead of global.
1032 (free_pendings): Make static instead of global.
1034 Tue Oct 8 09:03:22 1996 Stu Grossman (grossman@critters.cygnus.com)
1036 * config/i386/windows.mh config/i386/xm-windows.h:: New config
1037 files to support building Wingdb (built under Microsoft build
1040 * Makefile.in: Add rule for hpux-thread.o (needs special header
1042 * (SUBDIRS): Remove mswin.
1043 * Change procedure for creating init.c. Speeds things up quite a
1045 * config.in configure configure.in: Check for select, poll.
1046 * Check for OSF header files before including hpux-thread.o.
1047 * Don't configure doc or testsuite when building under MSVC.
1048 * findvar.c value.h (read_register_pid write_register_pid): Make
1049 global. Needed for hppa-tdep.c.
1050 * (supply_register): Don't set pid to inferior_pid when supplying
1052 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
1054 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
1055 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
1056 Use write_pc instead, which uses the correct pid.
1057 * (target_read_pc target_write_pc): Use read/write_register_pid
1058 instead of read/write_register to preserve the pid passed in.
1059 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
1060 hpux-threads.c to override this as a runnable target.
1061 * config/pa/nm-hppah.h: Define target_new_objfile and
1063 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
1064 instead of frame_saved_pc.
1065 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
1066 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
1067 we can't easily determine the start file bounds with ELF.
1068 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
1069 * hpux-thread.c: New file for HPUX/OSF thread support.
1070 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
1071 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
1072 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
1073 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
1074 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
1077 Sun Oct 6 15:48:09 1996 Fred Fish <fnf@cygnus.com>
1079 * buildsym.c (finish_block): Change innerblock_anon_complaint to
1080 print the addresses as part of the complaint. Add a complaint for
1081 cases where the block end address is smaller than the block start
1082 address, in case any such conditions slip through our fixup mechanism.
1083 * symmisc.c (dump_symtab): Only print blockvector for primary
1084 symtabs, to avoid massive duplication of output due to secondary
1085 symtabs that point to same blockvector. Also do some minor
1088 Mon Oct 7 10:42:32 1996 Per Bothner <bothner@deneb.cygnus.com>
1090 Replace header_files global by per-objfile field.
1091 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
1092 n_header_files, n_allocated_header_files.
1093 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
1094 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
1095 N_ALLOCATED_HEADER_FILES.
1096 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
1097 (free_header_files, init_header-files): Don't free/init headerfiles.
1098 (various functions): Use macros instead of header_files globals.
1099 * stabsread.c (various functions): Likewise.
1101 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
1103 * dwarf2read.c (read_tag_reference_type): New fn.
1104 (read_type_die): Call it.
1105 (dwarf_attr): Also look in the DIEs referred to by specification
1106 or abstract_origin attributes.
1108 Wed Oct 2 22:07:16 1996 Fred Fish <fnf@cygnus.com>
1110 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
1112 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
1113 Define with dummy pc arg.
1114 * config/m68k/tm-nbsd.h: Ditto.
1115 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
1116 SIGTRAMP_END are macros that take an single argument.
1118 Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
1120 * defs.h: Remove define of PRIVATE_XMALLOC.
1123 Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com)
1125 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
1128 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
1130 * top.c (execute_control_command): Free values from while_control
1131 and if_control conditions after evaluation to avoid storage leaks.
1135 Fri Sep 27 17:43:06 1996 Stu Grossman (grossman@critters.cygnus.com)
1137 * configure configure.in: Recognize v850 target.
1138 * v850-tdep.c: New file, NEC V850 target support.
1139 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
1142 Fri Sep 27 14:48:15 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1144 * infrun.c (wait_for_inferior): Update current_line and
1145 current_symtab when stepping continues in the middle of a new line.
1147 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
1149 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
1150 standards for the --version option.
1151 (print_gnu_advertisement): Remove, now part of print_gdb_version.
1152 (show_version): Remove call to print_gnu_advertisement.
1153 * top.h (print_gnu_advertisement): Remove prototype.
1154 * main.c (print_gdb_help): Move help to static function and
1156 (main): Call print_gdb_help rather than inlining it.
1157 (main): Remove call to print_gnu_advertisement.
1158 start-sanitize-gdbtk
1159 * gdbtk.tcl (create_copyright_window): Increase timeout from
1160 15 seconds to 30 seconds.
1164 Fri Sep 27 13:32:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1166 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
1167 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
1170 Thu Sep 26 23:10:26 1996 Mark Alexander <marka@cygnus.com>
1172 * configure.in, config/i386/tm-linux.h: Fix configure
1173 problem on older Linux systems that prevented core files
1174 from being recognized.
1176 Wed Sep 25 18:31:33 1996 Stan Shebs <shebs@andros.cygnus.com>
1178 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
1179 * config/m68k/monitor.mt (TDEPFILES): Add it.
1183 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1185 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
1186 Now single-steps correctly.
1187 * d10v-tdep.c (d10v_pop_frame): Fixed.
1190 Fri Sep 20 16:10:58 1996 Stan Shebs <shebs@andros.cygnus.com>
1192 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
1193 be consistent with GCC.
1194 (FPUL_REGNUM, etc): Renumber to match list changes.
1195 (ADDR_BITS_REMOVE): Delete.
1196 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
1197 Rearrange to match REGISTER_NAMES.
1198 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
1201 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1203 * d10v-tdep.c: Stack chain should work now.
1205 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1207 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
1210 Tue Sep 17 12:20:50 1996 Ian Lance Taylor <ian@cygnus.com>
1212 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
1213 * configure: Rebuild.
1215 Tue Sep 17 12:09:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
1217 * ser-e7kpc.c: Added wingdb support for target e7000pc.
1219 Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
1221 * remote-mips.c (pmon_wait): DDB PMON does not require forced
1222 re-entry back into debug mode.
1224 Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1226 * remote-mips.c (mips_load): Ensure that the PC is explicitly
1227 loaded after a load to a DDB PMON system.
1229 Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
1231 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
1232 (HLDENV): Set to @HLDENV@.
1233 (gdb): Prefix link command line with $(HLDENV).
1234 * configure.in: Add support to test for --enable-shared and
1235 generate appropriate values for HLDFLAGS and HLDENV.
1236 * configure: Regenerated with autoconf.
1238 Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
1240 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
1241 change for core_read_registers in struct core_fns.
1242 * core-regset.c (fetch_core_registers): Ditto & add prototype.
1243 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
1244 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
1245 * i386b-nat.c (fetch_core_registers): Ditto.
1246 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
1247 * irix4-nat.c (fetch_core_registers): Ditto.
1248 * irix5-nat.c (fetch_core_registers): Ditto.
1249 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
1250 * m68knbsd-nat.c (fetch_core_registers): Ditto.
1251 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
1252 * rs6000-nat.c (fetch_core_registers): Ditto.
1253 * sparc-nat.c (fetch_core_registers): Ditto.
1254 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
1255 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
1257 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
1258 * delta68-nat.c (register_addr): Ditto.
1259 * gdbserver/low-linux.c (register_addr): Ditto.
1260 * gdbserver/low-hppabsd.c (register_addr): Ditto.
1261 * i386m3-nat.c (register_addr): Ditto.
1262 * mips-nat.c (register_addr): Ditto.
1263 * ultra3-nat.c (register_addr): Ditto.
1265 Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
1267 * blockframe.c (inside_main_func): Cleanup slightly. Move
1268 mainsym def into the block it's used in.
1269 * configure.in configure: Allow NATDEPFILES to be recognized in
1270 .mh files regardless of whitespace.
1272 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
1273 keep downloads from hanging.
1275 * remote-wiggler.c: Add support for flash upgrades.
1276 * (wiggler_error): Fix message format. Add new error code.
1277 * (wiggler_write_byets): Error code is hex. Report errors with
1278 proper routine name.
1279 * (wiggler_read_byets): Report errors with proper routine name.
1280 * (get_packet): Add support for new flash commands.
1281 * (wiggler_load): Call clear_symtab_users() to reset things
1282 properly after download.
1283 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
1284 support flash upgrades for Wiggler.
1285 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
1287 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
1289 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
1291 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
1293 * config/i386/cygwin32.mh:
1294 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
1296 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
1298 * value.h (COERCE_REF): Fix previous change.
1299 (COERCE_ENUM): Add a check_typedef (this is the real fix).
1301 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1303 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
1304 better check of array boundaries.
1306 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
1308 * configure: Update aclocal.m4 and re-run autoconf to get correct
1310 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
1311 fix default message generation.
1313 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
1315 * Makefile.in: Add mswin to SUBDIRS. Add rules for
1316 mswin/libwingdb.a and remote-wiggler.o.
1317 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
1318 * (breakpoint_inserted_here_p): New func, just like
1319 breakpoint_here_p, except it's honest. Honestly.
1320 * breakpoint.h: Proto for above.
1321 start-sanitize-gdbtk
1322 * configure configure.in: Add host *windows* to list of hosts
1323 that don't support GDBtk.
1325 * configure configure.in: Add mswin to configdirs if host is
1326 i[3456]86-*-windows.
1327 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
1328 Change all vars that can contain addresses to type CORE_ADDR.
1329 * findvar.c (supply_register): Allow val to be NULL. This means
1330 that regno is unsupported.
1331 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
1332 just call pid forms with inferior_pid so that there's only once
1333 place to hack PC's and such.
1334 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
1335 * remote-wiggler.c: New file. Support for BDM interface from
1337 * serial.c: Enhance serial logging capability. Add hex and octal
1338 output modes (set remotelogbase {hex|octal|ascii}. Also log
1339 breaks, timeouts, errors, and eofs.
1340 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
1341 function so that we can log breaks. Don't export serial_logfile
1343 * top.c (execute_command): Don't test for serial_logfp here.
1344 Just call serial_log_comand, and let serial.c sort it out.
1345 * valops.c (value_of_variable): Don't attempt to establish frames
1346 for static and global variables. This makes things work a bit
1347 better if the stack or frame pointer is trashed.
1348 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
1349 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
1350 misaligned stacks during function calls.
1352 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
1354 * terminal.h: Don't use #elif.
1356 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1358 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
1361 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
1362 check number of args against bounds of array to avoid
1365 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
1366 a TYPE_CODE_TYPEDEF.
1368 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
1370 * remote-mips.c: Provide support for DDBVR4300 target board.
1371 (ddb_open, ddb_ops): Added.
1372 (mips_monitor_type): MON_DDB Added.
1373 (mips_enter_debug, mips_exit_debug, mips_initialize,
1374 mips_fetch_registers, common_breakpoint, mips_load,
1375 _initialize_remote_mips): Updated.
1377 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1379 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1380 * nlm/configure: Regenerate.
1382 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
1385 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
1387 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
1388 CY_AC_LOAD_TCLCONFIG.
1389 * configure: Rebuild.
1391 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
1393 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
1394 find_pc_partial_function.
1396 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1398 * configure: Regenerate again.
1400 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
1402 * configure.in: work around host_alias configure bug.
1403 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
1404 and second by AC_CANONICAL_SYSTEM). The second clobbers the
1405 previous setting. Circumventing by moving the second check
1406 to before the first.
1407 * configure: regenerated
1410 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1412 * config/d10v/d10v.mt: New file.
1413 * config/d10v/tm-d10v.h: New file.
1414 * configure.in: New target D10V.
1415 * d10v-tdep.c: New file.
1418 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
1420 * rs6000-tdep.c: Fix typo in comment.
1421 * valops.c (call_function_by_hand): Set using_gcc to 2
1422 for code compiled without -g, per comment in code.
1423 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
1424 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
1425 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
1426 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
1427 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
1428 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1429 (STACK_ALIGN): Add comment, move to be with other associated
1430 macros, and document.
1431 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1432 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
1433 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1434 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
1435 handled by PUSH_ARGUMENTS.
1436 (PUSH_ARGUMENTS): Enclose args in ()'s.
1438 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1440 * infrun.c (wait_for_inferior): Try to reenable shared library
1441 breakpoints even if auto_solib_load is not set.
1443 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
1445 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1446 gracefully degrade to using command line interface if none is
1449 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
1451 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
1452 PRINTF_HAS_LONG_LONG.
1453 * expprint.c (dump_expression): Ditto.
1454 * configure.in: Fix check for long long support in compiler to
1455 use a function body, not a nested function.
1456 * configure: Rebuild with autoconf.
1458 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
1460 * aclocal.m4: Include ../bfd/aclocal.m4.
1461 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
1462 BFD_NEED_DECLARATION on malloc, realloc, and free.
1463 * acconfig.h: Add NEED_DECLARATION_MALLOC,
1464 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
1465 * configure, config.in: Rebuild.
1466 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
1467 rather than __STDC__. Only declare malloc, realloc, and free if
1468 NEED_DECLARATION_* is defined.
1470 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
1472 * solib.c (_initialize_solib): Add missing '\' chars at ends of
1473 strings that continue on next line.
1474 (enable_break): Replace "return 0" with setting success to zero
1475 and letting normal return handle the return.
1477 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
1479 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
1480 are properly aligned.
1482 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
1484 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
1485 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
1486 to function, declare function correctly.
1488 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
1490 * symtab.h: changed namespace to _namespace for compiling under
1493 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
1495 * mpw-make.sed: Update for various recent changes, add some
1498 * mpw-config.in: Fix name of Magic Cap-specific file.
1501 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1503 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
1504 integer for type correctness.
1506 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
1508 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
1509 simulator is included.
1511 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
1513 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
1515 (read_register_pid): Only needed when TARGET_READ_PC is not
1517 * hppa-tdep.c (frame_saved_pc): Remove prototype.
1518 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
1520 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
1522 * xcoffsolib.c (command.h): Include for needed prototypes.
1524 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
1526 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
1529 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
1531 From Blair MacIntyre <bm@cs.columbia.edu>:
1532 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
1533 than SYMBOL_TYPE on msymbols.
1534 * somsolib.c (som_solib_create_inferior_hook): Ditto.
1536 * Makefile.in (init.c): Generate with prototypes.
1538 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
1539 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
1540 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
1541 (pc_load_segment_name): Ditto.
1543 (extract_return_value): Ditto.
1544 (is_magic_function_pointer): Ditto.
1545 (push_dummy_frame): Ditto.
1546 (fix_call_dummy): Ditto.
1547 (push_arguments): Ditto.
1548 (skip_trampoline_code): Ditto.
1549 (aix_process_linenos): Ditto.
1551 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
1552 * config/m68k/tm-es1800.h: Ditto.
1553 * config/m68k/tm-vx68.h: Ditto.
1554 * config/m68k/tm-sun3.h: Ditto.
1555 * config/m68k/tm-m68kv4.h: Ditto.
1557 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
1559 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
1560 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
1561 * remote-mips.c (mips_read_processor_type): Remove prototype.
1562 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
1563 * irix5-nat.c (fetch_core_registers): Add prototype.
1565 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
1567 * remote-pa.c (boot_board): Add dummy params to make type compatible
1568 for passing to add_com.
1569 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
1570 * buildsym.c (compare_line_numbers): Change function to match
1571 prototype and also what qsort expects.
1573 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
1575 * remote.c: Make remote_write_size public.
1576 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
1577 to prevent packet errors with some versions of CMON.
1579 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
1581 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
1582 C, else it's `const'.
1583 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
1584 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
1586 * configure configure.in defs.h: Use AC_C_CONST to figure out if
1587 the compiler supports const. Gets rid of some cruft in defs.h.
1588 * dwarf2read.c: <string.h> -> "gdb_string.h"
1589 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
1590 * sparcl-tdep.c (download): Add prototypes to write_routine and
1593 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
1594 rid of varargs.h Include string.h.
1595 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
1596 update): Fix prototypes, fix calls.
1597 * (update): Return value for catch_errors.
1598 * (run_execute_command togdb_command_from_tty togdb_command):
1599 Cleanup catching of errors from calls to execute_command. Also,
1600 dup command string to avoid modifying const strings.
1601 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
1602 of NULL when see if b->address isn't set.
1603 * (bi_disable_bpt bi_enable_bpt bi_delete_all
1604 bi_delete_breakpoint): Add arg to calls to update.
1605 * (gui_command): Add prototype.
1606 * (mswin_query): Fix prototype.
1607 * (_initialize_gdbwin): Dup string to avoid modifying const.
1608 * (info_path togdb_get_info_path): Remove const from decls cuz
1609 this can't be const (it points at malloc'ed memory).
1610 * (togdb_searchpath): Remove const from path. Dup string to
1611 avoid modifying const strings.
1612 * rindex -> strrchr.
1613 * (gdbwin_list_symbols): Regexp param is const.
1614 * Fix lots of refs to psymtabs to deref correct pointers.
1615 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
1617 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
1618 toget_set_info_path): Fix prototypes to match reality.
1619 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
1620 with proper prototypes.
1621 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
1622 * mswin/ser-win32s.c: Fix defs of min and max.
1623 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
1625 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
1626 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1628 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1630 * main.c (main): Make sure command loop is used with cygwin32.
1631 * terminal.h: Allow cygwin32 to use termios.h.
1633 start-sanitize-gdbtk
1634 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1636 * Makefile.in (LIB_INSTALL_DIR): New macro.
1637 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1640 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
1642 * somread.c (som_symtab_read): Handle secondary definition
1643 symbols (aka weak symbols).
1645 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
1648 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1650 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
1653 * somread.c: Rearrange order of includes to fix warnings under
1654 hpux-10.10. Also don't include sys/file.h.
1656 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1658 * dbxread.c: Don't include param.h or sys/file.h.
1659 * (dbx_symfile_read): Determine symfile_relocatable from bfd
1660 flags instead of file extension. Also clean up a little bit.
1662 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
1664 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
1665 mdebugread.c os9kread.c source.c top.c utils.c: Don't
1666 include param.h or sys/file.h (or unistd.h in some cases).
1667 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
1668 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
1669 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
1670 * main.c: Remove #ifndef WINGDB around option processing. Fix
1671 bug with passing argc==0 and argv==NULL to getopt.
1672 * (main) Remove calls to access() before source_command. Let
1673 soure_command handle access errors.
1674 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
1675 * symtab.c (operator_chars): Make this global for wingdb.
1676 * top.c (disconnect): #ifdef out for _WIN32.
1677 * (source_command): If got an error and from_tty, then call print
1678 error, else just return quietly.
1679 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
1681 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
1684 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
1686 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
1687 structures > 4 bytes in size.
1689 * valops.c (call_function_by_hand): Handle aligning stacks that
1691 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
1692 (STACK_ALIGN): Define.
1693 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
1694 alignment on structs/unions.
1696 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
1698 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
1699 which is the documented type under at least AIX 3 and AIX 4.
1701 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
1703 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
1705 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
1708 start-sanitize-gdbtk
1709 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
1711 * gdbtk.c (mainWindow): Deleted.
1712 (cleanup_init): Don't destroy main window.
1713 (gdbtk_init): Main window now created by Tk_Init.
1715 * configure.in: Most X checks now handled automatically by Tk.
1716 Use new macros to find Tcl/Tk.
1717 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1718 * config.in, configure: Regenerated.
1720 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1721 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1724 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
1726 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
1727 this, define when contents are included.
1728 (mips_read_processor_type): Add prototype.
1729 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
1730 * mdebugread.c (ecoff_relocate_efi): Add prototype.
1731 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1733 start-sanitize-gdbtk
1734 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1736 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1739 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
1741 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
1742 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
1743 (fetch_core_registers): Add prototype.
1744 (vmap_symtab): Ditto.
1745 (objfile_symbol_add): Ditto.
1747 (vmap_ldinfo): Ditto.
1750 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
1752 * stabsread.c (get_substring): Declare second arg as int.
1754 * remote-es.c: Include gdb_string.h after defs.h.
1756 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
1758 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
1759 (branch_dest): Remove unused variable "offset".
1760 (pop_dummy_frame): Add prototype and make static.
1761 (push_arguments): Guard against using len uninitialized.
1762 (push_arguments): Guard against using arg uninitialized.
1763 (frame_saved_pc): Remove unused variable "frameless".
1764 (free_loadinfo): Ifdef out unused function.
1766 * xcoffread.c (compare_lte): Change prototype and function to
1767 be correct type for passing to qsort.
1768 (add_stab_to_list): Ifdef out unused function and prototype.
1769 (compare_lte): Add prototype
1770 (arrange_linetable): Ditto.
1771 (record_include_begin): Ditto.
1772 (record_include_end): Ditto.
1773 (process_linenos): Ditto.
1774 (xcoff_next_symbol_text): Ditto.
1775 (scan_xcoff_symtab): Ditto.
1776 (xcoff_initial_scan): Ditto.
1778 * mips-tdep.c (mips_read_processor_type): Add parens around
1779 bitwise-and operands in comparison; previous expression always
1780 evaluated to 0 because of equality comparison of two constants.
1782 * rs6000-tdep.c (skip_prologue): Add missing parens around
1783 operands of logical-or so that first operand does not bind
1784 to previous logical-and.
1786 * configure.in: Expand "long long" test to include code that triggers
1787 known problem on HPUX with native compiler.
1788 (configure): Regenerated.
1790 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
1792 * somsolib.c (som_solib_create_inferior_hook): Don't
1793 warn if __d_pid can't be found.
1795 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
1797 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1798 (struct type): Ditto.
1799 (struct value): Ditto.
1801 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1802 from mips-tdep.c to here.
1803 (sigtramp_end): Ditto.
1804 (fixup_sigtramp): Ditto.
1806 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1807 (mips_frame_chain): Ditto.
1808 (mips_step_skips_delay): Ditto.
1809 (mips_frame_saved_pc): Ditto.
1810 (mips_find_saved_regs): Ditto.
1811 (mips_frame_num_args): Ditto.
1812 (mips_pop_frame): Ditto.
1813 (mips_extract_return_value): Ditto.
1814 (mips_store_return_value): Ditto.
1815 (mips_push_dummy_frame): Ditto.
1816 (mips_push_arguments): Ditto.
1817 (mips_do_registers_info): Ditto.
1818 (ecoff_relocate_efi): Ditto.
1819 (ecoff_relocate_efi): Ditto.
1820 * irix4-nat.c (fetch_core_registers): Add prototype.
1821 * mips-tdep.c (read_next_frame_reg): Add prototype
1822 (heuristic_proc_start): Ditto.
1823 (heuristic_proc_desc): Ditto.
1824 (mips_print_register): Ditto.
1825 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1826 (procfs_stopped_by_watchpoint): Ditto.
1827 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1828 (procfs_stopped_by_watchpoint): Ditto.
1829 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1830 (struct symbol): Add forward decl for prototype.
1832 * breakpoint.c (internal_breakpoint_number): Only needed if
1833 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1835 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1837 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
1839 * configure.in: Add test for "long long" support.
1840 * configure: Regenerate with autoconf.
1841 * acconfig.h: Add CC_HAS_LONG_LONG
1842 * config.in: Regenerate with autoheader.
1843 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1844 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1845 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1846 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1847 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1848 (PRINTF_HAS_LONG_LONG): Remove.
1849 (FORCE_LONG_LONG): Remove.
1850 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1851 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1852 (PRINTF_HAS_LONG_LONG): Remove.
1853 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1854 (PRINTF_HAS_LONG_LONG): Remove.
1855 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1856 subtraction inside shift. Put parens around subtraction
1857 in operand of bitwise and.
1858 (struct frame_info): Forward declare
1859 if __STDC__ defined.
1860 (frame_saved_regs): Ditto.
1861 (struct value): Ditto.
1862 (struct type): Ditto.
1863 (struct inferior_status): Ditto.
1864 (init_extra_frame_info): Add prototype.
1865 (skip_prologue): Ditto.
1866 (frameless_function_invocation): Ditto.
1867 (frame_chain): Ditto.
1868 (frame_chain_valid): Ditto.
1869 (saved_pc_after_call): Ditto.
1870 (hppa_fix_call_dummy): Ditto.
1871 (hppa_push_arguments): Ditto.
1872 (pa_do_registers_info): Ditto.
1873 (in_solib_call_trampoline): Ditto.
1874 (in_solib_return_trampoline): Ditto.
1875 (push_dummy_frame): Ditto.
1876 * convex-tdep.c (decout): Use print_longest rather than
1878 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1880 (INT_MIN): Fix so it works correctly when assigned to a long long.
1881 * valprint.c (longest_to_int): Rewrite to remove dependence
1882 on INT_MIN and INT_MAX.
1883 (print_longest): Rewrite the code that falls back to synthesized
1884 hex output when LONGEST value is not representable as in a long and
1885 printf doesn't support printing long longs.
1886 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1887 chill_print_type_scalar to LONGEST.
1888 chill_print_type_scalar): Make static and add prototype.
1889 * hppa-tdep.c (get_field): Ifdef out unused function.
1892 (extract_5_store): Ditto.
1893 (extract_11): Ditto.
1894 (extract_12): Ditto.
1895 (deposit_17): Ditto.
1896 (extract_14): Convert to static and add prototype.
1897 (deposit_14): Ditto.
1898 (extract_21): Ditto.
1899 (deposit_21): Ditto.
1900 (extract_17): Ditto.
1901 (extract_5r_store): Ditto.
1902 (extract_5R_store): Ditto.
1903 (extract_5_load): Ditto.
1904 (find_proc_framesize): Ditto.
1905 (find_dummy_frame_regs): Ditto.
1906 (sign_extend): Ditto.
1907 (find_unwind_entry): Add prototype.
1908 (find_return_regnum): Ditto.
1909 (unwind_command): Ditto.
1910 (find_dummy_frame_regs): Add parens around subtraction in operand
1912 (skip_prologue): Add parens around operands of logical-and inside
1913 operand of logical-or.
1914 (sign_extend): Add parens around operands of subtraction inside
1916 (low_sign_extend): Ditto.
1917 * top.c (filename_completer): Convert old style decl of
1918 filename_completion_function into prototype.
1919 * f-lang.c (patch_common_entries): Ifdef out unused function.
1920 * stabsread.c (read_cfront_baseclasses): Remove unused local
1921 variable "msg_noterm".
1922 (resolve_cfront_continuation): Remove unused local variable "fip".
1923 (read_type): Remove unused variable xtypenums.
1924 (read_cfront_static_fields): Remove unused variable "i".
1925 (read_cfront_static_fields): Remove unused variable "nfields".
1926 (read_cfront_member_functions): Add missing comment terminator.
1927 (read_cfront_static_fields): Return 1 rather than random value.
1928 (read_cfront_baseclasses): Ditto.
1929 (read_cfront_baseclasses): Ditto.
1930 (read_cfront_baseclasses): Ditto.
1931 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1933 (som_solib_create_inferior_hook): Remove unused variable
1935 (language.h): Add for needed prototypes.
1936 (som_solib_sharedlibrary_command): Add prototype.
1937 * hpread.c: (hpread_read_array_type): Add prototype.
1938 * somread.c (hpread_build_pysmtabs): Add prototype.
1939 (hpread_symfile_finish): Ditto.
1940 (hpread_symfile_init): Ditto.
1941 * hppah-nat.c (fetch_register): Convert old style decl
1943 (gdbcore.h): Include for needed prototypes.
1944 (fetch_register): Remove unused variable "mess".
1945 * remote-pa.c (get_offsets): Ifdef out unused function.
1946 (remote_start_remote): Remove unused variable "timeout".
1947 (boot_board): Add prototype.
1948 (reaad_frame): Add prototype.
1949 (getpkt): Remove unused variable "bp".
1950 (remote_kill): Add prototype.
1951 (remote_mourn): Add prototype.
1952 (remote_insert_breakpoint): Add prototype.
1953 (remote_remove_breakpoint): Add prototype.
1954 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1955 * infcmd.c (do_registers_info): Only need prototype if
1956 DO_REGISTERS_INFO is not defined.
1957 (breakpoint_auto_delete_contents): Only need if
1958 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1960 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
1962 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1963 (END_PSYMTAB): Ditto.
1964 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1966 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
1968 * printcmd.c (_initialize_printcmd): Initialize
1969 tm_print_insn_info.flavour.
1970 start-sanitize-gdbtk
1971 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1974 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
1976 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1977 (arm-tdep.o): Ditto.
1979 (i386ly-tdep.o): Ditto.
1980 (i960-tdep.o): Ditto.
1981 (m68k-tdep.o): Ditto.
1982 (nindy-tdep.o): Ditto.
1983 (scm-lang.o): Ditto.
1984 (w65-tdep.o): Ditto.
1985 (z8k-tdep.o): Ditto.
1986 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1987 (m2-valprint.o): Depends upon m2-lang.h.
1988 (sparc-tdep.o): Depends upon gdb_string.h
1989 (valprint.o): Depends upon valprint.h
1991 * remote-e7000.c (notice_quit): Remove prototype.
1992 * top.c (initialize_targets): Remove prototype, now in target.h.
1993 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1994 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1995 * symfile.h (set_demangling_style): Remove prototype.
1996 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1997 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1999 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
2001 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
2002 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
2003 * scm-lang.c (find_function_in_inferior): Remove prototype.
2004 (value_allocate_space_in_inferior): Ditto.
2005 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
2006 * defs.h (strchr): Remove declarations, they are declared in
2012 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
2013 passed to f77_print_array_1.
2014 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
2015 * scm-exp.c (scm_istr2int): Remove unused variable "j".
2016 (scm_parse): Remove unused variable "str".
2017 * hp300ux-nat.c (store_inferior_register): Remove unused variable
2019 (store_inferior_registers): Remove unnecessary decl "registers".
2020 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
2021 * scm-lang.c (scm_get_field): Remove unused variable "val".
2022 (scm_lookup_name): Remove unused variable "symval".
2023 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
2024 * procfs.c (do_attach, do_detach): Remove unused variable "result".
2025 (last_resume_pid): Remove unused static variable.
2026 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
2028 * objfiles.c (map_to_address): Remove unused function.
2029 * f-valprint.c (print_max): Remove extraneous extern decl,
2031 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
2032 * ch-exp.c (write_lower_upper_value): Remove prototype for
2035 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
2036 * ch-exp.c (parse_mode_call): Ditto.
2037 * f-valprint.c (there_is_a_visible_common_named): Ditto.
2038 * f-lang.c (clear_function_list): Ditto.
2039 (get_bf_for_fcn): Ditto.
2040 (clear_bf_list): Ditto.
2041 (add_common_block): Ditto.
2042 (patch_all_commons_by_name): Ditto.
2043 (find_first_common_named): Ditto.
2044 (add_common_entry): Ditto.
2045 (allocate_saved_function_node): Ditto.
2046 (allocate_saved_bf_node): Ditto.
2047 (allocate_common_entry_node): Ditto.
2048 (allocate_saved_f77_common_node): Ditto.
2050 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
2051 * dcache.c (gdbcore.h): Ditto.
2052 * i386ly-tdep.c (gdbcore.h): Ditto.
2053 * i960-tdep.c (gdbcore.h): Ditto.
2054 * m2-valprint.c (m2-lang.h): Ditto.
2055 * m68k-tdep.c (gdbcore.h): Ditto.
2057 (gdb_string.h): Ditto.
2058 * nindy-tdep.c (gdbcore.h): Ditto.
2059 * scm-lang.c (gdbcore.h): Ditto.
2060 * scm-valprint.c (gdbcore.h): Ditto.
2061 * w65-tdep.c (gdbcore.h): Ditto.
2062 * z8k-tdep.c (gdbcore.h): Ditto.
2063 * sparc-tdep.c (gdb_string.h): Include.
2064 * valprint.c (valprint.h): Include.
2066 * config/xm-lynx.h: Remove part of comment about INT_MIN
2067 redefined warnings from defs.h, since INT_MIN define in
2068 defs.h is now protected by #ifndef INT_MIN.
2069 * config/i386/xm-i386bsd.h: Ditto.
2070 * config/m68k/xm-hp300bsd.h: Ditto.
2071 * config/m68k/xm-news.h: Ditto.
2073 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
2074 definition as 0x80000000. The macro in defs.h is better.
2075 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
2076 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
2077 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
2078 * config/pa/xm-hppab.h: Ditto.
2080 * core-aout.c (fetch_core_registers): Add prototype.
2081 * hp300ux-nat.c (fetch_inferior_register): Ditto.
2082 (store_inferior_register_1): Ditto.
2083 (store_inferior_register): Ditto.
2084 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
2085 *scm-valprint.c (c_val_print): Ditto.
2086 * procfs.c (add_fd): Ditto.
2089 (sigcodename): Ditto.
2090 (sigcodedesc): Ditto.
2091 (procfs_kill_inferior): Ditto.
2092 (procfs_xfer_memory): Ditto.
2093 (procfs_store_registers): Ditto.
2094 (create_procinfo): Ditto.
2095 (procfs_init_inferior): Ditto.
2096 (proc_set_exec_trap): Ditto.
2097 (procfs_attach): Ditto.
2098 (procfs_detach): Ditto.
2099 (procfs_prepare_to_store): Ditto.
2100 (procfs_files_info): Ditto.
2101 (procfs_open): Ditto.
2102 (procfs_wait): Ditto.
2103 (procfs_fetch_registers): Ditto.
2104 (procfs_mourn_inferior): Ditto.
2105 (procfs_can_run): Ditto.
2106 (procfs_thread_alive): Ditto.
2107 (procfs_stop): Ditto.
2108 * alpha-nat.c (fetch_core_registers): Ditto.
2109 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
2110 * objfiles.c (ecoff_relocate_efi): Ditto.
2111 * inflow.c (pass_signal): Ditto.
2112 (handle_sigio): Ditto.
2113 * annotate.c (breakpoint_changed): Ditto.
2114 * callback.c (wrap): Ditto.
2117 * utils.c (malloc_botch): Ditto.
2118 (fputs_maybe_filtered): Ditto.
2119 (vfprintf_maybe_filtered): Ditto.
2120 * defs.h (notice_quit): Ditto.
2121 * defs.h (xmalloc, xrealloc): Ditto.
2122 * top.c (stop_sig): Ditto.
2123 (init_signals): Ditto.
2124 (user_defined_command): Ditto.
2125 (source_cleanup_lines): Ditto.
2126 (dont_repeat_command): Ditto.
2127 (serial_log_command): Ditto.
2128 (disconnect): Ditto.
2129 * target.h (initialize_targets): Ditto.
2130 * os9kread.c (read_minimal_symbols): Ditto.
2131 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
2133 (push_parse_stack): Ditto.
2134 (pop_parse_stack): Ditto.
2135 (is_pending_symbol): Ditto.
2136 (add_pending): Ditto.
2137 * serial.c (serial_logchar): Ditto.
2138 (serial_interface_lookup): Ditto.
2139 * serial.h (serial_log_command): Ditto.
2140 * f-valprint.c (info_common_command): Ditto.
2141 * gdbtypes.h (print_type_scalar): Ditto.
2142 * scm-valprint.c (scm_scmlist_print): Ditto.
2144 * scm-lang.c (scm_printstr): Ditto.
2146 (evaluate_subexp_scm): Ditto.
2147 * scm-exp.c (scm_read_token): Ditto.
2148 (scm_skip_ws): Ditto.
2149 (scm_lreadparen): Ditto.
2150 * m2-lang.c (emit_char): Ditto.
2151 (m2_printchar): Ditto.
2152 (m2_printstr): Ditto.
2153 (m2_create_fundamental_type): Ditto.
2154 * f-lang.c (emit_char): Ditto.
2155 (f_printchar): Ditto.
2156 (f_printstr): Ditto.
2157 (f_create_fundamental_type): Ditto.
2158 * ch-lang.c (chill_printchar): Ditto.
2159 (chill_printstr): Ditto.
2160 (chill_create_fundamental_type): Ditto.
2161 (value_chill_length): Ditto.
2162 (value_chill_card): Ditto.
2163 (value_chill_max_min): Ditto.
2164 (evaluate_subexp_chill): Ditto.
2165 * ch-exp.c (PEEK_TOKEN): Ditto.
2166 (peek_token_): Ditto.
2167 (forward_token_): Ditto.
2168 (parse_case_label): Ditto.
2169 (parse_opt_untyped_expr): Ditto.
2170 (parse_unary_call): Ditto.
2171 (parse_call): Ditto.
2172 (parse_named_record_element): Ditto.
2173 (parse_tuple_element): Ditto.
2174 (parse_opt_element_list): Ditto.
2175 (parse_tuple): Ditto.
2176 (parse_primval): Ditto.
2177 (parse_operand6): Ditto.
2178 (parse_operand5): Ditto.
2179 (parse_operand4): Ditto.
2180 (parse_operand3): Ditto.
2181 (parse_operand2): Ditto.
2182 (parse_operand1): Ditto.
2183 (parse_operand0): Ditto.
2184 (parse_expr): Ditto.
2185 (parse_then_alternative): Ditto.
2186 (parse_else_alternative): Ditto.
2187 (parse_if_expression): Ditto.
2188 (parse_untyped_expr): Ditto.
2189 (growbuf_by_size): Ditto.
2190 (match_simple_name_string): Ditto.
2191 (decode_integer_value): Ditto.
2192 (decode_integer_literal): Ditto.
2193 (match_float_literal): Ditto.
2194 (match_float_literal): Ditto.
2195 (match_string_literal): Ditto.
2196 (match_character_literal): Ditto.
2197 (match_integer_literal): Ditto.
2198 (match_bitstring_literal): Ditto.
2199 (write_lower_upper_value): Ditto.
2200 * ch-lang.h (type_lower_upper): Ditto.
2201 * c-lang.c (emit_char): Ditto.
2202 * dwarfread.c (free_utypes): Ditto.
2203 * stabsread.h (resolve_cfront_continuation): Ditto.
2204 * stabsread.c (get_substring): Ditto.
2205 (read_one_struct_field): Ditto.
2206 * stabsread.h (process_later): Ditto.
2207 * demangle.c (set_demangling_command): Ditto.
2208 * defs.h (set_demangling_style): Ditto.
2209 * maint.c (maintenance_info_command): Ditto.
2210 (print_section_table): Ditto.
2211 (maintenance_info_sections): Ditto.
2212 (maintenance_print_command): Ditto.
2213 * symtab.h (maintenance_print_statistics): Ditto.
2214 * objfiles.h (in_plt_section): Ditto.
2215 * objfiles.c (add_to_objfile_sections): Ditto.
2216 * bcache.c (hash): Ditto.
2217 (lookup_cache): Ditto.
2218 * exec.c (bfdsec_to_vmap): Ditto.
2220 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
2221 * language.c (unk_lang_printchar): Ditto.
2222 (unk_lang_printstr): Ditto.
2223 (unk_lang_create_fundamental_type): Ditto.
2224 (unk_lang_print_type): Ditto.
2225 (unk_lang_val_print): Ditto.
2226 (unk_lang_value_print): Ditto.
2227 * target.c (update_current_target): Ditto.
2228 (debug_to_open): Ditto.
2229 (debug_to_close): Ditto.
2230 (debug_to_attach): Ditto.
2231 (debug_to_detach): Ditto.
2232 (debug_to_resume): Ditto.
2233 (debug_to_wait): Ditto.
2234 (debug_to_fetch_registers): Ditto.
2235 (debug_to_store_registers): Ditto.
2236 (debug_to_prepare_to_store): Ditto.
2237 (debug_to_xfer_memory): Ditto.
2238 (debug_to_files_info): Ditto.
2239 (debug_to_insert_breakpoint): Ditto.
2240 (debug_to_remove_breakpoint): Ditto.
2241 (debug_to_terminal_init): Ditto.
2242 (debug_to_terminal_inferior): Ditto.
2243 (debug_to_terminal_ours_for_output): Ditto.
2244 (debug_to_terminal_ours): Ditto.
2245 (debug_to_terminal_info): Ditto.
2246 (debug_to_kill): Ditto.
2247 (debug_to_load): Ditto.
2248 (debug_to_lookup_symbol): Ditto.
2249 (debug_to_create_inferior): Ditto.
2250 (debug_to_mourn_inferior): Ditto.
2251 (debug_to_can_run): Ditto.
2252 (debug_to_notice_signals): Ditto.
2253 (debug_to_thread_alive): Ditto.
2254 (debug_to_stop): Ditto.
2255 start-sanitize-gdbtk
2256 * gdbtk.c (null_routine): Ditto.
2257 (gdbtk_flush): Ditto.
2258 (gdbtk_fputs): Ditto.
2259 (gdbtk_query): Ditto.
2260 (gdbtk_readline): Ditto.
2261 (gdbtk_readline_end): Ditto.
2262 (gdb_get_breakpoint_list): Ditto.
2263 (gdb_get_breakpoint_info): Ditto.
2264 (breakpoint_notify): Ditto.
2265 (gdbtk_create_breakpoint): Ditto.
2266 (gdbtk_delete_breakpoint): Ditto.
2267 (gdbtk_modify_breakpoint): Ditto.
2270 (gdb_sourcelines): Ditto.
2271 (map_arg_registers): Ditto.
2272 (get_register_name): Ditto.
2273 (gdb_regnames): Ditto.
2274 (get_register): Ditto.
2275 (gdb_fetch_registers): Ditto.
2276 (register_changed_p): Ditto.
2277 (gdb_changed_register_list): Ditto.
2279 (call_wrapper): Ditto.
2280 (gdb_listfiles): Ditto.
2282 (gdbtk_dis_asm_read_memory): Ditto.
2283 (compare_lines): Ditto.
2284 (gdb_disassemble): Ditto.
2285 (tk_command): Ditto.
2286 (cleanup_init): Ditto.
2287 (gdbtk_interactive): Ditto.
2289 (gdbtk_wait): Ditto.
2290 (gdbtk_call_command): Ditto.
2291 (tk_command_loop): Ditto.
2292 (gdbtk_init): Ditto.
2294 * breakpoint.h (set_breakpoint_sal): Ditto.
2295 * remote-utils.c (usage): Ditto.
2296 * remote.c (set_thread): Ditto.
2297 (remote_thread_alive): Ditto.
2298 (get_offsets): Ditto.
2299 (read_frame): Ditto.
2300 (remote_insert_breakpoint): Ditto.
2301 (remote_remove_breakpoint): Ditto.
2302 * sparc-nat.c (fetch_core_registers): Ditto.
2303 * corelow.c (add_to_thread_list): Ditto.
2305 * inftarg.c (proc_wait): Ditto.
2306 * infptrace.c (udot_info): Ditto.
2307 (fetch_register): Ditto.
2308 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
2309 (hardwire_print_tty_state): Ditto.
2310 (hardwire_flush_output): Ditto.
2311 (hardwire_flush_input): Ditto.
2312 (hardwire_send_break): Ditto.
2313 (hardwire_setstopbits): Ditto.
2314 * ser-tcp.c (tcp_return_0): Ditto.
2315 (tcp_noflush_set_tty_state): Ditto.
2316 (tcp_print_tty_state): Ditto.
2317 * solib.c (match_main): Ditto.
2318 * gdbtypes.c (print_bit_vector): Ditto.
2319 (print_arg_types): Ditto.
2320 (dump_fn_fieldlists): Ditto.
2321 (print_cplus_stuff): Ditto.
2322 * symfile.h (entry_point_address): Ditto.
2323 * symfile.c (decrement_reading_symtab): Ditto.
2324 * valops.c (value_arg_coerce): Ditto.
2325 * value.h (find_function_in_inferior): Ditto.
2326 (value_allocate_space_in_inferior): Ditto.
2327 * values.c (vb_match): Ditto.
2328 * thread.c (info_thread_command): Ditto.
2329 (restore_current_thread): Ditto.
2330 (thread_apply_all_command): Ditto.
2331 (thread_apply_command): Ditto.
2332 * inferior.h (write_pc_pid): Ditto.
2333 * infrun.c (delete_breakpoint_current_contents): Ditto.
2334 * breakpoint.c (print_it_normal): Ditto.
2335 (watchpoint_check): Ditto.
2336 (print_it_done): Ditto.
2337 (print_it_noop): Ditto.
2338 (maintenance_info_breakpoints): Ditto.
2339 (create_longjmp_breakpoint): Ditto.
2340 (hbreak_command): Ditto.
2341 (thbreak_command): Ditto.
2342 (watch_commnd_1): Ditto.
2343 (rwatch_command): Ditto.
2344 (awatch_command): Ditto.
2345 (do_enable_breakpoint): Ditto.
2346 * ch-valprint.c (chill_val_print_array_elements): Ditto.
2347 * eval.c (evaluate_subexp): Ditto.
2349 (evaluate_struct_tuple): Ditto.
2350 * eval.c (init_array_element): Ditto.
2352 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
2353 * breakpoint.c (hw_breakpoint_used_count): Ditto.
2354 (hw_watchpoint_used_count): Ditto.
2355 * findvar.c (write_register_gen): Ditto.
2356 (read_register_pid): Ditto.
2357 * symtab.c (cplusplus_hint): Ditto.
2358 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
2359 * ch-valprint.c (chill_print_type_scalar): Ditto.
2360 * gdbtypes.c (add_name): Ditto.
2361 (add_mangled_type): Ditto.
2362 (cfront_mangle_name): Ditto.
2363 * sparc-tdep.c (isbranch): Ditto.
2364 * inftarg.c (child_stop): Ditto.
2365 * win32-nat.c (child_stop): Ditto.
2366 * mac-nat.c (child_stop): Ditto.
2367 * remote-utils.c (sr_com): Ditto.
2368 * dbxread.c (process_now): Ditto.
2369 * ch-exp.c (require): Ditto.
2370 (check_token): Ditto.
2372 (parse_mode_call): Ditto.
2373 (parse_mode_or_normal_call): Ditto.
2374 * scm-lang.c (scm_lookup_name): Ditto
2375 * f-lang.c (allocate_saved_bf_node): Ditto.
2376 (allocate_saved_function_node): Ditto.
2377 (allocate_saved_f77_common_node): Ditto.
2378 (allocate_common_entry_node): Ditto.
2379 (add_common_block): Ditto.
2380 (add_common_entry): Ditto.
2381 (find_first_common_named): Ditto.
2382 (patch_common_entries): Ditto.
2383 (patch_all_commons_by_name): Ditto.
2384 (clear_bf_list): Ditto.
2385 (get_bf_for_fcn): Ditto.
2386 (clear_function_list): Ditto.
2387 * scm-exp.c (scm_istr2int): Ditto.
2388 (scm_istring2number): Ditto.
2389 * scm-valprint.c (scm_inferior_print): Ditto.
2390 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
2391 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
2392 (f77_create_arrayprint_offset_tbl): Ditto.
2393 (f77_print_array_1): Ditto.
2394 (f77_print_array): Ditto.
2395 (list_all_visible_commons): Ditto.
2396 (there_is_a_visible_common_named): Ditto.
2397 * mdebugread.c (ecoff_relocate_efi): Ditto.
2398 * callback.c (os_close): Ditto.
2399 (os_get_errno): Ditto.
2404 (os_read_stdin): Ditto.
2406 (os_write_stdout): Ditto.
2411 (os_shutdown): Ditto.
2413 (os_printf_filtered): Ditto.
2415 * scm-lang.h (scm_parse): Change old style decl to prototype.
2416 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
2417 * top.c (init_proc): Ditto.
2418 (query_hook): Ditto.
2419 (error_hook): Ditto.
2420 * f-lang.c (c_value_print): Ditto.
2421 * ch-exp.c (parse_expression): Ditto.
2422 (parse_primval): Ditto.
2423 (parse_untyped_expr): Ditto.
2424 (parse_opt_untyped_expr): Ditto.
2426 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
2427 (sparc_frame_saved_pc): Ditto.
2428 (sparc_push_dummy_frame): Ditto.
2429 (sparc_pop_frame): Ditto.
2430 * defs.h (fclose): Ditto.
2432 (error_hook): Ditto.
2434 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
2435 * rs6000-tdep.c (single_step): Ditto.
2436 * sparc-tdep.c (single_step): Ditto.
2438 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
2439 to PTR which is what make_cleanup expects.
2440 * utils.c (null_cleanup): Change arg type to PTR.
2441 * defs.h (null_cleanup): Change prototype to match actual function.
2442 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
2443 * ch-valprint.c (chill_val_print): Cast 2nd arg of
2444 chill_print_type_scalar to LONGEST.
2445 * infrun.c (wait_for_inferior): Have empty switch case for
2446 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
2447 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
2448 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
2450 * symfile.c (generic_load): Scan long int using a long int spec,
2452 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
2454 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
2456 * inflow.c (handle_sigio): Only need prototype when the actual
2457 function is compiled in.
2458 * valprint.c (longest_to_int): Expand error message to be
2459 separate messages for args larger than largest signed int
2460 and args smaller than smallest signed int.
2461 * valprint.c (print_longest): Fix problems with support for case
2462 where compiler supports type "long long" but the runtime doesn't
2463 support printing them with "%ll".
2464 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
2465 return types to void since we don't actually return anything
2466 meaningful and callees ignore the values anyway.
2467 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
2469 (modify_run_on_last_close_flag): Ditto.
2470 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
2472 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
2474 * infrun.c (wait_for_inferior): Ensure random_signal is not used
2476 * valops.c (call_function_by_hand): Ensure struct_addr is not used
2478 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
2480 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
2482 start-sanitize-gdbtk
2483 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
2484 to proper pointer type, from int.
2485 (gdbtk_query): Change first arg to "const char *" from "char *".
2487 * infptrace.c (udot_info): Add two dummy args so that the type is
2488 correct for passing to add_info.
2489 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
2491 (saved_bf_symnum): Ditto.
2492 (SAVED_FUNCTION): Ditto.
2493 (SAVED_FUNCTION_PTR): Ditto.
2495 (SAVED_BF_PTR): Ditto.
2496 * ch-exp.c (parse_named_record_element): Build error message in
2497 temporary buffer before passing it to expect, rather than passing
2498 wrong number of args to expect.
2499 * demangle.c (set_demangling_style): Call set_demangling_command with
2500 correct number of arguments.
2501 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
2502 int to match actual function.
2503 (os_isatty): Call fdmap with right number of arguments, was missing
2504 the host_callback* arg.
2505 * target.c (cleanup_target): Prototype all functions casts.
2506 * target.h (one_stepped, single_step): Declare here and convert
2507 single_step to prototype.
2508 * infrun.c (one_stepped, single_step): Don't declare externs
2509 here, they have moved to target.h.
2510 * eval.c (init_array_element): Declare previously undeclared
2511 last two args as LONGEST.
2512 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
2513 start-sanitize-gdbtk
2514 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
2517 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
2519 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
2521 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
2523 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
2524 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
2525 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
2526 text address. Use a seperate flag (textlow_not_set) instead.
2527 This makes stabs in ELF .o files work a lot better.
2528 * mdebugread.c xcoffread.c: Define textlow_not_set for
2530 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
2532 start-sanitize-gdbtk
2533 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
2535 * gdbtk.tcl (files_command): Reorder the binding tags for
2536 the listbox widget to avoid referencing the listbox after
2537 the containing widget has been destroyed by the action of
2541 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
2543 * dwarf2read.c (struct filenames): Change internal "struct file"
2544 to "struct fileinfo" to avoid conflict with "struct file" in
2545 <sys/file.h> on HPUX and Solaris.
2547 start-sanitize-gdbtk
2548 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
2550 * gdbtk.tcl (delete_expr): Unset corresponding element of
2551 expr_update_list when destroying an expression.
2552 (create_expr_window): Initialize expr_num, delete_expr_num,
2553 and expr_update_list here when each new expression window
2554 is created, rather than once at startup.
2557 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2559 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
2560 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
2561 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
2562 (SFILES): Add dwarf2read.c.
2563 (dwarf2read.o): Add build rule.
2564 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
2566 * elfread.c (elf_symfile_read): Call them.
2567 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
2569 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
2571 * symfile.c (symfile_bfd_open):
2572 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
2573 free the user from having to type the .exe extension.
2575 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
2577 * mon960-rom.c: Shorten the mon960_inits string to a single
2578 carriage return; this prevents a hang on connecting immediately
2579 after powerup, when MON960 is attempting autobaud detection.
2581 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
2583 * a29k-tdep.c (get_saved_register): Allow PC to be modified
2584 when innermost frame is selected, but not in outer frames.
2586 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2588 * command.c (do_setshow_command): Don't segfault when showing
2589 var_string and var_string_noescape vars that are NULL.
2591 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
2593 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
2594 cygwin32_conv_to_posix_path.
2595 (child_create_inferior): unix_path_to_dos_path renamed to
2596 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
2598 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
2600 * defs.h printcmd.c: Create global disassemble_info structure
2602 start-sanitize-gdbtk
2603 * gdbtk.c (gdb_disassemble): Setup di.mach from
2604 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
2606 * i386-tdep.c (set_assembly_language_command): set
2607 tm_print_insn_info.mach to the appropriate value for 386 or 8086
2609 * printcmd.c (print_insn): Move init of disassembler_info to
2610 _initialize_printcmd. Set endian for disassembler here.
2611 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
2612 select sparc/sparclite.
2613 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
2614 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
2615 bfd_mach_sparc/bfd_mach_sparc_sparclite.
2617 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
2619 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
2620 than xmalloc/xrealloc.
2622 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
2624 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
2625 a NULL pointer, not a -1.
2627 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
2629 * i386-tdep.c (set_assembly_language_command): New routine to
2630 select between i386 and i8086 instruction sets for disassembly.
2631 New command `set assembly-language {i386 i8086}'.
2633 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
2635 * monitor.c (monitor_write_memory, monitor_read_memory_single):
2636 Disable use of "long long" memory read/write commands; can't
2637 use them because we hold the values to read/write in an int
2638 variable, and because strtoul fails on values that exceed the
2639 size of a long. This fixes breakpoint problems on MON960.
2641 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
2643 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
2644 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
2646 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
2648 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
2649 and MMALLOC_CHECK macros, and add comment indicating how host dependent
2650 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
2651 to use it but to not do heap corruption checking.
2652 * gdbserver/Makefile.in: Ditto.
2653 * utils.c (init_malloc): Replace warning() use with direct call of
2654 fprintf_unfiltered, since current_target has not yet been set and thus
2655 we cannot use warning(). If we try to use mmcheck and it fails,
2656 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
2657 defined. Other small mmalloc related cleanups.
2658 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
2659 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
2661 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2662 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2663 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2664 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2665 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
2666 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2667 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2668 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2669 Remove obsolete defines.
2671 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
2672 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
2673 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
2674 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
2675 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
2676 * config/powerpc/aix.mh (MMALLOC_DISABLE):
2677 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
2678 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
2679 * config/mips/decstation.mh (MMALLOC_DISABLE):
2680 * config/m88k/cxux.mh (MMALLOC_DISABLE):
2681 * config/i386/i386mk.mh (MMALLOC_DISABLE):
2682 * config/i386/i386m3.mh (MMALLOC_DISABLE):
2683 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
2684 Use MMALLOC_CFLAGS instead.
2686 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
2688 * h8300-tdep.c: Remove some outdated comments.
2689 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
2690 Handle stm.l insns for the H8/S.
2691 (examine_prologue): Likewise.
2693 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
2695 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
2697 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
2699 * mon960-rom.c (mon960_open): Add floating point detection to
2700 prevent hang on non-FPU processors (PR 9775).
2701 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
2702 setting breakpoints and improve loading speed.
2704 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
2706 * coffread.c (record_minimal_symbol): Don't presave name string
2707 on symbol_obstack before passing to prim_record_minimal_symbol.
2708 It now handles saving the string itself.
2709 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2710 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
2711 * os9kread.c (record_minimal_symbol): Ditto.
2712 * solib.c (solib_add_common_symbols): Ditto.
2714 * coffread.c (coff_symtab_read): Don't presave name string on
2715 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
2716 It now handles saving the string itself.
2717 * dbxread.c (record_minimal_symbol): Ditto.
2718 * elfread.c (record_minimal_symbol_and_info): Ditto.
2720 * dstread.c (record_minimal_symbol): Remove static function that just
2721 called prim_record_minimal_symbol with the same args (after change to
2722 prim_record_minimal_symbol to do it's own name string saves).
2723 * nlmread.c (record_minimal_symbol): Ditto.
2724 * somread.c (record_minimal_symbol): Ditto.
2726 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
2727 (hpread_read_function_type): Ditto.
2728 (hpread_process_one_debug_symbol): Ditto.
2729 * mdebugread.c (parse_symbol): Ditto.
2730 (new_symbol): Ditto.
2731 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
2733 * coffread.c (process_coff_symbol): Use obsavestring to save
2734 SYMBOL_NAME, rather than obstack_copy0.
2735 * dstread.c (create_new_symbol): Ditto
2736 * symfile.c (obconcat): Ditto.
2737 * stabsread.c (patch_block_stabs): Ditto.
2738 * xcoffread.c (SYMNAME_ALLOC): Ditto.
2740 * symfile.c (obsavestring): Update comments
2741 * solib.c (solib_add_common_symbols): Remove local var origname.
2743 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2745 * configure: Re-build with autoconf-2.10.
2747 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
2748 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
2749 TM_PRINT_INSN, which comes from the tm file.
2751 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
2753 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
2754 os9kread.c: Replace identical sym_offsets functions with
2755 default_symfile_offsets.
2756 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
2757 macro to allocate section_offsets.
2758 * symfile.c (default_symfile_offsets): New function.
2759 * symfile.h: Declare default_symfile_offsets.
2760 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
2761 simplify allocation of section_offsets.
2763 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2765 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2766 * configure configure.in: Only make sol-thread.o for native.
2767 Also, switch to dlopened libthread_db.so.1.
2768 * sol-thread.c: Switch to using dlopen to get the thread_db
2771 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2773 * configure, configure.in: Change test for libthread_db to only
2774 work for configs where build/host/target are the same.
2776 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2778 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2781 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2783 * configure: Regenerate.
2785 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
2787 From Raymond Jou <rjou@mexican.cygnus.com>:
2788 * mpw-make.sed: Add lines to whack out autoconf hook
2791 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
2793 * remote-e7000.c (e7000_stop): New function.
2795 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
2797 * configure, configure.in: Add target sparclet.
2798 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2799 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2800 command to start process running on target is different from one
2801 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2802 have a "0x" prefix).
2803 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2804 registers array. This is to allow NULLs to be place holders in
2805 the tm-*.h file so that only minor changes are needed when a new
2806 processor is introduced (eg, one without floating point).
2807 * sparc-tdep.c: Conditionally remove dependancies on floating
2809 * sparclet-rom.c, config/sparc/sparclet.mt,
2810 config/sparc/tm-sparclet.h: New files for target sparclet.
2811 * symfile.c (load_command): Add option for 2nd parameter; a load
2812 offset added to the vma of each section.
2814 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
2816 * main.c (main): Add option "l" for setting remote_timeout.
2818 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
2820 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2821 "remote_timeout" for setting remote_timeout. Add set option
2822 "use_hard_breakpoints" for setting hardware .vs. memory
2825 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
2827 * remote-e7000.c (e7000_parse_device): New function.
2828 Add option "tcp_remote" to target command if using
2829 tcp to connect to a remote host which is then connected
2830 via serial port to the e7000 (for exampole, a port master).
2831 (e7000_open): Change to call e7000_parse_device.
2833 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
2835 * monitor.c (monitor_debug): Fix remotedebug buffering.
2837 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
2839 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2840 (NATDEPFILES): Add a space.
2842 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2844 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2845 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2847 * ch-exp.c (calculate_array_length): Function removed.
2849 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2851 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2852 (e7000_xfer_inferior_memory): Call it.
2854 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2856 * gdb/gdbserver/Makefile.in (docdir): Removed.
2858 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2860 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2861 Use autoconf set values.
2863 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2864 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2865 includedir): Use autoconf set values.
2867 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2868 * nlm/configure: Rebuilt.
2869 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2871 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
2873 * stabsread.c (read_cfront_member_functions): add type
2875 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
2877 * win32-nat.c: #include <unistd.h>.
2878 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2879 (child_create_inferior): Convert only env var PATH to win32 style.
2880 (set_pathstyle_dos): Delete.
2881 (_initialize_inftarg): Delete dos-path-style command.
2883 start-sanitize-gdbtk
2884 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
2886 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2887 Add global declarations for various reg_format_* variables.
2888 * gdbtk.tcl (populate_register_window): Make initial window one
2889 line taller to account for new column header line.
2891 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
2893 * gdbtk.c (get_register): Support for printing raw formats.
2894 * gdbtk.tcl: Add hint for using debug_interface.
2895 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2896 Enclose arg in braces for consistency.
2897 (create_registers_window, populate_reg_window, update_registers):
2898 Major rewrite to support displaying multiple formats in the register
2900 (init_reg_info): New function.
2901 (recompute_reg_display_list): Reset reg_display_list, start
2902 register display lines at line 2.
2905 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
2907 * configure.in: Revise sol-thread.o test.
2908 * configure: Regenerated.
2910 * source.c (find_source_lines): Reassign size to result of read.
2912 start-sanitize-gdbtk
2913 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
2915 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2916 avoid backing up over prompt. At every input, make sure insert
2917 point is at least after command start, handle control-u to delete
2919 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2920 control-u to delete current input line.
2922 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
2924 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2925 * configure: regenerated with autoconf 2.8
2928 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2930 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2931 (h8300_command): Likewise.
2932 (set_machine): Likewise.
2933 (set_machine_hook): Likewise.
2934 (_initialize_h8300m): Likewise.
2936 * config/h8300/tm-h8300.h (h8300smode): Declare.
2938 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2940 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2941 of shl_load calls for hpux10.
2943 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
2945 * config.in: Regenerated.
2946 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2948 * configure: Regenerated.
2949 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2950 avoid name clashes with SunOS headers.
2952 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
2954 From Michael Snyder <Michael_Snyder@next.com>:
2955 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2956 exception if one or more objfile has no symbols, such as when
2957 a dynamic library has been stripped.
2959 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2961 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2962 * configure configure.in: Only make sol-thread.o for native.
2963 Also, switch to dlopened libthread_db.so.1.
2964 * sol-thread.c: Switch to using dlopen to get the thread_db
2967 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
2969 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2970 Change from 0xE0000000 to 0xC0000000.
2972 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2974 * config/powerpc/xm-solaris.h: Initial version of support for
2977 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2979 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2981 * configure: Rebuild.
2983 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2984 little-endian builds.
2986 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
2988 * inftarg.c (child_thread_alive): Protect declaration with
2989 #ifndef CHILD_THREAD_ALIVE.
2991 * source.c (find_source_lines): Check the time on the symtab's bfd if
2992 it exists, else check the time on the exec_bfd.
2994 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
2996 * dsrec.c (make_srec): Fix calculation of address size
2997 to allow addresses less than 0x100.
2999 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3001 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
3003 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
3005 * remote-mips.c: cannot use EINVAL for breakpoint test since
3006 its value varies for different hosts (e.g. go32's is 19, while
3007 sunos is 22). Changed to hardcoded 22 since that is what the
3010 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
3012 * configure: Regenerated.
3013 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
3014 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
3016 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3018 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
3019 (_initialize_solib): Add set/show commands for those variables.
3020 (solib_map_sections): Implement searching using them.
3022 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
3024 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
3026 * NEWS: Add Alpha Linux as a new native configuration.
3028 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
3029 return type VOID, assume no debugging info is available for that
3030 object file and patch the return value into VOID *. Otherwise,
3031 operations requiring an implicit call to malloc() will fail.
3033 * infrun.c (wait_for_inferior): The criterion to detect entering a
3034 sigtramp handler is now: (a) the current pc is inside a sigtramp
3035 handler, (b) the previous pc is not in a sigtramp handler, and (c)
3036 the current stack pointer is "inner" than the old one. Condition
3037 (c) is new to avoid mistaking a return from a signal handler into
3038 sigtramp as a new sigtramp invocation.
3040 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
3041 int may not be big enough to hold an address.
3042 (dcache_hit): Ditto.
3043 (dcache_peek_byte): Fix indentation.
3045 * configure.in (alpha-*-linux*): Add target.
3046 * configure: Rebuild
3048 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
3049 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3050 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3051 (SIGCONTEXT_ADDR): Ditto.
3052 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3054 * config/alpha/alpha-linux.mh: New file.
3055 * config/alpha/alpha-linux.mt: Ditto.
3056 * config/alpha/nm-linux.h: Ditto.
3057 * config/alpha/tm-alphalinux.h: Ditto.
3058 * config/alpha/xm-alphalinux.h: Ditto.
3059 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
3060 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
3062 * config/alpha/alpha-osf2.mh: Ditto.
3064 * blockframe.c (find_pc_partial_function): Pass PC to
3065 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
3066 that detect sigtramp code via designated code sequences (as is the
3067 case for Linux/Alpha, for example).
3069 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
3070 to ignore new PC argument.
3071 * config/m68k/tm-hp300bsd.h: Ditto.
3072 * config/vax/tm-vax.h: Ditto.
3074 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
3075 (alpha_osf_skip_sigtramp_frame): Ditto.
3076 (push_sigtramp_desc): Ditto.
3077 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
3078 sigcontext address from frame.
3079 (alpha_saved_pc_after_call): When in sigtramp, use
3080 alpha_frame_saved_pc() instead of read-register().
3081 (after_prologue): When inside a dynamically generated sigtramp
3082 function, there is no prologue, so return address of first
3084 (alpha_in_prologue): Fix typo in comment.
3085 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
3086 whether we're inside a dynamicaly generated sigtramp function. If
3087 so, create and push and appropriate procedure descriptor.
3088 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
3089 the frame past a sigtramp frame (if the current frame is indeed a
3091 (init_extra_frame_info): Don't read next frame register off of
3092 stack-pointer when inside a dynamiccaly generated sigtramp.
3093 (alpha_pop_frame): Also unlink and destroy procedure descriptors
3094 created for dynamically generated sigtramp functions.
3096 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
3097 <alpha/ptrace.h> instead of <machine/reg.h>
3099 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
3101 * gnu-nat.c (inf_validate_task_sc):
3102 Give terminal to gdb while asking question.
3103 (inf_resume): Don't validate the task suspend-count while execing.
3105 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
3107 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
3108 additional suspend count.
3109 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
3110 (inf_resume): Call inf_validate_task_sc here.
3111 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
3113 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
3115 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
3117 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
3119 * h8300-tdep.c (IS_PUSH): Refine.
3120 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
3121 (IS_SUB4_SP, IS_SUBL_SP): New macros.
3122 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
3123 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
3124 when in H8/300H mode. Get the return pointer's address correctly
3125 for the H8/300H. Handle H8/300H prolouge code sequences.
3127 * symfile.c (generic_load): Print the starting address
3128 of the file just loaded.
3130 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
3132 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
3134 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3136 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
3137 if a `source' command is contained in bs->commands.
3139 * infrun.c (wait_for_inferior): Update step_frame_address when
3140 stepping into a new line.
3142 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
3143 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
3146 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
3148 * dsrec.c (load_srec): Add WAITACK parameter, for machines
3149 like EST visionICE that send back an ACK after each S-record.
3150 * monitor.c (monitor_wait_srec_ack): New function.
3151 (monitor_load): Pass monitor_wait_srec_ack to load_srec
3152 if the monitor's MO_SREC_ACK flag is set.
3153 * monitor.h: Define MO_SREC_ACK flag.
3154 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
3155 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
3156 * srec.h: Add WAITACK parameter to load_srec prototype.
3158 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
3160 * config/sparc/sparclite.mt: Add the sparc simulator.
3162 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
3164 * defs.h (read_command_lines, query_hook): Update prototypes.
3165 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
3166 * breakpoint.c (commands_command): Build message in temporary buffer
3167 and pass that, as well as tty control flag, to read_command_lines.
3168 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
3170 (command_loop): Check for non-NULL instream before looping.
3171 (command_line_input): Use readline_hook when appropriate, to get
3172 user input from a GUI window.
3173 (read_next_line): Also build prompt if getting user input from a GUI.
3174 (recurse_read_control_structure): Fix typo in comment.
3175 (read_command_lines): Use passed in prompt and tty flag to decide how
3176 to build message. Use readline_begin_hook when appropriate, to set
3177 up a GUI interaction window. Just return head, whether NULL or not,
3178 after using readline_end_hook to complete GUI interaction.
3179 (define_command, document_command): Build message in a temporary
3180 buffer and pass it to read_command_lines, along with tty flag.
3182 start-sanitize-gdbtk
3183 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
3185 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
3186 (gdbtk_init): Set readline_begin_hook, readline_hook,
3187 and readline_end_hook.
3188 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
3189 gdbtk_tcl_readline_end): New functions.
3190 (tclsh): Pack scroll bar on right side of window, not left.
3193 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3195 * blockframe.c (frameless_look_for_prologue):
3196 Add FUNCTION_START_OFFSET only if func_start is non-zero.
3197 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
3198 pc is not in a known section.
3199 * stack.c (print_frame_info): Remove check for fi->pc in known
3200 section, now handled by lookup_minimal_symbol_by_pc.
3202 start-sanitize-gdbtk
3203 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
3205 * gdbtk.tcl (create_command_window): Change a misspelled "get"
3206 to the intended "cget".
3207 (delete_line): Fix so it deletes the current line at the
3211 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
3213 * sh-stub.c: New file, was config/sh/stub.c.
3215 start-sanitize-gdbtk
3216 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
3218 * gdbtk.tcl (gdb_prompt): Set this early on.
3219 (create_command_window): Use gdb_prompt rather than "(gdb) ".
3220 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
3221 (tclsh): If an evaluation window already exists, just bring it
3222 to the front instead of trying to create another.
3223 * gdbtk.c (tk_command_loop): New function.
3224 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
3226 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
3228 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
3229 implement a tcl evaluation window for gdbtk maintainers to use.
3231 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
3233 * gdbtk.tcl (files_command): Correctly insert list of files into
3236 * gdbtk.tcl (files_command): listbox command no longer accepts
3239 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3241 * gdbtk.tcl (create_command_window): If command window's buffer
3242 is disabled, don't execute any of the key bindings.
3245 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
3247 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
3249 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
3251 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
3252 Flush cached frames just before exiting.
3253 * remote-sim.c (gdbsim_resume): Complain if the program isn't
3255 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
3257 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3259 * procfs.c (procfs_thread_alive procfs_stop): Make static.
3260 (procfs_pid_to_str): New routine to print out thread id's in an
3261 intelligible manner.
3262 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
3263 which supply_register is called to fix bug with writing
3265 * config/sparc/tm-sun4sol2.h: Define default for
3266 target_pid_to_str in case host lacks libthread_db.
3268 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
3270 * Makefile.in config.in configure configure.in
3271 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
3272 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
3273 and pthread support, since pre-2.5 systems don't come with
3276 * procfs.c (info_proc): Use int instead of id_t. Old versions of
3277 Irix don't seem to define this.
3279 start-sanitize-gdbtk
3280 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
3282 * gdbtk.c (tk_command): Catch case where no argument is given
3283 since this will cause the tcl interpreter to dump core.
3286 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
3288 * top.c (execute_control_command, case while_control): Allow
3289 a while command to be interrupted.
3291 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
3293 * sol-thread.c: More cleanup, add comments.
3294 (sol_thread_resume): Prevent people from trying to step
3296 (sol_thread_wait sol_thread_fetch_registers
3297 sol_thread_store_registers): Remove unnecessary check for
3298 sol_thread_active. These routines won't get called unless threads
3301 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
3303 SH3-E support from Allan Tajii <atajii@hmsi.com>:
3304 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
3306 (sh3e_reg_names): New register name array.
3307 (sh_processor_type_table): Add sh3e processor type.
3308 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
3309 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
3310 full set of registers.
3311 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
3312 (e7000_fetch_registers, e7000_wait): Use them.
3313 * sh3-rom.c (sh3_regnames): Add float registers.
3314 (sh3e_cmds, sh3e_ops): New globals.
3315 (sh3e_open): New function.
3316 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
3319 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
3321 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
3322 Print out messages instead of codes for thread_db errors. Make
3323 access macros for thread and lwp manipulation. Make cleanups to
3324 fixup inferior_pid in case of errors.
3326 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
3328 * aclocal.m4: Remove unused definition of AC_C_CROSS.
3329 * configure.in: Add powerpcle-*-solaris* host and target config
3330 so April 30th change does not get lost next time configure is
3333 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
3335 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
3336 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
3337 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
3338 avoid conflict with Solaris /usr/include/thread.h.
3340 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3342 * abug-rom.c: Config file for the older style ABug monitor that
3343 runs on the mvme13x boards.
3344 * config/m68k/monitor.mt: Add abug support for m68k cross
3347 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
3349 * infcmd.c (do_registers_info): Always print the raw floating
3350 point value's bytes in big endian order, so the the leftmost bit
3351 is the most significant.
3352 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
3353 that is referenced nowhere else.
3354 (set_breakpoint): Ditto.
3355 (do_enable_breakpoint): Created from enable_once_breakpoint
3356 with a couple of changes.
3357 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
3358 bpdisp enum value to set disposition of breakpoint.
3359 (enable_once_breakpoint): Ditto.
3360 (enable_delete_breakpoint): Ditto.
3361 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
3362 * symtab.c (find_pc_line): Improve comments.
3363 start-sanitize-gdbtk
3364 * gdbtk.c: Fix a couple of misspellings.
3366 * xcoffread.c: Ditto.
3368 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
3370 * target.c (debug_to_xfer_memory): Insert line breaks when
3371 dumping the memory block.
3373 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3375 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
3376 returns a possibly modified pid.
3377 * inftarg.c (ptrace_him): Now returns pid;
3378 * m3-nat.c (m3_trace_him): Now returns pid;
3379 * infcmd.c (run_command): Minor cleanup.
3380 * infrun.c (wait_for_inferior): Add another check for one_stepped
3381 near where we read the pc to avoid erroneously setting
3382 random_signal for multi-threaded support.
3383 * procfs.c: Add support for Solaris LWPs. Remove def of
3384 LOSING_POLL. Many cleanups... Several workarounds for Solaris
3385 lossage. System call entry and exit are now handled by
3386 dynamically registered handlers.
3387 * (syscallname): Don't barf when handed an unknown syscall
3389 * (info_proc_syscalls): Ditto.
3390 * sol-thread.c: New file. Implements Solaris thread support.
3391 * symfile.c (symbol_file_add): Add call to target_new_objfile to
3392 notify target-dependent code about new symbol tables.
3393 * (clear_symtab_users): Call target_new_objfile to notify it of
3394 the removal of all symbol tables.
3395 * target.c (push_target): Make sure that to_close is non-zero
3397 * target.h (target_new_objfile): Provide default.
3398 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
3399 of OSF can't hack using poll with /proc.
3400 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
3401 sol-thread-new-objfile.
3402 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
3403 add libthread_db.so.1 to NAT_CLIBS.
3404 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
3407 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
3409 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
3410 removal of the requested fd.
3412 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3414 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
3417 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
3419 start-sanitize-gdbtk
3420 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
3422 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
3423 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
3424 (file_popup_menu): Delete, never used.
3425 (listing_window_popup): Rename from listing_window_button_1,
3426 remove breakpoint toggling code.
3427 (toggle_breakpoint): New procedure.
3428 (create_file_win): Bind popup menu to button 2, toggle breakpoints
3429 with button 1 in breakpoint area, add display of tagged areas if
3433 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
3436 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
3437 * breakpoint.c (insert_breakpoints, watchpoint_check,
3438 bpstat_stop_status): Avoid bad references to memory freed via
3439 delete_breakpoint on watchpoints going out of scope.
3440 Do not delete these watchpoints, disable them and change their
3441 disposition to del_at_next_stop instead.
3442 (breakpoint_auto_delete): Delete all breakpoints whose disposition
3443 is del_at_next_stop.
3444 (breakpoint_init_inferior): Use switch to avoid reference to
3445 already deleted breakpoint.
3447 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
3449 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
3450 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
3451 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
3452 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
3453 (solib_info): Call xcoff_relocate_symtab via the hook.
3454 (sharedlibrary_command): Ditto.
3455 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
3456 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
3457 (xcoff_init_loadinfo_hook): Define and initialize here.
3458 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
3459 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
3460 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
3461 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
3462 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
3463 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
3464 of xcoff_relocate_symtab_hook.
3466 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3468 * configure (powerpcle-*-solaris*): Add Solaris support.
3470 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
3473 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
3475 * c-valprint.c (c_val_print): Fix printing for arrays defined
3478 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
3480 Support for bi-endian remote breakpoints.
3481 * remote.c (big_break_insn, little_break_insn): New globals.
3482 (break_insn): Remove.
3483 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
3484 code if REMOTE_BREAKPOINT defined, otherwise call memory
3485 breakpoint functions.
3486 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
3487 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
3489 * mon960-rom.c (mon960_cmds): Remove forward decl.
3490 (mon960_load): Use current_monitor instead of mon960_cmds.
3491 (mon960_regnames): Remove backslashes from line ends.
3492 (_initialize_mon960): Fix documentation string.
3494 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
3496 * symfile.h (psymbol_allocation_list): Expand comments which
3497 describe the psymbol allocation list and how each field is
3500 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3502 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
3504 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
3506 * infcmd.c (run_command), solib.c (locate_base): Check for
3507 target_has_execution in addition to inferior_pid, a core file
3508 from a threaded program is yielding a non-zero inferior_pid.
3510 * sparc-tdep.c (get_saved_register): Handle window registers
3511 in a dummy frame correctly.
3513 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
3515 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
3516 so that anything that wants an allocation function not yet pulled
3517 in, will get it from mmalloc rather than a system library.
3518 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
3519 to avoid surprising results when used.
3521 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
3523 * stabsread.c: Changes and bug fixes for cfront support.
3524 Fix bug for class data members.
3525 Fix parsing bug when no base classes exist.
3526 Fix memory bug - allocate space for cplusplus specific info.
3527 Add support for static data.
3528 Add prototypes for static functions.
3529 Enhance comments to show what each function expects to parse.
3531 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
3532 function to resolve_cfront_continuation.
3534 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
3536 * infrun.c (wait_for_inferior): Call registers_changed when
3537 restarting the inferior to get over a nullified instruction.
3539 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
3541 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
3542 Add new support for parsing cfront stabs.
3544 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
3546 * infrun.c (wait_for_inferior): Move "have_waited" label
3547 outside of #ifdef conditionals. Don't trash the wait status
3548 if we get a signal and the current instruction is nullified.
3550 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
3552 * Makefile.in (VERSION): Bump version number to 4.16.1.
3553 * NEWS: Update for 4.16 release.
3555 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
3557 * monitor.h: Clean up comment formatting.
3558 (current_monitor): Remove decl.
3559 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
3560 (push_monitor, SREC_SIZE): Remove.
3561 * monitor.c: Expand old macro into current_monitor derefs
3563 * remote-os9k.c (current_monitor): Remove definition.
3565 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
3567 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
3569 (call_extra_exec_file_hooks): New function.
3570 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
3571 remove unused variables.
3572 (set_machine_hook): New function.
3573 (_initialize_h8300m): Initialize it.
3575 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
3577 * remote-mips.c (encoding): Don't specify size, to avoid bug in
3578 SunOS native compiler.
3580 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3582 * monitor.c: Use int rather than LONGEST for values, since
3583 the formatting strings are not prepared to accept long longs.
3585 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
3587 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
3589 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
3591 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
3592 before de-referencing it. Prevents deref of NULL pointer if core
3593 file lacks .reg section.
3594 * defs.h: Rename floatformat_{to from}_long_double to
3595 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
3597 * findvar.c (extract_floating store_floating): Change all refs to
3598 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
3599 * utils.c: Change floatformat_{to from}_long_double to
3600 floatformat_{to from}_doublest cuz the new routines will use
3601 whatever size (double or long double) is appropriate.
3602 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3603 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
3604 floatformat... routine calls.
3606 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
3608 * stabsread.c (read_type): Move handling of '@' from type
3609 number handling to handling of types proper (as emitted by gcc!).
3610 For typedefs, allocate the typedef type before reading its
3611 definition, to properly handling recursive types.
3613 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
3615 * ch-exp.c (calculate_array_length): Fix prototype.
3617 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3619 * remote-nindy.c (nindy_open): Acquire more target state so that
3620 user can attach to a previously running program.
3621 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
3622 conversion code. That's all handled in {extract store}_floating
3624 * utils.c (floatformat_to_double): Don't bias exponent when
3625 handling zero's, denorms or NaNs.
3626 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3627 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
3628 FLOATFORMAT_TO/FROM_DOUBLEST macros.
3629 * config/i960/tm-nindy960.h: Undefine
3630 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
3631 REGISTER_CONVERTIBLE. These are no longer necessary now that all
3632 the magic happens in extract/store_floating.
3634 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3636 * eval.c (evaluate_subexp_standard): Report error when attempting to
3637 evaluate subscripts for types which cannot be subscripted.
3639 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
3640 Return a zero value with the return type of the member function
3641 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
3643 * values.h (value_x_binop, value_x_unop): Update prototypes
3645 * eval.c (evaluate_subexp_standard): Update all callers of
3646 value_x_binop, value_x_unop accordingly.
3648 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
3649 integral promotion on operands.
3651 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
3653 * README: Update for 4.16 release.
3654 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
3655 * configure: Regenerate with autoconf.
3656 * config.in: Regenerate with autoheader.
3657 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
3658 * top.c (command_loop): Ditto.
3660 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
3662 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3663 defaults for bi-endian targets. Replace function pointers for
3664 floatformat routines with macros. No need for these to be runtime
3666 * findvar.c: Get rid of floatformat function pointers. Use
3667 macros in extract_floating and store_floating.
3668 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
3669 Use floatformat macros.
3671 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
3673 From: Miles Bader <miles@gnu.ai.mit.edu>
3674 * configure.in (AC_CHECK_HEADERS): check for endian.h.
3675 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
3676 Add host & target cases for i[345]86-*-gnu*.
3677 * config.in: Regenerate with autoheader.
3678 * configure: Regenerate with autoconf.
3679 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
3680 (init.c): Don't scan mig-generated files.
3681 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
3682 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
3683 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
3684 rather than "#ifndef MACH".
3686 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3688 * remote.c (remotewritesize): New GDB variable, controls size
3689 of memory packets sent to the target.
3691 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3693 * dcache.c: Add prototypes. Make many functions static.
3694 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
3695 dcache_poke call dcache_xfer_memory directly in order to fix
3696 problems with turning off dcache. dcache_peek is now unnecessary,
3699 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3700 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
3701 to a struct floatformat. This allows for better handling of
3702 targets whose floating point formats differ from the host by more
3703 than just byte order.
3704 * (floatformat_to_long_double floatformat_from_long_double):
3705 Prototypes for new functions in utils.c.
3706 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
3707 for pointers to floating point conversion functions. The actual
3708 function uses either double or long double if the host supports it.
3709 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
3710 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
3711 * (extract_floating store_floating): Rewrite. Now, if host fp
3712 format is the same as the target, we just do a copy. Otherwise,
3713 we call floatformat_{to from}_doublest.
3714 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
3715 `write' to `should_write'.
3716 * utils.c (floatformat_to_long_double
3717 floatformat_from_long_double): New routines that implement long
3718 double versions of functions in libiberty/floatformat.c.
3719 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
3720 i960 extended real (80 bit) numbers.
3721 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
3722 actually read or written.
3724 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3726 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
3727 (calculate_array_length): Move function from here ...
3729 * ch-exp.c (calculate_array_length): ... to here.
3730 (parse_primval): If we have a symbol with an array type
3731 and the length is 0, call calculate_array_length.
3733 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3735 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
3736 Add some checks for powerset compatibility.
3738 * valops.c (value_slice): Use lowbound instead of lowerbound for
3739 call to slice_range_type to get correct bounds.
3741 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
3743 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
3745 * scm-lang.c (gdb_string.h): Include.
3746 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
3747 call to correct type (char *).
3748 * cp-valprint.c (cp_print_static_field): Ditto.
3749 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
3750 for external find_unwind_entry function (from hppa-tdep.c).
3751 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
3752 type of second arg to "char *" to be type compatible with
3754 (remote_wait): Cast second arg to strtol to correct type.
3755 * hppa-tdep.c (compare_unwind_entries): Change argument types to
3756 "const void *" to be type compatible with qsort, and then
3757 assign to local args prior to use.
3759 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
3761 * infptrace.c (kill_inferior): Remove call to "kill"; update
3764 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
3766 * remote-e7000.c: don't append :23 to target port if __WIN32__
3767 is defined (it's WinGDB).
3769 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
3771 From: Miles Bader <miles@gnu.ai.mit.edu>
3772 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
3773 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
3774 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
3775 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3777 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
3779 * configure.in (case host): Add i386sco5 host.
3780 * configure: Regenerate.
3782 From: Robert Lipe <robertl@dgii.com>
3783 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3784 target is an SVR3.2 with COFF, ELF, and shared libes, but
3786 * config/i386/i386sco5.mh: New file.
3787 * config/i386/nm-i386sco5.h: New file.
3789 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
3791 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3792 BCACHE_MAXLENGTH, stash chunk as unique copy.
3794 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
3796 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3797 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3798 use it, rather than calling add_psymbol_addr_to_list.
3799 (add_psymbol_addr_to_list): Delete.
3800 (add_psymbol_to_list): Make psymbol static to avoid random data in
3801 gaps due to alignment of structure members.
3802 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3803 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3804 performance improvements by inlining via complicated macros and
3805 they just make gdb larger and harder to maintain.
3806 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3807 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3808 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3809 (add_partial_symbol): Ditto.
3810 * partial-stab.h: Ditto.
3811 * os9kread.c (read_os9k_psymtab): Ditto
3812 * mdebugread.c (parse_partial_symbols): Ditto.
3813 (handle_psymbol_enumerators): Ditto.
3814 (demangle.h): Include.
3815 * hpread.c (hpread_build_psymtabs): Ditto.
3816 (hpread_build_psymtabs): Ditto.
3817 (demangle.h): Include
3819 start-sanitize-gdbtk
3820 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3822 * gdbtk.c (running_now): New global variable.
3823 (gdb_cmd): Test it before executing any command.
3824 (gdbtk_call_command): Set it when inferior is running.
3825 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3826 disable interaction with command window's text appropriately.
3828 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3830 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3831 some versions of the kernel don't support it.
3834 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
3836 * configure.in: Check for setpgid function.
3837 * config.in: Regenerate with autoheader.
3838 * configure: Regenerate with autoconf.
3839 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3840 if it is actually defined.
3841 (gdb_setpgid): Use HAVE_SETPGID.
3842 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3843 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3844 * c-exp.y, serial.c: Include <ctype.h>.
3845 * config/m68k/nm-news.h: Add typedef for pid_t which is
3846 apparently missing from <sys/types.h>. Enclose entire
3847 file in NM_NEWS_H ifndef and define when included.
3848 * config/mips/nm-news-mips.h: Ditto.
3849 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3850 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3852 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3854 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3855 * arm-tdep.c (arm_apcs_32): New global.
3856 (arm_addr_bits_remove, arm_saved_pc_after_call,
3857 arm_push_dummy_frame, arm_pop_frame): New functions.
3858 (arm_skip_prologue): Updated version from Richard Earnshaw.
3859 (_initialize_arm_tdep): Add set/show "apcs32".
3860 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3861 arm_addr_bits_remove.
3862 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3863 (frame_find_saved_regs): Declare properly.
3864 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3865 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3867 * config/arm/nm-arm.h: New file.
3868 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3869 Move definitions to nm-arm.h.
3870 * config/arm/arm.mh (NAT_FILE): Define.
3872 * symfile.c (generic_load): Initialize data_count properly.
3874 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
3876 * symmisc.c (print_objfile_statistics): Print memory used by
3877 psymbol cache obstack.
3879 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
3881 * symfile.c (report_transfer_performance): New function.
3882 (generic_load): Call it to report transfer rate.
3883 * remote-e7000.c (e7000_load): Ditto.
3885 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3887 * mpw-make.sed: Change references to config.h to be in objdir,
3888 edit out rules to rebuild config.h.
3890 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
3892 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3895 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
3897 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3898 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3899 by infptrace.c rather than calling ptrace directly.
3901 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3903 * mon960-rom.c: Cleanups and elimination of unused code,
3904 clarify documentation string.
3905 (mon960_serial, mon960_ttyname): Remove.
3906 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3907 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3909 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
3911 * configure.in: Check whether printf family supports printing
3912 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3913 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3914 * configure: Regenerate.
3915 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3916 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3917 * configure.in: Fix have_gregset and have_fpregset autoconf
3918 variable names so that they match the pattern required to
3921 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
3923 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3924 before testing against reg_ptr.
3925 * eval.c (evaluate_subexp_standard): Cast type of
3926 TYPE_FN_FIELD_VOFFSET to int.
3927 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3928 extract_long_unsigned_integer): Cast type of sizeof to int.
3929 * values.c (unpack_field_as_long, modify_field): Ditto.
3930 * valops.c (value_assign, call_function_by_hand): Ditto.
3931 * infcmd.c (do_registers_info): Ditto.
3932 * ser-tcp.c (tcp_open): Ditto.
3933 * remote.c (putpkt): Ditto.
3934 * dcache.c (dcache_peek): Ditto.
3935 * dcache.c (dcache_poke): Ditto.
3936 * m2-exp.y (yylex): Ditto.
3937 * gnu-regex.c (re_match_2): Ditto.
3938 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3939 out unused macro definition and variables.
3940 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3941 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3942 * main.c (wait.h): Include.
3943 * top.c (command_line_input): Remove unused variable "c".
3944 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3945 value TYPE_CODE_TYPEDEF to switch statement.
3946 (f_type_print_varspec_suffix): Add missing enum value
3947 TYPE_CODE_TYPEDEF to switch statement.
3948 * ch-exp.c (parse_primval): Add remaining enumeration values to
3949 switch statement, with no specific action.
3950 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3951 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3952 * stabsread.c (cleanup_undefined_types): Remove unused label
3954 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3955 * maint.c (objfiles.h): Include.
3956 (maintenance_print_statistics): Remove unused variable "temp".
3957 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3958 unused variable "found_file_symbol".
3959 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3960 * language.c (lang_bool_type): Use existing function local type
3961 variable rather than create block local variables.
3962 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3963 * infptrace.c (wait.h, command.h): Include.
3964 * ser-tcp.c (gdb_string.h): Include
3965 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3966 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3967 * command.c (complete_on_enum): Make assignment used as truth value
3968 explictly check against NULL.
3970 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3971 that uses it is ifdef'd out.
3972 * parser-defs.h: Add prototype for write_dollar_variable.
3973 * infrun.c: Add prototype for write_pc_pid.
3974 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3975 * symmisc.c (bcache.h): Include.
3976 * bcache.h: Add prototype for print_bcache_statistics.
3977 * symfile.c: Include <time.h>.
3978 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3979 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3980 * valarith.c (value_binop): Change result_len, promoted_len1,
3981 and promoted_len2 to unsigned int.
3982 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3983 elt_size to unsigned int.
3984 * valops.c (value_array): Change typelength to unsigned int.
3985 (destructor_name_p): Change len to unsigned int.
3986 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3987 * symfile.c (decrement_reading_symtab): Change return type to void.
3988 * valarith.c (value_subscript): Remove unused variable "word".
3989 (value_subscript): Remove unused variable "tint".
3990 * valops.c (auto_abandon): Ifdef out, since code using it is also
3992 * eval.c (init_array_element): Remove unused variable "val".
3993 * Makefile.in (values.o): Depends on scm-lang.h.
3994 (command.o): Depends upon wait_h.
3995 (ser-tcp.o): Depends upon gdb_string.h.
3996 (infptrace.o): Depends upon wait_h and command_h.
3997 (maint.o): Depends on objfiles.h and symfile.h.
3998 * values.c (allocate_repeat_value): Remove unused variable
4000 (scm-lang.h): Include.
4001 * breakpoint.c (create_longjmp_breakpoint): Enclose in
4002 GET_LONGJMP_TARGET define, unused otherwise.
4003 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
4004 i386_remove_watchpoint and i386_stopped_by_watchpoint.
4006 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
4008 * configure.in (sparc64-*-solaris2*): Delete.
4009 Stick with sparc-*-solaris2*.
4010 * configure: Regenerated.
4012 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
4014 * valops.c (value_assign): Make copy of internal variable value
4015 before returning it as a new value, since it is owned by the
4016 internal variable and will be freed along with it.
4018 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
4020 * From Peter Schauer.
4021 * breakpoint.c (breakpoint_re_set_one): Keep temporary
4022 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
4023 and bp_step_resume in case breakpoint_re_set_one is called due
4024 to a step over a dlopen call.
4025 * infrun.c (wait_for_inferior): Always remove breakpoints from
4026 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
4028 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
4030 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
4031 non-prototyped case over prototyped case for C.
4032 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
4034 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
4036 * os9kread.c (os9k_process_one_symbol): Note nonportable
4037 assumption that an int can hold a char *.
4039 * bcache.h (struct hashlink): Wrap data[] inside union with
4040 double to force longest alignment.
4041 (BCACHE_DATA): New macro to access data[].
4042 (BCACHE_ALIGNMENT): New macro to get offset to data[].
4043 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
4044 address of cached data. Use BCACHE_ALIGNMENT to compute
4045 amount of space to allocate for each hashlink struct.
4047 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
4049 * ch-lang.c (evaluate_subexp_chill): Fix typo.
4051 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
4053 * Makefile.in (VERSION): Bump version to 4.15.3
4055 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
4057 * config.in: Rename from config.h.in.
4058 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
4059 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
4060 * configure: Rebuild.
4061 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
4062 Set CONFIG_HEADERS to config.h:config.in.
4064 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4066 * partial-stab.h (case N_ENDM): Finish current partial symbol
4067 table for Solaris 2 cc.
4069 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
4071 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
4072 PC in the registers array. From Peter Schauer.
4074 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
4076 * symfile.c (reread_symbols): Reinitialize bcache struct
4077 members to zero using memset. Also use memset to reinit
4078 global_psymbols and static_psymbols, rather than explicitly
4079 resetting each structure member.
4081 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
4083 * configure.in: Add fragment to create stamp-h.
4085 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4086 * configure.in (AC_CHECK_HEADERS): Check for link.h.
4087 * configure: Regenerate with autoconf.
4088 * config.h.in: Regenerate with autoheader.
4089 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
4091 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
4092 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
4093 older a.out based systems.
4095 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
4097 * config.h.in: New file.
4098 * acconfig.h: New file, for autoheader.
4099 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
4100 * configure: Regenerate.
4101 * Makefile.in (defs_h): Add config.h
4102 (distclean): Remove config.h and stamp-h during distclean.
4103 (config.h, stamp-h): New targets to remake config.h when necessary.
4104 * defs.h (config.h): Include before any other includes or defines.
4105 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
4106 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
4108 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
4110 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4111 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
4112 result in an empty line, to work around a bug in native Ultrix 4.4
4113 and OSF/1-3.2C make.
4115 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
4117 * configure.in: Add gdbserver to configdirs under linux.
4118 * configure: Regenerate.
4120 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4122 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
4123 * config/i386/tm-nbsd.h (NUM_REGS): Define.
4125 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
4127 * solib.c (solib_break_names): Add _r_debug_state for
4128 vanilla SVR4 implementations. From Peter Schauer.
4130 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
4132 * mon960-rom.c: New file; support mon960 rom monitor on i960.
4133 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
4134 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
4135 epecting prompt and echo during open.
4136 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
4137 determine if break should be sent as stop command.
4138 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
4139 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
4140 stack frame on mon960.
4141 * Makefile.in: Add mon960 files.
4142 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
4143 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
4144 * configure: Regenerated.
4145 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
4146 support mon960 rom monitor on i960.
4148 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
4150 With Michael Snyder:
4151 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
4152 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
4153 (handle_load_dll): Don't reload symbols.
4154 (handle_exception): Use the DEBUG_* names.
4155 (child_wait): Add DEBUG_* code.
4156 (_initialize_inftarg): Add new commands to set debug_ names.
4158 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
4160 * From Peter Schauer:
4161 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
4162 (bpstat_stop_status): Likewise.
4163 (remove_solib_event_breakpoints): Likewise.
4164 (clear_momentary_breakpoints): Likewise.
4165 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
4166 if we still can't read the memory for that breakpoint.
4167 (mention): Add bp_shlib_event case to keep gcc quiet.
4169 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
4171 * breakpoint.h (enum enable): New enum shlib_disabled for
4172 shared library breakpoints that have been temporarily disabled.
4173 * breakpoint.c: Handle temporarily disabled shared library
4174 breakpoints like disabled breakpoints in most places.
4175 (insert_breakpoints): Use shlib_disabled to indicate
4176 that an unsettable breakpoint is only temporarily disabled.
4177 (re_enable_breakpoints_in_shlibs): New function.
4178 * corelow.c (solib_add_stub): After adding shared libraries,
4179 try to reenable any temporarily disabled breakpoints.
4180 * infcmd.c (attach_command): Likewise.
4181 * infrun.c (wait_for_inferior): Likewise.
4183 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
4185 * defs.h (extract_long_unsigned_integer): Declare.
4186 * findvar.c (extract_long_unsigned_integer): New function.
4187 * printcmd.c (print_scalar_formatted): Use it.
4188 * valprint.c (val_print_type_code_int): Likewise.
4190 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
4192 * infcmd.c (do_registers_info): Ignore anonymous registers.
4193 * sh-tdep.c (set processor): New command to set specific
4195 (sh_reg_names, sh3_reg_names): Arrays of register names for
4196 SH and SH3 processors.
4197 (sh_set_processor_type): New function.
4198 * sh3-rom.c (sh3_open): Call it.
4199 (sh3_regname): Add names of all the bank registers.
4200 (sh3_supply_register): Clean up formatting.
4201 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
4203 (REGISTER_NAMES): Add names of bank registers.
4204 (FP15_REGNUM): Define.
4205 (REGISTER_VIRTUAL_TYPE): Use it.
4206 * monitor.c: Clean up some comments.
4208 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4210 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
4211 s* and t* symbols too.
4213 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
4215 * symfile.c (generic_load): Avoid division by zero.
4217 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
4219 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
4220 not just those with HANDLE_SVR4_EXEC_EMULATORS.
4223 * breakpoint.c (internal_breakpoint_number): Move to file scope.
4224 (create_solib_event_breakpoint): Use an internal breakpoint number.
4226 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4228 * valarith.c (value_in): Change builtin_type_chill_bool to
4231 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4233 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
4234 (match_string_literal): Handle control sequence.
4235 (match_character_literal): Deto.
4237 * ch-lang.c (chill_printchar): Change formating of nonprintable
4238 characters from C'xx' to ^(num).
4239 (chill_printstr): Deto.
4240 (value_chill_card, value_chill_max_min): New functions to process
4241 Chill's CARD, MAX, MIN.
4242 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
4244 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
4245 for Chill's CARD, MAX, MIN.
4247 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
4248 and change return type from builtin_type_int to
4249 builtin_type_chill_bool.
4251 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
4253 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
4254 from config/nm-nbsd.h.
4255 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
4256 from config/sparc/tm-nbsd.h.
4258 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
4259 instead of in config/m68k/xm-hp300hpux.h.
4261 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4263 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
4264 implementation for NetBSD systems.
4266 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
4268 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
4269 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
4271 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
4272 if "function" is pointer to non-function.
4274 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
4276 * top.c (print_gdb_version): Update copyright year.
4278 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
4281 * infrun.c (wait_for_inferior): Remove breakpoints and
4282 switch terminal settings before calling SOLIB_ADD.
4283 * solib.c (enable_break, SVR4 variant): Don't map in symbols
4284 for the dynamic linker, the namespace pollution causes real
4287 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
4289 * remote-mips.c (common_breakpoint): Explicitly terminate the
4292 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
4294 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4295 * remote.c (remote_detach): Send a command 'D' to the target
4296 when detaching, update the function's comments.
4298 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
4300 * gnu-nat.c (thread_cmd_list): New declaration.
4301 (parse_int_arg): New function.
4303 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
4305 * gnu-nat.h (struct proc): Add DETACH_SC field.
4306 * gnu-nat.c (make_proc): Set DETACH_SC.
4307 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4308 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4309 (add_thread_commands): Add set/show for detach-suspend-count.
4310 Add takeover-suspend-count cmd.
4311 (inf_detach): Set suspend counts to the detach SC, not 0.
4312 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
4313 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
4314 set_thread_default_thread_detach_sc_cmd,
4315 show_thread_default_thread_detach_sc_cmd): New functions.
4316 (show_task_cmd): Also show detach-suspend-count values.
4317 (thread_takeover_sc_cmd): New function.
4319 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
4321 * gnu-nat.c (show_thread_run_cmd): Actually print state.
4323 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
4325 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
4327 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
4329 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
4330 pointer to the flags now, not the flags themselves.
4332 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
4334 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
4335 (gnu_create_inferior): Check return from ptrace.
4337 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
4339 * gnu-nat.h (struct proc): Add DEAD field.
4340 * gnu-nat.c (make_proc): Initialize DEAD.
4341 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
4342 (gnu_wait): Only abort for 0 threads if the task isn't dead.
4344 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
4346 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
4348 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
4350 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
4351 (inf_set_traced): Only give no-signal-thread error message if
4352 turning *on* tracing.
4354 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4356 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
4357 set inf->threads_up_to_date to 0.
4358 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
4359 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
4360 (proc_update_sc): Cast thread state arg to thread_set_state.
4361 (proc_get_state): Cast thread state arg to thread_get_state.
4362 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
4363 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
4364 inf_update_procs before we lookup the thread.
4365 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
4367 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
4369 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
4371 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
4373 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
4374 INIT_TRACEMASK instead of setting the exec flags.
4376 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4378 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
4379 the task's died, so others have a chance at it.
4380 (gnu_resume): When single-stepping a single thread, given an error
4381 if there is no such thread. When single-stepping one but running
4382 the others, just given a warning and still run all the threads.
4383 (gnu_wait): If there seem to be no threads, look harder, and
4384 signal an error if there really aren't any.
4385 (gnu_attach): Reset thread numbering to 0.
4387 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
4388 thread name in warning messages.
4390 * gnu-nat.c (active_inf): New function.
4391 (show_sig_thread_cmd, show_stopped_cmd): Use it.
4392 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
4393 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
4395 (add_task_commands): Add new port-right info commands.
4397 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4399 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
4400 use mach_msg with MACH_RCV_INTERRUPT.
4401 (set_noninvasive_cmd): New function.
4402 (add_task_commands): Add command entry for `set noninvasive'.
4404 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4406 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
4407 (safe_bcopy): Function removed.
4409 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
4411 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
4412 (make_proc): Initialize state_valid & state_changed fields.
4414 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
4416 * reply_mig_hack.awk: New file.
4418 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
4420 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
4422 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
4425 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
4427 * target.c (debug_to_check_threads): New function.
4429 * inflow.c (terminal_init_inferior_with_pgrp): New function.
4430 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
4431 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
4432 but only if PROCESS_GROUP_TYPE is defined.
4434 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
4436 * target.c (debug_to_thread_alive): Pass through the return value.
4438 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
4440 * target.c (signals, target_signal_from_host, target_signal_to_host):
4441 Add mach exceptions.
4442 * target.h (enum target_signal): Add mach exceptions.
4444 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
4446 * gnu-nat.c: New file: gnu native backend.
4447 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
4448 * gnu-nat.h: New file.
4449 * config/nm-gnu.h: New file.
4450 * config/tm-i386gnu.h: New file.
4451 * config/xm-i386gnu.h: New file.
4452 * config/i386/i386gnu.mh: New file.
4453 * config/i386/i386gnu.mt: New file.
4455 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
4457 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
4458 baseline for gdb 4.16 rerelease testing.
4460 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
4462 * somsolib.c (som_solib_create_inferior_hook): Before returning
4463 call clear_symtab_users.
4465 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
4467 * remote-e7000.c (e7000_open): Delete all breakpoints when
4468 connecting to e7000. Change connect message to allow use of
4469 monitor.exp in test suite.
4470 * (e7000_load): Print transfer rate of download.
4471 * symfile.c (generic_load): Print transfer rate of download.
4473 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
4475 * configure.in (mips*-*-vxworks*): New config.
4476 * configure: Regenerated.
4478 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
4479 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
4482 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4484 * partial-stab.h (case N_FUN): Function symbols generated
4485 by SPARCworks cc have a meaningless zero value, do not update
4486 pst->textlow if the function symbol value is zero.
4488 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
4489 for function prototype declaration symbols.
4491 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
4493 * remote-e7000.c (e7000_load): New routine to download via the
4495 * (e7000_wait): Don't backup PC when we hit a breakpoint.
4496 Apparantly new sh2 pods get this right...
4497 * (e7000_ops): Add call to e7000_load.
4499 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4501 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
4502 m68knbsd-nat.c: New files, support for NetBSD/m68k.
4504 * configure.in (m68k-*-netbsd*): New config.
4505 * configure: Regenerated.
4507 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
4509 * standalone.c (open, _initialize_standalone): Fix obvious typos
4510 reported by Martin Pool <martin@citr.uq.oz.au>.
4512 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
4514 * solib.c (solib_create_inferior_hook): Fix thinko.
4516 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
4518 * solib.c (solib_break_names): Define for Solaris and Linux.
4519 (enable_break): For SVR4 systems, first try to use the debugger
4520 interfaces in the dynamic linker to track shared library events
4521 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
4522 BKPT_AT_SYMBOL code to use shared library event breakpoints.
4523 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
4524 it no longer needs to restart/wait on the inferior.
4525 * symfile.c (find_lowest_section): No longer static.
4526 * symfile.h (find_lowest_section): Corresponding changes.
4528 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
4530 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
4531 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
4532 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
4533 * config/mips/tm-mips.h: Ditto.
4534 * config/pa/tm-hppa.h: Ditto.
4535 * config/rs6000/tm-rs6000.h: Ditto.
4536 * config/sparc/tm-sparc.h: Ditto.
4538 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4540 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
4542 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
4543 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4544 #ifdef'd out definitions --- Causes serious gdb failures on
4545 the i386. Need to investigate further before enabling.
4547 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
4548 fetch_core_registers): New functions. These functions are defined
4549 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
4550 with ptrace PT_GETREGS/PT_SETREGS.
4552 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
4554 * findvar.c (extract_floating store_floating): Replace `long
4555 double' with `DOUBLEST'.
4557 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4559 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4562 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
4564 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
4566 * breakpoint.h (remove_solib_event_breakpoints): Declare.
4567 * breakpoint.c (remove_solib_event_breakpoints): New function.
4568 * somsolib.c (solib_create_inferior_hook): Remove all solib event
4569 breakpoints before inserting any new ones. Use a solib event
4570 breakpoint for the breakpoint at "_start".
4571 Remove extraneous "\n" from calls to warning.
4573 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
4576 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
4578 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
4579 for CORE_ADDR values.
4580 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
4581 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
4583 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4585 * mipsread.c (mipscoff_symfile_read): Unconditionally add
4586 alpha coff dynamic symbols for all symbol files. Makes skipping
4587 over the trampoline code work when stepping from a function in a
4588 shared library into a function in a different shared library.
4590 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
4592 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
4593 RETURN_VALUE_ON_STACK to return long doubles on the stack.
4595 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
4597 * Makefile.in (ch-exp.o): Add dependencies.
4598 (various): Add gdb_string.h to dependencies that need it.
4600 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
4602 * symmisc.c (print_symbol_bcache_statistics): Update description for
4603 printing byte cache statistics.
4605 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
4607 * Add native support for long double data type.
4608 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
4609 to store actual data. Change types of INT and FLOAT tokens to
4610 typed_val_int and typed_val_float respectively. Create new token
4611 DOUBLE_KEYWORD to specify the string `double'. Make production
4612 for FLOAT use type determined by parse_number. Add production for
4613 "long double" data type.
4614 * (parse_number): Use sscanf to parse numbers as float, double or
4615 long double depending upon the type of typed_val_float.dval. Also
4616 allow user to specify `f' or `l' suffix to explicitly specify
4617 float or long double constants. Change typed_val to
4619 * (yylex): Change typed_val to typed_val_int. Also, scan for
4621 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
4623 * configure, configure.in: Add check for long double support in
4625 * defs.h: Define DOUBLEST appropriatly depending on whether
4626 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
4627 for functions that handle this type.
4628 * expression.h (union exp_element): doubleconst is now type
4630 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
4631 * findvar.c (extract_floating): Make return value be DOUBLEST.
4632 Also, add support for numbers with size of long double.
4633 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
4635 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
4637 * valarith.c (value_binop): Change temp variables v1, v2 and v to
4638 type DOUBLEST. Coerce type of result to long double if either op
4640 * valops.c (value_arg_coerce): If argument type is bigger than
4641 double, coerce to long double.
4642 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
4643 arg type is float and > 8 bytes, then use pointer-to-object
4644 calling conventions.
4645 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
4646 Use appropriate format and precision to print out floating point
4648 * value.h: Fixup prototypes for value_as_double,
4649 value_from_double, and unpack_double to use DOUBLEST.
4650 * values.c (record_latest_value): Remove check for invalid
4651 floats. Allow history to store them so that people may examine
4652 them in hex if they want.
4653 * (value_as_double unpack_double): Change return value to DOUBLEST.
4654 * (value_from_double): Arg `num' is now DOUBLEST.
4655 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
4656 specific) to expect certain types to always be returned on the stack.
4658 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
4660 * bcache.c, bcache.h: New files to implement a byte cache.
4661 * Makefile.in (SFILES): Add bcache.c.
4662 (symtab_h): Add bcache.h.
4663 (HFILES_NO_SRCDIR): add bcache.h
4664 (COMMON_OBJS): Add bcache.o
4665 (bcache.o): New target.
4666 * dbxread.c (start_psymtab): Make global_syms & static_syms
4667 type "partial_symbol **".
4668 * hpread.c (hpread_start_symtab): Ditto.
4669 * os9kread.c (os9k_start_psymtab): Ditto.
4670 * stabsread.h (start_psymtab): Ditto.
4671 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
4672 * maint.c (maintenance_print_statistics): Call
4673 print_symbol_bcache_statistics.
4674 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
4676 * solib.c (allocate_rt_common_objfile): Ditto.
4677 * symfile.c (reread_symbols): Ditto.
4678 (free_objfile): Free psymbol bcache when objfile is freed.
4679 (objfile_relocate): Use new indirect psymbol pointers.
4680 * objfiles.h (struct objfile): Add psymbol cache.
4681 * symfile.c (compare_psymbols): Now passed pointers to pointers to
4683 (reread_symbols): Free psymbol bcache when freeing other objfile
4685 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
4686 psymbol using the psymbol bcache.
4687 (init_psymbol_list): Psymbol lists now contain pointers rather than
4688 the actual psymbols.
4689 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
4690 grown arrays of pointers.
4691 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
4693 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
4695 (print_symbol_bcache_statistics): New function to print per objfile
4697 (print_partial_symbol, print_partial_symbols,
4698 maintenance_check_symtabs, extend_psymbol_list):
4699 Account for change to pointer to pointer to partial symbol.
4700 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
4701 make_symbol_completion_list):
4702 Account for change to pointer to pointer to partial symbol.
4703 * symtab.h (bcache.h): Include.
4704 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
4705 type "partial_symbol **".
4707 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
4709 * dwarfread.c (free_utypes): New function.
4710 (read_file_scope): Call free_utypes as cleanup, rather than just
4711 freeing the utypes pointer.
4713 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4715 * demangle.c (is_cplus_marker): New function, checks if a
4716 character is one of the commonly used C++ marker characters.
4717 * defs.h (is_cplus_marker): Add prototype.
4718 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
4719 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
4720 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
4721 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
4722 values.c (vb_match): Use is_cplus_marker instead of comparison
4725 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
4727 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
4728 delete entirely someday.
4730 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4732 * mpw-make.sed: Edit out makefile rebuild rule.
4733 (host_alias, target_alias): Comment out instead of deleting.
4734 (@LIBS@): Edit out references.
4736 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
4738 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4739 Use n_psyms in OBJSTAT, not psyms.
4741 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
4743 * configure.in (sparclet-*-aout*): New config.
4744 * configure: Regenerated.
4746 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
4748 * somsolib.c (som_solib_add): Use xmalloc rather than bare
4749 unchecked call to malloc.
4750 * remote-mips.c (pmon_load_fast): ditto.
4751 * remote-mm.c (mm_open): ditto.
4752 * hpread.c (hpread_lookup_type): ditto.
4753 * remote-adapt.c (adapt_open): ditto.
4755 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
4757 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
4758 allocate_saved_f77_common_node, allocate_common_entry_node,
4759 add_common_block): Use xmalloc rather than malloc, some of which
4761 * gnu-regex.c: At same point as other gdb specific changes
4762 #undef malloc and then #define it to xmalloc.
4763 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
4764 bare unchecked calls to malloc/realloc.
4765 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
4766 unchecked call to malloc.
4768 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
4770 * symtab.c (gdb_mangle_name): Change opname var to be const to
4771 match return val of cplus_mangle_name.
4772 * i960-tdep.c: Change arg types of next_insn to match callers.
4774 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
4776 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
4777 apparently aren't needed in any reasonably recent version of
4780 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
4782 * stabsread.c (read_range_type): If !self-subrange and language
4783 is Chill, assume a true range. If a true_range is a sub_subrange,
4784 use builtin_type_int for index_type.
4786 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
4788 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4789 with an ANSI compiler.
4791 start-sanitize-gdbtk
4792 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
4794 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4795 double-clicking will work again.
4796 (create_asm_win): Put "break" at end of all B1 bindings.
4797 (create_file_win): Lower "sel" tag, don't raise it.
4798 (ensure_line_visible): New proc.
4799 (update_listing, update_assembly): Use it.
4800 (create_copyright_window): Destroy window on Leave event.
4801 (create_command_window): Put "break" at end of all B2 bindings.
4804 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
4806 From Michael_Snyder@NeXT.COM (Michael Snyder):
4807 * valops.c (value_arg_coerce): Coerce float to double, unless the
4808 function prototype specifies float.
4810 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
4812 * language.c (set_language_command): Use languages table when
4813 printing available languages.
4815 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
4817 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
4818 * command.c (add_cmd): Add missing initialization for enums member.
4819 Reorder members to match structure declaration to make it easier to
4820 tell when one is missing.
4821 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4822 memory is referenced after being freed.
4824 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4826 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4827 AT_name tag is missing.
4829 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4830 FLTWATCH and FLTKWATCH are defined.
4832 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4833 return number of bytes transferred for partial reads.
4835 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4837 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
4839 * win32-nat.c (mappings): Add ppc registers.
4840 (child_resume): Turn off step for ppc.
4842 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
4844 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4845 xm-cygwin32.h): New.
4846 * config/i386/(*win32*): Becomes *cygwin32*.
4847 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4848 (powerpcle-*-cygwin32): New.
4849 * configure: Regenerate.
4850 * win32-nat.c (child_create_inferior): Call CreateProcess
4851 with the right program arg.
4853 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
4855 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4857 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
4859 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4861 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4863 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4865 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4867 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4868 here from config/i386/xm-i386mach.h, fix name.
4869 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4870 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4871 here from config/i386/xm-ptx4.h.
4872 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4873 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4874 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4875 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4876 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4878 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4879 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4880 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4882 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
4884 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4885 floating point correctly.
4886 (STORE_RETURN_VALUE): Likewise.
4887 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4889 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
4891 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4892 Define to what should be reasonable values. However, apparently
4893 a bug in linux mmap prevents mapped symbol tables from working.
4895 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
4897 * defs.h (errno.h>: Move #include closer to head of file to solve
4898 obscure problem with systems that declare perror with const arg, in
4899 both errno.h and stdio.h, and const is defined away by intervening
4902 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
4904 From Jon Reeves <reeves@zk3.dec.com>:
4905 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4906 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4908 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
4910 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4911 exist in doc/Makefile.in.
4913 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
4915 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4917 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4919 * ch-valprint.c (calculate_array_length): New function to
4920 determine the length of an array type.
4921 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4922 array type is zero, call calculate_array_length.
4924 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4925 values may not be sorted. Scan all entries and set the real lower
4928 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
4930 * config/xm-linux.h: Move include of solib.h and #define of
4931 SVR4_SHARED_LIBS from here ...
4932 * config/nm-linux.h: ...to here.
4934 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
4936 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4937 Also check for gregset_t and fpregset_t types.
4938 * configure: Regenerate.
4939 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4941 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4942 and HAVE_FPREGSET_T are defined. These changes allow systems
4943 like linux that are migrating to /proc support to use a single
4944 configuration for both new and old versions.
4946 * config/i386/linux.mt: Note that this is now for both a.out and
4948 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4950 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4951 * config/i386/xm-linux.h (solib.h): Include
4952 (SVR4_SHARED_LIBS): Define.
4953 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4954 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4955 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4958 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4960 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4961 * config/i386/xm-sun386.h: Ditto.
4962 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4964 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
4966 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4968 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
4970 From Greg McGary <gkm@gnu.ai.mit.edu>:
4971 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4974 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
4976 * infrun.c (normal_stop): Fix test for shared library event.
4978 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
4980 * configure.in (sparc64-*-*): Add default host configuration.
4981 start-sanitize-gdbtk
4982 (sparc64-*-solaris2* host): Link statically if GCC used.
4984 (sparc64-*-solaris2*): Add target configuration.
4985 * configure: Regenerated.
4986 * sparc/sp64sol2.mt: New file.
4988 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
4990 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4992 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
4994 * Makefile.in (lint): Close backquotes.
4996 start-sanitize-gdbtk
4997 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
4999 * gdbtk.tcl, gdbtk.c: Updated copyrights.
5001 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
5003 * configure: Rebuilt.
5006 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
5008 * NEWS: Make note of new record and replay feature for
5009 remote debug sessions.
5010 * serial.c (gdbcmd.h): Include.
5011 (serial_logfile, serial_logfp, serial_reading, serial_writing):
5012 Define here, for remote debug session logging.
5013 (serial_log_command, serial_logchar, serial_write, serial_readchar):
5014 New functions for remote debug session logging.
5015 (serial_open): Open remote debug session log file when needed.
5016 (serial_close): Close remote debug session log file when needed.
5017 (_initialize_serial): Add set/show commands for name of remote
5018 debug session log file.
5019 * serial.h (serial_readchar): Declare
5020 (SERIAL_READCHAR): Call serial_readchar().
5021 (SERIAL_WRITE): Call serial_write().
5022 (serial_close): Declare as extern.
5023 (serial_logfile, serial_logfp): Declare.
5024 * top.c (execute_command): Declare serial_logfp. Log user command
5025 in remote debug session log if log file is open.
5026 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
5027 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
5028 * remote-array.c (SREC_SIZE): Remove, duplicates define in
5030 * remote-array.c (hexchars, hex2mem): Remove, unused.
5031 * gdbserver/low-linux.c (store_inferior_registers): Remove
5032 unnecessary extern declaration of registers[].
5033 * gdbserver/Makefile.in (all): Add gdbreplay.
5034 * gdbserver/gdbreplay.c: New file.
5035 * gdbserver/README: Give example of recording a remote
5036 debug session with gdb and then replaying it with gdbreplay.
5038 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
5040 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
5041 (read_one_struct_field): Support boolean bitfields.
5042 * c-valprint.c (c_val_print): Print booleans properly.
5044 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
5046 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
5048 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
5050 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
5052 * ch-exp.c (parse_tuple): Error if invalid mode.
5054 * value.h (COERCE_ARRAY): Don't coerce enums.
5055 (COERCE_ENUM): Don't COERCE_REF.
5056 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
5057 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
5058 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
5059 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
5060 Add COERCE_REF before COERCE_ENUM.
5061 * values.c (value_as_long): Simplify.
5063 * valops.c (value_array): Create internalvar if !c_style_arrays.
5065 * language.c (lang_bool_type): Add Fortran support.
5066 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
5068 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
5070 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
5071 All references changed.
5072 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
5073 Update state table. Reformat so that it's still readable.
5074 When we hit the shlib_event breakpoint, set the calss of shlib_event.
5075 (breakpoint_1): Add "shlib events" as a breakpoint type.
5076 Print the shlib_event breakpoint like other breakpoints.
5077 (create_solib_event_breakpoint): New function.
5078 (breakpoint_re_set_one): Handle solib_event breakpoints.
5079 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
5080 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
5082 (create_solib_event_breakpoint): Declare.
5083 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
5084 (normal_stop): Inform the user when the inferior stoped due
5085 to a shared library event.
5086 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
5087 to control whether or not gdb continues the inferior or stops it when
5088 a shared library event occurs.
5089 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
5090 * somsolib.c (TODO list): Update.
5091 (som_solib_create_inferior_hook): Arrange for gdb to be notified
5092 when significant shared library events occur.
5093 * hppa-tdep.c (find_unwind_entry): No longer static.
5095 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
5097 * printcmd.c (print_insn): Pass fprintf_unfiltered to
5098 INIT_DISASSEMBLE_INFO.
5099 start-sanitize-gdbtk
5100 * gdbtk.c (gdb_disassemble): Likewise.
5103 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
5105 * remote.c (remotebreak): New GDB variable.
5106 (remote_break): New global.
5107 (remote_interrupt): Send a break instead of ^C if remote_break.
5108 * NEWS: Describe the new variable.
5110 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
5112 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
5114 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
5116 * hp300ux-nat.c (getpagesize): Remove unused function
5117 fetch_core_registers.
5118 (hp300ux_core_fns): Remove, is unused.
5119 (_initialize_core_hp300ux): Remove, is unused.
5120 (gdbcore.h): Remove #include, no longer needed.
5122 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
5124 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
5125 ptrace bug in aix4.1.3 on the rs6000.
5127 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
5129 * remote-hms.c (hms_ops): Add value for to_thread_alive.
5130 * remote-nindy.c (nindy_ops): Ditto.
5131 * remote-udi.c (udi_ops): Ditto.
5133 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
5135 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
5136 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
5137 pmon_load_fast): New functions. Support for the PMON monitor world.
5138 (common_open): New function to merge support for different monitors.
5139 (mips_open): Use common_open().
5140 (mips_send_command): New function.
5141 (mips_send_packet): Scan out-of-sequence packets.
5142 (mips_enter_debug, mips_exit_debug): New functions.
5143 (pmon_ops): New target definition structure.
5145 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
5147 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
5148 specified on the make command line (via make LIBS=xxx).
5150 * configure.in (enable-gm): magic.o -> gmagic.o.
5153 start-sanitize-gdbtk
5154 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
5156 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
5157 (add_expr): Changes from create_expr_window.
5158 (create_command_window): Set focus.
5159 (delete_expr): Rewrote.
5160 (expr_update_button): New proc.
5161 (add_expr): Put bindings on FocusIn, FocusOut.
5162 Don't allow .file_popup to be torn off.
5165 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
5167 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
5168 is set but there are no psymtabs.
5170 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
5172 * dsrec.c (load_srec): Remove unused variable.
5173 * monitor.c (monitor_expect): Don't expect a ^C to echo.
5174 * serial.c (serial_open): Add parallel interface.
5175 * sh3-rom.c (parallel, parallel_in_use): New.
5176 (sh3_load): If parallel_in_use, download though the
5178 (sh3_open): Open parallel port if specified.
5179 (sh3_close): New function.
5180 (_inititalize_sh3): Add sh3_close hook and documentation.
5181 * monitor.c (monitor_close): Export.
5182 * monitor.h (monitor_close): Add prototype.
5184 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
5186 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5187 * remote.c (remotetimeout): New GDB variable, use to set the
5188 remote timeout for reading.
5190 start-sanitize-gdbtk
5191 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
5193 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
5194 (update_listing): Use lassign. Use "see" to scroll. Don't need
5195 screen_top, screen_bot, screen_height.
5196 (update_assembly): Use "see" to scroll.
5197 (textscrollproc): Removed.
5198 (create_file_win): Don't use textscrollproc.
5199 (asmscrollproc): Removed.
5200 (create_asm_window): Don't use asmscrollproc.
5201 (create_asm_win): Ditto.
5202 (screen_height, screen_top, screen_bot): Removed.
5203 (run_editor): New proc.
5204 (build_framework): Use it.
5205 (create_file_win, create_source_window): Don't use textscrollproc.
5206 (create_breakpoints_window): Set -xscrollcommand on canvas.
5207 (not_implemented_yet): Default button is 0.
5208 (delete_char): Don't use tk_textBackspace.
5209 (create_command_window): Allow Tk bindings to fire after deleting
5211 (create_command_window): Make Delete delete left, not right.
5214 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
5216 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
5217 to get "struct core_fns" defined.
5218 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
5219 Are dependent upon gdbcore_h.
5221 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
5223 * symfile.c (decrement_reading_symtab): New function.
5224 * symfile.c, symtab.h (currently_reading_symtab): New variable.
5225 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
5226 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
5227 currently_reading_symtab (since that could infinitely recurse).
5229 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
5231 * stabsread.c (read_struct_type): Trivial simplification.
5233 * stabsread.c (define-symbol): Use invisible references
5234 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
5235 * valops.c (call_function_by_hand): Likewise.
5236 * eval.c (evaluate_subexp_standard): When known, use the formal
5237 parameter type as the expected type when evaluating arg expressions.
5238 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
5240 start-sanitize-gdbtk
5241 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
5243 * main.c (main): Disable window interface if --help or --version
5246 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
5248 Changes in sync with expect:
5249 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
5251 * aclocal.m4: Replaced with version from expect.
5252 * configure: Regenerated.
5255 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5257 * configure.in, configure: Recognize rs6000-*-aix4*.
5258 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
5259 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
5260 * config/rs6000/xm-aix4.h: New file.
5261 * config/xm-aix4.h: New file.
5263 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
5265 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5266 * gdbserver/low-linux.c: New file.
5267 * remote.c (remote_read_bytes): Fix aborts on larger packets.
5269 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
5271 * stabsread.c (define_symbol): If register value is too large,
5272 tell what it is and what max is.
5274 start-sanitize-gdbtk
5275 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
5277 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
5278 gdbtk_tcl_flush): Use "see", not "yview".
5279 (gdbtk_tcl_query): Use questhead bitmap.
5280 various: Always wrap condition of 'if' in {...}.
5281 (add_breakpoint_frame): Set -value on radiobuttons.
5282 (lassign): New proc.
5283 (add_breakpoint_frame): Use lassign, not series of assignments.
5284 (decr): Made faster.
5285 (interactive_cmd): Use "see", not "yview".
5286 (not_implemented_yet): Use warning bitmap.
5287 (update_expr): Don't allow $expr to be evalled by Tcl.
5288 (create_expr_window): Don't use "focus".
5289 (delete_char, delete_line): Define globally.
5290 (delete_line, delete_char, create_command_window, update_autocmd,
5291 build_framework, create_asm_win, create_file_win): Use "see", not
5293 (create_copyright_window, center_window, bind_widget_after_class):
5295 (FSBox,create_command_window, create_autocmd_window): Binding
5297 (textscrollproc): Define globally.
5298 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
5299 Home, End, Up, and Down are all defined by Tk.
5300 (apply_filespec): Use error bitmap in dialog.
5301 (files_command): Don't use tk_listboxSingleSelect.
5302 (files_command): Don't use "uniq" to remove duplicates from a
5304 (update_assembly): Use lassign.
5305 (create_asm_win): Removed redundant bindings.
5306 (listing_window_button_1, file_popup_menu): Use tk_popup.
5307 (ButtonRelease-1 binding): Just remove tag from window; rest
5310 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
5311 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
5312 (gdbtk_call_command): Ditto.
5315 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
5317 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
5318 enum namespace -> enum_namespace change.
5320 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
5322 * ch-exp.c (parse_primval): In case ARRAY, add missing
5325 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
5327 * remote-mips.c (mips_receive_header): Recognize \012 instead
5328 of \n, but write \n when program sends a \012.
5329 * ser-mac.c (mac_input_buffer): Increase size of buffer.
5331 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
5333 * infptrace.c (initialize_infptrace): Move function out of
5334 #ifdef conditional; put code within the function inside an
5337 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
5338 arguments. Sorting is now dependent on OBJF_REORDERED. All
5339 callers/references changed.
5340 * dbxread.c (read_ofile_symtab): Correctly determine value for
5341 last_source_start_addr for reordered executables.
5342 (process_one_symbol): Handle N_FUN with no name as an end of
5344 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
5345 is the high text address for a psymtab.
5346 (case N_SO): Likewise.
5347 (case N_FUN): Handle N_FUN with no name as an end of function
5349 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
5350 at the same address rather than a random subset of them.
5351 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
5352 * elfread.c (elf_symfile_init): Similarly.
5353 * somread.c (som_symfile_init): Similarly.
5354 * xcoffread.c (xcoff_symfile_init): Similarly.
5356 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
5358 * stack.c (print_stack_frame print_frame_info) symmisc.c
5359 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
5360 that catch_errors doesn't get blindsided by QUIT and lose the
5361 cleanup chain. This fixes a problem where ^C while in a
5362 user-defined command sometimes leaves instream NULL and causes a
5363 segfault in command_loop.
5365 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5367 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
5369 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
5371 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
5372 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
5373 srec.o renamed to dsrec.o.
5375 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
5377 * breakpoint.c (remove_breakpoint): Change error to warning so
5378 that hardware watchpoint removal problems won't leave breakpoint
5379 traps in the target.
5380 start-sanitize-gdbtk
5381 * configure configure.in: Make --enable-gdbtk be the default.
5383 * remote-e7000.c (e7000_insert_breakpoint,
5384 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
5386 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
5387 compensate for e7000 maladjustment.
5388 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
5389 which prevented hardware watchpoints from working.
5391 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
5393 * infptrace.c (udot_info): New function.
5394 (PT_*): Define each individually if that one is not defined.
5395 * rs6000-nat.c (kernel_u_size): New function
5396 Include <sys/user.h> for "struct user"
5397 * alpha-nat.c (kernel_u_size): New function.
5398 Include <sys/user.h> for "struct user"
5399 * sparc-nat.c (kernel_u_size): New function.
5400 Include <sys/user.h> for "struct user"
5401 * i386b-nat.c (kernel_u_size): New function.
5402 * i386v-nat.c (kernel_u_size): New function.
5403 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
5404 (kernel_u_size): Declare.
5405 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
5406 (kernel_u_size): Declare.
5407 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
5408 (kernel_u_size): Declare.
5409 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
5410 (kernel_u_size): Declare.
5411 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
5412 (kernel_u_size): Declare.
5414 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
5416 * mdebugread.c (mylookup_symbol): enum namespace becomes
5417 enum_namespace type.
5418 * symfile.c (add_psymbol_to_list)
5419 (add_psymbol_addr_to_list): Ditto.
5420 * symtab.c (lookup_partial_symbol): Ditto.
5421 (lookup_symbol): Ditto.
5422 (lookup_block_symbol): Ditto.
5423 * win32-nat.c (handle_load_dll): Use incoming dll base.
5424 (child_wait): Catch DLL load errors.
5425 (create_child_inferior): Translated between paths correctly.
5427 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
5429 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
5430 from NUM_REGS to get number of general registers that we care about.
5431 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
5432 of number of general regs and number of floating point regs.
5434 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
5436 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
5437 (SKIP_TRAMPOLINE_CODE): New.
5438 * config/i386/xm-win32.h (CANT_FORK): Deleted.
5439 (SLASH*) Changed to use unix style slash.
5440 * symtab.h (namespace enum): becomes typedef to avoid namespace
5442 * infcmd.c (path_command): Use empty string if PATH name not set.
5443 * i386-tdep.c (skip_trampoline_code): New function.
5444 * srec.c: Renamed dsrec.c to avoid filename collision.
5445 * Makefile.in: Cope with renaming.
5447 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
5449 * symmisc.c (print_objfile_statistics): Print memory use statistics
5450 for objfile psymbol, symbol, and type obstacks.
5452 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
5454 * config/mips/nm-irix5.h: Restore.
5455 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
5456 from Lee Iverson <leei@ai.sri.com>.
5457 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
5458 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
5460 For older changes see ChangeLog-95
5466 version-control: never