1 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3 * doublest.c (store_typed_floating): Don't try to return a value.
6 2002-02-08 Jim Blandy <jimb@redhat.com>
8 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9 is prototyped and has no arguments, print its argument list as
12 2002-02-08 Chris Demetriou <cgd@broadcom.com>
14 * MAINTAINERS (write-after-approval): Add myself.
15 (paper-trail): I've escaped!
17 2002-02-08 Christopher Faylor <cgf@redhat.com>
19 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
21 (_initialize_check_for_gdb_ini): Ditto.
23 2002-02-08 Martin M. Hunt <hunt@redhat.com>
25 * win32-nat.c (cygwin_pid_to_str): Fix typo.
26 xaprintf -> xasprintf.
28 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
30 * win32-nat.c: Remove use of printf and sprintf functions.
32 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
34 * arm-tdep.c (arm_frame_chain_valid): Make static.
35 (arm_push_arguments): Likewise.
36 (arm_gdbarch_init): New function.
37 (_initialize_arm_tdep): Call it.
38 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
39 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
40 (FRAME_CHAIN_VALID): Delete.
41 (arm_frame_chain_valid): Delete declaration.
42 (PUSH_ARGUMENTS): Delete.
43 (arm_push_arguments): Delete declaration.
44 (CALL_DUMMY_P): Delete.
46 2002-02-08 Andrew Cagney <ac131313@redhat.com>
47 Corinna Vinschen <vinschen@redhat.com>
49 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
50 on builtin float types.
52 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
54 * utils.c: Include <curses.h> before "bfd.h".
55 * tui/tui-hooks.c: Likewise.
56 * tui/tui.c: Likewise.
57 * tui/tuiCommand.c: Likewise.
58 * tui/tuiData.c: Likewise.
59 * tui/tuiDataWin.c: Likewise.
60 * tui/tuiDisassem.c: Likewise.
61 * tui/tuiGeneralWin.c: Likewise.
62 * tui/tuiIO.c: Likewise.
63 * tui/tuiLayout.c: Likewise.
64 * tui/tuiRegs.c: Likewise.
65 * tui/tuiSource.c: Likewise.
66 * tui/tuiSourceWin.c: Likewise.
67 * tui/tuiStack.c: Likewise.
68 * tui/tuiWin.c: Likewise.
70 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
72 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
73 to include space for pseudoregs as well. Update loops accordingly.
74 (sh_fp_frame_init_saved_regs): Ditto.
75 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
77 2002-02-07 Andrew Cagney <ac131313@redhat.com>
79 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
80 Add Richard Earnshaw to Arm maintainers.
82 2002-02-07 Andrew Cagney <ac131313@redhat.com>
84 * defs.h (warning_begin): Delete declaration.
86 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
89 2002-02-07 Michael Snyder <msnyder@redhat.com>
91 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
92 Logic bug, remove misplaced else.
94 2002-02-07 Klee Dienes <klee@apple.com>
96 * fork-inferior.c (fork_inferior): Add '!' to the list of
97 characters that need to be quoted when building a string for the
98 shell. Quote '!' specifically with a backslash, since CSH chokes
99 when trying to evaluate "str!str".
101 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
103 * rdi-share/host.h: Only provide a typedef for bool if it is not
106 2002-02-04 Michael Snyder <msnyder@redhat.com>
108 * breakpoint.h (enum bptype): Add new overlay event bp type.
109 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
111 * breakpoint.c (create_internal_breakpoint): New function.
112 (internal_breakpoint_number): Moved into create_internal_breakpoint.
113 (create_longjmp_breakpoint): Use create_internal_breakpoint.
114 (create_thread_event_breakpoint): Ditto.
115 (create_solib_event_breakpoint): Ditto.
116 (create_overlay_event_breakpoint): New function.
117 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
118 (update_breakpoints_after_exec): Delete and re-initialize
119 overlay event breakpoints after an exec. Add FIXME comment
120 about longjmp breakpoint.
121 (print_it_typical): Ignore overlay event breakpoints.
122 (print_one_breakpoint): Ditto.
124 (bpstat_what): Do not stop for overlay event breakpoints.
125 (delete_breakpoint): Don't delete overlay event breakpoints.
126 (breakpoint_re_set_one): Delete the overlay event breakpoint.
127 (breakpoint_re_set): Re-create overlay event breakpoint.
129 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
130 (overlay_manual_command): Disable overlay breakpoints.
131 (overlay_off_command): Disable overlay breakpoints.
133 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
135 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
136 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
137 to here from config/tm-arm.h.
138 (coff_sym_is_thumb): Make static.
139 (arm_elf_make_msymbol_special): New function.
140 (arm_coff_make_msymbol_special): New function.
141 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
142 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
143 (coff_sym_is_thumb): Delete declaration.
144 (arm_elf_make_msymbol_special): Declare.
145 (arm_coff_make_msymbol_special): Declare.
146 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
147 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
149 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
151 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
153 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
155 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
156 * gdbarch.c gdbarch.h: Regenerate.
157 * arch-utils.c (default_print_float_info): New function.
158 * arch-utils.h (default_print_float_info): Prototype it.
159 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
160 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
161 (PRINT_FLOAT_INFO): Document it.
163 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
164 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
165 (PRINT_FLOAT_INFO): Define.
167 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
169 * win32-nat.c (_initialize_check_for_gdb_ini):
170 Add typecast to sprintf argument to suppress a warning.
172 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
174 * win32-nat.c (last_sig): Changed type of variable to target_signal,
175 to allow easier handling of pass state.
176 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
177 that gives exception name and address.
178 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
179 and set last_sig value to ourstatus->value.sig. Some missing
181 (child_continue): Correctly report continue_status.
182 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
183 TARGET_SIGNAL_0 (new default value).
184 (child_resume): consider sig argument passed to decide if
185 the exception should be passed to debuggee or not.
187 2002-02-05 Michael Snyder <msnyder@redhat.com>
189 * regcache.c (fetch_register): Call target_fetch_register
190 only if we don't call FETCH_PSEUDO_REGISTER.
191 (store_register): Call target_store_register only if we
192 don't call STORE_PSEUDO_REGISTER.
194 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
196 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
197 ELF_MAKE_MSYMBOL_SPECIAL.
198 * gdbarch.c, gdbarch.h: Regenerate.
199 * arch-utils.c (default_make_msymbol_special): New function.
200 * arch-utils.h (default_make_msymbol_special): Export.
201 * elfread.c (elf_symtab_read): Compile use of
202 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
204 * coffread.c (coff_symtab_read): Ditto, for
205 COFF_MAKE_MSYMBOL_SPECIAL.
207 2002-02-05 Jim Blandy <jimb@redhat.com>
209 * solib-svr4.c (svr4_truncate_ptr): New function.
210 (svr4_relocate_section_addresses): Do the address arithmetic with
211 the appropriate truncation for target addresses, even when
212 CORE_ADDR is larger than a target address.
214 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
216 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
219 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
221 * gdbserver/linux-low.c (kill_inferior): Remove commented out
224 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
226 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
228 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
230 * gdbserver/linux-low.c: Remove unused include files.
232 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
234 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
235 (read_inferior_memory): Use it.
236 (write_inferior_memory): Likewise.
238 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
240 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
241 grubbing through sys_errlist.
243 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
245 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
247 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
248 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
250 2002-02-04 Andrew Cagney <ac131313@redhat.com>
252 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
253 (do_sfunc, set_cmd_sfunc): New functions.
255 * command.h (struct cmd_list_element): Add field func.
256 * cli/cli-decode.h (struct cmd_list_element): Ditto.
257 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
258 * cli/cli-decode.h: Ditto.
260 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
261 (help_all, help_cmd_list): Ditto.
262 (find_cmd, complete_on_cmdlist): Ditto.
263 * top.c (execute_command): Ditto.
265 * cli/cli-setshow.c (do_setshow_command): Call func instead of
268 * infcmd.c (notice_args_read): Fix function signature.
270 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
271 * cli/cli-decode.c (add_set_cmd): Ditto.
272 * utils.c (initialize_utils): Ditto.
273 * maint.c (_initialize_maint_cmds): Ditto.
274 * infrun.c (_initialize_infrun): Ditto.
275 * demangle.c (_initialize_demangler): Ditto.
276 * remote.c (add_packet_config_cmd): Ditto.
277 * mips-tdep.c (_initialize_mips_tdep): Ditto.
278 * cris-tdep.c (_initialize_cris_tdep): Ditto.
279 * proc-api.c (_initialize_proc_api): Ditto.
280 * kod.c (_initialize_kod): Ditto.
281 * valprint.c (_initialize_valprint): Ditto.
282 * top.c (init_main): Ditto.
283 * infcmd.c (_initialize_infcmd): Ditto.
284 * corefile.c (_initialize_core): Ditto.
285 * arm-tdep.c (_initialize_arm_tdep): Ditto.
286 * arch-utils.c (initialize_current_architecture): Ditto.
287 (_initialize_gdbarch_utils): Ditto.
288 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
290 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
291 * wince.c (_initialize_inftarg): Ditto.
292 * symfile.c (_initialize_symfile): Ditto.
293 * mips-tdep.c (_initialize_mips_tdep): Ditto.
294 * language.c (_initialize_language): Ditto.
295 * arc-tdep.c (_initialize_arc_tdep): Ditto.
297 2002-02-04 Michael Snyder <msnyder@redhat.com>
299 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
301 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
303 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
304 Add rules for building the register data files.
306 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
308 * regformats/regdat.sh: Add braces to the definition of
309 expedite_regs_${arch}.
311 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
313 * regformats/regdef.h (struct reg): Add comment describing the
314 requirements for offset and size fields.
316 2002-02-04 Andreas Schwab <schwab@suse.de>
318 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
319 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
321 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
323 * gdbarch.sh (copyright): Update years in generated header.
324 (SMASH_TEXT_ADDRESS): Add rule.
325 * gdbarch.h, gdbarch.c: Re-generate.
326 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
327 * dbxread.c: Likewise.
328 * dwarfread.c: Likewise.
329 * elfread.c: Likewise.
330 * somread.c: Likewise.
332 * arm-tdep.c (arm_smash_text_address): New function.
333 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
335 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
337 Add support for hardware watchpoints on win32 native.
338 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
339 CONTEXT_DEBUG_REGISTERS.
340 (dr variable): New variable. Static array containing a local copy
342 (debug_registers_changed): New variable. Reflects when debug registers
343 are changed and need to be written to inferior.
344 (debug_registers_used): New variable. Reflects when any debug register
345 was set, used when new threads are created.
346 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
348 (thread_rec): Set dr array if id is the thread of current_event .
349 (child_continue, child_resume): Change the debug registers for all
350 threads if debug_registers_changed.
351 (child_add_thread): Change the debug registers if debug_registers_used.
352 * config/i386/cygwin.mh: Add use of i386-nat.o file.
353 Link nm.h to new nm-cygwin.h file.
354 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
355 of hardware registers.
357 2002-02-03 Andrew Cagney <ac131313@redhat.com>
359 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
360 Restore behavour broken by 2002-01-20 Andrew Cagney
361 <ac131313@redhat.com> IEEE_FLOAT removal.
363 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
365 * c-valprint.c (c_val_print): Pass a proper valaddr to
366 cp_print_class_method.
367 * valops.c (search_struct_method): If there is only one method
368 and args is NULL, return that method.
370 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
372 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
373 accessing tag_name directly.
375 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
377 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
378 of accessing tag_name directly.
380 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
383 * gdbtypes.c (replace_type): New function.
384 * gdbtypes.h (replace_type): Add prototype.
385 * stabsread.c (read_type): Use replace_type.
387 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
389 * Makefile.in (memattr.o): Add missing dependencies rule.
391 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
393 * breakpoint.c (break_at_finish_command): Really export.
394 (break_at_finish_at_depth_command): Ditto.
395 (tbreak_at_finish_command): Ditto.
396 * hppa-tdep.c: Include completer.h.
397 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
398 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
400 2002-02-01 Andrew Cagney <ac131313@redhat.com>
402 * utils.c (do_write): New function.
403 (error_stream): Rewrite combining the code from error_begin and
405 (verror): Rewrite using error_stream.
406 (error_begin): Delete function.
408 2002-02-01 Andrew Cagney <ac131313@redhat.com>
410 * utils.c (error_begin): Make static.
411 * defs.h (error_begin): Delete declaration.
413 * linespec.c (cplusplus_error): Replace cplusplus_hint.
414 (decode_line_1): Use cplusplus_error instead of error_begin,
415 cplusplus_hint and return_to_top_level.
416 * coffread.c (coff_symfile_read): Use error instead of error_begin
417 and return_to_top_level.
418 * infrun.c (default_skip_permanent_breakpoint): Ditto.
420 2002-02-01 Andrew Cagney <ac131313@redhat.com>
422 * language.h (type_error, range_error): Make string parameter
424 * language.c (warning_pre_print): Delete extern declaration.
425 * dwarfread.c (warning_pre_print): Ditto.
426 * language.c (type_error, range_error): Rewrite to use verror and
427 vwarning instead of warning_begin.
429 2002-02-01 Michael Snyder <msnyder@redhat.com>
431 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
432 (set_ignore_count): Move misplaced comment back where it belongs.
434 2002-02-01 Andrew Cagney <ac131313@redhat.com>
436 * command.h (NO_FUNCTION): Delete macro.
437 * cli/cli-decode.h (NO_FUNCTION): Ditto.
438 * top.c (execute_command): Replace NO_FUNCTION with NULL.
439 * tracepoint.c (_initialize_tracepoint): Ditto.
440 * cli/cli-decode.c (add_set_cmd): Ditto.
441 * cli/cli-cmds.c (init_cli_cmds): Ditto.
443 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
445 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
446 Update ``this'' pointer when calling virtual functions.
448 2002-02-01 Michael Snyder <msnyder@redhat.com>
450 * breakpoint.c (create_temp_exception_breakpoint): Delete.
451 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
453 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
455 * regformats/reg-arm.dat: New file.
456 * regformats/reg-i386.dat: New file.
457 * regformats/reg-ia64.dat: New file.
458 * regformats/reg-m68k.dat: New file.
459 * regformats/reg-mips.dat: New file.
460 * regformats/reg-ppc.dat: New file.
461 * regformats/reg-sh.dat: New file.
462 * regformats/regdef.h: New file.
463 * regformats/regdat.sh: New file.
465 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
467 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
468 (arm_frame_args_address, arm_frame_locals_address): New functions.
469 (arm_frame_num_args): New function.
470 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
471 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
472 (FRMA_NUM_ARGS): Call arm_frame_num_args.
474 2002-01-31 Michael Snyder <msnyder@redhat.com>
476 * breakpoint.c (break_at_finish_command): Export.
477 (break_at_finish_at_depth_command): Export.
478 (tbreak_at_finish_command): Export.
479 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
480 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
481 "tbreak" commands, which are HPPA specific.
483 * printcmd.c (disassemble_command): Remove an ancient
484 artifact of an old merge.
486 * symfile.h (enum overlay_debugging_state):
487 Define enum constant values for overlay mode.
488 * symfile.c (overlay_debugging): Use enums instead of literals.
489 (overlay_is_mapped, overlay_auto_command,
490 overlay_manual_command): Ditto.
492 * breakpoint.c (insert_breakpoints, remove_breakpoint,
493 breakpoint_here_p, breakpoint_inserted_here_p,
494 breakpoint_thread_match, bpstat_stop_status,
495 describe_other_breakpoints, check_duplicates, clear_command):
496 Coding standard fixes.
498 * target.c (target_xfer_memory): Add spaces, coding standard.
499 (do_xfer_memory): Add missing line to trust-readonly
500 code: check bfd SEC_READONLY flag for section.
502 2002-01-31 Andrew Cagney <ac131313@redhat.com>
504 * PROBLEMS: Fix typo, 5.1->5.1.1.
506 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
508 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
509 data symbols, since we search based on textlow and texthigh.
510 (find_pc_sect_symtab): Likewise.
512 2002-01-30 Andrew Cagney <ac131313@redhat.com>
514 * defs.h (vwarning): Declare.
515 * utils.c (vwarning): New function.
516 (warning): Call vwarning.
517 (warning_begin): Delete function.
519 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
521 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
524 2002-01-30 Michael Snyder <msnyder@redhat.com>
526 * NEWS: Mention "set trust-readonly-sections" command.
527 Mention generate-core-file command.
529 2002-01-15 Michael Snyder <msnyder@redhat.com>
531 * target.c: New command, "set trust-readonly-sections on".
532 (do_xfer_memory): Honor the suggestion to trust readonly sections
533 by reading them from the object file instead of from the target.
534 (initialize_targets): Register command "set trust-readonly-sections".
536 2002-01-29 Andrew Cagney <ac131313@redhat.com>
538 * parse.c (target_map_name_to_register): Simplify, search regs and
539 pseudo-regs using a single loop.
541 2002-01-30 Andrew Cagney <ac131313@redhat.com>
543 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
545 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
547 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
548 * config/i386/i386v42mp.mh: Add i387-nat.o .
549 * i386v4-nat.c: Include i387-nat.h.
550 (supply_fpregset): Use i387_supply_fsave.
551 (fill_fpregset): Use i387_fill_fsave.
553 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
555 * arm-tdep.c (arm_call_dummy_words): Define.
556 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
557 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
558 (CALL_DUMMY_WORDS): Define.
559 (arm_call_dummy_words): Declare.
560 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
561 (arm_linux_call_dummy_words): Declare.
563 2002-01-30 Andreas Schwab <schwab@suse.de>
565 * m68klinux-nat.c: Fix last change to use regcache_collect
566 instead of referencing registers[] directly.
568 2002-01-29 Andrew Cagney <ac131313@redhat.com>
570 * parse.c (target_map_name_to_register): Delete code wrapped in
571 #ifdef REGISTER_NAME_ALIAS_HOOK.
573 2002-01-28 Michael Snyder <msnyder@redhat.com>
575 * regcache.c (legacy_read_register_gen): Need to be able to
576 read pseudo-register as well as real register.
577 (legacy_write_register_gen): Ditto.
579 2002-01-28 Andrew Cagney <ac131313@redhat.com>
581 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
582 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
583 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
584 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
585 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
586 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
587 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
588 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
589 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
590 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
591 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
592 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
593 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
594 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
595 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
596 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
597 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
598 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
599 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
600 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
602 2002-01-28 Andrew Cagney <ac131313@redhat.com>
604 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
605 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
606 (initialize_current_architecture): Update target_byte_order using
607 information from BFD.
608 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
609 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
611 2002-01-28 Andrew Cagney <ac131313@redhat.com>
613 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
614 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
616 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
617 #ifdef INVALID_FLOAT.
618 * infcmd.c (do_registers_info): Ditto.
619 * values.c (unpack_double): Ditto. Add comment.
621 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
622 already commented out.
624 2002-01-26 Andreas Schwab <schwab@suse.de>
626 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
627 * m68klinux-nat.c: Update ptrace interface for fetching/storing
628 registers and add support for PTRACE_GETREGS.
630 2002-01-24 Andrew Cagney <ac131313@redhat.com>
632 GDB 5.1.1 released from 5.1 branch.
633 * NEWS: Add 5.1.1 news.
634 * README: Sync with 5.1 branch.
636 2002-01-23 Fred Fish <fnf@redhat.com>
638 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
639 stabstring on initial malloc. Reallocing will copy it for us,
642 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
644 * Makefile.in (hpread_h): Delete.
645 (HFILES_NO_SRCDIR): Remove hpread.h.
646 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
647 (hpread.o): Update dependencies.
648 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
650 * hp-psymtab-read.c: Remove file.
651 * hp-symtab-read.c: Remove file.
652 * hpread.h: Remove file.
654 * hpread.c: Merge all contents of hp-psymtab-read.c,
655 hp-symtab-read.c and hpread.h into this file, as it was prior to
658 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
659 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
660 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
661 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
663 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
665 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
666 fill_gregset): Call gdbarch_tdep() just once, assign result to
667 variable and use that, instead of calling the function several
670 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
672 * configure.host: Accept sparcv9 as alias for sparc64.
673 * configure.tgt: Likewise.
675 2002-01-22 Kevin Buettner <kevinb@redhat.com>
677 * solib-aix5.c (build_so_list_from_mapfile)
678 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
679 arguments is not reversed.
680 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
681 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
683 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
685 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
686 modified version of obsolete sh_fetch_pseudo_register.
687 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
688 (sh4_register_read): New function.
689 (sh_pseudo_register_write): New function. Renamed and modified
690 version of obsolete sh_store_pseudo_register.
691 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
692 (sh4_register_write): New function.
693 (sh_gdbarch_init): Remove setting of gdbarch function
694 fetch_pseudo_register and store_pseudo_register. Remove setting of
695 register_convert_to_raw, register_convert_to_virtual,
696 register_convertible.
697 (sh_sh4_register_convertible): Delete. No longer needed. All is
698 taken care by architecture specific functions
699 register_read/register_write.
700 (sh_sh4_register_convert_to_virtual): Make static.
701 (sh_sh4_register_convert_to_raw): Ditto.
703 2002-01-22 Andrew Cagney <ac131313@redhat.com>
705 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
706 (floatformat_is_nan, floatformat_mantissa): Ditto.
708 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
709 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
710 builtin_type_ieee_double_little,
711 builtin_type_ieee_double_littlebyte_bigword,
712 builtin_type_m68881_ext, builtin_type_i960_ext,
713 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
714 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
715 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
716 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
718 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
720 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
721 parameter. Set frameless flag if it exists and depended of
722 whether the scanned function is frameless or not.
723 (xstormy16_skip_prologue): If function is frameless, return
724 result of xstormy16_scan_prologue().
725 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
728 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
730 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
731 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
732 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
733 sh_sh4_register_byte, sh_sh4_register_raw_size,
734 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
735 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
736 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
737 sh_store_pseudo_register, sh_do_pseudo_register): Call
738 gdbarch_tdep() just once, assign result to variable and use that,
739 instead of calling the function several times.
741 2002-01-20 Mark Kettenis <kettenis@gnu.org>
743 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
744 macros instead of LAST_FPU_CTRL_REGNUM.
745 (store_register): Likewise.
747 2002-01-21 Jim Blandy <jimb@redhat.com>
749 * infcmd.c (run_command): Check that the `exec' target layer's BFD
750 is up-to-date before running the program, not just when a program
753 2002-01-21 Fred Fish <fnf@redhat.com>
755 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
756 when we have found all instructions we are looking for.
758 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
760 * arm-tdep.c (arm_register_name): New function.
761 (arm_registers_names): Make static.
762 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
763 (arm_register_name): Declare.
764 (REGISTER_NAME): Use it.
766 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
767 Kevin Buettner <kevinb@redhat.com>
769 Convert arm targets to new FRAME interface.
770 * arm-tdep.c (struct frame_extra_info): Remove fsr.
771 (arm_frame_find_save_regs): Delete.
772 (arm_frame_init_saved_regs): New.
773 (arm_init_extra_frame_info): Alloacte saved_regs as required.
774 Allocate extra_info as required. Convert all uses of fsr.regs
775 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
777 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
778 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
779 (check_prologue_cache, save_prologue_cache): Likewise.
780 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
781 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
782 (FRAME_FIND_SAVED_REGS): Delete.
783 (arm_frame_find_saved_regs): Delete prototype.
784 (arm_frame_init_saved_regs): New prototype.
785 (FRAME_INIT_SAVED_REGS): Define.
787 2002-01-20 Andrew Cagney <ac131313@redhat.com>
789 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
791 2002-01-20 Andrew Cagney <ac131313@redhat.com>
793 From Jeff Law <law@redhat.com>:
794 * infttrace.c: Include <sys/pstat.h>.
795 (child_pid_to_exec_file): Revamp. Use pstat call to get the
796 exec file if the ttrace equivalent fails.
798 2002-01-20 Andrew Cagney <ac131313@redhat.com>
800 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
801 (closeLogFile): Ditto.
803 2002-01-20 Michael Chastain <mec@shout.net>
805 * top.c (print_gdb_version): Bump copyright year to 2002.
807 2002-01-20 Andrew Cagney <ac131313@redhat.com>
809 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
810 Zannoni and Eli Zaretskii.
812 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
814 * buildsym.c: Update copyright years.
815 * c-typeprint.c: Likewise.
816 * dwarf2read.c: Likewise.
817 * f-typeprint.c: Likewise.
818 * gdbtypes.c: Likewise.
819 * gdbtypes.h: Likewise.
820 * hp-symtab-read.c: Likewise.
821 * hpread.c: Likewise.
822 * mdebugread.c: Likewise.
823 * p-typeprint.c: Likewise.
825 2002-01-20 Andrew Cagney <ac131313@redhat.com>
827 * remote-sim.c (gdbsim_open): Simplify code testing the macro
828 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
829 byte-order selectable.
830 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
831 * arch-utils.c: Ditto.
833 (set_endian_from_file): Ditto.
834 * gdbserver/low-sim.c (create_inferior): Ditto.
836 * gdbarch.h: Re-generate.
837 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
838 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
839 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
840 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
841 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
842 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
843 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
844 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
846 * config/mips/tm-wince.h: Remove #undef of macro
847 TARGET_BYTE_ORDER_SELECTABLE.
848 * config/sh/tm-wince.h: Ditto.
850 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
852 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
853 member function fields. Add accessor macro
854 TYPE_FN_FIELD_ARTIFICIAL.
855 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
856 * c-typeprint.c (c_type_print_base): Skip artificial member
859 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
861 * f-typeprint.c: Delete unused function f_type_print_args.
862 * p-typeprint.c: Delete unused function pascal_type_print_args.
864 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
866 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
867 comment. Add ``artificial'' to ``union field_location''.
869 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
871 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
872 * mdebugread.c (parse_symbol): Likewise.
873 * stabsread.c (define_symbol): Likewise.
874 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
875 initializing TYPE_FIELD_BITPOS to n (obsolete).
876 (hpread_doc_function_type): Likewise.
877 * hpread.c (hpread_function_type): Likewise.
879 2002-01-20 Andrew Cagney <ac131313@redhat.com>
881 * configure.in (host_makefile_frag): Only require a host makefile
882 fragment when a native build.
883 * configure: Re-generate.
885 2002-01-20 Andrew Cagney <ac131313@redhat.com>
887 * doublest.h (floatformat_from_type): Declare.
888 * doublest.c (floatformat_from_type): New function.
889 (convert_typed_floating): Use.
891 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
892 call to function floatformat_from_type.
894 * gdbarch.sh (IEEE_FLOAT): Delete.
895 * gdbarch.h, gdbarch.c: Re-generate.
896 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
897 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
898 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
899 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
900 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
901 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
902 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
903 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
904 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
905 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
906 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
907 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
909 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
910 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
911 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
912 * sh-tdep.c (sh_gdbarch_init): Ditto.
913 * mips-tdep.c (mips_gdbarch_init): Ditto.
914 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
915 * cris-tdep.c (cris_gdbarch_init): Ditto.
917 2002-01-20 Jiri Smid <smid@suse.cz>
919 * configure.host, configure.tgt: Support x86-64.
920 * NEWS: Note new target x86-64.
922 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
923 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
924 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
925 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
926 x86-64-linux-nat.o): Fix dependencies.
928 2002-01-19 Andrew Cagney <ac131313@redhat.com>
930 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
931 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
932 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
933 * config/sparc/xm-sun4os4.h: Delete file.
934 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
936 2002-01-19 Andrew Cagney <ac131313@redhat.com>
938 * config/sparc/sparclynx.mh (XM_FILE): Delete.
939 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
940 * config/m68k/m68klynx.mh (XM_FILE): Delete.
941 * config/i386/i386lynx.mh (XM_FILE): Delete.
942 * config/rs6000/xm-rs6000ly.h: Delete file.
943 * config/sparc/xm-sparclynx.h: Delete file.
944 * config/m68k/xm-m68klynx.h: Delete file.
945 * config/i386/xm-i386lynx.h: Delete file.
946 * config/xm-lynx.h: Delete file.
947 * config/djgpp/fnchange.lst: Update.
949 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
951 * alpha-tdep.c (alpha_register_byte): New function.
952 (alpha_register_raw_size): Ditto.
953 (alpha_register_virtual_size): Ditto.
954 (alpha_skip_prologue_internal): Renamed from
956 (alpha_skip_prologue): New version that calls
957 alpha_skip_prologue_internal.
958 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
959 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
960 second argument from alpha_skip_prologue.
961 (REGISTER_BYTE): Use alpha_register_byte.
962 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
963 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
964 (FRAMELESS_FUNCTION_INVOCATION): Use
965 generic_frameless_function_invocation_not.
966 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
967 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
969 2002-01-19 Andrew Cagney <ac131313@redhat.com>
971 * config/mips/xm-news-mips.h: Delete file.
972 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
974 * config/m88k/xm-m88k.h: Delete file.
975 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
976 * config/m88k/xm-delta88v4.h: Ditto.
977 * config/m88k/xm-delta88.h: Ditto.
979 * config/alpha/xm-fbsd.h: Delete file.
980 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
982 * config/sparc/xm-sparc.h: Delete file.
983 * Makefile.in (xm-sun4os4.h): Delete dependency.
984 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
985 * config/sparc/xm-sun4os4.h: Ditto.
986 * config/sparc/xm-linux.h: Ditto.
988 * config/i386/xm-windows.h: Delete file.
990 2002-01-19 Andrew Cagney <ac131313@redhat.com>
992 * utils.c: Include <sys/param.h> for MAXPATHLEN.
993 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
995 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
997 * alpha-tdep.c (alpha_call_dummy_words): New.
998 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
999 (CALL_DUMMY_P): Define.
1000 (CALL_DUMMY_WORDS): Define.
1001 (SIZEOF_CALL_DUMMY_WORDS): Define.
1003 2002-01-19 Per Bothner <per@bothner.com>
1005 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
1006 isn't NULL, which can happen with some gcj-3.x-produced code.
1008 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
1010 * alpha-tdep.c (alpha_register_virtual_type): New function.
1011 (alpha_init_frame_pc_first): Ditto.
1012 (alpha_fix_call_dummy): Ditto.
1013 (alpha_store_struct_return): Ditto.
1014 (alpha_extract_struct_value_address): Ditto.
1015 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
1016 alpha_register_virtual_type.
1017 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
1018 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
1019 alpha_extract_struct_value_address.
1020 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
1021 (INIT_FRAME_PC): Use init_frame_pc_noop.
1022 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
1024 2002-01-19 Mark Kettenis <kettenis@gnu.org>
1026 * i386gnu-nat.c: Include "i386-tdep.h".
1027 (fetch_fpregs): Simplify code dealing with uninitialized floating
1028 point states such that it doesn't require FP7_REGNUM.
1030 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1032 * alpha-tdep.c (frame_extra_info): New.
1033 (alpha_find_saved_regs): Make static. Use
1035 (alpha_frame_init_saved_regs): New function.
1036 (alpha_frame_saved_pc): Use frame->extra_info.
1037 (temp_saved_regs): Don't declare as struct frame_saved_regs.
1038 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
1039 (init_extra_frame_info): Rename to...
1040 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
1041 (alpha_print_extra_frame_info): New function.
1042 (alpha_frame_locals_address): Ditto.
1043 (alpha_frame_args_address): Ditto.
1044 (alpha_pop_frame): Use frame->extra_info.
1045 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
1046 alpha_frame_args_address.
1047 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
1048 (alpha_find_saved_regs): Remove prototype.
1049 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
1050 (EXTRA_FRAME_INFO): Remove.
1051 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
1052 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
1054 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1056 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
1057 (alpha_cannot_fetch_register): Ditto.
1058 (alpha_cannot_store_register): Ditto.
1059 (alpha_register_convertible): Ditto.
1060 (alpha_use_struct_convention): Ditto.
1061 * config/alpha/tm-alpha.h: Update copyright years.
1062 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
1063 (INNER_THAN): Use core_addr_lessthan.
1064 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
1065 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
1066 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
1067 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
1068 (FRAME_CHAIN): Remove unnecessary cast.
1070 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1072 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
1075 2002-01-18 Andrew Cagney <ac131313@redhat.com>
1077 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
1078 * monitor.c, remote-array.c, remote-bug.c: Ditto.
1079 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
1080 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
1081 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
1082 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
1083 * x86-64-linux-nat.c: Ditto.
1085 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1087 * alpha-tdep.c (alpha_register_name): New function.
1088 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
1089 (REGISTER_NAME): Define.
1091 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1093 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
1095 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1097 * alpha-tdep.c: Update copyright years.
1098 (alpha_next_pc): New function.
1099 (alpha_software_single_step): Ditto.
1100 * config/alpha/tm-alpha.h: Add prototype for
1101 alpha_software_single_step.
1103 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
1105 * alphabsd-nat.c: Update copyright years.
1106 (fill_gregset): Use regcache_collect.
1107 (fill_fpregset): Likewise.
1108 (fetch_inferior_registers): Only fetch integer registers
1109 if requested to do so.
1110 (store_inferior_registers): Only store integer registers
1111 if requested to do so.
1113 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1115 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
1116 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
1117 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
1118 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
1119 * config/alpha/fbsd.mh (XDEPFILES): Delete.
1120 * config/arm/linux.mh (XDEPFILES): Delete.
1121 * config/arm/nbsd.mh (XDEPFILES): Delete.
1122 * config/i386/i386dgux.mh (XDEPFILES): Delete.
1123 * config/i386/i386sol2.mh (XDEPFILES): Delete.
1124 * config/i386/i386m3.mh (XDEPFILES): Delete.
1125 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
1126 * config/i386/i386gnu.mh (XDEPFILES): Delete.
1127 * config/i386/fbsd.mh (XDEPFILES): Delete.
1128 * config/i386/i386bsd.mh (XDEPFILES): Delete.
1129 * config/i386/i386sco5.mh (XDEPFILES): Delete.
1130 * config/i386/i386v4.mh (XDEPFILES): Delete.
1131 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
1132 * config/i386/i386sco4.mh (XDEPFILES): Delete.
1133 * config/i386/i386aix.mh (XDEPFILES): Delete.
1134 * config/i386/go32.mh (XDEPFILES): Delete.
1135 * config/i386/cygwin.mh (XDEPFILES): Delete.
1136 * config/i386/i386lynx.mh (XDEPFILES): Delete.
1137 * config/i386/i386mach.mh (XDEPFILES): Delete.
1138 * config/i386/i386v32.mh (XDEPFILES): Delete.
1139 * config/i386/linux.mh (XDEPFILES): Delete.
1140 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
1141 * config/i386/ncr3000.mh (XDEPFILES): Delete.
1142 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
1143 * config/i386/i386sco.mh (XDEPFILES): Delete.
1144 * config/i386/i386v.mh (XDEPFILES): Delete.
1145 * config/i386/nbsd.mh (XDEPFILES): Delete.
1146 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
1147 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
1148 * config/i386/symmetry.mh (XDEPFILES): Delete.
1149 * config/i386/obsd.mh (XDEPFILES): Delete.
1150 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
1151 * config/ia64/linux.mh (XDEPFILES): Delete.
1152 * config/ia64/aix.mh (XDEPFILES): Delete.
1153 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
1154 * config/m68k/dpx2.mh (XDEPFILES): Delete.
1155 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
1156 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
1157 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
1158 * config/m68k/linux.mh (XDEPFILES): Delete.
1159 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
1160 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
1161 * config/m68k/nbsd.mh (XDEPFILES): Delete.
1162 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
1163 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
1164 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
1165 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
1166 * config/m88k/delta88.mh (XDEPFILES): Delete.
1167 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
1168 * config/m88k/m88k.mh (XDEPFILES): Delete.
1169 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
1170 * config/mips/linux.mh (XDEPFILES): Delete.
1171 * config/mips/irix6.mh (XDEPFILES): Delete.
1172 * config/mips/irix5.mh (XDEPFILES): Delete.
1173 * config/mips/irix4.mh (XDEPFILES): Delete.
1174 * config/mips/irix3.mh (XDEPFILES): Delete.
1175 * config/mips/decstation.mh (XDEPFILES): Delete.
1176 * config/mips/mipsm3.mh (XDEPFILES): Delete.
1177 (NATDEPFILES): Move core-aout.o to here.
1178 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
1179 * config/pa/hpux1020.mh (XDEPFILES): Delete.
1180 * config/pa/hppabsd.mh (XDEPFILES): Delete.
1181 * config/pa/hppahpux.mh (XDEPFILES): Delete.
1182 * config/pa/hpux11w.mh (XDEPFILES): Delete.
1183 * config/pa/hppaosf.mh (XDEPFILES): Delete.
1184 * config/pa/hpux11.mh (XDEPFILES): Delete.
1185 * config/powerpc/aix.mh (XDEPFILES): Delete.
1186 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
1187 * config/powerpc/linux.mh (XDEPFILES): Delete.
1188 * config/romp/rtbsd.mh: Rename XDEPFILES.
1189 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
1190 * config/rs6000/aix4.mh (XDEPFILES): Delete.
1191 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
1192 * config/s390/s390.mh (XDEPFILES): Delete.
1193 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
1194 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
1195 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
1196 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
1197 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
1198 * config/sparc/nbsd.mh (XDEPFILES): Delete.
1199 * config/sparc/linux.mh (XDEPFILES): Delete.
1200 * config/vax/vaxult.mh (XDEPFILES): Delete.
1201 * config/vax/vaxult2.mh (XDEPFILES): Delete.
1202 * Makefile.in (DEPFILES): Remove XDEPFILES.
1204 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1206 * utils.c (internal_verror): Fix comments, default is yes not no.
1207 Update queries to match. Default to quit and dump core.
1209 2002-01-17 Andrew Cagney <ac131313@redhat.com>
1211 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
1213 * defs.h, event-top.c, gdbcmd.h: Ditto.
1214 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
1215 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
1216 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
1217 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
1218 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
1219 * mi/mi-main.c:Ditto.
1221 * stack.c, symfile.c: Update copyright.
1223 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1225 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
1226 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
1227 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
1228 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
1230 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
1232 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
1233 * gdbserver/low-lynx.c (myattach): Likewise.
1234 * gdbserver/low-nbsd.c (myattach): Likewise.
1235 * gdbserver/low-sim.c (myattach): Likewise.
1236 * gdbserver/low-sparc.c (myattach): Likewise.
1237 * gdbserver/low-sun3.c (myattach): Likewise.
1239 * gdbserver/low-linux.c (myattach): New function.
1241 * gdbserver/server.c (attach_inferior): New function.
1242 (main): Handle "--attach".
1244 2002-01-16 Andrew Cagney <ac131313@redhat.com>
1246 * MAINTAINERS (language support): Daniel Jacobwitz is C++
1249 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
1251 * c-typeprint.c (is_type_conversion_operator): Add additional
1252 check for non-conversion operators.
1254 2002-01-15 Michael Snyder <msnyder@redhat.com>
1256 * linux-proc.c: Add "info proc" command, a la procfs.c.
1257 (read_mapping): New function, abstract and re-use code.
1258 (linux_find_memory_regions): Use new func read_mapping.
1259 (linux_info_proc_cmd): New function, implement "info proc".
1260 (_initialize_linux_proc): Add new command "info proc".
1262 2002-01-15 Michael Snyder <msnyder@redhat.com>
1264 * symfile.c (generic_load): Use bfd_map_over_sections method
1265 instead of manipulating bfd structure members directly.
1266 (add_section_size_callback): New function, bfd sections callback
1267 used by generic_load.
1268 (load_sections_callback): New function, bfd sections callback
1269 used by generic_load.
1271 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
1273 [Based on work by Jim Blandy]
1274 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
1275 (builtin_type_vec128): Export.
1276 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
1278 (builtin_type_vec128): New builtin type for 128 bit vector
1280 (build_gdbtypes): Initialize builtin_type_v16qi and
1281 builtin_type_v8hi. Create the vec128 register builtin type
1283 (build_builtin_type_vec128): New function.
1284 (_initialize_gdbtypes): Register builtin_type_v16qi and
1285 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
1286 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
1287 AltiVec register to new builtin type.
1289 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
1291 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
1294 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1296 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
1297 CLEAN_UP_REGISTER_VALUE.
1298 * regcache.c (supply_register): Update only call.
1300 2002-01-14 Andrew Cagney <ac131313@redhat.com>
1302 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
1303 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
1304 a29k-*-vxworks* targets as obsolete.
1306 2002-01-14 Michael Snyder <msnyder@redhat.com>
1308 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
1309 until we can resolve portability issues.
1310 * gregset.h: Remove references to fpxregs.
1311 * gcore.c (gcore_command): Initialize note_sec to NULL.
1313 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1315 * signals.c (target_signal_to_name): Rewrite. Only use
1316 signals[].name when in bounds and non-NULL.
1318 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1320 From Petr Ledvina <ledvinap@kae.zcu.cz>:
1321 * signals.c (target_signal_to_name): Verify that SIG is within the
1322 bounds of the signals array.
1324 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1326 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
1328 2002-01-13 Keith Seitz <keiths@redhat.com>
1330 * stack.c (print_frame_info_base): Print the frame's pc
1331 only if when print_frame_info_listing_hook is not defined.
1333 2002-01-13 Keith Seitz <keiths@redhat.com>
1335 * varobj.c (varobj_set_value): Make sure that there were no
1336 errors evaluating the object before attempting to set its
1338 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
1339 so this offset adjustment is no longer necessary.
1340 (create_child): Don't set the error flag if the child is
1342 (value_of_child): If value_fetch_lazy fails, return NULL
1343 so that callers will be notified that an error occurred.
1344 (c_value_of_variable): Delay check of variable's validity
1345 until later. We actually want all structs and unions to have
1347 Do not return "???" for variables which could not be evaluated.
1348 This error condition must be returned to the caller so that it
1349 can get the error condition from gdb.
1350 (cplus_name_of_child): Adjust index for vptr before figuring
1351 out the name of the child.
1352 (cplus_value_of_child): If a child's (real) parent is not valid,
1353 don't even bother trying to give a value for it. Just return
1354 an error. Change all instances in this function.
1355 (cplus_type_of_child): If our parent is one of the "fake"
1356 parents, we need to get at the type of the real parent, and
1357 derive the child's true type using this information.
1359 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1361 From 2002-01-09 John Marshall <johnm@falch.net>:
1362 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
1363 sources.redhat.com, and tweak some related URLs which had
1364 suffered from linkrot.
1366 2002-01-13 Andrew Cagney <ac131313@redhat.com>
1369 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
1370 structures passed in registers.
1372 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
1374 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
1375 white space which prevented compilation. Reported by DSK
1376 <dsk@student.unsw.edu.au>.
1378 2002-01-11 Michael Snyder <msnyder@redhat.com>
1380 * symfile.c (build_section_addr_info_from_section_tab):
1381 Use bfd access method instead of manipulating bfd directly.
1382 (syms_from_objfile): Ditto.
1383 (simple_overlay_update_1): Ditto.
1384 (simple_overlay_update): Ditto.
1385 (generic_load): Ditto.
1386 (overlay_unmapped_address): FIXME comment, bfd access methods.
1387 (sections_overlap): FIXME comment, bfd access methods.
1388 (pc_in_mapped_range): FIXME comment, bfd access methods.
1389 (pc_in_unmapped_range): FIXME comment, bfd access methods.
1390 (section_is_mapped): FIXME comment, bfd access methods.
1391 (section_is_overlay): FIXME comment, bfd access methods.
1393 * symfile.c (generic_load): Whitespace and long line cleanups.
1394 Remove duplicate variable, change several local variables to
1395 more appropriate data types.
1396 (print_transfer_performance): Use %lu instead of %ld for ulongs.
1398 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1401 * language.c (longest_local_hex_string_custom): Use phex_nz to
1402 convert NUM to a hex string.
1404 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
1406 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
1408 Update Copyright year.
1410 2002-01-12 Andrew Cagney <ac131313@redhat.com>
1412 * language.c (longest_raw_hex_string): Delete unused function.
1414 2002-01-11 Petr Sorfa <petrs@caldera.com>
1416 * MAINTAINERS (write-after-approval): Add myself.
1417 * dwarf2read.c (read_tag_string_type): Handling of
1419 (read_tag_string_type): FORTRAN fix to prevent propagation of
1421 (set_cu_language): Handling of DW_LANG_Fortran95
1423 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
1425 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
1426 GETPID(inferior_ptid).
1427 (store_inferior_registers): Likewise.
1429 2002-01-10 Jason Merrill <jason@redhat.com>
1431 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
1434 2002-01-10 Andrew Cagney <ac131313@redhat.com>
1436 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
1437 and bfd/elf32-sh-nbsd.c.
1439 2002-01-10 Michael Snyder <msnyder@redhat.com>
1441 * NEWS: Mention --pid and corefile/proc-id behavior change.
1443 * Makefile.in: Add rules for gcore.o and linux-proc.o.
1444 * gcore.c: Include cli/cli-decode.h instead of command.h.
1446 * main.c (captured_main): Add new command line option "--pid".
1447 If the second command line argument (following the symbol-file)
1448 begins with a digit, try to attach to it before trying to open
1450 (print_gdb_help): Document the "--pid" argument.
1452 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
1454 * completer.c (command_completer): New function.
1456 * completer.h <command_completer>: Add prototype.
1458 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
1459 completer for the "help" command.
1461 2002-01-09 Jason Merrill <jason@redhat.com>
1463 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
1465 2002-01-09 Michael Snyder <msnyder@redhat.com>
1467 * i386-linux-nat.c (fill_fpxregset): Make global.
1468 (store_fpxregset): Ditto.
1470 * gregset.h (gdb_fpxregset_t): Define.
1471 (supply_fpxregset): Prototype.
1472 (fill_fpxregset): Prototype.
1474 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
1476 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1478 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
1479 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
1480 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
1482 2002-01-09 Andrew Cagney <ac131313@redhat.com>
1484 * MAINTAINERS: Update target maintainer rules so that any
1485 Maintainer can approve a tested patch for a maintenance-only
1488 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
1490 * MAINTAINERS (write-after-approval): Add myself.
1492 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
1495 2002-01-08 Michael Snyder <msnyder@redhat.com>
1497 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
1498 real name of the executable, rather than the /proc name.
1500 2002-01-03 Michael Snyder <msnyder@redhat.com>
1502 Implement a "generate-core-file" command in gdb, save target state.
1503 * gcore.c: New file. Implement new command 'generate-core-file'.
1504 Save a corefile image of the current state of the inferior.
1505 * linux-proc.c: Add linux-specific code for saving corefiles.
1506 * target.h (struct target_ops): Add new target vectors for saving
1507 corefiles; to_find_memory_regions and to_make_corefile_notes.
1508 (target_find_memory_regions): New macro.
1509 (target_make_corefile_notes): New macro.
1510 * target.c (update_current_target): Inherit new target methods.
1511 (dummy_find_memory_regions): New place-holder method.
1512 (dummy_make_corefile_notes): New place-holder method.
1513 (init_dummy_target): Initialize new dummy target vectors.
1514 * exec.c (exec_set_find_memory_regions): New function.
1515 Allow the exec_ops vector for memory regions to be taken over.
1516 (exec_make_note_section): New function, target vector method.
1517 * defs.h (exec_set_find_memory_regions): Export prototype.
1518 * procfs.c (proc_find_memory_regions): New function, corefile method.
1519 (procfs_make_note_section): New function, corefile method.
1520 (init_procfs_ops): Set new target vector pointers.
1521 (find_memory_regions_callback): New function.
1522 (procfs_do_thread_registers): New function.
1523 (procfs_corefile_thread_callback): New function.
1524 * sol-thread.c (sol_find_memory_regions): New function.
1525 (sol_make_note_section): New function.
1526 (init_sol_thread_ops): Initialize new target vectors.
1527 * inftarg.c (inftarg_set_find_memory_regions): New function.
1528 Allow to_find_memory_regions vector to be taken over.
1529 (inftarg_set_make_corefile_notes): New function.
1530 Allow to_make_corefile_notes vector to be taken over.
1531 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
1532 interface layer if not target_has_execution (may be a corefile).
1533 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
1534 * config/sparc/sun4sol2.mh: Ditto.
1535 * config/alpha/alpha-linux.mh: Ditto.
1536 * config/arm/linux.mh: Ditto.
1537 * config/i386/x86-64linux.mh: Ditto.
1538 * config/ia64/linux.mh: Ditto.
1539 * config/m68k/linux.mh: Ditto.
1540 * config/mips/linux.mh: Ditto.
1541 * config/powerpc/linux.mh: Ditto.
1542 * config/sparc/linux.mh: Ditto.
1544 2002-01-07 Michael Snyder <msnyder@redhat.com>
1546 * arm-linux-nat.c: Remove references to regcache.c internal data
1547 (registers[] and register_valid[]).
1549 2002-01-07 Michael Snyder <msnyder@redhat.com>
1551 * linux-proc.c: New file. Implement child_pid_to_exec_file,
1552 so that attaching to a pid will automatically read the process's
1553 symbol file and shlibs.
1554 * Makefile.in: Add rule for linux-proc.o.
1555 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
1556 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
1557 * config/arm/linux.mh: Ditto.
1558 * config/i386/linux.mh: Ditto.
1559 * config/i386/x86-64linux.mh: Ditto.
1560 * config/ia64/linux.mh: Ditto.
1561 * config/m68k/linux.mh: Ditto.
1562 * config/mips/linux.mh: Ditto.
1563 * config/powerpc/linux.mh: Ditto.
1564 * config/sparc/linux.mh: Ditto.
1566 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
1568 * win32-nat.c: Add i386-tdep.h dependency.
1570 2002-01-07 Michael Snyder <msnyder@redhat.com>
1572 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
1573 instead of bfd_get_arch_size. Don't bail out just because
1574 there's no exec_bfd.
1576 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
1577 * p-valprint.c (pascal_object_print_value): Ditto.
1578 * somread.c (som_symtab_read): Ditto.
1579 * symfile.c (simple_free_overlay_region_table): Ditto.
1580 * valops.c (value_assign): Ditto.
1582 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
1583 use tilde_expand and strerror for opening save-tracepoints file.
1585 * thread-db.c (thread_db_new_objfile): Indendation fix.
1587 * infptrace.c (GDB_MAX_ALLOCA): New define.
1588 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
1589 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
1590 can be overridden with whatever value is appropriate to the host).
1591 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
1592 alloca to allocate potentially large buffer.
1593 * rs6000-nat.c (child_xfer_memory): Ditto.
1594 * symm-nat.c (child_xfer_memory): Ditto.
1595 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
1597 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
1599 From Nick Clifton <nickc@redhat.com>
1600 * d10v-tdep.c: Set STACK_START to 0x200bffe.
1602 2002-01-07 Michael Snyder <msnyder@redhat.com>
1604 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
1605 Don't use exec_bfd if it's NULL.
1607 2002-01-06 Mark Kettenis <kettenis@gnu.org>
1609 * valops.c (value_arg_coerce): Fix formatting.
1611 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1613 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
1616 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1618 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
1619 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
1620 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
1621 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
1622 z8k-coff have not been multi-arched. Update z8k-coff build
1625 2002-01-06 Andrew Cagney <ac131313@redhat.com>
1627 * MAINTAINERS: Mark a29k target as obsolete.
1628 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
1629 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
1631 * NEWS: Note that a29k targets are obsolete.
1632 * a29k-tdep.c: Mark as obsolete.
1633 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
1634 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
1635 a29k-*-vxworks* targets as obsolete.
1636 * remote-adapt.c: Obsolete.
1637 * remote-eb.c: Obsolete.
1638 * remote-mm.c: Obsolete.
1639 * remote-udi.c: Obsolete.
1640 * config/a29k/a29k-udi.mt: Obsolete.
1641 * config/a29k/a29k.mt: Obsolete.
1642 * config/a29k/tm-a29k.h: Obsolete.
1643 * config/a29k/tm-vx29k.h: Obsolete.
1644 * config/a29k/vx29k.mt: Obsolete.
1646 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1648 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
1649 with BFD_ENDIAN_BIG.
1651 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1653 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
1654 * configure, config.in: Re-generate.
1655 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
1656 * defs.h: Do not include <endian.h>.
1658 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
1660 * acconfig.h (HAVE_PT_GETXMMREGS): New.
1661 * config.in: Regenerate.
1662 * configure.in: Update copyright years.
1663 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
1664 * configure: Regenerate.
1665 * i386bsd-nat.c: Update copyright years.
1666 (fill_gregset): Use regcache_collect.
1667 (fetch_inferior_registers): Only fetch integer registers
1668 if requested to do so. Add support for XMM registers
1669 using PT_GETXMMREGS.
1670 (store_inferior_registers): Only store integer registers
1671 if requested to do so. Add support for XMM registers
1672 using PT_SETXMMREGS.
1673 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
1674 (store_inferior_registers): Remove.
1675 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
1676 (fetch_elfcore_registers): New function.
1677 (i386nbsd_elfcore_fns): New.
1678 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
1679 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
1681 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
1682 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
1683 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1684 * config/i386/tm-nbsd.h: Update copyright years.
1685 (HAVE_SSE_REGS): Define.
1686 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
1687 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
1688 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
1689 (SIGCONTEXT_PC_OFFSET): Remove.
1690 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
1692 2002-01-05 Andrew Cagney <ac131313@redhat.com>
1694 * configure.tgt: Remove powerpc-*-macos* target.
1695 * config/m68k/xm-mpw.h: Delete file.
1696 * config/xm-mpw.h: Delete file.
1697 * ser-mac.c: Delete file.
1698 * mpw-make.sed: Delete file.
1699 * mpw-config.in: Delete file.
1700 * mac-xdep.c: Delete file.
1701 * mac-gdb.r: Delete file.
1702 * mac-defs.h: Delete file.
1703 * mac-nat.c: Delete file.
1704 * config/powerpc/macos.mh: Delete file.
1705 * config/powerpc/macos.mt: Delete file.
1706 * config/powerpc/nm-macos.h: Delete file.
1707 * config/powerpc/tm-macos.h: Delete file.
1708 * source.c (openp, open_source_file): Remove obsolete code.
1709 * top.c (gdb_readline): Ditto.
1710 * utils.c (query): Ditto.
1711 * event-top.c (display_gdb_prompt): Ditto.
1712 * Makefile.in (ser-mac.o): Delete obsolete target.
1715 2002-01-04 Andrew Cagney <ac131313@redhat.com>
1717 * defs.h (BIG_ENDIAN): Delete macro definition.
1718 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
1719 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
1720 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
1721 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
1722 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
1723 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
1724 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
1725 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
1726 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
1727 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
1728 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
1729 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
1730 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
1731 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
1732 * gdbarch.c: Re-generate.
1734 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1736 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
1739 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1741 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
1743 2002-01-04 Andrew Cagney <ac131313@redhat.com>
1745 * value.h (value_ptr): Delete typedef.
1747 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1749 * i386nbsd-nat.c: Update copyright years.
1750 Include i386-tdep.h.
1752 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
1754 * stabsread.c: Update copyright years.
1756 From Debashis Mahata <debashis.mahata@wipro.com>:
1757 (read_struct_fields): Deal with Sun C compiler erroneous stab
1758 output for structs and unions.
1761 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1763 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
1766 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1768 * cp-abi.c: Fix whitespace.
1769 (baseclass_offset): New wrapper function.
1770 * cp-abi.h (baseclass_offset): Add prototype.
1771 (struct cp_abi_ops): Add baseclass_offset pointer.
1773 * valops.c (vb_match): Move to...
1774 * gnu-v2-abi.c (vb_match): here.
1775 * valops.c (baseclass_offset): Move to...
1776 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
1778 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
1780 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
1781 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
1782 * hpacc-abi.c (init_hpacc_ops): Likewise.
1784 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
1786 * valops.c (find_overload_match): Accept obj as a
1787 reference parameter. Update it before returning.
1788 * value.h (find_overload_match): Update prototype.
1789 * eval.c (evaluate_subexp_standard): Pass object to
1790 find_overload_match by reference.
1792 2002-01-03 Andrew Cagney <ac131313@redhat.com>
1794 * valarith.c: Replace value_ptr with struct value pointer. Remove
1795 register attribute from value declarations.
1798 * scm-lang.c (scm_lookup_name): Ditto.
1800 2002-01-03 Michael Snyder <msnyder@redhat.com>
1802 Abstract the functionality of iterating over mapped memory
1803 regions into a general purpose iterator function.
1804 * procfs.c (iterate_over_mappings): New function, general purpose
1805 iterator for memory sections.
1806 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
1807 (solib_mappings_callback): New function, callback for above.
1808 (info_proc_mappings): Reimpliment using iterate_over_mappings.
1809 (info_mappings_callback): New function, callback for above.
1811 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
1813 2002-01-01 Mark Kettenis <kettenis@gnu.org>
1815 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
1816 * i386-tdep.c: Include "elf-bfd.h".
1817 (process_note_abi_tag_sections): New function.
1818 (i386_gdbarch_init): Add code to recognize various OS/ABI
1821 * maint.c (_initialize_maint_cmds): Add missing \ in
1824 For older changes see ChangeLog-2001
1830 version-control: never