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