3 * valops.c (hand_function_call): Call
4 generic_save_call_dummy_addr.
5 * frame.h (generic_save_call_dummy_addr): Declare.
6 * blockframe.c (struct dummy_frame): Add fields call_lo and
8 (generic_find_dummy_frame): Check for PC in range call_lo to
9 call_hi instead of entry_point_address.
10 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
12 (generic_save_call_dummy_addr): New function.
16 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
18 (sparc_skip_prologue): Kill frameless_p arg, and use line number
19 information to find prologue when possible.
20 (sparc_prologue_frameless_p): Call examine_prologue directly.
21 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
22 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
24 (SKIP_PROLOGUE): Likewise.
28 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
29 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
30 indicate that the condition it was testing is always true.
31 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
32 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
33 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
37 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
38 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
39 tdep->jb_pc and tdep->jb_elt_size.
40 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
41 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
42 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
43 * alpha-nat.c (get_longjmp_target): Remove.
44 (JB_ELEMENT_SIZE): Ditto.
46 * alpha-tdep.c (alpha_get_longjmp_target): New function.
47 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
48 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
49 to alpha_get_longjmp_target.
50 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
51 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
52 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
56 * README: Update to GDB 5.2.
60 * gdbarch.sh (LC_ALL): Set to `c'.
64 * avr-tdep.c: Ran through gdb_indent.sh.
68 * MAINTAINERS: Add myself as AVR maintainer.
69 * NEWS: Note new target avr.
73 * Makefile.in: Add support for AVR target.
74 * configure.tgt: Add support for AVR target.
75 * avr-tdep.c: New file
76 * config/avr/avr.mt: New file.
80 * MAINTAINERS: Add myself to write-after-approval.
82 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
84 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
85 with fprintf_unfiltered (gdb_stderr,....
90 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
94 * p-exp.y: Also use new prev_lexptr variable
95 to improve error reporting. Based on Michael Snyder
96 2002-04-24 dated patch to c-exp.y.
100 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
101 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
102 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
104 * config/alpha/tm-alpha.h: Remove forward decls of struct type
106 (FUNCTION_START_OFFSET): Remove.
111 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
116 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
117 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
118 alpha_linux_pc_in_sigtramp.
119 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
120 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
121 alpha_osf1_pc_in_sigtramp.
122 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
123 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
124 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
125 alphafbsd_pc_in_sigtramp.
126 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
127 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
128 alphanbsd_pc_in_sigtramp.
129 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
130 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
134 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
138 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
140 (alphanbsd-nat.o): New dependency list.
141 (alphanbsd-tdep.o): Ditto.
142 * NEWS: Note new native NetBSD/alpha configuration.
143 * alphanbsd-nat.c: New file.
144 * alphanbsd-tdep.c: Ditto.
145 * configure.host (alpha*-*-netbsd*): New host.
146 * configure.tgt (alpha*-*-netbsd*): New target.
147 * config/alpha/nbsd.mh: New file.
148 * config/alpha/nbsd.mt: Ditto.
149 * config/alpha/nm-nbsd.h: Ditto.
150 * config/alpha/tm-nbsd.h: Ditto.
154 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
155 (alpha-osf1-tdep.o): New dependency list.
156 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
157 and skip_sigtramp_frame members.
158 * alpha-linux-tdep.c: Include gdbcore.h.
159 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
160 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
161 * alpha-osf1-tdep.c: New file.
162 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
164 (alpha_frame_past_sigtramp_frame): New function.
165 (alpha_dynamic_sigtramp_offset): Ditto.
166 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
167 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
168 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
169 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
170 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
171 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
172 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
173 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
174 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
175 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
176 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
177 to find_solib_trampoline_target.
178 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
179 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
180 (SKIP_TRAMPOLINE_CODE): Remove.
181 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
182 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
183 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
184 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
185 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
186 (PROC_SIGTRAMP_MAGIC): Ditto.
187 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
188 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
189 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
190 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
191 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
195 * NEWS: Note that Alpha targets are now multi-arch.
199 * parser-defs.h (prev_lexptr): New external variable.
200 * parse.c (parse_exp_1): Set prev_lexptr to null before
201 calling the language-specific parser.
202 * c-exp.y (yylex): Set prev_lexptr to start of current token.
203 (yyerror): Use prev_lexptr in error reporting.
207 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
208 * gregset.h: If FILL_FPXREGSET is defined, provide
209 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
210 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
211 is defined, call fill_fpxregset.
215 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
216 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
217 (supply_gregset, supply_fpregset): New functions.
219 * gnu-nat.c (gnu_find_memory_regions): New function.
220 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
221 (gnu_xfer_memory): Add a cast.
225 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
226 loop. Add handling for "str lr, [sp, #-4]!" and for saves
227 of argument regs ("str r(0123), [r11, #-nn"]).
228 (arm_skip_prologue): Better handling for frameless functions.
229 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
230 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
234 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
235 NUM_PSEUDO_REGS can be used.
239 * arch-utils.h: Update copyright.
241 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
242 * gdbarch.h, gdbarch.c: Re-generate.
244 * inferior.h (IN_SIGTRAMP): Delete definition.
245 * arch-utils.c (legacy_pc_in_sigtramp): New function.
246 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
248 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
249 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
250 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
251 (find_proc_framesize): Ditto.
252 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
253 (alpha_init_extra_frame_info): Ditto.
254 * infrun.c (handle_inferior_event): Ditto.
255 (handle_inferior_event): Ditto.
256 (check_sigtramp2): Ditto.
257 * blockframe.c (create_new_frame): Ditto.
258 (get_prev_frame): Ditto.
259 * ppc-linux-tdep.c: Update comments.
260 * i386-linux-tdep.c: Update comments.
261 * breakpoint.c (bpstat_what): Update comment.
265 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
266 (regsets_store_inferior_registers): Removed cast to int from
268 * gdbserver/regcache.h: Added declaration of struct inferior_info.
272 * i960-tdep.c (register_in_window_p): New function.
273 (i960_find_saved_register): Use it instead of
274 REGISTER_IN_WINDOW_P.
275 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
277 * symtab.h (find_stab_function_addr): Kill extern.
278 * minsyms.c (find_stab_function_addr): Remove from here...
279 * dbxread.c: ... to here, and mark it static.
283 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
284 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
288 * remote-vxsparc.c (vx_read_register): Fix typo, we want
289 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
290 (vx_write_register): Likewise.
294 * source.c (is_regular_file): New function.
295 (openp): Check wether file to open is a regular file
296 to avoid opening directories.
300 * findvar.c (extract_signed_integer): Cast printf argument
301 to suppress format warning.
302 (extract_unsigned_integer): Likewise.
303 * infcmd.c (registers_info): Likewise.
304 * top.c (get_prompt_1): Likewise.
305 * valops.c (value_assign): Likewise.
306 * valprint.c (print_decimal): Likewise.
310 * c-exp.y (typebase): Support
312 [long|long long|short] [signed|unsigned] [int|]
316 signed [long|long long|short] int
320 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
322 * vax-tdep.h: New file.
323 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
324 Make several routines static.
325 (vax_get_saved_register): New function.
326 (vax_gdbarch_init): New function.
327 (_initialize_vax_tdep): Register vax_gdbarch_init.
328 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
329 Remove macros now under the control of gdbarch.
333 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
334 Some whitespace and coding standards tweaks.
338 * vax-tdep.c: Include regcache.h.
339 (vax_call_dummy_words): New.
340 (sizeof_vax_call_dummy_words): New.
341 (vax_fix_call_dummy): New function.
342 (vax_saved_pc_after_call): Ditto.
343 * config/vax/tm-vax.h: Don't include regcache.h.
344 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
345 (CALL_DUMMY): Remove.
346 (CALL_DUMMY_WORDS): Define.
347 (SIZEOF_CALL_DUMMY_WORDS): Define.
348 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
352 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
356 * vax-tdep.c (vax_frame_chain): New function.
357 (vax_push_dummy_frame): Ditto.
358 (vax_pop_frame): Ditto.
359 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
360 (FRAMELESS_FUNCTION_INVOCATION): Use
361 generic_frameless_function_invocation_not.
362 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
363 (POP_FRAME): Use vax_pop_frame.
367 * vax-tdep.c (vax_store_struct_return): New function.
368 (vax_extract_return_value): Ditto.
369 (vax_store_return_value): Ditto.
370 (vax_extract_struct_value_address): Ditto.
371 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
372 vax_store_struct_return.
373 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
374 (STORE_RETURN_VALUE): Use vax_store_return_value.
375 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
379 * vax-tdep.c (vax_frame_saved_pc): New function.
380 (vax_frame_args_address_correct): Ditto.
381 (vax_frame_args_address): Ditto.
382 (vax_frame_locals_address): Ditto.
383 (vax_frame_num_args): Move code to be in proximity to
384 other frame-related functions.
385 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
386 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
387 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
388 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
389 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
393 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
398 * vax-tdep.c (vax_frame_init_saved_regs): New function.
399 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
400 (FRAME_INIT_SAVED_REGS): New macro.
404 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
408 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
410 (fetch_osf_core_registers): Likewise.
411 (supply_gregset): Likewise.
415 * symfile.h (get_section_index): Define.
416 * symfile.c (get_section_index): New function.
417 * mdebugread.c (SC_IS_SBSS): New macro.
418 (SC_IS_BSS): Return true for the scBss storage class only, as
419 the scSBss storage class refers to the .sbss section.
420 (parse_partial_symbols): Discard the symbols which associated
421 section does not exist.
422 Make sure to use the .sbss section index for symbols which
423 storage class is scBss, rather than using the .bss section index.
427 * vax-tdep.c: Update copyright years.
428 (vax_register_name): New function.
429 (vax_register_byte): Ditto.
430 (vax_register_raw_size): Ditto.
431 (vax_register_virtual_size): Ditto.
432 (vax_register_virtual_type): Ditto.
433 * config/vax/tm-vax.h: Update copyright years.
434 (REGISTER_NAMES): Remove.
435 (REGISTER_NAME): Define.
436 (REGISTER_BYTE): Use vax_register_byte.
437 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
438 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
439 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
443 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
445 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
449 * arch-utils.c (generic_prologue_frameless_p): Kill
450 SKIP_PROLOGUE_FRAMELESS_P code.
451 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
453 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
454 * arc-tdep.c (arc_prologue_frameless_p): Implement.
455 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
457 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
458 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
459 (sparc_gdbarch_init): Pass it to
460 set_gdbarch_prologue_frameless_p.
464 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
465 (alphabsd-nat.o): New dependency list.
469 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
471 (alpha-linux-tdep.o): New dependency list.
472 (alphafbsd-tdep.o): Likewise.
476 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
478 * alpha-tdep.c: ...from here.
479 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
483 * config/alpha/tm-alpha.h: Move alpha_software_single_step
484 prototype from here...
485 * alpha-tdep.h: ...to here.
489 * frame.h (selected_frame_level): Document as deprecated.
490 (frame_relative_level): Declare.
491 * stack.c (frame_relative_level): New function.
492 (selected_frame_level): Document as deprecated.
493 (select_frame): Do not set the selected_frame_level.
495 * stack.c (frame_info, record_selected_frame): Update.
496 (frame_command, current_frame_command): Update.
497 (up_silently_base, up_command, down_silently_base): Update.
498 (down_command): Update.
499 * inflow.c (kill_command): Update.
500 * tracepoint.c (finish_tfind_command): Update.
501 * corelow.c (core_open): Update.
502 * thread.c (info_threads_command): Update.
503 (do_captured_thread_select): Update.
504 * infcmd.c (finish_command): Update.
505 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
509 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
513 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
518 * alphafbsd-tdep.c: Update copyright years. Include
520 (alphafbsd_use_struct_convention): Make static.
521 (alphafbsd_init_abi): New function.
522 (_initialize_alphafbsd_tdep): New function.
523 * config/alpha/tm-fbsd.h: Update copyright years.
524 (USE_STRUCT_CONVENTION): Remove.
528 * alpha-tdep.c (alpha_abi_handler): New structure to describe
529 an Alpha ABI variant.
530 (alpha_abi_handler_list): Declare.
531 (alpha_gdbarch_register_os_abi): New function.
532 (alpha_gdbarch_init): Give registered ABI variant handlers a
533 chance to tweak the gdbarch once we have set up defaults.
534 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
538 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
539 to standard_coerce_float_to_double.
540 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
544 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
545 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
546 from gdbarch_tdep rather than a constant.
547 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
548 the default text address for all Alpha Unix ABIs.
549 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
550 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
554 * alpha-tdep.h: New file. Includes several Alpha target constants
556 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
557 let gdbarch deal with.
558 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
559 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
561 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
562 Alpha target register names.
563 * alphabsd-nat.c: Likewise.
564 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
565 Alpha target register names. Make serveral routines static.
566 (alpha_get_saved_register): New function.
567 (alpha_abi_names): New.
568 (process_note_abi_tag_sections): New function.
569 (get_elfosabi): New function.
570 (alpha_gdbarch_init): New function.
571 (alpha_dump_tdep): New function.
572 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
576 * frame.c (find_saved_register): Delete #ifdef
577 HAVE_REGISTER_WINDOWS code.
578 * config/sparc/tm-sparc.h: Update comments.
579 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
583 * i960-tdep.c (i960_find_saved_register): New function.
584 (i960_get_saved_register): New function.
585 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
586 (i960_get_saved_register): Declare.
587 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
591 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
595 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
596 instead of NUM_PSEUDO_REGS.
600 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
601 GDB_MULTI_ARCH_PARTIAL
602 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
603 define, let tm-sp64.h do it.
607 * frame.c (find_saved_register): Avoid a NULL pointer
608 dereference and actually walk the frame list.
612 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
613 sorted in most most-recent-used order. Document.
614 * gdbarch.h, gdbarch.c: Regenerate.
618 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
619 (add_inferior): Call create_register_cache.
620 (clear_inferiors): Call free_register_cache.
621 (inferior_regcache_data, set_inferior_regcache_data): New functions.
622 * gdbserver/regcache.c (struct inferior_regcache_data): New.
624 (get_regcache): New function.
625 (create_register_cache, free_register_cache): New functions.
626 (set_register_cache): Don't initialize the register cache here.
627 (registers_to_string, registers_from_string, register_data): Call
629 * gdbserver/regcache.h: Add prototypes.
630 * gdbserver/server.h: Likewise.
634 * gdbserver/mem-break.c: New file.
635 * gdbserver/mem-break.h: New file.
636 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
638 * gdbserver/inferiors.c (struct inferior_info): Add target_data
640 (clear_inferiors): Free target_data member if set.
641 (inferior_target_data, set_inferior_target_data): New functions.
642 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
643 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
644 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
645 (struct inferior_linux_data): New.
646 (linux_create_inferior): Use set_inferior_target_data.
647 (linux_attach): Likewise. Call add_inferior.
648 (linux_wait_for_one_inferior): New function.
649 (linux_wait): Call it.
650 (linux_write_memory): Add const.
651 (initialize_low): Call set_breakpoint_data.
652 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
654 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
656 * gdbserver/server.h: Include mem-break.h. Update inferior.c
658 * gdbserver/target.c (read_inferior_memory)
659 (write_inferior_memory): New functions.
660 * gdbserver/target.h (read_inferior_memory)
661 (write_inferior_memory): Change macros to prototypes.
662 (struct target_ops): Update comments. Add const to write_memory
667 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
669 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
670 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
671 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
677 * gdbtypes.c (init_simd_type): Rewrite using new functions.
678 (build_builtin_type_vec128): Ditto.
679 (append_composite_type_field): Fix calculation of type length in
684 * config/djgpp/README: Update.
686 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
691 * alpha-tdep.c (setup_arbitrary_frame): Rename...
692 (alpha_setup_arbitrary_frame): ...to this.
693 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
694 for alpha_setup_arbitrary_frame.
698 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
699 * gdbarch.h, gdbarch.c: Regenerate.
701 * defs.h (breakpoint_from_pc_fn): Delete type definition.
702 * target.h (memory_breakpoint_from_pc): Update declaration.
703 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
705 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
706 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
707 * mem-break.c (memory_breakpoint_from_pc): Ditto.
708 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
709 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
710 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
711 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
712 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
713 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
714 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
715 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
716 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
718 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
720 * monitor.c (monitor_insert_breakpoint): Ditto.
721 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
723 * config/mcore/tm-mcore.h: Update copyright.
724 * mem-break.c: Ditto.
725 * xstormy16-tdep.c: Ditto.
729 * p-exp.y: Add precedence rule for '^' token.
730 This removes the shift/reduce conflicts.
731 Remove the comment concerning these shift/reduce conflicts.
735 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
736 (registers_powerpc_nofp): New register set for processors
737 without floating point unit.
741 * MAINTAINERS: Add myself to write-after-approval.
745 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
749 * rs6000-tdep.c (frame_initial_stack_address): Use
750 frame_register_read to read the alloca_reg.
754 * frame.c (find_saved_register): Find saved registers in the next
760 * gdbarch.sh (LANG): Set to ``c''.
764 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
768 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
771 * hpread.c (hpread_get_lntt): Add declaration.
776 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
777 * aclocal.m4, configure: Re-generate.
782 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
783 instead of tm_print_insn.
787 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
791 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
792 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
793 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
797 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
799 (init_cmd_lists): Initialize the new value;
800 * cli/cli-script.c (execute_user_command): Limit the call depth of
801 user defined commands. This avoids a core-dump when user commands
802 are infinitly recursive.
806 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
807 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
808 from tdep struct instead of DEFAULT_LR_SAVE.
809 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
810 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
811 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
815 * Remote.c: Spelling fix.
816 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
817 If no symbol found for "sbrk", try "_sbrk".
818 (make_output_phdrs): Use bfd_section_name.
819 (gcore_copy_callback): Use bfd_section_name.
820 * eval.c: Indentation fix-ups.
821 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
822 in case it gets applied to an address that is already
823 in the instruction space.
824 * cli/cli-decode.c (help_list): Allow long lines to wrap.
825 * symfile.c: Fix indentation, long lines.
826 * source.c: White space fix-up.
830 * defs.h (read_relative_register_raw_bytes): Delete declaration.
831 * frame.c (frame_register_read): New function. Return non-zero on
833 (read_relative_register_raw_bytes_for_frame): Delete.
834 (read_relative_register_raw_bytes): Delete.
835 * frame.h (frame_register_read): Declare.
836 * d30v-tdep.c: Update Copyright. Use frame_register_read.
838 * infcmd.c (do_registers_info): Ditto.
839 * hppa-tdep.c: Ditto.
840 * rs6000-tdep.c: Ditto.
841 * h8500-tdep.c: Ditto.
842 * mips-tdep.c: Ditto.
843 * h8300-tdep.c: Ditto.
849 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
855 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
861 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
862 register sets for these processor variants.
866 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
867 registers which are allowed to fail to store.
868 * gdbserver/linux-low.h (linux_target_ops): Likewise.
869 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
870 (ppc_cannot_store_register): FPSCR may not be storable.
871 * regformats/reg-ppc.dat: Support FPSCR.
875 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
876 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
877 Add fpscr as an invalid/unfetchable register.
878 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
879 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
880 (fill_fpregset): Add support for register fpscr.
881 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
882 (fill_gregset): Account for the fact that register ``mq'' might
884 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
885 (registers_power): Add fpscr to register set at slot 71.
886 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
887 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
891 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
892 * configure: Regenerate.
893 * config.in: Regenerate.
894 * acconfig.h: Add define for _SYSCALL32.
895 * core-sol2.c: Remove #define _SYSCALL32.
896 * solib-legacy.c: Remove #define _SYSCALL32.
900 * stack.c (select_frame): Cleanup internal error message, do not
905 * stack.c (select_frame): Check that selected_frame and the
906 specified level are as expected.
907 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
909 * frame.h (struct frame_info): Add field `level'. Update
911 Work-in-progress PR gdb/464.
915 * maint.c (maint_print_section_info): Rename print_section_info.
916 (print_bfd_section_info, print_objfile_section_info): Update.
917 * inferior.h (struct gdbarch): Add opaque declaration.
918 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
919 * gdbarch.h: Regenerate.
923 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
924 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
925 (kernel_u_size): Added.
926 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
927 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
931 * valarith.c (find_size_for_pointer_math): New function, either returns
932 the size for a pointer's target, returns 1 for void *, or errors for
934 (value_add, value_sub): use find_size_for_pointer_math.
938 * linux-low.c (linux_look_up_symbols): New hook.
939 (linux_target_ops): Add linux_look_up_symbols.
940 * remote-utils.c (decode_address): New function.
941 (look_up_one_symbol): New function.
942 * server.c (handle_query): Call target look_up_symbols hook.
943 * server.h (look_up_one_symbol): Add prototype.
944 * target.h (struct target_ops): Add look_up_symbols hook.
948 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
949 * ChangeLog: Correct paths in last ChangeLog entry.
953 * gdbserver/linux-low.h: Remove obsolete prototypes.
954 (struct linux_target_ops): New.
955 (extern the_low_target): New.
956 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
957 (register_addr): Use the_low_target explicitly.
958 (fetch_register): Likewise.
959 (usr_fetch_inferior_registers): Likewise.
960 (usr_store_inferior_registers): Likewise.
961 * gdbserver/linux-arm-low.c (num_regs): Remove.
962 (arm_num_regs): Define.
963 (arm_regmap): Renamed from regmap, made static.
964 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
966 (arm_cannot_store_register): Renamed from cannot_store_register,
968 (the_low_target): New.
969 * gdbserver/linux-i386-low.c (num_regs): Remove.
970 (i386_num_regs): Define.
971 (i386_regmap): Renamed from regmap, made static.
972 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
974 (i386_cannot_store_register): Renamed from cannot_store_register,
976 (the_low_target): New.
977 * gdbserver/linux-ia64-low.c (num_regs): Remove.
978 (ia64_num_regs): Define.
979 (ia64_regmap): Renamed from regmap, made static.
980 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
982 (ia64_cannot_store_register): Renamed from cannot_store_register,
984 (the_low_target): New.
985 * gdbserver/linux-m68k-low.c (num_regs): Remove.
986 (m68k_num_regs): Define.
987 (m68k_regmap): Renamed from regmap, made static.
988 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
990 (m68k_cannot_store_register): Renamed from cannot_store_register,
992 (the_low_target): New.
993 * gdbserver/linux-mips-low.c (num_regs): Remove.
994 (mips_num_regs): Define.
995 (mips_regmap): Renamed from regmap, made static.
996 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
998 (mips_cannot_store_register): Renamed from cannot_store_register,
1000 (the_low_target): New.
1001 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1002 (ppc_num_regs): Define.
1003 (ppc_regmap): Renamed from regmap, made static.
1004 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1006 (ppc_cannot_store_register): Renamed from cannot_store_register,
1008 (the_low_target): New.
1009 * gdbserver/linux-s390-low.c (num_regs): Remove.
1010 (s390_num_regs): Define.
1011 (s390_regmap): Renamed from regmap, made static.
1012 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1014 (s390_cannot_store_register): Renamed from cannot_store_register,
1016 (the_low_target): New.
1017 * gdbserver/linux-sh-low.c (num_regs): Remove.
1018 (sh_num_regs): Define.
1019 (sh_regmap): Renamed from regmap, made static.
1020 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1022 (sh_cannot_store_register): Renamed from cannot_store_register,
1024 (the_low_target): New.
1025 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1026 (the_low_target): New.
1030 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1031 override FP_REGNUM with frame->fp. Update copyright.
1032 * parse.c (num_std_regs, std_regs): Delete.
1033 (target_map_name_to_register): Do not search std_regs. Update
1034 function description.
1035 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1036 declarations. Update copyright.
1041 * gdbserver/Makefile.in: Add stamp-h target.
1042 * gdbserver/configure.in: Create stamp-h.
1043 * gdbserver/configure: Regenerated.
1047 * gdbserver/inferiors.c: New file.
1048 * gdbserver/target.c: New file.
1049 * gdbserver/target.h: New file.
1050 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1052 * gdbserver/linux-low.c (inferior_pid): New static variable,
1053 moved from server.c.
1054 (linux_create_inferior): Renamed from create_inferior.
1055 Call add_inferior. Return 0 on success instead of a PID.
1056 (linux_attach): Renamed from myattach.
1057 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1058 (linux_thread_alive): Renamed from mythread_alive.
1059 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1061 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1062 (regsets_store_inferior_registers): Correct error message.
1063 Add missing ``return 0''.
1064 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1065 (linux_store_registers): Renamed from store_inferior_registers.
1066 (linux_read_memory): Renamed from read_inferior_memory.
1067 (linux_write_memory): Renamed from write_inferior_memory.
1068 (linux_target_ops): New structure.
1069 (initialize_low): Call set_target_ops ().
1070 * gdbserver/remote-utils.c (unhexify): New function.
1071 (hexify): New function.
1072 (input_interrupt): Send signals to ``signal_pid''.
1073 * gdbserver/server.c (inferior_pid): Remove.
1074 (start_inferior): Update create_inferior call.
1075 (attach_inferior): Call add_inferior.
1076 (handle_query): New function.
1077 (main): Call handle_query for `q' packets.
1078 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1079 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1083 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1085 * gdbserver/configure.in: Check for <string.h>
1086 * gdbserver/configure: Regenerate.
1087 * gdbserver/config.in: Regenerate.
1088 * gdbserver/gdbreplay.c: Include needed system headers.
1089 (remote_open): Remove strchr prototype.
1090 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1091 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1092 (supply_register_by_name): Likewise.
1093 (collect_register): Change buf argument to void *.
1094 (collect_register_by_name): Likewise.
1095 * gdbserver/regcache.h: Add missing prototypes.
1096 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1097 * gdbserver/server.c (handle_query): New function.
1098 (attached): New static variable, moved out of main.
1099 (main): Quiet longjmp clobber warnings.
1100 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1101 * gdbserver/utils.c (error): Remove NORETURN.
1106 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1107 after the last symbol in a block.
1111 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1112 is non zero as a found symbol.
1116 * findvar.c: Include "builtin-regs.h".
1117 (value_of_register): Call value_of_builtin_reg when applicable.
1118 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1119 (target_map_name_to_register): Call
1120 builtin_reg_map_name_to_regnum.
1121 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1122 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1123 (builtin_regs_h): Define.
1124 (builtin-regs.o): New target.
1125 (findvar.o): Add $(builtin_regs_h).
1126 * builtin-regs.c, builtin-regs.h: New files.
1127 * std-regs.c: New file.
1128 Partial fix for PR gdb/251.
1132 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1133 it's no longer required.
1137 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1142 * rs6000-tdep.c (rs6000_software_single_step): Use
1143 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1144 and size. Use target_insert_breakpoint() and
1145 target_remove_breakpoint() to insert and remove breakpoints
1146 instead of explicit memory reads and writes.
1150 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1151 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1152 ELF_OBJECT_FORMAT ifdef.
1157 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1162 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1163 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1167 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1168 s/asprintf/xasprintf/.
1169 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1173 I believe Jeff Law denies responsability for this one:
1174 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1175 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1176 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1177 Work-around for PR gdb/366.
1181 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1182 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1183 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1187 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1188 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1193 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1198 * README (Reporting Bugs in GDB): Document the bug web page as the
1199 prefered way of submitting bugs.
1204 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1206 * gdbarch.h, gdbarch.c: Re-generate.
1210 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1211 buffer to regcache_collect.
1215 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1216 * gdbarch.c, gdbarch.h: Re-generate.
1220 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1221 declaration. Fix -Werror.
1225 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1226 * gdbarch.c: Regenerate.
1230 * breakpoint.c (clear_command): Rewrite middle section to
1231 combine two loops with identical control conditions.
1232 Add a cleanup to eliminate a memory leak.
1233 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1237 * solib-svr4.c (bkpt_names): Add "__start".
1241 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1242 as test for 64 bit target.
1246 * h8500-tdep.c (h8500_write_fp): Delete function.
1247 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1248 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1249 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1251 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1252 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1254 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1255 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1256 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1257 (d10v_write_fp): Delete function.
1258 * inferior.h (write_fp, generic_target_write_fp): Delete
1260 * regcache.c (generic_target_write_fp): Delete function.
1261 (write_fp): Delete function.
1262 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1263 * gdbarch.h, gdbarch.c: Regenerate.
1264 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1265 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1266 (sparc64_write_fp): Delete declaration.
1267 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1268 (h8500_write_fp): Delete declaration.
1272 * sparc-tdep.c (sparc64_write_fp): Delete.
1273 (sparc_push_dummy_frame): Replace write_fp call with code to store
1275 (sparc_gdbarch_init): Do not initialize write_fp.
1279 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1284 * stack.c (get_selected_block): Add new argument `addr_in_block',
1285 used to return the exact code address we used to select the block,
1287 * blockframe.c (get_frame_block, get_current_block): Same.
1288 * frame.h (get_frame_block, get_current_block,
1289 get_selected_block): Update declarations.
1290 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1291 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1295 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1300 * utils.c (xfullpath): New function.
1301 * defs.h (xfullpath): Add declaration.
1302 * source.c (openp): Use xfullpath in place of gdb_realpath to
1303 avoid resolving the basename part of filenames when the
1304 associated file is a symbolic link. This fixes a potential
1305 inconsistency between the filenames known to GDB and the
1306 filenames it prints in the annotations.
1307 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1308 to be able to match a filename with either the real filename, or
1309 the name of any symbolic link to this file.
1310 (lookup_partial_symtab): Ditto.
1314 * breakpoint.c: Add support for hardware breakpoints in overlays.
1315 (overlay_events_enabled): New state variable.
1316 (insert_breakpoints): Use overlay_events_enabled to decide
1317 whether to attempt to set a breakpoint at the overlay load addr.
1318 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1319 (remove_breakpoint): Use overlay_events_enabled to decide
1320 whether breakpoints need to be removed from overlay load addr.
1321 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1322 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1323 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1324 disable_overlay_breakpoints): Update overlay_events_enabled.
1328 * dwarf2read.c (struct function_range): New.
1329 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1330 (check_cu_functions): New.
1331 (read_file_scope): Initialize global function lists.
1332 Call dwarf_decode_line after processing children.
1333 (read_func_scope): Add to global function list.
1334 (dwarf_decode_lines): Call check_cu_functions everywhere
1335 record_line is called. Call record_line with a linenumber
1336 of 0 to mark sequence ends.
1340 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1341 change sync with glibc.
1345 * configure.in: Call AC_C_INLINE.
1346 * configure: Regenerated.
1350 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1351 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1355 * NEWS: Mention gcore support on FreeBSD/i386.
1357 * fbsd-proc.c: New file.
1358 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1359 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1361 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1366 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1367 unescaped newlines in string literals, but newer ones don't. So
1373 * cli/cli-dump.c: New file. Dump memory to file,
1374 restore file to memory.
1375 * cli/cli-dump.h: New file.
1376 * Makefile.in: Add rules, dependencies for cli-dump.o.
1377 * NEWS: Mention new commands.
1381 * symfile.c (symbol_file_add): Move test for null symbols to later.
1385 From veksler at il.ibm.com:
1386 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1387 the xstrduped original path.
1392 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1393 * infcmd.c (_initialize_infcmd): Ditto.
1394 * language.c (_initialize_language): Ditto.
1395 * symfile.c (_initialize_symfile): Ditto.
1396 * top.c (_init_main): Ditto.
1397 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1401 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1402 vector registers handling.
1403 (skip_prologue): Handle new AltiVec instructions. Fill in new
1404 fields of frame data.
1405 (frame_get_saved_regs): Fill in information for AltiVec registers.
1409 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1410 a function; leave this macro here to invoke that function.
1411 (symbol_init_mangled_name): Declaration for that function.
1412 * symtab.c (symbol_init_mangled_name): New function.
1416 * valarith.c: Replace strerror with safe_strerror.
1417 * tracepoint.c: Ditto.
1419 * go32-nat.c: Ditto.
1425 * event-top.c (command_line_handler): Remove useless if.
1429 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1434 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1435 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1436 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1437 (x86_64_linux_dr_get_status, supply_gregset),
1438 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1439 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1440 (x86_64_register_info_table): Add.
1441 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1442 (x86_64_register_raw_size, x86_64_register_virtual_type),
1443 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1444 general x86_64_register_info_table.
1445 (i386_gdbarch_init): gdbarch_register_bytes is now set
1446 dynamicaly during initialization.
1447 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1448 * gdbserver/linux-x86-64-low.c: Ditto.
1452 * gdbserver/server.c (main): Call target_signal_to_host_p
1453 and target_signal_to_host on signals received from the remote.
1454 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1455 target_signal_from_host on signals sent to the remote.
1456 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1457 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1461 * signals/signals.c: Include "server.h" in gdbserver build.
1462 (target_signal_from_name): Don't use STREQ.
1463 (_initialize_signals): Likewise. Don't include function in
1468 * signals.c: Moved to...
1469 * signals/signals.c: Here.
1470 * Makefile (signals.o): Update.
1474 * somread.c (som_symtab_read): Remove some commented out code and
1475 updated related comments. Do not set the minimal symbol table to
1476 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1477 in a dynamic executable.
1478 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1479 where we are unable to find the minimal symbol for the given
1484 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1488 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1492 * command.h: Update copyright.
1493 (struct cmd_list_element): Replace definition with opaque
1495 (enum cmd_types): Document that it will eventually be moved to
1497 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1498 (MALLOCED_REPLACEMENT): Delete macro.
1499 * Makefile.in (cli_decode_h): Add $(command_h).
1500 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1501 * top.c: Include "cli/cli-decode.h".
1502 * completer.c: Include "cli/cli-decode.h".
1503 * maint.c: Include "cli/cli-decode.h".
1504 * cli/cli-decode.h: Include "command.h".
1505 (enum command_class): Delete.
1506 (enum cmd_types): Comment out.
1507 (enum cmd_auto_boolean): Delete.
1508 (enum var_types): Delete.
1512 * cli/cli-decode.c: Include "gdb_assert.h".
1513 (add_set_or_show_cmd): New static function.
1514 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1515 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1516 all fields, such as func, from the set command.
1520 * MAINTAINERS (sh-elf): Change warning flag to -w.
1524 * defs.h (error): Add printf format attribute.
1525 * thread-db.c (thread_from_lwp): Fix error format string.
1526 * stack.c (parse_frame_specification): Ditto.
1527 * cli/cli-decode.c (undef_cmd_error): Ditto.
1528 * scm-lang.c (scm_lookup_name): Ditto.
1529 * tracepoint.c (trace_error): Ditto.
1530 * remote-utils.c (usage): Ditto.
1531 * remote.c (compare_sections_command): Ditto.
1536 * gdbtypes.c (append_composite_type_field): New function.
1537 (init_composite_type): New function.
1538 * gdbtypes.h (append_composite_type_field): Declare.
1539 (init_composite_type): Ditto.
1543 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1545 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1546 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1547 structure returning convention for SYSV ABI case, but not
1548 for GNU/Linux, FreeBSD, or NetBSD.
1552 * symtab.h (lookup_block_symbol): Add mangled_name argument
1555 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1556 with new mangled_name argument.
1557 * linespec.c (decode_line_1): Likewise.
1558 * valops (value_of_this): Likewise.
1559 * symtab.c (lookup_transparent_type): Likewise.
1560 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1561 (lookup_symbol): If we are given a mangled name, pass it down
1562 to lookup_symbol_aux.
1563 (lookup_block_symbol): If we are given a mangled name to check
1564 against, only return symbols which match it.
1568 * win32-nat.c (child_create_inferior): Check for proper shell to use
1569 here, in case the user changes it on the fly.
1570 (_initialize_inftarg): Remove shell path considerations.
1574 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1575 for gdbarch_max_register_raw_size and max_register_virtual_size.
1576 Adjust copyright year.
1580 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1581 in a function to cover the entire beginning of the function
1582 as well if it does not already.
1586 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1587 (rs6000_ptrace64): Renamed from ptrace64.
1591 * gdbserver/remote-utils.c (remote_open): Don't call
1592 getprotobyname, we're all using TCP here so just use
1594 * gdbserver/gdbreplay.c (remote_open): Ditto.
1598 * regcache.c (_initialize_regcache): No need to call
1599 build_regcache() at this time; it gets called whenever
1600 the gdbarch changes.
1604 * sparc-nat.c: Include sys/param.h where possible.
1609 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1610 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1611 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1613 * stabsread.c (rs6000_builtin_type): Likewise.
1614 (read_sun_floating_type): Likewise.
1618 * stabsread.c (read_member_functions): Remove skip code for duplicate
1619 constructor/destructor methods. Use standard parsing for these
1620 methods and just do not chain them to the list of methods after
1625 * coffread.c: Remove redundant static declarations. Replace
1626 occurrences of `PTR' with `void *'.
1627 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1628 * top.h (quit_cover): Likewise.
1629 * defs.h (catch_errors): Likewise.
1633 * defs.h (XMALLOC): Define.
1634 * gdb-events.sh (XMALLOC): Delete macro.
1635 * gdb-events.c, gdb-events.h: Regenerate.
1636 * gdbarch.sh (XMALLOC): Delete macro.
1637 * gdbarch.c: Regenerate.
1638 * serial.c (XMALLOC): Delete macro.
1639 * ui-file.c (XMALLOC): Ditto.
1640 * ser-unix.h (XMALLOC): Ditto.
1641 * sh-tdep.c (XMALLOC): Ditto.
1642 * ui-out.c (XMALLOC): Ditto.
1643 * utils.c (XMALLOC): Ditto.
1644 * i386-tdep.c (XMALLOC): Ditto.
1645 * gdb-events.c (XMALLOC): Ditto.
1646 * d10v-tdep.c (XMALLOC): Ditto.
1647 * cli-out.c (XMALLOC): Ditto.
1649 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1650 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1651 * ui-file.c, ui-out.c: Ditto.
1655 * command.h (struct cmd_list_element): Add field context.
1656 (set_cmd_context, get_cmd_context): Declare.
1657 * cli/cli-decode.h: Ditto.
1658 * cli/cli-decode.c (get_cmd_context): New function.
1659 (set_cmd_context): New function.
1660 (add_cmd): Initialize context.
1661 Part of fixing PR gdb/145 and PR gdb/146.
1665 * cli/cli-decode.c (cmd_type): New function.
1666 * command.h (cmd_type): Declare.
1667 * infrun.c (set_schedlock_func): Call function cmd_type.
1668 * kod.c (kod_set_os): Call cmd_type.
1669 * cris-tdep.c (cris_version_update): Use function cmd_type.
1670 (cris_mode_update, cris_abi_update): Ditto.
1672 * command.h: (execute_cmd_post_hook): Declare.
1673 (execute_cmd_pre_hook): Declare.
1674 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1675 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1676 functions. Execute pre/post hook while ensuring that afterwords
1678 * top.c (execute_command): Use execute_cmd_post_hook, and
1679 execute_cmd_pre_hook to execute pre/post commands.
1680 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1682 (hook_stop_stub): Call execute_cmd_pre_hook.
1686 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1687 set'' and this leads to a core dump. Move xstrdup of
1688 operating_system to after check that it is not NULL.
1692 * kod.c (kod_set_os): Remove unnecessary check that
1693 ``command->type'' is set_cmd.
1695 * valprint.c (set_input_radix): Use input_radix.
1696 (set_output_radix): Use output_radix.
1697 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1702 * value.h (struct value): Delete field ``substring_addr''. Change
1703 aligner fields to force_doublest_align, force_longest_align,
1704 force_core_addr_align and force_pointer_aligh.
1706 * value.h (struct value): Fix typo in above change.
1710 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1711 to fix internal_error from ``maintenance print architecture''.
1715 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1716 for gcc versions after gcc-2.8.1.
1720 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1721 for method resolution. Restore adjustment of ``this'' pointer after
1722 calling value_struct_elt, which was accidentally removed during the
1727 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1729 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1731 * value.h (value_of_register): Update.
1735 * configure.in: Detect declaration for canonicalize_file_name.
1736 * utils.c (canonicalize_file_name): Declare, if needed.
1737 (gdb_realpath): Prefer realpath if available and usable.
1738 * config.in, configure: Rebuild.
1742 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1743 a constant array bound.
1745 * MAINTAINERS: Add myself to write-after-approval.
1749 * symfile.c (syms_from_objfile): Return immediately if no syms.
1750 (symbol_file_add): Return immediately if no syms.
1751 (find_sym_fns): Return immediately if no syms.
1755 * gdbserver/remote-util.c (remote_open): Print remote-side's
1756 IP address when remote debugging over the network.
1760 * config/sparc/fbsd.mh: Fix copyright.
1761 * config/sparc/fbsd.mt: Likewise.
1765 * MAINTAINERS: Fix typo in name of gdb warnings option.
1766 (x86-64): Fix formating so that this can be parsed by awk.
1770 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1771 * defs.h: Include "gdb/signals.h".
1772 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1776 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1777 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1783 * mips-tdep.c (ST0_FR): Define.
1784 (mips2_fp_compat): New function, temporarily disabled.
1785 (mips_read_fp_register_single): New function.
1786 (mips_read_fp_register_double): New function.
1787 (mips_print_register): Use them.
1788 (do_fp_register_row): Likewise.
1792 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1797 * stabsread.c (read_member_functions): Fix is_stub test for
1798 static member functions, improve comment.
1802 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1803 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1804 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1805 commands that set boolean values.
1806 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1807 (arm_rdi_resume): Always initialize PC.
1808 (arm_rdi_open): Don't use rslt as a boolean.
1809 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1810 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1811 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1812 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1816 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1817 * configure: Rebuilt.
1821 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1822 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1826 * cli/cli-decode.c (set_cmd_completer): New function.
1827 * command.h (set_cmd_completer): Declare.
1828 * cli/cli-decode.h (set_cmd_completer): Ditto.
1830 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1831 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1832 * win32-nat.c (_initialize_inftarg): Ditto.
1833 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1834 * proc-api.c (_initialize_proc_api): Ditto.
1835 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1836 * source.c (_initialize_source): Ditto.
1837 * exec.c (_initialize_exec): Ditto.
1838 * solib.c (_initialize_solib): Ditto.
1839 * top.c (init_main): Ditto.
1840 * tracepoint.c (_initialize_tracepoint): Ditto.
1841 * symfile.c (_initialize_symfile): Ditto.
1842 * printcmd.c (_initialize_printcmd): Ditto.
1843 * infcmd.c (_initialize_infcmd): Ditto.
1844 * corefile.c (_initialize_core): Ditto.
1848 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1852 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1856 * NEWS: Update headings, 5.2 has branched.
1860 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1861 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1862 (register_addr, REGISTER_RAW_SIZE): Likewise.
1863 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1864 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1868 * MAINTAINERS (x86-64): Add myself.
1869 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1870 changed value_ptr -> struct value *
1874 * configure.host (sparc64-*-freebsd): Add.
1875 * configure.tgt: Likewise.
1876 * config/sparc/fbsd.mh: New file.
1877 * config/sparc/fbsd.mt: Likewise.
1878 * config/sparc/nm-fbsd.h: Likewise.
1879 * config/sparc/tm-fbsd.h: Likewise.
1883 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1884 regformats/reg-s390x.dat.
1888 * utils.c: Add FIXME explaining true/false problem.
1892 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1896 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1900 * gdbserver/linux-s390-low.c: New file.
1901 * regformats/reg-s390.dat: New file.
1902 * regformats/reg-s390x.dat: New file.
1903 * gdbserver/configure.srv: Add S/390.
1904 * gdbserver/Makefile.in: Add S/390.
1905 * configure.tgt: Enable gdbserver for S/390.
1909 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1910 first line of the doc string for "info dos", except at the end of
1911 the sentence, since the short help stops at the first period.
1915 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1919 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1920 comment (dumy -> dummy).
1924 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1928 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1932 * gdbserver/acconfig.h: New file.
1933 * gdbserver/i387-fp.c: New file.
1934 * gdbserver/i387-fp.h: New file.
1935 * gdbserver/linux-x86-64.c: New file.
1936 * regformats/reg-x86-64.dat: New file.
1937 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1938 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1939 * gdbserver/configure.in: Add support for regsets.
1940 * gdbserver/config.in: Regenerate.
1941 * gdbserver/configure: Regenerate.
1942 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1943 * gdbserver/linux-low.h: New file.
1944 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1946 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1947 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1948 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1949 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1950 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1951 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1952 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1953 "i387-fp.h". Add PTRACE_GETREGS and friends.
1954 * gdbserver/regcache.c (supply_register): New function.
1955 (supply_register_by_name): New function.
1956 (collect_register): New function.
1957 (collect_register_by_name): New function.
1961 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1962 (config.status): Add configure.srv dependency.
1963 (server_h): Add config.h dependency.
1967 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1968 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1969 * gdbserver/configure.srv: Change i386-*-linux* to use
1974 * x86-64-tdep.c: Re-indent. Update copyright date.
1979 * x86-64-tdep.c (value.h): Delete.
1980 (gdb_assert.h): Include.
1981 (x86_64_register_convert_to_virtual,
1982 x86_64_register_convert_to_raw ): Add check which lets only
1983 floating-point values to be converted.
1984 (value_push): Delete.
1985 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1986 (i386_gdbarch_init): Number of register_bytes fixed.
1990 * MAINTAINERS: Add x86-64 target.
1994 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1995 * osfsolib.c (solib_map_sections): Ditto.
1996 * irix5-nat.c (solib_map_sections): Ditto.
1997 * corelow.c (gdb_check_format): Ditto.
1998 * symfile.c (symfile_bfd_open): Ditto.
1999 * solib.c (solib_map_sections): Ditto.
2004 * remote.c (_initialize_remote): By default, disable ``e'' and
2005 ``E'' step out-of-range packets.
2009 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2010 m68k_linux_frame_saved_pc.
2011 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2013 (SIGCONTEXT_PC_OFFSET): Remove.
2014 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2015 m68k_linux_sigtramp_saved_pc): New functions.
2016 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2017 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2018 (UCONTEXT_PC_OFFSET): Define.
2019 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2020 non-RT and RT signal trampolines.
2024 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2025 (TARGET_NBPG, STACK_END_ADDR): Delete
2026 (VARIABLES_INSIDE_BLOCK): Delete.
2030 * utils.c (perror_with_name): Make string parameter constant.
2031 (print_sys_errmsg): Ditto.
2033 * defs.h (perror_with_name): Update.
2034 (print_sys_errmsg): Update.
2040 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2044 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2045 if it already matches the current architecture from the exec file.
2046 Include arch-utils.h for gdbarch_info_init prototype.
2047 * Makefile.in (rs6000-nat.o): Update dependencies.
2051 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2052 list of exported variables.
2056 * gdbserver/configure.srv: New file.
2057 * gdbserver/configure.in: Use configure.srv instead
2058 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2060 * gdbserver/configure: Regenerated.
2061 * gdbserver/terminal.h: New file.
2062 * gdbserver/Makefile.in: Update for configure changes. Remove
2063 more unneeded include paths.
2067 From wiz at danbala:
2068 * config/sparc/tm-sp64.h: Fix grammar and typos.
2073 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2074 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2075 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2076 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2077 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2078 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2079 * s390-tdep.c: Ditto.
2080 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2081 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2082 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2083 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2084 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2085 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2086 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2087 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2088 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2089 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2094 * lin-thread.c: Delete file.
2095 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2096 to gdb_proc_service.h.
2097 * configure: Re-generate.
2099 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2100 * serial.c (serial_open): Delete check for "ocd".
2103 * Makefile.in (linux-thread.o): Delete target.
2104 * linux-thread.c: Delete file.
2106 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2107 renamed SH files to be consistent.
2109 * symtab.c (sort_search_symbols): Use xfree.
2113 * arm-linux-tdep.c (arm_linux_init_abi): Register
2114 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2115 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2116 definition with undef, since we don't want the sysvr4 definition.
2117 (SKIP_TRAMPOLINE_CODE): Likewise.
2123 * configure.in: (AC_CHECK_FUNCS) Added test for
2124 canonicalize_file_name Regenerated.
2125 * config.in, configure: Regenerated.
2126 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2127 defined use canonicalize_file_name.
2131 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2135 * README: Remove references to cygnus.com.
2136 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2137 dot com'' form. Remove references to cygnus.com and sourceware.
2142 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2143 1003.1-2001 no longer allows "head -1".
2144 * gdb/Makefile.in (version.c): Likewise.
2145 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2146 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2147 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2151 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2152 * command.h (cmd_cfunc_eq): Declare.
2153 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2155 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2156 ``struct cmd_list_element *''.
2157 * cli/cli-cmds.c (is_complete_command): Update. Use
2159 * top.c (execute_command): Pass the command to
2160 is_complete_command.
2161 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2166 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2167 architecture defines.
2168 * s390-tdep.c (s390_gdbarch_init): Likewise.
2172 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2173 (arm_linux_push_arguments): Likewise.
2174 (arm_linux_init_abi): Register them. Also register linux-specific
2176 (find_minsym_and_objfile): Use strcmp, not STREQ.
2177 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2178 (arm_linux_call_dummy_words): Delete declaration.
2179 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2180 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2182 (LOWEST_PC): Delete.
2186 * maint.c (print_section_info): Do not prepend `0x' to filepos
2187 output, it will be handled by local_hex_string_custom.
2191 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2192 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2193 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2197 Indicate that the bcache functions don't change the strings
2199 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2200 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2204 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2208 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2209 find the complete path to a loaded DLL.
2213 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2214 that marks the end of the range of a function, enter a line number
2215 entry that has a line number of zero and a PC offset that matches
2216 the end of the function. This starts a range of PC's for which no
2217 line number information is known.
2218 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2219 PC's for which no line number info is found (line number is zero)
2220 then we didn't find any valid line information.
2221 * symtab.h: Document use of zero line number entry.
2225 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2226 (have_ptrace_getvrregs): Define for run time checks.
2227 (gdb_vrregset_t): New type for Altivec register handling.
2228 (fetch_register, store_register): Fetch/store altivec register
2230 (fetch_altivec_register, store_altivec_register): New functions.
2231 (supply_vrregset, fill_vrregset): New functions.
2232 (fetch_altivec_registers, store_altivec_registers): New functions.
2233 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2238 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2242 * Makefile.in (armnbsd-nat.o): Update dependencies.
2243 * armnbsd-nat.c (supply_gregset): New function. Common code to
2244 supply the integer register set.
2245 (supply_fparegset): New function. Similar for FPA registers.
2246 (fetch_regs, fetch_fp_regs): Use them.
2247 (fetch_core_registers): Likewise.
2248 (fetch_elfcore_registers): New function.
2249 (arm_netbsd_elfcore_fns): New core-file type specification.
2250 (_initialize_arm_netbsd_nat): Register it.
2254 * armnbsd-nat.c: Include gdbcore.h.
2255 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2256 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2257 'void' to declaration, to shut up ARI.
2258 (fetch_core_registers): Make static. Rewrite using supply_register.
2259 (arm_netbsd_core_fns): New core-file type specification.
2260 (_initialize_arm_netbsd_nat): New function.
2264 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2269 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2274 * jv-exp.y (parse_number): Change type of implicit longs
2275 to builtin_type_uint64.
2279 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2280 to be an integer instead of a `union wait'.
2284 * mips-linux-nat.c: Call the operating system GNU/Linux.
2285 * mips-linux-tdep.c: Likewise.
2286 * mips-tdep.c: Likewise.
2291 * jv-exp.y (parse_number): Handle 64-bit integers.
2295 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2296 AC_STDC_HEADERS to AC_HEADER_STDC.
2297 * gdbserver/configure: Regenerated.
2301 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2303 * sparc-tdep.c (get_longjmp_target): Likewise.
2307 * News: Add news about ARM and Multi-arch. Mention the new target
2312 * stabsread.c (error_type_complaint): Improve error message.
2316 * gdbserver/README: Update documentation.
2317 * gdbserver/configure.in: Update configury to match documentation.
2318 * gdbserver/Makefile.in: Likewise.
2319 * gdbserver/configure: Regenerated.
2320 * gdbserver/aclocal.m4: New file, generated by aclocal.
2321 * gdbserver/config.in: New file, generated by autoheader.
2325 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2330 * arm-tdep.h (enum arm_float_model): New enum.
2331 (struct gdbarch_tdep): Add fp_model.
2332 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2333 up floating-point conversions until we know the floating-point model
2334 in use by the inferior. Don't complain about being unable to
2335 determine the ABI of the inferior when we don't have one.
2336 (arm_extract_return_value): Support different floating-point models.
2337 (arm_store_return_value): Likewise.
2338 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2340 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2344 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2345 of ``current_gdbarch''.
2349 * armnbsd-nat.c : ANSIfy all function declarations.
2350 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2351 (fetch_inferior_registers): Re-implement in terms of above.
2352 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2353 (store_inferior_registers): Re-implement in terms of above.
2357 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2359 * arm-linux-tdep.c: Likewise.
2360 * config/arm/tm-linux.h: Likewise.
2364 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2365 * config/arm/nbsd.mt (TM_FILE): Delete.
2366 * config/arm/tm-nbsd.h: Delete.
2370 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2371 Initialize CALL_DUMMY_LENGTH.
2375 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2377 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2378 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2379 defines one thing and that is incorrect for this port.
2380 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2384 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2388 * win32-nat.c (display_selector): New function. Displays information
2389 about the information returned by GetThreadSelectorEntry API function.
2390 (display_selectors): New function. Displays the infomation of
2391 the selector given as argument, or of CS, DS ans FS selectors
2392 if no argument is given.
2393 ( _initialize_inftarg): Add "w32" as info prefix command.
2394 Add "info w32 selector" as command calling display_selectors.
2398 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2399 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2404 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2408 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2409 (arm_fix_call_dummy): Call it.
2410 (arm_call_dummy_breakpoint_offset): Delete.
2411 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2412 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2416 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2417 Default to func_frame_chain_valid.
2418 * gdbarch.h, gdbarch.c: Re-generate.
2419 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2423 * ppc-linux-nat.c: Update copyright.
2424 (fetch_register, store_register): Add tid parameter, don't compute
2426 (fetch_ppc_registers, store_ppc_registers): Add tid
2427 parameter. Pass it along to callees.
2428 (fetch_inferior_registers, store_inferior_registers): Compute tid
2429 here, and pass it to calleed functions.
2430 (fill_gregset, supply_fpregset): Clean up formatting.
2434 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2435 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2439 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2440 * gdbarch.c gdbarch.h: Regenerate.
2441 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2443 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2444 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2445 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2447 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2448 * arm-tdep.c (arm_get_longjmp_target): New function.
2449 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2450 this to a positive value register arm_get_longjmp_target as the
2452 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2453 (arm_linux_init_abi): Set up longjmp description in tdep.
2454 * armnbsd-nat.c (get_longjmp_target): Delete.
2455 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2456 description in tdep.
2457 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2458 (get_longjmp_target): Delete declaration.
2459 (GET_LONGJMP_TARGET): Delete.
2460 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2461 (GET_LONGJMP_TARGET): Delete.
2466 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2467 of ``current_gdbarch''.
2471 * cli/cli-cmds.c (compare_strings): New function.
2472 (complete_command): Only print each unique item once.
2473 * completer.h (complete_line): Declare.
2474 * completer.c (complete_line): New function.
2475 (line_completion_function): Use it.
2479 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2480 * gdbarch.h, gdbarch.c: Re-generate.
2484 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2489 * valops.c (value_arg_coerce): Don't take the address of a reference
2490 to convert an argument to a reference.
2494 * win32-nat.c (get_image_name): New function.
2495 (handle_load_dll): Use get_image_name function.
2496 (get_child_debug_event): Avoid registering debug events until possibly
2497 execed process is started.
2498 (child_create_inferior): Allow invocation via shell so that command
2499 line redirection, etc. works ok.
2500 (_initialize_inftarg): Add new command: "set shell" to control whether
2501 a shell is used to start a process.
2505 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2506 instead of find_register_by_number.
2507 (cannot_store_register): Likewise.
2511 * dwarf2read.c: Replace fprintf (stderr, ...) by
2512 fprintf_unfiltered (gdb_stderr, ...).
2516 * gdbserver/gdbserver.1: Document --attach.
2520 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2522 * arm-tdep.c (arm_default_arm_le_breakpoint)
2523 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2524 (arm_default_thumb_be_breakpoint): New. Initialize them from
2525 traditional breakpoint defines.
2526 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2527 (arm_gdbarch_init): Initialize new breakpoint variables.
2528 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2529 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2530 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2531 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2533 (arm_netbsd_init_abi_common): ... here; new function.
2534 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2535 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2536 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2537 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2541 * arm-tdep.h (enum arm_abi): New enum.
2542 (struct gdbarch_tdep): New structure.
2543 (LOWEST_PC): Provide a default.
2544 (arm_gdbarch_register_os_abi): Declare new function.
2545 * arm-tdep.c (arm_abi_names): New array.
2546 (process_note_abi_tag_sections): New function.
2547 (get_elfosabi): New function.
2548 (arm_gdbarch_register_os_abi): New function.
2549 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2550 support for that ABI has been built in, then call the appropriate
2551 configuration routine. Use gdbarch_num_regs() to get the number
2553 (arm_dump_tdep): New function.
2554 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2555 place-holder functions.
2556 (_initialize_arm_tdep): Register them.
2557 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2559 * armnbsd-tdep.c: New file.
2560 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2561 * config/arm/nbsd.mt (TDEPFILES): Add it.
2562 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2564 * armnbsd-nat.c: Include regcache.h.
2565 * Makefile.in (armnbsd-nat.o): Update dependency list.
2567 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2571 * gdbserver/Makefile.in: Fix typos in target rules.
2575 Fix part of PR gdb/267.
2576 * linespec.c (find_methods): Handle constructors specially for now.
2580 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2582 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2583 standard_coerce_float_to_double().
2587 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2592 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2593 find_variant_by_name, because it confuses the multiarch
2594 framework. Return NULL if there isn't an architecture with the
2595 user supplied name, instead of forcing a different one without
2596 recording the change with the multiarch machinery.
2597 (find_variant_by_name): Delete.
2601 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2602 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2606 * stack.c (print_frame_info_base): When calling
2607 print_frame_info_listing_hook, set current_source_symtab.
2611 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2612 and remove unused $(INCLUDE_DIR).
2613 Add regcache.c to OBS.
2614 Add generated register protocol files to clean target.
2615 Update dependencies for new objects, obsolete old target code.
2617 * gdbserver/linux-low.c: Remove all platform-specific code to
2618 new files. Remove various dead code. Update to use regcache
2620 * gdbserver/remote-utils.c (fromhex): Add return statement
2622 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2624 (input_interrupt): Add integer parameter to match prototype
2625 of a signal handler.
2626 (outreg): Use register_data ().
2627 (prepare_resume_reply): Use gdbserver_expedite_regs.
2628 * gdbserver/server.c (main): Dynamically allocate own_buf because
2629 PBUFSIZ is no longer constant. Use registers_to_string () and
2630 registers_from_string ().
2631 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2632 for error (), fatal (), and warning (). Update definition of
2633 PBUFSIZ to use regcache functionality. Add include guard.
2634 * gdbserver/utils.c (fatal): Add missing ``const''.
2635 (warning): New function.
2637 * regformats/regdat.sh: Include "regcache.h" in generated files.
2638 Provide init_registers () function.
2639 * regformats/regdef.h: Add prototype for set_register_cache ().
2642 * gdbserver/linux-arm-low.c: New file.
2643 * gdbserver/linux-i386-low.c: New file.
2644 * gdbserver/linux-ia64-low.c: New file.
2645 * gdbserver/linux-m68k-low.c: New file.
2646 * gdbserver/linux-mips-low.c: New file.
2647 * gdbserver/linux-ppc-low.c: New file.
2648 * gdbserver/linux-sh-low.c: New file.
2650 * gdbserver/regcache.c: New file.
2651 * gdbserver/regcache.h: New file.
2653 * gdbserver/low-linux.c: Removed obsolete file.
2657 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2658 * config/i386/linux.mt: Likewise.
2659 * config/ia64/linux.mt: Likewise.
2660 * config/m68k/linux.mh: Likewise.
2661 * config/powerpc/linux.mh: Likewise.
2662 * config/mips/linux.mt: Likewise.
2664 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2666 * config/i386/i386lynx.mh: Mark gdbserver variables
2667 as (currently) obsolete for this target.
2668 * config/i386/nbsd.mt: Likewise.
2669 * config/i386/nbsdelf.mt: Likewise.
2670 * config/m32r/m32r.mt: Likewise.
2671 * config/m68k/m68klynx.mh: Likewise.
2672 * config/m68k/nbsd.mt: Likewise.
2673 * config/m68k/sun3os4.mh: Likewise.
2674 * config/mips/vr5000.mt: Likewise.
2675 * config/ns32k/nbsd.mt: Likewise.
2676 * config/pa/hppabsd.mh: Likewise.
2677 * config/pa/hppaosf.mh: Likewise.
2678 * config/powerpc/nbsd.mt: Likewise.
2679 * config/rs6000/rs6000lynx.mh: Likewise.
2680 * config/s390/s390.mt: Likewise.
2681 * config/s390/s390x.mt: Likewise.
2682 * config/sparc/sparclynx.mh: Likewise.
2683 * config/sparc/sun4os4.mh: Likewise.
2684 * config/i386/x86-64linux.mt: Likewise.
2685 * config/sparc/linux.mh: Likewise.
2689 * configure.tgt: Configure gdbserver only for known working
2690 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2691 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2692 SUBDIRS if it is configured. Update comment for ${nativefile}.
2693 * configure: Regenerated.
2697 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2699 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2700 (default_gcore_mach): Just return 0, work around a problem in bfd.
2701 (default_gcore_target): OK to return NULL if exec_bfd is null.
2702 (make_mem_sec): Use a cast, avoid a warning.
2704 * procfs.c (find_memory_regions_callback): Use a cast instead of
2705 calling host_pointer_to_address (which complains if
2706 sizeof (host pointer) != sizeof (target pointer)).
2707 (procfs_make_note_section): Avoid overflow in psargs string.
2709 * procfs.c (procfs_make_note_section): Make the default
2710 implementation return an error.
2714 * procfs.c (procfs_make_note_section): Provide a default definition
2715 (for alpha-dec-osf4.0f). Fix typos.
2719 * linux-proc.c: Add include of regcache.h.
2720 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2725 * memattr.c (create_mem_region): Disallow useless empty region.
2726 Regions are half-open intervals, so allow [A..B) [B..C) as
2731 * defs.h: Kill CONST_PTR.
2732 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2733 * c-lang.c (c_builtin_types): Likewise.
2734 * ch-lang.c (ch_builtin_types): Likewise.
2735 * f-lang.c (f_builtin_types): Likewise.
2736 * language.c (unknown_builtin_types): Likewise.
2737 * m2-lang.c (m2_builtin_types): Likewise.
2738 * p-lang.c (pascal_builtin_types): Likewise.
2739 * scm-lang.c (c_builtin_types): Likewise.
2743 * arm-tdep.h (arm_get_next_pc): Add declaration.
2747 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2748 with other related struct-returning functions.
2749 (arm_extract_struct_value_address): New function.
2750 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2751 initialize float_format, double_format and long_double_format as
2752 appropriate to the endianness of the target.
2753 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2754 (arm_use_struct_convention): Delete declaration.
2755 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2759 * defs.h (core_addr_to_string_nz): New function.
2763 Apply missing bits of 2002-01-15 patch.
2764 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2765 (fill_fpregset): Use i387_fill_fsave.
2769 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2770 (core_addr_to_string_nz): New function.
2774 * arm-linux-nat.c: Really include arm-tdep.h.
2775 * config/arm/tm-linux.h (struct type, struct value): Declare.
2779 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2780 (gcore section): Ifdef for Solaris and Unixware only.
2781 (procfs_do_thread_registers): Unixware needs one lwpstatus
2782 per thread (not one prstatus or pstatus).
2783 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2784 not over all gdb threads. For unixware, call elfcore_write_pstatus
2785 once before iterating over threads.
2789 * arm-tdep.h: New file.
2790 * arm-tdep.c: Include arm-tdep.h.
2791 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2792 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2793 (arm_print_float_info, arm_register_type, convert_to_extended)
2794 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2795 (arm_extract_return_value, arm_register_name): Make static.
2796 (arm_software_single_step): Similarly. Fix types in declaration.
2797 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2798 (arm_store_return_value, arm_store_struct_return): New functions.
2799 (arm_gdbarch_init): Register the above functions. Also register
2800 call_dummy_start_offset, sizeof_call_dummy_words,
2801 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2802 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2803 max_register_virtual_size, register_size. Set up
2804 prologue_cache.saved_regs here, rather than ...
2805 (_initialize_arm_tdep): ... here.
2806 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2808 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2809 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2810 (arm_print_float_info, arm_register_type, convert_to_extended)
2811 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2812 (arm_extract_return_value, arm_register_name): Delete declarations.
2813 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2814 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2815 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2816 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2817 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2818 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2819 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2820 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2821 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2822 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2823 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2824 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2826 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2827 * remote-rdi.c remote-rdp.c: Likewise.
2828 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2829 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2830 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2833 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2834 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2835 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2836 from non-ARM_ prefixed definitions.
2837 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2839 * remote-rdi.c remote-rdp.c: Likewise.
2840 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2844 * arm-tdep.c (arm_frameless_function_invocation)
2845 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2846 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2847 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2848 (arm_pop_frame, arm_get_next_pc): Make static.
2849 (arm_gdbarch_init): Register above in gdbarch structure.
2850 (arm_read_fp): Renamed from arm_target_read_fp.
2851 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2852 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2853 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2854 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2855 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2856 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2857 (arm_pc_is_thumb_dummy): Delete declarations.
2858 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2859 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2860 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2861 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2865 * symtab.c (compare_search_syms): New function.
2866 (sort_search_symbols): New function.
2867 (search_symbols): Sort symbols after searching rather than
2872 * NEWS: Linux -> GNU/Linux.
2876 * gdbarch.sh: For for level one methods, disallow a definition
2877 when partially multi-arched. Add comments explaining rationale.
2878 * gdbarch.h: Re-generate.
2882 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2887 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2889 * gdbarch.c: Re-generate.
2893 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2894 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2899 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2901 (PUSH_ARGUMENTS): Switch to using predefault.
2902 * gdbarch.c: Regenerate.
2906 * valops.c (PUSH_ARGUMENTS): Delete definition.
2907 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2908 partial. Default to default_push_arguments.
2909 * gdbarch.h, gdbarch.c: Regenerate.
2913 * defs.h (throw_exception): Rename return_to_top_level. Update
2915 * utils.c (error_stream, internal_verror, quit): Ditto.
2916 * top.c (throw_exception, catcher): Ditto.
2917 * sparclet-rom.c (sparclet_load): Ditto.
2918 * remote.c (interrupt_query, minitelnet): Ditto.
2919 * remote-sds.c (interrupt_query): Ditto.
2920 * remote-mips.c (mips_error, mips_kill): Ditto.
2921 * ocd.c (interrupt_query): Ditto.
2922 * monitor.c (monitor_interrupt_query): Ditto.
2923 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2924 * target.h: Update comment.
2926 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2930 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2931 default_double_format.
2932 * gdbarch.h, gdbarch.c: Re-generate.
2933 * findvar.c (floatformat_unknown): Delete variable definition.
2934 * doublest.h (floatformat_unknown): Delete variable declaration.
2938 * stabsread.c (read_type): Add code to parse Sun's syntax for
2939 prototyped function types.
2943 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2944 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2948 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2949 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2950 now _initialize_xcoffsolib gets called again and overrides the
2951 commands from solib.c in a native configuration.
2955 * doublest.c (store_typed_floating): Don't try to return a value.
2960 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2961 is prototyped and has no arguments, print its argument list as
2966 * MAINTAINERS (write-after-approval): Add myself.
2967 (paper-trail): I've escaped!
2971 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2973 (_initialize_check_for_gdb_ini): Ditto.
2977 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2978 xaprintf -> xasprintf.
2982 * win32-nat.c: Remove use of printf and sprintf functions.
2986 * arm-tdep.c (arm_frame_chain_valid): Make static.
2987 (arm_push_arguments): Likewise.
2988 (arm_gdbarch_init): New function.
2989 (_initialize_arm_tdep): Call it.
2990 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2991 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2992 (FRAME_CHAIN_VALID): Delete.
2993 (arm_frame_chain_valid): Delete declaration.
2994 (PUSH_ARGUMENTS): Delete.
2995 (arm_push_arguments): Delete declaration.
2996 (CALL_DUMMY_P): Delete.
3001 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3002 on builtin float types.
3006 * utils.c: Include <curses.h> before "bfd.h".
3007 * tui/tui-hooks.c: Likewise.
3008 * tui/tui.c: Likewise.
3009 * tui/tuiCommand.c: Likewise.
3010 * tui/tuiData.c: Likewise.
3011 * tui/tuiDataWin.c: Likewise.
3012 * tui/tuiDisassem.c: Likewise.
3013 * tui/tuiGeneralWin.c: Likewise.
3014 * tui/tuiIO.c: Likewise.
3015 * tui/tuiLayout.c: Likewise.
3016 * tui/tuiRegs.c: Likewise.
3017 * tui/tuiSource.c: Likewise.
3018 * tui/tuiSourceWin.c: Likewise.
3019 * tui/tuiStack.c: Likewise.
3020 * tui/tuiWin.c: Likewise.
3024 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3025 to include space for pseudoregs as well. Update loops accordingly.
3026 (sh_fp_frame_init_saved_regs): Ditto.
3027 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3031 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3032 Add Richard Earnshaw to Arm maintainers.
3036 * defs.h (warning_begin): Delete declaration.
3038 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3043 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3044 Logic bug, remove misplaced else.
3048 * fork-inferior.c (fork_inferior): Add '!' to the list of
3049 characters that need to be quoted when building a string for the
3050 shell. Quote '!' specifically with a backslash, since CSH chokes
3051 when trying to evaluate "str!str".
3055 * rdi-share/host.h: Only provide a typedef for bool if it is not
3060 * breakpoint.h (enum bptype): Add new overlay event bp type.
3061 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3063 * breakpoint.c (create_internal_breakpoint): New function.
3064 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3065 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3066 (create_thread_event_breakpoint): Ditto.
3067 (create_solib_event_breakpoint): Ditto.
3068 (create_overlay_event_breakpoint): New function.
3069 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3070 (update_breakpoints_after_exec): Delete and re-initialize
3071 overlay event breakpoints after an exec. Add FIXME comment
3072 about longjmp breakpoint.
3073 (print_it_typical): Ignore overlay event breakpoints.
3074 (print_one_breakpoint): Ditto.
3076 (bpstat_what): Do not stop for overlay event breakpoints.
3077 (delete_breakpoint): Don't delete overlay event breakpoints.
3078 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3079 (breakpoint_re_set): Re-create overlay event breakpoint.
3081 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3082 (overlay_manual_command): Disable overlay breakpoints.
3083 (overlay_off_command): Disable overlay breakpoints.
3087 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3088 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3089 to here from config/tm-arm.h.
3090 (coff_sym_is_thumb): Make static.
3091 (arm_elf_make_msymbol_special): New function.
3092 (arm_coff_make_msymbol_special): New function.
3093 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3094 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3095 (coff_sym_is_thumb): Delete declaration.
3096 (arm_elf_make_msymbol_special): Declare.
3097 (arm_coff_make_msymbol_special): Declare.
3098 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3099 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3103 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3107 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3108 * gdbarch.c gdbarch.h: Regenerate.
3109 * arch-utils.c (default_print_float_info): New function.
3110 * arch-utils.h (default_print_float_info): Prototype it.
3111 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3112 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3113 (PRINT_FLOAT_INFO): Document it.
3115 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3116 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3117 (PRINT_FLOAT_INFO): Define.
3121 * win32-nat.c (_initialize_check_for_gdb_ini):
3122 Add typecast to sprintf argument to suppress a warning.
3126 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3127 to allow easier handling of pass state.
3128 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3129 that gives exception name and address.
3130 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3131 and set last_sig value to ourstatus->value.sig. Some missing
3133 (child_continue): Correctly report continue_status.
3134 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3135 TARGET_SIGNAL_0 (new default value).
3136 (child_resume): consider sig argument passed to decide if
3137 the exception should be passed to debuggee or not.
3141 * regcache.c (fetch_register): Call target_fetch_register
3142 only if we don't call FETCH_PSEUDO_REGISTER.
3143 (store_register): Call target_store_register only if we
3144 don't call STORE_PSEUDO_REGISTER.
3148 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3149 ELF_MAKE_MSYMBOL_SPECIAL.
3150 * gdbarch.c, gdbarch.h: Regenerate.
3151 * arch-utils.c (default_make_msymbol_special): New function.
3152 * arch-utils.h (default_make_msymbol_special): Export.
3153 * elfread.c (elf_symtab_read): Compile use of
3154 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3156 * coffread.c (coff_symtab_read): Ditto, for
3157 COFF_MAKE_MSYMBOL_SPECIAL.
3161 * solib-svr4.c (svr4_truncate_ptr): New function.
3162 (svr4_relocate_section_addresses): Do the address arithmetic with
3163 the appropriate truncation for target addresses, even when
3164 CORE_ADDR is larger than a target address.
3168 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3173 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3178 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3182 * gdbserver/linux-low.c: Remove unused include files.
3186 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3187 (read_inferior_memory): Use it.
3188 (write_inferior_memory): Likewise.
3192 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3193 grubbing through sys_errlist.
3197 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3200 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3204 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3205 (do_sfunc, set_cmd_sfunc): New functions.
3207 * command.h (struct cmd_list_element): Add field func.
3208 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3209 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3210 * cli/cli-decode.h: Ditto.
3212 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3213 (help_all, help_cmd_list): Ditto.
3214 (find_cmd, complete_on_cmdlist): Ditto.
3215 * top.c (execute_command): Ditto.
3217 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3220 * infcmd.c (notice_args_read): Fix function signature.
3222 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3223 * cli/cli-decode.c (add_set_cmd): Ditto.
3224 * utils.c (initialize_utils): Ditto.
3225 * maint.c (_initialize_maint_cmds): Ditto.
3226 * infrun.c (_initialize_infrun): Ditto.
3227 * demangle.c (_initialize_demangler): Ditto.
3228 * remote.c (add_packet_config_cmd): Ditto.
3229 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3230 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3231 * proc-api.c (_initialize_proc_api): Ditto.
3232 * kod.c (_initialize_kod): Ditto.
3233 * valprint.c (_initialize_valprint): Ditto.
3234 * top.c (init_main): Ditto.
3235 * infcmd.c (_initialize_infcmd): Ditto.
3236 * corefile.c (_initialize_core): Ditto.
3237 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3238 * arch-utils.c (initialize_current_architecture): Ditto.
3239 (_initialize_gdbarch_utils): Ditto.
3240 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3242 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3243 * wince.c (_initialize_inftarg): Ditto.
3244 * symfile.c (_initialize_symfile): Ditto.
3245 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3246 * language.c (_initialize_language): Ditto.
3247 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3251 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3255 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3256 Add rules for building the register data files.
3260 * regformats/regdat.sh: Add braces to the definition of
3261 expedite_regs_${arch}.
3265 * regformats/regdef.h (struct reg): Add comment describing the
3266 requirements for offset and size fields.
3270 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3271 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3275 * gdbarch.sh (copyright): Update years in generated header.
3276 (SMASH_TEXT_ADDRESS): Add rule.
3277 * gdbarch.h, gdbarch.c: Re-generate.
3278 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3279 * dbxread.c: Likewise.
3280 * dwarfread.c: Likewise.
3281 * elfread.c: Likewise.
3282 * somread.c: Likewise.
3284 * arm-tdep.c (arm_smash_text_address): New function.
3285 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3289 Add support for hardware watchpoints on win32 native.
3290 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3291 CONTEXT_DEBUG_REGISTERS.
3292 (dr variable): New variable. Static array containing a local copy
3294 (debug_registers_changed): New variable. Reflects when debug registers
3295 are changed and need to be written to inferior.
3296 (debug_registers_used): New variable. Reflects when any debug register
3297 was set, used when new threads are created.
3298 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3300 (thread_rec): Set dr array if id is the thread of current_event .
3301 (child_continue, child_resume): Change the debug registers for all
3302 threads if debug_registers_changed.
3303 (child_add_thread): Change the debug registers if debug_registers_used.
3304 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3305 Link nm.h to new nm-cygwin.h file.
3306 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3307 of hardware registers.
3311 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3312 Restore behavour broken by 2002-01-20 Andrew Cagney
3317 * c-valprint.c (c_val_print): Pass a proper valaddr to
3318 cp_print_class_method.
3319 * valops.c (search_struct_method): If there is only one method
3320 and args is NULL, return that method.
3324 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3325 accessing tag_name directly.
3329 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3330 of accessing tag_name directly.
3335 * gdbtypes.c (replace_type): New function.
3336 * gdbtypes.h (replace_type): Add prototype.
3337 * stabsread.c (read_type): Use replace_type.
3341 * Makefile.in (memattr.o): Add missing dependencies rule.
3345 * breakpoint.c (break_at_finish_command): Really export.
3346 (break_at_finish_at_depth_command): Ditto.
3347 (tbreak_at_finish_command): Ditto.
3348 * hppa-tdep.c: Include completer.h.
3349 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3350 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3354 * utils.c (do_write): New function.
3355 (error_stream): Rewrite combining the code from error_begin and
3357 (verror): Rewrite using error_stream.
3358 (error_begin): Delete function.
3362 * utils.c (error_begin): Make static.
3363 * defs.h (error_begin): Delete declaration.
3365 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3366 (decode_line_1): Use cplusplus_error instead of error_begin,
3367 cplusplus_hint and return_to_top_level.
3368 * coffread.c (coff_symfile_read): Use error instead of error_begin
3369 and return_to_top_level.
3370 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3374 * language.h (type_error, range_error): Make string parameter
3376 * language.c (warning_pre_print): Delete extern declaration.
3377 * dwarfread.c (warning_pre_print): Ditto.
3378 * language.c (type_error, range_error): Rewrite to use verror and
3379 vwarning instead of warning_begin.
3383 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3384 (set_ignore_count): Move misplaced comment back where it belongs.
3388 * command.h (NO_FUNCTION): Delete macro.
3389 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3390 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3391 * tracepoint.c (_initialize_tracepoint): Ditto.
3392 * cli/cli-decode.c (add_set_cmd): Ditto.
3393 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3397 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3398 Update ``this'' pointer when calling virtual functions.
3402 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3403 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3407 * regformats/reg-arm.dat: New file.
3408 * regformats/reg-i386.dat: New file.
3409 * regformats/reg-ia64.dat: New file.
3410 * regformats/reg-m68k.dat: New file.
3411 * regformats/reg-mips.dat: New file.
3412 * regformats/reg-ppc.dat: New file.
3413 * regformats/reg-sh.dat: New file.
3414 * regformats/regdef.h: New file.
3415 * regformats/regdat.sh: New file.
3419 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3420 (arm_frame_args_address, arm_frame_locals_address): New functions.
3421 (arm_frame_num_args): New function.
3422 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3423 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3424 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3428 * breakpoint.c (break_at_finish_command): Export.
3429 (break_at_finish_at_depth_command): Export.
3430 (tbreak_at_finish_command): Export.
3431 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3432 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3433 "tbreak" commands, which are HPPA specific.
3435 * printcmd.c (disassemble_command): Remove an ancient
3436 artifact of an old merge.
3438 * symfile.h (enum overlay_debugging_state):
3439 Define enum constant values for overlay mode.
3440 * symfile.c (overlay_debugging): Use enums instead of literals.
3441 (overlay_is_mapped, overlay_auto_command,
3442 overlay_manual_command): Ditto.
3444 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3445 breakpoint_here_p, breakpoint_inserted_here_p,
3446 breakpoint_thread_match, bpstat_stop_status,
3447 describe_other_breakpoints, check_duplicates, clear_command):
3448 Coding standard fixes.
3450 * target.c (target_xfer_memory): Add spaces, coding standard.
3451 (do_xfer_memory): Add missing line to trust-readonly
3452 code: check bfd SEC_READONLY flag for section.
3456 * PROBLEMS: Fix typo, 5.1->5.1.1.
3460 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3461 data symbols, since we search based on textlow and texthigh.
3462 (find_pc_sect_symtab): Likewise.
3466 * defs.h (vwarning): Declare.
3467 * utils.c (vwarning): New function.
3468 (warning): Call vwarning.
3469 (warning_begin): Delete function.
3471 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3472 the warning message.
3473 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3478 * NEWS: Mention "set trust-readonly-sections" command.
3479 Mention generate-core-file command.
3483 * target.c: New command, "set trust-readonly-sections on".
3484 (do_xfer_memory): Honor the suggestion to trust readonly sections
3485 by reading them from the object file instead of from the target.
3486 (initialize_targets): Register command "set trust-readonly-sections".
3490 * parse.c (target_map_name_to_register): Simplify, search regs and
3491 pseudo-regs using a single loop.
3495 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3499 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3500 * config/i386/i386v42mp.mh: Add i387-nat.o .
3501 * i386v4-nat.c: Include i387-nat.h.
3502 (supply_fpregset): Use i387_supply_fsave.
3503 (fill_fpregset): Use i387_fill_fsave.
3507 * arm-tdep.c (arm_call_dummy_words): Define.
3508 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3509 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3510 (CALL_DUMMY_WORDS): Define.
3511 (arm_call_dummy_words): Declare.
3512 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3513 (arm_linux_call_dummy_words): Declare.
3517 * m68klinux-nat.c: Fix last change to use regcache_collect
3518 instead of referencing registers[] directly.
3522 * parse.c (target_map_name_to_register): Delete code wrapped in
3523 #ifdef REGISTER_NAME_ALIAS_HOOK.
3527 * regcache.c (legacy_read_register_gen): Need to be able to
3528 read pseudo-register as well as real register.
3529 (legacy_write_register_gen): Ditto.
3533 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3534 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3535 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3536 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3537 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3538 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3539 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3540 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3541 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3542 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3543 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3544 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3545 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3546 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3547 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3548 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3549 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3550 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3551 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3552 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3556 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3557 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3558 (initialize_current_architecture): Update target_byte_order using
3559 information from BFD.
3560 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3561 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3565 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3566 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3568 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3569 #ifdef INVALID_FLOAT.
3570 * infcmd.c (do_registers_info): Ditto.
3571 * values.c (unpack_double): Ditto. Add comment.
3573 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3574 already commented out.
3578 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3579 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3580 registers and add support for PTRACE_GETREGS.
3584 GDB 5.1.1 released from 5.1 branch.
3585 * NEWS: Add 5.1.1 news.
3586 * README: Sync with 5.1 branch.
3590 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3591 stabstring on initial malloc. Reallocing will copy it for us,
3596 * Makefile.in (hpread_h): Delete.
3597 (HFILES_NO_SRCDIR): Remove hpread.h.
3598 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3599 (hpread.o): Update dependencies.
3600 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3602 * hp-psymtab-read.c: Remove file.
3603 * hp-symtab-read.c: Remove file.
3604 * hpread.h: Remove file.
3606 * hpread.c: Merge all contents of hp-psymtab-read.c,
3607 hp-symtab-read.c and hpread.h into this file, as it was prior to
3610 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3611 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3612 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3613 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3617 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3618 fill_gregset): Call gdbarch_tdep() just once, assign result to
3619 variable and use that, instead of calling the function several
3624 * configure.host: Accept sparcv9 as alias for sparc64.
3625 * configure.tgt: Likewise.
3629 * solib-aix5.c (build_so_list_from_mapfile)
3630 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3631 arguments is not reversed.
3632 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3633 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3637 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3638 modified version of obsolete sh_fetch_pseudo_register.
3639 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3640 (sh4_register_read): New function.
3641 (sh_pseudo_register_write): New function. Renamed and modified
3642 version of obsolete sh_store_pseudo_register.
3643 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3644 (sh4_register_write): New function.
3645 (sh_gdbarch_init): Remove setting of gdbarch function
3646 fetch_pseudo_register and store_pseudo_register. Remove setting of
3647 register_convert_to_raw, register_convert_to_virtual,
3648 register_convertible.
3649 (sh_sh4_register_convertible): Delete. No longer needed. All is
3650 taken care by architecture specific functions
3651 register_read/register_write.
3652 (sh_sh4_register_convert_to_virtual): Make static.
3653 (sh_sh4_register_convert_to_raw): Ditto.
3657 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3658 (floatformat_is_nan, floatformat_mantissa): Ditto.
3660 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3661 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3662 builtin_type_ieee_double_little,
3663 builtin_type_ieee_double_littlebyte_bigword,
3664 builtin_type_m68881_ext, builtin_type_i960_ext,
3665 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3666 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3667 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3668 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3672 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3673 parameter. Set frameless flag if it exists and depended of
3674 whether the scanned function is frameless or not.
3675 (xstormy16_skip_prologue): If function is frameless, return
3676 result of xstormy16_scan_prologue().
3677 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3682 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3683 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3684 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3685 sh_sh4_register_byte, sh_sh4_register_raw_size,
3686 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3687 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3688 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3689 sh_store_pseudo_register, sh_do_pseudo_register): Call
3690 gdbarch_tdep() just once, assign result to variable and use that,
3691 instead of calling the function several times.
3695 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3696 macros instead of LAST_FPU_CTRL_REGNUM.
3697 (store_register): Likewise.
3701 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3702 is up-to-date before running the program, not just when a program
3707 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3708 when we have found all instructions we are looking for.
3712 * arm-tdep.c (arm_register_name): New function.
3713 (arm_registers_names): Make static.
3714 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3715 (arm_register_name): Declare.
3716 (REGISTER_NAME): Use it.
3721 Convert arm targets to new FRAME interface.
3722 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3723 (arm_frame_find_save_regs): Delete.
3724 (arm_frame_init_saved_regs): New.
3725 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3726 Allocate extra_info as required. Convert all uses of fsr.regs
3727 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3729 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3730 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3731 (check_prologue_cache, save_prologue_cache): Likewise.
3732 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3733 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3734 (FRAME_FIND_SAVED_REGS): Delete.
3735 (arm_frame_find_saved_regs): Delete prototype.
3736 (arm_frame_init_saved_regs): New prototype.
3737 (FRAME_INIT_SAVED_REGS): Define.
3741 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3746 * infttrace.c: Include <sys/pstat.h>.
3747 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3748 exec file if the ttrace equivalent fails.
3752 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3753 (closeLogFile): Ditto.
3757 * top.c (print_gdb_version): Bump copyright year to 2002.
3761 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3762 Zannoni and Eli Zaretskii.
3766 * buildsym.c: Update copyright years.
3767 * c-typeprint.c: Likewise.
3768 * dwarf2read.c: Likewise.
3769 * f-typeprint.c: Likewise.
3770 * gdbtypes.c: Likewise.
3771 * gdbtypes.h: Likewise.
3772 * hp-symtab-read.c: Likewise.
3773 * hpread.c: Likewise.
3774 * mdebugread.c: Likewise.
3775 * p-typeprint.c: Likewise.
3779 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3780 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3781 byte-order selectable.
3782 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3783 * arch-utils.c: Ditto.
3784 (set_endian): Ditto.
3785 (set_endian_from_file): Ditto.
3786 * gdbserver/low-sim.c (create_inferior): Ditto.
3787 * gdbarch.sh: Ditto.
3788 * gdbarch.h: Re-generate.
3789 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3790 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3791 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3792 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3793 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3794 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3795 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3796 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3798 * config/mips/tm-wince.h: Remove #undef of macro
3799 TARGET_BYTE_ORDER_SELECTABLE.
3800 * config/sh/tm-wince.h: Ditto.
3804 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3805 member function fields. Add accessor macro
3806 TYPE_FN_FIELD_ARTIFICIAL.
3807 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3808 * c-typeprint.c (c_type_print_base): Skip artificial member
3813 * f-typeprint.c: Delete unused function f_type_print_args.
3814 * p-typeprint.c: Delete unused function pascal_type_print_args.
3818 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3819 comment. Add ``artificial'' to ``union field_location''.
3821 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3823 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3824 * mdebugread.c (parse_symbol): Likewise.
3825 * stabsread.c (define_symbol): Likewise.
3826 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3827 initializing TYPE_FIELD_BITPOS to n (obsolete).
3828 (hpread_doc_function_type): Likewise.
3829 * hpread.c (hpread_function_type): Likewise.
3833 * configure.in (host_makefile_frag): Only require a host makefile
3834 fragment when a native build.
3835 * configure: Re-generate.
3839 * doublest.h (floatformat_from_type): Declare.
3840 * doublest.c (floatformat_from_type): New function.
3841 (convert_typed_floating): Use.
3843 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3844 call to function floatformat_from_type.
3846 * gdbarch.sh (IEEE_FLOAT): Delete.
3847 * gdbarch.h, gdbarch.c: Re-generate.
3848 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3849 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3850 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3851 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3852 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3853 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3854 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3855 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3856 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3857 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3858 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3859 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3861 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3862 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3863 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3864 * sh-tdep.c (sh_gdbarch_init): Ditto.
3865 * mips-tdep.c (mips_gdbarch_init): Ditto.
3866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3867 * cris-tdep.c (cris_gdbarch_init): Ditto.
3871 * configure.host, configure.tgt: Support x86-64.
3872 * NEWS: Note new target x86-64.
3874 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3875 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3876 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3877 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3878 x86-64-linux-nat.o): Fix dependencies.
3882 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3883 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3884 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3885 * config/sparc/xm-sun4os4.h: Delete file.
3886 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3890 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3891 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3892 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3893 * config/i386/i386lynx.mh (XM_FILE): Delete.
3894 * config/rs6000/xm-rs6000ly.h: Delete file.
3895 * config/sparc/xm-sparclynx.h: Delete file.
3896 * config/m68k/xm-m68klynx.h: Delete file.
3897 * config/i386/xm-i386lynx.h: Delete file.
3898 * config/xm-lynx.h: Delete file.
3899 * config/djgpp/fnchange.lst: Update.
3903 * alpha-tdep.c (alpha_register_byte): New function.
3904 (alpha_register_raw_size): Ditto.
3905 (alpha_register_virtual_size): Ditto.
3906 (alpha_skip_prologue_internal): Renamed from
3907 alpha_skip_prologue.
3908 (alpha_skip_prologue): New version that calls
3909 alpha_skip_prologue_internal.
3910 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3911 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3912 second argument from alpha_skip_prologue.
3913 (REGISTER_BYTE): Use alpha_register_byte.
3914 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3915 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3916 (FRAMELESS_FUNCTION_INVOCATION): Use
3917 generic_frameless_function_invocation_not.
3918 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3919 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3923 * config/mips/xm-news-mips.h: Delete file.
3924 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3926 * config/m88k/xm-m88k.h: Delete file.
3927 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3928 * config/m88k/xm-delta88v4.h: Ditto.
3929 * config/m88k/xm-delta88.h: Ditto.
3931 * config/alpha/xm-fbsd.h: Delete file.
3932 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3934 * config/sparc/xm-sparc.h: Delete file.
3935 * Makefile.in (xm-sun4os4.h): Delete dependency.
3936 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3937 * config/sparc/xm-sun4os4.h: Ditto.
3938 * config/sparc/xm-linux.h: Ditto.
3940 * config/i386/xm-windows.h: Delete file.
3944 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3945 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3949 * alpha-tdep.c (alpha_call_dummy_words): New.
3950 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3951 (CALL_DUMMY_P): Define.
3952 (CALL_DUMMY_WORDS): Define.
3953 (SIZEOF_CALL_DUMMY_WORDS): Define.
3957 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3958 isn't NULL, which can happen with some gcj-3.x-produced code.
3962 * alpha-tdep.c (alpha_register_virtual_type): New function.
3963 (alpha_init_frame_pc_first): Ditto.
3964 (alpha_fix_call_dummy): Ditto.
3965 (alpha_store_struct_return): Ditto.
3966 (alpha_extract_struct_value_address): Ditto.
3967 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3968 alpha_register_virtual_type.
3969 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3970 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3971 alpha_extract_struct_value_address.
3972 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3973 (INIT_FRAME_PC): Use init_frame_pc_noop.
3974 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3978 * i386gnu-nat.c: Include "i386-tdep.h".
3979 (fetch_fpregs): Simplify code dealing with uninitialized floating
3980 point states such that it doesn't require FP7_REGNUM.
3984 * alpha-tdep.c (frame_extra_info): New.
3985 (alpha_find_saved_regs): Make static. Use
3987 (alpha_frame_init_saved_regs): New function.
3988 (alpha_frame_saved_pc): Use frame->extra_info.
3989 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3990 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3991 (init_extra_frame_info): Rename to...
3992 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3993 (alpha_print_extra_frame_info): New function.
3994 (alpha_frame_locals_address): Ditto.
3995 (alpha_frame_args_address): Ditto.
3996 (alpha_pop_frame): Use frame->extra_info.
3997 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3998 alpha_frame_args_address.
3999 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4000 (alpha_find_saved_regs): Remove prototype.
4001 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4002 (EXTRA_FRAME_INFO): Remove.
4003 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4004 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4008 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4009 (alpha_cannot_fetch_register): Ditto.
4010 (alpha_cannot_store_register): Ditto.
4011 (alpha_register_convertible): Ditto.
4012 (alpha_use_struct_convention): Ditto.
4013 * config/alpha/tm-alpha.h: Update copyright years.
4014 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4015 (INNER_THAN): Use core_addr_lessthan.
4016 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4017 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4018 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4019 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4020 (FRAME_CHAIN): Remove unnecessary cast.
4024 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4029 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4030 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4031 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4032 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4033 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4034 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4035 * x86-64-linux-nat.c: Ditto.
4039 * alpha-tdep.c (alpha_register_name): New function.
4040 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4041 (REGISTER_NAME): Define.
4045 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4049 * alpha-tdep.c: Update copyright years.
4050 (alpha_next_pc): New function.
4051 (alpha_software_single_step): Ditto.
4052 * config/alpha/tm-alpha.h: Add prototype for
4053 alpha_software_single_step.
4057 * alphabsd-nat.c: Update copyright years.
4058 (fill_gregset): Use regcache_collect.
4059 (fill_fpregset): Likewise.
4060 (fetch_inferior_registers): Only fetch integer registers
4061 if requested to do so.
4062 (store_inferior_registers): Only store integer registers
4063 if requested to do so.
4067 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4068 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4069 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4070 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4071 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4072 * config/arm/linux.mh (XDEPFILES): Delete.
4073 * config/arm/nbsd.mh (XDEPFILES): Delete.
4074 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4075 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4076 * config/i386/i386m3.mh (XDEPFILES): Delete.
4077 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4078 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4079 * config/i386/fbsd.mh (XDEPFILES): Delete.
4080 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4081 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4082 * config/i386/i386v4.mh (XDEPFILES): Delete.
4083 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4084 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4085 * config/i386/i386aix.mh (XDEPFILES): Delete.
4086 * config/i386/go32.mh (XDEPFILES): Delete.
4087 * config/i386/cygwin.mh (XDEPFILES): Delete.
4088 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4089 * config/i386/i386mach.mh (XDEPFILES): Delete.
4090 * config/i386/i386v32.mh (XDEPFILES): Delete.
4091 * config/i386/linux.mh (XDEPFILES): Delete.
4092 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4093 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4094 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4095 * config/i386/i386sco.mh (XDEPFILES): Delete.
4096 * config/i386/i386v.mh (XDEPFILES): Delete.
4097 * config/i386/nbsd.mh (XDEPFILES): Delete.
4098 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4099 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4100 * config/i386/symmetry.mh (XDEPFILES): Delete.
4101 * config/i386/obsd.mh (XDEPFILES): Delete.
4102 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4103 * config/ia64/linux.mh (XDEPFILES): Delete.
4104 * config/ia64/aix.mh (XDEPFILES): Delete.
4105 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4106 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4107 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4108 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4109 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4110 * config/m68k/linux.mh (XDEPFILES): Delete.
4111 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4112 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4113 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4114 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4115 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4116 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4117 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4118 * config/m88k/delta88.mh (XDEPFILES): Delete.
4119 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4120 * config/m88k/m88k.mh (XDEPFILES): Delete.
4121 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4122 * config/mips/linux.mh (XDEPFILES): Delete.
4123 * config/mips/irix6.mh (XDEPFILES): Delete.
4124 * config/mips/irix5.mh (XDEPFILES): Delete.
4125 * config/mips/irix4.mh (XDEPFILES): Delete.
4126 * config/mips/irix3.mh (XDEPFILES): Delete.
4127 * config/mips/decstation.mh (XDEPFILES): Delete.
4128 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4129 (NATDEPFILES): Move core-aout.o to here.
4130 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4131 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4132 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4133 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4134 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4135 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4136 * config/pa/hpux11.mh (XDEPFILES): Delete.
4137 * config/powerpc/aix.mh (XDEPFILES): Delete.
4138 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4139 * config/powerpc/linux.mh (XDEPFILES): Delete.
4140 * config/romp/rtbsd.mh: Rename XDEPFILES.
4141 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4142 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4143 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4144 * config/s390/s390.mh (XDEPFILES): Delete.
4145 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4146 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4147 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4148 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4149 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4150 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4151 * config/sparc/linux.mh (XDEPFILES): Delete.
4152 * config/vax/vaxult.mh (XDEPFILES): Delete.
4153 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4154 * Makefile.in (DEPFILES): Remove XDEPFILES.
4158 * utils.c (internal_verror): Fix comments, default is yes not no.
4159 Update queries to match. Default to quit and dump core.
4163 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4165 * defs.h, event-top.c, gdbcmd.h: Ditto.
4166 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4167 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4168 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4169 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4170 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4171 * mi/mi-main.c:Ditto.
4173 * stack.c, symfile.c: Update copyright.
4177 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4178 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4179 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4180 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4184 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4185 * gdbserver/low-lynx.c (myattach): Likewise.
4186 * gdbserver/low-nbsd.c (myattach): Likewise.
4187 * gdbserver/low-sim.c (myattach): Likewise.
4188 * gdbserver/low-sparc.c (myattach): Likewise.
4189 * gdbserver/low-sun3.c (myattach): Likewise.
4191 * gdbserver/low-linux.c (myattach): New function.
4193 * gdbserver/server.c (attach_inferior): New function.
4194 (main): Handle "--attach".
4198 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4203 * c-typeprint.c (is_type_conversion_operator): Add additional
4204 check for non-conversion operators.
4208 * linux-proc.c: Add "info proc" command, a la procfs.c.
4209 (read_mapping): New function, abstract and re-use code.
4210 (linux_find_memory_regions): Use new func read_mapping.
4211 (linux_info_proc_cmd): New function, implement "info proc".
4212 (_initialize_linux_proc): Add new command "info proc".
4216 * symfile.c (generic_load): Use bfd_map_over_sections method
4217 instead of manipulating bfd structure members directly.
4218 (add_section_size_callback): New function, bfd sections callback
4219 used by generic_load.
4220 (load_sections_callback): New function, bfd sections callback
4221 used by generic_load.
4225 [Based on work by Jim Blandy]
4226 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4227 (builtin_type_vec128): Export.
4228 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4230 (builtin_type_vec128): New builtin type for 128 bit vector
4232 (build_gdbtypes): Initialize builtin_type_v16qi and
4233 builtin_type_v8hi. Create the vec128 register builtin type
4235 (build_builtin_type_vec128): New function.
4236 (_initialize_gdbtypes): Register builtin_type_v16qi and
4237 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4238 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4239 AltiVec register to new builtin type.
4243 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4248 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4249 CLEAN_UP_REGISTER_VALUE.
4250 * regcache.c (supply_register): Update only call.
4254 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4255 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4256 a29k-*-vxworks* targets as obsolete.
4260 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4261 until we can resolve portability issues.
4262 * gregset.h: Remove references to fpxregs.
4263 * gcore.c (gcore_command): Initialize note_sec to NULL.
4267 * signals.c (target_signal_to_name): Rewrite. Only use
4268 signals[].name when in bounds and non-NULL.
4273 * signals.c (target_signal_to_name): Verify that SIG is within the
4274 bounds of the signals array.
4278 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4282 * stack.c (print_frame_info_base): Print the frame's pc
4283 only if when print_frame_info_listing_hook is not defined.
4287 * varobj.c (varobj_set_value): Make sure that there were no
4288 errors evaluating the object before attempting to set its
4290 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4291 so this offset adjustment is no longer necessary.
4292 (create_child): Don't set the error flag if the child is
4294 (value_of_child): If value_fetch_lazy fails, return NULL
4295 so that callers will be notified that an error occurred.
4296 (c_value_of_variable): Delay check of variable's validity
4297 until later. We actually want all structs and unions to have
4299 Do not return "???" for variables which could not be evaluated.
4300 This error condition must be returned to the caller so that it
4301 can get the error condition from gdb.
4302 (cplus_name_of_child): Adjust index for vptr before figuring
4303 out the name of the child.
4304 (cplus_value_of_child): If a child's (real) parent is not valid,
4305 don't even bother trying to give a value for it. Just return
4306 an error. Change all instances in this function.
4307 (cplus_type_of_child): If our parent is one of the "fake"
4308 parents, we need to get at the type of the real parent, and
4309 derive the child's true type using this information.
4314 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4315 sources.redhat.com, and tweak some related URLs which had
4316 suffered from linkrot.
4321 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4322 structures passed in registers.
4326 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4327 white space which prevented compilation. Reported by DSK
4332 * symfile.c (build_section_addr_info_from_section_tab):
4333 Use bfd access method instead of manipulating bfd directly.
4334 (syms_from_objfile): Ditto.
4335 (simple_overlay_update_1): Ditto.
4336 (simple_overlay_update): Ditto.
4337 (generic_load): Ditto.
4338 (overlay_unmapped_address): FIXME comment, bfd access methods.
4339 (sections_overlap): FIXME comment, bfd access methods.
4340 (pc_in_mapped_range): FIXME comment, bfd access methods.
4341 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4342 (section_is_mapped): FIXME comment, bfd access methods.
4343 (section_is_overlay): FIXME comment, bfd access methods.
4345 * symfile.c (generic_load): Whitespace and long line cleanups.
4346 Remove duplicate variable, change several local variables to
4347 more appropriate data types.
4348 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4353 * language.c (longest_local_hex_string_custom): Use phex_nz to
4354 convert NUM to a hex string.
4358 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4360 Update Copyright year.
4364 * language.c (longest_raw_hex_string): Delete unused function.
4368 * MAINTAINERS (write-after-approval): Add myself.
4369 * dwarf2read.c (read_tag_string_type): Handling of
4371 (read_tag_string_type): FORTRAN fix to prevent propagation of
4373 (set_cu_language): Handling of DW_LANG_Fortran95
4377 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4378 GETPID(inferior_ptid).
4379 (store_inferior_registers): Likewise.
4383 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4388 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4389 and bfd/elf32-sh-nbsd.c.
4393 * NEWS: Mention --pid and corefile/proc-id behavior change.
4395 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4396 * gcore.c: Include cli/cli-decode.h instead of command.h.
4398 * main.c (captured_main): Add new command line option "--pid".
4399 If the second command line argument (following the symbol-file)
4400 begins with a digit, try to attach to it before trying to open
4402 (print_gdb_help): Document the "--pid" argument.
4406 * completer.c (command_completer): New function.
4408 * completer.h <command_completer>: Add prototype.
4410 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4411 completer for the "help" command.
4415 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4419 * i386-linux-nat.c (fill_fpxregset): Make global.
4420 (store_fpxregset): Ditto.
4422 * gregset.h (gdb_fpxregset_t): Define.
4423 (supply_fpxregset): Prototype.
4424 (fill_fpxregset): Prototype.
4426 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4430 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4431 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4432 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4436 * MAINTAINERS: Update target maintainer rules so that any
4437 Maintainer can approve a tested patch for a maintenance-only
4442 * MAINTAINERS (write-after-approval): Add myself.
4444 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4449 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4450 real name of the executable, rather than the /proc name.
4454 Implement a "generate-core-file" command in gdb, save target state.
4455 * gcore.c: New file. Implement new command 'generate-core-file'.
4456 Save a corefile image of the current state of the inferior.
4457 * linux-proc.c: Add linux-specific code for saving corefiles.
4458 * target.h (struct target_ops): Add new target vectors for saving
4459 corefiles; to_find_memory_regions and to_make_corefile_notes.
4460 (target_find_memory_regions): New macro.
4461 (target_make_corefile_notes): New macro.
4462 * target.c (update_current_target): Inherit new target methods.
4463 (dummy_find_memory_regions): New place-holder method.
4464 (dummy_make_corefile_notes): New place-holder method.
4465 (init_dummy_target): Initialize new dummy target vectors.
4466 * exec.c (exec_set_find_memory_regions): New function.
4467 Allow the exec_ops vector for memory regions to be taken over.
4468 (exec_make_note_section): New function, target vector method.
4469 * defs.h (exec_set_find_memory_regions): Export prototype.
4470 * procfs.c (proc_find_memory_regions): New function, corefile method.
4471 (procfs_make_note_section): New function, corefile method.
4472 (init_procfs_ops): Set new target vector pointers.
4473 (find_memory_regions_callback): New function.
4474 (procfs_do_thread_registers): New function.
4475 (procfs_corefile_thread_callback): New function.
4476 * sol-thread.c (sol_find_memory_regions): New function.
4477 (sol_make_note_section): New function.
4478 (init_sol_thread_ops): Initialize new target vectors.
4479 * inftarg.c (inftarg_set_find_memory_regions): New function.
4480 Allow to_find_memory_regions vector to be taken over.
4481 (inftarg_set_make_corefile_notes): New function.
4482 Allow to_make_corefile_notes vector to be taken over.
4483 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4484 interface layer if not target_has_execution (may be a corefile).
4485 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4486 * config/sparc/sun4sol2.mh: Ditto.
4487 * config/alpha/alpha-linux.mh: Ditto.
4488 * config/arm/linux.mh: Ditto.
4489 * config/i386/x86-64linux.mh: Ditto.
4490 * config/ia64/linux.mh: Ditto.
4491 * config/m68k/linux.mh: Ditto.
4492 * config/mips/linux.mh: Ditto.
4493 * config/powerpc/linux.mh: Ditto.
4494 * config/sparc/linux.mh: Ditto.
4498 * arm-linux-nat.c: Remove references to regcache.c internal data
4499 (registers[] and register_valid[]).
4503 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4504 so that attaching to a pid will automatically read the process's
4505 symbol file and shlibs.
4506 * Makefile.in: Add rule for linux-proc.o.
4507 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4508 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4509 * config/arm/linux.mh: Ditto.
4510 * config/i386/linux.mh: Ditto.
4511 * config/i386/x86-64linux.mh: Ditto.
4512 * config/ia64/linux.mh: Ditto.
4513 * config/m68k/linux.mh: Ditto.
4514 * config/mips/linux.mh: Ditto.
4515 * config/powerpc/linux.mh: Ditto.
4516 * config/sparc/linux.mh: Ditto.
4520 * win32-nat.c: Add i386-tdep.h dependency.
4524 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4525 instead of bfd_get_arch_size. Don't bail out just because
4526 there's no exec_bfd.
4528 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4529 * p-valprint.c (pascal_object_print_value): Ditto.
4530 * somread.c (som_symtab_read): Ditto.
4531 * symfile.c (simple_free_overlay_region_table): Ditto.
4532 * valops.c (value_assign): Ditto.
4534 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4535 use tilde_expand and strerror for opening save-tracepoints file.
4537 * thread-db.c (thread_db_new_objfile): Indendation fix.
4539 * infptrace.c (GDB_MAX_ALLOCA): New define.
4540 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4541 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4542 can be overridden with whatever value is appropriate to the host).
4543 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4544 alloca to allocate potentially large buffer.
4545 * rs6000-nat.c (child_xfer_memory): Ditto.
4546 * symm-nat.c (child_xfer_memory): Ditto.
4547 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4552 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4556 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4557 Don't use exec_bfd if it's NULL.
4561 * valops.c (value_arg_coerce): Fix formatting.
4565 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4570 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4571 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4572 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4573 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4574 z8k-coff have not been multi-arched. Update z8k-coff build
4579 * MAINTAINERS: Mark a29k target as obsolete.
4580 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4581 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4583 * NEWS: Note that a29k targets are obsolete.
4584 * a29k-tdep.c: Mark as obsolete.
4585 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4586 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4587 a29k-*-vxworks* targets as obsolete.
4588 * remote-adapt.c: Obsolete.
4589 * remote-eb.c: Obsolete.
4590 * remote-mm.c: Obsolete.
4591 * remote-udi.c: Obsolete.
4592 * config/a29k/a29k-udi.mt: Obsolete.
4593 * config/a29k/a29k.mt: Obsolete.
4594 * config/a29k/tm-a29k.h: Obsolete.
4595 * config/a29k/tm-vx29k.h: Obsolete.
4596 * config/a29k/vx29k.mt: Obsolete.
4600 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4601 with BFD_ENDIAN_BIG.
4605 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4606 * configure, config.in: Re-generate.
4607 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4608 * defs.h: Do not include <endian.h>.
4612 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4613 * config.in: Regenerate.
4614 * configure.in: Update copyright years.
4615 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4616 * configure: Regenerate.
4617 * i386bsd-nat.c: Update copyright years.
4618 (fill_gregset): Use regcache_collect.
4619 (fetch_inferior_registers): Only fetch integer registers
4620 if requested to do so. Add support for XMM registers
4621 using PT_GETXMMREGS.
4622 (store_inferior_registers): Only store integer registers
4623 if requested to do so. Add support for XMM registers
4624 using PT_SETXMMREGS.
4625 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4626 (store_inferior_registers): Remove.
4627 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4628 (fetch_elfcore_registers): New function.
4629 (i386nbsd_elfcore_fns): New.
4630 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4631 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4633 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4634 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4635 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4636 * config/i386/tm-nbsd.h: Update copyright years.
4637 (HAVE_SSE_REGS): Define.
4638 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4639 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4640 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4641 (SIGCONTEXT_PC_OFFSET): Remove.
4642 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4646 * configure.tgt: Remove powerpc-*-macos* target.
4647 * config/m68k/xm-mpw.h: Delete file.
4648 * config/xm-mpw.h: Delete file.
4649 * ser-mac.c: Delete file.
4650 * mpw-make.sed: Delete file.
4651 * mpw-config.in: Delete file.
4652 * mac-xdep.c: Delete file.
4653 * mac-gdb.r: Delete file.
4654 * mac-defs.h: Delete file.
4655 * mac-nat.c: Delete file.
4656 * config/powerpc/macos.mh: Delete file.
4657 * config/powerpc/macos.mt: Delete file.
4658 * config/powerpc/nm-macos.h: Delete file.
4659 * config/powerpc/tm-macos.h: Delete file.
4660 * source.c (openp, open_source_file): Remove obsolete code.
4661 * top.c (gdb_readline): Ditto.
4662 * utils.c (query): Ditto.
4663 * event-top.c (display_gdb_prompt): Ditto.
4664 * Makefile.in (ser-mac.o): Delete obsolete target.
4669 * defs.h (BIG_ENDIAN): Delete macro definition.
4670 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4671 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4672 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4673 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4674 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4675 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4676 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4677 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4678 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4679 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4680 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4681 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4682 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4683 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4684 * gdbarch.c: Re-generate.
4688 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4693 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4697 * value.h (value_ptr): Delete typedef.
4701 * i386nbsd-nat.c: Update copyright years.
4702 Include i386-tdep.h.
4706 * stabsread.c: Update copyright years.
4709 (read_struct_fields): Deal with Sun C compiler erroneous stab
4710 output for structs and unions.
4715 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4720 * cp-abi.c: Fix whitespace.
4721 (baseclass_offset): New wrapper function.
4722 * cp-abi.h (baseclass_offset): Add prototype.
4723 (struct cp_abi_ops): Add baseclass_offset pointer.
4725 * valops.c (vb_match): Move to...
4726 * gnu-v2-abi.c (vb_match): here.
4727 * valops.c (baseclass_offset): Move to...
4728 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4730 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4732 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4733 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4734 * hpacc-abi.c (init_hpacc_ops): Likewise.
4738 * valops.c (find_overload_match): Accept obj as a
4739 reference parameter. Update it before returning.
4740 * value.h (find_overload_match): Update prototype.
4741 * eval.c (evaluate_subexp_standard): Pass object to
4742 find_overload_match by reference.
4746 * valarith.c: Replace value_ptr with struct value pointer. Remove
4747 register attribute from value declarations.
4750 * scm-lang.c (scm_lookup_name): Ditto.
4754 Abstract the functionality of iterating over mapped memory
4755 regions into a general purpose iterator function.
4756 * procfs.c (iterate_over_mappings): New function, general purpose
4757 iterator for memory sections.
4758 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4759 (solib_mappings_callback): New function, callback for above.
4760 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4761 (info_mappings_callback): New function, callback for above.
4763 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4767 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4768 * i386-tdep.c: Include "elf-bfd.h".
4769 (process_note_abi_tag_sections): New function.
4770 (i386_gdbarch_init): Add code to recognize various OS/ABI
4773 * maint.c (_initialize_maint_cmds): Add missing \ in
4776 For older changes see ChangeLog-2001
4782 version-control: never