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