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