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