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