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