3 * config/mn10300/tm-mn10300.h: more small register fixes
7 * config/i386/xm-windows.h: Undo previous change to SIGTRAP
8 and SIGQUIT values; it messed up non-MIPS targets.
9 * config/mips/tm-mips.h: Undefine BREAKPOINT, replace
10 with separate LITTLE_BREAKPOINT and BIG_BREAKPOINT definitions;
11 this fixes problem with setting breakpoints in little-endian
12 programs in the simulator.
16 * remote-sim.c (gdbsim_open_p): New static local.
17 (gdbsim_open): Call unpush_target if sim open. Set gdbsim_open_p.
18 (gdbsim_close): Only call sim_close if sim open. Reset gdbsim_open_p.
22 * config/i386/xm-windows.h: Make SIGTRAP and SIGQUIT consistent
23 with sim/mips/support.h.
27 * v850-tdep.c (struct pifsr): Add cur_frameoffset field.
28 (v850_scan_prologue): Add debug code #ifdef'ed DEBUG. Support new
29 compiler prologues using register save functions and short store
30 instructions. Add support for functions with large stack frames.
32 * config/v850/tm-vm850.h ({R0,R1,R12,EP}_REGNUMS): New register
33 number defintiions for r0, r1, r12, ep.
34 (SAVE{1,2,3}_{START,END}_REGNUM): Register number definitions for
35 the 3 sets of saved registers.
39 * valprint.c (print_longest): Don't lose upper bits
40 of 64-bit values on Windows.
41 * config/i386/xm-windows.h: Leave CC_HAS_LONG_LONG defined,
42 undefine PRINTF_HAS_LONG_LONG, so that 64-bit values will
43 be printed without loss of upper bits.
47 * config/sparc/tm-sparclet.h: make registers ASR15, ASR19 invisible
48 (they're not useful, you can't change, write or even read them)
52 * config/pa/hppahpux.mh (TERMCAP): Always link to libc before
53 libcurses, to avoid picking up broken select() from libcurses
54 on some versions of HPUX.
58 * sparclet-rom.c: Remove includes of Unix system files.
59 Add function "sparclet_supply_register" so that parse_register_dump
60 will not seg-fault by calling a null function pointer.
61 Remove XMODEM support (unfinished work?).
62 Remove flag "MO_HANDLE_NL", so monitor's output can be read by humans.
64 Remove colon from getreg.resp_delim so PSR register will work.
65 Remove pointer to sparclet_load (downloading SREC's doesn't work).
66 Null out local register names for %g0, all %cc and all %asr regs,
67 since the monitor can't report them. Will return zero instead.
68 * sparclet-stub.c: New -- remote protocol support for sparclet CPU.
69 * config/sparc/tm-sparclet.h: Re-arrange REGISTER_NAMES:
70 Add back %g0 and %psr, add %cc coprocessor regs, add %asr regs.
71 Adjust NUM_REGS and REGISTER_BYTES accordingly
75 * remote-e7000.c (want_h8300h, want_nopc_h8300h): Renamed
76 from want and want_nopc.
77 (want_h8300s, want_nopc_h8300s): New variables for H8/S register
79 (e7000_fetch_registers): Use H8/300H or H8/S register list string
81 (e7000_wait): Likewise.
85 * mips-tdep.c (mips_find_saved_regs): If a frame has been
86 interrupted by a signal, figure out whether the registers that
87 the proc_desc claims are saved have been saved yet.
88 (mips_push_dummy_frame): Write dummy frame register after all
89 registers have been saved in the dummy frame. Update comments
90 to reflect the fact that we are now using an AT_ENTRY_POINT
96 * d10v-tdep.c (d10v_skip_prologue): PR11287. Fix problem where
97 some breakpoints weren't being set.
102 * config/mips/tm-mips.h (PC_IN_CALL_DUMMY): Removed, the default
103 definition in inferior.h is sufficient.
104 * mips-tdep.c (mips_pc_in_call_dummy): Ditto.
105 (mips_push_arguments): Make sure that the stack is aligned to a
106 multiple of 8 after the arguments are pushed.
107 Structures are always passed by value in the old ABI.
108 Adjust argument register value on big endian targets when passing
109 a value whose length is less than the register size.
110 Write stack arguments with a single write_memory call.
111 (mips_pop_frame): Use frame_saved_regs instead of proc_desc to
112 decide which registers have to be restored.
114 * irix5-nat.c (fill_gregset): Sign extend registers before
115 filling in the gregset structure.
119 * mswin/genmakes: Don't define _DEBUG. This breaks wingdb.
124 * v850-tdep.c (v850_scan_prologue): Deal with -mep shorting
125 register saves by using the ep register.
131 * m32r-tdep.c (m32r_frame_find_saved_regs): Fix thinko in arg def.
136 * values.c (unpack_double): Make it compile with MSVC++ 2.x.
137 * remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
139 (common_open): Fix help string.
143 * mpw-make.sed: Use NewFolderRecursive for installation.
147 * mips-tdep.c (mips_push_arguments): Handle floating point args.
148 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Define to set up $25
149 correctly for PIC on Irix 5.
153 * i386-tdep.c (i386_frame_find_saved_regs): Handle zero return
154 from get_pc_function_start gracefully.
158 * c-exp.y (qualified_name): Replace explicit check for valid
159 destructor name with call to destructor_name_p.
161 * c-lang.h, c-typeprint.c (cp_type_print_method_args): Removed,
164 * c-typeprint.c (c_type_print_varspec_prefix, c_type_print_base):
165 Replace remaining fprintf_unfiltered calls with their filtered variant.
166 (c_type_print_base): Do not print return type for destructors from
168 Replace cp_type_print_method_args with cplus_demangle call to get
169 consistent type output for stubbed and unstubbed methods.
171 * cp-valprint.c (cp_print_class_method): Replace
172 cp_type_print_method_args with cplus_demangle call to get consistent
173 type output for stubbed and unstubbed methods.
175 * gdbtypes.c, gdbtypes.h (get_destructor_fn_field): New function
176 to find the destructor field indices for a type.
178 * gdbtypes.h (struct type): Clarify comments for vptr_basetype
179 and arg_types fields.
180 (struct fn_field): Remove args field, no longer used.
182 * symtab.c (decode_line_1), valops.c (value_struct_elt,
183 check_field_in): Use get_destructor_fn_field to find the destructor
184 field indices instead of assuming that the compiler passes the member
185 function fields in a specific order.
187 * symtab.c (find_methods): Pass NULL instead of SYMBOL_BLOCK_VALUE
189 (list_symbol): Replace cp_type_print_method_args with cplus_demangle
190 call in zapped out code and explain why this code is zapped out.
194 * config/powerpc/ppc{,le}-sim.mt (SIM): Add the simulator common
195 library ../sim/common/libcommon.a.
199 * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
203 * monitor.c (monitor_load): Add support for load address argument.
204 * dsrec.c: #include <time.h>.
205 (load_srec): New argument load_offset. Print download stats.
206 * srec.h (load_srec): Update prototype.
207 * sh3-rom.c (sh3_load): Update call to load_srec.
211 * config/mn10300/tm-mn10300.h: more small register fixes
212 * mn10300-tdep.c: filled in from another target
216 * monitor.c (monitor_insert_breakpoint): Handle bi-endian machines.
220 * config/mips/tm-mips.h: Get rid of call-dummy code.
221 Minor changes to make pre-ANSI compilers happy.
222 * mips-tdep.c: Minor changes to make pre-ANSI compilers happy.
223 (mips_push_arguments): Rewrite to partially support EABI.
224 (mips_pc_in_call_dummy): New function.
225 * infcmd.c: Include symfile.h to get prototype of entry_point_address,
226 which fixes 64-bit sign extension bug on MIPS.
230 * config/mn10300/tm-mn10300.h: fix register names
231 * mn10300-tdep.c: new skeleton tdep for mn10300
235 * remote-sim.h: Update some comments.
236 * remote-sim.c (gdb_os_error): New function.
237 (init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
238 (gdb_os_printf_filtered): Use gdb_stdout, not stdout.
242 * irix5-nat.c (supply_gregset, fill_gregset): Handle gregsets
243 from O32 and N32 ABI.
244 (xfer_link_map_member): Work around problem with alignments
245 in struct obj when compiling GDB under N32 ABI.
250 * d10v-tdep.c: Add support for examination and interpretation
251 of instruction trace buffer.
252 (trace, untrace, info trace, tdisassemble): New commands.
257 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER): Undef.
258 (TARGET_BYTE_ORDER_SELECTABLE): Define.
260 ({BIG,LITTLE}_BREAKPOINT): Define.
261 (TM_PRINT_INSN_MACH): Redefine for sparclet.
265 * config/mn10300/mn10300.mt, config/mn10300/tm-mn10300.h: New.
269 * infptrace.c (store_inferior_registers): Move some common code out
270 to store_register, like fetch_inferior_registers & fetch_register.
271 (store_register): New function, from store_inferior_registers.
272 (fetch_inferior_registers, fetch_register): Minor code tweaks to
273 make {fetch,store}_inferior_registers and {fetch,store}_register
274 routines as similar in structure as possible.
275 (fetch_inferior_registers, store_inferior_registers): Eliminate
276 local variable numregs and just use ARCH_NUM_REGS directly.
280 * blockframe.c: add macro USE_GENERIC_DUMMY_FRAMES to enable/disable
281 code for generic call_dummy frames.
282 * config/h8300/tm-h8300.h: turn on USE_GENERIC_DUMMY_FRAMES
284 * config/m32r/tm-m32r.h: Ditto.
286 * config/sh/tm-sh.h: Ditto.
288 * config/v850/tm-v850.h: Ditto.
293 * vax-tdep.c (vax_print_insn, print_insn_arg): Use info functions
298 * configure.tgt: Add new mn10300 entry.
302 Add support for Irix 6.2 native O32 and N32 ABI.
304 * config.in, configure.in, configure: Check for <objlist.h>.
305 * configure.tgt: Handle mips*-sgi-irix6* like irix5 for now.
307 * cp-valprint.c (cp_print_value_fields): Use SYMBOL_VALUE_ADDRESS
308 instead of SYMBOL_BLOCK_VALUE to get the address of a static member.
310 * dwarf2read.c: Turn warnings and recoverable errors into complaints,
311 add new complaints where appropriate.
313 (struct line_head): Change line_base from char to int to avoid
314 problems with compilers whose plain char is represented by an
316 (struct partial_die_info): Add is_declaration field.
317 (dwarf2_tmp_obstack): New obstack for allocating temporary storage
318 used during symbol reading.
319 (cu_header_offset): New variable for resolving relative reference
321 (optimized_out, basereg, islocal, frame_base_reg, frame_base_offset):
322 New interface variables for decode_locdesc.
323 (struct dwarf2_pinfo): New structure for communication between
324 psymtab and symtab reading, passed via pst->read_symtab_private.
325 (dwarf2_has_info, dwarf2_build_psymtabs): Accept objects files
326 without line number sections.
327 (dwarf2_build_psymtabs_hard): Initialize temporary obstack
329 Allocate and initialize pst->read_symtab_private.
330 Relocate pst->textlow and pst->texthigh with baseaddr.
331 (scan_partial_symbols): Do not add DW_AT_declaration symbols
332 to the partial symbol table.
333 Add file scope enumerator symbols to the partial symbol table.
334 Fix typo in highpc computation.
335 If we didn't find a lowpc, set it to highpc to avoid complaints
337 (add_partial_symbol): Relocate symbol values with baseaddr.
338 Add static DW_TAG_subprogram and DW_TAG_variable symbols to the
339 minimal symbol table.
340 Obtain symbol values for DW_TAG_variable symbols from the location
341 descriptor, skip symbols with missing location desciptors.
342 Skip symbols for aggregate types without children.
343 Handle enumerator symbols.
344 (dwarf2_psymtab_to_symtab): Issue symbol reading message if verbose.
345 (psymtab_to_symtab_1): Set local variables from
346 pst->read_symtab_private, set cu_header_offset and baseaddr.
347 Initialize temporary obstack for symbol reading, initialize
348 buildsym and add a cleanup to really_free_pendings.
349 Relocate highpc with baseaddr when calling end_symtab.
350 If the compilation is from a C file generated by language
351 preprocessors, do not set the symtab language if it was already
352 deduced by start_subfile.
353 Removed verbose sorting symbol table message.
354 (process_die): Handle DW_TAG_ptr_to_member_type and
355 DW_TAG_reference_type.
356 Use read_subroutine_type to get the function type for
357 DW_TAG_subprogram before calling read_func_scope.
358 (read_file_scope): Initialize file name to <unknown>, start_subfile
359 expects a non-NULL name.
360 If we didn't find a lowpc, set it to highpc to avoid complaints
362 Relocate lowpc and highpc with baseaddr.
363 Get rid of Irix6.2 native cc compile machine prefix in comp_dir.
364 Zero out ftypes for each new compilation unit (may be different
365 language or different objfile).
366 Accept compilation units without line number information, pass
367 comp_dir to decode_lines.
368 (read_func_scope): Initialize function name to <unknown> to avoid
369 core dumps when DW_AT_name is missing.
370 Relocate lowpc and highpc with baseaddr.
371 Handle DW_AT_frame_base, keep result for DW_OP_fbreg operations.
372 Pass function type to new_symbol.
373 (read_lexical_block_scope): Relocate lowpc and highpc with baseaddr.
374 (read_structure_scope): Set TYPE_TAG_NAME, not TYPE_NAME.
375 Handle DW_TAG_class_type.
376 Copy fields to type_obstack, release temporary storage for fields.
377 Don't add symbol if die is a stub die and has no children.
378 Handle C++ static member fields.
379 (read_enumeration): Set TYPE_TAG_NAME, not TYPE_NAME.
380 Copy fields to type_obstack, release temporary storage for fields.
381 Let new_symbol handle the symbol creation for enumerators
382 instead of handcrafting a symbol.
383 Determine signedness of enum type from enumerators.
384 (dwarf_read_array_type): Handle variable length arrays.
385 Use lookup_pointer_type instead of handcrafting a type.
386 Create array type only if a DW_TAG_subrange_type was found.
387 (read_tag_pointer_type, read_tag_reference_type):
388 Use lookup_pointer_type and lookup_reference_type instead
389 of handcrafting a type.
390 (read_tag_ptr_to_member_type): New function to handle
391 DW_TAG_ptr_to_member_type.
392 (read_subroutine_type): Handle parameter dies.
393 Use lookup_function_type instead of handcrafting a type.
394 (read_typedef): Allocate a TYPE_CODE_TYPEDEF type for the typedef.
395 (read_base_type): If the type has a name, use init_type to create
396 a new type instead of second guessing a fundamental type.
397 (read_comp_unit): Reset die reference table before building
399 (dwarf2_read_section): Read section contents into psymbol_obstack.
400 (dwarf2_read_abbrevs): Handle unterminated abbreviations
401 for a compile unit gracefully.
402 (read_partial_die): Zero partial die before reading its info.
403 Handle DW_AT_declaration.
404 Fix typo in handling of DW_FORM_block4.
405 (read_full_die): Fix typo in handling of DW_FORM_block4.
406 (read_1_signed_byte, read_2_signed_bytes, read_4_signed_bytes):
407 New routines to get signed values from a buffer.
408 (read_n_bytes, read_string): Allocate storage from the temporary
409 obstack. If the host char size permits it, return pointer
410 to buffer instead of allocating storage.
411 (set_cu_language): Handle DW_LANG_Mips_Assembler.
412 (dwarf_attr): Return NULL if reference die for DW_AT_specification
413 or DW_AT_abstract_origin die is not found.
414 (record_minimal_symbol): Removed, replaced with a direct call to
415 prim_record_minimal_symbol, it now handles saving the string itself.
416 (convert_locdesc): Removed, partial symtab reading now uses
418 (dwarf_attr): Use dwarf2_get_ref_die_offset to get the absolute
419 offset for the die reference.
420 (dwarf_decode_lines): Complain if the line section info is missing.
421 Use read_1_signed_byte to extract lh.line_base to avoid
422 problems with compilers whose plain char is represented by an
424 Add cleanups for allocated temporary storage.
425 Start a subfile for the first file in the state machine.
426 Fix off by one problem with dirs.dirs access.
427 Use comp_dir when directory index is 0.
429 (dwarf2_start_subfile): Try to keep line numbers from identical
430 absolute and relative file names in a common subfile.
431 (new_symbol): Allocate symbol and symbol name on the symbol_obstack.
432 Set SYMBOL_LINE from DW_AT_decl_line if present.
433 Set SYMBOL_TYPE from passed type if not NULL.
434 Change DW_TAG_variable symbol types with missing type entries
436 Handle optimized_out, offreg and islocal storage classes.
437 Add external symbols with type information whose address isn't
438 known as LOC_UNRESOLVED symbols.
439 Synthesize typedefs for C++ classes, structs, unions and enumerations.
440 Handle DW_TAG_enumerator symbols, complain for unrecognized
442 (die_type): A missing DW_AT_type represents a void type.
443 Use dwarf2_get_ref_die_offset to get the absolute offset for
445 (die_containing_type): New function to build type from
446 DW_AT_containing_type attribut.
447 (read_type_die): Handle DW_TAG_ptr_to_member_type.
448 Treat DW_TAG_subprogram like DW_TAG_subroutine_type.
449 (dwarf_base_type): Fix typo with creation of FT_UNSIGNED_SHORT
451 (create_name): Removed, symbol name allocation is now done
453 (dump_die): Use print_address_numeric to print a CORE_ADDR.
454 (dwarf2_empty_die_ref_table): New function to clear the die
456 (dwarf2_get_ref_die_offset): New function to get the absolute
457 die offset from a die reference attribute.
458 (decode_locdesc): Complete rewrite using a stack, code mostly
459 borrowed from dwarfread.c:locval.
460 (dwarf_alloc_type): Removed, replaced by direct calls to alloc_type.
461 (dwarf_alloc_block): Allocate block on temporary obstack.
463 * elfread.c (elf_symtab_read): When handling Irix dynamic symbols,
464 skip section name symbols and relocate all others.
465 (elf_symfile_read): Build dwarf2 psymtab even if offset is non-zero.
467 * irix5-nat.c (fetch_core_registers): Handle core_reg_sect
468 from N32 executables. Call registers_fetched after extracting
470 (obj_list_variant, struct link_map, LM_OFFSET, LM_ADDR): New
471 definitions to enable support of O32 and N32 format objlists.
472 (struct so_list): New members offset, so_name and lmstart to
473 eliminate dependencies from the objlist format used.
474 (solib_map_sections, symbol_add_stub, solib_add,
475 info_sharedlibrary_command, solib_address, clear_solib): Use
476 so_name and LM_OFFSET.
477 (first_link_map_member): Rewrite to enable support of O32 and N32
479 (next_link_map_member, xfer_link_map_member): New functions to
480 support O32 and N32 format objlists.
481 (find_solib): Use first_link_map_member, next_link_map_member and
482 xfer_link_map_member.
483 (solib_create_inferior_hook): Use TARGET_SIGNAL_* instead of
486 * mdebugread.c (parse_partial_symbols, handle_psymbol_enumerators):
487 Pass CORE_ADDR variant to add_psymbol_to_list.
489 * mips-tdep.c (heuristic_proc_desc): Stop examining the prologue
490 if we encounter a positive stack adjustment. Handle `move $30,$sp'.
491 Handle `sd reg,offset($sp)' for 32 bit ABIs.
493 * symmisc.c (dump_msymbols, print_partial_symbols): Use
494 print_address_numeric to print a SYMBOL_VALUE_ADDRESS.
495 (dump_symtab): Print compilation directory if it is not NULL.
497 * valops.c (search_struct_field, value_struct_elt_for_reference):
498 Use SYMBOL_VALUE_ADDRESS instead of SYMBOL_BLOCK_VALUE to get the
499 address of a static member.
503 * vax-tdep.c (vax_print_insn): Made static, modified to take
504 disassemble_info as parameter.
505 (_initialize_vax_tdep): New function to initialize tm_print_insn
510 * blockframe.c: Remove old-style CALL_DUMMY code.
511 * h8300-tdep.c, config/h8300/tm-h8300.h: Ditto.
513 * m32r-tdep.c, config/m32r/tm-m32r.h: Ditto.
515 * sh-tdep.c, config/sh/tm-sh.h: Ditto.
517 * v850-tdep.c, config/v850/tm-v850.h: Ditto.
522 * breakpoint.c: DELETE command will not delete CALL_DUMMY breakpoint.
523 * blockframe.c: Add target-independant support for managing
524 CALL_DUMMY frames on the host side.
525 * frame.h: Declarations for generic CALL_DUMMY frame support.
526 * h8300-tdep.c: Add target function calls using generic frame support.
527 * config/h8300/tm-h8300.h: config for generic target function calls.
529 * m32r-tdep.c: Add target function calls using generic frame support.
530 * config/m32r/tm-m32r.h: config for generic target function calls.
532 * sh-tdep.c: Add target function calls using generic frame support.
533 * config/sh/tm-sh.h: config for generic target function calls.
535 * v850-tdep.c: Add target function calls using generic frame support.
536 * config/v850/tm-v850.h: config for generic target function calls.
538 * valops.c: ADD PUSH_RETURN_ADDRESS so that it doesn't have to be
539 done by PUSH_ARGUMENTS when there's no CALL_DUMMY.
543 * config/mips/tm-mips.h (ADDR_BITS_REMOVE, TARGET_READ_SP): Define.
544 (mips_addr_bits_remove): Declare.
545 * mips-tdep.c (mips_push_dummy_frame): Fix heuristic-fence-post
546 errors when hitting breakpoints during inferior function calls
548 (fix_sign_extension): Make public, rename to mips_addr_bits_remove.
549 * utils.c (paddr_nz, preg_nz): New functions, similar to
550 paddr and preg but don't print leading zeroes.
551 * defs.h (paddr_nz, preg_nz): Declare.
552 * remote-mips.c: Use paddr_nz instead of paddr throughout
553 to reduce packet size.
554 (pmon_end_download): Improve timeout error handling.
558 * configure: Rebuild with autoconf 2.12.
563 * remote-bug.c (wait_strings): Avoid creating a trigraph.
568 * valops.c (value_at, value_fetch_lazy): Put in D10V call
569 to fix up address pointers.
570 * values.c (value_from_longest): Removed previous d10v changes.
571 * config/d10v/tm-d10v.h (TARGET_PTR_BIT): Change to 4 bytes.
576 * config/i386/nm-i386v4.h (LOSING_POLL): Define, needed for
581 * mips-tdep.c: Replace hard-coded constants with MIPS_INSTLEN.
582 (common_breakpoint): Use paddr instead of %x to print 64-bit values.
583 (heuristic_proc_desc): Add tests for 64-bit instructions.
584 (init_extra_frame_info, mips_push_arguments): Recognize additional
586 * remote-mips.c: Extend DDB target to allow TFTP downloads.
587 * config/mips/tm-mips.h (MIPS_LAST_ARG_REGNUM, MIPS_NUM_ARG_REGS):
592 * infcmd.c (do_registers_info): Call val_print with the
593 virtual buf instead of the raw buf. Needed for REGISTER_CONVERT
594 to work with non-floating point regs.
597 * d10v-tdep.c (d10v_skip_prologue): If we have line debugging
598 information, then the end of the prologue should the first
599 assembly instruction of the first source line.
601 * values.c (value_from_longest): Put in D10V call to
602 fix up address pointers.
604 * config/d10v/tm-d10v.h (REGISTER_VIRTUAL_SIZE): Modified.
605 (REGISTER_VIRTUAL_TYPE): Modified for PC_REGNUM and SP_REGNUM.
606 (REGISTER_CONVERTIBLE): Make PC and SP convertible.
607 (REGISTER_CONVERT_TO_VIRTUAL): Define.
608 (REGISTER_CONVERT_TO_RAW): Define.
609 (D10V_MAKE_DADDR): Define.
610 (D10V_MAKE_IADDR): Define.
614 * config/i386/cygwin32.mh: add MMALLOC_CFLAGS = -I$(MMALLOC_SRC)
615 -DMMCHECK_FORCE=1 so memory checks are loaded for cygwin32 gdb
619 * callback.h: Delete, moved to ../include.
620 * callback.c: Delete, moved to ../sim/common.
621 * Makefile.in (SFILES,COMMON_OBJS): Delete callback.[co].
622 (callback.o): Delete rule.
623 * remote-sim.h: No longer include callback.h.
624 (sim_callback_write_stdout): Delete prototype.
625 * remote-sim.c (init_callbacks,end_callbacks): New functions.
626 (gdb_os_write_stdout, gdb_os_printf_filtered): New functions.
627 (gdb_callback, callbacks_initialized): New static globals.
628 (gdbsim_open): Call init_callbacks.
629 (gdbsim_close): Call end_callbacks.
630 (simulator_command): Call init_callbacks.
632 * config/h8300/h8300.mt (SIM): Change to ../sim/h8300/libsim.a.
633 * config/h8500/h8500.mt (SIM): Change to ../sim/h8500/libsim.a.
638 * gdbtk.c (gdbtk_readline): Fix memory leak.
642 Fixes for Tcl 7.6 / Tk 4.2:
643 * gdbtk.tcl (apply_filespec): Use tk_getOpenFile.
644 Remove old fileselect code.
645 * gdbtk.c (Tcl_Alloc): Rename from Tcl_Malloc.
650 * config/mips/tm-mips.h (FIX_CALL_DUMMY): Change unsigned LONGEST
656 * procfs.c (wait_fd): Handle EINTR error return from poll
657 by restarting the poll.
658 * defs.h (PIDGET): Define a default version that just
659 returns its argument unchanged.
660 * inflow.c (terminal_init_inferior): Eliminate #ifdef
661 of PIDGET and fold both alternatives into common code.
662 (pass_signal): Use PIDGET for pid passed to kill().
666 * utils.c (paddr,preg): Use a static variable initialized to 32
667 instead of doing addr>>32 to eliminate a warning produced by GCC
671 * config/d10v/tm-d10v.h (ULONGEST): Define.
676 * c-typeprint.c (cp_type_print_method_args): Pass -1 for show in
677 recursive call to type_print.
681 * defs.h (ULONGEST): New macro.
682 * alpha-tdep.c, breakpoint.c, c-exp.y, ch-exp.c, convex-xdep.c,
683 corefile.c, defs.h, f-exp.y, findvar.c, gdbcore.h, m2-exp.y,
684 m88k-tdep.c, printcmd.c, remote-hms.c, remote-mips.c, sparc-tdep.c,
685 valarith.c, valops.c, values.c, config/gould/tm-np1.h,
686 config/mips/tm-mips.h, mswin/prebuilt/gdb/cexptab.c,
687 mswin/prebuilt/gdb/fexptab.c, mswin/prebuilt/gdb/m2exptab.c:
688 Change all occurances of unsigned LONGEST to ULONGEST.
690 * configure.host (mips-sgi-irix6): Add.
694 * sh-tdep.c: Add functionality for target function calls.
695 * config/sh/tm-sh.h: Add support for target function calls.
700 * m32r-tdep.c: Add functionality for target function calls.
701 * valops.c: Small change to support target function calls.
702 * config/m32r/tm-m32r.h: Add support for target function calls.
707 * defs.h: Modify Nov 11 12:59:00 change so _MSC_VER is checked
709 * win32-nat.c: Fix Nov 11 12:59:00 change (windows.h should
710 be included instead of windefs.h for compilers other than
712 * mswin/windefs.h: Remove ^Ms and change C++ style comments
717 * utils.c (get_cell): Fix off-by-one bug.
718 * mips-tdep.c (get_frame_pointer, fix_sign_extension):
719 New functions to consolidate common code.
720 (mips_frame_chain, init_extra_frame_info): Use new functions
721 to fix problems with backtrace and finish commands on ddb board.
725 * mips-tdep.c, remote-mips.c, values.c, mdebugread.c,
726 config/mips/tm-mips.h: Add/fix bugs for 64-bit mips support.
727 * defs.h: Cleanup; add prototypes.
728 * corefile.c: Change FIXME #ifdef
729 * win32-nat.c: Include windefs instead of windows.h.
730 * utils.c: Add routines for printing addresses and registers
735 * alpha-tdep.c (heuristic_proc_desc): Stop examining the prologue
736 if we encounter a positive stack adjustment.
737 (find_proc_desc): If heuristic_fence_post is non-zero, use
738 heuristic_proc_start to determine the start of a function before
739 calling heuristic_proc_desc.
741 * coffread.c (coff_symtab_read): Change minimal symbol types
742 for C_LABEL symbols from mst_* to mst_file_*.
744 * config/m68k/sun3os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
746 * configure.in: Handle error message from sun3 native ld when
747 configuring HLDFLAGS.
748 * configure: Regenerated with autoconf.
750 * c-valprint.c (c_value_print): Adjust value address by VALUE_OFFSET.
751 * cp-valprint.c (cp_print_value): Prevent gdb crashes by making sure
752 that the virtual base pointer from an user object still points to
755 * dbxread.c (dbx_symfile_init): Initialize sym_stab_info to
756 clear the recently added header_files fields.
757 (dbx_symfile_finish): Free hfiles[i].vector to avoid storage leak.
761 * config/tm-sh.h: Added a missing comma in middle of
766 * monitor.c: Fix some formatting and comments.
768 * remote-sim.c (simulator_command): Set up callbacks before
769 entering the simulator.
774 * d10v-tdep.c: Fix some problems with inferior function calls.
775 * config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Change dummy to be
776 a pointer to the dummy's stack instead of just a flag.
782 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
783 * config/tm-m32r.h: Add framesize and register to extra_frame_info.
788 * mswin/gdbwin.h: Remove bogus definition of CORE_ADDR.
789 * mswin/srcwin.cpp (CSrcScroll1::CSrcScroll1): Initialize depth
790 to fix divide-by-zero problem with clicking on source window.
794 * mswin/recordit: Fix problem with absolute paths.
795 * mswin/recordit: Fix problem with relative paths.
799 * mswin/{Makefile.in configure configure.in}: New files for
800 configuring wingdb under Unix.
804 * irix5-nat.c, osfsolib.c, solib.c (symbol_add_stub): Handle
805 missing or zero-sized .text sections properly.
806 * mdebugread.c: Handle scRConst and scSUndefined storage classes.
807 * stabsread.c (scan_file_globals): Try to resolve symbols
808 for shared libraries from the minimal symbol table of the main
814 * d10v-tdep.c, config/d10v/tm-d10v.h: Major fixes to support
815 inferior function calls and proper stack backtracing on D10V-EVA
821 * config/powerpc/linux.mh (NATDEPFILES): Fix up things so that it
823 (GDBSERVER_DEPFILES,TERMCAP): Ditto.
825 * monitor.c (dev_name,targ_ops): Move static variables before
826 first use, to avoid compiler warnings.
831 * m32r-tdep.c: Improved frame_chain and fn prologue analysis.
832 * configure.tgt: Add entry for m32r target.
833 * monitor.h: Add a flag to tell monitor_store_register to use
834 (val, regno) instead of (regno, val).
835 * monitor.c: Make monitor_store_register honor the above flag.
836 Make monitor_exp ignore DC1/DC3 for m32r.
837 Increase buf size in monitor_dump_regs.
841 * m32r-tdep.c, m32r-rom.c: New files.
842 * config/m32r/m32r.mt: New file.
843 * config/m32r/tm-m32r.h: New file.
848 * config/i386/xm-cygwin32.h:
849 * config/powerpc/xm-cygwin32.h:
850 add #define LSEEK_NOT_LINEAR so source lines aren't unexpectedly
855 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE):
860 * TODO: Add item suggesting an "info bfd" command.
865 * d10v-tdep.c: Snapshot that supports D10V-EVA board.
867 * config/d10v/tm-d10v.h (REGISTER_NAMES): Add imap0,imap1,dmap.
868 (TARGET_READ_FP,TARGET_WRITE_FP): Define.
873 * mswin/genmakes mswin/recordit: New scripts to generate make
878 * config/mips/{tm-vr5000.h,tm-vr5000el.h,vr5000.mt,vr5000el.mt}:
880 * configure.tgt: Modify cases for vr5000 to use new files.
884 * config/alpha/alpha-osf3.mh (XM_CLIBS): Add -lm for OSF/1-4.0.
886 * procfs.c (proc_set_exec_trap): Under Alpha OSF/1-4.0, tracing
887 the entry to the exit system call to detect termination of the
888 inferior stopped working. Trace termination of the inferior via
889 PRFS_STOPTERM instead.
890 (procfs_init_inferior): Do not trace entry to exit system call
891 if PIOCSSPCACT is defined.
892 (procfs_wait): Handle PR_DEAD event, which signals the termination
893 of the inferior if PRFS_STOPTERM is set.
895 * mdebugread.c (parse_partial_symbols): Ignore stNil section
896 start address symbols.
898 * sparc-tdep.c (get_saved_register): Get saved PC from the
899 frame info if not in innermost frame.
903 * dbxread.c (process_one_symbol): Interpret end-of-function
904 markers correctly; this fixes problem on Vr5000 where all
905 functions in a module had the same address.
906 * configure.in, configure.tgt, configure.host, gdbserver/configure.in:
907 Correct for pc-linux-gnu problem in config.guess.
908 * configure: Regenerate.
912 * dbxread.c: Don't swap symbols in place, since internal and
913 external forms may have different sizes. Don't assume that an
914 internal_nlist has the same layout as an external_nlist. Create
915 symbol for n_strx element so to hide specifics of nlist from
917 * partial-stab.h: Don't reference dbxread symbols directly. Use
918 CUR_SYMBOL_STRX instead.
919 * config/i386/xm-windows.h: Define SIGQUIT and SIGTRAP.
922 * config/v850/tm-v850.h: Define PS_REGNUM and TARGET_V850 for
924 * mswin/gdbwin.c (reg_order): Define register order for V850.
925 * mswin/gui.cpp (CGuiApp::InitInstance): Define target name for
927 * mswin/regdoc.h: Define MAXREGS for V850.
932 * v850-tdep.c (scan_prologue): Changes to deal with scheduled
933 prologues correctly. First, prologue end is now defined by
934 presence of a branch, jump or call insn. Second, can no longer
935 fix frame offsets because we may not know the offset until after a
936 register has been saved.
937 * (v850_init_extra_frame_info): Fixup frame offsets here because
938 we have all the info at this time.
939 * (v850_frame_chain): Use new calling convention for scan_prologue.
945 * d10v-tdep.c, config/d10v/tm-d10v.h: Changes to allow stack
946 backtraces and inferior function calls.
951 * mpw-make.sed: Update init.c editing to work with Oct 8 change.
952 (@HLDFLAGS@): Always edit out.
956 * mdebugread.c (parse_partial_symbols): Fix 64-bit
957 sign-extension problems in calculating psymtab addresses.
958 * buildsym.c (end_symtab): Use macro to pop context.
963 * v850-tdep.c: Cleanup lots of things. Add many comments.
965 * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix
966 sign bugs with scanning prologues. Get a little smarter about
967 calculating the length of uninteresting instructions.
972 * top.c: Add new commands "set annotate" and "show annotate".
976 * corelow.c (core_close): Clear inferior_pid only if there is
979 * cp-valprint.c (cp_print_value_fields): Pass correct address
983 * eval.c (evaluate_subexp_standard) [case BINOP_REPEAT]: Chase
984 typedefs before checking for integral type of right operand.
988 * mdebugread.c (parse_symbol): Fix crash when malloc has
989 no type info and void type has no associated pointer type.
993 * configure.host: New file, host configuration mapping.
994 * configure.tgt: New file, target configuration mapping.
995 * configure.in: Remove host and target mapping.
996 * configure: Rebuild.
1000 * breakpoint.c (must_shift_inst_regs): New global.
1001 (bpstat_stop_status): Change #if uses of DECR_PC_AFTER_BREAK into
1002 equivalent expression uses.
1003 * infrun.c (wait_for_inferior): Ditto.
1008 * v850-tdep.c (v850_push_arguments): Use symbolic names for arg
1010 * config/v850/tm-v850.h: Change FP to 29. Define arg regs.
1015 * Makefile.in (init.c): Don't use -s option with grep. It means
1016 something different under Digital Unix.
1018 * buildsym.c (finish_block): Treat LOC_BASEREG_ARG and
1019 LOC_LOCAL_ARG as arguments so that GDB will know about function
1020 args declared this way. Mostly affects dwarf.
1021 * dwarfread.c (decode_die_type): Change default type from int to
1022 void. This allows GDB to recognize void functions.
1023 * (new_symbol): If AT_PROTOTYPED is present, set a flag in the
1025 * findvar.c (extract_floating store_floating): Clean up comments
1027 * gdbtypes.h: Add TYPE_FLAG_PROTOTYPED so that we can tell if a
1028 function has a prototype. Currently, only dwarf supports this.
1029 * utils.c (floatformat_from_doublest): Fix logic error with
1030 converting from double to float. (It wasn't shifting mant_long if
1031 it had a hidden bit.)
1034 * v850-tdep.c: Add support for function calling. Fix some
1035 problems with debugging code w/o debug symbols.
1036 * config/v850/tm-v850.h: Ditto.
1041 * utils.c: Always ensure that size_t is defined. Check
1042 HAVE_STDDEF_H rather than __STDC__
1043 (xmalloc, xrealloc): Use size_t rather than long.
1047 * config/powerpc/tm-ppc-eabi.h: Undefine NO_SINGLE_STEP so targets
1048 can use single-step commands.
1052 * stabsread.c (define_symbol): If REG_STRUCT_HAS_ADDR is non-zero,
1053 follow typedefs before checking TYPE_CODE for structures and unions.
1057 * frame.h: Move definition of struct frame_saved_regs to before
1058 struct frame to make it possible to use frame_saved_regs in
1059 EXTRA_FRAME_INFO macro.
1062 * v850-tdep.c config/v850/tm-v850.h: Lotsa new functions and
1063 macros to make frame operations (such as backtrace) work.
1068 * dbxread.c (process_one_symbol): Check for null string directly
1069 rather than using strcmp against "".
1070 * partial-stab.h: Ditto.
1074 * gdbserver/{gdbreplay.c,low-linux.c,remote-utils.c,utils.c}:
1075 Make it compile on Linux and eliminate some warnings.
1079 * Makefile.in (init.c): Fixup final sed script to work around
1080 Linux bug with `p' operator.
1084 * remote-mips.c: Use the correct name everywhere (DDB) for NEC's
1086 (ddb_ops, pmon_ops): Fix the documentation strings.
1090 * Makefile.in (init.c): Retro HPUX grep lacks -h option. Strip
1091 filenames with sed instead.
1095 * defs.h: Remove decls of xmalloc and xrealloc. There is a
1096 conflicting definition in libiberty.h.
1100 * dbxread.c (dbx_symfile_read): Call free_pending_blocks rather
1101 than poking global variable (which is now static).
1102 * hpread.c (hpread_build_psymtabs): Ditto.
1103 * os9kread.c (os9k_symfile_read): Ditto.
1104 * xcoffread.c (xcoff_initial_scan): Ditto.
1106 * buildsym.h (free_pending_blocks): Declare here.
1107 (pending_blocks): Remove declaration of global symbol.
1108 (free_pendings): Remove declaration of global symbol.
1109 (make_blockvector): Declare here.
1110 (record_pending_block): Declare here.
1112 * dstread.c (make_blockvector): Remove static copy that was old
1113 clone of version in buildsym.c.
1114 (process_dst_block): Call record_pending_block rather than doing
1116 (read_dst_symtab): Ditto.
1118 * buildsym.c (make_blockvector): Make global rather than static,
1119 (record_pending_block): New function, code moved from finish_block.
1120 (finish_block): Use record_pending_block.
1121 (free_pending_blocks): New function.
1122 (really_free_pendings): Call free_pending_blocks.
1123 (pending_blocks): Make static instead of global.
1124 (free_pendings): Make static instead of global.
1128 * config/i386/windows.mh config/i386/xm-windows.h:: New config
1129 files to support building Wingdb (built under Microsoft build
1132 * Makefile.in: Add rule for hpux-thread.o (needs special header
1134 * (SUBDIRS): Remove mswin.
1135 * Change procedure for creating init.c. Speeds things up quite a
1137 * config.in configure configure.in: Check for select, poll.
1138 * Check for OSF header files before including hpux-thread.o.
1139 * Don't configure doc or testsuite when building under MSVC.
1140 * findvar.c value.h (read_register_pid write_register_pid): Make
1141 global. Needed for hppa-tdep.c.
1142 * (supply_register): Don't set pid to inferior_pid when supplying
1144 * hppa-tdep.c (saved_pc_after_call): frame_saved_pc ->
1146 * (frame_saved_pc): Change name to hppa_frame_saved_pc.
1147 * (hppa_pop_frame): Don't use a pid of 0 with target_write_pc.
1148 Use write_pc instead, which uses the correct pid.
1149 * (target_read_pc target_write_pc): Use read/write_register_pid
1150 instead of read/write_register to preserve the pid passed in.
1151 * inftarg.c (child_can_run): Add flag child_suppress_run to allow
1152 hpux-threads.c to override this as a runnable target.
1153 * config/pa/nm-hppah.h: Define target_new_objfile and
1155 * config/pa/tm-hppa.h (FRAME_SAVED_PC): Use hppa_frame_saved_pc
1156 instead of frame_saved_pc.
1157 * config/m68k/tm-m68k.h: Define TARGET_M68K for Wingdb.
1158 * config/m68k/tm-monitor.h: Use FRAME_CHAIN_VALID_ALTERNATE, since
1159 we can't easily determine the start file bounds with ELF.
1160 * config/mips/tm-mips.h: Define TARGET_MIPS for Wingdb.
1161 * hpux-thread.c: New file for HPUX/OSF thread support.
1162 * osf-share/{README AT386/cma_thread_io.h HP800/cma_thread_io.h
1163 RIOS/cma_thread_io.h cma_attr.h cma_deb_core.h cma_debug_client.h
1164 cma_errors.h cma_handle.h cma_init.h cma_list.h cma_mutex.h
1165 cma_sched.h cma_semaphore_defs.h cma_sequence.h cma_stack.h
1166 cma_stack_int.h cma_tcb_defs.h cma_util.h}: New files for OSF
1171 * buildsym.c (finish_block): Change innerblock_anon_complaint to
1172 print the addresses as part of the complaint. Add a complaint for
1173 cases where the block end address is smaller than the block start
1174 address, in case any such conditions slip through our fixup mechanism.
1175 * symmisc.c (dump_symtab): Only print blockvector for primary
1176 symtabs, to avoid massive duplication of output due to secondary
1177 symtabs that point to same blockvector. Also do some minor
1182 Replace header_files global by per-objfile field.
1183 * gdb-stabs.h (struct dbx_symfile_info): Add fields header_files,
1184 n_header_files, n_allocated_header_files.
1185 * stabsread.h (header_files, n_header_files, n_allocated_header_files):
1186 Replace externs by macros HEADER_FILES, N_HEADER_FILES, and
1187 N_ALLOCATED_HEADER_FILES.
1188 * dbxread.c (dbx_symfile_finish): Free HEADER_FILES.
1189 (free_header_files, init_header-files): Don't free/init headerfiles.
1190 (various functions): Use macros instead of header_files globals.
1191 * stabsread.c (various functions): Likewise.
1195 * dwarf2read.c (read_tag_reference_type): New fn.
1196 (read_type_die): Call it.
1197 (dwarf_attr): Also look in the DIEs referred to by specification
1198 or abstract_origin attributes.
1202 * inferior.h (IN_SIGTRAMP): Pass pc to SIGTRAMP_START and
1204 * config/i386/tm-i386os9k.h (SIGTRAMP_START, SIGTRAMP_END):
1205 Define with dummy pc arg.
1206 * config/m68k/tm-nbsd.h: Ditto.
1207 * doc/gdbint.texinfo: Document that SIGTRAMP_START and
1208 SIGTRAMP_END are macros that take an single argument.
1212 * defs.h: Remove define of PRIVATE_XMALLOC.
1217 * config/v850/tm-v850.h: Use distinct register for PC, not EIPC.
1222 * top.c (execute_control_command): Free values from while_control
1223 and if_control conditions after evaluation to avoid storage leaks.
1229 * configure configure.in: Recognize v850 target.
1230 * v850-tdep.c: New file, NEC V850 target support.
1231 * config/v850/{v850.mt tm-v850.h}: New files for NEC V850 support.
1236 * infrun.c (wait_for_inferior): Update current_line and
1237 current_symtab when stepping continues in the middle of a new line.
1241 * top.c (print_gdb_version): Rewrote to comply with new GNU coding
1242 standards for the --version option.
1243 (print_gnu_advertisement): Remove, now part of print_gdb_version.
1244 (show_version): Remove call to print_gnu_advertisement.
1245 * top.h (print_gnu_advertisement): Remove prototype.
1246 * main.c (print_gdb_help): Move help to static function and
1248 (main): Call print_gdb_help rather than inlining it.
1249 (main): Remove call to print_gnu_advertisement.
1250 start-sanitize-gdbtk
1251 * gdbtk.tcl (create_copyright_window): Increase timeout from
1252 15 seconds to 30 seconds.
1258 * config/d10v/tm-d10v.h (TARGET_{INT,PTR}_BIT): Define.
1259 (TARGET_{,LONG_}DOUBLE_BIT): Ditto.
1264 * configure.in, config/i386/tm-linux.h: Fix configure
1265 problem on older Linux systems that prevented core files
1266 from being recognized.
1270 * dbug-rom.c: New file, support for Motorola's dBUG monitor.
1271 * config/m68k/monitor.mt (TDEPFILES): Add it.
1277 * config/d10v/tm-d10v.h (SAVED_PC_AFTER_CALL): Fixed.
1278 Now single-steps correctly.
1279 * d10v-tdep.c (d10v_pop_frame): Fixed.
1284 * config/sh/tm-sh.h (REGISTER_NAMES): Move fp registers to
1285 be consistent with GCC.
1286 (FPUL_REGNUM, etc): Renumber to match list changes.
1287 (ADDR_BITS_REMOVE): Delete.
1288 * sh-tdep.c (sh_reg_names, sh3_reg_names, sh3e_reg_names):
1289 Rearrange to match REGISTER_NAMES.
1290 * sh3-rom.c (sh3_regnames, sh3e_regnames): Ditto.
1295 * d10v-tdep.c: Stack chain should work now.
1299 * d10v-tdep.c, config/d10v/tm-d10v.h: Snapshot.
1304 * configure.in: Add cases for MIPS 5000 like MIPS 4300.
1305 * configure: Rebuild.
1309 * ser-e7kpc.c: Added wingdb support for target e7000pc.
1313 * remote-mips.c (pmon_wait): DDB PMON does not require forced
1314 re-entry back into debug mode.
1318 * remote-mips.c (mips_load): Ensure that the PC is explicitly
1319 loaded after a load to a DDB PMON system.
1323 * Makefile.in (INTERNAL_LDFLAGS): Add @HLDFLAGS@ to list.
1324 (HLDENV): Set to @HLDENV@.
1325 (gdb): Prefix link command line with $(HLDENV).
1326 * configure.in: Add support to test for --enable-shared and
1327 generate appropriate values for HLDFLAGS and HLDENV.
1328 * configure: Regenerated with autoconf.
1332 * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
1333 change for core_read_registers in struct core_fns.
1334 * core-regset.c (fetch_core_registers): Ditto & add prototype.
1335 * core-sol2.c (fetch_core_registers): Ditto & add prototype.
1336 * i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
1337 * i386b-nat.c (fetch_core_registers): Ditto.
1338 * i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
1339 * irix4-nat.c (fetch_core_registers): Ditto.
1340 * irix5-nat.c (fetch_core_registers): Ditto.
1341 * lynx-nat.c (fetch_core_registers): Ditto & add prototype.
1342 * m68knbsd-nat.c (fetch_core_registers): Ditto.
1343 * mips-nat.c (fetch_core_registers): Ditto & add prototype.
1344 * rs6000-nat.c (fetch_core_registers): Ditto.
1345 * sparc-nat.c (fetch_core_registers): Ditto.
1346 * sun3-nat.c (fetch_core_registers): Ditto & add prototype.
1347 * ultra3-nat.c (fetch_core_registers): Ditto & add prototype.
1349 * alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
1350 * delta68-nat.c (register_addr): Ditto.
1351 * gdbserver/low-linux.c (register_addr): Ditto.
1352 * gdbserver/low-hppabsd.c (register_addr): Ditto.
1353 * i386m3-nat.c (register_addr): Ditto.
1354 * mips-nat.c (register_addr): Ditto.
1355 * ultra3-nat.c (register_addr): Ditto.
1359 * blockframe.c (inside_main_func): Cleanup slightly. Move
1360 mainsym def into the block it's used in.
1361 * configure.in configure: Allow NATDEPFILES to be recognized in
1362 .mh files regardless of whitespace.
1364 * cpu32bug-rom.c (cpu32bug_cmds): Change load_response string to
1365 keep downloads from hanging.
1367 * remote-wiggler.c: Add support for flash upgrades.
1368 * (wiggler_error): Fix message format. Add new error code.
1369 * (wiggler_write_byets): Error code is hex. Report errors with
1370 proper routine name.
1371 * (wiggler_read_byets): Report errors with proper routine name.
1372 * (get_packet): Add support for new flash commands.
1373 * (wiggler_load): Call clear_symtab_users() to reset things
1374 properly after download.
1375 * (flash_xfer_memory bdm_update_flash_command): New funxtions to
1376 support flash upgrades for Wiggler.
1377 * (_initialize_remote_wiggler): Add `bdm update-flash' command.
1381 * ser-tcp.c: don't include netinet/tcp.h if __CYGWIN32__
1385 * config/i386/cygwin32.mh:
1386 * config/powerpc/cygwin32.mh: build ser-tcp.o for both hosts
1390 * value.h (COERCE_REF): Fix previous change.
1391 (COERCE_ENUM): Add a check_typedef (this is the real fix).
1395 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
1396 better check of array boundaries.
1400 * configure: Update aclocal.m4 and re-run autoconf to get correct
1402 * remote-wiggler.c (wiggler_error): Error codes are hex. Also,
1403 fix default message generation.
1407 * Makefile.in: Add mswin to SUBDIRS. Add rules for
1408 mswin/libwingdb.a and remote-wiggler.o.
1409 * breakpoint.c (breakpoint_here_p): Clean up bp enabled test.
1410 * (breakpoint_inserted_here_p): New func, just like
1411 breakpoint_here_p, except it's honest. Honestly.
1412 * breakpoint.h: Proto for above.
1413 start-sanitize-gdbtk
1414 * configure configure.in: Add host *windows* to list of hosts
1415 that don't support GDBtk.
1417 * configure configure.in: Add mswin to configdirs if host is
1418 i[3456]86-*-windows.
1419 * core-aout.c (fetch_core_registers register_addr) gdbcore.h:
1420 Change all vars that can contain addresses to type CORE_ADDR.
1421 * findvar.c (supply_register): Allow val to be NULL. This means
1422 that regno is unsupported.
1423 * (read_pc read_pc_pid write_pc write_pc_pid): Make non-pid forms
1424 just call pid forms with inferior_pid so that there's only once
1425 place to hack PC's and such.
1426 * infrun.c (proceed): Don't skip breakpoints if user changed PC.
1427 * remote-wiggler.c: New file. Support for BDM interface from
1429 * serial.c: Enhance serial logging capability. Add hex and octal
1430 output modes (set remotelogbase {hex|octal|ascii}. Also log
1431 breaks, timeouts, errors, and eofs.
1432 * serial.h: Redefine SERIAL_SEND_BREAK to go through a wrapper
1433 function so that we can log breaks. Don't export serial_logfile
1435 * top.c (execute_command): Don't test for serial_logfp here.
1436 Just call serial_log_comand, and let serial.c sort it out.
1437 * valops.c (value_of_variable): Don't attempt to establish frames
1438 for static and global variables. This makes things work a bit
1439 better if the stack or frame pointer is trashed.
1440 * config/m68k/monitor.mt (TDEPFILES): Add remote-wiggler.o.
1441 * config/m68k/tm-m68k.h: Define STACK_ALIGN. CPU32 can't hack
1442 misaligned stacks during function calls.
1446 * terminal.h: Don't use #elif.
1450 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
1453 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
1454 check number of args against bounds of array to avoid
1457 * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
1458 a TYPE_CODE_TYPEDEF.
1462 * remote-mips.c: Provide support for DDBVR4300 target board.
1463 (ddb_open, ddb_ops): Added.
1464 (mips_monitor_type): MON_DDB Added.
1465 (mips_enter_debug, mips_exit_debug, mips_initialize,
1466 mips_fetch_registers, common_breakpoint, mips_load,
1467 _initialize_remote_mips): Updated.
1471 * nlm/configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1472 * nlm/configure: Regenerate.
1474 * gdbserver/configure.in (i[345]86-*-*): Recognize i686 for
1479 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
1480 CY_AC_LOAD_TCLCONFIG.
1481 * configure: Rebuild.
1485 * infrun.c (wait_for_inferior): Initialize stop_func_end before calling
1486 find_pc_partial_function.
1490 * configure: Regenerate again.
1494 * configure.in: work around host_alias configure bug.
1495 AC_CANONICAL_HOST is called twice (first by AC_CHECK_TOOL
1496 and second by AC_CANONICAL_SYSTEM). The second clobbers the
1497 previous setting. Circumventing by moving the second check
1498 to before the first.
1499 * configure: regenerated
1504 * config/d10v/d10v.mt: New file.
1505 * config/d10v/tm-d10v.h: New file.
1506 * configure.in: New target D10V.
1507 * d10v-tdep.c: New file.
1512 * rs6000-tdep.c: Fix typo in comment.
1513 * valops.c (call_function_by_hand): Set using_gcc to 2
1514 for code compiled without -g, per comment in code.
1515 * config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
1516 * config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
1517 * config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
1518 * config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
1519 * config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
1520 * config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1521 (STACK_ALIGN): Add comment, move to be with other associated
1522 macros, and document.
1523 * config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1524 (STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
1525 * config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
1526 * config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
1527 handled by PUSH_ARGUMENTS.
1528 (PUSH_ARGUMENTS): Enclose args in ()'s.
1532 * infrun.c (wait_for_inferior): Try to reenable shared library
1533 breakpoints even if auto_solib_load is not set.
1537 * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
1538 gracefully degrade to using command line interface if none is
1543 * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
1544 PRINTF_HAS_LONG_LONG.
1545 * expprint.c (dump_expression): Ditto.
1546 * configure.in: Fix check for long long support in compiler to
1547 use a function body, not a nested function.
1548 * configure: Rebuild with autoconf.
1552 * aclocal.m4: Include ../bfd/aclocal.m4.
1553 * configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call
1554 BFD_NEED_DECLARATION on malloc, realloc, and free.
1555 * acconfig.h: Add NEED_DECLARATION_MALLOC,
1556 NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
1557 * configure, config.in: Rebuild.
1558 * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
1559 rather than __STDC__. Only declare malloc, realloc, and free if
1560 NEED_DECLARATION_* is defined.
1564 * solib.c (_initialize_solib): Add missing '\' chars at ends of
1565 strings that continue on next line.
1566 (enable_break): Replace "return 0" with setting success to zero
1567 and letting normal return handle the return.
1571 * mips-tdep.c (mips_push_arguments): Make sure sp and struct_addr
1572 are properly aligned.
1576 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
1577 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
1578 to function, declare function correctly.
1582 * symtab.h: changed namespace to _namespace for compiling under
1587 * mpw-make.sed: Update for various recent changes, add some
1590 * mpw-config.in: Fix name of Magic Cap-specific file.
1595 * config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Cast args to be an
1596 integer for type correctness.
1600 * config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
1601 simulator is included.
1605 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
1607 (read_register_pid): Only needed when TARGET_READ_PC is not
1609 * hppa-tdep.c (frame_saved_pc): Remove prototype.
1610 * infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
1612 * config/xm-aix4.h (aix_resizewindow): Convert old style decl
1614 * xcoffsolib.c (command.h): Include for needed prototypes.
1618 * config/i386/cygwin32.mh: Set NAT_FILE to nm-empty.h to make
1624 * hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
1625 than SYMBOL_TYPE on msymbols.
1626 * somsolib.c (som_solib_create_inferior_hook): Ditto.
1628 * Makefile.in (init.c): Generate with prototypes.
1630 * config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
1631 * config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
1632 * config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
1633 (pc_load_segment_name): Ditto.
1635 (extract_return_value): Ditto.
1636 (is_magic_function_pointer): Ditto.
1637 (push_dummy_frame): Ditto.
1638 (fix_call_dummy): Ditto.
1639 (push_arguments): Ditto.
1640 (skip_trampoline_code): Ditto.
1641 (aix_process_linenos): Ditto.
1643 * config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
1644 * config/m68k/tm-es1800.h: Ditto.
1645 * config/m68k/tm-vx68.h: Ditto.
1646 * config/m68k/tm-sun3.h: Ditto.
1647 * config/m68k/tm-m68kv4.h: Ditto.
1651 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
1652 * config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
1653 * remote-mips.c (mips_read_processor_type): Remove prototype.
1654 * mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
1655 * irix5-nat.c (fetch_core_registers): Add prototype.
1659 * remote-pa.c (boot_board): Add dummy params to make type compatible
1660 for passing to add_com.
1661 * scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
1662 * buildsym.c (compare_line_numbers): Change function to match
1663 prototype and also what qsort expects.
1667 * remote.c: Make remote_write_size public.
1668 * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
1669 to prevent packet errors with some versions of CMON.
1673 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
1674 C, else it's `const'.
1675 * c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
1676 scm-lang.c: Microsoft C can't hack const pointers. Use CONST_PTR
1678 * configure configure.in defs.h: Use AC_C_CONST to figure out if
1679 the compiler supports const. Gets rid of some cruft in defs.h.
1680 * dwarf2read.c: <string.h> -> "gdb_string.h"
1681 * remote-sim.c: Add prototypes. Fix call to gdbsim_kill.
1682 * sparcl-tdep.c (download): Add prototypes to write_routine and
1685 * mswin/gdbwin.c: Don't include both varargs.h AND stdarg.h. Get
1686 rid of varargs.h Include string.h.
1687 * (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
1688 update): Fix prototypes, fix calls.
1689 * (update): Return value for catch_errors.
1690 * (run_execute_command togdb_command_from_tty togdb_command):
1691 Cleanup catching of errors from calls to execute_command. Also,
1692 dup command string to avoid modifying const strings.
1693 * (togdb_breakinfo_i_init togdb_breakinfo_i_next): Use 0 instead
1694 of NULL when see if b->address isn't set.
1695 * (bi_disable_bpt bi_enable_bpt bi_delete_all
1696 bi_delete_breakpoint): Add arg to calls to update.
1697 * (gui_command): Add prototype.
1698 * (mswin_query): Fix prototype.
1699 * (_initialize_gdbwin): Dup string to avoid modifying const.
1700 * (info_path togdb_get_info_path): Remove const from decls cuz
1701 this can't be const (it points at malloc'ed memory).
1702 * (togdb_searchpath): Remove const from path. Dup string to
1703 avoid modifying const strings.
1704 * rindex -> strrchr.
1705 * (gdbwin_list_symbols): Regexp param is const.
1706 * Fix lots of refs to psymtabs to deref correct pointers.
1707 * (togdb_set_breakpoint_sal): Call set_breakpoint_sal with sal,
1709 * mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
1710 toget_set_info_path): Fix prototypes to match reality.
1711 * mswin/gui.cpp: Define _beginthreadex and _endthreadex routines
1712 with proper prototypes.
1713 * mswin/iface.cpp (gdbwin_fputs): Define with correct number of args.
1714 * mswin/ser-win32s.c: Fix defs of min and max.
1715 * mswin/serdll32.c (OpenComm16): Make cbInQueue and cbOutQueue be
1717 * (WriteComm16): Change lpBug from LPVOID to LPCSTR.
1718 * mswin/serdll32.h: Fix prototypes for OpenComm16 and WriteComm16.
1722 * main.c (main): Make sure command loop is used with cygwin32.
1723 * terminal.h: Allow cygwin32 to use termios.h.
1725 start-sanitize-gdbtk
1728 * Makefile.in (LIB_INSTALL_DIR): New macro.
1729 (TCL): Include @TCL_LD_SEARCH_FLAGS@.
1734 * somread.c (som_symtab_read): Handle secondary definition
1735 symbols (aka weak symbols).
1737 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
1742 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
1745 * somread.c: Rearrange order of includes to fix warnings under
1746 hpux-10.10. Also don't include sys/file.h.
1750 * dbxread.c: Don't include param.h or sys/file.h.
1751 * (dbx_symfile_read): Determine symfile_relocatable from bfd
1752 flags instead of file extension. Also clean up a little bit.
1756 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
1757 mdebugread.c os9kread.c source.c top.c utils.c: Don't
1758 include param.h or sys/file.h (or unistd.h in some cases).
1759 * defs.h exec.c inflow.c remote-array.c remote-e7000.c
1760 sparcl-tdep.c terminal.h utils.c: Replace all occurances of
1761 __WIN32__, WINGDB, WIN32, etc... with _WIN32.
1762 * main.c: Remove #ifndef WINGDB around option processing. Fix
1763 bug with passing argc==0 and argv==NULL to getopt.
1764 * (main) Remove calls to access() before source_command. Let
1765 soure_command handle access errors.
1766 * maint.c (maintenance_dump_me): #ifdef out for _WIN32.
1767 * symtab.c (operator_chars): Make this global for wingdb.
1768 * top.c (disconnect): #ifdef out for _WIN32.
1769 * (source_command): If got an error and from_tty, then call print
1770 error, else just return quietly.
1771 * utils.c (fatal_dump_core): Can't kill ourselves under windows.
1773 * (pollquit notice_quit): #ifdef out stuff that doesn't exist
1778 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
1779 structures > 4 bytes in size.
1781 * valops.c (call_function_by_hand): Handle aligning stacks that
1783 * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
1784 (STACK_ALIGN): Define.
1785 * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
1786 alignment on structs/unions.
1790 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
1791 which is the documented type under at least AIX 3 and AIX 4.
1795 * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
1797 (MMALLOC_CFLAGS): Define NO_MMCHECK to not install consistency
1800 start-sanitize-gdbtk
1803 * gdbtk.c (mainWindow): Deleted.
1804 (cleanup_init): Don't destroy main window.
1805 (gdbtk_init): Main window now created by Tk_Init.
1807 * configure.in: Most X checks now handled automatically by Tk.
1808 Use new macros to find Tcl/Tk.
1809 * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
1810 * config.in, configure: Regenerated.
1812 * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
1813 X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1818 * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
1819 this, define when contents are included.
1820 (mips_read_processor_type): Add prototype.
1821 * config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
1822 * mdebugread.c (ecoff_relocate_efi): Add prototype.
1823 (fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1825 start-sanitize-gdbtk
1828 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir).
1833 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
1834 (vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
1835 (fetch_core_registers): Add prototype.
1836 (vmap_symtab): Ditto.
1837 (objfile_symbol_add): Ditto.
1839 (vmap_ldinfo): Ditto.
1844 * stabsread.c (get_substring): Declare second arg as int.
1846 * remote-es.c: Include gdb_string.h after defs.h.
1850 * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
1851 (branch_dest): Remove unused variable "offset".
1852 (pop_dummy_frame): Add prototype and make static.
1853 (push_arguments): Guard against using len uninitialized.
1854 (push_arguments): Guard against using arg uninitialized.
1855 (frame_saved_pc): Remove unused variable "frameless".
1856 (free_loadinfo): Ifdef out unused function.
1858 * xcoffread.c (compare_lte): Change prototype and function to
1859 be correct type for passing to qsort.
1860 (add_stab_to_list): Ifdef out unused function and prototype.
1861 (compare_lte): Add prototype
1862 (arrange_linetable): Ditto.
1863 (record_include_begin): Ditto.
1864 (record_include_end): Ditto.
1865 (process_linenos): Ditto.
1866 (xcoff_next_symbol_text): Ditto.
1867 (scan_xcoff_symtab): Ditto.
1868 (xcoff_initial_scan): Ditto.
1870 * mips-tdep.c (mips_read_processor_type): Add parens around
1871 bitwise-and operands in comparison; previous expression always
1872 evaluated to 0 because of equality comparison of two constants.
1874 * rs6000-tdep.c (skip_prologue): Add missing parens around
1875 operands of logical-or so that first operand does not bind
1876 to previous logical-and.
1878 * configure.in: Expand "long long" test to include code that triggers
1879 known problem on HPUX with native compiler.
1880 (configure): Regenerated.
1884 * somsolib.c (som_solib_create_inferior_hook): Don't
1885 warn if __d_pid can't be found.
1889 * config/mips/tm-mips.h (struct frame_info): Forward decl.
1890 (struct type): Ditto.
1891 (struct value): Ditto.
1893 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
1894 from mips-tdep.c to here.
1895 (sigtramp_end): Ditto.
1896 (fixup_sigtramp): Ditto.
1898 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
1899 (mips_frame_chain): Ditto.
1900 (mips_step_skips_delay): Ditto.
1901 (mips_frame_saved_pc): Ditto.
1902 (mips_find_saved_regs): Ditto.
1903 (mips_frame_num_args): Ditto.
1904 (mips_pop_frame): Ditto.
1905 (mips_extract_return_value): Ditto.
1906 (mips_store_return_value): Ditto.
1907 (mips_push_dummy_frame): Ditto.
1908 (mips_push_arguments): Ditto.
1909 (mips_do_registers_info): Ditto.
1910 (ecoff_relocate_efi): Ditto.
1911 (ecoff_relocate_efi): Ditto.
1912 * irix4-nat.c (fetch_core_registers): Add prototype.
1913 * mips-tdep.c (read_next_frame_reg): Add prototype
1914 (heuristic_proc_start): Ditto.
1915 (heuristic_proc_desc): Ditto.
1916 (mips_print_register): Ditto.
1917 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
1918 (procfs_stopped_by_watchpoint): Ditto.
1919 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
1920 (procfs_stopped_by_watchpoint): Ditto.
1921 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
1922 (struct symbol): Add forward decl for prototype.
1924 * breakpoint.c (internal_breakpoint_number): Only needed if
1925 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
1927 * objfiles.c (ecoff_relocate_efi): Remove prototype.
1931 * configure.in: Add test for "long long" support.
1932 * configure: Regenerate with autoconf.
1933 * acconfig.h: Add CC_HAS_LONG_LONG
1934 * config.in: Regenerate with autoheader.
1935 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
1936 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
1937 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
1938 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
1939 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
1940 (PRINTF_HAS_LONG_LONG): Remove.
1941 (FORCE_LONG_LONG): Remove.
1942 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
1943 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
1944 (PRINTF_HAS_LONG_LONG): Remove.
1945 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
1946 (PRINTF_HAS_LONG_LONG): Remove.
1947 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
1948 subtraction inside shift. Put parens around subtraction
1949 in operand of bitwise and.
1950 (struct frame_info): Forward declare
1951 if __STDC__ defined.
1952 (frame_saved_regs): Ditto.
1953 (struct value): Ditto.
1954 (struct type): Ditto.
1955 (struct inferior_status): Ditto.
1956 (init_extra_frame_info): Add prototype.
1957 (skip_prologue): Ditto.
1958 (frameless_function_invocation): Ditto.
1959 (frame_chain): Ditto.
1960 (frame_chain_valid): Ditto.
1961 (saved_pc_after_call): Ditto.
1962 (hppa_fix_call_dummy): Ditto.
1963 (hppa_push_arguments): Ditto.
1964 (pa_do_registers_info): Ditto.
1965 (in_solib_call_trampoline): Ditto.
1966 (in_solib_return_trampoline): Ditto.
1967 (push_dummy_frame): Ditto.
1968 * convex-tdep.c (decout): Use print_longest rather than
1970 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
1972 (INT_MIN): Fix so it works correctly when assigned to a long long.
1973 * valprint.c (longest_to_int): Rewrite to remove dependence
1974 on INT_MIN and INT_MAX.
1975 (print_longest): Rewrite the code that falls back to synthesized
1976 hex output when LONGEST value is not representable as in a long and
1977 printf doesn't support printing long longs.
1978 * ch-valprint.c (chill_val_print): Cast 2nd arg of
1979 chill_print_type_scalar to LONGEST.
1980 chill_print_type_scalar): Make static and add prototype.
1981 * hppa-tdep.c (get_field): Ifdef out unused function.
1984 (extract_5_store): Ditto.
1985 (extract_11): Ditto.
1986 (extract_12): Ditto.
1987 (deposit_17): Ditto.
1988 (extract_14): Convert to static and add prototype.
1989 (deposit_14): Ditto.
1990 (extract_21): Ditto.
1991 (deposit_21): Ditto.
1992 (extract_17): Ditto.
1993 (extract_5r_store): Ditto.
1994 (extract_5R_store): Ditto.
1995 (extract_5_load): Ditto.
1996 (find_proc_framesize): Ditto.
1997 (find_dummy_frame_regs): Ditto.
1998 (sign_extend): Ditto.
1999 (find_unwind_entry): Add prototype.
2000 (find_return_regnum): Ditto.
2001 (unwind_command): Ditto.
2002 (find_dummy_frame_regs): Add parens around subtraction in operand
2004 (skip_prologue): Add parens around operands of logical-and inside
2005 operand of logical-or.
2006 (sign_extend): Add parens around operands of subtraction inside
2008 (low_sign_extend): Ditto.
2009 * top.c (filename_completer): Convert old style decl of
2010 filename_completion_function into prototype.
2011 * f-lang.c (patch_common_entries): Ifdef out unused function.
2012 * stabsread.c (read_cfront_baseclasses): Remove unused local
2013 variable "msg_noterm".
2014 (resolve_cfront_continuation): Remove unused local variable "fip".
2015 (read_type): Remove unused variable xtypenums.
2016 (read_cfront_static_fields): Remove unused variable "i".
2017 (read_cfront_static_fields): Remove unused variable "nfields".
2018 (read_cfront_member_functions): Add missing comment terminator.
2019 (read_cfront_static_fields): Return 1 rather than random value.
2020 (read_cfront_baseclasses): Ditto.
2021 (read_cfront_baseclasses): Ditto.
2022 (read_cfront_baseclasses): Ditto.
2023 * somsolib.c (som_solib_create_inferior_hook): Remove unused
2025 (som_solib_create_inferior_hook): Remove unused variable
2027 (language.h): Add for needed prototypes.
2028 (som_solib_sharedlibrary_command): Add prototype.
2029 * hpread.c: (hpread_read_array_type): Add prototype.
2030 * somread.c (hpread_build_pysmtabs): Add prototype.
2031 (hpread_symfile_finish): Ditto.
2032 (hpread_symfile_init): Ditto.
2033 * hppah-nat.c (fetch_register): Convert old style decl
2035 (gdbcore.h): Include for needed prototypes.
2036 (fetch_register): Remove unused variable "mess".
2037 * remote-pa.c (get_offsets): Ifdef out unused function.
2038 (remote_start_remote): Remove unused variable "timeout".
2039 (boot_board): Add prototype.
2040 (reaad_frame): Add prototype.
2041 (getpkt): Remove unused variable "bp".
2042 (remote_kill): Add prototype.
2043 (remote_mourn): Add prototype.
2044 (remote_insert_breakpoint): Add prototype.
2045 (remote_remove_breakpoint): Add prototype.
2046 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
2047 * infcmd.c (do_registers_info): Only need prototype if
2048 DO_REGISTERS_INFO is not defined.
2049 (breakpoint_auto_delete_contents): Only need if
2050 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
2054 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
2055 (END_PSYMTAB): Ditto.
2056 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
2060 * printcmd.c (_initialize_printcmd): Initialize
2061 tm_print_insn_info.flavour.
2062 start-sanitize-gdbtk
2063 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
2068 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
2069 (arm-tdep.o): Ditto.
2071 (i386ly-tdep.o): Ditto.
2072 (i960-tdep.o): Ditto.
2073 (m68k-tdep.o): Ditto.
2074 (nindy-tdep.o): Ditto.
2075 (scm-lang.o): Ditto.
2076 (w65-tdep.o): Ditto.
2077 (z8k-tdep.o): Ditto.
2078 (m68k-tdep.o): Depends upon value_h and gdb_string.h
2079 (m2-valprint.o): Depends upon m2-lang.h.
2080 (sparc-tdep.o): Depends upon gdb_string.h
2081 (valprint.o): Depends upon valprint.h
2083 * remote-e7000.c (notice_quit): Remove prototype.
2084 * top.c (initialize_targets): Remove prototype, now in target.h.
2085 * stabsread.c (resolve_cfront_continuation): Remove prototype.
2086 * dbxread.c (resolve_cfront_continuation): Remove prototype.
2087 * symfile.h (set_demangling_style): Remove prototype.
2088 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
2089 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
2091 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
2093 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
2094 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
2095 * scm-lang.c (find_function_in_inferior): Remove prototype.
2096 (value_allocate_space_in_inferior): Ditto.
2097 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
2098 * defs.h (strchr): Remove declarations, they are declared in
2104 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
2105 passed to f77_print_array_1.
2106 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
2107 * scm-exp.c (scm_istr2int): Remove unused variable "j".
2108 (scm_parse): Remove unused variable "str".
2109 * hp300ux-nat.c (store_inferior_register): Remove unused variable
2111 (store_inferior_registers): Remove unnecessary decl "registers".
2112 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
2113 * scm-lang.c (scm_get_field): Remove unused variable "val".
2114 (scm_lookup_name): Remove unused variable "symval".
2115 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
2116 * procfs.c (do_attach, do_detach): Remove unused variable "result".
2117 (last_resume_pid): Remove unused static variable.
2118 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
2120 * objfiles.c (map_to_address): Remove unused function.
2121 * f-valprint.c (print_max): Remove extraneous extern decl,
2123 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
2124 * ch-exp.c (write_lower_upper_value): Remove prototype for
2127 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
2128 * ch-exp.c (parse_mode_call): Ditto.
2129 * f-valprint.c (there_is_a_visible_common_named): Ditto.
2130 * f-lang.c (clear_function_list): Ditto.
2131 (get_bf_for_fcn): Ditto.
2132 (clear_bf_list): Ditto.
2133 (add_common_block): Ditto.
2134 (patch_all_commons_by_name): Ditto.
2135 (find_first_common_named): Ditto.
2136 (add_common_entry): Ditto.
2137 (allocate_saved_function_node): Ditto.
2138 (allocate_saved_bf_node): Ditto.
2139 (allocate_common_entry_node): Ditto.
2140 (allocate_saved_f77_common_node): Ditto.
2142 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
2143 * dcache.c (gdbcore.h): Ditto.
2144 * i386ly-tdep.c (gdbcore.h): Ditto.
2145 * i960-tdep.c (gdbcore.h): Ditto.
2146 * m2-valprint.c (m2-lang.h): Ditto.
2147 * m68k-tdep.c (gdbcore.h): Ditto.
2149 (gdb_string.h): Ditto.
2150 * nindy-tdep.c (gdbcore.h): Ditto.
2151 * scm-lang.c (gdbcore.h): Ditto.
2152 * scm-valprint.c (gdbcore.h): Ditto.
2153 * w65-tdep.c (gdbcore.h): Ditto.
2154 * z8k-tdep.c (gdbcore.h): Ditto.
2155 * sparc-tdep.c (gdb_string.h): Include.
2156 * valprint.c (valprint.h): Include.
2158 * config/xm-lynx.h: Remove part of comment about INT_MIN
2159 redefined warnings from defs.h, since INT_MIN define in
2160 defs.h is now protected by #ifndef INT_MIN.
2161 * config/i386/xm-i386bsd.h: Ditto.
2162 * config/m68k/xm-hp300bsd.h: Ditto.
2163 * config/m68k/xm-news.h: Ditto.
2165 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
2166 definition as 0x80000000. The macro in defs.h is better.
2167 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
2168 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
2169 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
2170 * config/pa/xm-hppab.h: Ditto.
2172 * core-aout.c (fetch_core_registers): Add prototype.
2173 * hp300ux-nat.c (fetch_inferior_register): Ditto.
2174 (store_inferior_register_1): Ditto.
2175 (store_inferior_register): Ditto.
2176 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
2177 *scm-valprint.c (c_val_print): Ditto.
2178 * procfs.c (add_fd): Ditto.
2181 (sigcodename): Ditto.
2182 (sigcodedesc): Ditto.
2183 (procfs_kill_inferior): Ditto.
2184 (procfs_xfer_memory): Ditto.
2185 (procfs_store_registers): Ditto.
2186 (create_procinfo): Ditto.
2187 (procfs_init_inferior): Ditto.
2188 (proc_set_exec_trap): Ditto.
2189 (procfs_attach): Ditto.
2190 (procfs_detach): Ditto.
2191 (procfs_prepare_to_store): Ditto.
2192 (procfs_files_info): Ditto.
2193 (procfs_open): Ditto.
2194 (procfs_wait): Ditto.
2195 (procfs_fetch_registers): Ditto.
2196 (procfs_mourn_inferior): Ditto.
2197 (procfs_can_run): Ditto.
2198 (procfs_thread_alive): Ditto.
2199 (procfs_stop): Ditto.
2200 * alpha-nat.c (fetch_core_registers): Ditto.
2201 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
2202 * objfiles.c (ecoff_relocate_efi): Ditto.
2203 * inflow.c (pass_signal): Ditto.
2204 (handle_sigio): Ditto.
2205 * annotate.c (breakpoint_changed): Ditto.
2206 * callback.c (wrap): Ditto.
2209 * utils.c (malloc_botch): Ditto.
2210 (fputs_maybe_filtered): Ditto.
2211 (vfprintf_maybe_filtered): Ditto.
2212 * defs.h (notice_quit): Ditto.
2213 * defs.h (xmalloc, xrealloc): Ditto.
2214 * top.c (stop_sig): Ditto.
2215 (init_signals): Ditto.
2216 (user_defined_command): Ditto.
2217 (source_cleanup_lines): Ditto.
2218 (dont_repeat_command): Ditto.
2219 (serial_log_command): Ditto.
2220 (disconnect): Ditto.
2221 * target.h (initialize_targets): Ditto.
2222 * os9kread.c (read_minimal_symbols): Ditto.
2223 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
2225 (push_parse_stack): Ditto.
2226 (pop_parse_stack): Ditto.
2227 (is_pending_symbol): Ditto.
2228 (add_pending): Ditto.
2229 * serial.c (serial_logchar): Ditto.
2230 (serial_interface_lookup): Ditto.
2231 * serial.h (serial_log_command): Ditto.
2232 * f-valprint.c (info_common_command): Ditto.
2233 * gdbtypes.h (print_type_scalar): Ditto.
2234 * scm-valprint.c (scm_scmlist_print): Ditto.
2236 * scm-lang.c (scm_printstr): Ditto.
2238 (evaluate_subexp_scm): Ditto.
2239 * scm-exp.c (scm_read_token): Ditto.
2240 (scm_skip_ws): Ditto.
2241 (scm_lreadparen): Ditto.
2242 * m2-lang.c (emit_char): Ditto.
2243 (m2_printchar): Ditto.
2244 (m2_printstr): Ditto.
2245 (m2_create_fundamental_type): Ditto.
2246 * f-lang.c (emit_char): Ditto.
2247 (f_printchar): Ditto.
2248 (f_printstr): Ditto.
2249 (f_create_fundamental_type): Ditto.
2250 * ch-lang.c (chill_printchar): Ditto.
2251 (chill_printstr): Ditto.
2252 (chill_create_fundamental_type): Ditto.
2253 (value_chill_length): Ditto.
2254 (value_chill_card): Ditto.
2255 (value_chill_max_min): Ditto.
2256 (evaluate_subexp_chill): Ditto.
2257 * ch-exp.c (PEEK_TOKEN): Ditto.
2258 (peek_token_): Ditto.
2259 (forward_token_): Ditto.
2260 (parse_case_label): Ditto.
2261 (parse_opt_untyped_expr): Ditto.
2262 (parse_unary_call): Ditto.
2263 (parse_call): Ditto.
2264 (parse_named_record_element): Ditto.
2265 (parse_tuple_element): Ditto.
2266 (parse_opt_element_list): Ditto.
2267 (parse_tuple): Ditto.
2268 (parse_primval): Ditto.
2269 (parse_operand6): Ditto.
2270 (parse_operand5): Ditto.
2271 (parse_operand4): Ditto.
2272 (parse_operand3): Ditto.
2273 (parse_operand2): Ditto.
2274 (parse_operand1): Ditto.
2275 (parse_operand0): Ditto.
2276 (parse_expr): Ditto.
2277 (parse_then_alternative): Ditto.
2278 (parse_else_alternative): Ditto.
2279 (parse_if_expression): Ditto.
2280 (parse_untyped_expr): Ditto.
2281 (growbuf_by_size): Ditto.
2282 (match_simple_name_string): Ditto.
2283 (decode_integer_value): Ditto.
2284 (decode_integer_literal): Ditto.
2285 (match_float_literal): Ditto.
2286 (match_float_literal): Ditto.
2287 (match_string_literal): Ditto.
2288 (match_character_literal): Ditto.
2289 (match_integer_literal): Ditto.
2290 (match_bitstring_literal): Ditto.
2291 (write_lower_upper_value): Ditto.
2292 * ch-lang.h (type_lower_upper): Ditto.
2293 * c-lang.c (emit_char): Ditto.
2294 * dwarfread.c (free_utypes): Ditto.
2295 * stabsread.h (resolve_cfront_continuation): Ditto.
2296 * stabsread.c (get_substring): Ditto.
2297 (read_one_struct_field): Ditto.
2298 * stabsread.h (process_later): Ditto.
2299 * demangle.c (set_demangling_command): Ditto.
2300 * defs.h (set_demangling_style): Ditto.
2301 * maint.c (maintenance_info_command): Ditto.
2302 (print_section_table): Ditto.
2303 (maintenance_info_sections): Ditto.
2304 (maintenance_print_command): Ditto.
2305 * symtab.h (maintenance_print_statistics): Ditto.
2306 * objfiles.h (in_plt_section): Ditto.
2307 * objfiles.c (add_to_objfile_sections): Ditto.
2308 * bcache.c (hash): Ditto.
2309 (lookup_cache): Ditto.
2310 * exec.c (bfdsec_to_vmap): Ditto.
2312 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
2313 * language.c (unk_lang_printchar): Ditto.
2314 (unk_lang_printstr): Ditto.
2315 (unk_lang_create_fundamental_type): Ditto.
2316 (unk_lang_print_type): Ditto.
2317 (unk_lang_val_print): Ditto.
2318 (unk_lang_value_print): Ditto.
2319 * target.c (update_current_target): Ditto.
2320 (debug_to_open): Ditto.
2321 (debug_to_close): Ditto.
2322 (debug_to_attach): Ditto.
2323 (debug_to_detach): Ditto.
2324 (debug_to_resume): Ditto.
2325 (debug_to_wait): Ditto.
2326 (debug_to_fetch_registers): Ditto.
2327 (debug_to_store_registers): Ditto.
2328 (debug_to_prepare_to_store): Ditto.
2329 (debug_to_xfer_memory): Ditto.
2330 (debug_to_files_info): Ditto.
2331 (debug_to_insert_breakpoint): Ditto.
2332 (debug_to_remove_breakpoint): Ditto.
2333 (debug_to_terminal_init): Ditto.
2334 (debug_to_terminal_inferior): Ditto.
2335 (debug_to_terminal_ours_for_output): Ditto.
2336 (debug_to_terminal_ours): Ditto.
2337 (debug_to_terminal_info): Ditto.
2338 (debug_to_kill): Ditto.
2339 (debug_to_load): Ditto.
2340 (debug_to_lookup_symbol): Ditto.
2341 (debug_to_create_inferior): Ditto.
2342 (debug_to_mourn_inferior): Ditto.
2343 (debug_to_can_run): Ditto.
2344 (debug_to_notice_signals): Ditto.
2345 (debug_to_thread_alive): Ditto.
2346 (debug_to_stop): Ditto.
2347 start-sanitize-gdbtk
2348 * gdbtk.c (null_routine): Ditto.
2349 (gdbtk_flush): Ditto.
2350 (gdbtk_fputs): Ditto.
2351 (gdbtk_query): Ditto.
2352 (gdbtk_readline): Ditto.
2353 (gdbtk_readline_end): Ditto.
2354 (gdb_get_breakpoint_list): Ditto.
2355 (gdb_get_breakpoint_info): Ditto.
2356 (breakpoint_notify): Ditto.
2357 (gdbtk_create_breakpoint): Ditto.
2358 (gdbtk_delete_breakpoint): Ditto.
2359 (gdbtk_modify_breakpoint): Ditto.
2362 (gdb_sourcelines): Ditto.
2363 (map_arg_registers): Ditto.
2364 (get_register_name): Ditto.
2365 (gdb_regnames): Ditto.
2366 (get_register): Ditto.
2367 (gdb_fetch_registers): Ditto.
2368 (register_changed_p): Ditto.
2369 (gdb_changed_register_list): Ditto.
2371 (call_wrapper): Ditto.
2372 (gdb_listfiles): Ditto.
2374 (gdbtk_dis_asm_read_memory): Ditto.
2375 (compare_lines): Ditto.
2376 (gdb_disassemble): Ditto.
2377 (tk_command): Ditto.
2378 (cleanup_init): Ditto.
2379 (gdbtk_interactive): Ditto.
2381 (gdbtk_wait): Ditto.
2382 (gdbtk_call_command): Ditto.
2383 (tk_command_loop): Ditto.
2384 (gdbtk_init): Ditto.
2386 * breakpoint.h (set_breakpoint_sal): Ditto.
2387 * remote-utils.c (usage): Ditto.
2388 * remote.c (set_thread): Ditto.
2389 (remote_thread_alive): Ditto.
2390 (get_offsets): Ditto.
2391 (read_frame): Ditto.
2392 (remote_insert_breakpoint): Ditto.
2393 (remote_remove_breakpoint): Ditto.
2394 * sparc-nat.c (fetch_core_registers): Ditto.
2395 * corelow.c (add_to_thread_list): Ditto.
2397 * inftarg.c (proc_wait): Ditto.
2398 * infptrace.c (udot_info): Ditto.
2399 (fetch_register): Ditto.
2400 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
2401 (hardwire_print_tty_state): Ditto.
2402 (hardwire_flush_output): Ditto.
2403 (hardwire_flush_input): Ditto.
2404 (hardwire_send_break): Ditto.
2405 (hardwire_setstopbits): Ditto.
2406 * ser-tcp.c (tcp_return_0): Ditto.
2407 (tcp_noflush_set_tty_state): Ditto.
2408 (tcp_print_tty_state): Ditto.
2409 * solib.c (match_main): Ditto.
2410 * gdbtypes.c (print_bit_vector): Ditto.
2411 (print_arg_types): Ditto.
2412 (dump_fn_fieldlists): Ditto.
2413 (print_cplus_stuff): Ditto.
2414 * symfile.h (entry_point_address): Ditto.
2415 * symfile.c (decrement_reading_symtab): Ditto.
2416 * valops.c (value_arg_coerce): Ditto.
2417 * value.h (find_function_in_inferior): Ditto.
2418 (value_allocate_space_in_inferior): Ditto.
2419 * values.c (vb_match): Ditto.
2420 * thread.c (info_thread_command): Ditto.
2421 (restore_current_thread): Ditto.
2422 (thread_apply_all_command): Ditto.
2423 (thread_apply_command): Ditto.
2424 * inferior.h (write_pc_pid): Ditto.
2425 * infrun.c (delete_breakpoint_current_contents): Ditto.
2426 * breakpoint.c (print_it_normal): Ditto.
2427 (watchpoint_check): Ditto.
2428 (print_it_done): Ditto.
2429 (print_it_noop): Ditto.
2430 (maintenance_info_breakpoints): Ditto.
2431 (create_longjmp_breakpoint): Ditto.
2432 (hbreak_command): Ditto.
2433 (thbreak_command): Ditto.
2434 (watch_commnd_1): Ditto.
2435 (rwatch_command): Ditto.
2436 (awatch_command): Ditto.
2437 (do_enable_breakpoint): Ditto.
2438 * ch-valprint.c (chill_val_print_array_elements): Ditto.
2439 * eval.c (evaluate_subexp): Ditto.
2441 (evaluate_struct_tuple): Ditto.
2442 * eval.c (init_array_element): Ditto.
2444 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
2445 * breakpoint.c (hw_breakpoint_used_count): Ditto.
2446 (hw_watchpoint_used_count): Ditto.
2447 * findvar.c (write_register_gen): Ditto.
2448 (read_register_pid): Ditto.
2449 * symtab.c (cplusplus_hint): Ditto.
2450 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
2451 * ch-valprint.c (chill_print_type_scalar): Ditto.
2452 * gdbtypes.c (add_name): Ditto.
2453 (add_mangled_type): Ditto.
2454 (cfront_mangle_name): Ditto.
2455 * sparc-tdep.c (isbranch): Ditto.
2456 * inftarg.c (child_stop): Ditto.
2457 * win32-nat.c (child_stop): Ditto.
2458 * mac-nat.c (child_stop): Ditto.
2459 * remote-utils.c (sr_com): Ditto.
2460 * dbxread.c (process_now): Ditto.
2461 * ch-exp.c (require): Ditto.
2462 (check_token): Ditto.
2464 (parse_mode_call): Ditto.
2465 (parse_mode_or_normal_call): Ditto.
2466 * scm-lang.c (scm_lookup_name): Ditto
2467 * f-lang.c (allocate_saved_bf_node): Ditto.
2468 (allocate_saved_function_node): Ditto.
2469 (allocate_saved_f77_common_node): Ditto.
2470 (allocate_common_entry_node): Ditto.
2471 (add_common_block): Ditto.
2472 (add_common_entry): Ditto.
2473 (find_first_common_named): Ditto.
2474 (patch_common_entries): Ditto.
2475 (patch_all_commons_by_name): Ditto.
2476 (clear_bf_list): Ditto.
2477 (get_bf_for_fcn): Ditto.
2478 (clear_function_list): Ditto.
2479 * scm-exp.c (scm_istr2int): Ditto.
2480 (scm_istring2number): Ditto.
2481 * scm-valprint.c (scm_inferior_print): Ditto.
2482 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
2483 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
2484 (f77_create_arrayprint_offset_tbl): Ditto.
2485 (f77_print_array_1): Ditto.
2486 (f77_print_array): Ditto.
2487 (list_all_visible_commons): Ditto.
2488 (there_is_a_visible_common_named): Ditto.
2489 * mdebugread.c (ecoff_relocate_efi): Ditto.
2490 * callback.c (os_close): Ditto.
2491 (os_get_errno): Ditto.
2496 (os_read_stdin): Ditto.
2498 (os_write_stdout): Ditto.
2503 (os_shutdown): Ditto.
2505 (os_printf_filtered): Ditto.
2507 * scm-lang.h (scm_parse): Change old style decl to prototype.
2508 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
2509 * top.c (init_proc): Ditto.
2510 (query_hook): Ditto.
2511 (error_hook): Ditto.
2512 * f-lang.c (c_value_print): Ditto.
2513 * ch-exp.c (parse_expression): Ditto.
2514 (parse_primval): Ditto.
2515 (parse_untyped_expr): Ditto.
2516 (parse_opt_untyped_expr): Ditto.
2518 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
2519 (sparc_frame_saved_pc): Ditto.
2520 (sparc_push_dummy_frame): Ditto.
2521 (sparc_pop_frame): Ditto.
2522 * defs.h (fclose): Ditto.
2524 (error_hook): Ditto.
2526 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
2527 * rs6000-tdep.c (single_step): Ditto.
2528 * sparc-tdep.c (single_step): Ditto.
2530 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
2531 to PTR which is what make_cleanup expects.
2532 * utils.c (null_cleanup): Change arg type to PTR.
2533 * defs.h (null_cleanup): Change prototype to match actual function.
2534 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
2535 * ch-valprint.c (chill_val_print): Cast 2nd arg of
2536 chill_print_type_scalar to LONGEST.
2537 * infrun.c (wait_for_inferior): Have empty switch case for
2538 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
2539 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
2540 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
2542 * symfile.c (generic_load): Scan long int using a long int spec,
2544 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
2546 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
2548 * inflow.c (handle_sigio): Only need prototype when the actual
2549 function is compiled in.
2550 * valprint.c (longest_to_int): Expand error message to be
2551 separate messages for args larger than largest signed int
2552 and args smaller than smallest signed int.
2553 * valprint.c (print_longest): Fix problems with support for case
2554 where compiler supports type "long long" but the runtime doesn't
2555 support printing them with "%ll".
2556 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
2557 return types to void since we don't actually return anything
2558 meaningful and callees ignore the values anyway.
2559 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
2561 (modify_run_on_last_close_flag): Ditto.
2562 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
2564 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
2566 * infrun.c (wait_for_inferior): Ensure random_signal is not used
2568 * valops.c (call_function_by_hand): Ensure struct_addr is not used
2570 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
2572 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
2574 start-sanitize-gdbtk
2575 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
2576 to proper pointer type, from int.
2577 (gdbtk_query): Change first arg to "const char *" from "char *".
2579 * infptrace.c (udot_info): Add two dummy args so that the type is
2580 correct for passing to add_info.
2581 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
2583 (saved_bf_symnum): Ditto.
2584 (SAVED_FUNCTION): Ditto.
2585 (SAVED_FUNCTION_PTR): Ditto.
2587 (SAVED_BF_PTR): Ditto.
2588 * ch-exp.c (parse_named_record_element): Build error message in
2589 temporary buffer before passing it to expect, rather than passing
2590 wrong number of args to expect.
2591 * demangle.c (set_demangling_style): Call set_demangling_command with
2592 correct number of arguments.
2593 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
2594 int to match actual function.
2595 (os_isatty): Call fdmap with right number of arguments, was missing
2596 the host_callback* arg.
2597 * target.c (cleanup_target): Prototype all functions casts.
2598 * target.h (one_stepped, single_step): Declare here and convert
2599 single_step to prototype.
2600 * infrun.c (one_stepped, single_step): Don't declare externs
2601 here, they have moved to target.h.
2602 * eval.c (init_array_element): Declare previously undeclared
2603 last two args as LONGEST.
2604 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
2605 start-sanitize-gdbtk
2606 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
2611 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
2615 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
2616 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
2617 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
2618 text address. Use a seperate flag (textlow_not_set) instead.
2619 This makes stabs in ELF .o files work a lot better.
2620 * mdebugread.c xcoffread.c: Define textlow_not_set for
2622 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
2624 start-sanitize-gdbtk
2627 * gdbtk.tcl (files_command): Reorder the binding tags for
2628 the listbox widget to avoid referencing the listbox after
2629 the containing widget has been destroyed by the action of
2635 * dwarf2read.c (struct filenames): Change internal "struct file"
2636 to "struct fileinfo" to avoid conflict with "struct file" in
2637 <sys/file.h> on HPUX and Solaris.
2639 start-sanitize-gdbtk
2642 * gdbtk.tcl (delete_expr): Unset corresponding element of
2643 expr_update_list when destroying an expression.
2644 (create_expr_window): Initialize expr_num, delete_expr_num,
2645 and expr_update_list here when each new expression window
2646 is created, rather than once at startup.
2651 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
2652 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
2653 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
2654 (SFILES): Add dwarf2read.c.
2655 (dwarf2read.o): Add build rule.
2656 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
2658 * elfread.c (elf_symfile_read): Call them.
2659 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
2663 * symfile.c (symfile_bfd_open):
2664 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
2665 free the user from having to type the .exe extension.
2669 * mon960-rom.c: Shorten the mon960_inits string to a single
2670 carriage return; this prevents a hang on connecting immediately
2671 after powerup, when MON960 is attempting autobaud detection.
2675 * a29k-tdep.c (get_saved_register): Allow PC to be modified
2676 when innermost frame is selected, but not in outer frames.
2680 * command.c (do_setshow_command): Don't segfault when showing
2681 var_string and var_string_noescape vars that are NULL.
2685 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
2686 cygwin32_conv_to_posix_path.
2687 (child_create_inferior): unix_path_to_dos_path renamed to
2688 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
2692 * defs.h printcmd.c: Create global disassemble_info structure
2694 start-sanitize-gdbtk
2695 * gdbtk.c (gdb_disassemble): Setup di.mach from
2696 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
2698 * i386-tdep.c (set_assembly_language_command): set
2699 tm_print_insn_info.mach to the appropriate value for 386 or 8086
2701 * printcmd.c (print_insn): Move init of disassembler_info to
2702 _initialize_printcmd. Set endian for disassembler here.
2703 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
2704 select sparc/sparclite.
2705 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
2706 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
2707 bfd_mach_sparc/bfd_mach_sparc_sparclite.
2711 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
2712 than xmalloc/xrealloc.
2716 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
2717 a NULL pointer, not a -1.
2721 * i386-tdep.c (set_assembly_language_command): New routine to
2722 select between i386 and i8086 instruction sets for disassembly.
2723 New command `set assembly-language {i386 i8086}'.
2727 * monitor.c (monitor_write_memory, monitor_read_memory_single):
2728 Disable use of "long long" memory read/write commands; can't
2729 use them because we hold the values to read/write in an int
2730 variable, and because strtoul fails on values that exceed the
2731 size of a long. This fixes breakpoint problems on MON960.
2735 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
2736 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
2740 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
2741 and MMALLOC_CHECK macros, and add comment indicating how host dependent
2742 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
2743 to use it but to not do heap corruption checking.
2744 * gdbserver/Makefile.in: Ditto.
2745 * utils.c (init_malloc): Replace warning() use with direct call of
2746 fprintf_unfiltered, since current_target has not yet been set and thus
2747 we cannot use warning(). If we try to use mmcheck and it fails,
2748 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
2749 defined. Other small mmalloc related cleanups.
2750 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
2751 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
2753 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2754 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2755 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2756 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2757 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
2758 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2759 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2760 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
2761 Remove obsolete defines.
2763 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
2764 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
2765 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
2766 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
2767 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
2768 * config/powerpc/aix.mh (MMALLOC_DISABLE):
2769 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
2770 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
2771 * config/mips/decstation.mh (MMALLOC_DISABLE):
2772 * config/m88k/cxux.mh (MMALLOC_DISABLE):
2773 * config/i386/i386mk.mh (MMALLOC_DISABLE):
2774 * config/i386/i386m3.mh (MMALLOC_DISABLE):
2775 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
2776 Use MMALLOC_CFLAGS instead.
2780 * h8300-tdep.c: Remove some outdated comments.
2781 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
2782 Handle stm.l insns for the H8/S.
2783 (examine_prologue): Likewise.
2787 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
2791 * mon960-rom.c (mon960_open): Add floating point detection to
2792 prevent hang on non-FPU processors (PR 9775).
2793 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
2794 setting breakpoints and improve loading speed.
2798 * coffread.c (record_minimal_symbol): Don't presave name string
2799 on symbol_obstack before passing to prim_record_minimal_symbol.
2800 It now handles saving the string itself.
2801 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
2802 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
2803 * os9kread.c (record_minimal_symbol): Ditto.
2804 * solib.c (solib_add_common_symbols): Ditto.
2806 * coffread.c (coff_symtab_read): Don't presave name string on
2807 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
2808 It now handles saving the string itself.
2809 * dbxread.c (record_minimal_symbol): Ditto.
2810 * elfread.c (record_minimal_symbol_and_info): Ditto.
2812 * dstread.c (record_minimal_symbol): Remove static function that just
2813 called prim_record_minimal_symbol with the same args (after change to
2814 prim_record_minimal_symbol to do it's own name string saves).
2815 * nlmread.c (record_minimal_symbol): Ditto.
2816 * somread.c (record_minimal_symbol): Ditto.
2818 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
2819 (hpread_read_function_type): Ditto.
2820 (hpread_process_one_debug_symbol): Ditto.
2821 * mdebugread.c (parse_symbol): Ditto.
2822 (new_symbol): Ditto.
2823 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
2825 * coffread.c (process_coff_symbol): Use obsavestring to save
2826 SYMBOL_NAME, rather than obstack_copy0.
2827 * dstread.c (create_new_symbol): Ditto
2828 * symfile.c (obconcat): Ditto.
2829 * stabsread.c (patch_block_stabs): Ditto.
2830 * xcoffread.c (SYMNAME_ALLOC): Ditto.
2832 * symfile.c (obsavestring): Update comments
2833 * solib.c (solib_add_common_symbols): Remove local var origname.
2837 * configure: Re-build with autoconf-2.10.
2839 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
2840 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
2841 TM_PRINT_INSN, which comes from the tm file.
2845 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
2846 os9kread.c: Replace identical sym_offsets functions with
2847 default_symfile_offsets.
2848 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
2849 macro to allocate section_offsets.
2850 * symfile.c (default_symfile_offsets): New function.
2851 * symfile.h: Declare default_symfile_offsets.
2852 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
2853 simplify allocation of section_offsets.
2857 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
2858 * configure configure.in: Only make sol-thread.o for native.
2859 Also, switch to dlopened libthread_db.so.1.
2860 * sol-thread.c: Switch to using dlopen to get the thread_db
2865 * configure, configure.in: Change test for libthread_db to only
2866 work for configs where build/host/target are the same.
2870 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
2873 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
2875 * configure: Regenerate.
2880 * mpw-make.sed: Add lines to whack out autoconf hook
2885 * remote-e7000.c (e7000_stop): New function.
2889 * configure, configure.in: Add target sparclet.
2890 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
2891 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
2892 command to start process running on target is different from one
2893 to continue execution), MO_HEX_PREFIX (if addresses from monitor
2894 have a "0x" prefix).
2895 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
2896 registers array. This is to allow NULLs to be place holders in
2897 the tm-*.h file so that only minor changes are needed when a new
2898 processor is introduced (eg, one without floating point).
2899 * sparc-tdep.c: Conditionally remove dependancies on floating
2901 * sparclet-rom.c, config/sparc/sparclet.mt,
2902 config/sparc/tm-sparclet.h: New files for target sparclet.
2903 * symfile.c (load_command): Add option for 2nd parameter; a load
2904 offset added to the vma of each section.
2908 * main.c (main): Add option "l" for setting remote_timeout.
2912 * remote-e7000.c, remote.c, target.h, top.c: Add set option
2913 "remote_timeout" for setting remote_timeout. Add set option
2914 "use_hard_breakpoints" for setting hardware .vs. memory
2919 * remote-e7000.c (e7000_parse_device): New function.
2920 Add option "tcp_remote" to target command if using
2921 tcp to connect to a remote host which is then connected
2922 via serial port to the e7000 (for exampole, a port master).
2923 (e7000_open): Change to call e7000_parse_device.
2927 * monitor.c (monitor_debug): Fix remotedebug buffering.
2931 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
2932 (NATDEPFILES): Add a space.
2936 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
2937 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
2939 * ch-exp.c (calculate_array_length): Function removed.
2943 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
2944 (e7000_xfer_inferior_memory): Call it.
2948 * gdb/gdbserver/Makefile.in (docdir): Removed.
2952 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2953 Use autoconf set values.
2955 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2956 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
2957 includedir): Use autoconf set values.
2959 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
2960 * nlm/configure: Rebuilt.
2961 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
2965 * stabsread.c (read_cfront_member_functions): add type
2969 * win32-nat.c: #include <unistd.h>.
2970 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
2971 (child_create_inferior): Convert only env var PATH to win32 style.
2972 (set_pathstyle_dos): Delete.
2973 (_initialize_inftarg): Delete dos-path-style command.
2975 start-sanitize-gdbtk
2978 * gdbtk.tcl (create_register_windows): Include missing '$'s.
2979 Add global declarations for various reg_format_* variables.
2980 * gdbtk.tcl (populate_register_window): Make initial window one
2981 line taller to account for new column header line.
2985 * gdbtk.c (get_register): Support for printing raw formats.
2986 * gdbtk.tcl: Add hint for using debug_interface.
2987 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
2988 Enclose arg in braces for consistency.
2989 (create_registers_window, populate_reg_window, update_registers):
2990 Major rewrite to support displaying multiple formats in the register
2992 (init_reg_info): New function.
2993 (recompute_reg_display_list): Reset reg_display_list, start
2994 register display lines at line 2.
2999 * configure.in: Revise sol-thread.o test.
3000 * configure: Regenerated.
3002 * source.c (find_source_lines): Reassign size to result of read.
3004 start-sanitize-gdbtk
3007 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
3008 avoid backing up over prompt. At every input, make sure insert
3009 point is at least after command start, handle control-u to delete
3011 (tclsh): Handle backspace to avoid backing up over prompt. Handle
3012 control-u to delete current input line.
3016 * configure.in: disable gdbtk for *cygwin32* hosted compiles
3017 * configure: regenerated with autoconf 2.8
3022 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
3023 (h8300_command): Likewise.
3024 (set_machine): Likewise.
3025 (set_machine_hook): Likewise.
3026 (_initialize_h8300m): Likewise.
3028 * config/h8300/tm-h8300.h (h8300smode): Declare.
3032 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
3033 of shl_load calls for hpux10.
3037 * config.in: Regenerated.
3038 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
3040 * configure: Regenerated.
3041 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
3042 avoid name clashes with SunOS headers.
3047 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
3048 exception if one or more objfile has no symbols, such as when
3049 a dynamic library has been stripped.
3053 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
3054 * configure configure.in: Only make sol-thread.o for native.
3055 Also, switch to dlopened libthread_db.so.1.
3056 * sol-thread.c: Switch to using dlopen to get the thread_db
3061 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
3062 Change from 0xE0000000 to 0xC0000000.
3066 * config/powerpc/xm-solaris.h: Initial version of support for
3071 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
3073 * configure: Rebuild.
3075 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
3076 little-endian builds.
3080 * inftarg.c (child_thread_alive): Protect declaration with
3081 #ifndef CHILD_THREAD_ALIVE.
3083 * source.c (find_source_lines): Check the time on the symtab's bfd if
3084 it exists, else check the time on the exec_bfd.
3088 * dsrec.c (make_srec): Fix calculation of address size
3089 to allow addresses less than 0x100.
3093 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
3097 * remote-mips.c: cannot use EINVAL for breakpoint test since
3098 its value varies for different hosts (e.g. go32's is 19, while
3099 sunos is 22). Changed to hardcoded 22 since that is what the
3104 * configure: Regenerated.
3105 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
3106 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
3110 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
3111 (_initialize_solib): Add set/show commands for those variables.
3112 (solib_map_sections): Implement searching using them.
3118 * NEWS: Add Alpha Linux as a new native configuration.
3120 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
3121 return type VOID, assume no debugging info is available for that
3122 object file and patch the return value into VOID *. Otherwise,
3123 operations requiring an implicit call to malloc() will fail.
3125 * infrun.c (wait_for_inferior): The criterion to detect entering a
3126 sigtramp handler is now: (a) the current pc is inside a sigtramp
3127 handler, (b) the previous pc is not in a sigtramp handler, and (c)
3128 the current stack pointer is "inner" than the old one. Condition
3129 (c) is new to avoid mistaking a return from a signal handler into
3130 sigtramp as a new sigtramp invocation.
3132 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
3133 int may not be big enough to hold an address.
3134 (dcache_hit): Ditto.
3135 (dcache_peek_byte): Fix indentation.
3137 * configure.in (alpha-*-linux*): Add target.
3138 * configure: Rebuild
3140 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
3141 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
3142 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
3143 (SIGCONTEXT_ADDR): Ditto.
3144 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
3146 * config/alpha/alpha-linux.mh: New file.
3147 * config/alpha/alpha-linux.mt: Ditto.
3148 * config/alpha/nm-linux.h: Ditto.
3149 * config/alpha/tm-alphalinux.h: Ditto.
3150 * config/alpha/xm-alphalinux.h: Ditto.
3151 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
3152 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
3154 * config/alpha/alpha-osf2.mh: Ditto.
3156 * blockframe.c (find_pc_partial_function): Pass PC to
3157 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
3158 that detect sigtramp code via designated code sequences (as is the
3159 case for Linux/Alpha, for example).
3161 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
3162 to ignore new PC argument.
3163 * config/m68k/tm-hp300bsd.h: Ditto.
3164 * config/vax/tm-vax.h: Ditto.
3166 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
3167 (alpha_osf_skip_sigtramp_frame): Ditto.
3168 (push_sigtramp_desc): Ditto.
3169 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
3170 sigcontext address from frame.
3171 (alpha_saved_pc_after_call): When in sigtramp, use
3172 alpha_frame_saved_pc() instead of read-register().
3173 (after_prologue): When inside a dynamically generated sigtramp
3174 function, there is no prologue, so return address of first
3176 (alpha_in_prologue): Fix typo in comment.
3177 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
3178 whether we're inside a dynamicaly generated sigtramp function. If
3179 so, create and push and appropriate procedure descriptor.
3180 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
3181 the frame past a sigtramp frame (if the current frame is indeed a
3183 (init_extra_frame_info): Don't read next frame register off of
3184 stack-pointer when inside a dynamiccaly generated sigtramp.
3185 (alpha_pop_frame): Also unlink and destroy procedure descriptors
3186 created for dynamically generated sigtramp functions.
3188 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
3189 <alpha/ptrace.h> instead of <machine/reg.h>
3193 * gnu-nat.c (inf_validate_task_sc):
3194 Give terminal to gdb while asking question.
3195 (inf_resume): Don't validate the task suspend-count while execing.
3199 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
3200 additional suspend count.
3201 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
3202 (inf_resume): Call inf_validate_task_sc here.
3203 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
3207 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
3211 * h8300-tdep.c (IS_PUSH): Refine.
3212 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
3213 (IS_SUB4_SP, IS_SUBL_SP): New macros.
3214 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
3215 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
3216 when in H8/300H mode. Get the return pointer's address correctly
3217 for the H8/300H. Handle H8/300H prolouge code sequences.
3219 * symfile.c (generic_load): Print the starting address
3220 of the file just loaded.
3224 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
3228 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
3229 if a `source' command is contained in bs->commands.
3231 * infrun.c (wait_for_inferior): Update step_frame_address when
3232 stepping into a new line.
3235 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
3240 * dsrec.c (load_srec): Add WAITACK parameter, for machines
3241 like EST visionICE that send back an ACK after each S-record.
3242 * monitor.c (monitor_wait_srec_ack): New function.
3243 (monitor_load): Pass monitor_wait_srec_ack to load_srec
3244 if the monitor's MO_SREC_ACK flag is set.
3245 * monitor.h: Define MO_SREC_ACK flag.
3246 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
3247 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
3248 * srec.h: Add WAITACK parameter to load_srec prototype.
3250 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
3252 * config/sparc/sparclite.mt: Add the sparc simulator.
3256 * defs.h (read_command_lines, query_hook): Update prototypes.
3257 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
3258 * breakpoint.c (commands_command): Build message in temporary buffer
3259 and pass that, as well as tty control flag, to read_command_lines.
3260 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
3262 (command_loop): Check for non-NULL instream before looping.
3263 (command_line_input): Use readline_hook when appropriate, to get
3264 user input from a GUI window.
3265 (read_next_line): Also build prompt if getting user input from a GUI.
3266 (recurse_read_control_structure): Fix typo in comment.
3267 (read_command_lines): Use passed in prompt and tty flag to decide how
3268 to build message. Use readline_begin_hook when appropriate, to set
3269 up a GUI interaction window. Just return head, whether NULL or not,
3270 after using readline_end_hook to complete GUI interaction.
3271 (define_command, document_command): Build message in a temporary
3272 buffer and pass it to read_command_lines, along with tty flag.
3274 start-sanitize-gdbtk
3275 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
3277 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
3278 (gdbtk_init): Set readline_begin_hook, readline_hook,
3279 and readline_end_hook.
3280 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
3281 gdbtk_tcl_readline_end): New functions.
3282 (tclsh): Pack scroll bar on right side of window, not left.
3287 * blockframe.c (frameless_look_for_prologue):
3288 Add FUNCTION_START_OFFSET only if func_start is non-zero.
3289 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
3290 pc is not in a known section.
3291 * stack.c (print_frame_info): Remove check for fi->pc in known
3292 section, now handled by lookup_minimal_symbol_by_pc.
3294 start-sanitize-gdbtk
3297 * gdbtk.tcl (create_command_window): Change a misspelled "get"
3298 to the intended "cget".
3299 (delete_line): Fix so it deletes the current line at the
3305 * sh-stub.c: New file, was config/sh/stub.c.
3307 start-sanitize-gdbtk
3310 * gdbtk.tcl (gdb_prompt): Set this early on.
3311 (create_command_window): Use gdb_prompt rather than "(gdb) ".
3312 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
3313 (tclsh): If an evaluation window already exists, just bring it
3314 to the front instead of trying to create another.
3315 * gdbtk.c (tk_command_loop): New function.
3316 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
3320 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
3321 implement a tcl evaluation window for gdbtk maintainers to use.
3325 * gdbtk.tcl (files_command): Correctly insert list of files into
3328 * gdbtk.tcl (files_command): listbox command no longer accepts
3333 * gdbtk.tcl (create_command_window): If command window's buffer
3334 is disabled, don't execute any of the key bindings.
3339 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
3341 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
3343 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
3344 Flush cached frames just before exiting.
3345 * remote-sim.c (gdbsim_resume): Complain if the program isn't
3347 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
3351 * procfs.c (procfs_thread_alive procfs_stop): Make static.
3352 (procfs_pid_to_str): New routine to print out thread id's in an
3353 intelligible manner.
3354 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
3355 which supply_register is called to fix bug with writing
3357 * config/sparc/tm-sun4sol2.h: Define default for
3358 target_pid_to_str in case host lacks libthread_db.
3362 * Makefile.in config.in configure configure.in
3363 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
3364 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
3365 and pthread support, since pre-2.5 systems don't come with
3368 * procfs.c (info_proc): Use int instead of id_t. Old versions of
3369 Irix don't seem to define this.
3371 start-sanitize-gdbtk
3374 * gdbtk.c (tk_command): Catch case where no argument is given
3375 since this will cause the tcl interpreter to dump core.
3380 * top.c (execute_control_command, case while_control): Allow
3381 a while command to be interrupted.
3385 * sol-thread.c: More cleanup, add comments.
3386 (sol_thread_resume): Prevent people from trying to step
3388 (sol_thread_wait sol_thread_fetch_registers
3389 sol_thread_store_registers): Remove unnecessary check for
3390 sol_thread_active. These routines won't get called unless threads
3396 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
3398 (sh3e_reg_names): New register name array.
3399 (sh_processor_type_table): Add sh3e processor type.
3400 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
3401 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
3402 full set of registers.
3403 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
3404 (e7000_fetch_registers, e7000_wait): Use them.
3405 * sh3-rom.c (sh3_regnames): Add float registers.
3406 (sh3e_cmds, sh3e_ops): New globals.
3407 (sh3e_open): New function.
3408 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
3413 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
3414 Print out messages instead of codes for thread_db errors. Make
3415 access macros for thread and lwp manipulation. Make cleanups to
3416 fixup inferior_pid in case of errors.
3420 * aclocal.m4: Remove unused definition of AC_C_CROSS.
3421 * configure.in: Add powerpcle-*-solaris* host and target config
3422 so April 30th change does not get lost next time configure is
3427 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
3428 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
3429 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
3430 avoid conflict with Solaris /usr/include/thread.h.
3434 * abug-rom.c: Config file for the older style ABug monitor that
3435 runs on the mvme13x boards.
3436 * config/m68k/monitor.mt: Add abug support for m68k cross
3441 * infcmd.c (do_registers_info): Always print the raw floating
3442 point value's bytes in big endian order, so the the leftmost bit
3443 is the most significant.
3444 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
3445 that is referenced nowhere else.
3446 (set_breakpoint): Ditto.
3447 (do_enable_breakpoint): Created from enable_once_breakpoint
3448 with a couple of changes.
3449 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
3450 bpdisp enum value to set disposition of breakpoint.
3451 (enable_once_breakpoint): Ditto.
3452 (enable_delete_breakpoint): Ditto.
3453 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
3454 * symtab.c (find_pc_line): Improve comments.
3455 start-sanitize-gdbtk
3456 * gdbtk.c: Fix a couple of misspellings.
3458 * xcoffread.c: Ditto.
3462 * target.c (debug_to_xfer_memory): Insert line breaks when
3463 dumping the memory block.
3467 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
3468 returns a possibly modified pid.
3469 * inftarg.c (ptrace_him): Now returns pid;
3470 * m3-nat.c (m3_trace_him): Now returns pid;
3471 * infcmd.c (run_command): Minor cleanup.
3472 * infrun.c (wait_for_inferior): Add another check for one_stepped
3473 near where we read the pc to avoid erroneously setting
3474 random_signal for multi-threaded support.
3475 * procfs.c: Add support for Solaris LWPs. Remove def of
3476 LOSING_POLL. Many cleanups... Several workarounds for Solaris
3477 lossage. System call entry and exit are now handled by
3478 dynamically registered handlers.
3479 * (syscallname): Don't barf when handed an unknown syscall
3481 * (info_proc_syscalls): Ditto.
3482 * sol-thread.c: New file. Implements Solaris thread support.
3483 * symfile.c (symbol_file_add): Add call to target_new_objfile to
3484 notify target-dependent code about new symbol tables.
3485 * (clear_symtab_users): Call target_new_objfile to notify it of
3486 the removal of all symbol tables.
3487 * target.c (push_target): Make sure that to_close is non-zero
3489 * target.h (target_new_objfile): Provide default.
3490 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
3491 of OSF can't hack using poll with /proc.
3492 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
3493 sol-thread-new-objfile.
3494 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
3495 add libthread_db.so.1 to NAT_CLIBS.
3496 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
3501 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
3502 removal of the requested fd.
3506 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
3509 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
3511 start-sanitize-gdbtk
3514 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
3515 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
3516 (file_popup_menu): Delete, never used.
3517 (listing_window_popup): Rename from listing_window_button_1,
3518 remove breakpoint toggling code.
3519 (toggle_breakpoint): New procedure.
3520 (create_file_win): Bind popup menu to button 2, toggle breakpoints
3521 with button 1 in breakpoint area, add display of tagged areas if
3528 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
3529 * breakpoint.c (insert_breakpoints, watchpoint_check,
3530 bpstat_stop_status): Avoid bad references to memory freed via
3531 delete_breakpoint on watchpoints going out of scope.
3532 Do not delete these watchpoints, disable them and change their
3533 disposition to del_at_next_stop instead.
3534 (breakpoint_auto_delete): Delete all breakpoints whose disposition
3535 is del_at_next_stop.
3536 (breakpoint_init_inferior): Use switch to avoid reference to
3537 already deleted breakpoint.
3541 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
3542 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
3543 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
3544 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
3545 (solib_info): Call xcoff_relocate_symtab via the hook.
3546 (sharedlibrary_command): Ditto.
3547 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
3548 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
3549 (xcoff_init_loadinfo_hook): Define and initialize here.
3550 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
3551 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
3552 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
3553 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
3554 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
3555 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
3556 of xcoff_relocate_symtab_hook.
3560 * configure (powerpcle-*-solaris*): Add Solaris support.
3562 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
3567 * c-valprint.c (c_val_print): Fix printing for arrays defined
3572 Support for bi-endian remote breakpoints.
3573 * remote.c (big_break_insn, little_break_insn): New globals.
3574 (break_insn): Remove.
3575 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
3576 code if REMOTE_BREAKPOINT defined, otherwise call memory
3577 breakpoint functions.
3578 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
3579 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
3581 * mon960-rom.c (mon960_cmds): Remove forward decl.
3582 (mon960_load): Use current_monitor instead of mon960_cmds.
3583 (mon960_regnames): Remove backslashes from line ends.
3584 (_initialize_mon960): Fix documentation string.
3588 * symfile.h (psymbol_allocation_list): Expand comments which
3589 describe the psymbol allocation list and how each field is
3594 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
3596 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
3598 * infcmd.c (run_command), solib.c (locate_base): Check for
3599 target_has_execution in addition to inferior_pid, a core file
3600 from a threaded program is yielding a non-zero inferior_pid.
3602 * sparc-tdep.c (get_saved_register): Handle window registers
3603 in a dummy frame correctly.
3607 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
3608 so that anything that wants an allocation function not yet pulled
3609 in, will get it from mmalloc rather than a system library.
3610 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
3611 to avoid surprising results when used.
3615 * stabsread.c: Changes and bug fixes for cfront support.
3616 Fix bug for class data members.
3617 Fix parsing bug when no base classes exist.
3618 Fix memory bug - allocate space for cplusplus specific info.
3619 Add support for static data.
3620 Add prototypes for static functions.
3621 Enhance comments to show what each function expects to parse.
3623 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
3624 function to resolve_cfront_continuation.
3628 * infrun.c (wait_for_inferior): Call registers_changed when
3629 restarting the inferior to get over a nullified instruction.
3633 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
3634 Add new support for parsing cfront stabs.
3638 * infrun.c (wait_for_inferior): Move "have_waited" label
3639 outside of #ifdef conditionals. Don't trash the wait status
3640 if we get a signal and the current instruction is nullified.
3644 * Makefile.in (VERSION): Bump version number to 4.16.1.
3645 * NEWS: Update for 4.16 release.
3649 * monitor.h: Clean up comment formatting.
3650 (current_monitor): Remove decl.
3651 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
3652 (push_monitor, SREC_SIZE): Remove.
3653 * monitor.c: Expand old macro into current_monitor derefs
3655 * remote-os9k.c (current_monitor): Remove definition.
3659 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
3661 (call_extra_exec_file_hooks): New function.
3662 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
3663 remove unused variables.
3664 (set_machine_hook): New function.
3665 (_initialize_h8300m): Initialize it.
3669 * remote-mips.c (encoding): Don't specify size, to avoid bug in
3670 SunOS native compiler.
3674 * monitor.c: Use int rather than LONGEST for values, since
3675 the formatting strings are not prepared to accept long longs.
3679 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
3683 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
3684 before de-referencing it. Prevents deref of NULL pointer if core
3685 file lacks .reg section.
3686 * defs.h: Rename floatformat_{to from}_long_double to
3687 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
3689 * findvar.c (extract_floating store_floating): Change all refs to
3690 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
3691 * utils.c: Change floatformat_{to from}_long_double to
3692 floatformat_{to from}_doublest cuz the new routines will use
3693 whatever size (double or long double) is appropriate.
3694 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3695 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
3696 floatformat... routine calls.
3700 * stabsread.c (read_type): Move handling of '@' from type
3701 number handling to handling of types proper (as emitted by gcc!).
3702 For typedefs, allocate the typedef type before reading its
3703 definition, to properly handling recursive types.
3707 * ch-exp.c (calculate_array_length): Fix prototype.
3711 * remote-nindy.c (nindy_open): Acquire more target state so that
3712 user can attach to a previously running program.
3713 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
3714 conversion code. That's all handled in {extract store}_floating
3716 * utils.c (floatformat_to_double): Don't bias exponent when
3717 handling zero's, denorms or NaNs.
3718 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
3719 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
3720 FLOATFORMAT_TO/FROM_DOUBLEST macros.
3721 * config/i960/tm-nindy960.h: Undefine
3722 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
3723 REGISTER_CONVERTIBLE. These are no longer necessary now that all
3724 the magic happens in extract/store_floating.
3728 * eval.c (evaluate_subexp_standard): Report error when attempting to
3729 evaluate subscripts for types which cannot be subscripted.
3731 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
3732 Return a zero value with the return type of the member function
3733 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
3735 * values.h (value_x_binop, value_x_unop): Update prototypes
3737 * eval.c (evaluate_subexp_standard): Update all callers of
3738 value_x_binop, value_x_unop accordingly.
3740 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
3741 integral promotion on operands.
3745 * README: Update for 4.16 release.
3746 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
3747 * configure: Regenerate with autoconf.
3748 * config.in: Regenerate with autoheader.
3749 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
3750 * top.c (command_loop): Ditto.
3754 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3755 defaults for bi-endian targets. Replace function pointers for
3756 floatformat routines with macros. No need for these to be runtime
3758 * findvar.c: Get rid of floatformat function pointers. Use
3759 macros in extract_floating and store_floating.
3760 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
3761 Use floatformat macros.
3766 * configure.in (AC_CHECK_HEADERS): check for endian.h.
3767 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
3768 Add host & target cases for i[345]86-*-gnu*.
3769 * config.in: Regenerate with autoheader.
3770 * configure: Regenerate with autoconf.
3771 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
3772 (init.c): Don't scan mig-generated files.
3773 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
3774 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
3775 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
3776 rather than "#ifndef MACH".
3780 * remote.c (remotewritesize): New GDB variable, controls size
3781 of memory packets sent to the target.
3785 * dcache.c: Add prototypes. Make many functions static.
3786 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
3787 dcache_poke call dcache_xfer_memory directly in order to fix
3788 problems with turning off dcache. dcache_peek is now unnecessary,
3791 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
3792 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
3793 to a struct floatformat. This allows for better handling of
3794 targets whose floating point formats differ from the host by more
3795 than just byte order.
3796 * (floatformat_to_long_double floatformat_from_long_double):
3797 Prototypes for new functions in utils.c.
3798 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
3799 for pointers to floating point conversion functions. The actual
3800 function uses either double or long double if the host supports it.
3801 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
3802 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
3803 * (extract_floating store_floating): Rewrite. Now, if host fp
3804 format is the same as the target, we just do a copy. Otherwise,
3805 we call floatformat_{to from}_doublest.
3806 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
3807 `write' to `should_write'.
3808 * utils.c (floatformat_to_long_double
3809 floatformat_from_long_double): New routines that implement long
3810 double versions of functions in libiberty/floatformat.c.
3811 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
3812 i960 extended real (80 bit) numbers.
3813 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
3814 actually read or written.
3818 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
3819 (calculate_array_length): Move function from here ...
3821 * ch-exp.c (calculate_array_length): ... to here.
3822 (parse_primval): If we have a symbol with an array type
3823 and the length is 0, call calculate_array_length.
3827 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
3828 Add some checks for powerset compatibility.
3830 * valops.c (value_slice): Use lowbound instead of lowerbound for
3831 call to slice_range_type to get correct bounds.
3835 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
3837 * scm-lang.c (gdb_string.h): Include.
3838 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
3839 call to correct type (char *).
3840 * cp-valprint.c (cp_print_static_field): Ditto.
3841 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
3842 for external find_unwind_entry function (from hppa-tdep.c).
3843 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
3844 type of second arg to "char *" to be type compatible with
3846 (remote_wait): Cast second arg to strtol to correct type.
3847 * hppa-tdep.c (compare_unwind_entries): Change argument types to
3848 "const void *" to be type compatible with qsort, and then
3849 assign to local args prior to use.
3853 * infptrace.c (kill_inferior): Remove call to "kill"; update
3858 * remote-e7000.c: don't append :23 to target port if __WIN32__
3859 is defined (it's WinGDB).
3864 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
3865 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
3866 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
3867 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
3871 * configure.in (case host): Add i386sco5 host.
3872 * configure: Regenerate.
3875 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
3876 target is an SVR3.2 with COFF, ELF, and shared libes, but
3878 * config/i386/i386sco5.mh: New file.
3879 * config/i386/nm-i386sco5.h: New file.
3883 * bcache.c (bcache): When size of chunk to cache is exactly equal to
3884 BCACHE_MAXLENGTH, stash chunk as unique copy.
3888 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
3889 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
3890 use it, rather than calling add_psymbol_addr_to_list.
3891 (add_psymbol_addr_to_list): Delete.
3892 (add_psymbol_to_list): Make psymbol static to avoid random data in
3893 gaps due to alignment of structure members.
3894 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
3895 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
3896 performance improvements by inlining via complicated macros and
3897 they just make gdb larger and harder to maintain.
3898 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
3899 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
3900 add_psymbol_to_list with appropriate long or CORE_ADDR args.
3901 (add_partial_symbol): Ditto.
3902 * partial-stab.h: Ditto.
3903 * os9kread.c (read_os9k_psymtab): Ditto
3904 * mdebugread.c (parse_partial_symbols): Ditto.
3905 (handle_psymbol_enumerators): Ditto.
3906 (demangle.h): Include.
3907 * hpread.c (hpread_build_psymtabs): Ditto.
3908 (hpread_build_psymtabs): Ditto.
3909 (demangle.h): Include
3911 start-sanitize-gdbtk
3914 * gdbtk.c (running_now): New global variable.
3915 (gdb_cmd): Test it before executing any command.
3916 (gdbtk_call_command): Set it when inferior is running.
3917 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
3918 disable interaction with command window's text appropriately.
3922 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
3923 some versions of the kernel don't support it.
3928 * configure.in: Check for setpgid function.
3929 * config.in: Regenerate with autoheader.
3930 * configure: Regenerate with autoconf.
3931 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
3932 if it is actually defined.
3933 (gdb_setpgid): Use HAVE_SETPGID.
3934 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
3935 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
3936 * c-exp.y, serial.c: Include <ctype.h>.
3937 * config/m68k/nm-news.h: Add typedef for pid_t which is
3938 apparently missing from <sys/types.h>. Enclose entire
3939 file in NM_NEWS_H ifndef and define when included.
3940 * config/mips/nm-news-mips.h: Ditto.
3941 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
3942 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
3946 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
3947 * arm-tdep.c (arm_apcs_32): New global.
3948 (arm_addr_bits_remove, arm_saved_pc_after_call,
3949 arm_push_dummy_frame, arm_pop_frame): New functions.
3950 (arm_skip_prologue): Updated version from Richard Earnshaw.
3951 (_initialize_arm_tdep): Add set/show "apcs32".
3952 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
3953 arm_addr_bits_remove.
3954 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
3955 (frame_find_saved_regs): Declare properly.
3956 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
3957 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
3959 * config/arm/nm-arm.h: New file.
3960 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
3961 Move definitions to nm-arm.h.
3962 * config/arm/arm.mh (NAT_FILE): Define.
3964 * symfile.c (generic_load): Initialize data_count properly.
3968 * symmisc.c (print_objfile_statistics): Print memory used by
3969 psymbol cache obstack.
3973 * symfile.c (report_transfer_performance): New function.
3974 (generic_load): Call it to report transfer rate.
3975 * remote-e7000.c (e7000_load): Ditto.
3979 * mpw-make.sed: Change references to config.h to be in objdir,
3980 edit out rules to rebuild config.h.
3984 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
3989 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
3990 fetch_register, child_xfer_memory): Use call_ptrace function supplied
3991 by infptrace.c rather than calling ptrace directly.
3995 * mon960-rom.c: Cleanups and elimination of unused code,
3996 clarify documentation string.
3997 (mon960_serial, mon960_ttyname): Remove.
3998 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
3999 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
4003 * configure.in: Check whether printf family supports printing
4004 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
4005 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
4006 * configure: Regenerate.
4007 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
4008 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
4009 * configure.in: Fix have_gregset and have_fpregset autoconf
4010 variable names so that they match the pattern required to
4015 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
4016 before testing against reg_ptr.
4017 * eval.c (evaluate_subexp_standard): Cast type of
4018 TYPE_FN_FIELD_VOFFSET to int.
4019 * findvar.c (extract_signed_integer, extract_unsigned_integer,
4020 extract_long_unsigned_integer): Cast type of sizeof to int.
4021 * values.c (unpack_field_as_long, modify_field): Ditto.
4022 * valops.c (value_assign, call_function_by_hand): Ditto.
4023 * infcmd.c (do_registers_info): Ditto.
4024 * ser-tcp.c (tcp_open): Ditto.
4025 * remote.c (putpkt): Ditto.
4026 * dcache.c (dcache_peek): Ditto.
4027 * dcache.c (dcache_poke): Ditto.
4028 * m2-exp.y (yylex): Ditto.
4029 * gnu-regex.c (re_match_2): Ditto.
4030 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
4031 out unused macro definition and variables.
4032 * inftarg.c (proc_wait): Move from main.c to here, and make static.
4033 * valprint.c (val_print_string): Change bufsize from int to unsigned.
4034 * main.c (wait.h): Include.
4035 * top.c (command_line_input): Remove unused variable "c".
4036 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
4037 value TYPE_CODE_TYPEDEF to switch statement.
4038 (f_type_print_varspec_suffix): Add missing enum value
4039 TYPE_CODE_TYPEDEF to switch statement.
4040 * ch-exp.c (parse_primval): Add remaining enumeration values to
4041 switch statement, with no specific action.
4042 (ch_lex): Add LOC_UNRESOLVED in switch statement.
4043 (pushback_token): Ifdef out, since code using it is ifdef'd out.
4044 * stabsread.c (cleanup_undefined_types): Remove unused label
4046 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
4047 * maint.c (objfiles.h): Include.
4048 (maintenance_print_statistics): Remove unused variable "temp".
4049 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
4050 unused variable "found_file_symbol".
4051 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
4052 * language.c (lang_bool_type): Use existing function local type
4053 variable rather than create block local variables.
4054 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
4055 * infptrace.c (wait.h, command.h): Include.
4056 * ser-tcp.c (gdb_string.h): Include
4057 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
4058 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
4059 * command.c (complete_on_enum): Make assignment used as truth value
4060 explictly check against NULL.
4062 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
4063 that uses it is ifdef'd out.
4064 * parser-defs.h: Add prototype for write_dollar_variable.
4065 * infrun.c: Add prototype for write_pc_pid.
4066 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
4067 * symmisc.c (bcache.h): Include.
4068 * bcache.h: Add prototype for print_bcache_statistics.
4069 * symfile.c: Include <time.h>.
4070 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
4071 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
4072 * valarith.c (value_binop): Change result_len, promoted_len1,
4073 and promoted_len2 to unsigned int.
4074 * valarith.c (value_subscripted_rvalue): Change elt_offs and
4075 elt_size to unsigned int.
4076 * valops.c (value_array): Change typelength to unsigned int.
4077 (destructor_name_p): Change len to unsigned int.
4078 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
4079 * symfile.c (decrement_reading_symtab): Change return type to void.
4080 * valarith.c (value_subscript): Remove unused variable "word".
4081 (value_subscript): Remove unused variable "tint".
4082 * valops.c (auto_abandon): Ifdef out, since code using it is also
4084 * eval.c (init_array_element): Remove unused variable "val".
4085 * Makefile.in (values.o): Depends on scm-lang.h.
4086 (command.o): Depends upon wait_h.
4087 (ser-tcp.o): Depends upon gdb_string.h.
4088 (infptrace.o): Depends upon wait_h and command_h.
4089 (maint.o): Depends on objfiles.h and symfile.h.
4090 * values.c (allocate_repeat_value): Remove unused variable
4092 (scm-lang.h): Include.
4093 * breakpoint.c (create_longjmp_breakpoint): Enclose in
4094 GET_LONGJMP_TARGET define, unused otherwise.
4095 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
4096 i386_remove_watchpoint and i386_stopped_by_watchpoint.
4100 * configure.in (sparc64-*-solaris2*): Delete.
4101 Stick with sparc-*-solaris2*.
4102 * configure: Regenerated.
4106 * valops.c (value_assign): Make copy of internal variable value
4107 before returning it as a new value, since it is owned by the
4108 internal variable and will be freed along with it.
4112 * From Peter Schauer.
4113 * breakpoint.c (breakpoint_re_set_one): Keep temporary
4114 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
4115 and bp_step_resume in case breakpoint_re_set_one is called due
4116 to a step over a dlopen call.
4117 * infrun.c (wait_for_inferior): Always remove breakpoints from
4118 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
4122 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
4123 non-prototyped case over prototyped case for C.
4124 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
4128 * os9kread.c (os9k_process_one_symbol): Note nonportable
4129 assumption that an int can hold a char *.
4131 * bcache.h (struct hashlink): Wrap data[] inside union with
4132 double to force longest alignment.
4133 (BCACHE_DATA): New macro to access data[].
4134 (BCACHE_ALIGNMENT): New macro to get offset to data[].
4135 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
4136 address of cached data. Use BCACHE_ALIGNMENT to compute
4137 amount of space to allocate for each hashlink struct.
4141 * ch-lang.c (evaluate_subexp_chill): Fix typo.
4145 * Makefile.in (VERSION): Bump version to 4.15.3
4149 * config.in: Rename from config.h.in.
4150 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
4151 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
4152 * configure: Rebuild.
4153 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
4154 Set CONFIG_HEADERS to config.h:config.in.
4158 * partial-stab.h (case N_ENDM): Finish current partial symbol
4159 table for Solaris 2 cc.
4163 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
4164 PC in the registers array. From Peter Schauer.
4168 * symfile.c (reread_symbols): Reinitialize bcache struct
4169 members to zero using memset. Also use memset to reinit
4170 global_psymbols and static_psymbols, rather than explicitly
4171 resetting each structure member.
4175 * configure.in: Add fragment to create stamp-h.
4178 * configure.in (AC_CHECK_HEADERS): Check for link.h.
4179 * configure: Regenerate with autoconf.
4180 * config.h.in: Regenerate with autoheader.
4181 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
4183 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
4184 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
4185 older a.out based systems.
4189 * config.h.in: New file.
4190 * acconfig.h: New file, for autoheader.
4191 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
4192 * configure: Regenerate.
4193 * Makefile.in (defs_h): Add config.h
4194 (distclean): Remove config.h and stamp-h during distclean.
4195 (config.h, stamp-h): New targets to remake config.h when necessary.
4196 * defs.h (config.h): Include before any other includes or defines.
4197 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
4198 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
4203 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
4204 result in an empty line, to work around a bug in native Ultrix 4.4
4205 and OSF/1-3.2C make.
4209 * configure.in: Add gdbserver to configdirs under linux.
4210 * configure: Regenerate.
4214 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
4215 * config/i386/tm-nbsd.h (NUM_REGS): Define.
4219 * solib.c (solib_break_names): Add _r_debug_state for
4220 vanilla SVR4 implementations. From Peter Schauer.
4224 * mon960-rom.c: New file; support mon960 rom monitor on i960.
4225 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
4226 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
4227 epecting prompt and echo during open.
4228 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
4229 determine if break should be sent as stop command.
4230 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
4231 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
4232 stack frame on mon960.
4233 * Makefile.in: Add mon960 files.
4234 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
4235 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
4236 * configure: Regenerated.
4237 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
4238 support mon960 rom monitor on i960.
4242 With Michael Snyder:
4243 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
4244 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
4245 (handle_load_dll): Don't reload symbols.
4246 (handle_exception): Use the DEBUG_* names.
4247 (child_wait): Add DEBUG_* code.
4248 (_initialize_inftarg): Add new commands to set debug_ names.
4252 * From Peter Schauer:
4253 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
4254 (bpstat_stop_status): Likewise.
4255 (remove_solib_event_breakpoints): Likewise.
4256 (clear_momentary_breakpoints): Likewise.
4257 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
4258 if we still can't read the memory for that breakpoint.
4259 (mention): Add bp_shlib_event case to keep gcc quiet.
4263 * breakpoint.h (enum enable): New enum shlib_disabled for
4264 shared library breakpoints that have been temporarily disabled.
4265 * breakpoint.c: Handle temporarily disabled shared library
4266 breakpoints like disabled breakpoints in most places.
4267 (insert_breakpoints): Use shlib_disabled to indicate
4268 that an unsettable breakpoint is only temporarily disabled.
4269 (re_enable_breakpoints_in_shlibs): New function.
4270 * corelow.c (solib_add_stub): After adding shared libraries,
4271 try to reenable any temporarily disabled breakpoints.
4272 * infcmd.c (attach_command): Likewise.
4273 * infrun.c (wait_for_inferior): Likewise.
4277 * defs.h (extract_long_unsigned_integer): Declare.
4278 * findvar.c (extract_long_unsigned_integer): New function.
4279 * printcmd.c (print_scalar_formatted): Use it.
4280 * valprint.c (val_print_type_code_int): Likewise.
4284 * infcmd.c (do_registers_info): Ignore anonymous registers.
4285 * sh-tdep.c (set processor): New command to set specific
4287 (sh_reg_names, sh3_reg_names): Arrays of register names for
4288 SH and SH3 processors.
4289 (sh_set_processor_type): New function.
4290 * sh3-rom.c (sh3_open): Call it.
4291 (sh3_regname): Add names of all the bank registers.
4292 (sh3_supply_register): Clean up formatting.
4293 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
4295 (REGISTER_NAMES): Add names of bank registers.
4296 (FP15_REGNUM): Define.
4297 (REGISTER_VIRTUAL_TYPE): Use it.
4298 * monitor.c: Clean up some comments.
4302 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
4303 s* and t* symbols too.
4307 * symfile.c (generic_load): Avoid division by zero.
4311 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
4312 not just those with HANDLE_SVR4_EXEC_EMULATORS.
4315 * breakpoint.c (internal_breakpoint_number): Move to file scope.
4316 (create_solib_event_breakpoint): Use an internal breakpoint number.
4320 * valarith.c (value_in): Change builtin_type_chill_bool to
4325 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
4326 (match_string_literal): Handle control sequence.
4327 (match_character_literal): Deto.
4329 * ch-lang.c (chill_printchar): Change formating of nonprintable
4330 characters from C'xx' to ^(num).
4331 (chill_printstr): Deto.
4332 (value_chill_card, value_chill_max_min): New functions to process
4333 Chill's CARD, MAX, MIN.
4334 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
4336 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
4337 for Chill's CARD, MAX, MIN.
4339 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
4340 and change return type from builtin_type_int to
4341 builtin_type_chill_bool.
4345 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
4346 from config/nm-nbsd.h.
4347 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
4348 from config/sparc/tm-nbsd.h.
4350 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
4351 instead of in config/m68k/xm-hp300hpux.h.
4355 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
4356 implementation for NetBSD systems.
4360 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
4361 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
4363 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
4364 if "function" is pointer to non-function.
4368 * top.c (print_gdb_version): Update copyright year.
4373 * infrun.c (wait_for_inferior): Remove breakpoints and
4374 switch terminal settings before calling SOLIB_ADD.
4375 * solib.c (enable_break, SVR4 variant): Don't map in symbols
4376 for the dynamic linker, the namespace pollution causes real
4381 * remote-mips.c (common_breakpoint): Explicitly terminate the
4387 * remote.c (remote_detach): Send a command 'D' to the target
4388 when detaching, update the function's comments.
4392 * gnu-nat.c (thread_cmd_list): New declaration.
4393 (parse_int_arg): New function.
4397 * gnu-nat.h (struct proc): Add DETACH_SC field.
4398 * gnu-nat.c (make_proc): Set DETACH_SC.
4399 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4400 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
4401 (add_thread_commands): Add set/show for detach-suspend-count.
4402 Add takeover-suspend-count cmd.
4403 (inf_detach): Set suspend counts to the detach SC, not 0.
4404 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
4405 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
4406 set_thread_default_thread_detach_sc_cmd,
4407 show_thread_default_thread_detach_sc_cmd): New functions.
4408 (show_task_cmd): Also show detach-suspend-count values.
4409 (thread_takeover_sc_cmd): New function.
4413 * gnu-nat.c (show_thread_run_cmd): Actually print state.
4417 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
4421 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
4422 pointer to the flags now, not the flags themselves.
4426 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
4427 (gnu_create_inferior): Check return from ptrace.
4431 * gnu-nat.h (struct proc): Add DEAD field.
4432 * gnu-nat.c (make_proc): Initialize DEAD.
4433 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
4434 (gnu_wait): Only abort for 0 threads if the task isn't dead.
4438 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
4442 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
4443 (inf_set_traced): Only give no-signal-thread error message if
4444 turning *on* tracing.
4448 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
4449 set inf->threads_up_to_date to 0.
4450 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
4451 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
4452 (proc_update_sc): Cast thread state arg to thread_set_state.
4453 (proc_get_state): Cast thread state arg to thread_get_state.
4454 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
4455 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
4456 inf_update_procs before we lookup the thread.
4457 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
4461 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
4465 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
4466 INIT_TRACEMASK instead of setting the exec flags.
4470 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
4471 the task's died, so others have a chance at it.
4472 (gnu_resume): When single-stepping a single thread, given an error
4473 if there is no such thread. When single-stepping one but running
4474 the others, just given a warning and still run all the threads.
4475 (gnu_wait): If there seem to be no threads, look harder, and
4476 signal an error if there really aren't any.
4477 (gnu_attach): Reset thread numbering to 0.
4479 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
4480 thread name in warning messages.
4482 * gnu-nat.c (active_inf): New function.
4483 (show_sig_thread_cmd, show_stopped_cmd): Use it.
4484 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
4485 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
4487 (add_task_commands): Add new port-right info commands.
4491 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
4492 use mach_msg with MACH_RCV_INTERRUPT.
4493 (set_noninvasive_cmd): New function.
4494 (add_task_commands): Add command entry for `set noninvasive'.
4498 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
4499 (safe_bcopy): Function removed.
4503 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
4504 (make_proc): Initialize state_valid & state_changed fields.
4508 * reply_mig_hack.awk: New file.
4512 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
4514 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
4519 * target.c (debug_to_check_threads): New function.
4521 * inflow.c (terminal_init_inferior_with_pgrp): New function.
4522 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
4523 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
4524 but only if PROCESS_GROUP_TYPE is defined.
4528 * target.c (debug_to_thread_alive): Pass through the return value.
4532 * target.c (signals, target_signal_from_host, target_signal_to_host):
4533 Add mach exceptions.
4534 * target.h (enum target_signal): Add mach exceptions.
4538 * gnu-nat.c: New file: gnu native backend.
4539 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
4540 * gnu-nat.h: New file.
4541 * config/nm-gnu.h: New file.
4542 * config/tm-i386gnu.h: New file.
4543 * config/xm-i386gnu.h: New file.
4544 * config/i386/i386gnu.mh: New file.
4545 * config/i386/i386gnu.mt: New file.
4549 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
4550 baseline for gdb 4.16 rerelease testing.
4554 * somsolib.c (som_solib_create_inferior_hook): Before returning
4555 call clear_symtab_users.
4559 * remote-e7000.c (e7000_open): Delete all breakpoints when
4560 connecting to e7000. Change connect message to allow use of
4561 monitor.exp in test suite.
4562 * (e7000_load): Print transfer rate of download.
4563 * symfile.c (generic_load): Print transfer rate of download.
4567 * configure.in (mips*-*-vxworks*): New config.
4568 * configure: Regenerated.
4570 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
4571 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
4576 * partial-stab.h (case N_FUN): Function symbols generated
4577 by SPARCworks cc have a meaningless zero value, do not update
4578 pst->textlow if the function symbol value is zero.
4580 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
4581 for function prototype declaration symbols.
4585 * remote-e7000.c (e7000_load): New routine to download via the
4587 * (e7000_wait): Don't backup PC when we hit a breakpoint.
4588 Apparantly new sh2 pods get this right...
4589 * (e7000_ops): Add call to e7000_load.
4593 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
4594 m68knbsd-nat.c: New files, support for NetBSD/m68k.
4596 * configure.in (m68k-*-netbsd*): New config.
4597 * configure: Regenerated.
4601 * standalone.c (open, _initialize_standalone): Fix obvious typos
4606 * solib.c (solib_create_inferior_hook): Fix thinko.
4610 * solib.c (solib_break_names): Define for Solaris and Linux.
4611 (enable_break): For SVR4 systems, first try to use the debugger
4612 interfaces in the dynamic linker to track shared library events
4613 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
4614 BKPT_AT_SYMBOL code to use shared library event breakpoints.
4615 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
4616 it no longer needs to restart/wait on the inferior.
4617 * symfile.c (find_lowest_section): No longer static.
4618 * symfile.h (find_lowest_section): Corresponding changes.
4622 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
4623 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
4624 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
4625 * config/mips/tm-mips.h: Ditto.
4626 * config/pa/tm-hppa.h: Ditto.
4627 * config/rs6000/tm-rs6000.h: Ditto.
4628 * config/sparc/tm-sparc.h: Ditto.
4632 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
4634 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
4635 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4636 #ifdef'd out definitions --- Causes serious gdb failures on
4637 the i386. Need to investigate further before enabling.
4639 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
4640 fetch_core_registers): New functions. These functions are defined
4641 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
4642 with ptrace PT_GETREGS/PT_SETREGS.
4646 * findvar.c (extract_floating store_floating): Replace `long
4647 double' with `DOUBLEST'.
4651 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
4656 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
4658 * breakpoint.h (remove_solib_event_breakpoints): Declare.
4659 * breakpoint.c (remove_solib_event_breakpoints): New function.
4660 * somsolib.c (solib_create_inferior_hook): Remove all solib event
4661 breakpoints before inserting any new ones. Use a solib event
4662 breakpoint for the breakpoint at "_start".
4663 Remove extraneous "\n" from calls to warning.
4665 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
4670 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
4671 for CORE_ADDR values.
4672 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
4673 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
4677 * mipsread.c (mipscoff_symfile_read): Unconditionally add
4678 alpha coff dynamic symbols for all symbol files. Makes skipping
4679 over the trampoline code work when stepping from a function in a
4680 shared library into a function in a different shared library.
4684 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
4685 RETURN_VALUE_ON_STACK to return long doubles on the stack.
4689 * Makefile.in (ch-exp.o): Add dependencies.
4690 (various): Add gdb_string.h to dependencies that need it.
4694 * symmisc.c (print_symbol_bcache_statistics): Update description for
4695 printing byte cache statistics.
4699 * Add native support for long double data type.
4700 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
4701 to store actual data. Change types of INT and FLOAT tokens to
4702 typed_val_int and typed_val_float respectively. Create new token
4703 DOUBLE_KEYWORD to specify the string `double'. Make production
4704 for FLOAT use type determined by parse_number. Add production for
4705 "long double" data type.
4706 * (parse_number): Use sscanf to parse numbers as float, double or
4707 long double depending upon the type of typed_val_float.dval. Also
4708 allow user to specify `f' or `l' suffix to explicitly specify
4709 float or long double constants. Change typed_val to
4711 * (yylex): Change typed_val to typed_val_int. Also, scan for
4713 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
4715 * configure, configure.in: Add check for long double support in
4717 * defs.h: Define DOUBLEST appropriatly depending on whether
4718 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
4719 for functions that handle this type.
4720 * expression.h (union exp_element): doubleconst is now type
4722 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
4723 * findvar.c (extract_floating): Make return value be DOUBLEST.
4724 Also, add support for numbers with size of long double.
4725 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
4727 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
4729 * valarith.c (value_binop): Change temp variables v1, v2 and v to
4730 type DOUBLEST. Coerce type of result to long double if either op
4732 * valops.c (value_arg_coerce): If argument type is bigger than
4733 double, coerce to long double.
4734 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
4735 arg type is float and > 8 bytes, then use pointer-to-object
4736 calling conventions.
4737 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
4738 Use appropriate format and precision to print out floating point
4740 * value.h: Fixup prototypes for value_as_double,
4741 value_from_double, and unpack_double to use DOUBLEST.
4742 * values.c (record_latest_value): Remove check for invalid
4743 floats. Allow history to store them so that people may examine
4744 them in hex if they want.
4745 * (value_as_double unpack_double): Change return value to DOUBLEST.
4746 * (value_from_double): Arg `num' is now DOUBLEST.
4747 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
4748 specific) to expect certain types to always be returned on the stack.
4752 * bcache.c, bcache.h: New files to implement a byte cache.
4753 * Makefile.in (SFILES): Add bcache.c.
4754 (symtab_h): Add bcache.h.
4755 (HFILES_NO_SRCDIR): add bcache.h
4756 (COMMON_OBJS): Add bcache.o
4757 (bcache.o): New target.
4758 * dbxread.c (start_psymtab): Make global_syms & static_syms
4759 type "partial_symbol **".
4760 * hpread.c (hpread_start_symtab): Ditto.
4761 * os9kread.c (os9k_start_psymtab): Ditto.
4762 * stabsread.h (start_psymtab): Ditto.
4763 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
4764 * maint.c (maintenance_print_statistics): Call
4765 print_symbol_bcache_statistics.
4766 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
4768 * solib.c (allocate_rt_common_objfile): Ditto.
4769 * symfile.c (reread_symbols): Ditto.
4770 (free_objfile): Free psymbol bcache when objfile is freed.
4771 (objfile_relocate): Use new indirect psymbol pointers.
4772 * objfiles.h (struct objfile): Add psymbol cache.
4773 * symfile.c (compare_psymbols): Now passed pointers to pointers to
4775 (reread_symbols): Free psymbol bcache when freeing other objfile
4777 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
4778 psymbol using the psymbol bcache.
4779 (init_psymbol_list): Psymbol lists now contain pointers rather than
4780 the actual psymbols.
4781 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
4782 grown arrays of pointers.
4783 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
4785 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
4787 (print_symbol_bcache_statistics): New function to print per objfile
4789 (print_partial_symbol, print_partial_symbols,
4790 maintenance_check_symtabs, extend_psymbol_list):
4791 Account for change to pointer to pointer to partial symbol.
4792 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
4793 make_symbol_completion_list):
4794 Account for change to pointer to pointer to partial symbol.
4795 * symtab.h (bcache.h): Include.
4796 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
4797 type "partial_symbol **".
4801 * dwarfread.c (free_utypes): New function.
4802 (read_file_scope): Call free_utypes as cleanup, rather than just
4803 freeing the utypes pointer.
4807 * demangle.c (is_cplus_marker): New function, checks if a
4808 character is one of the commonly used C++ marker characters.
4809 * defs.h (is_cplus_marker): Add prototype.
4810 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
4811 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
4812 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
4813 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
4814 values.c (vb_match): Use is_cplus_marker instead of comparison
4819 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
4820 delete entirely someday.
4824 * mpw-make.sed: Edit out makefile rebuild rule.
4825 (host_alias, target_alias): Comment out instead of deleting.
4826 (@LIBS@): Edit out references.
4830 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
4831 Use n_psyms in OBJSTAT, not psyms.
4835 * configure.in (sparclet-*-aout*): New config.
4836 * configure: Regenerated.
4840 * somsolib.c (som_solib_add): Use xmalloc rather than bare
4841 unchecked call to malloc.
4842 * remote-mips.c (pmon_load_fast): ditto.
4843 * remote-mm.c (mm_open): ditto.
4844 * hpread.c (hpread_lookup_type): ditto.
4845 * remote-adapt.c (adapt_open): ditto.
4849 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
4850 allocate_saved_f77_common_node, allocate_common_entry_node,
4851 add_common_block): Use xmalloc rather than malloc, some of which
4853 * gnu-regex.c: At same point as other gdb specific changes
4854 #undef malloc and then #define it to xmalloc.
4855 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
4856 bare unchecked calls to malloc/realloc.
4857 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
4858 unchecked call to malloc.
4862 * symtab.c (gdb_mangle_name): Change opname var to be const to
4863 match return val of cplus_mangle_name.
4864 * i960-tdep.c: Change arg types of next_insn to match callers.
4868 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
4869 apparently aren't needed in any reasonably recent version of
4874 * stabsread.c (read_range_type): If !self-subrange and language
4875 is Chill, assume a true range. If a true_range is a sub_subrange,
4876 use builtin_type_int for index_type.
4880 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
4881 with an ANSI compiler.
4883 start-sanitize-gdbtk
4886 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
4887 double-clicking will work again.
4888 (create_asm_win): Put "break" at end of all B1 bindings.
4889 (create_file_win): Lower "sel" tag, don't raise it.
4890 (ensure_line_visible): New proc.
4891 (update_listing, update_assembly): Use it.
4892 (create_copyright_window): Destroy window on Leave event.
4893 (create_command_window): Put "break" at end of all B2 bindings.
4899 * valops.c (value_arg_coerce): Coerce float to double, unless the
4900 function prototype specifies float.
4904 * language.c (set_language_command): Use languages table when
4905 printing available languages.
4910 * command.c (add_cmd): Add missing initialization for enums member.
4911 Reorder members to match structure declaration to make it easier to
4912 tell when one is missing.
4913 * exec.c (exec_file_command): Fix problem where filename in malloc'd
4914 memory is referenced after being freed.
4918 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
4919 AT_name tag is missing.
4921 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
4922 FLTWATCH and FLTKWATCH are defined.
4924 * remote.c (remote_read_bytes): Advance memaddr for transfers,
4925 return number of bytes transferred for partial reads.
4927 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
4931 * win32-nat.c (mappings): Add ppc registers.
4932 (child_resume): Turn off step for ppc.
4936 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
4937 xm-cygwin32.h): New.
4938 * config/i386/(*win32*): Becomes *cygwin32*.
4939 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
4940 (powerpcle-*-cygwin32): New.
4941 * configure: Regenerate.
4942 * win32-nat.c (child_create_inferior): Call CreateProcess
4943 with the right program arg.
4947 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
4951 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
4955 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
4957 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
4959 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
4960 here from config/i386/xm-i386mach.h, fix name.
4961 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
4962 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
4963 here from config/i386/xm-ptx4.h.
4964 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
4965 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
4966 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
4967 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
4968 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
4970 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
4971 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
4972 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
4976 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
4977 floating point correctly.
4978 (STORE_RETURN_VALUE): Likewise.
4979 * config/pa/tm-pro.h (SOFT_FLOAT): define.
4983 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
4984 Define to what should be reasonable values. However, apparently
4985 a bug in linux mmap prevents mapped symbol tables from working.
4989 * defs.h (errno.h>: Move #include closer to head of file to solve
4990 obscure problem with systems that declare perror with const arg, in
4991 both errno.h and stdio.h, and const is defined away by intervening
4997 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
4998 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
5002 * Makefile.in (diststuff): Make all-doc; diststuff target does not
5003 exist in doc/Makefile.in.
5007 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
5011 * ch-valprint.c (calculate_array_length): New function to
5012 determine the length of an array type.
5013 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
5014 array type is zero, call calculate_array_length.
5016 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
5017 values may not be sorted. Scan all entries and set the real lower
5022 * config/xm-linux.h: Move include of solib.h and #define of
5023 SVR4_SHARED_LIBS from here ...
5024 * config/nm-linux.h: ...to here.
5028 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
5029 Also check for gregset_t and fpregset_t types.
5030 * configure: Regenerate.
5031 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
5033 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
5034 and HAVE_FPREGSET_T are defined. These changes allow systems
5035 like linux that are migrating to /proc support to use a single
5036 configuration for both new and old versions.
5038 * config/i386/linux.mt: Note that this is now for both a.out and
5040 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
5042 * config/i386/tm-linux.h (tm-sysv4.h): Include.
5043 * config/i386/xm-linux.h (solib.h): Include
5044 (SVR4_SHARED_LIBS): Define.
5045 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
5046 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
5047 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
5052 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
5053 * config/i386/xm-sun386.h: Ditto.
5054 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
5058 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
5063 * dcache.c (dcache_peek, dcache_poke): Advance addr for
5068 * infrun.c (normal_stop): Fix test for shared library event.
5072 * configure.in (sparc64-*-*): Add default host configuration.
5073 start-sanitize-gdbtk
5074 (sparc64-*-solaris2* host): Link statically if GCC used.
5076 (sparc64-*-solaris2*): Add target configuration.
5077 * configure: Regenerated.
5078 * sparc/sp64sol2.mt: New file.
5082 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
5086 * Makefile.in (lint): Close backquotes.
5088 start-sanitize-gdbtk
5091 * gdbtk.tcl, gdbtk.c: Updated copyrights.
5093 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
5095 * configure: Rebuilt.
5100 * NEWS: Make note of new record and replay feature for
5101 remote debug sessions.
5102 * serial.c (gdbcmd.h): Include.
5103 (serial_logfile, serial_logfp, serial_reading, serial_writing):
5104 Define here, for remote debug session logging.
5105 (serial_log_command, serial_logchar, serial_write, serial_readchar):
5106 New functions for remote debug session logging.
5107 (serial_open): Open remote debug session log file when needed.
5108 (serial_close): Close remote debug session log file when needed.
5109 (_initialize_serial): Add set/show commands for name of remote
5110 debug session log file.
5111 * serial.h (serial_readchar): Declare
5112 (SERIAL_READCHAR): Call serial_readchar().
5113 (SERIAL_WRITE): Call serial_write().
5114 (serial_close): Declare as extern.
5115 (serial_logfile, serial_logfp): Declare.
5116 * top.c (execute_command): Declare serial_logfp. Log user command
5117 in remote debug session log if log file is open.
5118 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
5119 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
5120 * remote-array.c (SREC_SIZE): Remove, duplicates define in
5122 * remote-array.c (hexchars, hex2mem): Remove, unused.
5123 * gdbserver/low-linux.c (store_inferior_registers): Remove
5124 unnecessary extern declaration of registers[].
5125 * gdbserver/Makefile.in (all): Add gdbreplay.
5126 * gdbserver/gdbreplay.c: New file.
5127 * gdbserver/README: Give example of recording a remote
5128 debug session with gdb and then replaying it with gdbreplay.
5132 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
5133 (read_one_struct_field): Support boolean bitfields.
5134 * c-valprint.c (c_val_print): Print booleans properly.
5138 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
5140 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
5144 * ch-exp.c (parse_tuple): Error if invalid mode.
5146 * value.h (COERCE_ARRAY): Don't coerce enums.
5147 (COERCE_ENUM): Don't COERCE_REF.
5148 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
5149 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
5150 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
5151 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
5152 Add COERCE_REF before COERCE_ENUM.
5153 * values.c (value_as_long): Simplify.
5155 * valops.c (value_array): Create internalvar if !c_style_arrays.
5157 * language.c (lang_bool_type): Add Fortran support.
5158 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
5162 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
5163 All references changed.
5164 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
5165 Update state table. Reformat so that it's still readable.
5166 When we hit the shlib_event breakpoint, set the calss of shlib_event.
5167 (breakpoint_1): Add "shlib events" as a breakpoint type.
5168 Print the shlib_event breakpoint like other breakpoints.
5169 (create_solib_event_breakpoint): New function.
5170 (breakpoint_re_set_one): Handle solib_event breakpoints.
5171 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
5172 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
5174 (create_solib_event_breakpoint): Declare.
5175 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
5176 (normal_stop): Inform the user when the inferior stoped due
5177 to a shared library event.
5178 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
5179 to control whether or not gdb continues the inferior or stops it when
5180 a shared library event occurs.
5181 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
5182 * somsolib.c (TODO list): Update.
5183 (som_solib_create_inferior_hook): Arrange for gdb to be notified
5184 when significant shared library events occur.
5185 * hppa-tdep.c (find_unwind_entry): No longer static.
5189 * printcmd.c (print_insn): Pass fprintf_unfiltered to
5190 INIT_DISASSEMBLE_INFO.
5191 start-sanitize-gdbtk
5192 * gdbtk.c (gdb_disassemble): Likewise.
5197 * remote.c (remotebreak): New GDB variable.
5198 (remote_break): New global.
5199 (remote_interrupt): Send a break instead of ^C if remote_break.
5200 * NEWS: Describe the new variable.
5204 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
5208 * hp300ux-nat.c (getpagesize): Remove unused function
5209 fetch_core_registers.
5210 (hp300ux_core_fns): Remove, is unused.
5211 (_initialize_core_hp300ux): Remove, is unused.
5212 (gdbcore.h): Remove #include, no longer needed.
5216 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
5217 ptrace bug in aix4.1.3 on the rs6000.
5221 * remote-hms.c (hms_ops): Add value for to_thread_alive.
5222 * remote-nindy.c (nindy_ops): Ditto.
5223 * remote-udi.c (udi_ops): Ditto.
5227 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
5228 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
5229 pmon_load_fast): New functions. Support for the PMON monitor world.
5230 (common_open): New function to merge support for different monitors.
5231 (mips_open): Use common_open().
5232 (mips_send_command): New function.
5233 (mips_send_packet): Scan out-of-sequence packets.
5234 (mips_enter_debug, mips_exit_debug): New functions.
5235 (pmon_ops): New target definition structure.
5239 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
5240 specified on the make command line (via make LIBS=xxx).
5242 * configure.in (enable-gm): magic.o -> gmagic.o.
5245 start-sanitize-gdbtk
5248 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
5249 (add_expr): Changes from create_expr_window.
5250 (create_command_window): Set focus.
5251 (delete_expr): Rewrote.
5252 (expr_update_button): New proc.
5253 (add_expr): Put bindings on FocusIn, FocusOut.
5254 Don't allow .file_popup to be torn off.
5259 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
5260 is set but there are no psymtabs.
5264 * dsrec.c (load_srec): Remove unused variable.
5265 * monitor.c (monitor_expect): Don't expect a ^C to echo.
5266 * serial.c (serial_open): Add parallel interface.
5267 * sh3-rom.c (parallel, parallel_in_use): New.
5268 (sh3_load): If parallel_in_use, download though the
5270 (sh3_open): Open parallel port if specified.
5271 (sh3_close): New function.
5272 (_inititalize_sh3): Add sh3_close hook and documentation.
5273 * monitor.c (monitor_close): Export.
5274 * monitor.h (monitor_close): Add prototype.
5279 * remote.c (remotetimeout): New GDB variable, use to set the
5280 remote timeout for reading.
5282 start-sanitize-gdbtk
5285 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
5286 (update_listing): Use lassign. Use "see" to scroll. Don't need
5287 screen_top, screen_bot, screen_height.
5288 (update_assembly): Use "see" to scroll.
5289 (textscrollproc): Removed.
5290 (create_file_win): Don't use textscrollproc.
5291 (asmscrollproc): Removed.
5292 (create_asm_window): Don't use asmscrollproc.
5293 (create_asm_win): Ditto.
5294 (screen_height, screen_top, screen_bot): Removed.
5295 (run_editor): New proc.
5296 (build_framework): Use it.
5297 (create_file_win, create_source_window): Don't use textscrollproc.
5298 (create_breakpoints_window): Set -xscrollcommand on canvas.
5299 (not_implemented_yet): Default button is 0.
5300 (delete_char): Don't use tk_textBackspace.
5301 (create_command_window): Allow Tk bindings to fire after deleting
5303 (create_command_window): Make Delete delete left, not right.
5308 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
5309 to get "struct core_fns" defined.
5310 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
5311 Are dependent upon gdbcore_h.
5315 * symfile.c (decrement_reading_symtab): New function.
5316 * symfile.c, symtab.h (currently_reading_symtab): New variable.
5317 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
5318 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
5319 currently_reading_symtab (since that could infinitely recurse).
5323 * stabsread.c (read_struct_type): Trivial simplification.
5325 * stabsread.c (define-symbol): Use invisible references
5326 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
5327 * valops.c (call_function_by_hand): Likewise.
5328 * eval.c (evaluate_subexp_standard): When known, use the formal
5329 parameter type as the expected type when evaluating arg expressions.
5330 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
5332 start-sanitize-gdbtk
5335 * main.c (main): Disable window interface if --help or --version
5338 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
5340 Changes in sync with expect:
5341 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
5343 * aclocal.m4: Replaced with version from expect.
5344 * configure: Regenerated.
5349 * configure.in, configure: Recognize rs6000-*-aix4*.
5350 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
5351 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
5352 * config/rs6000/xm-aix4.h: New file.
5353 * config/xm-aix4.h: New file.
5358 * gdbserver/low-linux.c: New file.
5359 * remote.c (remote_read_bytes): Fix aborts on larger packets.
5361 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
5363 * stabsread.c (define_symbol): If register value is too large,
5364 tell what it is and what max is.
5366 start-sanitize-gdbtk
5369 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
5370 gdbtk_tcl_flush): Use "see", not "yview".
5371 (gdbtk_tcl_query): Use questhead bitmap.
5372 various: Always wrap condition of 'if' in {...}.
5373 (add_breakpoint_frame): Set -value on radiobuttons.
5374 (lassign): New proc.
5375 (add_breakpoint_frame): Use lassign, not series of assignments.
5376 (decr): Made faster.
5377 (interactive_cmd): Use "see", not "yview".
5378 (not_implemented_yet): Use warning bitmap.
5379 (update_expr): Don't allow $expr to be evalled by Tcl.
5380 (create_expr_window): Don't use "focus".
5381 (delete_char, delete_line): Define globally.
5382 (delete_line, delete_char, create_command_window, update_autocmd,
5383 build_framework, create_asm_win, create_file_win): Use "see", not
5385 (create_copyright_window, center_window, bind_widget_after_class):
5387 (FSBox,create_command_window, create_autocmd_window): Binding
5389 (textscrollproc): Define globally.
5390 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
5391 Home, End, Up, and Down are all defined by Tk.
5392 (apply_filespec): Use error bitmap in dialog.
5393 (files_command): Don't use tk_listboxSingleSelect.
5394 (files_command): Don't use "uniq" to remove duplicates from a
5396 (update_assembly): Use lassign.
5397 (create_asm_win): Removed redundant bindings.
5398 (listing_window_button_1, file_popup_menu): Use tk_popup.
5399 (ButtonRelease-1 binding): Just remove tag from window; rest
5402 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
5403 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
5404 (gdbtk_call_command): Ditto.
5409 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
5410 enum namespace -> enum_namespace change.
5414 * ch-exp.c (parse_primval): In case ARRAY, add missing
5419 * remote-mips.c (mips_receive_header): Recognize \012 instead
5420 of \n, but write \n when program sends a \012.
5421 * ser-mac.c (mac_input_buffer): Increase size of buffer.
5425 * infptrace.c (initialize_infptrace): Move function out of
5426 #ifdef conditional; put code within the function inside an
5429 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
5430 arguments. Sorting is now dependent on OBJF_REORDERED. All
5431 callers/references changed.
5432 * dbxread.c (read_ofile_symtab): Correctly determine value for
5433 last_source_start_addr for reordered executables.
5434 (process_one_symbol): Handle N_FUN with no name as an end of
5436 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
5437 is the high text address for a psymtab.
5438 (case N_SO): Likewise.
5439 (case N_FUN): Handle N_FUN with no name as an end of function
5441 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
5442 at the same address rather than a random subset of them.
5443 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
5444 * elfread.c (elf_symfile_init): Similarly.
5445 * somread.c (som_symfile_init): Similarly.
5446 * xcoffread.c (xcoff_symfile_init): Similarly.
5450 * stack.c (print_stack_frame print_frame_info) symmisc.c
5451 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
5452 that catch_errors doesn't get blindsided by QUIT and lose the
5453 cleanup chain. This fixes a problem where ^C while in a
5454 user-defined command sometimes leaves instream NULL and causes a
5455 segfault in command_loop.
5459 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
5463 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
5464 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
5465 srec.o renamed to dsrec.o.
5469 * breakpoint.c (remove_breakpoint): Change error to warning so
5470 that hardware watchpoint removal problems won't leave breakpoint
5471 traps in the target.
5472 start-sanitize-gdbtk
5473 * configure configure.in: Make --enable-gdbtk be the default.
5475 * remote-e7000.c (e7000_insert_breakpoint,
5476 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
5478 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
5479 compensate for e7000 maladjustment.
5480 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
5481 which prevented hardware watchpoints from working.
5485 * infptrace.c (udot_info): New function.
5486 (PT_*): Define each individually if that one is not defined.
5487 * rs6000-nat.c (kernel_u_size): New function
5488 Include <sys/user.h> for "struct user"
5489 * alpha-nat.c (kernel_u_size): New function.
5490 Include <sys/user.h> for "struct user"
5491 * sparc-nat.c (kernel_u_size): New function.
5492 Include <sys/user.h> for "struct user"
5493 * i386b-nat.c (kernel_u_size): New function.
5494 * i386v-nat.c (kernel_u_size): New function.
5495 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
5496 (kernel_u_size): Declare.
5497 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
5498 (kernel_u_size): Declare.
5499 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
5500 (kernel_u_size): Declare.
5501 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
5502 (kernel_u_size): Declare.
5503 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
5504 (kernel_u_size): Declare.
5508 * mdebugread.c (mylookup_symbol): enum namespace becomes
5509 enum_namespace type.
5510 * symfile.c (add_psymbol_to_list)
5511 (add_psymbol_addr_to_list): Ditto.
5512 * symtab.c (lookup_partial_symbol): Ditto.
5513 (lookup_symbol): Ditto.
5514 (lookup_block_symbol): Ditto.
5515 * win32-nat.c (handle_load_dll): Use incoming dll base.
5516 (child_wait): Catch DLL load errors.
5517 (create_child_inferior): Translated between paths correctly.
5521 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
5522 from NUM_REGS to get number of general registers that we care about.
5523 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
5524 of number of general regs and number of floating point regs.
5528 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
5529 (SKIP_TRAMPOLINE_CODE): New.
5530 * config/i386/xm-win32.h (CANT_FORK): Deleted.
5531 (SLASH*) Changed to use unix style slash.
5532 * symtab.h (namespace enum): becomes typedef to avoid namespace
5534 * infcmd.c (path_command): Use empty string if PATH name not set.
5535 * i386-tdep.c (skip_trampoline_code): New function.
5536 * srec.c: Renamed dsrec.c to avoid filename collision.
5537 * Makefile.in: Cope with renaming.
5541 * symmisc.c (print_objfile_statistics): Print memory use statistics
5542 for objfile psymbol, symbol, and type obstacks.
5546 * config/mips/nm-irix5.h: Restore.
5547 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
5549 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
5550 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
5552 For older changes see ChangeLog-95
5558 version-control: never