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