1 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
3 * hpread.c (hpread_psymtab_to_symtab_1,
4 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
5 with fprintf_unfiltered (gdb_stderr,...).
7 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9 * remote-array.c (printf_monitor, write_monitor,
10 array_insert_breakpoint, array_remove_breakpoint ):
11 Replace fprintf (stderr,...
12 with fprintf_unfiltered (gdb_stderr,....
13 * remote-es.c: Likewise.
14 * remote-os9k.c: Likewise.
15 * remote-st.c: Likewise.
19 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
20 linux-proc.o and gcore.o.
24 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
25 code without frame pointers.
29 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
34 * target.c (do_xfer_memory): Correct reference to the new option
35 "trust-readonly-sections".
39 * rs6000-tdep.c (rs6000_extract_return_value,
40 rs6000_store_return_value): Handle returning vectors.
41 (rs6000_gdbarch_init): Use
42 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
43 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
45 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
47 (ppc_sysv_abi_push_arguments): Handle vector parameters.
48 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
52 * Makefile.in (thread-db.o): This file cannot be built with
57 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
58 * gdbtypes.c (recursive_dump_type): Output the vector flag.
59 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
61 (read_array_type): Record the fact that this array type is really a
62 vector (i.e. are passed in by value).
66 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
67 * alpha-tdep.c (alpha_sigcontext_addr): New function.
68 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
69 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
70 * alpha-linux-tdep.c: Include frame.h.
71 (alpha_linux_sigcontext_addr): New function.
72 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
73 alpha_linux_sigcontext_addr.
74 * alpha-osf1-tdep.c: Include gdbcore.h.
75 (alpha_osf1_sigcontext_addr): New function.
76 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
77 alpha_osf1_sigcontext_addr.
78 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
79 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
83 * stack.c (selected_frame_level):
84 (select_frame): Do not set selected_frame_level.
85 * frame.h (selected_frame_level): Delete declaration.
89 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
90 convert_from_func_ptr-addr when AIX / PowerOpen.
94 * valops.c (hand_function_call): Call
95 generic_save_call_dummy_addr.
96 * frame.h (generic_save_call_dummy_addr): Declare.
97 * blockframe.c (struct dummy_frame): Add fields call_lo and
99 (generic_find_dummy_frame): Check for PC in range call_lo to
100 call_hi instead of entry_point_address.
101 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
102 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
103 (generic_save_call_dummy_addr): New function.
107 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
109 (sparc_skip_prologue): Kill frameless_p arg, and use line number
110 information to find prologue when possible.
111 (sparc_prologue_frameless_p): Call examine_prologue directly.
112 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
113 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
115 (SKIP_PROLOGUE): Likewise.
119 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
120 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
121 indicate that the condition it was testing is always true.
122 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
123 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
124 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
128 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
129 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
130 tdep->jb_pc and tdep->jb_elt_size.
131 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
132 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
133 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
134 * alpha-nat.c (get_longjmp_target): Remove.
135 (JB_ELEMENT_SIZE): Ditto.
137 * alpha-tdep.c (alpha_get_longjmp_target): New function.
138 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
139 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
140 to alpha_get_longjmp_target.
141 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
142 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
143 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
147 * README: Update to GDB 5.2.
151 * gdbarch.sh (LC_ALL): Set to `c'.
155 * avr-tdep.c: Ran through gdb_indent.sh.
159 * MAINTAINERS: Add myself as AVR maintainer.
160 * NEWS: Note new target avr.
164 * Makefile.in: Add support for AVR target.
165 * configure.tgt: Add support for AVR target.
166 * avr-tdep.c: New file
167 * config/avr/avr.mt: New file.
171 * MAINTAINERS: Add myself to write-after-approval.
173 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
175 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
176 with fprintf_unfiltered (gdb_stderr,....
181 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
185 * p-exp.y: Also use new prev_lexptr variable
186 to improve error reporting. Based on Michael Snyder
187 2002-04-24 dated patch to c-exp.y.
191 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
192 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
193 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
195 * config/alpha/tm-alpha.h: Remove forward decls of struct type
197 (FUNCTION_START_OFFSET): Remove.
202 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
207 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
208 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
209 alpha_linux_pc_in_sigtramp.
210 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
211 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
212 alpha_osf1_pc_in_sigtramp.
213 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
214 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
215 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
216 alphafbsd_pc_in_sigtramp.
217 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
218 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
219 alphanbsd_pc_in_sigtramp.
220 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
221 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
225 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
229 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
231 (alphanbsd-nat.o): New dependency list.
232 (alphanbsd-tdep.o): Ditto.
233 * NEWS: Note new native NetBSD/alpha configuration.
234 * alphanbsd-nat.c: New file.
235 * alphanbsd-tdep.c: Ditto.
236 * configure.host (alpha*-*-netbsd*): New host.
237 * configure.tgt (alpha*-*-netbsd*): New target.
238 * config/alpha/nbsd.mh: New file.
239 * config/alpha/nbsd.mt: Ditto.
240 * config/alpha/nm-nbsd.h: Ditto.
241 * config/alpha/tm-nbsd.h: Ditto.
245 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
246 (alpha-osf1-tdep.o): New dependency list.
247 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
248 and skip_sigtramp_frame members.
249 * alpha-linux-tdep.c: Include gdbcore.h.
250 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
251 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
252 * alpha-osf1-tdep.c: New file.
253 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
255 (alpha_frame_past_sigtramp_frame): New function.
256 (alpha_dynamic_sigtramp_offset): Ditto.
257 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
258 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
259 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
260 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
261 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
262 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
263 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
264 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
265 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
266 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
267 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
268 to find_solib_trampoline_target.
269 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
270 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
271 (SKIP_TRAMPOLINE_CODE): Remove.
272 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
273 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
274 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
275 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
276 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
277 (PROC_SIGTRAMP_MAGIC): Ditto.
278 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
279 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
280 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
281 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
282 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
286 * NEWS: Note that Alpha targets are now multi-arch.
290 * parser-defs.h (prev_lexptr): New external variable.
291 * parse.c (parse_exp_1): Set prev_lexptr to null before
292 calling the language-specific parser.
293 * c-exp.y (yylex): Set prev_lexptr to start of current token.
294 (yyerror): Use prev_lexptr in error reporting.
298 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
299 * gregset.h: If FILL_FPXREGSET is defined, provide
300 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
301 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
302 is defined, call fill_fpxregset.
306 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
307 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
308 (supply_gregset, supply_fpregset): New functions.
310 * gnu-nat.c (gnu_find_memory_regions): New function.
311 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
312 (gnu_xfer_memory): Add a cast.
316 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
317 loop. Add handling for "str lr, [sp, #-4]!" and for saves
318 of argument regs ("str r(0123), [r11, #-nn"]).
319 (arm_skip_prologue): Better handling for frameless functions.
320 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
321 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
325 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
326 NUM_PSEUDO_REGS can be used.
330 * arch-utils.h: Update copyright.
332 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
333 * gdbarch.h, gdbarch.c: Re-generate.
335 * inferior.h (IN_SIGTRAMP): Delete definition.
336 * arch-utils.c (legacy_pc_in_sigtramp): New function.
337 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
339 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
340 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
341 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
342 (find_proc_framesize): Ditto.
343 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
344 (alpha_init_extra_frame_info): Ditto.
345 * infrun.c (handle_inferior_event): Ditto.
346 (handle_inferior_event): Ditto.
347 (check_sigtramp2): Ditto.
348 * blockframe.c (create_new_frame): Ditto.
349 (get_prev_frame): Ditto.
350 * ppc-linux-tdep.c: Update comments.
351 * i386-linux-tdep.c: Update comments.
352 * breakpoint.c (bpstat_what): Update comment.
356 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
357 (regsets_store_inferior_registers): Removed cast to int from
359 * gdbserver/regcache.h: Added declaration of struct inferior_info.
363 * i960-tdep.c (register_in_window_p): New function.
364 (i960_find_saved_register): Use it instead of
365 REGISTER_IN_WINDOW_P.
366 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
368 * symtab.h (find_stab_function_addr): Kill extern.
369 * minsyms.c (find_stab_function_addr): Remove from here...
370 * dbxread.c: ... to here, and mark it static.
374 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
375 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
379 * remote-vxsparc.c (vx_read_register): Fix typo, we want
380 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
381 (vx_write_register): Likewise.
385 * source.c (is_regular_file): New function.
386 (openp): Check wether file to open is a regular file
387 to avoid opening directories.
391 * findvar.c (extract_signed_integer): Cast printf argument
392 to suppress format warning.
393 (extract_unsigned_integer): Likewise.
394 * infcmd.c (registers_info): Likewise.
395 * top.c (get_prompt_1): Likewise.
396 * valops.c (value_assign): Likewise.
397 * valprint.c (print_decimal): Likewise.
401 * c-exp.y (typebase): Support
403 [long|long long|short] [signed|unsigned] [int|]
407 signed [long|long long|short] int
411 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
413 * vax-tdep.h: New file.
414 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
415 Make several routines static.
416 (vax_get_saved_register): New function.
417 (vax_gdbarch_init): New function.
418 (_initialize_vax_tdep): Register vax_gdbarch_init.
419 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
420 Remove macros now under the control of gdbarch.
424 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
425 Some whitespace and coding standards tweaks.
429 * vax-tdep.c: Include regcache.h.
430 (vax_call_dummy_words): New.
431 (sizeof_vax_call_dummy_words): New.
432 (vax_fix_call_dummy): New function.
433 (vax_saved_pc_after_call): Ditto.
434 * config/vax/tm-vax.h: Don't include regcache.h.
435 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
436 (CALL_DUMMY): Remove.
437 (CALL_DUMMY_WORDS): Define.
438 (SIZEOF_CALL_DUMMY_WORDS): Define.
439 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
443 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
447 * vax-tdep.c (vax_frame_chain): New function.
448 (vax_push_dummy_frame): Ditto.
449 (vax_pop_frame): Ditto.
450 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
451 (FRAMELESS_FUNCTION_INVOCATION): Use
452 generic_frameless_function_invocation_not.
453 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
454 (POP_FRAME): Use vax_pop_frame.
458 * vax-tdep.c (vax_store_struct_return): New function.
459 (vax_extract_return_value): Ditto.
460 (vax_store_return_value): Ditto.
461 (vax_extract_struct_value_address): Ditto.
462 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
463 vax_store_struct_return.
464 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
465 (STORE_RETURN_VALUE): Use vax_store_return_value.
466 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
470 * vax-tdep.c (vax_frame_saved_pc): New function.
471 (vax_frame_args_address_correct): Ditto.
472 (vax_frame_args_address): Ditto.
473 (vax_frame_locals_address): Ditto.
474 (vax_frame_num_args): Move code to be in proximity to
475 other frame-related functions.
476 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
477 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
478 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
479 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
480 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
484 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
489 * vax-tdep.c (vax_frame_init_saved_regs): New function.
490 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
491 (FRAME_INIT_SAVED_REGS): New macro.
495 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
499 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
501 (fetch_osf_core_registers): Likewise.
502 (supply_gregset): Likewise.
506 * symfile.h (get_section_index): Define.
507 * symfile.c (get_section_index): New function.
508 * mdebugread.c (SC_IS_SBSS): New macro.
509 (SC_IS_BSS): Return true for the scBss storage class only, as
510 the scSBss storage class refers to the .sbss section.
511 (parse_partial_symbols): Discard the symbols which associated
512 section does not exist.
513 Make sure to use the .sbss section index for symbols which
514 storage class is scBss, rather than using the .bss section index.
518 * vax-tdep.c: Update copyright years.
519 (vax_register_name): New function.
520 (vax_register_byte): Ditto.
521 (vax_register_raw_size): Ditto.
522 (vax_register_virtual_size): Ditto.
523 (vax_register_virtual_type): Ditto.
524 * config/vax/tm-vax.h: Update copyright years.
525 (REGISTER_NAMES): Remove.
526 (REGISTER_NAME): Define.
527 (REGISTER_BYTE): Use vax_register_byte.
528 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
529 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
530 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
534 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
536 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
540 * arch-utils.c (generic_prologue_frameless_p): Kill
541 SKIP_PROLOGUE_FRAMELESS_P code.
542 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
544 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
545 * arc-tdep.c (arc_prologue_frameless_p): Implement.
546 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
548 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
549 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
550 (sparc_gdbarch_init): Pass it to
551 set_gdbarch_prologue_frameless_p.
555 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
556 (alphabsd-nat.o): New dependency list.
560 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
562 (alpha-linux-tdep.o): New dependency list.
563 (alphafbsd-tdep.o): Likewise.
567 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
569 * alpha-tdep.c: ...from here.
570 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
574 * config/alpha/tm-alpha.h: Move alpha_software_single_step
575 prototype from here...
576 * alpha-tdep.h: ...to here.
580 * frame.h (selected_frame_level): Document as deprecated.
581 (frame_relative_level): Declare.
582 * stack.c (frame_relative_level): New function.
583 (selected_frame_level): Document as deprecated.
584 (select_frame): Do not set the selected_frame_level.
586 * stack.c (frame_info, record_selected_frame): Update.
587 (frame_command, current_frame_command): Update.
588 (up_silently_base, up_command, down_silently_base): Update.
589 (down_command): Update.
590 * inflow.c (kill_command): Update.
591 * tracepoint.c (finish_tfind_command): Update.
592 * corelow.c (core_open): Update.
593 * thread.c (info_threads_command): Update.
594 (do_captured_thread_select): Update.
595 * infcmd.c (finish_command): Update.
596 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
600 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
604 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
609 * alphafbsd-tdep.c: Update copyright years. Include
611 (alphafbsd_use_struct_convention): Make static.
612 (alphafbsd_init_abi): New function.
613 (_initialize_alphafbsd_tdep): New function.
614 * config/alpha/tm-fbsd.h: Update copyright years.
615 (USE_STRUCT_CONVENTION): Remove.
619 * alpha-tdep.c (alpha_abi_handler): New structure to describe
620 an Alpha ABI variant.
621 (alpha_abi_handler_list): Declare.
622 (alpha_gdbarch_register_os_abi): New function.
623 (alpha_gdbarch_init): Give registered ABI variant handlers a
624 chance to tweak the gdbarch once we have set up defaults.
625 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
629 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
630 to standard_coerce_float_to_double.
631 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
635 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
636 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
637 from gdbarch_tdep rather than a constant.
638 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
639 the default text address for all Alpha Unix ABIs.
640 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
641 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
645 * alpha-tdep.h: New file. Includes several Alpha target constants
647 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
648 let gdbarch deal with.
649 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
650 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
652 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
653 Alpha target register names.
654 * alphabsd-nat.c: Likewise.
655 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
656 Alpha target register names. Make serveral routines static.
657 (alpha_get_saved_register): New function.
658 (alpha_abi_names): New.
659 (process_note_abi_tag_sections): New function.
660 (get_elfosabi): New function.
661 (alpha_gdbarch_init): New function.
662 (alpha_dump_tdep): New function.
663 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
667 * frame.c (find_saved_register): Delete #ifdef
668 HAVE_REGISTER_WINDOWS code.
669 * config/sparc/tm-sparc.h: Update comments.
670 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
674 * i960-tdep.c (i960_find_saved_register): New function.
675 (i960_get_saved_register): New function.
676 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
677 (i960_get_saved_register): Declare.
678 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
682 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
686 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
687 instead of NUM_PSEUDO_REGS.
691 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
692 GDB_MULTI_ARCH_PARTIAL
693 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
694 define, let tm-sp64.h do it.
698 * frame.c (find_saved_register): Avoid a NULL pointer
699 dereference and actually walk the frame list.
703 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
704 sorted in most most-recent-used order. Document.
705 * gdbarch.h, gdbarch.c: Regenerate.
709 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
710 (add_inferior): Call create_register_cache.
711 (clear_inferiors): Call free_register_cache.
712 (inferior_regcache_data, set_inferior_regcache_data): New functions.
713 * gdbserver/regcache.c (struct inferior_regcache_data): New.
715 (get_regcache): New function.
716 (create_register_cache, free_register_cache): New functions.
717 (set_register_cache): Don't initialize the register cache here.
718 (registers_to_string, registers_from_string, register_data): Call
720 * gdbserver/regcache.h: Add prototypes.
721 * gdbserver/server.h: Likewise.
725 * gdbserver/mem-break.c: New file.
726 * gdbserver/mem-break.h: New file.
727 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
729 * gdbserver/inferiors.c (struct inferior_info): Add target_data
731 (clear_inferiors): Free target_data member if set.
732 (inferior_target_data, set_inferior_target_data): New functions.
733 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
734 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
735 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
736 (struct inferior_linux_data): New.
737 (linux_create_inferior): Use set_inferior_target_data.
738 (linux_attach): Likewise. Call add_inferior.
739 (linux_wait_for_one_inferior): New function.
740 (linux_wait): Call it.
741 (linux_write_memory): Add const.
742 (initialize_low): Call set_breakpoint_data.
743 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
745 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
747 * gdbserver/server.h: Include mem-break.h. Update inferior.c
749 * gdbserver/target.c (read_inferior_memory)
750 (write_inferior_memory): New functions.
751 * gdbserver/target.h (read_inferior_memory)
752 (write_inferior_memory): Change macros to prototypes.
753 (struct target_ops): Update comments. Add const to write_memory
758 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
760 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
761 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
762 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
768 * gdbtypes.c (init_simd_type): Rewrite using new functions.
769 (build_builtin_type_vec128): Ditto.
770 (append_composite_type_field): Fix calculation of type length in
775 * config/djgpp/README: Update.
777 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
782 * alpha-tdep.c (setup_arbitrary_frame): Rename...
783 (alpha_setup_arbitrary_frame): ...to this.
784 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
785 for alpha_setup_arbitrary_frame.
789 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
790 * gdbarch.h, gdbarch.c: Regenerate.
792 * defs.h (breakpoint_from_pc_fn): Delete type definition.
793 * target.h (memory_breakpoint_from_pc): Update declaration.
794 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
796 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
797 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
798 * mem-break.c (memory_breakpoint_from_pc): Ditto.
799 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
800 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
801 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
802 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
803 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
804 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
805 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
806 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
807 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
809 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
811 * monitor.c (monitor_insert_breakpoint): Ditto.
812 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
814 * config/mcore/tm-mcore.h: Update copyright.
815 * mem-break.c: Ditto.
816 * xstormy16-tdep.c: Ditto.
820 * p-exp.y: Add precedence rule for '^' token.
821 This removes the shift/reduce conflicts.
822 Remove the comment concerning these shift/reduce conflicts.
826 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
827 (registers_powerpc_nofp): New register set for processors
828 without floating point unit.
832 * MAINTAINERS: Add myself to write-after-approval.
836 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
840 * rs6000-tdep.c (frame_initial_stack_address): Use
841 frame_register_read to read the alloca_reg.
845 * frame.c (find_saved_register): Find saved registers in the next
851 * gdbarch.sh (LANG): Set to ``c''.
855 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
859 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
862 * hpread.c (hpread_get_lntt): Add declaration.
867 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
868 * aclocal.m4, configure: Re-generate.
873 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
874 instead of tm_print_insn.
878 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
882 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
883 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
884 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
888 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
890 (init_cmd_lists): Initialize the new value;
891 * cli/cli-script.c (execute_user_command): Limit the call depth of
892 user defined commands. This avoids a core-dump when user commands
893 are infinitly recursive.
897 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
898 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
899 from tdep struct instead of DEFAULT_LR_SAVE.
900 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
901 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
902 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
906 * Remote.c: Spelling fix.
907 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
908 If no symbol found for "sbrk", try "_sbrk".
909 (make_output_phdrs): Use bfd_section_name.
910 (gcore_copy_callback): Use bfd_section_name.
911 * eval.c: Indentation fix-ups.
912 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
913 in case it gets applied to an address that is already
914 in the instruction space.
915 * cli/cli-decode.c (help_list): Allow long lines to wrap.
916 * symfile.c: Fix indentation, long lines.
917 * source.c: White space fix-up.
921 * defs.h (read_relative_register_raw_bytes): Delete declaration.
922 * frame.c (frame_register_read): New function. Return non-zero on
924 (read_relative_register_raw_bytes_for_frame): Delete.
925 (read_relative_register_raw_bytes): Delete.
926 * frame.h (frame_register_read): Declare.
927 * d30v-tdep.c: Update Copyright. Use frame_register_read.
929 * infcmd.c (do_registers_info): Ditto.
930 * hppa-tdep.c: Ditto.
931 * rs6000-tdep.c: Ditto.
932 * h8500-tdep.c: Ditto.
933 * mips-tdep.c: Ditto.
934 * h8300-tdep.c: Ditto.
940 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
946 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
952 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
953 register sets for these processor variants.
957 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
958 registers which are allowed to fail to store.
959 * gdbserver/linux-low.h (linux_target_ops): Likewise.
960 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
961 (ppc_cannot_store_register): FPSCR may not be storable.
962 * regformats/reg-ppc.dat: Support FPSCR.
966 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
967 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
968 Add fpscr as an invalid/unfetchable register.
969 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
970 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
971 (fill_fpregset): Add support for register fpscr.
972 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
973 (fill_gregset): Account for the fact that register ``mq'' might
975 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
976 (registers_power): Add fpscr to register set at slot 71.
977 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
978 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
982 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
983 * configure: Regenerate.
984 * config.in: Regenerate.
985 * acconfig.h: Add define for _SYSCALL32.
986 * core-sol2.c: Remove #define _SYSCALL32.
987 * solib-legacy.c: Remove #define _SYSCALL32.
991 * stack.c (select_frame): Cleanup internal error message, do not
996 * stack.c (select_frame): Check that selected_frame and the
997 specified level are as expected.
998 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1000 * frame.h (struct frame_info): Add field `level'. Update
1002 Work-in-progress PR gdb/464.
1006 * maint.c (maint_print_section_info): Rename print_section_info.
1007 (print_bfd_section_info, print_objfile_section_info): Update.
1008 * inferior.h (struct gdbarch): Add opaque declaration.
1009 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1010 * gdbarch.h: Regenerate.
1014 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1015 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1016 (kernel_u_size): Added.
1017 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1018 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1022 * valarith.c (find_size_for_pointer_math): New function, either returns
1023 the size for a pointer's target, returns 1 for void *, or errors for
1025 (value_add, value_sub): use find_size_for_pointer_math.
1029 * linux-low.c (linux_look_up_symbols): New hook.
1030 (linux_target_ops): Add linux_look_up_symbols.
1031 * remote-utils.c (decode_address): New function.
1032 (look_up_one_symbol): New function.
1033 * server.c (handle_query): Call target look_up_symbols hook.
1034 * server.h (look_up_one_symbol): Add prototype.
1035 * target.h (struct target_ops): Add look_up_symbols hook.
1039 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1040 * ChangeLog: Correct paths in last ChangeLog entry.
1044 * gdbserver/linux-low.h: Remove obsolete prototypes.
1045 (struct linux_target_ops): New.
1046 (extern the_low_target): New.
1047 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1048 (register_addr): Use the_low_target explicitly.
1049 (fetch_register): Likewise.
1050 (usr_fetch_inferior_registers): Likewise.
1051 (usr_store_inferior_registers): Likewise.
1052 * gdbserver/linux-arm-low.c (num_regs): Remove.
1053 (arm_num_regs): Define.
1054 (arm_regmap): Renamed from regmap, made static.
1055 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1057 (arm_cannot_store_register): Renamed from cannot_store_register,
1059 (the_low_target): New.
1060 * gdbserver/linux-i386-low.c (num_regs): Remove.
1061 (i386_num_regs): Define.
1062 (i386_regmap): Renamed from regmap, made static.
1063 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1065 (i386_cannot_store_register): Renamed from cannot_store_register,
1067 (the_low_target): New.
1068 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1069 (ia64_num_regs): Define.
1070 (ia64_regmap): Renamed from regmap, made static.
1071 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1073 (ia64_cannot_store_register): Renamed from cannot_store_register,
1075 (the_low_target): New.
1076 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1077 (m68k_num_regs): Define.
1078 (m68k_regmap): Renamed from regmap, made static.
1079 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1081 (m68k_cannot_store_register): Renamed from cannot_store_register,
1083 (the_low_target): New.
1084 * gdbserver/linux-mips-low.c (num_regs): Remove.
1085 (mips_num_regs): Define.
1086 (mips_regmap): Renamed from regmap, made static.
1087 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1089 (mips_cannot_store_register): Renamed from cannot_store_register,
1091 (the_low_target): New.
1092 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1093 (ppc_num_regs): Define.
1094 (ppc_regmap): Renamed from regmap, made static.
1095 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1097 (ppc_cannot_store_register): Renamed from cannot_store_register,
1099 (the_low_target): New.
1100 * gdbserver/linux-s390-low.c (num_regs): Remove.
1101 (s390_num_regs): Define.
1102 (s390_regmap): Renamed from regmap, made static.
1103 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1105 (s390_cannot_store_register): Renamed from cannot_store_register,
1107 (the_low_target): New.
1108 * gdbserver/linux-sh-low.c (num_regs): Remove.
1109 (sh_num_regs): Define.
1110 (sh_regmap): Renamed from regmap, made static.
1111 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1113 (sh_cannot_store_register): Renamed from cannot_store_register,
1115 (the_low_target): New.
1116 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1117 (the_low_target): New.
1121 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1122 override FP_REGNUM with frame->fp. Update copyright.
1123 * parse.c (num_std_regs, std_regs): Delete.
1124 (target_map_name_to_register): Do not search std_regs. Update
1125 function description.
1126 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1127 declarations. Update copyright.
1132 * gdbserver/Makefile.in: Add stamp-h target.
1133 * gdbserver/configure.in: Create stamp-h.
1134 * gdbserver/configure: Regenerated.
1138 * gdbserver/inferiors.c: New file.
1139 * gdbserver/target.c: New file.
1140 * gdbserver/target.h: New file.
1141 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1143 * gdbserver/linux-low.c (inferior_pid): New static variable,
1144 moved from server.c.
1145 (linux_create_inferior): Renamed from create_inferior.
1146 Call add_inferior. Return 0 on success instead of a PID.
1147 (linux_attach): Renamed from myattach.
1148 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1149 (linux_thread_alive): Renamed from mythread_alive.
1150 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1152 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1153 (regsets_store_inferior_registers): Correct error message.
1154 Add missing ``return 0''.
1155 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1156 (linux_store_registers): Renamed from store_inferior_registers.
1157 (linux_read_memory): Renamed from read_inferior_memory.
1158 (linux_write_memory): Renamed from write_inferior_memory.
1159 (linux_target_ops): New structure.
1160 (initialize_low): Call set_target_ops ().
1161 * gdbserver/remote-utils.c (unhexify): New function.
1162 (hexify): New function.
1163 (input_interrupt): Send signals to ``signal_pid''.
1164 * gdbserver/server.c (inferior_pid): Remove.
1165 (start_inferior): Update create_inferior call.
1166 (attach_inferior): Call add_inferior.
1167 (handle_query): New function.
1168 (main): Call handle_query for `q' packets.
1169 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1170 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1174 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1176 * gdbserver/configure.in: Check for <string.h>
1177 * gdbserver/configure: Regenerate.
1178 * gdbserver/config.in: Regenerate.
1179 * gdbserver/gdbreplay.c: Include needed system headers.
1180 (remote_open): Remove strchr prototype.
1181 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1182 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1183 (supply_register_by_name): Likewise.
1184 (collect_register): Change buf argument to void *.
1185 (collect_register_by_name): Likewise.
1186 * gdbserver/regcache.h: Add missing prototypes.
1187 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1188 * gdbserver/server.c (handle_query): New function.
1189 (attached): New static variable, moved out of main.
1190 (main): Quiet longjmp clobber warnings.
1191 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1192 * gdbserver/utils.c (error): Remove NORETURN.
1197 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1198 after the last symbol in a block.
1202 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1203 is non zero as a found symbol.
1207 * findvar.c: Include "builtin-regs.h".
1208 (value_of_register): Call value_of_builtin_reg when applicable.
1209 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1210 (target_map_name_to_register): Call
1211 builtin_reg_map_name_to_regnum.
1212 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1213 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1214 (builtin_regs_h): Define.
1215 (builtin-regs.o): New target.
1216 (findvar.o): Add $(builtin_regs_h).
1217 * builtin-regs.c, builtin-regs.h: New files.
1218 * std-regs.c: New file.
1219 Partial fix for PR gdb/251.
1223 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1224 it's no longer required.
1228 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1233 * rs6000-tdep.c (rs6000_software_single_step): Use
1234 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1235 and size. Use target_insert_breakpoint() and
1236 target_remove_breakpoint() to insert and remove breakpoints
1237 instead of explicit memory reads and writes.
1241 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1242 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1243 ELF_OBJECT_FORMAT ifdef.
1248 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1253 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1254 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1258 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1259 s/asprintf/xasprintf/.
1260 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1264 I believe Jeff Law denies responsability for this one:
1265 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1266 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1267 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1268 Work-around for PR gdb/366.
1272 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1273 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1274 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1278 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1279 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1284 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1289 * README (Reporting Bugs in GDB): Document the bug web page as the
1290 prefered way of submitting bugs.
1295 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1297 * gdbarch.h, gdbarch.c: Re-generate.
1301 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1302 buffer to regcache_collect.
1306 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1307 * gdbarch.c, gdbarch.h: Re-generate.
1311 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1312 declaration. Fix -Werror.
1316 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1317 * gdbarch.c: Regenerate.
1321 * breakpoint.c (clear_command): Rewrite middle section to
1322 combine two loops with identical control conditions.
1323 Add a cleanup to eliminate a memory leak.
1324 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1328 * solib-svr4.c (bkpt_names): Add "__start".
1332 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1333 as test for 64 bit target.
1337 * h8500-tdep.c (h8500_write_fp): Delete function.
1338 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1339 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1340 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1342 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1343 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1345 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1346 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1347 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1348 (d10v_write_fp): Delete function.
1349 * inferior.h (write_fp, generic_target_write_fp): Delete
1351 * regcache.c (generic_target_write_fp): Delete function.
1352 (write_fp): Delete function.
1353 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1354 * gdbarch.h, gdbarch.c: Regenerate.
1355 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1356 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1357 (sparc64_write_fp): Delete declaration.
1358 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1359 (h8500_write_fp): Delete declaration.
1363 * sparc-tdep.c (sparc64_write_fp): Delete.
1364 (sparc_push_dummy_frame): Replace write_fp call with code to store
1366 (sparc_gdbarch_init): Do not initialize write_fp.
1370 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1375 * stack.c (get_selected_block): Add new argument `addr_in_block',
1376 used to return the exact code address we used to select the block,
1378 * blockframe.c (get_frame_block, get_current_block): Same.
1379 * frame.h (get_frame_block, get_current_block,
1380 get_selected_block): Update declarations.
1381 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1382 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1386 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1391 * utils.c (xfullpath): New function.
1392 * defs.h (xfullpath): Add declaration.
1393 * source.c (openp): Use xfullpath in place of gdb_realpath to
1394 avoid resolving the basename part of filenames when the
1395 associated file is a symbolic link. This fixes a potential
1396 inconsistency between the filenames known to GDB and the
1397 filenames it prints in the annotations.
1398 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1399 to be able to match a filename with either the real filename, or
1400 the name of any symbolic link to this file.
1401 (lookup_partial_symtab): Ditto.
1405 * breakpoint.c: Add support for hardware breakpoints in overlays.
1406 (overlay_events_enabled): New state variable.
1407 (insert_breakpoints): Use overlay_events_enabled to decide
1408 whether to attempt to set a breakpoint at the overlay load addr.
1409 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1410 (remove_breakpoint): Use overlay_events_enabled to decide
1411 whether breakpoints need to be removed from overlay load addr.
1412 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1413 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1414 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1415 disable_overlay_breakpoints): Update overlay_events_enabled.
1419 * dwarf2read.c (struct function_range): New.
1420 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1421 (check_cu_functions): New.
1422 (read_file_scope): Initialize global function lists.
1423 Call dwarf_decode_line after processing children.
1424 (read_func_scope): Add to global function list.
1425 (dwarf_decode_lines): Call check_cu_functions everywhere
1426 record_line is called. Call record_line with a linenumber
1427 of 0 to mark sequence ends.
1431 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1432 change sync with glibc.
1436 * configure.in: Call AC_C_INLINE.
1437 * configure: Regenerated.
1441 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1442 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1446 * NEWS: Mention gcore support on FreeBSD/i386.
1448 * fbsd-proc.c: New file.
1449 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1450 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1452 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1457 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1458 unescaped newlines in string literals, but newer ones don't. So
1464 * cli/cli-dump.c: New file. Dump memory to file,
1465 restore file to memory.
1466 * cli/cli-dump.h: New file.
1467 * Makefile.in: Add rules, dependencies for cli-dump.o.
1468 * NEWS: Mention new commands.
1472 * symfile.c (symbol_file_add): Move test for null symbols to later.
1476 From veksler at il.ibm.com:
1477 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1478 the xstrduped original path.
1483 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1484 * infcmd.c (_initialize_infcmd): Ditto.
1485 * language.c (_initialize_language): Ditto.
1486 * symfile.c (_initialize_symfile): Ditto.
1487 * top.c (_init_main): Ditto.
1488 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1492 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1493 vector registers handling.
1494 (skip_prologue): Handle new AltiVec instructions. Fill in new
1495 fields of frame data.
1496 (frame_get_saved_regs): Fill in information for AltiVec registers.
1500 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1501 a function; leave this macro here to invoke that function.
1502 (symbol_init_mangled_name): Declaration for that function.
1503 * symtab.c (symbol_init_mangled_name): New function.
1507 * valarith.c: Replace strerror with safe_strerror.
1508 * tracepoint.c: Ditto.
1510 * go32-nat.c: Ditto.
1516 * event-top.c (command_line_handler): Remove useless if.
1520 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1525 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1526 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1527 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1528 (x86_64_linux_dr_get_status, supply_gregset),
1529 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1530 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1531 (x86_64_register_info_table): Add.
1532 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1533 (x86_64_register_raw_size, x86_64_register_virtual_type),
1534 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1535 general x86_64_register_info_table.
1536 (i386_gdbarch_init): gdbarch_register_bytes is now set
1537 dynamicaly during initialization.
1538 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1539 * gdbserver/linux-x86-64-low.c: Ditto.
1543 * gdbserver/server.c (main): Call target_signal_to_host_p
1544 and target_signal_to_host on signals received from the remote.
1545 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1546 target_signal_from_host on signals sent to the remote.
1547 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1548 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1552 * signals/signals.c: Include "server.h" in gdbserver build.
1553 (target_signal_from_name): Don't use STREQ.
1554 (_initialize_signals): Likewise. Don't include function in
1559 * signals.c: Moved to...
1560 * signals/signals.c: Here.
1561 * Makefile (signals.o): Update.
1565 * somread.c (som_symtab_read): Remove some commented out code and
1566 updated related comments. Do not set the minimal symbol table to
1567 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1568 in a dynamic executable.
1569 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1570 where we are unable to find the minimal symbol for the given
1575 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1579 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1583 * command.h: Update copyright.
1584 (struct cmd_list_element): Replace definition with opaque
1586 (enum cmd_types): Document that it will eventually be moved to
1588 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1589 (MALLOCED_REPLACEMENT): Delete macro.
1590 * Makefile.in (cli_decode_h): Add $(command_h).
1591 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1592 * top.c: Include "cli/cli-decode.h".
1593 * completer.c: Include "cli/cli-decode.h".
1594 * maint.c: Include "cli/cli-decode.h".
1595 * cli/cli-decode.h: Include "command.h".
1596 (enum command_class): Delete.
1597 (enum cmd_types): Comment out.
1598 (enum cmd_auto_boolean): Delete.
1599 (enum var_types): Delete.
1603 * cli/cli-decode.c: Include "gdb_assert.h".
1604 (add_set_or_show_cmd): New static function.
1605 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1606 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1607 all fields, such as func, from the set command.
1611 * MAINTAINERS (sh-elf): Change warning flag to -w.
1615 * defs.h (error): Add printf format attribute.
1616 * thread-db.c (thread_from_lwp): Fix error format string.
1617 * stack.c (parse_frame_specification): Ditto.
1618 * cli/cli-decode.c (undef_cmd_error): Ditto.
1619 * scm-lang.c (scm_lookup_name): Ditto.
1620 * tracepoint.c (trace_error): Ditto.
1621 * remote-utils.c (usage): Ditto.
1622 * remote.c (compare_sections_command): Ditto.
1627 * gdbtypes.c (append_composite_type_field): New function.
1628 (init_composite_type): New function.
1629 * gdbtypes.h (append_composite_type_field): Declare.
1630 (init_composite_type): Ditto.
1634 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1636 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1637 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1638 structure returning convention for SYSV ABI case, but not
1639 for GNU/Linux, FreeBSD, or NetBSD.
1643 * symtab.h (lookup_block_symbol): Add mangled_name argument
1646 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1647 with new mangled_name argument.
1648 * linespec.c (decode_line_1): Likewise.
1649 * valops (value_of_this): Likewise.
1650 * symtab.c (lookup_transparent_type): Likewise.
1651 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1652 (lookup_symbol): If we are given a mangled name, pass it down
1653 to lookup_symbol_aux.
1654 (lookup_block_symbol): If we are given a mangled name to check
1655 against, only return symbols which match it.
1659 * win32-nat.c (child_create_inferior): Check for proper shell to use
1660 here, in case the user changes it on the fly.
1661 (_initialize_inftarg): Remove shell path considerations.
1665 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1666 for gdbarch_max_register_raw_size and max_register_virtual_size.
1667 Adjust copyright year.
1671 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1672 in a function to cover the entire beginning of the function
1673 as well if it does not already.
1677 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1678 (rs6000_ptrace64): Renamed from ptrace64.
1682 * gdbserver/remote-utils.c (remote_open): Don't call
1683 getprotobyname, we're all using TCP here so just use
1685 * gdbserver/gdbreplay.c (remote_open): Ditto.
1689 * regcache.c (_initialize_regcache): No need to call
1690 build_regcache() at this time; it gets called whenever
1691 the gdbarch changes.
1695 * sparc-nat.c: Include sys/param.h where possible.
1700 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1701 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1702 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1704 * stabsread.c (rs6000_builtin_type): Likewise.
1705 (read_sun_floating_type): Likewise.
1709 * stabsread.c (read_member_functions): Remove skip code for duplicate
1710 constructor/destructor methods. Use standard parsing for these
1711 methods and just do not chain them to the list of methods after
1716 * coffread.c: Remove redundant static declarations. Replace
1717 occurrences of `PTR' with `void *'.
1718 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1719 * top.h (quit_cover): Likewise.
1720 * defs.h (catch_errors): Likewise.
1724 * defs.h (XMALLOC): Define.
1725 * gdb-events.sh (XMALLOC): Delete macro.
1726 * gdb-events.c, gdb-events.h: Regenerate.
1727 * gdbarch.sh (XMALLOC): Delete macro.
1728 * gdbarch.c: Regenerate.
1729 * serial.c (XMALLOC): Delete macro.
1730 * ui-file.c (XMALLOC): Ditto.
1731 * ser-unix.h (XMALLOC): Ditto.
1732 * sh-tdep.c (XMALLOC): Ditto.
1733 * ui-out.c (XMALLOC): Ditto.
1734 * utils.c (XMALLOC): Ditto.
1735 * i386-tdep.c (XMALLOC): Ditto.
1736 * gdb-events.c (XMALLOC): Ditto.
1737 * d10v-tdep.c (XMALLOC): Ditto.
1738 * cli-out.c (XMALLOC): Ditto.
1740 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1741 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1742 * ui-file.c, ui-out.c: Ditto.
1746 * command.h (struct cmd_list_element): Add field context.
1747 (set_cmd_context, get_cmd_context): Declare.
1748 * cli/cli-decode.h: Ditto.
1749 * cli/cli-decode.c (get_cmd_context): New function.
1750 (set_cmd_context): New function.
1751 (add_cmd): Initialize context.
1752 Part of fixing PR gdb/145 and PR gdb/146.
1756 * cli/cli-decode.c (cmd_type): New function.
1757 * command.h (cmd_type): Declare.
1758 * infrun.c (set_schedlock_func): Call function cmd_type.
1759 * kod.c (kod_set_os): Call cmd_type.
1760 * cris-tdep.c (cris_version_update): Use function cmd_type.
1761 (cris_mode_update, cris_abi_update): Ditto.
1763 * command.h: (execute_cmd_post_hook): Declare.
1764 (execute_cmd_pre_hook): Declare.
1765 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1766 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1767 functions. Execute pre/post hook while ensuring that afterwords
1769 * top.c (execute_command): Use execute_cmd_post_hook, and
1770 execute_cmd_pre_hook to execute pre/post commands.
1771 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1773 (hook_stop_stub): Call execute_cmd_pre_hook.
1777 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1778 set'' and this leads to a core dump. Move xstrdup of
1779 operating_system to after check that it is not NULL.
1783 * kod.c (kod_set_os): Remove unnecessary check that
1784 ``command->type'' is set_cmd.
1786 * valprint.c (set_input_radix): Use input_radix.
1787 (set_output_radix): Use output_radix.
1788 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1793 * value.h (struct value): Delete field ``substring_addr''. Change
1794 aligner fields to force_doublest_align, force_longest_align,
1795 force_core_addr_align and force_pointer_aligh.
1797 * value.h (struct value): Fix typo in above change.
1801 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1802 to fix internal_error from ``maintenance print architecture''.
1806 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1807 for gcc versions after gcc-2.8.1.
1811 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1812 for method resolution. Restore adjustment of ``this'' pointer after
1813 calling value_struct_elt, which was accidentally removed during the
1818 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1820 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1822 * value.h (value_of_register): Update.
1826 * configure.in: Detect declaration for canonicalize_file_name.
1827 * utils.c (canonicalize_file_name): Declare, if needed.
1828 (gdb_realpath): Prefer realpath if available and usable.
1829 * config.in, configure: Rebuild.
1833 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1834 a constant array bound.
1836 * MAINTAINERS: Add myself to write-after-approval.
1840 * symfile.c (syms_from_objfile): Return immediately if no syms.
1841 (symbol_file_add): Return immediately if no syms.
1842 (find_sym_fns): Return immediately if no syms.
1846 * gdbserver/remote-util.c (remote_open): Print remote-side's
1847 IP address when remote debugging over the network.
1851 * config/sparc/fbsd.mh: Fix copyright.
1852 * config/sparc/fbsd.mt: Likewise.
1856 * MAINTAINERS: Fix typo in name of gdb warnings option.
1857 (x86-64): Fix formating so that this can be parsed by awk.
1861 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1862 * defs.h: Include "gdb/signals.h".
1863 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1867 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1868 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1874 * mips-tdep.c (ST0_FR): Define.
1875 (mips2_fp_compat): New function, temporarily disabled.
1876 (mips_read_fp_register_single): New function.
1877 (mips_read_fp_register_double): New function.
1878 (mips_print_register): Use them.
1879 (do_fp_register_row): Likewise.
1883 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1888 * stabsread.c (read_member_functions): Fix is_stub test for
1889 static member functions, improve comment.
1893 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1894 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1895 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1896 commands that set boolean values.
1897 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1898 (arm_rdi_resume): Always initialize PC.
1899 (arm_rdi_open): Don't use rslt as a boolean.
1900 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1901 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1902 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1903 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1907 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1908 * configure: Rebuilt.
1912 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1913 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1917 * cli/cli-decode.c (set_cmd_completer): New function.
1918 * command.h (set_cmd_completer): Declare.
1919 * cli/cli-decode.h (set_cmd_completer): Ditto.
1921 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1922 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1923 * win32-nat.c (_initialize_inftarg): Ditto.
1924 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1925 * proc-api.c (_initialize_proc_api): Ditto.
1926 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1927 * source.c (_initialize_source): Ditto.
1928 * exec.c (_initialize_exec): Ditto.
1929 * solib.c (_initialize_solib): Ditto.
1930 * top.c (init_main): Ditto.
1931 * tracepoint.c (_initialize_tracepoint): Ditto.
1932 * symfile.c (_initialize_symfile): Ditto.
1933 * printcmd.c (_initialize_printcmd): Ditto.
1934 * infcmd.c (_initialize_infcmd): Ditto.
1935 * corefile.c (_initialize_core): Ditto.
1939 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1943 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1947 * NEWS: Update headings, 5.2 has branched.
1951 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1952 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1953 (register_addr, REGISTER_RAW_SIZE): Likewise.
1954 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1955 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1959 * MAINTAINERS (x86-64): Add myself.
1960 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1961 changed value_ptr -> struct value *
1965 * configure.host (sparc64-*-freebsd): Add.
1966 * configure.tgt: Likewise.
1967 * config/sparc/fbsd.mh: New file.
1968 * config/sparc/fbsd.mt: Likewise.
1969 * config/sparc/nm-fbsd.h: Likewise.
1970 * config/sparc/tm-fbsd.h: Likewise.
1974 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1975 regformats/reg-s390x.dat.
1979 * utils.c: Add FIXME explaining true/false problem.
1983 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1987 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1991 * gdbserver/linux-s390-low.c: New file.
1992 * regformats/reg-s390.dat: New file.
1993 * regformats/reg-s390x.dat: New file.
1994 * gdbserver/configure.srv: Add S/390.
1995 * gdbserver/Makefile.in: Add S/390.
1996 * configure.tgt: Enable gdbserver for S/390.
2000 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2001 first line of the doc string for "info dos", except at the end of
2002 the sentence, since the short help stops at the first period.
2006 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2010 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2011 comment (dumy -> dummy).
2015 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2019 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2023 * gdbserver/acconfig.h: New file.
2024 * gdbserver/i387-fp.c: New file.
2025 * gdbserver/i387-fp.h: New file.
2026 * gdbserver/linux-x86-64.c: New file.
2027 * regformats/reg-x86-64.dat: New file.
2028 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2029 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2030 * gdbserver/configure.in: Add support for regsets.
2031 * gdbserver/config.in: Regenerate.
2032 * gdbserver/configure: Regenerate.
2033 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2034 * gdbserver/linux-low.h: New file.
2035 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2037 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2038 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2039 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2040 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2041 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2042 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2043 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2044 "i387-fp.h". Add PTRACE_GETREGS and friends.
2045 * gdbserver/regcache.c (supply_register): New function.
2046 (supply_register_by_name): New function.
2047 (collect_register): New function.
2048 (collect_register_by_name): New function.
2052 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2053 (config.status): Add configure.srv dependency.
2054 (server_h): Add config.h dependency.
2058 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2059 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2060 * gdbserver/configure.srv: Change i386-*-linux* to use
2065 * x86-64-tdep.c: Re-indent. Update copyright date.
2070 * x86-64-tdep.c (value.h): Delete.
2071 (gdb_assert.h): Include.
2072 (x86_64_register_convert_to_virtual,
2073 x86_64_register_convert_to_raw ): Add check which lets only
2074 floating-point values to be converted.
2075 (value_push): Delete.
2076 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2077 (i386_gdbarch_init): Number of register_bytes fixed.
2081 * MAINTAINERS: Add x86-64 target.
2085 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2086 * osfsolib.c (solib_map_sections): Ditto.
2087 * irix5-nat.c (solib_map_sections): Ditto.
2088 * corelow.c (gdb_check_format): Ditto.
2089 * symfile.c (symfile_bfd_open): Ditto.
2090 * solib.c (solib_map_sections): Ditto.
2095 * remote.c (_initialize_remote): By default, disable ``e'' and
2096 ``E'' step out-of-range packets.
2100 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2101 m68k_linux_frame_saved_pc.
2102 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2104 (SIGCONTEXT_PC_OFFSET): Remove.
2105 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2106 m68k_linux_sigtramp_saved_pc): New functions.
2107 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2108 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2109 (UCONTEXT_PC_OFFSET): Define.
2110 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2111 non-RT and RT signal trampolines.
2115 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2116 (TARGET_NBPG, STACK_END_ADDR): Delete
2117 (VARIABLES_INSIDE_BLOCK): Delete.
2121 * utils.c (perror_with_name): Make string parameter constant.
2122 (print_sys_errmsg): Ditto.
2124 * defs.h (perror_with_name): Update.
2125 (print_sys_errmsg): Update.
2131 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2135 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2136 if it already matches the current architecture from the exec file.
2137 Include arch-utils.h for gdbarch_info_init prototype.
2138 * Makefile.in (rs6000-nat.o): Update dependencies.
2142 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2143 list of exported variables.
2147 * gdbserver/configure.srv: New file.
2148 * gdbserver/configure.in: Use configure.srv instead
2149 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2151 * gdbserver/configure: Regenerated.
2152 * gdbserver/terminal.h: New file.
2153 * gdbserver/Makefile.in: Update for configure changes. Remove
2154 more unneeded include paths.
2158 From wiz at danbala:
2159 * config/sparc/tm-sp64.h: Fix grammar and typos.
2164 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2165 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2166 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2167 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2168 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2169 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2170 * s390-tdep.c: Ditto.
2171 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2172 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2173 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2174 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2175 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2176 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2177 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2178 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2179 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2180 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2185 * lin-thread.c: Delete file.
2186 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2187 to gdb_proc_service.h.
2188 * configure: Re-generate.
2190 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2191 * serial.c (serial_open): Delete check for "ocd".
2194 * Makefile.in (linux-thread.o): Delete target.
2195 * linux-thread.c: Delete file.
2197 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2198 renamed SH files to be consistent.
2200 * symtab.c (sort_search_symbols): Use xfree.
2204 * arm-linux-tdep.c (arm_linux_init_abi): Register
2205 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2206 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2207 definition with undef, since we don't want the sysvr4 definition.
2208 (SKIP_TRAMPOLINE_CODE): Likewise.
2214 * configure.in: (AC_CHECK_FUNCS) Added test for
2215 canonicalize_file_name Regenerated.
2216 * config.in, configure: Regenerated.
2217 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2218 defined use canonicalize_file_name.
2222 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2226 * README: Remove references to cygnus.com.
2227 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2228 dot com'' form. Remove references to cygnus.com and sourceware.
2233 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2234 1003.1-2001 no longer allows "head -1".
2235 * gdb/Makefile.in (version.c): Likewise.
2236 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2237 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2238 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2242 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2243 * command.h (cmd_cfunc_eq): Declare.
2244 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2246 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2247 ``struct cmd_list_element *''.
2248 * cli/cli-cmds.c (is_complete_command): Update. Use
2250 * top.c (execute_command): Pass the command to
2251 is_complete_command.
2252 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2257 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2258 architecture defines.
2259 * s390-tdep.c (s390_gdbarch_init): Likewise.
2263 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2264 (arm_linux_push_arguments): Likewise.
2265 (arm_linux_init_abi): Register them. Also register linux-specific
2267 (find_minsym_and_objfile): Use strcmp, not STREQ.
2268 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2269 (arm_linux_call_dummy_words): Delete declaration.
2270 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2271 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2273 (LOWEST_PC): Delete.
2277 * maint.c (print_section_info): Do not prepend `0x' to filepos
2278 output, it will be handled by local_hex_string_custom.
2282 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2283 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2284 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2288 Indicate that the bcache functions don't change the strings
2290 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2291 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2295 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2299 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2300 find the complete path to a loaded DLL.
2304 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2305 that marks the end of the range of a function, enter a line number
2306 entry that has a line number of zero and a PC offset that matches
2307 the end of the function. This starts a range of PC's for which no
2308 line number information is known.
2309 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2310 PC's for which no line number info is found (line number is zero)
2311 then we didn't find any valid line information.
2312 * symtab.h: Document use of zero line number entry.
2316 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2317 (have_ptrace_getvrregs): Define for run time checks.
2318 (gdb_vrregset_t): New type for Altivec register handling.
2319 (fetch_register, store_register): Fetch/store altivec register
2321 (fetch_altivec_register, store_altivec_register): New functions.
2322 (supply_vrregset, fill_vrregset): New functions.
2323 (fetch_altivec_registers, store_altivec_registers): New functions.
2324 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2329 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2333 * Makefile.in (armnbsd-nat.o): Update dependencies.
2334 * armnbsd-nat.c (supply_gregset): New function. Common code to
2335 supply the integer register set.
2336 (supply_fparegset): New function. Similar for FPA registers.
2337 (fetch_regs, fetch_fp_regs): Use them.
2338 (fetch_core_registers): Likewise.
2339 (fetch_elfcore_registers): New function.
2340 (arm_netbsd_elfcore_fns): New core-file type specification.
2341 (_initialize_arm_netbsd_nat): Register it.
2345 * armnbsd-nat.c: Include gdbcore.h.
2346 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2347 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2348 'void' to declaration, to shut up ARI.
2349 (fetch_core_registers): Make static. Rewrite using supply_register.
2350 (arm_netbsd_core_fns): New core-file type specification.
2351 (_initialize_arm_netbsd_nat): New function.
2355 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2360 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2365 * jv-exp.y (parse_number): Change type of implicit longs
2366 to builtin_type_uint64.
2370 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2371 to be an integer instead of a `union wait'.
2375 * mips-linux-nat.c: Call the operating system GNU/Linux.
2376 * mips-linux-tdep.c: Likewise.
2377 * mips-tdep.c: Likewise.
2382 * jv-exp.y (parse_number): Handle 64-bit integers.
2386 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2387 AC_STDC_HEADERS to AC_HEADER_STDC.
2388 * gdbserver/configure: Regenerated.
2392 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2394 * sparc-tdep.c (get_longjmp_target): Likewise.
2398 * News: Add news about ARM and Multi-arch. Mention the new target
2403 * stabsread.c (error_type_complaint): Improve error message.
2407 * gdbserver/README: Update documentation.
2408 * gdbserver/configure.in: Update configury to match documentation.
2409 * gdbserver/Makefile.in: Likewise.
2410 * gdbserver/configure: Regenerated.
2411 * gdbserver/aclocal.m4: New file, generated by aclocal.
2412 * gdbserver/config.in: New file, generated by autoheader.
2416 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2421 * arm-tdep.h (enum arm_float_model): New enum.
2422 (struct gdbarch_tdep): Add fp_model.
2423 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2424 up floating-point conversions until we know the floating-point model
2425 in use by the inferior. Don't complain about being unable to
2426 determine the ABI of the inferior when we don't have one.
2427 (arm_extract_return_value): Support different floating-point models.
2428 (arm_store_return_value): Likewise.
2429 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2431 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2435 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2436 of ``current_gdbarch''.
2440 * armnbsd-nat.c : ANSIfy all function declarations.
2441 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2442 (fetch_inferior_registers): Re-implement in terms of above.
2443 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2444 (store_inferior_registers): Re-implement in terms of above.
2448 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2450 * arm-linux-tdep.c: Likewise.
2451 * config/arm/tm-linux.h: Likewise.
2455 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2456 * config/arm/nbsd.mt (TM_FILE): Delete.
2457 * config/arm/tm-nbsd.h: Delete.
2461 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2462 Initialize CALL_DUMMY_LENGTH.
2466 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2468 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2469 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2470 defines one thing and that is incorrect for this port.
2471 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2475 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2479 * win32-nat.c (display_selector): New function. Displays information
2480 about the information returned by GetThreadSelectorEntry API function.
2481 (display_selectors): New function. Displays the infomation of
2482 the selector given as argument, or of CS, DS ans FS selectors
2483 if no argument is given.
2484 ( _initialize_inftarg): Add "w32" as info prefix command.
2485 Add "info w32 selector" as command calling display_selectors.
2489 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2490 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2495 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2499 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2500 (arm_fix_call_dummy): Call it.
2501 (arm_call_dummy_breakpoint_offset): Delete.
2502 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2503 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2507 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2508 Default to func_frame_chain_valid.
2509 * gdbarch.h, gdbarch.c: Re-generate.
2510 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2514 * ppc-linux-nat.c: Update copyright.
2515 (fetch_register, store_register): Add tid parameter, don't compute
2517 (fetch_ppc_registers, store_ppc_registers): Add tid
2518 parameter. Pass it along to callees.
2519 (fetch_inferior_registers, store_inferior_registers): Compute tid
2520 here, and pass it to calleed functions.
2521 (fill_gregset, supply_fpregset): Clean up formatting.
2525 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2526 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2530 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2531 * gdbarch.c gdbarch.h: Regenerate.
2532 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2534 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2535 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2536 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2538 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2539 * arm-tdep.c (arm_get_longjmp_target): New function.
2540 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2541 this to a positive value register arm_get_longjmp_target as the
2543 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2544 (arm_linux_init_abi): Set up longjmp description in tdep.
2545 * armnbsd-nat.c (get_longjmp_target): Delete.
2546 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2547 description in tdep.
2548 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2549 (get_longjmp_target): Delete declaration.
2550 (GET_LONGJMP_TARGET): Delete.
2551 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2552 (GET_LONGJMP_TARGET): Delete.
2557 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2558 of ``current_gdbarch''.
2562 * cli/cli-cmds.c (compare_strings): New function.
2563 (complete_command): Only print each unique item once.
2564 * completer.h (complete_line): Declare.
2565 * completer.c (complete_line): New function.
2566 (line_completion_function): Use it.
2570 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2571 * gdbarch.h, gdbarch.c: Re-generate.
2575 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2580 * valops.c (value_arg_coerce): Don't take the address of a reference
2581 to convert an argument to a reference.
2585 * win32-nat.c (get_image_name): New function.
2586 (handle_load_dll): Use get_image_name function.
2587 (get_child_debug_event): Avoid registering debug events until possibly
2588 execed process is started.
2589 (child_create_inferior): Allow invocation via shell so that command
2590 line redirection, etc. works ok.
2591 (_initialize_inftarg): Add new command: "set shell" to control whether
2592 a shell is used to start a process.
2596 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2597 instead of find_register_by_number.
2598 (cannot_store_register): Likewise.
2602 * dwarf2read.c: Replace fprintf (stderr, ...) by
2603 fprintf_unfiltered (gdb_stderr, ...).
2607 * gdbserver/gdbserver.1: Document --attach.
2611 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2613 * arm-tdep.c (arm_default_arm_le_breakpoint)
2614 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2615 (arm_default_thumb_be_breakpoint): New. Initialize them from
2616 traditional breakpoint defines.
2617 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2618 (arm_gdbarch_init): Initialize new breakpoint variables.
2619 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2620 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2621 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2622 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2624 (arm_netbsd_init_abi_common): ... here; new function.
2625 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2626 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2627 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2628 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2632 * arm-tdep.h (enum arm_abi): New enum.
2633 (struct gdbarch_tdep): New structure.
2634 (LOWEST_PC): Provide a default.
2635 (arm_gdbarch_register_os_abi): Declare new function.
2636 * arm-tdep.c (arm_abi_names): New array.
2637 (process_note_abi_tag_sections): New function.
2638 (get_elfosabi): New function.
2639 (arm_gdbarch_register_os_abi): New function.
2640 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2641 support for that ABI has been built in, then call the appropriate
2642 configuration routine. Use gdbarch_num_regs() to get the number
2644 (arm_dump_tdep): New function.
2645 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2646 place-holder functions.
2647 (_initialize_arm_tdep): Register them.
2648 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2650 * armnbsd-tdep.c: New file.
2651 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2652 * config/arm/nbsd.mt (TDEPFILES): Add it.
2653 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2655 * armnbsd-nat.c: Include regcache.h.
2656 * Makefile.in (armnbsd-nat.o): Update dependency list.
2658 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2662 * gdbserver/Makefile.in: Fix typos in target rules.
2666 Fix part of PR gdb/267.
2667 * linespec.c (find_methods): Handle constructors specially for now.
2671 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2673 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2674 standard_coerce_float_to_double().
2678 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2683 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2684 find_variant_by_name, because it confuses the multiarch
2685 framework. Return NULL if there isn't an architecture with the
2686 user supplied name, instead of forcing a different one without
2687 recording the change with the multiarch machinery.
2688 (find_variant_by_name): Delete.
2692 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2693 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2697 * stack.c (print_frame_info_base): When calling
2698 print_frame_info_listing_hook, set current_source_symtab.
2702 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2703 and remove unused $(INCLUDE_DIR).
2704 Add regcache.c to OBS.
2705 Add generated register protocol files to clean target.
2706 Update dependencies for new objects, obsolete old target code.
2708 * gdbserver/linux-low.c: Remove all platform-specific code to
2709 new files. Remove various dead code. Update to use regcache
2711 * gdbserver/remote-utils.c (fromhex): Add return statement
2713 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2715 (input_interrupt): Add integer parameter to match prototype
2716 of a signal handler.
2717 (outreg): Use register_data ().
2718 (prepare_resume_reply): Use gdbserver_expedite_regs.
2719 * gdbserver/server.c (main): Dynamically allocate own_buf because
2720 PBUFSIZ is no longer constant. Use registers_to_string () and
2721 registers_from_string ().
2722 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2723 for error (), fatal (), and warning (). Update definition of
2724 PBUFSIZ to use regcache functionality. Add include guard.
2725 * gdbserver/utils.c (fatal): Add missing ``const''.
2726 (warning): New function.
2728 * regformats/regdat.sh: Include "regcache.h" in generated files.
2729 Provide init_registers () function.
2730 * regformats/regdef.h: Add prototype for set_register_cache ().
2733 * gdbserver/linux-arm-low.c: New file.
2734 * gdbserver/linux-i386-low.c: New file.
2735 * gdbserver/linux-ia64-low.c: New file.
2736 * gdbserver/linux-m68k-low.c: New file.
2737 * gdbserver/linux-mips-low.c: New file.
2738 * gdbserver/linux-ppc-low.c: New file.
2739 * gdbserver/linux-sh-low.c: New file.
2741 * gdbserver/regcache.c: New file.
2742 * gdbserver/regcache.h: New file.
2744 * gdbserver/low-linux.c: Removed obsolete file.
2748 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2749 * config/i386/linux.mt: Likewise.
2750 * config/ia64/linux.mt: Likewise.
2751 * config/m68k/linux.mh: Likewise.
2752 * config/powerpc/linux.mh: Likewise.
2753 * config/mips/linux.mt: Likewise.
2755 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2757 * config/i386/i386lynx.mh: Mark gdbserver variables
2758 as (currently) obsolete for this target.
2759 * config/i386/nbsd.mt: Likewise.
2760 * config/i386/nbsdelf.mt: Likewise.
2761 * config/m32r/m32r.mt: Likewise.
2762 * config/m68k/m68klynx.mh: Likewise.
2763 * config/m68k/nbsd.mt: Likewise.
2764 * config/m68k/sun3os4.mh: Likewise.
2765 * config/mips/vr5000.mt: Likewise.
2766 * config/ns32k/nbsd.mt: Likewise.
2767 * config/pa/hppabsd.mh: Likewise.
2768 * config/pa/hppaosf.mh: Likewise.
2769 * config/powerpc/nbsd.mt: Likewise.
2770 * config/rs6000/rs6000lynx.mh: Likewise.
2771 * config/s390/s390.mt: Likewise.
2772 * config/s390/s390x.mt: Likewise.
2773 * config/sparc/sparclynx.mh: Likewise.
2774 * config/sparc/sun4os4.mh: Likewise.
2775 * config/i386/x86-64linux.mt: Likewise.
2776 * config/sparc/linux.mh: Likewise.
2780 * configure.tgt: Configure gdbserver only for known working
2781 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2782 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2783 SUBDIRS if it is configured. Update comment for ${nativefile}.
2784 * configure: Regenerated.
2788 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2790 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2791 (default_gcore_mach): Just return 0, work around a problem in bfd.
2792 (default_gcore_target): OK to return NULL if exec_bfd is null.
2793 (make_mem_sec): Use a cast, avoid a warning.
2795 * procfs.c (find_memory_regions_callback): Use a cast instead of
2796 calling host_pointer_to_address (which complains if
2797 sizeof (host pointer) != sizeof (target pointer)).
2798 (procfs_make_note_section): Avoid overflow in psargs string.
2800 * procfs.c (procfs_make_note_section): Make the default
2801 implementation return an error.
2805 * procfs.c (procfs_make_note_section): Provide a default definition
2806 (for alpha-dec-osf4.0f). Fix typos.
2810 * linux-proc.c: Add include of regcache.h.
2811 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2816 * memattr.c (create_mem_region): Disallow useless empty region.
2817 Regions are half-open intervals, so allow [A..B) [B..C) as
2822 * defs.h: Kill CONST_PTR.
2823 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2824 * c-lang.c (c_builtin_types): Likewise.
2825 * ch-lang.c (ch_builtin_types): Likewise.
2826 * f-lang.c (f_builtin_types): Likewise.
2827 * language.c (unknown_builtin_types): Likewise.
2828 * m2-lang.c (m2_builtin_types): Likewise.
2829 * p-lang.c (pascal_builtin_types): Likewise.
2830 * scm-lang.c (c_builtin_types): Likewise.
2834 * arm-tdep.h (arm_get_next_pc): Add declaration.
2838 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2839 with other related struct-returning functions.
2840 (arm_extract_struct_value_address): New function.
2841 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2842 initialize float_format, double_format and long_double_format as
2843 appropriate to the endianness of the target.
2844 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2845 (arm_use_struct_convention): Delete declaration.
2846 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2850 * defs.h (core_addr_to_string_nz): New function.
2854 Apply missing bits of 2002-01-15 patch.
2855 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2856 (fill_fpregset): Use i387_fill_fsave.
2860 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2861 (core_addr_to_string_nz): New function.
2865 * arm-linux-nat.c: Really include arm-tdep.h.
2866 * config/arm/tm-linux.h (struct type, struct value): Declare.
2870 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2871 (gcore section): Ifdef for Solaris and Unixware only.
2872 (procfs_do_thread_registers): Unixware needs one lwpstatus
2873 per thread (not one prstatus or pstatus).
2874 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2875 not over all gdb threads. For unixware, call elfcore_write_pstatus
2876 once before iterating over threads.
2880 * arm-tdep.h: New file.
2881 * arm-tdep.c: Include arm-tdep.h.
2882 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2883 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2884 (arm_print_float_info, arm_register_type, convert_to_extended)
2885 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2886 (arm_extract_return_value, arm_register_name): Make static.
2887 (arm_software_single_step): Similarly. Fix types in declaration.
2888 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2889 (arm_store_return_value, arm_store_struct_return): New functions.
2890 (arm_gdbarch_init): Register the above functions. Also register
2891 call_dummy_start_offset, sizeof_call_dummy_words,
2892 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2893 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2894 max_register_virtual_size, register_size. Set up
2895 prologue_cache.saved_regs here, rather than ...
2896 (_initialize_arm_tdep): ... here.
2897 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2899 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2900 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2901 (arm_print_float_info, arm_register_type, convert_to_extended)
2902 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2903 (arm_extract_return_value, arm_register_name): Delete declarations.
2904 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2905 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2906 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2907 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2908 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2909 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2910 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2911 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2912 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2913 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2914 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2915 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2917 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2918 * remote-rdi.c remote-rdp.c: Likewise.
2919 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2920 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2921 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2924 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2925 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2926 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2927 from non-ARM_ prefixed definitions.
2928 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2930 * remote-rdi.c remote-rdp.c: Likewise.
2931 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2935 * arm-tdep.c (arm_frameless_function_invocation)
2936 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2937 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2938 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2939 (arm_pop_frame, arm_get_next_pc): Make static.
2940 (arm_gdbarch_init): Register above in gdbarch structure.
2941 (arm_read_fp): Renamed from arm_target_read_fp.
2942 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2943 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2944 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2945 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2946 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2947 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2948 (arm_pc_is_thumb_dummy): Delete declarations.
2949 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2950 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2951 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2952 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2956 * symtab.c (compare_search_syms): New function.
2957 (sort_search_symbols): New function.
2958 (search_symbols): Sort symbols after searching rather than
2963 * NEWS: Linux -> GNU/Linux.
2967 * gdbarch.sh: For for level one methods, disallow a definition
2968 when partially multi-arched. Add comments explaining rationale.
2969 * gdbarch.h: Re-generate.
2973 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2978 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2980 * gdbarch.c: Re-generate.
2984 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2985 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2990 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2992 (PUSH_ARGUMENTS): Switch to using predefault.
2993 * gdbarch.c: Regenerate.
2997 * valops.c (PUSH_ARGUMENTS): Delete definition.
2998 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2999 partial. Default to default_push_arguments.
3000 * gdbarch.h, gdbarch.c: Regenerate.
3004 * defs.h (throw_exception): Rename return_to_top_level. Update
3006 * utils.c (error_stream, internal_verror, quit): Ditto.
3007 * top.c (throw_exception, catcher): Ditto.
3008 * sparclet-rom.c (sparclet_load): Ditto.
3009 * remote.c (interrupt_query, minitelnet): Ditto.
3010 * remote-sds.c (interrupt_query): Ditto.
3011 * remote-mips.c (mips_error, mips_kill): Ditto.
3012 * ocd.c (interrupt_query): Ditto.
3013 * monitor.c (monitor_interrupt_query): Ditto.
3014 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3015 * target.h: Update comment.
3017 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3021 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3022 default_double_format.
3023 * gdbarch.h, gdbarch.c: Re-generate.
3024 * findvar.c (floatformat_unknown): Delete variable definition.
3025 * doublest.h (floatformat_unknown): Delete variable declaration.
3029 * stabsread.c (read_type): Add code to parse Sun's syntax for
3030 prototyped function types.
3034 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3035 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3039 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3040 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3041 now _initialize_xcoffsolib gets called again and overrides the
3042 commands from solib.c in a native configuration.
3046 * doublest.c (store_typed_floating): Don't try to return a value.
3051 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3052 is prototyped and has no arguments, print its argument list as
3057 * MAINTAINERS (write-after-approval): Add myself.
3058 (paper-trail): I've escaped!
3062 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3064 (_initialize_check_for_gdb_ini): Ditto.
3068 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3069 xaprintf -> xasprintf.
3073 * win32-nat.c: Remove use of printf and sprintf functions.
3077 * arm-tdep.c (arm_frame_chain_valid): Make static.
3078 (arm_push_arguments): Likewise.
3079 (arm_gdbarch_init): New function.
3080 (_initialize_arm_tdep): Call it.
3081 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3082 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3083 (FRAME_CHAIN_VALID): Delete.
3084 (arm_frame_chain_valid): Delete declaration.
3085 (PUSH_ARGUMENTS): Delete.
3086 (arm_push_arguments): Delete declaration.
3087 (CALL_DUMMY_P): Delete.
3092 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3093 on builtin float types.
3097 * utils.c: Include <curses.h> before "bfd.h".
3098 * tui/tui-hooks.c: Likewise.
3099 * tui/tui.c: Likewise.
3100 * tui/tuiCommand.c: Likewise.
3101 * tui/tuiData.c: Likewise.
3102 * tui/tuiDataWin.c: Likewise.
3103 * tui/tuiDisassem.c: Likewise.
3104 * tui/tuiGeneralWin.c: Likewise.
3105 * tui/tuiIO.c: Likewise.
3106 * tui/tuiLayout.c: Likewise.
3107 * tui/tuiRegs.c: Likewise.
3108 * tui/tuiSource.c: Likewise.
3109 * tui/tuiSourceWin.c: Likewise.
3110 * tui/tuiStack.c: Likewise.
3111 * tui/tuiWin.c: Likewise.
3115 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3116 to include space for pseudoregs as well. Update loops accordingly.
3117 (sh_fp_frame_init_saved_regs): Ditto.
3118 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3122 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3123 Add Richard Earnshaw to Arm maintainers.
3127 * defs.h (warning_begin): Delete declaration.
3129 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3134 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3135 Logic bug, remove misplaced else.
3139 * fork-inferior.c (fork_inferior): Add '!' to the list of
3140 characters that need to be quoted when building a string for the
3141 shell. Quote '!' specifically with a backslash, since CSH chokes
3142 when trying to evaluate "str!str".
3146 * rdi-share/host.h: Only provide a typedef for bool if it is not
3151 * breakpoint.h (enum bptype): Add new overlay event bp type.
3152 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3154 * breakpoint.c (create_internal_breakpoint): New function.
3155 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3156 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3157 (create_thread_event_breakpoint): Ditto.
3158 (create_solib_event_breakpoint): Ditto.
3159 (create_overlay_event_breakpoint): New function.
3160 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3161 (update_breakpoints_after_exec): Delete and re-initialize
3162 overlay event breakpoints after an exec. Add FIXME comment
3163 about longjmp breakpoint.
3164 (print_it_typical): Ignore overlay event breakpoints.
3165 (print_one_breakpoint): Ditto.
3167 (bpstat_what): Do not stop for overlay event breakpoints.
3168 (delete_breakpoint): Don't delete overlay event breakpoints.
3169 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3170 (breakpoint_re_set): Re-create overlay event breakpoint.
3172 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3173 (overlay_manual_command): Disable overlay breakpoints.
3174 (overlay_off_command): Disable overlay breakpoints.
3178 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3179 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3180 to here from config/tm-arm.h.
3181 (coff_sym_is_thumb): Make static.
3182 (arm_elf_make_msymbol_special): New function.
3183 (arm_coff_make_msymbol_special): New function.
3184 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3185 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3186 (coff_sym_is_thumb): Delete declaration.
3187 (arm_elf_make_msymbol_special): Declare.
3188 (arm_coff_make_msymbol_special): Declare.
3189 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3190 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3194 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3198 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3199 * gdbarch.c gdbarch.h: Regenerate.
3200 * arch-utils.c (default_print_float_info): New function.
3201 * arch-utils.h (default_print_float_info): Prototype it.
3202 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3203 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3204 (PRINT_FLOAT_INFO): Document it.
3206 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3207 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3208 (PRINT_FLOAT_INFO): Define.
3212 * win32-nat.c (_initialize_check_for_gdb_ini):
3213 Add typecast to sprintf argument to suppress a warning.
3217 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3218 to allow easier handling of pass state.
3219 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3220 that gives exception name and address.
3221 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3222 and set last_sig value to ourstatus->value.sig. Some missing
3224 (child_continue): Correctly report continue_status.
3225 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3226 TARGET_SIGNAL_0 (new default value).
3227 (child_resume): consider sig argument passed to decide if
3228 the exception should be passed to debuggee or not.
3232 * regcache.c (fetch_register): Call target_fetch_register
3233 only if we don't call FETCH_PSEUDO_REGISTER.
3234 (store_register): Call target_store_register only if we
3235 don't call STORE_PSEUDO_REGISTER.
3239 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3240 ELF_MAKE_MSYMBOL_SPECIAL.
3241 * gdbarch.c, gdbarch.h: Regenerate.
3242 * arch-utils.c (default_make_msymbol_special): New function.
3243 * arch-utils.h (default_make_msymbol_special): Export.
3244 * elfread.c (elf_symtab_read): Compile use of
3245 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3247 * coffread.c (coff_symtab_read): Ditto, for
3248 COFF_MAKE_MSYMBOL_SPECIAL.
3252 * solib-svr4.c (svr4_truncate_ptr): New function.
3253 (svr4_relocate_section_addresses): Do the address arithmetic with
3254 the appropriate truncation for target addresses, even when
3255 CORE_ADDR is larger than a target address.
3259 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3264 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3269 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3273 * gdbserver/linux-low.c: Remove unused include files.
3277 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3278 (read_inferior_memory): Use it.
3279 (write_inferior_memory): Likewise.
3283 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3284 grubbing through sys_errlist.
3288 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3291 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3295 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3296 (do_sfunc, set_cmd_sfunc): New functions.
3298 * command.h (struct cmd_list_element): Add field func.
3299 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3300 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3301 * cli/cli-decode.h: Ditto.
3303 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3304 (help_all, help_cmd_list): Ditto.
3305 (find_cmd, complete_on_cmdlist): Ditto.
3306 * top.c (execute_command): Ditto.
3308 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3311 * infcmd.c (notice_args_read): Fix function signature.
3313 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3314 * cli/cli-decode.c (add_set_cmd): Ditto.
3315 * utils.c (initialize_utils): Ditto.
3316 * maint.c (_initialize_maint_cmds): Ditto.
3317 * infrun.c (_initialize_infrun): Ditto.
3318 * demangle.c (_initialize_demangler): Ditto.
3319 * remote.c (add_packet_config_cmd): Ditto.
3320 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3321 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3322 * proc-api.c (_initialize_proc_api): Ditto.
3323 * kod.c (_initialize_kod): Ditto.
3324 * valprint.c (_initialize_valprint): Ditto.
3325 * top.c (init_main): Ditto.
3326 * infcmd.c (_initialize_infcmd): Ditto.
3327 * corefile.c (_initialize_core): Ditto.
3328 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3329 * arch-utils.c (initialize_current_architecture): Ditto.
3330 (_initialize_gdbarch_utils): Ditto.
3331 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3333 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3334 * wince.c (_initialize_inftarg): Ditto.
3335 * symfile.c (_initialize_symfile): Ditto.
3336 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3337 * language.c (_initialize_language): Ditto.
3338 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3342 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3346 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3347 Add rules for building the register data files.
3351 * regformats/regdat.sh: Add braces to the definition of
3352 expedite_regs_${arch}.
3356 * regformats/regdef.h (struct reg): Add comment describing the
3357 requirements for offset and size fields.
3361 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3362 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3366 * gdbarch.sh (copyright): Update years in generated header.
3367 (SMASH_TEXT_ADDRESS): Add rule.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3369 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3370 * dbxread.c: Likewise.
3371 * dwarfread.c: Likewise.
3372 * elfread.c: Likewise.
3373 * somread.c: Likewise.
3375 * arm-tdep.c (arm_smash_text_address): New function.
3376 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3380 Add support for hardware watchpoints on win32 native.
3381 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3382 CONTEXT_DEBUG_REGISTERS.
3383 (dr variable): New variable. Static array containing a local copy
3385 (debug_registers_changed): New variable. Reflects when debug registers
3386 are changed and need to be written to inferior.
3387 (debug_registers_used): New variable. Reflects when any debug register
3388 was set, used when new threads are created.
3389 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3391 (thread_rec): Set dr array if id is the thread of current_event .
3392 (child_continue, child_resume): Change the debug registers for all
3393 threads if debug_registers_changed.
3394 (child_add_thread): Change the debug registers if debug_registers_used.
3395 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3396 Link nm.h to new nm-cygwin.h file.
3397 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3398 of hardware registers.
3402 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3403 Restore behavour broken by 2002-01-20 Andrew Cagney
3408 * c-valprint.c (c_val_print): Pass a proper valaddr to
3409 cp_print_class_method.
3410 * valops.c (search_struct_method): If there is only one method
3411 and args is NULL, return that method.
3415 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3416 accessing tag_name directly.
3420 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3421 of accessing tag_name directly.
3426 * gdbtypes.c (replace_type): New function.
3427 * gdbtypes.h (replace_type): Add prototype.
3428 * stabsread.c (read_type): Use replace_type.
3432 * Makefile.in (memattr.o): Add missing dependencies rule.
3436 * breakpoint.c (break_at_finish_command): Really export.
3437 (break_at_finish_at_depth_command): Ditto.
3438 (tbreak_at_finish_command): Ditto.
3439 * hppa-tdep.c: Include completer.h.
3440 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3441 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3445 * utils.c (do_write): New function.
3446 (error_stream): Rewrite combining the code from error_begin and
3448 (verror): Rewrite using error_stream.
3449 (error_begin): Delete function.
3453 * utils.c (error_begin): Make static.
3454 * defs.h (error_begin): Delete declaration.
3456 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3457 (decode_line_1): Use cplusplus_error instead of error_begin,
3458 cplusplus_hint and return_to_top_level.
3459 * coffread.c (coff_symfile_read): Use error instead of error_begin
3460 and return_to_top_level.
3461 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3465 * language.h (type_error, range_error): Make string parameter
3467 * language.c (warning_pre_print): Delete extern declaration.
3468 * dwarfread.c (warning_pre_print): Ditto.
3469 * language.c (type_error, range_error): Rewrite to use verror and
3470 vwarning instead of warning_begin.
3474 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3475 (set_ignore_count): Move misplaced comment back where it belongs.
3479 * command.h (NO_FUNCTION): Delete macro.
3480 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3481 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3482 * tracepoint.c (_initialize_tracepoint): Ditto.
3483 * cli/cli-decode.c (add_set_cmd): Ditto.
3484 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3488 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3489 Update ``this'' pointer when calling virtual functions.
3493 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3494 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3498 * regformats/reg-arm.dat: New file.
3499 * regformats/reg-i386.dat: New file.
3500 * regformats/reg-ia64.dat: New file.
3501 * regformats/reg-m68k.dat: New file.
3502 * regformats/reg-mips.dat: New file.
3503 * regformats/reg-ppc.dat: New file.
3504 * regformats/reg-sh.dat: New file.
3505 * regformats/regdef.h: New file.
3506 * regformats/regdat.sh: New file.
3510 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3511 (arm_frame_args_address, arm_frame_locals_address): New functions.
3512 (arm_frame_num_args): New function.
3513 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3514 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3515 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3519 * breakpoint.c (break_at_finish_command): Export.
3520 (break_at_finish_at_depth_command): Export.
3521 (tbreak_at_finish_command): Export.
3522 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3523 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3524 "tbreak" commands, which are HPPA specific.
3526 * printcmd.c (disassemble_command): Remove an ancient
3527 artifact of an old merge.
3529 * symfile.h (enum overlay_debugging_state):
3530 Define enum constant values for overlay mode.
3531 * symfile.c (overlay_debugging): Use enums instead of literals.
3532 (overlay_is_mapped, overlay_auto_command,
3533 overlay_manual_command): Ditto.
3535 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3536 breakpoint_here_p, breakpoint_inserted_here_p,
3537 breakpoint_thread_match, bpstat_stop_status,
3538 describe_other_breakpoints, check_duplicates, clear_command):
3539 Coding standard fixes.
3541 * target.c (target_xfer_memory): Add spaces, coding standard.
3542 (do_xfer_memory): Add missing line to trust-readonly
3543 code: check bfd SEC_READONLY flag for section.
3547 * PROBLEMS: Fix typo, 5.1->5.1.1.
3551 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3552 data symbols, since we search based on textlow and texthigh.
3553 (find_pc_sect_symtab): Likewise.
3557 * defs.h (vwarning): Declare.
3558 * utils.c (vwarning): New function.
3559 (warning): Call vwarning.
3560 (warning_begin): Delete function.
3562 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3563 the warning message.
3564 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3569 * NEWS: Mention "set trust-readonly-sections" command.
3570 Mention generate-core-file command.
3574 * target.c: New command, "set trust-readonly-sections on".
3575 (do_xfer_memory): Honor the suggestion to trust readonly sections
3576 by reading them from the object file instead of from the target.
3577 (initialize_targets): Register command "set trust-readonly-sections".
3581 * parse.c (target_map_name_to_register): Simplify, search regs and
3582 pseudo-regs using a single loop.
3586 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3590 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3591 * config/i386/i386v42mp.mh: Add i387-nat.o .
3592 * i386v4-nat.c: Include i387-nat.h.
3593 (supply_fpregset): Use i387_supply_fsave.
3594 (fill_fpregset): Use i387_fill_fsave.
3598 * arm-tdep.c (arm_call_dummy_words): Define.
3599 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3600 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3601 (CALL_DUMMY_WORDS): Define.
3602 (arm_call_dummy_words): Declare.
3603 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3604 (arm_linux_call_dummy_words): Declare.
3608 * m68klinux-nat.c: Fix last change to use regcache_collect
3609 instead of referencing registers[] directly.
3613 * parse.c (target_map_name_to_register): Delete code wrapped in
3614 #ifdef REGISTER_NAME_ALIAS_HOOK.
3618 * regcache.c (legacy_read_register_gen): Need to be able to
3619 read pseudo-register as well as real register.
3620 (legacy_write_register_gen): Ditto.
3624 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3625 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3626 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3627 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3628 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3629 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3630 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3631 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3632 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3633 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3634 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3635 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3636 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3637 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3638 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3639 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3640 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3641 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3642 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3643 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3647 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3648 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3649 (initialize_current_architecture): Update target_byte_order using
3650 information from BFD.
3651 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3652 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3656 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3657 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3659 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3660 #ifdef INVALID_FLOAT.
3661 * infcmd.c (do_registers_info): Ditto.
3662 * values.c (unpack_double): Ditto. Add comment.
3664 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3665 already commented out.
3669 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3670 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3671 registers and add support for PTRACE_GETREGS.
3675 GDB 5.1.1 released from 5.1 branch.
3676 * NEWS: Add 5.1.1 news.
3677 * README: Sync with 5.1 branch.
3681 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3682 stabstring on initial malloc. Reallocing will copy it for us,
3687 * Makefile.in (hpread_h): Delete.
3688 (HFILES_NO_SRCDIR): Remove hpread.h.
3689 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3690 (hpread.o): Update dependencies.
3691 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3693 * hp-psymtab-read.c: Remove file.
3694 * hp-symtab-read.c: Remove file.
3695 * hpread.h: Remove file.
3697 * hpread.c: Merge all contents of hp-psymtab-read.c,
3698 hp-symtab-read.c and hpread.h into this file, as it was prior to
3701 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3702 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3703 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3704 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3708 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3709 fill_gregset): Call gdbarch_tdep() just once, assign result to
3710 variable and use that, instead of calling the function several
3715 * configure.host: Accept sparcv9 as alias for sparc64.
3716 * configure.tgt: Likewise.
3720 * solib-aix5.c (build_so_list_from_mapfile)
3721 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3722 arguments is not reversed.
3723 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3724 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3728 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3729 modified version of obsolete sh_fetch_pseudo_register.
3730 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3731 (sh4_register_read): New function.
3732 (sh_pseudo_register_write): New function. Renamed and modified
3733 version of obsolete sh_store_pseudo_register.
3734 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3735 (sh4_register_write): New function.
3736 (sh_gdbarch_init): Remove setting of gdbarch function
3737 fetch_pseudo_register and store_pseudo_register. Remove setting of
3738 register_convert_to_raw, register_convert_to_virtual,
3739 register_convertible.
3740 (sh_sh4_register_convertible): Delete. No longer needed. All is
3741 taken care by architecture specific functions
3742 register_read/register_write.
3743 (sh_sh4_register_convert_to_virtual): Make static.
3744 (sh_sh4_register_convert_to_raw): Ditto.
3748 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3749 (floatformat_is_nan, floatformat_mantissa): Ditto.
3751 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3752 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3753 builtin_type_ieee_double_little,
3754 builtin_type_ieee_double_littlebyte_bigword,
3755 builtin_type_m68881_ext, builtin_type_i960_ext,
3756 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3757 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3758 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3759 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3763 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3764 parameter. Set frameless flag if it exists and depended of
3765 whether the scanned function is frameless or not.
3766 (xstormy16_skip_prologue): If function is frameless, return
3767 result of xstormy16_scan_prologue().
3768 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3773 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3774 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3775 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3776 sh_sh4_register_byte, sh_sh4_register_raw_size,
3777 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3778 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3779 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3780 sh_store_pseudo_register, sh_do_pseudo_register): Call
3781 gdbarch_tdep() just once, assign result to variable and use that,
3782 instead of calling the function several times.
3786 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3787 macros instead of LAST_FPU_CTRL_REGNUM.
3788 (store_register): Likewise.
3792 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3793 is up-to-date before running the program, not just when a program
3798 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3799 when we have found all instructions we are looking for.
3803 * arm-tdep.c (arm_register_name): New function.
3804 (arm_registers_names): Make static.
3805 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3806 (arm_register_name): Declare.
3807 (REGISTER_NAME): Use it.
3812 Convert arm targets to new FRAME interface.
3813 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3814 (arm_frame_find_save_regs): Delete.
3815 (arm_frame_init_saved_regs): New.
3816 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3817 Allocate extra_info as required. Convert all uses of fsr.regs
3818 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3820 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3821 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3822 (check_prologue_cache, save_prologue_cache): Likewise.
3823 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3824 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3825 (FRAME_FIND_SAVED_REGS): Delete.
3826 (arm_frame_find_saved_regs): Delete prototype.
3827 (arm_frame_init_saved_regs): New prototype.
3828 (FRAME_INIT_SAVED_REGS): Define.
3832 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3837 * infttrace.c: Include <sys/pstat.h>.
3838 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3839 exec file if the ttrace equivalent fails.
3843 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3844 (closeLogFile): Ditto.
3848 * top.c (print_gdb_version): Bump copyright year to 2002.
3852 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3853 Zannoni and Eli Zaretskii.
3857 * buildsym.c: Update copyright years.
3858 * c-typeprint.c: Likewise.
3859 * dwarf2read.c: Likewise.
3860 * f-typeprint.c: Likewise.
3861 * gdbtypes.c: Likewise.
3862 * gdbtypes.h: Likewise.
3863 * hp-symtab-read.c: Likewise.
3864 * hpread.c: Likewise.
3865 * mdebugread.c: Likewise.
3866 * p-typeprint.c: Likewise.
3870 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3871 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3872 byte-order selectable.
3873 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3874 * arch-utils.c: Ditto.
3875 (set_endian): Ditto.
3876 (set_endian_from_file): Ditto.
3877 * gdbserver/low-sim.c (create_inferior): Ditto.
3878 * gdbarch.sh: Ditto.
3879 * gdbarch.h: Re-generate.
3880 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3881 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3882 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3883 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3884 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3885 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3886 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3887 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3889 * config/mips/tm-wince.h: Remove #undef of macro
3890 TARGET_BYTE_ORDER_SELECTABLE.
3891 * config/sh/tm-wince.h: Ditto.
3895 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3896 member function fields. Add accessor macro
3897 TYPE_FN_FIELD_ARTIFICIAL.
3898 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3899 * c-typeprint.c (c_type_print_base): Skip artificial member
3904 * f-typeprint.c: Delete unused function f_type_print_args.
3905 * p-typeprint.c: Delete unused function pascal_type_print_args.
3909 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3910 comment. Add ``artificial'' to ``union field_location''.
3912 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3914 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3915 * mdebugread.c (parse_symbol): Likewise.
3916 * stabsread.c (define_symbol): Likewise.
3917 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3918 initializing TYPE_FIELD_BITPOS to n (obsolete).
3919 (hpread_doc_function_type): Likewise.
3920 * hpread.c (hpread_function_type): Likewise.
3924 * configure.in (host_makefile_frag): Only require a host makefile
3925 fragment when a native build.
3926 * configure: Re-generate.
3930 * doublest.h (floatformat_from_type): Declare.
3931 * doublest.c (floatformat_from_type): New function.
3932 (convert_typed_floating): Use.
3934 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3935 call to function floatformat_from_type.
3937 * gdbarch.sh (IEEE_FLOAT): Delete.
3938 * gdbarch.h, gdbarch.c: Re-generate.
3939 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3940 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3941 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3942 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3943 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3944 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3945 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3946 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3947 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3948 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3949 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3950 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3952 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3953 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3954 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3955 * sh-tdep.c (sh_gdbarch_init): Ditto.
3956 * mips-tdep.c (mips_gdbarch_init): Ditto.
3957 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3958 * cris-tdep.c (cris_gdbarch_init): Ditto.
3962 * configure.host, configure.tgt: Support x86-64.
3963 * NEWS: Note new target x86-64.
3965 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3966 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3967 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3968 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3969 x86-64-linux-nat.o): Fix dependencies.
3973 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3974 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3975 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3976 * config/sparc/xm-sun4os4.h: Delete file.
3977 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3981 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3982 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3983 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3984 * config/i386/i386lynx.mh (XM_FILE): Delete.
3985 * config/rs6000/xm-rs6000ly.h: Delete file.
3986 * config/sparc/xm-sparclynx.h: Delete file.
3987 * config/m68k/xm-m68klynx.h: Delete file.
3988 * config/i386/xm-i386lynx.h: Delete file.
3989 * config/xm-lynx.h: Delete file.
3990 * config/djgpp/fnchange.lst: Update.
3994 * alpha-tdep.c (alpha_register_byte): New function.
3995 (alpha_register_raw_size): Ditto.
3996 (alpha_register_virtual_size): Ditto.
3997 (alpha_skip_prologue_internal): Renamed from
3998 alpha_skip_prologue.
3999 (alpha_skip_prologue): New version that calls
4000 alpha_skip_prologue_internal.
4001 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4002 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4003 second argument from alpha_skip_prologue.
4004 (REGISTER_BYTE): Use alpha_register_byte.
4005 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4006 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4007 (FRAMELESS_FUNCTION_INVOCATION): Use
4008 generic_frameless_function_invocation_not.
4009 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4010 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4014 * config/mips/xm-news-mips.h: Delete file.
4015 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4017 * config/m88k/xm-m88k.h: Delete file.
4018 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4019 * config/m88k/xm-delta88v4.h: Ditto.
4020 * config/m88k/xm-delta88.h: Ditto.
4022 * config/alpha/xm-fbsd.h: Delete file.
4023 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4025 * config/sparc/xm-sparc.h: Delete file.
4026 * Makefile.in (xm-sun4os4.h): Delete dependency.
4027 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4028 * config/sparc/xm-sun4os4.h: Ditto.
4029 * config/sparc/xm-linux.h: Ditto.
4031 * config/i386/xm-windows.h: Delete file.
4035 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4036 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4040 * alpha-tdep.c (alpha_call_dummy_words): New.
4041 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4042 (CALL_DUMMY_P): Define.
4043 (CALL_DUMMY_WORDS): Define.
4044 (SIZEOF_CALL_DUMMY_WORDS): Define.
4048 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4049 isn't NULL, which can happen with some gcj-3.x-produced code.
4053 * alpha-tdep.c (alpha_register_virtual_type): New function.
4054 (alpha_init_frame_pc_first): Ditto.
4055 (alpha_fix_call_dummy): Ditto.
4056 (alpha_store_struct_return): Ditto.
4057 (alpha_extract_struct_value_address): Ditto.
4058 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4059 alpha_register_virtual_type.
4060 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4061 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4062 alpha_extract_struct_value_address.
4063 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4064 (INIT_FRAME_PC): Use init_frame_pc_noop.
4065 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4069 * i386gnu-nat.c: Include "i386-tdep.h".
4070 (fetch_fpregs): Simplify code dealing with uninitialized floating
4071 point states such that it doesn't require FP7_REGNUM.
4075 * alpha-tdep.c (frame_extra_info): New.
4076 (alpha_find_saved_regs): Make static. Use
4078 (alpha_frame_init_saved_regs): New function.
4079 (alpha_frame_saved_pc): Use frame->extra_info.
4080 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4081 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4082 (init_extra_frame_info): Rename to...
4083 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4084 (alpha_print_extra_frame_info): New function.
4085 (alpha_frame_locals_address): Ditto.
4086 (alpha_frame_args_address): Ditto.
4087 (alpha_pop_frame): Use frame->extra_info.
4088 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4089 alpha_frame_args_address.
4090 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4091 (alpha_find_saved_regs): Remove prototype.
4092 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4093 (EXTRA_FRAME_INFO): Remove.
4094 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4095 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4099 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4100 (alpha_cannot_fetch_register): Ditto.
4101 (alpha_cannot_store_register): Ditto.
4102 (alpha_register_convertible): Ditto.
4103 (alpha_use_struct_convention): Ditto.
4104 * config/alpha/tm-alpha.h: Update copyright years.
4105 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4106 (INNER_THAN): Use core_addr_lessthan.
4107 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4108 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4109 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4110 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4111 (FRAME_CHAIN): Remove unnecessary cast.
4115 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4120 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4121 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4122 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4123 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4124 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4125 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4126 * x86-64-linux-nat.c: Ditto.
4130 * alpha-tdep.c (alpha_register_name): New function.
4131 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4132 (REGISTER_NAME): Define.
4136 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4140 * alpha-tdep.c: Update copyright years.
4141 (alpha_next_pc): New function.
4142 (alpha_software_single_step): Ditto.
4143 * config/alpha/tm-alpha.h: Add prototype for
4144 alpha_software_single_step.
4148 * alphabsd-nat.c: Update copyright years.
4149 (fill_gregset): Use regcache_collect.
4150 (fill_fpregset): Likewise.
4151 (fetch_inferior_registers): Only fetch integer registers
4152 if requested to do so.
4153 (store_inferior_registers): Only store integer registers
4154 if requested to do so.
4158 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4159 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4160 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4161 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4162 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4163 * config/arm/linux.mh (XDEPFILES): Delete.
4164 * config/arm/nbsd.mh (XDEPFILES): Delete.
4165 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4166 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4167 * config/i386/i386m3.mh (XDEPFILES): Delete.
4168 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4169 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4170 * config/i386/fbsd.mh (XDEPFILES): Delete.
4171 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4172 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4173 * config/i386/i386v4.mh (XDEPFILES): Delete.
4174 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4175 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4176 * config/i386/i386aix.mh (XDEPFILES): Delete.
4177 * config/i386/go32.mh (XDEPFILES): Delete.
4178 * config/i386/cygwin.mh (XDEPFILES): Delete.
4179 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4180 * config/i386/i386mach.mh (XDEPFILES): Delete.
4181 * config/i386/i386v32.mh (XDEPFILES): Delete.
4182 * config/i386/linux.mh (XDEPFILES): Delete.
4183 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4184 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4185 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4186 * config/i386/i386sco.mh (XDEPFILES): Delete.
4187 * config/i386/i386v.mh (XDEPFILES): Delete.
4188 * config/i386/nbsd.mh (XDEPFILES): Delete.
4189 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4190 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4191 * config/i386/symmetry.mh (XDEPFILES): Delete.
4192 * config/i386/obsd.mh (XDEPFILES): Delete.
4193 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4194 * config/ia64/linux.mh (XDEPFILES): Delete.
4195 * config/ia64/aix.mh (XDEPFILES): Delete.
4196 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4197 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4198 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4199 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4200 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4201 * config/m68k/linux.mh (XDEPFILES): Delete.
4202 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4203 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4204 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4205 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4206 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4207 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4208 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4209 * config/m88k/delta88.mh (XDEPFILES): Delete.
4210 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4211 * config/m88k/m88k.mh (XDEPFILES): Delete.
4212 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4213 * config/mips/linux.mh (XDEPFILES): Delete.
4214 * config/mips/irix6.mh (XDEPFILES): Delete.
4215 * config/mips/irix5.mh (XDEPFILES): Delete.
4216 * config/mips/irix4.mh (XDEPFILES): Delete.
4217 * config/mips/irix3.mh (XDEPFILES): Delete.
4218 * config/mips/decstation.mh (XDEPFILES): Delete.
4219 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4220 (NATDEPFILES): Move core-aout.o to here.
4221 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4222 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4223 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4224 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4225 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4226 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4227 * config/pa/hpux11.mh (XDEPFILES): Delete.
4228 * config/powerpc/aix.mh (XDEPFILES): Delete.
4229 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4230 * config/powerpc/linux.mh (XDEPFILES): Delete.
4231 * config/romp/rtbsd.mh: Rename XDEPFILES.
4232 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4233 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4234 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4235 * config/s390/s390.mh (XDEPFILES): Delete.
4236 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4237 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4238 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4239 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4240 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4241 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4242 * config/sparc/linux.mh (XDEPFILES): Delete.
4243 * config/vax/vaxult.mh (XDEPFILES): Delete.
4244 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4245 * Makefile.in (DEPFILES): Remove XDEPFILES.
4249 * utils.c (internal_verror): Fix comments, default is yes not no.
4250 Update queries to match. Default to quit and dump core.
4254 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4256 * defs.h, event-top.c, gdbcmd.h: Ditto.
4257 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4258 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4259 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4260 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4261 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4262 * mi/mi-main.c:Ditto.
4264 * stack.c, symfile.c: Update copyright.
4268 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4269 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4270 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4271 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4275 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4276 * gdbserver/low-lynx.c (myattach): Likewise.
4277 * gdbserver/low-nbsd.c (myattach): Likewise.
4278 * gdbserver/low-sim.c (myattach): Likewise.
4279 * gdbserver/low-sparc.c (myattach): Likewise.
4280 * gdbserver/low-sun3.c (myattach): Likewise.
4282 * gdbserver/low-linux.c (myattach): New function.
4284 * gdbserver/server.c (attach_inferior): New function.
4285 (main): Handle "--attach".
4289 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4294 * c-typeprint.c (is_type_conversion_operator): Add additional
4295 check for non-conversion operators.
4299 * linux-proc.c: Add "info proc" command, a la procfs.c.
4300 (read_mapping): New function, abstract and re-use code.
4301 (linux_find_memory_regions): Use new func read_mapping.
4302 (linux_info_proc_cmd): New function, implement "info proc".
4303 (_initialize_linux_proc): Add new command "info proc".
4307 * symfile.c (generic_load): Use bfd_map_over_sections method
4308 instead of manipulating bfd structure members directly.
4309 (add_section_size_callback): New function, bfd sections callback
4310 used by generic_load.
4311 (load_sections_callback): New function, bfd sections callback
4312 used by generic_load.
4316 [Based on work by Jim Blandy]
4317 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4318 (builtin_type_vec128): Export.
4319 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4321 (builtin_type_vec128): New builtin type for 128 bit vector
4323 (build_gdbtypes): Initialize builtin_type_v16qi and
4324 builtin_type_v8hi. Create the vec128 register builtin type
4326 (build_builtin_type_vec128): New function.
4327 (_initialize_gdbtypes): Register builtin_type_v16qi and
4328 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4329 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4330 AltiVec register to new builtin type.
4334 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4339 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4340 CLEAN_UP_REGISTER_VALUE.
4341 * regcache.c (supply_register): Update only call.
4345 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4346 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4347 a29k-*-vxworks* targets as obsolete.
4351 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4352 until we can resolve portability issues.
4353 * gregset.h: Remove references to fpxregs.
4354 * gcore.c (gcore_command): Initialize note_sec to NULL.
4358 * signals.c (target_signal_to_name): Rewrite. Only use
4359 signals[].name when in bounds and non-NULL.
4364 * signals.c (target_signal_to_name): Verify that SIG is within the
4365 bounds of the signals array.
4369 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4373 * stack.c (print_frame_info_base): Print the frame's pc
4374 only if when print_frame_info_listing_hook is not defined.
4378 * varobj.c (varobj_set_value): Make sure that there were no
4379 errors evaluating the object before attempting to set its
4381 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4382 so this offset adjustment is no longer necessary.
4383 (create_child): Don't set the error flag if the child is
4385 (value_of_child): If value_fetch_lazy fails, return NULL
4386 so that callers will be notified that an error occurred.
4387 (c_value_of_variable): Delay check of variable's validity
4388 until later. We actually want all structs and unions to have
4390 Do not return "???" for variables which could not be evaluated.
4391 This error condition must be returned to the caller so that it
4392 can get the error condition from gdb.
4393 (cplus_name_of_child): Adjust index for vptr before figuring
4394 out the name of the child.
4395 (cplus_value_of_child): If a child's (real) parent is not valid,
4396 don't even bother trying to give a value for it. Just return
4397 an error. Change all instances in this function.
4398 (cplus_type_of_child): If our parent is one of the "fake"
4399 parents, we need to get at the type of the real parent, and
4400 derive the child's true type using this information.
4405 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4406 sources.redhat.com, and tweak some related URLs which had
4407 suffered from linkrot.
4412 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4413 structures passed in registers.
4417 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4418 white space which prevented compilation. Reported by DSK
4423 * symfile.c (build_section_addr_info_from_section_tab):
4424 Use bfd access method instead of manipulating bfd directly.
4425 (syms_from_objfile): Ditto.
4426 (simple_overlay_update_1): Ditto.
4427 (simple_overlay_update): Ditto.
4428 (generic_load): Ditto.
4429 (overlay_unmapped_address): FIXME comment, bfd access methods.
4430 (sections_overlap): FIXME comment, bfd access methods.
4431 (pc_in_mapped_range): FIXME comment, bfd access methods.
4432 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4433 (section_is_mapped): FIXME comment, bfd access methods.
4434 (section_is_overlay): FIXME comment, bfd access methods.
4436 * symfile.c (generic_load): Whitespace and long line cleanups.
4437 Remove duplicate variable, change several local variables to
4438 more appropriate data types.
4439 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4444 * language.c (longest_local_hex_string_custom): Use phex_nz to
4445 convert NUM to a hex string.
4449 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4451 Update Copyright year.
4455 * language.c (longest_raw_hex_string): Delete unused function.
4459 * MAINTAINERS (write-after-approval): Add myself.
4460 * dwarf2read.c (read_tag_string_type): Handling of
4462 (read_tag_string_type): FORTRAN fix to prevent propagation of
4464 (set_cu_language): Handling of DW_LANG_Fortran95
4468 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4469 GETPID(inferior_ptid).
4470 (store_inferior_registers): Likewise.
4474 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4479 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4480 and bfd/elf32-sh-nbsd.c.
4484 * NEWS: Mention --pid and corefile/proc-id behavior change.
4486 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4487 * gcore.c: Include cli/cli-decode.h instead of command.h.
4489 * main.c (captured_main): Add new command line option "--pid".
4490 If the second command line argument (following the symbol-file)
4491 begins with a digit, try to attach to it before trying to open
4493 (print_gdb_help): Document the "--pid" argument.
4497 * completer.c (command_completer): New function.
4499 * completer.h <command_completer>: Add prototype.
4501 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4502 completer for the "help" command.
4506 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4510 * i386-linux-nat.c (fill_fpxregset): Make global.
4511 (store_fpxregset): Ditto.
4513 * gregset.h (gdb_fpxregset_t): Define.
4514 (supply_fpxregset): Prototype.
4515 (fill_fpxregset): Prototype.
4517 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4521 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4522 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4523 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4527 * MAINTAINERS: Update target maintainer rules so that any
4528 Maintainer can approve a tested patch for a maintenance-only
4533 * MAINTAINERS (write-after-approval): Add myself.
4535 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4540 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4541 real name of the executable, rather than the /proc name.
4545 Implement a "generate-core-file" command in gdb, save target state.
4546 * gcore.c: New file. Implement new command 'generate-core-file'.
4547 Save a corefile image of the current state of the inferior.
4548 * linux-proc.c: Add linux-specific code for saving corefiles.
4549 * target.h (struct target_ops): Add new target vectors for saving
4550 corefiles; to_find_memory_regions and to_make_corefile_notes.
4551 (target_find_memory_regions): New macro.
4552 (target_make_corefile_notes): New macro.
4553 * target.c (update_current_target): Inherit new target methods.
4554 (dummy_find_memory_regions): New place-holder method.
4555 (dummy_make_corefile_notes): New place-holder method.
4556 (init_dummy_target): Initialize new dummy target vectors.
4557 * exec.c (exec_set_find_memory_regions): New function.
4558 Allow the exec_ops vector for memory regions to be taken over.
4559 (exec_make_note_section): New function, target vector method.
4560 * defs.h (exec_set_find_memory_regions): Export prototype.
4561 * procfs.c (proc_find_memory_regions): New function, corefile method.
4562 (procfs_make_note_section): New function, corefile method.
4563 (init_procfs_ops): Set new target vector pointers.
4564 (find_memory_regions_callback): New function.
4565 (procfs_do_thread_registers): New function.
4566 (procfs_corefile_thread_callback): New function.
4567 * sol-thread.c (sol_find_memory_regions): New function.
4568 (sol_make_note_section): New function.
4569 (init_sol_thread_ops): Initialize new target vectors.
4570 * inftarg.c (inftarg_set_find_memory_regions): New function.
4571 Allow to_find_memory_regions vector to be taken over.
4572 (inftarg_set_make_corefile_notes): New function.
4573 Allow to_make_corefile_notes vector to be taken over.
4574 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4575 interface layer if not target_has_execution (may be a corefile).
4576 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4577 * config/sparc/sun4sol2.mh: Ditto.
4578 * config/alpha/alpha-linux.mh: Ditto.
4579 * config/arm/linux.mh: Ditto.
4580 * config/i386/x86-64linux.mh: Ditto.
4581 * config/ia64/linux.mh: Ditto.
4582 * config/m68k/linux.mh: Ditto.
4583 * config/mips/linux.mh: Ditto.
4584 * config/powerpc/linux.mh: Ditto.
4585 * config/sparc/linux.mh: Ditto.
4589 * arm-linux-nat.c: Remove references to regcache.c internal data
4590 (registers[] and register_valid[]).
4594 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4595 so that attaching to a pid will automatically read the process's
4596 symbol file and shlibs.
4597 * Makefile.in: Add rule for linux-proc.o.
4598 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4599 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4600 * config/arm/linux.mh: Ditto.
4601 * config/i386/linux.mh: Ditto.
4602 * config/i386/x86-64linux.mh: Ditto.
4603 * config/ia64/linux.mh: Ditto.
4604 * config/m68k/linux.mh: Ditto.
4605 * config/mips/linux.mh: Ditto.
4606 * config/powerpc/linux.mh: Ditto.
4607 * config/sparc/linux.mh: Ditto.
4611 * win32-nat.c: Add i386-tdep.h dependency.
4615 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4616 instead of bfd_get_arch_size. Don't bail out just because
4617 there's no exec_bfd.
4619 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4620 * p-valprint.c (pascal_object_print_value): Ditto.
4621 * somread.c (som_symtab_read): Ditto.
4622 * symfile.c (simple_free_overlay_region_table): Ditto.
4623 * valops.c (value_assign): Ditto.
4625 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4626 use tilde_expand and strerror for opening save-tracepoints file.
4628 * thread-db.c (thread_db_new_objfile): Indendation fix.
4630 * infptrace.c (GDB_MAX_ALLOCA): New define.
4631 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4632 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4633 can be overridden with whatever value is appropriate to the host).
4634 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4635 alloca to allocate potentially large buffer.
4636 * rs6000-nat.c (child_xfer_memory): Ditto.
4637 * symm-nat.c (child_xfer_memory): Ditto.
4638 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4643 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4647 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4648 Don't use exec_bfd if it's NULL.
4652 * valops.c (value_arg_coerce): Fix formatting.
4656 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4661 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4662 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4663 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4664 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4665 z8k-coff have not been multi-arched. Update z8k-coff build
4670 * MAINTAINERS: Mark a29k target as obsolete.
4671 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4672 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4674 * NEWS: Note that a29k targets are obsolete.
4675 * a29k-tdep.c: Mark as obsolete.
4676 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4677 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4678 a29k-*-vxworks* targets as obsolete.
4679 * remote-adapt.c: Obsolete.
4680 * remote-eb.c: Obsolete.
4681 * remote-mm.c: Obsolete.
4682 * remote-udi.c: Obsolete.
4683 * config/a29k/a29k-udi.mt: Obsolete.
4684 * config/a29k/a29k.mt: Obsolete.
4685 * config/a29k/tm-a29k.h: Obsolete.
4686 * config/a29k/tm-vx29k.h: Obsolete.
4687 * config/a29k/vx29k.mt: Obsolete.
4691 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4692 with BFD_ENDIAN_BIG.
4696 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4697 * configure, config.in: Re-generate.
4698 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4699 * defs.h: Do not include <endian.h>.
4703 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4704 * config.in: Regenerate.
4705 * configure.in: Update copyright years.
4706 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4707 * configure: Regenerate.
4708 * i386bsd-nat.c: Update copyright years.
4709 (fill_gregset): Use regcache_collect.
4710 (fetch_inferior_registers): Only fetch integer registers
4711 if requested to do so. Add support for XMM registers
4712 using PT_GETXMMREGS.
4713 (store_inferior_registers): Only store integer registers
4714 if requested to do so. Add support for XMM registers
4715 using PT_SETXMMREGS.
4716 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4717 (store_inferior_registers): Remove.
4718 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4719 (fetch_elfcore_registers): New function.
4720 (i386nbsd_elfcore_fns): New.
4721 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4722 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4724 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4725 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4726 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4727 * config/i386/tm-nbsd.h: Update copyright years.
4728 (HAVE_SSE_REGS): Define.
4729 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4730 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4731 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4732 (SIGCONTEXT_PC_OFFSET): Remove.
4733 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4737 * configure.tgt: Remove powerpc-*-macos* target.
4738 * config/m68k/xm-mpw.h: Delete file.
4739 * config/xm-mpw.h: Delete file.
4740 * ser-mac.c: Delete file.
4741 * mpw-make.sed: Delete file.
4742 * mpw-config.in: Delete file.
4743 * mac-xdep.c: Delete file.
4744 * mac-gdb.r: Delete file.
4745 * mac-defs.h: Delete file.
4746 * mac-nat.c: Delete file.
4747 * config/powerpc/macos.mh: Delete file.
4748 * config/powerpc/macos.mt: Delete file.
4749 * config/powerpc/nm-macos.h: Delete file.
4750 * config/powerpc/tm-macos.h: Delete file.
4751 * source.c (openp, open_source_file): Remove obsolete code.
4752 * top.c (gdb_readline): Ditto.
4753 * utils.c (query): Ditto.
4754 * event-top.c (display_gdb_prompt): Ditto.
4755 * Makefile.in (ser-mac.o): Delete obsolete target.
4760 * defs.h (BIG_ENDIAN): Delete macro definition.
4761 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4762 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4763 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4764 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4765 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4766 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4767 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4768 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4769 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4770 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4771 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4772 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4773 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4774 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4775 * gdbarch.c: Re-generate.
4779 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4784 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4788 * value.h (value_ptr): Delete typedef.
4792 * i386nbsd-nat.c: Update copyright years.
4793 Include i386-tdep.h.
4797 * stabsread.c: Update copyright years.
4800 (read_struct_fields): Deal with Sun C compiler erroneous stab
4801 output for structs and unions.
4806 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4811 * cp-abi.c: Fix whitespace.
4812 (baseclass_offset): New wrapper function.
4813 * cp-abi.h (baseclass_offset): Add prototype.
4814 (struct cp_abi_ops): Add baseclass_offset pointer.
4816 * valops.c (vb_match): Move to...
4817 * gnu-v2-abi.c (vb_match): here.
4818 * valops.c (baseclass_offset): Move to...
4819 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4821 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4823 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4824 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4825 * hpacc-abi.c (init_hpacc_ops): Likewise.
4829 * valops.c (find_overload_match): Accept obj as a
4830 reference parameter. Update it before returning.
4831 * value.h (find_overload_match): Update prototype.
4832 * eval.c (evaluate_subexp_standard): Pass object to
4833 find_overload_match by reference.
4837 * valarith.c: Replace value_ptr with struct value pointer. Remove
4838 register attribute from value declarations.
4841 * scm-lang.c (scm_lookup_name): Ditto.
4845 Abstract the functionality of iterating over mapped memory
4846 regions into a general purpose iterator function.
4847 * procfs.c (iterate_over_mappings): New function, general purpose
4848 iterator for memory sections.
4849 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4850 (solib_mappings_callback): New function, callback for above.
4851 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4852 (info_mappings_callback): New function, callback for above.
4854 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4858 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4859 * i386-tdep.c: Include "elf-bfd.h".
4860 (process_note_abi_tag_sections): New function.
4861 (i386_gdbarch_init): Add code to recognize various OS/ABI
4864 * maint.c (_initialize_maint_cmds): Add missing \ in
4867 For older changes see ChangeLog-2001
4873 version-control: never