1 Sun Dec 8 18:02:57 1996 Doug Evans <dje@canuck.cygnus.com>
3 * remote-sim.h: Update some comments.
4 * remote-sim.c (gdb_os_error): New function.
5 (init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
6 (gdb_os_printf_filtered): Use gdb_stdout, not stdout.
8 Sun Dec 8 00:36:31 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10 * irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
12 (xfer_link_map_member): Work around problem with alignments
13 in struct obj when compiling GDB under N32 ABI.
16 Thu Dec 5 23:30:44 1996 Stan Shebs <shebs@andros.cygnus.com>
18 * d10v-tdep.c: Add support for examination and interpretation
19 of instruction trace buffer.
20 (trace, untrace, info trace, tdisassemble): New commands.
23 Thu Dec 5 14:06:23 1996 Doug Evans <dje@canuck.cygnus.com>
25 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER): Undef.
26 (TARGET_BYTE_ORDER_SELECTABLE): Define.
28 ({BIG,LITTLE}_BREAKPOINT): Define.
29 (TM_PRINT_INSN_MACH): Redefine for sparclet.
31 Wed Dec 4 16:34:05 1996 Geoffrey Noer <noer@cygnus.com>
33 * config/mn10300/mn10300.mt, config/mn10300/tm-mn10300.h: New.
35 Tue Dec 3 13:02:08 1996 Fred Fish <fnf@ninemoons.com>
37 * infptrace.c (store_inferior_registers): Move some common code out
38 to store_register, like fetch_inferior_registers & fetch_register.
39 (store_register): New function, from store_inferior_registers.
40 (fetch_inferior_registers, fetch_register): Minor code tweaks to
41 make {fetch,store}_inferior_registers and {fetch,store}_register
42 routines as similar in structure as possible.
43 (fetch_inferior_registers, store_inferior_registers): Eliminate
44 local variable numregs and just use ARCH_NUM_REGS directly.
46 Tue Dec 3 11:38:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
48 * blockframe.c: add macro USE_GENERIC_DUMMY_FRAMES to enable/disable
49 code for generic call_dummy frames.
50 * config/h8300/tm-h8300.h: turn on USE_GENERIC_DUMMY_FRAMES
52 * config/m32r/tm-m32r.h: Ditto.
54 * config/sh/tm-sh.h: Ditto.
56 * config/v850/tm-v850.h: Ditto.
59 Sun Dec 1 00:41:47 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
61 * vax-tdep.c (vax_print_insn, print_insn_arg): Use info functions
62 for printing. From Valeriy Ushakov <uwe@ptc.spbu.ru>.
64 Sun Dec 1 00:40:46 1996 Geoffrey Noer <noer@cygnus.com>
66 * configure.tgt: Add new mn10300 entry.
68 Sun Dec 1 00:18:59 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
70 Add support for Irix 6.2 native O32 and N32 ABI.
72 * config.in, configure.in, configure: Check for <objlist.h>.
73 * configure.tgt: Handle mips*-sgi-irix6* like irix5 for now.
75 * cp-valprint.c (cp_print_value_fields): Use SYMBOL_VALUE_ADDRESS
76 instead of SYMBOL_BLOCK_VALUE to get the address of a static member.
78 * dwarf2read.c: Turn warnings and recoverable errors into complaints,
79 add new complaints where appropriate.
81 (struct line_head): Change line_base from char to int to avoid
82 problems with compilers whose plain char is represented by an
84 (struct partial_die_info): Add is_declaration field.
85 (dwarf2_tmp_obstack): New obstack for allocating temporary storage
86 used during symbol reading.
87 (cu_header_offset): New variable for resolving relative reference
89 (optimized_out, basereg, islocal, frame_base_reg, frame_base_offset):
90 New interface variables for decode_locdesc.
91 (struct dwarf2_pinfo): New structure for communication between
92 psymtab and symtab reading, passed via pst->read_symtab_private.
93 (dwarf2_has_info, dwarf2_build_psymtabs): Accept objects files
94 without line number sections.
95 (dwarf2_build_psymtabs_hard): Initialize temporary obstack
97 Allocate and initialize pst->read_symtab_private.
98 Relocate pst->textlow and pst->texthigh with baseaddr.
99 (scan_partial_symbols): Do not add DW_AT_declaration symbols
100 to the partial symbol table.
101 Add file scope enumerator symbols to the partial symbol table.
102 Fix typo in highpc computation.
103 If we didn't find a lowpc, set it to highpc to avoid complaints
105 (add_partial_symbol): Relocate symbol values with baseaddr.
106 Add static DW_TAG_subprogram and DW_TAG_variable symbols to the
107 minimal symbol table.
108 Obtain symbol values for DW_TAG_variable symbols from the location
109 descriptor, skip symbols with missing location desciptors.
110 Skip symbols for aggregate types without children.
111 Handle enumerator symbols.
112 (dwarf2_psymtab_to_symtab): Issue symbol reading message if verbose.
113 (psymtab_to_symtab_1): Set local variables from
114 pst->read_symtab_private, set cu_header_offset and baseaddr.
115 Initialize temporary obstack for symbol reading, initialize
116 buildsym and add a cleanup to really_free_pendings.
117 Relocate highpc with baseaddr when calling end_symtab.
118 If the compilation is from a C file generated by language
119 preprocessors, do not set the symtab language if it was already
120 deduced by start_subfile.
121 Removed verbose sorting symbol table message.
122 (process_die): Handle DW_TAG_ptr_to_member_type and
123 DW_TAG_reference_type.
124 Use read_subroutine_type to get the function type for
125 DW_TAG_subprogram before calling read_func_scope.
126 (read_file_scope): Initialize file name to <unknown>, start_subfile
127 expects a non-NULL name.
128 If we didn't find a lowpc, set it to highpc to avoid complaints
130 Relocate lowpc and highpc with baseaddr.
131 Get rid of Irix6.2 native cc compile machine prefix in comp_dir.
132 Zero out ftypes for each new compilation unit (may be different
133 language or different objfile).
134 Accept compilation units without line number information, pass
135 comp_dir to decode_lines.
136 (read_func_scope): Initialize function name to <unknown> to avoid
137 core dumps when DW_AT_name is missing.
138 Relocate lowpc and highpc with baseaddr.
139 Handle DW_AT_frame_base, keep result for DW_OP_fbreg operations.
140 Pass function type to new_symbol.
141 (read_lexical_block_scope): Relocate lowpc and highpc with baseaddr.
142 (read_structure_scope): Set TYPE_TAG_NAME, not TYPE_NAME.
143 Handle DW_TAG_class_type.
144 Copy fields to type_obstack, release temporary storage for fields.
145 Don't add symbol if die is a stub die and has no children.
146 Handle C++ static member fields.
147 (read_enumeration): Set TYPE_TAG_NAME, not TYPE_NAME.
148 Copy fields to type_obstack, release temporary storage for fields.
149 Let new_symbol handle the symbol creation for enumerators
150 instead of handcrafting a symbol.
151 Determine signedness of enum type from enumerators.
152 (dwarf_read_array_type): Handle variable length arrays.
153 Use lookup_pointer_type instead of handcrafting a type.
154 Create array type only if a DW_TAG_subrange_type was found.
155 (read_tag_pointer_type, read_tag_reference_type):
156 Use lookup_pointer_type and lookup_reference_type instead
157 of handcrafting a type.
158 (read_tag_ptr_to_member_type): New function to handle
159 DW_TAG_ptr_to_member_type.
160 (read_subroutine_type): Handle parameter dies.
161 Use lookup_function_type instead of handcrafting a type.
162 (read_typedef): Allocate a TYPE_CODE_TYPEDEF type for the typedef.
163 (read_base_type): If the type has a name, use init_type to create
164 a new type instead of second guessing a fundamental type.
165 (read_comp_unit): Reset die reference table before building
167 (dwarf2_read_section): Read section contents into psymbol_obstack.
168 (dwarf2_read_abbrevs): Handle unterminated abbreviations
169 for a compile unit gracefully.
170 (read_partial_die): Zero partial die before reading its info.
171 Handle DW_AT_declaration.
172 Fix typo in handling of DW_FORM_block4.
173 (read_full_die): Fix typo in handling of DW_FORM_block4.
174 (read_1_signed_byte, read_2_signed_bytes, read_4_signed_bytes):
175 New routines to get signed values from a buffer.
176 (read_n_bytes, read_string): Allocate storage from the temporary
177 obstack. If the host char size permits it, return pointer
178 to buffer instead of allocating storage.
179 (set_cu_language): Handle DW_LANG_Mips_Assembler.
180 (dwarf_attr): Return NULL if reference die for DW_AT_specification
181 or DW_AT_abstract_origin die is not found.
182 (record_minimal_symbol): Removed, replaced with a direct call to
183 prim_record_minimal_symbol, it now handles saving the string itself.
184 (convert_locdesc): Removed, partial symtab reading now uses
186 (dwarf_attr): Use dwarf2_get_ref_die_offset to get the absolute
187 offset for the die reference.
188 (dwarf_decode_lines): Complain if the line section info is missing.
189 Use read_1_signed_byte to extract lh.line_base to avoid
190 problems with compilers whose plain char is represented by an
192 Add cleanups for allocated temporary storage.
193 Start a subfile for the first file in the state machine.
194 Fix off by one problem with dirs.dirs access.
195 Use comp_dir when directory index is 0.
196 Support multiple sequences (from Jason Merrill <jason@cygnus.com>).
197 (dwarf2_start_subfile): Try to keep line numbers from identical
198 absolute and relative file names in a common subfile.
199 (new_symbol): Allocate symbol and symbol name on the symbol_obstack.
200 Set SYMBOL_LINE from DW_AT_decl_line if present.
201 Set SYMBOL_TYPE from passed type if not NULL.
202 Change DW_TAG_variable symbol types with missing type entries
204 Handle optimized_out, offreg and islocal storage classes.
205 Add external symbols with type information whose address isn't
206 known as LOC_UNRESOLVED symbols.
207 Synthesize typedefs for C++ classes, structs, unions and enumerations.
208 Handle DW_TAG_enumerator symbols, complain for unrecognized
210 (die_type): A missing DW_AT_type represents a void type.
211 Use dwarf2_get_ref_die_offset to get the absolute offset for
213 (die_containing_type): New function to build type from
214 DW_AT_containing_type attribut.
215 (read_type_die): Handle DW_TAG_ptr_to_member_type.
216 Treat DW_TAG_subprogram like DW_TAG_subroutine_type.
217 (dwarf_base_type): Fix typo with creation of FT_UNSIGNED_SHORT
219 (create_name): Removed, symbol name allocation is now done
221 (dump_die): Use print_address_numeric to print a CORE_ADDR.
222 (dwarf2_empty_die_ref_table): New function to clear the die
224 (dwarf2_get_ref_die_offset): New function to get the absolute
225 die offset from a die reference attribute.
226 (decode_locdesc): Complete rewrite using a stack, code mostly
227 borrowed from dwarfread.c:locval.
228 (dwarf_alloc_type): Removed, replaced by direct calls to alloc_type.
229 (dwarf_alloc_block): Allocate block on temporary obstack.
231 * elfread.c (elf_symtab_read): When handling Irix dynamic symbols,
232 skip section name symbols and relocate all others.
233 (elf_symfile_read): Build dwarf2 psymtab even if offset is non-zero.
235 * irix5-nat.c (fetch_core_registers): Handle core_reg_sect
236 from N32 executables. Call registers_fetched after extracting
238 (obj_list_variant, struct link_map, LM_OFFSET, LM_ADDR): New
239 definitions to enable support of O32 and N32 format objlists.
240 (struct so_list): New members offset, so_name and lmstart to
241 eliminate dependencies from the objlist format used.
242 (solib_map_sections, symbol_add_stub, solib_add,
243 info_sharedlibrary_command, solib_address, clear_solib): Use
244 so_name and LM_OFFSET.
245 (first_link_map_member): Rewrite to enable support of O32 and N32
247 (next_link_map_member, xfer_link_map_member): New functions to
248 support O32 and N32 format objlists.
249 (find_solib): Use first_link_map_member, next_link_map_member and
250 xfer_link_map_member.
251 (solib_create_inferior_hook): Use TARGET_SIGNAL_* instead of
254 * mdebugread.c (parse_partial_symbols, handle_psymbol_enumerators):
255 Pass CORE_ADDR variant to add_psymbol_to_list.
257 * mips-tdep.c (heuristic_proc_desc): Stop examining the prologue
258 if we encounter a positive stack adjustment. Handle `move $30,$sp'.
259 Handle `sd reg,offset($sp)' for 32 bit ABIs.
261 * symmisc.c (dump_msymbols, print_partial_symbols): Use
262 print_address_numeric to print a SYMBOL_VALUE_ADDRESS.
263 (dump_symtab): Print compilation directory if it is not NULL.
265 * valops.c (search_struct_field, value_struct_elt_for_reference):
266 Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_BLOCK_VALUE to get the
267 address of a static member.
269 Thu Nov 28 00:46:24 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
271 * vax-tdep.c (vax_print_insn): Made static, modified to take
272 disassemble_info as parameter.
273 (_initialize_vax_tdep): New function to initialize tm_print_insn
276 Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
278 * blockframe.c: Remove old-style CALL_DUMMY code.
279 * h8300-tdep.c, config/h8300/tm-h8300.h: Ditto.
281 * m32r-tdep.c, config/m32r/tm-m32r.h: Ditto.
283 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
285 * v850-tdep.c, config/v850/tm-v850.h: Ditto.
288 Wed Nov 27 10:32:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
290 * breakpoint.c: DELETE command will not delete CALL_DUMMY breakpoint.
291 * blockframe.c: Add target-independant support for managing
292 CALL_DUMMY frames on the host side.
293 * frame.h: Declarations for generic CALL_DUMMY frame support.
294 * h8300-tdep.c: Add target function calls using generic frame support.
295 * config/h8300/tm-h8300.h: config for generic target function calls.
297 * m32r-tdep.c: Add target function calls using generic frame support.
298 * config/m32r/tm-m32r.h: config for generic target function calls.
300 * sh-tdep.c: Add target function calls using generic frame support.
301 * config/sh/tm-sh.h: config for generic target function calls.
303 * v850-tdep.c: Add target function calls using generic frame support.
304 * config/v850/tm-v850.h: config for generic target function calls.
306 * valops.c: ADD PUSH_RETURN_ADDRESS so that it doesn't have to be
307 done by PUSH_ARGUMENTS when there's no CALL_DUMMY.
309 Tue Nov 26 19:21:35 1996 Mark Alexander <marka@cygnus.com>
311 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
312 (mips_addr_bits_remove): Declare.
313 * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post
314 errors when hitting breakpoints during inferior function calls
316 (fix_sign_extension): Make public, rename to mips_addr_bits_remove.
317 * utils.c (paddr_nz, preg_nz): New functions, similar to
318 paddr and preg but don't print leading zeroes.
319 * defs.h (paddr_nz, preg_nz): Declare.
320 * remote-mips.c: Use paddr_nz instead of paddr throughout
321 to reduce packet size.
322 (pmon_end_download): Improve timeout error handling.
324 Tue Nov 26 17:21:37 1996 Ian Lance Taylor <ian@cygnus.com>
326 * configure: Rebuild with autoconf 2.12.
328 Mon Nov 25 13:17:16 1996 Fred Fish <fnf@ninemoons.com>
330 From: Paul Eggert <eggert@twinsun.com>
331 * remote-bug.c (wait_strings): Avoid creating a trigraph.
334 Fri Nov 22 15:55:22 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
336 * valops.c (value_at, value_fetch_lazy): Put in D10V call
337 to fix up address pointers.
338 * values.c (value_from_longest): Removed previous d10v changes.
339 * config/d10v/tm-d10v.h (TARGET_PTR_BIT): Change to 4 bytes.
342 Fri Nov 22 10:06:19 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
344 * config/i386/nm-i386v4.h (LOSING_POLL): Define, needed for
347 Thu Nov 21 19:13:58 1996 Mark Alexander <marka@cygnus.com>
349 * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN.
350 (common_breakpoint): Use paddr instead of %x to print 64-bit values.
351 (heuristic_proc_desc): Add tests for 64-bit instructions.
352 (init_extra_frame_info, mips_push_arguments): Recognize additional
354 * remote-mips.c: Extend DDB target to allow TFTP downloads.
355 * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS):
358 Wed Nov 20 19:09:16 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
360 * infcmd.c (do_registers_info): Call val_print with the
361 virtual buf instead of the raw buf. Needed for REGISTER_CONVERT
362 to work with non-floating point regs.
365 * d10v-tdep.c (d10v_skip_prologue): If we have line debugging
366 information, then the end of the prologue should the first
367 assembly instruction of the first source line.
369 * values.c (value_from_longest): Put in D10V call to
370 fix up address pointers.
372 * config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified.
373 (REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM.
374 (REGISTER_CONVERTIBLE): Make PC and SP convertible.
375 (REGISTER_CONVERT_TO_VIRTUAL): Define.
376 (REGISTER_CONVERT_TO_RAW): Define.
377 (D10V_MAKE_DADDR): Define.
378 (D10V_MAKE_IADDR): Define.
380 Wed Nov 20 16:15:15 1996 Geoffrey Noer <noer@cygnus.com>
382 * config/i386/cygwin32.mh: add MMALLOC_CFLAGS = -I$(MMALLOC_SRC)
383 -DMMCHECK_FORCE=1 so memory checks are loaded for cygwin32 gdb
385 Wed Nov 20 00:43:09 1996 Doug Evans <dje@canuck.cygnus.com>
387 * callback.h: Delete, moved to ../include.
388 * callback.c: Delete, moved to ../sim/common.
389 * Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
390 (callback.o): Delete rule.
391 * remote-sim.h: No longer include callback.h.
392 (sim_callback_write_stdout): Delete prototype.
393 * remote-sim.c (init_callbacks,end_callbacks): New functions.
394 (gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
395 (gdb_callback, callbacks_initialized): New static globals.
396 (gdbsim_open): Call init_callbacks.
397 (gdbsim_close): Call end_callbacks.
398 (simulator_command): Call init_callbacks.
400 * config/h8300/h8300.mt (SIM): Change to ../sim/h8300/libsim.a.
401 * config/h8500/h8500.mt (SIM): Change to ../sim/h8500/libsim.a.
404 Tue Nov 19 09:26:14 1996 Tom Tromey <tromey@cygnus.com>
406 * gdbtk.c (gdbtk_readline): Fix memory leak.
408 Mon Nov 18 23:43:05 1996 Tom Tromey <tromey@cygnus.com>
410 Fixes for Tcl 7.6 / Tk 4.2:
411 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
412 Remove old fileselect code.
413 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
416 Mon Nov 18 15:58:05 1996 Jim Wilson <wilson@cygnus.com>
418 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Change unsigned LONGEST
421 Fri Nov 15 15:34:18 1996 Fred Fish <fnf@cygnus.com>
423 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
424 * procfs.c (wait_fd): Handle EINTR error return from poll
425 by restarting the poll.
426 * defs.h (PIDGET): Define a default version that just
427 returns its argument unchanged.
428 * inflow.c (terminal_init_inferior): Eliminate #ifdef
429 of PIDGET and fold both alternatives into common code.
430 (pass_signal): Use PIDGET for pid passed to kill().
432 Thu Nov 14 15:54:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
434 * utils.c (paddr,preg): Use a static variable initialized to 32
435 instead of doing addr>>32 to eliminate a warning produced by GCC
439 * config/d10v/tm-d10v.h (ULONGEST): Define.
442 Tue Nov 12 12:25:27 1996 Jim Wilson <wilson@cygnus.com>
444 * c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
445 recursive call to type_print.
447 Tue Nov 12 12:18:29 1996 Jim Wilson <wilson@cygnus.com>
449 * defs.h (ULONGEST): New macro.
450 * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
451 corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
452 m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
453 valarith.c, valops.c, values.c, config/gould/tm-np1.h,
454 config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
455 mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
456 Change all occurances of unsigned LONGEST to ULONGEST.
458 * configure.host (mips-sgi-irix6): Add.
460 Tue Nov 12 12:16:40 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
462 * sh-tdep.c: Add functionality for target function calls.
463 * config/sh/tm-sh.h: Add support for target function calls.
466 Tue Nov 12 12:06:58 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
468 * m32r-tdep.c: Add functionality for target function calls.
469 * valops.c: Small change to support target function calls.
470 * config/m32r/tm-m32r.h: Add support for target function calls.
473 Mon Nov 11 17:15:59 1996 Geoffrey Noer <noer@cygnus.com>
475 * defs.h: Modify Nov 11 12:59:00 change so _MSC_VER is checked
477 * win32-nat.c: Fix Nov 11 12:59:00 change (windows.h should
478 be included instead of windefs.h for compilers other than
480 * mswin/windefs.h: Remove ^Ms and change C++ style comments
483 Mon Nov 11 14:32:38 1996 Mark Alexander <marka@cygnus.com>
485 * utils.c (get_cell): Fix off-by-one bug.
486 * mips-tdep.c (get_frame_pointer, fix_sign_extension):
487 New functions to consolidate common code.
488 (mips_frame_chain, init_extra_frame_info): Use new functions
489 to fix problems with backtrace and finish commands on ddb board.
491 Mon Nov 11 12:59:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
493 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
494 config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
495 * defs.h: Cleanup; add prototypes.
496 * corefile.c: Change FIXME #ifdef
497 * win32-nat.c: Include windefs instead of windows.h.
498 * utils.c: Add routines for printing addresses and registers
501 Sat Nov 9 01:05:10 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
503 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
504 if we encounter a positive stack adjustment.
505 (find_proc_desc): If heuristic_fence_post is non-zero, use
506 heuristic_proc_start to determine the start of a function before
507 calling heuristic_proc_desc.
509 * coffread.c (coff_symtab_read): Change minimal symbol types
510 for C_LABEL symbols from mst_* to mst_file_*.
512 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
514 * configure.in: Handle error message from sun3 native ld when
515 configuring HLDFLAGS.
516 * configure: Regenerated with autoconf.
518 * c-valprint.c (c_value_print): Adjust value address by VALUE_OFFSET.
519 * cp-valprint.c (cp_print_value): Prevent gdb crashes by making sure
520 that the virtual base pointer from an user object still points to
523 * dbxread.c (dbx_symfile_init): Initialize sym_stab_info to
524 clear the recently added header_files fields.
525 (dbx_symfile_finish): Free hfiles[i].vector to avoid storage leak.
527 Fri Nov 8 14:30:23 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
529 * config/tm-sh.h: Added a missing comma in middle of
532 Fri Nov 8 12:29:51 1996 Stan Shebs <shebs@andros.cygnus.com>
534 * monitor.c: Fix some formatting and comments.
536 * remote-sim.c (simulator_command): Set up callbacks before
537 entering the simulator.
540 Thu Nov 7 15:19:08 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
542 * d10v-tdep.c: Fix some problems with inferior function calls.
543 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
544 a pointer to the dummy's stack instead of just a flag.
548 Tue Nov 5 10:21:02 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
550 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
551 * config/tm-m32r.h: Add framesize and register to extra_frame_info.
554 Tue Nov 5 10:08:07 1996 Stu Grossman (grossman@critters.cygnus.com)
556 * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
557 * mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1): Initialize depth
558 to fix divide-by-zero problem with clicking on source window.
560 Mon Nov 4 00:48:37 1996 Stu Grossman (grossman@critters.cygnus.com)
562 * mswin/recordit: Fix problem with absolute paths.
563 * mswin/recordit: Fix problem with relative paths.
565 Sun Nov 3 18:06:42 1996 Stu Grossman (grossman@critters.cygnus.com)
567 * mswin/{Makefile.in configure configure.in}: New files for
568 configuring wingdb under Unix.
570 Sat Nov 2 03:54:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
572 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
573 missing or zero-sized .text sections properly.
574 * mdebugread.c: Handle scRConst and scSUndefined storage classes.
575 * stabsread.c (scan_file_globals): Try to resolve symbols
576 for shared libraries from the minimal symbol table of the main
580 Fri Nov 1 13:59:28 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
582 * d10v-tdep.c, config/d10v/tm-d10v.h: Major fixes to support
583 inferior function calls and proper stack backtracing on D10V-EVA
587 Fri Nov 1 10:50:51 1996 Michael Meissner <meissner@tiktok.cygnus.com>
589 * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it
591 (GDBSERVER_DEPFILES,TERMCAP): Ditto.
593 * monitor.c (dev_name,targ_ops): Move static variables before
594 first use, to avoid compiler warnings.
597 Thu Oct 31 16:37:17 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
599 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
600 * configure.tgt: Add entry for m32r target.
601 * monitor.h: Add a flag to tell monitor_store_register to use
602 (val, regno) instead of (regno, val).
603 * monitor.c: Make monitor_store_register honor the above flag.
604 Make monitor_exp ignore DC1/DC3 for m32r.
605 Increase buf size in monitor_dump_regs.
607 Wed Oct 30 18:14:14 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
609 * m32r-tdep.c, m32r-rom.c: New files.
610 * config/m32r/m32r.mt: New file.
611 * config/m32r/tm-m32r.h: New file.
614 Tue Oct 29 16:56:01 1996 Geoffrey Noer <noer@cygnus.com>
616 * config/i386/xm-cygwin32.h:
617 * config/powerpc/xm-cygwin32.h:
618 add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
621 Tue Oct 29 18:36:43 1996 Michael Meissner <meissner@tiktok.cygnus.com>
623 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE):
626 Tue Oct 29 14:59:20 1996 Stan Shebs <shebs@andros.cygnus.com>
628 * TODO: Add item suggesting an "info bfd" command.
631 Tue Oct 29 12:48:04 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
633 * d10v-tdep.c: Snapshot that supports D10V-EVA board.
635 * config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
636 (TARGET_READ_FP,TARGET_WRITE_FP): Define.
639 Mon Oct 28 17:34:24 1996 Stu Grossman (grossman@critters.cygnus.com)
641 * mswin/genmakes mswin/recordit: New scripts to generate make
644 Sun Oct 27 20:18:04 1996 Mark Alexander <marka@cygnus.com>
646 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
648 * configure.tgt: Modify cases for vr5000 to use new files.
650 Sat Oct 26 07:15:14 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
652 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
654 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
655 the entry to the exit system call to detect termination of the
656 inferior stopped working. Trace termination of the inferior via
657 PRFS_STOPTERM instead.
658 (procfs_init_inferior): Do not trace entry to exit system call
659 if PIOCSSPCACT is defined.
660 (procfs_wait): Handle PR_DEAD event, which signals the termination
661 of the inferior if PRFS_STOPTERM is set.
663 * mdebugread.c (parse_partial_symbols): Ignore stNil section
664 start address symbols.
666 * sparc-tdep.c (get_saved_register): Get saved PC from the
667 frame info if not in innermost frame.
669 Thu Oct 24 10:51:45 1996 Mark Alexander <marka@cygnus.com>
671 * dbxread.c (process_one_symbol): Interpret end-of-function
672 markers correctly; this fixes problem on Vr5000 where all
673 functions in a module had the same address.
674 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
675 Correct for pc-linux-gnu problem in config.guess.
676 * configure: Regenerate.
678 Thu Oct 24 10:06:58 1996 Stu Grossman (grossman@critters.cygnus.com)
680 * dbxread.c: Don't swap symbols in place, since internal and
681 external forms may have different sizes. Don't assume that an
682 internal_nlist has the same layout as an external_nlist. Create
683 symbol for n_strx element so to hide specifics of nlist from
685 * partial-stab.h: Don't reference dbxread symbols directly. Use
686 CUR_SYMBOL_STRX instead.
687 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
690 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
692 * mswin/gdbwin.c (reg_order): Define register order for V850.
693 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
695 * mswin/regdoc.h: Define MAXREGS for V850.
698 Tue Oct 22 16:28:20 1996 Stu Grossman (grossman@critters.cygnus.com)
700 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
701 prologues correctly. First, prologue end is now defined by
702 presence of a branch, jump or call insn. Second, can no longer
703 fix frame offsets because we may not know the offset until after a
704 register has been saved.
705 * (v850_init_extra_frame_info): Fixup frame offsets here because
706 we have all the info at this time.
707 * (v850_frame_chain): Use new calling convention for scan_prologue.
711 Tue Oct 22 10:25:29 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
713 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
714 backtraces and inferior function calls.
717 Tue Oct 22 10:32:46 1996 Stan Shebs <shebs@andros.cygnus.com>
719 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
720 (@HLDFLAGS@): Always edit out.
722 Mon Oct 21 18:17:08 1996 Mark Alexander <marka@cygnus.com>
724 * mdebugread.c (parse_partial_symbols): Fix 64-bit
725 sign-extension problems in calculating psymtab addresses.
726 * buildsym.c (end_symtab): Use macro to pop context.
729 Mon Oct 21 14:40:50 1996 Stu Grossman (grossman@critters.cygnus.com)
731 * v850-tdep.c: Cleanup lots of things. Add many comments.
733 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
734 sign bugs with scanning prologues. Get a little smarter about
735 calculating the length of uninteresting instructions.
738 Mon Oct 21 14:01:38 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
740 * top.c: Add new commands "set annotate" and "show annotate".
742 Sun Oct 20 04:38:39 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
744 * corelow.c (core_close): Clear inferior_pid only if there is
747 * cp-valprint.c (cp_print_value_fields): Pass correct address
750 From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de):
751 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
752 typedefs before checking for integral type of right operand.
754 Fri Oct 18 17:26:22 1996 Mark Alexander <marka@cygnus.com>
756 * mdebugread.c (parse_symbol): Fix crash when malloc has
757 no type info and void type has no associated pointer type.
759 Thu Oct 17 18:18:20 1996 Stan Shebs <shebs@andros.cygnus.com>
761 * configure.host: New file, host configuration mapping.
762 * configure.tgt: New file, target configuration mapping.
763 * configure.in: Remove host and target mapping.
764 * configure: Rebuild.
766 Wed Oct 16 17:46:03 1996 Stan Shebs <shebs@andros.cygnus.com>
768 * breakpoint.c (must_shift_inst_regs): New global.
769 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
770 equivalent expression uses.
771 * infrun.c (wait_for_inferior): Ditto.
774 Wed Oct 16 01:53:43 1996 Stu Grossman (grossman@critters.cygnus.com)
776 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
778 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
781 Tue Oct 15 16:30:07 1996 Stu Grossman (grossman@critters.cygnus.com)
783 * Makefile.in (init.c): Don't use -s option with grep. It means
784 something different under Digital Unix.
786 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
787 LOC_LOCAL_ARG as arguments so that GDB will know about function
788 args declared this way. Mostly affects dwarf.
789 * dwarfread.c (decode_die_type): Change default type from int to
790 void. This allows GDB to recognize void functions.
791 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
793 * findvar.c (extract_floating store_floating): Clean up comments
795 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
796 function has a prototype. Currently, only dwarf supports this.
797 * utils.c (floatformat_from_doublest): Fix logic error with
798 converting from double to float. (It wasn't shifting mant_long if
799 it had a hidden bit.)
802 * v850-tdep.c: Add support for function calling. Fix some
803 problems with debugging code w/o debug symbols.
804 * config/v850/tm-v850.h: Ditto.
807 Tue Oct 15 18:19:42 1996 Ian Lance Taylor <ian@cygnus.com>
809 * utils.c: Always ensure that size_t is defined. Check
810 HAVE_STDDEF_H rather than __STDC__
811 (xmalloc, xrealloc): Use size_t rather than long.
813 Tue Oct 15 14:24:19 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
815 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
816 can use single-step commands.
818 Sun Oct 13 11:38:25 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
820 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
821 follow typedefs before checking TYPE_CODE for structures and unions.
823 Fri Oct 11 15:43:54 1996 Stu Grossman (grossman@critters.cygnus.com)
825 * frame.h: Move definition of struct frame_saved_regs to before
826 struct frame to make it possible to use frame_saved_regs in
827 EXTRA_FRAME_INFO macro.
830 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
831 macros to make frame operations (such as backtrace) work.
834 Fri Oct 11 14:23:50 1996 Fred Fish <fnf@cygnus.com>
836 * dbxread.c (process_one_symbol): Check for null string directly
837 rather than using strcmp against "".
838 * partial-stab.h: Ditto.
840 Fri Oct 11 12:18:32 1996 Mark Alexander <marka@cygnus.com>
842 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
843 Make it compile on Linux and eliminate some warnings.
845 Thu Oct 10 16:32:08 1996 Stu Grossman (grossman@critters.cygnus.com)
847 * Makefile.in (init.c): Fixup final sed script to work around
848 Linux bug with `p' operator.
850 Wed Oct 9 18:02:48 1996 Stan Shebs <shebs@andros.cygnus.com>
852 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
854 (ddb_ops, pmon_ops): Fix the documentation strings.
856 Wed Oct 9 07:42:44 1996 Stu Grossman (grossman@critters.cygnus.com)
858 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
859 filenames with sed instead.
861 Tue Oct 8 15:59:44 1996 Stu Grossman (grossman@critters.cygnus.com)
863 * defs.h: Remove decls of xmalloc and xrealloc. There is a
864 conflicting definition in libiberty.h.
866 Tue Oct 8 11:47:13 1996 Fred Fish <fnf@cygnus.com>
868 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
869 than poking global variable (which is now static).
870 * hpread.c (hpread_build_psymtabs): Ditto.
871 * os9kread.c (os9k_symfile_read): Ditto.
872 * xcoffread.c (xcoff_initial_scan): Ditto.
874 * buildsym.h (free_pending_blocks): Declare here.
875 (pending_blocks): Remove declaration of global symbol.
876 (free_pendings): Remove declaration of global symbol.
877 (make_blockvector): Declare here.
878 (record_pending_block): Declare here.
880 * dstread.c (make_blockvector): Remove static copy that was old
881 clone of version in buildsym.c.
882 (process_dst_block): Call record_pending_block rather than doing
884 (read_dst_symtab): Ditto.
886 * buildsym.c (make_blockvector): Make global rather than static,
887 (record_pending_block): New function, code moved from finish_block.
888 (finish_block): Use record_pending_block.
889 (free_pending_blocks): New function.
890 (really_free_pendings): Call free_pending_blocks.
891 (pending_blocks): Make static instead of global.
892 (free_pendings): Make static instead of global.
894 Tue Oct 8 09:03:22 1996 Stu Grossman (grossman@critters.cygnus.com)
896 * config/i386/windows.mh config/i386/xm-windows.h:: New config
897 files to support building Wingdb (built under Microsoft build
900 * Makefile.in: Add rule for hpux-thread.o (needs special header
902 * (SUBDIRS): Remove mswin.
903 * Change procedure for creating init.c. Speeds things up quite a
905 * config.in configure configure.in: Check for select, poll.
906 * Check for OSF header files before including hpux-thread.o.
907 * Don't configure doc or testsuite when building under MSVC.
908 * findvar.c value.h (read_register_pid write_register_pid): Make
909 global. Needed for hppa-tdep.c.
910 * (supply_register): Don't set pid to inferior_pid when supplying
912 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
914 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
915 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
916 Use write_pc instead, which uses the correct pid.
917 * (target_read_pc target_write_pc): Use read/write_register_pid
918 instead of read/write_register to preserve the pid passed in.
919 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
920 hpux-threads.c to override this as a runnable target.
921 * config/pa/nm-hppah.h: Define target_new_objfile and
923 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
924 instead of frame_saved_pc.
925 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
926 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
927 we can't easily determine the start file bounds with ELF.
928 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
929 * hpux-thread.c: New file for HPUX/OSF thread support.
930 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
931 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
932 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
933 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
934 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
937 Sun Oct 6 15:48:09 1996 Fred Fish <fnf@cygnus.com>
939 * buildsym.c (finish_block): Change innerblock_anon_complaint to
940 print the addresses as part of the complaint. Add a complaint for
941 cases where the block end address is smaller than the block start
942 address, in case any such conditions slip through our fixup mechanism.
943 * symmisc.c (dump_symtab): Only print blockvector for primary
944 symtabs, to avoid massive duplication of output due to secondary
945 symtabs that point to same blockvector. Also do some minor
948 Mon Oct 7 10:42:32 1996 Per Bothner <bothner@deneb.cygnus.com>
950 Replace header_files global by per-objfile field.
951 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
952 n_header_files, n_allocated_header_files.
953 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
954 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
955 N_ALLOCATED_HEADER_FILES.
956 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
957 (free_header_files, init_header-files): Don't free/init headerfiles.
958 (various functions): Use macros instead of header_files globals.
959 * stabsread.c (various functions): Likewise.
961 Sun Oct 6 22:43:06 1996 Jason Merrill <jason@yorick.cygnus.com>
963 * dwarf2read.c (read_tag_reference_type): New fn.
964 (read_type_die): Call it.
965 (dwarf_attr): Also look in the DIEs referred to by specification
966 or abstract_origin attributes.
968 Wed Oct 2 22:07:16 1996 Fred Fish <fnf@cygnus.com>
970 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
972 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
973 Define with dummy pc arg.
974 * config/m68k/tm-nbsd.h: Ditto.
975 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
976 SIGTRAMP_END are macros that take an single argument.
978 Mon Sep 30 20:02:45 1996 Fred Fish <fnf@cygnus.com>
980 * defs.h: Remove define of PRIVATE_XMALLOC.
983 Mon Sep 30 15:39:28 1996 Stu Grossman (grossman@critters.cygnus.com)
985 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
988 Mon Sep 30 11:16:34 1996 Jeffrey A Law (law@cygnus.com)
990 * top.c (execute_control_command): Free values from while_control
991 and if_control conditions after evaluation to avoid storage leaks.
995 Fri Sep 27 17:43:06 1996 Stu Grossman (grossman@critters.cygnus.com)
997 * configure configure.in: Recognize v850 target.
998 * v850-tdep.c: New file, NEC V850 target support.
999 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
1002 Fri Sep 27 14:48:15 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1004 * infrun.c (wait_for_inferior): Update current_line and
1005 current_symtab when stepping continues in the middle of a new line.
1007 Fri Sep 27 10:25:30 1996 Fred Fish <fnf@cygnus.com>
1009 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
1010 standards for the --version option.
1011 (print_gnu_advertisement): Remove, now part of print_gdb_version.
1012 (show_version): Remove call to print_gnu_advertisement.
1013 * top.h (print_gnu_advertisement): Remove prototype.
1014 * main.c (print_gdb_help): Move help to static function and
1016 (main): Call print_gdb_help rather than inlining it.
1017 (main): Remove call to print_gnu_advertisement.
1018 start-sanitize-gdbtk
1019 * gdbtk.tcl (create_copyright_window): Increase timeout from
1020 15 seconds to 30 seconds.
1024 Fri Sep 27 13:32:53 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1026 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
1027 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
1030 Thu Sep 26 23:10:26 1996 Mark Alexander <marka@cygnus.com>
1032 * configure.in, config/i386/tm-linux.h: Fix configure
1033 problem on older Linux systems that prevented core files
1034 from being recognized.
1036 Wed Sep 25 18:31:33 1996 Stan Shebs <shebs@andros.cygnus.com>
1038 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
1039 * config/m68k/monitor.mt (TDEPFILES): Add it.
1043 Mon Sep 23 16:13:50 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1045 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
1046 Now single-steps correctly.
1047 * d10v-tdep.c (d10v_pop_frame): Fixed.
1050 Fri Sep 20 16:10:58 1996 Stan Shebs <shebs@andros.cygnus.com>
1052 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
1053 be consistent with GCC.
1054 (FPUL_REGNUM, etc): Renumber to match list changes.
1055 (ADDR_BITS_REMOVE): Delete.
1056 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
1057 Rearrange to match REGISTER_NAMES.
1058 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
1061 Thu Sep 19 16:19:01 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1063 * d10v-tdep.c: Stack chain should work now.
1065 Tue Sep 17 18:46:57 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1067 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
1070 Tue Sep 17 12:20:50 1996 Ian Lance Taylor <ian@cygnus.com>
1072 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
1073 * configure: Rebuild.
1075 Tue Sep 17 12:09:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
1077 * ser-e7kpc.c: Added wingdb support for target e7000pc.
1079 Tue Sep 17 10:56:52 1996 James G. Smith <jsmith@cygnus.co.uk>
1081 * remote-mips.c (pmon_wait): DDB PMON does not require forced
1082 re-entry back into debug mode.
1084 Mon Sep 16 14:32:58 1996 James G. Smith <jsmith@cygnus.co.uk>
1086 * remote-mips.c (mips_load): Ensure that the PC is explicitly
1087 loaded after a load to a DDB PMON system.
1089 Fri Sep 13 12:02:39 1996 Fred Fish <fnf@cygnus.com>
1091 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
1092 (HLDENV): Set to @HLDENV@.
1093 (gdb): Prefix link command line with $(HLDENV).
1094 * configure.in: Add support to test for --enable-shared and
1095 generate appropriate values for HLDFLAGS and HLDENV.
1096 * configure: Regenerated with autoconf.
1098 Sun Sep 8 15:26:27 1996 Fred Fish <fnf@cygnus.com>
1100 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
1101 change for core_read_registers in struct core_fns.
1102 * core-regset.c (fetch_core_registers): Ditto & add prototype.
1103 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
1104 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
1105 * i386b-nat.c (fetch_core_registers): Ditto.
1106 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
1107 * irix4-nat.c (fetch_core_registers): Ditto.
1108 * irix5-nat.c (fetch_core_registers): Ditto.
1109 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
1110 * m68knbsd-nat.c (fetch_core_registers): Ditto.
1111 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
1112 * rs6000-nat.c (fetch_core_registers): Ditto.
1113 * sparc-nat.c (fetch_core_registers): Ditto.
1114 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
1115 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
1117 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
1118 * delta68-nat.c (register_addr): Ditto.
1119 * gdbserver/low-linux.c (register_addr): Ditto.
1120 * gdbserver/low-hppabsd.c (register_addr): Ditto.
1121 * i386m3-nat.c (register_addr): Ditto.
1122 * mips-nat.c (register_addr): Ditto.
1123 * ultra3-nat.c (register_addr): Ditto.
1125 Sun Sep 8 15:14:00 1996 Stu Grossman (grossman@critters.cygnus.com)
1127 * blockframe.c (inside_main_func): Cleanup slightly. Move
1128 mainsym def into the block it's used in.
1129 * configure.in configure: Allow NATDEPFILES to be recognized in
1130 .mh files regardless of whitespace.
1132 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
1133 keep downloads from hanging.
1135 * remote-wiggler.c: Add support for flash upgrades.
1136 * (wiggler_error): Fix message format. Add new error code.
1137 * (wiggler_write_byets): Error code is hex. Report errors with
1138 proper routine name.
1139 * (wiggler_read_byets): Report errors with proper routine name.
1140 * (get_packet): Add support for new flash commands.
1141 * (wiggler_load): Call clear_symtab_users() to reset things
1142 properly after download.
1143 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
1144 support flash upgrades for Wiggler.
1145 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
1147 Fri Sep 6 13:14:13 1996 Geoffrey Noer <noer@cygnus.com>
1149 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
1151 Thu Sep 5 17:05:13 1996 Geoffrey Noer <noer@cygnus.com>
1153 * config/i386/cygwin32.mh:
1154 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
1156 Thu Sep 5 12:09:13 1996 Per Bothner <bothner@deneb.cygnus.com>
1158 * value.h (COERCE_REF): Fix previous change.
1159 (COERCE_ENUM): Add a check_typedef (this is the real fix).
1161 Thu Sep 5 03:28:30 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1163 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
1164 better check of array boundaries.
1166 Thu Sep 5 01:29:42 1996 Stu Grossman (grossman@critters.cygnus.com)
1168 * configure: Update aclocal.m4 and re-run autoconf to get correct
1170 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
1171 fix default message generation.
1173 Wed Sep 4 17:28:40 1996 Stu Grossman (grossman@critters.cygnus.com)
1175 * Makefile.in: Add mswin to SUBDIRS. Add rules for
1176 mswin/libwingdb.a and remote-wiggler.o.
1177 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
1178 * (breakpoint_inserted_here_p): New func, just like
1179 breakpoint_here_p, except it's honest. Honestly.
1180 * breakpoint.h: Proto for above.
1181 start-sanitize-gdbtk
1182 * configure configure.in: Add host *windows* to list of hosts
1183 that don't support GDBtk.
1185 * configure configure.in: Add mswin to configdirs if host is
1186 i[3456]86-*-windows.
1187 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
1188 Change all vars that can contain addresses to type CORE_ADDR.
1189 * findvar.c (supply_register): Allow val to be NULL. This means
1190 that regno is unsupported.
1191 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
1192 just call pid forms with inferior_pid so that there's only once
1193 place to hack PC's and such.
1194 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
1195 * remote-wiggler.c: New file. Support for BDM interface from
1197 * serial.c: Enhance serial logging capability. Add hex and octal
1198 output modes (set remotelogbase {hex|octal|ascii}. Also log
1199 breaks, timeouts, errors, and eofs.
1200 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
1201 function so that we can log breaks. Don't export serial_logfile
1203 * top.c (execute_command): Don't test for serial_logfp here.
1204 Just call serial_log_comand, and let serial.c sort it out.
1205 * valops.c (value_of_variable): Don't attempt to establish frames
1206 for static and global variables. This makes things work a bit
1207 better if the stack or frame pointer is trashed.
1208 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
1209 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
1210 misaligned stacks during function calls.
1212 Wed Sep 4 13:06:26 1996 Ian Lance Taylor <ian@cygnus.com>
1214 * terminal.h: Don't use #elif.
1216 Wed Sep 4 06:49:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1218 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
1221 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
1222 check number of args against bounds of array to avoid
1225 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
1226 a TYPE_CODE_TYPEDEF.
1228 Fri Aug 30 15:07:14 1996 James G. Smith <jsmith@cygnus.co.uk>
1230 * remote-mips.c: Provide support for DDBVR4300 target board.
1231 (ddb_open, ddb_ops): Added.
1232 (mips_monitor_type): MON_DDB Added.
1233 (mips_enter_debug, mips_exit_debug, mips_initialize,
1234 mips_fetch_registers, common_breakpoint, mips_load,
1235 _initialize_remote_mips): Updated.
1237 Thu Aug 29 17:00:18 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1239 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1240 * nlm/configure: Regenerate.
1242 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
1245 Wed Aug 28 13:11:15 1996 Ian Lance Taylor <ian@cygnus.com>
1247 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
1248 CY_AC_LOAD_TCLCONFIG.
1249 * configure: Rebuild.
1251 Tue Aug 27 12:40:40 1996 Fred Fish <fnf@cygnus.com>
1253 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
1254 find_pc_partial_function.
1256 Tue Aug 27 10:17:34 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1258 * configure: Regenerate again.
1260 Tue Aug 27 04:25:08 1996 Geoffrey Noer <noer@cygnus.com>
1262 * configure.in: work around host_alias configure bug.
1263 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
1264 and second by AC_CANONICAL_SYSTEM). The second clobbers the
1265 previous setting. Circumventing by moving the second check
1266 to before the first.
1267 * configure: regenerated
1270 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1272 * config/d10v/d10v.mt: New file.
1273 * config/d10v/tm-d10v.h: New file.
1274 * configure.in: New target D10V.
1275 * d10v-tdep.c: New file.
1278 Sun Aug 25 00:09:47 1996 Fred Fish <fnf@rtl.cygnus.com>
1280 * rs6000-tdep.c: Fix typo in comment.
1281 * valops.c (call_function_by_hand): Set using_gcc to 2
1282 for code compiled without -g, per comment in code.
1283 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
1284 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
1285 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
1286 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
1287 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
1288 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1289 (STACK_ALIGN): Add comment, move to be with other associated
1290 macros, and document.
1291 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1292 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
1293 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1294 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
1295 handled by PUSH_ARGUMENTS.
1296 (PUSH_ARGUMENTS): Enclose args in ()'s.
1298 Fri Aug 23 13:55:05 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1300 * infrun.c (wait_for_inferior): Try to reenable shared library
1301 breakpoints even if auto_solib_load is not set.
1303 Fri Aug 23 00:44:57 1996 Fred Fish <fnf@cygnus.com>
1305 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1306 gracefully degrade to using command line interface if none is
1309 Wed Aug 21 16:31:27 1996 Fred Fish <fnf@cygnus.com>
1311 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
1312 PRINTF_HAS_LONG_LONG.
1313 * expprint.c (dump_expression): Ditto.
1314 * configure.in: Fix check for long long support in compiler to
1315 use a function body, not a nested function.
1316 * configure: Rebuild with autoconf.
1318 Tue Aug 20 17:59:42 1996 Ian Lance Taylor <ian@cygnus.com>
1320 * aclocal.m4: Include ../bfd/aclocal.m4.
1321 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
1322 BFD_NEED_DECLARATION on malloc, realloc, and free.
1323 * acconfig.h: Add NEED_DECLARATION_MALLOC,
1324 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
1325 * configure, config.in: Rebuild.
1326 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
1327 rather than __STDC__. Only declare malloc, realloc, and free if
1328 NEED_DECLARATION_* is defined.
1330 Tue Aug 20 15:37:03 1996 Fred Fish <fnf@cygnus.com>
1332 * solib.c (_initialize_solib): Add missing '\' chars at ends of
1333 strings that continue on next line.
1334 (enable_break): Replace "return 0" with setting success to zero
1335 and letting normal return handle the return.
1337 Sat Aug 17 14:16:23 1996 Fred Fish <fnf@cygnus.com>
1339 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
1340 are properly aligned.
1342 Fri Aug 16 17:54:26 1996 Stan Shebs <shebs@andros.cygnus.com>
1344 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
1345 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
1346 to function, declare function correctly.
1348 Fri Aug 16 17:24:35 1996 Dawn Perchik <dawn@critters.cygnus.com>
1350 * symtab.h: changed namespace to _namespace for compiling under
1353 Fri Aug 16 13:52:21 1996 Stan Shebs <shebs@andros.cygnus.com>
1355 * mpw-make.sed: Update for various recent changes, add some
1358 * mpw-config.in: Fix name of Magic Cap-specific file.
1361 Fri Aug 16 15:47:36 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1363 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
1364 integer for type correctness.
1366 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
1368 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
1369 simulator is included.
1371 Thu Aug 15 13:44:13 1996 Fred Fish <fnf@cygnus.com>
1373 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
1375 (read_register_pid): Only needed when TARGET_READ_PC is not
1377 * hppa-tdep.c (frame_saved_pc): Remove prototype.
1378 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
1380 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
1382 * xcoffsolib.c (command.h): Include for needed prototypes.
1384 Wed Aug 14 17:54:19 1996 Stu Grossman (grossman@critters.cygnus.com)
1386 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
1389 Wed Aug 14 02:03:42 1996 Fred Fish <fnf@cygnus.com>
1391 From Blair MacIntyre <bm@cs.columbia.edu>:
1392 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
1393 than SYMBOL_TYPE on msymbols.
1394 * somsolib.c (som_solib_create_inferior_hook): Ditto.
1396 * Makefile.in (init.c): Generate with prototypes.
1398 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
1399 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
1400 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
1401 (pc_load_segment_name): Ditto.
1403 (extract_return_value): Ditto.
1404 (is_magic_function_pointer): Ditto.
1405 (push_dummy_frame): Ditto.
1406 (fix_call_dummy): Ditto.
1407 (push_arguments): Ditto.
1408 (skip_trampoline_code): Ditto.
1409 (aix_process_linenos): Ditto.
1411 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
1412 * config/m68k/tm-es1800.h: Ditto.
1413 * config/m68k/tm-vx68.h: Ditto.
1414 * config/m68k/tm-sun3.h: Ditto.
1415 * config/m68k/tm-m68kv4.h: Ditto.
1417 Tue Aug 13 23:04:36 1996 Fred Fish <fnf@cygnus.com>
1419 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
1420 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
1421 * remote-mips.c (mips_read_processor_type): Remove prototype.
1422 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
1423 * irix5-nat.c (fetch_core_registers): Add prototype.
1425 Mon Aug 12 21:23:44 1996 Fred Fish <fnf@cygnus.com>
1427 * remote-pa.c (boot_board): Add dummy params to make type compatible
1428 for passing to add_com.
1429 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
1430 * buildsym.c (compare_line_numbers): Change function to match
1431 prototype and also what qsort expects.
1433 Mon Aug 12 19:19:00 1996 Mark Alexander <marka@cygnus.com>
1435 * remote.c: Make remote_write_size public.
1436 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
1437 to prevent packet errors with some versions of CMON.
1439 Mon Aug 12 16:20:58 1996 Stu Grossman (grossman@critters.cygnus.com)
1441 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
1442 C, else it's `const'.
1443 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
1444 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
1446 * configure configure.in defs.h: Use AC_C_CONST to figure out if
1447 the compiler supports const. Gets rid of some cruft in defs.h.
1448 * dwarf2read.c: <string.h> -> "gdb_string.h"
1449 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
1450 * sparcl-tdep.c (download): Add prototypes to write_routine and
1453 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
1454 rid of varargs.h Include string.h.
1455 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
1456 update): Fix prototypes, fix calls.
1457 * (update): Return value for catch_errors.
1458 * (run_execute_command togdb_command_from_tty togdb_command):
1459 Cleanup catching of errors from calls to execute_command. Also,
1460 dup command string to avoid modifying const strings.
1461 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
1462 of NULL when see if b->address isn't set.
1463 * (bi_disable_bpt bi_enable_bpt bi_delete_all
1464 bi_delete_breakpoint): Add arg to calls to update.
1465 * (gui_command): Add prototype.
1466 * (mswin_query): Fix prototype.
1467 * (_initialize_gdbwin): Dup string to avoid modifying const.
1468 * (info_path togdb_get_info_path): Remove const from decls cuz
1469 this can't be const (it points at malloc'ed memory).
1470 * (togdb_searchpath): Remove const from path. Dup string to
1471 avoid modifying const strings.
1472 * rindex -> strrchr.
1473 * (gdbwin_list_symbols): Regexp param is const.
1474 * Fix lots of refs to psymtabs to deref correct pointers.
1475 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
1477 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
1478 toget_set_info_path): Fix prototypes to match reality.
1479 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
1480 with proper prototypes.
1481 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
1482 * mswin/ser-win32s.c: Fix defs of min and max.
1483 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
1485 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
1486 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1488 Sun Aug 11 20:54:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1490 * main.c (main): Make sure command loop is used with cygwin32.
1491 * terminal.h: Allow cygwin32 to use termios.h.
1493 start-sanitize-gdbtk
1494 Fri Aug 9 12:32:53 1996 Tom Tromey <tromey@creche.cygnus.com>
1496 * Makefile.in (LIB_INSTALL_DIR): New macro.
1497 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1500 Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
1502 * somread.c (som_symtab_read): Handle secondary definition
1503 symbols (aka weak symbols).
1505 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
1508 Thu Aug 8 10:12:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1510 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
1513 * somread.c: Rearrange order of includes to fix warnings under
1514 hpux-10.10. Also don't include sys/file.h.
1516 Wed Aug 7 21:45:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1518 * dbxread.c: Don't include param.h or sys/file.h.
1519 * (dbx_symfile_read): Determine symfile_relocatable from bfd
1520 flags instead of file extension. Also clean up a little bit.
1522 Wed Aug 7 17:18:37 1996 Stu Grossman (grossman@critters.cygnus.com)
1524 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
1525 mdebugread.c os9kread.c source.c top.c utils.c: Don't
1526 include param.h or sys/file.h (or unistd.h in some cases).
1527 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
1528 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
1529 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
1530 * main.c: Remove #ifndef WINGDB around option processing. Fix
1531 bug with passing argc==0 and argv==NULL to getopt.
1532 * (main) Remove calls to access() before source_command. Let
1533 soure_command handle access errors.
1534 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
1535 * symtab.c (operator_chars): Make this global for wingdb.
1536 * top.c (disconnect): #ifdef out for _WIN32.
1537 * (source_command): If got an error and from_tty, then call print
1538 error, else just return quietly.
1539 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
1541 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
1544 Wed Aug 7 09:59:19 1996 Jeffrey A Law (law@cygnus.com)
1546 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
1547 structures > 4 bytes in size.
1549 * valops.c (call_function_by_hand): Handle aligning stacks that
1551 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
1552 (STACK_ALIGN): Define.
1553 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
1554 alignment on structs/unions.
1556 Sun Aug 4 16:22:42 1996 Fred Fish <fnf@cygnus.com>
1558 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
1559 which is the documented type under at least AIX 3 and AIX 4.
1561 Sat Aug 3 04:02:46 1996 Fred Fish <fnf@cygnus.com>
1563 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
1565 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
1568 start-sanitize-gdbtk
1569 Thu Aug 1 20:35:01 1996 Tom Tromey <tromey@creche.cygnus.com>
1571 * gdbtk.c (mainWindow): Deleted.
1572 (cleanup_init): Don't destroy main window.
1573 (gdbtk_init): Main window now created by Tk_Init.
1575 * configure.in: Most X checks now handled automatically by Tk.
1576 Use new macros to find Tcl/Tk.
1577 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1578 * config.in, configure: Regenerated.
1580 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1581 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1584 Thu Aug 1 10:11:34 1996 Fred Fish <fnf@cygnus.com>
1586 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
1587 this, define when contents are included.
1588 (mips_read_processor_type): Add prototype.
1589 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
1590 * mdebugread.c (ecoff_relocate_efi): Add prototype.
1591 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1593 start-sanitize-gdbtk
1594 Thu Aug 1 16:12:05 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1596 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1599 Wed Jul 31 20:21:24 1996 Fred Fish <fnf@cygnus.com>
1601 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
1602 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
1603 (fetch_core_registers): Add prototype.
1604 (vmap_symtab): Ditto.
1605 (objfile_symbol_add): Ditto.
1607 (vmap_ldinfo): Ditto.
1610 Tue Jul 30 17:57:46 1996 Stan Shebs <shebs@andros.cygnus.com>
1612 * stabsread.c (get_substring): Declare second arg as int.
1614 * remote-es.c: Include gdb_string.h after defs.h.
1616 Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
1618 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
1619 (branch_dest): Remove unused variable "offset".
1620 (pop_dummy_frame): Add prototype and make static.
1621 (push_arguments): Guard against using len uninitialized.
1622 (push_arguments): Guard against using arg uninitialized.
1623 (frame_saved_pc): Remove unused variable "frameless".
1624 (free_loadinfo): Ifdef out unused function.
1626 * xcoffread.c (compare_lte): Change prototype and function to
1627 be correct type for passing to qsort.
1628 (add_stab_to_list): Ifdef out unused function and prototype.
1629 (compare_lte): Add prototype
1630 (arrange_linetable): Ditto.
1631 (record_include_begin): Ditto.
1632 (record_include_end): Ditto.
1633 (process_linenos): Ditto.
1634 (xcoff_next_symbol_text): Ditto.
1635 (scan_xcoff_symtab): Ditto.
1636 (xcoff_initial_scan): Ditto.
1638 * mips-tdep.c (mips_read_processor_type): Add parens around
1639 bitwise-and operands in comparison; previous expression always
1640 evaluated to 0 because of equality comparison of two constants.
1642 * rs6000-tdep.c (skip_prologue): Add missing parens around
1643 operands of logical-or so that first operand does not bind
1644 to previous logical-and.
1646 * configure.in: Expand "long long" test to include code that triggers
1647 known problem on HPUX with native compiler.
1648 (configure): Regenerated.
1650 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
1652 * somsolib.c (som_solib_create_inferior_hook): Don't
1653 warn if __d_pid can't be found.
1655 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
1657 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1658 (struct type): Ditto.
1659 (struct value): Ditto.
1661 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1662 from mips-tdep.c to here.
1663 (sigtramp_end): Ditto.
1664 (fixup_sigtramp): Ditto.
1666 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1667 (mips_frame_chain): Ditto.
1668 (mips_step_skips_delay): Ditto.
1669 (mips_frame_saved_pc): Ditto.
1670 (mips_find_saved_regs): Ditto.
1671 (mips_frame_num_args): Ditto.
1672 (mips_pop_frame): Ditto.
1673 (mips_extract_return_value): Ditto.
1674 (mips_store_return_value): Ditto.
1675 (mips_push_dummy_frame): Ditto.
1676 (mips_push_arguments): Ditto.
1677 (mips_do_registers_info): Ditto.
1678 (ecoff_relocate_efi): Ditto.
1679 (ecoff_relocate_efi): Ditto.
1680 * irix4-nat.c (fetch_core_registers): Add prototype.
1681 * mips-tdep.c (read_next_frame_reg): Add prototype
1682 (heuristic_proc_start): Ditto.
1683 (heuristic_proc_desc): Ditto.
1684 (mips_print_register): Ditto.
1685 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1686 (procfs_stopped_by_watchpoint): Ditto.
1687 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1688 (procfs_stopped_by_watchpoint): Ditto.
1689 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1690 (struct symbol): Add forward decl for prototype.
1692 * breakpoint.c (internal_breakpoint_number): Only needed if
1693 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1695 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1697 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
1699 * configure.in: Add test for "long long" support.
1700 * configure: Regenerate with autoconf.
1701 * acconfig.h: Add CC_HAS_LONG_LONG
1702 * config.in: Regenerate with autoheader.
1703 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1704 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1705 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1706 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1707 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1708 (PRINTF_HAS_LONG_LONG): Remove.
1709 (FORCE_LONG_LONG): Remove.
1710 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1711 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1712 (PRINTF_HAS_LONG_LONG): Remove.
1713 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1714 (PRINTF_HAS_LONG_LONG): Remove.
1715 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1716 subtraction inside shift. Put parens around subtraction
1717 in operand of bitwise and.
1718 (struct frame_info): Forward declare
1719 if __STDC__ defined.
1720 (frame_saved_regs): Ditto.
1721 (struct value): Ditto.
1722 (struct type): Ditto.
1723 (struct inferior_status): Ditto.
1724 (init_extra_frame_info): Add prototype.
1725 (skip_prologue): Ditto.
1726 (frameless_function_invocation): Ditto.
1727 (frame_chain): Ditto.
1728 (frame_chain_valid): Ditto.
1729 (saved_pc_after_call): Ditto.
1730 (hppa_fix_call_dummy): Ditto.
1731 (hppa_push_arguments): Ditto.
1732 (pa_do_registers_info): Ditto.
1733 (in_solib_call_trampoline): Ditto.
1734 (in_solib_return_trampoline): Ditto.
1735 (push_dummy_frame): Ditto.
1736 * convex-tdep.c (decout): Use print_longest rather than
1738 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1740 (INT_MIN): Fix so it works correctly when assigned to a long long.
1741 * valprint.c (longest_to_int): Rewrite to remove dependence
1742 on INT_MIN and INT_MAX.
1743 (print_longest): Rewrite the code that falls back to synthesized
1744 hex output when LONGEST value is not representable as in a long and
1745 printf doesn't support printing long longs.
1746 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1747 chill_print_type_scalar to LONGEST.
1748 chill_print_type_scalar): Make static and add prototype.
1749 * hppa-tdep.c (get_field): Ifdef out unused function.
1752 (extract_5_store): Ditto.
1753 (extract_11): Ditto.
1754 (extract_12): Ditto.
1755 (deposit_17): Ditto.
1756 (extract_14): Convert to static and add prototype.
1757 (deposit_14): Ditto.
1758 (extract_21): Ditto.
1759 (deposit_21): Ditto.
1760 (extract_17): Ditto.
1761 (extract_5r_store): Ditto.
1762 (extract_5R_store): Ditto.
1763 (extract_5_load): Ditto.
1764 (find_proc_framesize): Ditto.
1765 (find_dummy_frame_regs): Ditto.
1766 (sign_extend): Ditto.
1767 (find_unwind_entry): Add prototype.
1768 (find_return_regnum): Ditto.
1769 (unwind_command): Ditto.
1770 (find_dummy_frame_regs): Add parens around subtraction in operand
1772 (skip_prologue): Add parens around operands of logical-and inside
1773 operand of logical-or.
1774 (sign_extend): Add parens around operands of subtraction inside
1776 (low_sign_extend): Ditto.
1777 * top.c (filename_completer): Convert old style decl of
1778 filename_completion_function into prototype.
1779 * f-lang.c (patch_common_entries): Ifdef out unused function.
1780 * stabsread.c (read_cfront_baseclasses): Remove unused local
1781 variable "msg_noterm".
1782 (resolve_cfront_continuation): Remove unused local variable "fip".
1783 (read_type): Remove unused variable xtypenums.
1784 (read_cfront_static_fields): Remove unused variable "i".
1785 (read_cfront_static_fields): Remove unused variable "nfields".
1786 (read_cfront_member_functions): Add missing comment terminator.
1787 (read_cfront_static_fields): Return 1 rather than random value.
1788 (read_cfront_baseclasses): Ditto.
1789 (read_cfront_baseclasses): Ditto.
1790 (read_cfront_baseclasses): Ditto.
1791 * somsolib.c (som_solib_create_inferior_hook): Remove unused
1793 (som_solib_create_inferior_hook): Remove unused variable
1795 (language.h): Add for needed prototypes.
1796 (som_solib_sharedlibrary_command): Add prototype.
1797 * hpread.c: (hpread_read_array_type): Add prototype.
1798 * somread.c (hpread_build_pysmtabs): Add prototype.
1799 (hpread_symfile_finish): Ditto.
1800 (hpread_symfile_init): Ditto.
1801 * hppah-nat.c (fetch_register): Convert old style decl
1803 (gdbcore.h): Include for needed prototypes.
1804 (fetch_register): Remove unused variable "mess".
1805 * remote-pa.c (get_offsets): Ifdef out unused function.
1806 (remote_start_remote): Remove unused variable "timeout".
1807 (boot_board): Add prototype.
1808 (reaad_frame): Add prototype.
1809 (getpkt): Remove unused variable "bp".
1810 (remote_kill): Add prototype.
1811 (remote_mourn): Add prototype.
1812 (remote_insert_breakpoint): Add prototype.
1813 (remote_remove_breakpoint): Add prototype.
1814 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
1815 * infcmd.c (do_registers_info): Only need prototype if
1816 DO_REGISTERS_INFO is not defined.
1817 (breakpoint_auto_delete_contents): Only need if
1818 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1820 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
1822 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
1823 (END_PSYMTAB): Ditto.
1824 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1826 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
1828 * printcmd.c (_initialize_printcmd): Initialize
1829 tm_print_insn_info.flavour.
1830 start-sanitize-gdbtk
1831 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
1834 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
1836 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
1837 (arm-tdep.o): Ditto.
1839 (i386ly-tdep.o): Ditto.
1840 (i960-tdep.o): Ditto.
1841 (m68k-tdep.o): Ditto.
1842 (nindy-tdep.o): Ditto.
1843 (scm-lang.o): Ditto.
1844 (w65-tdep.o): Ditto.
1845 (z8k-tdep.o): Ditto.
1846 (m68k-tdep.o): Depends upon value_h and gdb_string.h
1847 (m2-valprint.o): Depends upon m2-lang.h.
1848 (sparc-tdep.o): Depends upon gdb_string.h
1849 (valprint.o): Depends upon valprint.h
1851 * remote-e7000.c (notice_quit): Remove prototype.
1852 * top.c (initialize_targets): Remove prototype, now in target.h.
1853 * stabsread.c (resolve_cfront_continuation): Remove prototype.
1854 * dbxread.c (resolve_cfront_continuation): Remove prototype.
1855 * symfile.h (set_demangling_style): Remove prototype.
1856 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
1857 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
1859 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
1861 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
1862 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
1863 * scm-lang.c (find_function_in_inferior): Remove prototype.
1864 (value_allocate_space_in_inferior): Ditto.
1865 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
1866 * defs.h (strchr): Remove declarations, they are declared in
1872 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
1873 passed to f77_print_array_1.
1874 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
1875 * scm-exp.c (scm_istr2int): Remove unused variable "j".
1876 (scm_parse): Remove unused variable "str".
1877 * hp300ux-nat.c (store_inferior_register): Remove unused variable
1879 (store_inferior_registers): Remove unnecessary decl "registers".
1880 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
1881 * scm-lang.c (scm_get_field): Remove unused variable "val".
1882 (scm_lookup_name): Remove unused variable "symval".
1883 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
1884 * procfs.c (do_attach, do_detach): Remove unused variable "result".
1885 (last_resume_pid): Remove unused static variable.
1886 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
1888 * objfiles.c (map_to_address): Remove unused function.
1889 * f-valprint.c (print_max): Remove extraneous extern decl,
1891 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
1892 * ch-exp.c (write_lower_upper_value): Remove prototype for
1895 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
1896 * ch-exp.c (parse_mode_call): Ditto.
1897 * f-valprint.c (there_is_a_visible_common_named): Ditto.
1898 * f-lang.c (clear_function_list): Ditto.
1899 (get_bf_for_fcn): Ditto.
1900 (clear_bf_list): Ditto.
1901 (add_common_block): Ditto.
1902 (patch_all_commons_by_name): Ditto.
1903 (find_first_common_named): Ditto.
1904 (add_common_entry): Ditto.
1905 (allocate_saved_function_node): Ditto.
1906 (allocate_saved_bf_node): Ditto.
1907 (allocate_common_entry_node): Ditto.
1908 (allocate_saved_f77_common_node): Ditto.
1910 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
1911 * dcache.c (gdbcore.h): Ditto.
1912 * i386ly-tdep.c (gdbcore.h): Ditto.
1913 * i960-tdep.c (gdbcore.h): Ditto.
1914 * m2-valprint.c (m2-lang.h): Ditto.
1915 * m68k-tdep.c (gdbcore.h): Ditto.
1917 (gdb_string.h): Ditto.
1918 * nindy-tdep.c (gdbcore.h): Ditto.
1919 * scm-lang.c (gdbcore.h): Ditto.
1920 * scm-valprint.c (gdbcore.h): Ditto.
1921 * w65-tdep.c (gdbcore.h): Ditto.
1922 * z8k-tdep.c (gdbcore.h): Ditto.
1923 * sparc-tdep.c (gdb_string.h): Include.
1924 * valprint.c (valprint.h): Include.
1926 * config/xm-lynx.h: Remove part of comment about INT_MIN
1927 redefined warnings from defs.h, since INT_MIN define in
1928 defs.h is now protected by #ifndef INT_MIN.
1929 * config/i386/xm-i386bsd.h: Ditto.
1930 * config/m68k/xm-hp300bsd.h: Ditto.
1931 * config/m68k/xm-news.h: Ditto.
1933 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
1934 definition as 0x80000000. The macro in defs.h is better.
1935 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
1936 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
1937 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
1938 * config/pa/xm-hppab.h: Ditto.
1940 * core-aout.c (fetch_core_registers): Add prototype.
1941 * hp300ux-nat.c (fetch_inferior_register): Ditto.
1942 (store_inferior_register_1): Ditto.
1943 (store_inferior_register): Ditto.
1944 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
1945 *scm-valprint.c (c_val_print): Ditto.
1946 * procfs.c (add_fd): Ditto.
1949 (sigcodename): Ditto.
1950 (sigcodedesc): Ditto.
1951 (procfs_kill_inferior): Ditto.
1952 (procfs_xfer_memory): Ditto.
1953 (procfs_store_registers): Ditto.
1954 (create_procinfo): Ditto.
1955 (procfs_init_inferior): Ditto.
1956 (proc_set_exec_trap): Ditto.
1957 (procfs_attach): Ditto.
1958 (procfs_detach): Ditto.
1959 (procfs_prepare_to_store): Ditto.
1960 (procfs_files_info): Ditto.
1961 (procfs_open): Ditto.
1962 (procfs_wait): Ditto.
1963 (procfs_fetch_registers): Ditto.
1964 (procfs_mourn_inferior): Ditto.
1965 (procfs_can_run): Ditto.
1966 (procfs_thread_alive): Ditto.
1967 (procfs_stop): Ditto.
1968 * alpha-nat.c (fetch_core_registers): Ditto.
1969 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
1970 * objfiles.c (ecoff_relocate_efi): Ditto.
1971 * inflow.c (pass_signal): Ditto.
1972 (handle_sigio): Ditto.
1973 * annotate.c (breakpoint_changed): Ditto.
1974 * callback.c (wrap): Ditto.
1977 * utils.c (malloc_botch): Ditto.
1978 (fputs_maybe_filtered): Ditto.
1979 (vfprintf_maybe_filtered): Ditto.
1980 * defs.h (notice_quit): Ditto.
1981 * defs.h (xmalloc, xrealloc): Ditto.
1982 * top.c (stop_sig): Ditto.
1983 (init_signals): Ditto.
1984 (user_defined_command): Ditto.
1985 (source_cleanup_lines): Ditto.
1986 (dont_repeat_command): Ditto.
1987 (serial_log_command): Ditto.
1988 (disconnect): Ditto.
1989 * target.h (initialize_targets): Ditto.
1990 * os9kread.c (read_minimal_symbols): Ditto.
1991 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
1993 (push_parse_stack): Ditto.
1994 (pop_parse_stack): Ditto.
1995 (is_pending_symbol): Ditto.
1996 (add_pending): Ditto.
1997 * serial.c (serial_logchar): Ditto.
1998 (serial_interface_lookup): Ditto.
1999 * serial.h (serial_log_command): Ditto.
2000 * f-valprint.c (info_common_command): Ditto.
2001 * gdbtypes.h (print_type_scalar): Ditto.
2002 * scm-valprint.c (scm_scmlist_print): Ditto.
2004 * scm-lang.c (scm_printstr): Ditto.
2006 (evaluate_subexp_scm): Ditto.
2007 * scm-exp.c (scm_read_token): Ditto.
2008 (scm_skip_ws): Ditto.
2009 (scm_lreadparen): Ditto.
2010 * m2-lang.c (emit_char): Ditto.
2011 (m2_printchar): Ditto.
2012 (m2_printstr): Ditto.
2013 (m2_create_fundamental_type): Ditto.
2014 * f-lang.c (emit_char): Ditto.
2015 (f_printchar): Ditto.
2016 (f_printstr): Ditto.
2017 (f_create_fundamental_type): Ditto.
2018 * ch-lang.c (chill_printchar): Ditto.
2019 (chill_printstr): Ditto.
2020 (chill_create_fundamental_type): Ditto.
2021 (value_chill_length): Ditto.
2022 (value_chill_card): Ditto.
2023 (value_chill_max_min): Ditto.
2024 (evaluate_subexp_chill): Ditto.
2025 * ch-exp.c (PEEK_TOKEN): Ditto.
2026 (peek_token_): Ditto.
2027 (forward_token_): Ditto.
2028 (parse_case_label): Ditto.
2029 (parse_opt_untyped_expr): Ditto.
2030 (parse_unary_call): Ditto.
2031 (parse_call): Ditto.
2032 (parse_named_record_element): Ditto.
2033 (parse_tuple_element): Ditto.
2034 (parse_opt_element_list): Ditto.
2035 (parse_tuple): Ditto.
2036 (parse_primval): Ditto.
2037 (parse_operand6): Ditto.
2038 (parse_operand5): Ditto.
2039 (parse_operand4): Ditto.
2040 (parse_operand3): Ditto.
2041 (parse_operand2): Ditto.
2042 (parse_operand1): Ditto.
2043 (parse_operand0): Ditto.
2044 (parse_expr): Ditto.
2045 (parse_then_alternative): Ditto.
2046 (parse_else_alternative): Ditto.
2047 (parse_if_expression): Ditto.
2048 (parse_untyped_expr): Ditto.
2049 (growbuf_by_size): Ditto.
2050 (match_simple_name_string): Ditto.
2051 (decode_integer_value): Ditto.
2052 (decode_integer_literal): Ditto.
2053 (match_float_literal): Ditto.
2054 (match_float_literal): Ditto.
2055 (match_string_literal): Ditto.
2056 (match_character_literal): Ditto.
2057 (match_integer_literal): Ditto.
2058 (match_bitstring_literal): Ditto.
2059 (write_lower_upper_value): Ditto.
2060 * ch-lang.h (type_lower_upper): Ditto.
2061 * c-lang.c (emit_char): Ditto.
2062 * dwarfread.c (free_utypes): Ditto.
2063 * stabsread.h (resolve_cfront_continuation): Ditto.
2064 * stabsread.c (get_substring): Ditto.
2065 (read_one_struct_field): Ditto.
2066 * stabsread.h (process_later): Ditto.
2067 * demangle.c (set_demangling_command): Ditto.
2068 * defs.h (set_demangling_style): Ditto.
2069 * maint.c (maintenance_info_command): Ditto.
2070 (print_section_table): Ditto.
2071 (maintenance_info_sections): Ditto.
2072 (maintenance_print_command): Ditto.
2073 * symtab.h (maintenance_print_statistics): Ditto.
2074 * objfiles.h (in_plt_section): Ditto.
2075 * objfiles.c (add_to_objfile_sections): Ditto.
2076 * bcache.c (hash): Ditto.
2077 (lookup_cache): Ditto.
2078 * exec.c (bfdsec_to_vmap): Ditto.
2080 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
2081 * language.c (unk_lang_printchar): Ditto.
2082 (unk_lang_printstr): Ditto.
2083 (unk_lang_create_fundamental_type): Ditto.
2084 (unk_lang_print_type): Ditto.
2085 (unk_lang_val_print): Ditto.
2086 (unk_lang_value_print): Ditto.
2087 * target.c (update_current_target): Ditto.
2088 (debug_to_open): Ditto.
2089 (debug_to_close): Ditto.
2090 (debug_to_attach): Ditto.
2091 (debug_to_detach): Ditto.
2092 (debug_to_resume): Ditto.
2093 (debug_to_wait): Ditto.
2094 (debug_to_fetch_registers): Ditto.
2095 (debug_to_store_registers): Ditto.
2096 (debug_to_prepare_to_store): Ditto.
2097 (debug_to_xfer_memory): Ditto.
2098 (debug_to_files_info): Ditto.
2099 (debug_to_insert_breakpoint): Ditto.
2100 (debug_to_remove_breakpoint): Ditto.
2101 (debug_to_terminal_init): Ditto.
2102 (debug_to_terminal_inferior): Ditto.
2103 (debug_to_terminal_ours_for_output): Ditto.
2104 (debug_to_terminal_ours): Ditto.
2105 (debug_to_terminal_info): Ditto.
2106 (debug_to_kill): Ditto.
2107 (debug_to_load): Ditto.
2108 (debug_to_lookup_symbol): Ditto.
2109 (debug_to_create_inferior): Ditto.
2110 (debug_to_mourn_inferior): Ditto.
2111 (debug_to_can_run): Ditto.
2112 (debug_to_notice_signals): Ditto.
2113 (debug_to_thread_alive): Ditto.
2114 (debug_to_stop): Ditto.
2115 start-sanitize-gdbtk
2116 * gdbtk.c (null_routine): Ditto.
2117 (gdbtk_flush): Ditto.
2118 (gdbtk_fputs): Ditto.
2119 (gdbtk_query): Ditto.
2120 (gdbtk_readline): Ditto.
2121 (gdbtk_readline_end): Ditto.
2122 (gdb_get_breakpoint_list): Ditto.
2123 (gdb_get_breakpoint_info): Ditto.
2124 (breakpoint_notify): Ditto.
2125 (gdbtk_create_breakpoint): Ditto.
2126 (gdbtk_delete_breakpoint): Ditto.
2127 (gdbtk_modify_breakpoint): Ditto.
2130 (gdb_sourcelines): Ditto.
2131 (map_arg_registers): Ditto.
2132 (get_register_name): Ditto.
2133 (gdb_regnames): Ditto.
2134 (get_register): Ditto.
2135 (gdb_fetch_registers): Ditto.
2136 (register_changed_p): Ditto.
2137 (gdb_changed_register_list): Ditto.
2139 (call_wrapper): Ditto.
2140 (gdb_listfiles): Ditto.
2142 (gdbtk_dis_asm_read_memory): Ditto.
2143 (compare_lines): Ditto.
2144 (gdb_disassemble): Ditto.
2145 (tk_command): Ditto.
2146 (cleanup_init): Ditto.
2147 (gdbtk_interactive): Ditto.
2149 (gdbtk_wait): Ditto.
2150 (gdbtk_call_command): Ditto.
2151 (tk_command_loop): Ditto.
2152 (gdbtk_init): Ditto.
2154 * breakpoint.h (set_breakpoint_sal): Ditto.
2155 * remote-utils.c (usage): Ditto.
2156 * remote.c (set_thread): Ditto.
2157 (remote_thread_alive): Ditto.
2158 (get_offsets): Ditto.
2159 (read_frame): Ditto.
2160 (remote_insert_breakpoint): Ditto.
2161 (remote_remove_breakpoint): Ditto.
2162 * sparc-nat.c (fetch_core_registers): Ditto.
2163 * corelow.c (add_to_thread_list): Ditto.
2165 * inftarg.c (proc_wait): Ditto.
2166 * infptrace.c (udot_info): Ditto.
2167 (fetch_register): Ditto.
2168 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
2169 (hardwire_print_tty_state): Ditto.
2170 (hardwire_flush_output): Ditto.
2171 (hardwire_flush_input): Ditto.
2172 (hardwire_send_break): Ditto.
2173 (hardwire_setstopbits): Ditto.
2174 * ser-tcp.c (tcp_return_0): Ditto.
2175 (tcp_noflush_set_tty_state): Ditto.
2176 (tcp_print_tty_state): Ditto.
2177 * solib.c (match_main): Ditto.
2178 * gdbtypes.c (print_bit_vector): Ditto.
2179 (print_arg_types): Ditto.
2180 (dump_fn_fieldlists): Ditto.
2181 (print_cplus_stuff): Ditto.
2182 * symfile.h (entry_point_address): Ditto.
2183 * symfile.c (decrement_reading_symtab): Ditto.
2184 * valops.c (value_arg_coerce): Ditto.
2185 * value.h (find_function_in_inferior): Ditto.
2186 (value_allocate_space_in_inferior): Ditto.
2187 * values.c (vb_match): Ditto.
2188 * thread.c (info_thread_command): Ditto.
2189 (restore_current_thread): Ditto.
2190 (thread_apply_all_command): Ditto.
2191 (thread_apply_command): Ditto.
2192 * inferior.h (write_pc_pid): Ditto.
2193 * infrun.c (delete_breakpoint_current_contents): Ditto.
2194 * breakpoint.c (print_it_normal): Ditto.
2195 (watchpoint_check): Ditto.
2196 (print_it_done): Ditto.
2197 (print_it_noop): Ditto.
2198 (maintenance_info_breakpoints): Ditto.
2199 (create_longjmp_breakpoint): Ditto.
2200 (hbreak_command): Ditto.
2201 (thbreak_command): Ditto.
2202 (watch_commnd_1): Ditto.
2203 (rwatch_command): Ditto.
2204 (awatch_command): Ditto.
2205 (do_enable_breakpoint): Ditto.
2206 * ch-valprint.c (chill_val_print_array_elements): Ditto.
2207 * eval.c (evaluate_subexp): Ditto.
2209 (evaluate_struct_tuple): Ditto.
2210 * eval.c (init_array_element): Ditto.
2212 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
2213 * breakpoint.c (hw_breakpoint_used_count): Ditto.
2214 (hw_watchpoint_used_count): Ditto.
2215 * findvar.c (write_register_gen): Ditto.
2216 (read_register_pid): Ditto.
2217 * symtab.c (cplusplus_hint): Ditto.
2218 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
2219 * ch-valprint.c (chill_print_type_scalar): Ditto.
2220 * gdbtypes.c (add_name): Ditto.
2221 (add_mangled_type): Ditto.
2222 (cfront_mangle_name): Ditto.
2223 * sparc-tdep.c (isbranch): Ditto.
2224 * inftarg.c (child_stop): Ditto.
2225 * win32-nat.c (child_stop): Ditto.
2226 * mac-nat.c (child_stop): Ditto.
2227 * remote-utils.c (sr_com): Ditto.
2228 * dbxread.c (process_now): Ditto.
2229 * ch-exp.c (require): Ditto.
2230 (check_token): Ditto.
2232 (parse_mode_call): Ditto.
2233 (parse_mode_or_normal_call): Ditto.
2234 * scm-lang.c (scm_lookup_name): Ditto
2235 * f-lang.c (allocate_saved_bf_node): Ditto.
2236 (allocate_saved_function_node): Ditto.
2237 (allocate_saved_f77_common_node): Ditto.
2238 (allocate_common_entry_node): Ditto.
2239 (add_common_block): Ditto.
2240 (add_common_entry): Ditto.
2241 (find_first_common_named): Ditto.
2242 (patch_common_entries): Ditto.
2243 (patch_all_commons_by_name): Ditto.
2244 (clear_bf_list): Ditto.
2245 (get_bf_for_fcn): Ditto.
2246 (clear_function_list): Ditto.
2247 * scm-exp.c (scm_istr2int): Ditto.
2248 (scm_istring2number): Ditto.
2249 * scm-valprint.c (scm_inferior_print): Ditto.
2250 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
2251 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
2252 (f77_create_arrayprint_offset_tbl): Ditto.
2253 (f77_print_array_1): Ditto.
2254 (f77_print_array): Ditto.
2255 (list_all_visible_commons): Ditto.
2256 (there_is_a_visible_common_named): Ditto.
2257 * mdebugread.c (ecoff_relocate_efi): Ditto.
2258 * callback.c (os_close): Ditto.
2259 (os_get_errno): Ditto.
2264 (os_read_stdin): Ditto.
2266 (os_write_stdout): Ditto.
2271 (os_shutdown): Ditto.
2273 (os_printf_filtered): Ditto.
2275 * scm-lang.h (scm_parse): Change old style decl to prototype.
2276 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
2277 * top.c (init_proc): Ditto.
2278 (query_hook): Ditto.
2279 (error_hook): Ditto.
2280 * f-lang.c (c_value_print): Ditto.
2281 * ch-exp.c (parse_expression): Ditto.
2282 (parse_primval): Ditto.
2283 (parse_untyped_expr): Ditto.
2284 (parse_opt_untyped_expr): Ditto.
2286 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
2287 (sparc_frame_saved_pc): Ditto.
2288 (sparc_push_dummy_frame): Ditto.
2289 (sparc_pop_frame): Ditto.
2290 * defs.h (fclose): Ditto.
2292 (error_hook): Ditto.
2294 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
2295 * rs6000-tdep.c (single_step): Ditto.
2296 * sparc-tdep.c (single_step): Ditto.
2298 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
2299 to PTR which is what make_cleanup expects.
2300 * utils.c (null_cleanup): Change arg type to PTR.
2301 * defs.h (null_cleanup): Change prototype to match actual function.
2302 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
2303 * ch-valprint.c (chill_val_print): Cast 2nd arg of
2304 chill_print_type_scalar to LONGEST.
2305 * infrun.c (wait_for_inferior): Have empty switch case for
2306 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
2307 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
2308 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
2310 * symfile.c (generic_load): Scan long int using a long int spec,
2312 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
2314 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
2316 * inflow.c (handle_sigio): Only need prototype when the actual
2317 function is compiled in.
2318 * valprint.c (longest_to_int): Expand error message to be
2319 separate messages for args larger than largest signed int
2320 and args smaller than smallest signed int.
2321 * valprint.c (print_longest): Fix problems with support for case
2322 where compiler supports type "long long" but the runtime doesn't
2323 support printing them with "%ll".
2324 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
2325 return types to void since we don't actually return anything
2326 meaningful and callees ignore the values anyway.
2327 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
2329 (modify_run_on_last_close_flag): Ditto.
2330 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
2332 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
2334 * infrun.c (wait_for_inferior): Ensure random_signal is not used
2336 * valops.c (call_function_by_hand): Ensure struct_addr is not used
2338 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
2340 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
2342 start-sanitize-gdbtk
2343 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
2344 to proper pointer type, from int.
2345 (gdbtk_query): Change first arg to "const char *" from "char *".
2347 * infptrace.c (udot_info): Add two dummy args so that the type is
2348 correct for passing to add_info.
2349 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
2351 (saved_bf_symnum): Ditto.
2352 (SAVED_FUNCTION): Ditto.
2353 (SAVED_FUNCTION_PTR): Ditto.
2355 (SAVED_BF_PTR): Ditto.
2356 * ch-exp.c (parse_named_record_element): Build error message in
2357 temporary buffer before passing it to expect, rather than passing
2358 wrong number of args to expect.
2359 * demangle.c (set_demangling_style): Call set_demangling_command with
2360 correct number of arguments.
2361 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
2362 int to match actual function.
2363 (os_isatty): Call fdmap with right number of arguments, was missing
2364 the host_callback* arg.
2365 * target.c (cleanup_target): Prototype all functions casts.
2366 * target.h (one_stepped, single_step): Declare here and convert
2367 single_step to prototype.
2368 * infrun.c (one_stepped, single_step): Don't declare externs
2369 here, they have moved to target.h.
2370 * eval.c (init_array_element): Declare previously undeclared
2371 last two args as LONGEST.
2372 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
2373 start-sanitize-gdbtk
2374 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
2377 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
2379 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
2381 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
2383 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
2384 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
2385 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
2386 text address. Use a seperate flag (textlow_not_set) instead.
2387 This makes stabs in ELF .o files work a lot better.
2388 * mdebugread.c xcoffread.c: Define textlow_not_set for
2390 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
2392 start-sanitize-gdbtk
2393 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
2395 * gdbtk.tcl (files_command): Reorder the binding tags for
2396 the listbox widget to avoid referencing the listbox after
2397 the containing widget has been destroyed by the action of
2401 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
2403 * dwarf2read.c (struct filenames): Change internal "struct file"
2404 to "struct fileinfo" to avoid conflict with "struct file" in
2405 <sys/file.h> on HPUX and Solaris.
2407 start-sanitize-gdbtk
2408 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
2410 * gdbtk.tcl (delete_expr): Unset corresponding element of
2411 expr_update_list when destroying an expression.
2412 (create_expr_window): Initialize expr_num, delete_expr_num,
2413 and expr_update_list here when each new expression window
2414 is created, rather than once at startup.
2417 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
2419 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
2420 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
2421 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
2422 (SFILES): Add dwarf2read.c.
2423 (dwarf2read.o): Add build rule.
2424 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
2426 * elfread.c (elf_symfile_read): Call them.
2427 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
2429 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
2431 * symfile.c (symfile_bfd_open):
2432 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
2433 free the user from having to type the .exe extension.
2435 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
2437 * mon960-rom.c: Shorten the mon960_inits string to a single
2438 carriage return; this prevents a hang on connecting immediately
2439 after powerup, when MON960 is attempting autobaud detection.
2441 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
2443 * a29k-tdep.c (get_saved_register): Allow PC to be modified
2444 when innermost frame is selected, but not in outer frames.
2446 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2448 * command.c (do_setshow_command): Don't segfault when showing
2449 var_string and var_string_noescape vars that are NULL.
2451 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
2453 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
2454 cygwin32_conv_to_posix_path.
2455 (child_create_inferior): unix_path_to_dos_path renamed to
2456 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
2458 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
2460 * defs.h printcmd.c: Create global disassemble_info structure
2462 start-sanitize-gdbtk
2463 * gdbtk.c (gdb_disassemble): Setup di.mach from
2464 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
2466 * i386-tdep.c (set_assembly_language_command): set
2467 tm_print_insn_info.mach to the appropriate value for 386 or 8086
2469 * printcmd.c (print_insn): Move init of disassembler_info to
2470 _initialize_printcmd. Set endian for disassembler here.
2471 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
2472 select sparc/sparclite.
2473 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
2474 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
2475 bfd_mach_sparc/bfd_mach_sparc_sparclite.
2477 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
2479 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
2480 than xmalloc/xrealloc.
2482 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@cygnus.com>
2484 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
2485 a NULL pointer, not a -1.
2487 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
2489 * i386-tdep.c (set_assembly_language_command): New routine to
2490 select between i386 and i8086 instruction sets for disassembly.
2491 New command `set assembly-language {i386 i8086}'.
2493 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
2495 * monitor.c (monitor_write_memory, monitor_read_memory_single):
2496 Disable use of "long long" memory read/write commands; can't
2497 use them because we hold the values to read/write in an int
2498 variable, and because strtoul fails on values that exceed the
2499 size of a long. This fixes breakpoint problems on MON960.
2501 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
2503 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
2504 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
2506 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
2508 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
2509 and MMALLOC_CHECK macros, and add comment indicating how host dependent
2510 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
2511 to use it but to not do heap corruption checking.
2512 * gdbserver/Makefile.in: Ditto.
2513 * utils.c (init_malloc): Replace warning() use with direct call of
2514 fprintf_unfiltered, since current_target has not yet been set and thus
2515 we cannot use warning(). If we try to use mmcheck and it fails,
2516 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
2517 defined. Other small mmalloc related cleanups.
2518 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
2519 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
2521 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2522 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2523 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2524 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2525 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
2526 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2527 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2528 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2529 Remove obsolete defines.
2531 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
2532 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
2533 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
2534 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
2535 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
2536 * config/powerpc/aix.mh (MMALLOC_DISABLE):
2537 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
2538 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
2539 * config/mips/decstation.mh (MMALLOC_DISABLE):
2540 * config/m88k/cxux.mh (MMALLOC_DISABLE):
2541 * config/i386/i386mk.mh (MMALLOC_DISABLE):
2542 * config/i386/i386m3.mh (MMALLOC_DISABLE):
2543 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
2544 Use MMALLOC_CFLAGS instead.
2546 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
2548 * h8300-tdep.c: Remove some outdated comments.
2549 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
2550 Handle stm.l insns for the H8/S.
2551 (examine_prologue): Likewise.
2553 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
2555 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
2557 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
2559 * mon960-rom.c (mon960_open): Add floating point detection to
2560 prevent hang on non-FPU processors (PR 9775).
2561 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
2562 setting breakpoints and improve loading speed.
2564 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
2566 * coffread.c (record_minimal_symbol): Don't presave name string
2567 on symbol_obstack before passing to prim_record_minimal_symbol.
2568 It now handles saving the string itself.
2569 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2570 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
2571 * os9kread.c (record_minimal_symbol): Ditto.
2572 * solib.c (solib_add_common_symbols): Ditto.
2574 * coffread.c (coff_symtab_read): Don't presave name string on
2575 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
2576 It now handles saving the string itself.
2577 * dbxread.c (record_minimal_symbol): Ditto.
2578 * elfread.c (record_minimal_symbol_and_info): Ditto.
2580 * dstread.c (record_minimal_symbol): Remove static function that just
2581 called prim_record_minimal_symbol with the same args (after change to
2582 prim_record_minimal_symbol to do it's own name string saves).
2583 * nlmread.c (record_minimal_symbol): Ditto.
2584 * somread.c (record_minimal_symbol): Ditto.
2586 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
2587 (hpread_read_function_type): Ditto.
2588 (hpread_process_one_debug_symbol): Ditto.
2589 * mdebugread.c (parse_symbol): Ditto.
2590 (new_symbol): Ditto.
2591 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
2593 * coffread.c (process_coff_symbol): Use obsavestring to save
2594 SYMBOL_NAME, rather than obstack_copy0.
2595 * dstread.c (create_new_symbol): Ditto
2596 * symfile.c (obconcat): Ditto.
2597 * stabsread.c (patch_block_stabs): Ditto.
2598 * xcoffread.c (SYMNAME_ALLOC): Ditto.
2600 * symfile.c (obsavestring): Update comments
2601 * solib.c (solib_add_common_symbols): Remove local var origname.
2603 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
2605 * configure: Re-build with autoconf-2.10.
2607 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
2608 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
2609 TM_PRINT_INSN, which comes from the tm file.
2611 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
2613 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
2614 os9kread.c: Replace identical sym_offsets functions with
2615 default_symfile_offsets.
2616 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
2617 macro to allocate section_offsets.
2618 * symfile.c (default_symfile_offsets): New function.
2619 * symfile.h: Declare default_symfile_offsets.
2620 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
2621 simplify allocation of section_offsets.
2623 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2625 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2626 * configure configure.in: Only make sol-thread.o for native.
2627 Also, switch to dlopened libthread_db.so.1.
2628 * sol-thread.c: Switch to using dlopen to get the thread_db
2631 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
2633 * configure, configure.in: Change test for libthread_db to only
2634 work for configs where build/host/target are the same.
2636 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2638 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2641 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2643 * configure: Regenerate.
2645 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
2647 From Raymond Jou <rjou@mexican.cygnus.com>:
2648 * mpw-make.sed: Add lines to whack out autoconf hook
2651 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
2653 * remote-e7000.c (e7000_stop): New function.
2655 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
2657 * configure, configure.in: Add target sparclet.
2658 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2659 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2660 command to start process running on target is different from one
2661 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2662 have a "0x" prefix).
2663 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2664 registers array. This is to allow NULLs to be place holders in
2665 the tm-*.h file so that only minor changes are needed when a new
2666 processor is introduced (eg, one without floating point).
2667 * sparc-tdep.c: Conditionally remove dependancies on floating
2669 * sparclet-rom.c, config/sparc/sparclet.mt,
2670 config/sparc/tm-sparclet.h: New files for target sparclet.
2671 * symfile.c (load_command): Add option for 2nd parameter; a load
2672 offset added to the vma of each section.
2674 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
2676 * main.c (main): Add option "l" for setting remote_timeout.
2678 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
2680 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2681 "remote_timeout" for setting remote_timeout. Add set option
2682 "use_hard_breakpoints" for setting hardware .vs. memory
2685 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
2687 * remote-e7000.c (e7000_parse_device): New function.
2688 Add option "tcp_remote" to target command if using
2689 tcp to connect to a remote host which is then connected
2690 via serial port to the e7000 (for exampole, a port master).
2691 (e7000_open): Change to call e7000_parse_device.
2693 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
2695 * monitor.c (monitor_debug): Fix remotedebug buffering.
2697 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
2699 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2700 (NATDEPFILES): Add a space.
2702 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2704 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2705 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2707 * ch-exp.c (calculate_array_length): Function removed.
2709 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
2711 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2712 (e7000_xfer_inferior_memory): Call it.
2714 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2716 * gdb/gdbserver/Makefile.in (docdir): Removed.
2718 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
2720 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2721 Use autoconf set values.
2723 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2724 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2725 includedir): Use autoconf set values.
2727 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2728 * nlm/configure: Rebuilt.
2729 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2731 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
2733 * stabsread.c (read_cfront_member_functions): add type
2735 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
2737 * win32-nat.c: #include <unistd.h>.
2738 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2739 (child_create_inferior): Convert only env var PATH to win32 style.
2740 (set_pathstyle_dos): Delete.
2741 (_initialize_inftarg): Delete dos-path-style command.
2743 start-sanitize-gdbtk
2744 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
2746 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2747 Add global declarations for various reg_format_* variables.
2748 * gdbtk.tcl (populate_register_window): Make initial window one
2749 line taller to account for new column header line.
2751 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
2753 * gdbtk.c (get_register): Support for printing raw formats.
2754 * gdbtk.tcl: Add hint for using debug_interface.
2755 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2756 Enclose arg in braces for consistency.
2757 (create_registers_window, populate_reg_window, update_registers):
2758 Major rewrite to support displaying multiple formats in the register
2760 (init_reg_info): New function.
2761 (recompute_reg_display_list): Reset reg_display_list, start
2762 register display lines at line 2.
2765 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
2767 * configure.in: Revise sol-thread.o test.
2768 * configure: Regenerated.
2770 * source.c (find_source_lines): Reassign size to result of read.
2772 start-sanitize-gdbtk
2773 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
2775 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
2776 avoid backing up over prompt. At every input, make sure insert
2777 point is at least after command start, handle control-u to delete
2779 (tclsh): Handle backspace to avoid backing up over prompt. Handle
2780 control-u to delete current input line.
2782 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
2784 * configure.in: disable gdbtk for *cygwin32* hosted compiles
2785 * configure: regenerated with autoconf 2.8
2788 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2790 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
2791 (h8300_command): Likewise.
2792 (set_machine): Likewise.
2793 (set_machine_hook): Likewise.
2794 (_initialize_h8300m): Likewise.
2796 * config/h8300/tm-h8300.h (h8300smode): Declare.
2798 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
2800 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
2801 of shl_load calls for hpux10.
2803 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
2805 * config.in: Regenerated.
2806 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
2808 * configure: Regenerated.
2809 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
2810 avoid name clashes with SunOS headers.
2812 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
2814 From Michael Snyder <Michael_Snyder@next.com>:
2815 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
2816 exception if one or more objfile has no symbols, such as when
2817 a dynamic library has been stripped.
2819 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
2821 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2822 * configure configure.in: Only make sol-thread.o for native.
2823 Also, switch to dlopened libthread_db.so.1.
2824 * sol-thread.c: Switch to using dlopen to get the thread_db
2827 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
2829 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
2830 Change from 0xE0000000 to 0xC0000000.
2832 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2834 * config/powerpc/xm-solaris.h: Initial version of support for
2837 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2839 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
2841 * configure: Rebuild.
2843 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
2844 little-endian builds.
2846 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
2848 * inftarg.c (child_thread_alive): Protect declaration with
2849 #ifndef CHILD_THREAD_ALIVE.
2851 * source.c (find_source_lines): Check the time on the symtab's bfd if
2852 it exists, else check the time on the exec_bfd.
2854 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
2856 * dsrec.c (make_srec): Fix calculation of address size
2857 to allow addresses less than 0x100.
2859 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2861 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
2863 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
2865 * remote-mips.c: cannot use EINVAL for breakpoint test since
2866 its value varies for different hosts (e.g. go32's is 19, while
2867 sunos is 22). Changed to hardcoded 22 since that is what the
2870 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
2872 * configure: Regenerated.
2873 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
2874 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
2876 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2878 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
2879 (_initialize_solib): Add set/show commands for those variables.
2880 (solib_map_sections): Implement searching using them.
2882 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
2884 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
2886 * NEWS: Add Alpha Linux as a new native configuration.
2888 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
2889 return type VOID, assume no debugging info is available for that
2890 object file and patch the return value into VOID *. Otherwise,
2891 operations requiring an implicit call to malloc() will fail.
2893 * infrun.c (wait_for_inferior): The criterion to detect entering a
2894 sigtramp handler is now: (a) the current pc is inside a sigtramp
2895 handler, (b) the previous pc is not in a sigtramp handler, and (c)
2896 the current stack pointer is "inner" than the old one. Condition
2897 (c) is new to avoid mistaking a return from a signal handler into
2898 sigtramp as a new sigtramp invocation.
2900 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
2901 int may not be big enough to hold an address.
2902 (dcache_hit): Ditto.
2903 (dcache_peek_byte): Fix indentation.
2905 * configure.in (alpha-*-linux*): Add target.
2906 * configure: Rebuild
2908 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
2909 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
2910 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
2911 (SIGCONTEXT_ADDR): Ditto.
2912 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
2914 * config/alpha/alpha-linux.mh: New file.
2915 * config/alpha/alpha-linux.mt: Ditto.
2916 * config/alpha/nm-linux.h: Ditto.
2917 * config/alpha/tm-alphalinux.h: Ditto.
2918 * config/alpha/xm-alphalinux.h: Ditto.
2919 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
2920 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
2922 * config/alpha/alpha-osf2.mh: Ditto.
2924 * blockframe.c (find_pc_partial_function): Pass PC to
2925 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
2926 that detect sigtramp code via designated code sequences (as is the
2927 case for Linux/Alpha, for example).
2929 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
2930 to ignore new PC argument.
2931 * config/m68k/tm-hp300bsd.h: Ditto.
2932 * config/vax/tm-vax.h: Ditto.
2934 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
2935 (alpha_osf_skip_sigtramp_frame): Ditto.
2936 (push_sigtramp_desc): Ditto.
2937 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
2938 sigcontext address from frame.
2939 (alpha_saved_pc_after_call): When in sigtramp, use
2940 alpha_frame_saved_pc() instead of read-register().
2941 (after_prologue): When inside a dynamically generated sigtramp
2942 function, there is no prologue, so return address of first
2944 (alpha_in_prologue): Fix typo in comment.
2945 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
2946 whether we're inside a dynamicaly generated sigtramp function. If
2947 so, create and push and appropriate procedure descriptor.
2948 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
2949 the frame past a sigtramp frame (if the current frame is indeed a
2951 (init_extra_frame_info): Don't read next frame register off of
2952 stack-pointer when inside a dynamiccaly generated sigtramp.
2953 (alpha_pop_frame): Also unlink and destroy procedure descriptors
2954 created for dynamically generated sigtramp functions.
2956 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
2957 <alpha/ptrace.h> instead of <machine/reg.h>
2959 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
2961 * gnu-nat.c (inf_validate_task_sc):
2962 Give terminal to gdb while asking question.
2963 (inf_resume): Don't validate the task suspend-count while execing.
2965 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
2967 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
2968 additional suspend count.
2969 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
2970 (inf_resume): Call inf_validate_task_sc here.
2971 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
2973 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
2975 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
2977 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
2979 * h8300-tdep.c (IS_PUSH): Refine.
2980 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
2981 (IS_SUB4_SP, IS_SUBL_SP): New macros.
2982 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
2983 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
2984 when in H8/300H mode. Get the return pointer's address correctly
2985 for the H8/300H. Handle H8/300H prolouge code sequences.
2987 * symfile.c (generic_load): Print the starting address
2988 of the file just loaded.
2990 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
2992 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
2994 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2996 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
2997 if a `source' command is contained in bs->commands.
2999 * infrun.c (wait_for_inferior): Update step_frame_address when
3000 stepping into a new line.
3002 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
3003 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
3006 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
3008 * dsrec.c (load_srec): Add WAITACK parameter, for machines
3009 like EST visionICE that send back an ACK after each S-record.
3010 * monitor.c (monitor_wait_srec_ack): New function.
3011 (monitor_load): Pass monitor_wait_srec_ack to load_srec
3012 if the monitor's MO_SREC_ACK flag is set.
3013 * monitor.h: Define MO_SREC_ACK flag.
3014 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
3015 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
3016 * srec.h: Add WAITACK parameter to load_srec prototype.
3018 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
3020 * config/sparc/sparclite.mt: Add the sparc simulator.
3022 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
3024 * defs.h (read_command_lines, query_hook): Update prototypes.
3025 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
3026 * breakpoint.c (commands_command): Build message in temporary buffer
3027 and pass that, as well as tty control flag, to read_command_lines.
3028 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
3030 (command_loop): Check for non-NULL instream before looping.
3031 (command_line_input): Use readline_hook when appropriate, to get
3032 user input from a GUI window.
3033 (read_next_line): Also build prompt if getting user input from a GUI.
3034 (recurse_read_control_structure): Fix typo in comment.
3035 (read_command_lines): Use passed in prompt and tty flag to decide how
3036 to build message. Use readline_begin_hook when appropriate, to set
3037 up a GUI interaction window. Just return head, whether NULL or not,
3038 after using readline_end_hook to complete GUI interaction.
3039 (define_command, document_command): Build message in a temporary
3040 buffer and pass it to read_command_lines, along with tty flag.
3042 start-sanitize-gdbtk
3043 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
3045 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
3046 (gdbtk_init): Set readline_begin_hook, readline_hook,
3047 and readline_end_hook.
3048 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
3049 gdbtk_tcl_readline_end): New functions.
3050 (tclsh): Pack scroll bar on right side of window, not left.
3053 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3055 * blockframe.c (frameless_look_for_prologue):
3056 Add FUNCTION_START_OFFSET only if func_start is non-zero.
3057 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
3058 pc is not in a known section.
3059 * stack.c (print_frame_info): Remove check for fi->pc in known
3060 section, now handled by lookup_minimal_symbol_by_pc.
3062 start-sanitize-gdbtk
3063 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
3065 * gdbtk.tcl (create_command_window): Change a misspelled "get"
3066 to the intended "cget".
3067 (delete_line): Fix so it deletes the current line at the
3071 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
3073 * sh-stub.c: New file, was config/sh/stub.c.
3075 start-sanitize-gdbtk
3076 Thu May 16 19:20:29 1996 Fred Fish <fnf@cygnus.com>
3078 * gdbtk.tcl (gdb_prompt): Set this early on.
3079 (create_command_window): Use gdb_prompt rather than "(gdb) ".
3080 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
3081 (tclsh): If an evaluation window already exists, just bring it
3082 to the front instead of trying to create another.
3083 * gdbtk.c (tk_command_loop): New function.
3084 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
3086 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
3088 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
3089 implement a tcl evaluation window for gdbtk maintainers to use.
3091 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
3093 * gdbtk.tcl (files_command): Correctly insert list of files into
3096 * gdbtk.tcl (files_command): listbox command no longer accepts
3099 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3101 * gdbtk.tcl (create_command_window): If command window's buffer
3102 is disabled, don't execute any of the key bindings.
3105 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
3107 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
3109 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
3111 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
3112 Flush cached frames just before exiting.
3113 * remote-sim.c (gdbsim_resume): Complain if the program isn't
3115 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
3117 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3119 * procfs.c (procfs_thread_alive procfs_stop): Make static.
3120 (procfs_pid_to_str): New routine to print out thread id's in an
3121 intelligible manner.
3122 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
3123 which supply_register is called to fix bug with writing
3125 * config/sparc/tm-sun4sol2.h: Define default for
3126 target_pid_to_str in case host lacks libthread_db.
3128 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
3130 * Makefile.in config.in configure configure.in
3131 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
3132 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
3133 and pthread support, since pre-2.5 systems don't come with
3136 * procfs.c (info_proc): Use int instead of id_t. Old versions of
3137 Irix don't seem to define this.
3139 start-sanitize-gdbtk
3140 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
3142 * gdbtk.c (tk_command): Catch case where no argument is given
3143 since this will cause the tcl interpreter to dump core.
3146 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
3148 * top.c (execute_control_command, case while_control): Allow
3149 a while command to be interrupted.
3151 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
3153 * sol-thread.c: More cleanup, add comments.
3154 (sol_thread_resume): Prevent people from trying to step
3156 (sol_thread_wait sol_thread_fetch_registers
3157 sol_thread_store_registers): Remove unnecessary check for
3158 sol_thread_active. These routines won't get called unless threads
3161 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
3163 SH3-E support from Allan Tajii <atajii@hmsi.com>:
3164 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
3166 (sh3e_reg_names): New register name array.
3167 (sh_processor_type_table): Add sh3e processor type.
3168 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
3169 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
3170 full set of registers.
3171 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
3172 (e7000_fetch_registers, e7000_wait): Use them.
3173 * sh3-rom.c (sh3_regnames): Add float registers.
3174 (sh3e_cmds, sh3e_ops): New globals.
3175 (sh3e_open): New function.
3176 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
3179 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
3181 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
3182 Print out messages instead of codes for thread_db errors. Make
3183 access macros for thread and lwp manipulation. Make cleanups to
3184 fixup inferior_pid in case of errors.
3186 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
3188 * aclocal.m4: Remove unused definition of AC_C_CROSS.
3189 * configure.in: Add powerpcle-*-solaris* host and target config
3190 so April 30th change does not get lost next time configure is
3193 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
3195 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
3196 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
3197 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
3198 avoid conflict with Solaris /usr/include/thread.h.
3200 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
3202 * abug-rom.c: Config file for the older style ABug monitor that
3203 runs on the mvme13x boards.
3204 * config/m68k/monitor.mt: Add abug support for m68k cross
3207 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
3209 * infcmd.c (do_registers_info): Always print the raw floating
3210 point value's bytes in big endian order, so the the leftmost bit
3211 is the most significant.
3212 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
3213 that is referenced nowhere else.
3214 (set_breakpoint): Ditto.
3215 (do_enable_breakpoint): Created from enable_once_breakpoint
3216 with a couple of changes.
3217 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
3218 bpdisp enum value to set disposition of breakpoint.
3219 (enable_once_breakpoint): Ditto.
3220 (enable_delete_breakpoint): Ditto.
3221 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
3222 * symtab.c (find_pc_line): Improve comments.
3223 start-sanitize-gdbtk
3224 * gdbtk.c: Fix a couple of misspellings.
3226 * xcoffread.c: Ditto.
3228 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
3230 * target.c (debug_to_xfer_memory): Insert line breaks when
3231 dumping the memory block.
3233 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3235 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
3236 returns a possibly modified pid.
3237 * inftarg.c (ptrace_him): Now returns pid;
3238 * m3-nat.c (m3_trace_him): Now returns pid;
3239 * infcmd.c (run_command): Minor cleanup.
3240 * infrun.c (wait_for_inferior): Add another check for one_stepped
3241 near where we read the pc to avoid erroneously setting
3242 random_signal for multi-threaded support.
3243 * procfs.c: Add support for Solaris LWPs. Remove def of
3244 LOSING_POLL. Many cleanups... Several workarounds for Solaris
3245 lossage. System call entry and exit are now handled by
3246 dynamically registered handlers.
3247 * (syscallname): Don't barf when handed an unknown syscall
3249 * (info_proc_syscalls): Ditto.
3250 * sol-thread.c: New file. Implements Solaris thread support.
3251 * symfile.c (symbol_file_add): Add call to target_new_objfile to
3252 notify target-dependent code about new symbol tables.
3253 * (clear_symtab_users): Call target_new_objfile to notify it of
3254 the removal of all symbol tables.
3255 * target.c (push_target): Make sure that to_close is non-zero
3257 * target.h (target_new_objfile): Provide default.
3258 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
3259 of OSF can't hack using poll with /proc.
3260 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
3261 sol-thread-new-objfile.
3262 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
3263 add libthread_db.so.1 to NAT_CLIBS.
3264 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
3267 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
3269 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
3270 removal of the requested fd.
3272 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3274 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
3277 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
3279 start-sanitize-gdbtk
3280 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
3282 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
3283 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
3284 (file_popup_menu): Delete, never used.
3285 (listing_window_popup): Rename from listing_window_button_1,
3286 remove breakpoint toggling code.
3287 (toggle_breakpoint): New procedure.
3288 (create_file_win): Bind popup menu to button 2, toggle breakpoints
3289 with button 1 in breakpoint area, add display of tagged areas if
3293 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
3296 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
3297 * breakpoint.c (insert_breakpoints, watchpoint_check,
3298 bpstat_stop_status): Avoid bad references to memory freed via
3299 delete_breakpoint on watchpoints going out of scope.
3300 Do not delete these watchpoints, disable them and change their
3301 disposition to del_at_next_stop instead.
3302 (breakpoint_auto_delete): Delete all breakpoints whose disposition
3303 is del_at_next_stop.
3304 (breakpoint_init_inferior): Use switch to avoid reference to
3305 already deleted breakpoint.
3307 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
3309 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
3310 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
3311 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
3312 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
3313 (solib_info): Call xcoff_relocate_symtab via the hook.
3314 (sharedlibrary_command): Ditto.
3315 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
3316 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
3317 (xcoff_init_loadinfo_hook): Define and initialize here.
3318 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
3319 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
3320 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
3321 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
3322 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
3323 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
3324 of xcoff_relocate_symtab_hook.
3326 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3328 * configure (powerpcle-*-solaris*): Add Solaris support.
3330 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
3333 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
3335 * c-valprint.c (c_val_print): Fix printing for arrays defined
3338 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
3340 Support for bi-endian remote breakpoints.
3341 * remote.c (big_break_insn, little_break_insn): New globals.
3342 (break_insn): Remove.
3343 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
3344 code if REMOTE_BREAKPOINT defined, otherwise call memory
3345 breakpoint functions.
3346 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
3347 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
3349 * mon960-rom.c (mon960_cmds): Remove forward decl.
3350 (mon960_load): Use current_monitor instead of mon960_cmds.
3351 (mon960_regnames): Remove backslashes from line ends.
3352 (_initialize_mon960): Fix documentation string.
3354 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
3356 * symfile.h (psymbol_allocation_list): Expand comments which
3357 describe the psymbol allocation list and how each field is
3360 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3362 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
3364 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
3366 * infcmd.c (run_command), solib.c (locate_base): Check for
3367 target_has_execution in addition to inferior_pid, a core file
3368 from a threaded program is yielding a non-zero inferior_pid.
3370 * sparc-tdep.c (get_saved_register): Handle window registers
3371 in a dummy frame correctly.
3373 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
3375 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
3376 so that anything that wants an allocation function not yet pulled
3377 in, will get it from mmalloc rather than a system library.
3378 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
3379 to avoid surprising results when used.
3381 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
3383 * stabsread.c: Changes and bug fixes for cfront support.
3384 Fix bug for class data members.
3385 Fix parsing bug when no base classes exist.
3386 Fix memory bug - allocate space for cplusplus specific info.
3387 Add support for static data.
3388 Add prototypes for static functions.
3389 Enhance comments to show what each function expects to parse.
3391 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
3392 function to resolve_cfront_continuation.
3394 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
3396 * infrun.c (wait_for_inferior): Call registers_changed when
3397 restarting the inferior to get over a nullified instruction.
3399 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
3401 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
3402 Add new support for parsing cfront stabs.
3404 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
3406 * infrun.c (wait_for_inferior): Move "have_waited" label
3407 outside of #ifdef conditionals. Don't trash the wait status
3408 if we get a signal and the current instruction is nullified.
3410 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
3412 * Makefile.in (VERSION): Bump version number to 4.16.1.
3413 * NEWS: Update for 4.16 release.
3415 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
3417 * monitor.h: Clean up comment formatting.
3418 (current_monitor): Remove decl.
3419 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
3420 (push_monitor, SREC_SIZE): Remove.
3421 * monitor.c: Expand old macro into current_monitor derefs
3423 * remote-os9k.c (current_monitor): Remove definition.
3425 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
3427 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
3429 (call_extra_exec_file_hooks): New function.
3430 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
3431 remove unused variables.
3432 (set_machine_hook): New function.
3433 (_initialize_h8300m): Initialize it.
3435 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
3437 * remote-mips.c (encoding): Don't specify size, to avoid bug in
3438 SunOS native compiler.
3440 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3442 * monitor.c: Use int rather than LONGEST for values, since
3443 the formatting strings are not prepared to accept long longs.
3445 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
3447 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
3449 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
3451 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
3452 before de-referencing it. Prevents deref of NULL pointer if core
3453 file lacks .reg section.
3454 * defs.h: Rename floatformat_{to from}_long_double to
3455 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
3457 * findvar.c (extract_floating store_floating): Change all refs to
3458 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
3459 * utils.c: Change floatformat_{to from}_long_double to
3460 floatformat_{to from}_doublest cuz the new routines will use
3461 whatever size (double or long double) is appropriate.
3462 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3463 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
3464 floatformat... routine calls.
3466 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
3468 * stabsread.c (read_type): Move handling of '@' from type
3469 number handling to handling of types proper (as emitted by gcc!).
3470 For typedefs, allocate the typedef type before reading its
3471 definition, to properly handling recursive types.
3473 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
3475 * ch-exp.c (calculate_array_length): Fix prototype.
3477 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
3479 * remote-nindy.c (nindy_open): Acquire more target state so that
3480 user can attach to a previously running program.
3481 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
3482 conversion code. That's all handled in {extract store}_floating
3484 * utils.c (floatformat_to_double): Don't bias exponent when
3485 handling zero's, denorms or NaNs.
3486 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3487 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
3488 FLOATFORMAT_TO/FROM_DOUBLEST macros.
3489 * config/i960/tm-nindy960.h: Undefine
3490 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
3491 REGISTER_CONVERTIBLE. These are no longer necessary now that all
3492 the magic happens in extract/store_floating.
3494 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3496 * eval.c (evaluate_subexp_standard): Report error when attempting to
3497 evaluate subscripts for types which cannot be subscripted.
3499 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
3500 Return a zero value with the return type of the member function
3501 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
3503 * values.h (value_x_binop, value_x_unop): Update prototypes
3505 * eval.c (evaluate_subexp_standard): Update all callers of
3506 value_x_binop, value_x_unop accordingly.
3508 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
3509 integral promotion on operands.
3511 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
3513 * README: Update for 4.16 release.
3514 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
3515 * configure: Regenerate with autoconf.
3516 * config.in: Regenerate with autoheader.
3517 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
3518 * top.c (command_loop): Ditto.
3520 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
3522 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3523 defaults for bi-endian targets. Replace function pointers for
3524 floatformat routines with macros. No need for these to be runtime
3526 * findvar.c: Get rid of floatformat function pointers. Use
3527 macros in extract_floating and store_floating.
3528 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
3529 Use floatformat macros.
3531 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
3533 From: Miles Bader <miles@gnu.ai.mit.edu>
3534 * configure.in (AC_CHECK_HEADERS): check for endian.h.
3535 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
3536 Add host & target cases for i[345]86-*-gnu*.
3537 * config.in: Regenerate with autoheader.
3538 * configure: Regenerate with autoconf.
3539 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
3540 (init.c): Don't scan mig-generated files.
3541 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
3542 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
3543 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
3544 rather than "#ifndef MACH".
3546 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3548 * remote.c (remotewritesize): New GDB variable, controls size
3549 of memory packets sent to the target.
3551 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
3553 * dcache.c: Add prototypes. Make many functions static.
3554 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
3555 dcache_poke call dcache_xfer_memory directly in order to fix
3556 problems with turning off dcache. dcache_peek is now unnecessary,
3559 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3560 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
3561 to a struct floatformat. This allows for better handling of
3562 targets whose floating point formats differ from the host by more
3563 than just byte order.
3564 * (floatformat_to_long_double floatformat_from_long_double):
3565 Prototypes for new functions in utils.c.
3566 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
3567 for pointers to floating point conversion functions. The actual
3568 function uses either double or long double if the host supports it.
3569 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
3570 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
3571 * (extract_floating store_floating): Rewrite. Now, if host fp
3572 format is the same as the target, we just do a copy. Otherwise,
3573 we call floatformat_{to from}_doublest.
3574 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
3575 `write' to `should_write'.
3576 * utils.c (floatformat_to_long_double
3577 floatformat_from_long_double): New routines that implement long
3578 double versions of functions in libiberty/floatformat.c.
3579 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
3580 i960 extended real (80 bit) numbers.
3581 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
3582 actually read or written.
3584 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3586 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
3587 (calculate_array_length): Move function from here ...
3589 * ch-exp.c (calculate_array_length): ... to here.
3590 (parse_primval): If we have a symbol with an array type
3591 and the length is 0, call calculate_array_length.
3593 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3595 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
3596 Add some checks for powerset compatibility.
3598 * valops.c (value_slice): Use lowbound instead of lowerbound for
3599 call to slice_range_type to get correct bounds.
3601 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
3603 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
3605 * scm-lang.c (gdb_string.h): Include.
3606 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
3607 call to correct type (char *).
3608 * cp-valprint.c (cp_print_static_field): Ditto.
3609 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
3610 for external find_unwind_entry function (from hppa-tdep.c).
3611 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
3612 type of second arg to "char *" to be type compatible with
3614 (remote_wait): Cast second arg to strtol to correct type.
3615 * hppa-tdep.c (compare_unwind_entries): Change argument types to
3616 "const void *" to be type compatible with qsort, and then
3617 assign to local args prior to use.
3619 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
3621 * infptrace.c (kill_inferior): Remove call to "kill"; update
3624 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
3626 * remote-e7000.c: don't append :23 to target port if __WIN32__
3627 is defined (it's WinGDB).
3629 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
3631 From: Miles Bader <miles@gnu.ai.mit.edu>
3632 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
3633 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
3634 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
3635 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3637 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
3639 * configure.in (case host): Add i386sco5 host.
3640 * configure: Regenerate.
3642 From: Robert Lipe <robertl@dgii.com>
3643 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3644 target is an SVR3.2 with COFF, ELF, and shared libes, but
3646 * config/i386/i386sco5.mh: New file.
3647 * config/i386/nm-i386sco5.h: New file.
3649 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
3651 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3652 BCACHE_MAXLENGTH, stash chunk as unique copy.
3654 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
3656 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3657 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3658 use it, rather than calling add_psymbol_addr_to_list.
3659 (add_psymbol_addr_to_list): Delete.
3660 (add_psymbol_to_list): Make psymbol static to avoid random data in
3661 gaps due to alignment of structure members.
3662 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3663 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3664 performance improvements by inlining via complicated macros and
3665 they just make gdb larger and harder to maintain.
3666 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3667 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3668 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3669 (add_partial_symbol): Ditto.
3670 * partial-stab.h: Ditto.
3671 * os9kread.c (read_os9k_psymtab): Ditto
3672 * mdebugread.c (parse_partial_symbols): Ditto.
3673 (handle_psymbol_enumerators): Ditto.
3674 (demangle.h): Include.
3675 * hpread.c (hpread_build_psymtabs): Ditto.
3676 (hpread_build_psymtabs): Ditto.
3677 (demangle.h): Include
3679 start-sanitize-gdbtk
3680 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3682 * gdbtk.c (running_now): New global variable.
3683 (gdb_cmd): Test it before executing any command.
3684 (gdbtk_call_command): Set it when inferior is running.
3685 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3686 disable interaction with command window's text appropriately.
3688 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
3690 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3691 some versions of the kernel don't support it.
3694 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
3696 * configure.in: Check for setpgid function.
3697 * config.in: Regenerate with autoheader.
3698 * configure: Regenerate with autoconf.
3699 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3700 if it is actually defined.
3701 (gdb_setpgid): Use HAVE_SETPGID.
3702 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3703 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3704 * c-exp.y, serial.c: Include <ctype.h>.
3705 * config/m68k/nm-news.h: Add typedef for pid_t which is
3706 apparently missing from <sys/types.h>. Enclose entire
3707 file in NM_NEWS_H ifndef and define when included.
3708 * config/mips/nm-news-mips.h: Ditto.
3709 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3710 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3712 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
3714 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3715 * arm-tdep.c (arm_apcs_32): New global.
3716 (arm_addr_bits_remove, arm_saved_pc_after_call,
3717 arm_push_dummy_frame, arm_pop_frame): New functions.
3718 (arm_skip_prologue): Updated version from Richard Earnshaw.
3719 (_initialize_arm_tdep): Add set/show "apcs32".
3720 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3721 arm_addr_bits_remove.
3722 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3723 (frame_find_saved_regs): Declare properly.
3724 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3725 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3727 * config/arm/nm-arm.h: New file.
3728 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3729 Move definitions to nm-arm.h.
3730 * config/arm/arm.mh (NAT_FILE): Define.
3732 * symfile.c (generic_load): Initialize data_count properly.
3734 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
3736 * symmisc.c (print_objfile_statistics): Print memory used by
3737 psymbol cache obstack.
3739 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
3741 * symfile.c (report_transfer_performance): New function.
3742 (generic_load): Call it to report transfer rate.
3743 * remote-e7000.c (e7000_load): Ditto.
3745 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3747 * mpw-make.sed: Change references to config.h to be in objdir,
3748 edit out rules to rebuild config.h.
3750 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
3752 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3755 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
3757 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3758 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3759 by infptrace.c rather than calling ptrace directly.
3761 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
3763 * mon960-rom.c: Cleanups and elimination of unused code,
3764 clarify documentation string.
3765 (mon960_serial, mon960_ttyname): Remove.
3766 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3767 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
3769 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
3771 * configure.in: Check whether printf family supports printing
3772 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
3773 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
3774 * configure: Regenerate.
3775 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
3776 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
3777 * configure.in: Fix have_gregset and have_fpregset autoconf
3778 variable names so that they match the pattern required to
3781 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
3783 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
3784 before testing against reg_ptr.
3785 * eval.c (evaluate_subexp_standard): Cast type of
3786 TYPE_FN_FIELD_VOFFSET to int.
3787 * findvar.c (extract_signed_integer, extract_unsigned_integer,
3788 extract_long_unsigned_integer): Cast type of sizeof to int.
3789 * values.c (unpack_field_as_long, modify_field): Ditto.
3790 * valops.c (value_assign, call_function_by_hand): Ditto.
3791 * infcmd.c (do_registers_info): Ditto.
3792 * ser-tcp.c (tcp_open): Ditto.
3793 * remote.c (putpkt): Ditto.
3794 * dcache.c (dcache_peek): Ditto.
3795 * dcache.c (dcache_poke): Ditto.
3796 * m2-exp.y (yylex): Ditto.
3797 * gnu-regex.c (re_match_2): Ditto.
3798 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
3799 out unused macro definition and variables.
3800 * inftarg.c (proc_wait): Move from main.c to here, and make static.
3801 * valprint.c (val_print_string): Change bufsize from int to unsigned.
3802 * main.c (wait.h): Include.
3803 * top.c (command_line_input): Remove unused variable "c".
3804 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
3805 value TYPE_CODE_TYPEDEF to switch statement.
3806 (f_type_print_varspec_suffix): Add missing enum value
3807 TYPE_CODE_TYPEDEF to switch statement.
3808 * ch-exp.c (parse_primval): Add remaining enumeration values to
3809 switch statement, with no specific action.
3810 (ch_lex): Add LOC_UNRESOLVED in switch statement.
3811 (pushback_token): Ifdef out, since code using it is ifdef'd out.
3812 * stabsread.c (cleanup_undefined_types): Remove unused label
3814 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
3815 * maint.c (objfiles.h): Include.
3816 (maintenance_print_statistics): Remove unused variable "temp".
3817 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
3818 unused variable "found_file_symbol".
3819 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
3820 * language.c (lang_bool_type): Use existing function local type
3821 variable rather than create block local variables.
3822 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
3823 * infptrace.c (wait.h, command.h): Include.
3824 * ser-tcp.c (gdb_string.h): Include
3825 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
3826 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
3827 * command.c (complete_on_enum): Make assignment used as truth value
3828 explictly check against NULL.
3830 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
3831 that uses it is ifdef'd out.
3832 * parser-defs.h: Add prototype for write_dollar_variable.
3833 * infrun.c: Add prototype for write_pc_pid.
3834 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
3835 * symmisc.c (bcache.h): Include.
3836 * bcache.h: Add prototype for print_bcache_statistics.
3837 * symfile.c: Include <time.h>.
3838 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
3839 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
3840 * valarith.c (value_binop): Change result_len, promoted_len1,
3841 and promoted_len2 to unsigned int.
3842 * valarith.c (value_subscripted_rvalue): Change elt_offs and
3843 elt_size to unsigned int.
3844 * valops.c (value_array): Change typelength to unsigned int.
3845 (destructor_name_p): Change len to unsigned int.
3846 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
3847 * symfile.c (decrement_reading_symtab): Change return type to void.
3848 * valarith.c (value_subscript): Remove unused variable "word".
3849 (value_subscript): Remove unused variable "tint".
3850 * valops.c (auto_abandon): Ifdef out, since code using it is also
3852 * eval.c (init_array_element): Remove unused variable "val".
3853 * Makefile.in (values.o): Depends on scm-lang.h.
3854 (command.o): Depends upon wait_h.
3855 (ser-tcp.o): Depends upon gdb_string.h.
3856 (infptrace.o): Depends upon wait_h and command_h.
3857 (maint.o): Depends on objfiles.h and symfile.h.
3858 * values.c (allocate_repeat_value): Remove unused variable
3860 (scm-lang.h): Include.
3861 * breakpoint.c (create_longjmp_breakpoint): Enclose in
3862 GET_LONGJMP_TARGET define, unused otherwise.
3863 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
3864 i386_remove_watchpoint and i386_stopped_by_watchpoint.
3866 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
3868 * configure.in (sparc64-*-solaris2*): Delete.
3869 Stick with sparc-*-solaris2*.
3870 * configure: Regenerated.
3872 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
3874 * valops.c (value_assign): Make copy of internal variable value
3875 before returning it as a new value, since it is owned by the
3876 internal variable and will be freed along with it.
3878 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
3880 * From Peter Schauer.
3881 * breakpoint.c (breakpoint_re_set_one): Keep temporary
3882 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
3883 and bp_step_resume in case breakpoint_re_set_one is called due
3884 to a step over a dlopen call.
3885 * infrun.c (wait_for_inferior): Always remove breakpoints from
3886 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
3888 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
3890 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
3891 non-prototyped case over prototyped case for C.
3892 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
3894 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
3896 * os9kread.c (os9k_process_one_symbol): Note nonportable
3897 assumption that an int can hold a char *.
3899 * bcache.h (struct hashlink): Wrap data[] inside union with
3900 double to force longest alignment.
3901 (BCACHE_DATA): New macro to access data[].
3902 (BCACHE_ALIGNMENT): New macro to get offset to data[].
3903 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
3904 address of cached data. Use BCACHE_ALIGNMENT to compute
3905 amount of space to allocate for each hashlink struct.
3907 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
3909 * ch-lang.c (evaluate_subexp_chill): Fix typo.
3911 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
3913 * Makefile.in (VERSION): Bump version to 4.15.3
3915 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
3917 * config.in: Rename from config.h.in.
3918 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3919 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
3920 * configure: Rebuild.
3921 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
3922 Set CONFIG_HEADERS to config.h:config.in.
3924 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3926 * partial-stab.h (case N_ENDM): Finish current partial symbol
3927 table for Solaris 2 cc.
3929 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
3931 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
3932 PC in the registers array. From Peter Schauer.
3934 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
3936 * symfile.c (reread_symbols): Reinitialize bcache struct
3937 members to zero using memset. Also use memset to reinit
3938 global_psymbols and static_psymbols, rather than explicitly
3939 resetting each structure member.
3941 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
3943 * configure.in: Add fragment to create stamp-h.
3945 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3946 * configure.in (AC_CHECK_HEADERS): Check for link.h.
3947 * configure: Regenerate with autoconf.
3948 * config.h.in: Regenerate with autoheader.
3949 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
3951 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
3952 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
3953 older a.out based systems.
3955 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
3957 * config.h.in: New file.
3958 * acconfig.h: New file, for autoheader.
3959 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
3960 * configure: Regenerate.
3961 * Makefile.in (defs_h): Add config.h
3962 (distclean): Remove config.h and stamp-h during distclean.
3963 (config.h, stamp-h): New targets to remake config.h when necessary.
3964 * defs.h (config.h): Include before any other includes or defines.
3965 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
3966 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
3968 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
3970 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
3971 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
3972 result in an empty line, to work around a bug in native Ultrix 4.4
3973 and OSF/1-3.2C make.
3975 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
3977 * configure.in: Add gdbserver to configdirs under linux.
3978 * configure: Regenerate.
3980 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
3982 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
3983 * config/i386/tm-nbsd.h (NUM_REGS): Define.
3985 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
3987 * solib.c (solib_break_names): Add _r_debug_state for
3988 vanilla SVR4 implementations. From Peter Schauer.
3990 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
3992 * mon960-rom.c: New file; support mon960 rom monitor on i960.
3993 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
3994 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
3995 epecting prompt and echo during open.
3996 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
3997 determine if break should be sent as stop command.
3998 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
3999 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
4000 stack frame on mon960.
4001 * Makefile.in: Add mon960 files.
4002 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
4003 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
4004 * configure: Regenerated.
4005 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
4006 support mon960 rom monitor on i960.
4008 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
4010 With Michael Snyder:
4011 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
4012 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
4013 (handle_load_dll): Don't reload symbols.
4014 (handle_exception): Use the DEBUG_* names.
4015 (child_wait): Add DEBUG_* code.
4016 (_initialize_inftarg): Add new commands to set debug_ names.
4018 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
4020 * From Peter Schauer:
4021 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
4022 (bpstat_stop_status): Likewise.
4023 (remove_solib_event_breakpoints): Likewise.
4024 (clear_momentary_breakpoints): Likewise.
4025 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
4026 if we still can't read the memory for that breakpoint.
4027 (mention): Add bp_shlib_event case to keep gcc quiet.
4029 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
4031 * breakpoint.h (enum enable): New enum shlib_disabled for
4032 shared library breakpoints that have been temporarily disabled.
4033 * breakpoint.c: Handle temporarily disabled shared library
4034 breakpoints like disabled breakpoints in most places.
4035 (insert_breakpoints): Use shlib_disabled to indicate
4036 that an unsettable breakpoint is only temporarily disabled.
4037 (re_enable_breakpoints_in_shlibs): New function.
4038 * corelow.c (solib_add_stub): After adding shared libraries,
4039 try to reenable any temporarily disabled breakpoints.
4040 * infcmd.c (attach_command): Likewise.
4041 * infrun.c (wait_for_inferior): Likewise.
4043 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
4045 * defs.h (extract_long_unsigned_integer): Declare.
4046 * findvar.c (extract_long_unsigned_integer): New function.
4047 * printcmd.c (print_scalar_formatted): Use it.
4048 * valprint.c (val_print_type_code_int): Likewise.
4050 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
4052 * infcmd.c (do_registers_info): Ignore anonymous registers.
4053 * sh-tdep.c (set processor): New command to set specific
4055 (sh_reg_names, sh3_reg_names): Arrays of register names for
4056 SH and SH3 processors.
4057 (sh_set_processor_type): New function.
4058 * sh3-rom.c (sh3_open): Call it.
4059 (sh3_regname): Add names of all the bank registers.
4060 (sh3_supply_register): Clean up formatting.
4061 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
4063 (REGISTER_NAMES): Add names of bank registers.
4064 (FP15_REGNUM): Define.
4065 (REGISTER_VIRTUAL_TYPE): Use it.
4066 * monitor.c: Clean up some comments.
4068 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4070 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
4071 s* and t* symbols too.
4073 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
4075 * symfile.c (generic_load): Avoid division by zero.
4077 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
4079 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
4080 not just those with HANDLE_SVR4_EXEC_EMULATORS.
4083 * breakpoint.c (internal_breakpoint_number): Move to file scope.
4084 (create_solib_event_breakpoint): Use an internal breakpoint number.
4086 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4088 * valarith.c (value_in): Change builtin_type_chill_bool to
4091 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4093 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
4094 (match_string_literal): Handle control sequence.
4095 (match_character_literal): Deto.
4097 * ch-lang.c (chill_printchar): Change formating of nonprintable
4098 characters from C'xx' to ^(num).
4099 (chill_printstr): Deto.
4100 (value_chill_card, value_chill_max_min): New functions to process
4101 Chill's CARD, MAX, MIN.
4102 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
4104 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
4105 for Chill's CARD, MAX, MIN.
4107 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
4108 and change return type from builtin_type_int to
4109 builtin_type_chill_bool.
4111 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
4113 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
4114 from config/nm-nbsd.h.
4115 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
4116 from config/sparc/tm-nbsd.h.
4118 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
4119 instead of in config/m68k/xm-hp300hpux.h.
4121 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4123 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
4124 implementation for NetBSD systems.
4126 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
4128 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
4129 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
4131 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
4132 if "function" is pointer to non-function.
4134 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
4136 * top.c (print_gdb_version): Update copyright year.
4138 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
4141 * infrun.c (wait_for_inferior): Remove breakpoints and
4142 switch terminal settings before calling SOLIB_ADD.
4143 * solib.c (enable_break, SVR4 variant): Don't map in symbols
4144 for the dynamic linker, the namespace pollution causes real
4147 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
4149 * remote-mips.c (common_breakpoint): Explicitly terminate the
4152 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
4154 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
4155 * remote.c (remote_detach): Send a command 'D' to the target
4156 when detaching, update the function's comments.
4158 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
4160 * gnu-nat.c (thread_cmd_list): New declaration.
4161 (parse_int_arg): New function.
4163 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
4165 * gnu-nat.h (struct proc): Add DETACH_SC field.
4166 * gnu-nat.c (make_proc): Set DETACH_SC.
4167 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4168 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4169 (add_thread_commands): Add set/show for detach-suspend-count.
4170 Add takeover-suspend-count cmd.
4171 (inf_detach): Set suspend counts to the detach SC, not 0.
4172 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
4173 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
4174 set_thread_default_thread_detach_sc_cmd,
4175 show_thread_default_thread_detach_sc_cmd): New functions.
4176 (show_task_cmd): Also show detach-suspend-count values.
4177 (thread_takeover_sc_cmd): New function.
4179 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
4181 * gnu-nat.c (show_thread_run_cmd): Actually print state.
4183 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
4185 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
4187 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
4189 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
4190 pointer to the flags now, not the flags themselves.
4192 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
4194 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
4195 (gnu_create_inferior): Check return from ptrace.
4197 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
4199 * gnu-nat.h (struct proc): Add DEAD field.
4200 * gnu-nat.c (make_proc): Initialize DEAD.
4201 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
4202 (gnu_wait): Only abort for 0 threads if the task isn't dead.
4204 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
4206 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
4208 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
4210 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
4211 (inf_set_traced): Only give no-signal-thread error message if
4212 turning *on* tracing.
4214 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4216 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
4217 set inf->threads_up_to_date to 0.
4218 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
4219 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
4220 (proc_update_sc): Cast thread state arg to thread_set_state.
4221 (proc_get_state): Cast thread state arg to thread_get_state.
4222 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
4223 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
4224 inf_update_procs before we lookup the thread.
4225 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
4227 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
4229 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
4231 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
4233 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
4234 INIT_TRACEMASK instead of setting the exec flags.
4236 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
4238 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
4239 the task's died, so others have a chance at it.
4240 (gnu_resume): When single-stepping a single thread, given an error
4241 if there is no such thread. When single-stepping one but running
4242 the others, just given a warning and still run all the threads.
4243 (gnu_wait): If there seem to be no threads, look harder, and
4244 signal an error if there really aren't any.
4245 (gnu_attach): Reset thread numbering to 0.
4247 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
4248 thread name in warning messages.
4250 * gnu-nat.c (active_inf): New function.
4251 (show_sig_thread_cmd, show_stopped_cmd): Use it.
4252 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
4253 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
4255 (add_task_commands): Add new port-right info commands.
4257 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
4259 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
4260 use mach_msg with MACH_RCV_INTERRUPT.
4261 (set_noninvasive_cmd): New function.
4262 (add_task_commands): Add command entry for `set noninvasive'.
4264 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
4266 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
4267 (safe_bcopy): Function removed.
4269 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
4271 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
4272 (make_proc): Initialize state_valid & state_changed fields.
4274 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
4276 * reply_mig_hack.awk: New file.
4278 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
4280 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
4282 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
4285 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
4287 * target.c (debug_to_check_threads): New function.
4289 * inflow.c (terminal_init_inferior_with_pgrp): New function.
4290 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
4291 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
4292 but only if PROCESS_GROUP_TYPE is defined.
4294 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
4296 * target.c (debug_to_thread_alive): Pass through the return value.
4298 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
4300 * target.c (signals, target_signal_from_host, target_signal_to_host):
4301 Add mach exceptions.
4302 * target.h (enum target_signal): Add mach exceptions.
4304 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
4306 * gnu-nat.c: New file: gnu native backend.
4307 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
4308 * gnu-nat.h: New file.
4309 * config/nm-gnu.h: New file.
4310 * config/tm-i386gnu.h: New file.
4311 * config/xm-i386gnu.h: New file.
4312 * config/i386/i386gnu.mh: New file.
4313 * config/i386/i386gnu.mt: New file.
4315 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
4317 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
4318 baseline for gdb 4.16 rerelease testing.
4320 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
4322 * somsolib.c (som_solib_create_inferior_hook): Before returning
4323 call clear_symtab_users.
4325 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
4327 * remote-e7000.c (e7000_open): Delete all breakpoints when
4328 connecting to e7000. Change connect message to allow use of
4329 monitor.exp in test suite.
4330 * (e7000_load): Print transfer rate of download.
4331 * symfile.c (generic_load): Print transfer rate of download.
4333 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
4335 * configure.in (mips*-*-vxworks*): New config.
4336 * configure: Regenerated.
4338 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
4339 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
4342 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4344 * partial-stab.h (case N_FUN): Function symbols generated
4345 by SPARCworks cc have a meaningless zero value, do not update
4346 pst->textlow if the function symbol value is zero.
4348 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
4349 for function prototype declaration symbols.
4351 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
4353 * remote-e7000.c (e7000_load): New routine to download via the
4355 * (e7000_wait): Don't backup PC when we hit a breakpoint.
4356 Apparantly new sh2 pods get this right...
4357 * (e7000_ops): Add call to e7000_load.
4359 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4361 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
4362 m68knbsd-nat.c: New files, support for NetBSD/m68k.
4364 * configure.in (m68k-*-netbsd*): New config.
4365 * configure: Regenerated.
4367 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
4369 * standalone.c (open, _initialize_standalone): Fix obvious typos
4370 reported by Martin Pool <martin@citr.uq.oz.au>.
4372 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
4374 * solib.c (solib_create_inferior_hook): Fix thinko.
4376 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
4378 * solib.c (solib_break_names): Define for Solaris and Linux.
4379 (enable_break): For SVR4 systems, first try to use the debugger
4380 interfaces in the dynamic linker to track shared library events
4381 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
4382 BKPT_AT_SYMBOL code to use shared library event breakpoints.
4383 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
4384 it no longer needs to restart/wait on the inferior.
4385 * symfile.c (find_lowest_section): No longer static.
4386 * symfile.h (find_lowest_section): Corresponding changes.
4388 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
4390 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
4391 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
4392 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
4393 * config/mips/tm-mips.h: Ditto.
4394 * config/pa/tm-hppa.h: Ditto.
4395 * config/rs6000/tm-rs6000.h: Ditto.
4396 * config/sparc/tm-sparc.h: Ditto.
4398 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4400 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
4402 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
4403 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4404 #ifdef'd out definitions --- Causes serious gdb failures on
4405 the i386. Need to investigate further before enabling.
4407 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
4408 fetch_core_registers): New functions. These functions are defined
4409 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
4410 with ptrace PT_GETREGS/PT_SETREGS.
4412 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
4414 * findvar.c (extract_floating store_floating): Replace `long
4415 double' with `DOUBLEST'.
4417 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
4419 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4422 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
4424 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
4426 * breakpoint.h (remove_solib_event_breakpoints): Declare.
4427 * breakpoint.c (remove_solib_event_breakpoints): New function.
4428 * somsolib.c (solib_create_inferior_hook): Remove all solib event
4429 breakpoints before inserting any new ones. Use a solib event
4430 breakpoint for the breakpoint at "_start".
4431 Remove extraneous "\n" from calls to warning.
4433 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
4436 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
4438 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
4439 for CORE_ADDR values.
4440 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
4441 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
4443 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4445 * mipsread.c (mipscoff_symfile_read): Unconditionally add
4446 alpha coff dynamic symbols for all symbol files. Makes skipping
4447 over the trampoline code work when stepping from a function in a
4448 shared library into a function in a different shared library.
4450 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
4452 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
4453 RETURN_VALUE_ON_STACK to return long doubles on the stack.
4455 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
4457 * Makefile.in (ch-exp.o): Add dependencies.
4458 (various): Add gdb_string.h to dependencies that need it.
4460 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
4462 * symmisc.c (print_symbol_bcache_statistics): Update description for
4463 printing byte cache statistics.
4465 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
4467 * Add native support for long double data type.
4468 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
4469 to store actual data. Change types of INT and FLOAT tokens to
4470 typed_val_int and typed_val_float respectively. Create new token
4471 DOUBLE_KEYWORD to specify the string `double'. Make production
4472 for FLOAT use type determined by parse_number. Add production for
4473 "long double" data type.
4474 * (parse_number): Use sscanf to parse numbers as float, double or
4475 long double depending upon the type of typed_val_float.dval. Also
4476 allow user to specify `f' or `l' suffix to explicitly specify
4477 float or long double constants. Change typed_val to
4479 * (yylex): Change typed_val to typed_val_int. Also, scan for
4481 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
4483 * configure, configure.in: Add check for long double support in
4485 * defs.h: Define DOUBLEST appropriatly depending on whether
4486 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
4487 for functions that handle this type.
4488 * expression.h (union exp_element): doubleconst is now type
4490 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
4491 * findvar.c (extract_floating): Make return value be DOUBLEST.
4492 Also, add support for numbers with size of long double.
4493 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
4495 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
4497 * valarith.c (value_binop): Change temp variables v1, v2 and v to
4498 type DOUBLEST. Coerce type of result to long double if either op
4500 * valops.c (value_arg_coerce): If argument type is bigger than
4501 double, coerce to long double.
4502 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
4503 arg type is float and > 8 bytes, then use pointer-to-object
4504 calling conventions.
4505 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
4506 Use appropriate format and precision to print out floating point
4508 * value.h: Fixup prototypes for value_as_double,
4509 value_from_double, and unpack_double to use DOUBLEST.
4510 * values.c (record_latest_value): Remove check for invalid
4511 floats. Allow history to store them so that people may examine
4512 them in hex if they want.
4513 * (value_as_double unpack_double): Change return value to DOUBLEST.
4514 * (value_from_double): Arg `num' is now DOUBLEST.
4515 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
4516 specific) to expect certain types to always be returned on the stack.
4518 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
4520 * bcache.c, bcache.h: New files to implement a byte cache.
4521 * Makefile.in (SFILES): Add bcache.c.
4522 (symtab_h): Add bcache.h.
4523 (HFILES_NO_SRCDIR): add bcache.h
4524 (COMMON_OBJS): Add bcache.o
4525 (bcache.o): New target.
4526 * dbxread.c (start_psymtab): Make global_syms & static_syms
4527 type "partial_symbol **".
4528 * hpread.c (hpread_start_symtab): Ditto.
4529 * os9kread.c (os9k_start_psymtab): Ditto.
4530 * stabsread.h (start_psymtab): Ditto.
4531 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
4532 * maint.c (maintenance_print_statistics): Call
4533 print_symbol_bcache_statistics.
4534 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
4536 * solib.c (allocate_rt_common_objfile): Ditto.
4537 * symfile.c (reread_symbols): Ditto.
4538 (free_objfile): Free psymbol bcache when objfile is freed.
4539 (objfile_relocate): Use new indirect psymbol pointers.
4540 * objfiles.h (struct objfile): Add psymbol cache.
4541 * symfile.c (compare_psymbols): Now passed pointers to pointers to
4543 (reread_symbols): Free psymbol bcache when freeing other objfile
4545 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
4546 psymbol using the psymbol bcache.
4547 (init_psymbol_list): Psymbol lists now contain pointers rather than
4548 the actual psymbols.
4549 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
4550 grown arrays of pointers.
4551 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
4553 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
4555 (print_symbol_bcache_statistics): New function to print per objfile
4557 (print_partial_symbol, print_partial_symbols,
4558 maintenance_check_symtabs, extend_psymbol_list):
4559 Account for change to pointer to pointer to partial symbol.
4560 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
4561 make_symbol_completion_list):
4562 Account for change to pointer to pointer to partial symbol.
4563 * symtab.h (bcache.h): Include.
4564 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
4565 type "partial_symbol **".
4567 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
4569 * dwarfread.c (free_utypes): New function.
4570 (read_file_scope): Call free_utypes as cleanup, rather than just
4571 freeing the utypes pointer.
4573 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4575 * demangle.c (is_cplus_marker): New function, checks if a
4576 character is one of the commonly used C++ marker characters.
4577 * defs.h (is_cplus_marker): Add prototype.
4578 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
4579 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
4580 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
4581 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
4582 values.c (vb_match): Use is_cplus_marker instead of comparison
4585 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
4587 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
4588 delete entirely someday.
4590 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
4592 * mpw-make.sed: Edit out makefile rebuild rule.
4593 (host_alias, target_alias): Comment out instead of deleting.
4594 (@LIBS@): Edit out references.
4596 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
4598 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4599 Use n_psyms in OBJSTAT, not psyms.
4601 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
4603 * configure.in (sparclet-*-aout*): New config.
4604 * configure: Regenerated.
4606 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
4608 * somsolib.c (som_solib_add): Use xmalloc rather than bare
4609 unchecked call to malloc.
4610 * remote-mips.c (pmon_load_fast): ditto.
4611 * remote-mm.c (mm_open): ditto.
4612 * hpread.c (hpread_lookup_type): ditto.
4613 * remote-adapt.c (adapt_open): ditto.
4615 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
4617 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
4618 allocate_saved_f77_common_node, allocate_common_entry_node,
4619 add_common_block): Use xmalloc rather than malloc, some of which
4621 * gnu-regex.c: At same point as other gdb specific changes
4622 #undef malloc and then #define it to xmalloc.
4623 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
4624 bare unchecked calls to malloc/realloc.
4625 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
4626 unchecked call to malloc.
4628 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
4630 * symtab.c (gdb_mangle_name): Change opname var to be const to
4631 match return val of cplus_mangle_name.
4632 * i960-tdep.c: Change arg types of next_insn to match callers.
4634 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
4636 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
4637 apparently aren't needed in any reasonably recent version of
4640 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
4642 * stabsread.c (read_range_type): If !self-subrange and language
4643 is Chill, assume a true range. If a true_range is a sub_subrange,
4644 use builtin_type_int for index_type.
4646 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
4648 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4649 with an ANSI compiler.
4651 start-sanitize-gdbtk
4652 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
4654 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4655 double-clicking will work again.
4656 (create_asm_win): Put "break" at end of all B1 bindings.
4657 (create_file_win): Lower "sel" tag, don't raise it.
4658 (ensure_line_visible): New proc.
4659 (update_listing, update_assembly): Use it.
4660 (create_copyright_window): Destroy window on Leave event.
4661 (create_command_window): Put "break" at end of all B2 bindings.
4664 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
4666 From Michael_Snyder@NeXT.COM (Michael Snyder):
4667 * valops.c (value_arg_coerce): Coerce float to double, unless the
4668 function prototype specifies float.
4670 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
4672 * language.c (set_language_command): Use languages table when
4673 printing available languages.
4675 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
4677 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
4678 * command.c (add_cmd): Add missing initialization for enums member.
4679 Reorder members to match structure declaration to make it easier to
4680 tell when one is missing.
4681 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4682 memory is referenced after being freed.
4684 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
4686 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4687 AT_name tag is missing.
4689 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4690 FLTWATCH and FLTKWATCH are defined.
4692 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4693 return number of bytes transferred for partial reads.
4695 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4697 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
4699 * win32-nat.c (mappings): Add ppc registers.
4700 (child_resume): Turn off step for ppc.
4702 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
4704 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4705 xm-cygwin32.h): New.
4706 * config/i386/(*win32*): Becomes *cygwin32*.
4707 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4708 (powerpcle-*-cygwin32): New.
4709 * configure: Regenerate.
4710 * win32-nat.c (child_create_inferior): Call CreateProcess
4711 with the right program arg.
4713 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
4715 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4717 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
4719 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4721 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4723 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4725 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4727 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4728 here from config/i386/xm-i386mach.h, fix name.
4729 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4730 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4731 here from config/i386/xm-ptx4.h.
4732 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4733 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4734 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4735 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4736 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4738 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4739 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4740 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4742 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
4744 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4745 floating point correctly.
4746 (STORE_RETURN_VALUE): Likewise.
4747 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4749 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
4751 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4752 Define to what should be reasonable values. However, apparently
4753 a bug in linux mmap prevents mapped symbol tables from working.
4755 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
4757 * defs.h (errno.h>: Move #include closer to head of file to solve
4758 obscure problem with systems that declare perror with const arg, in
4759 both errno.h and stdio.h, and const is defined away by intervening
4762 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
4764 From Jon Reeves <reeves@zk3.dec.com>:
4765 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4766 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
4768 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
4770 * Makefile.in (diststuff): Make all-doc; diststuff target does not
4771 exist in doc/Makefile.in.
4773 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
4775 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
4777 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
4779 * ch-valprint.c (calculate_array_length): New function to
4780 determine the length of an array type.
4781 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
4782 array type is zero, call calculate_array_length.
4784 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
4785 values may not be sorted. Scan all entries and set the real lower
4788 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
4790 * config/xm-linux.h: Move include of solib.h and #define of
4791 SVR4_SHARED_LIBS from here ...
4792 * config/nm-linux.h: ...to here.
4794 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
4796 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
4797 Also check for gregset_t and fpregset_t types.
4798 * configure: Regenerate.
4799 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
4801 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
4802 and HAVE_FPREGSET_T are defined. These changes allow systems
4803 like linux that are migrating to /proc support to use a single
4804 configuration for both new and old versions.
4806 * config/i386/linux.mt: Note that this is now for both a.out and
4808 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
4810 * config/i386/tm-linux.h (tm-sysv4.h): Include.
4811 * config/i386/xm-linux.h (solib.h): Include
4812 (SVR4_SHARED_LIBS): Define.
4813 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
4814 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
4815 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
4818 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
4820 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
4821 * config/i386/xm-sun386.h: Ditto.
4822 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
4824 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
4826 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
4828 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
4830 From Greg McGary <gkm@gnu.ai.mit.edu>:
4831 * dcache.c (dcache_peek, dcache_poke): Advance addr for
4834 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
4836 * infrun.c (normal_stop): Fix test for shared library event.
4838 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
4840 * configure.in (sparc64-*-*): Add default host configuration.
4841 start-sanitize-gdbtk
4842 (sparc64-*-solaris2* host): Link statically if GCC used.
4844 (sparc64-*-solaris2*): Add target configuration.
4845 * configure: Regenerated.
4846 * sparc/sp64sol2.mt: New file.
4848 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
4850 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
4852 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
4854 * Makefile.in (lint): Close backquotes.
4856 start-sanitize-gdbtk
4857 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
4859 * gdbtk.tcl, gdbtk.c: Updated copyrights.
4861 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
4863 * configure: Rebuilt.
4866 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
4868 * NEWS: Make note of new record and replay feature for
4869 remote debug sessions.
4870 * serial.c (gdbcmd.h): Include.
4871 (serial_logfile, serial_logfp, serial_reading, serial_writing):
4872 Define here, for remote debug session logging.
4873 (serial_log_command, serial_logchar, serial_write, serial_readchar):
4874 New functions for remote debug session logging.
4875 (serial_open): Open remote debug session log file when needed.
4876 (serial_close): Close remote debug session log file when needed.
4877 (_initialize_serial): Add set/show commands for name of remote
4878 debug session log file.
4879 * serial.h (serial_readchar): Declare
4880 (SERIAL_READCHAR): Call serial_readchar().
4881 (SERIAL_WRITE): Call serial_write().
4882 (serial_close): Declare as extern.
4883 (serial_logfile, serial_logfp): Declare.
4884 * top.c (execute_command): Declare serial_logfp. Log user command
4885 in remote debug session log if log file is open.
4886 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
4887 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
4888 * remote-array.c (SREC_SIZE): Remove, duplicates define in
4890 * remote-array.c (hexchars, hex2mem): Remove, unused.
4891 * gdbserver/low-linux.c (store_inferior_registers): Remove
4892 unnecessary extern declaration of registers[].
4893 * gdbserver/Makefile.in (all): Add gdbreplay.
4894 * gdbserver/gdbreplay.c: New file.
4895 * gdbserver/README: Give example of recording a remote
4896 debug session with gdb and then replaying it with gdbreplay.
4898 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
4900 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
4901 (read_one_struct_field): Support boolean bitfields.
4902 * c-valprint.c (c_val_print): Print booleans properly.
4904 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
4906 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
4908 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
4910 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
4912 * ch-exp.c (parse_tuple): Error if invalid mode.
4914 * value.h (COERCE_ARRAY): Don't coerce enums.
4915 (COERCE_ENUM): Don't COERCE_REF.
4916 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
4917 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
4918 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
4919 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
4920 Add COERCE_REF before COERCE_ENUM.
4921 * values.c (value_as_long): Simplify.
4923 * valops.c (value_array): Create internalvar if !c_style_arrays.
4925 * language.c (lang_bool_type): Add Fortran support.
4926 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
4928 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
4930 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
4931 All references changed.
4932 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
4933 Update state table. Reformat so that it's still readable.
4934 When we hit the shlib_event breakpoint, set the calss of shlib_event.
4935 (breakpoint_1): Add "shlib events" as a breakpoint type.
4936 Print the shlib_event breakpoint like other breakpoints.
4937 (create_solib_event_breakpoint): New function.
4938 (breakpoint_re_set_one): Handle solib_event breakpoints.
4939 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
4940 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
4942 (create_solib_event_breakpoint): Declare.
4943 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
4944 (normal_stop): Inform the user when the inferior stoped due
4945 to a shared library event.
4946 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
4947 to control whether or not gdb continues the inferior or stops it when
4948 a shared library event occurs.
4949 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
4950 * somsolib.c (TODO list): Update.
4951 (som_solib_create_inferior_hook): Arrange for gdb to be notified
4952 when significant shared library events occur.
4953 * hppa-tdep.c (find_unwind_entry): No longer static.
4955 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
4957 * printcmd.c (print_insn): Pass fprintf_unfiltered to
4958 INIT_DISASSEMBLE_INFO.
4959 start-sanitize-gdbtk
4960 * gdbtk.c (gdb_disassemble): Likewise.
4963 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
4965 * remote.c (remotebreak): New GDB variable.
4966 (remote_break): New global.
4967 (remote_interrupt): Send a break instead of ^C if remote_break.
4968 * NEWS: Describe the new variable.
4970 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
4972 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
4974 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
4976 * hp300ux-nat.c (getpagesize): Remove unused function
4977 fetch_core_registers.
4978 (hp300ux_core_fns): Remove, is unused.
4979 (_initialize_core_hp300ux): Remove, is unused.
4980 (gdbcore.h): Remove #include, no longer needed.
4982 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
4984 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
4985 ptrace bug in aix4.1.3 on the rs6000.
4987 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
4989 * remote-hms.c (hms_ops): Add value for to_thread_alive.
4990 * remote-nindy.c (nindy_ops): Ditto.
4991 * remote-udi.c (udi_ops): Ditto.
4993 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
4995 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
4996 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
4997 pmon_load_fast): New functions. Support for the PMON monitor world.
4998 (common_open): New function to merge support for different monitors.
4999 (mips_open): Use common_open().
5000 (mips_send_command): New function.
5001 (mips_send_packet): Scan out-of-sequence packets.
5002 (mips_enter_debug, mips_exit_debug): New functions.
5003 (pmon_ops): New target definition structure.
5005 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
5007 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
5008 specified on the make command line (via make LIBS=xxx).
5010 * configure.in (enable-gm): magic.o -> gmagic.o.
5013 start-sanitize-gdbtk
5014 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
5016 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
5017 (add_expr): Changes from create_expr_window.
5018 (create_command_window): Set focus.
5019 (delete_expr): Rewrote.
5020 (expr_update_button): New proc.
5021 (add_expr): Put bindings on FocusIn, FocusOut.
5022 Don't allow .file_popup to be torn off.
5025 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
5027 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
5028 is set but there are no psymtabs.
5030 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
5032 * dsrec.c (load_srec): Remove unused variable.
5033 * monitor.c (monitor_expect): Don't expect a ^C to echo.
5034 * serial.c (serial_open): Add parallel interface.
5035 * sh3-rom.c (parallel, parallel_in_use): New.
5036 (sh3_load): If parallel_in_use, download though the
5038 (sh3_open): Open parallel port if specified.
5039 (sh3_close): New function.
5040 (_inititalize_sh3): Add sh3_close hook and documentation.
5041 * monitor.c (monitor_close): Export.
5042 * monitor.h (monitor_close): Add prototype.
5044 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
5046 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5047 * remote.c (remotetimeout): New GDB variable, use to set the
5048 remote timeout for reading.
5050 start-sanitize-gdbtk
5051 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
5053 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
5054 (update_listing): Use lassign. Use "see" to scroll. Don't need
5055 screen_top, screen_bot, screen_height.
5056 (update_assembly): Use "see" to scroll.
5057 (textscrollproc): Removed.
5058 (create_file_win): Don't use textscrollproc.
5059 (asmscrollproc): Removed.
5060 (create_asm_window): Don't use asmscrollproc.
5061 (create_asm_win): Ditto.
5062 (screen_height, screen_top, screen_bot): Removed.
5063 (run_editor): New proc.
5064 (build_framework): Use it.
5065 (create_file_win, create_source_window): Don't use textscrollproc.
5066 (create_breakpoints_window): Set -xscrollcommand on canvas.
5067 (not_implemented_yet): Default button is 0.
5068 (delete_char): Don't use tk_textBackspace.
5069 (create_command_window): Allow Tk bindings to fire after deleting
5071 (create_command_window): Make Delete delete left, not right.
5074 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
5076 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
5077 to get "struct core_fns" defined.
5078 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
5079 Are dependent upon gdbcore_h.
5081 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
5083 * symfile.c (decrement_reading_symtab): New function.
5084 * symfile.c, symtab.h (currently_reading_symtab): New variable.
5085 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
5086 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
5087 currently_reading_symtab (since that could infinitely recurse).
5089 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
5091 * stabsread.c (read_struct_type): Trivial simplification.
5093 * stabsread.c (define-symbol): Use invisible references
5094 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
5095 * valops.c (call_function_by_hand): Likewise.
5096 * eval.c (evaluate_subexp_standard): When known, use the formal
5097 parameter type as the expected type when evaluating arg expressions.
5098 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
5100 start-sanitize-gdbtk
5101 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
5103 * main.c (main): Disable window interface if --help or --version
5106 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
5108 Changes in sync with expect:
5109 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
5111 * aclocal.m4: Replaced with version from expect.
5112 * configure: Regenerated.
5115 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5117 * configure.in, configure: Recognize rs6000-*-aix4*.
5118 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
5119 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
5120 * config/rs6000/xm-aix4.h: New file.
5121 * config/xm-aix4.h: New file.
5123 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
5125 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
5126 * gdbserver/low-linux.c: New file.
5127 * remote.c (remote_read_bytes): Fix aborts on larger packets.
5129 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
5131 * stabsread.c (define_symbol): If register value is too large,
5132 tell what it is and what max is.
5134 start-sanitize-gdbtk
5135 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
5137 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
5138 gdbtk_tcl_flush): Use "see", not "yview".
5139 (gdbtk_tcl_query): Use questhead bitmap.
5140 various: Always wrap condition of 'if' in {...}.
5141 (add_breakpoint_frame): Set -value on radiobuttons.
5142 (lassign): New proc.
5143 (add_breakpoint_frame): Use lassign, not series of assignments.
5144 (decr): Made faster.
5145 (interactive_cmd): Use "see", not "yview".
5146 (not_implemented_yet): Use warning bitmap.
5147 (update_expr): Don't allow $expr to be evalled by Tcl.
5148 (create_expr_window): Don't use "focus".
5149 (delete_char, delete_line): Define globally.
5150 (delete_line, delete_char, create_command_window, update_autocmd,
5151 build_framework, create_asm_win, create_file_win): Use "see", not
5153 (create_copyright_window, center_window, bind_widget_after_class):
5155 (FSBox,create_command_window, create_autocmd_window): Binding
5157 (textscrollproc): Define globally.
5158 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
5159 Home, End, Up, and Down are all defined by Tk.
5160 (apply_filespec): Use error bitmap in dialog.
5161 (files_command): Don't use tk_listboxSingleSelect.
5162 (files_command): Don't use "uniq" to remove duplicates from a
5164 (update_assembly): Use lassign.
5165 (create_asm_win): Removed redundant bindings.
5166 (listing_window_button_1, file_popup_menu): Use tk_popup.
5167 (ButtonRelease-1 binding): Just remove tag from window; rest
5170 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
5171 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
5172 (gdbtk_call_command): Ditto.
5175 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
5177 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
5178 enum namespace -> enum_namespace change.
5180 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
5182 * ch-exp.c (parse_primval): In case ARRAY, add missing
5185 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
5187 * remote-mips.c (mips_receive_header): Recognize \012 instead
5188 of \n, but write \n when program sends a \012.
5189 * ser-mac.c (mac_input_buffer): Increase size of buffer.
5191 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
5193 * infptrace.c (initialize_infptrace): Move function out of
5194 #ifdef conditional; put code within the function inside an
5197 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
5198 arguments. Sorting is now dependent on OBJF_REORDERED. All
5199 callers/references changed.
5200 * dbxread.c (read_ofile_symtab): Correctly determine value for
5201 last_source_start_addr for reordered executables.
5202 (process_one_symbol): Handle N_FUN with no name as an end of
5204 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
5205 is the high text address for a psymtab.
5206 (case N_SO): Likewise.
5207 (case N_FUN): Handle N_FUN with no name as an end of function
5209 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
5210 at the same address rather than a random subset of them.
5211 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
5212 * elfread.c (elf_symfile_init): Similarly.
5213 * somread.c (som_symfile_init): Similarly.
5214 * xcoffread.c (xcoff_symfile_init): Similarly.
5216 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
5218 * stack.c (print_stack_frame print_frame_info) symmisc.c
5219 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
5220 that catch_errors doesn't get blindsided by QUIT and lose the
5221 cleanup chain. This fixes a problem where ^C while in a
5222 user-defined command sometimes leaves instream NULL and causes a
5223 segfault in command_loop.
5225 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5227 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
5229 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
5231 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
5232 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
5233 srec.o renamed to dsrec.o.
5235 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
5237 * breakpoint.c (remove_breakpoint): Change error to warning so
5238 that hardware watchpoint removal problems won't leave breakpoint
5239 traps in the target.
5240 start-sanitize-gdbtk
5241 * configure configure.in: Make --enable-gdbtk be the default.
5243 * remote-e7000.c (e7000_insert_breakpoint,
5244 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
5246 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
5247 compensate for e7000 maladjustment.
5248 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
5249 which prevented hardware watchpoints from working.
5251 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
5253 * infptrace.c (udot_info): New function.
5254 (PT_*): Define each individually if that one is not defined.
5255 * rs6000-nat.c (kernel_u_size): New function
5256 Include <sys/user.h> for "struct user"
5257 * alpha-nat.c (kernel_u_size): New function.
5258 Include <sys/user.h> for "struct user"
5259 * sparc-nat.c (kernel_u_size): New function.
5260 Include <sys/user.h> for "struct user"
5261 * i386b-nat.c (kernel_u_size): New function.
5262 * i386v-nat.c (kernel_u_size): New function.
5263 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
5264 (kernel_u_size): Declare.
5265 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
5266 (kernel_u_size): Declare.
5267 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
5268 (kernel_u_size): Declare.
5269 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
5270 (kernel_u_size): Declare.
5271 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
5272 (kernel_u_size): Declare.
5274 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
5276 * mdebugread.c (mylookup_symbol): enum namespace becomes
5277 enum_namespace type.
5278 * symfile.c (add_psymbol_to_list)
5279 (add_psymbol_addr_to_list): Ditto.
5280 * symtab.c (lookup_partial_symbol): Ditto.
5281 (lookup_symbol): Ditto.
5282 (lookup_block_symbol): Ditto.
5283 * win32-nat.c (handle_load_dll): Use incoming dll base.
5284 (child_wait): Catch DLL load errors.
5285 (create_child_inferior): Translated between paths correctly.
5287 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
5289 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
5290 from NUM_REGS to get number of general registers that we care about.
5291 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
5292 of number of general regs and number of floating point regs.
5294 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
5296 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
5297 (SKIP_TRAMPOLINE_CODE): New.
5298 * config/i386/xm-win32.h (CANT_FORK): Deleted.
5299 (SLASH*) Changed to use unix style slash.
5300 * symtab.h (namespace enum): becomes typedef to avoid namespace
5302 * infcmd.c (path_command): Use empty string if PATH name not set.
5303 * i386-tdep.c (skip_trampoline_code): New function.
5304 * srec.c: Renamed dsrec.c to avoid filename collision.
5305 * Makefile.in: Cope with renaming.
5307 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
5309 * symmisc.c (print_objfile_statistics): Print memory use statistics
5310 for objfile psymbol, symbol, and type obstacks.
5312 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
5314 * config/mips/nm-irix5.h: Restore.
5315 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
5316 from Lee Iverson <leei@ai.sri.com>.
5317 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
5318 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
5320 For older changes see ChangeLog-95
5326 version-control: never