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