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