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