3 * Makefile.in (symfile.o): Add gdb-stabs.h to dependencies list.
7 * elfread.c (record_minimal_symbol_and_info): Don't guess
8 at the section index; instead just always use the bfd index.
9 (elf_symtab_read): Handle weak symbols appearing in data
14 * gdbarch.sh (STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM,
15 DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM):
17 * gdbarch.h, gdbarch.c: Regenerate.
18 * arch-utils.c (no_op_reg_to_regnum): New function.
19 * arch-utils.h (no_op_reg_to_regnum): Declare.
21 * dwarfread.c (DWARF_REG_TO_REGNUM), coffread.c
22 (SDB_REG_TO_REGNUM), stabsread.h (STAB_REG_TO_REGNUM),
23 mdebugread.c (ECOFF_REG_TO_REGNUM): Delete macro.
25 * config/mips/tm-mips.h (ECOFF_REG_TO_REGNUM, STAB_REG_TO_REGNUM):
26 Delete. Moved to mips-tdep.c.
27 * mips-tdep.c (mips_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
29 (mips_gdbarch_init): Add ``mips_ecoff_reg_to_regnum'' and
30 ``mips_stab_reg_to_regnum'' to multi-arch vector.
34 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove elf_flags, cleanup.
35 (gdbarch_tdep): Likewise.
39 * m68hc11-tdep.c (SOFT_D1_REGNUM): Soft registers start at 14.
40 (m68hc11_register_names): Add null for register 13.
44 * m68hc11-tdep.c (m68hc11_frame_args_address): Fix args address
46 (m68hc11_frame_init_saved_regs): Frame pointer is saved only if
48 (m68hc11_analyze_instruction): New function.
49 (m6811_prologue, m6812_prologue): New prologue description tables.
50 (m68hc11_guess_from_prologue): Use the above.
51 (m68hc11_gdbarch_init): Setup gdbarch_tdep for the prologue
56 * ser-pipe.c (pipe_open): Only use vfork when available.
57 * fork-child.c (fork_inferior): Fix #ifdef HAVE_VFORK test.
58 (clone_and_follow_inferior): Ditto.
60 * configure.in (AC_CHECK_FUNCS): Check for vfork.
61 * configure, config.in: Regenerate.
65 * ser-unix.c (wait_for): Initialize the FD_SET before every select
67 (ser_unix_wait_for): Ditto.
71 * Makefile.in (varobj.o): Delete special .c.o rule supressing
76 * m32r-rom.c (m32r_load_section): Update to match
77 bfd_map_over_sections's ``func'' arg.
81 * mips-tdep.c (struct upk_mips16): Delete fields ``inst'' and
82 ``fmt''. Make ``offset'' a CORE_ADDR.
83 (print_unpack): Delete.
84 (extended_offset): Construct and return a CORE_ADDR.
85 (fetch_mips_16): Return an int. Don't assume short is 16 bits.
86 (unpack_mips16): Rewrite. Add ``extension'' parameter instead of
87 incorrectly guessing if the instruction had an extension.
88 (map16): Delete array.
89 (mips16_op): Delete macro.
90 (extended_mips16_next_pc): Rewrite of old mips16_next_pc function.
91 When an extended instruction do a recursive call.
92 (mips16_next_pc): Call extended_mips16_next_pc.
93 (mips_next_pc): Cleanup.
97 * ser-e7kpc.c (e7000pc_setstopbits): New function.
98 (e7000pc_ops): Add e7000pc_setstopbits.
100 * remote-e7000.c (e7000_detach, e7000_resume,
101 e7000_xfer_inferior_memory, e7000_files_info, e7000_files_info,
102 e7000_insert_breakpoint, e7000_remove_breakpoint, e7000_kill):
103 Update function signature to match target vector.
105 * h8300-tdep.c (h8300_command, h8300h_command, h8300s_command):
106 h8500-tdep.c (small_command, big_command, medium_command,
107 compact_command): Update function signature to match add_cmd.
111 * p-exp.y: Define strncasecmp as strnicmp for MSVC.
112 (yylex): Use strncasecmp, not strnicmp.
116 * cli/cli-decode.c: New file. Handle lists of commands, their decoding
118 (add_cmd, deprecate_cmd, add_abbrev_cmd, add_alias_cmd, add_prefix_cmd,
119 add_abbrev_prefix_cmd, not_just_help_class_command, empty_sfunc,
120 add_set_cmd, add_set_enum_cmd, add_set_auto_boolean_cmd,
121 add_show_from_set, delete_cmd, apropos_cmd, help_cmd, help_list,
122 help_all, print_doc_line, help_cmd_list, find_cmd, lookup_cmd_1,
123 undef_cmd_error, lookup_cmd, deprecated_cmd_warning,
124 lookup_cmd_composition, complete_on_cmdlist, complete_on_enum):
125 Moved here from command.c.
126 (add_info, add_info_alias, add_com, add_com_alias): Moved here from
128 * cli/cli-decode.h: Definitions/declarations for the above.
129 * cli/cli-cmds.c: New file. GDB CLI commands.
130 (error_no_arg, info_command, show_command, help_command, show_version,
131 quit_command, pwd_command, cd_command, echo_command, shell_escape,
132 make_command, show_user, set_debug, show_debug, init_cmd_lists):
133 Moved here from top.c.
134 (apropos_command): Moved here from command.c.
135 (complete_command, source_command): Moved here (part) from top.c.
136 (is_complete_command): New function. Checks if a command is the
138 (init_cli_cmds): New function. Add commands to the CLI (from code
140 * cli/cli-cmds.h: Definitions/declarations for the above.
141 * cli/cli-script.c: New file. GDB CLI command scripting.
142 (build_command_line, get_command_line, print_command_lines,
143 print_command_line, execute_user_command, execute_control_command,
144 while_command, if_command, arg_cleanup, setup_user_args, locate_arg,
145 insert_args, realloc_body_list, read_next_line,
146 recurse_read_control_structure, read_command_lines, free_command_lines,
147 do_free_command_lines_cleanup, make_cleanup_free_command_lines,
148 validate_comname, user_defined_command, define_command,
149 document_command, source_cleanup_lines, do_fclose_cleanup,
150 show_user_1): Moved here from top.c.
151 (script_from_file): New function. Implements execution of a script
152 contained in a file (part of code for the source_command() that used
154 * cli/cli-script.h: Definitions/declarations for the above.
155 * cli/cli-setshow.c: New file. Handle set and show GDB CLI commands.
156 (parse_auto_binary_operation, parse_binary_operation,
157 do_setshow_command, cmd_show_list): Moved here from command.c.
158 * cli/cli-setshow.h: Definitions/declarations for the above.
159 * top.c: Remove all CLI code, except the command loop.
160 (gdb_init): Call init_cli_cmds().
161 * command.c: Remove obsolete file.
162 * command.h: Mark as DEPRECATED.
164 * call-cmds.h: Ditto.
165 * Makefile.in (SFILES): Remove command.c.
166 (COMMON_OBS): Remove command.o.
167 (command.o): Remove obsolete target.
168 (cli_decode_h, cli_cmds_h, cli_script_h, cli_setshow_h): New macros.
169 Refer to CLI header files.
170 (cli-decode.o, cli-cmds.o, cli-setshow.o, cli-script.o): New targets.
171 (SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_CLI_DEPS, SUBDIR_CLI_INITS,
172 SUBDIR_CLI_LDFLAGS, SUBDIR_CLI_CFLAGS, SUBDIR_CLI_ALL, SUBDIR_CLI_CLEAN,
173 SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): New macros for new cli
175 * configure.in (enable_gdbcli): New option. Include the CLI in the
176 executable (cannot be disabled yet).
177 (CONFIG_OBS, CONFIG_DEPS, CONFIG_SRCS, CONFIG_INITS, ENABLE_CFLAGS,
178 CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Add
179 the corresponding SUBDIR_CLI_* macros if CLI requested.
180 * configure: Regenerate.
184 * p-exp.y (yylex): avoid problem with symbol name
185 starting as a operator name.
189 * linespec.h: New file. Declarations for linespec.c.
190 * linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c,
191 symtab.c, tracepoint.c: Include the above.
192 * completer.c: New file. Line completion stuff for GDB.
193 (get_gdb_completer_word_break_characters,
194 get_gdb_completer_quote_characters): New functions. Accessors for
195 useful completer internal data.
196 (filename_completer, line_completion_function, skip_quoted): Moved
198 * completer.h: New file. Declarations for the above.
199 * linespec.c (decode_line_1): Use
200 get_gdb_completer_word_break_characters and
201 get_gdb_completer_quote_characters.
202 * top.c: Include completer.h.
203 (filename_completer, line_completion_function, skip_quoted):
204 Moved to completer.c.
205 * corefile.c, exec.c, source.c, symfile.c, linespec.c: Include
207 * Makefile.in (SFILES): Add completer.c.
208 (COMMON_OBS): Add completer.o.
209 (completer.o): New target.
210 (linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o,
211 symtab.o, tracepoint.o): Add linespec.h to dependencies list.
212 (corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h
213 to dependencies list.
217 * gdbarch.c: Regenerate.
221 * varobj.c (varobj_create): Initialize ``old_fi''.
222 (varobj_update): Initialize ``templist''.
224 * kod-cisco.c (cisco_kod_request): Simplify allocation of
225 ``sync_ids'' eliminating uninitialized variable.
229 * MAINTAINERS: Add Mark Salter to Write After Approval list.
233 * win32-nat.c (dll_code_sections_add): strdup -> xstrdup.
237 * remote.c (remote_write_bytes): Add default case to switch
238 initializing ``todo''. Ditto for ``nr_bytes''.
239 * top.c (catch_errors): Always initialize ``val''.
240 * solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size
241 returning an unknown size.
242 * gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''.
243 * breakpoint.c (break_at_finish_at_depth_command_1): Initialise
245 (break_at_finish_command_1): Ditto.
249 * TODO: Add GFDL updates to 5.1 release criteria.
253 * configure.tgt (xscale-*): Add.
254 * configure.host (xscale-*): Add.
258 * m68hc11-tdep.c (gdb_print_insn_m68hc11): New function.
259 (_initialize_m68hc11_tdep): Install it. Register bfd_arch_m68hc12.
263 * m68hc11-tdep.c (gdbarch_tdep): Move stack_correction global to here.
264 (STACK_CORRECTION): Get stack correction using gdbarch_tdep.
265 (m68hc11_saved_pc_after_call): Use STACK_CORRECTION.
266 (m68hc11_frame_chain): Likewise.
267 (m68hc11_frame_init_saved_regs): Likewise.
268 (m68hc11_init_extra_frame_info): Likewise.
269 (m68hc11_push_arguments): Likewise.
270 (m68hc11_push_arguments): Likewise.
271 (m68hc11_store_struct_return): Likewise.
272 (m68hc11_push_return_address): Likewise.
273 (m68hc11_gdbarch_init): Setup stack_correction according to arch.
277 * configure.in: Add support for configure option
278 --enable-gdb-build-warnings. Mention need to update doco.
279 * configure: Regenerate.
283 * target.h (TARGET_SIGNAL_REALTIME_64): Added for IRIX 6.
284 * target.c (target_signal_from_host, do_target_signal_to_host):
285 Handle TARGET_SIGNAL_REALTIME_64.
289 * solib.c (solib_open): Handle the case where
290 solib_absolute_prefix is NULL.
294 * solist.h: Declare new function solib_open.
295 * solib.c (solib_open): New function. Abstracts some of the
296 code from solib_map_sections, for finding the binary solib file.
297 (solib_map_sections): Call solib_open.
298 * solib-svr4.c (enable_break): Call solib_open.
302 * gdbserver/low-nbsd.c (fetch_inferior_registers,
303 store_inferior_registers): Support older NetBSD/powerpc systems
304 from before fp reg support was added. Adapt to register number
305 changes caused when powerpc target was multi-arched.
309 * ia64-tdep.c (gdbarch_tdep): Change reference from
310 ELFOSABI_MONTEREY to ELFOSABI_AIX.
314 * c-valprint.c (print_function_pointer_address): New function
315 to automatically dereference a function pointer for printing
317 (c_val_print): Use print_function_pointer_address when printing
318 function pointer addresses.
322 * gdbserver/low-nbsd.c: Fix typos.
326 * pa64solib.c (add_to_solib): Pass TARGET to pa64_solib_load_symbols.
330 * MAINTAINERS: Peter Schauer and Kevin Buettner maintain AIX. Jim
331 Blandy, Kevin Buettner and Peter Schauer share shared libs.
334 * MAINTAINERS: Share responsibility for
335 Solaris/x86 between co-maintainers.
337 * MAINTAINERS: Add linespec as a separate component.
341 * command.h (error_no_arg): Add noreturn attribute to declaration.
345 * utils.c (xvasprintf, xasprintf): New functions.
346 * defs.h (xvasprintf, xasprintf): Add declarations.
348 * remote.c (add_packet_config_cmd): Use function xasprintf instead
350 * utils.c (vfprintf_maybe_filtered, vfprintf_unfiltered): Use
351 function xvasprintf instead of vasprintf.
353 * TODO (xasprintf): Update.
357 * TODO: Mention ``extern'' and ``STREQ'' cleanups.
361 * symtab.c (no_symtab_msg): Remove definition.
362 (sources_info): Replace use of no_symtab_msg with the string
364 * linespec.c (no_symtab_msg): Remove declaration.
365 (decode_line_1): Replace uses of no_symtab_msg with the string
370 * rs6000-tdep.c (refine_prologue_limit): New function.
371 (skip_prologue): When zero, attempt to obtain value for
372 lim_pc by calling refine_prologue_limit(). Also, fix
373 fencepost error regarding the limit in the loop.
376 * rs6000-tdep.c (skip_prologue): Handle optimizer code motions into
377 the prologue by continuing the prologue search, if we have no valid
378 frame yet or if the return address is not yet saved in the frame.
382 * wrapper.c (gdb_value_assign, wrap_value_assign): Protoize.
386 * thread.c (thread_apply_all_command): Save the command before
387 executing it because it may be modified. Restore the saved command so
388 that the same command is executed on next thread.
389 (thread_apply_command): Same correction.
393 * regcache.c (read_register_bytes): Failing to set register_valid
394 is not necessarily an error, if the register is a pseudo-register.
395 Some pseudo-registers are never marked as valid, so that they will
396 be read anew every time. Determining if a pseudo-register is valid
397 (or should be marked invalid) may be difficult, whereas just
398 recomputing it may be cheap.
402 * tracepoint.c (trace_find_tracepoint_command): Replace call to
403 parse_and_eval_address with a call to parse_and_eval_long as
404 we are evaluating an integer, not an address.
405 * top.c (show_commands): Ditto.
409 * xcoffread.c (arrange_linetable, xcoff_initial_scan): Protoize.
413 * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,
414 not TARGET_PTR_BIT, since we are dealing with addresses, not
421 * demangle.c : Use libibery list of demanglers instead of out of
427 * remote.c (_initialize_remote): Call
428 show_memory_write_packet_size when ``show remotewritesize''
433 * config/djgpp/config.sed: Fix tweaking "VPATH=.:foo", and handle
434 the gettext's posrcprefix correctly with drive letters.
438 * stabsread.c (read_range_type): Properly construct complex
443 * symtab.c (decode_line_1, total_number_of_methods, find_methods,
444 build_command_line_spec, find_toplevel_char, decode_line_2):
446 * linespec.c: New file. Routines that handle linespecs, formerly
448 * symtab.h: Export find_line_symtab and find_function_start_sal.
449 * Makefile.in (SFILES): Add linespec.c.
450 (COMMON_OBS): Add linespec.o.
451 (linespec.o): New target.
455 * inferior.h (step_over_calls_kind): New enum to clarify values in
457 * infcmd.c (step_over_calls): Change definition.
458 (step_1): Use new enum values in relation to step_over_calls.
460 (until_next_command): Ditto.
461 * infrun.c (clear_proceed_status): Ditto.
462 (handle_inferior_event): Ditto.
466 * inferior.h (step_stop_if_no_debug): New variable.
467 * infrun.c (step_stop_if_no_debug): Declare.
468 (handle_inferior_event): Stop the step command if we entered a function
470 (_initialize_infrun): New command 'set step-mode' to control the step
472 * infcmd.c (step_once): Switch to stepi mode if there is no line info
473 (and switching is enabled).
477 * target.c (do_xfer_memory): Only perform a single memory transfer
478 instead of iterating to tranfer the entire region. Higher layers
479 are expected to call this function multiple times for partial
481 (target_xfer_memory_partial): Remove unused local variables.
485 * target.c (target_xfer_memory_partial): Return bytes transferred
490 * values.c (value_being_returned, using_struct_return): Protoize.
491 * varobj.c (child_exists, cplus_class_num_children): Protoize.
495 Changes based on a patch from Ulrich Drepper:
496 * solib-svr4.c (svr4_relocate_main_executable): New function.
497 (svr4_solib_create_inferior_hook): Call
498 svr4_relocate_main_executable.
502 * config/i386/nbsd.mh: Remove solib.o, solib-svr4.o from NATDEPFILES.
503 * config/i386/nbsdelf.mh: Likewise.
504 * config/m68k/nbsd.mh: Likewise.
505 * config/ns32k/nbsd.mh: Likewise.
506 * config/powerpc/nbsd.mh: Likewise.
507 * config/sparc/nbsd.mh: Likewise.
508 * config/sparc/nbsdelf.mh: Likewise.
509 * config/i386/nbsd.mt: Add solib.o, solib-svr4.o to TDEPFILES.
510 * config/i386/nbsdelf.mt: Likewise.
511 * config/m68k/nbsd.mt: Likewise.
512 * config/ns32k/nbsd.mt: Likewise.
513 * config/powerpc/nbsd.mt: Likewise.
514 * config/sparc/nbsd.mt: Likewise.
518 Add auto-solib-add support for AIX, remove obsolete and unused
519 SOLIB_SYMBOLS_MANUAL code, cleanup of AIX shared library handling code.
520 * rs6000-nat.c (vmap_symtab): Do not try to modify offsets
521 if symbols are not yet loaded.
522 (vmap_add_symbols): New function to add symbols for a vmap entry.
523 (add_vmap): Turn errors into warnings, return NULL vmap upon
524 failure. Add symbols via vmap_add_symbols only if requested.
525 (xcoff_relocate_core): Allow debugging of core files without an
526 executable file. Handle NULL returns from add_vmap gracefully.
527 * xcoffsolib.c (solib_add): Remove, no longer needed.
528 (solib_info): Do not check for new shared libraries if there is no
530 (sharedlibrary_command): Made static.
531 Do not check for new shared libraries if there is no inferior process.
532 Add symbols for requested shared libraries via vmap_add_symbols.
533 (_initialize_solib): Add `set auto-solib-add' command.
534 * xcoffsolib.h (vmap_add_symbols): Add prototype declaration.
536 * config/rs6000/tm-rs6000.h (PC_LOAD_SEGMENT): Move from here ...
537 * config/rs6000/nm-rs6000.h: ... to here, this is an AIX native
539 * config/powerpc/tm-macos.h, config/powerpc/tm-ppc-eabi.h,
540 config/powerpc/tm-ppc-nw.h, config/rs6000/tm-rs6000ly.h:
541 Remove #undef PC_LOAD_SEGMENT.
542 * config/powerpc/aix.mt, config/rs6000/aix4.mt, config/rs6000/rs6000.mt
543 (TDEPFILES): Move xcoffsolib.o from here ...
544 * config/powerpc/aix.mh, config/rs6000/aix4.mh, config/rs6000/rs6000.mh
545 (NATDEPFILES): ... to here, xcoffsolib.o contains AIX native code
547 * rs6000-tdep.c: Remove #include xcoffsolib.h, no longer needed.
548 * xcoffsolib.h (xcoff_relocate_symtab_hook): Remove declaration.
549 * rs6000-nat.c (_initialize_core_rs6000): Remove setting of
550 xcoff_relocate_symtab_hook, no longer needed.
551 * xcoffsolib.c (solib_info, sharedlibrary_command): Remove
552 xcoff_relocate_symtab_hook indirection, call xcoff_relocate_symtab
553 directly, as xcoffsolib.c is now compiled in native AIX configurations
555 * Makefile.in: Update dependencies for rs6000-tdep.o, rs6000-nat.o
560 * MAINTAINERS: Specify the vax-dec-vms5.5 target tupple.
561 * vax-tdep.c: Include "gdbcore.h", "frame.h" and "value.h".
562 (vax_print_insn): Change ``d'' to a const char pointer.
566 * gdbarch.sh: Spelling correction: registrary -> registry.
571 * m68k-tdep.c (m68k_get_longjmp_target): Work around targets that
572 don't define JB_PC or JB_ELEMENT_SIZE.
576 * m68k-tdep.c (m68k_get_longjmp_target): Rename function
577 get_longjmp_target. Remove wrapping #ifdef GET_LONGJMP_TARGET.
578 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Add function
581 * config/m68k/tm-vx68.h, config/m68k/tm-sun3.h,
582 config/m68k/tm-m68kv4.h, config/m68k/tm-linux.h,
583 config/m68k/tm-es1800.h, config/m68k/tm-cisco.h: Update definition
584 of GET_LONGJMP_TARGET. Delete get_longjmp_target function
589 * gdbserver/configure.in (files): Don't link nm-empty.h when a
591 * gdbserver/configure: Regenerate.
595 * valops.c (typecmp): Protoize.
596 * valprint.c (strcat_longest): Protoize.
600 * ia64-tdep.c (native_find_global_pointer): New global variable.
601 (struct gdbarch_tdep): Add member find_global_pointer.
602 (ia64_gdbarch_init): Initialize find_global_pointer member. Also,
603 tell the gdbarch machinery that we have floating point registers.
604 (FIND_GLOBAL_POINTER): New macro.
605 (generic_elf_find_global_pointer): Renamed from find_global_pointer.
606 (find_func_descr, ia64_push_return_address): Call
607 FIND_GLOBAL_POINTER instead of find_global_pointer.
608 (process_note_abi_tag_sections): Enable code previously disabled
613 * dwarf2read.c: Revert June 5th change for caching of types,
614 as per Jim Blandy's request.
618 * wrapper.c (gdb_value_assign): New function. Longjump-free
619 version of value_assign.
620 (wrap_value_assign): New function. Wrapper for value_assign.
621 * wrapper.h: Add declaration for the above.
622 * varobj.c (varobj_set_value): Use gdb_value_assign, not
623 value_assign which can longjump. Do not change varobj value if
630 This set of changes add "hookpost-" as an expansion on the original
631 hooking of commands to GDB. A Hook may now be run "AFTER" execution of
632 a command as well as before.
634 * command.h (struct cmd_list_element): Changed elements hook and hookee
635 to hook_pre and hookee_pre respectively. Added hook_post and hookee_post
636 for the post hook command operation. Added hook_in so that an executing
637 hook can be flagged to prevent recursion.
638 * command.c (add_cmd): Changed initilization of cmd_list_element to
639 reflect above changes.
640 (delete_cmd): Remove both pre and post hooks.
641 (help_cmd): Notify that the command has pre and/or post hooks.
642 * infrun.c (normal_stop): Change references to hook_pre from hook.
643 * top.c (execute_command): Run both pre and post hooks.
644 (define_command): Allow definition of both pre and post hooks.
645 The definition of pre-hooks is done as before, with the "hook-"
646 prefix for backward compatibility.
650 * stack.c (return_command): Pop dummy frame if we just returned from
651 a stop in a call dummy.
655 * v850-tdep.c (handle_prepare, handle_pushm): Remove extraneous
656 blank line after function declarator.
657 * v850ice.c (v850ice_xfer_memory, do_gdb): Protoize.
661 * utils.c (add_continuation, add_intermediate_continuation,
662 printchar): Protoize.
666 * dwarf2read.c (new_symbol): Relocate address of symbol by the
667 base address of the section it is in rather than always using
668 the base address of the .text section.
672 * TODO: Note abstraction layer violation where "ocd reset" command
673 must invalidate the dcache, and how this might be fixed.
675 * monitor.c (#include "dcache.h"): Removed.
676 (remote_dcache): Removed.
677 (monitor_open): Removed code that created local dcache.
678 (flush_monitor_dcache): Removed (unused function).
679 (monitor_resume): Removed call to dcache_invd().
680 (monitor_load): Likewise.
681 (monitor_xfer_memory): Changed to call monitor_write_memory(),
682 monitor_write_memory_block(), and monitor_read_memory() instead
683 of dcache_xfer_memory().
684 * monitor.h (flush_monitor_dcache): Removed (unused function).
685 * ocd.c (#include "dcache.h"): Removed.
686 (ocd_dcache): Removed.
687 (ocd_open): Removed code that created local dcache.
688 (ocd_resume): Removed call to dcache_invd().
689 (ocd_xfer_memory): Changed to call ocd_write_bytes() and
690 ocd_read_bytes() instead of dcache_xfer_memory().
691 (bdm_reset_command): Invalidate target dcache.
692 * remote-bug.c (bug_load): Remove call to dcache_invd().
693 (bug_resume): Likewise.
694 (bug_settings): Remove dcache, readfunc, and writefunc fields
696 (bug_xfer_memory): Changed to call bug_read_memory() and
697 bug_write_memory() instead of dcache_xfer_memory().
698 * remote-nindy.c (#include "dcache.h"): Removed.
699 (nindy_dcache): Removed.
700 (nindy_open): Removed code that created local dcache.
701 (nindy_resume): Removed call to dcache_invd().
702 (nindy_load): Likewise.
703 (nindy_xfer_inferior_memory): Changed to call ninMemPut() and
704 ninMemGet() instead of dcache_xfer_memory().
705 * remote-sds.c (#include "dcache.h"): Removed.
706 (sds_dcache): Removed.
707 (sds_open): Removed code that created local dcache.
708 (sds_resume): Removed call to dcache_invd().
709 (sds_xfer_memory): Changed to call sds_write_bytes() and
710 sds_read_bytes() instead of dcache_xfer_memory().
711 * remote-utils.c (gr_open): Removed code that created local dcache.
712 * remote-utils.h (#include "dcache.h"): Removed.
713 (struct gr_settings): Removed dcache, readfunc, and writefunc fields.
714 (gr_get_dcache, gr_set_dcache): Removed macro definitions.
715 * remote.c (#include "dcache.h"): Removed.
716 (remote_dcache): Removed.
717 (remote_open_1): Removed code that created local dcache.
718 (remote_async_open_1): Likewise.
719 (remote_resume): Removed call to dcache_invd().
720 (remote_async_resume): Likewise.
721 (remote_xfer_memory): Changed to call remote_write_bytes() and
722 remote_read_bytes() instead of dcache_xfer_memory().
723 * wince.c (#include "dcache.h"): Removed.
724 (remote_dcache): Removed.
725 (child_create_inferior): Removed code that created local dcache.
726 (child_xfer_memory): Changed to call remote_write_bytes() and
727 remote_read_bytes() instead of dcache_xfer_memory().
728 (child_resume): Removed call to dcache_invd().
730 * target.c (target_dcache): Added.
731 (target_load): Invalidate target_dcache.
732 (do_xfer_memory): New function.
733 (target_xfer_memory): Reimplement in terms of dcache_xfer_memory().
734 (target_xfer_memory_partial): Likewise.
735 (initialize_targets): Create target_dcache.
736 * target.h (#include "dcache.h"): Added.
737 (target_open): Invalidate target_dcache.
738 (target_resume): Likewise.
739 (do_xfer_memory): New declaration.
741 * dcache.c (dcache_init): Removed reading and writing arguments.
742 (dcache_struct): Removed read_memory and write_memory fields.
743 (dcache_write_line): Call do_xfer_memory.
744 (dcache_read_line): Likewise.
745 (dcache_xfer_memory): Likewise.
746 (dcache_invalidate): Renamed from dcache_invd.
747 (dcache_init): Updated.
748 (dcache_xfer_memory): Updated.
749 * dcache.h (memxferfunc): Removed definition.
750 (dcache_init): Removed reading and writing arguments.
754 * objfiles.c (objfile_relocate): Relocate ei.entry_point with
755 its section offset, use SECT_OFF_TEXT only as a fallback.
759 * symm-nat.c (print_1167_regs): Remove extraneous blank line
760 after function declarator.
761 * symtab.c (search_symbols): Likewise.
762 * ultra3-nat.c (fetch_core_registers): Protoize.
766 * config/sh/tm-linux.h: New file. Include generic tm-linux.h,
767 plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use
768 the sh target function instead of the default link map offsets.
769 * config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES.
770 Use sh/tm-linux.h instead of sh/tm-sh.h.
771 * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets):
772 New function. Construct target-specific link map offsets.
773 * i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets:
774 New function. Construct target-specific link map offsets.
775 * config/i386/tm-linux.h: Use above function instead of default.
779 * config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS,
780 and inclusion of solib.h. Move up into ../tm-linux.h.
781 config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h.
785 * top.c (simplified_command_loop, add_info, add_com,
786 help_command): Protoize.
787 * ui-out.c (gdb_query): Protoize.
791 Changes based on analysis from Peter Schauer:
792 * solist.h (struct so_list): Remove field lmend.
793 (struct target_so_ops): Remove field lm_addr. Add field
794 relocate_section_addresses. Add comments for all fields
796 (TARGET_SO_LM_ADDR): Remove.
797 (TARGET_SO_RELOCATE_SECTION_ADDRESSES): New macro.
798 * solib-svr4.c (svr4_relocate_section_addresses): New function.
799 (_initialize_svr4_solib): Remove lm_addr initialization. Add
800 initialization for relocate_section_addresses.
801 * solib.c (solib_map_sections): Invoke
802 TARGET_SO_RELOCATE_SECTION_ADDRESSES instead of using now
803 defunct TARGET_SO_LM_ADDR to relocate the section addresses.
804 Also, eliminate assignment to the lmend field since this
805 field no longer exists.
806 (symbol_add_stub): Remove machinery for determining the lowest
808 (info_sharedlibrary_command): Print the text section starting
809 and ending addresses.
810 (solib_address): Don't use TARGET_SO_LM_ADDR, nor so->lmend to
811 determine if an address is in a shared object. Instead, scan
812 the section table and test against the starting and ending
813 addresses for each section.
817 * config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES.
818 * config/powerpc/linux.mh: ditto.
819 * config/ia64/linux.mh: ditto.
820 * config/i386/linux.mh: ditto.
821 * config/alpha/alpha-linux.mh: ditto.
822 * config/arm/linux.mh: ditto.
823 * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES.
824 * config/powerpc/linux.mt: ditto.
825 * config/ia64/linux.mt: ditto.
826 * config/i386/linux.mt: ditto.
827 * config/alpha/alpha-linux.mt: ditto.
828 * config/arm/linux.mt: ditto.
832 * gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,
833 mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c,
834 somread.c, tracepoint.c: Fix spelling errors in comments.
835 * gdbarch.c: Regenerate.
837 * gnu-nat.c (S_exception_raise_request): Fix typos and spelling
839 * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise.
840 * mcore-tdep.c (mcore_analyze_prologue): Likewise.
841 * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise.
842 * remote-e7000.c (e7000_start_remote): Likewise.
843 * remote-rdp.c (handle_swi): Likewise.
844 * remote-vx.c (vx_load_command): Likewise.
845 * sh-tdep.c (sh_do_pseudo_register): Likewise.
846 * sol-thread.c (td_err_string): Likewise.
847 * symtab.c (decode_line_2): Likewise.
851 * eval.c (parse_and_eval_long): New function.
852 * value.h: Declare it.
854 * breakpoint.c (breakpoints_info, maintenance_info_breakpoints):
855 Call parse_and_eval_long, not parse_and_eval_address.
856 * command.c (do_setshow_command): Ditto.
857 * infcmd.c (step_1, signal_command, continue_command): Ditto.
858 * infrun.c (signals_info): Ditto.
859 * stack.c (set_backtrace_limit_command, backtrace_command_1,
860 up_silently_base, down_silently_base): Ditto.
861 * tracepoints.c (tracepoints_info, trace_find_command,
862 trace_find_tracepoint_command): Ditto.
863 * valprint.c (set_radix): Ditto.
864 * values.c (show_values): Ditto.
868 * symtab.c (decode_line_2, file_matches, search_symbols): Protoize.
869 * thread.c (iterate_over_threads): Protoize.
873 * arch-utils.c (set_architecture, set_architecture_from_arch_mach,
874 set_gdbarch_from_file): Fix spelling error in string.
875 * v850-tdep.c (v850_target_architecture_hook): Likewise.
876 * gdbarch.sh: Fix spelling errors in comments.
877 * gdbarch.c, gdbarch.h: Regenerate.
879 * ppcnbsd-nat.c (fetch_core_registers, fetch_inferior_registers,
880 store_inferior_registers): Support older NetBSD/powerpc systems
881 from before fp reg support was added. Adapt to register number
882 changes caused when powerpc target was multi-arched.
886 * breakpoint.c breakpoint.h hppab-nat.c infrun.c
887 language.h mcore-tdep.c mips-tdep.c symfile.c symtab.c
888 symtab.h target.c tm-mips.h xm-sun4sol2.h: Corrected
889 spelling errors in comments.
890 * gdbarch.c gdbarch.sh: Removed word from comment.
894 * sun3-nat.c (fetch_core_registers): Protoize.
895 * symm-nat.c (print_1167_regs, child_xfer_memory): Protoize.
899 * stabsread.c (define_symbol): Update comment.
903 * stabsread.c (define_symbol): Set the type_name of the type
904 of the new symbol to the symbol name for type symbol, if the
909 * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr):
911 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Add.
912 * gdbarch.c, gdbarch.h: Regenerate.
913 * valops.c (find_function_addr): Use CONVERT_FROM_FUNC_PTR_ADDR
916 * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Delete
918 * config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR): Remove
920 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Fix comment.
921 (rs6000_gdbarch_init): Register rs6000_convert_from_func_ptr_addr
922 if not ELFOSABI_LINUX.
926 * config/rs6000/rs6000lynx.mt (TDEPFILES): Revert 2000-10-24
927 change in which solib-svr4.o was inadvertently added to this
932 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either
933 the current arch or use zero.
937 * ser-unix.c (do_unix_readchar): Coding style improvement only.
941 * target.c (generic_mourn_inferior): Notify GUI that inferior is gone
942 by calling detach_hook, if defined.
946 * coffread.c (coff_end_symtab): When calling end_symtab(),
947 use SECT_OFF_TEXT() instead of 0 to represent the .text
949 * hp-symtab-read.c (hpread_expand_symtab): Likewise.
950 * hpread.c (hpread_expand_symtab, hpread_process_one_debug_symbol):
955 * solib-svr4.c: New file created out of much of solib.c...
956 * solib.c (_SYSCALL32, BKPT_AT_SYMBOL): Move these defines to
958 (sys/types.h, signal.h, sys/param.h, fcntl.h, a.out.h,
959 elf/external.h, link.h): Move these includes to solib-svr4.c.
960 (bkpt_names, debug_base_symbols, main_name_list,
961 solib_extract_address, SOLIB_EXTRACT_ADDRESS, dynamic_copy,
962 ld_2_copy, debug_addr, flag_addr, LM_ADDR, LM_NEXT, LM_NAME,
963 IGNORE_FIRST_LINK_MAP_ENTRY, breakpoint_addr,
964 allocate_rt_common_objfile, solib_add_common_symbols,
965 bfd_lookup_symbol, look_for_base, elf_locate_base, locate_base,
966 first_link_map_member, open_symbol_file_object, match_main,
967 current_sos, interp_text_sect_low, interp_text_sect_high,
968 interp_plt_sect_low, interp_plt_sect_high,
969 in_svr4_dynsym_resolve_code, disable_break, enable_break,
970 special_symbol_handling): Moved to solib-svr4.c.
971 (debug32_copy, shadow_contents, fdmatch)
973 (struct so_list): Moved to solist.h
974 (MAX_PATH_SIZE): Moved to solist.h and renamed to
975 SO_NAME_MAX_PATH_SIZE.
977 * solist.h: New file created from struct so_list in solib.c.
978 (struct lm_info): Add forward declaration.
979 (struct so_list): Remove fields lm, lm32, lmaddr. Replace with a
980 single field, lm_info, which will be a pointer to target specific
982 (struct target_so_ops): New struct.
983 (free_so): Add extern declaration.
984 (current_target_so_ops): Declare new global variable.
985 (solib_map_sections):
986 (TARGET_SO_LM_ADDR, TARGET_SO_FREE_SO, TARGET_SO_CLEAR_SOLIB,
987 TARGET_SO_SOLIB_CREATE_INFERIOR_HOOK,
988 TARGET_SO_SPECIAL_SYMBOL_HANDLING, TARGET_SO_CURRENT_SOS,
989 TARGET_SO_OPEN_SYMBOL_FILE_OBJECT): New macros.
990 * solib.c (solib_map_sections, free_so, symbol_add_stub,
991 update_solib_list, solib_add, info_shared_library_command,
992 solib_address, clear_solib, solib_create_inferior_hook): Use
993 new TARGET_SO_* macros to call function on target specific
995 (current_target_so_ops): Define new global variable.
996 (_initialize_solib): Eliminate HAVE_LINK_H ifdef.
997 * solib-svr4.h: New file; defines struct link_map_offsets and
998 SVR4_FETCH_LINK_MAP_OFFSETS.
999 * solib-svr4.c (_initialize_svr4_solib, svr4_clear_solib,
1000 svr4_free_so): New functions.
1001 (special_symbol_handling, solib_create_inferior_function_hook,
1002 current_sos): Rename by adding a svr4_ prefix.
1003 (default_svr4_fetch_link_map_offsets): New function.
1004 (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY,
1005 first_link_map_member, open_symbol_file_object, svr4_current_sos):
1006 Remove dependence on existence of link.h by calling
1007 SVR4_FETCH_LINK_MAP_OFFSETS to obtain the offsets of shared library
1008 data. As a result, SVR4 and non-SVR4 versions of many of these
1009 functions coalesce into a single function and HAVE_STRUCT_LINK_MAP32
1010 ugliness is moved into default_svr4_fetch_link_map_offsets where it
1011 is relatively contained.
1012 (SOLIB_EXTRACT_ADDRESS): Revert 2000-08-29 change in which
1013 solib_extract_address() is called instead of extract_address().
1014 (solib_extract_address): Removed.
1016 * Makefile.in (solib.o): Add solist.h as a dependency.
1017 (solib-svr4.o): Add dependencies.
1018 * config/alpha/alpha-linux.mh, config/alpha/fbsd.mh,
1019 config/arm/linux.mh, config/i386/fbsd.mh,
1020 config/i386/i386dgux.mh, config/i386/i386gnu.mh,
1021 config/i386/i386sco5.mh, config/i386/i386sol2.mt,
1022 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
1023 config/i386/linux.mh, config/i386/nbsd.mh,
1024 config/i386/nbsdelf.mh, config/i386/ncr3000.mt,
1025 config/i386/ptx4.mh, config/i386/sun386.mt,
1026 config/ia64/linux.mh, config/m68k/linux.mh,
1027 config/m68k/m68kv4.mh, config/m68k/nbsd.mh,
1028 config/m68k/sun2os4.mt, config/m68k/sun3os4.mt,
1029 config/m88k/delta88v4.mh, config/mips/mipsv4.mh,
1030 config/ns32k/nbsd.mh, config/powerpc/linux.mh,
1031 config/powerpc/nbsd.mh, config/powerpc/solaris.mh,
1032 config/rs6000/rs6000lynx.mt, config/sparc/linux.mt,
1033 config/sparc/nbsd.mh, config/sparc/nbsdelf.mh,
1034 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh
1035 (NATDEPFILES): Add solib-svr4.o to list.
1037 * sparc-tdep.c (gregset.h): Don't include unless USE_PROC_FS is
1042 * stabsread.c (dbx_lookup_type, dbx_alloc_type,
1043 read_sun_builtin_type, read_sun_floating_type,
1044 read_range_type): Protoize.
1048 * solib.c (open_symbol_file_object): Update function signature to
1049 match catch_errors function argument.
1054 * infttrace.c (get_dictionary_entry_of_page): Function
1055 require_memory_page_dictionary takes no args.
1059 * gdba.el: Delete file.
1064 * TODO: Correct spelling errors
1065 * command.c (_initialize_command) corelow.c (core_open)
1066 main.c (captured_command_loop) mips-tdep.c (mips32_next_pc)
1067 remote.c serial.h top.c utils.c config/nm-lynx.h:
1068 Correct spelling errors in comments
1072 * sparc-nat.c (fetch_core_registers): Protoize.
1073 * sparcl-tdep.c (download): Protoize.
1077 * MAINTAINERS: Add Fred Fish to Blanket Write Privs list.
1081 * ax-gdb.c (gen_struct_ref): while generating data code, cases of
1082 "collect p1->p2->data" where not covered if p2 is a 'typedefed'
1083 type. this simple fix should forward the type pointer to the real
1088 * solib.c (LM_ADDR, LM_NEXT, LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY,
1089 open_symbol_file_object): Protoize.
1093 * remote-vx29k.c (vx29k_frame_chain_valid): Protoize.
1094 * remote.c (remote_xfer_memory, remote_search): Protoize.
1095 * sol-thread.c (sol_thread_xfer_memory): Protoize.
1099 * sparc-tdep.c (sparc_fix_call_dummy): Improve comments.
1100 Adjust call_dummy_breakpoint_offset, so that `finish' after a stop
1101 in a call dummy works.
1102 (sparc_gdbarch_init): Fix setting of pc_in_call_dummy, it depends
1103 on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK.
1107 * remote-st.c (st2000_xfer_inferior_memory): Protoize.
1108 * remote-utils.c (gr_multi_scan): Protoize.
1109 * remote-vx.c (vx_xfer_memory, net_get_symbols): Protoize.
1113 * remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
1114 (read_frame): Do not call error() on communication error when
1115 reading checksum, but return failure instead and log message.
1119 * varobj.c (type_changeable): Arrays are not changeable.
1120 Trying to check for updates was causing an error if the array lived
1121 in a register as gdb value_equal() cannot handle that case yet.
1125 * varobj.c (varobj_update): Prevent uninitialized error code to be
1126 returned on type_changed. Also, prevent value_equal() to be called
1127 for the types we do not want to test for updates.
1132 This keeps the GUI alive while running an RDI target and lets the
1133 STOP button be used to stop the target.
1134 * remote-rdi.c (arm_rdi_stop): New function. Implements target_stop.
1135 (init_rdi_ops): Set to_stop target vector entry to the above.
1136 * rdi-share/ardi.c (stop_request): New variable. Tells when a stop
1138 (angel_RDI_stop_request): New function. Registers that a stop has
1140 (angel_RDI_ExecuteOrStep): Add call to ui_loop_hook() in loop that
1141 waits while target is executing. Initialize and reset stop_request.
1142 * rdi-share/ardi.h: Add declaration of angel_RDI_stop_request().
1146 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Protoize.
1147 * remote-sds.c (sds_xfer_memory): Protoize.
1148 * remote-sim.c (gdbsim_xfer_inferior_memory): Protoize.
1154 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol
1155 language to auto instead of unknown, so it will try to demangle
1157 * symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value.
1158 * symtab.c (gdb_mangle_name): Properly handle C++ operators.
1164 * symtab.c (lookup_symbol_aux): New function. Renamed from
1165 lookup_symbol. Move code to do demangling/case sensitivity to
1167 (lookup_symbol): Now wrapper for lookup_symbol_aux, so we can
1168 perform case sensitivity/demangling without leaking memory. Move
1169 code to do demangling/case sensitivity from old_lookup_symbol to
1171 (lookup_partial_symbol): Use SYMBOL_SOURCE_NAME instead of
1173 (lookup_block_symbol): Use SYMBOL_SOURCE_NAME instead of
1174 SYMBOL_NAME. Don't do linear search in case of C++.
1176 * symfile.c (compare_symbols): Use SYMBOL_SOURCE_NAME instead of
1178 (compare_psymbols): Same here.
1182 * remote-nindy.c (non_dle, nindy_xfer_inferior_memory): Protoize.
1183 * remote-os9k.c (rombug_xfer_inferior_memory): Protoize.
1184 * remote-rdi.c (arm_rdi_xfer_memory): Protoize.
1188 * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve
1189 reference to gethostbyname.
1193 * remote-eb.c (eb_xfer_inferior_memory): Protoize.
1194 * remote-es.c (es1800_xfer_inferior_memory, es1800_files_info):
1196 * remote-mm.c (expect_msg): Protoize.
1200 * rs6000-tdep.c (skip_prologue): Add new parameter lim_pc.
1205 * remote-bug.c (bug_xfer_memory, bug_insert_breakpoint,
1206 bug_remove_breakpoint): Protoize.
1207 * remote-e7000.c (fetch_regs_from_dump, e7000_xfer_inferior_memory):
1212 * remote-adapt.c (adapt_insert_breakpoint, adapt_remove_breakpoint):
1214 * remote-array.c (write_monitor, array_xfer_memory): Protoize.
1218 * ppc-linux-nat.c (supply_gregset, fill_gregset): Change type
1219 of first argument from gregset_t to gdb_gregset_t in order
1220 to match declarations in gregset.h.
1221 (supply_fpregset, fill_fpregset): Change type of first argument
1222 from fpregset_t to gdb_fpregset_t in order to match declarations
1227 * procfs.c (proc_iterate_over_mappings, proc_iterate_over_threads,
1228 procfs_xfer_memory): Protoize.
1229 * ptx4-nat.c (proc_iterate_over_mappings): Protoize.
1233 * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
1234 PS_ERR if exec_bfd is not yet open.
1238 * target.c (target_signal_from_host, do_target_signal_to_host):
1239 Add support for Solaris realtime signals.
1243 * os9kread.c (os9k_symfile_read, os9k_end_psymtab): Protoize.
1244 * osfsolib.c (find_solib): Protoize.
1248 * ns32knbsd-nat.c (fetch_core_registers): Protoize.
1249 * ocd.c (ocd_xfer_memory): Protoize.
1253 * MAINTAINERS: Add Mark Kettenis to ``Blanket Write Privs'' list.
1257 * rs6000-tdep.c (rs6000_pop_frame): Use PC_IN_CALL_DUMMY to test
1258 for call dummy instead of accessing stop_stack_dummy, which does
1259 not work if we `return' from a stop in a call dummy.
1260 (rs6000_gdbarch_init): Use generic_save_dummy_frame_tos for
1261 dummy_frame_tos function to make PC_IN_CALL_DUMMY work.
1265 * mdebugread.c (mdebug_next_symbol_text): Protoize.
1266 * monitor.c (monitor_xfer_memory): Protoize.
1270 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
1271 OLD_CANNOT_FETCH_REGISTER): New definitions for accessible registers
1272 when accessing the registers via the U area.
1273 (fetch_register, store_register): Use them.
1274 (cannot_fetch_register, cannot_store_register): New functions,
1275 all registers should be accessible if we have GETREGS support.
1276 * config/i386/nm-linux.h: Use cannot_fetch/store_register for
1277 CANNOT_FETCH/STORE_REGISTER definitions.
1281 * infttrace.c (update_thread_state_after_attach): Pass address
1282 of ttstate_t object, not the object itself.
1286 * lin-lwp.c (stop_wait_callback): Remove bogus assertions in the
1287 code that deals with exiting/signalled threads. Replace with
1288 code similar to what's done in lin_lwp_wait.
1292 * ppc-linux-nat.c (fill_gregset, fill_fpregset): New functions.
1293 * config/powerpc/linux.mh (NATDEPFILES): Remove linux-thread.o.
1294 Add proc-service.o, thread-db.o, and lin-lwp.o.
1295 (LOADLIBES): Define.
1296 * config/powerpc/nm-linux.h (ATTACH_DETACH, SVR4_SHARED_LIBS):
1297 Remove defines which are already present in ../nm-linux.h.
1298 (solib.h): Don't include this file; it's already included by
1300 (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS, ATTACH_LWP): Define
1301 to use the following lin-lwp.c functions...
1302 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
1303 lin_lwp_attach_lwp): Declare.
1307 * m88k-nat.c (fetch_inferior_registers): Protoize.
1308 * m88k-tdep.c (m88k_skip_prologue): Protoize.
1312 * varobj.c (varobj_set_value): Call wrapped version of
1313 parse_exp_1() to avoid longjumps.
1317 * remote.c (putpkt_binary): Call read_frame, not getpkt. Log message.
1318 (read_frame): Do not call error() on communication error when
1319 reading checksum, but return failure instead and log message.
1323 * ser-unix.c (do_unix_readchar): Prevent infinite read wait to be
1324 interrupted after 32K seconds.
1328 * language.c (show_case_command, set_case_command): Protoize.
1329 * m3-nat.c (m3_xfer_memory, fetch_thread_info): Protoize.
1333 * lin-thread.c (threadlist_iter, get_lwp_from_thread_id,
1334 thread_db_xfer_memory): Protoize.
1335 * linux-thread.c (iterate_active_threads): Protoize.
1339 * objfiles.c (objfile_relocate): Don't assume that offsets
1340 associated with one of SECT_OFF_TEXT, SECT_OFF_DATA, or
1341 SECT_OFF_BSS will be adequate for relocating all of the
1342 sections in an objfile.
1346 * remote-rdi.c (arm_rdi_open): Fix typo in error message.
1350 * remote-mips.c (mips_expect, mips_getstring, mips_send_packet,
1351 mips_send_packet, pmon_insert_breakpoint, send_srec,
1352 pmon_check_ack, pmon_check_entry_address,
1353 _initialize_remote_mips): Replace the magic two seconds with
1355 (pmon_check_entry_address, pmon_check_total): New functions. Use
1356 ``remote_timeout'' instead of magic two seconds.
1357 (pmon_end_download): Rewrite. Use pmon_check_entry_address and
1362 * MAINTAINERS: Added myself.
1366 * acinclude.m4 (CY_GNU_GETTEXT): Add dummy definition, so that the
1367 one brought in by ../bfd/acinclude.m4 prevails.
1368 * aclocal.m4, configure: Rebuilt.
1372 * configure.in (HAVE_STRUCT_LINK_MAP32): Change test to use
1373 AC_TRY_COMPILE instead of AC_TRY_RUN.
1374 * configure: Regenerate.
1378 * irix4-nat.c (fetch_core_registers): Protoize.
1379 * irix5-nat.c (fetch_core_registers, find_solib): Protoize.
1383 * lin-lwp.c (normal_mask, blocked_mask): New variables.
1384 (lin_lwp_wait): Block SIGCHLD here if it isn't already blocked.
1385 (lin_lwp_mourn_inferior): Restore the origional signal mask, and
1386 reset the mask of blocked signals.
1387 (_initialize_lin_lwp): Don't block SIGCHLD here, but do initialize
1388 suspend_mask and blocked_mask. This makes us pass
1389 gdb.base/sigall.exp for Linux/x86 now.
1390 (lin_thread_get_thread_signals): Treat the LinuxThreads "cancel"
1391 signal similarly to SIGCHLD in the generic code. Avoids GDB being
1392 terminated by a Real-time signal.
1396 * infptrace.c, infttrace.c (child_xfer_memory): Protoize.
1400 * config/i386/nbsd.mt (TDEPFILES): Add i386nbsd-tdep.o.
1401 * i386nbsd-nat.c (i386nbsd_use_struct_convention): Moved from here.
1402 * i386nbsd-tdep.c (i386nbsd_use_struct_convention): To here.
1403 * i386nbsd-tdep.c: New file.
1407 * i386mach-nat.c (fetch_inferior_registers, fetch_core_registers):
1409 * i960-tdep.c (i960_skip_prologue, leafproc_return, mem): Protoize.
1413 * aclocal.m4: Regenerate.
1414 * config.in, configure: Regenerate.
1418 * remote-rdi.c (voiddummy): Update function signature to match
1419 struct Dbg_HostosInterface's reset method.
1420 * remote-rdp.c (rdp_step): Fix handle parameter to
1421 remote_rdp_insert_breakpoint and remote_rdp_remove_breakpoint.
1423 * arm-tdep.c (SIGCONTEXT_REGISTER_ADDRESS_P): Provide default
1425 (arm_init_extra_frame_info): Use.
1429 * m68hc11-tdep.c (m68hc11_store_return_value): Store the value
1430 in D and X if it's larger than 16-bits.
1431 (m68hc11_extract_return_value): Fix extractions for 1 and 3 bytes
1433 (m68hc11_push_return_address): Use CALL_DUMMY_ADDRESS for the
1435 (m68hc11_use_struct_convention): Check for struct and union.
1436 (m68hc11_return_value_on_stack): Use the struct convention.
1437 (m68hc11_call_dummy_address): Use the entry point address.
1438 (m68hc11_push_arguments): Fix alignment and padding.
1439 (m68hc11_stack_align): New function.
1440 (m68hc11_gdbarch_init): Register it.
1444 * arm-linux-tdep.c (arm_linux_skip_solib_resolver):
1445 Removed debug print statement. Removed arm_pc_is_thumb prototype.
1446 * config/arm/tm-arm.h (arm_pc_is_thumb, arm_pc_is_thumb_dummy):
1447 Move prototypes here from tm-embed.h.
1448 * config/arm/tm-embed.h (arm_pc_is_thumb, arm_pc_is_thumb_dummy):
1449 Remove prototypes. Moved to tm-arm.h.
1453 * TODO: Add hardware watchpoint problems on x86 OSes for 5.1.
1457 * ia64-tdep.c (examine_prologue): Add rotating register rename
1458 support for the general registers.
1459 (ia64_get_saved_register): Add rotating register rename support
1460 for the predicate registers and the floating-point registers.
1464 * config/arm/tm-linux.h (arm_linux_sigcontext_register_address,
1465 arm_linux_in_sigtramp): Declare.
1466 (IN_SIGTRAMP, SIGCONTEXT_REGISTER_ADDRESS): Define.
1467 * arm-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Define to be 0
1468 if not already defined by tm.h.
1469 (arm_scan_prologue): Don't assume that the prologue instructions
1470 will be in a contiguous clump.
1471 (arm_init_extra_frame_info): Add support for sigtramp frames.
1472 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Change type of
1473 `memaddr' from bfd_vma to CORE_ADDR.
1474 * arm-linux-tdep.c (gdbcore.h, frame.h): Include.
1475 (arm_pc_is_thumb): Declare.
1476 (arm_linux_skip_solib_resolver): Fix printf() statement. [Which
1477 shouldn't be there anyway.]
1478 (ARM_LINUX_SIGRETURN_INSTR, ARM_LINUX_RT_SIGRETURN_INSTR): New
1480 (arm_linux_in_sigtramp, arm_linux_sigcontext_register_address):
1485 * i386aix-nat.c (fetch_core_registers): Protoize.
1486 * hpux-thread.c (hpux_thread_xfer_memory): Protoize.
1490 * m68hc11-tdep.c (m68hc11_frame_chain): Check for pc in call dummy.
1491 (m68hc11_guess_from_prologue): 'des' instruction to allocate 1 byte
1492 on the stack can appear in the prologue.
1496 * sol-thread.c (ps_pdmodel): Protect with an ifdef.
1500 * gdbarch.sh: Use printf instead of echo.
1501 (do_read): During read, pad ``::'' with spaces and then strip out
1502 those spaces. Avoid problems with IFS=:.
1506 * config/i386/nm-linux.h: Include <signal.h>.
1510 * c-typeprint.c (c_typedef_print): remove (replaced by
1511 typedef_print in typeprint.c).
1512 * typeprint.c (typedef_print): new function. (old c_typedef_print
1513 function with pascal language support added).
1514 * value.h (c_printdef_print): removed.
1515 (typedef_print): declare.
1516 * symtab.c (print_symbol_info): call to c_typedef_print replaced
1517 by call to typedef_print.
1521 * config/i386/nm-linux.h (PREPARE_TO_PROCEED, ATTCH_LWP,
1522 GET_THREAD_SIGNALS): New defines.
1523 * config/i386/linux.mh (NATDEPFILES): Remove lin-thread.o and
1524 linux-threads.o. Add proc-service.o, thread-db.o and lin-lwp.o.
1525 * proc-service.c: New file.
1526 * thread-db.c: New file.
1527 * lin-lwp.c: New file.
1529 * gdb_assert.h: New file.
1531 * gdb_thread_db.h [HAVE_THREAD_DB_H]: Include <thread_db.h>.
1532 [!HAVE_THREAD_DB_H]: Update from current glibc thread_db.h. Deal
1533 with absence of <stdint.h> here.
1535 * gdb_proc_service.h: Add copyright notice.
1536 Protect against multiple inclusion.
1537 Add fix for broken prfpregset_t here.
1538 (struct ps_prochandle): Declare here.
1539 [HAVE_PROC_SERVICE_H]: Include <proc_service.h>.
1540 [!HAVE_PROC_SERVICE_H]: Include "gregset.h", define prgregset_t
1541 and prfpregset_t in terms of gdb_gregset_t and gdb_fpregset_t if
1543 * lin-thread.c: Unconditionally include "gdb_proc_service.h".
1544 Remove fix for broken prfpregset_t here.
1545 (struct ps_prochandle): Don't declare here.
1547 * MAINTAINERS: Add myself as threads co-maintainer.
1551 * arch-utils.c arch-utils.h blockframe.c fork-child.c:
1552 Corrected comment spelling dependant->dependent.
1553 * corelow.c (default_core_sniffer): Corrected comment
1555 * cp-valprint.c (cp_print_value_fields): Corrected
1557 * d10v-tdep.c dbxread.c: Corrected comment spelling
1559 * defs.h: Corrected spelling, meant 64, not 32, in comment.
1560 * dst.h eval.c event-loop.c: Corrected comment spelling.
1561 * event-top.c gdb-events.sh: Corrected comment spelling.
1562 * gdbarch.c: Corrected comment spelling.
1563 * gdbarch.h gdbarch.sh: Corrected comment spelling,
1564 dependant->dependent.
1565 * gdbtypes.c gdbtypes.h: Corrected comment spelling.
1566 * infcmd.c infrun.c: Corrected comment spelling.
1567 * symfile.c symfile.h target.h: Corrected comment spelling,
1568 dependant->dependent.
1569 * tracepoint.h: Corrected comment spelling.
1573 * hppa-tdep.c (record_text_segment_lowaddr): Protoize.
1574 * hppah-nat.c (child_xfer_memory): Protoize.
1578 * symtab.c (decode_line_1): Make sure leading character is
1579 actually a colon before skipping over leading colons in global
1580 namespace specification.
1584 * regcache.c (reg_flush_command): New function. Maintainer-mode
1585 command, flushes GDB's register cache, for testing purposes.
1589 * dcache.c (dcache_info): Output a cache line's state vector so it
1590 lines up under the data vector.
1592 * dcache.c (dcache_read_line): New function.
1593 (dcache_peek_byte): Use it.
1594 (dcache_alloc): Return NULL if write of reclaimed cache line fails.
1595 (dcache_peek_byte, dcache_poke_byte): Return failure if
1596 dcache_alloc() returns a NULL data block pointer.
1597 (dcache_xfer_memory): Don't force writeback unless we were writing.
1599 * monitor.c (monitor_expect): Change places where immediate_quit
1600 is set to 1 or 0 to increments and decrements respectively. This
1601 allows such changes to nest properly.
1602 * ocd.c (ocd_start_remote): Likewise.
1603 * remote-adapt.c (expect): Likewise.
1604 * remote-array.c (expect): Likewise.
1605 * remote-eb.c (expect): Likewise.
1606 * remote-e7000.c (e7000_start_remote): Likewise.
1607 * remote-mips.c (mips_expect_timeout, mips_getstring): Likewise.
1608 * remote-nrom.c (expect): Likewise.
1609 * remote-os9k.c (expect): Likewise.
1610 * remote-sds.c (sds_start_remote): Likewise.
1611 * remote-st.c (expect): Likewise.
1612 * remote-utils.c (sr_expect): Likewise.
1613 * remote.c (remote_start_remote): Likewise.
1614 * tracepoint.c (read_actions): Likewise.
1616 * remote-mips.c (mips_getstring): Balance changes to immediate_quit.
1620 * MAINTAINERS: Add myself to write-after-approval list.
1624 * gnu-nat.c (gnu_xfer_memory): Protoize.
1625 * hp-psymtab-read.c (scan_procs, hp_quick_traverse): Protoize.
1629 * solib.c (solib_extract_address, LM_ADDR, LM_NEXT, LM_NAME,
1630 LM_ADDR, IGNORE_FIRST_LINK_MAP_ENTRY, first_link_map_member,
1631 open_symbol_file_object, current_sos): Rename
1632 bfd_elf_get_arch_size to bfd_get_arch_size().
1633 * sol-thread.c (rw_common, ps_pdmodel): Likewise.
1639 * rs6000-nat.c (xcoff_relocate_symtab): Pass correct size
1644 * valops.c (value_cast): Indentation fix-up.
1645 * acconfig.h (HAVE_PRGREGSET32_T, HAVE_PRFPREGSET32_T,
1646 HAVE_STRUCT_LINK_MAP32): New configure macros.
1648 * configure.in: Test for the above new macros.
1649 * breakpoint.c: Update copyright date.
1650 * core-sol2.c: Include v9/sys/privregs.h directly to
1651 work around a bug in Sun's Solaris 8 header files.
1652 (fetch_core_registers): Use the above new configure macros to
1653 handle cross-debugging of 32-bit core files on a 64-bit host.
1654 * sol-thread.c (ps_pdmodel) New function.
1655 (rw_common): For debugging of 32-bit apps on a 64-bit host,
1656 truncate addresses to 32 bits.
1657 * solib.c (solib_extract_address): Functionize. Make 32/64 aware.
1658 (LM_ADDR, LM_NEXT, LM_NAME): Ditto.
1659 (IGNORE_FIRST_LINK_MAP): Ditto.
1660 (first_link_map_member): Make 32/64 aware.
1661 (open_symbol_file_object): Ditto.
1662 (current_sos): Ditto.
1666 * i386-linux-nat.c (i386_linux_skip_solib_resolver,
1667 skip_hurd_resolver, find_minsym_and_objfile): Move these
1668 solib functions into i386-linux-tdep.c for cross debugging.
1669 * i386-linux-tdep.c: Receive the above functions.
1673 * m68hc11-tdep.c (stack_correction): New variable for stack offset
1674 correction (1 for 68hc11, 0 for 68hc12).
1675 (m68hc11_saved_pc_after_call): Use it.
1676 (m68hc11_frame_chain): Likewise.
1677 (m68hc11_frame_init_saved_regs): Likewise.
1678 (m68hc11_init_extra_frame_info): Likewise.
1679 (m68hc11_push_return_address): Likewise.
1680 (m68hc11_push_arguments): Struct address must be corrected by
1681 applying the stack_correction offset.
1682 (m68hc11_store_struct_return): Likewise.
1686 * gdbserver/utils.c (error, fatal): Protoize.
1690 * i386-linux-nat.c (fetch_inferior_registers): Move call to
1691 dummy_sse_values ...
1692 (supply_fpregset): ... here.
1696 * pa64solib.c (pa64_solib_load_symbols): Don't use ANOFFSET as an
1698 * xcoffread.c (xcoff_symfile_offsets): Ditto
1699 * somsolib.c (som_solib_section_offsets): Ditto.
1700 * somread.c (som_symfile_offsets): Ditto.
1701 * rs6000-nat.c (vmap_symtab): Ditto.
1702 * remote-vx.c (vx_add_symbols): Ditto.
1703 * remote-os9k.c (rombug_wait): Ditto.
1707 * gregset.h: Protect against multiple inclusion. Remove some
1712 * win32-nat.c (dll_symbol_command): Tack a .dll on the end of a
1713 supplied argument if it is missing an extension.
1717 * corelow.c: Define O_BINARY if it isn't defined.
1718 (core_open): Open core file in binary mode.
1719 * config/i386/tm-cygwin.h (child_clear_solibs): Rename from
1721 * config/i386/cygwin.mh: Add dependency from corelow.o.
1722 * win32-nat.c (register_loaded_dll): New function. Add dll to the list
1723 of currently loaded dlls.
1724 (handle_load_dll): Use register_loaded_dll.
1725 (child_solib_add): Distinguish between active process and core targets.
1726 (solib_symbols_add): Load symbols from loaded dll.
1727 (core_dll_symbols_add): New function. Load symbols from dll referenced
1729 (core_section_load_dll_symbols): New function.
1730 (dll_code_sections_add): New function.
1731 (map_single_dll_code_section): New function.
1732 (fetch_elf_core_registers): New function.
1733 (_initialize_core_win32): New function.
1737 * gdbserver/gdbreplay.c (main): Protoize.
1738 * gdbserver/server.c (start_inferior, main): Protoize.
1742 * m68hc11-tdep.c (m68hc11_register_names): Update name of registers.
1743 (m68hc11_get_register_info): New function.
1744 (m68hc11_initialize_register_info): New function to get addresses
1746 (m68hc11_which_soft_register): New function.
1747 (m68hc11_fetch_pseudo_register, m68hc11_store_pseudo_register):
1748 New functions to translate read/write of soft registers into a
1750 (m68hc11_guess_from_prologue): Initialize soft register addresses.
1751 Use the soft register addresses to guess the prologue.
1752 (m68hc11_gdbarch_init): Install the pseudo registers.
1754 * m68hc11-tdep.c (m68hc11_register_name, m68hc11_breakpoint_from_pc,
1755 m68hc11_saved_pc_after_call, m68hc11_frame_saved_pc,
1756 m68hc11_frame_args_address, m68hc11_frame_locals_address,
1757 m68hc11_guess_from_prologue, m68hc11_push_arguments,
1758 m68hc11_call_dummy_address, m68hc11_call_dymmy_address,
1759 m68hc11_register_virtual_type, m68hc11_store_struct_return,
1760 m68hc11_store_return_value, m68hc11_extract_return_value,
1761 m68hc11_use_struct_convention, m68hc11_return_value_on_stack,
1762 m68hc11_extract_struct_value_address, m68hc11_push_return_address,
1763 m68hc11_register_byte, m68hc11_register_raw_size,
1764 m68hc11_gdbarch_init): New functions for multi-arch support.
1765 (m68hc11_not_yet): Remove.
1769 * regcache.c (register_changed): New function.
1770 * value.h: Declare it.
1774 * symtab.c (search_symbols): Fix off by one error in index for
1775 initializing variables ourtype, ourtype2, ourtype3, and ourtype4.
1776 (symtab_symbol_info): fix similar off by one error.
1780 * gdbarch.sh (TARGET_ADDR_BIT): New macro for the number
1781 of bits in gdb's representation of a target address.
1782 * gdbarch.c, gdbarch.h: Regenerated.
1783 * gdbtypes.c (build_gdbtypes): Use TARGET_ADDR_BIT instead of
1784 TARGET_PTR_BIT when initializing builtin_type_CORE_ADDR.
1785 * printcmd.c (print_address_numeric): Use TARGET_ADDR_BIT instead
1786 of TARGET_PTR_BIT, because we're printing an address, not a pointer.
1790 * Makefile.in: add rules to compile and link pascal specific files.
1791 * config/djgpp/fnchange.lst: add substitution for p-exp.tab.c.
1795 * remote.c (read_frame): Handle SERIAL_TIMEOUT while reading
1800 * dstread.c (dst_symfile_offsets): Protoize.
1801 * fork-child.c (fork_inferior): Protoize.
1805 * dbxread (dbx_symfile_read, process_later): Protoize.
1806 * dsrec.c (load_srec): Protoize.
1810 * mips-tdep.c (mips_gdbarch_init): Check arches->gdbarch and not
1811 current_gdbarch for a match.
1815 * MAINTAINERS: Add myself as dcache.c maintainer.
1817 * remote-nindy.c (nindy_load): Invalidate dcache.
1819 * dcache.c (dcache_invd): Renamed from dcache_flush. The term
1820 flush with respect to caches usually implies that data will be
1822 (dcache_init, dcache_xfer_memory): Updated.
1823 * monitor.c (flush_monitor_dcache, monitor_resume, monitor_load):
1825 * ocd.c (ocd_open, ocd_resume, bdm_reset_command): Updated.
1826 * remote-bug.c (bug_load, bug_resume): Updated.
1827 * remote-nindy.c (nindy_open, nindy_resume): Updated.
1828 * remote-sds.c (sds_open, sds_resume): Updated.
1829 * remote-utils.c (gr_open): Updated.
1830 * remote.c (remote_open_1, remote_resume, remote_async_resume,
1831 remote_cisco_open): Updated.
1832 * wince.c (child_create_inferior, child_resume): Updated.
1834 * monitor.c (monitor_open): Free dcache before creating a new one.
1835 * dcache.c (dcache_free): New function.
1836 * dcache.h (dcache_free): New prototype.
1840 * remote-array.c (array_fetch_register): Pass dummy parameter to
1841 array_fetch_registers.
1842 (array_store_register): Ditto.
1846 * value.h (struct value) <lazy>: Add a comment about its use for
1851 * cxux-nat.c (fetch_inferior_registers): Protoize.
1852 * d10v-tdep.c (d10v_frame_chain_valid, d10v_extract_return_value):
1854 * d30v-tdep.c (d30v_frame_chain_valid, d30v_extract_return_value):
1859 * config/mn10300/tm-mn10300.h (REGISTER_SIZE,
1860 MAX_REGISTER_RAW_SIZE, REGISTER_VIRTUAL_TYPE, REGISTER_BYTE,
1861 REGISTER_VIRTUAL_SIZE, REGISTER_RAW_SIZE): Disable.
1862 * mn10300-tdep.c (mn10300_do_registers_info,
1863 mn10300_print_register): New functions. Pretty print registers.
1864 (mn10300_register_virtual_type, mn10300_register_byte,
1865 mn10300_register_virtual_size, mn10300_register_raw_size): New
1867 (mn10300_gdbarch_init): Update.
1869 * mn10300-tdep.c (mn10300_gdbarch_init): Check for mn10300 variant
1870 and not mips variant in the info struct.
1874 * i386-linux-nat.c [! HAVE_PTRACE_GETFPXREGS] (fetch_fpxregs,
1875 store_fpxregs): Return 0.
1879 * regcache.c (GET_SAVED_REGISTER): Restore definition. Was lost
1884 * dcache.c (dcache_info): Don't print cache state if last_cache
1889 * config/mn10300/tm-mn10300.h, mn10300-tdep.c
1890 (mn10300_push_arguments): Fix function signature to match gdbarch
1892 * config/mn10300/tm-mn10300.h (REGISTER_NAME): Delete.
1893 * mn10300-tdep.c (struct gdbarch_tdep): Define.
1894 (mn10300_generic_register_names, am33_register_names): Convert to
1896 (set_machine_hook): Delete.
1897 (register_name): New function.
1898 (mn10300_register_name): Delete.
1899 (mn10300_dump_tdep, mn10300_gdbarch_init): New functions.
1900 (_initialize_mn10300_tdep): Call register_gdbarch_init instead of
1901 specify_exec_file_hook.
1902 (AM33_MODE): Define.
1903 (set_movm_offsets): Update.
1907 Adapt support for SSE registers in Linux/x86 for Linux 2.4.
1908 * i386-linux-nat.c: Various doc fixes. Include "i387-nat.h".
1909 (GETFPXREGS_SUPPLIES): Renamed from GETXFPREGS_SUPPLIES.
1910 (have_ptrace_getfpxregs): Renamed from have_ptrace_getxfpregs.
1911 (convert_to_gregset): Removed. Moved logic to ...
1912 (fill_gregset): ... here. Simplified function.
1913 (fetch_regs): Use perror_with_name for error reporting.
1914 (store_regs): Add `regno' parameter. Use perror_with_name for
1915 error reporting. Call fill_gregset instead of convert_to_gregset.
1916 (FPREG_ADDR): Remove.
1917 (supply_fpregset): Implement by calling i387_supply_fsave.
1918 (convert_to_fpregset): Remove.
1919 (fill_fpregset): Implement by calling i387_fill_fsave.
1920 (fetch_fpregs): Use perror_with_name fro error reporting.
1921 (store_fpregs) Add `regno' parameter. Use perror_with_name fro
1922 error reporting. Call fill_fpregset instead of
1923 convert_to_fpregset.
1924 (supply_xfpregset, convert_to_xfpregset): Removed.
1925 (supply_fpxregset, fill_fpxregset): New functions.
1926 (fetch_fpxregs): Renamed from fetch_xfpregs. Use perror_with_name
1927 for error reporting. Call supply_fpxregset instead of
1929 (store_xfpregs): Removed.
1930 (store_fpxregs): New function.
1931 (fetch_inferior_registers): Adjust for xfp -> fpx change. Tweak
1932 message in call to internal_error.
1933 (store_inferior_registers): Adjust for xfp ->fpx change. Pass
1934 REGNO to store_regs, store_fpregs and store_fpxregs.
1935 (fetch_core_registers): Adjust for xfp -> fpx change.
1936 * acconfig.h (HAVE_PTRACE_GETFPXREGS): Renamed from
1937 HAVE_PTRACE_GETXFPREGS.
1938 * config.in: Regenerated.
1939 * configure.in: Replace check for PTRACE_GETXFPREGS with check for
1940 PTRACE_GETFPXREGS. Remove comment about Cygnus SSE extensions.
1941 * configure: Regenerated.
1942 * config/i386/linux.mh (NATDEPFILES): Add i387-nat.o.
1943 * config/i386/tm-linux.h: Base definition of HAVE_SSE_REGS on
1944 HAVE_PTRACE_GETFPXREGS instead of HAVE_PTRACE_GETXFPREGS.
1948 * regcache.c (TARGET_WRITE_PC, TARGET_READ_PC, TARGET_READ_FP,
1949 TARGET_WRITE_FP, TARGET_READ_SP, TARGET_WRITE_SP): Move
1950 initialization from here.
1951 * gdbarch.sh: To here.
1952 * gdbarch.h, gdbarch.c: Regenerate.
1956 * defs.h (TARGET_BFD_VMA_BIT, TARGET_SHORT_BIT, TARGET_INT_BIT,
1957 TARGET_LONG_BIT, TARGET_LONG_LONG_BIT, TARGET_FLOAT_BIT,
1958 TARGET_DOUBLE_BIT, TARGET_LONG_DOUBLE_BIT, TARGET_PTR_BIT): Move
1959 non- multi-arch handling from here.
1960 * gdbarch.sh: To here. Update printf gdbarch_update_p. Make more
1962 * gdbarch.h, gdbarch.c: Regenerate.
1966 * partial-stab.h (DBX_READ): Eliminate redundant check for null
1967 ``pst''. Also fixes GCC warning.
1971 * rs6000-nat.c (set_host_arch): Check value returned by
1973 * gdbarch.sh (gdbarch_update_p): Rename gdbarch_update.
1974 * gdbarch.h, gdbarch.c: Regenerate
1975 * arch-utils.c (set_gdbarch_from_file,
1976 initialize_current_architecture, set_endian): Update.
1980 * c-lang.c: Set case sensitivity on for c_language_defn,
1981 cplus_language_defn, and asm_language_defn.
1982 * ch-lang.c: Set case sensitivity on for chill_language_defn.
1983 * f-lang.c: Set case sensivitity off for f_language_defn.
1984 * jv-lang.c: Set case sensitivity on for java_language_defn.
1985 * language.h: Add enum case_mode, case_sensitivity.
1986 * language.c: Define case_mode, case_sensitivity. Set case
1987 sensitivity on for unknown_language_defn, auto_language_defn,
1988 and local_language_defn.
1989 (show_case_command,set_case_command,set_case_str): New static func.
1990 (set_type_range_case): New static func, replaces set_type_range ().
1991 (set_language_command,set_type_command,set_range_command,set_language):
1992 Call set_type_range_case ().
1993 (language_info): Print case sensitivity setting.
1994 (_initialize_language): Add set/show commands for 'case-sensitive'.
1995 Set default case mode 'auto'. Set default language 'auto'.
1996 * m2-lang.c: Set case sensitivity on for m2_language_defn.
1997 * p-lang.c: Set case sensitivity on for pascal_language_defn.
1998 * scm-lang.c: Set case sensitivity off for scm_language_defn.
1999 * symtab.c (lookup_symbol): Downcase symbol name if case sensivitity
2004 * MAINTAINERS: Change my contact email for hp tests maintainership.
2008 * sparc-tdep.c (sparc_init_extra_frame_info): Fix number of
2009 arguments to fetch_instruction.
2013 * hppa_tdep.c: Fix a comment typo.
2014 * gdba.el: Likewise.
2018 * MAINTAINERS: Added myself with write-after-approval access.
2022 * monitor.c (monitor_open): If a dcache has already been created,
2023 invalidate it rather than creating another.
2024 * ocd.c (ocd_open): Likewise.
2025 * remote-nindy.c (nindy_open): Likewise.
2026 * remote-sds.c (sds_open): Likewise.
2027 * remote-utils.c (gr_open): Likewise.
2028 * remote.c (remote_open_1, remote_cisco_open): Likewise.
2030 * dcache.c (dcache_alloc): Changed to take address of line as an
2031 argument, and to invalidate cache line before returning.
2032 (dcache_peek_byte): Updated.
2033 (dcache_poke_byte): Updated.
2038 * partial-stab.h: Don't crash if pst is null.
2042 * i387-nat.h (i387_supply_fsave, i387_fill_fsave): Make extern.
2043 (i387_supply_fxsave, i387_fill_fxsave): New prototypes.
2044 * i387-nat.c (i387_supply_fsave): Declare `val' as `unsigned int'.
2045 (fxsave_offset): New variable.
2046 (FXSAVE_ADDR): New macro.
2047 (i387_supply_fxsave, i387_fill_fxsave, i387_tag): New functions.
2051 * jv-valprint.c (java_value_print): Only print non-null Strings.
2055 * core-sol2.c (fetch_core_registers): Protoize; add prefatory
2057 * corefile.c (specify_exec_file_hook, generic_search): Protoize.
2061 * blockframe.c (sigtramp_saved_pc): Use dynamic allocation,
2062 since TARGET_PTR_BIT is no longer a constant (MULTI_ARCH).
2063 * irix4-nat.c (get_longjmp_target): Ditto.
2064 * irix5-nat.c (get_longjmp_target): Ditto.
2065 * jv-valprint.c (java_value_print): Ditto.
2066 * m3-nat.c (get_cprocs): Ditto.
2067 * m68k-tdep.c (get_longjmp_target): Ditto.
2068 * mips-nat.c (get_longjmp_target): Ditto.
2069 * mipsv4-nat.c(get_longjmp_target): Ditto.
2070 * pa64solib.c (read_dynamic_info): Ditto.
2071 * solib.c (elf_locate_base): Ditto.
2075 * TODO: remove build_parse entry.
2079 * command.c (add_cmd, add_abbrev_cmd, add_prefix_cmd,
2080 add_abbrev_prefix_cmd): Protoize.
2084 * objfiles.h (SECT_OFF_BSS): Don't detect invalid sect_index_bss
2085 here, let the users of the macro do it.
2086 * symtab.h (ANOFFSET): Detect here if the section index is not
2088 * xcoffread.c (find_targ_sec): Don't treat .bss as special,
2089 because some objfiles may not have that section at all.
2090 * coffread.c (cs_to_section): Ditto.
2091 * elfread.c (elf_symtab_read): Detect an uninitialized index
2093 (elfstab_offset_sections): The macro ANOFFSET cannot be used as an
2095 * remote.c (get_offsets, remote_cisco_objfile_relocate): Don't use
2096 ANOFFSET as an lvalue.
2097 * objfiles.c (objfile_relocate, objfile_relocate): Don't use
2098 ANOFFSET as an lvalue.
2099 * symfile.c (default_symfile_offsets): Don't use ANOFFSET as an
2104 * parse.c (build_parse): don't write off the end of the std_regs
2109 * solib.c (bfd_lookup_symbol): Fall back on the dynamic symbol
2110 table if the symbol couldn't be found in the normal symbol table
2111 (i.e. if the shared object in question was stripped).
2115 * ch-exp.c (parse_opt_name_string): Protoize. [Thanks to Eli
2116 Zaretskii for the prefatory comment.]
2117 * core-regset.c (fetch_core_registers): Protoize; revise
2122 * win32-nat.c: Perform various gcc warning cleanups.
2123 (safe_symbol_file_add_cleanup): Reset stdout to saved stdout, not
2125 (dll_symbol_command): Pass OBJF_USERLOADED to safe_symbol_file_add.
2126 (get_child_debug_event): Always reset last_sig. Always reset inferior
2128 (do_initial_child_stuff): New function. Called when attaching or
2129 starting a new inferior process.
2130 (child_attach): Use do_initial_child_stuff.
2131 (child_create_inferior): Ditto.
2132 * config/i386/cygwin.mh (NAT_FILE): Set to modern location.
2133 * config/i386/tm-cygwin.h: Define ATTACH_NO_WAIT.
2137 * go32-nat.c: (go32_wait): If child_cwd[] is empty, initialize
2138 it to GDB's current directory.
2139 (go32_create_inferior, init_go32_ops): Initialize child_cwd[] to
2140 an empty string, to signal an uninitialized value.
2145 * symtab.h (fixup_psymbol_section): Declare.
2146 * symtab.c (fixup_psymbol_section): Make extern.
2147 (fixup_section): Fix up section as well as bfd_section.
2148 * objfiles.c (objfile_relocate): Call fixup_symbol_section
2149 or fixup_psymbol_section before attempting to access
2150 the SYMBOL_SECTION component of a symbol or partial symbol.
2154 * minsyms.c (build_minimal_symbol_hash_tables): New function.
2155 (compact_minimal_symbols): Don't construct hash tables here.
2156 (install_minimal_symbols): Instead, construct them here.
2157 (msymbols_sort): And rebuild them here too.
2159 * dwarf2read.c (struct comp_unit_head): Add fields offset_size
2160 and initial_length_size. Change type of ``length'' field to long.
2161 (read_initial_length, read_offset): New functions.
2162 (dwarf2_build_psymtabs_easy): Call read_initial_length() instead
2163 of just reading 4 bytes.
2164 (read_comp_unit_head): Likewise; also, call read_offset() to
2165 fetch the offset instead of just reading 4 bytes.
2166 (dwarf_decode_lines): Likewise.
2167 (read_comp_unit_head): Fix internal error message so it
2168 accurately reflects the function in which the error occurred.
2169 (dwarf2_build_psymtabs_hard): Properly account for size of the
2170 initial length field in the section.
2171 (read_attribute, dwarf2_get_ref_die_offset): Add a case for
2173 (dwarf2_build_psymtabs_hard, psymtabs_to_symtab_1): Don't
2174 assume that the .text section will have index 0 in the
2175 section_offsets table.
2179 * remote.c (enum Z_packet_type): Define.
2180 (remote_protocol_Z): Change to an array of size NR_Z_PACKET_TYPES.
2181 (remote_insert_watchpoint): Check watchpoint type.
2182 (watchpoint_to_Z_packet): New function.
2183 (enum packet_result): Define.
2184 (packet_ok): New function. Return enum packet_result.
2185 (init_all_packet_configs): New function.
2186 (remote_open_1, remote_async_open_1, remote_cisco_open): Use
2187 init_all_packet_configs instead of initializing remote_protocol_P,
2188 remote_protocol_Z, remote_protocol_binary_download separatly.
2189 (remote_remove_hw_breakpoint, remote_insert_hw_breakpoint,
2190 remote_remove_watchpoint, remote_insert_watchpoint): Use
2191 watchpoint_to_Z_packet and packet_ok. Remove #ifdef
2192 TARGET_HAS_HARDWARE_WATCHPOINTS.
2193 (set_remote_protocol_Z_software_bp_packet_cmd,
2194 show_remote_protocol_Z_software_bp_packet_cmd,
2195 set_remote_protocol_Z_hardware_bp_packet_cmd,
2196 show_remote_protocol_Z_hardware_bp_packet_cmd,
2197 set_remote_protocol_Z_write_wp_packet_cmd,
2198 show_remote_protocol_Z_write_wp_packet_cmd,
2199 set_remote_protocol_Z_read_wp_packet_cmd,
2200 show_remote_protocol_Z_read_wp_packet_cmd,
2201 set_remote_protocol_Z_access_wp_packet_cmd,
2202 show_remote_protocol_Z_access_wp_packet_cmd): New functions.
2203 (remote_Z_packet_packet_detect): New variable.
2204 (show_remote_protocol_Z_packet_cmd,
2205 set_remote_protocol_Z_packet_cmd): Iterate over all ``Z'' packet
2207 (add_packet_config_cmd): Add argument legacy. Change syntax to
2208 ``set/show remote FULL_NAME-packet ...'' command. Add ``set/show
2209 remote XXX-packet ...'' command using add_alias_cmd when legacy.
2210 (set_packet_config_cmd): Delete.
2211 (show_remote_cmd): New function.
2217 * Makefile.in (infodir, SER_HARDWIRE): Fix merge problems from
2222 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Add.
2223 * gdbarch.h, gdbarch.c: Regenerate.
2224 * valops.c (hand_function_call): Replace #ifndef
2225 NO_EXTRA_ALIGNMENT_NEEDED with if EXTRA_STACK_ALIGNMENT_NEEDED.
2227 * d10v-tdep.c (d10v_gdbarch_init): Set
2228 extra_stack_alignment_needed to 0.
2229 * config/d10v/tm-d10v.h (NO_EXTRA_ALIGNMENT_NEEDED): Delete.
2230 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2231 NO_EXTRA_ALIGNMENT_NEEDED.
2235 * MAINTAINERS (m68hc11): Stephane Carrez is maintainer.
2239 * breakpoint.c (bpstat_alloc, map_catch_names,
2240 map_breakpoint_numbers): Protoize.
2244 * remote-mips.c (mips_expect, mips_expect_timeout, common_open,
2245 fputs_readable): Make string pointer arguments constant.
2249 * MAINTAINERS, TODO: Tweeks.
2253 * TODO (5.1): Update.
2257 * alpha-tdep.c (alpha_extract_return_value): Protoize.
2261 * gdbarch.sh: Add print_p field for CALL_DUMMY_BREAKPINT_OFFSET
2262 to be printed only if CALL_DUMMY_BREAKPOINT_OFFSET_P.
2264 * gdbarch.c: Regenerated.
2268 * remote-vx.c (vx_add_symbols): Fix typos.
2272 * arch-utils.h, gdbarch.c (default_register_sim_regno): New
2274 * gdbarch.sh (REGISTER_SIM_REGNO): Add.
2275 * gdbarch.h, gdbarch.c: Regenerate.
2276 * remote-sim.c (REGISTER_SIM_REGNO): Delete definition.
2278 * config/d10v/tm-d10v.h (REGISTER_SIM_REGNO): Delete.
2279 * d10v-tdep.c (d10v_gdbarch_init): Update.
2280 (struct gdbarch_tdep): Delete member register_sim_regno.
2281 (d10v_register_sim_regno): Delete function.
2285 * remote.c (enum packet_detect, packet_support_enums,
2286 packet_support_auto, packet_enable, packet_disable): Delete.
2287 (show_packet_config_cmd, set_packet_config_cmd,
2288 init_packet_config): Use add_set_auto_boolean_cmd.
2293 * remote-udi.c (udi_xfer_inferior_memory, udi_files_info,
2294 udi_kill): Update function signatures so that match target vector.
2295 * MAINTAINERS: Update.
2303 * gdbarch.sh: Multiarch DO_REGISTERS_INFO macro.
2304 * gdbarch.h, gdbarch.c: Regenerate.
2305 * infcmd.c (do_registers_info): Make not static and
2307 * inferior.h (do_registers_info): Export.
2311 * MAINTAINERS: Add myself to "Write After Approval" list.
2315 * MAINTAINERS: Update list of target maintainers. List all
2317 (sh): Elena Zannoni is maintainer.
2318 (powerpc): Nick Duffek is a maintainer.
2322 * gdbarch.sh: Parse and save comments in the function_list. Print
2323 them out as part of the header. Convert all function definitions
2325 * gdbarch.h, gdbarch.c: Regenerate.
2329 * top.c (get_prompt_1), tracepoint.c (replace_comma): Update
2330 function signatures so that they match catch_errors and
2331 make_cleanup callbacks.
2333 * tracepoint.c (encode_actions): Fix arguments passed to
2334 stringify_collection_list.
2338 * ppc-tdep.h: New file.
2339 * Makefile.in (ppc-linux-tdep.o, rs6000-tdep.o): Add ppc-tdep.h
2341 * ppc-linux-tdep.c, rs6000-tdep.c (ppc-tdep.h): Include.
2343 * ppc-linux-tdep.c (ppc_linux_at_sigtramp_return_path): Made static.
2345 * rs6000-tdep.c (elf-bfd.h): Include.
2346 (gdbarch_tdep): Add field osabi to this struct.
2347 (rs6000_init_extra_frame_info, rs6000_frame_init_saved_regs,
2348 rs6000_frameless_function_invocation, rs6000_frame_saved_pc,
2349 rs6000_frame_chain): No longer static.
2350 (process_note_abi_tag_sections, get_elfosabi): New static
2352 (rs6000_gdbarch_init): Revised to accomodate ELF executables;
2353 also use Linux specific methods when the target is Linux.
2355 * config/powerpc/aix.mt, config/powerpc/cygwin.mt,
2356 config/powerpc/macos.mt, config/powerpc/nbsd.mt,
2357 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-nw.mt,
2358 config/powerpc/ppc-sim.mt, config/powerpc/ppcle-eabi.mt,
2359 config/powerpc/ppcle-sim.mt, config/powerpc/solaris.mt,
2360 config/powerpc/vxworks.mt, config/rs6000/aix4.mt,
2361 config/rs6000/rs6000.mt, config/rs6000/rs6000lynx.mt
2362 (TDEPFILES): Add ppc-linux-tdep.o.
2364 * config/tm-linux.h (SIGCONTEXT_PC_OFFSET, FRAME_SAVED_PC,
2365 INIT_EXTRA_FRAME_INFO, FRAMELESS_FUNCTION_INVOCATION,
2366 FRAME_INIT_SAVED_REGS, FRAME_CHAIN, PUSH_ARGUMENTS,
2367 MEMORY_REMOVE_BREAKPOINT: Removed defines.
2368 (ppc_linux_frame_saved_pc, ppc_linux_init_extra_frame_info,
2369 ppc_linux_frameless_function_invocation,
2370 ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain,
2371 ppc_sysv_abi_push_arguments, ppc_linux_memory_remove_breakpoint):
2372 Removed declarations.
2373 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Disabled.
2375 * dink32-rom.c (dink32_regnames): Make array size implicit.
2377 * ppc-bdm.h (ppc-tdep.h): Include.
2379 * rs6000-tdep.c, ppc-linux-tdep.c, ppc-bdm.h, ppc-tdep.h
2380 (GP0_REGNUM, TOC_REGNUM, PS_REGNUM, CR_REGNUM, LR_REGNUM,
2381 CTR_REGNUM, XER_REGNUM, MQ_REGNUM): Add PPC_ prefix.
2384 * ppc-tdep.h (ppc_linux_frame_saved_pc, rs6000_frame_saved_pc):
2385 Change return type to CORE_ADDR.
2386 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc): Likewise.
2390 * sh-tdep.c (sh_push_arguments): Make header match prototype.
2392 * remote-e7000.c (e7000_start_remote): Use void *, not char * as
2393 parameter to avoid compiler warning.
2394 (fetch_regs_from_dump): Call get_hex() with the correct number of
2399 * config/djgpp/fnchange.lst: Add file mappings as per last weekly
2404 * a29k-tdep.c, a68v-nat.c, abug-rom.c, alpha-nat.c,
2405 alpha-tdep.c, annotate.c, arc-tdep.c, arch-utils.c, ax-gdb.c,
2406 ax-general.c, blockframe.c, breakpoint.c, buildsym.c,
2407 c-lang.c, c-typeprint.c, c-valprint.c, ch-exp.c, ch-lang.c,
2408 ch-typeprint.c, ch-valprint.c, cli-out.c, coff-solib.c,
2409 coffread.c, command.c, complaints.c, copying.c, core-aout.c,
2410 core-regset.c, core-sol2.c, corefile.c, corelow.c,
2411 cp-valprint.c, cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c,
2412 d30v-tdep.c, dbug-rom.c, dbxread.c, dcache.c, delta68-nat.c,
2413 demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c, dstread.c,
2414 dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
2415 environ.c, eval.c, event-top.c, exec.c, expprint.c, f-lang.c,
2416 f-typeprint.c, f-valprint.c, findvar.c, fork-child.c,
2417 fr30-tdep.c, gdbarch.c, gdbserver/gdbreplay.c,
2418 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
2419 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
2420 gdbserver/low-sim.c, gdbserver/low-sparc.c,
2421 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
2422 gdbserver/utils.c, gdbtypes.c, gnu-nat.c, h8300-tdep.c,
2423 h8500-tdep.c, hp-psymtab-read.c, hp-symtab-read.c,
2424 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
2425 hppam3-nat.c, hpread.c, hpux-thread.c, i386-linux-nat.c,
2426 i386-stub.c, i386-tdep.c, i386aix-nat.c, i386b-nat.c,
2427 i386ly-tdep.c, i386m3-nat.c, i386mach-nat.c, i386nbsd-nat.c,
2428 i386v-nat.c, i386v4-nat.c, i387-tdep.c, i960-tdep.c,
2429 ia64-linux-nat.c, ia64-tdep.c, infcmd.c, inflow.c,
2430 infptrace.c, infrun.c, inftarg.c, infttrace.c, irix4-nat.c,
2431 irix5-nat.c, jv-lang.c, jv-typeprint.c, jv-valprint.c,
2432 kdb-start.c, kod-cisco.c, kod.c, language.c, lin-thread.c,
2433 linux-thread.c, lynx-nat.c, m2-lang.c, m2-typeprint.c,
2434 m2-valprint.c, m3-nat.c, m32r-rom.c, m32r-stub.c, m32r-tdep.c,
2435 m68hc11-tdep.c, m68k-stub.c, m68k-tdep.c, m68klinux-nat.c,
2436 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
2437 mac-xdep.c, maint.c, mcore-rom.c, mcore-tdep.c, mdebugread.c,
2438 mem-break.c, mi/mi-cmds.c, mi/mi-main.c, mi/mi-out.c,
2439 mi/mi-parse.c, minsyms.c, mips-nat.c, mips-tdep.c,
2440 mipsm3-nat.c, mipsread.c, mipsv4-nat.c, mn10200-tdep.c,
2441 mn10300-tdep.c, mon960-rom.c, monitor.c, news-xdep.c,
2442 nindy-tdep.c, nlm/gdbserve.c, nlm/i386.c, nlm/ppc.c,
2443 nlmread.c, ns32k-tdep.c, ns32km3-nat.c, ns32knbsd-nat.c,
2444 objfiles.c, ocd.c, op50-rom.c, os9kread.c, osfsolib.c,
2445 p-lang.c, p-typeprint.c, p-valprint.c, pa64solib.c, parse.c,
2446 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
2447 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
2448 proc-flags.c, proc-why.c, procfs.c, ptx4-nat.c,
2449 remote-adapt.c, remote-array.c, remote-bug.c, remote-e7000.c,
2450 remote-eb.c, remote-es.c, remote-est.c, remote-hms.c,
2451 remote-mips.c, remote-mm.c, remote-nindy.c, remote-nrom.c,
2452 remote-os9k.c, remote-rdi.c, remote-rdp.c, remote-sds.c,
2453 remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c,
2454 remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c,
2455 remote-vxmips.c, remote-vxsparc.c, remote.c, rom68k-rom.c,
2456 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-valprint.c,
2457 ser-e7kpc.c, ser-go32.c, ser-mac.c, ser-ocd.c, ser-unix.c,
2458 sh-stub.c, sh-tdep.c, sh3-rom.c, sol-thread.c, solib.c,
2459 somread.c, somsolib.c, source.c, sparc-nat.c, sparc-stub.c,
2460 sparc-tdep.c, sparcl-stub.c, sparcl-tdep.c, sparclet-rom.c,
2461 sparclet-stub.c, stabsread.c, stack.c, standalone.c,
2462 stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c, symfile.c,
2463 symm-nat.c, symm-tdep.c, symmisc.c, symtab.c, target.c,
2464 thread.c, tic80-tdep.c, top.c, tracepoint.c, tui/tui-file.c,
2465 tui/tui.c, tui/tuiLayout.c, tui/tuiRegs.c, tui/tuiStack.c,
2466 tui/tuiWin.c, typeprint.c, ui-file.c, ui-out.c, ultra3-nat.c,
2467 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
2468 valarith.c, valops.c, valprint.c, values.c, varobj.c,
2469 vax-tdep.c, w65-tdep.c, w89k-rom.c, win32-nat.c, wince.c,
2470 wrapper.c, xcoffread.c, xcoffsolib.c, xmodem.c, z8k-tdep.c:
2471 Convert old-style, pre-ISO function definitions to prototyped
2476 * sh-tdep.c (sh_gdbarch_init): For sh4 initialize
2477 register_convert_to_raw, register_convert_to_virtual,
2478 register_convertible.
2479 (sh_sh4_register_convertible): New function.
2480 (sh_sh4_register_convert_to_virtual): New function.
2481 (sh_sh4_register_convert_to_raw): New function.
2482 Include floatformat.h.
2487 * configure.tgt: Recognize the 68hc11.
2488 * m68hc11-tdep.c: New file for 68hc11 target.
2489 * config/m68hc11/m68hc11.mt: New file for 68hc11 port.
2491 * configure.tgt: When 68hc11, set gdb_multi_arch.
2495 * configure.in (GDB_MULTI_ARCH): Define from configure.tgt
2496 or makefile fragment.
2497 * acconfig.h (GDB_MULTI_ARCH): Add.
2498 * config.in, configure: Regenerate.
2500 * gdbarch.sh (GDB_MULTI_ARCH): Delete definition, moved to
2501 configure.in and defs.h. Use GDB_MULTI_ARCH_TM,
2502 GDB_MULTI_ARCH_PARTIAL and GDB_MULTI_ARCH_PURE in tests.
2503 * gdbarch.h, gdbarch.c: Regenerate.
2505 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM, ,
2506 GDB_MULTI_ARCH_PURE): Define. Only include "tm.h" when the target
2507 is less than pure multi-arch.
2511 * config/convex/tm-convex.h: Remove stray control characters.
2512 * config/m68k/tm-altos.h: Ditto.
2513 * config/tahoe/tm-tahoe.h: Ditto.
2517 * sh-tdep.c (sh_sh4_register_name, sh_sh4_register_byte,
2518 sh_sh4_register_raw_size, sh_sh4_register_virtual_type,
2519 sh_fetch_pseudo_register, sh_store_pseudo_register,
2520 sh_do_pseudo_register, sh_gdbarch_init): Fix names for pseudoregs,
2521 they should be numbered as drx fvy where x and y are multiples of
2522 2 and 4 respectively.
2524 * config/sh/tm-sh.h: Fix names of pseudo regs.
2528 * config/sh/tm-sh.h (struct gdbarch_tdep): Add sh4 specific
2530 (DO_REGISTERS_INFO): Define.
2532 * sh-tdep.c (sh_sh4_register_name): New function.
2533 (sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
2534 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs): Update
2536 (sh_show_regs_command): New function. Actual function called by
2538 (sh_register_byte): Rename to...
2539 (sh_default_register_byte): ...New function.
2540 (sh_sh4_register_byte): New function.
2541 (sh_register_raw_size): Rename to...
2542 (sh_default_register_raw_size): ...New function.
2543 (sh_sh4_register_raw_size): New function.
2544 (sh_sh4_register_virtual_type): New function.
2545 (sh_sh4_build_float_register_type): New function.
2546 (sh_fetch_pseudo_register, sh_store_pseudo_register): New
2548 (fv_reg_base_num, dr_reg_base_num): New functions.
2549 (do_fv_register_info, do_dr_register_info, sh_do_pseudo_register,
2550 sh_do_fp_register, sh_do_register, sh_print_register,
2551 sh_do_registers_info): New functions.
2552 (sh_gdbarch_init): Initialize sh4 pseudo registers to -1. Update
2553 architecture specific parts.
2554 (_initialize_sh_tdep): Use sh_show_regs_command for 'regs' command.
2558 * dwarf2read.c (read_structure_scope): Correct overzealous
2559 addition of cu_header argument.
2563 * TODO: Update. Two of my java patches are in.
2567 * gdbarch.sh: Add FETCH_PSEUDO_REGISTER and STORE_PSEUDO_REGISTER
2568 to the gdbarch structure.
2569 * gdbarch.c: Regenerate.
2570 * gdbarch.h: Regenerate.
2571 * inferior.h (FETCH_PSEUDO_REGISTER, STORE_PSEUDO_REGISTER):
2573 * regcache.c (write_register, read_register, write_register_bytes,
2574 write_register_gen, read_register_bytes, read_register_gen):
2575 Rename ARCH_FECTH_PSEUDO_REGISTERS to FETCH_PSEUDO_REGISTERS and
2576 ARCH_STORE_PSEUDO_REGISTER to STORE_PSEUDO_REGISTER.
2580 * gdbarch.sh: Add NUM_PSEUDO_REGS to the gdbarch structure.
2581 * gdbarch.c: Regenerate.
2582 * gdbarch.h: Regenerate.
2583 * inferior.h (NUM_PSEUDO_REGS): Delete macro.
2587 * language.c: Include jv-lang.h.
2588 (lang_bool_type): Add case for java booleans.
2592 * dwarf2read.c (address_size): Delete file wide global.
2593 (struct comp_unit_head): Add signed_addr_p;
2594 (read_comp_unit_head): New function.
2595 (psymtab_to_symtab_1, dwarf2_build_psymtabs_hard): Use
2596 read_comp_unit_head to parse the debug_info header.
2597 (read_address): Add parameters cu_header and bytes_read. When
2598 specified, sign extend the address.
2600 * dwarf2read.c (add_partial_symbol, decode_locdesc,
2601 die_containing_type, die_type, dwarf_decode_lines,
2602 dwarf2_add_field, dwarf2_add_member_fn,
2603 dwarf2_build_psymtabs_hard, dwarf2_const_value, new_symbol,
2604 process_die, psymtab_to_symtab_1, read_array_type,
2605 read_enumeration, read_attribute, read_common_block,
2606 read_comp_unit, read_file_scope, read_full_die, read_func_scope,
2607 read_lexical_block_scope, read_partial_die, scan_partial_symbols,
2608 read_structure_scope, read_subroutine_type, read_tag_const_type,
2609 read_tag_pointer_type, read_tag_ptr_to_member_type,
2610 read_tag_reference_type, read_type_die, read_typedef,
2611 tag_type_to_type): Pass cu_header parameter.
2615 * regcache.c (read_register, read_register_bytes): Fix typos.
2619 * thread.c (thread_apply_all_command): Update thread list first.
2620 * printcmd.c (printf_command): Guard against 0-length string.
2621 * config/i386/tm-i386.h: treat PC and FP as unsigned.
2622 (SAVED_PC_AFTER_CALL): Use read_memory_unsigned_integer.
2623 (FRAME_SAVED_PC): Ditto.
2624 (FRAME_CHAIN): Ditto.
2628 * valarith.c (value_sub): Call check_typedef.
2632 * thread.c (free_thread): New function.
2633 (init_thread_list): Always zero highest_thread_num. Call
2634 free_thread() instead of free().
2635 (delete_thread): Move thread cleanup code to free_thread().
2639 Multiarch the sh target.
2641 (sh_generic_reg_names, sh_reg_names,sh3_reg_names, sh3e_reg_names,
2642 sh_dsp_reg_names, sh3_dsp_reg_names, sh_processor_type_table):
2645 (struct frame_extra_info): Define.
2646 (sh_register_raw_size, sh_register_virtual_size,
2647 sh_register_virtual_type, sh_register_byte, sh_breakpoint_from_pc,
2648 sh_frame_saved_pc, sh_skip_prologue,
2649 sh_nofp_frame_init_saved_regs, sh_fp_frame_init_saved_regs,
2650 sh_extract_struct_value_address, sh_use_struct_convention,
2651 sh_store_struct_return, sh_push_arguments, sh_push_return_address,
2652 sh_saved_pc_after_call, sh_generic_register_name,
2653 sh_sh_register_name, sh_sh3_register_name, sh_sh3e_register_name,
2654 sh_sh_dsp_register_name, sh_sh3_dsp_register_name,
2655 sh_frame_args_address, sh_frame_locals_address,
2656 sh_coerce_float_to_double, sh_default_store_return_value,
2657 sh3e_sh4_store_return_value, sh_generic_show_regs,
2658 sh3_show_regs,sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs,
2659 sh_dsp_show_regs, sh_register_byte, sh_register_raw_size,
2660 sh_register_virtual_size, sh_sh3e_register_virtual_type,
2661 sh_default_register_virtual_type, sh_gdbarch_init): New functions.
2662 (sh_target_architecture_hook, sh_frame_find_saved_regs,
2663 sh_show_regs): Delete functions.
2664 (sh_frame_chain, sh_find_callers_reg, sh_init_extra_frame_info,
2665 sh_pop_frame, sh_extract_return_value): Update
2667 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Define to 1.
2668 (struct gdbarch_tdep): Define.
2669 Remove all unnecessary defines.
2671 * remote-e7000.c ({PR,GBR,SR,MACL,VBR,MACH}_REGNUM): Define to -1,
2673 (want_sh,want_nopc_sh,want_nopc_sh3): Make nomenclature
2675 (e7000_fetch_registers): Remove ifdef GDB_TARGET_IS_SH, use
2676 runtime check instead.
2677 (e7000_wait): Ditto.
2679 * sh3-rom.c (sh3_supply_register): Use gdbarch_tdep to get the SSR
2680 and SPC register numbers.
2681 (sh3_regnames, sh3e_regnames): Don't specify a size.
2683 * config/h8300/tm-h8300.h: Add comment.
2687 * solib.c (elf_locate_base, info_sharedlibrary_command): Rename
2688 bfd_elf_get_arch_size to bfd_get_arch_size.
2693 * dwarf2read.c (dwarf2_empty_hash_tables): Renamed from
2694 dwarf2_empty_die_ref_table; zero dwarf2_cached_types as well.
2699 * valops.c (value_struct_elt): Change error message
2703 * config/sparc/nm-nbsd.h (GDB_GREGSET_T, GDB_FPREGSET_T): Define.
2707 * values.c (value_as_pointer): When VAL is an integer, explictly
2708 cast to a pointer before converting to a CORE_ADDR.
2709 * gdbtypes.c (build_gdbtypes): For builtin_type_ptr, construct a
2710 real void pointer instead of an integer.
2714 * valops.c (typecmp): Seperate loop into two, add support for
2715 references. This way, we can say a reference to a pointer to a
2716 char is compatible with a pointer to a char. Before, this would
2721 * ppcbug-rom.c (ppcbug_regnames[]): Make array size implicit.
2722 * rs6000-tdep.c (DEFAULT_LR_SAVE): Move to config/*/tm-*.h.
2723 (rs6000_gdbarch_init): Use generic_pc_in_call_dummy instead of
2724 rs6000_pc_in_call_dummy.
2725 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Move here from
2727 * config/powerpc/tm-ppc-eabi.h: Remove various definitions
2728 handled by multi-arched rs6000-tdep.c.
2732 * config/mcore/tm-mcore.h (SKIP_PROLOGUE): Fix defintion to avoid
2737 * parse.c: Include inferior.h.
2741 * regcache.c (registers_changed, registers_fetched): Use
2742 ARCH_NUM_REGS directly, eliminating an unnecessary variable.
2744 This change adds pseudo-register capability to GDB.
2745 Pseudo-registers are handled like registers, but they
2746 don't come from or live on the target. They may be
2747 aliases for an existing register, or they may be computed.
2748 * inferior.h (NUM_PSEUDO_REGISTERS): Define default of zero.
2749 (ARCH_FETCH_PSEUDO_REGISTERS): Define default of no-op.
2750 (ARCH_STORE_PSEUDO_REGISTERS): Define default of no-op.
2751 # regcache.c (registers_changed): Mark pseudo-registers
2752 invalid, as well as real registers.
2753 (registers_fetched): Do not mark pseudo-registers as fetched
2754 at the same time as other (real) registers.
2755 (read_register_bytes): Fetch pseudo-registers (if any) from
2756 the target architecture module instead of from the target.
2757 (read_register_gen): Ditto.
2758 (read_register): Ditto.
2759 (write_register_bytes): Store pseudo-registers (if any) to
2760 the target architecture module instead of to the target.
2761 (write_register_gen): Ditto.
2762 (write_register): Ditto.
2763 (build_regcache): Allocate enough register_valid space for
2764 pseudo-registers as well as normal (real) ones.
2765 * parse.c (target_map_name_to_register): Include pseudo-regs.
2769 * valops.c (value_cast): Allow cast from INT, ENUM or RANGE to
2774 * command.c (do_setshow_command): Fix typo in var_auto_boolean
2779 * mips-tdep.c: General cleanup. Delete all #if 0 code. Convert
2780 all old style K&R function definitions to ISO-C.
2781 (struct gdbarch_tdep): Add mips_abi_string.
2782 (mips_gdbarch_init): Initialize.
2783 (mips_dump_tdep): Print mips_abi_string and other values.
2784 (mips_push_arguments): Add more detailed tracing.
2788 * mips-tdep.c (mips32_next_pc, mips16_next_pc,
2789 read_next_frame_reg, mips_push_dummy_frame, mips_skip_stub,
2790 mips_saved_pc_after_call): Use read_signed_register when
2791 extracting register value. Ensures all addresses are sign
2793 (mips_read_pc): New function. Return sign extended address.
2794 (mips_gdbarch_init): Set gdbarch_read_pc.
2798 * remote-mips.c (mips_request): Change all arguments to ULONGEST.
2799 (mips_exit_debug, mips_resume, mips_initialize, mips_wait,
2800 mips_fetch_registers, mips_store_registers, mips_fetch_word):
2802 (mips_xfer_memory): When mask_address_p, mask MEMADDR down to just
2804 (_initialize_remote_mips): Add ``set mask-address'' command.
2806 * mips-tdep.c (_initialize_mips_tdep): Replace "set mask-address"
2807 with "set mips mask-address". Implement using
2808 add_set_auto_boolean_cmd.
2809 (struct gdbarch_tdep): Add default_mask_address_p.
2810 (mips_mask_address_p, show_mask_address): New functions.
2811 (mips_addr_bits_remove): Use mips_mask_address_p() to determine if
2813 (mips_gdbarch_init): Set default_mask_address_p to zero.
2814 (mips_dump_tdep): Print value of mask_address_p.
2818 * printcmd.c (print_scalar_formatted): Move masking of 'a' address
2820 (print_address_numeric): To here.
2825 * symtab.c: Use paddr_nz() to print addresses.
2829 * value.h (read_register, read_signed_register): Change return
2831 (read_signed_register, read_signed_register_pid): Declare.
2833 * regcache.c (read_register, read_register_pid): Update.
2834 (read_signed_register_pid, read_signed_register): New functions.
2838 * mips-tdep.c (mips_push_arguments): Always align struct_addr on a
2839 16 byte boundary. Align allocated argument space using
2840 MIPS_STACK_ARGSIZE. Reserve space on stack for the struct return
2841 and floating-point registers. Use fp_register_arg_p to determine
2842 if float_argreg should be aligned.
2846 * config/sh/tm-sh.h (STORE_RETURN_VALUE): Redefine as
2847 sh_store_return_value().
2848 * sh-tdep.c (sh_store_return_value): New function. Store the
2849 value returned by a function into the appropriate register.
2853 * sh-tdep.c (sh_skip_prologue): Before looking at the actual
2854 instructions, try to see if the symbol table can be of help, by
2855 calling after_prologue(). If this doesn't work, call
2856 skip_prologue_hard_way().
2857 (skip_prologue_hard_way): Renamed from sh_skip_prologue. Add some
2858 more instruction pattern matching for pushing of arguments, and
2859 manipulation of r14.
2860 (after_prologue): New function. Use symbol table info to determine
2861 the end of the prologue, if possible.
2865 * findvar.c (_initialize_findvar, build_findvar, write_fp, read_fp,
2866 generic_target_write_fp, generic_target_read_fp, write_sp, read_sp,
2867 generic_target_write_sp, generic_target_read_sp, write_pc, read_pc,
2868 generic_target_write_pc, generic_target_read_pc, write_pc_pid,
2869 read_pc_pid, supply_register, write_register_pid, write_register,
2870 read_register_pid, read_register, write_register_bytes,
2871 read_register_bytes, write_register_gen, read_register_gen,
2872 registers_fetched, registers_changed, find_saved_register,
2873 read_relative_register_raw_bytes, default_get_saved_register,
2874 read_relative_register_raw_bytes_for_frame, get_saved_register):
2875 Move from this file into new file regcache.c.
2876 (register_valid, registers_pid, registers): Ditto.
2877 * regcache.c: New file to hold the register cache.
2878 (register_cached): New function to read register_valid array.
2879 * value.h (register_cached): Declare.
2880 * defs.h (default_get_saved_register): Delete decl of static function.
2881 * Makefile.in: Add regcache module.
2886 * p-typeprint.c (pascal_type_print_method_args): Add braces around
2887 isdigit after while keyword.
2891 * TODO: Remove readline 4.1 import item.
2895 * gdbtypes.c (is_ancestor): Infer type equivalence from name
2897 (rank_one_type): Use strcmp instead of == to compare type names.
2898 Don't swap parm with arg when checking TYPE_CODE_REF types.
2899 * valops.c (find_overload_match): Fix indentation. Compare
2900 parameter rankings to 0..9, 10..99, and 100+ instead of 0, 10,
2905 * xcoffread.c (read_symbol_nvalue): Return CORE_ADDR.
2906 * rs6000-tdep.c (rs6000_pop_frame): Make addr CORE_ADDR type.
2910 * config/mips/tm-mips.h (IEEE_FLOAT, SKIP_PROLOGUE,
2911 SAVED_PC_AFTER_CALL, DECR_PC_AFTER_BREAK, BREAKPOINT_FROM_PC,
2912 INNER_THAN): Macros.
2914 * mips-tdep.c (mips_in_lenient_prologue): Delete function.
2915 (mips32_skip_prologue, mips16_skip_prologue, mips_skip_prologue):
2916 Remove ``lenient'' argument.
2917 (mips_saved_pc_after_call): New function.
2918 (mips_gdbarch_init): Initialize gdbarch members inner_than,
2919 breakpoint_from_pc, decr_pc_after_break, ieee_float,
2920 skip_prologue, saved_pc_after_call.
2924 * config/i386/tm-linux.h: Add longjmp support.
2925 (JB_ELEMENT_SIZE, JB_PC): New defines.
2926 (GET_LONGJMP_TARGET): Define.
2927 (get_longjmp_target): Add prototype.
2929 * breakpoint.c (bpstat_what): Keep returning
2930 BPSTAT_WHAT_SET_LONGJMP_RESUME when hitting multiple longjmp()
2931 breakpoints instead of signalling an error by returning
2932 BPSTAT_WHAT_STOP_NOISY.
2936 * mips-tdep.c: Replace '16' with bfd_mach_mips16 where appropriate.
2940 * infcmd.c (attach_command): Move "stop_soon_quietly" setting
2941 inside ATTACH_NO_WAIT conditional since we are not about to
2942 stop soon if we're not calling wait_for_inferior.
2946 * config/i386/fbsd.mh (NATDEPFILES): Keep NATDEPFILES to a single
2947 line. configure.in assumes this.
2951 * configure.in (SER_HARDWIRE): When go32 or DJGPP, set to
2953 * configure: Re-generate.
2957 * top.h (command_loop_marker), top.c (command_loop_marker):
2959 * event-top.c (command_handler), top.c (simplified_command_loop,
2960 command_loop): Use null_cleanup instead of command_loop_marker.
2964 * event-loop.c: Include either <poll.h> or <sys/poll.h>.
2966 * configure.in (targ_archs): Check for <poll.h> and <sys/poll.h>.
2967 * configure, config.in: Re-generate.
2972 * Makefile.in: add $(infodir) to FLAGS_TO_PASS
2985 * sh-tdep.c (sh_skip_prologue): Change prologue matching for modern
2987 (sh_frame_find_saved_regs): Ditto.
2988 (sh_find_callers_reg): Stop if pc is zero.
2992 * ser-unix.c (do_unix_readchar): Revert Tue Mar 28 18:19:50 2000
2998 * Makefile.in (SER_HARDWIRE): Restore code to set it by configure.
3002 * copying.awk: Eliminate use of PARAMS from this file.
3006 * mips-tdep.c (mips_push_arguments): Use the variable stack_used_p
3007 to determine if any arguments were written to the stack. Do not
3012 * command.h (add_set_auto_boolean_cmd): Add declaration.
3013 (enum var_types): Add var_auto_boolean.
3015 * command.c (add_set_auto_boolean_cmd): New function.
3016 (do_setshow_command): Recognize auto_boolean.
3017 (parse_binary_operation): Recognize enable and disable.
3018 (parse_auto_binary_operation): Parse auto binary variables.
3024 * mips-tdep.c (fp_register_arg_p): New function.
3025 (mips_push_arguments): Use. Do not pass floating point arguments
3026 on in an integer register.
3030 * symfile.c (init_filename_language_table): add ".pas", ".p" and ".pp"
3031 as pascal source file extensions.
3035 * remote-nindy.c (nindy_fetch_word, nindy_store_word): Removed
3036 (nindy_xfer_inferior_memory): Use dcache_xfer_memory() instead of
3037 breaking transfer into chunks and using nindy_fetch_word() and
3040 * remote-bug.c (bug_xfer_memory): Use dcache_xfer_memory() instead
3041 of breaking transfer into chunks and using gr_fetch_word() and
3044 * remote.c (remote_fetch_word, remote_store_word): Removed.
3046 * remote-utils.h (gr_fetch_word, gr_store_word): Removed.
3047 * remote-utils.c (gr_fetch_word, gr_store_word): Removed.
3049 * dcache.h (dcache_fetch, dcache_poke, dcache_poke_block): Removed.
3050 * dcache.c (dcache_fetch, dcache_poke): Removed.
3054 * defs.h: define language_pascal in language enumeration.
3055 * language.h: define _LANG_pascal macro.
3056 * language.c: add language_pascal support in all language dependant
3061 * mips-tdep.c (mips_debug): New variable.
3062 (_initialize_mips_tdep): Add command "set debug mips".
3063 (mips_push_arguments): Add code to dump the argument list as it is
3068 * mips-tdep.c (mips_push_arguments): For MIPS_EABI, squeeze a
3069 strut containing a floating-point into an FP register.
3073 * remote-mips.c: Include <ctype.h>
3074 (mips_receive_header): Write printable characters to gdb_stdtarg
3075 instead of gdb_stdlog. Only count non-printables as invalid.
3076 (mips_syn_garbage): Reduce to 10.
3080 * mips-tdep.c (mips_gdbarch_init): When the object file header
3081 specifies EABI64, select EABI64 and not EABI32.
3085 * rs6000-tdep.c: Changes throughout for multi-arch 64-bit
3086 support. Incorporate most of tm-rs6000.h.
3087 (find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
3088 (rs6000_set_host_arch_hook): Declare.
3089 (read_memory_addr): Define.
3090 (pop_frame): Rename to rs6000_pop_frame.
3091 (rs6000_pop_frame, rs6000_fix_call_dummy, rs6000_push_arguments,
3092 rs6000_frame_saved_pc, rs6000_frame_chain): Remove non-generic
3093 dummy frame handling.
3094 (branch_dest, rs6000_pop_frame, rs6000_skip_trampoline_code,
3095 rs6000_frame_saved_pc, frame_get_saved_regs,
3096 frame_initial_stack_address, rs6000_frame_chain,
3097 rs6000_convert_from_func_ptr_addr): Call read_memory_addr instead
3098 of read_memory_integer.
3099 (branch_dest, rs6000_pop_frame, rs6000_push_arguments,
3100 rs6000_skip_trampoline_code, rs6000_frame_saved_pc,
3101 frame_get_saved_regs, frame_initial_stack_address,
3102 rs6000_frame_chain): Replace 4 with TDEP->wordsize.
3103 (skip_prologue): Recognize some 64-bit stack adjustments.
3104 (push_dummy_frame, pop_dummy_frame, set_processor,
3105 show_processor): Delete.
3106 (frame_get_saved_regs): Manipulate saved register addresses using
3107 CORE_ADDR instead of int.
3108 (rs6000_create_inferior): New function.
3109 (register_names_*[]): Change to struct reg registers_*[].
3110 (variants[]): Assimilate into multi-arch approach.
3111 (register_names_*[], variants[]): Refer to pre-PowerPC
3112 architectures as POWER instead of RS6000.
3113 * rs6000-nat.c: Ubiquitous changes for 64-bit support.
3114 (vmap_secs, xcoff_relocate_symtab): Cast addresses
3115 to unsigned long to avoid sign-extension errors.
3116 (set_host_arch): New function.
3117 (xcoff_relocate_symtab): Try disabling usleep(36000) workaround.
3118 (rs6000_core_fns): Use new bfd_target_xcoff_flavour.
3119 (_initialize_core_rs6000): Initialize rs6000_set_host_arch_hook.
3120 * symfile.c (find_sym_fns): Remove special xcoff kludge.
3121 * xcoffread.c (secnum_to_bfd_section): Initialize args.objfile.
3122 (process_linenos): Query line struct size from coff
3123 backend instead of using compile-time constant.
3124 (enter_line_range): Likewise.
3125 (read_xcoff_symtab): Pass "XCOFF64" instead of "XCOFF" to
3126 record_debugformat() if appropriate.
3127 (process_xcoff_symbol): Access symbol addresses using
3128 SYMBOL_VALUE_ADDRESS instead of SYMBOL_VALUE.
3129 (read_symbol_lineno): Retrieve XCOFF64 symbol names from strtbl.
3130 (scan_xcoff_symtab): Likewise. Query syment struct size from
3131 coff backend instead of using compile-time constant.
3132 (xcoff_sym_fns): Set flavour to bfd_target_xcoff_flavour.
3133 * Makefile.in (INTERNAL_LDFLAGS): Add $(MH_LDFLAGS) to list of flags
3134 that this Makefile variable get set to. (From Kevin Buettner.)
3135 * config/powerpc/aix.mh (MH_LDFLAGS): Add linker flags so that
3136 the TOC doesn't overflow. (From Kevin Buettner.)
3137 * config/powerpc/tm-ppc-aix.h: Move config decisions to
3138 multi-arched rs6000-tdep.c.
3139 * config/rs6000/tm-rs6000.h: Likewise.
3140 (GDB_MULTI_ARCH): Define.
3141 (skip_trampoline_code): Rename to rs6000_skip_trampoline_code.
3142 (is_magic_function_pointer): Replace with
3143 rs6000_convert_from_func_ptr_addr.
3144 (TARGET_CREATE_INFERIOR_HOOK): Define.
3145 (find_toc_address_hook): Rename to rs6000_find_toc_address_hook.
3146 (rs6000_set_host_arch_hook): Declare.
3147 * config/rs6000/nm-rs6000.h (CHILD_XFER_MEMORY): Define.
3151 * v850ice.c: Eliminate use of PARAMS from this file.
3155 * valops.c (value_cast): Break up long lines.
3156 * utils.c: Fix comment typo.
3160 * dwarf2read.c (dump_die): Use the proper printf format for
3161 printing DW_UNSND values; they're longs now.
3163 * dwarf2read.c (dump_die): We can read DW_FORM_data8 now, on
3164 at least some platforms, so print it out too.
3168 * dwarf2read.c (struct attribute): Change unsnd and snd field types
3170 (read_8_bytes): Change return type to long.
3171 (read_unsigned_leb128): Change return type to long. Change type of
3172 local result to long. Cast argument of left shift to long.
3173 (read_signed_leb128): Likewise.
3177 Add support for Pascal language. Part 1: new files.
3178 * p-exp.y, p-lang.c, p-lang.h, p-typeprint.c, p-valprint.c: New files.
3182 * ser-ocd.c, symtab.c: Eliminate use of PARAMS from these files.
3186 * configure.host (hppa*64*): Renamed from hppa2.0w per
3187 gcc/binutils changes.
3188 * configure.tgt: Similarly.
3194 * ia64-linux-nat.c, gdbserver/low-linux.c (u_offsets): PT_CR_IFS
3195 is deprecated. Use PT_CFM instead.
3199 * breakpoint.c (breakpoint_thread_match): Fix comment.
3203 * valops.c (value_assign): Adjust the length to take into
3204 consideration that we are not starting from the beginning.
3208 * symfile.c (add_symbol_file_command): Properly reformat "else if"
3210 * coffread.c (coff_symtab_read): Ditto.
3214 * Makefile.in (SER_HARDWIRE): Set using autoconf.
3215 * configure.in (SER_HARDWIRE): Define, add ser-tcp.o.
3216 * configure: Re-generate.
3218 * config/i386/go32.mh (SER_HARDWIRE): Delete. Handled by
3220 * config/sparc/sun4sol2.mh, config/sparc/sun4os4.mh,
3221 config/sparc/sparclynx.mh, config/sparc/nbsdelf.mh,
3222 config/sparc/nbsd.mh, config/sparc/linux.mh,
3223 config/rs6000/rs6000lynx.mh, config/powerpc/solaris.mh,
3224 config/powerpc/nbsd.mh, config/powerpc/linux.mh,
3225 config/powerpc/cygwin.mh, config/pa/hpux11w.mh,
3226 config/pa/hpux11.mh, config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3227 config/pa/hppahpux.mh, config/pa/hppabsd.mh, config/ns32k/nbsd.mh,
3228 config/mips/irix5.mh, config/mips/irix4.mh, config/m68k/nbsd.mh,
3229 config/m68k/m68klynx.mh, config/m68k/linux.mh,
3230 config/i386/nbsdelf.mh, config/i386/nbsd.mh, config/i386/linux.mh,
3231 config/i386/i386sco5.mh, config/i386/i386lynx.mh,
3232 config/i386/i386dgux.mh, config/i386/fbsd.mh,
3233 config/i386/cygwin.mh, config/arm/linux.mh, config/alpha/fbsd.mh,
3234 config/alpha/alpha-osf3.mh, config/alpha/alpha-linux.mh: Remove
3235 ser-tcp.o from XDEPFILES.
3236 * config/ia64/linux.mh: Ditto.
3242 * mips-tdep.c (GDB_TARGET_IS_MIPS64): Define.
3243 (struct gdbarch_tdep): Add gdb_target_is_mips64.
3244 (mips_addr_bits_remove): Update.
3245 (mips_gdbarch_init): Initialize.
3247 * config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64,
3248 GDB_TARGET_IS_MIPS64): Delete.
3252 * mips-tdep.c: Include "symcat.h".
3253 (mips_dump_tdep): Print all known but not yet multi-arched values.
3257 * config/i386/tm-i386.h: Add forward declaration of `struct value'.
3258 (FIX_CALL_DUMMY): Redefined to call i386_fix_call_dummy.
3259 (i386_fix_call_dummy): Add prototype.
3260 * i386-tdep.c (i386_fix_call_dummy): New function based on the
3261 code from the old FIX_CALL_DUMMY macro.
3265 * procfs.c, remote.c: Eliminate use of PARAMS from these files.
3269 * gdbarch.sh (gdbarch_dump): When non multi-arch skip macros that
3274 * exec.c (exec_file_attach): Add .exe extension when __CYGWIN__.
3278 * win32-nat.c (safe_symbol_file_add_args): Store old gdb_stderr and
3280 (safe_symbol_file_add_stub): Redirect gdb_stdout as well as stderr.
3281 (safe_symbol_file_add_cleanup): Restore gdb_stdout.
3282 (info_dll_command): Use the pager for displaying DLLs since there are
3288 * configure.in (targ_archs): Clear out secondary components.
3289 * configure: Regenerate.
3293 * gdbarch.sh (struct gdbarch): Add member dump_tdep.
3294 (struct gdbarch_registration): Ditto.
3295 (gdbarch_dump): Add ui_file and gdbarch arguments. Add support
3296 for external dump functions. Dump the macro value. Call target
3298 (gdbarch_register): New function.
3299 (gdbarch_registrary): Replace gdbarch_init_registrary.
3300 * gdbarch.h, gdbarch.c: Re-generate.
3301 * arch-utils.c (set_arch): Update.
3303 * mips-tdep.c (mips_dump_tdep): New function. Move dump code here.
3304 (mips_gdbarch_init): From here.
3306 * maint.c (maintenance_print_architecture): New function.
3307 (_initialize_maint_cmds): Add command ``maintenance print
3312 * command.h, monitor.h: Eliminate use of PARAMS from these
3317 * config/i386/tm-embed.h: New file. Specific for embedded targets
3318 like i386-elf, i386-coff and i386-aout.
3319 * config/i386/embed.mt (): Specify tm-embed.h instead of the System V
3324 * MAINTAINERS: Add myself to gdbtk list.
3328 * config/ia64/nm-linux.h (U_REGS_OFFSET): Define.
3332 * configure.in: Replace misplaced CONFIG_ADD by the correct
3334 * configure, config.in: Regenerate.
3338 * values.c (value_primitive_field): Copy VALUE_REGNO as well.
3339 With typed registers we may have the location information in this field,
3340 in addition to VALUE_ADDRESS (which was already being copied).
3344 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Define as 1.
3345 (CALL_DUMMY, TARGET_BYTE_ORDER_SELECTABLE_P,
3346 COERCE_FLOAT_TO_DOUBLE): Delete.
3347 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
3348 config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
3349 config/mips/tm-vr4100.h, config/mips/tm-tx39l.h
3350 config/mips/tm-tx39.h, config/mips/tm-irix5.h: Delete
3353 * config/mips/tm-mips64.h (TARGET_LONG_BIT, TARGET_LONG_LONG_BIT,
3354 TARGET_PTR_BIT): Delete definitions.
3355 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
3356 config/mips/tm-tx39l.h, config/mips/tm-vr4100.h,
3357 config/mips/tm-tx39.h: Delete definition of MIPS_EABI.
3358 * mips-tdep.c (mips_gdbarch_init): Use the ISA to determine the
3359 ABI. If all else fails, assume O32.
3361 * TODO, NEWS: Update. Mention MIPS is multi-arch.
3365 * config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
3366 config/mips/tm-vr4100.h, config/mips/tm-tx39l.h,
3367 config/mips/tm-tx39.h: Delete definition of
3368 MIPS_DEFAULT_FPU_TYPE. Enable multi-arch.
3369 * mips-tdep.c: (mips_gdbarch_init): The bfd_mach_mips3900 has no
3370 FPU. bfd_mach_mips4650 FPU is single precision.
3372 * config/mips/tm-mips.h (MIPS_FPU_SINGLE_REGSIZE):
3373 (MIPS_FPU_DOUBLE_REGSIZE): Move from here.
3374 * mips-tdep.c: To here. Change to an enum.
3378 * configure.in (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Use config.bfd
3379 to determine the default architecture / target.
3380 * acconfig (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Add.
3381 * configure, config.in: Regenerate.
3383 * arch-utils.c (set_endian): Better separate multi-arch and non-
3385 (set_endian_from_file): Call internal_error when multi-arch.
3386 (initialize_current_architecture): Rewrite logic selecting a byte
3387 order. Use DEFAULT_BFD_ARCH DEFAULT_BFD_VEC.
3388 (version.h): Include.
3390 * config/mips/tm-mips.h, config/mips/tm-bigmips64.h,
3391 config/mips/tm-bigmips.h: Delete definition of
3392 TARGET_BYTE_ORDER_DEFAULT.
3396 * infrun.c (follow_inferior_fork): Bad merge from below. Compare
3397 strings using follow_fork_mode_ask and not "ask".
3401 * command.h (add_set_enum_cmd): Make ``enumlist'' and ``var''
3402 constant char pointers.
3403 (complete_on_enum): Change ``enumlist'' to a constant char
3405 (struct cmd_list_element): Ditto for member ``enums''.
3406 * command.c (complete_on_enum, add_set_enum_cmd,
3407 do_setshow_command): Update.
3409 * infrun.c (follow_fork_mode_ask, follow_fork_mode_parent,
3410 follow_fork_mode_both, follow_fork_mode_child): New. Use to
3411 construct the follow_fork_mode_kind_names.
3412 (set_follow_fork_mode_command): Delete function.
3413 (_initialize_infrun): Update.
3414 (follow_inferior_fork): Do not strdup follow_fork_mode_string.
3415 Use follow_fork_mode_* variables directly instead. Call
3416 internal_error instead of error when unimplemented "ask" mode.
3418 * infrun.c (scheduler_enums, scheduler_mode, schedlock_off,
3419 schedlock_on, schedlock_step): Update.
3420 * serial.c (serial_logbase, logbase_hex, logbase_octal,
3421 logbase_ascii, logbase_enums): Update.
3422 * remote.c (packet_support_enums, packet_support_auto,
3423 packet_enable, packet_disable, struct packet_config): Update.
3424 * arch-utils.c (initialize_current_architecture,
3425 set_architecture_string): Update.
3426 (endian_big, endian_little, endian_auto, endian_enum,
3427 set_endian_string): Update.
3428 * i386-tdep.c (valid_flavors, att_flavor, intel_flavor,
3429 disassembly_flavor): Update.
3430 * mips-tdep.c (size_enums, size_64, size_32, size_auto,
3431 mips_stack_argsize_string, mips_saved_regsize_string): Update.
3432 * arm-tdep.c (disassembly_flavor, valid_flavors): Update.
3433 (_initialize_arm_tdep): Ditto.
3439 * thread.c (make_cleanup_restore_current_thread,
3440 do_restore_current_thread_cleanup): New functions.
3441 (thread_apply_all_command, thread_apply_command): Use. Call
3442 do_cleanups when finished.
3444 * defs.h (make_cleanup_func): Delete typedef.
3449 * arch-utils.c (target_byte_order, target_byte_order_auto,
3450 show_endian, set_endian, set_endian_big, set_endian_little,
3451 set_endian_auto, set_endian_from_file, enum set_arch,
3452 target_architecture_auto, set_architecture_string,
3453 target_architecture_hook, target_architecture, arch_ok, set_arch,
3454 set_architecture_from_arch_mach, set_architecture_from_file,
3455 show_architecture, set_architecture, info_architecture,
3456 set_gdbarch_from_file, initialize_current_architecture): Copy from
3457 gdbarch.c. Rewrite ``set architecture'' and ``set endian''
3458 commands to use enums.
3459 (_initialize_gdbarch_utils): Fix name.
3460 * arch-utils.h (set_architecture_from_arch_mach,
3461 target_architecture_hook): Copy from gdbarch.h.
3462 * gdbarch.sh: Update.
3463 * gdbarch.h, gdbarch.c: Re-generate.
3467 * v850-tdep.c, sh3-rom.c, sh-tdep.c, i386-tdep.c: Include
3469 * Makefile.in (v850-tdep.o): Specify dependencies.
3470 (i386-tdep.o, sh3-rom.o, sh-tdep.o): Add arch-utils.h to
3475 * configure.in: Enable autoconf to find curses.h on Solaris 2.8.
3476 * configure: Regenerate.
3480 * command.c (do_setshow_command): Accept an enum option immediatly
3481 when it is an exact match.
3485 * config/mips/tm-vr5000el.h, config/mips/tm-vr5000.h,
3486 config/mips/tm-vr4xxxel.h, config/mips/tm-vr4xxx.h,
3487 config/mips/tm-vr4300el.h, config/mips/tm-vr4100.h,
3488 config/mips/tm-vr4300.h, config/mips/tm-tx39l.h,
3489 config/mips/tm-tx39.h, config/mips/tm-embedl64.h,
3490 config/mips/tm-embedl.h, config/mips/tm-embed64.h,
3491 config/mips/tm-embed.h: Delete TARGET_BYTE_ORDER_SELECTABLE_P.
3493 * tm-mips.h (TARGET_BYTE_ORDER_SELECTABLE_P): Define as 1.
3497 * gdbarch.sh (generic_register_convertible_not,
3498 frame_num_args_unknown): Move from here.
3499 * arch-utils.c (generic_register_convertible_not,
3500 frame_num_args_unknown): To here.
3501 * arch-utils.h (frame_num_args_unknown): Add declaration.
3502 * gdbarch.h, gdbarch.c: Re-generate.
3506 * remote-mips.c (mips_open): Select the default monitor prompt
3507 based on the target ISA.
3509 * config/mips/tm-vr4100.h (TARGET_MONITOR_PROMPT),
3510 config/mips/tm-vr4300el.h (TARGET_MONITOR_PROMPT),
3511 config/mips/tm-vr4300.h (TARGET_MONITOR_PROMPT),
3512 config/mips/tm-vr4xxx.h (TARGET_MONITOR_PROMPT),
3513 config/mips/tm-vr4xxxel.h (TARGET_MONITOR_PROMPT),
3514 config/mips/tm-vr5000el.h (TARGET_MONITOR_PROMPT),
3515 config/mips/tm-vr5000.h (TARGET_MONITOR_PROMPT),
3516 config/mips/tm-mips.h (TARGET_MONITOR_PROMPT): Delete macro.
3520 * c-exp.y (yylex): template handling fixes.
3524 * symtab.h (VTBL_PREFIX_P): Add newer g++ vtbl prefix to prefix
3527 * symtab.c (lookup_partial_symbol): Change to stop forcing linear
3528 searches on C++ when we fail the binary search, by doing the
3529 binary search right.
3533 * buildsym.c (hashname): Change to use hash function from bcache.c/.h
3535 * bcache.c (hash): Change to newer hash function.
3537 * bcache.h (hash): Prototype for hash function
3539 * dwarf2read.c (TYPE_HASH_SIZE): New define for controlling size
3541 (dwarf2_cached_types): New variable that is the cached types.
3542 (tag_type_to_type): Do the actual caching of types here.
3546 * acconfig.h, configure.in, i386bsd.c (HAVE_STRUCT_REG_R_FS):
3547 Renamed from HAVE_R_FS.
3548 (HAVE_STRUCT_REG_GS): Renamed from HAVE_R_GS.
3549 * configure, config.in: Regenerated.
3553 * TODO: Update. Mention GNU/Linux/SPARC problems.
3557 * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Change buf
3558 to a void pointer. Update initial values.
3559 * gdbarch.h, gdbarch.c: Re-generate.
3561 * findvar.c (address_to_signed_pointer,
3562 signed_pointer_to_address): New functions.
3563 * inferior.h (signed_pointer_to_address,
3564 signed_address_to_pointer): Declare.
3566 * inferior.h, findvar.c (unsigned_pointer_to_address,
3567 address_to_unsigned_pointer): Rename generic_address_to_pointer
3568 and generic_pointer_to_address. Update signatures to match
3571 * config/mips/tm-mips.h (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER):
3572 Define. MIPS has signed pointers.
3574 * defs.h, utils.c (host_pointer_to_address,
3575 address_to_host_pointer): New functions.
3576 * irix5-nat.c (next_link_map_member, first_link_map_member),
3577 procfs.c (proc_set_watchpoint, proc_iterate_over_mappings): Use.
3579 * irix5-nat.c (solib_map_sections, symbol_add_stub): Change
3580 function signature to match catch_errors_ftype.
3582 * TODO: Update. GDB builds using the IRIX native compiler.
3586 * defs.h (strsignal, safe_strsignal): Delete declarations.
3587 * utils.c (safe_strsignal): Delete.
3588 * corelow.c (core_open): Replace save_strsignal with
3589 target_signal_to_string + target_signal_from_host.
3590 * TODO: Document problems with target_signal_from_host.
3594 * annotate.c, annotate.h, breakpoint.c, command.c, command.h,
3595 config/rs6000/tm-rs6000.h, corefile.c, d10v-tdep.c,
3596 d30v-tdep.c, dbxread.c, dcache.c, dcache.h, dsrec.c,
3597 dve3900-rom.c, exec.c, fork-child.c, gdbcore.h, hpux-thread.c,
3598 language.h, linux-thread.c, mdebugread.c, monitor.h, ocd.c,
3599 procfs.c, ptx4-nat.c, remote-sim.c, remote-utils.h, remote.c,
3600 rs6000-tdep.c, ser-ocd.c, sol-thread.c, sparcl-tdep.c,
3601 stabsread.h, stack.c, symfile.c, symfile.h, symtab.h,
3602 target.c, target.h, top.c, tracepoint.c, tracepoint.h,
3603 tui/tui.h, tui/tuiIO.c, utils.c, v850ice.c, varobj.c,
3604 win32-nat.c, wince.c, xcoffsolib.c, xcoffsolib.h: Eliminate
3605 PARAMS from function pointer declarations.
3609 * win32-nat.c (safe_symbol_file_add_cleanup): Ensure that gdb_stderr is
3610 flushed before deleting and restoring it.
3611 (safe_symbol_file_add): Ensure that gdb_stderr is flushed before
3613 (handle_load_dll): Split into two functions so that WFI can handle
3614 shared library events.
3615 (child_solib_loaded_library_pathname): New function.
3616 (child_clear_solibs): New function. Clears shared library list.
3617 (child_solib_add): New function. Adds shared library symbols.
3618 (dll_symbol_command): New function. Handles "dll-symbol" command.
3619 (info_dll_command): New function. Handles info
3620 "sharedlibrary" command.
3621 (handle_exceptions): Eliminate 'ignore_trap' argument.
3622 (get_child_debug_event): Eliminate two arguments. Return "pid" when
3623 appropriate. Break out on most events to allow WFI to handle stuff.
3624 (child_wait): Accomodate get_child_debug_event changes.
3625 (child_attach): Clear thread list and list of loaded dlls.
3626 (child_create_inferior): Clear list of loaded dlls. Use
3627 wait_for_inferior in a loop to look for first "trap".
3628 (child_resume): Avoid accessing a possibly-freed thread pointer.
3629 (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info
3630 sharedlibrary" commands.
3631 * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
3635 * win32-nat.c: Fix up gcc warnings throughout.
3636 (handle_load_dll): Change DLL name to lower case.
3637 (handle_exception): Add a second argument indicating whether a
3638 breakpoint should be ignored. Return a 0 if the breakpoint was
3640 (get_child_debug_event): Pass argument to handle_exception to control
3641 whether a breakpoint should be ignored.
3642 (child_create_inferior): Use modern cygwin API. Explicitly clear
3643 last_sig. Pass FIRST_EXCEPTION to get_child_debug_event for detection
3644 of first breakpoint.
3648 * configure.in: Detect correct versions of dlltool and windres when
3650 * configure: Regenerate.
3654 * configure.tgt: Add pattern for i[3456]86-*-netbsdelf*.
3655 * config/i386/nbsdelf.mt: New file.
3656 * config/i386/tm-nbsdelf.h: New file.
3658 * config/i386/tm-nbsd.h: change include of tm-nbsd.h to
3659 the more explicit config/tm-nbsd.h.
3663 * alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
3664 register number when used as index into fpr_regs array.
3668 * defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
3669 TARGET_LONG_DOUBLE_FORMAT): Delete.
3671 * gdbarch.sh: Add support for parameterized expressions.
3672 (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,
3673 TARGET_LONG_DOUBLE_FORMAT): Add. Include "floatformat.h".
3674 * gdbarch.h, gdbarch.c: Regenerate.
3676 * arch-utils.c (default_single_format, default_double_format,
3677 default_long_double_format): New functions. Include
3679 * arch-utils.h: Declare.
3681 * d10v-tdep.c (d10v_gdbarch_init): Set floating point format.
3682 Note that long double is 64 bit, the rest are 32 bit. Include
3687 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define.
3691 * sol-thread.c (rw_common): Circumstances (eg. a bug in Sun's
3692 thread_db library) may cause this function to be called with an
3693 illegal address, in which case procfs_to_xfer_memory will
3694 return zero. Return an error code instead of looping forever.
3698 * TODO: More suggestions added.
3702 * MAINTAINERS: Add Klee Dienes and Jim Ingham as maintainers for
3703 Mac OS X and Objective C components (to be contributed).
3707 * configure.host: Add patterns for i[3456]86-*-netbsdaout*
3708 and i[3456]86-*-netbsdelf*.
3709 * config/i386/nm-nbsdelf.h: New file.
3710 * config/i386/nbsdelf.mh: New file.
3712 * config/i386/nm-nbsd.h: change include of nm-nbsd.h to
3713 the more explicit config/nm-nbsd.h.
3714 * config/i386/tm-nbsd.h: change include of tm-i386bsd.h to
3716 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Define.
3720 * NEWS: Mention FreeBSD/Alpha and FreeBSD/i386 3.x and up as new
3721 native configurations.
3723 * i386bsd-nat.c: Include "gregset.h".
3724 (CANNOT_STORE_REGISTER): Define to cannot_fetch_register instead
3725 of CANNOT_FETCH_REGISTER, if not already defined.
3726 (supply_gregset): Call supply_register with NULL as its second
3727 argument instead of supplying our own zeroed out buffer.
3728 (fill_gregset): Copy contents of correct registers instead of the
3729 contents of register REGNO.
3733 * gnu-regex.c (re_match_2_internal): Revert 2000-05-27
3734 patch which removed use of PARAMS from declaration. This
3735 file should not have been touched as it is supposed to track
3736 the version in glibc.
3740 Add support for FreeBSD/Alpha.
3741 * configure.host, configure.tgt (alpha*-*-freebsd*): New entry.
3742 * alphabsd-nat.c, config/alpha/fbsd.mh, config/alpha/fbsd.mt,
3743 config/alpha/nm-fbsd.h, config/alpha/tm-fbsd.h,
3744 config/alpha/xm-fbsd.h: New files.
3748 * MAINTAINERS: Add myself to "Write After Approval" list.
3752 * TODO: Re-organize.
3756 * gdbarch.sh: Add field ``postdefault''. Rename fields
3757 ``startup'' and ``default'' to ``staticdefault'' and
3758 ``predefault''. Fix initialization of valid_p. Create/compare
3763 * config/sparc/nm-sun4sol2.h (GDB_GREGSET_T, GDB_FPREGSET_T):
3765 * config/sparc/xm-sun4sol2.h: (GDB_GREGSET_TYPE,
3766 GDB_FPREGSET_TYPE): Delete.
3770 * symtab.h (make_cleanup_free_search_symbols): Add declaration.
3771 * symtab.c (make_cleanup_free_search_symbols,
3772 do_free_search_symbols_cleanup): New functions.
3773 (search_symbols, symtab_symbol_info, rbreak_command): Update.
3774 (search_symbols): Pass ``sr'', and not its address, to
3775 make_cleanup_free_search_symbols.
3779 * config/nm-linux.h (GDB_GREGSET_T, GDB_FPREGSET_T): Fix typos.
3783 * abug-rom.c, alpha-nat.c, alpha-tdep.c, annotate.c,
3784 annotate.h, arc-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
3785 ax.h, breakpoint.c, breakpoint.h, c-exp.y, c-lang.c, c-lang.h,
3786 call-cmds.h, ch-exp.c, ch-lang.c, ch-lang.h, cli-out.c,
3787 coff-solib.h, coffread.c, command.c, command.h, complaints.c,
3788 complaints.h, config/a29k/tm-a29k.h, config/a29k/tm-vx29k.h,
3789 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
3790 config/alpha/nm-osf2.h, config/alpha/tm-alpha.h,
3791 config/alpha/tm-alphalinux.h, config/arc/tm-arc.h,
3792 config/arm/tm-embed.h, config/d30v/tm-d30v.h,
3793 config/fr30/tm-fr30.h, config/h8300/tm-h8300.h,
3794 config/h8500/tm-h8500.h, config/i386/nm-i386bsd.h,
3795 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
3796 config/i386/nm-i386v.h, config/i386/nm-linux.h,
3797 config/i386/nm-nbsd.h, config/i386/nm-ptx4.h,
3798 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
3799 config/i386/tm-i386.h, config/i386/tm-i386nw.h,
3800 config/i386/tm-i386sol2.h, config/i386/tm-i386v.h,
3801 config/i386/tm-i386v4.h, config/i386/tm-nbsd.h,
3802 config/i386/tm-ptx.h, config/i386/tm-sun386.h,
3803 config/i960/tm-mon960.h, config/i960/tm-nindy960.h,
3804 config/m32r/tm-m32r.h, config/m68k/nm-dpx2.h,
3805 config/m68k/nm-linux.h, config/m68k/tm-cisco.h,
3806 config/m68k/tm-delta68.h, config/m68k/tm-es1800.h,
3807 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
3808 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
3809 config/m68k/tm-news.h, config/m68k/tm-sun3.h,
3810 config/m68k/tm-vx68.h, config/m68k/xm-hp300bsd.h,
3811 config/m88k/tm-m88k.h, config/mcore/tm-mcore.h,
3812 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
3813 config/mips/nm-irix5.h, config/mips/nm-mips.h,
3814 config/mips/tm-embed.h, config/mips/tm-mips.h,
3815 config/mn10200/tm-mn10200.h, config/mn10300/tm-mn10300.h,
3816 config/nm-linux.h, config/nm-lynx.h, config/ns32k/nm-nbsd.h,
3817 config/ns32k/tm-merlin.h, config/ns32k/tm-umax.h,
3818 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
3819 config/pa/tm-hppa64.h, config/pa/xm-hppah.h,
3820 config/powerpc/nm-linux.h, config/powerpc/tm-linux.h,
3821 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-solaris.h,
3822 config/powerpc/xm-aix.h, config/rs6000/nm-rs6000.h,
3823 config/rs6000/tm-rs6000.h, config/rs6000/xm-rs6000.h,
3824 config/sh/tm-sh.h, config/sparc/nm-linux.h,
3825 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
3826 config/sparc/tm-sp64.h, config/sparc/tm-sp64sim.h,
3827 config/sparc/tm-sparc.h, config/sparc/tm-sparclet.h,
3828 config/sparc/tm-spc-em.h, config/sparc/tm-sun4os4.h,
3829 config/sparc/tm-sun4sol2.h, config/tic80/tm-tic80.h,
3830 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
3831 config/w65/tm-w65.h, config/xm-aix4.h, config/z8k/tm-z8k.h,
3832 copying.c, core-aout.c, core-regset.c, core-sol2.c,
3833 corefile.c, corelow.c, cp-valprint.c, cpu32bug-rom.c,
3834 d10v-tdep.c, d30v-tdep.c, dbug-rom.c, dbxread.c, dcache.c,
3835 dcache.h, demangle.c, dink32-rom.c, dsrec.c, dstread.c,
3836 dve3900-rom.c, dwarf2read.c, dwarfread.c, elfread.c,
3837 environ.h, eval.c, exec.c, expprint.c, expression.h, f-exp.y,
3838 f-lang.c, f-lang.h, f-valprint.c, findvar.c, fr30-tdep.c,
3839 frame.h, gdb_string.h, gdbcmd.h, gdbcore.h,
3840 gdbserver/server.h, gdbtypes.c, gdbtypes.h, gnu-regex.c,
3841 h8300-tdep.c, hp-psymtab-read.c, hp-symtab-read.c,
3842 hp300ux-nat.c, hppa-tdep.c, hppah-nat.c, hpread.c, hpread.h,
3843 hpux-thread.c, i386-tdep.c, i386aix-nat.c, i386mach-nat.c,
3844 i386v-nat.c, i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c,
3845 inferior.h, inflow.c, infptrace.c, inftarg.c, irix4-nat.c,
3846 irix5-nat.c, jv-exp.y, jv-lang.c, jv-lang.h, language.c,
3847 language.h, lynx-nat.c, m2-exp.y, m2-lang.c, m2-lang.h,
3848 m32r-rom.c, mac-nat.c, main.c, maint.c, mdebugread.c,
3849 mi/mi-out.c, minsyms.c, mips-nat.c, mips-tdep.c, mipsread.c,
3850 mn10300-tdep.c, mon960-rom.c, monitor.c, monitor.h, nlmread.c,
3851 objfiles.c, objfiles.h, ocd.c, ocd.h, op50-rom.c, os9kread.c,
3852 osfsolib.c, pa64solib.c, pa64solib.h, parse.c, parser-defs.h,
3853 ppc-bdm.c, printcmd.c, procfs.c, remote-array.c, remote-bug.c,
3854 remote-e7000.c, remote-es.c, remote-est.c, remote-hms.c,
3855 remote-mips.c, remote-nindy.c, remote-nrom.c, remote-rdi.c,
3856 remote-rdp.c, remote-sds.c, remote-sim.c, remote-udi.c,
3857 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
3858 rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, scm-exp.c,
3859 scm-lang.c, scm-lang.h, ser-e7kpc.c, ser-mac.c, sh3-rom.c,
3860 sol-thread.c, solib.c, solib.h, somread.c, somsolib.c,
3861 somsolib.h, source.c, sparc-nat.c, sparcl-tdep.c,
3862 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
3863 sun3-nat.c, symfile.c, symfile.h, symmisc.c, symtab.c,
3864 symtab.h, target.c, target.h, terminal.h, thread.c, top.c,
3865 top.h, tracepoint.c, tracepoint.h, tui/tui-file.c, tui/tui.c,
3866 tui/tui.h, tui/tuiCommand.h, tui/tuiData.c, tui/tuiData.h,
3867 tui/tuiDataWin.h, tui/tuiDisassem.c, tui/tuiDisassem.h,
3868 tui/tuiGeneralWin.c, tui/tuiGeneralWin.h, tui/tuiIO.c,
3869 tui/tuiIO.h, tui/tuiLayout.c, tui/tuiLayout.h, tui/tuiRegs.c,
3870 tui/tuiRegs.h, tui/tuiSource.c, tui/tuiSource.h,
3871 tui/tuiSourceWin.h, tui/tuiStack.c, tui/tuiStack.h,
3872 tui/tuiWin.c, tui/tuiWin.h, typeprint.c, ui-file.c, ui-out.h,
3873 ultra3-nat.c, utils.c, v850-tdep.c, v850ice.c, valarith.c,
3874 valops.c, valprint.c, value.h, values.c, varobj.c, w89k-rom.c,
3875 win32-nat.c, wince.c, wrapper.c, wrapper.h, xcoffread.c,
3876 xcoffsolib.c, xmodem.h, z8k-tdep.c: Remove PARAMS from function
3881 * gregset.h: New file. Typedefs for gdb_gregset_t and
3882 gdb_fpregset_t, prototypes for supply_gregset and friends.
3883 * procfs.c: Include gregset.h. Delete local prototypes for
3884 supply_gregset etc., and local typedef gdb_gregset_t etc.
3885 * sol-thread.c: Include gregset.h, delete local prototypes,
3886 add appropriate casts to gdb_gregset_t.
3887 * uw-thread.c, lin-thread.c, core-sol2.c, core-regset.c,
3888 sparc-tdep.c, ptx4-nat.c, ppc-linux-nat.c, mipsv4-nat.c,
3889 m88k-nat.c, m68klinux-nat.c, m68k-tdep.c, irix5-nat.c,
3890 irix4-nat.c, ia64-linux-nat.c, i386v4-nat.c, cxux-nat.c,
3891 arm-linux-nat.c, alpha-nat.c: Include gregset.h.
3892 * config/nm-linux.h: Define GDB_GREGSET_T, GDB_FPREGET_T.
3893 * config/sparc/nm-sun4sol2.h: Ditto.
3894 * config/sparc/xm-sun4sol2.h: (GDB_GREGSET_TYPE,
3895 GDB_FPREGSET_TYPE): Delete (replaced by GDB_GREGSET_T etc.)
3899 * configure.in (AC_CHECK_HEADERS): Check for ncurses.h.
3900 * config.in, configure: Re-generate.
3904 * arm-linux-tdep.c (find_minsym_and_objfile): New.
3905 (skip_hurd_resolver): New.
3906 (arm_linux_skip_solib_resolver): New.
3907 (arm_skip_solib_resolver): Removed.
3909 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Changed to use
3910 arm_linux_skip_solib_resolver.
3914 * acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.
3915 * configure.in: Add checks for r_fs and r_gs members of
3917 * config.in, configure: Regenerated.
3921 * ser-go32.c: Remove PARAMS.
3925 * configure.in (AC_CHECK_HEADERS): Check for <dirent.h>,
3926 <sys/ndir.h>, <sys/dir.h> and <ndir.h>.
3927 * config.in, configure: Re-generate.
3928 * gdb_dirent.h: New file
3930 * infptrace.c: Include "gdb_dirent.h" instead of <sys/dir.h>.
3931 * core-aout.c: Ditto.
3932 * procfs.c: Include "gdb_dirent.h" instead of <dirent.h>.
3936 * config.in: Regenerate.
3941 config/djgpp/fnchange.lst: Fix bfd/coff-tic54x.c, bfd/coff-tc54x.c
3942 and gdb/testsuite/gdb.mi/mi-var-cmd.exp.
3946 * configure.in (AC_OUTPUT): Do not generate tui/Makefile.
3947 (enable-tui): Convert Makefile configury to use the same mechanism
3950 * Makefile.in (BUILD_TUI, TUI_LIBRARY, TUI_DIR, TUI_SRC,
3952 (all-tui): Delete target.
3953 (tuiWin.o, tuiStack.o, tuiSourceWin.o, tuiSource.o, tuiRegs.o,
3954 tuiLayout.o, tuiIO.o, tuiGeneralWin.o, tuiDisassem.o,
3955 tuiDataWin.o, tuiData.o, tuiCommand.o, tui.o): New targets.
3956 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_TUI_DEPS,
3957 SUBDIR_TUI_INITS, SUBDIR_TUI_LDFLAGS, SUBDIR_TUI_CFLAGS,
3958 SUBDIR_TUI_ALL, SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL,
3959 SUBDIR_TUI_UNINSTALL): Define.
3965 * TODO: Update. Mark Kettenis fixed FreeBSD >2.2 support.
3966 * MAINTAINERS: Update Jim Ingham's address.
3970 Add support for FreeBSD/i386 ELF.
3971 * i386bsd-nat.c: New file.
3972 * config/i386/tm-fbsd.h (HAVE_I387_REGS): Define.
3973 Include "i386/tm-i386.h" instead of "i386/tm-i386b.h".
3974 (NUM_REGS): Remove redefinition.
3975 (USE_STRUCT_CONVENTION): Define.
3976 (i386_float_info): Remove prototype.
3977 (FLOAT_INFO): Remove define.
3978 (JB_ELEMENT_SIZE): Define to 4.
3979 (JB_PC): Define to 0.
3980 (GET_LONGJMP_TARGET): Define.
3981 (SIGTRAMP_START, SIGTRAMP_END): Define.
3982 (SIGCONTEXT_PC_OFFSET): Define.
3983 (IN_SOLIB_CALL_TRAMPOLINE): Only define if !SVR4_SHARED_LIBS
3984 * config/i386/nm-fbsd.h (PTRACE_ARG3_TYPE): Define to caddr_t.
3985 (FETCH_INFERIOR_REGISTERS): Define.
3986 (ATTACH_DETACH): Define.
3987 (kernel_u_size): Remove PARAMS.
3988 (register_u_addr): Use CORE_ADDR in prototype where appropriate.
3990 (SVR4_SHARED_LIBS) [FREEBSD_ELF || __ELF__ && !FREEBSD_AOUT]:
3992 [SVR4_SHARED_LIBS]: Include "elf/common.h".
3993 Only define aliases for struct members from <link.h> if
3995 * config/i386/xm-fbsd.h: New file.
3996 * config/i386/fbsd.mt (TDEPFILES): Remove solib.o.
3997 * config/i386/fbsd.mh (NATDEPFILES): Remove i386b-nat.o. Add
3998 core-regset.o i387-nat.o i386bsd-nat.o.
4002 * findvar.c (value_from_register): Factor code, simplify logic.
4006 * config/i386/nbsd.mt (TDEPFILES): Move solib.o from here...
4007 * config/i386/nbsd.mh (NATDEPFILES): ...to here.
4008 * config/m68k/nbsd.mt (TDEPFILES): Move solib.o from here...
4009 * config/m68k/nbsd.mh (NATDEPFILES): ...to here.
4010 * config/ns32k/nbsd.mt (TDEPFILES): Move solib.o from here...
4011 * config/ns32k/nbsd.mh (NATDEPFILES): ...to here.
4013 * config/powerpc/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o.
4014 * configure.tgt (powerpc-*-netbsd*): add gdbserver to configdirs.
4015 * gdbserver/low-nbsd.c (initialize_arch): Define for PPC.
4016 (fetch_inferior_registers): Likewise.
4017 (store_inferior_registers): Likewise.
4019 * gdbserver/low-nbsd.c (fetch_inferior_registers): Handle X86
4020 floating point registers.
4021 (store_inferior_registers): Likewise.
4025 * i387-nat.h, i387-nat.c: New files.
4029 * config/sparc/nm-linux.h: Include config/nm-linux.h.
4030 * config/powerpc/nm-linux.h: Likewise.
4034 * f-valprint.c : Corrected f_val_print function for TYPE_CODE
4035 (type) = TYPE_CODE_COMPLEX
4039 * utils.c (make_cleanup_close, do_close_cleanup): New functions.
4040 * defs.h (make_cleanup_close): Add declaration.
4044 * configure.in (build_warnings): Add -Wuninitialized.
4045 * configure: Regenerate.
4051 * configure.in (AC_CHECK_HEADERS): Check for <sys/user.h>.
4053 * configure: Re-generate.
4054 * proc-api.c: Only include <sys/user.h> when available.
4055 (ioctl_table): Check that PIOCGETPR and PIOCGETU are defined.
4061 * config/sparc/tm-sun4sol2.h: Turn on multi-arch.
4062 * sparc-tdep.c (gdb_print_insn_sparc): Remove temp. multi-arch hack.
4067 * Makefile.in (VERSION): Set to 5.0.
4071 * inferior.h (make_cleanup_restore_inferior_status):
4072 * infrun.c (make_cleanup_restore_inferior_status,
4073 do_restore_inferior_status_cleanup): New functions.
4074 * valops.c (hand_function_call): Use.
4075 * infcmd.c (disable_longjmp_breakpoint_cleanup): New function.
4077 * symfile.c (clear_symtab_users_cleanup): New function.
4078 (syms_from_objfile, reread_symbols): Use.
4079 * objfiles.c (make_cleanup_free_objfile, do_free_objfile_cleanup):
4081 * objfiles.h (make_cleanup_free_objfile): Add declaration.
4082 * symfile.c (syms_from_objfile, reread_symbols), hpread.c
4083 (hpread_build_psymtabs), hp-psymtab-read.c
4084 (hpread_build_psymtabs): Use.
4085 * dwarf2read.c (make_cleanup_free_die_list,
4086 do_free_die_list_cleanup): New functions.
4087 (psymtab_to_symtab_1): Use.
4088 * tracepoint.c (make_cleanup_free_actions,
4089 do_free_actions_cleanup): New functions.
4090 (read_actions): Use.
4091 * corelow.c (core_close_cleanup): New function.
4093 * dbxread.c (make_cleanup_free_bincl_list,
4094 do_free_bincl_list_cleanup): New function.
4095 (read_dbx_symtab): Use.
4096 * coffread.c (free_linetab_cleanup, free_stringtab_cleanup): New
4098 (coff_symfile_read): Use.
4099 * varobj.c (make_cleanup_free_variable, do_free_variable_cleanup):
4101 (varobj_create): Use.
4102 * sparcl-tdep.c (close_tty), infrun.c (resume_cleanups), parse.c
4103 (free_funcalls): Change signature to match make_cleanup_ftype.
4104 * infrun.c (resume), tracepoint.c (encode_actions), remote-udi.c
4105 (download), solib.c (open_symbol_file_object), sparcl-tdep.c
4106 (sparclite_open), parse.c (parse_exp_1): Remove cast using
4111 * procfs.c (info_proc_cmd): Use make_cleanup_freeargv.
4112 (proc_iterate_over_mappings): Use make_cleanup_close.
4113 (proc_get_LDT_entry): Ditto.
4114 (do_closedir_cleanup): New function.
4115 (proc_update_threads): Use.
4116 (do_destroy_procinfo_cleanup): New function.
4117 (info_proc_cmd): Use.
4121 * top.h (command_loop_marker): Change signature to match
4123 * top.c (command_loop_marker): Update.
4124 (command_loop, simplified_command_loop), event-top.c
4125 (command_handler): Remove cast using make_cleanup_func.
4126 * event-top.c (command_handler): Ditto.
4128 * top.c (do_chdir_cleanup): New function.
4129 (gdb_init): Use. Use xstrdup instead of strsave.
4130 * top.c (do_fclose_cleanup): New function.
4131 (source_command): Use.
4132 * top.c (do_restore_instream_cleanup): Rename
4133 source_cleanup. Change signature to match make_cleanup.
4134 (read_command_filem execute_user_command): Update. Remove cast
4135 using make_cleanup_func.
4136 * top.c (do_free_command_lines_cleanup,
4137 make_cleanup_free_command_lines): New funtions.
4138 (get_command_line, read_command_lines): Use.
4139 * top.c (arg_cleanup): Change signature to match make_cleanup.
4140 (setup_user_args): Remove cast using make_cleanup_func.
4144 * defs.h (t_reg): Delete typedef.
4145 (preg, preg_nz): Delete function. Replaced by phex and phex_nz.
4146 * utils.c (phex, phex_nz): New functions.
4147 (paddr, paddr_nz): Use.
4149 * monitor.c (monitor_store_register): Replace preg with phex.
4153 * TODO: Add note on typecast using catch_errors_ftype.
4157 * i387-tdep.c (print_i387_value): Cast &value to (char *) in
4158 pointer arithmetic. Fixes a bug which manifested itself on
4163 * target.h (target_memory_bfd_section): Removed declaration.
4164 * target.c (target_memory_bfd_section): Removed.
4165 * exec.c (xfer_memory): Removed #if'ed-out code which referenced
4166 target_memory_bfd_section.
4168 * target.h (target_read_memory_section): Removed declaration.
4169 * target.c (target_read_memory_section): Removed.
4170 (target_xfer_memory): Update, removed bfd_section argument.
4171 (target_read_string, target_read_memory, target_write_memory):
4172 Update for above change.
4174 * gdbcore.h (read_memory_section): Removed declaration.
4175 * corefile.c (read_memory_section): Removed.
4176 * jv-lang.c (get_java_utf8_name): Changed calls to
4177 read_memory_section to read_memory.
4178 * printcmd.c (printf_command): Likewise.
4179 * valops.c (value_at, value_fetch_lazy): Likewise.
4183 * configure.host, configure.tgt (powerpc-*-netbsd*): New entry.
4184 * config/powerpc/nbsd.mh, config/powerpc/nbsd.mt,
4185 config/powerpc/tm-nbsd.h, config/powerpc/nm-nbsd.h,
4186 config/powerpc/xm-nbsd.h: New files.
4190 * gdb/config/djgpp/README: Fine-tune installation instructions
4191 based on user reports.
4195 * configure.in (build_warnings): List possible warnings.
4196 * configure: Regenerate.
4197 * TODO: More updates.
4198 * MAINTAINERS: Add Gary Thomas and Joern Renneck to Write After
4204 * config/v850/tm-v850.h: Change breakpoint sequence to be
4205 'br *' since there is no 16bit "illegal" instruction on this
4210 * TODO: Review. Delete anything that is no longer applicable.
4214 * utils.c (free_current_contents): Make more robust.
4218 * symtab.h (make_cleanup_discard_minimal_symbols): Replace
4219 discard_minimal_symbols.
4220 * minsyms.c (make_cleanup_discard_minimal_symbols):
4221 (do_discard_minimal_symbols_cleanup): New functions.
4223 * xcoffread.c (xcoff_initial_scan), somread.c (som_symfile_read),
4224 solib.c (solib_add_common_symbols), os9kread.c
4225 (os9k_symfile_read), nlmread.c (nlm_symfile_read), mipsread.c
4226 (mipscoff_symfile_read), elfread.c (elf_symfile_read), dstread.c
4227 (dst_symfile_read), dbxread.c (dbx_symfile_read), coffread.c
4228 (coff_symfile_read): Replace make_cleanup.
4232 * command.h (add_set_cmd): Change VAR parameter to void pointer.
4233 (add_set_enum_cmd): Change VAR parameter to char pointer pointer.
4234 (struct command): Change member VAR to void pointer.
4235 * command.c (add_set_cmd, add_set_enum_cmd): Update.
4237 * remote.c (add_packet_config_cmd), mips-tdep.c
4238 (_initialize_mips_tdep), infrun.c (_initialize_infrun),
4239 i386-tdep.c (_initialize_i386_tdep), arm-tdep.c
4240 (_initialize_arm_tdep): Update VAR parameter to add_set_enum_cmd.
4244 * wrapper.h (wrap_value_subscript): Delete declaration.
4248 * defs.h (make_cleanup_bfd_close): Add declaration.
4249 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_close): New
4252 * symfile.c (generic_load), sparcl-tdep.c (download), remote-udi.c
4253 (download), remote-e7000.c (e7000_load), corelow.c (core_open,
4254 core_file_to_sym_file): Replace calls to make_cleanup.
4258 * TODO: Add notes on register cache.
4262 * sh-tdep.c (sh_dsp_reg_names, sh3_dsp_reg_names): New arrays.
4263 (sh_processor_type_table): Add entries for bfd_mach_sh_dsp and
4265 (sh_show_regs): Floating point registers are called fr0-fr15.
4266 For sh4, display fpul, fpscr and fr0-fr15 / dr0-dr14 as appropriate.
4267 Handle sh-dsp and sh3-dsp.
4268 config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): sh-dsp / sh3-dsp
4269 don't have floating point registers.
4270 (DSR_REGNUM, A0G_REGNUM, A0_REGNUM, A1G_REGNUM, A1_REGNUM): Define.
4271 (M0_REGNUM, M1_REGNUM, X0_REGNUM, X1_REGNUM, Y0_REGNUM): Likewise.
4272 (Y1_REGNUM, MOD_REGNUM, RS_REGNUM, RE_REGNUM, R0B_REGNUM): Likewise.
4276 * Makefile.in (gdbtypes.o, varobj.o): Depend on wrapper.h.
4278 * wrapper.h (gdb_value_subscript, wrap_value_subscript): Add
4283 * valops.c (hand_function_call): Replace #ifdef
4284 SAVE_DUMMY_FRAME_TOS with if SAVE_DUMMY_FRAME_TOS_P.
4286 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Add.
4287 * gdbarch.h, gdbarch.c: Regenerate.
4291 * ax.h (make_cleanup_free_agent_expr): Add declaration.
4292 * ax-general.c (do_free_agent_expr_cleanup):
4293 (make_cleanup_free_agent_expr): New functions.
4295 * tracepoint.c (validate_actionline, encode_actions), ax-gdb.c
4296 (expr_to_agent, gen_trace_for_expr, agent_command): Replace calls
4301 * breakpoint.h (make_cleanup_delete_breakpoint,
4302 make_exec_cleanup_delete_breakpoint): Declare.
4303 * breakpoint.c (make_cleanup_delete_breakpoint,
4304 make_exec_cleanup_delete_breakpoint,
4305 do_delete_breakpoint_cleanup): New fuctions.
4307 * infcmd.c (finish_command), hppa-tdep.c (hppa_pop_frame),
4308 breakpoint.c (until_break_command, until_break_command): Replace
4309 call to make_cleanup / make_exec_cleanup.
4313 * defs.h (core_addr_greaterthan, core_addr_lessthan), utils.c
4314 (core_addr_greaterthan, core_addr_lessthan): Move from here.
4315 * arch-utils.h (core_addr_greaterthan, core_addr_lessthan),
4316 arch-utils.c (core_addr_greaterthan, core_addr_lessthan): To here.
4320 * printcmd.c (print_frame_args), stack.c (print_frame), command.c
4321 (do_setshow_command), breakpoint.c (print_it_typical, mention):
4322 Use make_cleanup_ui_out_stream_delete.
4326 * proc-events.c (init_syscall_table): Delete stray ``;''.
4327 * ui-out.c (ui_out_set_flags, ui_out_clear_flags): Return old
4329 * mdebugread.c (START_PSYMTAB): Add paren to avoid x=x=x.
4333 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Define.
4337 * dwarf2read.c (dwarf2_const_value_data): Fix typo in sign
4342 * TODO: Mention weak symbol problem. Mention UnixWare thread
4347 * README: Update section on kernel debugging.
4351 * mips-tdep.c (mips_get_saved_register): New function. Handle
4352 case of 32 ABI saving 32 bit registers on stack when target has 64
4354 (mips_gdbarch_init): Update.
4358 * mips-tdep.c (MIPS_EABI): Fix typo. Test for MIPS_ABI_EABI64.
4362 * configure.in (WERROR_CFLAGS): Check that GCC accepts a -W
4363 options before using them. Report result.
4364 * configure: Regenerate.
4368 * coffread.c (coff_symtab_read): In the case of C_THUMBEXT |
4369 C_THUMBEXTFUNC | C_EXT, sec will never ever be the index for
4370 .rodata, because cs_to_section doesn't deal with .rodata. Fix test
4375 * gdbarch.sh (gdbarch_dump): Print the value of GDB_MULTI_ARCH.
4376 Always check that a macro is defined before printing it.
4377 * gdbarch.c: Re-generate.
4381 * README: Update for GDB 5.0.
4385 * mips-tdep.c (MIPS_DEFAULT_STACK_ARGSIZE): Fix typo.
4387 * config/mips/tm-irix5.h (GDB_MULTI_ARCH): Add
4388 definition. Disable. Document known problems.
4389 (MIPS_DEFAULT_ABI): Define.
4391 * mips-tdep.c (enum mips_abi): Define.
4392 (struct gdbarch_tdep): Replace mips_eabi with mips_abi.
4393 (MIPS_EABI): Update.
4394 (mips_gdbarch_init): Add preliminary support for IRIX N32 ABI.
4395 Determine ABI from either ELF_FLAGS or MIPS_DEFAULT_ABI. When
4396 looking for a matching architecture require a matching MIPS_ABI.
4397 (mips_gdbarch_init): Cleanup arch_debug information.
4401 * solib.c (symbol_add_stub): Remember the index and the name of
4402 the section with the lowest address. Use this data (instead of
4403 data from .text) to pass info into symbol_file_add.
4405 * elfread.c (record_minimal_symbol_and_info): Use the section
4406 where the symbol lives to get the index, instead of guessing.
4410 Make Sparc a Multi-Arch target. Discard PARAMS macro (require ANSI).
4411 * sparc-tdep.c: include arch-utils.h.
4412 (SPARC_HAS_FPU, FP_REGISTER_BYTES, FP_MAX_REG NUM, SPARC_INTREG_SIZE,
4413 DUMMY_REG_SAVE_OFFSET): provide multi-arch-compatible definitions.
4414 (GDB_TARGET_IS_SPARC64): make into a runtime test.
4415 (struct frame_extra_info): Define, use instead of the macro.
4416 (Many places): Use alloca instead of statically allocated buffers
4417 that depend on a multi-arch variable such as MAX_REGISTER_RAW_SIZE.
4418 (sparc_extract_struct_value_address): Accept a pointer arg instead
4419 of an array sized by REGISTER_BYTES.
4420 (examine_prologue): Accept a pointer to an array of CORE_ADDR,
4421 instead of the defunct struct frame_saved_regs. Recognize new
4422 Sparc64 store instructions as part of the prologue. Ignore the
4423 destination of a frame store when parsing the prologue (so long
4424 as it's on the stack).
4425 (sparc_push_dummy_frame): Fix incorrect buffer offset for PSTATE.
4426 (sparc_frame_find_saved_regs): Accept a ptr to an array of CORE_ADDR
4427 instead of the defunct struct frame_saved_regs.
4428 (supply_gregset): Discard unnecessary 'zerobuf': just send NULL to
4429 supply_register. Provide 4-byte offset to compensate for diff
4430 between size of the prgreg_t elements on a 64-bit host and size
4431 of the registers for a 32-bit target. Fill all inaccessible regs
4432 with zero so they won't keep being requested again and again.
4433 (fill_gregset): Handle 32/64 size difference between registers
4434 and prgreg_t. Handle as many new 64-bit regs as possible.
4435 (supply_fpregset, fill_fpregset): Attempt to handle 64-bit world.
4436 (sparc_push_arguments): Rename to sparc32_push_arguments.
4437 Copy arguments into registers as well as onto stack, so that the
4438 CALL_DUMMY (code pushed onto the target stack) is not required.
4439 (sparc_extract_return_value): Rename to sparc32_extract_return_value.
4440 (sparc_store_return_value): Use memset instead of bzero.
4441 Use write_register_gen instead of write_register_bytes.
4442 (sparclet_store_return_value): New function.
4443 (_initialize_sparc_tdep): Call register_gdbarch_init to activate
4444 the gdbarch multi-architecture system.
4445 (sp64_push_arguments): Rename to sparc64_push_arguments.
4446 Extend to store arguments in general registers as well as on stack.
4447 (sparc64_extract_return_value): Rename to sp64_extract_return_value.
4448 Use as a private function, to be called by the new external function
4449 sparc64_extract_return_value.
4450 (sparclet_extract_return_value): New function.
4451 (sparc32_stack_align, sparc64_stack_align, sparc32_register_name,
4452 sparc64_register_name, sparc_print_extra_frame_info,
4453 sparclite_register_name, sparclet_register_name,
4454 sparc_push_return_address, sparc64_use_struct_convention,
4455 sparc32_store_struct_return, sparc64_store_struct_return,
4456 sparc32_register_virtual_type, sparc64_register_virtual_type,
4457 sparc32_register_size, sparc64_register_size,
4458 sparc32_register_byte, sparc64_register_byte,
4459 sparc_gdbarch_skip_prologue, sparc_convert_to_virtual,
4460 sparc_convert_to_raw, sparc_frame_init_saved_regs,
4461 sparc_frame_address, sparc_gdbarch_fix_call_dummy,
4462 sparc_coerce_float_to_double, sparc_call_dummy_address,
4463 sparc_y_regnum, sparc_reg_struct_has_addr, sparc_intreg_size,
4464 sparc_return_value_on_stack): New functions supporting multi-arch.
4465 (sparc_gdbarch_init): New function; initialize multi-arch.
4466 (struct gdbarch_tdep): Define, use for private multi-arch data.
4467 * config/sparc/tm-sparc.h: Move definitions around, enclose with
4468 #ifdef GDB_MULTI_ARCH tests, provide some multi-arch alternate
4469 definitions. Add enums for register names, to help debugging gdb.
4470 This header file must work for non-multi-arch and for multi-arch.
4471 * config/sparc/tm-sp64.h: Add GDB_MULTI_ARCH configuration. Also add
4472 AT_ENTRY_POINT definitions for CALL_DUMMY, for non-multi-arch case.
4473 Define GDB_MULTI_ARCH.
4474 * config/sparc/tm-sparclet.h: Add GDB_MULTI_ARCH configuration.
4475 Do not define GDB_MULTI_ARCH (bfd does not correctly identify target).
4476 * config/sparc/tm-sparclite.h: Ditto.
4477 * config/sparc/tm-sun4sol2.h: Define GDB_MULTI_ARCH.
4478 * sparclet-rom.c (sparclet_regnames): Initialize explicitly, to
4479 avoid using deprecated REGISTER_NAMES macro.
4480 * Makefile.in: Let sparc-tdep.c depend on arch-utils.h.
4484 * gdbarch.sh: Add FP0_REGNUM to list of multi-arched register numbers.
4485 * gdbarch.c, gdbarch.h: Regenerate.
4486 * core-regset.c: Change FP0_REGNUM to a runtime test.
4488 * sun3-nat.c: Ditto.
4489 * sparc-tdep.c: Ditto.
4491 * i386mach-nat.c: Remove unnecessary ifdef for FP0_REGNUM.
4492 * ptx4-nat.c: Ditto.
4494 * sol-thread.c (sol_thread_create_inferior): only add the thread
4495 to the thread list if it is not already in there.
4496 (prototypes for thread_db func ptrs): pretty up formatting.
4500 * config/djgpp/djconfig.sh: Use more warning switches.
4502 * config/djgpp/fnchange.lst: Replace the leading gdb-0222 with the
4503 @V@ placebo. djunpack.bat changed accordingly.
4507 * mips-tdep.c (size_auto, size_32, size_64, size_enums): Rename
4508 saved_gpreg_size_auto, saved_gpreg_size_32, saved_gpreg_size_64
4509 and saved_gpreg_size_enums.
4510 (mips_stack_argsize): Update. Cleanup.
4512 * mips-tdep.c (STACK_ARGSIZE): Delete macro. Replaced by
4514 (MIPS_NABI32): Delete macro. Replaced by
4515 MIPS_REGS_HAVE_STACK_HOME_P.
4516 (mips_push_arguments): Update.
4517 (mips_push_arguments): Replace check for MIPS_EABI or MIPS_NABI32
4518 with test for MIPS_REGS_HAVE_STACK_HOME_P.
4519 (MIPS_REGS_HAVE_STACK_HOME_P): Define. Provide non- multi-arch
4521 (struct gdbarch_tdep): Add mips_regs_have_stack_home_p and
4522 mips_default_stack_argsize.
4523 (MIPS_STACK_ARGSIZE): Define as mips_stack_argsize.
4524 (mips_stack_argsize_string): New static variable.
4525 (mips_stack_argsize): New function, handle default case.
4526 (__initialize_mips_tdep): Add command ``set mips stack-arg-size''
4527 implemented as an enum using size_auto et.al.
4528 (mips_gdbarch_init): Initialize mips_default_stack_argsize and
4529 mips_regs_have_stack_home_p.
4531 * config/mips/tm-irix5.h (MIPS_DEFAULT_SAVED_REGSIZE): Define as 8
4533 (MIPS_REGS_HAVE_STACK_HOME_P): Define as 0 for n32.
4537 * procfs.c (PROCFS_TRACE): Delete definition.
4538 * proc-utils.h (PROCFS_NOTE, PROC_PRETTYFPRINT_STATUS): Always
4543 * procfs.c: Cleanup of procfs tracing. Move defines and
4544 prototypes to proc-utils.h
4545 * proc-utils.h: Define tracing macros. Declare trace functions.
4546 * proc-api.c: Make procfs tracing a runtime option.
4547 (prepare_to_trace): New function, abstracted out of several
4548 places. Open a trace file if one is required.
4549 (ioctl_with_trace, write_with_trace, open_with_trace,
4550 close_with_trace, wait_with_trace, lseek_with_trace):
4551 Report errno if an error occurs in a system call.
4552 (write_with_trace): Make 2nd arg void *, to agree with write.
4556 * elfread.c (elf_symtab_read): The calculation of 'offset'
4557 must be done for each symbol, not just once. The index
4558 used must be the index of the section where 'sym' resides,
4563 * procfs.c (many functions): change int cmd; to long cmd;
4564 Solaris /proc API calls this parameter a long, and requires it
4565 for 64-bit hosts (where sizeof(long) != sizeof(int)). UnixWare
4566 calls it an int, but on existing UnixWare hosts, int and long
4567 are the same size. So long it must be. If a future UnixWare
4568 version has problems with this, we'll have to use autoconf.
4569 * proc-api.c (write_with_trace): use long instead of int.
4573 * i386-linux-nat.c: Define PT_READ_U and PT_WRITE_U if they're not
4578 * infrun.c (handle_inferior_event): Add missing call to keep_going
4579 and missing return when handling an ordinary signal from the
4584 * objfiles.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
4585 SECT_OFF_RODATA): Define as functions of OBJFILE. Add
4586 sect_index_text, sect_index_data, sect_index_rodata,
4587 sect_index_bss to objfile structure.
4588 * gdb-stabs.h (SECT_OFF_DATA, SECT_OFF_TEXT, SECT_OFF_BSS,
4589 SECT_OFF_RODATA): Remove.
4590 * objfiles.c (allocate_objfile): Initialize
4591 sect_index_{text,data,bss,rodata} to -1, for error detection.
4593 * symfile.c (default_symfile_offsets): Initialize
4594 sect_index_{text,data,bss,rodata} from bfd information.
4595 * xcoffread.c (xcoff_symfile_offsets): Ditto.
4596 * somread.c (som_symfile_offsets): Initialize
4597 sect_index_{text,data,bss,rodata}.
4599 * coffread.c, dbxread.c, elfread.c, hp-psymtab-read.c,
4600 hp-symtab-read.c, hpread.c, mdebugread.c, minsyms.c,
4601 mipsread.c, objfiles.c, os9kread.c, pa64solib.c, partial-stab.h,
4602 remote-os9k.c, remote-vx.c, remote.c, rs6000-nat.c, somsolib.c,
4603 stabsread.c, symfile.c, xcoffread.c:
4604 Update use of SECT_OFF_{TEXT,DATA,BSS,RODATA} to depend on the
4607 * xcoffread.c: Add new field objfile to find_targ_sec_arg.
4611 * config/mips/tm-mipsv4.h (Dest_Reg), config/mips/tm-irix5.h
4612 (MIPS_NUM_ARG_REGS, Dest_Reg), config/mips/tm-mips.h
4613 (MIPS_NUM_ARG_REGS), config/mips/tm-mips.h (MIPS_NUM_FP_ARG_REGS):
4614 Delete unused macros.
4618 * solib.c (elf_locate_base, info_sharedlibrary_command):
4619 Look at the bfd to determine if it is elf32 or elf64, rather
4620 than using an ifdef. This makes it runtime teststable and
4625 * infrun.c (handle_inferior_event): When doing a "next", and
4626 stepping out of a signal handler into its calling trampoline
4627 ignore the value of step_frame_address.
4628 (step_over_function): Only modify step_resume_breakpoint->frame if
4629 the value of step_frame_address is non-zero.
4633 * monitor.c (monitor_fetch_register): MAX_REGISTER_RAW_SIZE
4634 is not static in the MULTI_ARCH world, so don't use it in a
4635 static array declaration.
4639 * symtab.c (in_prologue): From Jim Blandy. Rewrite, more
4640 intelligently, making sure we use the information from the
4641 symbol tables fully.
4645 * ia64-tdep.c (ia64_gdbarch_init): Reference to ELFOSABI_NONE
4646 instead of ELFOSABI_SYSV.
4650 * gdbarch.sh (NPC_REGNUM, NNPC_REGNUM): Add.
4651 * gdbarch.h, gdbarch.c: Re-generate.
4653 * gdbserver/remote-utils.c (prepare_resume_reply): Change #ifdef
4654 NPC_REGNUM to run-time test.
4655 * findvar.c (generic_target_write_pc): Change #ifdef NPC_REGNUM
4656 and NNPC_REGNUM to run-time test.
4657 * procfs.c (procfs_fetch_registers): Change #ifdef NPC_REGNUM to
4659 (procfs_store_registers): Ditto.
4663 * gdbarch.sh: Provide non- multi-arch defaults by direct
4664 definition in "gdbarch.h" instead of going through "gdbarch.c".
4665 * gdbarch.h, gdbarch.c: Re-generate.
4666 * defs.h: When non- multi-arch, include "arch-utils.h" so that
4667 legacy definitions are globally visible.
4671 * MAINTAINERS: Add Syd Polk to gdbtk maintainers.
4672 (symtabs): Add Elena to symtabs maintainers list.
4673 (Blanket Write Privs): Add Jim Blandy.
4677 Remove obsolete Gould configuration:
4678 * configure.host, configure.tgt: Remove Gould configs.
4679 * Makefile.in: Remove Gould-related actions.
4680 * gould-xdep.c, gould-tdep.c, config/gould/*: Remove files.
4681 * NEWS: Mention removal.
4686 * defs.h: Properly check for GCC version number.
4690 Fix single-stepping out of signal trampolines.
4691 * config/i386/nm-linux.h (CHILD_RESUME): Define.
4692 * i386-linux-nat.c (child_resume): New function.
4696 * blockframe.c (frameless_look_for_prologue): Use
4697 PROLOG_FRAMELESS_P instead of SKIP_PROLOGUE_FRAMELESS_P.
4698 * gdbarch.sh (PROLOG_FRAMELESS_P): Define.
4699 * gdbarch.h, gdbarch.c: Re-generate.
4700 * arch-utils.h, arch-utils.c (generic_prologue_frameless_p): New
4706 * m68k-tdep.c (delta68_in_sigtramp): Return 0 when the function
4711 * gdbarch.sh (d10v_daddr_p, d10v_iaddr_p, d10v_convert_daddr_to_raw,
4712 d10v_convert_iaddr_to_raw): make these multi-arch functions optional.
4713 * gdbarch.c, gdbarch.h: regenerate
4718 * target.c (do_monitor_command): Cast tcomplain to correct
4719 function type in comparison.
4724 * config/alpha/alpha-osf3.mh (XDEPFILES): Add ser-tcp.o and
4729 * jv-valprint.c (java_val_print): Add arg declaration,
4730 fix compiler warning.
4731 * corelow.c (core_open): Call set_gdbarch_from_file so that
4732 gdbarch becomes aware of the architecture encoded in the
4734 * findvar.c (write_register_gen): Export this useful interface.
4735 * value.h (write_register_gen): Declare.
4739 * cxux-nat.c (add_shared_symbol_files): Don't treat .text section
4740 as special in the section_addr_info structure.
4741 * pa64solib.c (pa64_solib_add_solib_objfile): Ditto.
4742 * osfsolib.c (symbol_add_stub): Ditto.
4743 * irix5-nat.c (symbol_add_stub): Ditto.
4747 * mips-tdep.c, d10v-tdep.c: Include "arch-utils.h".
4751 * TODO: Document IRIX X ARM cross compile problems.
4755 * utils.c (internal_verror): Call target_terminal_ours.
4756 * wrapper.h: Fix minor comment typo.
4757 * proc-api.c (write_with_trace): Change 'arg' from long to int.
4758 Treat 'off_t' and 'size_t' as unsigned long in printfs.
4759 (lseek_with_trace): Treat 'off_t' as unsigned long in printf.
4760 * procfs.c (comments): Eliminate "???" in comments, which GCC
4761 wants to interpret as a trigraph. (fill_gregset, supply_gregset,
4762 fill_fpregset, supply_fpregset): Declare.
4763 (procfs_wait): Sysargs is a long, change printf format to match.
4764 (test-mapping, mapping_test, test_mapping_cmd) Remove (test only).
4768 * config/djgpp/fnchange.lst (ia64-linux-nat.c): Map to
4773 * ax-gdb.c (agent_command): Remove now useless cast of
4774 `free_current_contents' when passed to `make_cleanup'.
4775 * coffread.c (coff_symfile_read): Ditto.
4776 * dwarf2read.c (dwarf2_add_member_fn, read_array_type): Ditto.
4777 (dwarf_decode_lines): Ditto.
4778 * eval.c (parse_and_eval_address, parse_and_eval_address_1): Ditto.
4779 (parse_and_eval, parse_to_comma_and_eval): Ditto.
4780 * parse.c (parse_exp_1): Ditto.
4781 * printcmd.c (print_command_1, output_command, set_command): Ditto.
4782 (x_command, print_frame_args, printf_command): Ditto.
4783 * top.c (execute_control_command): Ditto.
4784 * tracepoint.c (validate_actionline): Ditto.
4785 * typeprint.c (whatis_exp, ptype_command): Ditto.
4786 (maintenance_print_type): Ditto.
4790 * Makefile.in (ALLDEPFILES): Add ia64-linux-tdep.c.
4791 (ia64-linux-tdep.o): Add dependencies.
4792 (ia64-tdep.o): Add dependency for arch-utils.h.
4793 * ia64-linux-tdep.c, ia64-tdep.c (arch-utils.h): Include.
4797 * blockframe.c: Fix a minor typo in a comment.
4801 * ia64-tdep.c (examine_prologue): Recognize store instructions;
4802 those whose source operands are input registers which haven't
4803 been seen before are considered to be part of the prologue.
4807 * rs6000-nat.c (xcoff_relocate_symtam): Recover from the wrong
4808 patch being applied `Fri Apr 7 13:44:38 2000'.
4812 * ia64-linux-tdep.c: New file.
4813 * ia64-tdep.c (elf-bfd.h): Include.
4814 (ia64_linux_sigcontext_register_address): New extern declaration.
4815 (struct gdbarch_tdep): New struct.
4816 (SIGCONTEXT_REGISTER_ADDRESS): New define.
4817 (read_sigcontext_register): New static function.
4818 (extract_bit_field, replace_bit_field, slotN_contents,
4819 replace_slotN_contents): Made static.
4820 (ia64_frame_chain, ia64_frame_saved_pc, ia64_init_extra_frame_info):
4821 Added new code for signal handler frames and call dummy frames.
4822 (ia64_frame_init_saved_regs): Handle signal handler frames.
4823 (ia64_find_saved_register): Removed.
4824 (ia64_get_saved_register): Handle call dummy frames; reorganized
4825 to call generic_get_saved_register() to find registers saved
4827 (process_note_abi_tag_sections): New static function.
4828 (ia64_gdbarch_init): Attempt to determine the ABI/OS of the
4829 executable. Based upon this information, set target dependent
4830 field sigcontext_register_address appropriately. Also set
4831 FRAME_CHAIN_VALID to be generic_func_frame_chain_valid.
4832 * config/ia64/linux.mt (TDEPFILES): Add ia64-linux-tdep.o.
4833 * config/ia64/tm-linux.h (IN_SIGTRAMP): Define.
4834 (ia64_linux_in_sigtramp): New declaration.
4838 * TODO, NEWS: Update due to inclusion of gdbmi.texinfo in the GDB
4843 * config/djgpp/README: Explain how to unpack using djunpack.bat.
4847 * stabsread.c (REG_STRUCT_HAS_ADDR): Delete default.
4848 (define_symbol): Check REG_STRUCT_HAS_ADDR_P before using
4849 REG_STRUCT_HAS_ADDR.
4850 (define_symbol): Ditto.
4852 * valops.c (hand_function_call): Replace #ifdef
4853 REG_STRUCT_HAS_ADDR with if REG_STRUCT_HAS_ADDR_P. Re-indent
4856 * gdbarch.sh (REG_STRUCT_HAS_ADDR): Add along with the predicate
4857 function REG_STRUCT_HAS_ADDR_P.
4858 * gdbarch.h, gdbarch.c: Re-generate.
4862 * gdb-stabs.h (SECT_OFF_MAX): Increase to 40.
4866 * win32-nat.c (handle_load_dll): Don't treat .text as a special
4868 * somread.c (som_symfile_offsets): Ditto.
4869 * somsolib.c (som_solib_add_solib_objfile): Ditto.
4873 * MAINTAINERS: Make Jimmy Guo TUI maintainer.
4877 * command.h (help_all): Delete declaration.
4878 * command.c (help_all): Add declaration. Convert function
4879 argument list to ISO-C.
4883 * d10v-tdep.c (d10v_gdbarch_init): Initialize stack_align.
4884 (d10v_stack_align): Make static.
4885 * config/d10v/tm-d10v.h (STACK_ALIGN): Delete.
4889 * valops.c (hand_function_call): Replace #ifdef STACK_ALIGN with
4890 run-time test for STACK_ALIGN_P.
4891 * gdbarch.sh: Add support for function and variable predicates.
4892 (STACK_ALIGN): Add. Implement with predicate - STACK_ALIGN_P.
4893 * gdbarch.h, gdbarch.c: Re-generate.
4897 * defs.h, utils.c (free_current_contents): Change parameter to
4901 * printcmd.c (print_address_symbolic): Call `make_cleanup' with
4902 `(free_current_contents, &x)', not `(free, x)'.
4903 * utils.c (free_current_contents): Do not `free (NULL)'.
4905 * printcmd.c (print_address_symbolic): Cleanup after a failed
4906 call to build_address_symbolic.
4910 * wince-stub.c (FREE): New macro.
4911 (mempool): Just free any buffer prior to reuse. Don't bother with
4913 (flag_single_step): New function.
4914 (skip_message): Detect "helpful" Windows CE messages and skip sending
4916 (wait_for_debug_event): Use skip_message to avoid sending debug
4917 messages to the host.
4918 (dispatch): Prelimary implementation of single step detection.
4919 * wince.c: Rework SH single stepping code to be more consistent with
4920 other wince targets.
4921 (handle_output_debug_string): Allow first chance exceptions to come
4922 through since they seem to be all that we get on some versions of
4924 (check_for_step): New function, conditionally compiled based on target.
4925 (regptr): Delete obsolete function.
4926 (handle_exception): Detect illegal instructions.
4927 (get_child_debug_event): Return success only if event code matches
4929 (child_create_inferior): Reflect change to get_child_debug_event
4934 * win32-nat.c (thread_rec): Be more defensive about suspending already
4936 (safe_symbol_file_add_stub): New function.
4937 (safe_symbole_file_add_cleanup): New function.
4938 (safe_symbol_file_add): New function.
4939 (handle_load_dll): Use wrapper to add DLL symbol information to avoid
4940 bogus errors from non-stabs DLLs.
4941 (handle_exception): Add work around for detection of first exception
4942 breakpoint which does not seem to occur on W2K. Detect more "signals"
4943 that can be effectively passed to the debuggee. Reorganize to eliminate
4944 continue_status global.
4945 (child_continue): Reorganize to eliminate continue_status global.
4946 (child_wait): Ditto.
4947 (child_resume): Ditto.
4948 (get_child_debug_event): Ditto. Recognize when an a breakpoint
4949 exception should be ignored. Change method for signalling when an
4950 important event has occured to the caller.
4951 (child_create_inferior): Use new method for noticing when
4952 get_child_debug_event has found something interesting.
4956 * rs6000-nat.c (xcoff_relocate_symtab): Grow buffer if ptrace()
4957 fails due to lack of space.
4961 * command.c, command.h (help_all): Add functionality to display
4962 a complete listing of available commands.
4966 * arm-linux-nat.c (PIDGET, TIDGET): New.
4967 (get_thread_id, GET_THREAD_ID): New.
4968 (fetch_nwfpe_register, store_nwfpe_register): New.
4969 (fetch_register, store_register): New.
4970 (fetch_fpregister, store_fpregister): New.
4971 (fill_gregset, supply_gregset): New.
4972 (fill_fpregset, supply_fpregset): New.
4973 (fetch_fpregs): Modified to use thread id's.
4974 (store_fpregs): Modified to use thread id's and
4975 fetch_nwfpe_register.
4976 (fetch_regs): Modified to use thread id's.
4977 (store_regs): Modified to use thread id's.
4978 (fetch_inferior_registers): Modified to handle single register
4980 (store_inferior_registers): Modified to handle single register
4982 (arm_linux_register_u_addr): Removed.
4984 * configure.tgt: Added gdbserver to configdirs for arm*-*-linux*.
4986 * config/arm/linux.mh
4987 (NATDEPFILES): Removed core-aout.o. Added core-regset.o.
4988 (LOADLIBES): Define.
4990 * config/arm/nm-linux.h: Include config/nm-linux.h.
4991 (ATTACH_DETACH): Removed. Defined in config/nm-linux.h.
4992 (REGISTER_U_ADDR): Removed.
4993 (SVR4_SHARED_LIBS): Removed. Defined in config/nm-linux.h.
4994 (#include "solib.h"): Removed. Included via config/nm-linux.h.
5000 * infrun.c (follow_fork_mode_kind_names): NULL terminate
5002 (scheduler_enums): Ditto.
5006 * gdbarch.sh: Make multi-arch variable defaults, defaults for non-
5008 (TARGET_BFD_VMA_BIT, IEEE_FLOAT, CALL_DUMMY_WORDS,
5009 SIZEOF_CALL_DUMMY_WORDS): Update.
5011 * inferior.h (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Default
5012 provided by gdbarch.
5013 (CALL_DUMMY_P): Add FIXME. gdbarch should provide default.
5015 * valprint.c (IEEE_FLOAT): Default provided by gdbarch.
5019 Bring RETURN_VALUE_ON_STACK under gdbarch's control.
5020 * gdbarch.sh (RETURN_VALUE_ON_STACK): New entry.
5021 * gdbarch.c, gdbarch.h: Regenerated.
5022 * arch-utils.c (default_return_value_on_stack): New function.
5023 * arch-utils.h (default_return_value_on_stack): New declaration.
5024 * values.c (RETURN_VALUE_ON_STACK): Delete default definition.
5026 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
5027 two-dimensional array, instead of faking it with explicit index
5030 * minsyms.c (prim_record_minimal_symbol_and_info): Doc fix.
5031 (Thanks to Guy Harris.)
5035 * xcoffsolib.c (solib_add): Fix call to vmap_symtab().
5043 * TODO: Document -Wreturn-type problem.
5047 * maint.c (_initialize_maint_cmds): Add `mt i' alias for `mt info'.
5051 * infcmd.c (_initialize_infcmd): Add `info r' alias for
5057 * bcache.c (free_bcache): Do not free NULL.
5062 * NEWS: Update GDB version. Duplicate paragraph explaining
5067 * Makefile.in (distclean): Delete tui/Makefile.
5068 * TODO: Add deletion of tui/Makefile.in to list.
5072 * symfile.h (struct section_addr_info ): Remove fields for special
5073 treatment of .text, .data and .bss sections.
5075 * solib.c (symbol_add_stub): The special field text_addr is not
5076 available anymore. Search for the .text field the hard way.
5078 * symfile.c (build_section_addr_info_from_section_table): Don't
5079 fill in {text, data, bss}_addr any more.
5080 (default_symfile_offsets): Don't use {text, data, bss}_addr fields
5081 to fill in section_offsets for objfile.
5082 (syms_from_objfile): Don't deal with {text, data, bss}_addr as a
5083 special case anymore.
5084 (add_symbol_file_command): Ditto.
5088 symfile.c: (symbol_file_command): Remove support for rombug, to
5093 * symfile.c (add_symbol_file_command): Rewrite the arguments
5094 processing part. Simplify syntax of command. Remove support for
5096 (_initialize_symfile): Update help message for add-symbol-file
5101 * gdbarch.sh (IEEE_FLOAT): Only dump when defined.
5102 * gdbarch.h, gdbarch.c: Re-generate.
5106 * remote.c (REMOTE_TRANSLATE_XFER_ADDRESS), mem-break.c
5107 (MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT), target.h
5108 (BREAKPOINT_FROM_PC), valops.c (COERCE_FLOAT_TO_DOUBLE),
5109 gdbarch.sh (D10V_MAKE_DADDR, D10V_MAKE_IADDR,
5110 FRAMELESS_FUNCTION_INVOCATION, REGISTER_CONVERTIBLE,
5111 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
5112 REGISTER_NAME), findvar.c (POINTER_TO_ADDRESS,
5113 ADDRESS_TO_POINTER): Delete default definition. Handled by
5116 * gdbarch.sh: Make multi-arch defaults, defaults for non-
5118 (REGISTER_NAME, COERCE_FLOAT_TO_DOUBLE, REGISTER_CONVERTIBLE,
5119 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW,
5120 D10V_MAKE_DADDR, D10V_MAKE_IADDR, BREAKPOINT_FROM_PC,
5121 MEMORY_INSERT_BREAKPOINT, MEMORY_REMOVE_BREAKPOINT,
5122 REMOTE_TRANSLATE_XFER_ADDRESS, FRAMELESS_FUNCTION_INVOCATION):
5123 Provide default/legacy implementation.
5124 (REGISTER_NAMES, CALL_DUMMY): Allow legacy definition.
5125 * gdbarch.h, gdbarch.c: Re-generate.
5129 * findvar.c (store_typed_address, extract_typed_address): Fix
5130 function names in error messages.
5134 * config/djgpp/config.sed: Fix the lines which edit clean: and
5135 uninstall-info: targets.
5139 Bring IEEE_FLOAT under gdbarch's control.
5140 * gdbarch.sh (IEEE_FLOAT): New entry.
5141 * gdbarch.c, gdbarch.h: Regenerated.
5142 * valprint.c (IEEE_FLOAT): Provide a default #definition for this.
5143 (print_floating): Use IEEE_FLOAT as if it were an expression; use
5144 the code specific to IEEE-format numbers whenever the value of
5145 IEEE_FLOAT is non-zero.
5146 * config/a29k/tm-a29k.h, config/alpha/tm-alpha.h,
5147 config/arc/tm-arc.h, config/arm/tm-arm.h, config/fr30/tm-fr30.h,
5148 config/h8300/tm-h8300.h, config/i386/tm-i386.h,
5149 config/i960/tm-i960.h, config/m88k/tm-m88k.h,
5150 config/mips/tm-mips.h, config/pa/tm-hppa.h,
5151 config/sparc/tm-sparc.h (IEEE_FLOAT): For all ports that #define
5152 IEEE_FLOAT, make sure they give it the value (1).
5154 Provide the hooks needed to support architectures on which
5155 pointers are not always simple byte addresses.
5157 * gdbarch.sh (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Two new
5158 functions which architectures can redefine, defaulting to
5159 generic_pointer_to_address and generic_address_to_pointer.
5160 * findvar.c (extract_typed_address, store_typed_address,
5161 generic_pointer_to_address, generic_address_to_pointer): New
5163 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER): Provide default
5165 (extract_address, store_address): Doc fixes.
5166 * values.c (value_as_pointer): Doc fix.
5167 (value_from_pointer): New function.
5168 * defs.h (extract_typed_address, store_typed_address): New
5170 * inferior.h (generic_address_to_pointer,
5171 generic_pointer_to_address): New declarations.
5172 * value.h (value_from_pointer): New declaration.
5174 The following changes are all of the general form "Use these
5175 functions instead of these other functions." In each case, the
5176 change is because the new calls provide enough information to do
5177 the appropriate address / pointer conversions, where the old calls
5178 did not, or because the new functions are more appropriately named
5179 for the operation being performed.
5181 * ax-gdb.c (const_var_ref): Use value_from_pointer, not
5183 * blockframe.c (generic_push_dummy_frame): Use read_pc and
5184 read_sp, not read_register.
5185 * c-valprint.c (c_val_print): Use extract_typed_address instead of
5186 extract_address to extract vtable entries and references.
5187 * cp-valprint.c (cp_print_value_fields): Use value_from_pointer
5188 instead of value_from_longest to extract the vtable's address.
5189 * eval.c (evaluate_subexp_standard): Use value_from_pointer
5190 instead of value_from_longest to compute `this', and for doing
5191 pointer-to-member dereferencing.
5192 * findvar.c (read_register): Use extract_unsigned_integer, not
5194 (read_var_value): Use store_typed_address instead of store_address
5195 for building label values.
5196 (locate_var_value): Use value_from_pointer instead of
5198 * hppa-tdep.c (find_stub_with_shl_get): Use value_from_pointer,
5199 instead of value_from_longest, to build arguments to __d_shl_get.
5200 * printcmd.c (set_next_address): Use value_from_pointer, not
5202 (x_command): Use value_from_pointer, not value_from_longest.
5203 * tracepoint.c (set_traceframe_context): Use value_from_pointer,
5204 not value_from_longest.
5205 * valarith.c (value_add, value_sub): Use value_from_pointer, not
5207 * valops.c (find_function_in_inferior, value_coerce_array,
5208 value_coerce_function, value_addr, hand_function_call): Same.
5209 * value.h (COERCE_REF): Use unpack_pointer, not unpack_long.
5210 * values.c (unpack_long): Use extract_typed_address to produce
5211 addresses from pointers and references, not extract_address.
5212 (value_from_longest): Use store_typed_address instead of
5213 store_address to produce pointer and reference values.
5217 * acconfig.h (HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T, HAVE_LWPID_T,
5218 HAVE_PSADDR_T): Add them here instead of in config.in.
5220 * acconfig.h (PRFPREGSET_T_BROKEN): New define.
5221 * configure.in: Add check for broken prfpregset_t type.
5222 * lin-thread.c (gdb_prfpregset): New typedef, depends on
5223 definition of PRFPREGSET_T_BROKEN.
5224 (ps_lgetfpregs, ps_lsetfpregs, p_td_thr_getfpregs,
5225 p_td_thr_setfpregs, thread_db_fetch_registers,
5226 thread_db_store_registers): Use gdb_prfpregset_t instead of
5228 * config.in: Regenerated.
5229 * configure: Regenerated.
5233 * mips-tdep.c (do_fp_register_row): copy the number of bytes
5234 allocated, not the size of the pointer.
5238 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Define.
5239 * config/i386/tm-i386sol2.h (HAVE_I387_REGS): Define.
5240 * i386v4-nat.c (supply_fpregset, fill_fpregset): Add code
5241 to handle floating point registers if NUM_FREGS is not zero.
5245 * sol-thread.c (init_sol_core_ops): Initialize to_thread_alive
5246 and document to_find_new_threads bug.
5250 * infrun.c (proceed, normal_stop): Change the error message about
5251 failure to insert breakpoints/watchpoints so that it makes sense
5252 even if ptrace is not used or no other processes can be active.
5256 * configure.in: Add --enable-maintainer-mode.
5257 * aclocal.m4, configure: Re-generate.
5259 * Makefile.in ($(srcdir)/copying.c): Enable dependencies only when
5260 on maintainer-mode. Update copying.c in source directory.
5261 (copying.txt): Delete rule.
5262 (copying.o): Add explict paths to $(srcdir) and explicit make
5267 * ia64-linux-nat.c (IA64_PSR_DB, IA64_PSR_DD): Define.
5268 (fetch_debug_register, fetch_debug_register_pair,
5269 store_debug_register, store_debug_register_pair, is_power_of_2,
5270 enable_watchpoints_in_psr, ia64_linux_insert_watchpoint,
5271 ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
5273 * config/ia64/nm-linux.h (TARGET_HAS_HARDWARE_WATCHPOINTS,
5274 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
5275 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
5276 target_remove_watchpoint): Define.
5277 (ia64_linux_stopped_by_watchpoint, ia64_linux_insert_watchpoint,
5278 ia64_linux_remove_watchpoint): Declare.
5282 * go32-nat.c (go32_insert_hw_breakpoint): When there are no more
5283 hardware breakpoint resources, return EBUSY.
5284 (go32_handle_nonaligned_watchpoint): If the argument WHAT is not
5285 one of the enumerated values, return EINVAL.
5289 * README: Mention special build instructions for DJGPP.
5290 * NEWS: Update with FP features on x87 platforms, and
5291 DJGPP-related changes.
5295 * top.c (gdb_completer_file_name_break_characters): New variable.
5296 (line_completion_function): When completing on file names, use
5297 gdb_completer_file_name_break_characters as word break
5298 characters for the readline library.
5302 * i387-tdep.c (print_i387_value): Avoid call to
5303 floatformat_to_doublest if long double type is the same on host
5308 * wrapper.h: Remove definitions of internal functions.
5309 * wrapper.c: Remove definitions of exported functions (which are
5310 already in wrapper.h) and make static all internal wrap_* functions.
5314 * acconfig.h (USE_INCLUDED_REGEX): Add.
5315 * Makefile.in (REGEX_CFLAGS): Delete
5316 * configure.in (REGEX_CFLAGS): Delete. Use AC_DEFINE instead.
5317 * configure, config.in: Re-generate.
5321 * arm-linux-nat.c (arm_skip_solib_resolver): Remove and move to
5323 * arm-linux-tdep.c (arm_skip_solib_resolver): New.
5328 * command.h (enum command_class): Remove trailing "," to placate
5333 * TODO, NEWS: Update. Mention MI.
5337 * gdbarch-utils.h, gdbarch-utils.c: Delete.
5338 * arch-utils.h, arch-utils.c: New files. Avoid 14 character file
5340 * Makefile.in: Update.
5341 * gdbarch.c: Update.
5346 * mips-tdep.c (saved_gpreg_size_enums): Define enum command for
5347 new "set mips saved-gpreg-size" command
5348 (MIPS_SAVED_REGSIZE): Now a function mips_saved_regsize()
5349 (MIPS_DEFAULT_SAVED_REGSIZE): Define for default MIPS_SAVED_REGSIZE,
5350 either from target, or gdb multi-arch
5351 (show_mips_command): New. For "show mips" prefix command
5352 (set_mips_command): New. For "show mips" prefix command
5353 (_initialize_mips_tdep): Add top-level mips prefix command
5354 Add "set mips saved-gpreg-size" command
5356 * mips-tdep.c (struct gdbarch_tdep): Rename mips_saved_regsize to
5357 mips_default_saved_regsize.
5358 (mips_gdbarch_init): Update.
5359 (MIPS_DEFAULT_SAVED_REGSIZE): Update.
5360 (mips_gdbarch_init): Use MIPS_REGSIZE as the default value for
5361 mips_default_saved_regsize.
5366 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
5367 replace calls to target_xfer_memory() with target_read_memory()
5368 and target_write_memory().
5372 * valops.c (value_rtti_type): Compare VALUE_ADDRESS with ``0'' not
5373 NULL. Macro returns a CORE_ADDR.
5377 * dwarf2read.c: Revert Andrew Cagney's change of Dec 15, 1997.
5378 Don't include "bfd-elf.h".
5379 (address_significant_size): Delete variable.
5380 (dwarf2_build_psymtabs_hard): Don't set it, or check for
5381 consistency between it and the Dwarf 2 compilation unit header
5383 (read_address): Don't mask off bits above
5384 address_significant_size.
5385 * Makefile.in (dwarf2read.o): Don't depend on $(elf_bfd_h).
5386 (elf_bfd_h): Remove variable; it's no longer used.
5390 * configure.in (NEW_PROC_API): Escape square brackets when testing
5392 * configure: Regenerate.
5396 * ChangeLog: Correct date on last entry.
5397 * arm-linux-tdep.c (arm_linux_push_arguments): New function.
5398 * config/arm/tm-linux: Redefined PUSH_ARGUMENTS for Linux.
5399 * config/arm/tm-embed: Fix build warning from redefinition of
5401 * config/arm/tm-arm.h: Remove TARGET_BYTE_ORDER_SELECTABLE.
5402 * config/arm/tm-wince.h: Remove TARGET_BYTE_ORDER_SELECTABLE and
5403 TARGET_BYTE_ORDER. Add TARGET_BYTE_ORDER_SELECTABLE_P to
5404 override default in tm-arm.h. Use default target byte order
5409 * Makefile.in: Add dependency information for arm-linux-tdep.c.
5410 * config/djgpp/fnchange.lst: Add arm-linux-tdep.c, arm-linux-nat.c.
5414 * sol-thread.c (gdb_ps_addr_t): New typedef, depends on definition
5415 of PROC_SERVICE_IS_OLD.
5416 (ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite,
5417 rw_common): Change argument type from psaddr_t to gdb_ps_addr_t.
5421 * Makefile.in (CFLAGS): Set using configure.
5423 * configure.in (WARN_CFLAGS): Enable by default when GCC.
5424 * configure: Re-generate.
5429 * procfs.c (init_procfs_ops): Set procfs_ops.to_has_memory and
5430 procfs_ops.to_has_all_memory to 1.
5436 * configure.in (_MSE_INT_H): Define on Solaris 7.
5437 (NEW_PROC_API): Define on Solaris 7 and 8 as well as 6.
5438 * acconfig.h (_MSE_INT_H): Define on Solaris 7.
5439 * configure: Regenerate.
5440 * config.in: Regenerate.
5444 * sol-thread.c (GET_LWP, GET_THREAD, BUILD_LWP, BUILD_THREAD):
5445 Change to rely on PIDGET etc.
5446 * config/i386/nm-i386sol2.h (TARGET_HAS_WATCHPOINTS,
5447 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT,
5448 STOPPED_BY_WATCHPOINT, target_[insert/remove]_watchpoint):
5449 define. Allow target to use procfs hardware watchpoints.
5450 * config/sparc/nm-sun4sol2.h: ditto.
5451 * config/i386/tm-i386sol2.h (PIDGET, TIDGET, MERGEPID): modify
5452 definitions to use 16 bits for the pid, 15 bits for the tid, and
5454 * config/sparc/tm-sun4sol2.h: ditto.
5455 (SOFTWARE_SINGLE_STEP, SOFTWARE_SINGLE_STEP_P): undefine.
5456 * testsuite/gdb.threads/pthreads.exp (all_threads_running): Allow
5457 for more than 15 thread increments.
5461 * top.c (filename_completer): Set subsequent_name to 1 early on,
5462 to prevent an infinite loop if the first file in the directory is
5463 a backup file (whose name ends in a `~').
5467 * solib.c (update_solib_list): New function.
5468 (solib_add): Call update_solib_list, and then read symbols.
5469 (info_sharedlibrary_command): Call update_solib_list, not
5474 * arm-linux-tdep.c: Resolve implicit function declarations by
5475 including target.h and value.h. Inclusion of symtab.h is
5480 * arm-linux-tdep.c: New file.
5481 * arm-linux-nat.c (fetch_fpregs): Remove unused code.
5482 (arm_get_longjmp_target): Moved it and all defines
5483 it uses to arm-linux-tdep.c.
5484 (arm_linux_extract_return_value): Moved to
5486 * config/arm/linux.mt: Add arm-linux-tdep.c to TDEPFILES.
5490 * infrun.c (handle_inferior_event): Call target_mourn_inferior
5491 instead of kill_target.
5495 * TODO: Make note of various C++ things i have planned for 5.1.
5499 * printcmd.c (print_scalar_formatted): Use local variable ptr_bit
5500 in shift. Stop GCC thinking it has a shift overflow.
5504 * TODO: Remove the regex entry.
5508 * gdb_regex.h: New. Include "regex.h" if USE_INCLUDED_REGEX
5509 is defined and <regex.h> otherwise.
5511 * irix5-nat.c: Include "gdb_regex.h" instead of "gnu-regex.h".
5512 * monitor.c: Likewise.
5513 * osfsolib.c: Likewise.
5514 * solib.c: Likewise.
5515 * source.c: Likewise.
5516 * symtab.c: Likewise.
5518 * Makefile.in (REGEX): Changed to @REGEX@.
5519 (REGEX_CFLAGS): New.
5521 (ADD_DEPS): Use $(REGEX) instead of $(REGEX1).
5522 (INTERNAL_WARN_CFLAGS): Add $(REGEX_CFLAGS).
5524 * configure.in (--with-included-regex): New switch.
5525 (REGEX): New. Subsstitue @REGEX@ in Makefile.in.
5526 (REGEX_CFLAGS): New. Subsstitue @REGEX_CFLAGS@ in Makefile.in.
5527 * configure: Regenerated.
5531 * NEWS (powerpc-*-linux*): Mention.
5535 * config/i386/xm-nbsd.h (HOST_LONG_DOUBLE_FORMAT): Define.
5539 * Makefile.in (ALLDEPFILES): Add ia64-linux-nat.c and ia64-tdep.c.
5540 (ia64-linux-nat.o, ia64-tdep.o): Add dependencies.
5542 * ia64-linux-nat.c (fill_gregset): Implement.
5543 (supply_fpregset, fill_fpregset): New functions.
5545 * ia64-tdep.c (ia64_init_extra_frame_info): Revise manner in
5546 which the CFM is fetched for certain frames.
5547 (find_global_pointer, find_extant_func_descr): Don't use
5548 partial symtabs for locating sections.
5550 * config/ia64/linux.mh (LOADLIBES): Define.
5551 (NATDEPFILES): Add linux-thread.o and lin-thread.o.
5552 * config/ia64/nm-linux.h (nm-linux.h): Include this upper-level
5553 file containing generic linux declarations/definitions.
5554 (SVR4_SHARED_LIBS, ATTACH_DETACH): Remove defines; already
5555 defined in generic nm-linux.h.
5556 (solib.h): Remove include; already included in generic nm-linux.h.
5560 * solib.c (solib_add): Move all the code for loading symbol tables
5561 below the code to sort out additions and removals. That way, we
5562 always catch all loaded shared libraries whose symbols we haven't
5565 * solib.c (solib_add): Don't try to free a shared object's objfile
5566 if it doesn't have one. Duh.
5568 * solib.c (solib_add): If a pattern was given, but it doesn't
5569 match any currently loaded shared libraries, print a message;
5570 don't just be silent.
5574 * go32-nat.c (go32_handle_nonaligned_watchpoint): Use a
5575 two-dimensional array instead of faking it with index
5580 * config/i386/xm-go32.h (HOST_LONG_DOUBLE_FORMAT): Define.
5582 * config/i386/tm-go32.h (TARGET_LONG_DOUBLE_BIT): Remove
5583 definition (and use the common one in tm-i386.h).
5584 (REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Likewise.
5585 (I386_DJGPP_TARGET): Don't define, it's no longer required.
5586 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Remove definition,
5587 i386-tdep.c defines it for all x86 targets.
5588 (LD_I387, HEX_LONG_DOUBLE_INPUT): Remove.
5590 * config/djgpp/fnchange.lst: Add i386-linux-tdep.c.
5592 * config/djgpp/djcheck.sh: Edit the copyright year out of the test
5593 results. Fix editing of `main' arguments for non-GNU Sed.
5597 * symfile.c (map_overlay_command, unmap_overlay_command): Fix
5598 error message: there's no "overlay on" command.
5602 * Makefile.in (copying.c): Depend on copying.txt, not COPYING.
5603 (copying.txt): New target, a link to COPYING.
5612 (set_hook, error_hook): Remove PARAMS.
5616 * symtab.h (add_minsym_to_demangled_hash_table): Revert 2000-03-29
5618 * minsyms.c (add_minsym_to_demangled_hash_table): Add prototype.
5622 * gdb-events.h, gdb-events.c, gdb-events.sh: Re-indent.
5626 * gdbtypes.c (safe_parse_type): New wrapper function to ignore
5627 error() during parse_and_eval_type().
5628 (check_stub_method): Call safe_parse_type instead of
5629 parse_and_eval_type().
5630 * wrapper.c (gdb_parse_and_eval_type): New wrapper function.
5631 (wrap_parse_and_eval_type): New support function.
5632 * wrapper.h (gdb_parse_and_eval_type): Prototype.
5633 (wrap_parse_and_eval_type): Prototype.
5637 * MAINTAINERS: Eli Zaretskii is a doco maintainer.
5641 * gdbarch-utils.h, gdbarch-utils.c: New files.
5642 * Makefile.in (SFILES, COMMON_OBS): Update.
5643 (gdbarch_utils_h) Define.
5644 (gdbarch-utils.o): Add dependencies.
5646 * gdbarch.c, gdbarch.sh: Include "gdbarch-utils.h". Fix code
5647 handling default method values.
5648 (startup_gdbarch): Rename default_gdbarch, name misleading.
5649 (breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
5650 (register_name): Default to legacy_register_name.
5651 (call_dummy_words): Default to legacy_call_dummy_words.
5652 (sizeof_call_dummy_words): Default to
5653 legacy_sizeof_call_dummy_words.
5654 (register_convertible): Default to
5655 generic_register_convertible_not.
5656 (breakpoint_from_pc): Default to legacy_breakpoint_from_pc.
5657 (remote_translate_xfer_address): Default to
5658 generic_remote_translate_xfer_address.
5659 (frameless_function_invocation): Default to
5660 generic_frameless_function_invocation_not.
5664 * i386-linux-nat.c: Add copyright notice.
5666 * config/i386/xm-linux.h (HOST_LONG_DOUBLE_FORMAT): Define as
5667 &floatformat_i387_ext.
5668 * config/i386/xm-i386gnu.h (HOST_LONG_DOUBLE_FORMAT): Likewise.
5672 * findvar.c (extract_floating): Remove reference to
5673 TARGET_EXTRACT_FLOATING.
5674 (store_floating): Remove reference to TARGET_STORE_FLOATING.
5678 * wrapper.c (gdb_value_subscript, wrap_value_subscript): New functions.
5679 Safe version of value_subscript.
5680 * varobj.c (): Use gdb_value_subscript() to get an array element value.
5684 * ui-file.c: Include "gdb_string.h"
5685 * cli-out.c: Include gdb_string.h to avoid compiler warnings.
5686 * wrapper.[ch] (struct gdb_wrapper_arguments): Change fields into
5687 unions, since they are all used to hold both pointers and ints
5688 at various times. Casting pointer to int and vice versa gives
5689 warnings (and is not safe) if they are not the same size.
5693 * defs.h (struct continuation_arg): Make 'data' a union, to avoid
5694 casting problems when int and pointer are not the same size.
5695 * event-top.c (command_handler): Use data as a union.
5696 (command_line_handler_continuation): Ditto.
5697 * infcmd.c (step_1_continuation): Use data as a union. Re-indent.
5698 (step_once): ditto. (finish_command_continuation): Ditto.
5699 (finish_command): Ditto.
5700 * breakpoint.c (until_break_command): Use data as a union.
5701 (until_break_command_continuation): Ditto.
5702 * utils.c (add_intermediate_continuation): Fix typo in comment.
5706 * gdbarch.h, gdbarch.c: Re-indent. Remove FIXMEs.
5707 * gdbarch.sh: Re-sync with gdbarch.[hc].
5711 * minsyms.c (add_minsym_to_demangled_hash_table): New function.
5712 (install_minimal_symbols): Fix demangled symbol problems caused by
5713 using add_minsym_to_hash_table for the demangled names, which is
5714 wrong. Now we use add_minsym_to_demangled_hash_table.
5715 (lookup_minimal_symbol): Fix problems with demangled symbol lookup
5716 caused by weird control flow.
5717 * symtab.h: Add add_minsym_to_demangled_hash_table prototype here.
5721 * configure.in: -linux-gnu*, not -linux-gnu.
5725 * remote.c (remote_threads_extra_info): Replace qfThreadExtraInfo
5726 with qThreadExtraInfo.
5730 * i386nbsd-nat.c (fetch_core_registers): Make static.
5732 * m68knbsd-nat.c (fetch_core_registers): Make static.
5733 (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added.
5737 * TODO: Update GDB 5 status.
5741 * breakpoint.h (remove_hw_watchpoints): Add declaration.
5742 * breakpoints.c (remove_hw_watchpoints): Update.
5743 * maint.c (maintenance_do_deprecate): Avoid assignment within IF
5748 breakpoint.c, breakpoint.h (remove_hw_watchpoints): New function.
5749 infrun.c (resume): Remove hardware watchpoints before stepping
5750 when CANNOT_STEP_HW_WATCHPOINTS is nonzero.
5754 * Makefile.in: Anchor tui-file.h dependency to $srcdir.
5758 * procfs.c (proc_set_watchpoint): Declare addr parameter as
5759 CORE_ADDR, to match call from procfs_set_watchpoint.
5761 * breakpoint.c (insert_breakpoints, do_enable_breakpoint):
5762 Reselect the saved frame silently after frame selection for
5763 watchpoint evaluation.
5764 (insert_breakpoints): Add missing space in `Hardware watchpoint
5765 deleted' message. Do not reinsert hardware watchpoint if it is
5766 already marked for deletion at next stop.
5770 * partial-stab.h: Add one more check against corrupted or irregular
5775 * gnu-regex.c (regerror): Function renamed from `__regerror'.
5776 (Change also approved in the mainline glibc sources)
5781 * ser-unix.c (do_unix_readchar): Reorganise to be more robust,
5782 particularly ensuring it can't return SERIAL_TIMEOUT when told
5787 * gdbtypes.c (_initialize_gdbtypes): Add "set debug overload",
5788 which never existed before, and thus, has no deprecated old command.
5790 * gdbarch.c (_initialize_gdbarch): Add "set debug arch", deprecate
5791 "set archdebug" (same goes for the show commands).
5792 * gdb-events.c (_initialize_gdb_events): Add "set debug event",
5793 deprecate "set eventdebug" (same goes for the show commands).
5794 * gdbcmd.h: Add the setdebuglist and showdebuglist externs.
5795 * top.c (init_main): Deprecate remotedebug, use "set/show debug remote"
5797 x(init_main): Add the "set debug" and "show debug" commands.
5798 Add setdebuglist and showdebuglist.
5802 * maint.c (maintenance_do_deprecate): Fix crash if you call with no arguments, and fixed the warning.
5803 Added prototype for the deprecate command so it doesn't complain.
5807 * top.c (print_gdb_version): Bump copyright year to 2000.
5811 * MAINTAINERS: Add Glen McCready to write after approval list.
5815 * acconfig.h: Fix typo in comment describing HAVE_PTRACE_GETREGS.
5816 * config.h: Regenerate.
5820 * TODO: Update. Add criteria for next release of GDB.
5824 * acconfig.h: Provide default for HAVE_PTRACE_GETREGS.
5825 * config.h: Regenerate.
5829 * Makefile.in (install-only): Create $(bindir) and $(man1dir)
5830 before installing GDB.
5834 * Makefile.in (all-gdbtk): Check for an existing link/directory.
5835 Re-format warning message. Document that post 5.0 this can be
5840 * ChangeLog: Revert whitespace changes.
5844 * MAINTAINERS: Update folks who need accounts.
5848 * MAINTAINERS: J.T. Conklin is NetBSD maintainer.
5852 * config/i386/tm-i386.h: Fix typo. It is TARGET_LONG_DOUBLE_BIT
5853 instead of TARGET_LONG_DOUBLE_BITS.
5854 * config/i386/tm-i386mk.h: Likewise.
5858 Provide `long double' support for most i386 targets.
5859 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT): Define as
5860 &floatformat_i387_ext.
5861 (TARGET_LONG_DOUBLE_BITS): Define as 96.
5862 (REGISTER_VIRTUAL_TYPE): Change type for FPU registers to
5863 `builtin_type_long_double'.
5864 (REGISTER_CONVERT_TO_VIRTUAL): Call
5865 i386_register_convert_to_virtual.
5866 (REGISTER_CONVERT_TO_RAW): Call i386_register_convert_to_raw.
5867 (i387_to_double, double_to_i387): Remove prototypes.
5868 (i386_extract_return_value): Change prototype to match definition
5870 * config/i386/tm-i386mk.h (TARGET_LONG_DOUBLE_FORMAT): #undef.
5871 (TARGET_LONG_DOUBLE_BITS): #undef.
5872 * config/i386/tm-linux.h (TARGET_LONG_DOUBLE_BIT): Remove.
5873 [HAVE_LONG_DOUBLE && HOST_I386] (LD_I387): Remove.
5874 (i387_extract_floating, i387_store_floating): Remove prototypes.
5875 (TARGET_EXTRACT_FLOATING, TARGET_STORE_FLOATING): Remove.
5876 (REGISTER_CONVERT_TO_VIRTUAL, REGOISTER_CONVERT_TO_RAW): Remove.
5877 (REGISTER_VIRTUAL_TYPE): Remove.
5878 * i386-tdep.c (i386_register_convert_to_virtual): New function.
5879 (i386_register_convert_to_raw): New function.
5880 * i387-tdep.c [LD_I387] (i387_extract_floating): Remove.
5881 (i387_store_floating): Remove.
5885 * maint.c: Re-indent.
5889 * maint.c (_initialize_maint_cmds): Remove quoted trailing space.
5893 * config/mips/tm-wince.h: Fix typo which caused include of tm-mips.h to
5898 * win32-nat.c: Back out special frame walking code. It was broken.
5899 (handle_exception): Correctly identify an illegal instruction.
5900 * config/tm-cygwin.h: Eliminate special frame handling. Just use
5901 normal i386 handling.
5905 * i386/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
5906 * i386nbsd-nat.c (i386nbsd_use_struct_convention): New function.
5907 (fetch_core_registers): Read fp registers.
5908 (i386nbsd_core_fns, _initialize_i386nbsd_nat): Added.
5912 * arm-tdep.c (thumb_skip_prologue): Take function end addr argument
5913 so that we can stop searching for the prologue past the function end
5914 (arm_skip_prologue): Call thumb_skip_prologue with function end addr
5918 * linux-thread.c, lin-thread.c (save_inferior_pid,
5919 restore_inferior_pid): Don't do compile time comparison
5920 of TARGET_PTR_BIT and TARGET_INT_BIT.
5924 * m68k-tdep.c (P_LINKL_FP, P_LINKW_FP): Macros renamed from P_LINK_L
5926 (P_PEA_FP, P_MOVL_SP_FP): New macros.
5927 (P_MOVL, P_LEAL, P_MOVML): Macros renamed from P_MOV_L, P_LEA_L and
5929 (altos_skip_prologue, isi_skip_prologue): Use P_* macros, not octal
5931 (delta68_in_sigtramp): New function.
5932 (delta68_frame_args_address, delta68_frame_saved_pc): Ditto.
5933 (m68k_skip_prologue): Use P_* macros, not hex constants.
5934 (m68k_find_saved_regs): Do not expect a fixed sequence of register save
5935 instructions, but accept them in any order; use P_* macros, not octal
5936 or hex constants; recognize also `fmovemx to (fp + displacement)' and
5937 `moveml to (fp + displacement)'.
5938 * m68/tm-delta68.h (IN_SIGTRAMP): New macro.
5939 (FRAME_SAVED_PC, FRAME_ARGS_ADDRESS): Ditto.
5943 * MAINTAINERS: Add Fernando Nasser to testsuite maintainers.
5947 * solib.c (open_symbol_file_object): To sneak an int argument
5948 past catch_errors, instead of casting it to a pointer, simply
5953 * gdbtypes.c (rank_function): Rank all N parameters and use correct
5954 index into the prams[] and args[] arrays.
5960 * top.c (execute_command): Checks all commands beore executing
5961 to see if the user needs to be warned that the command is
5962 deprecated, warns user if appropriate.
5963 (add_info), (add_info_alias), (add_com) , (add_com_alias): Changed
5964 return values from void to struct cmd_list_element *.
5965 * command.c (lookup_cmd_1): Check aliases before following link
5966 in case user needs to be warned about a deprecated alias.
5967 (deprecate_cmd): new exported function for command deprecation,
5968 sets flags and posibly a replacement string.
5969 (deprecated_cmd_warning): New exported funciton to warn user about
5970 a deprecated command.
5971 (lookup_cmd_composition): New exported function that determines
5972 alias, prefix_command, and cmd based on a string. This is useful
5973 is we want to full name of a command.
5974 * command.h : Added prototypes for deprecate_cmd,
5975 deprecated_warn_user and lookup_cmd_composition, added flags to
5976 the cmd_list_element structure, changed return values for
5977 add_com_* and add_info_* from void to cmd_list_element.
5978 * maint.c : (maintenance_deprecate): New function to deprecate a
5979 command. This exists only so that the testsuite can deprecate
5980 commands at runtime and check the warning behavior.
5981 (maintenance_undeprecate) : New function, drops deprecated flags.
5982 (maintenance_do_deprecate): Actually does the (un)deprecation.
5983 (initialize_maint_cmds): Added the above new deprecate commands.
5986 * command.c (apropos_cmd_helper): New function, meat of the
5988 (apropos_command): New apropos command to search command
5989 names/documentation for regular expressions.
5990 (_initialize_command): Add the apropos command.
5994 * sol-thread.c (ps_pglobal_lookup): Change argument type from
5995 paddr_t to psaddr_t. This mistake appears to date from an
5996 erroneous man page in Solaris 2.5 -- the correct type from the
5997 system headers has always been psaddr_t.
5998 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Ditto.
6003 * ia64-linux-nat.c: Fix copyright.
6004 (fill_gregset): Minor formatting fix.
6005 * ia64-tdep.c (template_encoding_table, fetch_instruction,
6006 examine_prologue): Clean up some compiler warnings.
6007 (is_float_or_hfa_type_recurse, is_float_or_hfa_type, find_func_descr,
6008 find_global_pointer, find_extant_func_descr): New functions.
6009 (ia64_use_struct_convention, ia64_extract_return_value,
6010 ia64_push_arguments): Handle HFAs.
6011 (ia64_push_arguments): Find (or build) a function descriptor
6012 when given a function address.
6013 (ia64_push_return_address): Moved code for finding the
6014 global pointer into its own function, find_global_pointer ().
6018 * event-loop.c (handle_file_event): Run through indent.
6024 * event-loop.c (sys/types.h): File now included unconditionally.
6025 (use_poll): New variable..
6026 (gdb_notifier): poll- and select-versions merged.
6027 (add_file_handler): If HAVE_POLL, check whether poll is usable,
6028 and reset `use_poll' if not.
6029 (create_file_handler): Select poll- or select-version according to
6031 (delete_file_handler, handle_file_event): Likewise.
6032 (gdb_wait_for_event, poll_timers): Likewise.
6036 * printcmd.c (print_scalar_formatted): Truncate addresses to the
6037 size of a target pointer before passing them to print_address.
6041 * config/i386/tm-i386aix.h (I386_AIX_TARGET): Remove.
6042 * config/i386/tm-linux.h (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM):
6044 * i386-tdep.c (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): New defines.
6045 (i386_extract_return_value): Rewritten. Correctly support all
6046 floating-point types and large integer types on targets that use
6047 the standard i386 GDB register layout and return floating-point
6052 * configure.in (CONFIG_INITS): Do not append remote-nrom.c
6056 * i386/nbsd.mh (NATDEPFILES): Change i386b-nat.o to i386nbsd-nat.o.
6057 * i386nbsd-nat.c: New file.
6059 * i386/tm-nbsd.h (NUM_REGS): Removed.
6060 (HAVE_I387_REGS): Defined.
6061 * i386/nm-nbsd.h (FLOAT_INFO): Removed.
6063 * tm-nbsd.h (IN_SOLIB_CALL_TRAMPOLINE): Define if not
6068 * MAINTAINERS: Add Jim Blandy to breakpoint maintainers. David
6069 taylor is the Solaris/SPARC maintainer. Add Jonathan Larmour to
6070 the write after approval list.
6074 * symtab.h (MAX_SECTIONS, struct section_addr_info,
6075 symbol_file_add): Move declarations from here...
6076 * symfile.h: ...to here.
6078 * solib.c (symbol_add_stub): Make symbol_file_add () aware of
6079 all section addresses, not just .text.
6080 * symfile.h, symfile.c (free_section_addr_info,
6081 build_section_addr_info_from_section_table): New functions.
6083 * symfile.h (MAX_SECTIONS): Increase value to 40.
6084 * symfile.c (syms_from_objfile): Add bounds check prior to
6085 accessing ``other'' array in a section_addr_info_struct.
6086 Remove unused variable section_offsets.
6087 (add_symbol_file_command): Remove unused variable text_addr.
6091 * breakpoint.c (bpstat_stop_status): Don't stop if a read
6092 watchpoint appears to break, but the watched value changed.
6096 * gdbarch.sh: Emit a definition and declaration for gdbarch_free,
6097 a companion to gdbarch_alloc, which allows a gdbarch init function
6098 to free partially-built gdbarch structures.
6099 * gdbarch.c, gdbarch.h: Regenerated.
6103 * configure.host, configure.tgt (ia64-*-linux*): New entry.
6105 * gdbserver/low-linux.c (u_offsets, ia64_register_u_addr,
6106 initialize_arch): Define for IA-64.
6107 (initialize_arch): Add declaration.
6111 * breakpoint.c (insert_breakpoints, remove_breakpoint)
6112 (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert,
6113 remove, or check status of hardware watchpoints for entire structs
6114 and arrays unless the user explicitly asked to watch that struct
6116 (insert_breakpoints): Try to insert watchpoints for all the values
6117 on the value chain, even if some of them fail to insert.
6119 * values.c (value_primitive_field): Set the offset in struct value
6120 we return when the field is a packed bitfield.
6124 * remote.c (remote_threads_extra_info): New function.
6125 Implement the extra thread info query for "info threads".
6126 (remote_threads_info): Clean up a bit.
6127 (use_threadinfo_query, use_threadextra_query): New variables.
6128 Control whether GDB will use the new or old protocol for
6129 thread info queries.
6130 (remote_open_1): Initialize new variables.
6131 (remote_async_open_1): Ditto.
6132 (remote_cisco_open): Ditto.
6136 * ia64-linux-nat.c, ia64-tdep.c, config/ia64/linux.mh,
6137 config/ia64/linux.mt, config/ia64/nm-linux.h, config/ia64/tm-ia64.h,
6138 config/ia64/tm-linux.h, config/ia64/xm-linux.h: New files.
6142 * utils.c (floatformat_from_doublest): Don't assume that a long
6143 will be exactly 32 bits in length. Also... make sure space
6144 that we're writing the float to is completely initialized to
6145 zeroes, even when the number of bits in the float is not
6146 evenly divisible by FLOATFORMAT_CHAR_BIT.
6150 * i386-linux-nat.c: No need to #include "frame.h" any more.
6151 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6152 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6153 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
6154 LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
6155 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6156 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
6157 linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
6158 i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
6159 i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
6160 i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
6161 i386_linux_sigtramp_saved_sp): Deleted. Folks rightly pointed
6162 out that these are target-dependent, and useful in non-native
6163 configurations. Moved to...
6164 * i386-linux-tdep.c: ... Here, a new file.
6165 * Makefile.in (ALLDEPFILES): Add i386-linux-tdep.c.
6166 (i386-linux-tdep.o): New rule.
6167 (i386-linux-nat.o): We no longer depend on frame.h.
6168 * config/i386/linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6172 * event-loop.c (top-level) [NO_FD_SET]: Deprecate this branch.
6173 Print an error at compile time if we are to use select, but FD_SET
6175 (SELECT_MASK, NBBY, FD_SETSIZE, NFDBITS, MASK_SIZE): Define only
6176 if HAVE_POLL is not defined and NO_FD_SET *is* defined.
6177 (create_file_handler) [!HAVE_POLL]: Use FD_SET and FD_CLR.
6178 (delete_file_handler) [!HAVE_POLL]: Use FD_CLR and FD_ISSET.
6179 (gdb_wait_for_event) [!HAVE_POLL]: Copy fd_set sets directly
6180 instead of using memcpy and memset. Use FD_ISSET.
6182 * config/i386/xm-go32.h (fd_mask): Remove typedef.
6186 * command.c (_initialize_command): Document requirements for ``!''
6191 From Fri 10 Mar 2000 Robert
6193 * sh-tdep.c (sh_processor_type_table): Add entry for sh2.
6197 From Thu Mar 16 16:49:27 EST 2000 John David Anglin
6199 * configure.in (CONFIG_INITS): Don't include hpux-thread.c. Stops
6200 _initialize_hpux_thread being called twice.
6201 * configure: Regenerated.
6205 * event-top.c (_initialize_event_loop): If instream is not
6206 connected to a terminal device, turn editing off.
6210 Support for building GDB with DJGPP, and running the test suite on
6212 * config/djgpp/djconfig.sh: New file.
6213 * config/djgpp/config.sed: New file.
6214 * config/djgpp/README: New file.
6215 * config/djgpp/fnchange.lst: New file.
6216 * config/djgpp/djcheck.sh: New file.
6220 * ser-go32.c (ports): Make the initializers complete, to pacify
6225 * i386v-nat.c (i386_insert_nonaligned_watchpoint): Use a
6226 two-dimensional array, instead of faking it with explicit index
6229 * linux-thread.c (linuxthreads_attach, linuxthreads_detach,
6230 linuxthreads_create_inferior): Fix typo in variable name: it's
6231 linuxthreads_exit_status, not linux_exit_status.
6233 * gdb_wait.h (WSETSTOP): Pass the appropriate number of arguments
6236 * solib.c (solib_add): Delete debugging code.
6240 * gdb_wait.h: add definitions of WSETSTOP and WSETEXIT for Linux.
6241 * linux-thread.c: Use WSETSTOP instead of W_STOPCODE.
6245 * language.c (set_lang_str): Do not call `free' for a null pointer.
6246 (set_type_str, set_range_str): Ditto.
6250 * i386-linux-nat.c (i386_linux_saved_pc_after_call): Lost in the
6253 * solib.c (current_sos): Be more careful about freeing the new
6254 so_list node if an error occurs.
6256 * i386-tdep.c (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6257 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6258 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2, linux_sigtramp_code,
6259 LINUX_SIGTRAMP_LEN, i386_linux_sigtramp_start,
6260 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6261 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1,
6262 linux_rt_sigtramp_code, LINUX_RT_SIGTRAMP_LEN,
6263 i386_linux_rt_sigtramp_start, i386_linux_in_sigtramp,
6264 i386_linux_sigcontext_addr, LINUX_SIGCONTEXT_PC_OFFSET,
6265 i386_linux_sigtramp_saved_pc, LINUX_SIGCONTEXT_SP_OFFSET,
6266 i386_linux_sigtramp_saved_sp): Deleted. These all implement
6267 Linux-specific signal trampoline detection, and should be moved
6269 * i386-linux-nat.c: ... here.
6270 * config/i386/tm-linux.h (I386_LINUX_SIGTRAMP): No need to define
6271 this any more, since we're not enabling OS-specific code in a
6272 OS-independent file.
6276 * Makefile.in (go32-nat.o): Add prerequisites.
6277 (ALLDEPFILES): Add go32-nat.c.
6282 * symfile.c (reread_symbols): Clear msymbol hash table.
6286 Deal with the inferior unloading shared objects.
6287 * solib.c (current_sos): New function, replacing find_solib.
6288 (find_solib): Deleted.
6289 (free_so): New function.
6290 (clear_solib): Call free_so, instead of writing it out.
6291 (solib_add): Rewritten: compare the inferior's current list of
6292 shared objects with GDB's list, and do the required loads and
6294 (info_sharedlibrary_command, solib_address): Don't use find_solib
6295 to walk the list of shared libraries: call solib_add, and then
6296 walk the list at so_list_head normally.
6297 * objfiles.c (free_objfile): Don't call CLEAR_SOLIB, and don't
6298 detach the core target. These tasks are taken care of elsewhere.
6299 * target.c (remove_target_sections): New function.
6300 * target.h (remove_target_sections): New declaration.
6302 * solib.c (symbol_add_stub): Check whether we've already created
6303 an objfile for this shared object first, before doing all that
6304 work to compute section addresses, etc.
6306 * objfiles.c (unlink_objfile): Report an internal error if objfile
6307 doesn't occur in the object_files list.
6309 * solib.c (special_symbol_handling): Delete argument; it's not
6314 * solib.c (SOLIB_EXTRACT_ADDRESS): New macro to extract addresses
6315 from solib structures. Use it throughout solib.c, get rid of all
6317 (struct so_list): Change type of lmaddr to CORE_ADDR.
6318 (first_link_map_member): Change return value type to CORE_ADDR,
6320 (solib_add_common_symbols): Change parameter type to CORE_ADDR,
6322 (open_symbol_file_object, find_solib): Change type of lm variable
6327 * ser-go32.c (dos_noop, dos_raw, dos_noflush_set_tty_state)
6328 (dos_print_tty_state, dos_info, _initialize_ser_dos): Convert
6329 to ISO C. Use ATTRIBUTE_UNUSED to avoid compiler warnings.
6330 (dos_info): Avoid compiler warning when printing a ptrdiff_t.
6332 * ser-go32.c (dos_get_tty_state): Fail if the (fake) handle was
6333 not opened by dos_open, but let the 3 standard handles go through
6338 * eval.c (evaluate_subexp_with_coercion): Add call to
6339 check_typedef, to handle typedeffed vars correctly.
6343 * defs.h (STREQ, STRCMP, STREQN): Document that these macros are
6345 (QUIT): Note that this can probably be replaced by a function.
6349 Add support for a variable object that tries to evaluate itself in
6350 the currently selected frame, rather than in a fixed frame.
6352 * wrapper.c,h (gdb_parse_exp_1): Added a wrapper for
6354 * varobj.h: Added USE_CURRENT_FRAME to varobj_type & changed def'n
6356 * varobj.c (varobj_list): Return type indicates whether the
6357 variable's type has changed (for current frame variables).
6358 (varobj_update): Handle the case where the variable's type has
6360 (delete_variable_1): Allow for deletion of variables that have not
6362 (new_root_variable): Initialize use_selected_frame variable.
6363 (value_of_root): This is where most of the work to handle "current
6364 frame" variables was added. Most of the complexity involves
6365 handling the case where the type of the variable has changed.
6366 (varobj_create): Add a "type" argument, to tell if the
6367 variable is one of these "current frame" variables. Also protect
6368 call to parse_exp_1 from long jumping.
6372 * go32-nat.c (struct env387): Remove declaration.
6373 (print_387_status, i386_go32_float_info): Remove redundant
6375 (regno_mapping, sig_map, excepn_map): Add braces around inner
6377 (many functions): Use ATTRIBUTE_UNUSED to shut up the compiler;
6378 fix code which mixed signed with unsigned.
6379 (go32_resume): Use TARGET_SIGNAL_LAST instead of -1.
6380 (go32_wait): Initialize INT3_addr.
6381 (go32_fetch_registers): Extend all FP registers that are shorter
6382 than 4 bytes to 32 bits. Support 32 standard FP registers defined
6383 on config/i386/tm-i386.h.
6384 (store_register): Support 32 FP registers.
6385 (go32_create_inferior): Don't crash if handed a NULL pointer
6386 instead of exec file name.
6387 (ignore): Remove unused function.
6388 (go32_insert_hw_breakpoint): Remove unused variables.
6389 (init_go32_ops): Set value of processing_gcc_compilation to 2.
6394 overloading, add support for seeing through references:
6395 * valops.c (find_overload_match): Handle STABS overloading for
6397 (find_overload_match): Look in right place for function arguments
6399 (find_overload_match): Rather than giving up when we have >1
6400 perfect match, just choose one, especially since the
6401 recommendation GDB gives ("disambiguate it by specifying function
6402 signature"), is basically impossible.
6403 (check_field_in): STREQ->strcmp_iw
6404 (search_struct_field): STREQ->strcmp_iw
6405 (find_method_list): STREQ->strcmp_iw
6406 * gdbtypes.c (rank_one_type): Add ability to see through
6408 (rank_one_type): strcmp->strcmp_iw, because the whitespace could
6410 (rank_function): Rank function properly (was doing it wrong
6411 before, comparing the wrong parts of the arrays)
6412 (rank_one_type): Change #if 0 to #ifdef DEBUG_OLOAD.
6413 * gdbtypes.h: Add REFERENCE_CONVERSION_BADNESS for "badness"
6414 associated with converting a non-reference to a reference.
6415 * eval.c (evaluate_subexp_standard): for OP_VAR_VALUE, always
6416 return full value object; for STRUCTOP_PTR, use pointer to
6417 rtti type to get member / method if objectprint is set and
6418 target type of pointer is class.
6420 * gdbtypes.c (rank_one_type): Add comment on how to eliminate the
6425 * gnu-nat.c: Fix the formatting where indent misinterpreted `&' as
6427 (gnu_attach): Change error message for missing
6428 argument to be identical to the corresponding message in
6429 `inftarg.c'. This makes the testsuite happy.
6433 * i386gnu-nat.c (gnu_store_registers): Make sure the T bit in the
6434 %eflags isn't modified. This fixes a bug where every call to a
6435 function in the program beyond the first call would fail.
6439 * MAINTAINERS: Devolve responsibility for domain maintenance.
6443 * minsyms.c (prim_record_minimal_symbol_and_info): Add comment.
6447 * gdb.base/long_long.exp: Correct test suite failure when printing
6448 a long long value as a double on ARM platforms.
6452 * MAINTAINERS (Core): Anthony Green is the Java - including
6453 testsuite - maintainer. Reformat testsuite and language support
6458 * i386-tdep.c (i386_linux_saved_pc_after_call): New function.
6459 * config/i386/tm-linux.h (SAVED_PC_AFTER_CALL): Define to call
6460 i386_linux_saved_pc_after_call.
6466 * minsyms.c: #include <ctype.h>, for msymbol_hash_iw.
6467 (compact_minimal_symbols): Added `objfile' argument.
6468 Put symbols in the objfile's hash table.
6469 (install_minimal_symbols): Put symbols in the objfile's demangled
6471 (lookup_minimal_symbol): Use hash table to find symbol in
6473 (msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): New
6475 (prim_record_minimal_symbol_and_info): Initialize the
6476 hash link fields of the new minimal symbol.
6477 * symtab.h (struct minimal_symbol): New fields `hash_next',
6478 `demangled_hash_next'.
6479 (msymbol_hash_iw, msymbol_hash, add_minsym_to_hash_table): Declare.
6480 * objfiles.h (MINIMAL_SYMBOL_HASH_SIZE): New define.
6481 (struct objfile): New fields `msymbol_hash',
6482 `msymbol_demangled_hash'.
6486 * solib.c (first_link_map_member): Doc fix.
6492 * event-loop.c (poll_timers): Don't compare delta.tv_sec with
6493 zero, since time_t might be unsigned.
6497 * i386-linux-nat.c (supply_fpregset): Mask off the reserved bits
6499 (convert_to_fpregset): Don't touch the reserved bits in *FPREGSETP.
6503 Allow GDB to run on Linux 2.0 again.
6504 * config.in: Add HAVE_PTRACE_GETREGS.
6505 * configure.in: Check if <sys/ptrace.h> defines PTRACE_GETREGS.
6506 * configure: Regenerated.
6507 * config/i386/nm-linux.h (CANNOT_FETCH_REGISTER,
6508 CANNOT_STORE_REGISTER): New defines.
6509 * i386-linux-nat.c (have_ptrace_getregs): New variable.
6510 (PTRACE_XFER_TYPE, CANNOT_FETCH_REGISTER, fetch_register,
6511 old_fetch_inferior_registers, CANNOT_STORE_REGISTER,
6512 store_register, old_store_inferior_registers): Copied over from
6513 `inptrace.c' as a temporary measure.
6514 (fetch_regs, store_regs, fetch_fpregs, store_fpregs):
6515 Conditionalize on HAVE_PTRACE_GETREGS. Define stubs if
6516 HAVE_PTRACE_GETREGS isn't defined.
6517 (fetch_regs): Reset `have_ptrace_getregs' if ptrace call fails
6519 (fetch_inferior_registers, store_inferior_registers): Fall back on
6520 the method use in `infptrace.c' (by calling
6521 old_fetch_inferior_registers and old_store_inferior_registers) if
6522 `have_ptrace_getregs' isn't set.
6526 * i386-linux-nat.c: Use elf_gregset_t and elf_fpregset_t instead
6527 of gregset_t and fpregset_t. Those are the only names that are
6528 guaranteed to specify the right types for all supported Linux
6530 Various doc fixes and gratitious local variable renames, all in an
6531 attempt to stress similarities between the code and unify the
6532 terminology used. Use ISO-C all over.
6533 (regmap): Remove trailing comma.
6534 (FPREG_ADDR): Renamed from FPREGSET_T_FPREG_ADDR.
6535 (convert_to_gregset): Make static. Remove GDB_REGS argument. It
6536 is unnecessary and wasn't used anyway. All callers changed.
6537 (convert_to_fpregset, convert_to_xfpregset): Likewise.
6538 (fetch_regs, store_regs): Remove unused variable `regno'.
6539 (fill_fpregs): If REGNO is not -1, only update the specified
6541 (fetch_core_registers): Renamed from
6542 i386_linux_fetch_core_registers. There is no need for a unique
6543 name since the function is static anyway.
6544 (linux_elf_core_fns): Renamed from i386_linux_nat_core_functions
6545 since it is more descriptive.
6549 * MAINTAINERS (readline/): Expand to include host maintainers.
6553 Fix support for Linux/i386 signal trampolines. The old approach
6554 didn't work for Linux 2.2 and beyond, and didn't work with recent
6555 versions of the GNU C library.
6556 * i386-tdep.c (LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6557 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): New defines.
6558 (linux_rt_sigtramp_code): New variable.
6559 (LINUX_RT_SIGTRAMP_LEN): New define.
6560 (i386_linux_rt_sigtramp_start): New function. Detect start of
6561 signal trampolines for RT signals.
6562 (i386_linux_sigtramp): Removed.
6563 (i386_linux_in_sigtramp): New function.
6564 (i386_linux_sigcontext_addr): New function. Recognize the names
6565 of the signal tranmpolines used by recent versions of the GNU C
6566 library, and add support for RT signals.
6567 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET): New
6568 defines. Moved here from config/i386/tm-linux.h.
6569 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6570 Reimplement in terms of i386_linux_sigcontext_addr.
6571 * config/i386/tm-linux.h (LINUX_SIGCONTEXT_SIZE): Removed.
6572 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_SP_OFFSET):
6573 Moved to i386-tdep.c.
6574 (IN_SIGTRAMP): Redefine to call i386_linux_in_sigtramp.
6579 * Makefile.in (all-gdbtk): Fix $srcdir to ${srcdir}.
6583 * MAINTAINERS: Frank Ch. Eigler and Andrew Cagney co-ordinate the
6588 * MAINTAINERS: Add Michael Snyder and Peter Schauer to list of
6589 ``Blanket Write Privs'' maintainers.
6594 * language.c (longest_local_hex_string_custom): Don't compile
6595 'long long' section if host doesn't have 'long long'.
6599 * language.c (longest_raw_hex_string): Comment out. Appears
6604 * utils.c (mcalloc), defs.h (mcalloc): Keep consistent with
6605 "mmalloc.h" which means using PTRs.
6606 (init_malloc, msavestring, mstrsave): Convert to PTR free ISO-C.
6610 * defs.h (store_address, store_unsigned_integer, store_address):
6611 Replace PTR with void* in delcaration.
6612 * findvar.c (extract_signed_integer, extract_unsigned_integer,
6613 extract_long_unsigned_integer, extract_address,
6614 store_signed_integer, store_unsigned_integer, store_address):
6615 Convert definition to ISO-C. Replace PTR with void*.
6619 * defs.h (make_cleanup_func): Document as deprecated.
6620 (make_cleanup_ftype): New typedef. Make signature consistent with
6621 other function typedefs. Document as not be used out side of
6622 make_cleanup code. Use in make_cleanup declarations.
6623 (null_cleanup): Replace PTR with void*.
6625 * utils.c (make_cleanup, make_final_cleanup, make_run_cleanup,
6626 make_exec_cleanup, make_exec_error_cleanup, make_my_cleanup,
6627 null_cleanup): Change K&R definition to ISO-C using void* and
6629 (discard_my_cleanups): Don't cast argument to free.
6633 * defs.h (struct continuation_arg): Change type of field 'data'
6636 * event-loop.h: Eliminate uses of PTR, use 'void *' instead.
6638 * event-top.c: Ditto.
6642 * Makefile.in (CONFIG_CLEAN, CONFIG_ALL, LN_S): Defined by
6644 (SUBDIR_MI_CLEAN, SUBDIR_GDBTK_CLEAN, SUBDIR_MI_ALL,
6645 SUBDIR_GDBTK_ALL): Define.
6646 (all-gdbtk, clean-gdbtk): New targets.
6647 (all): Add CONFIG_ALL as dependency.
6648 (clean): Add CONFIG_CLEAN as dependency.
6650 * configure.in (CONFIG_ALL, CONFIG_CLEAN): Define.
6651 (LN_S): Define. Delete GDBtk's link code.
6655 * configure.in (ENABLE_GDBTK): Delete variable.
6656 (enable-gdbtk): Only enable gdbtk when there is a GDBTK directory.
6657 * Makefile.in: Update.
6658 * configure: Regenerate
6662 * config/alpha/alpha-linux.mh: Remove core-regset.o fron the
6667 * config/i386/tm-i386aix.h (NUM_FPREGS, NUM_REGS, REGISTER_BYTES):
6668 Override definitions to include the normal FPU registers.
6669 (REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6670 REGISTER_CONVERT_TO_RAW): Removed. The default definitions are
6672 (i387_to_double, double_to_i387): Remove prototypes.
6676 * findvar.c (extract_floating, store_floating): Use target
6677 floating point type sizes rather host sizes to determine
6678 which conversion needs to be done.
6682 * uw-thread.c: Apply GNU conventions to comment formatting.
6683 (deactivate_uw_thread): Call remove_thread_event_breakpoints().
6684 (uw_thread_mourn_inferior): Move remove_thread_event_breakpoints()
6685 call to deactivate_uw_thread().
6689 * MAINTAINERS: Daniel Berlin is C++ maintainer.
6693 * MAINTAINERS: Mark Kettenis is the x86 architcture maintainer and
6694 a joint GNU/Linux/x86 maintainer. Nick Duffeck and Robert Lipe
6695 share SCO/Unixware. Nick Duffek and Peter Schauer share
6701 * remote-sim.c (gdbsim_close): Call generic_mourn_inferior.
6702 * remote-rdi.c (arm_rdi_close): Ditto.
6706 * CONTRIBUTE (configure.in): Note that patches to configure are
6711 * MAINTAINERS: Correct my own mail address.
6715 * MAINTAINERS: Document people with paperwork pending.
6720 Make NEW_PROC_ABI interface functional on Solaris x86.
6721 * sol-thread.c (ps_lgetLDT): Rewrite to use new
6722 procfs_find_LDT_entry function from procfs.c, mostly copied from
6724 * inferior.h, procfs.c (procfs_get_pid_fd): Removed, no longer
6730 * config/i386/tm-i386sol2.h (MERGEPID): Define.
6735 * config/i386/tm-i386.h (FRAME_INIT_SAVED_REGS): Replace
6736 FRAME_FIND_SAVED_REGS.
6737 (i386_frame_init_saved_regs): Replace i386_frame_find_saved_regs.
6738 * i386-tdep.c (i386_frame_init_saved_regs, i386_pop_frame):
6744 * objfiles.c (open_mapped_file): Fix obsolete references to `mapped'
6750 * config/i386/nm-go32.h (FLOAT_INFO): Remove macro definition.
6751 (top level): Add prototypes for go32_* functions.
6752 * config/i386/tm-go32.h (I386_DJGPP_TARGET): Define.
6753 (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC):
6754 Override definitions from tm-i386.h.
6755 (REGISTER_VIRTUAL_TYPE): Remove macro definition.
6756 * i386-tdep.c (i386_extract_return_value)
6757 [I386_AIX_TARGET || I386_GNULINUX_TARGET]: Add I386_DJGPP_TARGET
6758 to the list of targets which return FP values in FP registers.
6760 * i386-tdep.c (i386_extract_return_value): Add FIXME recommending
6761 that this function be re-implemented using multi-arch.
6766 * utils.c [__GO32__]: Include pc.h, for prototypes of ScreenCols
6768 * ser-go32.c: Include string.h, for prototype of strncasecmp.
6769 (dpmi_regs, dpmi_sregs): Remove unused variables.
6770 (dos_flush_input): Return a value, to prevent compiler warning.
6771 * expprint.c (dump_prefix_expression): Use %ld in format and cast
6772 sizeof(union exp_element) to long, to prevent GCC from complaining
6773 about format/argument mismatch.
6774 (dump_postfix_expression): Likewise.
6778 * arm-tdep.c: Include <ctype.h>.
6783 * stack.c (backtrace_command_1), infrun.c (normal_stop): Check
6784 that the target's stack was valid.
6789 * dwarf2read.c (read_address): Read 16-bits addresses.
6793 * arm-linux-nat.c (fetch_nw_fpe_*):
6794 Renamed to fetch_nwfpe_* to use the same naming convention
6795 as in the Linux kernel. Modified prototype to get rid of
6797 (store_nw_fpe_*): Renamed to store_nwfpe_* to use the same
6798 naming convention as in the Linux kernel. Fixed calls to
6800 (store_fpregs): Fixed calls to store_nwfpe_*. Removed
6805 * MAINTAINERS: Transfer d30v maintainership to David Taylor.
6809 * win32-nat.c: Remove unneeded header.
6814 * wince.c: Include "gdb_wait.h" and not "wait.h".
6818 * MAINTAINERS: Mention mmalloc. Expand Host/Native and
6819 Target/Architecture maintainers descriptions.
6823 * gnu-nat.c: Include "gdbthread.h". Include <hurd.h>.
6824 Reorder headers a bit. Overall cleanup and minor reformatting.
6825 (MIG_SERVER_DIED): Remove define.
6826 (proc_update_sc): Add braces to silence compiler warning.
6827 (proc_steal_exc_port): Initialize err to zero.
6828 (make_proc): Add braces to silence compiler warning.
6829 (inf_validate_task_sc): Add cast to silence compiler warning.
6830 (inf_set_traced): Reorganize a bit to silence compiler warning.
6831 (inf_validate_procs): Use mach_msg_type_number_t for all thread
6832 numbers and add braces to silence compiler warning.
6833 (gnu_wait): Add prototypes for server functions and add braces to
6834 silence compiler warnings.
6835 (S_exception_raise_request): Pass subcode to inf_debug call.
6836 (gnu_write_inferior): Remove unused variable `protection_changed'.
6837 (gnu_xfer_memory): Remove unused variable `result'.
6838 (set_sig_thread_cmd): Remove unused varible `tid'.
6839 (set_signals_cmd): Remve unused variable `trace'.
6840 (add_task_commands): Provide complete prototype. Reformat help
6841 strings a bit to make sure the first line is a full sentence.
6842 Call info_port_rights_cmd instead of info_send_rights_cmd for the
6843 "info port-rights" command.
6844 (add_thread_commands): Provide complete prototype. Make static.
6845 Reformat help strings a bit to make sure the first line is a full
6847 (_initialize_gnu_nat): Provide complete prototype.
6851 Make cross-compilation for the Hurd more friendly.
6853 * configure.in: Use AC_CHECK_TOOL to find MiG.
6854 * Makefile.in (MIG): New variable.
6855 * config/i386/i386gnu.mh (MIG): Remove.
6856 * configure: Regenerated.
6860 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add
6861 comment explaining motivation behind this function and why
6862 the generic facilities won't work for this platform.
6863 * rs6000-tdep.c (skip_prologue): Always test to make sure
6864 that an instruction is read successfully from the target's
6865 memory. Introduce notion of instructions which may appear in
6866 the prologue, but may not end the prologue. Added explicit
6867 check for nop instruction. Use memset() to zero the frame
6868 data instead of assignment from a statically allocated,
6869 uninitialized structure.
6873 * MAINTAINERS: Chris Faylor is responsible for all MS Windows
6874 systems. Note that Jim Blandy as maintainer for ``tracing
6880 * rdi-share/hsys.c: to compile under 4.4BSD derived systems (FreeBSD,
6881 NetBSD...) sys_errlist should not be declared in hsys.c.
6882 NEED_SYSERRLIST is set already by configure, so we can use it.
6883 * rdi-share/unixcomm.c: 4.4BSD derived systems define BSD, but are
6884 posix compliant and we should not work with the old compatibility
6885 stuff. Because of that I undef BSD in case of FBSD etc and include
6886 sys/ioctl to get the flags.
6887 * rdi-share/unixcomm.c: If the TIOCEXCL flags exists set serial line
6892 * ppc-linux-tdep.c (ppc_sysv_abi_push_arguments): Put address
6893 of return structure in r3 if necessary.
6894 (ppc_linux_memory_remove_breakpoints): New function.
6895 * rs6000-tdep.c (skip_prologue): Make sure that the cases
6896 for storing either cr or lr to the stack only handle those
6897 cases. (I.e, don't let these cases match 0x00000000 which is
6898 found found in the shared library trampoline prior to the
6899 loading of the shared library.)
6900 * config/powerpc/tm-linux.h (ppc_linux_memory_remove_breakpoint):
6902 (MEMORY_REMOVE_BREAKPOINT): Define.
6906 * hppah-nat.c: Include "gdb_wait.h" instead of <wait.h>.
6910 * configure.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Set to
6911 $(SUBDIR_*_INSTALL) when so configured.
6912 * configure: Regenerate.
6914 * Makefile.in (CONFIG_INSTALL, CONFIG_UNINSTALL): Define using
6916 (install-only): Add dependency on $(CONFIG_INSTALL). Delete code
6918 (uninstall): Add dependency on $(CONFIG_UNINSTALL).
6919 (SUBDIR_MI_INSTALL, SUBDIR_MI_UNINSTALL, SUBDIR_GDBTK_UNINSTALL,
6920 SUBDIR_GDBTK_INSTALL): Define.
6921 (install-gdbtk): New target.
6925 * configure.in (SUBDIR_MI_CFLAGS): Fix typo, wrong brace.
6926 * configure: Regenerate.
6930 * configure.tgt: Add arm, mips, sh wince targets.
6931 * config/arm/tm-wince.h: New file.
6932 * config/arm/wince.mt: New file.
6933 * config/sh/tm-wince.h: New file.
6934 * config/sh/wince.mt: New file.
6935 * config/mips/tm-wince.h: New file.
6936 * config/mips/wince.mt: New file.
6937 * wince.c: New file.
6938 * wince-stub.c: New file.
6939 * wince-stub.h: New file.
6940 * sh-tdep.c: Use correct register names for Windows CE.
6944 * top.c (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Update comments.
6945 (error_return, quit_return): Merge into catch_return pointer.
6946 (return_to_top_level): Update comment. Longjmp to *catch_errors,
6947 and communicate reason to catch_errors via setjmp return value.
6948 (catch_errors): Always catch both quit and error, and if a catch
6949 wasn't requested by caller, throw it to the next catch_error.
6950 Replace dual longjmp buffer memcpy with single pointer change.
6951 Add FIXME for possibly adding new interface to tell caller what
6952 event was caught. Add extensive comments.
6953 * defs.h (enum return_reason): Reserve 0 for use as initial
6954 setjmp() return value.
6955 (RETURN_MASK): New public macro to generate RETURN_MASK_* from
6957 (RETURN_MASK_QUIT, RETURN_MASK_ERROR): Define using RETURN_MASK.
6961 * infcmd.c (run_stack_dummy): Do not pop frame on random signal.
6962 * valops.c (_initialize_valops): Add command "set unwindonsignal".
6963 (hand_function_call): Test for unwind_on_signal and act accordingly.
6967 * gdbarch.sh (dis_asm_read_memory): Change LEN to unsigned long.
6968 Match ../include/dis-asm.h change.
6969 * gdbarch.h: Regenerate.
6970 * corefile.c (dis_asm_read_memory): Update.
6974 * configure.in (CONFIG_INITS): Fix typo, was CONFIG_INIT.
6975 (ENABLE_CFLAGS): Move initialization to start of file.
6976 (enable-gdbmi): Add new configure option --enable-gdbmi. When
6977 selected and an ${srcdir}/mi directory is present enable MI
6980 * configure: Regenerate.
6982 * Makefile.in (SUBDIR_MI_OBS, SUBDIR_MI_SRCS, SUBDIR_MI_DEPS,
6983 SUBDIR_MI_INITS, SUBDIR_MI_LDFLAGS, SUBDIR_MI_CFLAGS): New macros.
6984 (CONFIG_OBS, CONFIG_SRCS, CONFIG_DEPS, CONFIG_INITS,
6985 CONFIG_LDFLAGS): New macros. Initialized by autoconf via
6987 (INTERNAL_LDFLAGS, CDEPS, LINTFILES, DEPFILES, SOURCES,
6988 INIT_FILES): Use $(CONFIG_...) instead of @CONFIG...@.
6990 * mi: New directory. MI interface to GDB.
6992 * defs.h (interpreter_p): Declare when UI_OUT.
6993 * top.c (gdb_init): When interpreter_p, check that the interpreter
6994 was recognized by one of the linked in interpreters.
6995 * main.c (interpreter_p): Define.
6996 (captured_main): When UI_OUT, check for ``-i <interpreter>'' option.
6997 * event-top.c (display_gdb_prompt): When interpreter_p, assume
6998 interpreter displays prompt.
7000 * breakpoint.c (print_it_typical, watchpoint_check,
7001 print_one_breakpoint, mention): When MI include additional
7002 target status information.
7003 * infrun.c (print_stop_reason, normal_stop): Ditto.
7007 * gdbarch.sh: Make the `default' field really default to zero, as
7010 Bring COERCE_FLOAT_TO_DOUBLE under gdbarch's control.
7011 * valops.c (COERCE_FLOAT_TO_DOUBLE): Rework definition to be
7013 (default_coerce_float_to_double, standard_coerce_float_to_double):
7015 (value_arg_coerce): Adjust for new definition.
7016 * value.h (default_coerce_float_to_double,
7017 standard_coerce_float_to_double): New declarations for the above.
7018 * gdbarch.sh (coerce_float_to_double): New entry, replacing macro.
7019 * gdbarch.c, gdbarch.h: Regenerated.
7020 * tm-alpha.h, tm-fr30.h, tm-m32r.h, tm-mips.h, tm-hppa.h,
7021 tm-rs6000.h, tm-sh.h, tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Change
7023 * mips-tdep.c (mips_coerce_float_to_double): Supply our own custom
7025 (mips_gdbarch_init): Install that as our coerce_float_to_double
7030 * ppc-linux-nat.c (supply_gregset, supply_fpregset): Add return
7032 * ppc-linux-tdep.c (ppc_linux_at_sigtramp_return_path): Add
7033 forward declaration.
7035 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc): Handle case
7036 where the next frame is a signal handler caller.
7038 * config/powerpc/tm-linux.h (PUSH_ARGUMENTS): Remove extraneous
7040 (tm-linux.h): Include.
7041 (tm-sysv4.h): Don't include (directly). config/tm-linux.h will
7042 include this file for us.
7043 (REALTIME_LO, REALTIME_HI): Don't define. These are defined by
7044 config/tm-linux.h for us.
7045 (SOFUN_ADDRESS_MAYBE_MISSING): Define.
7049 * Makefile.in (ppc-linux-nat.c, ppc-linux-tdep.c): New files.
7050 (ppc-linux-nat.o, ppc-linux-tdep.o): Add dependencies.
7051 * configure.tgt (powerpc-*-linux*): Separate from powerpc-*-eabi
7054 * ppc-linux-nat.c, ppc-linux-tdep.c, config/powerpc/linux.mt,
7055 config/powerpc/nm-linux.h, config/powerpc/tm-linux.h: New files.
7056 * config/powerpc/xm-linux.h: Substantially revised for native
7058 * config/powerpc/linux.mh (NAT_FILE): Redefine to be nm-linux.h.
7059 (NATDEPFILES): Update list to reflect the fact that we can
7062 * rs6000-tdep.c, config/rs6000/tm-rs6000.h
7063 (rs6000_frameless_function_invocation, rs6000_frame_saved_pc):
7064 Renamed; The former names were lacking the rs6000_ prefix.
7065 * rs6000-tdep.c (rs6000_frame_saved_pc): Call FRAME_CHAIN
7066 instead of rs6000_frame_chain.
7067 (rs6000_frame_chain): Call FRAMELESS_FUNCTION_INVOCATION instead
7068 of rs6000_frameless_function_invocation.
7074 * event-loop.c (handle_file_event): In case of poll, enable
7075 printing of informational message if an error/exception is
7076 detected on the file descriptor.
7080 * MAINTAINERS (Misc): Clarify that yes, anyone can edit web pages.
7084 * buildsym.c: Include "language.h" and "expression.h" for
7085 longest_local_hex_string_custom.
7089 * gdbarch.sh: Include <gdb_wait.h> instead of <wait.h>.
7090 * gdbarch.c: Already updated by Wed Feb 9 18:59:16 2000 Andrew
7095 * MAINTAINERS: Update: IA-64 - Kevin Buettner; ARM - Fernando
7096 nasser, Jim Ingham and Scott Bambrough; GNU/Linux ARM - Scott
7097 Bambrough; event loop - Elena Zannoni; SDS and RDI/APD protocol -
7098 to Fernando Nasser and Jim Ingham; KOD - Fernando Nasser; MI -
7099 Andrew Cagney, Elena Zannoni and Fernando Nasser; Web pages - Jim
7101 * MAINTAINERS: Add Nick Clifton to write after approval list.
7105 * MAINTAINERS: Add note on multiple maintainers.
7109 * cli-out.c (cli_table_header): Type of parameter `alignment' is
7110 `enum ui_align', not `int'.
7111 (cli_field_string, cli_field_skip): Likewise.
7116 * buildsym.h (add_free_pendings): Declare.
7117 * buildsym.c (add_free_pendings): New function.
7118 (make_blockvector): 32x64 fix using longest_local_hex_string().
7119 (start_subfile): initialize variable 'subfile'.
7123 * remote.c (remote_async_detach): Use target_mourn_inferior(), to
7124 make sure that all is cleaned up after we disconnect from the
7126 (remote_detach): Ditto.
7131 * ui-out.c (ui_out_set_flags): Fix typo, removing warning and
7132 potentially harming mistake.
7136 * arm-tdep.c: Use header file instead of extern declarations for
7137 the {get,set}_arm_regname* functions.
7141 * configure.in: Replaces obsolete gdbtk-variable.c with
7143 * configure: Regenerate.
7144 * Makefile.in: Remove obsolete/extraneous references to
7149 * target.c (do_target_signal_to_host): Do not use REALTIME_LO in
7150 the conversion of the signal number. TARGET_SIGNAL_REALTIME_33 is
7151 33 by definition, whereas REALTIME_LO might be 32 on systems that
7152 have SIG32 such as Linux. Make sure that the signal number
7153 returned is within the range specified by REALTIME_LO and
7158 * configure: Regenerated.
7162 * arm-tdep.c (set_disassembly_flavor, arm_othernames,
7163 _initialize_arm_tdep): Allows the user to choose between any of
7164 the flavors available for the disassembly to be used in the "info
7165 reg" command and elsewhere in gdb. It prevents having to maintain
7166 this information in two places by using the data kept in the
7171 * configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
7172 prfpregset_t in <sys/procfs.h>.
7173 * config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
7175 * gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
7176 prgregset_t and prfpregset_t if they are not already present.
7181 * procfs.c: Define MERGEPID if not defined. For osf4.0e.
7185 * Makefile.in (diststuff): Run 'diststuff' in doc/ subdir, not
7190 Changes for AIX 4.3:
7191 * rs6000-tdep.c (rs6000_fix_call_dummy): Set TOC register
7192 to correct value for generic dummy frames. When using
7193 generic dummy frames, don't attempt to write TOC value or
7194 function to call into the call dummy.
7195 (rs6000_push_arguments): Adapt USE_GENERIC_DUMMY_FRAMES
7196 code to also handle the PowerOpen ABI.
7197 (ppc_push_return_address): Enable for all ports.
7198 * config/powerpc/tm-ppc-aix.h (USE_GENERIC_DUMMY_FRAMES,
7199 PUSH_DUMMY_FRAME, PUSH_RETURN_ADDRESS, GET_SAVED_REGISTER,
7200 CALL_DUMMY_BREAKPOINT_OFFSET, CALL_DUMMY_LOCATION,
7201 CALL_DUMMY_ADDRESS, CALL_DUMMY_START_OFFSET): Override defaults
7202 provided by generic RS6000 definitions so that call dummies
7203 are implemented using generic dummy frames instead.
7205 * rs6000-nat.c (store_inferior_registers): Call exec_one_dummy_insn()
7206 prior to changing the stack pointer via ptrace(). Also, ignore
7207 attempts to store to undefined registers that are less than
7210 * rs6000-tdep.c (DUMMY_FRAME_SIZE): Change size of the dummy
7211 frame from 436 to 448 to account for alignment padding.
7212 (rs6000_push_arguments): Obtain actual register size instead
7213 of assuming the register is 4 bytes long. [There's still
7214 more work to be done to totally remove the 4 byte assumption,
7215 however.] Make sure the stack is 16 byte aligned as required
7216 by the PowerOpen ABI. Also, make sure that small structures
7217 passed in registers are properly aligned within the register.
7223 * rs6000-tdep.c (skip_prologue): skip copying of argument
7224 registers to local variable registers.
7228 * elfread.c (elf_symtab_read): Revert changes by Amit S. Kale. A
7229 sym->section->index number is not a SECT_OFF_* code.
7233 * MAINTAINERS (write after approval): Add H.J. Lu.
7237 * sh-tdep.c: Remove extraneous code.
7241 * elfread.c (elf_symtab_read): Move the use of sym to after where
7247 * MAINTAINERS: Make Nick Duffek the UnixWare threads maintainer.
7252 * dwarf2read.c: (die_is_declaration): New fn.
7253 (read_structure_scope): Use it.
7255 * dwarf2read.c: (die_is_declaration): Convert to ISO-C.
7259 * config/i386/nbsd.mt (GDBSERVER_DEPFILES): Add low-nbsd.o
7260 * configure.tgt (i[3456]86-*-netbsd*): add gdbserver to
7262 * gdbserver/low-nbsd.c: New file.
7264 * gdbserver/Makefile.in: convert to autoconf.
7265 * gdbserver/configure.in: likewise.
7266 * gdbserver/configure: generate.
7270 * CONTRIBUTE: New file. How to contribute to GDB.
7274 * MAINTAINERS: Add Eli Zaretskii to djgpp maintiners. Add Kevin
7275 Buettner to powerpc maintainers. Make Kevin Buettner the
7276 GNU/LINUX PPC native maintainer. Add J.T. Conklin, Jim Kingdon
7277 and Jason Molenda to write after aproval list.
7281 * MAINTAINERS: Reformat. Separate into check-in categories.
7285 * uw-thread.c: Remove __FUNCTION__ GNUism.
7289 * elfread.c (elf_symtab_read): Use offset for the section in which a
7290 symbol resides, instead of .text section for calculating address of a
7296 * gnu-nat.c: Remove hackery to include <bits/waitflags.h>. It is
7297 no longer necessary now we have gdb_wait.h.
7301 * gnu-nat.c (proc_string): Make global.
7302 (do_mach_notify_dead_name): Suppress dead name notifications if we
7303 know that the task is dead.
7307 * gnu-nat.c (inf_validate_task_sc): Get task info via proc server
7308 instead of directly from the kernel. Add some hackery to make
7309 sure that the info isn't influenced by suspension of the task in
7310 the proc server itself.
7314 * defs.h (MERGEPID): Added. Patch submitted by Andrew Hobson and
7315 approved by Michael Snyder.
7319 * linux-thread.c: Include defs.h before gdb_wait.h.
7323 * Makefile.in (wait_h): Delete macro. Update all dependencies
7324 specifying gdb_wait.h instead.
7326 * ser-unix.c, ser-pipe.c, remote.c, remote-udi.c, remote-sds.c,
7327 remote-os9k.c, remote-es.c, remote-rdp.c, remote-vx960.c,
7328 remote-vx.c, remote-st.c, remote-nindy.c, remote-mm.c,
7329 convex-xdep.c, convex-tdep.c, target.c, win32-nat.c, standalone.c,
7330 remote-vxmips.c, remote-vxsparc.c, remote-vx68.c, remote-vx29k.c,
7331 remote-sim.c, remote-rdi.c, remote-mips.c, remote-eb.c,
7332 remote-e7000.c, remote-bug.c, remote-array.c, remote-adapt.c,
7333 ppc-bdm.c, ocd.c, monitor.c, m3-nat.c, linux-thread.c,
7334 infttrace.c, lin-thread.c, infptrace.c, gnu-nat.c, gdbarch.c,
7335 fork-child.c, command.c: Include "gdb_wait.h" instead of <wait.h>
7337 * nindy-share/nindy.c, nindy-share/Onindy.c: Ditto.
7339 * gdb_wait.h: New file. Based on ../include/wait.h. Include
7340 <sys/wait.h> or <wait.h> and then define any missing WIF macros.
7344 * config/d10v/tm-d10v.h (NO_EXTRA_ALIGNMENT_NEEDED): Define.
7345 * config/d10v/tm-d10v.h (STACK_ALIGN): Define.
7346 (d10v_stack_align): Declare.
7347 * d10v-tdep.c (d10v_stack_align): Define.
7351 * top.c (remote_timeout): Change default to 2. Add comment
7352 explaining history of changes to the default value.
7353 * remote.c (_initialize_remote): Remove code that adds set/
7354 show remotetimeout, as that's also done in top.c
7358 * m32r-stub.c, sparcl-stub.c, sparclet-stub.c (handle_exception):
7359 Return E01 instead of P01 when 'P' command fails.
7363 * remote.c (putpkt_binary): Handle NAK from target stub.
7367 * configure.in: Remove the addition of sol-thread.c to the
7368 CONFIG_INITS list. This caused problems with init.c, because
7369 sol-thread.c would be grepped twice for _initialize_* functions.
7371 * Makefile.in: Add FIXME for init.c.
7375 Clean up compiler warnings:
7376 * bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c,
7377 stack.c, valprint.c: Change variables to unsigned.
7378 * bcache.c: Rearrange to avoid warnings about variables not being set.
7379 * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h
7380 rather than declaring print_max and repeat_count_threashold
7381 ourselves (incorrectly).
7382 * valprint.h: Do declare repeat_count_threashold.
7383 * ch-exp.c: Use default case for internal error.
7384 * findvar.c: Don't omit argument type.
7385 * symtab.c: Remove unused variable.
7389 * c-typeprint.c (remove_qualifiers): New function.
7390 (c_type_print_base): Use it to remove qualifiers from C++
7391 qualified names, not strrchr.
7393 * c-typeprint.c (c_type_print_base): Recognize type conversion
7394 operators by calling is_type_conversion_operator.
7395 (is_type_conversion_operator): New function.
7399 * config/arm/tm-arm.h (LOWEST_PC): Define.
7403 * infrun.c (resume): Make just one call to target_resume(), instead
7404 of four: set up correct parameters in all the cases ahead of time,
7405 and do call at the end.
7409 * config/powerpc/tm-ppc-eabi.h: Define
7410 SOFUN_ADDRESS_MAYBE_MISSING.
7414 * arm-tdep.c (arm_pc_is_thumb_dummy): Account for large dummy
7419 * Makefile.in (INIT_FILES): Append CONFIG_INITS
7420 * configure.in (CONFIG_INIT): Initialize.
7421 (links): Link srcdir/gdbtk/library to gdbtcl2.
7422 * gdbtcl2: Moved to gdbtk/library.
7423 ChangeLog-gdbtk, gdbtk-cmds.c, gdbtk-hooks.c, gdbtk-variable.c,
7424 gdbtk-varobj.c, gdbtk-wrapper.c, gdbtk-wrapper.h, gdbtk.c,
7425 gdbtk.h: Moved to gdbtk/generic.
7429 * printcmd.c (build_address_symbolic): New function. Returns all
7430 the parts that are necessary to print an address in a symbolic
7432 (print_address_symbolic): Split into a printing part and an
7433 information building part, build_address_symbolic().
7435 * defs.h (build_address_symbolic): Export.
7439 * dwarf2read.c (decode_locdesc): Add support for the DW_OP_bregx
7444 * arm-tdep.c (arm_push_arguments): Fix passing of floating point
7445 arguments on dummy frames.
7449 * arm-tdep.c (arm_pc_is_thumb_dummy): Account for large dummy frames.
7450 (arm_pop_frame): Account fr dummy frames (as opposed to real ones).
7454 * remote.c (getpkt_sane): New function. It is the old getpkt(),
7455 which now returns a timeout indication.
7456 (getpkt): New function. Wrapper for getpkt_sane(), so that return
7457 value can still be ignored.
7461 * top.c (print_gdb_version): Print ``UI_OUT'' when configured with
7466 * ui-file.c, ui-file.h: Rename gdb-file.h, gdb-file.c. Rename
7467 ``struct gdb_file'' to ``struct ui_file''. Delete typedef
7470 * Makefile.in: Update.
7472 * ax-gdb.c, ax-general.c, ax.h, buildsym.c, c-lang.c, c-lang.h,
7473 c-typeprint.c, c-valprint.c, ch-lang.c, ch-lang.h, ch-typeprint.c,
7474 ch-valprint.c, command.c, command.h, convex-tdep.c, corefile.c,
7475 cp-valprint.c, d10v-tdep.c, d30v-tdep.c, defs.h, expprint.c,
7476 expression.h, f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c,
7477 frame.h, gdb-events.sh, gdb-file.c, gdb-file.h, gdbcmd.h,
7478 gdbtypes.h, hppa-tdep.c, jv-lang.c, jv-lang.h, jv-typeprint.c,
7479 jv-valprint.c, language.c, language.h, m2-lang.c, m2-lang.h,
7480 m2-typeprint.c, m2-valprint.c, m3-nat.c, main.c, monitor.c,
7481 printcmd.c, pyr-tdep.c, remote-mips.c, remote-sim.c, remote-udi.c,
7482 remote.c, scm-lang.c, scm-lang.h, scm-valprint.c, ser-e7kpc.c,
7483 ser-go32.c, ser-mac.c, ser-ocd.c, ser-unix.c, ser-unix.h,
7484 serial.c, serial.h, stack.c, symfile.c, symmisc.c, tahoe-tdep.c,
7485 target.c, target.h, top.c, top.h, typeprint.c, typeprint.h,
7486 utils.c, v850ice.c, valprint.c, valprint.h, value.h,
7487 config/pa/tm-hppa.h: Update.
7488 * cli-out.c, cli-out.h, ui-out.c, ui-out.h, varobj.c: Update.
7492 * config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh,
7493 config/i386/i386dgux.mh, config/i386/i386sol2.mh,
7494 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
7495 config/i386/ncr3000.mh, config/m68k/m68kv4.mh,
7496 config/m88k/delta88v4.mh, config/mips/irix4.mh,
7497 config/mips/irix5.mh, config/mips/mipsv4.mh,
7498 config/powerpc/solaris.mh (NATDEPFILES): Change references to
7499 proc_api.o, proc_events.o, proc_flags.o, and proc_why.o to
7500 proc-api.o, proc-events.o, proc-flags.o, and proc-why.o.
7504 * top.c (fputs_unfiltered_hook): Moved to tui/tui-file.c.
7506 * main.c (captured_main): Only use the legacy tui_file code when
7507 linking in older code such as the TUI.
7509 * gdb-file.h, gdb-file.c: New files.
7510 * utils.c, defs.h (struct gdb_file, gdb_file_new, gdb_file_delete,
7511 null_file_isatty, null_file_rewind, null_file_put,
7512 null_file_flush, null_file_write, null_file_fputs,
7513 null_file_delete, gdb_file_data, gdb_flush, gdb_file_isatty,
7514 gdb_file_rewind, gdb_file_put, gdb_file_write, fputs_unfiltered,
7515 set_gdb_file_flush, set_gdb_file_isatty, set_gdb_file_rewind,
7516 set_gdb_file_put, set_gdb_file_write, set_gdb_file_fputs,
7517 set_gdb_file_data, struct accumulated_gdb_file,
7518 do_gdb_file_xstrdup, gdb_file_xstrdup, struct mem_file):
7519 mem_file_new, mem_file_delete, mem_fileopen, mem_file_rewind,
7520 mem_file_put, mem_file_write, struct stdio_file): stdio_file_new,
7521 stdio_file_delete, stdio_file_flush, stdio_file_write,
7522 stdio_file_fputs, stdio_file_isatty, stdio_fileopen, gdb_fopen):
7523 Moved to gdb-file.h and gdb-file.c.
7524 * utils.c (enum streamtype, struct tui_stream, tui_file_new,
7525 tui_file_delete, tui_fileopen, tui_sfileopen, tui_file_isatty,
7526 tui_file_rewind, tui_file_put, tui_file_fputs,
7527 tui_file_get_strbuf, tui_file_adjust_strbuf, tui_file_flush,
7528 fputs_unfiltered_hook):
7529 Moved to tui/tui-file.c and tui/tui-file.h.
7531 * Makefile.in (COMMON_OBS): Add gdb-file.o, tui-file.o.
7532 (tui-file.o, gdb-file.o): Add dependencies.
7533 (corefile.o, main.o, utils.o, simmisc.o): Update dependencies.
7534 * main.c: #include tui/tui-file.h.
7538 * findvar.c (value_from_register): Special case handling of D10V
7539 pointer values fetched from registers.
7543 * arm-tdep.c (thumb_skip_prologue, thumb_scan_prologue): Add
7544 support for new style thumb prologues.
7548 * arm-tdep.c: Remove extraneous dash at start of strings
7549 introduced in previous delta.
7553 * arm-tdep.c: Replace uses of arm_toggle_renames() with
7554 parse_arm_disassembler_option().
7558 * symtab.c (decode_line_1): Don't let commas that are within
7559 quotes or parenthesis terminate the line spec. Don't use pp when
7560 removing the final double quote of a double-quoted string. Don't
7561 forget to skip the opening double quote. I have no clue whether
7562 this change is correct; probably we've just moved this function
7563 from one buggy place to another buggy place, and never came within
7564 an outhouse whiff of correctness.
7565 (find_toplevel_char): New function.
7569 * arm-tdep.c (arm_push_arguments): Set the thumb mode bit when
7570 passing the pointer to a thumb function as an argument.
7574 * remote-rdi.c (arm_rdi_mourn_inferior): Make sure breakpoints
7575 are reinserted for another run.
7579 * cli-out.c (cli_filed_string): Test for NULL string.
7583 * infcmd.c (run_stack_dummy): Account for a random signal stopping
7584 the inferior as well as breakpoints being hit while performing an
7585 inferior function call.
7586 * valops.c (hand_function_call): Ditto.
7592 * config/i386/tm-i386gnu.h (THREAD_STATE_FLAVOR): Define to
7593 i386_REGS_SEGS_STATE.
7594 (HAVE_I387_REGS): Define.
7595 (FLOAT_INFO): Remove.
7596 * i386gnu-nat.c: Almost completely rewritten to use new i386
7597 register layout and `float info' implementation.
7598 * gnu-nat.c (inf_update_procs, proc_get_state, proc_string):
7599 Move prototypes from here.
7600 * gnu-nat.h: To here.
7604 * utils.c (get_field, put_field): Fix buffer underruns and
7605 overruns. Also, handle case where total_len is not evenly
7607 (getfield): Make sure zeroing of unwanted bits occurs even
7608 when bit field to extract does not straddle two or more
7613 * defs.h: Add gdb_thread_select declaration.
7617 * linux-thread.c (_initialize_linuxthreads): Make sure that
7618 linuxthreads_block_mask does not block SIGCHLD.
7622 * rdi-share/devsw.c (openLogFile): On cygwin, set the log mode to
7623 text so that new lines work properly.
7627 * proc-utils.h: New file. Export functions from proc-*.c.
7629 * proc_api.c: Rename to:
7630 * proc-api.c: New file. Add include of proc-utils.h.
7632 * proc_events.c: Rename to:
7633 * proc-events.c: New file.
7635 * proc_flags.c: Rename to:
7636 * proc-flags.c: New file.
7638 * proc_why.c: Rename to:
7639 * proc-why.c: New file. Add include of proc-utils.h.
7641 * procfs.c: Add includes of gdbthread.h, sys/wait.h, signal.h,
7642 ctype.h, proc-utils.h.
7643 (find_procinfo_or_die): Add braces to avoid ambiguous else clause.
7644 (open_procinfo_files): Conditionalize local variable tmp, to avoid
7646 (proc_iterate_over_mappings): Conditionalize local vars mapfd and
7648 (procfs_wait): Adjust format in some printf_filetered calls to
7649 avoid compiler warnings.
7650 (make_signal_thread_runnable): Ifdef 0. The calls to this function
7651 are also ifdef'd 0 .
7652 (procfs_resume): Add parentheses around '&&' operation.
7653 (procfs_set_exec_trap): Remove unused variable.
7654 (info_proc_cmd): Add braces to avoid ambiguous else clause.
7656 * Makefile.in (procfs.o, proc-api.o, proc-events.o, proc-flags.o,
7657 proc-why.o): Update dependencies.
7659 * config/sparc/sun4sol2.mh (NATDEPFILES): Change proc_*.o files to
7664 * configure.in (NEW_PROC_API): Fix Unixware-matching regexp.
7666 * configure: Regenerated.
7670 * stack.c (print_frame_info_base): Break up into the frame info
7671 (location) printing part and the rest (source line printing).
7672 (print_frame): New function. Take care of printing the location
7676 * infrun.c (normal_stop): Use enum values rather than integers for the
7677 source_flag to be passed to show_and_print_stack_frame().
7680 * frame.h (print_what): New enum for 'source' argument to
7681 print_frame_info_base(). Use this instead of obscure numbers.
7686 * event-top.c (stdin_event_handler): call quit_command rather than
7687 exit -- run cleanups, give target code a chance to say goodbye to
7688 the target. Fixes bug where the inferior processes were left
7689 around on Solaris (and probably elsewhere) by the testsuite.
7693 * v850-tdep.c (v850_target_architecture_hook): Setup correct
7694 machine id for disassembly.
7698 * i386-linux-nat.c (fill_gregset): Pass the correct arguments to
7699 convert_to_regset, when regno indicates a specific register.
7703 * uw-thread.c: Document libthread.so debugging interface. Minor
7704 comment and formatting tweaks.
7705 (DEBUG): #define as 0 instead of 1.
7706 (CALL_BASE): Include function name in error msg.
7707 (libthread_stub): Adjust inferior_pid after thread exit.
7708 (uw_thread_create_inferior): Deactivate uw_thread_ops before
7709 asking procfs_ops to create inferior.
7710 (libthread_init): Don't return nonlocally on error.
7714 * rdi-share/ardi.c (negotiate_params): Fix initialization of static
7719 * remote-rdi.c (arm_rdi_open): Call arm-rdi-close() to make sure
7720 both sides are on the same state.
7724 * rdi-share/serdrv.c (find_baud_rate): Fix entries for 57600 and
7725 115200 (minor syntax mistake).
7729 * config/sparc/tm-sun4sol2.h (MERGEPID): Provide a definition for
7730 this here, to go along with the definitions of PIDGET and TIDGET.
7734 * thread.c (do_captured_thread_select): New function. Switch
7735 current thread, safely from within catch_errors().
7736 (gdb_thread_select): New function. Switch threads safely.
7737 (thread_command): Use gdb_thread_select().
7739 (do_captured_list_thread_ids): New function.
7740 (gdb_list_thread_ids): New function.
7742 * defs.h (gdb_thread_select, gdb_list_thread_ids): Export.
7746 * configure.in: Avoid linking -limagehlp unless it's a native build.
7747 * configure: Regenerate.
7748 * thread.cc (add_thread): Clear private data pointer here or suffer
7749 strange behavior when it is checked for NULL later.
7753 * win32nat.c (handle_exceptions): Handle various arithmetic exceptions.
7754 * configure.in: Add an additional library to cygwin link.
7755 * configure: Regenerate.
7758 * coffread.c (coff_symfile_read): Reinstate ability to recognize "pe"
7763 * uw-thread.c: New file to support UnixWare user-mode threads:
7765 * target.h (struct target_ops): New vector, to_extra_thread_info,
7766 allows back-ends to give extra details in info thread display.
7767 (target_extra_thread_info): define new macro.
7768 (target_find_new_threads): simplify macro. Cleanup comments.
7769 * target.c (to_extra_thread_info): default and inherit new vector.
7770 (cleanup_target): eliminate PARAMS, break up long lines,
7771 provide default definition for to_extra_thread_info, and
7772 to_find_new_threads. Default to_thread_alive and to_query
7773 to return_zero, not target_ignore (they each return int not void).
7774 (debug_to_find_new_threads): new debug entry.
7775 (setup_target_debug): add debug_to_find_new_threads.
7776 * gdbthread.h: export struct thread_info, find_thread_pid, and
7777 iterate_over_threads. Add comments. Eliminate PARAMS. Update
7778 copyright. Add new private data pointer for use by target back-ends.
7779 * thread.c (struct thread_info): move definition to gdbthread.h.
7780 (find_thread_pid): new exported function for thread lookup.
7781 (iterate_over_threads): new exported function for applying
7782 arbitrary operations to threads. Update copyright to 2000.
7783 (info_threads_command): use new target_extra_thread_info vector
7784 to display extra information about each thread (if implemented).
7785 * config/i386/tm-i386v42mp.h: remove obsolete #defines for procfs.
7786 Add defines for PIDGET, etc.
7787 * config/i386/tm-i386sol2.h: ditto.
7788 * config/sparc/tm-sun4sol2.h: ditto.
7789 * config/i386/i386v42mp.mh: add uw-thread.o to NATDEPFILES.
7790 * testsuite/gdb.threads/pthreads.exp: Try to link with -lthread
7791 if -lpthread and -lpthreads fail.
7793 * procfs.c: (PIDGET, TIDGET, MERGEPID): change default to no-op.
7794 (proc_flags): combine flags that UnixWare splits into two locations.
7795 (proc_modify_flag): add support for PR_KLC (kill on last close).
7796 (proc_[un]set_kill_on_last_close): new functions.
7800 * infrun.c (normal_stop): Print out thread id when we stop.
7804 * remote.c (remote_open_1): Fix message so it does not imply a
7805 specific syntax for serial ports, as it is OS dependent.
7806 (remote_async_open_1): Ibid.
7807 (init_remote_ops): Ibid.
7811 * rdi-share/serdrv.c (SerialOpen): Use speed from "-b" argument or
7812 "set remotebaud" command (if set) when no speed is specified on
7813 the "target rdi" command.
7817 * rdi-share/serdrv.c (find_baud_rate): Add entries for 57600 and
7819 (baud_options[]): Ibid.
7823 * rdi-share/unixcomm.c: Fix SERIAL_PREFIX so it matches the prefix
7824 used by each operating system.
7828 * breakpoint.c (until_break_command): Add an argument for the
7829 continuation, the beginning of the cleanups set up by this
7831 (until_break_command_continuation): Do cleanups until the one
7832 passed in as argument instead of doing all of them.
7834 * infcmd.c (finish_command_continuation): Expect a new argument,
7835 which indicates up to where to do cleanups. Update calls to
7836 do_exec_cleanups to use this marker, instead of ALL_CLEANUPS.
7837 (finish_command): Add another argument for the continuation: the
7838 starting cleanup for this command.
7844 * rdi-share/ardi.c: Allow interruption of interruptible
7845 targets with a <CNTL-C>.
7849 * rdi-share/etherdrv.c (fetch_ports): Send extra words on request
7850 to control port to accommodate some versions of Angel.
7854 * rdi-share/devsw.c (dumpPacket): Fix source of channel information.
7855 Add interpretation for C Support Library packets.
7859 * rdi-share/devsw.c (DevSW_Close): Remove const from argument that
7860 is now being modified.
7861 * rdi-share/devsw.h: Adjust declaration of the above funtion.
7863 For older changes see ChangeLog-99
7869 version-control: never