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