3 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
4 and TARGET_WAITKIND_VFORKED cases.
8 * infrun.c (handle_inferior_event): Assume that catchpoints
9 are not affected by DECR_PC_AFTER_BREAK.
13 * target.c (update_current_target): Don't inherit DONT_USE.
14 * target.h (struct target_ops): Remove DONT_USE.
15 (target_next): Remove macro.
19 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
23 * arm-tdep.c (convert_from_extended): New argument to hold the
24 type of floating point result we want to convert to. Make input
25 argument const. Fix all callers.
26 (convert_to_extended): Similarly.
27 (arm_extract_return_value): Now takes a regcache argument. Change
28 code to use regcache accessor functions. Correctly extract
29 smaller-than-word results on big-endian machines.
30 (arm_store_return_value): Now takes a regcache argument. Change
31 code to use regcache accessor functions. Correctly zero/sign extend
32 smaller than word results before storing into r0.
33 (arm_gdbarch_init): Register new-style extract_return_value and
34 store_return_value functions.
38 * thread-db.c (thread_from_lwp): Uniquify error msg.
39 (lwp_from_thread): Ditto.
41 (find_new_threads_callback): Ditto.
42 (thread_db_pid_to_str): Ditto.
46 * frame.h (get_frame_saved_regs): Declare.
47 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
49 * frame.c (get_frame_saved_regs): New function.
50 (frame_saved_regs_zalloc): Return the allocated saved_regs.
54 * frame.c (deprecated_update_current_frame_pc_hack): New
56 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
57 * infrun.c (normal_stop): Use said function instead of directly
58 modifying the frame's PC.
62 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
66 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
67 config/mips/tm-irix6.h (NUM_REGS): Delete.
68 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
69 (temp_saved_regs): Declare as a pointer rather than an array.
70 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
71 that ``temp_saved_regs'' has storage allocated to it and that
72 it's the correct size.
76 * defs.h (init_last_source_visited): New prototype.
78 * source.c (add_path): New function that adds to a specified path.
79 (mod_path): Change to call add_path.
80 (init_last_source_visited): New function to allow interfaces to
81 initialize static variable: last_source_visited. Part of fix
83 * Makefile.in: Add support for mi/mi-cmd-env.c.
87 * frame.h (frame_id_unwind): Declare.
88 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
90 (frame_id_unwind_ftype): Declare.
91 * frame.c (frame_id_unwind): New function.
92 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
93 (create_new_frame, get_prev_frame): Pass id_unwind to
95 (frame_saved_regs_id_unwind): New function.
96 (frame_saved_regs_id_unwind): New function.
97 * dummy-frame.c (dummy_frame_id_unwind): New function.
98 (struct dummy_frame): Add field id.
99 (generic_push_dummy_frame): Initialize `id'.
100 * dummy-frame.h (dummy_frame_id_unwind): Declare.
104 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
105 pass that to set_momentary_breakpoint. Move comments to where they
107 * frame.h (set_current_frame): Delete declaration.
108 * frame.c (set_current_frame): Delete function.
112 * frame.c (frame_extra_info_zalloc): New function.
113 * frame.h (frame_extra_info_zalloc): Declare.
117 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
118 in the previous prototype change to set_momentary_breakpoint.
122 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
124 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
125 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
126 (stop_stepping): Remove outdated check for child vfork events.
130 * GDB 5.3 released from gdb_5_3-branch.
134 * corelow.c (init_core_ops): Delete references to to_require_attach
135 and to_require_detach.
136 * exec.c (init_exec_ops): Likewise.
137 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
138 hppa_require_detach directly.
139 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
140 * inftarg.c (child_detach): Remove.
141 (child_detach_from_process): Rename to child_detach, remove
143 (child_attach): Remove.
144 (child_attach_to_process): Rename to child_attach, remove after_fork
146 (init_child_ops): Delete references to to_require_attach
147 and to_require_detach.
148 * infttrace.c (hppa_require_attach): Update comment.
149 * target.c (cleanup_target, update_current_target)
150 (init_dummy_target, setup_target_debug): Delete references to
151 to_require_attach and to_require_detach.
152 (find_default_require_detach, find_default_require_attach)
153 (debug_to_require_attach, debug_to_require_detach): Remove
155 * target.h (struct target_ops): Remove to_require_attach
156 and to_require_detach.
157 (target_require_attach, target_require_detach): Delete macros.
158 (find_default_require_detach, find_default_require_attach): Delete
160 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
164 * frame.c (get_frame_extra_info): New function.
165 * frame.h (get_frame_extra_info): Declare.
169 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
170 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
171 with `struct frame_id'.
172 (set_longjmp_resume_breakpoint): Ditto.
173 * infrun.c (handle_inferior_event): Update.
174 * breakpoint.c (watch_command_1, until_break_command): Update.
175 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
176 (handle_inferior_event, step_over_function): Update.
177 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
178 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
179 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
180 * infcmd.c (finish_command, run_stack_dummy): Update.
184 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
185 (dwarf2_non_const_array_bound_ignored)
186 (dwarf2_missing_line_number_section)
187 (dwarf2_statement_list_fits_in_line_number_section)
188 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
189 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
190 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
191 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
192 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
193 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
194 (dwarf2_missing_member_fn_type_complaint)
195 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
196 (dwarf2_const_value_length_mismatch)
197 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
198 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
199 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
200 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
201 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
202 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
203 complaints using deprecated struct..
204 (dwarf2_non_const_array_bound_ignored_complaint)
205 (dwarf2_complex_location_expr_complaint)
206 (dwarf2_unsupported_at_frame_base_complaint)
207 (dwarf2_const_value_length_mismatch_complaint)
208 (dwarf2_macros_too_long_complaint)
209 (dwarf2_macro_malformed_definition_complaint)
210 (dwarf2_invalid_attrib_class_complaint): New functions.
211 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
212 (read_structure_scope, read_array_type, read_common_block)
213 (read_tag_pointer_type, read_base_type, read_partial_die)
214 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
215 (new_symbol, dwarf2_const_value, read_type_die)
216 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
217 (parse_macro_definition, dwarf_decode_macros): Replace calls to
218 complain() with, possibly indirect, calls to complaint().
222 * frame.c (deprecated_get_frame_saved_regs): Rename
223 get_frame_saved_regs.
224 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
225 * sparc-tdep.c: Update.
226 * hppa-tdep.c: Update.
227 * h8500-tdep.c: Update.
231 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
232 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
233 ``char *'' for return and parameter types.
234 * gdbarch.h, gdbarch.c: Regenerate.
235 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
236 return type from ``char *'' to ``const char *''.
237 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
242 * i386-tdep.c: Include "dummy-frame.h".
243 (i386_frame_chain, i386_frame_saved_pc): Replace
244 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
245 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
249 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
250 Change to a function with predicate.
251 * gdbarch.h, gdbarch.c: Re-generate.
252 * frame.c (get_prev_frame): Update. Test
253 DEPRECATED_INIT_FRAME_PC_P.
254 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
255 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
256 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
257 * alpha-tdep.c (alpha_gdbarch_init): Update.
258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
259 * mips-tdep.c (mips_gdbarch_init): Update.
260 * i386-interix-tdep.c (i386_interix_init_abi): Update.
261 * arm-tdep.c: Update comments.
262 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
263 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
264 * frv-tdep.c (frv_gdbarch_init): Ditto.
265 * x86-64-tdep.c (x86_64_init_abi): Ditto.
266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
267 * s390-tdep.c (s390_gdbarch_init): Ditto.
268 * v850-tdep.c (v850_gdbarch_init): Ditto.
269 * vax-tdep.c (vax_gdbarch_init): Ditto.
270 * sh-tdep.c (sh_gdbarch_init): Ditto.
271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
275 * i386-tdep.c (i386_gdbarch_init): Ditto.
276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
277 * cris-tdep.c (cris_gdbarch_init): Ditto.
278 * avr-tdep.c (avr_gdbarch_init): Ditto.
279 * arm-tdep.c (arm_gdbarch_init): Ditto.
280 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
281 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
285 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
287 * hppah-nat.c (saved_vfork_pid): Add.
288 (child_post_follow_vfork): Remove.
289 (child_follow_fork): New function.
290 (child_wait): Call detach_breakpoints after receiving the child vfork.
291 Call child_resume directly instead of going through resume ().
292 Make sure we have the exec before reporting the vfork.
293 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
294 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
295 (follow_fork): New function. Call target_follow_fork.
296 (follow_inferior_reset_breakpoints): New function broken out from
297 old follow_inferior_fork.
298 (resume): Remove hack to follow exec after vfork.
299 * inftarg.c (child_post_follow_vfork): Remove.
300 (child_follow_fork): New function.
301 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
302 * target.c (cleanup_target): Replace to_post_follow_vfork with
304 (update_current_target): Likewise.
305 (setup_target_debug): Likewise.
306 (debug_to_post_follow_vfork): Remove.
307 (debug_to_follow_fork): New function.
308 * target.h (struct target_ops): Replace to_post_folow_vfork with
310 (child_post_follow_vfork): Remove prototype.
311 (child_follow_fork): Add prototype.
312 (target_post_follow_vfork): Remove macro.
313 (target_follow_fork): Add macro.
317 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
318 (child_post_follow_vfork): Cancel pending exec event if we follow
320 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
321 events have been processed. Return a fake TARGET_WAITKIND_EXECD
322 event at the following wait call if necessary.
323 * infrun.c (follow_vfork): Don't follow_exec here.
324 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
325 case about HP/UX 10.20. Remove code pushed down to
326 hppah-nat.c:child_wait.
327 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
328 vfork_in_flight is set.
332 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
333 for the parent's fork event.
334 * infrun.c (handle_inferior_event): Only expect one fork event.
335 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
336 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
340 * PROBLEMS: Delete reference to PR gdb/725.
342 * MAINTAINERS (gdb.c++): Add David Carlton.
346 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
347 * cli/cli-cmds.c: Ditto.
351 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
352 function address in <>.
353 * gdbarch.c: Re-generate.
357 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
361 * linespec.c (symtab_from_filename): New function.
362 (decode_line_1): Move code into symtab_from_filename.
366 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
370 * f-valprint.c (info_common_command): Use get_frame_pc.
371 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
372 * ax-gdb.c (agent_command): Ditto.
373 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
374 (rs6000_pop_frame): Ditto.
375 (rs6000_frameless_function_invocation): Ditto.
376 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
377 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
378 * macroscope.c (default_macro_scope): Ditto.
379 * stack.c (print_frame_info_base): Ditto.
380 (print_frame, frame_info, print_frame_label_vars): Ditto.
381 (return_command, func_command, get_frame_language): Ditto.
382 * infcmd.c (finish_command): Ditto.
383 * dummy-frame.c (cached_find_dummy_frame): Ditto.
384 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
385 (break_at_finish_at_depth_command_1): Ditto.
386 (break_at_finish_command_1): Ditto.
387 (until_break_command, get_catch_sals): Ditto.
388 * blockframe.c (func_frame_chain_valid): Ditto.
389 (frameless_look_for_prologue): Ditto.
390 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
394 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
395 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
399 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
401 * gdbarch.h, gdbarch.c: Re-generate.
402 * frame.c (get_prev_frame): Explictly assign prev's pc with value
403 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
405 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
406 declaration to a function returning a CORE_ADDR.
407 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
408 * arch-utils.c (init_frame_pc_noop): Return the PC value.
409 (init_frame_pc_default): Ditto.
410 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
411 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
412 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
413 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
414 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
415 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
417 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
418 to init_frame_pc_noop.
419 (i386_interix_init_frame_pc): Delete function.
420 * z8k-tdep.c (init_frame_pc): Delete function.
421 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
422 (INIT_FRAME_PC_FIRST): Ditto.
423 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
424 (INIT_FRAME_PC_FIRST): Ditto.
425 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
426 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
428 (INIT_FRAME_PC_FIRST): Convert to an expression.
429 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
433 * blockframe.c: Use get_frame_base instead of directly accessing
434 the `struct frame_info' member frame.
435 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
436 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
440 * Makefile.in (readline_h): Define.
441 (completer.o): Depend on readline_h.
443 (event-top.o): Ditto.
450 (tracepoint.o): Ditto.
453 (tui-hooks.o): Ditto.
458 More cleanup from import of readline 4.3.
459 * completer.h (complete_line, readline_line_completion_function):
461 (line_completion_function): Removed, not used outside of completer.c.
462 * completer.c (readline_line_completion_function,
463 complete_function, line_completion_function): Use const for first
465 (line_completion_function): Make static.
466 (filename_completer): filename_completion_function is now called
467 rl_filename_completion_function
468 * corelow.c: Include <readline/readline.h>.
474 * top.c (init_main): No need to coerce
475 readline_line_completion_function anymore.
476 * cli/cli-dump.c: Include <readline/readline.h>.
480 * stack.c (frame_info): Use get_prev_frame.
481 * blockframe.c (frame_address_in_block): Ditto.
482 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
483 (rs6000_frameless_function_invocation): Ditto.
484 (rs6000_frame_saved_pc): Ditto.
485 (rs6000_frame_chain): Ditto.
486 * arch-utils.c (init_frame_pc_default): Ditto.
490 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
491 Delete redundant definition.
495 Import of readline 4.3:
496 * cli/cli-cmds.c: Include readline/tilde.h.
497 * cli/cli-setshow.c: Ditto.
498 * defs.h: Don't declare tilde_expand anymore, since readline
503 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
504 -Werror on this file.
508 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
510 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
511 * gdbarch.c: Regenerate.
515 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
516 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
517 provide a default value.
518 * gdbarch.h, gdbarch.c: Regenerate.
519 * frame.c (get_prev_frame): Update. Check
520 DEPRECATED_INIT_FRAME_PC_FIRST_P.
521 * s390-tdep.c (s390_gdbarch_init): Update.
522 * mips-tdep.c (mips_gdbarch_init): Update.
523 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
524 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
525 * alpha-tdep.c (alpha_gdbarch_init): Update.
529 * ia64-linux-nat.c: Include gdb_string.h.
530 * alpha-nat.c: Ditto.
531 * ppc-linux-nat.c: Ditto.
532 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
537 * gdbthread.h: Include "frame.h".
538 (struct thread_info): Replace step_frame_address with
540 * inferior.h: Include "frame.h".
541 (step_frame_id): Replace external variable step_frame_address.
542 * gdbthread.h (save_infrun_state): Replace step_frame_address
543 parameter with step_frame_id parameter.
544 (load_infrun_state): Ditto.
545 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
546 * infcmd.c (step_frame_id, step_1, step_once): Update.
547 * thread.c (load_infrun_state, save_infrun_state): Update.
548 * infrun.c (clear_proceed_status, save_inferior_status): Update.
549 (handle_inferior_event, step_over_function): Update.
550 (normal_stop, context_switch, restore_inferior_status): Update.
551 (struct inferior_status): Replace step_frame_address with
556 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
557 DW_TAG_member as well as a declaration as being a C++ static data
559 (read_structure_scope): Combine tests for DW_TAG_member and
564 * linespec.c (decode_compound): New function.
565 (decode_line_1): Move code into decode_compound.
569 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
571 (lookup_symbol_aux): Do the 'field_of_this' check before checking
572 the static block. See PR gdb/804.
576 * symtab.c (lookup_symbol_aux_block): New function.
577 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
581 * gdbarch.sh: Dump the predicate function and macro values.
582 (read): Print error on standard error.
583 * gdbarch.c: Regenerate.
587 * Makefile.in (mips_tdep_h): Define.
588 (mips-tdep.o): Add mips_tdep_h to dependency list.
589 * mips-tdep.h: New file.
590 * mips-tdep.c (mips-tdep.h): Include.
591 (enum mips_abi): Move to mips-tdep.h.
592 (mips_abi): New function.
596 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
600 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
602 (lookup_symbol_aux_minsyms): New function.
606 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
610 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
611 which is an obsolete macro name.
615 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
616 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
620 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
621 (create_breakpoints): Make sure the addr_string field is not
626 * sparc-nat.c (fetch_inferior_registers)
627 (store_inferior_registers): Add comment on problem of LWP vs
631 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
632 (lin_lwp_store_registers): Remove.
633 (init_lin_lwp_ops): Use fetch_inferior_registers
634 and store_inferior_registers directly.
635 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
636 (store_inferior_registers): Likewise.
641 * frame.h (get_frame_id): Convert to a function.
642 (null_frame_id, frame_id_p): Declare.
643 (frame_id_eq, frame_id_inner): Declare.
644 (frame_id_build): New function.
645 * frame.c (get_frame_id): Update. Use null_frame_id.
646 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
648 (null_frame_id, frame_id_p): Define.
649 (frame_id_eq, frame_id_inner): Define.
650 (frame_id_build): New function.
651 * varobj.c (varobj_create): Update.
652 (varobj_update): Update.
653 * valops.c (value_assign): Update.
654 (new_root_variable): Update.
655 * infrun.c (save_inferior_status): Update.
656 * breakpoint.c (watch_command_1): Update.
660 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
665 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
668 * PROBLEMS: Mention PR gdb/725.
672 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
677 * objc-lang.c (objc_printstr): Add width arg to match
679 (compare_selectors): Add 'const' to arg types.
680 (compare_classes): Likewise.
681 (find_imps): Cast msym pointer to avoid compiler warning.
682 (print_object_command): Validate the address before
683 passing it to the print routine.
684 (find_objc_msgcall_submethod): Change function argument to
686 * objc-lang.h: Add 'extern' to all function declarations.
687 (value_nsstring): Add declaration.
691 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
692 Fixes a build failure on HP/UX.
694 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
696 (hpread_has_name): Advance declaration to avoid a compilation warning.
697 (pst_syms_count): Add missing variable type. By change, the compiler
698 was defaulting to int, which seems a good choice. Fixes a compilation
700 (pst_syms_size): Likewise.
704 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
705 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
706 later to set the proper gdbarch methods depending on the osabi.
707 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
711 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
712 * osabi.c (gdb_osabi_name): Add strings images for the two new
714 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
718 * MAINTAINERS (Java): Global maintainers are responible for Java.
719 (Past Maintainers): Mention both Anthony Green and Per Bothner as
720 part Java maintainers.
724 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
725 Fixes a compilation failure on AiX.
729 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
730 why aix-thread.o is not listed.
734 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
735 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
736 * gdbarch.h, gdbarch.c: Re-generate.
737 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
738 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
739 * config/pa/tm-hppa.h, frame.h: Update.
740 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
741 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
742 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
743 * cris-tdep.c, alpha-tdep.c: Update.
744 * frame.c (set_unwind_by_pc, create_new_frame): Use either
745 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
746 (get_prev_frame): Ditto.
750 * exec.c (xfer_memory): Replace boolean with int.
751 * p-exp.y: Use 0 instead of false.
752 * corelow.c (gdb_check_format): Change return type to int from
754 * utils.c: Don't include <curses.h> or <term.h> first.
758 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
759 (m68hc11_register_byte): Remove.
760 (m68hc11_gdbarch_init): Don't set the above.
764 * remote-mips.c (mips_initialize): Force a selected frame rebuild
765 by calling get_selected_frame.
766 * ocd.c (ocd_start_remote): Use get_selected frame instead of
767 set_current_frame, create_new_frame, select_frame and
769 * remote-e7000.c (e7000_start_remote): Ditto.
770 * remote-mips.c (common_open): Ditto
771 * remote-rdp.c (remote_rdp_open): Ditto.
775 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
776 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
777 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
778 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
779 read_memory_unsigned_integer instead of read_memory_integer when
780 dealing with addresses and instruction opcodes.
781 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
782 (m68k_linux_frame_saved_pc): Likewise.
786 * stack.c (selected_frame, select_frame): Move from here ...
787 * frame.c (selected_frame, select_frame): ... to here. Include
789 * Makefile.in (frame.o): Update dependencies.
790 * frame.c (get_selected_frame): New function.
791 * frame.h (get_selected_frame): Declare.
792 (deprecated_selected_frame): Rename selected_frame.
793 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
794 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
795 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
796 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
797 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
798 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
799 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
800 * z8k-tdep.c, cli/cli-cmds.c: Update.
804 * frame.h (get_selected_block): Add comments.
808 * frame.c (pc_notcurrent): New function.
809 (find_frame_sal): New function.
810 * frame.h (find_frame_sal): Declare.
811 (struct symtab_and_line): Add opaque declaration.
812 * stack.c (print_frame_info_base): Use find_frame_sal instead of
815 * ada-lang.c (find_printable_frame): Ditto.
819 * configure.in: Check that the pthdebug library is recent enough
820 before enabling thread support on native AiX.
821 * configure: Regenerate.
823 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
824 from the list of object files as it is now appended by configure
825 if thread support is enabled.
826 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
827 if thread support is enabled.
831 * stack.c (get_selected_block): In-line get_current_block.
832 * frame.h (get_current_block): Delete declaration.
833 * blockframe.c (get_current_block): Delete function.
837 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
838 USE_GENERIC_DUMMY_FRAMES.
839 * gdbarch.h, gdbarch.c: Regenerate.
840 * valops.c, frame.c: Update.
841 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
842 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
843 * config/pa/tm-hppa.h, blockframe.c: Update.
844 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
845 * m68k-tdep.c, alpha-tdep.c: Ditto.
847 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
848 * mips-tdep.c: Ditto.
852 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
853 (USE_GENERIC_DUMMY_FRAMES): Default to true.
854 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
855 * gdbarch.c, gdbarch.h: Re-generate.
856 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
857 (CALL_DUMMY_LOCATION): Delete macro definition.
858 (PC_IN_CALL_DUMMY): Delete macro definitions.
860 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
861 default is already generic_pc_in_call_dummy.
862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
863 * v850-tdep.c (v850_gdbarch_init): Ditto.
864 * sh-tdep.c (sh_gdbarch_init): Ditto.
865 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
866 * mips-tdep.c (mips_gdbarch_init): Ditto.
867 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
871 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
872 * avr-tdep.c (avr_gdbarch_init): Ditto.
874 * arm-tdep.c (arm_gdbarch_init): Do not set
875 use_generic_dummy_frames, default is already 1.
876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
877 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
878 * v850-tdep.c (v850_gdbarch_init): Ditto.
879 * sh-tdep.c (sh_gdbarch_init): Ditto.
880 * s390-tdep.c (s390_gdbarch_init): Ditto.
881 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
882 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
883 * mips-tdep.c (mips_gdbarch_init): Ditto.
884 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
886 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
887 * i386-tdep.c (i386_gdbarch_init): Ditto.
888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
889 * frv-tdep.c (frv_gdbarch_init): Ditto.
890 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
891 * cris-tdep.c (cris_gdbarch_init): Ditto.
892 * avr-tdep.c (avr_gdbarch_init): Ditto.
894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
895 call_dummy_location, default is already AT_ENTRY_POINT.
896 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
897 * v850-tdep.c (v850_gdbarch_init): Ditto.
898 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
899 * sh-tdep.c (sh_gdbarch_init): Ditto.
900 * s390-tdep.c (s390_gdbarch_init): Ditto.
901 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
902 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
903 * mips-tdep.c (mips_gdbarch_init): Ditto.
904 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
907 * i386-tdep.c (i386_gdbarch_init): Ditto.
908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
909 * frv-tdep.c (frv_gdbarch_init): Ditto.
910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
911 * cris-tdep.c (cris_gdbarch_init): Ditto.
912 * avr-tdep.c (avr_gdbarch_init): Ditto.
913 * arm-tdep.c (arm_gdbarch_init): Ditto.
914 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
918 * frame.h: Update comments on set_current_frame, create_new_frame,
919 flush_cached_frames, reinit_frame_cache, select_frame and
924 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
925 deprecated pc_in_call_dummy function.
926 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
927 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
928 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
929 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
930 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
934 * Makefile.in: Remove Tix dependencies.
935 * acinclude.m4: Ditto.
937 * configure.in: Ditto.
938 * configure: Regenerated.
942 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
943 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
944 * gdbarch.c: Re-generate.
948 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
949 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
950 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
951 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
952 pc_in_call_dummy_at_entry_point.
953 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
954 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
955 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
956 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
957 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
958 pc_in_call_dummy_on_stack.
959 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
960 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
961 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
962 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
963 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
967 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
968 pc_in_call_dummy_before_text_end
969 (deprecated_pc_in_call_dummy_after_text_end): Rename
970 pc_in_call_dummy_after_text_end.
971 (deprecated_pc_in_call_dummy_on_stack): Rename
972 pc_in_call_dummy_on_stack.
973 (deprecated_pc_in_call_dummy_at_entry_point): Rename
974 pc_in_call_dummy_at_entry_point.
975 * m68k-tdep.c (m68k_gdbarch_init): Update.
976 * s390-tdep.c (s390_gdbarch_init): Update.
977 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
978 * vax-tdep.c (vax_gdbarch_init): Update.
979 * sparc-tdep.c (sparc_gdbarch_init): Update.
980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
982 * i386-tdep.c (i386_gdbarch_init): Update.
983 * frv-tdep.c (frv_gdbarch_init): Update.
984 * cris-tdep.c (cris_gdbarch_init): Update.
985 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
986 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
987 (deprecated_pc_in_call_dummy_after_text_end)
988 (deprecated_pc_in_call_dummy_on_stack)
989 (deprecated_pc_in_call_dummy_at_entry_point): Update.
990 * alpha-tdep.c (alpha_gdbarch_init): Update.
994 * acconfig.h (HAVE_PREAD64): Add.
995 * configure.in: Check for pread64.
996 * config.in: Regenerated.
997 * configure: Regenerated.
998 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
999 * linux-proc.c (linux_proc_xfer_memory): New function.
1000 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1004 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1009 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1014 * symfile.c (init_objfile_sect_indices): New function.
1015 (default_symfile_offsets): Move the section-index-initializing
1016 stuff into init_objfile_sect_indices, and call that.
1018 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1019 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1021 * symfile.c (syms_from_objfile): Adjust indentation.
1023 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1024 || info_verbose isn't true.
1028 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1029 default to get_frame_base.
1030 * gdbarch.h, gdbarch.c: Regenerate.
1031 * arch-utils.c (default_frame_address): Delete function.
1032 * arch-utils.h (default_frame_address): Delete declaration
1036 * varobj.c (find_frame_addr_in_frame_chain):
1037 Use get_frame_base instead of FRAME_FP,
1042 * frame.h (FRAME_FP): Delete macro.
1043 (get_frame_base): New function declaration.
1044 * frame.c (get_frame_base): New function.
1045 (get_frame_id): Use ->frame.
1046 (frame_find_by_id): Rewrite to use get_frame_id.
1047 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1048 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1049 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1050 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1051 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1052 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1053 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1057 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1061 * frame.c (set_unwind_by_pc): Revert change below, use
1063 (get_prev_frame): Ditto.
1067 * dummy-frame.c (pc_in_dummy_frame): New function.
1068 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1069 (find_dummy_frame): Update comment.
1070 (generic_pop_current_frame): Use get_frame_type.
1071 * dummy-frame.h (pc_in_dummy_frame): Declare.
1072 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1073 (create_new_frame): Use pc_in_dummy_frame.
1074 (get_prev_frame): Use pc_in_dummy_frame.
1075 (frame_saved_regs_register_unwind): Use get_prev_frame.
1076 (deprecated_generic_get_saved_register): Use get_prev_frame.
1080 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1082 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1083 (varobj_create): Note that frame ID should be used.
1084 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1088 * breakpoint.c: Include "gdb_assert.h".
1089 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1091 * Makefile.in (breakpoint.o): Update dependencies.
1092 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1093 deprecated_frame_in_dummy.
1094 * stack.c (print_frame_info_base): Ditto.
1095 (frame_info): Ditto.
1096 (print_frame_info_base): Ditto. Delete dead code.
1100 * Makefile.in (m68k_tdep_h): Define.
1101 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1102 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1103 * m68k-tdep.c: Move register number enum ...
1104 * m68k-tdep.h: ... to this new file and rename the constants from
1105 E_* to M68K_*. All uses changed.
1106 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1107 * abug-rom.c: Include "m68k-tdep.h". Use
1108 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1109 * cpu32bug-rom.c: Likewise.
1110 * dbug-rom.c: Likewise.
1111 * m68k-tdep.c: Likewise.
1112 * m68klinux-nat.c: Likewise.
1113 * remote-est.c: Likewise.
1114 * rom68k-rom.c: Likewise.
1115 * config/m68k/tm-linux.h: Likewise.
1119 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1120 dummy frame initialization code.
1121 * mips-tdep.c (mips_gdbarch_init): Ditto.
1125 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1130 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1131 to default_frame_address.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1134 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1135 or frame_locals_address to default_frame_address.
1136 * m68k-tdep.c (m68k_gdbarch_init): Update.
1137 * i386-tdep.c (i386_gdbarch_init): Update.
1138 * frv-tdep.c (frv_gdbarch_init): Update.
1139 * sh-tdep.c (sh_gdbarch_init): Update.
1140 * v850-tdep.c (v850_gdbarch_init): Update.
1141 * sparc-tdep.c (sparc_gdbarch_init): Update.
1142 * mips-tdep.c (mips_gdbarch_init): Update.
1143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1144 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1147 * cris-tdep.c (cris_frame_args_address): Delete function.
1148 (cris_frame_locals_address): Delete function.
1149 (cris_gdbarch_init): Do not set frame_args_address or
1150 frame_locals_address.
1154 * thread-db.c (thread_db_load): Tell the user what's going on
1155 if dlopen fails on libthread_db.
1159 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1160 invariant return values.
1164 * valops.c (value_slice): Move declaration of `offset' to avoid
1169 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1170 (struct so_stuff): Add end_addr field.
1171 (register_loaded_dll): Calculate and store end address of loaded dll.
1172 (solib_address): New function.
1173 (child_solib_loaded_library_pathname): Pass carefully constructed
1174 section info to safe_symbol_file_add rather than ignoring it.
1175 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1177 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1178 (child_create_inferior): Fix a compiler warning.
1179 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1180 (solib_address): Declare new function.
1184 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1189 * maint.c (_initialize_maint_cmds): Fix typo. From
1194 * mips-tdep.c (mips_dump_tdep): Delete references to
1195 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1196 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1197 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1198 * printcmd.c (build_address_symbolic): Delete calls to
1199 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1200 (address_info): Ditto.
1206 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1207 the ability to explicitly specify the quote characters and word
1208 break characters; if NULL is specified for either, use the old
1209 behavior of using the characters used by the completer.
1210 (skip_chars): New function. Convenience wrapper around
1211 skip_quoted_chars to provide the original skip_chars behavior.
1212 * completer.h (skip_quoted_chars): Add prototype.
1216 Problems reported by Paul Eggert.
1217 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1221 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1222 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1223 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1224 (m68k_linux_frame_saved_pc): Move to ...
1225 * m68klinux-tdep.c: ... here. New file.
1226 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1227 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1231 * objc-exp.y: Revert to old skip_quoted usage.
1235 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1236 (objc_lang_h): Define.
1237 (YYFILES): Add objc-exp.tab.c.
1238 (local-maintainer-clean): Remove objc-exp.tab.c.
1239 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1243 * p-exp.y (typecast rule): Add automatic dereference of
1244 pascal classes if needed.
1245 (THIS): Set current_type.
1246 Automatically dereference pascal classes.
1247 (typebase rule): Add ^typebase recognition.
1251 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1252 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1253 (op_name): Handle OP_OBJC_SELF.
1254 * Makefile.in (expprint.o): Add additional depends.
1258 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1259 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1260 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1261 * objc-exp.y: Likewise.
1265 * gdb/parser-defs.h: (struct objc_class_str): New structure
1266 for parsing ObjC classes.
1270 * stack.c (frame_relative_level): Copy function from here ...
1271 * frame.c (frame_relative_level): ...to here.
1275 * frame.h (enum frame_type): Define.
1276 (get_frame_type): Declare.
1277 (struct frame_info): Add field `type'. Delete field
1278 signal_handler_caller.
1279 (deprecated_set_frame_signal_handler_caller): Declare.
1280 * frame.c (get_frame_type): New function.
1281 (deprecated_set_frame_type): New function.
1282 (create_new_frame): Set the frame's type.
1283 (get_prev_frame): Similar.
1284 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1285 * s390-tdep.c: Ditto.
1286 * m68klinux-nat.c: Ditto.
1287 * ns32k-tdep.c: Ditto.
1288 * x86-64-linux-tdep.c: Ditto.
1289 * vax-tdep.c: Ditto.
1290 * rs6000-tdep.c: Ditto.
1291 * ppc-linux-tdep.c: Ditto.
1292 * i386-interix-tdep.c: Ditto.
1293 * mips-tdep.c: Ditto.
1294 * m68k-tdep.c: Ditto.
1295 * hppa-tdep.c: Ditto.
1296 * ia64-tdep.c: Ditto.
1297 * cris-tdep.c: Ditto.
1298 * arm-tdep.c: Ditto.
1299 * alpha-tdep.c: Ditto.
1300 * i386-tdep.c: Ditto.
1302 * ada-lang.c: Ditto.
1303 * blockframe.c: Update.
1304 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1305 deprecated_set_frame_type instead of signal_handler_caller.
1306 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1307 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1308 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1312 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1316 * buildsym.c (pop_context): Add comment.
1320 * buildsym.h (pop_context): Convert to function, defined in
1322 * buildsym.c: Include gdb_assert.h.
1323 (pop_context): Implement as C function. Add check for stack
1325 * dbxread.c (process_one_symbol): Complain and stop processing
1326 that symbol if we are already at the top of the context stack for
1327 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1328 when processing N_RBRAC.
1332 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1334 (struct target_waitstatus): Add opaque definition.
1335 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1336 * exec.c (init_exec_ops): Likewise.
1337 * fork-child.c (clone_and_follow_inferior): Remove.
1338 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1339 * inferior.h (clone_and_follow_inferior): Remove prototype.
1340 * infrun.c (follow_fork_mode_both): Remove.
1341 (follow_fork_mode_kind_names): Remove commented out "both".
1342 (follow_inferior_fork): Remove follow_fork_mode_both support.
1343 * inftarg.c (child_clone_and_follow_inferior): Remove.
1344 (child_post_follow_inferior_by_clone): Remove.
1345 (init_child_ops): Don't set to_clone_and_follow_inferior
1346 or to_post_follow_inferior_by_clone.
1347 * target.c (default_clone_and_follow_inferior): Remove.
1348 (cleanup_target): Don't set to_clone_and_follow_inferior
1349 or to_post_follow_inferior_by_clone.
1350 (find_default_clone_and_follow_inferior): Remove.
1351 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1352 (debug_to_clone_and_follow_inferior): Remove.
1353 (debug_to_post_follow_inferior_by_clone): Remove.
1354 (setup_target_debug): Don't set to_clone_and_follow_inferior
1355 or to_post_follow_inferior_by_clone.
1356 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1357 and to_post_follow_inferior_by_clone.
1358 (child_clone_and_follow_inferior): Remove prototype.
1359 (child_post_follow_inferior_by_clone): Remove prototype.
1360 (target_clone_and_follow_inferior): Remove macro.
1361 (target_post_follow_inferior_by_clone): Remove macro.
1362 (find_default_clone_and_follow_inferior): Remove prototype.
1366 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1367 inferior_has_vforked, and inferior_has_execd instead of
1368 target_has_forked, target_has_vforked, and target_has_execd.
1369 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1370 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1371 (CHILD_WAIT): Define.
1372 (child_wait): Add prototype.
1373 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1375 (hpux_has_vforked): Likewise, from child_has_vforked.
1376 (hpux_has_execd): Likewise, from child_has_execd.
1377 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1378 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1379 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1380 and hpux_has_syscall_event instead of the target hooks.
1381 * infrun.c (inferior_has_forked, inferior_has_vforked)
1382 (inferior_has_execd): New functions.
1383 * inftarg.c (not_same_real_pid): Remove.
1384 (child_wait): Remove references to not_same_real_pid,
1385 target_has_forked, target_has_vforked, target_has_execd,
1386 and target_has_syscall_event.
1387 (child_has_forked, child_has_vforked, child_has_execd)
1388 (child_has_syscall_event): Remove.
1389 (init_child_ops): Remove references to child_has_forked,
1390 child_has_vforked, child_has_execd, and child_has_syscall_event.
1391 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1392 (hpux_has_vforked): Likewise, from child_has_vforked.
1393 (hpux_has_execd): Likewise, from child_has_execd.
1394 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1395 * target.c (cleanup_target): Remove references to
1396 to_has_forked, to_has_vforked, to_has_execd, and
1397 to_has_syscall_event.
1398 (update_current_target): Likewise.
1399 (setup_target_debug): Likewise.
1400 (debug_to_has_forked): Remove.
1401 (debug_to_has_vforked): Remove.
1402 (debug_to_has_execd): Remove.
1403 (debug_to_has_syscall_event): Remove.
1404 * target.h (struct target_ops): Remove to_has_forked.
1405 to_has_vforked, to_has_execd, and to_has_syscall_event.
1406 (child_has_forked, child_has_vforked, child_has_execd)
1407 (child_has_syscall_event): Remove prototypes.
1408 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1410 (target_has_forked, target_has_vforked, target_has_execd)
1411 (target_has_syscall_event): Remove macros.
1415 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1416 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1417 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1418 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1419 * target.c (cleanup_target): Remove reference to
1420 to_can_follow_vfork_prior_to_exec.
1421 (update_current_target): Likewise.
1422 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1423 (setup_target_debug): Remove reference to
1424 to_can_follow_vfork_prior_to_exec.
1425 * target.h (struct target_ops): Remove
1426 to_can_follow_vfork_prior_to_exec.
1427 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1428 (target_can_follow_vfork_prior_to_exec): Remove definition.
1429 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1431 * infrun.c (follow_vfork_when_exec): Remove.
1432 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1433 (follow_exec): Likewise.
1434 (handle_inferior_event): Likewise.
1435 (keep_going): Likewise.
1439 * frame.c (generic_unwind_get_saved_register): Make static.
1440 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1441 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1442 defaults to generic_unwind_get_saved_register.
1443 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1444 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1445 * frv-tdep.c (frv_gdbarch_init): Ditto.
1446 * i386-tdep.c (i386_gdbarch_init): Ditto.
1447 * s390-tdep.c (s390_gdbarch_init): Ditto.
1448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1449 * v850-tdep.c (v850_gdbarch_init): Ditto.
1450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1452 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1456 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1461 * frame.h (sigtramp_saved_pc): Delete declaration.
1462 * blockframe.c (sigtramp_saved_pc): Delete function.
1463 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1464 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1465 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1466 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1470 * frame.c (frame_pc_unwind): New function.
1471 (frame_saved_regs_pc_unwind): New function.
1472 (frame_register_unwind): Pass unwind_cache instead of
1473 register_unwind_cache.
1474 (set_unwind_by_pc): Add unwind_pc parameter, set.
1475 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1476 (get_prev_frame): Ditto.
1477 * frame.h (frame_pc_unwind_ftype): Declare.
1478 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1479 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1480 (frame_pc_unwind): Declare.
1481 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1482 (struct dummy_frame): Add comment mentioning that values are for
1484 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1485 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1486 (generic_file_frame_chain_valid): Ditto.
1487 * stack.c (frame_info): Ditto.
1491 * linespec.c (locate_first_half): New function.
1492 (decode_line_1): Move code into locate_first_half.
1496 * complaints.h: Add comment explaining how to eliminate a
1497 deprecated_complain call.
1498 * complaints.h: Fix spelling errors.
1502 * printcmd.c: Remove #include "disasm.h".
1506 * frame.h: Move the most relevant interface functions to the start
1511 * regcache.h (deprecated_registers): Rename registers.
1512 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1513 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1514 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1515 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1516 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1517 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1518 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1519 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1520 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1521 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1522 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1523 * v850ice.c: Update.
1527 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1532 * regcache.h (deprecated_read_register_bytes): Rename
1533 read_register_bytes.
1534 (deprecated_write_register_bytes): Rename write_register_bytes.
1535 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1536 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1537 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1538 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1539 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1540 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1541 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1542 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1543 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1544 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1545 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1546 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1547 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1548 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1552 * findvar.c (read_var_value): Doc fix.
1556 * regcache.c (struct regcache): Replace passthough_p with
1558 (regcache_xmalloc): Initialize readonly_p.
1559 (build_regcache): Initialize readonly_p.
1560 (regcache_save): New function.
1561 (regcache_restore): New function.
1562 (regcache_cpy): Re-implement using regcache_save and
1564 (regcache_raw_read): Update.
1565 (regcache_cooked_read): When a read-only cache, checked for cached
1566 pseudo register values.
1567 (regcache_raw_write): Assert that the cache is not read-only.
1568 Remove code handling a non-passthrough cache.
1569 * regcache.h (regcache_save): Declare.
1570 (regcache_restore): Declare.
1574 * regcache.c (struct regcache_descr): Add fields
1575 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1576 (init_legacy_regcache_descr): Compute the size of a cooked
1577 register cache and then assign that to sizeof_raw_registers. Set
1578 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1579 (init_legacy_regcache_descr): Ditto.
1583 * regcache.c (register_buffer): Move to near start of file, update
1585 (regcache_raw_read): Use.
1586 (regcache_raw_write): Use.
1587 (struct regcache): Rename raw_registers to registers and
1588 raw_register_valid_p to register_valid_p.
1589 (regcache_xmalloc): Update.
1590 (regcache_xfree): Update.
1591 (register_buffer): Update.
1592 (regcache_cpy): Update.
1593 (regcache_cpy_no_passthrough): Update.
1594 (regcache_valid_p): Update.
1595 (deprecated_grub_regcache_for_registers): Update.
1596 (deprecated_grub_regcache_for_register_valid): Update.
1597 (set_register_cached): Update.
1598 (regcache_raw_write): Update.
1602 * p-exp.y (name_not_typename): Use copy_name to
1603 set current_type variable for fields of THIS.
1607 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1608 * monitor.c (init_base_monitor_ops): Likewise.
1609 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1610 * remote-array.c (init_array_ops): Likewise.
1611 * remote-e7000.c (init_e7000_ops): Likewise.
1612 * remote-es.c (init_es1800_ops): Likewise.
1613 (init_es1800_child_ops): Likewise.
1614 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1615 * remote-sim.c (init_gdbsim_ops): Likewise.
1616 * remote-st.c (init_st2000_ops): Likewise.
1617 * sol-thread.c (init_sol_core_ops): Likewise.
1618 (init_sol_thread_ops): Likewise.
1619 * v850ice.c (init_850ice_ops): Likewise.
1620 * win32-nat.c (init_child_ops): Likewise.
1621 * wince.c (init_child_ops): Likewise.
1625 * utils.c (gdb_realpath): Make rp a constant pointer.
1629 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1630 a constant buffer; cannonicalize_file_name(); realpath() with a
1631 pathconf() defined buffer, xstrdup().
1635 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1636 to hang2.C; hang3.c to hang3.C.
1640 * findvar.c (read_var_value): Reenable TLS code.
1645 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1646 * target.c (update_current_target): Add
1647 to_get_thread_local_address.
1648 * target.h (to_get_thread_local_address): Export.
1649 (target_get_thread_local_address): Define.
1650 (target_get_thread_local_address_p): Define.
1651 * thread-db.c: Include solib-svr4.h.
1652 (td_thr_tls_get_addr_p): Define.
1653 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1654 (thread_db_get_thread_local_address): New function.
1655 (init_thread_db_ops): Initialize to_get_thread_local_address.
1656 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1657 * configure: Regenerate.
1658 * config.in: Regenerate.
1662 * linespec.c (set_flags): New function.
1663 (decode_line_1): Move code into set_flags.
1667 * linespec.c (decode_line_1): Move chunks of code to separate
1669 (initialize_defaults): New function.
1670 (decode_indirect): New function.
1674 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1675 instead of void_code_ptr.
1676 (sigtramp_saved_pc): Ditto.
1678 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1683 * gdbtypes.h (struct main_type): Move artificial flag out of
1684 loc. New member of ``struct field'' named static_kind. Reduce
1685 overloaded meaning of bitsize.
1686 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1687 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1688 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1690 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1692 (template_to_fixed_record_type, template_to_static_fixed_type)
1693 (to_record_with_fixed_variant_part): Likewise.
1694 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1695 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1696 * dwarfread.c (struct_type, enum_type): Likewise.
1697 * hpread.c (hpread_read_enum_type)
1698 (hpread_read_function_type, hpread_read_doc_function_type)
1699 (hpread_read_struct_type): Likewise.
1700 * mdebugread.c (parse_symbol): Likewise.
1704 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1705 * stack.c (print_frame_info_base): Update.
1706 (print_frame_info_base, frame_info): Update.
1707 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1708 (sparc_frame_saved_pc): Update.
1709 * ada-lang.c (find_printable_frame): Update.
1710 * breakpoint.c (deprecated_frame_in_dummy): Update.
1714 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1716 (regmap): Extend to cover all registers.
1717 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1718 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1720 (fetch_register, sore_register): Simplify.
1721 (old_fetch_inferior_registers, old_store_inferior_registers):
1723 (cannot_fetch_register, cannot_store_register): Change
1724 implementation to use regmap array to decide which registers
1725 cannot be fetched/stored. This removes $orig_eax from the
1726 registers that cannot be fetched/stored.
1727 (fetch_inferior_registers): Call fetch_register directly instead
1728 of calling old_fetch_inferior_registers.
1729 (store_inferior_registers): Call store_register directly instead
1730 of calling old_store_inferior_registers.
1731 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1732 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1733 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1737 * i387-tdep.c (i387_supply_register): When called with NULL as a
1738 buffer, mark the register as not provided (to mirror the behavior
1739 of supply_register).
1740 (i387_supply_fxsave): Ditto.
1741 (i387_supply_fsave): Ditto (inherits the behavior from
1742 i387_supply_register).
1746 * blockframe.c (sigtramp_saved_pc): Use
1747 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1748 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1749 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1753 * frame.c (get_prev_frame): Test prev_p to identify a previously
1754 unwound frame. Initialize prev_p.
1755 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1760 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1761 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1762 more comments. Zap dead code.
1766 * infcmd.c (print_vector_info, print_float_info): Move code that
1767 checks whether the target has any registers and whether there is a
1768 selected frame up, such that it is also used if a target provides
1769 multi-arch definitions of these functions.
1773 * Makefile.in (DESTDIR): Define.
1774 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1777 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1778 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1782 * i386-linux-tdep.c: Include "reggroups.h".
1783 (i386_linux_register_reggroup_p): New function.
1784 (i386_linux_init_abi): Set register_reggroup_p to
1785 i386_linux_register_reggroup_p.
1786 * i386-tdep.h (i386_register_reggroup_p): Declare.
1787 * i386-tdep.c: Include "reggroups.h".
1788 (i386_init_reggroups): New function.
1789 (i386_add_reggroups): New function.
1790 (i386_register_reggroup_p): New function.
1791 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1792 (_initialize_i386_tdep): Call i386_init_reggroups.
1793 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1798 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1799 request that's available in *BSD.
1801 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1803 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1808 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1809 * dummy-frame.c (find_dummy_frame): Rename
1810 generic_find_dummy_frame, make static. Return the dummy frame
1811 instead of the regcache.
1812 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1813 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1814 (dummy_frame_register_unwind): Rename
1815 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1816 * dummy-frame.h (dummy_frame_register_unwind): Rename
1817 generic_call_dummy_register_unwind.
1821 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1822 except the inclusion of "i386/tm-i386.h", to...
1823 * config/i386/nm-i386v42mp.h: ...here.
1824 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1828 * Makefile.in (frame.o): Update dependencies.
1829 * blockframe.c (current_frame, frame_obstack_alloc)
1830 (frame_saved_regs_zalloc, get_current_frame)
1831 (set_current_frame, create_new_frame)
1832 (set_unwind_by_pc, get_next_frame)
1833 (flush_cached_frames, reinit_frame_cache)
1834 (frame_saved_regs_register_unwind)
1835 (deprecated_generic_get_saved_register)
1836 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1837 (_initialize_blockframe): Move frame code from here...
1838 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1839 "annotate.h" and "dummy-frame.h".
1840 (_initialize_frame): New function.
1844 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1845 when we finish a function a context.
1846 * buildsym.h (outermost_context_p): New macro.
1847 (Bug analyzed by David Edelsohn.)
1851 * blockframe.c: Include "dummy-frame.h".
1852 (struct dummy_frame, dummy_frame_stack)
1853 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1854 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1855 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1856 (generic_save_call_dummy_addr, generic_pop_current_frame)
1857 (generic_pop_dummy_frame, generic_fix_call_dummy)
1858 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1859 dummy frame code from here...
1860 * dummy-frame.c: ...to here. New file.
1861 * dummy-frame.h: New file.
1862 (generic_call_dummy_register_unwind): Declare.
1863 (generic_find_dummy_frame): Declare.
1864 * Makefile.in (SFILES): Add dummy-frame.c.
1865 (dummy-frame.o): Specify dependencies.
1866 (dummy_frame_h): Define.
1867 (COMMON_OBS): Add dummy-frame.o.
1868 (blockframe.o): Update dependencies.
1872 * dwarf2read.c (read_func_scope): Restore local_symbols and
1873 param_symbols after we finish the function context. (Based on a
1874 patch from David Edelsohn.)
1878 * linespec.c (symbol_found): New function.
1879 (minsym_found): New function.
1880 (decode_line_1): Separate out some code into separate functions.
1884 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1885 the benefit of the interix target.
1886 * i386-tdep.h (i386_frameless_signal_p): Declare.
1890 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1891 declaration that snuck in from change below.
1895 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1897 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1898 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1899 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1900 (i386_mxcsr_regnum_p): new function. Use instead of
1902 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1903 (i386_sse_regnum_p): Declare.
1904 (i386_mxcsr_regnum_p): Declare.
1905 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1906 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1907 (IS_FP_REGNUM): Update definition.
1908 (IS_FPU_CTRL_REGNUM): Update definition..
1909 (IS_SSE_REGNUM): Update definition..
1910 * i386v-nat.c (register_u_addr): Update.
1911 * go32-nat.c (fetch_register): Update.
1912 (store_register): Update.
1916 Preparation work to convert the hppa targets to multiarch partial.
1918 * hppa-tdep.c: Add new functions replacing macro bodies from
1919 config/pa/tm-hppa.h. These function will be used to initialize
1920 the gdbarch structure. Import some comments from tm-hppa.h,
1921 and place them where appropriate, to avoid loosing them when
1922 we cleanup this file.
1923 (hppa_reg_struct_has_addr): New function.
1924 (hppa_inner_than): New function.
1925 (hppa_stack_align): New function.
1926 (hppa_pc_requires_run_before_use): New function.
1927 (hppa_instruction_nullified): New function.
1928 (hppa_register_byte): New function.
1929 (hppa_register_virtual_type): New function.
1930 (hppa_store_struct_return): New function.
1931 (hppa_cannot_store_register): New function.
1932 (hppa_frame_args_address): New function.
1933 (hppa_frame_locals_address): New function.
1934 (hppa_smash_text_address): New function.
1935 (hppa_coerce_float_to_double): New function. Requires the inclusion
1938 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1940 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1941 gdbarch-eligible macro to a call to the new associated function
1942 created in hppa-tdep.c.
1943 (INNER_THAN): Likewise.
1944 (STACK_ALIGN): Likewise.
1945 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1946 (INSTRUCTION_NULLIFIED): Likewise.
1947 (REGISTER_BYTE): Likewise.
1948 (REGISTER_VIRTUAL_TYPE): Likewise.
1949 (STORE_STRUCT_RETURN): Likewise.
1950 (CANNOT_STORE_REGISTER): Likewise.
1951 (FRAME_ARGS_ADDRESS): Likewise.
1952 (FRAME_LOCALS_ADDRESS): Likewise.
1953 (SMASH_TEXT_ADDRESS): Likewise.
1954 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1955 (ABOUT_TO_RETURN): Delete, as no longer used.
1959 * printcmd.c (disassemble_command): Remove obsolete function.
1960 (_initialize_printcmd): Do not create disassemble command here.
1961 * cli/cli-cmds.c (disassemble_command): New function. Implements
1962 disassemble command.
1963 (init_cli_cmds): Create disassemble command here instead.
1967 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1971 * regcache.h (regcache_cooked_read_using_offset_hack)
1972 (regcache_cooked_write_using_offset_hack): Delete declarations.
1973 (register_changed): Delete declaration.
1974 * regcache.c (regcache_cooked_read_using_offset_hack)
1975 (regcache_cooked_write_using_offset_hack): Delete functions.
1976 (cooked_xfer_using_offset_hack): Delete function.
1977 (register_changed): Delete function.
1981 * macroscope.c: #include "complaints.h".
1982 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1983 but not in the macro table.
1984 * Makefile.in (macroscope.o): Record dependency.
1988 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1992 * regcache.c (deprecated_registers_fetched): Update.
1993 * regcache.h (deprecated_registers_fetched): Rename
1995 * remote-vxsparc.c (vx_read_register): Update.
1996 * remote-vxmips.c (vx_read_register): Update.
1997 * remote-vx68.c (vx_read_register): Update.
1998 * irix5-nat.c (fetch_core_registers): Update.
1999 * mipsm3-nat.c (fetch_inferior_registers): Update.
2000 * sun3-nat.c (fetch_inferior_registers): Update.
2001 * symm-nat.c (fetch_inferior_registers): Update.
2002 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2003 (fetch_core_registers): Update.
2004 (fetch_kcore_registers): Update.
2005 * mips-nat.c (fetch_inferior_registers): Update.
2006 * corelow.c (get_core_registers): Update.
2007 * a68v-nat.c (fetch_inferior_registers): Update.
2011 Put in place the framework necessary for multiarching the hppa targets.
2012 * hppa-tdep.c (hppa_gdbarch_init): New function.
2013 (hppa_dump_tdep): New function.
2014 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2015 tdep structure dumper.
2016 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2017 until the multi-arching conversion has partially been completed.
2021 * valops.c (value_assign): Merge lval_register case into
2022 lval_reg_frame_relative. Use frame_register and
2023 regcache_cooked_write instead of get_saved_register and
2024 write_register_bytes. After flushing the register cache, try to
2025 re-select the selected frame.
2029 * regcache.h (deprecated_register_valid): Rename register_valid.
2030 * regcache.c: Update.
2031 * ia64-aix-nat.c: Update.
2032 * i386gnu-nat.c: Update.
2033 * alpha-nat.c: Update.
2034 * sparc-nat.c: Update.
2035 * lynx-nat.c: Update.
2036 * remote-mips.c: Update.
2040 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2041 to end of file, to be more consistent with the pratice followed
2046 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2047 (print_float_info): Print registers in float_reggroup.
2048 (print_vector_info): Print registers in vector_reggroup.
2049 (default_print_registers_info): When all, print registers in
2050 all_reggroup. Otherwize, print registers in general_reggroup.
2051 (registers_info): Rewrite. Add support for register groups.
2056 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2058 (symtab_symbol_info): Remove eons old ifdeffed out code.
2059 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2064 * c-exp.y: Add missing semi-colons.
2065 * f-exp.y: Add missing semi-colons.
2066 * m2-exp.y: Add missing semi-colons.
2067 * p-exp.y: Add missing semi-colons.
2068 Add empty action to start rule to avoid a type clash error when
2069 building with bison >= 1.50.
2073 * macrotab.h (struct macro_source_file): Doc fix.
2077 * varobj.c (child_exists, cplus_number_of_children): Change
2078 STREQ macro references to strcmp.
2079 (cplus_name_of_child): Change code to handle the fact that
2080 fields are not necessarily contiguous with regards to their
2081 access control. This is a fix for PR gdb/792.
2085 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2086 * gdbarch.h, gdbarch.c: Regnerate.
2087 * frame.h (frame_register): Declare.
2088 * frame.c (frame_register): New function.
2089 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2090 GET_SAVED_REGISTER, otherwize call
2091 generic_unwind_get_saved_register.
2092 (frame_register_read): Use frame_register instead of
2098 * event-top.c (gdb_disable_readline): New function.
2099 (_initialize_event_loop): Move comment.
2103 * event-loop.c (start_event_loop): Add comment.
2108 * infcmd.c (default_print_registers_info): Do not call
2109 PRINT_REGISTER_HOOK.
2113 * sparc-tdep.c (sparc_print_register_hook): Make static.
2114 (sparc_print_registers_info): New function.
2115 (sparc_do_registers_info): New function.
2116 (sparclet_print_registers_info): New function.
2117 (sparclet_do_registers_info): New function.
2118 (do_sparc_print_registers_info): New function.
2119 (sparc_print_registers): New static function, clone of infcmd.c's
2120 default_print_registers_info.
2121 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2122 (sparclet_do_registers_info): Declare.
2123 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2124 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2126 (sparc_do_registers_info): Declare.
2127 (PRINT_REGISTER_HOOK): Delete macro.
2128 (sparc_print_register_hook): Delete declaration.
2132 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2134 (lookup_symbol_aux_local): New function.
2135 (lookup_symbol_aux_symtabs): New function.
2136 (lookup_symbol_aux_psymtabs): New function.
2140 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2141 previous values of 'objfile' and 'block'.
2145 * values.c (value_change_enclosing_type): Set
2146 enclosing_type field correctly also for the case where
2147 more memory needs to be allocated.
2151 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2154 * i387-tdep.c (i387_print_float_info): Replace calls to
2155 register_read and deprecated_read_register_gen with calls to
2156 frame_register_read, and make the necessary adjustments to the
2161 * gdbarch.sh (register_reggroup_p): Allow default value.
2162 * gdbarch.h, gdbarch.c: Regenerate.
2166 * regcache.h: Add coment indicating replacements for deprecated
2171 * reggroups.h, reggroups.c: New files.
2172 * regcache.c: Include "reggroups.h".
2173 (enum regcache_dump_what): Add `regcache_dump_groups'.
2174 (regcache_dump): Contract size of the "Type" column. When
2175 specified, dump the register's groups.
2176 (maintenance_print_register_groups): New function.
2177 (_initialize_regcache): Add command `maint print register-groups'.
2178 * Makefile.in (COMMON_OBS): Add reggroups.o
2179 (SFILES): Add reggroups.c.
2180 (reggroups_h): Define.
2181 (regcache.o, gdbarch.o): Update dependencies.
2182 (reggroups.o): Specify dependencies.
2183 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2184 Add opaque declaration for `struct reggroup' in generated .h file.
2185 Include "reggroups.h" in generated .c file.
2186 gdbarch.h, gdbarch.c: Re-generate.
2190 * regcache.h (deprecated_read_register_gen): Rename
2192 (deprecated_write_register_gen): Rename write_register_gen.
2193 * i387-tdep.c: Update.
2194 * x86-64-linux-nat.c: Update
2196 * thread-db.c: Update.
2197 * win32-nat.c: Update.
2198 * mips-tdep.c: Update.
2199 * d10v-tdep.c: Update.
2200 * cris-tdep.c: Update.
2201 * remote-sim.c: Update.
2202 * remote-rdi.c: Update.
2203 * remote-rdp.c: Update.
2206 * blockframe.c: Update.
2207 * x86-64-tdep.c: Update.
2208 * xstormy16-tdep.c: Update.
2209 * sh-tdep.c: Update.
2210 * s390-tdep.c: Update.
2211 * rs6000-tdep.c: Update.
2212 * sparc-tdep.c: Update.
2213 * i386-tdep.c: Update.
2214 * dwarf2cfi.c: Update.
2215 * regcache.c: Update.
2219 New interix-specific files:
2220 * config/i386/nm-interix.h: New file.
2221 * config/i386/interix.mh: New file.
2222 * config/i386/interix.mt: New file.
2223 * i386-interix-nat.c: New file.
2224 * i386-interix-tdep.c: New file.
2228 * frame.h (deprecated_generic_get_saved_register): Rename
2229 generic_get_saved_register.
2230 * blockframe.c (deprecated_generic_get_saved_register): Update.
2231 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2232 (xstormy16_frame_saved_register): Update.
2233 * sh-tdep.c (sh_gdbarch_init): Update.
2234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2235 * ia64-tdep.c (ia64_get_saved_register): Update.
2236 * cris-tdep.c (cris_gdbarch_init): Update.
2237 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2238 * arm-tdep.c (arm_gdbarch_init): Update.
2242 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2246 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2247 trampolines in sigaction.
2251 * h8300-tdep.c: Include "gdb_assert.h".
2252 (h8300_print_register): Add gdbarch, file and frame parameters.
2253 Use frame_read_unsigned_register to read the register's value.
2254 Use fprintf_filtered to display output.
2255 (h8300_print_registers_info): Replace h8300_do_registers_info.
2256 (h8300_gdbarch_init): Set print_registers_info.
2260 * frame.c (frame_read_unsigned_register): New function.
2261 (frame_read_signed_register): New function.
2262 * frame.h (frame_read_unsigned_register): Declare.
2263 (frame_read_signed_register): Declare.
2267 * h8500-tdep.c (h8500_print_registers_info): New static function,
2268 clone of infcmd.c's default_print_registers_info.
2269 (h8500_do_registers_info): New funtion.
2270 (h8500_print_register_hook): Rename print_register_hook, make
2273 * config/h8500/tm-h8500.h: Update copyright.
2274 (DEPRECATED_DO_REGISTERS_INFO): Define.
2275 (h8500_do_registers_info: Declare.
2276 (PRINT_REGISTER_HOOK): Delete macro.
2277 (print_register_hook): Delete function.
2281 * z8k-tdep.c (z8k_print_register_hook): Make static.
2282 (z8k_print_registers_info): New static function, clone of
2283 infcmd.c's default_print_registers_info.
2284 (z8k_do_registers_info): New function. Wrap
2285 z8k_print_registers_info.
2286 * config/z8k/tm-z8k.h: Update copyright.
2287 (PRINT_REGISTER_HOOK): Delete macro.
2288 (z8k_print_register_hook): Delete declaration.
2289 (DEPRECATED_DO_REGISTERS_INFO): Define.
2290 (z8k_do_registers_info): Declare.
2294 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2295 as this is already provided by value.h, and was actually causing
2296 a compilation error because of a conflict in parameter type
2297 declaration due to a missing const keyword.
2298 (low_text_segment_addres): Fix a compilation warning.
2302 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2303 registers without a name.
2304 (mips_linux_cannot_store_register): Don't store registers without
2309 * symtab.c (find_addr_symbol): Delete. (It was already commented
2311 * symtab.h: Delete prototype for find_addr_symbol.
2315 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2317 gdbarch.h, gdbarch.c: Re-generate.
2318 * infcmd.c (default_print_registers_info): Update reference.
2319 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2320 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2321 * sh-tdep.c (sh_gdbarch_init): Ditto.
2322 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2327 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2328 cfi_init_extra_frame_info.
2329 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2330 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2332 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2333 target where necessary. Add more comments and remove the ones
2334 that don't provide any useful information.
2336 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2337 deprecated_read_register_dummy with
2338 frame_unwind_unsigned_register.
2340 * i386-tdep.c (i386_extract_struct_value_address): Use
2341 regcache_raw_read_unsigned instead of
2342 regcache_cooked_read_unsigned since we know that the register
2343 we're reading isn't a pseudo register. Rename variable 'val' into
2344 the more descriptive 'addr'.
2346 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2347 (x86_64_push_return_address): Add comment.
2348 (x86_64_pop_frame): Make static.
2349 (examine_argument): Clarify comment.
2350 (x86_64_skip_prologue): Make prolog_expact variable static.
2352 * dwarf2cfi.c: Fix some formatting problems.
2353 (context_cpy, read_encoded_pointer): Clarify comments.
2355 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2356 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2357 i386 target back into x86_64_gdbarch_init. Add some comments and
2358 remove meaningless ones.
2362 * complaints.h (struct deprecated_complaint): Rename `struct
2364 * complaints.c (complain): Update.
2365 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2366 incorrect comment indicating that "symfile.h" was being included
2367 for the `struct complaint' definition.
2368 * remote-vx.c: Update.
2369 * objc-lang.c: Update.
2370 * xcoffread.c: Update.
2372 * mdebugread.c: Update.
2373 * stabsread.c: Update.
2374 * dwarf2read.c: Update.
2375 * dwarfread.c: Update.
2376 * elfread.c: Update.
2377 * coffread.c: Update.
2378 * stabsread.h: Update.
2379 * dbxread.c: Update.
2380 * buildsym.c: Update.
2381 * gdbtypes.c: Update.
2382 * macrotab.c: Update.
2386 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2387 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2388 (x86_64_init_abi): ...new function.
2390 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2391 * i386v-nat.c: Include "i386-tdep.h".
2395 * gdbtypes.c (address_space_name_to_int): Update.
2396 (address_space_int_to_name): Update.
2397 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2398 multi-arch predicate.
2399 (address_class_name_to_type_flags): Ditto.
2400 * gdbarch.h, gdbarch.c: Re-generate.
2402 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2406 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2410 * symtab.h (INIT_SAL): Delete macro.
2412 * symtab.c (init_sal): New function.
2414 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2415 to init_sal function call.
2416 (find_sal_from_funcs_and_line): Ditto.
2417 (all_sals_for_line): Ditto.
2418 * breakpoint.c (create_internal_breakpoint): Ditto.
2419 (create_fork_vfork_event_catchpoint): Ditto.
2420 (create_exec_event_catchpoint): Ditto.
2421 (parse_breakpoint_sals): Ditto.
2422 (watch_command_1): Ditto.
2423 (handle_gnu_4_16_catch_command): Ditto.
2424 (clear_command): Ditto.
2425 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2426 * infcmd.c (run_stack_dummy): Ditto.
2427 * infrun.c (process_event_stop_test): Ditto.
2428 (check_sigtramp2): Ditto.
2429 (step_over_function): Ditto.
2430 * linespec.c (decode_line_2): Ditto.
2431 (decode_line_1): Ditto.
2432 * source.c (line_info): Ditto.
2433 * symtab.c (find_pc_sect_line): Ditto.
2437 * dwarf2cfi.c (struct context)
2438 (struct context_reg): Moved to dwarf2cfi.h
2439 (context_alloc, frame_state_alloc, context_cpy):
2440 Made extern instead of static, removed prototypes.
2441 * dwarf2cfi.h (struct context)
2442 (struct context_reg): New, moved from dwarf2cfi.c
2443 (context_alloc, frame_state_alloc, context_cpy):
2445 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2446 Changed from static to extern.
2447 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2448 (LINUX_SIGCONTEXT_FP_OFFSET)
2449 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2450 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2451 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2452 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2453 set_gdbarch_*() calls now use x86-64 specific functions
2454 instead of DWARF2 CFI ones.
2455 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2456 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2457 (x86_64_init_extra_frame_info): New prototypes.
2461 * linespec.c: #include "parser-defs.h".
2462 Delete prototype for find_template_name_end.
2463 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2467 * NEWS: add recent mi fixes.
2468 * varobj.c (struct varobj): Add new "updated" flag.
2469 (new_variable): Default "updated" flag to 0.
2470 (varobj_set_value): Set "updated" flag to 1 if value
2472 (varobj_update): Check varobj "updated" flag before
2473 comparing old and refreshed values. Fix for
2478 * parse.c (parse_exp_1): Use BLOCK_START.
2479 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2481 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2485 * symtab.c: Delete cplusplus_hint.
2486 Delete prototype for find_template_name_end.
2490 * symtab.h: Update comment.
2494 * printcmd.c (address_info): Restore quotes in output.
2495 * valops.c (value_of_local): Restore quotes in error message.
2499 * symtab.c (symbol_demangled_name): New function.
2500 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2501 turning most of it into a function.
2502 (symbol_demangled_name): Export.
2506 * valops.c (value_of_local): Restore quotes in error message.
2510 * symtab.c (symbol_init_language_specific): New function.
2511 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2512 turning most of it into a function.
2513 (symbol_init_language_specific): Export.
2517 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2518 (dwarf_attr_name): Ditto.
2519 (dwarf_type_encoding_name): Ditto.
2520 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2521 (process_die): Handle DW_TAG_namespace,
2522 DW_TAG_imported_declaration, DW_TAG_imported_module.
2523 (read_namespace): New function.
2527 * configure.in: Define NEW_PROC_API on Interix too.
2528 * configure: Regenerate.
2532 * configure: Regenerate using the proper version of autoconf.
2536 * findvar.c (read_var_value): Temporarily disable TLS code, until
2537 complete TLS support is added.
2542 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2543 for thread local storage locations.
2544 (struct symbol): Add objfile field.
2545 (SYMBOL_OBJFILE): Define.
2546 * dwarf2read.c (is_thread_local): New static variable.
2547 (new_symbol): If variable is in thread local fill in address class
2548 and objfile appropriately.
2549 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2551 * printcmd.c (address_info): Print the information for thread
2552 local storage variable.
2553 * findvar.c (read_var_value): In case of thread local variable,
2554 defer to the target vector code to compute address.
2558 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2559 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2563 * symtab.h (address_class): Rename
2564 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2565 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2566 * printcmd.c (address_info): Ditto.
2567 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2571 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2572 DBREG_DRX macro to acces debug registers.
2574 * Makefile.in (i386obsd-tdep.o): New target.
2576 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2577 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2579 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2580 * config/i386/obsd.mt: New file.
2581 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2582 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2583 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2584 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2585 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2586 * i386obsd-tdep.c: New file.
2590 * objc-exp.y (name_not_typename): Fix invalid comment.
2594 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2595 to allocate partial syms and macro byte caches.
2599 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2603 * stabsread.c (find_name_end): New function.
2604 (define_symbol): Use it.
2608 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2609 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2610 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2611 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2615 * symfile.h: Add opaque declaration for struct obstack.
2616 Declare obsavestring to take a const char *.
2617 * symfile.c (obsavestring): Make first argument a const char *.
2621 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2622 names when matching breakpoints in current file.
2626 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2627 (read_tag_pointer_type): Add address class support.
2628 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2629 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2631 * gdbarch.h, gdbarch.c: Regenerate.
2632 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2633 (make_type_with_address_space, recursive_type_dump): Add address
2635 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2636 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2637 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2641 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2642 to get the last character of a char[] buffer, not
2643 name[sizeof(vptr_name)-1].
2647 * symtab.h: New objc_specific struct.
2648 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2649 (SYMBOL_DEMANGLED_NAME): Likewise.
2653 * symfile.c (init_filename_language_table): Add ObjC file extension.
2657 * utils.c (puts_filtered_tabular): New function.
2658 (fprintf_symbol_filtered): Get ObjC demangled name.
2659 * defs.h (puts_filtered_tabular): Declared.
2663 * c-lang.h (c_type_print_varspec_prefix): Delete.
2664 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2665 ``need_post_space'' parameter. Adjust all callers.
2669 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2670 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2671 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2672 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2676 * source.c (print_source_lines): Update comments.
2680 * valops.c (value_of_local): New function.
2681 (value_of_this): Use it.
2682 * value.h (value_of_local): Declared.
2686 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2687 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2691 * language.c (binop_result_type): Add language_objc to case.
2692 (integral_type): Likewise.
2693 (character_type): Likewise.
2694 (string_type): Likewise.
2695 (boolean_type): Likewise.
2696 (structured_type): Likewise.
2697 (binop_type_check): Likewise.
2701 * printcmd.c (address_info): Print 'self' for ObjC.
2705 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2710 * language.h (CAST_IS_CONVERSION): Add language_objc.
2714 * defs.h (enum language): Add language_objc.
2718 * corefile.c (read_memory_typed_address): New function.
2719 * gdbcore.h (read_memory_typed_address): Add prototype.
2720 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2721 to read a value destined for a CORE_ADDR, not read_memory_integer.
2722 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2723 (f77_get_dynamic_lowerbound): Ditto.
2727 * utils.c (string_to_core_addr): After turning string into
2728 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2729 which will do necessary sign-extension, etc.
2733 * c-exp.y (THIS): Delete token and grammar rule.
2734 (yylex): Don't return THIS.
2735 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2736 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2737 * demangle.c (cplus_markers): Update comment. Put '$'
2738 first. Remove CPLUS_MARKER.
2739 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2740 * jv-exp.y (THIS): Delete token and grammar rule.
2741 (yylex): Don't return THIS.
2742 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2743 * objc-exp.y (THIS): Delete token and grammar rule.
2744 (yylex): Don't return THIS.
2745 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2746 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2747 (read_member_functions): Likewise for opname.
2748 (read_tilde_fields): Use is_cplus_marker.
2750 * defs.h (CPLUS_MARKER): Don't define.
2751 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2752 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2753 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2754 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2755 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2757 * config/i386/tm-i386v4.h: Delete file.
2758 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2759 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2760 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2761 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2762 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2763 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2764 * config/i386/i386v4.mt (TM_FILE): Likewise.
2765 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2769 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2770 accidentially not commited 2002-10-09
2771 * gdbarch.h, gdbarch.c: Re-generate.
2775 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2776 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2777 * gdbarch.h, gdbarch.c: Re-generate.
2783 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2784 so we can work on more than one compilation unit at a time. This
2785 helps prepare GDB to handle inter-CU die references.
2786 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2787 the code to be defined before struct comp_unit_head.
2788 (comp_unit_head): Added new members - offset, cu_head,
2789 begin_die, next and dwarf2_abbrevs.
2790 (dwarf2_abbrevs): Removed single static var; now member of
2791 struct comp_unit_head.
2792 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2794 (psymtab_to_symtab_1): Changed to work with the new
2795 struct comp_unit_head.
2796 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2797 constructs the dwarf2_abbrevs[] inside the cu_header.
2798 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2799 dwarf2_abbrev table to clean up.
2800 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2801 handling of dwarf2_abbrevs inside the cu_header.
2802 (read_partial_die): Now supports the call to the new
2803 dwarf2_lookup_abbrev.
2804 (read_full_die): Now supports the call to the new
2805 dwarf2_lookup_abbrev.
2809 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2810 insure that shell variables, such as "transformed_name" are propagated
2811 to later shell statements in rule.
2815 * config/i386/nm-i386sco.h: Add protection against
2816 multiple-inclusion. Include "i386/nm-i386v.h".
2817 (REGISTER_U_ADDR): Remove define.
2818 (i386_register_u_addr): Remove prototype.
2822 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2823 before treating it as a single-step event.
2827 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2828 (objc_demangle): Remove assignment in if statements, Replace
2830 (add_msglist): Likewise.
2831 (end_msglist): Likewise.
2832 (complare_selectors): Likewise.
2833 (selectors_info): Likewise.
2834 (compare_classes): Likewise.
2835 (classes_info): Likewise.
2836 (print_object_command): Likewise.
2837 (find_objc_msgcall_submethod): Replace PTR with void *.
2838 * objc-lang.h: Remove check for __STDC__.
2842 * ui-out.h (ui_out_field_fmt_int): New prototype.
2843 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2844 of field width and alignment.
2845 * stack.c (print_frame_info_base): When printing frame level, use
2846 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2851 * MAINTAINERS: Add self to Write After Approval list.
2855 * infcmd.c (interrupt_target_command_wrapper): Delete.
2856 (interrupt_target_command): Make non static.
2857 (nofp_registers_info): Make static.
2858 * stack.c (return_command_wrapper): Delete.
2859 (return_command): Make non static.
2863 * event-top.c (gdb_setup_readline): New function. Code moved from
2864 _initialize_event_loop().
2865 (_initialize_event_loop): Call gdb_setup_readline().
2869 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2870 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2871 * gdbarch.h, gdbarch.c: Re-generate.
2876 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2878 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2879 of fill_in_vptr_fieldno.
2883 * inferior.h (registers_info, stepi_command, nexti_command,
2884 continue_command, interrupt_target_command): Export from infcmd.c.
2885 * frame.h (args_info, selected_frame_level_changed_hook,
2886 return_command): Export from stack.c.
2887 * v850ice.c (stepi_command, nexti_command, continue_command): use
2888 prototypes from inferior.h.
2889 * tracepoint.c (registers_info, args_info, locals_info): Use
2890 prototypes from frame.h and inferior.h.
2891 * Makefile.in (mi-main.o): Add dependency on frame.h.
2895 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2896 value in register 3 adjusted by ppc_gp0_regnum.
2898 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2902 * MAINTAINERS: Add myself to the Write After Approval list.
2906 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2907 of the section for the N64 ABI, fixed.
2909 * config/mips/tm-irix6.h: Include solib.h.
2913 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2918 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2919 and that "mi0" syntax has been removed.
2923 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2924 * ppc-sysv-tdep.c: #include "gdb_string.h".
2925 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2930 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2931 "vrsave"'s register number.
2935 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2936 use frame_unwind_signed_register to obtain the PC.
2937 (mips_frame_chain): Handle a generic dummy frame.
2938 (mips_init_extra_frame_info): When a generic dummy frame, don't
2939 re-compute the frame base.
2940 (mips_pop_frame): Handle generic dummy frames.
2941 (mips_gdbarch_init): When generic dummy frames, set
2942 use_generic_dummy_frames, push_dummy_frame to
2943 generic_push_dummy_frame, pc_in_call_dummy to
2944 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2945 generic_save_dummy_frame_tos.
2949 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2950 against TOP when TOP was explictly set.
2951 (generic_push_dummy_frame): Set TOP to zero.
2955 * event-loop.c (start_event_loop): Rename variable 'result' to
2956 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2960 * gdb-events.sh (selected_thread_changed): New event.
2961 * gdb-events.c: Regenerated.
2962 * gdb-events.h: Regenerated.
2966 * MAINTAINERS: Add self to Write After Approval list.
2970 * disasm.c: New file.
2971 * disasm.h: New file.
2972 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2973 (compare_lines): Ditto.
2974 (dump_insns): Ditto.
2975 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2977 (do_assembly_only): Ditto.
2978 (do_disassembly): Renamed to gdb_disassembly and moved to
2979 disasm.c. Sdded uiout argument.
2980 * Makefile.in: Add new files. Reorder SFILES list. Update
2981 dependencies. Include libgdb.a later in the insight executable.
2985 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2986 bfd/elf64-alpha-fbsd.c.
2990 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2995 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2997 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2999 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3000 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3001 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3002 (S_msg_sig_post_reply): Ditto.
3006 * sh-tdep.c (sh_use_struct_convention): Use definition according
3008 (sh_push_arguments): Store in register with correct endianess.
3009 (sh_default_store_return_value): Ditto.
3010 (sh_gdbarch_init): Set sizeof long double to 8.
3014 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3015 Fix some whitespace problems.
3019 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3020 (mcore-tdep.o): Ditto.
3021 (ns32k-tdep.o): Ditto.
3022 (ns32knbsd-tdep.o): Ditto.
3024 (vax-tdep.o): Ditto.
3025 * cris-tdep.c: #include "gdb_string.h"
3026 * mcore-tdep.c: Ditto.
3027 * ns32k-tdep.c: Ditto.
3028 * ns32knbsd-tdep.c: Ditto.
3030 * vax-tdep.c: Ditto.
3034 * config/djgpp/fnchange.lst: Add entries for
3035 gdb/testsuite/gdb.c++/m-static files.
3039 * MAINTAINERS: Add myself to the Write After Approval list.
3043 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3048 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3053 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3054 (rs6000_struct_return_address): Delete variable.
3055 (rs6000_store_struct_return): Update.
3056 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3057 deprecated_extract_struct_value_address.
3058 (rs6000_frame_align): New function.
3059 (rs6000_gdbarch_init): Set frame_align.
3064 * Makefile.in (gdbtk-main.o): New target.
3065 (gdb.o): New target.
3067 (main.o): Update dependencies.
3068 (gdb$(EXEEXT)): Add gdb.o.
3069 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3070 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3071 (SUBDIR_GDBTK_CLEAN): Set.
3072 (install-gdbtk): Install the insight binary.
3073 (uninstall-gdbtk): New target.
3074 (all-gdbtk, clean-gdbtk): New rule.
3075 * top.c (use_windows): Default to zero.
3076 * main.c: Include "main.h".
3078 (struct captured_main_args): Delete.
3079 (gdb_main): New function.
3085 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3086 (frame_map_regnum_to_name): New function.
3087 (frame_map_name_to_regnum): New function.
3088 * frame.h (frame_map_name_to_regnum): Declare.
3089 (frame_map_regnum_to_name): Declare.
3090 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3091 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3092 * parse.c: Do not include "builtin-regs.h".
3093 (target_map_name_to_register): Delete function.
3094 (write_dollar_variable): Use frame_map_name_to_regnum.
3095 * parser-defs.h (target_map_name_to_register): Delete declaration.
3096 * expprint.c: Include "frame.h".
3097 (print_subexp): Use frame_map_regnum_to_name.
3098 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3099 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3103 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3104 wasn't saved, and the next innermost frame is a dummy, return the
3105 dummy frame's link register.
3109 Fix from Paul Breed:
3110 * main.c (captured_main): Add a `break' after the case for 'b'.
3114 * varobj.c (c_type_of_child): Use get_target_type instead
3115 of TYPE_TARGET_TYPE.
3119 * source.c (get_current_or_default_source_symtab_and_line): Remove
3121 (set_default_source_symtab_and_line): New function. Attempts to
3122 determine a source file to list lines from if one is not currently
3124 (get_current_source_symtab_and_line): Initialize sal.pc and
3126 (set_current_source_symtab_and_line): Mark argument as const.
3127 * source.h: Update declarations and comments.
3128 * linespec.c (decode_line_1): Replace call to removed routine above.
3129 * stack.c (print_frame_info_base): Ditto.
3130 * cli/cli-cmds.c (edit_command): Ditto.
3131 (list_command): Ditto.
3135 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3136 sal.pc and sal.end fields.
3137 (get_current_or_default_source_symtab_and_line): Ditto.
3138 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3139 so we do not cause a new source symtab to be searched for (reverting an
3140 unintentional change from the 2002-09-20 patch).
3141 * scm-lang.c (scm_unpac): Ditto.
3145 * complaints.c (symfile_explanations): Remove new-line from
3146 ``isolated_message''.
3147 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3148 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3152 * NEWS: Announce that V850EA ISA is no longer supported.
3153 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3157 * Makefile.in (c-lang.o): Correct dependencies.
3158 (utils.o): Gather dependencies.
3160 * c-lang.c: #include "gdb_string.h"
3165 * cli/cli-cmds.c (list_command): New function. Implements the new
3167 (_init_cli_cmds): Add new command definition.
3168 * gdb.1: Document edit command.
3169 * doc/gdb.texinfo: Document edit command.
3173 * source.c: Make global variables current_source_symtab and
3174 current_source_line static.
3175 (list_command): Moved to cli/cli-cmds.c.
3176 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3177 (get_first_line_listed): New accessor function.
3178 (get_lines_to_list): New accessor function.
3179 (get_current_source_symtab_and_line): New function. Retrieves the
3180 position in the source code that we consider current.
3181 (get_current_or_default_source_symtab_and_line): New function.
3182 Like the above but attempts to determine a default position if one
3183 is not currently defined.
3184 (set_current_source_symtab_and_line): New function. Sets the source
3185 code position considered current and returns the previously set one.
3186 (clear_current_source_symtab_and_line): Reset stored information about
3187 a current source line.
3188 (_initialize_source): Remove registration for the "list" command and
3190 * source.h: Add declarations for the new functions above.
3191 * symtab.h: Remove declarations for the global variables mentioned
3193 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3194 obtain current source line.
3195 * linespec.c (decode_line_1): Ditto.
3196 * macroscope.c (default_macro_scope): Ditto.
3197 * scm-lang.c (scm_unpac): Ditto.
3198 * stack.c (print_frame_info_base): Ditto.
3199 * symfile.c (clear_symtab_users): Ditto.
3200 * symtab.c (decode_line_spec): Ditto.
3201 * cli/cli-cmds.c (list_command): Moved here from source.c.
3202 (ambiguous_line_spec): Moved here from source.c.
3203 (_init_cli_cmds): Add definition for "list" and its alias.
3204 * Makefile.in: Update dependencies.
3208 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3209 with what gcc thinks is correct.
3213 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3214 multiple register push instruction.
3218 Add support for distinct host and target character sets.
3219 * charset.c, charset.h: New files.
3220 * c-exp.y: #include "charset.h".
3221 (yylex): Convert character and string literals to the target
3222 character set, before returning them as the semantic value of the
3224 * c-lang.c: #include "charset.h".
3225 (c_emit_char): Use charset-specific methods to recognize
3226 characters with backslash escape forms, to decide which characters
3227 to print literally and which to print using numeric escape
3228 sequences, and to convert target characters to host characters
3230 * utils.c: #include "charset.h".
3231 (no_control_char_error): New function.
3232 (parse_escape): Use charset-specific methods to recognize
3233 backslash escapes, parse `control character' notation, and convert
3234 characters from the host character set to the target character set.
3235 * configure.in: Set the default host character set.
3236 Check where to find iconv, and what its argument types might be.
3237 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3238 * Makefile.in (SFILES): List charset.c.
3239 (COMMON_OBS): List charset.o.
3240 (charset.o): New rule.
3241 (charset_h): New header dependency variable.
3242 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3243 (LIBICONV): New variable, set by configure.
3244 (CLIBS): Include $(LIBICONV) here.
3245 * aclocal.m4, config.in, configure: Regenerated.
3249 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3254 * gdb_mbuild.sh: New file.
3258 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3262 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3263 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3264 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3265 valops.c, value.h: Revert previous change.
3269 Preliminary support for Objective-C:
3270 * defs.h (language_objc): New enum value.
3271 (puts_filtered_tabular): Declaration only, exported from utils.c.
3272 (skip_quoted): Delete, declared in completer.h.
3273 * c-exp.y: Include completer.h.
3276 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3277 New operator enum values.
3278 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3279 * language.c (binop_result_type): Handle language_objc case.
3280 (integral_type, character_type, string_type, boolean_type,
3281 structured_type, binop_type_check): Ditto.
3282 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3283 (struct objc_specific): Add to general_symbol_info.
3284 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3285 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3286 * parser-defs.h (struct objc_class_str): New struct type.
3287 (start_msglist, end_msglist, add_msglist): Declaration only,
3288 exported from objc-lang.c.
3289 * value.h (value_of_local, value_nsstring,
3290 call_function_by_hand_expecting_type): Exported from valops.c.
3291 * valops.c (find_function_addr): Export.
3292 (call_function_by_hand_expecting_type): New function.
3293 (value_of_local): New function.
3294 * symfile.c (init_filename_language_table): Add ".m" extension
3296 * utils.c (puts_filtered_tabular): New function.
3297 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3298 (set/show demangle): Extend help-string to refer to ObjC.
3299 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3300 * stabsread.c (symbol_reference_defined): Objective-C symbols
3301 may contain colons: make allowances when scanning stabs strings
3303 (objc_find_colon): New function.
3304 * printcmd.c (address_info): If language == objc then print
3305 "self" instead of "this".
3306 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3307 OP_NSSTRING, and OP_SELF.
3308 (prefixify_subexp): Ditto.
3309 * source.c (print_source_lines): Mention objc in comment.
3310 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3315 * complaints.h: Update copyright.
3316 (struct complaints): Declare.
3317 (struct complaint): Make `message' constant.
3318 (internal_complaint): Declare.
3319 (complaint): Declare.
3320 (complaint_root): Delete declaration.
3321 (symfile_complaints): Delete declaration.
3322 (struct complaints): Add opaque declaration.
3323 (clear_complaints): Add a complaints parameter.
3324 * complaints.c: Update copyright.
3325 (enum complaint_series): Define.
3326 (complaint_root): Delete.
3327 (struct complaints): Define.
3328 (complaint_sentinel, symfile_complaint_book): New variables.
3329 (symfile_explanations, symfile_complaints): New variables.
3331 (get_complaints): New function.
3332 (vcomplaint): New function.
3333 (complaint): New function.
3334 (internal_complaint): New function.
3335 (complain): Call vcomplain with symfile_complaint.
3336 (clear_complaints): Rewrite.
3337 (_initialize_complaints): Use add_setshow_command.
3338 * Makefile.in (complaints.o): Update dependencies.
3339 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3340 to call to clear_complaints.
3341 (new_symfile_objfile, reread_symbols): Ditto.
3342 (oldsyms_complaint): Delete.
3343 (empty_symtab_complaint, unknown_option_complaint): Delete.
3344 (free_named_symtabs): Use complaint instead of complain.
3348 Contributed by Apple Computer, Inc. Merged with current sources
3351 * objc-lang.c: First clean-up round: comments, indentation.
3352 * objc-lang.h: Ditto.
3353 * objc-lang.y: Ditto.
3357 * maint.c (maintenance_internal_error): Print the parameter as the
3359 (maintenance_internal_warning): New function.
3360 (_initialize_maint_cmds): Add command `maint internal-warning'.
3362 * defs.h (internal_warning, internal_vwarning): Declare.
3363 * utils.c (struct internal_problem): Define.
3364 (internal_vproblem): New function.
3365 (internal_warning): New function.
3366 (internal_vwarning): New function.
3367 (internal_warning_problem, internal_error_problem): New variables.
3368 (internal_verror): Just call internal_vproblem.
3372 * objc-lang.c: New file, support for Objective-C.
3373 Preliminary check-in, not yet integrated into gdb.
3374 * objc-lang.h: New file.
3375 * objc-exp.y: New file.
3379 * infrun.c (signal_stop_update): Convert definition to ISO C.
3380 (signal_print_update): Ditto.
3381 (signal_pass_update): Ditto.
3382 * inflow.c (terminal_save_ours): Ditto.
3384 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3387 * config/djgpp/fnchange.lst: Handle name clashes between
3388 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3391 * i386-linux-tdep.h: Fix tipo.
3395 * MAINTAINERS: Add myself to the Write After Approval list.
3399 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3400 texthigh and textlow to reader-specific structs caused
3401 objfile_relocate to miss them. This is fixable, but the work that
3402 the change was supposed to prepare GDB for never got done anyway.
3406 * MAINTAINERS: Alphabetize Write After Approval list.
3411 * values.c (value_static_field): Call read_var_value.
3415 * valops.c (hand_function_call): Align the initial stack pointer
3416 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3417 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3419 * mips-tdep.c (mips_frame_align): New function.
3420 (mips_gdbarch_init): Set frame_align.
3421 * gdbarch.sh (FRAME_ALIGN): New method.
3422 * gdbarch.h, gdbarch.c: Re-generate.
3426 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3431 * NEWS: Mention that MIPS $fp behavior changed.
3432 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3433 reference to FP_REGNUM.
3434 (mipsnbsd_cannot_store_register): Ditto.
3435 * mips-linux-nat.c: Update copyright.
3436 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3437 (mips_linux_cannot_store_register): Ditto.
3438 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3439 * config/mips/tm-mips.h: Update copyright.
3440 (FP_REGNUM): Delete macro.
3441 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3442 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3443 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3444 (mips_r3041_reg_names, mips_r3051_reg_names)
3445 (mips_r3081_reg_names): Replace "fp" with "".
3450 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3451 generic_read_register_dummy() (PR gdb/703).
3452 (avr_push_return_address): #if 0 out unused vars.
3453 (avr_gdbarch_init): Enable use of avr_push_return_address().
3457 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3458 RTE will take care of it.
3462 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3463 invalid, return SP_REGNUM.
3467 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3468 point registers without sign extension.
3472 * blockframe.c (deprecated_read_register_dummy): Rename
3473 generic_read_register_dummy.
3474 * frame.c (frame_unwind_signed_register): New function.
3475 (frame_unwind_unsigned_register): New function.
3476 * frame.h (frame_unwind_signed_register): Declare.
3477 (frame_unwind_unsigned_register): Declare.
3478 (deprecated_read_register_dummy): Rename
3479 generic_read_register_dummy.
3481 * h8300-tdep.c (h8300_frame_chain): Update.
3482 (h8300_frame_saved_pc): Update.
3483 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3484 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3485 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3486 (s390_frame_chain): Update.
3487 * v850-tdep.c (v850_find_callers_reg): Update.
3488 (v850_frame_saved_pc): Update.
3489 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3490 (m32r_find_callers_reg): Update.
3491 (m32r_frame_saved_pc): Update.
3492 * sh-tdep.c (sh_find_callers_reg): Update.
3493 (sh64_get_saved_pr): Update.
3494 (sh_init_extra_frame_info): Update.
3495 (sh_init_extra_frame_info): Update.
3496 (sh64_init_extra_frame_info): Update.
3497 (sh64_init_extra_frame_info): Update.
3498 * mcore-tdep.c (mcore_find_callers_reg): Update.
3499 (mcore_frame_saved_pc): Update.
3500 (mcore_init_extra_frame_info): Update.
3501 * i386-tdep.c (i386_frame_saved_pc): Update.
3502 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3503 (ia64_init_extra_frame_info): Update.
3504 (ia64_init_extra_frame_info): Update.
3505 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3506 * cris-tdep.c (cris_init_extra_frame_info): Update.
3507 * avr-tdep.c (avr_frame_chain): Update.
3508 (avr_init_extra_frame_info): Update.
3509 (avr_frame_saved_pc): Update.
3510 * arm-tdep.c (arm_find_callers_reg): Update.
3511 (arm_init_extra_frame_info): Update.
3512 (arm_frame_saved_pc): Update.
3516 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3521 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3522 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3524 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3529 * osfsolib.c: Remove file, replaced by solib-osf.c.
3530 * Makefile.in: Remove compilation rules for osfsolib.c.
3534 * cp-valprint.c (cp_print_class_method): Correct args to
3535 check_stub_method_group.
3539 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3540 `set architecture'. Unify naming convention of functions.
3541 (h8300_skip_prologue): Improve prologue analysis.
3542 (h8300_push_arguments): Rewritten to more closely match GCC's
3543 bizarre argument-passing behavior, along with the comment describing
3545 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3546 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3547 sim, remote-e7000.c, remote-hms.c and remote.c
3551 * i386-tdep.c (gdb_print_insn_i386): Removed.
3552 (i386_print_insn): New function.
3553 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3554 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3559 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3564 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3565 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3566 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3570 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3574 * gdbtypes.c (check_stub_method): Make static.
3575 (check_stub_method_group): New function.
3576 * gdbtypes.h: Update prototypes.
3577 * cp-support.c: New file.
3578 * cp-support.h: New file.
3580 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3581 (update_method_name_from_physname): New function.
3582 (read_member_functions): Correct method names for operators
3583 and v3 constructors/destructors. Separate v2 constructors and
3585 * Makefile.in (stabsread.o): Update dependencies.
3586 (SFILES): Add cp-support.c.
3587 (COMMON_OBS): Add cp-support.o.
3588 (cp_support_h, cp-support.o): Add.
3590 * cp-valprint.c (cp_print_class_method): Call
3591 check_stub_method_group instead of check_stub_method. Remove
3593 * p-valprint.c (pascal_object_print_class_method): Likewise.
3594 * valops.c (search_struct_method): Likewise.
3595 (find_method_list, value_struct_elt_for_reference): Likewise.
3599 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3600 * gdbarch.h, gdbarch.c: Regenerate.
3604 * frame.c (find_saved_register): Delete function.
3605 * frame.h (find_saved_register): Delete declaration.
3610 * mips-tdep.c (read_next_frame_reg): Re-hack using
3611 frame_register_unwind.
3615 * mips-tdep.c (mips_get_saved_register): Re-hack using
3616 frame_register_unwind.
3620 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3621 vector. Will be useful for Interix.
3622 * gdbarch.h, gdbarch.c: Regenerate.
3624 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3625 name of the malloc function by NAME_OF_MALLOC.
3629 * value.h (find_function_in_inferior): Add const keyword to
3630 one of the parameters. Allows us to invoke this function with
3632 * valops.c (find_function_in_inferior): Likewise.
3636 * exec.c (xfer_memory): Fix compilation warning with old versions
3638 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3642 * symtab.h: Run through gdb_indent.h.
3643 Add 2002 to Copyright year list.
3647 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3649 * MAINTAINERS: Add myself to write after approval list.
3653 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3657 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3662 * procfs.c (do_detach): Clear current signal, not just fault.
3663 Corrects problem with breakpoint trap signal leaking to detached
3668 * buildsym.c (finish_block): Protect against null pointer.
3672 * infcmd.c (default_print_registers_info): Send all output to
3673 ``file'' instead of ``gdb_stdout''.
3677 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3678 LONGEST, and use signed register read (addresses are sign-
3683 * event-loop.c (gdb_do_one_event): Make public.
3684 * event-loop.h (gdb_do_one_event): Declare.
3688 * infttrace.c (child_resume): Simplify and rework to avoid
3693 * printcmd.c (print_scalar_formatted): "len" is the number of
3694 target bytes, NOT the number of target bits.
3699 * top.c (init_main): Set rl_terminal_name.
3703 * ada-lang.c (ada_array_bound, ada_type_match,
3704 _initialize_ada_language): Fix K&R definitions.
3705 * ada-tasks.c (get_current_task): Fix K&R definitions.
3706 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3710 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3715 * i386-tdep.c (i386_register_virtual_type,
3716 i386_register_convertible, i386_register_convert_to_virtual,
3717 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3718 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3719 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3720 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3721 Don't set push_arguments twice.
3723 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3724 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3725 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3726 sigtramp_end to NULL.
3727 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3729 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3731 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3734 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3735 * gdbarch.h, gdbarch.c: Re-generate.
3736 * blockframe.c (find_pc_sect_partial_function): Convert to use
3737 SIGTRAMP_START_P predicate.
3741 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3742 generic_dummy_frame method and old method. Also distinguish
3743 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3744 (arm_extract_return_value): Use new regcache method.
3746 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3747 adjustment that doesn't conform to the ABI.
3748 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3749 saved regcache, not from current regcache.
3753 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3758 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3759 if arm_apcs_32 is false.
3763 GDB 5.3 branch created.
3767 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3768 generic_unwind_get_saved_register.
3772 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3773 argument (PR gdb/653). Update call to smash_to_method_type.
3774 (read_structure_scope): Update call to dwarf2_add_member_fn.
3778 * x86-64-linux-tdep.c: Include gdb_string.h
3779 * x86-64-linux-nat.c: Ditto.
3783 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3784 when YYDEBUG is set to 1.
3785 * c-exp.y: Likewise.
3786 * f-exp.y: Likewise.
3787 * jv-exp.y: Likewise.
3788 * m2-exp.y: Likewise.
3789 * p-exp.y: Likewise.
3793 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3795 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3796 solib_svr4_fetch_link_map_offsets to
3797 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3798 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3799 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3800 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3801 solib-svr4.o, and solib-legacy.o.
3802 * config/i386/tm-nbsd.h: Include solib.h.
3806 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3807 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3808 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3809 comment noting that this needs its own target configuration.
3810 * config/i386/nbsd.mt: New file.
3811 * config/i386/nbsdaout.mt: Remove.
3812 * config/i386/nbsdelf.mt: Ditto.
3813 * config/i386/tm-nbsdaout.h: Ditto.
3817 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3818 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3819 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3821 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3822 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3823 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3827 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3828 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3829 * i386-tdep.h (i386bsd_init_abi): New prototype.
3830 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3831 function declaration.
3832 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3833 for NetBSD-a.out or NetBSD-ELF.
3834 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3835 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3836 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3837 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3839 (i386nbsd_pc_in_sigtramp): New function.
3840 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3841 i386nbsd_pc_in_sigtramp.
3842 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3843 and i386nbsdelf_init_abi OS ABI handlers.
3844 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3845 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3849 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3850 registers if the target really has them.
3854 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3859 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3861 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3862 (alphanbsd_skip_sigtramp_frame): New functions.
3863 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3864 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3865 to alphanbsd_sigcontext_addr.
3869 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3871 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3872 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3873 nbsd_pc_in_sigtramp.
3874 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3875 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3876 * nbsd-tdep.c: Include gdb_string.h.
3877 (nbsd_pc_in_sigtramp): New function.
3878 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3879 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3880 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3881 ppcnbsd_pc_in_sigtramp.
3882 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3883 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3884 shnbsd_pc_in_sigtramp.
3885 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3886 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3887 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3891 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3892 watchpoints to NULL.
3893 (insert_breakpoints): set val field of watchpoints if NULL.
3898 * symtab.c (lookup_symbol_aux): In the cases where we find a
3899 minimal symbol of an appropriate name and use its address to
3900 select a symtab to read and search, use `name' (as passed to us)
3901 as the demangled name when searching the symtab's global and
3902 static blocks, not the minsym's name.
3906 * stack.c (print_frame_info_base): Always set current_source_symtab
3907 and current_source_line.
3911 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3915 * stack.c (select_frame): Add FIXME concerning selected-frame
3917 (select_frame_command): Send selected-frame-level-changed
3918 event notification, but only if the level actually changed.
3919 (up_silently_base): Add selected-frame-level-changed event
3921 (down_silently_base): Likewise.
3925 * Makefile.in: Update dependencies for all gdb/*.c files.
3929 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3930 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3931 Update dependencies.
3932 * i387-tdep.c: Include gdb_string.h.
3933 * osabi.c: Likewise.
3934 * i386-linux-nat.c: Likewise.
3935 * lin-lwp.c: Likewise.
3936 * ax-gdb.c: Likewise.
3937 * signals/signals.c: Likewise.
3938 * jv-valprint.c: Likewise.
3939 * p-lang.c: Likewise.
3940 * c-valprint.c: Likewise.
3941 * cp-abi.c: Likewise.
3945 * cli/cli-script.h (copy_command_lines): Export.
3946 * breakpoint.c: Include cli/cli-script.h.
3947 * Makefile.in (breakpoint.o): Update dependencies.
3951 * breakpoint.c (insert_breakpoints): Protect all references
3952 to 'process_warning'. Shorten long lines.
3956 * cli/cli-script.c (copy_command_lines): New function.
3957 * defs.h (copy_command_lines): Export.
3958 * testsuite/gdb.base/commands.exp: New tests for commands
3959 attached to a temporary breakpoint, and for commands that
3960 delete the breakpoint they are attached to.
3964 * breakpoint.c (bpstat_stop_status): Instead of copying the
3965 pointer to the breakpoint commands struct, make a new copy
3966 of the struct and point to that.
3967 (bpstat_clear): Free the commands struct.
3968 (bpstat_clear_actions): Free the commands struct.
3969 (bpstat_do_actions): Free the command actions. Also execute
3970 the local cleanups, instead of deleting them.
3971 (delete_breakpoint): Leave the commands field of the bpstat
3972 chain alone -- it will be freed later.
3976 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3977 deleted in 2002-08-20 commit. This function is still used by
3982 * gdb-events.sh: Add selected-frame-level-changed event.
3983 * gdb-events.c: Regenerated.
3984 * gdb-events.h: Regenerated.
3989 * inflow.c (terminal_save_ours): New function to save terminal
3991 * inferior.h (terminal_save_ours): Declare.
3992 * target.c (debug_to_terminal_save_ours): New function.
3993 (cleanup_target): Defaults to_terminal_save_ours.
3994 (update_current_target): Inherit to_terminal_save_ours.
3995 (setup_target_debug): Set to_terminal_save_ours.
3996 * target.h (target_terminal_save_ours): New to save terminal settings.
3997 (target_ops): New member to_terminal_save_ours.
3998 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3999 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4000 * inftarg.c (init_child_ops): Likewise.
4001 * m3-nat.c (init_m3_ops): Likewise.
4002 * procfs.c (init_procfs_ops): Likewise.
4003 * wince.c (init_child_ops): Likewise.
4004 * win32-nat.c (init_child_ops): Likewise.
4005 * sol-thread.c (init_sol_thread_ops): Likewise.
4009 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4010 use regcache_* functions.
4011 (i386_gdbarch_init): Set store_return_value instead of
4012 deprecated_store_return_value.
4014 * regcache.c (regcache_raw_write_signed,
4015 regcache_raw_write_unsigned): New functions.
4016 * regcache.h (regcache_raw_write_signed,
4017 regcache_raw_write_unsigned): New prototypes.
4021 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4022 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4023 source file dependencies. Cleanup corresponding generator rules.
4027 * regcache.h (register_offset_hack): Declare.
4028 (regcache_cooked_read_using_offset_hack): Declare.
4029 (regcache_cooked_write_using_offset_hack): Declare.
4031 * regcache.c (register_offset_hack): New function.
4032 (regcache_cooked_read_using_offset_hack): New function.
4033 (regcache_cooked_write_using_offset_hack): New function.
4034 (regcache_dump): Check that the registers, according to their
4035 offset, are packed hard against each other.
4036 (cooked_xfer_using_offset_hack): New function.
4040 * regcache.c (struct regcache_descr): Add field register_type.
4041 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4043 (init_regcache_descr): Initialize register_type. Pass the descr
4044 to init_legacy_regcache_descr. Use register_type instead of
4045 REGISTER_VIRTUAL_TYPE.
4046 (register_type): New function.
4047 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4048 * regcache.h (register_type): Declare.
4052 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4053 instead of deprecated_store_return_value. Fix fallout from
4058 * regcache.c (max_register_size): New function.
4059 (init_legacy_regcache_descr): Ensure that max_register_size is
4060 large enough for REGISTER_VIRTUAL_SIZE.
4061 * regcache.h (max_register_size): Declare.
4065 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4067 (e500_extract_return_value): Change type of valbuf pointer to
4072 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4075 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4076 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4077 long long) to prevent compiler warning on 64-bit systems.
4081 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4082 (DEPRECATED_STORE_RETURN_VALUE): New method.
4083 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4084 * gdbarch.h, gdbarch.c: Re-generate.
4086 * values.c (set_return_value): Pass current_regcache to
4088 * arch-utils.h (legacy_store_return_value): Declare.
4089 * arch-utils.c (legacy_store_return_value): New function.
4090 (legacy_extract_return_value): Update parameters.
4092 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4094 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4095 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4096 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4097 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4098 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4099 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4100 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4101 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4102 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4103 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4106 * i386-tdep.c (i386_extract_return_value): Update.
4107 * arch-utils.c (legacy_extract_return_value): Update.
4108 * frv-tdep.c (frv_gdbarch_init): Update.
4109 * cris-tdep.c (cris_gdbarch_init): Update.
4110 * d10v-tdep.c (d10v_gdbarch_init): Update.
4111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4112 * m68k-tdep.c (m68k_gdbarch_init): Update.
4113 * mcore-tdep.c (mcore_gdbarch_init): Update.
4114 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4115 * s390-tdep.c (s390_gdbarch_init): Update.
4116 * sparc-tdep.c (sparc_gdbarch_init): Update.
4117 * sh-tdep.c (sh_gdbarch_init): Update.
4118 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4119 * v850-tdep.c (v850_gdbarch_init): Update.
4120 * avr-tdep.c (avr_gdbarch_init): Update.
4121 * ia64-tdep.c (ia64_gdbarch_init): Update.
4122 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4123 * vax-tdep.c (vax_gdbarch_init): Update.
4124 * alpha-tdep.c (alpha_gdbarch_init): Update.
4125 * arm-tdep.c (arm_gdbarch_init): Update.
4126 * mips-tdep.c (mips_gdbarch_init): Update.
4127 * i386-tdep.c (i386_gdbarch_init): Update.
4131 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4132 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4136 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4141 * infrun.c (handle_inferior_event): Move a comment outside of a
4142 function call, in order to avoid indent reformatting this part
4143 of the code in an unreadable way.
4147 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4148 when breakpoints fail. Move general breakpoint error messages to
4150 * breakpoint.c (insert_breakpoints): Change warnings when
4151 breakpoints are nto inserted to specify the type. Remove call to
4152 memory_error when hardware breakpoints can't be inserted. Remove
4153 multiple calls to warning so all messages are sent to the user at
4155 (delete_breakpoints): Make insert error messsages more explicit.
4159 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4160 gdbserver/ChangeLog.
4164 * i386-tdep.c: Include "objfiles.h".
4165 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4166 skip_trampoline_code.
4167 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4168 (CPLUS_MARKER): Define to '.'.
4170 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4172 (linux_corefile_thread_callback): Increase args->num_notes.
4173 (linux_make_note_section): Initialize thread_args.num_notes, and
4174 use it to determine whether notes for any threads were created.
4178 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4179 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4181 (write_with_trace): Conditionalize out the switch branch handling
4182 PCSHOLD if the corresponding macro is not defined. Likewise for
4183 PRSABORT and PRSTOP.
4184 This change will be needed by the Interix port.
4188 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4189 write_register wherever possible instead of manipulating the
4190 register bytes directly.
4191 Assign VALUE_CONTENTS to a variable and use that.
4192 The GPR numbers are now dependent on the architecture.
4196 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4198 (skip_prologue): Add support for BookE/e500 instructions.
4199 (e500_extract_return_value): New function.
4200 (frame_get_saved_regs): Add support for saving ev registers and
4202 (e500_store_return_value): New function.
4203 (rs6000_gdbarch_init): Move up default intializations of
4204 deprecated_extract_return_value and store_return_value. Overwrite
4205 init of store_return_value with e500 specific version.
4206 Set extract_return_value for e500.
4210 * blockframe.c (generic_call_dummy_register_unwind): Use
4211 regcache_cooked_read to catch cases in which the variable is
4212 stored in a pseudo register.
4216 * NEWS: Mention that the i960 has been made obsolete.
4217 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4219 (remote-nrom.o): Obsolete target.
4220 (remote-nindy.o, i960-tdep.o): Ditto.
4221 * remote-nrom.c: Make file obsolete.
4222 * remote-nindy.c, remote-vx960.c: Ditto.
4223 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4224 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4225 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4226 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4227 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4228 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4229 i960-*-vxworks* obsolete.
4230 * MAINTAINERS: Note that the i960 is obsolete.
4234 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4235 detach to allow reinitialization.
4239 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4244 * coffread.c (coff_symfile_read): Don't try to read the line
4245 number table from disk if the image file doesn't have a symbol
4246 table; we'll never actually look at the info anyway, and Windows
4247 ships DLL's with bogus file offsets for the line number data.
4251 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4256 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4257 (MSYMBOL_SIZE): Replace macro with function.
4258 (DEFAULT_MIPS_TYPE): Delete unused macro.
4259 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4260 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4264 * valops.c (value_cast): Simplify and correct logic for doing a
4265 static cast from a pointer to a base class to a pointer to a
4270 * infcmd.c (default_print_registers_info): Replace
4272 (registers_info): Use gdbarch_print_registers_info instead of
4274 * inferior.h (default_print_registers_info): Replace
4276 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4277 (DO_REGISTERS_INFO): Change to a predicate function.
4278 * gdbarch.h, gdbarch.c: Regenerate.
4282 * gdb-events.sh: Add target-changed event.
4283 * gdb-events.c: Regenerated.
4284 * gdb-events.c: Regenerated.
4285 * valops.c (value_assign): Add target-changed event notification
4286 to inlval_register, lval_memory, and lval_reg_frame_relative.
4290 * NEWS: Add an entry regarding the improvement of the next/step
4291 operation on Alpha Tru64 multi-processor machines.
4295 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4297 * Makefile.in: Update all _h macro definitions.
4298 * Makefile.in (install-gdbtk): Move to install section.
4299 (rdi-share/libangsd.a): Move to end of file.
4303 * frame.c (frame_register_unwind): When a register, set addrp to
4304 the register's byte.
4308 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4309 used locally, so move them from the target machine header to here.
4310 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4311 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4313 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4317 * NEWS: Mention that the Apollo line was made obsolete.
4318 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4319 m68*-hp-hpux* obsolete.
4320 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4321 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4322 * buildsym.c (make_blockvector): Make static.
4323 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4324 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4325 (ALLDEPFILES): Remove dstread.c.
4326 (dstread.o): Obsolete make rule.
4327 * dstread.c: Makefile obsolete.
4329 * config/m68k/hp300hpux.mt: Ditto.
4330 * config/m68k/hp300hpux.mh: Ditto.
4331 * config/m68k/hp300bsd.mt: Ditto.
4332 * config/m68k/hp300bsd.mh: Ditto.
4333 * config/m68k/apollo68b.mt: Ditto.
4334 * config/m68k/apollo68v.mh: Ditto.
4335 * config/m68k/apollo68b.mh: Ditto.
4339 * mips-tdep.c (mips_in_return_stub): Make static.
4340 (mips_gdbarch_init): Set in_solib_return_trampoline.
4341 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4345 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4346 * gdbarch.c, gdbarch.h: Regenerate.
4347 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4349 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4353 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4354 (mips_gdbarch_init): Set skip_trampoline_code,
4355 in_solib_call_trampoline.
4356 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4357 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4361 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4363 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4364 vector type for ev registers.
4365 (e500_pseudo_register_read): New function.
4366 (e500_pseudo_register_write): New function.
4367 (e500_dwarf2_reg_to_regnum): New function.
4368 (PPC_UISA_NOFP_SPRS): New macro.
4369 (PPC_EV_REGS): New macro.
4370 (PPC_GPRS_PSEUDO_REGS): New macro.
4371 (registers_e500): New register set for e500.
4372 (variants): Add e500 variant.
4373 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4374 before setting architectural dependent variations. Initialize ev
4375 registers numbers. Add case for e500 architecture. Set the
4376 number of pseudo registers.
4380 * rs6000-tdep.c: Clean up comments.
4384 * h8300-tdep.c: Re-indent file.
4388 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4393 * breakpoints.c (watch_command_1): Use internal breakpoint
4394 when setting a watchpoint_scope breakpoint.
4398 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4399 (build_builtin_type_vec64i): Ditto.
4400 (build_builtin_type_vec128): Ditto.
4401 (build_builtin_type_vec128i): Ditto.
4405 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4406 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4407 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4408 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4409 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4410 CALL_DUMMY_ADDRESS): Delete.
4411 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4412 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4413 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4414 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4415 push_return_address.
4416 (mips_register_raw_size, mips_eabi_use_struct_convention,
4417 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4418 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4419 mips_init_extra_frame_info, mips_eabi_push_arguments,
4420 mips_n32n64_push_arguments, mips_push_return_address,
4421 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4422 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4426 * mips-tdep.c (mips_frame_num_args): New function.
4427 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4428 frame_saved_pc, frame_args_address, frame_locals_address,
4429 frame_num_args, and frame_args_skip.
4430 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4431 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4432 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4433 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4437 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4438 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4439 * mips-tdep.c (mips_store_struct_return): New function.
4440 (mips_extract_struct_value_address): New function.
4441 (mips_gdbarch_init): Set store_struct_return and
4442 extract_struct_value_address.
4446 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4447 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4448 (read_file_scope): Check that line_header is nonzero before
4449 decoding macro information.
4453 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4454 flag the general-purpose registers as floating-point on targets
4455 that don't support the floating-point registers.
4459 * rs6000-tdep.c (altivec_register_p): Delete.
4460 (rs6000_do_altivec_registers): Delete.
4461 (rs6000_altivec_registers_info): Delete.
4462 (rs6000_do_registers_info): Delete.
4463 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4464 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4468 * infcmd.c (do_registers_info): Print vector registers in hex
4470 (print_vector_info): Check that printing registers
4472 (print_float_info): Ditto.
4476 * mips-tdep.c (mips_gdbarch_init): Update.
4477 (mips_o32_extract_return_value): Rewrite.
4478 (mips_o32_store_return_value): Rewrite.
4479 (mips_o32_xfer_return_value): New function.
4480 (mips_xfer_register): Tweak debug print message. Allow for
4481 buf_offset when dumping the value transfered.
4485 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4486 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4487 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4488 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4489 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4493 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4497 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4499 (P): New macro to define a register as a pseudo register.
4500 (R, R4, R8, R16, FR32, R64, R0): Updated.
4501 (struct variant): Add new fields for number of pseudo registers
4502 and number of total registers.
4503 (tot_num_registers): New macro replacing....
4504 (num_registers): ...deleted macro.
4505 (num_registers): New function.
4506 (num_pseudo_registers): New function.
4507 (variants): Update all variants to intialize new fields correctly.
4508 Postpone initialization of number of pseudo regs and real regs.
4509 (init_variants): New function.
4510 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4515 * valops.c (search_struct_field): Change error message to treat
4516 return value of 0 from value_static_field as meaning that field is
4518 (value_struct_elt_for_reference): Ditto.
4519 * values.c (value_static_field): Treat an unresolved location the
4520 same as a nonexistent symbol. Fix PR gdb/635.
4521 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4522 enclosed. Fix PR gdb/574.
4523 * MAINTAINERS: Add self to Write After Approval list.
4527 * mips-tdep.c (mips_xfer_register): New function.
4528 (mips_n32n64_extract_return_value): Rewrite.
4529 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4530 instead of deprecated_extract_return_value.
4534 * rs6000-tdep.c (TDEP): Delete macro.
4535 (branch_dest): Replace use of TDEP macro with its body.
4536 (rs6000_pop_frame): Ditto.
4537 (rs6000_push_arguments): Ditto.
4538 (rs6000_skip_trampoline_code): Ditto.
4539 (rs6000_frame_saved_pc): Ditto.
4540 (rs6000_frame_chain): Ditto.
4541 (rs6000_register_name): Ditto.
4542 (rs6000_register_byte): Ditto.
4543 (rs6000_register_raw_size): Ditto.
4544 (rs6000_register_virtual_type): Ditto.
4545 (rs6000_register_convertible): Ditto.
4546 (rs6000_convert_from_func_ptr_addr): Ditto.
4550 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4552 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4553 MIPS_LINUX_JB_ELEMENT_SIZE.
4554 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4555 for MAX_REGISTER_RAW_SIZE arrays.
4556 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4557 MIPS_LINUX_JB_ELEMENT_SIZE.
4561 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4565 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4566 ada-valprint.c ada-tasks.c.
4567 (YYFILES): Add ada-exp.y.
4568 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4569 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4570 (ada-exp.tab.o): New target.
4574 * regcache.c (regcache_xfer_part): New function.
4575 (regcache_raw_read_part): New function.
4576 (regcache_raw_write_part): New function.
4577 (regcache_cooked_read_part): New function.
4578 (regcache_cooked_write_part): New function.
4579 * regcache.h (regcache_raw_read_part): Declare.
4580 (regcache_raw_write_part): Declare.
4581 (regcache_cooked_read_part): Declare.
4582 (regcache_cooked_write_part): Declare.
4586 * remote.c (remote_open_1): Add async_p.
4587 (remote_async_open_1): Delete.
4588 (open_remote_target): Delete.
4589 (remote_open, extended_remote_open): Update calls to remote_open_1.
4590 (remote_async_open, extended_remote_async_open): Call
4591 remote_open_1 instead of remote_async_open_1.
4595 * blockframe.c: Fix a few coding standard violations.
4599 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4601 * config/i386/tm-i386sco5.h: ... here. File removed.
4602 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4604 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4605 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4606 (TM_FILE): Set to tm-i386.h.
4607 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4608 * config/i386/tm-i386v.h: Remove file.
4609 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4610 instead of "i386/tm-i386v.h".
4611 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4612 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4614 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4615 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4620 * config/i386/nm-i386v.h: Add protection against
4622 (i386_register_u_addr): Remove prototype.
4623 (register_u_addr): New prototype.
4624 (REGISTER_U_ADDR): Redefine accordingly.
4625 * i386v-nat.c: Improve several comments.
4626 (i386_register_u_addr): Change signature and rename to
4627 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4632 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4633 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4634 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4635 deprecated_extract_return_value.
4636 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4637 rename mips_o32o64_push_arguments.
4638 (mips_gdbarch_init): Update.
4639 (mips_extract_return_value): Delete.
4640 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4641 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4642 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4643 (mips_n32n64_extract_return_value): Clone
4644 mips_extract_return_value.
4645 (mips_store_return_value): Delete.
4646 (mips_o32_store_return_value): Clone mips_store_return_value.
4647 (mips_o64_store_return_value): Clone mips_store_return_value.
4648 (mips_eabi_store_return_value): Clone mips_store_return_value.
4649 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4653 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4654 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4658 * ada-lang.c: Run through gdb_indent.sh.
4659 * ada-lang.h: Run through gdb_indent.sh.
4660 * ada-tasks.c: Run through gdb_indent.sh.
4661 * ada-typeprint.c: Run through gdb_indent.sh.
4662 * ada-valprint.c: Run through gdb_indent.sh.
4666 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4671 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4673 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4674 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4676 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4677 write_register_gen instead of write_register_bytes.
4679 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4680 i[3456]-*-osf1mk* configurations have been made obsolete.
4681 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4682 i[3456]86-*-osf1mk* hosts obsolete.
4683 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4685 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4686 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4687 config/i386/i386m3.mt, config/i386/nm-m3.h,
4688 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4689 config/i386/i386mk.mh, config/i386/i386mk.mt,
4690 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4692 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4693 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4694 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4698 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4699 (hppa_value_returned_from_stack): Declare.
4700 (hppa_extract_return_value): Declare.
4701 * config/pa/hppa.mt: New file.
4702 * configure.tgt: Recognize hppa*-*-*.
4703 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4707 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4712 * top.c (gdb_rl_operate_and_get_next): Make sure
4713 operate-and-get-next functions correctly even when the history
4714 list is completely filled.
4718 * MAINTAINERS (Target Instruction Set Architectures): Rename
4719 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4720 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4721 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4722 already listed under Host/Native.
4724 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4725 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4730 * config/ia64/ia64.mt: New file.
4731 * config/alpha/alpha.mt: New file.
4732 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4733 ia64-linux-gnu. Mention that ia64-elf is broken.
4734 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4738 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4739 generic_func_frame_valid instead of func_frame_valid.
4743 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4744 procfs appears to be broken when debugging on multi-processor
4745 machines. So enable software single stepping in order to avoid
4746 using the procfs interface to do next/step operations, using
4747 internal breakpoints instead.
4749 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4750 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4751 make this pc address equal to the value it would have if the
4752 system stepping capability was used. Also set a new flag used
4753 to ensure that we don't readjust the PC one more time later.
4755 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4756 address by DECR_PC_AFTER_BREAK when software single step is
4757 in use for this architecture, as this has already been taken
4758 care of in handle_inferior_event().
4762 * infrun.c (handle_inferior_event): Minor reformatting, to make
4763 a rather long condition expression easier to read.
4767 * Makefile.in (gdbtk.o): Move to end of file.
4768 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4769 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4770 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4771 (gdbtk-wrapper.o, gdbres.o): Ditto.
4775 * Makefile.in (copying.o): Separate out compile rule.
4776 (hpux-thread.o, procfs.o, signals.o): Ditto.
4777 (v850ice.o, z8k-tdep.o): Ditto.
4778 (tui-file.o): Move to TUI section.
4779 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4780 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4784 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4785 skip_trampoline_code, for better namespace-proofing.
4787 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4791 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4795 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4796 signal, check whether we hit a breakpoint before checking for a
4797 single step breakpoint. Otherwise, GDB fails to notice that a
4798 breakpoint has been hit when stepping onto a breakpoint.
4802 * gdb-events.sh (clear_gdb_event_hooks): New function.
4803 * gdb-events.c: Regenerate.
4804 * gdb-events.h: Regenerate.
4808 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4809 not_a_sw_breakpoint.
4810 * breakpoint.h (bpstat_stop_status): Add parameter names.
4814 * remote.c (remote_insert_hw_breakpoint)
4815 (remote_remove_hw_breakpoint): Fix calculation of length field
4820 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4821 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4822 (supply_fpregset): Ditto.
4824 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4825 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4826 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4827 (TARGET_READ_SP): Delete.
4828 (DO_REGISTERS_INFO): Delete.
4829 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4831 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4832 from macros to functions.
4834 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4835 (mips_register_convertible, mips_register_convert_to_virtual,
4836 mips_register_convert_to_raw): Make static.
4837 (mips_read_sp): New function.
4838 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4839 (mips_do_registers_info): Make static.
4840 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4841 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4842 (mips_register_convert_from_type, mips_register_convert_to_type):
4844 (mips_gdbarch_init): Set up function_start_offset,
4845 register_virtual_size, pc_in_sigtramp.
4849 * infcmd.c (vector_info): New function.
4850 (_initialize_infcmd): Add command "info vector".
4851 (print_vector_info): New function.
4853 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4854 * gdbarch.h, gdbarch.c: Regenerate.
4858 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4859 ``print_all''. Only print vector registers when ``print_all''.
4863 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4864 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4866 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4867 Add `args' parameter.
4868 * gdbarch.h, gdbarch.c: Regenerate.
4870 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4872 * infcmd.c (float_info): Call print_float_info.
4873 (print_float_info): New function. By default, print the
4874 floating-point registers.
4876 * arch-utils.h (default_print_float_info): Delete declaration.
4877 * arch-utils.c (default_print_float_info): Delete function.
4881 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4884 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4887 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4888 * configure.host: Make i[3456]86-*-aix host obsolete.
4889 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4890 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4891 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4892 config/i386/xm-i386aix.h: Make files obsolete.
4893 * i386aix-nat.c: Make file obsolete.
4894 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4895 (i386aix-nat.o): Make target obsolete.
4897 * config/i386/nm-gnu.h: Removed.
4898 * config/i386/nm-i386gnu.h: New file.
4899 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4900 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4902 * config/i386/tm-i386gnu.h: ... here. Removed.
4903 * config/i386/xm-i386gnu.h: Removed.
4904 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4905 (NAT_FILE): Set to nm-i386gnu.h.
4906 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4907 * i386-tdep.c: New file.
4908 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4909 (i386gnu-tdep.o): Specify dependencies.
4913 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4914 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4915 Adjust a few comments to reflect reality a bit closer.
4916 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4917 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4918 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4919 target_insert_watchpoint, target_remove_watchpoint):
4921 * config/i386/nm-i386sco5.h: ... here.
4922 (kernel_u_size): Add prototype. Improve a few comments and add
4923 protection against multiple inclusion.
4925 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4928 * uw-thread.c (SP_ARG0): Define if not already defined.
4929 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4931 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4933 * config/i386/tm-i386.h: Don't include "regcache.h".
4935 * i387-tdep.h (i387_print_float_info): New prototype.
4936 * i387-tdep.c (print_i387_value, print_i387_ext,
4937 print_i387_status_word, print_i387_control_word): Add `struct
4938 ui_file *' argument and use it for output.
4939 (i387_print_float_info): Renamed from i387_float_info. Add
4940 `struct gdbarch *' and `struct ui_file *' arguments and use the
4942 * i386-tdep.c: Include "i387-tdep.h".
4943 (i386_gdbarch_init): Set print_float_info.
4944 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4945 (FLOAT_INFO): Remove define.
4949 * mips-tdep.c (mips_push_arguments): Rename to
4950 mips_eabi_push_arguments, and tune for EABI.
4951 (MIPS_REGS_HAVE_HOME_P): Delete.
4952 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4953 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4954 Delete references to mips_regs_have_home_p.
4958 * Makefile.in (install-gdbtk): Create insight plugin directory.
4959 Install plugins.tcl file.
4963 * configure.in: Move SUBDIRS to near top of the file so that
4964 --enable options may add things to it.
4965 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4966 * configure: Regenerate.
4970 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4971 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4972 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4976 * vax-tdep.c (vax_get_saved_register): Delete function.
4977 (vax_gdbarch_init): Update.
4978 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4979 (ns32k_gdbarch_init): Update.
4980 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4981 (alpha_gdbarch_init): Update.
4985 * regcache.c (init_regcache_descr): Overallocate the
4986 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4987 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4989 (set_register_cached): Add range checking assertions. Use
4994 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4995 numbers for MMX registers.
4999 * i386-tdep.c (i386_gdbarch_init): Use
5000 generic_unwind_get_saved_register.
5004 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5005 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5007 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5008 Delete. Add comment regarding this now-deleted target method.
5012 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5013 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5014 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5015 real PC and the page number (if it's within the memory bank window).
5016 (m68hc11_pseudo_register_write): Likewise when saving.
5017 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5018 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5019 (m68hc11_register_raw_size): And use 32-bit for it.
5020 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5021 16K memory bank is used by the prog; also use the virtual pc.
5025 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5026 (m68hc11_gdbarch_init): Install it in gdbarch.
5027 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5028 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5029 (MSYMBOL_SIZE): New for documentation.
5030 (insn_return_kind): Enum to specify how a function returns.
5031 (frame_extra_info): Cleanup and record the return mode.
5032 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5033 register in address computation.
5034 (m68hc11_get_return_insn): New to obtain the return instruction used
5036 (m68hc11_frame_init_saved_regs): Take into account the return
5037 instruction used by the function for far and interrupt functions.
5038 (m68hc11_init_extra_frame_info): Take into account page register.
5039 (m68hc11_frame_args_address): Adjust according to the return mode.
5040 (show_regs): Print page register only when it's used.
5044 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5045 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5046 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5048 (m68hc11_register_raw_size): Likewise.
5052 * i386-tdep.c (i386_register_name): Handle mmx registers.
5053 (mmx_regnum_p): New function.
5054 (i386_mmx_names): New array.
5055 (mmx_num_regs): New variable.
5056 (i386_pseudo_register_read): New function.
5057 (i386_pseudo_register_write): New function.
5058 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5060 * regcache.c (regcache_raw_read_unsigned): New function.
5061 (regcache_raw_read_signed): New function.
5062 * regcache.h (regcache_raw_read_unsigned): Declare.
5063 (regcache_raw_read_signed): Declare.
5067 * regcache.c (regcache_raw_read_as_address): Delete function.
5068 (regcache_cooked_read_signed): New function.
5069 (regcache_cooked_read_unsigned): New function.
5070 * regcache.h (regcache_cooked_read_signed): Declare.
5071 (regcache_cooked_read_unsigned): Declare.
5072 (regcache_raw_read_as_address): Delete declaration.
5074 * blockframe.c (generic_read_register_dummy): Use
5075 regcache_cooked_read_unsigned.
5076 * i386-tdep.c (i386_extract_struct_value_address): Use
5077 regcache_cooked_read_unsigned.
5081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5082 double sizes according to ELF ABI flags.
5083 (gdbarch_tdep): Record elf_flags.
5087 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5088 (m6812_prolog): They can appear in 68HC12 function prologue.
5089 (m68hc11_frame_chain): Cleanup.
5093 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5095 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5096 (i386_linux_register_raw_size): Delete function.
5097 (i386_linux_init_abi): Update.
5098 * i386-tdep.c (i386_register_raw_size): Delete function.
5099 (i386_register_byte): Delete function.
5100 (i386_gdbarch_init): Update.
5101 (i386_register_size): Delete array.
5102 (i386_register_offset): Delete array.
5104 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5105 (REGISTER_RAW_SIZE): Delete macro.
5106 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5107 (REGISTER_BYTE): Delete macro.
5111 * ada-lang.c (ada_lookup_partial_symbol)
5112 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5113 prototype names so that grep ^func works properly.
5115 * ada-lang.c (ada_array_element_type)
5116 (ada_lookup_partial_symbol): Fix typos in parameter list.
5118 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5119 Fix prototype names so that grep ^func works properly.
5125 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5126 (build_builtin_type_vec128i): Set the vector bit.
5127 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5128 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5129 (build_builtin_type_vec64): New function.
5130 (build_builtin_type_vec64i): New function.
5131 (build_gdbtypes): Initialize builtin_type_vec64 and
5132 builtin_type_vec64i.
5136 * regcache.c (regcache_dump): Compare the register offset
5138 * arch-utils.c (generic_register_byte): New function.
5139 * arch-utils.h (generic_register_byte): Declare.
5140 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5141 * gdbarch.h, gdbarch.c: Regenerate.
5145 * regcache.c: Include "gdbcmd.h"
5146 (_initialize_regcache): Add commands "maintenance print
5147 registers", "maintenance print raw-registers" and "maintenance
5148 print cooked-registers".
5149 (enum regcache_dump_what): Define.
5150 (dump_endian_bytes): New function.
5151 (regcache_dump): New function.
5152 (regcache_print): New function.
5153 (maintenance_print_registers): New function.
5154 (maintenance_print_raw_registers): New function.
5155 (maintenance_print_cooked_registers): New function.
5156 * Makefile.in (regcache.o): Update dependencies.
5160 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5161 (mips_push_arguments): Correct some comments. Use paddr_nz
5162 for printing addresses in debug output. Replace static
5163 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5164 (mips_n32n64_push_arguments): New function, cloned from
5165 mips_push_arguments and tuned for the n32/n64 ABI.
5166 (mips_push_register): Buffer needs dynamic allocation.
5167 (mips_print_register): Ditto.
5168 (do_gp_register_row): Ditto.
5169 (mips_store_return_value): Ditto.
5170 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5174 * memattr.c (mem_info_command): Print special case of upper bound
5175 as max CORE_ADDR + 1.
5179 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5180 returns structs by ref if they're too big to fit in two registers.
5184 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5186 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5187 mips_find_saved_regs().
5188 (mips_pop_frame): Likewise.
5192 * blockframe.c (frame_saved_regs_register_unwind): Revise
5193 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5198 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5199 T-packets; the 'a' is not taken as a register number.
5200 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5201 (remote_stopped_data_address): New functions; add to target
5203 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5204 prototypes to match other implementations of this
5205 function. replace integer argument with pointer -- the length
5206 field in the Z-packet is the length of what is pointed to or 1 if
5207 pointer is null. Add to target vector.
5208 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5212 * remote.c (remote_wait): Add support to extract optional
5213 watchpoint information from T-packet. Ignore unrecognized
5214 optional info in T-packet.
5215 (remote_async_wait): Ditto.
5219 * cli/cli-dump.c: Change fopen modes to use binary open modes
5220 as defined in include/fopen-bin.h throughout.
5224 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5228 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5229 assertion failure by returning early after a warning.
5233 * mips-tdep.c (mips_find_saved_regs): Make static.
5234 (mips_frame_init_saved_regs): New function.
5235 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5236 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5237 (mips_find_saved_regs): Delete declaration.
5241 * remote.c (remote_wait, remote_async_wait): Change
5242 thread_num from int to ULONGEST.
5243 (unpack_varlen_hex): Change result parameter from
5244 int * to ULONGEST *.
5248 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5249 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5251 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5255 * gcore.c (override_derive_stack_segment): Delete variable.
5256 (preempt_derive_stack_segment): Delete function.
5257 (derive_stack_segment): Delete function.
5258 (default_derive_stack_segment): Renamed to derive_stack_segment.
5259 (override_derive_heap_segment): Delete variable.
5260 (preempt_derive_heap_segment): Delete function.
5261 (derive_heap_segment): Delete function.
5262 (default_derive_heap_segment): Rename to derive_heap_segment.
5266 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5267 * mips-tdep.c (mips_EABI_use_struct_convention,
5268 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5269 New functions. (mips_use_struct_convention): Delete.
5270 (mips_gdbarch_init): set use_gdbarch_convention.
5274 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5275 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5276 mips_o32_reg_struct_has_addr): New functions.
5277 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5281 * regcache.c (pseudo_register): Delete function.
5282 (fetch_register): Delete function.
5283 (store_register): Delete function.
5284 (regcache_raw_read, legacy_read_register_gen): Use
5285 target_fetch_registers instead of fetch_register.
5286 (legacy_write_register_gen, regcache_raw_write): Use
5287 target_store_register instead of store_register.
5288 (write_register_bytes): Ditto.
5290 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5291 (STORE_PSEUDO_REGISTER): Delete.
5292 * gdbarch.h, gdbarch.c: Regenerate.
5296 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5297 write dump file binary.
5301 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5302 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5303 (mips_gdbarch_init): Set N32 target to be mips64.
5307 * frame.c (find_saved_register): Break out of loop once saved
5308 register address is found. Don't mention sparc in loop comment
5313 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5314 mips_default_saved_regsize to 8.
5318 * gcore.c: Do not include <sys/procfs.h>.
5319 * Makefile.in (gcore.o): Update dependencies.
5323 * configure.tgt: Make arc-*-* obsolete.
5324 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5325 * MAINTAINERS: Make arc-elf obsolete.
5326 * arc-tdep.c: Make file obsolete.
5327 * config/arc/arc.mt: Ditto.
5328 * config/arc/tm-arc.h: Ditto.
5332 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5336 * mcore-tdep.c (mcore_gdbarch_init): Use
5337 generic_unwind_get_saved_register instead of
5338 generic_get_saved_register.
5339 * v850-tdep.c (v850_gdbarch_init): Ditto.
5340 * frv-tdep.c (frv_gdbarch_init): Ditto.
5341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5342 * s390-tdep.c (s390_gdbarch_init): Ditto.
5343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5344 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5345 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5349 * objfiles.h: Add missing #include "symfile.h"
5351 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5356 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5361 * NEWS: Cleanup and nitpick.
5365 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5369 * Makefile.in (gdbtk-bp.o): Update dependencies.
5370 (gdbtk-register.o): Ditto.
5371 (gdbtk-varobj.o): Ditto.
5375 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5376 m68hc11_fetch_pseudo_register.
5377 (m68hc11_pseudo_register_write): Replace
5378 m68hc11_store_pseudo_register.
5379 (m68hc11_gdbarch_init): Update.
5383 * gdbarch.sh: Include "gdb_string.h".
5384 * gdbarch.c: Regenerate.
5386 * regcache.c: Include "gdb_string.h".
5387 * ax-general.c: Ditto.
5389 * std-regs.c: Ditto.
5390 * fbsd-proc.c: Ditto.
5393 * Makefile.in (regcache.o): Update dependencies.
5394 (thread.o, gdbarch.o): Ditto.
5395 (ax-general.o, gdbarch.o): Ditto.
5396 (varobj.o, std-regs.o): Ditto.
5397 (fbsd-proc.o): Specify dependencies.
5401 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5403 (regcache_cooked_write): Ditto.
5407 * regcache.c (regcache_cooked_read): New function.
5408 (regcache_cooked_write): New function.
5409 (read_register_gen): Rewrite using regcache_cooked_read.
5410 (write_register_gen): Rewrite using regcache_cooked_write.
5412 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5417 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5418 Replace the architecture methods register_read and register_write.
5419 * gdbarch.h, gdbarch.c: Regenerate.
5420 * regcache.c (init_regcache_descr): Update.
5421 (read_register_gen): Update.
5422 (write_register_gen): Update.
5423 (supply_register): Update comment.
5425 * sh-tdep.c (sh_gdbarch_init): Update.
5426 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5427 `regcache' and `gdbarch' parameters. Make `buffer' a void
5428 pointer. Update code.
5429 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5430 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5431 void pointer. Update code.
5432 (sh64_register_write): Delete.
5433 (sh4_register_read): Delete.
5434 (sh64_register_read): Delete.
5435 (sh4_register_write): Delete.
5436 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5437 void pointer, `to' parameter a void pointer.
5438 (sh_sh64_register_convert_to_raw): Ditto.
5442 * mips-tdep.c (mips_register_virtual_type): Use architecture
5443 invariant return values.
5447 * linux-proc.c: Include "gdb_string.h".
5448 * Makefile.in (linux-proc.o): Update dependency list.
5452 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5457 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5458 to_insert_watchpoint, to_remove_watchpoint,
5459 to_stopped_by_watchpoint, to_stopped_data_address,
5460 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5461 target vecctor. Define their corresponding macros so they call
5464 * target.c: Add default and debug versions of for
5465 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5466 to_insert_watchpoint, to_remove_watchpoint,
5467 to_stopped_by_watchpoint, to_stopped_data_address,
5468 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5472 * mips-tdep.c (mips_register_virtual_type): New function.
5473 (mips_gdbarch_init): Register mips_register_virtual_type()
5474 with gdbarch machinery.
5475 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5476 this file instead of tm-bigmips.h.
5477 (MIPS_REGSIZE): Delete this macro.
5478 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5479 multiarch version in mips-tdep.c will be found.
5483 * NEWS: Menion that CHILL has been made obsolete.
5485 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5486 * stabsread.c (read_range_type): Ditto.
5487 * gdbtypes.h: Ditto.
5488 * language.c (binop_type_check): Ditto.
5489 (binop_result_type): Ditto.
5490 (integral_type): Ditto.
5491 (character_type): Ditto.
5492 (string_type): Ditto.
5493 (boolean_type): Ditto.
5494 (structured_type): Ditto.
5495 (lang_bool_type): Ditto.
5496 (binop_type_check): Ditto.
5497 * language.h (_LANG_chill): Ditto.
5498 * dwarfread.c (set_cu_language): Ditto.
5499 * dwarfread.c (CHILL_PRODUCER): Ditto.
5500 * dwarfread.c (handle_producer): Ditto.
5501 * expression.h (enum exp_opcode): Ditto.
5502 * eval.c: Ditto for comments.
5503 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5504 * expprint.c (print_subexp): Ditto.
5505 (print_subexp): Ditto.
5506 * valops.c (value_cast): Ditto.
5507 (search_struct_field): Ditto.
5508 * value.h (COERCE_VARYING_ARRAY): Ditto.
5509 * symfile.c (init_filename_language_table): Ditto.
5510 (add_psymbol_with_dem_name_to_list): Ditto.
5511 * valarith.c (value_binop): Ditto.
5513 * valops.c (value_slice): Ditto.
5514 * symtab.h (union language_specific): Ditto.
5515 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5516 (SYMBOL_DEMANGLED_NAME): Ditto.
5517 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5518 * defs.h (enum language): Ditto.
5519 * symtab.c (got_symtab): Ditto.
5520 * utils.c (fprintf_symbol_filtered): Ditto.
5522 * ch-typeprint.c: Make file obsolete.
5523 * ch-valprint.c: Make file obsolete.
5524 * ch-lang.h: Make file obsolete.
5525 * ch-exp.c: Make file obsolete.
5526 * ch-lang.c: Make file obsolete.
5528 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5530 (TARGET_FLAGS_TO_PASS): Ditto.
5531 (CHILLFLAGS): Obsolete.
5533 (CHILL_FOR_TARGET): Obsolete.
5534 (CHILL_LIB): Obsolete.
5535 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5537 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5538 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5540 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5545 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5546 This does not change anything at the moment, but will be helpful
5547 later when full Ada support is integrated.
5551 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5556 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5557 and save it in a local variable. Use variable in later test.
5561 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5562 test. (Thanks to Daniel Jacobowitz.)
5566 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5567 (mips_abi_strings): Add "n64".
5568 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5572 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5573 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5577 * utils.c (host_pointer_to_address, address_to_host_pointer):
5578 Use gdb_assert() instead of explicit call to internal_error().
5582 * Makefile.in (rs6000-nat.o): Update dependencies.
5584 From Nicholas Duffek:
5585 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5586 (aix-thread.o): New rule.
5587 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5588 * config/powerpc/aix432.mh: New file.
5592 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5593 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5594 (fetch_core_registers, ppc_linux_supply_gregset)
5595 (ppc_linux_supply_fpregset): New functions.
5596 (ppc_linux_regset_core_fns): New.
5597 (_initialize_ppc_linux_tdep): Call add_core_fns.
5598 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5599 and ppc_linux_supply_gregset.
5600 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5601 (supply_fpregset): Call ppc_linux_supply_fpregset.
5602 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5604 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5608 * symtab.c (lookup_symbol): Demangle before lowercasing.
5612 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5614 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5615 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5616 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5617 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5619 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5620 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5621 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5622 (avr-tdep.o, mon960-rom.o): Ditto.
5623 (aout_stabs_gnu_h): Define.
5624 (symtab_h): Remove $(gdb_obstack_h).
5629 * gdbinit.in: Move the `dir' commands that add GDB's own source
5630 directory to the search path to the end, so that the `gdb' source
5631 directory will be searched first.
5635 * gdb_obstack.h: New file.
5636 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5637 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5638 * objfiles.h: Include "gdb_obstack.h".
5639 * Makefile.in (gdb_obstack_h): Define.
5640 (symtab_h): Add $(gdb_obstack_h).
5641 (objfiles_h): Add $(gdb_obstack_h).
5643 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5644 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5645 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5646 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5647 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5648 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5649 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5650 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5652 * Makefile.in (bcache.o): Update dependencies.
5653 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5654 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5655 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5656 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5657 (stabsread.o, symfile.o, symmisc.o): Ditto.
5658 (symtab.o, typeprint.o, macroexp.o): Ditto.
5659 (macrotab.o, mdebugread.o): Ditto.
5660 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5661 (coff_ecoff_h, aout_aout64_h): Define.
5662 (aout_stabs_gnu_h, libaout_h): Define.
5666 * regcache.c (struct regcache_descr): Rename nr_registers to
5667 nr_cooked_registers. Revise comments describing the structure
5669 (init_regcache_descr): Update.
5670 (init_legacy_regcache_descr): Update.
5671 (read_register_gen, write_register_gen): When a cooked register in
5672 the raw register range, directly access the value from the raw
5677 * z8k-tdep.c: Do not include "obstack.h".
5678 * h8300-tdep.c, h8500-tdep.c: Ditto.
5679 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5680 * valprint.c, v850-tdep.c: Ditto.
5681 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5682 * mn10200-tdep.c: Ditto.
5684 * Makefile.in (z8k-tdep.o): Update dependencies.
5685 (m68hc11-tdep.o, valprint.o): Ditto.
5686 (v850-tdep.o, d10v-tdep.o): Ditto.
5687 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5688 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5689 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5690 (sh_opc_h, gdb_sim_sh_h): Define.
5691 (elf_sh_h, elf_bfd_h): Define.
5692 (opcode_m68hc11_h): Define.
5693 (OPCODES_SRC, OPCODES_DIR): define.
5694 (OPCODES): Use $(OPCODES_DIR).
5695 (gdb_sim_d10v_h): Rename sim_d10v_h.
5696 (gdb_sim_arm_h): Rename sim_arm_h.
5700 * utils.c (host_pointer_to_address, address_to_host_pointer):
5701 Change internal_error() message to indicate function responsible
5706 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5707 calls to local_hex_string_custom().
5711 * irix5-nat.c: Move IRIX shared library support from here...
5712 * solib-irix.c: ...to here. Revised substantially to work with
5713 generic solib framework.
5715 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5716 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5717 * mips-irix-tdep.c: New file.
5719 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5720 (mips-irix-tdep.o, solib-irix.o): New rules.
5721 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5723 * config/mips/irix6.mt (TDEPFILES): Likewise.
5724 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5728 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5729 disabled (via ``#if 0'') includes.
5733 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5734 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5735 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5736 Add support for the fpscr register.
5737 * rs6000-nat.c (regmap, fetch_inferior_registers)
5738 (store_inferior_registers, fetch_core_registers): Likewise.
5742 * rs6000-nat.c (language.h): Include.
5743 (special_regs): Delete this array.
5744 (regmap): New function.
5745 (fetch_register, store_register): Use regmap() to map gdb
5746 register numbers to ptrace register numbers. Also, use
5747 outputs from regmap() to make decisions regarding type of
5748 ptrace() call to make. In particular, don't compare against
5749 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5750 (fetch_inferior_registers, store_inferior_registers): Where
5751 possible, obtain register numbers from tdep struct. Don't
5752 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5753 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5754 (LAST_UISA_SP_REGNUM): Delete.
5758 * rs6000-nat.c (ppc-tdep.h): Include.
5759 (fetch_registers, store_register, fetch_core_registers): Don't
5760 access registers[] directly. Instead, use supply_register() or
5761 regcache_collect() as appropriate.
5762 (find_toc_address): Format hex address with local_hex_string().
5766 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5771 * jv-exp.y: Marked all strings with _().
5772 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5774 (MethodInvocation, CastExpression, parse_number, yyerror,
5775 java_type_from_name, push_expression_name, yylex): Typo fixes.
5779 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5780 (tee_file_flush, tee_file_write, tee_file_fputs)
5781 (tee_file_isatty): New.
5782 * ui-file.h (tee_file_new): Add prototype.
5786 * ada-lang.c: Change k&r style function definitions to prototyped
5788 * ada-typeprint.c: Change k&r style function definitions to prototyped
5790 * ada-valprint.c: Change k&r style function definitions to prototyped
5795 * README: Remove reference to remote-bug.
5796 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5798 (m88k-nat.o): Delete rule.
5799 (m88k-tdep.o): Delete rule.
5800 (remote-bug.o): Delete rule.
5801 * MAINTAINERS: Mark as obsolete.
5802 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5803 * m88k-tdep.c: Make file obsolete.
5804 * config/m88k/m88k.mh: Ditto.
5805 * config/m88k/delta88v4.mh: Ditto.
5806 * config/m88k/delta88v4.mt: Ditto.
5807 * config/m88k/delta88.mt: Ditto.
5808 * config/m88k/delta88.mh: Ditto.
5809 * remote-bug.c: Ditto.
5810 * config/m88k/tm-delta88.h: Ditto.
5811 * config/m88k/nm-delta88v4.h: Ditto.
5812 * config/m88k/xm-delta88.h: Ditto.
5813 * config/m88k/xm-dgux.h: Ditto.
5814 * config/m88k/tm-m88k.h: Ditto.
5815 * config/m88k/nm-m88k.h: Ditto.
5816 * config/m88k/tm-delta88v4.h: Ditto.
5817 * m88k-nat.c: Ditto.
5818 * cxux-nat.c: Ditto.
5819 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5820 and m88*-*-* obsolete.
5821 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5826 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5827 constant. Same for local pointer variables.
5828 (extract_signed_integer): Ditto.
5829 * defs.h (extract_unsigned_integer): Update.
5830 (extract_signed_integer): Update.
5834 * regcache.c (regcache_raw_write): Change buf parameter to a
5835 constant void pointer.
5836 (regcache_raw_read): Change buf parameter to a void pointer.
5837 (legacy_write_register_gen): Change myaddr parameter a constant
5839 (supply_register): Change val parameter to a const void pointer.
5840 * regcache.h (regcache_raw_write): Update declaration.
5841 (regcache_raw_read): Update declaration.
5842 (supply_register): Update declaration.
5846 * defs.h (gdb_readline_wrapper): Declare.
5847 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5848 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5849 * top.c (gdb_readline_wrapper): New function.
5850 (command_line_input): Use it.
5854 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5855 regcache_read and regcache_write.
5856 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5857 * regcache.c: Update.
5858 * sh-tdep.c (sh64_push_arguments): Update comment.
5859 (sh_pseudo_register_read): Update.
5860 (sh_pseudo_register_write): Update.
5861 (sh4_register_read): Update.
5862 (sh4_register_write): Update.
5863 (sh64_pseudo_register_read): Update.
5864 (sh64_pseudo_register_write): Update.
5865 (sh64_register_read): Update.
5866 (sh64_register_write): Update.
5867 * i386-tdep.c (i386_extract_return_value): Update.
5868 (i386_extract_struct_value_address): Update.
5869 (i386_extract_return_value): Update.
5870 * blockframe.c (generic_read_register_dummy): Update.
5871 (generic_call_dummy_register_unwind): Update
5872 * infrun.c (write_inferior_status_register): Update.
5876 * parser-defs.h (expression_context_pc): Make this extern.
5877 (Thanks to Michael Snyder.)
5881 GDB 5.2.1 released from 5.2 branch.
5882 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5883 * README: Update to mention 5.2.1.
5887 * remote.c (remote_read_bytes): Fix check for error.
5891 * aix-thread.c (language.h): Include.
5892 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5893 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5894 Print newlines at end of debug messages.
5895 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5896 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5900 * aix-thread.c (ppc-tdep.h): Include.
5901 (special_register_p): New function.
5902 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5903 (store_regs_user_thread): Use register number information from
5904 gdbarch_tdep struct instead of hardcoded offsets relative to
5905 FIRST_UISA_SP_REGNUM.
5906 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5907 special_register_p() instead of using FPLAST_REGNUM and
5908 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5909 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5910 will be MQ's register number.
5914 * aix-thread.c (ops): Rename to aix_thread_ops.
5915 (base_ops): Rename to base_target.
5916 (ops_attach): Rename to aix_thread_attach.
5917 (ops_detach): Rename to aix_thread_detach.
5918 (ops_resume): Rename to aix_thread_detach.
5919 (ops_wait): Rename to aix_thread_wait.
5920 (ops_kill): Rename to aix_thread_kill.
5921 (init_ops): Rename to init_aix_thread_ops.
5922 (ops_fetch_register): Rename to aix_thread_fetch_register.
5923 (ops_store_register): Rename to aix_thread_store_register.
5924 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5925 (ops_thread_alive): Rename to aix_thread_thread_alive.
5926 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5927 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5928 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5929 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5930 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5931 (store_regs_lib): Rename to store_regs_user_thread.
5932 (store_regs_kern): Rename to store_regs_kernel_thread.
5936 * aix-thread.c (ops_prepare_to_store): Eliminate.
5937 (init_ops): Don't initialize ops.prepare_to_store.
5938 (store_regs_kern): Pre-fetch register buffers from child,
5939 because some registers may not be in the cache. Copy
5940 regs from register cache only if they are cached.
5941 (store_regs_lib): Copy regs from register cache only
5943 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5944 fill_gprs64): Ditto.
5948 * aix-thread.c (gdb_assert.h): Include.
5949 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5950 register sizes (from register cache) match size of buffer holding
5952 (fill_sprs32): Change parameter types to match those in the ptrace()
5954 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5955 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5959 * aix-thread.c (supply_sprs64): Cosmetic change.
5960 (supply_sprs32): Cosmetic change.
5961 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5962 (fill_sprs64): Use regcache_collect instead of read_register.
5963 (store_regs_lib): Use regcache_collect instead of
5964 read_register. Use fill_sprs32 instead of fill_sprs64,
5965 if debugging a 32-bit architecture.
5966 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5967 out of the register cache, instead of passing a pointer into
5968 the register cache directly to ptrace. Use regcache_collect
5969 insteaad of read_register.
5970 (ops_prepare_to_store): Use target_read_registers instead
5971 of read_register_bytes.
5975 * MAINTAINERS: Add self under write after approval.
5979 * ada-tasks.c: Change k&r style function definitions to prototyped
5984 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5985 * x86-64-tdep.c: Include "objfiles.h".
5986 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5991 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5992 (update_context): Initialise cfa variable.
5996 * aix-thread.c: Shorten some long lines.
5997 Bring comments into line with code spec.
6001 * infrun.c: Re-indent using gdb_indent.sh.
6005 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6006 Leave the indentation temporarily untouched, to minimize the diffs.
6010 * stabsread.c: Make os9k sections of the code obsolete,
6012 * stabsread.h: Make os9k sections of the code obsolete.
6016 * linux-low.c (regsets_store_inferior_registers): Add free()
6017 at the end of a loop to prevent memory leak.
6018 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6019 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6020 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6022 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6026 * macrocmd.c (info_macro_command): Remove newline from error
6031 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6032 (sh_gdbarch_init): Use it for sh-dsp.
6036 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6037 64-bit DWARF2 format.
6041 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6042 <sys/proc.h> when not available.
6046 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6047 * stabsread.c: Make os9k sections of the code obsolete.
6048 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6049 * config/i386/i386os9k.mt: Make file obsolete.
6050 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6051 (COMMON_OBS): Remove os9kread.o
6052 (SFILES): Remove os9kread.c.
6053 (os9kread.o, remote-os9k.o): Make target obsolete.
6054 * remote-os9k.c: Make file obsolete.
6055 * os9kread.c: Make file obsolete.
6060 * NEWS: Mention that the FR30 has been made obsolete.
6061 * fr30-tdep.c: Make file obsolete.
6062 * config/fr30/tm-fr30.h: Ditto.
6063 * config/fr30/fr30.mt: Ditto.
6064 * configure.tgt: Make fr30-*-elf obsolete.
6065 * MAINTAINERS: Make fr30-elf obsolete.
6069 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6070 found is not inside a section.
6074 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6076 (pdc_realloc): Use xrealloc() instead of realloc().
6080 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6081 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6082 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6087 * aix-thread.c (ptrace_check): Eliminate goto.
6088 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6093 * aix-thread.c (gdbcmd.h): Include.
6094 (DEBUG, DBG, DBG2, dbg): Eliminate.
6095 (debug_aix_thread): New static global.
6096 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6097 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6098 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6099 invocations to DBG and DBG2 macros to test against
6100 ``debug_aix_thread'' and call fprintf_unfiltered().
6101 (_initialize_aix_thread): Add new command "set debug aix-thread".
6106 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6107 instead of supply_register.
6111 * dwarf2cfi.c: Include "gdb_assert.h".
6112 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6114 (update_context): Do not use __func__. Add missing ``break''.
6115 (update_context): Do not use __func__.
6119 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6120 and its setting. Set gdbarch instruction printing functions
6121 directly. For non-rs6000 case use new function
6122 gdb_print_insn_powerpc.
6123 (gdb_print_insn_powerpc): New function.
6127 * NEWS: Mention that the d30v has been marked obsolete.
6128 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6129 * configure.tgt: Mark d30v-*-* as obsolete.
6130 * d30v-tdep.c: Mark file as obsolete.
6131 * config/d30v/d30v.mt: Ditto.
6132 * config/d30v/tm-d30v.h: Ditto.
6136 * ada-tasks.c (add_task_entry): replace calls to
6137 malloc() with xmalloc
6138 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6140 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6141 ada_finish_decode_line_1, all_sals_for_line
6142 ada_breakpoint_rewrite): replace calls to free() with xfree()
6146 From Nicholas Duffek (with minor changes by Martin Hunt,
6147 Louis Hamilton, and Kevin Buettner):
6148 * aix-thread.c: New file.
6152 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6153 complaint for invalid attribute class or form.
6154 (read_func_scope): DW_AT_frame_base
6155 better handling of DW_AT_block*.
6156 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6157 better handling of DW_AT_block*.
6158 (read_common_block): DW_AT_location
6159 better handling of DW_AT_block*.
6160 (read_partial_die): DW_AT_location better handling
6162 (new_symbol): DW_AT_external better handling of
6163 DW_AT_block*. Proper initialization of variable
6165 (attr_form_is_block): New function that returns true
6166 if the attribute's form is of DW_FORM_block*.
6170 * valops.c (find_method_list): Remove comment about
6171 removed STATIC_MEMFUNCP argument.
6172 (value_find_oload_method_list): Likewise.
6176 From Nicholas Duffek:
6177 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6178 target_new_objfile_hook.
6182 From Nicholas Duffek:
6183 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6188 * MAINTAINERS: Mention --enable-sim-build-warnings.
6189 (m68hc11-elf): Disable sim build warnings.
6190 (m32r-elf): Mark as broken obsolete candidate.
6191 (x86_64-linux-gnu): Mark as buildable with -Werror.
6192 (arm-elf): Change -w to ``,'' which enables warnings but not
6197 * bcache.h: Update copyright.
6198 (struct bstring, struct bcache): Move definition to "bcache.c".
6199 Replaced by opaque declaration.
6200 (bcache_xfree): Replace free_bcache.
6201 (bcache_xmalloc, bcache_memory_used): Declare.
6203 * bcache.c: Update copyright.
6204 (struct bstring, struct bcache): Moved to here from "bcache.h".
6206 (bcache_xmalloc, bcache_memory_used): New functions.
6207 (bcache_xfree): Replace function free_bcache.
6209 * Makefile.in (objfiles.o): Add $(bcache_h).
6210 (objfiles_h): Remove $(bcache_h).
6211 (symfile.o): Add $(bcache_h).
6213 * symmisc.c: Update copyright.
6214 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6215 (print_objfile_statistics): Use bcache_memory_used.
6217 * symfile.c: Include "bcache.h".
6218 (reread_symbols): Use bcache_xfree.
6219 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6220 (add_psymbol_to_list): Pass psymbol_cache by value.
6221 (add_psymbol_with_dem_name_to_list): Ditto.
6223 * objfiles.h: Update copyright.
6224 (struct bcache): Declare opaque. Do not include "bcache.h".
6225 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6227 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6229 * objfiles.c: Include "bcache.h". Update copyright.
6230 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6232 (free_objfile): Use bcache_xfree.
6236 * monitor.c (monitor_fetch_register): Make name a constant.
6237 (monitor_store_register): Same.
6242 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6243 (finish_block) For non-function blocks, hash the symbol table. For
6244 function blocks, mark the symbol table as unhashed.
6245 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6246 (msymbol_hash_iw): Likewise.
6247 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6249 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6250 (lookup_minimal_symbol): Likewise for both.
6251 * symtab.h (struct block): Add `hashtable' flag. Comment the
6253 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6254 (ALL_BLOCK_SYMBOLS): Update.
6255 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6256 (struct symbol): Add `hash_next' pointer.
6257 * symtab.c (lookup_block_symbol): Search using the hash table when
6259 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6260 (search_symbols, find_addr_symbol): Likewise.
6262 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6263 (read_dst_symtab): Likewise.
6264 * jv-lang.c (get_java_class_symtab): Likewise.
6265 * mdebugread.c: Include "gdb_assert.h".
6266 (shrink_block): Assert that the block being modified is not hashed.
6267 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6268 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6270 (dump_symtab): Recognize hashed blocks.
6271 * printcmd.c (print_frame_args): Assert that function blocks do not
6272 have hashed symbol tables.
6273 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6274 (fill_in_ada_prototype, debug_print_block): Likewise.
6275 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6279 * stack.c (print_frame): Use result of frame_address_in_block()
6280 instead of fi->pc when evaluating symbols.
6281 (backtrace_command_1): Ditto.
6285 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6288 * arm-tdep.c (arm_register_name): Make return type constant.
6292 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6294 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6295 * s390-tdep.c (s390_fp_regnum): Ditto.
6296 (s390_read_fp): Ditto.
6297 (s390_pop_frame): Ditto.
6298 (_initialize_s390_tdep): Ditto.
6299 * remote.c (get_remote_state): Ditto.
6300 * procfs.c (mappingflags): Ditto.
6301 * memattr.c (_initialize_mem): Ditto.
6302 * mcore-tdep.c (mcore_pop_frame): Ditto.
6303 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6304 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6305 * language.c (set_case_str): Ditto.
6306 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6307 * frv-tdep.c (new_variant): Ditto.
6308 (frv_stopped_data_address): Ditto.
6309 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6310 (context_alloc): Ditto.
6311 (frame_state_alloc): Ditto.
6312 (unwind_tmp_obstack_init): Ditto.
6313 (unwind_tmp_obstack_free): Ditto.
6314 (cfi_read_fp): Ditto.
6315 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6316 (cris_pop_frame): Ditto.
6317 * c-lang.c (scanning_macro_expansion): Ditto.
6318 (finished_macro_expansion): Ditto.
6319 (c_preprocess_and_parse): Ditto.
6320 * gdbarch.sh: Ditto.
6321 * gdbarch.h, gdbarch.c: Regenerate.
6322 * config/mn10200/tm-mn10200.h: Adjust indentation.
6323 * target.c: Adjust indentation.
6324 * symtab.h: Adjust indentation.
6325 * stabsread.h: Adjust indentation.
6326 * remote-es.c: Adjust indentation.
6327 * os9kread.c: Adjust indentation.
6331 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6332 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6336 * NEWS: Mention m68k, mcore multi-arching.
6337 * MAINTAINERS: Change status of m68k, mcore to reflect
6342 * valops.c (find_overload_match): Free oload_syms.
6346 Define HAVE_SYS_PROC_H if sys/proc.h exists
6347 * configure.in: Add check for sys/proc.h
6348 * config.in: Regenerate.
6349 * configure: Regenerate.
6353 * config/m68k/tm-m68k.h: Remove macros wrapped in
6354 #if !GDB_MULTI_ARCH.
6358 * config.in, configure: Regenerate.
6362 * dwarf2cfi.c: Include "gcore.h".
6363 (execute_stack_op): Fix implementation of the
6364 DW_OP_deref and DW_OP_deref_size operators by letting do their
6365 lookup in the target.
6370 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6375 Fix PR gdb/595, gdb/602
6376 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6377 Don't call value_cast, just read the vtable pointer; update comments
6382 * config/mcore/tm-mcore.h: Remove file.
6383 * config/mcore/mcore.mt: Remove definition of TM_FILE
6384 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6388 * i386bsd-tdep.c: Include "gdb_string.h".
6392 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6393 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6395 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6396 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6397 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6398 (RETVAL_REGNUM): Move macros from tm-mcore.h
6399 (mcore_reg_struct_has_addr): New function.
6400 (mcore_gdbarch_init): Added initializations for the macros removed
6405 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6406 traditonal string branding within the ELF header.
6410 * symtab.c (remove_params): New function.
6411 (make_symbol_overload_list): Use it instead of cplus_demangle.
6412 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6416 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6418 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6420 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6421 and tdep->sigtramp_end.
6422 * i386obsd-nat.c: New file.
6423 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6425 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6426 Don't call get_current_frame().
6430 * i386-nat.c (child_post_startup_inferior): New function
6431 calling i386_cleanup_dregs if
6432 I386_USE_GENERIC_WATCHPOINTS is defined.
6433 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6434 conditional to acknowledge that i386-nat.c has its
6435 own child_post_startup_inferior function.
6439 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6440 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6441 instead of MAX_REGISTER_RAW_SIZE.
6442 (i386_extract_return_value, i386_extract_struct_value_address):
6443 Convert to use regcache.
6444 (i386_gdbarch_init): Set max_register_raw_size and
6445 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6446 Set extract_return_value and extract_struct_value_address instead
6447 of their deprecated variants.
6449 Convert i386 target to generic dummy frames.
6450 * i386-tdep.c: Include "symfile.h".
6451 (i386_frameless_signal_p): Consider a function to be frameless if
6452 the pc points at the first instruction of the function.
6453 (i386_frame_chain): Handle (generic) call dummies.
6454 (i386_frame_saved_pc): Likewise.
6455 (i386_frame_init_saved_regs): Remove code dealing with call
6456 dummies on the stack.
6457 (i386_push_dummy_frame): Removed.
6458 (i386_call_dummy_words): Removed.
6459 (i386_fix_call_dummy): Removed.
6460 (i386_push_return_address): New function.
6461 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6462 parameter, and don't call get_current_frame.
6463 (i386_pop_frame): New function.
6464 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6465 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6466 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6467 call_dummy_length to 0, set call_dummy_words to NULL, set
6468 sizeof_call_dummy_words to 0, set fix_call_dummy to
6469 generic_fix_call_dummy, set pc_in_call_dummy to
6470 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6471 generic_push_dummy_frame, set push_return_address to
6472 i386_push_return_address and set frame_chain_valid to
6473 generic_file_frame_chain_valid.
6477 * gdbarch.sh (struct regcache): Add opaque declaration.
6478 (EXTRACT_RETURN_VALUE): New architecture method.
6479 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6480 * gdbarch.h, gdbarch.c: Regenerate.
6481 * arch-utils.c (legacy_extract_return_value): New function.
6482 * arch-utils.h (legacy_extract_return_value): Declare.
6483 * values.c (value_being_returned): Re-enable code handling
6484 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6485 deprecated_grub_regcache_for_registers call to block handling
6486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6487 (EXTRACT_RETURN_VALUE): Do not define.
6491 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6492 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6493 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6494 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6495 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6496 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6497 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6498 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6499 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6500 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6501 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6502 argument so the function fits the prototype in the architecture
6504 (mcore_pop_frame): Remove argument so the function fits the
6505 prototype. Use get_current_frame instead of the argument.
6506 (mcore_push_arguments): Change type of struct_return so the
6507 function can be used in the architecture vector.
6508 (mcore_store_struct_return): Add.
6509 (mcore_frame_init_saved_regs): Add.
6510 (mcore_gdbarch_init): Add function calls to replace the macros
6511 removed from tm-mcore.h
6515 * infcmd.c (print_return_value): Remove compatibility code calling
6516 deprecated_grub_regcache_for_registers.
6518 * values.c: Include "regcache.h".
6519 (value_being_returned): Update. Use
6520 deprecated_grub_regcache_for_registers to extract the register
6522 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6523 ``struct regcache''.
6524 * Makefile.in (values.o): Add dependency on $(regcache_h).
6526 * inferior.h (run_stack_dummy): Change type of second parameter to
6527 a ``struct regcache''.
6528 * valops.c (hand_function_call): Change type of retbuf to ``struct
6529 regcache''. Allocate using regcache_xmalloc, clean using
6530 make_cleanup_regcache_xfree.
6531 * infcmd.c (run_stack_dummy): Update. Use
6532 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6534 * regcache.c (do_regcache_xfree): New function.
6535 (make_cleanup_regcache_xfree): New function.
6536 * regcache.h (make_cleanup_regcache_xfree): Declare.
6540 * event-top.c (command_line_handler): Don't read past
6541 beginning of buffer.
6545 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6547 (varobj_create): Store frame_id for root.
6548 (varobj_gen_name): Use xasprintf.
6549 (varobj_update): Save and restore frame using get_frame_id() and
6551 (create_child): Use xasprintf.
6552 (new_root_variable): Initialize frame_id.
6553 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6554 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6555 to prevent memory leak.
6559 * valops.c (hand_function_call): Move declaration of retbuf to
6560 start of function, allocate using malloc, add a cleanup but before
6561 the inf_status cleanup, cleanup the buffer. Rename local variable
6562 old_chain to inf_status_cleanup.
6566 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6568 * cli/cli-decode.c (cmd_func_p): New function.
6569 (cmd_func): New function.
6571 * command.h: Add cmd_func() and cmd_func_p().
6575 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6576 (REGISTER_SIZE): Remove.
6577 (MAX_REGISTER_RAW_SIZE): Remove.
6578 (REGISTER_VIRTUAL_TYPE): Remove.
6579 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6580 (REGISTER_NAME): Remove.
6581 (USE_GENERIC_DUMMY_FRAMES): Remove.
6582 (CALL_DUMMY): Remove.
6583 (CALL_DUMMY_START_OFFSET): Remove.
6584 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6585 (CALL_DUMMY_LOCATION): Remove.
6586 (FIX_CALL_DUMMY): Remove.
6587 (CALL_DUMMY_ADDRESS): Remove.
6588 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6589 (SAVE_DUMMY_FRAME_TOS): Remove.
6590 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6591 (mcore_register_virtual_type): New function.
6592 (mcore_register_byte): New function.
6593 (mcore_register_size): New function.
6594 (mcore_register_name): New function.
6595 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6596 macros removed from tm-mcore.h.
6597 (mcore_dump_tdep): Add.
6598 (_initialize_mcore_tdep): Add gdbarch_register call.
6602 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6603 frameless_look_for_prologue, such that we actually call this
6608 * frame.h (frame_address_in_block): New function.
6610 * blockframe.c (frame_address_in_block): New function extracted
6611 from get_frame_block().
6612 (get_frame_block): Use frame_address_in_block().
6613 (block_innermost_frame): Use frame_address_in_block() to match
6614 the frame pc address against the block boundaries rather than
6615 the frame pc directly. This prevents a failure when a frame pc
6616 is actually a return-address pointing immediately after the end
6621 * MAINTAINERS: Add self under write after approval.
6625 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6626 used in architecture vector. The default is
6627 m68k_local_breakpoint_from_pc.
6628 (m68k_local_breakpoint_from_pc): Add.
6629 (enum): Add register numbers from tm-m68k.h.
6630 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6632 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6633 GDB_MULTI_ARCH_PARTIAL.
6634 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6635 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6637 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6638 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6639 to enum in m68k-tdep.c
6643 * solib-osf.c (open_map): Compute the list of shared libraries
6644 loaded by the inferior, rather than the list of libraries loaded
6645 by GDB itself. Otherwise, GDB ends up reading the symbols from
6646 the wrong shared libraries...
6650 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6651 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6653 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6655 (FRAMELESS_SIGNAL): Remove function.
6656 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6657 i386_linux_saved_pc_after_call): Removed.
6658 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6659 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6660 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6662 * i386-tdep.c (i386_frameless_signal_p): New function.
6663 (i386_frame_chain): Deal with frameless signals.
6664 (i386_sigtramp_saved_sp): New function.
6665 (i386_frame_saved_pc): Deal with frameless signals.
6666 (i386_saved_pc_after_call): Make sure the correct value is
6667 returned just after entry into a sigtramp.
6668 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6669 i386fbsd4_sc_sp_offset): New variables.
6670 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6671 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6672 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6673 similiar to what we already did for sc_pc_offset.
6674 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6677 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6681 * config/i386/tm-x86-64linux.h: New.
6682 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6684 * config/i386/nm-x86-64.h: Rename to ...
6685 * config/i386/nm-x86-64linux.h: ... this one.
6686 * config/i386/x86-64linux.mh: Reflect the above change.
6690 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6691 with sigcontext_addr. Add sc_sp_offset.
6692 (i386bsd_sigtramp_saved_pc): Remove prototype.
6693 (i386bsd_sicontext_addr): Add prototype.
6694 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6695 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6696 (i386_svr4_sigtramp_saved_pc): Removed.
6697 (i386_svr4_sigcontext_addr): New function.
6698 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6699 Initialize tdep->sigcontext_addr instead. Initialize
6700 tdep->sc_pc_offset and tdep->sc_sp_offset.
6701 (i386_gdbarch_init): Likewise.
6702 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6704 (i386bsd_sigtramp_saved_pc): Remove function.
6705 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6706 Initialize tdep->sigcontext_addr instead. Initialize
6708 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6709 of tdep->sigtramp_saved_pc.
6710 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6711 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6714 * i386-tdep.c (i386_frameless_function_invocation,
6715 i386_frame_num_args, i386_frame_init_saved_regs,
6716 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6717 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6718 i386_extract_return_value, i386_store_return_value,
6719 i386_extract_struct_value_address, i386_register_virtual_type,
6720 i386_register_convertible, i386_register_convert_to_virtual,
6721 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6722 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6727 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6729 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6730 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6731 this macro. Include "value.h".
6735 * ada-exp.tab.c: remove as it's a generated file
6736 * ada-lex.c: remove as it's a generated file
6740 * config/i386/tm-i386.h (struct frame_info, struct
6741 frame_saved_regs, struct value, struct type): Remove forward
6744 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6745 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6746 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6747 (FILL_FPXREGSET): Define.
6749 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6751 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6752 i[3456]86-*-netbsd* case.
6753 * config/i386/tm-obsd.h: Removed.
6754 * config/i386/obsd.mt: Removed.
6755 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6757 (MH_CFLAGS): Add -DYYDEBUG=0.
6759 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6760 i386nbsd_sc_pc_offset on OpenBSD too.
6762 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6763 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6764 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6766 * i386bsd-tdep.c: Include "arch-utils.h".
6767 (i386bsd_aout_in_solib_call_trampoline): New function.
6768 (i386bsd_init_abi): Set in_solib_call_trampoline to
6769 i386bsd_aout_in_solib_call_trampoline.
6770 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6771 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6775 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6776 (struct obstack, struct bcache): Add opaque declarations.
6777 * Makefile.in (macrotab_h): Update
6781 * blockframe.c (generic_find_dummy_frame): Change return type to
6782 ``struct regcache''.
6783 (struct dummy_frame): Replace field ``registers'' with regcache, a
6784 struct regcache object.
6785 (generic_find_dummy_frame): Update.
6786 (generic_push_dummy_frame): Update. Use regcache_xfree,
6787 regcache_xmalloc and regcache_cpy.
6788 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6790 (deprecated_generic_find_dummy_frame): Update.
6791 (generic_read_register_dummy): Update. Use
6792 regcache_read_as_address.
6793 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6794 (generic_get_saved_register): Update. Use regcache_read.
6798 * Makefile.in (objfiles_h): Add $(bcache_h).
6799 * objfiles.h: Include "bcache.h".
6801 * Makefile.in (symtab_h): Remove $(bcache_h).
6802 * symtab.h: Do not include "bcache.h".
6806 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6807 generic_func_frame_chain_valid.
6811 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6812 * config/i386/tm-fbsd.h: Likewise.
6816 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6817 generic_unwind_get_saved_register.
6822 * regcache.c (supply_register): Add missing argument to
6823 register_buffer call.
6827 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6828 Solaris /bin/grep does not not like it. From Peter Schauer.
6832 * command.h (add_setshow_cmd): Declare.
6833 (add_setshow_cmd_full): Declare.
6834 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6835 returns void. Use add_setshow_cmd_full.
6836 (add_setshow_cmd_full): New function.
6837 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6838 (add_setshow_boolean_cmd): Likewise.
6842 * config/vax/tm-vax.h: Protect from multiple inclusion.
6843 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6844 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6845 * config/vax/tm-vaxbsd.h: ...here. New file.
6846 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6850 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6851 (BELIEVE_PCC_PROMOTION): Remove.
6852 (AP_REGNUM): Move to...
6853 * config/vax/nm-vax.h: ...here.
6854 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6855 (vax_breakpoint_from_pc): New function.
6856 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6857 and gdbarch_believe_pcc_promotion.
6861 * Makefile.in (vax_tdep_h): Define.
6862 (vax-tdep.o): Use $(vax_tdep_h).
6863 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6864 (vax_dump_tdep): New function.
6865 (_initialize_vax_tdep): Register vax_dump_tdep.
6866 * vax-tdep.h: Include osabi.h.
6867 (struct gdbarch_tdep): New.
6871 * frame.h (deprecated_generic_find_dummy_frame): Rename
6872 generic_find_dummy_frame.
6873 * blockframe.c (generic_find_dummy_frame): Make static.
6874 (deprecated_generic_find_dummy_frame): New function.
6875 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6876 generic_find_dummy_frame with deprecated_find_dummy_frame.
6877 (sh64_nofp_frame_init_saved_regs): Ditto.
6878 (sh_fp_frame_init_saved_regs): Ditto.
6879 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6880 (s390_frame_chain): Ditto.
6881 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6885 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6886 gdbarch vector are at the top.
6888 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6889 (FRAME_ARGS_ADDRESS): Remove.
6890 (FRAME_LOCALS_ADDRESS): Remove.
6891 (FRAME_NUM_ARGS): Remove.
6892 (FRAME_ARGS_SKIP): Remove.
6893 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6894 (m68k_gdbarch_init): Add gdbarch initializations for macros
6895 undefined in tm-m68k.h
6899 * monitor.h: Add the function regname to monitor_ops
6900 structure. This way NUM_REGS does not have to be a constant.
6901 * monitor.c (monitor_fetch_register): Added support for regname
6902 function. The function is called if the array regnames is NULL.
6903 (monitor_store_register): Same.
6904 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6906 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6907 cpu32bug_cmds.regname to point to new function.
6908 * abug-rom.c (abug_regname): Same as above.
6909 (init_abug_cmds): Same.
6910 * dbug-rom.c (dbug_regname): Same as above.
6911 (init_dbug_cmds): Same.
6912 * remote-est.c (est_regname): Same.
6913 (init_est_cmds): Same.
6914 * rom68k-rom.c (rom68k_regname): Same.
6915 (init_rom68k_cmds): Same.
6919 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6923 * infrun.c (stop_registers): Change variable's type to ``struct
6925 (xmalloc_inferior_status): Delete function.
6926 (free_inferior_status): Delete function.
6927 (normal_stop): Use regcache_cpy.
6928 (struct inferior_status): Change type of fields ``stop_registers''
6929 and ``registers'' to ``struct regcache''.
6930 (write_inferior_status_register): Use regcache_write.
6931 (save_inferior_status): Instead of calling
6932 xmalloc_inferior_status, allocate the inf_status buffer directly.
6933 Use regcache_dup_no_passthrough and regcache_dup to save the
6935 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6936 Replace the stop_registers regcache instead of overriding it. Use
6937 regcache_xfree. Instead of calling free_inferior_status, xfree
6938 the buffer directly.
6939 (discard_inferior_status): Use regcache_xfree. Instead of calling
6940 free_inferior_status, xfree the buffer directly.
6941 (build_infrun): Use regcache_xmalloc.
6942 (_initialize_infrun): Delete redundant call to build_infrun.
6944 * Makefile.in (infcmd.o): Add $(regcache_h).
6946 * infcmd.c: Include "regcache.h".
6947 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6948 obtain the address of `stop_registers' register buffer.
6949 (print_return_value): Ditto.
6951 * inferior.h (struct regcache): Add opaque declaration.
6952 (stop_registers): Change variable's declared type to ``struct
6957 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6958 * target.c (initialize_targets): Fixed typo in
6959 trust-readonly-sections `show' documentation.
6961 * main.c: Marked all strings with _().
6965 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6966 that means max CORE_ADDR+1.
6967 (lookup_mem_region): Ditto.
6968 (mem_info_command): Ditto.
6972 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6973 (REGISTER_BYTES_OK): Remove.
6974 (REGISTER_BYTES): Remove.
6975 (STORE_STRUCT_RETURN): Remove.
6976 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6977 (STORE_RETURN_VALUE): Remove.
6978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6979 (FRAME_CHAIN): Remove.
6980 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6981 (FRAME_SAVED_PC): Remove.
6982 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6983 (m68k_store_struct_return): Add.
6984 (m68k_deprecated_extract_return_value): Add.
6985 (m68k_deprecated_extract_struct_value_address): Add.
6986 (m68k_store_return_value): Add.
6987 (m68k_frame_chain): Add.
6988 (m68k_frameless_function_invocation): Add.
6989 (m68k_frame_saved_pc): Add.
6990 (m68k_gdbarch_init): added set_gdbarch calls for new
6991 functions and deleted macros.
6995 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6996 (ALLDEPFILES): Likewise.
6997 (udiheaders): Removed.
6998 (udip2soc.o): Likewise.
6999 (udi2go32.o): Likewise.
7001 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7005 * infrun.c (_initialize_infrun): Delete unnecessary call to
7008 * regcache.h: Update comments describing the regcache_cpy family
7010 (regcache_save, regcache_restore): Delete declaration.
7011 (regcache_save_no_passthrough): Delete declaration.
7012 (regcache_restore_no_passthrough): Delete declaration.
7013 * regcache.c (regcache_save): Delete function.
7014 (regcache_save_no_passthrough): Delete function.
7015 (regcache_restore): Delete function.
7016 (regcache_restore_no_passthrough): Delete function.
7020 * config/m68k/tm-m68k.h: Fix typo.
7021 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7022 (m68k_frame_init_saved_regs): Declare.
7026 Remove some vestiges of Harris 88k support.
7027 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7028 register numbering quirk.
7029 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7030 odd symbols occurring in Harris 88k ELF targets.
7034 * gdb_locale.h: New file.
7035 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7036 (defs_h): Added gdb_locale.h.
7037 * configure, config.in: Rebuilt.
7038 * configure.in (PACKAGE): Define.
7039 * defs.h: Include gdb_locale.h.
7040 * main.c (captured_main): Call setlocale, bindtextdomain,
7045 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7046 * config/frv/frv.mt: New file.
7047 * config/frv/tm-frv.h: New file.
7048 * configure.tgt: Support frv-*-*.
7049 * Makefile.in (frv-tdep.o): New target.
7050 * frv-tdep.c: New file.
7051 * NEWS: Mention frv.
7055 * MAINTAINERS: Add self to "Write After Approval" list.
7059 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7060 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7061 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7062 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7063 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7065 * m68k-tdep.c: Include arch-utils.h
7066 (m68k_register_raw_size): Add.
7067 (m68k_register_virtual_size): Add.
7068 (m68k_register_virtual_type): Add.
7069 (m68k_register_name): Add.
7070 (m68k_stack_align): Add.
7071 (m68k_register_byte): Add.
7072 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7077 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7078 m68k_find_saved_regs.
7079 (m68k_pop_frame): Removed saved_regs structure, and replaced
7080 references to it with frame->saved_regs.
7081 (m68k_gdbarch_init): Added function calls to initialize the
7083 (m68k_fix_call_dummy): Add.
7084 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7085 (CALL_DUMMY): Remove.
7086 (CALL_DUMMY_LENGTH): Remove.
7087 (CALL_DUMMY_START_OFFSET): Remove.
7088 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7089 (FIX_CALL_DUMMY): Remove.
7090 (PUSH_DUMMY_FRAME): Remove.
7091 (POP_FRAME): Remove.
7095 * parse.c (parse_fprintf): New function used to avoid calls to
7096 fprintf in bison parser generated debug code.
7097 * parser-defs.h: Declaration of new parse_fprintf function.
7098 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7099 Set YYDEBUG to 1 by default.
7100 Set YYFPRINTF as parse_fprintf.
7104 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7106 (pointer_encoding, enum ptr_encoding): New.
7107 (execute_cfa_program): Take care about pointer encoding.
7108 (dwarf2_build_frame_info): Only call parse_frame_info for
7109 .debug_frame and .eh_frame.
7110 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7111 fixed augmentation handling, added relative addressing,
7112 ignore duplicate FDEs. Added comments.
7113 * dwarf2cfi.c: Reindented.
7117 * event-top.c (command_handler): Don't use space_at_cmd_start
7118 unless there is sbrk() on the host. Assign time and space data
7119 to union fields of the appropriate length.
7123 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7124 x86_64_register_name. Return type changed to 'const char *'.
7125 (x86_64_register_name2nr): Rename to x86_64_register_number.
7126 (x86_64_gdbarch_init): Update to reflect the change.
7127 * x86-64-tdep.h: Ditto.
7128 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7129 (supply_fpregset): Ditto.
7133 * regcache.h: Update copyright.
7134 (struct regcache, struct gdbarch): Add opaque declarations.
7135 (current_regcache): Declare global variable.
7136 (regcache_read, regcache_write): Add gdbarch parameter.
7137 (regcache_save, regcache_save_no_passthrough)
7138 (regcache_restore, regcache_restore_no_passthrough)
7139 (regcache_dup, regcache_dup_no_passthrough)
7140 (regcache_cpy, regcache_cpy_no_passthrough)
7141 (deprecated_grub_regcache_for_registers)
7142 (deprecated_grub_regcache_for_register_valid)
7143 (regcache_valid_p): Add function declarations.
7145 * regcache.c: Update copyright.
7146 (regcache_descr_handle): New global variable.
7147 (struct regcache_descr): Define.
7148 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7149 (regcache_descr, xfree_regcache_descr): New functions.
7150 (struct regcache): Define.
7151 (regcache_xmalloc, regcache_xfree): New functions.
7152 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7153 (regcache_dup, regcache_dup_no_passthrough): New functions.
7154 (regcache_valid_p, regcache_read_as_address): New functions.
7155 (deprecated_grub_regcache_for_registers): New function.
7156 (deprecated_grub_regcache_for_register_valid): New function.
7157 (current_regcache): New global variable.
7158 (register_buffer): Add regcache parameter. Update calls.
7159 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7160 (read_register_gen, write_register_gen): Update register_buffer
7161 call. Test for legacy_p instead of gdbarch_register_read_p or
7162 gdbarch_register_write_p.
7163 (regcache_collect): Update register_buffer call.
7164 (build_regcache): Rewrite. Use deprecated grub functions.
7165 (regcache_save, regcache_save_no_passthrough): New functions.
7166 (regcache_restore, regcache_restore_no_passthrough): New
7168 (_initialize_regcache): Create the regcache_data_handle. Swap
7169 current_regcache global variable.
7171 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7172 parameter to regcache_read and regcache_write calls.
7173 (sh4_register_read): Ditto.
7174 (sh64_pseudo_register_read): Ditto.
7175 (sh64_register_read): Ditto.
7176 (sh_pseudo_register_write): Ditto.
7177 (sh4_register_write): Ditto.
7178 (sh64_pseudo_register_write): Ditto.
7179 (sh64_register_write): Ditto.
7181 * defs.h (XCALLOC): Define.
7185 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7186 * m68k-tdep.c (m68k_gdbarch_init): Added.
7187 (m68k_dump_tdep): Added.
7191 * ada-lang.c (fill_in_ada_prototype): Update comment.
7195 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7197 (mips_abi_string, mips_abi_strings): New.
7198 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7199 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7200 tdep->mips_abi_string. Honor mips_abi_string. Default to
7201 O32 if no ABI is found.
7202 (mips_dump_tdep): Use mips_abi_strings.
7203 (mips_abi_update): New function.
7204 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7205 ``set mips abi'' and ``show mips abi''. Check the size of
7210 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7215 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7216 current frame using only the first stack size adjustment. All
7217 subsequent size adjustments are not considered to be part of
7218 the "static" part of the current frame.
7219 Compute the address of the saved registers relative to the
7220 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7221 in use in this frame.
7225 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7227 suggesting this solution.
7231 * config/romp/xm-rtbsd.h: Delete file.
7232 * config/romp/rtbsd.mh: Delete file.
7236 * breakpoint.c (condition_command): Post breakpoint_modify
7237 when a condition is added to an existing breakpoint.
7238 (commands_command): Likewise for commands.
7239 (set_ignore_count): Likewise for ignore counts.
7240 If no tty, do not simply return, still need to send event
7242 (ignore_command): Only print a newline if the command came
7244 Don't call breakpoints_changed, since this is now properly
7245 handled by set_ignore_count.
7249 * MAINTAINERS: Note that cris-elf target can be compiled with
7251 * cris-tdep.c (cris_register_name): Make return type constant.
7252 (cris_breakpoint_from_pc): Ditto.
7256 * frame.h (struct frame_info): Change type of context to
7261 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * config/mips/tm-mips.h (mips_register_name): Update.
7265 * i386-tdep.h (i386_register_name): Update.
7266 * mips-tdep.c (mips_register_name): Update
7267 * alpha-tdep.c (alpha_register_name): Update.
7268 * arch-utils.c (legacy_register_name): Update.
7269 * arch-utils.h (legacy_register_name): Update.
7270 * avr-tdep.c (avr_register_name): Update.
7271 * ia64-tdep.c (ia64_register_name): Update.
7272 * i386-tdep.c (i386_register_name): Update.
7273 * sparc-tdep.c (sparc32_register_name): Update.
7274 (sparc64_register_name): Update.
7275 (sparclite_register_name): Update.
7276 (sparclet_register_name): Update.
7277 * sh-tdep.c (sh_generic_register_name): Update.
7278 (sh_sh_register_name): Update.
7279 (sh_sh3_register_name): Update.
7280 (sh_sh3e_register_name): Update.
7281 (sh_sh_dsp_register_name): Update.
7282 (sh_sh3_dsp_register_name): Update.
7283 (sh_sh4_register_name): Update.
7284 (sh_sh64_register_name): Update.
7285 * s390-tdep.c (s390_register_name): Update.
7286 * rs6000-tdep.c (rs6000_register_name): Update.
7287 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7288 (ns32k_register_name_32382): Update.
7289 * d10v-tdep.c (d10v_ts2_register_name): Update.
7290 (d10v_ts3_register_name): Update.
7291 * xstormy16-tdep.c (xstormy16_register_name): Update.
7292 * vax-tdep.c (vax_register_name): Update.
7293 * v850-tdep.c (v850_register_name): Update.
7294 * m68hc11-tdep.c (m68hc11_register_name): Update.
7295 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7296 (am33_register_name): Update.
7300 * m68k-tdep.c: Reindented.
7304 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7305 list of predefined types.
7309 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7310 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7311 REGISTER_CONVERT_TO_RAW): Remove defines.
7312 (i386_register_virtual_type, i386_register_convertible,
7313 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7315 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7316 macros mentioned above.
7318 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7319 (i386lynx_saved_pc_after_call): Remove prototype.
7320 * i386ly-tdep.c: Include "i386-tdep.h".
7321 (i386lynx_saved_pc_after_call): Make static. Use
7322 read_memory_nobpt instead of read_memory. Use
7323 read_memory_unsigned_integer instead of read_memory_integer.
7324 (i386lynx_init_abi): New function.
7325 (i386lynx_coff_osabi_sniffer): New function.
7326 (_initialize_i386bsd_tdep): New function.
7328 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7329 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7330 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7331 (i386_fix_call_dummy): Remove prototype.
7332 * i386-tdep.c (i386_call_dummy_words): New variable.
7333 (i386_gdbarch_init): Adjust for removal of the
7334 macros mentioned above.
7338 * command.h (add_setshow_auto_boolean_cmd): Replace
7339 add_set_auto_boolean_cmd.
7340 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7341 add_set_auto_boolean_cmd.
7342 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7343 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7344 mask-address'' command.
7345 (show_mask_address): Add cmd parameter.
7346 * remote.c (add_packet_config_cmd): Update. Change type of
7347 set_func and show_func to cmd_sfunc_ftype.
7348 (_initialize_remote): Update `set remote Z-packet'
7349 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7350 (show_remote_protocol_e_packet_cmd): Ditto.
7351 (show_remote_protocol_E_packet_cmd): Ditto.
7352 (show_remote_protocol_P_packet_cmd): Ditto.
7353 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7354 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7355 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7356 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7357 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7358 (show_remote_protocol_Z_packet_cmd): Ditto.
7359 (show_remote_protocol_binary_download_cmd): Ditto.
7360 (show_remote_cmd): Pass NULL to all of above.
7364 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7365 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7366 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7367 POP_FRAME): Remove defines.
7368 (i386_push_arguments, i386_store_struct_return,
7369 i386_extract_return_value, i386_store_return_value,
7370 i386_extract_struct_value_address, i386_push_dummy_frame,
7371 i386_pop_frame): Renove prototypes.
7372 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7373 macros mentioned above.
7377 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7378 add_set_boolean_cmd.
7379 (add_setshow_cmd): New function.
7380 * command.h (add_setshow_boolean_cmd): Replace
7381 add_set_boolean_cmd.
7382 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7383 and ``set rdiromatzero''.
7384 * maint.c (_initialize_maint_cmds): Update commented out code.
7385 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7386 * target.c (initialize_targets): Update `set
7387 trust-readonly-sections'.
7388 * remote.c (_initialize_remote): Update `set remotebreak'.
7392 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7393 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7394 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7395 fit into multi-arch framework.
7396 (i386_breakpoint_from_pc): New function.
7397 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7400 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7401 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7402 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7403 (i386_frameless_function_invocation, i386_frame_num_args,
7404 i386_frame_init_saved_regs): Remove prototypes.
7405 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7406 macros mentioned above.
7410 * cli/cli-decode.c (set_cmd_cfunc): Update.
7411 (set_cmd_sfunc): Update.
7412 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7413 (set_cmd_sfunc, set_cmd_cfunc): Update.
7414 * cli/cli-decode.h: Update.
7418 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7419 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7423 * defs.h (auto_boolean): Declare enum.
7424 * command.h (cmd_auto_boolean): Delete enum.
7425 * mips-tdep.c (mask_address_var): Update.
7426 (mips_mask_address_p): Update.
7427 (show_mask_address): Update.
7428 * remote.c (struct packet_config): Update.
7429 (update_packet_config): Update.
7430 (show_packet_config_cmd): Update.
7431 (packet_ok): Update.
7432 (add_packet_config_cmd): Update.
7433 (_initialize_remote):
7434 * command.h: Update.
7435 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7436 (do_setshow_command): Update.
7437 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7438 * cli/cli-decode.h: Update.
7442 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7443 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7444 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7445 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7446 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7447 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7449 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7450 list of DJGPP COFF targets.
7452 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7453 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7454 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7455 (FP0_REGNUM): Remove define.
7456 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7457 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7458 (i386_register_virtual_size): Remove protoype.
7459 * i386-tdep.c (i386_register_virtual_size): Removed.
7460 (i386_extract_return_value, i386_store_return_value): Use
7461 FP0_REGNUM instead of NUM_FREGS to determine whether the
7462 floating-point registers are available.
7463 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7464 Adjust for removal of macros mentioned above.
7468 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7470 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7472 (supply_gregset, fill_gregset): Remove use of register keyword and
7473 remove declaration for regmap. Use I386_NUM_GREGS instead of
7474 NUM_REGS and NUM_FREGS.
7475 (FPREGSET_FSAVE_OFFSET): Remove.
7476 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7477 NUM_FREGS to determine whether the floating-point registers are
7480 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7481 gnu_store_registers): Replace usage of NUM_GREGS with
7484 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7485 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7486 usage of NUM_GREGS with I386_NUM_GREGS.
7488 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7490 * i386bsd-nat.c: Include "i386-tdep.h".
7491 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7494 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7495 and associated comment. They no longer make any sense, since we
7496 don't use this file anymore on Linux.
7498 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7499 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7500 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7501 elements in these arrays.
7502 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7507 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7508 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7512 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7513 EXTRACT_RETURN_VALUE.
7514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7515 EXTRACT_STRUCT_VALUE_ADDRESS.
7516 * gdbarch.h, gdbarch.c: Regenerate.
7518 * values.c (value_being_returned): Handle
7519 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7520 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7522 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7523 * arm-tdep.c (arm_gdbarch_init): Update.
7524 * avr-tdep.c (avr_gdbarch_init): Update.
7525 * cris-tdep.c (cris_gdbarch_init): Update.
7526 * d10v-tdep.c (d10v_gdbarch_init): Update.
7527 * ia64-tdep.c (ia64_gdbarch_init): Update.
7528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7529 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7530 * s390-tdep.c (s390_gdbarch_init): Update.
7531 * sh-tdep.c (sh_gdbarch_init): Update.
7532 * s390-tdep.c (s390_gdbarch_init): Update.
7533 * sparc-tdep.c (sparc_gdbarch_init): Update.
7534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7535 * v850-tdep.c (v850_gdbarch_init): Update.
7536 * vax-tdep.c (vax_gdbarch_init): Update.
7537 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7540 * config/arc/tm-arc.h: Update.
7541 * config/d30v/tm-d30v.h: Update.
7542 * config/fr30/tm-fr30.h: Update.
7543 * config/h8300/tm-h8300.h: Update.
7544 * config/h8500/tm-h8500.h: Update.
7545 * config/i386/tm-i386.h: Update.
7546 * config/i386/tm-ptx.h: Update.
7547 * config/i386/tm-symmetry.h: Update.
7548 * config/i960/tm-i960.h: Update.
7549 * config/m32r/tm-m32r.h: Update.
7550 * config/m68k/tm-delta68.h: Update.
7551 * config/m68k/tm-linux.h: Update.
7552 * config/m68k/tm-m68k.h: Update.
7553 * config/m88k/tm-m88k.h: Update.
7554 * config/mcore/tm-mcore.h: Update.
7555 * config/mips/tm-mips.h: Update.
7556 * config/mn10200/tm-mn10200.h: Update.
7557 * config/pa/tm-hppa.h: Update.
7558 * config/pa/tm-hppa64.h: Update.
7559 * config/sparc/tm-sp64.h: Update.
7560 * config/sparc/tm-sparc.h: Update.
7561 * config/sparc/tm-sparclet.h: Update.
7562 * config/z8k/tm-z8k.h: Update.
7566 * Makefile.in (i386_linux_tdep_h): Define.
7567 (i386_tdep_h, i387_tdep_h): Define.
7568 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7569 $(i386_tdep_h) and $(i387_tdep_h).
7570 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7574 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7575 Already covered by the default.
7577 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7578 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7579 (i386_gdbarch_init): Initialize long_double_format and long_double
7582 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7583 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7585 * config/i386/i386sol2.mh: ... here.
7586 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7587 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7588 (SIGCONTEXT_PC_OFFSET): Remove define.
7589 (IN_SIGTRAMP): Remove define.
7590 * i386-sol2-tdep.c: New file.
7592 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7593 * config/i386/tm-i386nw.h: Removed.
7595 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7596 USE_STRUCT_CONVENTION): Remove defines.
7597 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7598 (get_longjmp_target): Remove prototype.
7599 (IN_SIGTRAMP): Remove define.
7600 (i386bsd_in_sigtramp): Remove prototype.
7601 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7602 function. Update comment accordingly
7603 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7604 (FRAME_SAVED_PC): Remove define.
7605 (i386bsd_frame_saved_pc): Remove prototype.
7606 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7607 GET_LONGJMP_TARGET): Remove defines.
7608 (get_longjmp_target): Remove prototype.
7609 (IN_SIGTRAMP): Remove define.
7610 (i386bsd_in_sigtramp): Remove prototype.
7611 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7612 function. Update comment accordingly
7613 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7614 (FRAME_SAVED_PC): Remove define.
7615 (i386bsd_frame_saved_pc): Remove prototype.
7616 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7618 (USE_STRUCT_CONVENTION): Remove prototype.
7619 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7621 (_initialize_i386bsd_nat): Revise logic to determine some
7622 constants at compile time when compiling a native GDB. Warn if
7623 things don't match up with what we expect.
7624 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7626 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7627 to use date stored in `struct gdbarch_tdep'.
7628 (i386bsd_sigcontext_offset): Remove varaible.
7629 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7630 stored in `struct gdbarch_tdep'.
7631 (i386bsd_frame_saved_pc): Make static.
7632 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7633 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7634 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7635 i386fbsd4_sc_pc_offset): New variables.
7636 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7637 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7639 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7641 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7642 Modify the value of i386fbsd_sigtramp_start and
7643 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7644 i386fbsd_sigtramp_end.
7645 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7648 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7649 define to i386-linux-tdep.h.
7650 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7651 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7653 (i386_linux_register_name, i386_linux_register_byte,
7654 i386_linux_register_raw_size): Remove prototypes.
7655 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7656 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7657 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7658 TARGET_WRITE_PC): Remove defines.
7659 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7660 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7661 i386_linux_write_pc): Remove prototypes.
7662 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7663 (get_longjmp_target): Remove prototype.
7664 * i386-linux-tdep.h: New file.
7665 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7666 * i386-linux-tdep.c: Include "i386-tdep.h" and
7667 "i386-linux-tdep.h".
7668 (i386_linux_register_name, i386_linux_register_byte,
7669 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7670 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7672 (i386_linux_init_abi): New function.
7673 (_initialize_i386_linux_tdep): New function.
7675 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7676 (i386_saved_pc_after_call): Remove prototype.
7677 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7678 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7679 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7680 (i386_register_name, i386_stab_reg_to_regnum,
7681 i386_dwarf_reg_to_regnum): Remove prototypes.
7682 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7683 SIZEOF_SSE_REGS): Remove defines.
7684 (REGISTER_BYTES): Remove define.
7685 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7686 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7687 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7688 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7689 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7690 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7691 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7692 (get_longjmp_target): Remove prototype.
7693 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7694 (sigtramp_saved_pc): Remove define.
7695 (i386v4_sigtramp_saved_pc): Remove prototype.
7696 * config/i386/tm-go32.h (FRAME_CHAIN,
7697 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7698 (i386go32_frame_saved_pc): Remove prototype.
7699 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7700 (get_longjmp_target): Remove prototype.
7701 * i386-tdep.h: Include "osabi.h".
7702 (enum i386_abi): Removed.
7703 (enum struct_return): New enum.
7704 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7705 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7706 sc_pc_offset members.
7707 (i386_gdbarch_register_os_abi): Remove prototype.
7708 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7709 I386_SSE_NUM_REGS): New defines.
7710 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7711 I386_SSE_SIZEOF_REGS): New defines.
7712 (i386_register_name, i386_register_byte, i386_register_raw_size):
7714 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7715 (i386bsd_sigtramp_saved_pc): New prototype.
7716 * i386-tdep.c: Don't include "elf-bfd.h".
7717 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7718 i386_frame_chain, i386_saved_pc_after_call): Make static.
7719 (i386_frame_saved_pc): Rewrite to call architecture dependent
7720 function to deal with signal handlers. Make static.
7721 (i386go32_frame_saved_pc): Removed.
7722 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7724 (i386_get_longjmp_target): New function.
7725 (default_struct_convention, pcc_struct_convention,
7726 reg_struct_convention, valid_conventions, struct_convention): New
7728 (i386_use_struct_convention): New function.
7729 (i386v4_sigtramp_saved_pc): Renamed to
7730 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7731 (i386_pc_in_sigtramp): New function.
7732 (i386_abi_names): Removed.
7733 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7734 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7736 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7737 i386_gdbarch_register_os_abi): Removed.
7738 (struct i386_abi_handler): Removed.
7739 (i386_abi_handler_list): Removed.
7740 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7742 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7743 i386_nw_init_abi): New functions.
7744 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7745 Use set_gdbarch_xxx() calls instead of relying on macros for a
7747 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7748 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7749 Register the various architecture variants defined in this file.
7753 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7754 (struct main_type): Remove arg_types member. Update comments for
7756 (TYPE_ARG_TYPES): Remove.
7757 (TYPE_FN_FIELD_ARGS): Update.
7758 (smash_to_method_type): Update prototype.
7760 * c-typeprint.c (cp_type_print_method_args): Take method type
7761 instead of argument list. Use new argument layout. Simplify.
7762 (c_type_print_args): Use new argument layout. Simplify.
7763 (c_type_print_base): Update call to cp_type_print_method_args.
7764 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7765 argument; use die->type instead. Update call to
7766 smash_to_method_type.
7767 (read_structure_scope): Update call to dwarf2_add_member_fn.
7768 * gdbtypes.c (allocate_stub_method): Update comment.
7769 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7770 Use new argument layout.
7771 (check_stub_method): Use new argument layout. Don't count
7772 void as an argument.
7773 (print_arg_types): Update comments. Use new argument layout.
7774 (recursive_dump_type): Don't print arg_types member.
7775 * hpread.c (hpread_read_struct_type): Use new argument layout.
7776 (fixup_class_method_type): Likewise.
7777 (hpread_type_lookup): Likewise.
7778 * stabsread.c (read_type): Update calls to read_args and
7779 smash_to_method_type.
7780 (read_args): Use new argument layout. Simplify.
7781 * valops.c (typecmp): Use new argument layout. Update parameters
7782 and comments. Simplify.
7783 (hand_function_call): Use new argument layout.
7784 (search_struct_method): Update call to typecmp.
7785 (find_overload_match): Use new argument layout.
7789 * NEWS: Mention multithreaded debug support for gdbserver.
7793 * MAINTAINERS: Mention NEWS.
7797 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7798 (struct mips_objfile_private, compare_pdr_entries): New.
7799 (non_heuristic_proc_desc): Read the ".pdr" section if it
7804 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7805 (arm_debug): New static variable.
7806 (_initialize_arm_tdep): Add ``set debug arm'' command.
7810 * Makefile.in (sim_arm_h): Define.
7811 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7812 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7813 (arm_register_sim_regno): New function, map an internal REGNUM
7814 onto a simulator register number.
7815 (arm_gdbarch_init): Set register_sim_regno.
7819 * MAINTAINERS: Add self.
7823 * source.c (source_info): Mention whether the symtab has
7824 information about preprocessor macros.
7826 Call the command `info macro', not `show macro'.
7827 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7829 (_initialize_macrocmd): Register `info_macro_command' in
7830 `infolist', not `showlist'.
7834 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7835 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7836 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7837 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7838 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7840 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7841 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7842 (_initialize_mips_tdep): Remove dead code.
7843 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7844 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7845 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7846 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7847 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7848 MIPS_LAST_FP_ARG_REGNUM): Remove.
7852 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7853 (unwind_tmp_obstack_free, parse_frame_info)
7854 (update_context, cfi_read_fp, cfi_write_fp)
7855 (cfi_frame_chain, cfi_init_extra_frame_info)
7856 (cfi_virtual_frame_pointer): Use the above function.
7857 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7861 * v850-tdep.c (v850_type_is_scalar): New function.
7862 (v850_use_struct_convention): Match current gcc implementation
7863 as close as possible.
7864 (v850_push_arguments): Fix stack_offset handling. Don't write
7865 struct_addr into register. This is done by v850_store_struct_return.
7866 (v850_extract_return_value): Care for structs.
7867 (v850_store_return_value): Ditto.
7868 (v850_store_struct_return): Actually write address.
7872 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7873 without debug information too.
7877 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7878 Make multi-arch pure.
7879 * gdbarch.h, gdbarch.c: Re-generate.
7880 * arm-tdep.c (arm_print_float_info): Update.
7881 * arch-utils.h (default_print_float_info): Update.
7882 * arch-utils.c (default_print_float_info): Update.
7883 * infcmd.c (float_info): Update call.
7887 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7888 the front of the initialize list.
7892 * infrun.c (struct inferior_status): Replace fields
7893 selected_frame_address and selected_level with field
7895 (save_inferior_status): Update. Use get_frame_id.
7896 (struct restore_selected_frame_args): Delete.
7897 (restore_selected_frame): Update. Use frame_find_by_id.
7898 (restore_inferior_status): Update.
7900 * breakpoint.h (struct breakpoint): Change type of
7901 watchpoint_frame to frame_id.
7902 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7903 call to get_current_frame.
7904 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7906 (watchpoint_check): Use frame_find_by_id.
7908 * frame.h (record_selected_frame): Delete declaration.
7909 * stack.c (record_selected_frame): Delete function.
7911 * frame.h (struct frame_id): Define.
7912 (get_frame_id): Declare.
7913 (frame_find_by_id): Declare.
7914 * frame.c (frame_find_by_id): New function.
7915 (get_frame_id): New function.
7919 * ser-e7kpc.c: Fix duplicated define and call of
7920 _initialize_ser_e7000pc
7924 * signals/signals.c (target_signal_from_host): Fix #ifdef
7926 (do_target_signal_to_host): Likewise.
7930 * mips-tdep.c (mips_find_abi_section): New function.
7931 (mips_gdbarch_init): Call it.
7935 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7936 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7937 after Andrew's 2002-06-08 gdbarch change.
7941 * i386-linux-nat.c (suppy_gregset): Don't supply
7942 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7944 (fill_gregset): Don't fetch it under the same circumstances.
7948 * Makefile.in (callback_h): Define.
7949 (remote_sim_h): Update path to remote-sim.h.
7950 (remote-rdp.o): Add $(callback_h).
7951 (remote-sim.o): Use $(callback_h).
7952 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7953 * remote-rdp.c: Include "gdb/callback.h".
7957 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7958 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7962 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7963 * rdi-share/serpardr.c: Ditto.
7964 * rdi-share/unixcomm.c: Ditto.
7965 * rdi-share/serdrv.c: Ditto.
7966 * rdi-share/hostchan.h: Ditto.
7967 * rdi-share/hostchan.c: Ditto.
7968 * rdi-share/host.h: Ditto.
7969 * rdi-share/devsw.c: Ditto.
7971 * objfiles.h: Change type of obj_private to void pointer.
7972 * pa64solib.c: Update copyright. Don't include "assert.h", use
7973 strcmp instead of STREQ, use LONGEST, do not use PTR
7974 * somsolib.c: Ditto.
7976 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7977 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7978 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7982 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7983 (default_get_saved_register): Delete function.
7984 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7985 generic_unwind_get_saved_register.
7986 * gdbarch.h, gdbarch.c: Re-generate.
7990 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7991 generic_func_frame_chain_valid.
7992 * gdbarch.h, gdbarch.c: Re-generate.
7993 * blockframe.c (generic_func_frame_chain_valid): Only check
7994 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7995 passing FP to PC_IN_CALL_DUMMY.
8000 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8001 (register_gdbarch_data): Initialize init_p.
8002 (gdbarch_data): Initialize data pointer using the init function.
8003 (init_gdbarch_data): Delete function.
8004 (gdbarch_update_p): Update.
8005 (initialize_non_multiarch): Update.
8006 (struct gdbarch): Add field initialized_p.
8007 * gdbarch.h, gdbarch.c: Re-generate.
8011 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8012 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8013 better do the things actually here.
8014 * x86-64-tdep.c (x86_64_register_name2nr): New.
8015 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8016 (x86_64_gdbarch_init): Respect the above change.
8017 * x86-64-tdep.h (x86_64_register_name2nr)
8018 (x86_64_register_nr2name): Add prototypes.
8019 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8023 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8024 Delete extra braces and re-indent.
8025 (d10v_store_return_value): Char return values
8026 must be shifted over by one byte in R0.
8027 (d10v_extract_return_value): Delete extra braces, re-indent.
8031 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8032 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8033 (d10v_integer_to_address): Rewrite.
8034 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8035 the d10v specific functions which take care of converting to the
8040 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8041 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8045 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8047 * config/tm-linux.h: Ditto.
8048 * config/alpha/tm-alphalinux.h: Ditto.
8049 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8050 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8051 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8052 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8053 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8054 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8055 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8056 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8057 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8058 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8059 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8060 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8061 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8062 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8063 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8064 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8065 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8066 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8067 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8068 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8069 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8070 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8071 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8072 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8073 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8074 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8075 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8076 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8077 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8078 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8079 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8080 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8081 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8082 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8083 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8084 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8085 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8089 * ada-exp.tab.c: New file
8090 * ada-exp.y: New file
8091 * ada-lang.c: New file
8092 * ada-lang.h: New file
8093 * ada-lex.c: New file
8094 * ada-lex.l: New file
8095 * ada-tasks.c: New file
8096 * ada-typeprint.c: New file
8097 * ada-valprint.c: New file
8101 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8102 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8106 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8107 insetead of ppc-linux-tdep.o.
8108 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8109 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8114 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8115 bit register contents for little endian hosts.
8119 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8124 * gdbarch.h: Regenerate.
8128 * MAINTAINERS: Add everyone to write-after-approval list.
8132 * stack.c (frame_info): Use frame_register_unwind instead of
8133 saved_regs. Mention when the SP is on the stack or in a register.
8135 * frame.h (frame_register_unwind_ftype): Define. Document.
8136 (struct frame_info): Add field register_unwind and
8137 register_unwind_cache.
8138 (frame_register_unwind): Declare.
8139 (generic_unwind_get_saved_register): Declare.
8141 * frame.c (frame_register_unwind): New function.
8142 (generic_unwind_get_saved_register): New function.
8144 * blockframe.c (generic_call_dummy_register_unwind): New function.
8145 (frame_saved_regs_register_unwind): New function.
8146 (set_unwind_by_pc): New function.
8147 (create_new_frame): New function.
8148 (get_prev_frame): New function.
8152 * a29k-share/: Delete directory.
8153 * remote-vx29k.c: Delete file.
8157 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8158 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8162 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8163 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8166 (sparcnbsd-tdep.o): New dependency lists.
8167 * NEWS: Note new UltraSPARC NetBSD native configuration.
8168 * configure.host (sparc64-*-netbsd*): New host.
8169 * configure.tgt (sparc-*-netbsdelf*)
8170 (sparc-*-netbsd*): Set gdb_target to nbsd.
8171 (sparc64-*-netbsd*): New target.
8172 * sparc64nbsd-nat.c: New file.
8173 * sparcnbsd-nat.c: New file.
8174 * sparcnbsd-tdep.c: New file.
8175 * sparcnbsd-tdep.h: New file.
8176 * config/sparc/nbsd.mt: New file.
8177 * config/sparc/nbsd64.mh: New file.
8178 * config/sparc/nbsd64.mt: New file.
8179 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8180 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8182 * config/sparc/nbsdaout.mt: Remove.
8183 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8184 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8186 * config/sparc/nbsdelf.mt: Remove.
8187 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8188 sparc-nat.c compatiblity defines.
8189 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8190 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8191 * config/sparc/tm-nbsd64.h: New file.
8192 * config/sparc/tm-nbsdaout.h: Remove.
8193 * config/sparc/xm-nbsd.h: Remove.
8197 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8198 * sparc-tdep.c: Include osabi.h.
8199 (gdbarch_tdep): Add osabi member.
8200 (_initialize_sparc_tdep): Use gdbarch_register.
8201 (sparc_gdbarch_init): Use generic OS ABI framework.
8202 (sparc_dump_tdep): New function.
8206 * corefile.c (do_captured_read_memory_integer): Return non-zero
8208 (safe_read_memory_integer): Copy result of memory read when
8209 status is non-zero. Also, add comments.
8213 * Makefile.in (ppc_tdep_h): Define.
8216 (rs6000-tdep.o): Use $(ppc_tdep_h).
8219 (ppcnbsd-tdep.o): New dependency lists.
8220 * ppc-tdep.h: Use generic OS ABI framework.
8221 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8222 (ppc_linux_init_abi): New functions.
8223 (ppc_sysv_abi_broken_use_struct_convention)
8224 (ppc_sysv_abi_use_struct_convention)
8225 (ppc_sysv_abi_push_arguments): Move to...
8226 * ppc-sysv-tdep.c: ...here.
8227 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8228 * rs6000-tdep.c (process_note_abi_tag_sections)
8229 (get_elfosabi): Remove.
8230 (rs6000_gdbarch_init): Use generic OS ABI framework.
8231 (rs6000_dump_tdep): New function.
8232 (_initialize_rs6000_tdep): Use gdbarch_register.
8233 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8234 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8235 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8236 of ppc-linux-tdep.o.
8237 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8238 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8239 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8240 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8241 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8242 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8246 * macroscope.c (default_macro_scope): Put `void' in empty argument
8251 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8252 * arch-utils.c: Include "sim-regno.h".
8253 * gdbarch.sh: Don't include "sim-regno.h".
8254 * gdbarch.h, gdbarch.c: Regenerate.
8255 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8257 * arch-utils.h (legacy_register_sim_regno): To here.
8258 * remote-sim.c (legacy_register_sim_regno): Move function from
8260 * arch-utils.c (legacy_register_sim_regno): To here.
8264 * sim-regno.h: New file.
8265 * Makefile.in (sim_regno_h): Define.
8266 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8267 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8268 (legacy_register_sim_regno): New function.
8269 (one2one_register_sim_regno): New function.
8270 (gdbsim_fetch_register): Rewrite.
8271 (gdbsim_store_register): Only store a register when
8272 REGISTER_SIM_REGNO is valid.
8273 * d10v-tdep.c: Include "sim-regno.h".
8274 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8275 (d10v_ts3_register_sim_regno): Ditto.
8276 * gdbarch.sh: Include "sim-regno.h".
8277 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8278 * gdbarch.h, gdbarch.c: Regenerate.
8279 * arch-utils.h (default_register_sim_regno): Delete declaration.
8280 * arch-utils.c (default_register_sim_regno): Delete function.
8284 * ppcnbsd-nat.c: Rewrite.
8285 * ppcnbsd-tdep.c: New file.
8286 * ppcnbsd-tdep.h: New file.
8287 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8288 solib.o, and solib-svr4.o.
8289 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8290 nbsd-tdep.o, and corelow.o.
8294 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8295 `tr' and `sed'. Mention that `broken' targets are not expected to
8300 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8301 Let PC point right after the prologue before looking up symbols.
8305 * i386-tdep.c (i386_register_virtual_type): Return
8306 builtin_type_vec128i for SSE registers.
8308 * gdbtypes.h (builtin_type_vec128i): Declare.
8310 * gdbtypes.c (build_builtin_type_vec128i): New function.
8311 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8312 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8313 (build_gdbtypes): Initialize new builtin vector types.
8314 (_initialize_gdbtypes): Register new vector types with gdbarch.
8318 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8319 since it has been multi-arch'd.
8320 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8321 Move Alpha and VAX multi-arch news entries to same section
8322 as other multi-arch news.
8326 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8327 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8328 static. Rename some register numbers to put them in ns32k-tdep
8330 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8331 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8333 (_initialize_ns32k_tdep): Use gdbarch_register.
8334 * ns32k-tdep.h: New file.
8335 * ns32knbsd-tdep.c: New file.
8336 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8337 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8338 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8339 REGISTER_BYTES, REGISTER_BYTE): Remove.
8340 * config/ns32k/tm-ns32k.h: New file.
8341 * config/ns32k/tm-umax.h: Remove.
8345 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8346 ns32k_store_struct_return, ns32k_extract_return_value,
8347 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8349 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8350 ns32k_saved_pc_after_call.
8351 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8352 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8353 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8354 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8355 ns32k_extract_struct_value_address.
8359 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8360 ns32k_fix_call_dummy): New.
8361 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8362 ns32k_call_dummy_words.
8363 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8364 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8365 CALL_DUMMY_NARGS): Remove.
8366 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8370 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8371 ns32k_frame_saved_pc, ns32k_frame_args_address,
8372 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8373 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8374 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8375 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8376 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8377 (BREAKPOINT): Remove..
8378 (FRAME_CHAIN): Define as ns32k_frame_chain.
8379 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8380 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8381 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8382 (FRAME_FIND_SAVED_REGS): Remove.
8383 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8384 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8385 (POP_FRAME): Define as ns32k_pop_frame.
8389 * ns32k-tdep.c (ns32k_register_byte_32082,
8390 ns32k_register_byte_32382, ns32k_register_raw_size,
8391 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8393 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8394 ns32k_register_byte_32382.
8395 * config/ns32k/tm-umax.h: Update copyright years.
8396 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8397 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8398 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8399 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8400 (ns32k_get_enter_addr): Fix prototype.
8404 * ns32k-tdep.c: Update copyright years.
8405 (ns32k_register_name_32082): New function.
8406 (ns32k_register_name_32382): Ditto.
8407 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8408 (REGISTER_NAME): Define as ns32k_register_name_32382.
8409 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8410 (REGISTER_NAME): Define as ns32k_register_name_32082.
8414 * dwarf2read.c (free_line_header): Use xfree, not free.
8418 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8419 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8423 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8427 From Ross Alexander at NEC Europe:
8428 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8432 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8433 for input, rather than parse_and_eval_address.
8437 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8438 * Makefile.in (sim_d10v_h): Update definition.
8442 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8443 change `2002-05-22 Michael Snyder' below.
8444 (d10v_push_arguments): Ditto.
8445 (d10v_extract_return_value): Ditto.
8449 * macrotab.c (check_for_redefinition): Don't complain if the new
8450 definition is the same as the previous one. Take more arguments
8451 to allow the comparison.
8452 (macro_define_object, macro_define_function): Pass more arguments
8453 to check_for_redefinition.
8457 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8458 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8459 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8460 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8461 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8462 Add a temp variable to save a call (and a memory read).
8463 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8464 if possible (so that PC_IN_CALL_DUMMY will work).
8468 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8472 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8474 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8475 (dwarf2_build_frame_info): Add offset to fde->initial_location
8476 so that frames of shared libraries are mapped correctly.
8477 (execute_stack_op): Change type of 'result' from ULONGEST to
8482 * config/alpha/tm-nbsd.h: Include solib.h.
8486 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8487 assumptions about the host's byte order.
8491 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8493 * alphanbsd-tdep.c: Include solib-svr4.h.
8494 * shnbsd-tdep.c: Ditto.
8498 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8499 nbsd-tdep.h to dependency list.
8500 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8501 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8502 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8503 nbsdaout.mh and nbsdelf.mh consistently.
8504 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8505 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8506 nbsdaout.mt and nbsdelf.mh consistently.
8507 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8508 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8509 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8510 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8511 a.out shared library stuff from here...
8512 * config/nm-nbsdaout.h: ...to here.
8513 * config/tm-nbsd.h: Remove.
8514 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8515 * config/arm/nbsd.mh: Remove.
8516 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8518 * config/arm/nbsdaout.mh: New file.
8519 * config/arm/nbsdelf.mh: New file.
8520 * config/arm/nm-nbsdaout.h: New file.
8521 * config/i386/nbsd.mh: Remove.
8522 * config/i386/nbsd.mt: Remove.
8523 * config/i386/nbsdaout.mh: New file.
8524 * config/i386/nbsdaout.mt: New file.
8525 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8526 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8527 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8528 i386_register_u_addr): Remove.
8529 * config/i386/nm-nbsdaout.h: New file.
8530 * config/i386/nm-nbsdelf.h: Remove.
8531 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8532 (USE_STRUCT_CONVENTION): Remove.
8533 * config/i386/tm-nbsdaout.h: New file.
8534 * config/i386/tm-nbsdelf.h: Remove.
8535 * config/m68k/nbsd.mh: Remove.
8536 * config/m68k/nbsd.mt: Remove.
8537 * config/m68k/nbsdaout.mh: New file.
8538 * config/m68k/nbsdaout.mt: New file.
8539 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8540 * config/m68k/nm-nbsdaout.h: New file.
8541 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8542 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8543 * config/ns32k/nbsd.mh: Remove.
8544 * config/ns32k/nbsd.mt: Remove.
8545 * config/ns32k/nbsdaout.mh: New file.
8546 * config/ns32k/nbsdaout.mt: New file.
8547 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8548 * config/ns32k/nm-nbsdaout.h: New file.
8549 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8550 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8551 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8552 (SVR4_SHARED_LIBS): Remove.
8553 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8554 * config/sparc/nbsd.mh: Remove.
8555 * config/sparc/nbsd.mt: Remove.
8556 * config/sparc/nbsdaout.mh: New file.
8557 * config/sparc/nbsdaout.mt: New file.
8558 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8559 * config/sparc/nbsdelf.mt: New file.
8560 * config/sparc/nm-nbsdaout.h: New file.
8561 * config/sparc/nm-nbsdelf.h: Remove.
8562 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8563 * config/sparc/tm-nbsdaout.h: New file.
8567 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8569 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8573 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8575 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8579 * NEWS: Note new MIPS NetBSD native configuration.
8580 * configure.host (mips*-*-netbsd*): New host.
8581 * configure.tgt (mips*-*-netbsd*): New target.
8582 * mipsnbsd-nat.c: New file.
8583 * mipsnbsd-tdep.c: New file.
8584 * mipsnbsd-tdep.h: New file.
8585 * config/mips/nbsd.mh: New file.
8586 * config/mips/nbsd.mt: New file.
8587 * config/mips/nm-nbsd.h: New file.
8588 * config/mips/tm-nbsd.h: New file.
8592 * Makefile.in (SFILES): Add osabi.c.
8593 (COMMON_OBS): Add osabi.o.
8594 (osabi.o): New dependency list.
8595 * osabi.c: New file.
8596 * osabi.h: New file.
8597 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8599 * Makefile.in (alpha_tdep_h): Define and use instead of
8601 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8602 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8604 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8605 * alpha-tdep.h: Include osabi.h.
8606 (alpha_abi): Remove.
8607 (gdbarch_tdep): Use generic OS ABI framework.
8608 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8609 gdbarch_register_osabi.
8610 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8611 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8612 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8614 * Makefile.in (sh_tdep_h): Add osabi.h.
8615 * sh-tdep.h (sh_osabi): Remove.
8616 (gdbarch_tdep): Use generic OS ABI framework.
8617 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8618 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8619 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8620 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8622 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8623 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8624 gdbarch_register_osabi.
8625 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8626 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8627 (get_elfosabi): Rename to...
8628 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8629 ABI framework support routines.
8630 (arm_gdbarch_init): Use generic OS ABI framework.
8631 (arm_dump_tdep): Likewise.
8632 (_initialize_arm_tdep): Likewise.
8633 * arm-tdep.h: Include osabi.h.
8635 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8637 (arm_gdbarch_register_os_abi): Remove prototype.
8638 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8639 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8641 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8642 * mips-tdep.c: Include osabi.h.
8643 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8648 * h8300-tdep.c: Fix formatting.
8652 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8653 printing vector registers.
8657 From Fernando Nasser:
8658 * remote.c (remote_async_open_1): Re-throw the exception when the
8660 (remote_cisco_open): Ditto.
8661 (remote_open_1): Ditto.
8665 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8666 (remote_start_remote): Add uiout parameter. Pass through to
8667 remote_start_remote_dummy.
8668 (remote_open_1): Use catch_exception instead of catch_errors.
8669 (remote_async_open_1): Ditto.
8670 (remote_cisco_open): Ditto.
8674 * remote.c (remote_start_remote): Replace PTR with void pointer.
8675 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8680 * gdb_indent.sh: Allow the script to be run in the sim directory.
8684 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8685 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8687 * corelow.c (core_open): Only call set_gdbarch_from_file if
8692 * h8300-tdep.c: Add support of EXR register
8693 * config/h8300/tm-h8300.h: Ditto.
8697 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8701 * h8300-tdep.c: Change literal regnums to REGNO.
8705 * NEWS: Note addition of macro support.
8707 Expand preprocessor macros in C expressions.
8708 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8709 (scan_macro_expansion, scanning_macro_expansion,
8710 finished_macro_expansion): New function declarations.
8711 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8712 variable declarations.
8713 * parser-defs.h (expression_context_pc): New declaration.
8714 * parse.c (expression_context_pc): New variable.
8715 (parse_exp_1): Set expression_context_pc, as well as
8716 expression_context_block.
8717 * c-exp.y (yylex): If we're not already reading the result of a
8718 macro expansion, try to macro-expand the next token. When we're
8719 done scanning a macro expansion, switch back to the mainline text.
8720 Commas and `if's in a macro's expansion don't terminate the input.
8721 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8722 (macro_original_text, macro_expanded_text,
8723 expression_macro_lookup_func, expression_macro_lookup_baton): New
8725 (scan_macro_expansion, scanning_macro_expansion,
8726 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8727 c_preprocess_and_parse): New functions.
8728 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8729 c_preprocess_and_parse, instead of c_parse.
8730 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8731 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8735 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8736 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8737 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8741 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8745 * Makefile.in (sh_tdep_h): Define and use.
8746 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8747 register enum): Move to...
8748 * * sh-tdep.h: ...here.
8749 * sh-tdep.c: Include sh-tdep.h.
8750 * sh3-rom.c: Likewise.
8751 * shnbsd-tdep.c: Likewise.
8755 * arm-tdep.c: Spelling fix in comment.
8759 Add commands for manually expanding macros and showing their
8761 * macrocmd.c, macroscope.c, macroscope.h: New files.
8762 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8763 (macroscope_h): New variable.
8764 (HFILES_NO_SRCDIR): Add macroscope.h.
8765 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8766 (macroscope.o, macrocmd.o): New rules.
8768 Teach the Dwarf 2 reader to read macro information.
8769 * dwarf2read.c: #include "macrotab.h".
8770 (dwarf_macinfo_buffer): New variable.
8771 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8773 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8774 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8775 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8776 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8777 dwarf2_macro_spaces_in_definition): New complaints.
8778 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8779 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8780 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8781 the partial symbol table.
8782 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8783 from what's recorded in the partial symbol table.
8784 (read_file_scope): If the compilation unit has a
8785 `DW_AT_macro_info' attribute, read its macro information.
8786 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8791 * ser-tcp.c: Don't include <netinet/udp.h>.
8795 * MAINTAINERS: Update my email address.
8799 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8800 include file of the same name.
8804 * configure.tgt: Mark v850 as multi-arched.
8805 * config/v850/tm-v850.h: Remove file.
8806 * config/v850/v850.mt: Eliminate TM_FILE.
8810 * v850-tdep.c: Full multi-arch.
8811 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8812 Define GDB_MULTI_ARCH to 2.
8816 * p-exp.y (current_type): New static variable.
8817 Carries the type of the expression at the position that is parsed.
8818 (push_current_type, pop_current_type): Two new functions. Used
8819 to store/restore current_type in expression on specific tokens.
8820 (search_field): New static variable. Set to one after parsing a point
8821 as at that point only a FIELDNAME token should be searched.
8822 (FIELDNAME): New token. After a point only a token belonging to
8823 current_type type definition is allowed.
8824 (all over token rules): reset and change current_type according
8826 (exp '[' rule): insert implicit array index field if
8827 exp is a pascal string type.
8831 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8832 frame info. Use frame_info's saved_regs instead of matching member
8833 in extra_frame_info throughout.
8834 (v850_frame_init_saved_regs): New function.
8835 (v850_init_extra_frame_info): Move most functionality into
8836 v850_frame_init_saved_regs().
8837 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8838 (v850_frame_find_saved_regs): Remove declaration.
8839 (FRAME_FIND_SAVED_REGS): Remove definition.
8840 (v850_frame_init_saved_regs): Add declaration.
8841 (FRAME_INIT_SAVED_REGS): Add definition.
8845 * v850-tdep.c: Begin multi-arch'ing v850.
8846 (v850_target_architecture_hook): Remove function.
8847 (v850_gdbarch_init): New function. Add code previously in
8848 v850_target_architecture_hook().
8849 (_initialize_v850_tdep): Don't set target_architecture_hook.
8850 Call register_gdbarch_init() instead.
8854 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8855 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8856 (fixup_class_method_type): Likewise.
8860 Add macro structures to GDB's symbol tables. Nobody puts anything
8862 * symtab.h (struct symtab): New member: `macro_table'.
8863 * buildsym.h (pending_macros): New global variable.
8864 * buildsym.c: #include "macrotab.h".
8865 (buildsym_init): Initialize `pending_macros'.
8866 (end_symtab): If we found macro information while reading a CU's
8867 debugging info, do build a symtab structure for it. Make the
8868 symtab point to the macro information, and clear the
8869 `pending_macros' pointer which held it while we were reading the
8871 (really_free_pendings): Free any pending macro table.
8872 * objfiles.h (struct objfile): New member: `macro_cache'.
8873 * objfiles.c (allocate_objfile): Set allocate and free functions
8874 for the macro cache's objstack.
8875 (free_objfile): Empty the macro cache's obstack.
8876 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8877 set new allocate and free functions for it.
8878 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8879 free functions for the macro cache's objstack. (Why is this
8880 function building its own objfile?)
8881 * symmisc.c (print_objfile_statistics): Print statistics on the
8883 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8887 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8888 (REGISTER_U_ADDR): Delete definition.
8889 (arm_register_u_addr): Delete declaration.
8893 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8894 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8898 * regcache.c (register_valid): Revise comments refering to "Not
8899 available" and "unavailable".
8900 * frame.c (frame_register_read): Ditto.
8901 * findvar.c (value_of_register): Ditto.
8905 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8906 (remote-sim.o): Update dependencies.
8907 (d10v-tdep.o): Specify dependencies.
8908 (sim_d10v_h): Define.
8912 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8913 * macrotab.c (macro_lookup_inclusion, find_definition,
8914 new_macro_table): Same.
8916 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8917 not `! strcmp ()'. This is a dubious improvement.
8918 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8920 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8921 although it's not necessary, to avoid a warning.
8925 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8926 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8927 TYPE_INSTANCE_FLAGS.
8928 (struct main_type): New.
8929 (struct type): Move most members to struct main_type. Change
8930 cv_type and as_type to new type_chain member. Add instance_flags.
8931 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8932 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8933 (finish_cv_type): Remove prototype.
8934 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8936 (alloc_type_instance): New function.
8937 (smash_type): New function.
8938 (make_pointer_type, make_reference_type, make_function_type)
8939 (smash_to_member_type, smash_to_method_type): Call smash_type.
8940 (make_qualified_type): New function.
8941 (make_type_with_address_space): Call make_qualified_type.
8942 (make_cv_type): Likewise.
8943 (finish_cv_type): Remove unnecessary function.
8944 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8945 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8946 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8947 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8948 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8949 * hpread.c (hpread_read_struct_type): Likewise.
8950 * stabsread.c (read_struct_type): Likewise.
8954 * configure.tgt: Add a catch all sh* target, for cases like
8955 sh[2,3,4]-elf and sh-hms.
8959 * event-loop.c (create_file_handler): Don't do anything but
8960 update data when we are given a fd which we are already
8965 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8966 (update_context): Use __func__ in warnings.
8970 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8971 and tcp_close to net_open and net_close.
8972 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8973 using UDP if requested. Don't try to disable Nagle on UDP
8975 * remote.c (remote_serial_open): New function. Warn about UDP.
8976 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8980 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8984 * configure.tgt: Remove sh-hms target.
8985 * MAINTAINERS: Don't list sh-hms as a separate target.
8989 Add first preprocessor macro-expansion files.
8990 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8991 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8992 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8993 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8994 (COMMON_OBS): Add macrotab.o, macroexp.o.
8995 (macroexp.o, macrotab.o): New rules.
8999 * config/m88k/tm-m88k.h: Update copyright.
9000 (m88k_target_write_pc): Declare
9001 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9002 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9003 (SHIFT_INST_REGS): Update definition.
9004 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9005 using old definition of TARGET_WRITE_PC.
9006 * regcache.c (generic_target_write_pc): Delete code handling
9008 * gdbarch.sh (NNPC_REGNUM): Delete.
9009 * gdbarch.h, gdbarch.c: Regenerate.
9013 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9018 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9019 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9020 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9022 * c-typeprint.c (cp_type_print_method_args): Likewise.
9023 (c_type_print_args): Likewise.
9024 * d10v-tdep.c (d10v_push_arguments): Likewise.
9025 (d10v_extract_return_value): Likewise.
9026 * expprint.c (print_subexp): Likewise.
9027 * gdbtypes.c (lookup_primitive_typename): Likewise.
9028 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9029 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9030 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9031 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9032 (TYPE_VECTOR): Likewise.
9033 * hpread.c (hpread_read_struct_type)
9034 (fix_static_member_physnames, fixup_class_method_type)
9035 (hpread_type_lookup): Likewise.
9036 * mdebugread.c (parse_symbol, parse_type): Likewise.
9037 * p-lang.c (is_pascal_string_type): Likewise.
9038 * valops.c (hand_function_call): Likewise.
9039 * x86-64-tdep.c (classify_argument): Likewise.
9041 * hpread.c (hpread_read_function_type)
9042 (hpread_read_doc_function_type): Call replace_type.
9043 * dstread.c (create_new_type): Delete.
9044 (decode_dst_structure, process_dst_function): Call alloc_type.
9045 Use type access macros.
9049 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9050 the're not supported by the current architecture.
9051 (i387_fill_fxsave): Likewise.
9055 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9056 sect_index_xxx members to index the first slot in section_offsets
9057 if all of the section_offsets are zero.
9061 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9062 checked in with last change.
9066 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9067 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9072 * Makefile.in: Update dependencies.
9076 * language.c (local_hex_string_custom): Simplify. Do not depend
9077 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9079 * memattr.c (mem_info_command): Replace calls to
9080 longest_local_hex_string and longest_local_hex_string_custom.
9081 * buildsym.c (make_blockvector): Ditto.
9082 * solib.c (info_sharedlibrary_command): Ditto.
9083 * tracepoint.c (tracepoints_info): Ditto.
9084 * symtab.c (print_msymbol_info): Ditto.
9086 * language.c (local_hex_string): Delete.
9087 (local_hex_string_custom): Delete.
9088 (longest_local_hex_string): Rename to local_hex_string.
9089 (longest_local_hex_string_custom): Rename to
9090 local_hex_string_custom.
9091 * language.h (local_hex_string): Change parameter type to LONGEST.
9092 (local_hex_string_custom): Ditto.
9093 (longest_local_hex_string): Delete declaration.
9094 (longest_local_hex_string_custom): Ditto.
9096 * solib.c: Update copyright.
9097 * memattr.c: Update copyright.
9101 * arch-utils.h (legacy_register_to_value): Declare.
9102 (legacy_value_to_register): Declare.
9103 (legacy_convert_register_p): Declare.
9104 * arch-utils.c (legacy_register_to_value): New function.
9105 (legacy_value_to_register): New function.
9106 (legacy_convert_register_p): New function.
9108 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9109 (VALUE_TO_REGISTER): Define.
9110 (CONVERT_REGISTER_P): Define.
9111 * gdbarch.h, gdbarch.c: Regenerate.
9113 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9115 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9121 * Makefile.in: Update dependencies for valops.c.
9122 * valops.c: Include "gdb_assert.h".
9123 (typecmp): Skip THIS parameter to methods.
9124 (find_method_list): Remove static_memfuncp argument,
9125 update callers. Check for stub methods.
9126 (find_value_oload_method_list): Don't set *static_memfuncp.
9127 (find_overload_match): Don't check for stub methods. Assert
9128 that methods are not stubbed. Handle static methods.
9129 (value_find_oload_method_list): Remove static_memfuncp argument.
9130 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9131 to the argument list for static stub methods.
9132 * value.h (value_find_oload_method_list): Update prototype.
9136 * arch-utils.h (generic_register_size): Declare.
9137 (generic_register_raw_size, generic_register_virtual_size): Delete
9139 * arch-utils.c (generic_register_raw_size): Delete.
9140 (generic_register_size): New function.
9141 (generic_register_virtual_size): Delete.
9143 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9144 default generic_register_size.
9145 * gdbarch.h, gdbarch.c: Re-generate.
9147 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9148 register_virtual_size.
9149 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9154 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9155 * gdbarch.h, gdbarch.c: Regenerate.
9156 * gnu-v3-abi.c: Update copyright.
9157 (vtable_address_point_offset): Update.
9158 (gnuv3_rtti_type): Update.
9159 (gnuv3_baseclass_offset): Update.
9160 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9161 (init_fetch_link_map_offsets): Update.
9162 * remote.c (get_remote_state): Update.
9166 * TODO: Remove value_headof/value_from_vtable_info comment.
9167 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9168 * values.c (value_headof, value_from_vtable_info): Delete.
9169 * value.h (value_from_vtable_info): Delete prototype.
9173 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9174 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9176 (gdb_assert_h): Define.
9177 (gdb_wait_h): Define.
9178 (gdb_regex_h): Define.
9183 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9187 * nbsd-tdep.c: Fix comment.
9191 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9192 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9193 (nbsd-tdep.o): New dependency list.
9194 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9196 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9197 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9198 * nbsd-tdep.c: New file.
9199 * nbsd-tdep.h: New file.
9200 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9202 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9203 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9204 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9205 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9209 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9210 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9211 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9212 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9213 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9214 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9218 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9219 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9220 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9221 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9222 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9223 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9224 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9228 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9229 fetch_elfcore_registers to...
9230 * i386nbsd-tdep.c: ...here.
9231 (i386nbsd_use_struct_convention): Rename to...
9232 (i386nbsd_aout_use_struct_convention): ...this.
9233 (i386nbsd_supply_reg): New function.
9234 (i386nbsd_fill_reg): New function.
9235 (fetch_core_registers): Use i386nbsd_supply_reg.
9236 (fetch_elfcore_registers): Likewise.
9237 (_initialize_i386nbsd_tdep): New function.
9238 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9239 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9240 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9241 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9242 (i386nbsd_aout_use_struct_convention): ...this.
9246 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9247 (store_inferior_registers): Use shnbsd_fill_reg.
9248 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9249 sh_nbsd_supply_register): Collapse into...
9250 (shnbsd_supply_reg): ...this.
9251 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9252 (shnbsd_fill_reg): ...this.
9253 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9254 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9255 (fetch_core_registers): Use shnbsd_supply_reg.
9256 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9257 (sh_nbsd_core_fns): Rename to...
9258 (shnbsd_core_fns): ...this.
9259 (sh_nbsd_elfcore_fns): Rename to...
9260 (shnbsd_elfcore_fns): ...this.
9261 (sh_nbsd_init_abi): Rename to...
9262 (shnbsd_init_abi): ...this.
9263 (_initialize_sh_nbsd_tdep): Rename to...
9264 (_initialize_shnbsd_tdep): ...this.
9265 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9266 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9267 sh_nbsd_fill_register): Remove prototypes.
9268 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9272 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9273 (i387-nat.o): Delete dependency list.
9274 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9275 (x86-64-linux-nat.o): Likewise.
9276 * i387-nat.c: Delete file, moving contents to...
9277 * i387-tdep.c: ...here.
9278 * i387-nat.h: Rename...
9279 * i387-tdep.h: ...to this.
9280 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9281 * i386-linux-nat.c: Likewise.
9282 * i386bsd-nat.c: Likewise.
9283 * i386gnu-nat.c: Likewise.
9284 * i386nbsd-nat.c: Likewise.
9285 * i386v4-nat.c: Likewise.
9286 * x86-64-linux-nat.c: Likewise.
9287 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9288 * config/i386/go32.mh (NATDEPFILES): Likewise.
9289 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9290 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9291 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9292 * config/i386/linux.mh (NATDEPFILES): Likewise.
9293 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9294 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9295 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9296 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9300 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9301 (alphanbsd-nat.o): Remove dependency list.
9302 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9303 * alphanbsd-nat.c: Delete. Contents moved to...
9304 * alphanbsd-tdep.c: ...here.
9305 (_initialize_alphanbsd_tdep): Register core functions.
9306 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9310 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9311 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9312 (alphanbsd-nat.o): Likewise.
9313 (alphabsd-tdep.o): New dependency list.
9314 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9315 (fill_gregset): Use alphabsd_fill_reg.
9316 (supply_fpregset): Use alphabsd_supply_fpreg.
9317 (fill_fpregset): Use alphabsd_fill_fpreg.
9318 (fetch_inferior_registers): Use struct reg and struct fpreg
9319 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9320 and alphabsd_supply_fpreg.
9321 (store_inferior_registers): Use struct reg and struct fpreg
9322 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9323 and alphabsd_fill_fpreg.
9324 * alphabsd-tdep.c: New file.
9325 * alphabsd-tdep.h: New file.
9326 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9327 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9328 alphabsd_supply_fpreg.
9329 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9330 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9334 * mips-tdep.c (mips_double_register_type): Fix thinko.
9335 (mips_single_register_type): Ditto.
9336 * MAINTAINERS: Add self.
9340 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9341 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9342 right thing on architectures with different endianness and/or
9348 * configure.in: Change sed expression which comments out
9349 NATDEPFILES to also comment out continuation lines.
9350 * configure: Regenerate.
9354 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9359 * sh-tdep.c: Include correct file.
9363 New support for sh64-elf (sh5) target.
9365 * configure.tgt: For sh64-elf target, default to sh-elf.
9367 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9368 (struct gdbarch_tdep): Add new fields for new registers and ABI
9371 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9372 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9373 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9374 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9375 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9376 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9377 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9378 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9379 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9380 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9381 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9382 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9383 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9384 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9385 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9386 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9387 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9388 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9389 sign_extend, sh64_nofp_frame_init_saved_regs,
9390 sh64_init_extra_frame_info, sh64_get_saved_register,
9391 sh64_extract_struct_value_address, sh64_pop_frame,
9392 sh64_push_arguments, sh64_extract_return_value,
9393 sh64_store_return_value, sh64_show_media_regs,
9394 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9395 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9396 sh_sh64_register_virtual_type,
9397 sh_sh64_register_convert_to_virtual,
9398 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9399 sh64_register_read, sh64_pseudo_register_write,
9400 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9401 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9402 sh64_do_pseudo_register, sh_compact_do_registers_info,
9403 sh64_do_registers_info, sh_gdbarch_init): New functions.
9407 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9411 * linespec.c (decode_line_1): Check for a double quote after
9412 a filename correctly.
9416 Properly track the size of the current objfile's .debug_line section.
9417 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9418 (DWARF_LINE_SIZE): New macro.
9419 (dwarf2_build_psymtabs_hard): Record the line section's size in
9420 the partial symbol table.
9421 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9426 * ia64-tdep.c: Handle breakpoints on L instruction type
9427 in MLX instruction bundle by moving the breakpoint to
9428 the third slot (X instruction type) as L holds only data.
9432 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9433 (process_one_symbol): Complain about discarding local symbols
9434 due to a misplaced N_LBRAC entry.
9439 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9440 decrease the depth we are at, in the case of templates.
9444 * mips-tdep.c (mips_float_register_type): New function.
9445 (mips_double_register_type): New function.
9446 (mips_print_register): Use them.
9447 (do_fp_register_row): Likewise.
9451 * signals/signals.c (signals): Remove conditional compilation around
9452 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9453 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9457 * remote-rdp.c (remote_rdp_can_run): Remove.
9461 * jv-valprint.c (java_val_print): Handle `char' as a special case
9466 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9467 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9468 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9469 str r(0123),[sp,#nn].
9470 (arm_skip_prologue): Ditto. Also make disassembly
9471 order-independent by placing it in a loop.
9475 * stabsread.c (read_type): Add recognition for new attribute:
9476 "@V;" means that an array type is actually a vector.
9477 This is analogous to the vector flag that's been added to dwarf2.
9481 * i386-tdep.h (i386_abi): New enum.
9482 (struct gdbarch_tdep): Replace os_ident member with abi.
9483 (i386_gdbarch_register_os_abi): New prototype.
9484 * i386-tdep.c (i386_abi_names): New array.
9485 (process_note_abi_tag_sections): Removed.
9486 (process_note_sections): New function.
9487 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9488 (struct i386_abi_handler): New struct.
9489 (i386_abi_handler_list): New variable.
9490 (i386_gdbarch_register_os_abi): New function.
9491 (i386_gdbarch_init): Adapt for the changes given above.
9495 * gregset.h: Say "GNU/Linux".
9499 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9500 (build_gdbtypes): Build builtin_type_v2_float.
9501 (_initialize_gdbtypes): Register new builtin type.
9505 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9506 (clear_gdbarch_swap): New function.
9507 (initialize_non_multiarch): Call.
9508 (gdbarch_update_p): Before calling init(), swap out and clear the
9509 existing architecture.
9510 * gdbarch.c: Regenerate.
9514 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9519 * sh-nbsd-nat.c: Rename to...
9520 * shnbsd-nat.c: ...this.
9521 * sh-nbsd-tdep.c: Rename to...
9522 * shnbsd-tdep.c: ...this.
9523 * sh-nbsd-tdep.h: Rename to...
9524 * shnbsd-tdep.h: ...this.
9525 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9526 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9530 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9531 concatenation for command help messages.
9535 * NEWS: Note new sh*-*-netbsdelf* configuration.
9536 * configure.host: Set gdb_host_cpu to sh for all sh*.
9537 (sh*-*-netbsdelf*): New host.
9538 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9539 (sh*-*-netbsdelf*): New target.
9540 * sh-nbsd-nat.c: New file.
9541 * sh-nbsd-tdep.c: New file.
9542 * sh-nbsd-tdep.h: New file.
9543 * config/sh/nbsd.mh: New file.
9544 * config/sh/nbsd.mt: New file.
9545 * config/sh/nm-nbsd.h: New file.
9546 * config/sh/tm-nbsd.h: New file.
9550 * sh-tdep.c (sh_osabi_names): Declare.
9551 (process_note_abi_tag_sections): New function.
9552 (get_elfosabi): Ditto.
9553 (sh_gdbarch_register_os_abi): Ditto.
9554 (sh_dump_tdep): Ditto.
9555 _initialize_sh_tdep): Use gdbarch_register to register
9556 sh_gdbarch_init and sh_dump_tdep.
9557 * config/sh/tm-sh.h (sh_osabi): Declare.
9558 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9562 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9563 (thumb_scan_prologue): Ditto.
9564 (arm_find_callers_reg): Ditto.
9565 (arm_frame_chain): Ditto.
9566 (arm_init_extra_frame_info): Ditto.
9567 (arm_frame_saved_pc): Ditto.
9568 (arm_pop_frame): Ditto.
9569 (arm_push_return_address): New function.
9570 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9571 call_dummy_location, call_dummy_breakpoint_offset_p,
9572 call_dummy_breakpoint_offset, call_dummy_p,
9573 call_dummy_stack_adjust_p, call_dummy_words,
9574 sizeof_call_dummy_words, call_dummy_start_offset,
9575 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9576 call_dummy_address, push_return_address and push_dummy_frame for
9577 generic dummy frames.
9581 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9582 size computation for alloca.
9583 (sh_fp_frame_init_saved_regs): Likewise.
9587 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9588 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9589 * arm-tdep.c (arm_store_return_value): Use them.
9590 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9591 * remote-rdp.c (remote_rdp_fetch_register): Use
9592 ARM_MAX_REGISTER_RAW_SIZE.
9593 (remote_rdp_store_register): Likewise.
9597 * dwarf2cfi.c: Code cleanup, removed unused variables,
9598 added default labels to switch {} statements.
9599 * x86-64-tdep.c: Ditto.
9600 * x86-64-linux-nat.c: Ditto.
9604 * solib.h: Protect against multiple inclusion.
9608 Add first preprocessor macro-expansion files.
9609 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9610 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9611 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9612 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9613 (COMMON_OBS): Add macrotab.o, macroexp.o.
9614 (macroexp.o, macrotab.o): New rules.
9616 Separate the job of reading the line number info statement program
9617 header (...expialidocious) out into its own function.
9618 * dwarf2read.c (struct line_head, struct filenames, struct
9619 directories): Replace with...
9620 (struct line_header): New structure, containing the full
9621 contents of the statement program header, including the
9622 include directory and file name tables.
9623 (read_file_scope): If we have line number info, instead of just
9624 calling dwarf_decode_lines to do all the work, call
9625 dwarf_decode_line_header first to get a `struct line_header'
9626 containing the data in the statement program header, and then
9627 pass that to dwarf_decode_lines, which will pick up where that
9628 left off. Be sure to clean up the `struct line_header' object.
9629 (dwarf_decode_line_header, free_line_header, add_include_dir,
9630 add_file_name): New functions.
9631 (dwarf_decode_lines): Move all the code to read the statement
9632 program header into dwarf_decode_line_header. Take the line
9633 header it built as the first argument, instead of the offset to
9634 the compilation unit's line number info. Use the new `struct
9635 line_header' type instead of the old structures. No need to do
9636 cleanups here now, since we don't allocate anything.
9637 (dwarf2_statement_list_fits_in_line_number_section,
9638 dwarf2_line_header_too_long): New complaints.
9642 * gdbtypes.c (init_vector_type): New function.
9643 (build_builtin_type_vec128): Simplify the representation of SIMD
9645 (build_gdbtypes): Initialize new builtin vector types.
9646 (_initialize_gdbtypes): Register new vector types with gdbarch.
9647 (builtin_type_v4_float, builtin_type_v4_int32,
9648 builtin_type_v8_int16, builtin_type_v16_int8,
9649 builtin_type_v2_int32, builtin_type_v4_int16,
9650 builtin_type_v8_int8): New (renamed) SIMD types.
9654 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9655 (i387_fill_fxsave): Likewise.
9659 * alpha-tdep.c (alpha_extract_return_value): Don't use
9660 non-constant array size in prototype.
9664 From Brian Taylor <briant at model dot com>:
9665 * ui-out.c (ui_out_field_core_addr): Use the function
9666 longest_local_hex_string_custom'to format addresses > 32 bits
9669 * ui-out.c (ui_out_field_core_addr): Update comment.
9673 * stack.c (select_and_print_frame): Make static. Delete the
9675 (func_command): Update call.
9676 (select_frame_command): Delete code computing the frame level.
9677 * frame.h (select_and_print_frame): Delete declaration.
9681 * sparc-tdep.c (sparc_get_saved_register): Comment why
9682 get_prev_frame call is safe.
9686 * frame.h (select_frame): Delete level parameter.
9687 * stack.c (select_frame): Update. Use frame_relative_level to
9688 obtain the frame's level.
9689 (select_and_print_frame): Update call.
9690 (select_frame_command): Ditto.
9691 (up_silently_base): Ditto.
9692 (down_silently_base): Ditto.
9693 * ocd.c (ocd_start_remote): Ditto.
9694 * remote-rdp.c (remote_rdp_open): Ditto.
9695 * remote-mips.c (mips_initialize): Ditto.
9696 (common_open): Ditto.
9697 * remote-e7000.c (e7000_start_remote): Ditto.
9698 * m3-nat.c (select_thread): Ditto.
9699 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9700 (child_get_current_exception_event): Ditto.
9701 * varobj.c (varobj_create): Ditto.
9702 (varobj_update): Ditto.
9703 (c_value_of_root): Ditto.
9704 * tracepoint.c (finish_tfind_command): Ditto.
9705 * corelow.c (core_open): Ditto.
9706 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9707 * thread.c (info_threads_command): Ditto.
9708 (switch_to_thread): Ditto.
9709 * infrun.c (normal_stop): Ditto.
9710 (restore_selected_frame): Ditto.
9711 (restore_inferior_status): Ditto.
9712 * breakpoint.c (insert_breakpoints): Ditto.
9713 (watchpoint_check): Ditto.
9714 (bpstat_stop_status): Ditto.
9715 (do_enable_breakpoint): Ditto.
9716 * blockframe.c (flush_cached_frames): Ditto.
9717 (reinit_frame_cache): Ditto.
9721 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9726 * gdbtypes.c (replace_type): Doc fix.
9730 * valprint.c (strcat_longest): Delete commented out function.
9735 * MAINTAINERS: Mark a29k as deleted.
9736 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9737 Move new configurations to the top.
9738 * configure.tgt: Remove a29k.
9739 * config/a29k/tm-vx29k.h: Delete.
9740 * config/a29k/vx29k.mt: Delete.
9741 * config/a29k/tm-a29k.h: Delete.
9742 * config/a29k/a29k-udi.mt: Delete.
9743 * config/a29k/a29k.mt: Delete.
9744 * a29k-tdep.c: Delete.
9745 * remote-udi.c: Delete.
9746 * remote-mm.c: Delete.
9747 * remote-eb.c: Delete.
9748 * remote-adapt.c: Delete.
9749 * Makefile.in: Remove obsolete code.
9750 * config/s390/s390x.mt: Ditto.
9751 * config/s390/s390.mt: Ditto.
9752 * config/sparc/sparclynx.mh: Ditto.
9753 * config/sparc/linux.mh: Ditto.
9754 * config/pa/hppaosf.mh: Ditto.
9755 * config/pa/hppabsd.mh: Ditto.
9756 * config/ns32k/nbsd.mt: Ditto.
9757 * config/mips/vr5000.mt: Ditto.
9758 * config/m68k/sun3os4.mh: Ditto.
9759 * config/m68k/nbsd.mt: Ditto.
9760 * config/m68k/m68klynx.mh: Ditto.
9761 * config/m32r/m32r.mt: Ditto.
9762 * config/i386/x86-64linux.mt: Ditto.
9763 * config/i386/nbsdelf.mt: Ditto.
9764 * config/i386/nbsd.mt: Ditto.
9765 * config/i386/i386lynx.mh: Ditto.
9769 * target.c (debug_print_register): New function. Handle oversize
9771 (debug_to_fetch_registers): Call.
9772 (debug_to_store_registers): Call.
9776 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9777 (read_type): Doc fix.
9778 * gdbtypes.c (replace_type): Doc fix.
9780 * stabsread.c (multiply_defined_struct): New complaint.
9781 (read_struct_type): If the type we were passed isn't empty, or
9782 incomplete, don't read the new struct type into it; complain,
9783 and return the original type unchanged. Take a new `type_code'
9784 argument, which is the type code for the new type.
9785 (read_type): Rather than storing the type's type code here, pass
9786 it as an argument to read_struct_type, and let that take care of
9787 storing it. That way, we don't overwrite the original type code,
9788 so read_struct_type can use it to decide whether we're overwriting
9789 something we shouldn't.
9790 (complain_about_struct_wipeout): New function.
9794 * gdbarch.sh: Assert that gdbarch is non-NULL.
9795 * gdbarch.c: Regenerate.
9799 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9804 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9805 (x86_64_dwarf2gdb_regno_map_length),
9806 (x86_64_dwarf2_reg_to_regnum): Added.
9807 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9808 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9809 (_initialize_x86_64_tdep): Synced with the change above.
9810 (x86_64_skip_prologue): Reformulated message.
9814 * f-exp.y: Also use new prev_lexptr variable
9815 to improve error reporting. Based on Michael Snyder
9816 2002-04-24 dated patch to c-exp.y.
9817 * jv-exp.y: Likewise.
9818 * m2-exp.y: Likewise.
9822 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9823 we are dealing with vectors.
9827 * config/m68k/tm-nbsd.h: Obvious fix,
9828 correct machine name.
9832 * p-typeprint.c (pascal_type_print_base): Add support
9833 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9837 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9838 for fondamental pascal 'char' type.
9842 * p-lang.h (is_pascal_string_type): Declaration changed,
9843 new sixth argument of type char ** added.
9844 * p-lang.c (is_pascal_string_type): Implementation
9845 changed. Args length_pos, length_size, string_pos, char_size
9846 can now be NULL. New argument arrayname set to the field
9847 name of the char array. Return value set to char array
9848 field index plus one.
9849 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9850 is_pascal_string_type function.
9854 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9856 * gdbarch.c: Regenerate.
9860 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9861 before probing for a new one. Detect errorenous gdbarch_init
9863 * gdbarch.c: Regenerate.
9867 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9868 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9869 * config/v850/tm-v850.h: Ditto. Update copyright.
9873 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9878 * arm-tdep.c: Whitespace clean-ups.
9879 (arm_skip_prologue): Fix thinko; two lines
9880 should have been removed as part of 4/24 change.
9884 * rs6000-tdep.c: Added comment describing how fpscr register
9885 numbers were chosen.
9889 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9893 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9894 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9895 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9900 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9901 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9902 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9903 not bfd-private xcoff data, to determine wordsize.
9904 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9908 GDB 5.2 released from 5.2 branch.
9912 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9913 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9914 (x86_64_register_info_table): Added comments with register numbers.
9918 * rs6000-tdep.c (rs6000_extract_return_value,
9919 rs6000_store_return_value): Handle returning vectors.
9920 (rs6000_gdbarch_init): Use
9921 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9922 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9924 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9926 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9927 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9929 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9931 * hpread.c (hpread_psymtab_to_symtab_1,
9932 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9933 with fprintf_unfiltered (gdb_stderr,...).
9935 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9937 * remote-array.c (printf_monitor, write_monitor,
9938 array_insert_breakpoint, array_remove_breakpoint ):
9939 Replace fprintf (stderr,...
9940 with fprintf_unfiltered (gdb_stderr,....
9941 * remote-es.c: Likewise.
9942 * remote-os9k.c: Likewise.
9943 * remote-st.c: Likewise.
9947 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9948 linux-proc.o and gcore.o.
9952 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9953 code without frame pointers.
9957 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9962 * target.c (do_xfer_memory): Correct reference to the new option
9963 "trust-readonly-sections".
9967 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9968 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9969 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9971 (read_array_type): Record the fact that this array type is really a
9972 vector (i.e. are passed in by value).
9976 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9977 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9978 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9979 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9980 * alpha-linux-tdep.c: Include frame.h.
9981 (alpha_linux_sigcontext_addr): New function.
9982 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9983 alpha_linux_sigcontext_addr.
9984 * alpha-osf1-tdep.c: Include gdbcore.h.
9985 (alpha_osf1_sigcontext_addr): New function.
9986 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9987 alpha_osf1_sigcontext_addr.
9988 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9989 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9993 * stack.c (selected_frame_level):
9994 (select_frame): Do not set selected_frame_level.
9995 * frame.h (selected_frame_level): Delete declaration.
9999 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10000 convert_from_func_ptr-addr when AIX / PowerOpen.
10004 * valops.c (hand_function_call): Call
10005 generic_save_call_dummy_addr.
10006 * frame.h (generic_save_call_dummy_addr): Declare.
10007 * blockframe.c (struct dummy_frame): Add fields call_lo and
10009 (generic_find_dummy_frame): Check for PC in range call_lo to
10010 call_hi instead of entry_point_address.
10011 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10012 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10013 (generic_save_call_dummy_addr): New function.
10017 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10018 sparc_skip_prologue.
10019 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10020 information to find prologue when possible.
10021 (sparc_prologue_frameless_p): Call examine_prologue directly.
10022 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10023 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10025 (SKIP_PROLOGUE): Likewise.
10029 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10030 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10031 indicate that the condition it was testing is always true.
10032 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10033 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10034 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10038 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10039 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10040 tdep->jb_pc and tdep->jb_elt_size.
10041 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10042 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10043 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10044 * alpha-nat.c (get_longjmp_target): Remove.
10045 (JB_ELEMENT_SIZE): Ditto.
10047 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10048 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10049 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10050 to alpha_get_longjmp_target.
10051 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10052 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10053 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10057 * README: Update to GDB 5.2.
10061 * gdbarch.sh (LC_ALL): Set to `c'.
10065 * avr-tdep.c: Ran through gdb_indent.sh.
10069 * MAINTAINERS: Add myself as AVR maintainer.
10070 * NEWS: Note new target avr.
10074 * Makefile.in: Add support for AVR target.
10075 * configure.tgt: Add support for AVR target.
10076 * avr-tdep.c: New file
10077 * config/avr/avr.mt: New file.
10081 * MAINTAINERS: Add myself to write-after-approval.
10083 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10085 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10086 with fprintf_unfiltered (gdb_stderr,....
10091 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10095 * p-exp.y: Also use new prev_lexptr variable
10096 to improve error reporting. Based on Michael Snyder
10097 2002-04-24 dated patch to c-exp.y.
10101 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10102 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10103 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10105 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10107 (FUNCTION_START_OFFSET): Remove.
10108 (BREAKPOINT): Ditto.
10112 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10117 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10118 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10119 alpha_linux_pc_in_sigtramp.
10120 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10121 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10122 alpha_osf1_pc_in_sigtramp.
10123 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10124 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10125 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10126 alphafbsd_pc_in_sigtramp.
10127 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10128 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10129 alphanbsd_pc_in_sigtramp.
10130 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10131 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10135 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10139 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10141 (alphanbsd-nat.o): New dependency list.
10142 (alphanbsd-tdep.o): Ditto.
10143 * NEWS: Note new native NetBSD/alpha configuration.
10144 * alphanbsd-nat.c: New file.
10145 * alphanbsd-tdep.c: Ditto.
10146 * configure.host (alpha*-*-netbsd*): New host.
10147 * configure.tgt (alpha*-*-netbsd*): New target.
10148 * config/alpha/nbsd.mh: New file.
10149 * config/alpha/nbsd.mt: Ditto.
10150 * config/alpha/nm-nbsd.h: Ditto.
10151 * config/alpha/tm-nbsd.h: Ditto.
10155 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10156 (alpha-osf1-tdep.o): New dependency list.
10157 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10158 and skip_sigtramp_frame members.
10159 * alpha-linux-tdep.c: Include gdbcore.h.
10160 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10161 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10162 * alpha-osf1-tdep.c: New file.
10163 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10165 (alpha_frame_past_sigtramp_frame): New function.
10166 (alpha_dynamic_sigtramp_offset): Ditto.
10167 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10168 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10169 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10170 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10171 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10172 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10173 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10174 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10175 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10176 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10177 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10178 to find_solib_trampoline_target.
10179 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10180 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10181 (SKIP_TRAMPOLINE_CODE): Remove.
10182 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10183 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10184 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10185 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10186 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10187 (PROC_SIGTRAMP_MAGIC): Ditto.
10188 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10189 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10190 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10191 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10192 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10196 * NEWS: Note that Alpha targets are now multi-arch.
10200 * parser-defs.h (prev_lexptr): New external variable.
10201 * parse.c (parse_exp_1): Set prev_lexptr to null before
10202 calling the language-specific parser.
10203 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10204 (yyerror): Use prev_lexptr in error reporting.
10208 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10209 * gregset.h: If FILL_FPXREGSET is defined, provide
10210 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10211 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10212 is defined, call fill_fpxregset.
10216 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10217 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10218 (supply_gregset, supply_fpregset): New functions.
10220 * gnu-nat.c (gnu_find_memory_regions): New function.
10221 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10222 (gnu_xfer_memory): Add a cast.
10226 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10227 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10228 of argument regs ("str r(0123), [r11, #-nn"]).
10229 (arm_skip_prologue): Better handling for frameless functions.
10230 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10231 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10235 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10236 NUM_PSEUDO_REGS can be used.
10240 * arch-utils.h: Update copyright.
10242 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10243 * gdbarch.h, gdbarch.c: Re-generate.
10245 * inferior.h (IN_SIGTRAMP): Delete definition.
10246 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10247 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10249 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10250 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10251 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10252 (find_proc_framesize): Ditto.
10253 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10254 (alpha_init_extra_frame_info): Ditto.
10255 * infrun.c (handle_inferior_event): Ditto.
10256 (handle_inferior_event): Ditto.
10257 (check_sigtramp2): Ditto.
10258 * blockframe.c (create_new_frame): Ditto.
10259 (get_prev_frame): Ditto.
10260 * ppc-linux-tdep.c: Update comments.
10261 * i386-linux-tdep.c: Update comments.
10262 * breakpoint.c (bpstat_what): Update comment.
10266 * i960-tdep.c (register_in_window_p): New function.
10267 (i960_find_saved_register): Use it instead of
10268 REGISTER_IN_WINDOW_P.
10269 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10271 * symtab.h (find_stab_function_addr): Kill extern.
10272 * minsyms.c (find_stab_function_addr): Remove from here...
10273 * dbxread.c: ... to here, and mark it static.
10277 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10278 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10282 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10283 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10284 (vx_write_register): Likewise.
10288 * source.c (is_regular_file): New function.
10289 (openp): Check wether file to open is a regular file
10290 to avoid opening directories.
10294 * findvar.c (extract_signed_integer): Cast printf argument
10295 to suppress format warning.
10296 (extract_unsigned_integer): Likewise.
10297 * infcmd.c (registers_info): Likewise.
10298 * top.c (get_prompt_1): Likewise.
10299 * valops.c (value_assign): Likewise.
10300 * valprint.c (print_decimal): Likewise.
10304 * c-exp.y (typebase): Support
10306 [long|long long|short] [signed|unsigned] [int|]
10310 signed [long|long long|short] int
10314 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10316 * vax-tdep.h: New file.
10317 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10318 Make several routines static.
10319 (vax_get_saved_register): New function.
10320 (vax_gdbarch_init): New function.
10321 (_initialize_vax_tdep): Register vax_gdbarch_init.
10322 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10323 Remove macros now under the control of gdbarch.
10327 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10328 Some whitespace and coding standards tweaks.
10332 * vax-tdep.c: Include regcache.h.
10333 (vax_call_dummy_words): New.
10334 (sizeof_vax_call_dummy_words): New.
10335 (vax_fix_call_dummy): New function.
10336 (vax_saved_pc_after_call): Ditto.
10337 * config/vax/tm-vax.h: Don't include regcache.h.
10338 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10339 (CALL_DUMMY): Remove.
10340 (CALL_DUMMY_WORDS): Define.
10341 (SIZEOF_CALL_DUMMY_WORDS): Define.
10342 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10346 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10350 * vax-tdep.c (vax_frame_chain): New function.
10351 (vax_push_dummy_frame): Ditto.
10352 (vax_pop_frame): Ditto.
10353 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10354 (FRAMELESS_FUNCTION_INVOCATION): Use
10355 generic_frameless_function_invocation_not.
10356 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10357 (POP_FRAME): Use vax_pop_frame.
10361 * vax-tdep.c (vax_store_struct_return): New function.
10362 (vax_extract_return_value): Ditto.
10363 (vax_store_return_value): Ditto.
10364 (vax_extract_struct_value_address): Ditto.
10365 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10366 vax_store_struct_return.
10367 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10368 (STORE_RETURN_VALUE): Use vax_store_return_value.
10369 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10373 * vax-tdep.c (vax_frame_saved_pc): New function.
10374 (vax_frame_args_address_correct): Ditto.
10375 (vax_frame_args_address): Ditto.
10376 (vax_frame_locals_address): Ditto.
10377 (vax_frame_num_args): Move code to be in proximity to
10378 other frame-related functions.
10379 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10380 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10381 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10382 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10383 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10387 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10392 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10393 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10394 (FRAME_INIT_SAVED_REGS): New macro.
10398 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10402 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10404 (fetch_osf_core_registers): Likewise.
10405 (supply_gregset): Likewise.
10409 * symfile.h (get_section_index): Define.
10410 * symfile.c (get_section_index): New function.
10411 * mdebugread.c (SC_IS_SBSS): New macro.
10412 (SC_IS_BSS): Return true for the scBss storage class only, as
10413 the scSBss storage class refers to the .sbss section.
10414 (parse_partial_symbols): Discard the symbols which associated
10415 section does not exist.
10416 Make sure to use the .sbss section index for symbols which
10417 storage class is scBss, rather than using the .bss section index.
10421 * vax-tdep.c: Update copyright years.
10422 (vax_register_name): New function.
10423 (vax_register_byte): Ditto.
10424 (vax_register_raw_size): Ditto.
10425 (vax_register_virtual_size): Ditto.
10426 (vax_register_virtual_type): Ditto.
10427 * config/vax/tm-vax.h: Update copyright years.
10428 (REGISTER_NAMES): Remove.
10429 (REGISTER_NAME): Define.
10430 (REGISTER_BYTE): Use vax_register_byte.
10431 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10432 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10433 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10437 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10439 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10443 * arch-utils.c (generic_prologue_frameless_p): Kill
10444 SKIP_PROLOGUE_FRAMELESS_P code.
10445 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10447 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10448 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10449 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10451 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10452 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10453 (sparc_gdbarch_init): Pass it to
10454 set_gdbarch_prologue_frameless_p.
10458 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10459 (alphabsd-nat.o): New dependency list.
10463 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10465 (alpha-linux-tdep.o): New dependency list.
10466 (alphafbsd-tdep.o): Likewise.
10470 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10472 * alpha-tdep.c: ...from here.
10473 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10477 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10478 prototype from here...
10479 * alpha-tdep.h: ...to here.
10483 * frame.h (selected_frame_level): Document as deprecated.
10484 (frame_relative_level): Declare.
10485 * stack.c (frame_relative_level): New function.
10486 (selected_frame_level): Document as deprecated.
10487 (select_frame): Do not set the selected_frame_level.
10489 * stack.c (frame_info, record_selected_frame): Update.
10490 (frame_command, current_frame_command): Update.
10491 (up_silently_base, up_command, down_silently_base): Update.
10492 (down_command): Update.
10493 * inflow.c (kill_command): Update.
10494 * tracepoint.c (finish_tfind_command): Update.
10495 * corelow.c (core_open): Update.
10496 * thread.c (info_threads_command): Update.
10497 (do_captured_thread_select): Update.
10498 * infcmd.c (finish_command): Update.
10499 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10503 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10507 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10512 * alphafbsd-tdep.c: Update copyright years. Include
10514 (alphafbsd_use_struct_convention): Make static.
10515 (alphafbsd_init_abi): New function.
10516 (_initialize_alphafbsd_tdep): New function.
10517 * config/alpha/tm-fbsd.h: Update copyright years.
10518 (USE_STRUCT_CONVENTION): Remove.
10522 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10523 an Alpha ABI variant.
10524 (alpha_abi_handler_list): Declare.
10525 (alpha_gdbarch_register_os_abi): New function.
10526 (alpha_gdbarch_init): Give registered ABI variant handlers a
10527 chance to tweak the gdbarch once we have set up defaults.
10528 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10532 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10533 to standard_coerce_float_to_double.
10534 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10538 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10539 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10540 from gdbarch_tdep rather than a constant.
10541 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10542 the default text address for all Alpha Unix ABIs.
10543 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10544 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10548 * alpha-tdep.h: New file. Includes several Alpha target constants
10550 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10551 let gdbarch deal with.
10552 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10553 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10554 to dependency list.
10555 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10556 Alpha target register names.
10557 * alphabsd-nat.c: Likewise.
10558 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10559 Alpha target register names. Make serveral routines static.
10560 (alpha_get_saved_register): New function.
10561 (alpha_abi_names): New.
10562 (process_note_abi_tag_sections): New function.
10563 (get_elfosabi): New function.
10564 (alpha_gdbarch_init): New function.
10565 (alpha_dump_tdep): New function.
10566 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10570 * frame.c (find_saved_register): Delete #ifdef
10571 HAVE_REGISTER_WINDOWS code.
10572 * config/sparc/tm-sparc.h: Update comments.
10573 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10577 * i960-tdep.c (i960_find_saved_register): New function.
10578 (i960_get_saved_register): New function.
10579 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10580 (i960_get_saved_register): Declare.
10581 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10585 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10589 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10590 instead of NUM_PSEUDO_REGS.
10594 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10595 GDB_MULTI_ARCH_PARTIAL
10596 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10597 define, let tm-sp64.h do it.
10601 * frame.c (find_saved_register): Avoid a NULL pointer
10602 dereference and actually walk the frame list.
10606 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10607 sorted in most most-recent-used order. Document.
10608 * gdbarch.h, gdbarch.c: Regenerate.
10612 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10614 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10615 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10616 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10622 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10623 (build_builtin_type_vec128): Ditto.
10624 (append_composite_type_field): Fix calculation of type length in
10629 * config/djgpp/README: Update.
10631 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10636 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10637 (alpha_setup_arbitrary_frame): ...to this.
10638 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10639 for alpha_setup_arbitrary_frame.
10643 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10644 * gdbarch.h, gdbarch.c: Regenerate.
10646 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10647 * target.h (memory_breakpoint_from_pc): Update declaration.
10648 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10650 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10651 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10652 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10653 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10654 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10655 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10656 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10657 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10658 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10659 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10660 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10661 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10663 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10665 * monitor.c (monitor_insert_breakpoint): Ditto.
10666 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10668 * config/mcore/tm-mcore.h: Update copyright.
10669 * mem-break.c: Ditto.
10670 * xstormy16-tdep.c: Ditto.
10674 * p-exp.y: Add precedence rule for '^' token.
10675 This removes the shift/reduce conflicts.
10676 Remove the comment concerning these shift/reduce conflicts.
10680 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10681 (registers_powerpc_nofp): New register set for processors
10682 without floating point unit.
10686 * MAINTAINERS: Add myself to write-after-approval.
10690 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10694 * rs6000-tdep.c (frame_initial_stack_address): Use
10695 frame_register_read to read the alloca_reg.
10699 * frame.c (find_saved_register): Find saved registers in the next
10705 * gdbarch.sh (LANG): Set to ``c''.
10709 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10713 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10716 * hpread.c (hpread_get_lntt): Add declaration.
10717 Also fix PR gdb/391.
10721 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10722 * aclocal.m4, configure: Re-generate.
10727 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10728 instead of tm_print_insn.
10732 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10736 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10737 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10738 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10742 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10743 max_user_call_depth.
10744 (init_cmd_lists): Initialize the new value;
10745 * cli/cli-script.c (execute_user_command): Limit the call depth of
10746 user defined commands. This avoids a core-dump when user commands
10747 are infinitly recursive.
10751 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10752 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10753 from tdep struct instead of DEFAULT_LR_SAVE.
10754 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10755 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10756 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10760 * Remote.c: Spelling fix.
10761 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10762 If no symbol found for "sbrk", try "_sbrk".
10763 (make_output_phdrs): Use bfd_section_name.
10764 (gcore_copy_callback): Use bfd_section_name.
10765 * eval.c: Indentation fix-ups.
10766 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10767 in case it gets applied to an address that is already
10768 in the instruction space.
10769 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10770 * symfile.c: Fix indentation, long lines.
10771 * source.c: White space fix-up.
10775 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10776 * frame.c (frame_register_read): New function. Return non-zero on
10778 (read_relative_register_raw_bytes_for_frame): Delete.
10779 (read_relative_register_raw_bytes): Delete.
10780 * frame.h (frame_register_read): Declare.
10781 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10782 * sh-tdep.c: Ditto.
10783 * infcmd.c (do_registers_info): Ditto.
10784 * hppa-tdep.c: Ditto.
10785 * rs6000-tdep.c: Ditto.
10786 * h8500-tdep.c: Ditto.
10787 * mips-tdep.c: Ditto.
10788 * h8300-tdep.c: Ditto.
10789 * z8k-tdep.c: Ditto.
10794 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10800 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10806 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10807 register sets for these processor variants.
10811 * regformats/reg-ppc.dat: Support FPSCR.
10815 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10816 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10817 Add fpscr as an invalid/unfetchable register.
10818 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10819 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10820 (fill_fpregset): Add support for register fpscr.
10821 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10822 (fill_gregset): Account for the fact that register ``mq'' might
10824 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10825 (registers_power): Add fpscr to register set at slot 71.
10826 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10827 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10831 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10832 * configure: Regenerate.
10833 * config.in: Regenerate.
10834 * acconfig.h: Add define for _SYSCALL32.
10835 * core-sol2.c: Remove #define _SYSCALL32.
10836 * solib-legacy.c: Remove #define _SYSCALL32.
10840 * stack.c (select_frame): Cleanup internal error message, do not
10845 * stack.c (select_frame): Check that selected_frame and the
10846 specified level are as expected.
10847 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10849 * frame.h (struct frame_info): Add field `level'. Update
10851 Work-in-progress PR gdb/464.
10855 * maint.c (maint_print_section_info): Rename print_section_info.
10856 (print_bfd_section_info, print_objfile_section_info): Update.
10857 * inferior.h (struct gdbarch): Add opaque declaration.
10858 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10859 * gdbarch.h: Regenerate.
10863 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10864 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10865 (kernel_u_size): Added.
10866 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10867 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10871 * valarith.c (find_size_for_pointer_math): New function, either returns
10872 the size for a pointer's target, returns 1 for void *, or errors for
10874 (value_add, value_sub): use find_size_for_pointer_math.
10878 * linux-low.c (linux_look_up_symbols): New hook.
10879 (linux_target_ops): Add linux_look_up_symbols.
10880 * remote-utils.c (decode_address): New function.
10881 (look_up_one_symbol): New function.
10882 * server.c (handle_query): Call target look_up_symbols hook.
10883 * server.h (look_up_one_symbol): Add prototype.
10884 * target.h (struct target_ops): Add look_up_symbols hook.
10888 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10889 override FP_REGNUM with frame->fp. Update copyright.
10890 * parse.c (num_std_regs, std_regs): Delete.
10891 (target_map_name_to_register): Do not search std_regs. Update
10892 function description.
10893 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10894 declarations. Update copyright.
10899 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10900 after the last symbol in a block.
10904 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10905 is non zero as a found symbol.
10909 * findvar.c: Include "builtin-regs.h".
10910 (value_of_register): Call value_of_builtin_reg when applicable.
10911 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10912 (target_map_name_to_register): Call
10913 builtin_reg_map_name_to_regnum.
10914 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10915 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10916 (builtin_regs_h): Define.
10917 (builtin-regs.o): New target.
10918 (findvar.o): Add $(builtin_regs_h).
10919 * builtin-regs.c, builtin-regs.h: New files.
10920 * std-regs.c: New file.
10921 Partial fix for PR gdb/251.
10925 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10926 it's no longer required.
10930 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10935 * rs6000-tdep.c (rs6000_software_single_step): Use
10936 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10937 and size. Use target_insert_breakpoint() and
10938 target_remove_breakpoint() to insert and remove breakpoints
10939 instead of explicit memory reads and writes.
10943 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10944 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10945 ELF_OBJECT_FORMAT ifdef.
10950 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10955 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10956 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10960 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10961 s/asprintf/xasprintf/.
10962 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10966 I believe Jeff Law denies responsability for this one:
10967 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10968 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10969 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10970 Work-around for PR gdb/366.
10974 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10975 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10976 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10980 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10981 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10986 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10991 * README (Reporting Bugs in GDB): Document the bug web page as the
10992 prefered way of submitting bugs.
10997 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10998 -1. Update comment.
10999 * gdbarch.h, gdbarch.c: Re-generate.
11003 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11004 buffer to regcache_collect.
11008 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11009 * gdbarch.c, gdbarch.h: Re-generate.
11013 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11014 declaration. Fix -Werror.
11018 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11019 * gdbarch.c: Regenerate.
11023 * breakpoint.c (clear_command): Rewrite middle section to
11024 combine two loops with identical control conditions.
11025 Add a cleanup to eliminate a memory leak.
11026 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11030 * solib-svr4.c (bkpt_names): Add "__start".
11034 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11035 as test for 64 bit target.
11039 * h8500-tdep.c (h8500_write_fp): Delete function.
11040 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11041 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11042 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11044 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11045 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11047 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11048 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11049 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11050 (d10v_write_fp): Delete function.
11051 * inferior.h (write_fp, generic_target_write_fp): Delete
11053 * regcache.c (generic_target_write_fp): Delete function.
11054 (write_fp): Delete function.
11055 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11056 * gdbarch.h, gdbarch.c: Regenerate.
11057 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11058 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11059 (sparc64_write_fp): Delete declaration.
11060 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11061 (h8500_write_fp): Delete declaration.
11065 * sparc-tdep.c (sparc64_write_fp): Delete.
11066 (sparc_push_dummy_frame): Replace write_fp call with code to store
11068 (sparc_gdbarch_init): Do not initialize write_fp.
11072 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11077 * stack.c (get_selected_block): Add new argument `addr_in_block',
11078 used to return the exact code address we used to select the block,
11079 not just the block.
11080 * blockframe.c (get_frame_block, get_current_block): Same.
11081 * frame.h (get_frame_block, get_current_block,
11082 get_selected_block): Update declarations.
11083 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11084 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11088 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11093 * utils.c (xfullpath): New function.
11094 * defs.h (xfullpath): Add declaration.
11095 * source.c (openp): Use xfullpath in place of gdb_realpath to
11096 avoid resolving the basename part of filenames when the
11097 associated file is a symbolic link. This fixes a potential
11098 inconsistency between the filenames known to GDB and the
11099 filenames it prints in the annotations.
11100 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11101 to be able to match a filename with either the real filename, or
11102 the name of any symbolic link to this file.
11103 (lookup_partial_symtab): Ditto.
11107 * breakpoint.c: Add support for hardware breakpoints in overlays.
11108 (overlay_events_enabled): New state variable.
11109 (insert_breakpoints): Use overlay_events_enabled to decide
11110 whether to attempt to set a breakpoint at the overlay load addr.
11111 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11112 (remove_breakpoint): Use overlay_events_enabled to decide
11113 whether breakpoints need to be removed from overlay load addr.
11114 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11115 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11116 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11117 disable_overlay_breakpoints): Update overlay_events_enabled.
11121 * dwarf2read.c (struct function_range): New.
11122 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11123 (check_cu_functions): New.
11124 (read_file_scope): Initialize global function lists.
11125 Call dwarf_decode_line after processing children.
11126 (read_func_scope): Add to global function list.
11127 (dwarf_decode_lines): Call check_cu_functions everywhere
11128 record_line is called. Call record_line with a linenumber
11129 of 0 to mark sequence ends.
11133 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11134 change sync with glibc.
11138 * configure.in: Call AC_C_INLINE.
11139 * configure: Regenerated.
11143 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11144 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11148 * NEWS: Mention gcore support on FreeBSD/i386.
11150 * fbsd-proc.c: New file.
11151 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11152 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11154 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11159 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11160 unescaped newlines in string literals, but newer ones don't. So
11166 * cli/cli-dump.c: New file. Dump memory to file,
11167 restore file to memory.
11168 * cli/cli-dump.h: New file.
11169 * Makefile.in: Add rules, dependencies for cli-dump.o.
11170 * NEWS: Mention new commands.
11174 * symfile.c (symbol_file_add): Move test for null symbols to later.
11178 From veksler at il.ibm.com:
11179 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11180 the xstrduped original path.
11185 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11186 * infcmd.c (_initialize_infcmd): Ditto.
11187 * language.c (_initialize_language): Ditto.
11188 * symfile.c (_initialize_symfile): Ditto.
11189 * top.c (_init_main): Ditto.
11190 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11194 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11195 vector registers handling.
11196 (skip_prologue): Handle new AltiVec instructions. Fill in new
11197 fields of frame data.
11198 (frame_get_saved_regs): Fill in information for AltiVec registers.
11202 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11203 a function; leave this macro here to invoke that function.
11204 (symbol_init_mangled_name): Declaration for that function.
11205 * symtab.c (symbol_init_mangled_name): New function.
11209 * valarith.c: Replace strerror with safe_strerror.
11210 * tracepoint.c: Ditto.
11211 * lin-lwp.c: Ditto.
11212 * go32-nat.c: Ditto.
11214 * gnu-nat.c: Ditto.
11218 * event-top.c (command_line_handler): Remove useless if.
11222 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11227 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11228 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11229 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11230 (x86_64_linux_dr_get_status, supply_gregset),
11231 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11232 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11233 (x86_64_register_info_table): Add.
11234 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11235 (x86_64_register_raw_size, x86_64_register_virtual_type),
11236 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11237 general x86_64_register_info_table.
11238 (i386_gdbarch_init): gdbarch_register_bytes is now set
11239 dynamicaly during initialization.
11240 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11241 * gdbserver/linux-x86-64-low.c: Ditto.
11245 * gdbserver/server.c (main): Call target_signal_to_host_p
11246 and target_signal_to_host on signals received from the remote.
11247 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11248 target_signal_from_host on signals sent to the remote.
11249 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11250 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11254 * signals/signals.c: Include "server.h" in gdbserver build.
11255 (target_signal_from_name): Don't use STREQ.
11256 (_initialize_signals): Likewise. Don't include function in
11261 * signals.c: Moved to...
11262 * signals/signals.c: Here.
11263 * Makefile (signals.o): Update.
11267 * somread.c (som_symtab_read): Remove some commented out code and
11268 updated related comments. Do not set the minimal symbol table to
11269 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11270 in a dynamic executable.
11271 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11272 where we are unable to find the minimal symbol for the given
11277 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11281 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11285 * command.h: Update copyright.
11286 (struct cmd_list_element): Replace definition with opaque
11288 (enum cmd_types): Document that it will eventually be moved to
11290 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11291 (MALLOCED_REPLACEMENT): Delete macro.
11292 * Makefile.in (cli_decode_h): Add $(command_h).
11293 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11294 * top.c: Include "cli/cli-decode.h".
11295 * completer.c: Include "cli/cli-decode.h".
11296 * maint.c: Include "cli/cli-decode.h".
11297 * cli/cli-decode.h: Include "command.h".
11298 (enum command_class): Delete.
11299 (enum cmd_types): Comment out.
11300 (enum cmd_auto_boolean): Delete.
11301 (enum var_types): Delete.
11305 * cli/cli-decode.c: Include "gdb_assert.h".
11306 (add_set_or_show_cmd): New static function.
11307 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11308 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11309 all fields, such as func, from the set command.
11313 * MAINTAINERS (sh-elf): Change warning flag to -w.
11317 * defs.h (error): Add printf format attribute.
11318 * thread-db.c (thread_from_lwp): Fix error format string.
11319 * stack.c (parse_frame_specification): Ditto.
11320 * cli/cli-decode.c (undef_cmd_error): Ditto.
11321 * scm-lang.c (scm_lookup_name): Ditto.
11322 * tracepoint.c (trace_error): Ditto.
11323 * remote-utils.c (usage): Ditto.
11324 * remote.c (compare_sections_command): Ditto.
11329 * gdbtypes.c (append_composite_type_field): New function.
11330 (init_composite_type): New function.
11331 * gdbtypes.h (append_composite_type_field): Declare.
11332 (init_composite_type): Ditto.
11336 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11338 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11339 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11340 structure returning convention for SYSV ABI case, but not
11341 for GNU/Linux, FreeBSD, or NetBSD.
11345 * symtab.h (lookup_block_symbol): Add mangled_name argument
11348 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11349 with new mangled_name argument.
11350 * linespec.c (decode_line_1): Likewise.
11351 * valops (value_of_this): Likewise.
11352 * symtab.c (lookup_transparent_type): Likewise.
11353 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11354 (lookup_symbol): If we are given a mangled name, pass it down
11355 to lookup_symbol_aux.
11356 (lookup_block_symbol): If we are given a mangled name to check
11357 against, only return symbols which match it.
11361 * win32-nat.c (child_create_inferior): Check for proper shell to use
11362 here, in case the user changes it on the fly.
11363 (_initialize_inftarg): Remove shell path considerations.
11367 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11368 for gdbarch_max_register_raw_size and max_register_virtual_size.
11369 Adjust copyright year.
11373 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11374 in a function to cover the entire beginning of the function
11375 as well if it does not already.
11379 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11380 (rs6000_ptrace64): Renamed from ptrace64.
11384 * gdbserver/remote-utils.c (remote_open): Don't call
11385 getprotobyname, we're all using TCP here so just use
11387 * gdbserver/gdbreplay.c (remote_open): Ditto.
11391 * regcache.c (_initialize_regcache): No need to call
11392 build_regcache() at this time; it gets called whenever
11393 the gdbarch changes.
11397 * sparc-nat.c: Include sys/param.h where possible.
11402 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11403 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11404 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11406 * stabsread.c (rs6000_builtin_type): Likewise.
11407 (read_sun_floating_type): Likewise.
11411 * stabsread.c (read_member_functions): Remove skip code for duplicate
11412 constructor/destructor methods. Use standard parsing for these
11413 methods and just do not chain them to the list of methods after
11418 * coffread.c: Remove redundant static declarations. Replace
11419 occurrences of `PTR' with `void *'.
11420 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11421 * top.h (quit_cover): Likewise.
11422 * defs.h (catch_errors): Likewise.
11426 * defs.h (XMALLOC): Define.
11427 * gdb-events.sh (XMALLOC): Delete macro.
11428 * gdb-events.c, gdb-events.h: Regenerate.
11429 * gdbarch.sh (XMALLOC): Delete macro.
11430 * gdbarch.c: Regenerate.
11431 * serial.c (XMALLOC): Delete macro.
11432 * ui-file.c (XMALLOC): Ditto.
11433 * ser-unix.h (XMALLOC): Ditto.
11434 * sh-tdep.c (XMALLOC): Ditto.
11435 * ui-out.c (XMALLOC): Ditto.
11436 * utils.c (XMALLOC): Ditto.
11437 * i386-tdep.c (XMALLOC): Ditto.
11438 * gdb-events.c (XMALLOC): Ditto.
11439 * d10v-tdep.c (XMALLOC): Ditto.
11440 * cli-out.c (XMALLOC): Ditto.
11442 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11443 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11444 * ui-file.c, ui-out.c: Ditto.
11448 * command.h (struct cmd_list_element): Add field context.
11449 (set_cmd_context, get_cmd_context): Declare.
11450 * cli/cli-decode.h: Ditto.
11451 * cli/cli-decode.c (get_cmd_context): New function.
11452 (set_cmd_context): New function.
11453 (add_cmd): Initialize context.
11454 Part of fixing PR gdb/145 and PR gdb/146.
11458 * cli/cli-decode.c (cmd_type): New function.
11459 * command.h (cmd_type): Declare.
11460 * infrun.c (set_schedlock_func): Call function cmd_type.
11461 * kod.c (kod_set_os): Call cmd_type.
11462 * cris-tdep.c (cris_version_update): Use function cmd_type.
11463 (cris_mode_update, cris_abi_update): Ditto.
11465 * command.h: (execute_cmd_post_hook): Declare.
11466 (execute_cmd_pre_hook): Declare.
11467 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11468 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11469 functions. Execute pre/post hook while ensuring that afterwords
11470 hook_in is cleared.
11471 * top.c (execute_command): Use execute_cmd_post_hook, and
11472 execute_cmd_pre_hook to execute pre/post commands.
11473 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11475 (hook_stop_stub): Call execute_cmd_pre_hook.
11479 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11480 set'' and this leads to a core dump. Move xstrdup of
11481 operating_system to after check that it is not NULL.
11485 * kod.c (kod_set_os): Remove unnecessary check that
11486 ``command->type'' is set_cmd.
11488 * valprint.c (set_input_radix): Use input_radix.
11489 (set_output_radix): Use output_radix.
11490 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11495 * value.h (struct value): Delete field ``substring_addr''. Change
11496 aligner fields to force_doublest_align, force_longest_align,
11497 force_core_addr_align and force_pointer_aligh.
11499 * value.h (struct value): Fix typo in above change.
11503 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11504 to fix internal_error from ``maintenance print architecture''.
11508 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11509 for gcc versions after gcc-2.8.1.
11513 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11514 for method resolution. Restore adjustment of ``this'' pointer after
11515 calling value_struct_elt, which was accidentally removed during the
11520 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11522 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11523 get_saved_register.
11524 * value.h (value_of_register): Update.
11528 * configure.in: Detect declaration for canonicalize_file_name.
11529 * utils.c (canonicalize_file_name): Declare, if needed.
11530 (gdb_realpath): Prefer realpath if available and usable.
11531 * config.in, configure: Rebuild.
11535 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11536 a constant array bound.
11538 * MAINTAINERS: Add myself to write-after-approval.
11542 * symfile.c (syms_from_objfile): Return immediately if no syms.
11543 (symbol_file_add): Return immediately if no syms.
11544 (find_sym_fns): Return immediately if no syms.
11548 * gdbserver/remote-util.c (remote_open): Print remote-side's
11549 IP address when remote debugging over the network.
11553 * config/sparc/fbsd.mh: Fix copyright.
11554 * config/sparc/fbsd.mt: Likewise.
11558 * MAINTAINERS: Fix typo in name of gdb warnings option.
11559 (x86-64): Fix formating so that this can be parsed by awk.
11563 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11564 * defs.h: Include "gdb/signals.h".
11565 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11569 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11570 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11576 * mips-tdep.c (ST0_FR): Define.
11577 (mips2_fp_compat): New function, temporarily disabled.
11578 (mips_read_fp_register_single): New function.
11579 (mips_read_fp_register_double): New function.
11580 (mips_print_register): Use them.
11581 (do_fp_register_row): Likewise.
11585 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11590 * stabsread.c (read_member_functions): Fix is_stub test for
11591 static member functions, improve comment.
11595 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11596 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11597 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11598 commands that set boolean values.
11599 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11600 (arm_rdi_resume): Always initialize PC.
11601 (arm_rdi_open): Don't use rslt as a boolean.
11602 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11603 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11604 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11605 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11609 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11610 * configure: Rebuilt.
11614 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11615 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11619 * cli/cli-decode.c (set_cmd_completer): New function.
11620 * command.h (set_cmd_completer): Declare.
11621 * cli/cli-decode.h (set_cmd_completer): Ditto.
11623 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11624 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11625 * win32-nat.c (_initialize_inftarg): Ditto.
11626 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11627 * proc-api.c (_initialize_proc_api): Ditto.
11628 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11629 * source.c (_initialize_source): Ditto.
11630 * exec.c (_initialize_exec): Ditto.
11631 * solib.c (_initialize_solib): Ditto.
11632 * top.c (init_main): Ditto.
11633 * tracepoint.c (_initialize_tracepoint): Ditto.
11634 * symfile.c (_initialize_symfile): Ditto.
11635 * printcmd.c (_initialize_printcmd): Ditto.
11636 * infcmd.c (_initialize_infcmd): Ditto.
11637 * corefile.c (_initialize_core): Ditto.
11641 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11645 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11649 * NEWS: Update headings, 5.2 has branched.
11653 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11654 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11655 (register_addr, REGISTER_RAW_SIZE): Likewise.
11656 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11657 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11661 * MAINTAINERS (x86-64): Add myself.
11662 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11663 changed value_ptr -> struct value *
11667 * configure.host (sparc64-*-freebsd): Add.
11668 * configure.tgt: Likewise.
11669 * config/sparc/fbsd.mh: New file.
11670 * config/sparc/fbsd.mt: Likewise.
11671 * config/sparc/nm-fbsd.h: Likewise.
11672 * config/sparc/tm-fbsd.h: Likewise.
11676 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11677 regformats/reg-s390x.dat.
11681 * utils.c: Add FIXME explaining true/false problem.
11685 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11689 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11693 * gdbserver/linux-s390-low.c: New file.
11694 * regformats/reg-s390.dat: New file.
11695 * regformats/reg-s390x.dat: New file.
11696 * gdbserver/configure.srv: Add S/390.
11697 * gdbserver/Makefile.in: Add S/390.
11698 * configure.tgt: Enable gdbserver for S/390.
11702 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11703 first line of the doc string for "info dos", except at the end of
11704 the sentence, since the short help stops at the first period.
11708 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11712 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11713 comment (dumy -> dummy).
11717 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11721 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11725 * gdbserver/acconfig.h: New file.
11726 * gdbserver/i387-fp.c: New file.
11727 * gdbserver/i387-fp.h: New file.
11728 * gdbserver/linux-x86-64.c: New file.
11729 * regformats/reg-x86-64.dat: New file.
11730 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11731 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11732 * gdbserver/configure.in: Add support for regsets.
11733 * gdbserver/config.in: Regenerate.
11734 * gdbserver/configure: Regenerate.
11735 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11736 * gdbserver/linux-low.h: New file.
11737 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11739 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11740 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11741 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11742 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11743 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11744 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11745 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11746 "i387-fp.h". Add PTRACE_GETREGS and friends.
11747 * gdbserver/regcache.c (supply_register): New function.
11748 (supply_register_by_name): New function.
11749 (collect_register): New function.
11750 (collect_register_by_name): New function.
11754 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11755 (config.status): Add configure.srv dependency.
11756 (server_h): Add config.h dependency.
11760 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11761 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11762 * gdbserver/configure.srv: Change i386-*-linux* to use
11767 * x86-64-tdep.c: Re-indent. Update copyright date.
11772 * x86-64-tdep.c (value.h): Delete.
11773 (gdb_assert.h): Include.
11774 (x86_64_register_convert_to_virtual,
11775 x86_64_register_convert_to_raw ): Add check which lets only
11776 floating-point values to be converted.
11777 (value_push): Delete.
11778 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11779 (i386_gdbarch_init): Number of register_bytes fixed.
11783 * MAINTAINERS: Add x86-64 target.
11787 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11788 * osfsolib.c (solib_map_sections): Ditto.
11789 * irix5-nat.c (solib_map_sections): Ditto.
11790 * corelow.c (gdb_check_format): Ditto.
11791 * symfile.c (symfile_bfd_open): Ditto.
11792 * solib.c (solib_map_sections): Ditto.
11797 * remote.c (_initialize_remote): By default, disable ``e'' and
11798 ``E'' step out-of-range packets.
11802 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11803 m68k_linux_frame_saved_pc.
11804 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11806 (SIGCONTEXT_PC_OFFSET): Remove.
11807 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11808 m68k_linux_sigtramp_saved_pc): New functions.
11809 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11810 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11811 (UCONTEXT_PC_OFFSET): Define.
11812 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11813 non-RT and RT signal trampolines.
11817 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11818 (TARGET_NBPG, STACK_END_ADDR): Delete
11819 (VARIABLES_INSIDE_BLOCK): Delete.
11823 * utils.c (perror_with_name): Make string parameter constant.
11824 (print_sys_errmsg): Ditto.
11826 * defs.h (perror_with_name): Update.
11827 (print_sys_errmsg): Update.
11833 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11837 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11838 if it already matches the current architecture from the exec file.
11839 Include arch-utils.h for gdbarch_info_init prototype.
11840 * Makefile.in (rs6000-nat.o): Update dependencies.
11844 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11845 list of exported variables.
11849 * gdbserver/configure.srv: New file.
11850 * gdbserver/configure.in: Use configure.srv instead
11851 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11853 * gdbserver/configure: Regenerated.
11854 * gdbserver/terminal.h: New file.
11855 * gdbserver/Makefile.in: Update for configure changes. Remove
11856 more unneeded include paths.
11860 From wiz at danbala:
11861 * config/sparc/tm-sp64.h: Fix grammar and typos.
11866 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11867 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11868 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11869 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11870 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11871 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11872 * s390-tdep.c: Ditto.
11873 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11874 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11875 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11876 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11877 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11878 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11879 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11880 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11881 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11882 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11887 * lin-thread.c: Delete file.
11888 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11889 to gdb_proc_service.h.
11890 * configure: Re-generate.
11892 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11893 * serial.c (serial_open): Delete check for "ocd".
11896 * Makefile.in (linux-thread.o): Delete target.
11897 * linux-thread.c: Delete file.
11899 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11900 renamed SH files to be consistent.
11902 * symtab.c (sort_search_symbols): Use xfree.
11906 * arm-linux-tdep.c (arm_linux_init_abi): Register
11907 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11908 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11909 definition with undef, since we don't want the sysvr4 definition.
11910 (SKIP_TRAMPOLINE_CODE): Likewise.
11916 * configure.in: (AC_CHECK_FUNCS) Added test for
11917 canonicalize_file_name Regenerated.
11918 * config.in, configure: Regenerated.
11919 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11920 defined use canonicalize_file_name.
11924 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11928 * README: Remove references to cygnus.com.
11929 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11930 dot com'' form. Remove references to cygnus.com and sourceware.
11935 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11936 1003.1-2001 no longer allows "head -1".
11937 * gdb/Makefile.in (version.c): Likewise.
11938 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11939 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11940 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11944 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11945 * command.h (cmd_cfunc_eq): Declare.
11946 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11948 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11949 ``struct cmd_list_element *''.
11950 * cli/cli-cmds.c (is_complete_command): Update. Use
11952 * top.c (execute_command): Pass the command to
11953 is_complete_command.
11954 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11959 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11960 architecture defines.
11961 * s390-tdep.c (s390_gdbarch_init): Likewise.
11965 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11966 (arm_linux_push_arguments): Likewise.
11967 (arm_linux_init_abi): Register them. Also register linux-specific
11969 (find_minsym_and_objfile): Use strcmp, not STREQ.
11970 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11971 (arm_linux_call_dummy_words): Delete declaration.
11972 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11973 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11975 (LOWEST_PC): Delete.
11979 * maint.c (print_section_info): Do not prepend `0x' to filepos
11980 output, it will be handled by local_hex_string_custom.
11984 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11985 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11986 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11990 Indicate that the bcache functions don't change the strings
11992 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11993 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11997 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12001 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12002 find the complete path to a loaded DLL.
12006 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12007 that marks the end of the range of a function, enter a line number
12008 entry that has a line number of zero and a PC offset that matches
12009 the end of the function. This starts a range of PC's for which no
12010 line number information is known.
12011 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12012 PC's for which no line number info is found (line number is zero)
12013 then we didn't find any valid line information.
12014 * symtab.h: Document use of zero line number entry.
12018 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12019 (have_ptrace_getvrregs): Define for run time checks.
12020 (gdb_vrregset_t): New type for Altivec register handling.
12021 (fetch_register, store_register): Fetch/store altivec register
12023 (fetch_altivec_register, store_altivec_register): New functions.
12024 (supply_vrregset, fill_vrregset): New functions.
12025 (fetch_altivec_registers, store_altivec_registers): New functions.
12026 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12031 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12035 * Makefile.in (armnbsd-nat.o): Update dependencies.
12036 * armnbsd-nat.c (supply_gregset): New function. Common code to
12037 supply the integer register set.
12038 (supply_fparegset): New function. Similar for FPA registers.
12039 (fetch_regs, fetch_fp_regs): Use them.
12040 (fetch_core_registers): Likewise.
12041 (fetch_elfcore_registers): New function.
12042 (arm_netbsd_elfcore_fns): New core-file type specification.
12043 (_initialize_arm_netbsd_nat): Register it.
12047 * armnbsd-nat.c: Include gdbcore.h.
12048 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12049 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12050 'void' to declaration, to shut up ARI.
12051 (fetch_core_registers): Make static. Rewrite using supply_register.
12052 (arm_netbsd_core_fns): New core-file type specification.
12053 (_initialize_arm_netbsd_nat): New function.
12057 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12062 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12067 * jv-exp.y (parse_number): Change type of implicit longs
12068 to builtin_type_uint64.
12072 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12073 to be an integer instead of a `union wait'.
12077 * mips-linux-nat.c: Call the operating system GNU/Linux.
12078 * mips-linux-tdep.c: Likewise.
12079 * mips-tdep.c: Likewise.
12084 * jv-exp.y (parse_number): Handle 64-bit integers.
12088 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12089 AC_STDC_HEADERS to AC_HEADER_STDC.
12090 * gdbserver/configure: Regenerated.
12094 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12096 * sparc-tdep.c (get_longjmp_target): Likewise.
12100 * News: Add news about ARM and Multi-arch. Mention the new target
12105 * stabsread.c (error_type_complaint): Improve error message.
12109 * gdbserver/README: Update documentation.
12110 * gdbserver/configure.in: Update configury to match documentation.
12111 * gdbserver/Makefile.in: Likewise.
12112 * gdbserver/configure: Regenerated.
12113 * gdbserver/aclocal.m4: New file, generated by aclocal.
12114 * gdbserver/config.in: New file, generated by autoheader.
12118 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12123 * arm-tdep.h (enum arm_float_model): New enum.
12124 (struct gdbarch_tdep): Add fp_model.
12125 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12126 up floating-point conversions until we know the floating-point model
12127 in use by the inferior. Don't complain about being unable to
12128 determine the ABI of the inferior when we don't have one.
12129 (arm_extract_return_value): Support different floating-point models.
12130 (arm_store_return_value): Likewise.
12131 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12133 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12137 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12138 of ``current_gdbarch''.
12142 * armnbsd-nat.c : ANSIfy all function declarations.
12143 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12144 (fetch_inferior_registers): Re-implement in terms of above.
12145 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12146 (store_inferior_registers): Re-implement in terms of above.
12150 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12152 * arm-linux-tdep.c: Likewise.
12153 * config/arm/tm-linux.h: Likewise.
12157 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12158 * config/arm/nbsd.mt (TM_FILE): Delete.
12159 * config/arm/tm-nbsd.h: Delete.
12163 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12164 Initialize CALL_DUMMY_LENGTH.
12168 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12170 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12171 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12172 defines one thing and that is incorrect for this port.
12173 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12177 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12181 * win32-nat.c (display_selector): New function. Displays information
12182 about the information returned by GetThreadSelectorEntry API function.
12183 (display_selectors): New function. Displays the infomation of
12184 the selector given as argument, or of CS, DS ans FS selectors
12185 if no argument is given.
12186 ( _initialize_inftarg): Add "w32" as info prefix command.
12187 Add "info w32 selector" as command calling display_selectors.
12191 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12192 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12197 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12201 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12202 (arm_fix_call_dummy): Call it.
12203 (arm_call_dummy_breakpoint_offset): Delete.
12204 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12205 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12209 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12210 Default to func_frame_chain_valid.
12211 * gdbarch.h, gdbarch.c: Re-generate.
12212 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12216 * ppc-linux-nat.c: Update copyright.
12217 (fetch_register, store_register): Add tid parameter, don't compute
12219 (fetch_ppc_registers, store_ppc_registers): Add tid
12220 parameter. Pass it along to callees.
12221 (fetch_inferior_registers, store_inferior_registers): Compute tid
12222 here, and pass it to calleed functions.
12223 (fill_gregset, supply_fpregset): Clean up formatting.
12227 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12228 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12232 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12233 * gdbarch.c gdbarch.h: Regenerate.
12234 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12236 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12237 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12238 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12240 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12241 * arm-tdep.c (arm_get_longjmp_target): New function.
12242 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12243 this to a positive value register arm_get_longjmp_target as the
12245 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12246 (arm_linux_init_abi): Set up longjmp description in tdep.
12247 * armnbsd-nat.c (get_longjmp_target): Delete.
12248 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12249 description in tdep.
12250 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12251 (get_longjmp_target): Delete declaration.
12252 (GET_LONGJMP_TARGET): Delete.
12253 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12254 (GET_LONGJMP_TARGET): Delete.
12259 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12260 of ``current_gdbarch''.
12264 * cli/cli-cmds.c (compare_strings): New function.
12265 (complete_command): Only print each unique item once.
12266 * completer.h (complete_line): Declare.
12267 * completer.c (complete_line): New function.
12268 (line_completion_function): Use it.
12272 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12273 * gdbarch.h, gdbarch.c: Re-generate.
12277 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12282 * valops.c (value_arg_coerce): Don't take the address of a reference
12283 to convert an argument to a reference.
12287 * win32-nat.c (get_image_name): New function.
12288 (handle_load_dll): Use get_image_name function.
12289 (get_child_debug_event): Avoid registering debug events until possibly
12290 execed process is started.
12291 (child_create_inferior): Allow invocation via shell so that command
12292 line redirection, etc. works ok.
12293 (_initialize_inftarg): Add new command: "set shell" to control whether
12294 a shell is used to start a process.
12298 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12299 instead of find_register_by_number.
12300 (cannot_store_register): Likewise.
12304 * dwarf2read.c: Replace fprintf (stderr, ...) by
12305 fprintf_unfiltered (gdb_stderr, ...).
12309 * gdbserver/gdbserver.1: Document --attach.
12313 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12315 * arm-tdep.c (arm_default_arm_le_breakpoint)
12316 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12317 (arm_default_thumb_be_breakpoint): New. Initialize them from
12318 traditional breakpoint defines.
12319 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12320 (arm_gdbarch_init): Initialize new breakpoint variables.
12321 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12322 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12323 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12324 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12326 (arm_netbsd_init_abi_common): ... here; new function.
12327 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12328 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12329 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12330 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12334 * arm-tdep.h (enum arm_abi): New enum.
12335 (struct gdbarch_tdep): New structure.
12336 (LOWEST_PC): Provide a default.
12337 (arm_gdbarch_register_os_abi): Declare new function.
12338 * arm-tdep.c (arm_abi_names): New array.
12339 (process_note_abi_tag_sections): New function.
12340 (get_elfosabi): New function.
12341 (arm_gdbarch_register_os_abi): New function.
12342 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12343 support for that ABI has been built in, then call the appropriate
12344 configuration routine. Use gdbarch_num_regs() to get the number
12346 (arm_dump_tdep): New function.
12347 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12348 place-holder functions.
12349 (_initialize_arm_tdep): Register them.
12350 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12352 * armnbsd-tdep.c: New file.
12353 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12354 * config/arm/nbsd.mt (TDEPFILES): Add it.
12355 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12357 * armnbsd-nat.c: Include regcache.h.
12358 * Makefile.in (armnbsd-nat.o): Update dependency list.
12360 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12364 * gdbserver/Makefile.in: Fix typos in target rules.
12368 Fix part of PR gdb/267.
12369 * linespec.c (find_methods): Handle constructors specially for now.
12373 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12375 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12376 standard_coerce_float_to_double().
12380 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12385 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12386 find_variant_by_name, because it confuses the multiarch
12387 framework. Return NULL if there isn't an architecture with the
12388 user supplied name, instead of forcing a different one without
12389 recording the change with the multiarch machinery.
12390 (find_variant_by_name): Delete.
12394 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12395 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12399 * stack.c (print_frame_info_base): When calling
12400 print_frame_info_listing_hook, set current_source_symtab.
12404 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12405 and remove unused $(INCLUDE_DIR).
12406 Add regcache.c to OBS.
12407 Add generated register protocol files to clean target.
12408 Update dependencies for new objects, obsolete old target code.
12410 * gdbserver/linux-low.c: Remove all platform-specific code to
12411 new files. Remove various dead code. Update to use regcache
12413 * gdbserver/remote-utils.c (fromhex): Add return statement
12415 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12417 (input_interrupt): Add integer parameter to match prototype
12418 of a signal handler.
12419 (outreg): Use register_data ().
12420 (prepare_resume_reply): Use gdbserver_expedite_regs.
12421 * gdbserver/server.c (main): Dynamically allocate own_buf because
12422 PBUFSIZ is no longer constant. Use registers_to_string () and
12423 registers_from_string ().
12424 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12425 for error (), fatal (), and warning (). Update definition of
12426 PBUFSIZ to use regcache functionality. Add include guard.
12427 * gdbserver/utils.c (fatal): Add missing ``const''.
12428 (warning): New function.
12430 * regformats/regdat.sh: Include "regcache.h" in generated files.
12431 Provide init_registers () function.
12432 * regformats/regdef.h: Add prototype for set_register_cache ().
12435 * gdbserver/linux-arm-low.c: New file.
12436 * gdbserver/linux-i386-low.c: New file.
12437 * gdbserver/linux-ia64-low.c: New file.
12438 * gdbserver/linux-m68k-low.c: New file.
12439 * gdbserver/linux-mips-low.c: New file.
12440 * gdbserver/linux-ppc-low.c: New file.
12441 * gdbserver/linux-sh-low.c: New file.
12443 * gdbserver/regcache.c: New file.
12444 * gdbserver/regcache.h: New file.
12446 * gdbserver/low-linux.c: Removed obsolete file.
12450 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12451 * config/i386/linux.mt: Likewise.
12452 * config/ia64/linux.mt: Likewise.
12453 * config/m68k/linux.mh: Likewise.
12454 * config/powerpc/linux.mh: Likewise.
12455 * config/mips/linux.mt: Likewise.
12457 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12459 * config/i386/i386lynx.mh: Mark gdbserver variables
12460 as (currently) obsolete for this target.
12461 * config/i386/nbsd.mt: Likewise.
12462 * config/i386/nbsdelf.mt: Likewise.
12463 * config/m32r/m32r.mt: Likewise.
12464 * config/m68k/m68klynx.mh: Likewise.
12465 * config/m68k/nbsd.mt: Likewise.
12466 * config/m68k/sun3os4.mh: Likewise.
12467 * config/mips/vr5000.mt: Likewise.
12468 * config/ns32k/nbsd.mt: Likewise.
12469 * config/pa/hppabsd.mh: Likewise.
12470 * config/pa/hppaosf.mh: Likewise.
12471 * config/powerpc/nbsd.mt: Likewise.
12472 * config/rs6000/rs6000lynx.mh: Likewise.
12473 * config/s390/s390.mt: Likewise.
12474 * config/s390/s390x.mt: Likewise.
12475 * config/sparc/sparclynx.mh: Likewise.
12476 * config/sparc/sun4os4.mh: Likewise.
12477 * config/i386/x86-64linux.mt: Likewise.
12478 * config/sparc/linux.mh: Likewise.
12482 * configure.tgt: Configure gdbserver only for known working
12483 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12484 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12485 SUBDIRS if it is configured. Update comment for ${nativefile}.
12486 * configure: Regenerated.
12490 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12492 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12493 (default_gcore_mach): Just return 0, work around a problem in bfd.
12494 (default_gcore_target): OK to return NULL if exec_bfd is null.
12495 (make_mem_sec): Use a cast, avoid a warning.
12497 * procfs.c (find_memory_regions_callback): Use a cast instead of
12498 calling host_pointer_to_address (which complains if
12499 sizeof (host pointer) != sizeof (target pointer)).
12500 (procfs_make_note_section): Avoid overflow in psargs string.
12502 * procfs.c (procfs_make_note_section): Make the default
12503 implementation return an error.
12507 * procfs.c (procfs_make_note_section): Provide a default definition
12508 (for alpha-dec-osf4.0f). Fix typos.
12512 * linux-proc.c: Add include of regcache.h.
12513 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12518 * memattr.c (create_mem_region): Disallow useless empty region.
12519 Regions are half-open intervals, so allow [A..B) [B..C) as
12524 * defs.h: Kill CONST_PTR.
12525 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12526 * c-lang.c (c_builtin_types): Likewise.
12527 * ch-lang.c (ch_builtin_types): Likewise.
12528 * f-lang.c (f_builtin_types): Likewise.
12529 * language.c (unknown_builtin_types): Likewise.
12530 * m2-lang.c (m2_builtin_types): Likewise.
12531 * p-lang.c (pascal_builtin_types): Likewise.
12532 * scm-lang.c (c_builtin_types): Likewise.
12536 * arm-tdep.h (arm_get_next_pc): Add declaration.
12540 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12541 with other related struct-returning functions.
12542 (arm_extract_struct_value_address): New function.
12543 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12544 initialize float_format, double_format and long_double_format as
12545 appropriate to the endianness of the target.
12546 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12547 (arm_use_struct_convention): Delete declaration.
12548 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12552 * defs.h (core_addr_to_string_nz): New function.
12556 Apply missing bits of 2002-01-15 patch.
12557 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12558 (fill_fpregset): Use i387_fill_fsave.
12562 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12563 (core_addr_to_string_nz): New function.
12567 * arm-linux-nat.c: Really include arm-tdep.h.
12568 * config/arm/tm-linux.h (struct type, struct value): Declare.
12572 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12573 (gcore section): Ifdef for Solaris and Unixware only.
12574 (procfs_do_thread_registers): Unixware needs one lwpstatus
12575 per thread (not one prstatus or pstatus).
12576 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12577 not over all gdb threads. For unixware, call elfcore_write_pstatus
12578 once before iterating over threads.
12582 * arm-tdep.h: New file.
12583 * arm-tdep.c: Include arm-tdep.h.
12584 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12585 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12586 (arm_print_float_info, arm_register_type, convert_to_extended)
12587 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12588 (arm_extract_return_value, arm_register_name): Make static.
12589 (arm_software_single_step): Similarly. Fix types in declaration.
12590 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12591 (arm_store_return_value, arm_store_struct_return): New functions.
12592 (arm_gdbarch_init): Register the above functions. Also register
12593 call_dummy_start_offset, sizeof_call_dummy_words,
12594 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12595 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12596 max_register_virtual_size, register_size. Set up
12597 prologue_cache.saved_regs here, rather than ...
12598 (_initialize_arm_tdep): ... here.
12599 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12601 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12602 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12603 (arm_print_float_info, arm_register_type, convert_to_extended)
12604 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12605 (arm_extract_return_value, arm_register_name): Delete declarations.
12606 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12607 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12608 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12609 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12610 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12611 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12612 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12613 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12614 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12615 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12616 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12617 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12619 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12620 * remote-rdi.c remote-rdp.c: Likewise.
12621 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12622 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12623 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12626 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12627 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12628 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12629 from non-ARM_ prefixed definitions.
12630 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12632 * remote-rdi.c remote-rdp.c: Likewise.
12633 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12637 * arm-tdep.c (arm_frameless_function_invocation)
12638 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12639 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12640 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12641 (arm_pop_frame, arm_get_next_pc): Make static.
12642 (arm_gdbarch_init): Register above in gdbarch structure.
12643 (arm_read_fp): Renamed from arm_target_read_fp.
12644 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12645 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12646 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12647 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12648 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12649 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12650 (arm_pc_is_thumb_dummy): Delete declarations.
12651 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12652 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12653 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12654 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12658 * symtab.c (compare_search_syms): New function.
12659 (sort_search_symbols): New function.
12660 (search_symbols): Sort symbols after searching rather than
12665 * NEWS: Linux -> GNU/Linux.
12669 * gdbarch.sh: For for level one methods, disallow a definition
12670 when partially multi-arched. Add comments explaining rationale.
12671 * gdbarch.h: Re-generate.
12675 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12676 multi-arch partial.
12680 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12681 field. Use diff -u.
12682 * gdbarch.c: Re-generate.
12686 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12687 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12692 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12693 multi-arch partial.
12694 (PUSH_ARGUMENTS): Switch to using predefault.
12695 * gdbarch.c: Regenerate.
12699 * valops.c (PUSH_ARGUMENTS): Delete definition.
12700 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12701 partial. Default to default_push_arguments.
12702 * gdbarch.h, gdbarch.c: Regenerate.
12706 * defs.h (throw_exception): Rename return_to_top_level. Update
12708 * utils.c (error_stream, internal_verror, quit): Ditto.
12709 * top.c (throw_exception, catcher): Ditto.
12710 * sparclet-rom.c (sparclet_load): Ditto.
12711 * remote.c (interrupt_query, minitelnet): Ditto.
12712 * remote-sds.c (interrupt_query): Ditto.
12713 * remote-mips.c (mips_error, mips_kill): Ditto.
12714 * ocd.c (interrupt_query): Ditto.
12715 * monitor.c (monitor_interrupt_query): Ditto.
12716 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12717 * target.h: Update comment.
12719 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12723 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12724 default_double_format.
12725 * gdbarch.h, gdbarch.c: Re-generate.
12726 * findvar.c (floatformat_unknown): Delete variable definition.
12727 * doublest.h (floatformat_unknown): Delete variable declaration.
12731 * stabsread.c (read_type): Add code to parse Sun's syntax for
12732 prototyped function types.
12736 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12737 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12741 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12742 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12743 now _initialize_xcoffsolib gets called again and overrides the
12744 commands from solib.c in a native configuration.
12748 * doublest.c (store_typed_floating): Don't try to return a value.
12753 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12754 is prototyped and has no arguments, print its argument list as
12759 * MAINTAINERS (write-after-approval): Add myself.
12760 (paper-trail): I've escaped!
12764 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12766 (_initialize_check_for_gdb_ini): Ditto.
12770 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12771 xaprintf -> xasprintf.
12775 * win32-nat.c: Remove use of printf and sprintf functions.
12779 * arm-tdep.c (arm_frame_chain_valid): Make static.
12780 (arm_push_arguments): Likewise.
12781 (arm_gdbarch_init): New function.
12782 (_initialize_arm_tdep): Call it.
12783 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12784 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12785 (FRAME_CHAIN_VALID): Delete.
12786 (arm_frame_chain_valid): Delete declaration.
12787 (PUSH_ARGUMENTS): Delete.
12788 (arm_push_arguments): Delete declaration.
12789 (CALL_DUMMY_P): Delete.
12794 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12795 on builtin float types.
12799 * utils.c: Include <curses.h> before "bfd.h".
12800 * tui/tui-hooks.c: Likewise.
12801 * tui/tui.c: Likewise.
12802 * tui/tuiCommand.c: Likewise.
12803 * tui/tuiData.c: Likewise.
12804 * tui/tuiDataWin.c: Likewise.
12805 * tui/tuiDisassem.c: Likewise.
12806 * tui/tuiGeneralWin.c: Likewise.
12807 * tui/tuiIO.c: Likewise.
12808 * tui/tuiLayout.c: Likewise.
12809 * tui/tuiRegs.c: Likewise.
12810 * tui/tuiSource.c: Likewise.
12811 * tui/tuiSourceWin.c: Likewise.
12812 * tui/tuiStack.c: Likewise.
12813 * tui/tuiWin.c: Likewise.
12817 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12818 to include space for pseudoregs as well. Update loops accordingly.
12819 (sh_fp_frame_init_saved_regs): Ditto.
12820 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12824 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12825 Add Richard Earnshaw to Arm maintainers.
12829 * defs.h (warning_begin): Delete declaration.
12831 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12836 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12837 Logic bug, remove misplaced else.
12841 * fork-inferior.c (fork_inferior): Add '!' to the list of
12842 characters that need to be quoted when building a string for the
12843 shell. Quote '!' specifically with a backslash, since CSH chokes
12844 when trying to evaluate "str!str".
12848 * rdi-share/host.h: Only provide a typedef for bool if it is not
12853 * breakpoint.h (enum bptype): Add new overlay event bp type.
12854 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12856 * breakpoint.c (create_internal_breakpoint): New function.
12857 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12858 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12859 (create_thread_event_breakpoint): Ditto.
12860 (create_solib_event_breakpoint): Ditto.
12861 (create_overlay_event_breakpoint): New function.
12862 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12863 (update_breakpoints_after_exec): Delete and re-initialize
12864 overlay event breakpoints after an exec. Add FIXME comment
12865 about longjmp breakpoint.
12866 (print_it_typical): Ignore overlay event breakpoints.
12867 (print_one_breakpoint): Ditto.
12869 (bpstat_what): Do not stop for overlay event breakpoints.
12870 (delete_breakpoint): Don't delete overlay event breakpoints.
12871 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12872 (breakpoint_re_set): Re-create overlay event breakpoint.
12874 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12875 (overlay_manual_command): Disable overlay breakpoints.
12876 (overlay_off_command): Disable overlay breakpoints.
12880 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12881 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12882 to here from config/tm-arm.h.
12883 (coff_sym_is_thumb): Make static.
12884 (arm_elf_make_msymbol_special): New function.
12885 (arm_coff_make_msymbol_special): New function.
12886 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12887 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12888 (coff_sym_is_thumb): Delete declaration.
12889 (arm_elf_make_msymbol_special): Declare.
12890 (arm_coff_make_msymbol_special): Declare.
12891 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12892 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12896 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12900 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12901 * gdbarch.c gdbarch.h: Regenerate.
12902 * arch-utils.c (default_print_float_info): New function.
12903 * arch-utils.h (default_print_float_info): Prototype it.
12904 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12905 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12906 (PRINT_FLOAT_INFO): Document it.
12908 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12909 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12910 (PRINT_FLOAT_INFO): Define.
12914 * win32-nat.c (_initialize_check_for_gdb_ini):
12915 Add typecast to sprintf argument to suppress a warning.
12919 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12920 to allow easier handling of pass state.
12921 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12922 that gives exception name and address.
12923 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12924 and set last_sig value to ourstatus->value.sig. Some missing
12926 (child_continue): Correctly report continue_status.
12927 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12928 TARGET_SIGNAL_0 (new default value).
12929 (child_resume): consider sig argument passed to decide if
12930 the exception should be passed to debuggee or not.
12934 * regcache.c (fetch_register): Call target_fetch_register
12935 only if we don't call FETCH_PSEUDO_REGISTER.
12936 (store_register): Call target_store_register only if we
12937 don't call STORE_PSEUDO_REGISTER.
12941 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12942 ELF_MAKE_MSYMBOL_SPECIAL.
12943 * gdbarch.c, gdbarch.h: Regenerate.
12944 * arch-utils.c (default_make_msymbol_special): New function.
12945 * arch-utils.h (default_make_msymbol_special): Export.
12946 * elfread.c (elf_symtab_read): Compile use of
12947 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12949 * coffread.c (coff_symtab_read): Ditto, for
12950 COFF_MAKE_MSYMBOL_SPECIAL.
12954 * solib-svr4.c (svr4_truncate_ptr): New function.
12955 (svr4_relocate_section_addresses): Do the address arithmetic with
12956 the appropriate truncation for target addresses, even when
12957 CORE_ADDR is larger than a target address.
12961 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12966 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12971 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12975 * gdbserver/linux-low.c: Remove unused include files.
12979 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12980 (read_inferior_memory): Use it.
12981 (write_inferior_memory): Likewise.
12985 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12986 grubbing through sys_errlist.
12990 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12993 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12997 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12998 (do_sfunc, set_cmd_sfunc): New functions.
13000 * command.h (struct cmd_list_element): Add field func.
13001 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13002 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13003 * cli/cli-decode.h: Ditto.
13005 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13006 (help_all, help_cmd_list): Ditto.
13007 (find_cmd, complete_on_cmdlist): Ditto.
13008 * top.c (execute_command): Ditto.
13010 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13013 * infcmd.c (notice_args_read): Fix function signature.
13015 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13016 * cli/cli-decode.c (add_set_cmd): Ditto.
13017 * utils.c (initialize_utils): Ditto.
13018 * maint.c (_initialize_maint_cmds): Ditto.
13019 * infrun.c (_initialize_infrun): Ditto.
13020 * demangle.c (_initialize_demangler): Ditto.
13021 * remote.c (add_packet_config_cmd): Ditto.
13022 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13023 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13024 * proc-api.c (_initialize_proc_api): Ditto.
13025 * kod.c (_initialize_kod): Ditto.
13026 * valprint.c (_initialize_valprint): Ditto.
13027 * top.c (init_main): Ditto.
13028 * infcmd.c (_initialize_infcmd): Ditto.
13029 * corefile.c (_initialize_core): Ditto.
13030 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13031 * arch-utils.c (initialize_current_architecture): Ditto.
13032 (_initialize_gdbarch_utils): Ditto.
13033 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13035 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13036 * wince.c (_initialize_inftarg): Ditto.
13037 * symfile.c (_initialize_symfile): Ditto.
13038 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13039 * language.c (_initialize_language): Ditto.
13040 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13044 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13048 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13049 Add rules for building the register data files.
13053 * regformats/regdat.sh: Add braces to the definition of
13054 expedite_regs_${arch}.
13058 * regformats/regdef.h (struct reg): Add comment describing the
13059 requirements for offset and size fields.
13063 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13064 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13068 * gdbarch.sh (copyright): Update years in generated header.
13069 (SMASH_TEXT_ADDRESS): Add rule.
13070 * gdbarch.h, gdbarch.c: Re-generate.
13071 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13072 * dbxread.c: Likewise.
13073 * dwarfread.c: Likewise.
13074 * elfread.c: Likewise.
13075 * somread.c: Likewise.
13077 * arm-tdep.c (arm_smash_text_address): New function.
13078 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13082 Add support for hardware watchpoints on win32 native.
13083 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13084 CONTEXT_DEBUG_REGISTERS.
13085 (dr variable): New variable. Static array containing a local copy
13086 of debug registers.
13087 (debug_registers_changed): New variable. Reflects when debug registers
13088 are changed and need to be written to inferior.
13089 (debug_registers_used): New variable. Reflects when any debug register
13090 was set, used when new threads are created.
13091 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13093 (thread_rec): Set dr array if id is the thread of current_event .
13094 (child_continue, child_resume): Change the debug registers for all
13095 threads if debug_registers_changed.
13096 (child_add_thread): Change the debug registers if debug_registers_used.
13097 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13098 Link nm.h to new nm-cygwin.h file.
13099 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13100 of hardware registers.
13104 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13105 Restore behavour broken by 2002-01-20 Andrew Cagney
13110 * c-valprint.c (c_val_print): Pass a proper valaddr to
13111 cp_print_class_method.
13112 * valops.c (search_struct_method): If there is only one method
13113 and args is NULL, return that method.
13117 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13118 accessing tag_name directly.
13122 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13123 of accessing tag_name directly.
13128 * gdbtypes.c (replace_type): New function.
13129 * gdbtypes.h (replace_type): Add prototype.
13130 * stabsread.c (read_type): Use replace_type.
13134 * Makefile.in (memattr.o): Add missing dependencies rule.
13138 * breakpoint.c (break_at_finish_command): Really export.
13139 (break_at_finish_at_depth_command): Ditto.
13140 (tbreak_at_finish_command): Ditto.
13141 * hppa-tdep.c: Include completer.h.
13142 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13143 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13147 * utils.c (do_write): New function.
13148 (error_stream): Rewrite combining the code from error_begin and
13150 (verror): Rewrite using error_stream.
13151 (error_begin): Delete function.
13155 * utils.c (error_begin): Make static.
13156 * defs.h (error_begin): Delete declaration.
13158 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13159 (decode_line_1): Use cplusplus_error instead of error_begin,
13160 cplusplus_hint and return_to_top_level.
13161 * coffread.c (coff_symfile_read): Use error instead of error_begin
13162 and return_to_top_level.
13163 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13167 * language.h (type_error, range_error): Make string parameter
13169 * language.c (warning_pre_print): Delete extern declaration.
13170 * dwarfread.c (warning_pre_print): Ditto.
13171 * language.c (type_error, range_error): Rewrite to use verror and
13172 vwarning instead of warning_begin.
13176 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13177 (set_ignore_count): Move misplaced comment back where it belongs.
13181 * command.h (NO_FUNCTION): Delete macro.
13182 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13183 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13184 * tracepoint.c (_initialize_tracepoint): Ditto.
13185 * cli/cli-decode.c (add_set_cmd): Ditto.
13186 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13190 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13191 Update ``this'' pointer when calling virtual functions.
13195 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13196 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13200 * regformats/reg-arm.dat: New file.
13201 * regformats/reg-i386.dat: New file.
13202 * regformats/reg-ia64.dat: New file.
13203 * regformats/reg-m68k.dat: New file.
13204 * regformats/reg-mips.dat: New file.
13205 * regformats/reg-ppc.dat: New file.
13206 * regformats/reg-sh.dat: New file.
13207 * regformats/regdef.h: New file.
13208 * regformats/regdat.sh: New file.
13212 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13213 (arm_frame_args_address, arm_frame_locals_address): New functions.
13214 (arm_frame_num_args): New function.
13215 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13216 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13217 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13221 * breakpoint.c (break_at_finish_command): Export.
13222 (break_at_finish_at_depth_command): Export.
13223 (tbreak_at_finish_command): Export.
13224 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13225 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13226 "txbreak" commands, which are HPPA specific.
13228 * printcmd.c (disassemble_command): Remove an ancient
13229 artifact of an old merge.
13231 * symfile.h (enum overlay_debugging_state):
13232 Define enum constant values for overlay mode.
13233 * symfile.c (overlay_debugging): Use enums instead of literals.
13234 (overlay_is_mapped, overlay_auto_command,
13235 overlay_manual_command): Ditto.
13237 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13238 breakpoint_here_p, breakpoint_inserted_here_p,
13239 breakpoint_thread_match, bpstat_stop_status,
13240 describe_other_breakpoints, check_duplicates, clear_command):
13241 Coding standard fixes.
13243 * target.c (target_xfer_memory): Add spaces, coding standard.
13244 (do_xfer_memory): Add missing line to trust-readonly
13245 code: check bfd SEC_READONLY flag for section.
13249 * PROBLEMS: Fix typo, 5.1->5.1.1.
13253 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13254 data symbols, since we search based on textlow and texthigh.
13255 (find_pc_sect_symtab): Likewise.
13259 * defs.h (vwarning): Declare.
13260 * utils.c (vwarning): New function.
13261 (warning): Call vwarning.
13262 (warning_begin): Delete function.
13264 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13265 the warning message.
13266 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13271 * NEWS: Mention "set trust-readonly-sections" command.
13272 Mention generate-core-file command.
13276 * target.c: New command, "set trust-readonly-sections on".
13277 (do_xfer_memory): Honor the suggestion to trust readonly sections
13278 by reading them from the object file instead of from the target.
13279 (initialize_targets): Register command "set trust-readonly-sections".
13283 * parse.c (target_map_name_to_register): Simplify, search regs and
13284 pseudo-regs using a single loop.
13288 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13292 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13293 * config/i386/i386v42mp.mh: Add i387-nat.o .
13294 * i386v4-nat.c: Include i387-nat.h.
13295 (supply_fpregset): Use i387_supply_fsave.
13296 (fill_fpregset): Use i387_fill_fsave.
13300 * arm-tdep.c (arm_call_dummy_words): Define.
13301 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13302 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13303 (CALL_DUMMY_WORDS): Define.
13304 (arm_call_dummy_words): Declare.
13305 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13306 (arm_linux_call_dummy_words): Declare.
13310 * m68klinux-nat.c: Fix last change to use regcache_collect
13311 instead of referencing registers[] directly.
13315 * parse.c (target_map_name_to_register): Delete code wrapped in
13316 #ifdef REGISTER_NAME_ALIAS_HOOK.
13320 * regcache.c (legacy_read_register_gen): Need to be able to
13321 read pseudo-register as well as real register.
13322 (legacy_write_register_gen): Ditto.
13326 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13327 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13328 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13329 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13330 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13331 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13332 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13333 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13334 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13335 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13336 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13337 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13338 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13339 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13340 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13341 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13342 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13343 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13344 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13345 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13349 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13350 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13351 (initialize_current_architecture): Update target_byte_order using
13352 information from BFD.
13353 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13354 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13358 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13359 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13361 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13362 #ifdef INVALID_FLOAT.
13363 * infcmd.c (do_registers_info): Ditto.
13364 * values.c (unpack_double): Ditto. Add comment.
13366 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13367 already commented out.
13371 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13372 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13373 registers and add support for PTRACE_GETREGS.
13377 GDB 5.1.1 released from 5.1 branch.
13378 * NEWS: Add 5.1.1 news.
13379 * README: Sync with 5.1 branch.
13383 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13384 stabstring on initial malloc. Reallocing will copy it for us,
13389 * Makefile.in (hpread_h): Delete.
13390 (HFILES_NO_SRCDIR): Remove hpread.h.
13391 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13392 (hpread.o): Update dependencies.
13393 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13395 * hp-psymtab-read.c: Remove file.
13396 * hp-symtab-read.c: Remove file.
13397 * hpread.h: Remove file.
13399 * hpread.c: Merge all contents of hp-psymtab-read.c,
13400 hp-symtab-read.c and hpread.h into this file, as it was prior to
13403 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13404 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13405 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13406 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13410 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13411 fill_gregset): Call gdbarch_tdep() just once, assign result to
13412 variable and use that, instead of calling the function several
13417 * configure.host: Accept sparcv9 as alias for sparc64.
13418 * configure.tgt: Likewise.
13422 * solib-aix5.c (build_so_list_from_mapfile)
13423 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13424 arguments is not reversed.
13425 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13426 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13430 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13431 modified version of obsolete sh_fetch_pseudo_register.
13432 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13433 (sh4_register_read): New function.
13434 (sh_pseudo_register_write): New function. Renamed and modified
13435 version of obsolete sh_store_pseudo_register.
13436 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13437 (sh4_register_write): New function.
13438 (sh_gdbarch_init): Remove setting of gdbarch function
13439 fetch_pseudo_register and store_pseudo_register. Remove setting of
13440 register_convert_to_raw, register_convert_to_virtual,
13441 register_convertible.
13442 (sh_sh4_register_convertible): Delete. No longer needed. All is
13443 taken care by architecture specific functions
13444 register_read/register_write.
13445 (sh_sh4_register_convert_to_virtual): Make static.
13446 (sh_sh4_register_convert_to_raw): Ditto.
13450 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13451 (floatformat_is_nan, floatformat_mantissa): Ditto.
13453 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13454 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13455 builtin_type_ieee_double_little,
13456 builtin_type_ieee_double_littlebyte_bigword,
13457 builtin_type_m68881_ext, builtin_type_i960_ext,
13458 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13459 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13460 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13461 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13465 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13466 parameter. Set frameless flag if it exists and depended of
13467 whether the scanned function is frameless or not.
13468 (xstormy16_skip_prologue): If function is frameless, return
13469 result of xstormy16_scan_prologue().
13470 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13475 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13476 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13477 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13478 sh_sh4_register_byte, sh_sh4_register_raw_size,
13479 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13480 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13481 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13482 sh_store_pseudo_register, sh_do_pseudo_register): Call
13483 gdbarch_tdep() just once, assign result to variable and use that,
13484 instead of calling the function several times.
13488 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13489 macros instead of LAST_FPU_CTRL_REGNUM.
13490 (store_register): Likewise.
13494 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13495 is up-to-date before running the program, not just when a program
13500 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13501 when we have found all instructions we are looking for.
13505 * arm-tdep.c (arm_register_name): New function.
13506 (arm_registers_names): Make static.
13507 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13508 (arm_register_name): Declare.
13509 (REGISTER_NAME): Use it.
13514 Convert arm targets to new FRAME interface.
13515 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13516 (arm_frame_find_save_regs): Delete.
13517 (arm_frame_init_saved_regs): New.
13518 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13519 Allocate extra_info as required. Convert all uses of fsr.regs
13520 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13522 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13523 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13524 (check_prologue_cache, save_prologue_cache): Likewise.
13525 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13526 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13527 (FRAME_FIND_SAVED_REGS): Delete.
13528 (arm_frame_find_saved_regs): Delete prototype.
13529 (arm_frame_init_saved_regs): New prototype.
13530 (FRAME_INIT_SAVED_REGS): Define.
13534 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13539 * infttrace.c: Include <sys/pstat.h>.
13540 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13541 exec file if the ttrace equivalent fails.
13545 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13546 (closeLogFile): Ditto.
13550 * top.c (print_gdb_version): Bump copyright year to 2002.
13554 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13555 Zannoni and Eli Zaretskii.
13559 * buildsym.c: Update copyright years.
13560 * c-typeprint.c: Likewise.
13561 * dwarf2read.c: Likewise.
13562 * f-typeprint.c: Likewise.
13563 * gdbtypes.c: Likewise.
13564 * gdbtypes.h: Likewise.
13565 * hp-symtab-read.c: Likewise.
13566 * hpread.c: Likewise.
13567 * mdebugread.c: Likewise.
13568 * p-typeprint.c: Likewise.
13572 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13573 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13574 byte-order selectable.
13575 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13576 * arch-utils.c: Ditto.
13577 (set_endian): Ditto.
13578 (set_endian_from_file): Ditto.
13579 * gdbserver/low-sim.c (create_inferior): Ditto.
13580 * gdbarch.sh: Ditto.
13581 * gdbarch.h: Re-generate.
13582 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13583 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13584 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13585 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13586 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13587 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13588 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13589 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13591 * config/mips/tm-wince.h: Remove #undef of macro
13592 TARGET_BYTE_ORDER_SELECTABLE.
13593 * config/sh/tm-wince.h: Ditto.
13597 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13598 member function fields. Add accessor macro
13599 TYPE_FN_FIELD_ARTIFICIAL.
13600 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13601 * c-typeprint.c (c_type_print_base): Skip artificial member
13606 * f-typeprint.c: Delete unused function f_type_print_args.
13607 * p-typeprint.c: Delete unused function pascal_type_print_args.
13611 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13612 comment. Add ``artificial'' to ``union field_location''.
13614 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13616 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13617 * mdebugread.c (parse_symbol): Likewise.
13618 * stabsread.c (define_symbol): Likewise.
13619 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13620 initializing TYPE_FIELD_BITPOS to n (obsolete).
13621 (hpread_doc_function_type): Likewise.
13622 * hpread.c (hpread_function_type): Likewise.
13626 * configure.in (host_makefile_frag): Only require a host makefile
13627 fragment when a native build.
13628 * configure: Re-generate.
13632 * doublest.h (floatformat_from_type): Declare.
13633 * doublest.c (floatformat_from_type): New function.
13634 (convert_typed_floating): Use.
13636 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13637 call to function floatformat_from_type.
13639 * gdbarch.sh (IEEE_FLOAT): Delete.
13640 * gdbarch.h, gdbarch.c: Re-generate.
13641 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13642 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13643 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13644 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13645 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13646 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13647 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13648 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13649 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13650 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13651 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13652 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13654 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13655 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13656 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13657 * sh-tdep.c (sh_gdbarch_init): Ditto.
13658 * mips-tdep.c (mips_gdbarch_init): Ditto.
13659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13660 * cris-tdep.c (cris_gdbarch_init): Ditto.
13664 * configure.host, configure.tgt: Support x86-64.
13665 * NEWS: Note new target x86-64.
13667 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13668 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13669 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13670 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13671 x86-64-linux-nat.o): Fix dependencies.
13675 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13676 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13677 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13678 * config/sparc/xm-sun4os4.h: Delete file.
13679 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13683 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13684 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13685 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13686 * config/i386/i386lynx.mh (XM_FILE): Delete.
13687 * config/rs6000/xm-rs6000ly.h: Delete file.
13688 * config/sparc/xm-sparclynx.h: Delete file.
13689 * config/m68k/xm-m68klynx.h: Delete file.
13690 * config/i386/xm-i386lynx.h: Delete file.
13691 * config/xm-lynx.h: Delete file.
13692 * config/djgpp/fnchange.lst: Update.
13696 * alpha-tdep.c (alpha_register_byte): New function.
13697 (alpha_register_raw_size): Ditto.
13698 (alpha_register_virtual_size): Ditto.
13699 (alpha_skip_prologue_internal): Renamed from
13700 alpha_skip_prologue.
13701 (alpha_skip_prologue): New version that calls
13702 alpha_skip_prologue_internal.
13703 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13704 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13705 second argument from alpha_skip_prologue.
13706 (REGISTER_BYTE): Use alpha_register_byte.
13707 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13708 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13709 (FRAMELESS_FUNCTION_INVOCATION): Use
13710 generic_frameless_function_invocation_not.
13711 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13712 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13716 * config/mips/xm-news-mips.h: Delete file.
13717 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13719 * config/m88k/xm-m88k.h: Delete file.
13720 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13721 * config/m88k/xm-delta88v4.h: Ditto.
13722 * config/m88k/xm-delta88.h: Ditto.
13724 * config/alpha/xm-fbsd.h: Delete file.
13725 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13727 * config/sparc/xm-sparc.h: Delete file.
13728 * Makefile.in (xm-sun4os4.h): Delete dependency.
13729 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13730 * config/sparc/xm-sun4os4.h: Ditto.
13731 * config/sparc/xm-linux.h: Ditto.
13733 * config/i386/xm-windows.h: Delete file.
13737 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13738 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13742 * alpha-tdep.c (alpha_call_dummy_words): New.
13743 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13744 (CALL_DUMMY_P): Define.
13745 (CALL_DUMMY_WORDS): Define.
13746 (SIZEOF_CALL_DUMMY_WORDS): Define.
13750 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13751 isn't NULL, which can happen with some gcj-3.x-produced code.
13755 * alpha-tdep.c (alpha_register_virtual_type): New function.
13756 (alpha_init_frame_pc_first): Ditto.
13757 (alpha_fix_call_dummy): Ditto.
13758 (alpha_store_struct_return): Ditto.
13759 (alpha_extract_struct_value_address): Ditto.
13760 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13761 alpha_register_virtual_type.
13762 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13763 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13764 alpha_extract_struct_value_address.
13765 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13766 (INIT_FRAME_PC): Use init_frame_pc_noop.
13767 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13771 * i386gnu-nat.c: Include "i386-tdep.h".
13772 (fetch_fpregs): Simplify code dealing with uninitialized floating
13773 point states such that it doesn't require FP7_REGNUM.
13777 * alpha-tdep.c (frame_extra_info): New.
13778 (alpha_find_saved_regs): Make static. Use
13780 (alpha_frame_init_saved_regs): New function.
13781 (alpha_frame_saved_pc): Use frame->extra_info.
13782 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13783 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13784 (init_extra_frame_info): Rename to...
13785 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13786 (alpha_print_extra_frame_info): New function.
13787 (alpha_frame_locals_address): Ditto.
13788 (alpha_frame_args_address): Ditto.
13789 (alpha_pop_frame): Use frame->extra_info.
13790 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13791 alpha_frame_args_address.
13792 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13793 (alpha_find_saved_regs): Remove prototype.
13794 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13795 (EXTRA_FRAME_INFO): Remove.
13796 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13797 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13801 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13802 (alpha_cannot_fetch_register): Ditto.
13803 (alpha_cannot_store_register): Ditto.
13804 (alpha_register_convertible): Ditto.
13805 (alpha_use_struct_convention): Ditto.
13806 * config/alpha/tm-alpha.h: Update copyright years.
13807 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13808 (INNER_THAN): Use core_addr_lessthan.
13809 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13810 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13811 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13812 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13813 (FRAME_CHAIN): Remove unnecessary cast.
13817 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13822 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13823 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13824 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13825 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13826 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13827 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13828 * x86-64-linux-nat.c: Ditto.
13832 * alpha-tdep.c (alpha_register_name): New function.
13833 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13834 (REGISTER_NAME): Define.
13838 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13842 * alpha-tdep.c: Update copyright years.
13843 (alpha_next_pc): New function.
13844 (alpha_software_single_step): Ditto.
13845 * config/alpha/tm-alpha.h: Add prototype for
13846 alpha_software_single_step.
13850 * alphabsd-nat.c: Update copyright years.
13851 (fill_gregset): Use regcache_collect.
13852 (fill_fpregset): Likewise.
13853 (fetch_inferior_registers): Only fetch integer registers
13854 if requested to do so.
13855 (store_inferior_registers): Only store integer registers
13856 if requested to do so.
13860 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13861 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13862 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13863 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13864 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13865 * config/arm/linux.mh (XDEPFILES): Delete.
13866 * config/arm/nbsd.mh (XDEPFILES): Delete.
13867 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13868 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13869 * config/i386/i386m3.mh (XDEPFILES): Delete.
13870 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13871 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13872 * config/i386/fbsd.mh (XDEPFILES): Delete.
13873 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13874 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13875 * config/i386/i386v4.mh (XDEPFILES): Delete.
13876 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13877 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13878 * config/i386/i386aix.mh (XDEPFILES): Delete.
13879 * config/i386/go32.mh (XDEPFILES): Delete.
13880 * config/i386/cygwin.mh (XDEPFILES): Delete.
13881 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13882 * config/i386/i386mach.mh (XDEPFILES): Delete.
13883 * config/i386/i386v32.mh (XDEPFILES): Delete.
13884 * config/i386/linux.mh (XDEPFILES): Delete.
13885 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13886 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13887 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13888 * config/i386/i386sco.mh (XDEPFILES): Delete.
13889 * config/i386/i386v.mh (XDEPFILES): Delete.
13890 * config/i386/nbsd.mh (XDEPFILES): Delete.
13891 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13892 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13893 * config/i386/symmetry.mh (XDEPFILES): Delete.
13894 * config/i386/obsd.mh (XDEPFILES): Delete.
13895 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13896 * config/ia64/linux.mh (XDEPFILES): Delete.
13897 * config/ia64/aix.mh (XDEPFILES): Delete.
13898 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13899 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13900 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13901 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13902 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13903 * config/m68k/linux.mh (XDEPFILES): Delete.
13904 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13905 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13906 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13907 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13908 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13909 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13910 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13911 * config/m88k/delta88.mh (XDEPFILES): Delete.
13912 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13913 * config/m88k/m88k.mh (XDEPFILES): Delete.
13914 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13915 * config/mips/linux.mh (XDEPFILES): Delete.
13916 * config/mips/irix6.mh (XDEPFILES): Delete.
13917 * config/mips/irix5.mh (XDEPFILES): Delete.
13918 * config/mips/irix4.mh (XDEPFILES): Delete.
13919 * config/mips/irix3.mh (XDEPFILES): Delete.
13920 * config/mips/decstation.mh (XDEPFILES): Delete.
13921 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13922 (NATDEPFILES): Move core-aout.o to here.
13923 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13924 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13925 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13926 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13927 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13928 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13929 * config/pa/hpux11.mh (XDEPFILES): Delete.
13930 * config/powerpc/aix.mh (XDEPFILES): Delete.
13931 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13932 * config/powerpc/linux.mh (XDEPFILES): Delete.
13933 * config/romp/rtbsd.mh: Rename XDEPFILES.
13934 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13935 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13936 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13937 * config/s390/s390.mh (XDEPFILES): Delete.
13938 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13939 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13940 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13941 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13942 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13943 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13944 * config/sparc/linux.mh (XDEPFILES): Delete.
13945 * config/vax/vaxult.mh (XDEPFILES): Delete.
13946 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13947 * Makefile.in (DEPFILES): Remove XDEPFILES.
13951 * utils.c (internal_verror): Fix comments, default is yes not no.
13952 Update queries to match. Default to quit and dump core.
13956 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13958 * defs.h, event-top.c, gdbcmd.h: Ditto.
13959 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13960 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13961 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13962 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13963 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13964 * mi/mi-main.c:Ditto.
13966 * stack.c, symfile.c: Update copyright.
13970 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13971 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13972 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13973 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13977 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13978 * gdbserver/low-lynx.c (myattach): Likewise.
13979 * gdbserver/low-nbsd.c (myattach): Likewise.
13980 * gdbserver/low-sim.c (myattach): Likewise.
13981 * gdbserver/low-sparc.c (myattach): Likewise.
13982 * gdbserver/low-sun3.c (myattach): Likewise.
13984 * gdbserver/low-linux.c (myattach): New function.
13986 * gdbserver/server.c (attach_inferior): New function.
13987 (main): Handle "--attach".
13991 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13996 * c-typeprint.c (is_type_conversion_operator): Add additional
13997 check for non-conversion operators.
14001 * linux-proc.c: Add "info proc" command, a la procfs.c.
14002 (read_mapping): New function, abstract and re-use code.
14003 (linux_find_memory_regions): Use new func read_mapping.
14004 (linux_info_proc_cmd): New function, implement "info proc".
14005 (_initialize_linux_proc): Add new command "info proc".
14009 * symfile.c (generic_load): Use bfd_map_over_sections method
14010 instead of manipulating bfd structure members directly.
14011 (add_section_size_callback): New function, bfd sections callback
14012 used by generic_load.
14013 (load_sections_callback): New function, bfd sections callback
14014 used by generic_load.
14018 [Based on work by Jim Blandy]
14019 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14020 (builtin_type_vec128): Export.
14021 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14023 (builtin_type_vec128): New builtin type for 128 bit vector
14025 (build_gdbtypes): Initialize builtin_type_v16qi and
14026 builtin_type_v8hi. Create the vec128 register builtin type
14028 (build_builtin_type_vec128): New function.
14029 (_initialize_gdbtypes): Register builtin_type_v16qi and
14030 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14031 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14032 AltiVec register to new builtin type.
14036 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14041 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14042 CLEAN_UP_REGISTER_VALUE.
14043 * regcache.c (supply_register): Update only call.
14047 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14048 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14049 a29k-*-vxworks* targets as obsolete.
14053 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14054 until we can resolve portability issues.
14055 * gregset.h: Remove references to fpxregs.
14056 * gcore.c (gcore_command): Initialize note_sec to NULL.
14060 * signals.c (target_signal_to_name): Rewrite. Only use
14061 signals[].name when in bounds and non-NULL.
14066 * signals.c (target_signal_to_name): Verify that SIG is within the
14067 bounds of the signals array.
14071 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14075 * stack.c (print_frame_info_base): Print the frame's pc
14076 only if when print_frame_info_listing_hook is not defined.
14080 * varobj.c (varobj_set_value): Make sure that there were no
14081 errors evaluating the object before attempting to set its
14083 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14084 so this offset adjustment is no longer necessary.
14085 (create_child): Don't set the error flag if the child is
14086 a CPLUS_FAKE_CHILD.
14087 (value_of_child): If value_fetch_lazy fails, return NULL
14088 so that callers will be notified that an error occurred.
14089 (c_value_of_variable): Delay check of variable's validity
14090 until later. We actually want all structs and unions to have
14092 Do not return "???" for variables which could not be evaluated.
14093 This error condition must be returned to the caller so that it
14094 can get the error condition from gdb.
14095 (cplus_name_of_child): Adjust index for vptr before figuring
14096 out the name of the child.
14097 (cplus_value_of_child): If a child's (real) parent is not valid,
14098 don't even bother trying to give a value for it. Just return
14099 an error. Change all instances in this function.
14100 (cplus_type_of_child): If our parent is one of the "fake"
14101 parents, we need to get at the type of the real parent, and
14102 derive the child's true type using this information.
14107 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14108 sources.redhat.com, and tweak some related URLs which had
14109 suffered from linkrot.
14114 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14115 structures passed in registers.
14119 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14120 white space which prevented compilation. Reported by DSK
14125 * symfile.c (build_section_addr_info_from_section_tab):
14126 Use bfd access method instead of manipulating bfd directly.
14127 (syms_from_objfile): Ditto.
14128 (simple_overlay_update_1): Ditto.
14129 (simple_overlay_update): Ditto.
14130 (generic_load): Ditto.
14131 (overlay_unmapped_address): FIXME comment, bfd access methods.
14132 (sections_overlap): FIXME comment, bfd access methods.
14133 (pc_in_mapped_range): FIXME comment, bfd access methods.
14134 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14135 (section_is_mapped): FIXME comment, bfd access methods.
14136 (section_is_overlay): FIXME comment, bfd access methods.
14138 * symfile.c (generic_load): Whitespace and long line cleanups.
14139 Remove duplicate variable, change several local variables to
14140 more appropriate data types.
14141 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14145 From Peter Schauer:
14146 * language.c (longest_local_hex_string_custom): Use phex_nz to
14147 convert NUM to a hex string.
14151 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14153 Update Copyright year.
14157 * language.c (longest_raw_hex_string): Delete unused function.
14161 * MAINTAINERS (write-after-approval): Add myself.
14162 * dwarf2read.c (read_tag_string_type): Handling of
14164 (read_tag_string_type): FORTRAN fix to prevent propagation of
14166 (set_cu_language): Handling of DW_LANG_Fortran95
14170 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14171 GETPID(inferior_ptid).
14172 (store_inferior_registers): Likewise.
14176 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14181 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14182 and bfd/elf32-sh-nbsd.c.
14186 * NEWS: Mention --pid and corefile/proc-id behavior change.
14188 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14189 * gcore.c: Include cli/cli-decode.h instead of command.h.
14191 * main.c (captured_main): Add new command line option "--pid".
14192 If the second command line argument (following the symbol-file)
14193 begins with a digit, try to attach to it before trying to open
14195 (print_gdb_help): Document the "--pid" argument.
14199 * completer.c (command_completer): New function.
14201 * completer.h <command_completer>: Add prototype.
14203 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14204 completer for the "help" command.
14208 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14212 * i386-linux-nat.c (fill_fpxregset): Make global.
14213 (store_fpxregset): Ditto.
14215 * gregset.h (gdb_fpxregset_t): Define.
14216 (supply_fpxregset): Prototype.
14217 (fill_fpxregset): Prototype.
14219 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14223 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14224 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14225 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14229 * MAINTAINERS: Update target maintainer rules so that any
14230 Maintainer can approve a tested patch for a maintenance-only
14235 * MAINTAINERS (write-after-approval): Add myself.
14237 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14242 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14243 real name of the executable, rather than the /proc name.
14247 Implement a "generate-core-file" command in gdb, save target state.
14248 * gcore.c: New file. Implement new command 'generate-core-file'.
14249 Save a corefile image of the current state of the inferior.
14250 * linux-proc.c: Add linux-specific code for saving corefiles.
14251 * target.h (struct target_ops): Add new target vectors for saving
14252 corefiles; to_find_memory_regions and to_make_corefile_notes.
14253 (target_find_memory_regions): New macro.
14254 (target_make_corefile_notes): New macro.
14255 * target.c (update_current_target): Inherit new target methods.
14256 (dummy_find_memory_regions): New place-holder method.
14257 (dummy_make_corefile_notes): New place-holder method.
14258 (init_dummy_target): Initialize new dummy target vectors.
14259 * exec.c (exec_set_find_memory_regions): New function.
14260 Allow the exec_ops vector for memory regions to be taken over.
14261 (exec_make_note_section): New function, target vector method.
14262 * defs.h (exec_set_find_memory_regions): Export prototype.
14263 * procfs.c (proc_find_memory_regions): New function, corefile method.
14264 (procfs_make_note_section): New function, corefile method.
14265 (init_procfs_ops): Set new target vector pointers.
14266 (find_memory_regions_callback): New function.
14267 (procfs_do_thread_registers): New function.
14268 (procfs_corefile_thread_callback): New function.
14269 * sol-thread.c (sol_find_memory_regions): New function.
14270 (sol_make_note_section): New function.
14271 (init_sol_thread_ops): Initialize new target vectors.
14272 * inftarg.c (inftarg_set_find_memory_regions): New function.
14273 Allow to_find_memory_regions vector to be taken over.
14274 (inftarg_set_make_corefile_notes): New function.
14275 Allow to_make_corefile_notes vector to be taken over.
14276 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14277 interface layer if not target_has_execution (may be a corefile).
14278 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14279 * config/sparc/sun4sol2.mh: Ditto.
14280 * config/alpha/alpha-linux.mh: Ditto.
14281 * config/arm/linux.mh: Ditto.
14282 * config/i386/x86-64linux.mh: Ditto.
14283 * config/ia64/linux.mh: Ditto.
14284 * config/m68k/linux.mh: Ditto.
14285 * config/mips/linux.mh: Ditto.
14286 * config/powerpc/linux.mh: Ditto.
14287 * config/sparc/linux.mh: Ditto.
14291 * arm-linux-nat.c: Remove references to regcache.c internal data
14292 (registers[] and register_valid[]).
14296 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14297 so that attaching to a pid will automatically read the process's
14298 symbol file and shlibs.
14299 * Makefile.in: Add rule for linux-proc.o.
14300 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14301 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14302 * config/arm/linux.mh: Ditto.
14303 * config/i386/linux.mh: Ditto.
14304 * config/i386/x86-64linux.mh: Ditto.
14305 * config/ia64/linux.mh: Ditto.
14306 * config/m68k/linux.mh: Ditto.
14307 * config/mips/linux.mh: Ditto.
14308 * config/powerpc/linux.mh: Ditto.
14309 * config/sparc/linux.mh: Ditto.
14313 * win32-nat.c: Add i386-tdep.h dependency.
14317 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14318 instead of bfd_get_arch_size. Don't bail out just because
14319 there's no exec_bfd.
14321 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14322 * p-valprint.c (pascal_object_print_value): Ditto.
14323 * somread.c (som_symtab_read): Ditto.
14324 * symfile.c (simple_free_overlay_region_table): Ditto.
14325 * valops.c (value_assign): Ditto.
14327 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14328 use tilde_expand and strerror for opening save-tracepoints file.
14330 * thread-db.c (thread_db_new_objfile): Indendation fix.
14332 * infptrace.c (GDB_MAX_ALLOCA): New define.
14333 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14334 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14335 can be overridden with whatever value is appropriate to the host).
14336 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14337 alloca to allocate potentially large buffer.
14338 * rs6000-nat.c (child_xfer_memory): Ditto.
14339 * symm-nat.c (child_xfer_memory): Ditto.
14340 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14345 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14349 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14350 Don't use exec_bfd if it's NULL.
14354 * valops.c (value_arg_coerce): Fix formatting.
14358 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14359 * gnu-nat.c: Ditto.
14363 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14364 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14365 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14366 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14367 z8k-coff have not been multi-arched. Update z8k-coff build
14372 * MAINTAINERS: Mark a29k target as obsolete.
14373 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14374 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14376 * NEWS: Note that a29k targets are obsolete.
14377 * a29k-tdep.c: Mark as obsolete.
14378 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14379 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14380 a29k-*-vxworks* targets as obsolete.
14381 * remote-adapt.c: Obsolete.
14382 * remote-eb.c: Obsolete.
14383 * remote-mm.c: Obsolete.
14384 * remote-udi.c: Obsolete.
14385 * config/a29k/a29k-udi.mt: Obsolete.
14386 * config/a29k/a29k.mt: Obsolete.
14387 * config/a29k/tm-a29k.h: Obsolete.
14388 * config/a29k/tm-vx29k.h: Obsolete.
14389 * config/a29k/vx29k.mt: Obsolete.
14393 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14394 with BFD_ENDIAN_BIG.
14398 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14399 * configure, config.in: Re-generate.
14400 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14401 * defs.h: Do not include <endian.h>.
14405 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14406 * config.in: Regenerate.
14407 * configure.in: Update copyright years.
14408 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14409 * configure: Regenerate.
14410 * i386bsd-nat.c: Update copyright years.
14411 (fill_gregset): Use regcache_collect.
14412 (fetch_inferior_registers): Only fetch integer registers
14413 if requested to do so. Add support for XMM registers
14414 using PT_GETXMMREGS.
14415 (store_inferior_registers): Only store integer registers
14416 if requested to do so. Add support for XMM registers
14417 using PT_SETXMMREGS.
14418 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14419 (store_inferior_registers): Remove.
14420 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14421 (fetch_elfcore_registers): New function.
14422 (i386nbsd_elfcore_fns): New.
14423 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14424 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14426 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14427 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14428 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14429 * config/i386/tm-nbsd.h: Update copyright years.
14430 (HAVE_SSE_REGS): Define.
14431 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14432 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14433 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14434 (SIGCONTEXT_PC_OFFSET): Remove.
14435 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14439 * configure.tgt: Remove powerpc-*-macos* target.
14440 * config/m68k/xm-mpw.h: Delete file.
14441 * config/xm-mpw.h: Delete file.
14442 * ser-mac.c: Delete file.
14443 * mpw-make.sed: Delete file.
14444 * mpw-config.in: Delete file.
14445 * mac-xdep.c: Delete file.
14446 * mac-gdb.r: Delete file.
14447 * mac-defs.h: Delete file.
14448 * mac-nat.c: Delete file.
14449 * config/powerpc/macos.mh: Delete file.
14450 * config/powerpc/macos.mt: Delete file.
14451 * config/powerpc/nm-macos.h: Delete file.
14452 * config/powerpc/tm-macos.h: Delete file.
14453 * source.c (openp, open_source_file): Remove obsolete code.
14454 * top.c (gdb_readline): Ditto.
14455 * utils.c (query): Ditto.
14456 * event-top.c (display_gdb_prompt): Ditto.
14457 * Makefile.in (ser-mac.o): Delete obsolete target.
14462 * defs.h (BIG_ENDIAN): Delete macro definition.
14463 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14464 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14465 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14466 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14467 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14468 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14469 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14470 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14471 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14472 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14473 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14474 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14475 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14476 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14477 * gdbarch.c: Re-generate.
14481 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14486 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14490 * value.h (value_ptr): Delete typedef.
14494 * i386nbsd-nat.c: Update copyright years.
14495 Include i386-tdep.h.
14499 * stabsread.c: Update copyright years.
14502 (read_struct_fields): Deal with Sun C compiler erroneous stab
14503 output for structs and unions.
14508 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14513 * cp-abi.c: Fix whitespace.
14514 (baseclass_offset): New wrapper function.
14515 * cp-abi.h (baseclass_offset): Add prototype.
14516 (struct cp_abi_ops): Add baseclass_offset pointer.
14518 * valops.c (vb_match): Move to...
14519 * gnu-v2-abi.c (vb_match): here.
14520 * valops.c (baseclass_offset): Move to...
14521 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14523 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14525 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14526 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14527 * hpacc-abi.c (init_hpacc_ops): Likewise.
14531 * valops.c (find_overload_match): Accept obj as a
14532 reference parameter. Update it before returning.
14533 * value.h (find_overload_match): Update prototype.
14534 * eval.c (evaluate_subexp_standard): Pass object to
14535 find_overload_match by reference.
14539 * valarith.c: Replace value_ptr with struct value pointer. Remove
14540 register attribute from value declarations.
14543 * scm-lang.c (scm_lookup_name): Ditto.
14547 Abstract the functionality of iterating over mapped memory
14548 regions into a general purpose iterator function.
14549 * procfs.c (iterate_over_mappings): New function, general purpose
14550 iterator for memory sections.
14551 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14552 (solib_mappings_callback): New function, callback for above.
14553 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14554 (info_mappings_callback): New function, callback for above.
14556 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14560 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14561 * i386-tdep.c: Include "elf-bfd.h".
14562 (process_note_abi_tag_sections): New function.
14563 (i386_gdbarch_init): Add code to recognize various OS/ABI
14566 * maint.c (_initialize_maint_cmds): Add missing \ in
14569 For older changes see ChangeLog-2001
14575 version-control: never