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