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