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