1 2002-12-13 Andrew Cagney <ac131313@redhat.com>
3 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
4 pass that to set_momentary_breakpoint. Move comments to where they
6 * frame.h (set_current_frame): Delete declaration.
7 * frame.c (set_current_frame): Delete function.
9 2002-12-13 Andrew Cagney <ac131313@redhat.com>
11 * frame.c (frame_extra_info_zalloc): New function.
12 * frame.h (frame_extra_info_zalloc): Declare.
14 2002-12-13 Joel Brobecker <brobecker@gnat.com>
16 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
17 in the previous prototype change to set_momentary_breakpoint.
19 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
21 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
23 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
24 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
25 (stop_stepping): Remove outdated check for child vfork events.
27 2002-12-12 Andrew Cagney <ac131313@redhat.com>
29 * GDB 5.3 released from gdb_5_3-branch.
31 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
33 * corelow.c (init_core_ops): Delete references to to_require_attach
34 and to_require_detach.
35 * exec.c (init_exec_ops): Likewise.
36 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
37 hppa_require_detach directly.
38 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
39 * inftarg.c (child_detach): Remove.
40 (child_detach_from_process): Rename to child_detach, remove
42 (child_attach): Remove.
43 (child_attach_to_process): Rename to child_attach, remove after_fork
45 (init_child_ops): Delete references to to_require_attach
46 and to_require_detach.
47 * infttrace.c (hppa_require_attach): Update comment.
48 * target.c (cleanup_target, update_current_target)
49 (init_dummy_target, setup_target_debug): Delete references to
50 to_require_attach and to_require_detach.
51 (find_default_require_detach, find_default_require_attach)
52 (debug_to_require_attach, debug_to_require_detach): Remove
54 * target.h (struct target_ops): Remove to_require_attach
55 and to_require_detach.
56 (target_require_attach, target_require_detach): Delete macros.
57 (find_default_require_detach, find_default_require_attach): Delete
59 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
61 2002-12-11 Andrew Cagney <ac131313@redhat.com>
63 * frame.c (get_frame_extra_info): New function.
64 * frame.h (get_frame_extra_info): Declare.
66 2002-12-11 Andrew Cagney <ac131313@redhat.com>
68 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
69 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
70 with `struct frame_id'.
71 (set_longjmp_resume_breakpoint): Ditto.
72 * infrun.c (handle_inferior_event): Update.
73 * breakpoint.c (watch_command_1, until_break_command): Update.
74 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
75 (handle_inferior_event, step_over_function): Update.
76 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
77 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
78 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
79 * infcmd.c (finish_command, run_stack_dummy): Update.
81 2002-12-11 Kevin Buettner <kevinb@redhat.com>
83 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
84 (dwarf2_non_const_array_bound_ignored)
85 (dwarf2_missing_line_number_section)
86 (dwarf2_statement_list_fits_in_line_number_section)
87 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
88 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
89 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
90 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
91 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
92 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
93 (dwarf2_missing_member_fn_type_complaint)
94 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
95 (dwarf2_const_value_length_mismatch)
96 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
97 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
98 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
99 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
100 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
101 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
102 complaints using deprecated struct..
103 (dwarf2_non_const_array_bound_ignored_complaint)
104 (dwarf2_complex_location_expr_complaint)
105 (dwarf2_unsupported_at_frame_base_complaint)
106 (dwarf2_const_value_length_mismatch_complaint)
107 (dwarf2_macros_too_long_complaint)
108 (dwarf2_macro_malformed_definition_complaint)
109 (dwarf2_invalid_attrib_class_complaint): New functions.
110 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
111 (read_structure_scope, read_array_type, read_common_block)
112 (read_tag_pointer_type, read_base_type, read_partial_die)
113 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
114 (new_symbol, dwarf2_const_value, read_type_die)
115 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
116 (parse_macro_definition, dwarf_decode_macros): Replace calls to
117 complain() with, possibly indirect, calls to complaint().
119 2002-12-11 Andrew Cagney <cagney@redhat.com>
121 * frame.c (deprecated_get_frame_saved_regs): Rename
122 get_frame_saved_regs.
123 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
124 * sparc-tdep.c: Update.
125 * hppa-tdep.c: Update.
126 * h8500-tdep.c: Update.
128 2002-12-11 Kevin Buettner <kevinb@redhat.com>
130 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
131 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
132 ``char *'' for return and parameter types.
133 * gdbarch.h, gdbarch.c: Regenerate.
134 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
135 return type from ``char *'' to ``const char *''.
136 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
139 2002-12-11 Mark Kettenis <kettenis@gnu.org>
141 * i386-tdep.c: Include "dummy-frame.h".
142 (i386_frame_chain, i386_frame_saved_pc): Replace
143 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
144 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
146 2002-12-10 Andrew Cagney <cagney@redhat.com>
148 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
149 Change to a function with predicate.
150 * gdbarch.h, gdbarch.c: Re-generate.
151 * frame.c (get_prev_frame): Update. Test
152 DEPRECATED_INIT_FRAME_PC_P.
153 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
154 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
155 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
156 * alpha-tdep.c (alpha_gdbarch_init): Update.
157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
158 * mips-tdep.c (mips_gdbarch_init): Update.
159 * i386-interix-tdep.c (i386_interix_init_abi): Update.
160 * arm-tdep.c: Update comments.
161 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
162 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
163 * frv-tdep.c (frv_gdbarch_init): Ditto.
164 * x86-64-tdep.c (x86_64_init_abi): Ditto.
165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
166 * s390-tdep.c (s390_gdbarch_init): Ditto.
167 * v850-tdep.c (v850_gdbarch_init): Ditto.
168 * vax-tdep.c (vax_gdbarch_init): Ditto.
169 * sh-tdep.c (sh_gdbarch_init): Ditto.
170 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
172 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
174 * i386-tdep.c (i386_gdbarch_init): Ditto.
175 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
176 * cris-tdep.c (cris_gdbarch_init): Ditto.
177 * avr-tdep.c (avr_gdbarch_init): Ditto.
178 * arm-tdep.c (arm_gdbarch_init): Ditto.
179 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
180 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
182 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
184 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
186 * hppah-nat.c (saved_vfork_pid): Add.
187 (child_post_follow_vfork): Remove.
188 (child_follow_fork): New function.
189 (child_wait): Call detach_breakpoints after receiving the child vfork.
190 Call child_resume directly instead of going through resume ().
191 Make sure we have the exec before reporting the vfork.
192 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
193 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
194 (follow_fork): New function. Call target_follow_fork.
195 (follow_inferior_reset_breakpoints): New function broken out from
196 old follow_inferior_fork.
197 (resume): Remove hack to follow exec after vfork.
198 * inftarg.c (child_post_follow_vfork): Remove.
199 (child_follow_fork): New function.
200 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
201 * target.c (cleanup_target): Replace to_post_follow_vfork with
203 (update_current_target): Likewise.
204 (setup_target_debug): Likewise.
205 (debug_to_post_follow_vfork): Remove.
206 (debug_to_follow_fork): New function.
207 * target.h (struct target_ops): Replace to_post_folow_vfork with
209 (child_post_follow_vfork): Remove prototype.
210 (child_follow_fork): Add prototype.
211 (target_post_follow_vfork): Remove macro.
212 (target_follow_fork): Add macro.
214 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
216 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
217 (child_post_follow_vfork): Cancel pending exec event if we follow
219 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
220 events have been processed. Return a fake TARGET_WAITKIND_EXECD
221 event at the following wait call if necessary.
222 * infrun.c (follow_vfork): Don't follow_exec here.
223 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
224 case about HP/UX 10.20. Remove code pushed down to
225 hppah-nat.c:child_wait.
226 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
227 vfork_in_flight is set.
229 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
231 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
232 for the parent's fork event.
233 * infrun.c (handle_inferior_event): Only expect one fork event.
234 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
235 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
237 2002-12-10 Andrew Cagney <ac131313@redhat.com>
239 * PROBLEMS: Delete reference to PR gdb/725.
241 * MAINTAINERS (gdb.c++): Add David Carlton.
243 2002-12-09 David Carlton <carlton@math.stanford.edu>
245 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
246 * cli/cli-cmds.c: Ditto.
248 2002-12-09 Andrew Cagney <cagney@redhat.com>
250 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
251 function address in <>.
252 * gdbarch.c: Re-generate.
254 2002-12-09 David Carlton <carlton@math.stanford.edu>
256 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
258 2002-12-09 David Carlton <carlton@math.stanford.edu>
260 * linespec.c (symtab_from_filename): New function.
261 (decode_line_1): Move code into symtab_from_filename.
263 2002-12-09 Kevin Buettner <kevinb@redhat.com>
265 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
267 2002-12-07 Andrew Cagney <ac131313@redhat.com>
269 * f-valprint.c (info_common_command): Use get_frame_pc.
270 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
271 * ax-gdb.c (agent_command): Ditto.
272 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
273 (rs6000_pop_frame): Ditto.
274 (rs6000_frameless_function_invocation): Ditto.
275 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
276 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
277 * macroscope.c (default_macro_scope): Ditto.
278 * stack.c (print_frame_info_base): Ditto.
279 (print_frame, frame_info, print_frame_label_vars): Ditto.
280 (return_command, func_command, get_frame_language): Ditto.
281 * infcmd.c (finish_command): Ditto.
282 * dummy-frame.c (cached_find_dummy_frame): Ditto.
283 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
284 (break_at_finish_at_depth_command_1): Ditto.
285 (break_at_finish_command_1): Ditto.
286 (until_break_command, get_catch_sals): Ditto.
287 * blockframe.c (func_frame_chain_valid): Ditto.
288 (frameless_look_for_prologue): Ditto.
289 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
291 2002-12-08 Andrew Cagney <ac131313@redhat.com>
293 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
294 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
296 2002-12-08 Andrew Cagney <ac131313@redhat.com>
298 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
300 * gdbarch.h, gdbarch.c: Re-generate.
301 * frame.c (get_prev_frame): Explictly assign prev's pc with value
302 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
304 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
305 declaration to a function returning a CORE_ADDR.
306 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
307 * arch-utils.c (init_frame_pc_noop): Return the PC value.
308 (init_frame_pc_default): Ditto.
309 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
310 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
311 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
312 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
313 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
314 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
316 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
317 to init_frame_pc_noop.
318 (i386_interix_init_frame_pc): Delete function.
319 * z8k-tdep.c (init_frame_pc): Delete function.
320 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
321 (INIT_FRAME_PC_FIRST): Ditto.
322 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
323 (INIT_FRAME_PC_FIRST): Ditto.
324 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
325 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
327 (INIT_FRAME_PC_FIRST): Convert to an expression.
328 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
330 2002-12-08 Andrew Cagney <ac131313@redhat.com>
332 * blockframe.c: Use get_frame_base instead of directly accessing
333 the `struct frame_info' member frame.
334 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
335 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
337 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
339 * Makefile.in (readline_h): Define.
340 (completer.o): Depend on readline_h.
342 (event-top.o): Ditto.
349 (tracepoint.o): Ditto.
352 (tui-hooks.o): Ditto.
355 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
357 More cleanup from import of readline 4.3.
358 * completer.h (complete_line, readline_line_completion_function):
360 (line_completion_function): Removed, not used outside of completer.c.
361 * completer.c (readline_line_completion_function,
362 complete_function, line_completion_function): Use const for first
364 (line_completion_function): Make static.
365 (filename_completer): filename_completion_function is now called
366 rl_filename_completion_function
367 * corelow.c: Include <readline/readline.h>.
373 * top.c (init_main): No need to coerce
374 readline_line_completion_function anymore.
375 * cli/cli-dump.c: Include <readline/readline.h>.
377 2002-12-08 Andrew Cagney <ac131313@redhat.com>
379 * stack.c (frame_info): Use get_prev_frame.
380 * blockframe.c (frame_address_in_block): Ditto.
381 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
382 (rs6000_frameless_function_invocation): Ditto.
383 (rs6000_frame_saved_pc): Ditto.
384 (rs6000_frame_chain): Ditto.
385 * arch-utils.c (init_frame_pc_default): Ditto.
387 2002-12-08 Andrew Cagney <ac131313@redhat.com>
389 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
390 Delete redundant definition.
392 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
394 Import of readline 4.3:
395 * cli/cli-cmds.c: Include readline/tilde.h.
396 * cli/cli-setshow.c: Ditto.
397 * defs.h: Don't declare tilde_expand anymore, since readline
400 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
402 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
403 -Werror on this file.
405 2002-12-07 Andrew Cagney <ac131313@redhat.com>
407 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
409 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
410 * gdbarch.c: Regenerate.
412 2002-12-06 Andrew Cagney <ac131313@redhat.com>
414 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
415 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
416 provide a default value.
417 * gdbarch.h, gdbarch.c: Regenerate.
418 * frame.c (get_prev_frame): Update. Check
419 DEPRECATED_INIT_FRAME_PC_FIRST_P.
420 * s390-tdep.c (s390_gdbarch_init): Update.
421 * mips-tdep.c (mips_gdbarch_init): Update.
422 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
423 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
424 * alpha-tdep.c (alpha_gdbarch_init): Update.
426 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
428 * ia64-linux-nat.c: Include gdb_string.h.
429 * alpha-nat.c: Ditto.
430 * ppc-linux-nat.c: Ditto.
431 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
434 2002-12-05 Andrew Cagney <ac131313@redhat.com>
436 * gdbthread.h: Include "frame.h".
437 (struct thread_info): Replace step_frame_address with
439 * inferior.h: Include "frame.h".
440 (step_frame_id): Replace external variable step_frame_address.
441 * gdbthread.h (save_infrun_state): Replace step_frame_address
442 parameter with step_frame_id parameter.
443 (load_infrun_state): Ditto.
444 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
445 * infcmd.c (step_frame_id, step_1, step_once): Update.
446 * thread.c (load_infrun_state, save_infrun_state): Update.
447 * infrun.c (clear_proceed_status, save_inferior_status): Update.
448 (handle_inferior_event, step_over_function): Update.
449 (normal_stop, context_switch, restore_inferior_status): Update.
450 (struct inferior_status): Replace step_frame_address with
453 2002-12-05 David Carlton <carlton@math.stanford.edu>
455 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
456 DW_TAG_member as well as a declaration as being a C++ static data
458 (read_structure_scope): Combine tests for DW_TAG_member and
461 2002-12-05 David Carlton <carlton@math.stanford.edu>
463 * linespec.c (decode_compound): New function.
464 (decode_line_1): Move code into decode_compound.
466 2002-12-05 David Carlton <carlton@math.stanford.edu>
468 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
470 (lookup_symbol_aux): Do the 'field_of_this' check before checking
471 the static block. See PR gdb/804.
473 2002-12-05 David Carlton <carlton@math.stanford.edu>
475 * symtab.c (lookup_symbol_aux_block): New function.
476 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
478 2002-12-05 Andrew Cagney <ac131313@redhat.com>
480 * gdbarch.sh: Dump the predicate function and macro values.
481 (read): Print error on standard error.
482 * gdbarch.c: Regenerate.
484 2002-12-04 Kevin Buettner <kevinb@redhat.com>
486 * Makefile.in (mips_tdep_h): Define.
487 (mips-tdep.o): Add mips_tdep_h to dependency list.
488 * mips-tdep.h: New file.
489 * mips-tdep.c (mips-tdep.h): Include.
490 (enum mips_abi): Move to mips-tdep.h.
491 (mips_abi): New function.
493 2002-12-04 David Carlton <carlton@math.stanford.edu>
495 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
497 2002-12-04 David Carlton <carlton@math.stanford.edu>
499 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
501 (lookup_symbol_aux_minsyms): New function.
503 2002-12-04 J. Brobecker <brobecker@gnat.com>
505 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
507 2002-12-04 J. Brobecker <brobecker@gnat.com>
509 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
510 which is an obsolete macro name.
512 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
514 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
515 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
517 2002-12-03 H.J. Lu (hjl@gnu.org)
519 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
520 (create_breakpoints): Make sure the addr_string field is not
523 2002-12-03 Andrew Cagney <ac131313@redhat.com>
525 * sparc-nat.c (fetch_inferior_registers)
526 (store_inferior_registers): Add comment on problem of LWP vs
529 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
530 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
531 (lin_lwp_store_registers): Remove.
532 (init_lin_lwp_ops): Use fetch_inferior_registers
533 and store_inferior_registers directly.
534 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
535 (store_inferior_registers): Likewise.
538 2002-12-03 Andrew Cagney <ac131313@redhat.com>
540 * frame.h (get_frame_id): Convert to a function.
541 (null_frame_id, frame_id_p): Declare.
542 (frame_id_eq, frame_id_inner): Declare.
543 (frame_id_build): New function.
544 * frame.c (get_frame_id): Update. Use null_frame_id.
545 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
547 (null_frame_id, frame_id_p): Define.
548 (frame_id_eq, frame_id_inner): Define.
549 (frame_id_build): New function.
550 * varobj.c (varobj_create): Update.
551 (varobj_update): Update.
552 * valops.c (value_assign): Update.
553 (new_root_variable): Update.
554 * infrun.c (save_inferior_status): Update.
555 * breakpoint.c (watch_command_1): Update.
557 2002-12-03 J. Brobecker <brobecker@gnat.com>
559 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
562 2002-12-03 Andrew Cagney <cagney@redhat.com>
564 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
567 * PROBLEMS: Mention PR gdb/725.
569 2002-12-03 Andreas Schwab <schwab@suse.de>
571 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
573 2002-12-02 Adam Fedor <fedor@gnu.org>
574 Klee Dienes <kdienes@apple.com>
576 * objc-lang.c (objc_printstr): Add width arg to match
578 (compare_selectors): Add 'const' to arg types.
579 (compare_classes): Likewise.
580 (find_imps): Cast msym pointer to avoid compiler warning.
581 (print_object_command): Validate the address before
582 passing it to the print routine.
583 (find_objc_msgcall_submethod): Change function argument to
585 * objc-lang.h: Add 'extern' to all function declarations.
586 (value_nsstring): Add declaration.
588 2002-12-02 J. Brobecker <brobecker@gnat.com>
590 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
591 Fixes a build failure on HP/UX.
593 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
595 (hpread_has_name): Advance declaration to avoid a compilation warning.
596 (pst_syms_count): Add missing variable type. By change, the compiler
597 was defaulting to int, which seems a good choice. Fixes a compilation
599 (pst_syms_size): Likewise.
601 2002-12-02 J. Brobecker <brobecker@gnat.com>
603 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
604 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
605 later to set the proper gdbarch methods depending on the osabi.
606 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
608 2002-12-02 J. Brobecker <brobecker@gnat.com>
610 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
611 * osabi.c (gdb_osabi_name): Add strings images for the two new
613 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
615 2002-12-02 Andrew Cagney <ac131313@redhat.com>
617 * MAINTAINERS (Java): Global maintainers are responible for Java.
618 (Past Maintainers): Mention both Anthony Green and Per Bothner as
619 part Java maintainers.
621 2002-12-02 J. Brobecker <brobecker@gnat.com>
623 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
624 Fixes a compilation failure on AiX.
626 2002-12-02 J. Brobecker <brobecker@gnat.com>
628 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
629 why aix-thread.o is not listed.
631 2002-12-01 Andrew Cagney <ac131313@redhat.com>
633 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
634 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
635 * gdbarch.h, gdbarch.c: Re-generate.
636 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
637 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
638 * config/pa/tm-hppa.h, frame.h: Update.
639 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
640 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
641 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
642 * cris-tdep.c, alpha-tdep.c: Update.
643 * frame.c (set_unwind_by_pc, create_new_frame): Use either
644 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
645 (get_prev_frame): Ditto.
647 2002-11-30 Andrew Cagney <cagney@redhat.com>
649 * exec.c (xfer_memory): Replace boolean with int.
650 * p-exp.y: Use 0 instead of false.
651 * corelow.c (gdb_check_format): Change return type to int from
653 * utils.c: Don't include <curses.h> or <term.h> first.
655 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
657 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
658 (m68hc11_register_byte): Remove.
659 (m68hc11_gdbarch_init): Don't set the above.
661 2002-11-29 Andrew Cagney <cagney@redhat.com>
663 * remote-mips.c (mips_initialize): Force a selected frame rebuild
664 by calling get_selected_frame.
665 * ocd.c (ocd_start_remote): Use get_selected frame instead of
666 set_current_frame, create_new_frame, select_frame and
668 * remote-e7000.c (e7000_start_remote): Ditto.
669 * remote-mips.c (common_open): Ditto
670 * remote-rdp.c (remote_rdp_open): Ditto.
672 2002-11-29 Andreas Schwab <schwab@suse.de>
674 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
675 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
676 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
677 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
678 read_memory_unsigned_integer instead of read_memory_integer when
679 dealing with addresses and instruction opcodes.
680 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
681 (m68k_linux_frame_saved_pc): Likewise.
683 2002-11-29 Andrew Cagney <ac131313@redhat.com>
685 * stack.c (selected_frame, select_frame): Move from here ...
686 * frame.c (selected_frame, select_frame): ... to here. Include
688 * Makefile.in (frame.o): Update dependencies.
689 * frame.c (get_selected_frame): New function.
690 * frame.h (get_selected_frame): Declare.
691 (deprecated_selected_frame): Rename selected_frame.
692 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
693 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
694 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
695 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
696 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
697 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
698 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
699 * z8k-tdep.c, cli/cli-cmds.c: Update.
701 2002-11-29 Andrew Cagney <ac131313@redhat.com>
703 * frame.h (get_selected_block): Add comments.
705 2002-11-28 Andrew Cagney <ac131313@redhat.com>
707 * frame.c (pc_notcurrent): New function.
708 (find_frame_sal): New function.
709 * frame.h (find_frame_sal): Declare.
710 (struct symtab_and_line): Add opaque declaration.
711 * stack.c (print_frame_info_base): Use find_frame_sal instead of
714 * ada-lang.c (find_printable_frame): Ditto.
716 2002-11-28 J. Brobecker <brobecker@gnat.com>
718 * configure.in: Check that the pthdebug library is recent enough
719 before enabling thread support on native AiX.
720 * configure: Regenerate.
722 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
723 from the list of object files as it is now appended by configure
724 if thread support is enabled.
725 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
726 if thread support is enabled.
728 2002-11-28 Andrew Cagney <cagney@redhat.com>
730 * stack.c (get_selected_block): In-line get_current_block.
731 * frame.h (get_current_block): Delete declaration.
732 * blockframe.c (get_current_block): Delete function.
734 2002-11-28 Andrew Cagney <ac131313@redhat.com>
736 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
737 USE_GENERIC_DUMMY_FRAMES.
738 * gdbarch.h, gdbarch.c: Regenerate.
739 * valops.c, frame.c: Update.
740 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
741 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
742 * config/pa/tm-hppa.h, blockframe.c: Update.
743 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
744 * m68k-tdep.c, alpha-tdep.c: Ditto.
746 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
747 * mips-tdep.c: Ditto.
749 2002-11-27 Andrew Cagney <ac131313@redhat.com>
751 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
752 (USE_GENERIC_DUMMY_FRAMES): Default to true.
753 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
754 * gdbarch.c, gdbarch.h: Re-generate.
755 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
756 (CALL_DUMMY_LOCATION): Delete macro definition.
757 (PC_IN_CALL_DUMMY): Delete macro definitions.
759 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
760 default is already generic_pc_in_call_dummy.
761 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
762 * v850-tdep.c (v850_gdbarch_init): Ditto.
763 * sh-tdep.c (sh_gdbarch_init): Ditto.
764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
765 * mips-tdep.c (mips_gdbarch_init): Ditto.
766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
768 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
769 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
770 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
771 * avr-tdep.c (avr_gdbarch_init): Ditto.
773 * arm-tdep.c (arm_gdbarch_init): Do not set
774 use_generic_dummy_frames, default is already 1.
775 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
776 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
777 * v850-tdep.c (v850_gdbarch_init): Ditto.
778 * sh-tdep.c (sh_gdbarch_init): Ditto.
779 * s390-tdep.c (s390_gdbarch_init): Ditto.
780 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
781 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
782 * mips-tdep.c (mips_gdbarch_init): Ditto.
783 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
784 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
785 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
786 * i386-tdep.c (i386_gdbarch_init): Ditto.
787 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
788 * frv-tdep.c (frv_gdbarch_init): Ditto.
789 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
790 * cris-tdep.c (cris_gdbarch_init): Ditto.
791 * avr-tdep.c (avr_gdbarch_init): Ditto.
793 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
794 call_dummy_location, default is already AT_ENTRY_POINT.
795 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
796 * v850-tdep.c (v850_gdbarch_init): Ditto.
797 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
798 * sh-tdep.c (sh_gdbarch_init): Ditto.
799 * s390-tdep.c (s390_gdbarch_init): Ditto.
800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
801 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
802 * mips-tdep.c (mips_gdbarch_init): Ditto.
803 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
806 * i386-tdep.c (i386_gdbarch_init): Ditto.
807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
808 * frv-tdep.c (frv_gdbarch_init): Ditto.
809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
810 * cris-tdep.c (cris_gdbarch_init): Ditto.
811 * avr-tdep.c (avr_gdbarch_init): Ditto.
812 * arm-tdep.c (arm_gdbarch_init): Ditto.
813 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
815 2002-11-28 Andrew Cagney <cagney@redhat.com>
817 * frame.h: Update comments on set_current_frame, create_new_frame,
818 flush_cached_frames, reinit_frame_cache, select_frame and
821 2002-11-27 Andrew Cagney <cagney@redhat.com>
823 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
824 deprecated pc_in_call_dummy function.
825 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
826 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
827 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
828 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
829 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
831 2002-11-26 Martin M. Hunt <hunt@redhat.com>
833 * Makefile.in: Remove Tix dependencies.
834 * acinclude.m4: Ditto.
836 * configure.in: Ditto.
837 * configure: Regenerated.
839 2002-11-26 Andrew Cagney <ac131313@redhat.com>
841 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
842 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
843 * gdbarch.c: Re-generate.
845 2002-11-26 Andrew Cagney <ac131313@redhat.com>
847 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
848 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
849 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
850 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
851 pc_in_call_dummy_at_entry_point.
852 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
853 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
854 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
855 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
856 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
857 pc_in_call_dummy_on_stack.
858 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
859 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
860 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
861 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
862 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
864 2002-11-26 Andrew Cagney <ac131313@redhat.com>
866 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
867 pc_in_call_dummy_before_text_end
868 (deprecated_pc_in_call_dummy_after_text_end): Rename
869 pc_in_call_dummy_after_text_end.
870 (deprecated_pc_in_call_dummy_on_stack): Rename
871 pc_in_call_dummy_on_stack.
872 (deprecated_pc_in_call_dummy_at_entry_point): Rename
873 pc_in_call_dummy_at_entry_point.
874 * m68k-tdep.c (m68k_gdbarch_init): Update.
875 * s390-tdep.c (s390_gdbarch_init): Update.
876 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
877 * vax-tdep.c (vax_gdbarch_init): Update.
878 * sparc-tdep.c (sparc_gdbarch_init): Update.
879 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
880 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
881 * i386-tdep.c (i386_gdbarch_init): Update.
882 * frv-tdep.c (frv_gdbarch_init): Update.
883 * cris-tdep.c (cris_gdbarch_init): Update.
884 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
885 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
886 (deprecated_pc_in_call_dummy_after_text_end)
887 (deprecated_pc_in_call_dummy_on_stack)
888 (deprecated_pc_in_call_dummy_at_entry_point): Update.
889 * alpha-tdep.c (alpha_gdbarch_init): Update.
891 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
893 * acconfig.h (HAVE_PREAD64): Add.
894 * configure.in: Check for pread64.
895 * config.in: Regenerated.
896 * configure: Regenerated.
897 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
898 * linux-proc.c (linux_proc_xfer_memory): New function.
899 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
901 2002-11-25 David Carlton <carlton@math.stanford.edu>
903 * dwarf2read.c (scan_partial_symbols): Descend into namespace
906 2002-11-25 Andrew Cagney <ac131313@redhat.com>
908 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
909 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
911 2002-11-25 Jim Blandy <jimb@redhat.com>
913 * symfile.c (init_objfile_sect_indices): New function.
914 (default_symfile_offsets): Move the section-index-initializing
915 stuff into init_objfile_sect_indices, and call that.
917 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
918 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
920 * symfile.c (syms_from_objfile): Adjust indentation.
922 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
923 || info_verbose isn't true.
925 2002-11-24 Andrew Cagney <ac131313@redhat.com>
927 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
928 default to get_frame_base.
929 * gdbarch.h, gdbarch.c: Regenerate.
930 * arch-utils.c (default_frame_address): Delete function.
931 * arch-utils.h (default_frame_address): Delete declaration
933 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
935 * varobj.c (find_frame_addr_in_frame_chain):
936 Use get_frame_base instead of FRAME_FP,
939 2002-11-19 Andrew Cagney <ac131313@redhat.com>
941 * frame.h (FRAME_FP): Delete macro.
942 (get_frame_base): New function declaration.
943 * frame.c (get_frame_base): New function.
944 (get_frame_id): Use ->frame.
945 (frame_find_by_id): Rewrite to use get_frame_id.
946 * blockframe.c: Use get_frame_base instead of FRAME_FP.
947 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
948 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
949 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
950 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
951 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
952 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
954 2002-11-24 Andrew Cagney <ac131313@redhat.com>
956 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
958 2002-11-24 Andrew Cagney <ac131313@redhat.com>
960 * frame.c (set_unwind_by_pc): Revert change below, use
962 (get_prev_frame): Ditto.
964 2002-11-24 Andrew Cagney <ac131313@redhat.com>
966 * dummy-frame.c (pc_in_dummy_frame): New function.
967 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
968 (find_dummy_frame): Update comment.
969 (generic_pop_current_frame): Use get_frame_type.
970 * dummy-frame.h (pc_in_dummy_frame): Declare.
971 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
972 (create_new_frame): Use pc_in_dummy_frame.
973 (get_prev_frame): Use pc_in_dummy_frame.
974 (frame_saved_regs_register_unwind): Use get_prev_frame.
975 (deprecated_generic_get_saved_register): Use get_prev_frame.
977 2002-11-23 Andrew Cagney <ac131313@redhat.com>
979 * blockframe.c (find_frame_addr_in_frame_chain): Move function
981 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
982 (varobj_create): Note that frame ID should be used.
983 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
985 2002-11-23 Andrew Cagney <ac131313@redhat.com>
987 * breakpoint.c: Include "gdb_assert.h".
988 (deprecated_frame_in_dummy): Assert that generic dummy frames are
990 * Makefile.in (breakpoint.o): Update dependencies.
991 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
992 deprecated_frame_in_dummy.
993 * stack.c (print_frame_info_base): Ditto.
995 (print_frame_info_base): Ditto. Delete dead code.
997 2002-11-23 Andreas Schwab <schwab@suse.de>
999 * Makefile.in (m68k_tdep_h): Define.
1000 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1001 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1002 * m68k-tdep.c: Move register number enum ...
1003 * m68k-tdep.h: ... to this new file and rename the constants from
1004 E_* to M68K_*. All uses changed.
1005 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1006 * abug-rom.c: Include "m68k-tdep.h". Use
1007 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1008 * cpu32bug-rom.c: Likewise.
1009 * dbug-rom.c: Likewise.
1010 * m68k-tdep.c: Likewise.
1011 * m68klinux-nat.c: Likewise.
1012 * remote-est.c: Likewise.
1013 * rom68k-rom.c: Likewise.
1014 * config/m68k/tm-linux.h: Likewise.
1016 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1018 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1019 dummy frame initialization code.
1020 * mips-tdep.c (mips_gdbarch_init): Ditto.
1022 2002-11-22 Christopher Faylor <cgf@redhat.com>
1024 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1027 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1029 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1030 to default_frame_address.
1031 * gdbarch.h, gdbarch.c: Re-generate.
1033 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1034 or frame_locals_address to default_frame_address.
1035 * m68k-tdep.c (m68k_gdbarch_init): Update.
1036 * i386-tdep.c (i386_gdbarch_init): Update.
1037 * frv-tdep.c (frv_gdbarch_init): Update.
1038 * sh-tdep.c (sh_gdbarch_init): Update.
1039 * v850-tdep.c (v850_gdbarch_init): Update.
1040 * sparc-tdep.c (sparc_gdbarch_init): Update.
1041 * mips-tdep.c (mips_gdbarch_init): Update.
1042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1043 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1046 * cris-tdep.c (cris_frame_args_address): Delete function.
1047 (cris_frame_locals_address): Delete function.
1048 (cris_gdbarch_init): Do not set frame_args_address or
1049 frame_locals_address.
1051 2002-11-22 Michael Snyder <msnyder@redhat.com>
1053 * thread-db.c (thread_db_load): Tell the user what's going on
1054 if dlopen fails on libthread_db.
1056 2002-11-23 Andreas Schwab <schwab@suse.de>
1058 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1059 invariant return values.
1061 2002-11-22 Andreas Schwab <schwab@suse.de>
1063 * valops.c (value_slice): Move declaration of `offset' to avoid
1066 2002-11-22 Christopher Faylor <cgf@redhat.com>
1068 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1069 (struct so_stuff): Add end_addr field.
1070 (register_loaded_dll): Calculate and store end address of loaded dll.
1071 (solib_address): New function.
1072 (child_solib_loaded_library_pathname): Pass carefully constructed
1073 section info to safe_symbol_file_add rather than ignoring it.
1074 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1076 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1077 (child_create_inferior): Fix a compiler warning.
1078 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1079 (solib_address): Declare new function.
1081 2002-11-22 Andreas Schwab <schwab@suse.de>
1083 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1086 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1088 * maint.c (_initialize_maint_cmds): Fix typo. From
1089 Francesco Potorti` <pot@gnu.org>.
1091 2002-11-21 Andrew Cagney <cagney@redhat.com>
1093 * mips-tdep.c (mips_dump_tdep): Delete references to
1094 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1095 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1096 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1097 * printcmd.c (build_address_symbolic): Delete calls to
1098 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1099 (address_info): Ditto.
1102 2002-11-19 Klee Dienes <kdienes@apple.com>
1103 Adam Fedor <fedor@gnu.org>
1105 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1106 the ability to explicitly specify the quote characters and word
1107 break characters; if NULL is specified for either, use the old
1108 behavior of using the characters used by the completer.
1109 (skip_chars): New function. Convenience wrapper around
1110 skip_quoted_chars to provide the original skip_chars behavior.
1111 * completer.h (skip_quoted_chars): Add prototype.
1113 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1115 Problems reported by Paul Eggert.
1116 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1118 2002-11-19 Andreas Schwab <schwab@suse.de>
1120 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1121 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1122 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1123 (m68k_linux_frame_saved_pc): Move to ...
1124 * m68klinux-tdep.c: ... here. New file.
1125 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1126 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1128 2002-11-19 Adam Fedor <fedor@gnu.org>
1130 * objc-exp.y: Revert to old skip_quoted usage.
1132 2002-11-19 Adam Fedor <fedor@gnu.org>
1134 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1135 (objc_lang_h): Define.
1136 (YYFILES): Add objc-exp.tab.c.
1137 (local-maintainer-clean): Remove objc-exp.tab.c.
1138 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1140 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1142 * p-exp.y (typecast rule): Add automatic dereference of
1143 pascal classes if needed.
1144 (THIS): Set current_type.
1145 Automatically dereference pascal classes.
1146 (typebase rule): Add ^typebase recognition.
1148 2002-11-18 Adam Fedor <fedor@gnu.org>
1150 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1151 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1152 (op_name): Handle OP_OBJC_SELF.
1153 * Makefile.in (expprint.o): Add additional depends.
1155 2002-11-18 Adam Fedor <fedor@gnu.org>
1157 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1158 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1159 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1160 * objc-exp.y: Likewise.
1162 2002-11-18 Adam Fedor <fedor@gnu.org>
1164 * gdb/parser-defs.h: (struct objc_class_str): New structure
1165 for parsing ObjC classes.
1167 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1169 * stack.c (frame_relative_level): Copy function from here ...
1170 * frame.c (frame_relative_level): ...to here.
1172 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1174 * frame.h (enum frame_type): Define.
1175 (get_frame_type): Declare.
1176 (struct frame_info): Add field `type'. Delete field
1177 signal_handler_caller.
1178 (deprecated_set_frame_signal_handler_caller): Declare.
1179 * frame.c (get_frame_type): New function.
1180 (deprecated_set_frame_type): New function.
1181 (create_new_frame): Set the frame's type.
1182 (get_prev_frame): Similar.
1183 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1184 * s390-tdep.c: Ditto.
1185 * m68klinux-nat.c: Ditto.
1186 * ns32k-tdep.c: Ditto.
1187 * x86-64-linux-tdep.c: Ditto.
1188 * vax-tdep.c: Ditto.
1189 * rs6000-tdep.c: Ditto.
1190 * ppc-linux-tdep.c: Ditto.
1191 * i386-interix-tdep.c: Ditto.
1192 * mips-tdep.c: Ditto.
1193 * m68k-tdep.c: Ditto.
1194 * hppa-tdep.c: Ditto.
1195 * ia64-tdep.c: Ditto.
1196 * cris-tdep.c: Ditto.
1197 * arm-tdep.c: Ditto.
1198 * alpha-tdep.c: Ditto.
1199 * i386-tdep.c: Ditto.
1201 * ada-lang.c: Ditto.
1202 * blockframe.c: Update.
1203 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1204 deprecated_set_frame_type instead of signal_handler_caller.
1205 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1206 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1207 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1209 2002-11-18 Klee Dienes <kdienes@apple.com>
1211 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1213 2002-11-18 Klee Dienes <kdienes@apple.com>
1215 * buildsym.c (pop_context): Add comment.
1217 2002-11-18 Klee Dienes <kdienes@apple.com>
1219 * buildsym.h (pop_context): Convert to function, defined in
1221 * buildsym.c: Include gdb_assert.h.
1222 (pop_context): Implement as C function. Add check for stack
1224 * dbxread.c (process_one_symbol): Complain and stop processing
1225 that symbol if we are already at the top of the context stack for
1226 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1227 when processing N_RBRAC.
1229 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1231 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1233 (struct target_waitstatus): Add opaque definition.
1234 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1235 * exec.c (init_exec_ops): Likewise.
1236 * fork-child.c (clone_and_follow_inferior): Remove.
1237 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1238 * inferior.h (clone_and_follow_inferior): Remove prototype.
1239 * infrun.c (follow_fork_mode_both): Remove.
1240 (follow_fork_mode_kind_names): Remove commented out "both".
1241 (follow_inferior_fork): Remove follow_fork_mode_both support.
1242 * inftarg.c (child_clone_and_follow_inferior): Remove.
1243 (child_post_follow_inferior_by_clone): Remove.
1244 (init_child_ops): Don't set to_clone_and_follow_inferior
1245 or to_post_follow_inferior_by_clone.
1246 * target.c (default_clone_and_follow_inferior): Remove.
1247 (cleanup_target): Don't set to_clone_and_follow_inferior
1248 or to_post_follow_inferior_by_clone.
1249 (find_default_clone_and_follow_inferior): Remove.
1250 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1251 (debug_to_clone_and_follow_inferior): Remove.
1252 (debug_to_post_follow_inferior_by_clone): Remove.
1253 (setup_target_debug): Don't set to_clone_and_follow_inferior
1254 or to_post_follow_inferior_by_clone.
1255 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1256 and to_post_follow_inferior_by_clone.
1257 (child_clone_and_follow_inferior): Remove prototype.
1258 (child_post_follow_inferior_by_clone): Remove prototype.
1259 (target_clone_and_follow_inferior): Remove macro.
1260 (target_post_follow_inferior_by_clone): Remove macro.
1261 (find_default_clone_and_follow_inferior): Remove prototype.
1263 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1265 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1266 inferior_has_vforked, and inferior_has_execd instead of
1267 target_has_forked, target_has_vforked, and target_has_execd.
1268 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1269 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1270 (CHILD_WAIT): Define.
1271 (child_wait): Add prototype.
1272 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1274 (hpux_has_vforked): Likewise, from child_has_vforked.
1275 (hpux_has_execd): Likewise, from child_has_execd.
1276 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1277 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1278 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1279 and hpux_has_syscall_event instead of the target hooks.
1280 * infrun.c (inferior_has_forked, inferior_has_vforked)
1281 (inferior_has_execd): New functions.
1282 * inftarg.c (not_same_real_pid): Remove.
1283 (child_wait): Remove references to not_same_real_pid,
1284 target_has_forked, target_has_vforked, target_has_execd,
1285 and target_has_syscall_event.
1286 (child_has_forked, child_has_vforked, child_has_execd)
1287 (child_has_syscall_event): Remove.
1288 (init_child_ops): Remove references to child_has_forked,
1289 child_has_vforked, child_has_execd, and child_has_syscall_event.
1290 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1291 (hpux_has_vforked): Likewise, from child_has_vforked.
1292 (hpux_has_execd): Likewise, from child_has_execd.
1293 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1294 * target.c (cleanup_target): Remove references to
1295 to_has_forked, to_has_vforked, to_has_execd, and
1296 to_has_syscall_event.
1297 (update_current_target): Likewise.
1298 (setup_target_debug): Likewise.
1299 (debug_to_has_forked): Remove.
1300 (debug_to_has_vforked): Remove.
1301 (debug_to_has_execd): Remove.
1302 (debug_to_has_syscall_event): Remove.
1303 * target.h (struct target_ops): Remove to_has_forked.
1304 to_has_vforked, to_has_execd, and to_has_syscall_event.
1305 (child_has_forked, child_has_vforked, child_has_execd)
1306 (child_has_syscall_event): Remove prototypes.
1307 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1309 (target_has_forked, target_has_vforked, target_has_execd)
1310 (target_has_syscall_event): Remove macros.
1312 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1314 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1315 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1316 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1317 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1318 * target.c (cleanup_target): Remove reference to
1319 to_can_follow_vfork_prior_to_exec.
1320 (update_current_target): Likewise.
1321 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1322 (setup_target_debug): Remove reference to
1323 to_can_follow_vfork_prior_to_exec.
1324 * target.h (struct target_ops): Remove
1325 to_can_follow_vfork_prior_to_exec.
1326 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1327 (target_can_follow_vfork_prior_to_exec): Remove definition.
1328 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1330 * infrun.c (follow_vfork_when_exec): Remove.
1331 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1332 (follow_exec): Likewise.
1333 (handle_inferior_event): Likewise.
1334 (keep_going): Likewise.
1336 2002-11-15 Andrew Cagney <cagney@redhat.com>
1338 * frame.c (generic_unwind_get_saved_register): Make static.
1339 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1340 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1341 defaults to generic_unwind_get_saved_register.
1342 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1344 * frv-tdep.c (frv_gdbarch_init): Ditto.
1345 * i386-tdep.c (i386_gdbarch_init): Ditto.
1346 * s390-tdep.c (s390_gdbarch_init): Ditto.
1347 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1348 * v850-tdep.c (v850_gdbarch_init): Ditto.
1349 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1350 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1351 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1353 2002-11-15 Andrew Cagney <cagney@redhat.com>
1355 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1358 2002-11-15 Andrew Cagney <cagney@redhat.com>
1360 * frame.h (sigtramp_saved_pc): Delete declaration.
1361 * blockframe.c (sigtramp_saved_pc): Delete function.
1362 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1363 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1364 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1365 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1367 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1369 * frame.c (frame_pc_unwind): New function.
1370 (frame_saved_regs_pc_unwind): New function.
1371 (frame_register_unwind): Pass unwind_cache instead of
1372 register_unwind_cache.
1373 (set_unwind_by_pc): Add unwind_pc parameter, set.
1374 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1375 (get_prev_frame): Ditto.
1376 * frame.h (frame_pc_unwind_ftype): Declare.
1377 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1378 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1379 (frame_pc_unwind): Declare.
1380 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1381 (struct dummy_frame): Add comment mentioning that values are for
1383 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1384 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1385 (generic_file_frame_chain_valid): Ditto.
1386 * stack.c (frame_info): Ditto.
1388 2002-11-15 David Carlton <carlton@math.stanford.edu>
1390 * linespec.c (locate_first_half): New function.
1391 (decode_line_1): Move code into locate_first_half.
1393 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1395 * complaints.h: Add comment explaining how to eliminate a
1396 deprecated_complain call.
1397 * complaints.h: Fix spelling errors.
1399 2002-11-15 David Carlton <carlton@math.stanford.edu>
1401 * printcmd.c: Remove #include "disasm.h".
1403 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1405 * frame.h: Move the most relevant interface functions to the start
1408 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1410 * regcache.h (deprecated_registers): Rename registers.
1411 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1412 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1413 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1414 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1415 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1416 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1417 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1418 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1419 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1420 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1421 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1422 * v850ice.c: Update.
1424 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1426 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1429 2002-11-13 Andrew Cagney <cagney@redhat.com>
1431 * regcache.h (deprecated_read_register_bytes): Rename
1432 read_register_bytes.
1433 (deprecated_write_register_bytes): Rename write_register_bytes.
1434 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1435 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1436 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1437 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1438 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1439 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1440 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1441 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1442 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1443 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1444 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1445 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1446 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1447 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1449 2002-11-13 Jim Blandy <jimb@redhat.com>
1451 * findvar.c (read_var_value): Doc fix.
1453 2002-11-13 Andrew Cagney <cagney@redhat.com>
1455 * regcache.c (struct regcache): Replace passthough_p with
1457 (regcache_xmalloc): Initialize readonly_p.
1458 (build_regcache): Initialize readonly_p.
1459 (regcache_save): New function.
1460 (regcache_restore): New function.
1461 (regcache_cpy): Re-implement using regcache_save and
1463 (regcache_raw_read): Update.
1464 (regcache_cooked_read): When a read-only cache, checked for cached
1465 pseudo register values.
1466 (regcache_raw_write): Assert that the cache is not read-only.
1467 Remove code handling a non-passthrough cache.
1468 * regcache.h (regcache_save): Declare.
1469 (regcache_restore): Declare.
1471 2002-11-13 Andrew Cagney <cagney@redhat.com>
1473 * regcache.c (struct regcache_descr): Add fields
1474 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1475 (init_legacy_regcache_descr): Compute the size of a cooked
1476 register cache and then assign that to sizeof_raw_registers. Set
1477 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1478 (init_legacy_regcache_descr): Ditto.
1480 2002-11-13 Andrew Cagney <cagney@redhat.com>
1482 * regcache.c (register_buffer): Move to near start of file, update
1484 (regcache_raw_read): Use.
1485 (regcache_raw_write): Use.
1486 (struct regcache): Rename raw_registers to registers and
1487 raw_register_valid_p to register_valid_p.
1488 (regcache_xmalloc): Update.
1489 (regcache_xfree): Update.
1490 (register_buffer): Update.
1491 (regcache_cpy): Update.
1492 (regcache_cpy_no_passthrough): Update.
1493 (regcache_valid_p): Update.
1494 (deprecated_grub_regcache_for_registers): Update.
1495 (deprecated_grub_regcache_for_register_valid): Update.
1496 (set_register_cached): Update.
1497 (regcache_raw_write): Update.
1499 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1501 * p-exp.y (name_not_typename): Use copy_name to
1502 set current_type variable for fields of THIS.
1504 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1506 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1507 * monitor.c (init_base_monitor_ops): Likewise.
1508 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1509 * remote-array.c (init_array_ops): Likewise.
1510 * remote-e7000.c (init_e7000_ops): Likewise.
1511 * remote-es.c (init_es1800_ops): Likewise.
1512 (init_es1800_child_ops): Likewise.
1513 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1514 * remote-sim.c (init_gdbsim_ops): Likewise.
1515 * remote-st.c (init_st2000_ops): Likewise.
1516 * sol-thread.c (init_sol_core_ops): Likewise.
1517 (init_sol_thread_ops): Likewise.
1518 * v850ice.c (init_850ice_ops): Likewise.
1519 * win32-nat.c (init_child_ops): Likewise.
1520 * wince.c (init_child_ops): Likewise.
1522 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1524 * utils.c (gdb_realpath): Make rp a constant pointer.
1526 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1528 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1529 a constant buffer; cannonicalize_file_name(); realpath() with a
1530 pathconf() defined buffer, xstrdup().
1532 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1534 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1535 to hang2.C; hang3.c to hang3.C.
1537 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1539 * findvar.c (read_var_value): Reenable TLS code.
1541 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1542 Jim Blandy <jimb@redhat.com>
1544 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1545 * target.c (update_current_target): Add
1546 to_get_thread_local_address.
1547 * target.h (to_get_thread_local_address): Export.
1548 (target_get_thread_local_address): Define.
1549 (target_get_thread_local_address_p): Define.
1550 * thread-db.c: Include solib-svr4.h.
1551 (td_thr_tls_get_addr_p): Define.
1552 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1553 (thread_db_get_thread_local_address): New function.
1554 (init_thread_db_ops): Initialize to_get_thread_local_address.
1555 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1556 * configure: Regenerate.
1557 * config.in: Regenerate.
1559 2002-11-11 David Carlton <carlton@math.stanford.edu>
1561 * linespec.c (set_flags): New function.
1562 (decode_line_1): Move code into set_flags.
1564 2002-11-11 David Carlton <carlton@math.stanford.edu>
1566 * linespec.c (decode_line_1): Move chunks of code to separate
1568 (initialize_defaults): New function.
1569 (decode_indirect): New function.
1571 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1573 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1574 instead of void_code_ptr.
1575 (sigtramp_saved_pc): Ditto.
1577 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1580 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1582 * gdbtypes.h (struct main_type): Move artificial flag out of
1583 loc. New member of ``struct field'' named static_kind. Reduce
1584 overloaded meaning of bitsize.
1585 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1586 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1587 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1589 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1591 (template_to_fixed_record_type, template_to_static_fixed_type)
1592 (to_record_with_fixed_variant_part): Likewise.
1593 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1594 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1595 * dwarfread.c (struct_type, enum_type): Likewise.
1596 * hpread.c (hpread_read_enum_type)
1597 (hpread_read_function_type, hpread_read_doc_function_type)
1598 (hpread_read_struct_type): Likewise.
1599 * mdebugread.c (parse_symbol): Likewise.
1601 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1603 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1604 * stack.c (print_frame_info_base): Update.
1605 (print_frame_info_base, frame_info): Update.
1606 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1607 (sparc_frame_saved_pc): Update.
1608 * ada-lang.c (find_printable_frame): Update.
1609 * breakpoint.c (deprecated_frame_in_dummy): Update.
1611 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1613 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1615 (regmap): Extend to cover all registers.
1616 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1617 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1619 (fetch_register, sore_register): Simplify.
1620 (old_fetch_inferior_registers, old_store_inferior_registers):
1622 (cannot_fetch_register, cannot_store_register): Change
1623 implementation to use regmap array to decide which registers
1624 cannot be fetched/stored. This removes $orig_eax from the
1625 registers that cannot be fetched/stored.
1626 (fetch_inferior_registers): Call fetch_register directly instead
1627 of calling old_fetch_inferior_registers.
1628 (store_inferior_registers): Call store_register directly instead
1629 of calling old_store_inferior_registers.
1630 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1631 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1632 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1634 2002-11-09 Klee Dienes <kdienes@apple.com>
1636 * i387-tdep.c (i387_supply_register): When called with NULL as a
1637 buffer, mark the register as not provided (to mirror the behavior
1638 of supply_register).
1639 (i387_supply_fxsave): Ditto.
1640 (i387_supply_fsave): Ditto (inherits the behavior from
1641 i387_supply_register).
1643 2002-11-09 Klee Dienes <kdienes@apple.com>
1645 * blockframe.c (sigtramp_saved_pc): Use
1646 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1647 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1648 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1650 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1652 * frame.c (get_prev_frame): Test prev_p to identify a previously
1653 unwound frame. Initialize prev_p.
1654 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1657 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1659 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1660 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1661 more comments. Zap dead code.
1663 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1665 * infcmd.c (print_vector_info, print_float_info): Move code that
1666 checks whether the target has any registers and whether there is a
1667 selected frame up, such that it is also used if a target provides
1668 multi-arch definitions of these functions.
1670 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1672 * Makefile.in (DESTDIR): Define.
1673 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1676 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1677 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1679 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1681 * i386-linux-tdep.c: Include "reggroups.h".
1682 (i386_linux_register_reggroup_p): New function.
1683 (i386_linux_init_abi): Set register_reggroup_p to
1684 i386_linux_register_reggroup_p.
1685 * i386-tdep.h (i386_register_reggroup_p): Declare.
1686 * i386-tdep.c: Include "reggroups.h".
1687 (i386_init_reggroups): New function.
1688 (i386_add_reggroups): New function.
1689 (i386_register_reggroup_p): New function.
1690 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1691 (_initialize_i386_tdep): Call i386_init_reggroups.
1692 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1695 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1697 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1698 request that's available in *BSD.
1700 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1702 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1705 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1707 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1708 * dummy-frame.c (find_dummy_frame): Rename
1709 generic_find_dummy_frame, make static. Return the dummy frame
1710 instead of the regcache.
1711 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1712 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1713 (dummy_frame_register_unwind): Rename
1714 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1715 * dummy-frame.h (dummy_frame_register_unwind): Rename
1716 generic_call_dummy_register_unwind.
1718 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1720 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1721 except the inclusion of "i386/tm-i386.h", to...
1722 * config/i386/nm-i386v42mp.h: ...here.
1723 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1725 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1727 * Makefile.in (frame.o): Update dependencies.
1728 * blockframe.c (current_frame, frame_obstack_alloc)
1729 (frame_saved_regs_zalloc, get_current_frame)
1730 (set_current_frame, create_new_frame)
1731 (set_unwind_by_pc, get_next_frame)
1732 (flush_cached_frames, reinit_frame_cache)
1733 (frame_saved_regs_register_unwind)
1734 (deprecated_generic_get_saved_register)
1735 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1736 (_initialize_blockframe): Move frame code from here...
1737 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1738 "annotate.h" and "dummy-frame.h".
1739 (_initialize_frame): New function.
1741 2002-11-08 Jim Blandy <jimb@redhat.com>
1743 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1744 when we finish a function a context.
1745 * buildsym.h (outermost_context_p): New macro.
1746 (Bug analyzed by David Edelsohn.)
1748 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1750 * blockframe.c: Include "dummy-frame.h".
1751 (struct dummy_frame, dummy_frame_stack)
1752 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1753 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1754 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1755 (generic_save_call_dummy_addr, generic_pop_current_frame)
1756 (generic_pop_dummy_frame, generic_fix_call_dummy)
1757 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1758 dummy frame code from here...
1759 * dummy-frame.c: ...to here. New file.
1760 * dummy-frame.h: New file.
1761 (generic_call_dummy_register_unwind): Declare.
1762 (generic_find_dummy_frame): Declare.
1763 * Makefile.in (SFILES): Add dummy-frame.c.
1764 (dummy-frame.o): Specify dependencies.
1765 (dummy_frame_h): Define.
1766 (COMMON_OBS): Add dummy-frame.o.
1767 (blockframe.o): Update dependencies.
1769 2002-11-08 Jim Blandy <jimb@redhat.com>
1771 * dwarf2read.c (read_func_scope): Restore local_symbols and
1772 param_symbols after we finish the function context. (Based on a
1773 patch from David Edelsohn.)
1775 2002-11-08 David Carlton <carlton@math.stanford.edu>
1777 * linespec.c (symbol_found): New function.
1778 (minsym_found): New function.
1779 (decode_line_1): Separate out some code into separate functions.
1781 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1783 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1784 the benefit of the interix target.
1785 * i386-tdep.h (i386_frameless_signal_p): Declare.
1787 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1789 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1790 declaration that snuck in from change below.
1792 2002-11-06 Andrew Cagney <cagney@redhat.com>
1794 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1796 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1797 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1798 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1799 (i386_mxcsr_regnum_p): new function. Use instead of
1801 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1802 (i386_sse_regnum_p): Declare.
1803 (i386_mxcsr_regnum_p): Declare.
1804 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1805 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1806 (IS_FP_REGNUM): Update definition.
1807 (IS_FPU_CTRL_REGNUM): Update definition..
1808 (IS_SSE_REGNUM): Update definition..
1809 * i386v-nat.c (register_u_addr): Update.
1810 * go32-nat.c (fetch_register): Update.
1811 (store_register): Update.
1813 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1815 Preparation work to convert the hppa targets to multiarch partial.
1817 * hppa-tdep.c: Add new functions replacing macro bodies from
1818 config/pa/tm-hppa.h. These function will be used to initialize
1819 the gdbarch structure. Import some comments from tm-hppa.h,
1820 and place them where appropriate, to avoid loosing them when
1821 we cleanup this file.
1822 (hppa_reg_struct_has_addr): New function.
1823 (hppa_inner_than): New function.
1824 (hppa_stack_align): New function.
1825 (hppa_pc_requires_run_before_use): New function.
1826 (hppa_instruction_nullified): New function.
1827 (hppa_register_byte): New function.
1828 (hppa_register_virtual_type): New function.
1829 (hppa_store_struct_return): New function.
1830 (hppa_cannot_store_register): New function.
1831 (hppa_frame_args_address): New function.
1832 (hppa_frame_locals_address): New function.
1833 (hppa_smash_text_address): New function.
1834 (hppa_coerce_float_to_double): New function. Requires the inclusion
1837 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1839 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1840 gdbarch-eligible macro to a call to the new associated function
1841 created in hppa-tdep.c.
1842 (INNER_THAN): Likewise.
1843 (STACK_ALIGN): Likewise.
1844 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1845 (INSTRUCTION_NULLIFIED): Likewise.
1846 (REGISTER_BYTE): Likewise.
1847 (REGISTER_VIRTUAL_TYPE): Likewise.
1848 (STORE_STRUCT_RETURN): Likewise.
1849 (CANNOT_STORE_REGISTER): Likewise.
1850 (FRAME_ARGS_ADDRESS): Likewise.
1851 (FRAME_LOCALS_ADDRESS): Likewise.
1852 (SMASH_TEXT_ADDRESS): Likewise.
1853 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1854 (ABOUT_TO_RETURN): Delete, as no longer used.
1856 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1858 * printcmd.c (disassemble_command): Remove obsolete function.
1859 (_initialize_printcmd): Do not create disassemble command here.
1860 * cli/cli-cmds.c (disassemble_command): New function. Implements
1861 disassemble command.
1862 (init_cli_cmds): Create disassemble command here instead.
1864 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1866 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1868 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1870 * regcache.h (regcache_cooked_read_using_offset_hack)
1871 (regcache_cooked_write_using_offset_hack): Delete declarations.
1872 (register_changed): Delete declaration.
1873 * regcache.c (regcache_cooked_read_using_offset_hack)
1874 (regcache_cooked_write_using_offset_hack): Delete functions.
1875 (cooked_xfer_using_offset_hack): Delete function.
1876 (register_changed): Delete function.
1878 2002-11-07 Jim Blandy <jimb@redhat.com>
1880 * macroscope.c: #include "complaints.h".
1881 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1882 but not in the macro table.
1883 * Makefile.in (macroscope.o): Record dependency.
1885 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1887 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1889 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1891 * regcache.c (deprecated_registers_fetched): Update.
1892 * regcache.h (deprecated_registers_fetched): Rename
1894 * remote-vxsparc.c (vx_read_register): Update.
1895 * remote-vxmips.c (vx_read_register): Update.
1896 * remote-vx68.c (vx_read_register): Update.
1897 * irix5-nat.c (fetch_core_registers): Update.
1898 * mipsm3-nat.c (fetch_inferior_registers): Update.
1899 * sun3-nat.c (fetch_inferior_registers): Update.
1900 * symm-nat.c (fetch_inferior_registers): Update.
1901 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1902 (fetch_core_registers): Update.
1903 (fetch_kcore_registers): Update.
1904 * mips-nat.c (fetch_inferior_registers): Update.
1905 * corelow.c (get_core_registers): Update.
1906 * a68v-nat.c (fetch_inferior_registers): Update.
1908 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1910 Put in place the framework necessary for multiarching the hppa targets.
1911 * hppa-tdep.c (hppa_gdbarch_init): New function.
1912 (hppa_dump_tdep): New function.
1913 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1914 tdep structure dumper.
1915 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1916 until the multi-arching conversion has partially been completed.
1918 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1920 * valops.c (value_assign): Merge lval_register case into
1921 lval_reg_frame_relative. Use frame_register and
1922 regcache_cooked_write instead of get_saved_register and
1923 write_register_bytes. After flushing the register cache, try to
1924 re-select the selected frame.
1926 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1928 * regcache.h (deprecated_register_valid): Rename register_valid.
1929 * regcache.c: Update.
1930 * ia64-aix-nat.c: Update.
1931 * i386gnu-nat.c: Update.
1932 * alpha-nat.c: Update.
1933 * sparc-nat.c: Update.
1934 * lynx-nat.c: Update.
1935 * remote-mips.c: Update.
1937 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1939 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1940 to end of file, to be more consistent with the pratice followed
1943 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1945 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1946 (print_float_info): Print registers in float_reggroup.
1947 (print_vector_info): Print registers in vector_reggroup.
1948 (default_print_registers_info): When all, print registers in
1949 all_reggroup. Otherwize, print registers in general_reggroup.
1950 (registers_info): Rewrite. Add support for register groups.
1953 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1955 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1957 (symtab_symbol_info): Remove eons old ifdeffed out code.
1958 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1961 2002-11-06 Theodore A. Roth <troth@openavr.org>
1963 * c-exp.y: Add missing semi-colons.
1964 * f-exp.y: Add missing semi-colons.
1965 * m2-exp.y: Add missing semi-colons.
1966 * p-exp.y: Add missing semi-colons.
1967 Add empty action to start rule to avoid a type clash error when
1968 building with bison >= 1.50.
1970 2002-11-06 Jim Blandy <jimb@redhat.com>
1972 * macrotab.h (struct macro_source_file): Doc fix.
1974 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1976 * varobj.c (child_exists, cplus_number_of_children): Change
1977 STREQ macro references to strcmp.
1978 (cplus_name_of_child): Change code to handle the fact that
1979 fields are not necessarily contiguous with regards to their
1980 access control. This is a fix for PR gdb/792.
1982 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1984 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1985 * gdbarch.h, gdbarch.c: Regnerate.
1986 * frame.h (frame_register): Declare.
1987 * frame.c (frame_register): New function.
1988 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1989 GET_SAVED_REGISTER, otherwize call
1990 generic_unwind_get_saved_register.
1991 (frame_register_read): Use frame_register instead of
1994 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1996 From Jim Ingham <jingham@apple.com>:
1997 * event-top.c (gdb_disable_readline): New function.
1998 (_initialize_event_loop): Move comment.
2000 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2002 * event-loop.c (start_event_loop): Add comment.
2005 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2007 * infcmd.c (default_print_registers_info): Do not call
2008 PRINT_REGISTER_HOOK.
2010 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2012 * sparc-tdep.c (sparc_print_register_hook): Make static.
2013 (sparc_print_registers_info): New function.
2014 (sparc_do_registers_info): New function.
2015 (sparclet_print_registers_info): New function.
2016 (sparclet_do_registers_info): New function.
2017 (do_sparc_print_registers_info): New function.
2018 (sparc_print_registers): New static function, clone of infcmd.c's
2019 default_print_registers_info.
2020 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2021 (sparclet_do_registers_info): Declare.
2022 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2023 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2025 (sparc_do_registers_info): Declare.
2026 (PRINT_REGISTER_HOOK): Delete macro.
2027 (sparc_print_register_hook): Delete declaration.
2029 2002-11-05 David Carlton <carlton@math.stanford.edu>
2031 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2033 (lookup_symbol_aux_local): New function.
2034 (lookup_symbol_aux_symtabs): New function.
2035 (lookup_symbol_aux_psymtabs): New function.
2037 2002-11-05 David Carlton <carlton@math.stanford.edu>
2039 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2040 previous values of 'objfile' and 'block'.
2042 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2044 * values.c (value_change_enclosing_type): Set
2045 enclosing_type field correctly also for the case where
2046 more memory needs to be allocated.
2048 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2050 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2053 * i387-tdep.c (i387_print_float_info): Replace calls to
2054 register_read and deprecated_read_register_gen with calls to
2055 frame_register_read, and make the necessary adjustments to the
2058 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2060 * gdbarch.sh (register_reggroup_p): Allow default value.
2061 * gdbarch.h, gdbarch.c: Regenerate.
2063 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2065 * regcache.h: Add coment indicating replacements for deprecated
2068 2002-11-02 Andrew Cagney <cagney@redhat.com>
2070 * reggroups.h, reggroups.c: New files.
2071 * regcache.c: Include "reggroups.h".
2072 (enum regcache_dump_what): Add `regcache_dump_groups'.
2073 (regcache_dump): Contract size of the "Type" column. When
2074 specified, dump the register's groups.
2075 (maintenance_print_register_groups): New function.
2076 (_initialize_regcache): Add command `maint print register-groups'.
2077 * Makefile.in (COMMON_OBS): Add reggroups.o
2078 (SFILES): Add reggroups.c.
2079 (reggroups_h): Define.
2080 (regcache.o, gdbarch.o): Update dependencies.
2081 (reggroups.o): Specify dependencies.
2082 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2083 Add opaque declaration for `struct reggroup' in generated .h file.
2084 Include "reggroups.h" in generated .c file.
2085 gdbarch.h, gdbarch.c: Re-generate.
2087 2002-11-02 Andrew Cagney <cagney@redhat.com>
2089 * regcache.h (deprecated_read_register_gen): Rename
2091 (deprecated_write_register_gen): Rename write_register_gen.
2092 * i387-tdep.c: Update.
2093 * x86-64-linux-nat.c: Update
2095 * thread-db.c: Update.
2096 * win32-nat.c: Update.
2097 * mips-tdep.c: Update.
2098 * d10v-tdep.c: Update.
2099 * cris-tdep.c: Update.
2100 * remote-sim.c: Update.
2101 * remote-rdi.c: Update.
2102 * remote-rdp.c: Update.
2105 * blockframe.c: Update.
2106 * x86-64-tdep.c: Update.
2107 * xstormy16-tdep.c: Update.
2108 * sh-tdep.c: Update.
2109 * s390-tdep.c: Update.
2110 * rs6000-tdep.c: Update.
2111 * sparc-tdep.c: Update.
2112 * i386-tdep.c: Update.
2113 * dwarf2cfi.c: Update.
2114 * regcache.c: Update.
2116 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2118 New interix-specific files:
2119 * config/i386/nm-interix.h: New file.
2120 * config/i386/interix.mh: New file.
2121 * config/i386/interix.mt: New file.
2122 * i386-interix-nat.c: New file.
2123 * i386-interix-tdep.c: New file.
2125 2002-11-01 Andrew Cagney <cagney@redhat.com>
2127 * frame.h (deprecated_generic_get_saved_register): Rename
2128 generic_get_saved_register.
2129 * blockframe.c (deprecated_generic_get_saved_register): Update.
2130 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2131 (xstormy16_frame_saved_register): Update.
2132 * sh-tdep.c (sh_gdbarch_init): Update.
2133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2134 * ia64-tdep.c (ia64_get_saved_register): Update.
2135 * cris-tdep.c (cris_gdbarch_init): Update.
2136 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2137 * arm-tdep.c (arm_gdbarch_init): Update.
2139 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2141 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2143 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2145 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2146 trampolines in sigaction.
2148 2002-10-31 Andrew Cagney <cagney@redhat.com>
2150 * h8300-tdep.c: Include "gdb_assert.h".
2151 (h8300_print_register): Add gdbarch, file and frame parameters.
2152 Use frame_read_unsigned_register to read the register's value.
2153 Use fprintf_filtered to display output.
2154 (h8300_print_registers_info): Replace h8300_do_registers_info.
2155 (h8300_gdbarch_init): Set print_registers_info.
2157 2002-10-31 Andrew Cagney <cagney@redhat.com>
2159 * frame.c (frame_read_unsigned_register): New function.
2160 (frame_read_signed_register): New function.
2161 * frame.h (frame_read_unsigned_register): Declare.
2162 (frame_read_signed_register): Declare.
2164 2002-10-31 Andrew Cagney <cagney@redhat.com>
2166 * h8500-tdep.c (h8500_print_registers_info): New static function,
2167 clone of infcmd.c's default_print_registers_info.
2168 (h8500_do_registers_info): New funtion.
2169 (h8500_print_register_hook): Rename print_register_hook, make
2172 * config/h8500/tm-h8500.h: Update copyright.
2173 (DEPRECATED_DO_REGISTERS_INFO): Define.
2174 (h8500_do_registers_info: Declare.
2175 (PRINT_REGISTER_HOOK): Delete macro.
2176 (print_register_hook): Delete function.
2178 2002-10-31 Andrew Cagney <cagney@redhat.com>
2180 * z8k-tdep.c (z8k_print_register_hook): Make static.
2181 (z8k_print_registers_info): New static function, clone of
2182 infcmd.c's default_print_registers_info.
2183 (z8k_do_registers_info): New function. Wrap
2184 z8k_print_registers_info.
2185 * config/z8k/tm-z8k.h: Update copyright.
2186 (PRINT_REGISTER_HOOK): Delete macro.
2187 (z8k_print_register_hook): Delete declaration.
2188 (DEPRECATED_DO_REGISTERS_INFO): Define.
2189 (z8k_do_registers_info): Declare.
2191 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2193 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2194 as this is already provided by value.h, and was actually causing
2195 a compilation error because of a conflict in parameter type
2196 declaration due to a missing const keyword.
2197 (low_text_segment_addres): Fix a compilation warning.
2199 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2201 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2202 registers without a name.
2203 (mips_linux_cannot_store_register): Don't store registers without
2206 2002-10-28 David Carlton <carlton@math.stanford.edu>
2208 * symtab.c (find_addr_symbol): Delete. (It was already commented
2210 * symtab.h: Delete prototype for find_addr_symbol.
2212 2002-10-26 Andrew Cagney <cagney@redhat.com>
2214 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2216 gdbarch.h, gdbarch.c: Re-generate.
2217 * infcmd.c (default_print_registers_info): Update reference.
2218 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2219 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2220 * sh-tdep.c (sh_gdbarch_init): Ditto.
2221 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2224 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2226 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2227 cfi_init_extra_frame_info.
2228 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2229 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2231 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2232 target where necessary. Add more comments and remove the ones
2233 that don't provide any useful information.
2235 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2236 deprecated_read_register_dummy with
2237 frame_unwind_unsigned_register.
2239 * i386-tdep.c (i386_extract_struct_value_address): Use
2240 regcache_raw_read_unsigned instead of
2241 regcache_cooked_read_unsigned since we know that the register
2242 we're reading isn't a pseudo register. Rename variable 'val' into
2243 the more descriptive 'addr'.
2245 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2246 (x86_64_push_return_address): Add comment.
2247 (x86_64_pop_frame): Make static.
2248 (examine_argument): Clarify comment.
2249 (x86_64_skip_prologue): Make prolog_expact variable static.
2251 * dwarf2cfi.c: Fix some formatting problems.
2252 (context_cpy, read_encoded_pointer): Clarify comments.
2254 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2255 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2256 i386 target back into x86_64_gdbarch_init. Add some comments and
2257 remove meaningless ones.
2259 2002-10-25 Andrew Cagney <cagney@redhat.com>
2261 * complaints.h (struct deprecated_complaint): Rename `struct
2263 * complaints.c (complain): Update.
2264 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2265 incorrect comment indicating that "symfile.h" was being included
2266 for the `struct complaint' definition.
2267 * remote-vx.c: Update.
2268 * objc-lang.c: Update.
2269 * xcoffread.c: Update.
2271 * mdebugread.c: Update.
2272 * stabsread.c: Update.
2273 * dwarf2read.c: Update.
2274 * dwarfread.c: Update.
2275 * elfread.c: Update.
2276 * coffread.c: Update.
2277 * stabsread.h: Update.
2278 * dbxread.c: Update.
2279 * buildsym.c: Update.
2280 * gdbtypes.c: Update.
2281 * macrotab.c: Update.
2283 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2285 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2286 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2287 (x86_64_init_abi): ...new function.
2289 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2290 * i386v-nat.c: Include "i386-tdep.h".
2292 2002-10-25 Andrew Cagney <cagney@redhat.com>
2294 * gdbtypes.c (address_space_name_to_int): Update.
2295 (address_space_int_to_name): Update.
2296 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2297 multi-arch predicate.
2298 (address_class_name_to_type_flags): Ditto.
2299 * gdbarch.h, gdbarch.c: Re-generate.
2301 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2303 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2305 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2307 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2309 * symtab.h (INIT_SAL): Delete macro.
2311 * symtab.c (init_sal): New function.
2313 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2314 to init_sal function call.
2315 (find_sal_from_funcs_and_line): Ditto.
2316 (all_sals_for_line): Ditto.
2317 * breakpoint.c (create_internal_breakpoint): Ditto.
2318 (create_fork_vfork_event_catchpoint): Ditto.
2319 (create_exec_event_catchpoint): Ditto.
2320 (parse_breakpoint_sals): Ditto.
2321 (watch_command_1): Ditto.
2322 (handle_gnu_4_16_catch_command): Ditto.
2323 (clear_command): Ditto.
2324 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2325 * infcmd.c (run_stack_dummy): Ditto.
2326 * infrun.c (process_event_stop_test): Ditto.
2327 (check_sigtramp2): Ditto.
2328 (step_over_function): Ditto.
2329 * linespec.c (decode_line_2): Ditto.
2330 (decode_line_1): Ditto.
2331 * source.c (line_info): Ditto.
2332 * symtab.c (find_pc_sect_line): Ditto.
2334 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2336 * dwarf2cfi.c (struct context)
2337 (struct context_reg): Moved to dwarf2cfi.h
2338 (context_alloc, frame_state_alloc, context_cpy):
2339 Made extern instead of static, removed prototypes.
2340 * dwarf2cfi.h (struct context)
2341 (struct context_reg): New, moved from dwarf2cfi.c
2342 (context_alloc, frame_state_alloc, context_cpy):
2344 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2345 Changed from static to extern.
2346 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2347 (LINUX_SIGCONTEXT_FP_OFFSET)
2348 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2349 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2350 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2351 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2352 set_gdbarch_*() calls now use x86-64 specific functions
2353 instead of DWARF2 CFI ones.
2354 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2355 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2356 (x86_64_init_extra_frame_info): New prototypes.
2358 2002-10-23 David Carlton <carlton@math.stanford.edu>
2360 * linespec.c: #include "parser-defs.h".
2361 Delete prototype for find_template_name_end.
2362 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2364 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2366 * NEWS: add recent mi fixes.
2367 * varobj.c (struct varobj): Add new "updated" flag.
2368 (new_variable): Default "updated" flag to 0.
2369 (varobj_set_value): Set "updated" flag to 1 if value
2371 (varobj_update): Check varobj "updated" flag before
2372 comparing old and refreshed values. Fix for
2375 2002-10-23 David Carlton <carlton@math.stanford.edu>
2377 * parse.c (parse_exp_1): Use BLOCK_START.
2378 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2380 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2382 2002-10-23 David Carlton <carlton@math.stanford.edu>
2384 * symtab.c: Delete cplusplus_hint.
2385 Delete prototype for find_template_name_end.
2387 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2389 * symtab.h: Update comment.
2391 2002-10-23 Michael Snyder <msnyder@redhat.com>
2393 * printcmd.c (address_info): Restore quotes in output.
2394 * valops.c (value_of_local): Restore quotes in error message.
2396 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2398 * symtab.c (symbol_demangled_name): New function.
2399 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2400 turning most of it into a function.
2401 (symbol_demangled_name): Export.
2403 2002-10-23 Michael Snyder <msnyder@redhat.com>
2405 * valops.c (value_of_local): Restore quotes in error message.
2407 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2409 * symtab.c (symbol_init_language_specific): New function.
2410 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2411 turning most of it into a function.
2412 (symbol_init_language_specific): Export.
2414 2002-10-23 David Carlton <carlton@math.stanford.edu>
2416 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2417 (dwarf_attr_name): Ditto.
2418 (dwarf_type_encoding_name): Ditto.
2419 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2420 (process_die): Handle DW_TAG_namespace,
2421 DW_TAG_imported_declaration, DW_TAG_imported_module.
2422 (read_namespace): New function.
2424 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2426 * configure.in: Define NEW_PROC_API on Interix too.
2427 * configure: Regenerate.
2429 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2431 * configure: Regenerate using the proper version of autoconf.
2433 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2435 * findvar.c (read_var_value): Temporarily disable TLS code, until
2436 complete TLS support is added.
2438 2002-10-21 Jim Blandy <jimb@redhat.com>
2439 Elena Zannoni <ezannoni@redhat.com>
2441 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2442 for thread local storage locations.
2443 (struct symbol): Add objfile field.
2444 (SYMBOL_OBJFILE): Define.
2445 * dwarf2read.c (is_thread_local): New static variable.
2446 (new_symbol): If variable is in thread local fill in address class
2447 and objfile appropriately.
2448 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2450 * printcmd.c (address_info): Print the information for thread
2451 local storage variable.
2452 * findvar.c (read_var_value): In case of thread local variable,
2453 defer to the target vector code to compute address.
2455 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2457 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2458 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2460 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2462 * symtab.h (address_class): Rename
2463 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2464 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2465 * printcmd.c (address_info): Ditto.
2466 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2468 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2470 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2471 DBREG_DRX macro to acces debug registers.
2473 * Makefile.in (i386obsd-tdep.o): New target.
2475 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2476 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2478 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2479 * config/i386/obsd.mt: New file.
2480 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2481 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2482 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2483 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2484 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2485 * i386obsd-tdep.c: New file.
2487 2002-10-19 Adam Fedor <fedor@gnu.org>
2489 * objc-exp.y (name_not_typename): Fix invalid comment.
2491 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2493 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2494 to allocate partial syms and macro byte caches.
2496 2002-10-18 David Carlton <carlton@math.stanford.edu>
2498 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2500 2002-10-18 Adam Fedor <fedor@gnu.org>
2502 * stabsread.c (find_name_end): New function.
2503 (define_symbol): Use it.
2505 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2507 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2508 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2509 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2510 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2512 2002-10-17 David Carlton <carlton@math.stanford.edu>
2514 * symfile.h: Add opaque declaration for struct obstack.
2515 Declare obsavestring to take a const char *.
2516 * symfile.c (obsavestring): Make first argument a const char *.
2518 2002-10-16 Adam Fedor <fedor@gnu.org>
2520 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2521 names when matching breakpoints in current file.
2523 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2525 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2526 (read_tag_pointer_type): Add address class support.
2527 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2528 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2530 * gdbarch.h, gdbarch.c: Regenerate.
2531 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2532 (make_type_with_address_space, recursive_type_dump): Add address
2534 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2535 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2536 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2538 2002-10-16 Klee Dienes <kdienes@apple.com>
2540 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2541 to get the last character of a char[] buffer, not
2542 name[sizeof(vptr_name)-1].
2544 2002-10-14 Adam Fedor <fedor@gnu.org>
2546 * symtab.h: New objc_specific struct.
2547 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2548 (SYMBOL_DEMANGLED_NAME): Likewise.
2550 2002-10-14 Adam Fedor <fedor@gnu.org>
2552 * symfile.c (init_filename_language_table): Add ObjC file extension.
2554 2002-10-14 Adam Fedor <fedor@gnu.org>
2556 * utils.c (puts_filtered_tabular): New function.
2557 (fprintf_symbol_filtered): Get ObjC demangled name.
2558 * defs.h (puts_filtered_tabular): Declared.
2560 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2562 * c-lang.h (c_type_print_varspec_prefix): Delete.
2563 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2564 ``need_post_space'' parameter. Adjust all callers.
2566 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2568 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2569 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2570 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2571 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2573 2002-10-13 Adam Fedor <fedor@gnu.org>
2575 * source.c (print_source_lines): Update comments.
2577 2002-10-13 Adam Fedor <fedor@gnu.org>
2579 * valops.c (value_of_local): New function.
2580 (value_of_this): Use it.
2581 * value.h (value_of_local): Declared.
2583 2002-10-13 Adam Fedor <fedor@gnu.org>
2585 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2586 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2588 2002-10-12 Adam Fedor <fedor@gnu.org>
2590 * language.c (binop_result_type): Add language_objc to case.
2591 (integral_type): Likewise.
2592 (character_type): Likewise.
2593 (string_type): Likewise.
2594 (boolean_type): Likewise.
2595 (structured_type): Likewise.
2596 (binop_type_check): Likewise.
2598 2002-10-11 Adam Fedor <fedor@gnu.org>
2600 * printcmd.c (address_info): Print 'self' for ObjC.
2602 2002-10-11 Adam Fedor <fedor@gnu.org>
2604 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2607 2002-10-11 Adam Fedor <fedor@gnu.org>
2609 * language.h (CAST_IS_CONVERSION): Add language_objc.
2611 2002-10-11 Adam Fedor <fedor@gnu.org>
2613 * defs.h (enum language): Add language_objc.
2615 2002-10-11 Klee Dienes <kdienes@apple.com>
2617 * corefile.c (read_memory_typed_address): New function.
2618 * gdbcore.h (read_memory_typed_address): Add prototype.
2619 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2620 to read a value destined for a CORE_ADDR, not read_memory_integer.
2621 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2622 (f77_get_dynamic_lowerbound): Ditto.
2624 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2626 * utils.c (string_to_core_addr): After turning string into
2627 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2628 which will do necessary sign-extension, etc.
2630 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2632 * c-exp.y (THIS): Delete token and grammar rule.
2633 (yylex): Don't return THIS.
2634 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2635 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2636 * demangle.c (cplus_markers): Update comment. Put '$'
2637 first. Remove CPLUS_MARKER.
2638 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2639 * jv-exp.y (THIS): Delete token and grammar rule.
2640 (yylex): Don't return THIS.
2641 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2642 * objc-exp.y (THIS): Delete token and grammar rule.
2643 (yylex): Don't return THIS.
2644 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2645 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2646 (read_member_functions): Likewise for opname.
2647 (read_tilde_fields): Use is_cplus_marker.
2649 * defs.h (CPLUS_MARKER): Don't define.
2650 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2651 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2652 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2653 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2654 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2656 * config/i386/tm-i386v4.h: Delete file.
2657 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2658 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2659 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2660 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2661 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2662 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2663 * config/i386/i386v4.mt (TM_FILE): Likewise.
2664 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2666 2002-10-10 Marko Mlinar <markom@opencores.org>
2668 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2669 accidentially not commited 2002-10-09
2670 * gdbarch.h, gdbarch.c: Re-generate.
2672 2002-10-09 Marko Mlinar <markom@opencores.org>
2674 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2675 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2676 * gdbarch.h, gdbarch.c: Re-generate.
2678 2002-10-08 Petr Sorfa <petrs@caldera.com>
2680 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2682 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2683 so we can work on more than one compilation unit at a time. This
2684 helps prepare GDB to handle inter-CU die references.
2685 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2686 the code to be defined before struct comp_unit_head.
2687 (comp_unit_head): Added new members - offset, cu_head,
2688 begin_die, next and dwarf2_abbrevs.
2689 (dwarf2_abbrevs): Removed single static var; now member of
2690 struct comp_unit_head.
2691 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2693 (psymtab_to_symtab_1): Changed to work with the new
2694 struct comp_unit_head.
2695 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2696 constructs the dwarf2_abbrevs[] inside the cu_header.
2697 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2698 dwarf2_abbrev table to clean up.
2699 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2700 handling of dwarf2_abbrevs inside the cu_header.
2701 (read_partial_die): Now supports the call to the new
2702 dwarf2_lookup_abbrev.
2703 (read_full_die): Now supports the call to the new
2704 dwarf2_lookup_abbrev.
2706 2002-10-06 Christopher Faylor <cgf@redhat.com>
2708 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2709 insure that shell variables, such as "transformed_name" are propagated
2710 to later shell statements in rule.
2712 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2714 * config/i386/nm-i386sco.h: Add protection against
2715 multiple-inclusion. Include "i386/nm-i386v.h".
2716 (REGISTER_U_ADDR): Remove define.
2717 (i386_register_u_addr): Remove prototype.
2719 2002-10-04 Michael Snyder <msnyder@redhat.com>
2721 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2722 before treating it as a single-step event.
2724 2002-10-03 Adam Fedor <fedor@gnu.org>
2726 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2727 (objc_demangle): Remove assignment in if statements, Replace
2729 (add_msglist): Likewise.
2730 (end_msglist): Likewise.
2731 (complare_selectors): Likewise.
2732 (selectors_info): Likewise.
2733 (compare_classes): Likewise.
2734 (classes_info): Likewise.
2735 (print_object_command): Likewise.
2736 (find_objc_msgcall_submethod): Replace PTR with void *.
2737 * objc-lang.h: Remove check for __STDC__.
2739 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2741 * ui-out.h (ui_out_field_fmt_int): New prototype.
2742 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2743 of field width and alignment.
2744 * stack.c (print_frame_info_base): When printing frame level, use
2745 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2748 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2750 * MAINTAINERS: Add self to Write After Approval list.
2752 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2754 * infcmd.c (interrupt_target_command_wrapper): Delete.
2755 (interrupt_target_command): Make non static.
2756 (nofp_registers_info): Make static.
2757 * stack.c (return_command_wrapper): Delete.
2758 (return_command): Make non static.
2760 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2762 * event-top.c (gdb_setup_readline): New function. Code moved from
2763 _initialize_event_loop().
2764 (_initialize_event_loop): Call gdb_setup_readline().
2766 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2768 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2769 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2770 * gdbarch.h, gdbarch.c: Re-generate.
2772 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2775 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2777 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2778 of fill_in_vptr_fieldno.
2780 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2782 * inferior.h (registers_info, stepi_command, nexti_command,
2783 continue_command, interrupt_target_command): Export from infcmd.c.
2784 * frame.h (args_info, selected_frame_level_changed_hook,
2785 return_command): Export from stack.c.
2786 * v850ice.c (stepi_command, nexti_command, continue_command): use
2787 prototypes from inferior.h.
2788 * tracepoint.c (registers_info, args_info, locals_info): Use
2789 prototypes from frame.h and inferior.h.
2790 * Makefile.in (mi-main.o): Add dependency on frame.h.
2792 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2794 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2795 value in register 3 adjusted by ppc_gp0_regnum.
2797 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2799 2002-10-02 Marko Mlinar <markom@opencores.org>
2801 * MAINTAINERS: Add myself to the Write After Approval list.
2803 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2805 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2806 of the section for the N64 ABI, fixed.
2808 * config/mips/tm-irix6.h: Include solib.h.
2810 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2812 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2815 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2817 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2818 and that "mi0" syntax has been removed.
2820 2002-09-30 David Carlton <carlton@math.stanford.edu>
2822 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2823 * ppc-sysv-tdep.c: #include "gdb_string.h".
2824 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2827 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2829 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2830 "vrsave"'s register number.
2832 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2834 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2835 use frame_unwind_signed_register to obtain the PC.
2836 (mips_frame_chain): Handle a generic dummy frame.
2837 (mips_init_extra_frame_info): When a generic dummy frame, don't
2838 re-compute the frame base.
2839 (mips_pop_frame): Handle generic dummy frames.
2840 (mips_gdbarch_init): When generic dummy frames, set
2841 use_generic_dummy_frames, push_dummy_frame to
2842 generic_push_dummy_frame, pc_in_call_dummy to
2843 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2844 generic_save_dummy_frame_tos.
2846 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2848 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2849 against TOP when TOP was explictly set.
2850 (generic_push_dummy_frame): Set TOP to zero.
2852 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2854 * event-loop.c (start_event_loop): Rename variable 'result' to
2855 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2857 2002-09-30 Keith Seitz <keiths@redhat.com>
2859 * gdb-events.sh (selected_thread_changed): New event.
2860 * gdb-events.c: Regenerated.
2861 * gdb-events.h: Regenerated.
2863 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2865 * MAINTAINERS: Add self to Write After Approval list.
2867 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2869 * disasm.c: New file.
2870 * disasm.h: New file.
2871 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2872 (compare_lines): Ditto.
2873 (dump_insns): Ditto.
2874 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2876 (do_assembly_only): Ditto.
2877 (do_disassembly): Renamed to gdb_disassembly and moved to
2878 disasm.c. Sdded uiout argument.
2879 * Makefile.in: Add new files. Reorder SFILES list. Update
2880 dependencies. Include libgdb.a later in the insight executable.
2882 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2884 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2885 bfd/elf64-alpha-fbsd.c.
2887 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2889 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2892 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2894 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2896 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2898 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2899 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2900 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2901 (S_msg_sig_post_reply): Ditto.
2903 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2905 * sh-tdep.c (sh_use_struct_convention): Use definition according
2907 (sh_push_arguments): Store in register with correct endianess.
2908 (sh_default_store_return_value): Ditto.
2909 (sh_gdbarch_init): Set sizeof long double to 8.
2911 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2913 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2914 Fix some whitespace problems.
2916 2002-09-27 David Carlton <carlton@math.stanford.edu>
2918 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2919 (mcore-tdep.o): Ditto.
2920 (ns32k-tdep.o): Ditto.
2921 (ns32knbsd-tdep.o): Ditto.
2923 (vax-tdep.o): Ditto.
2924 * cris-tdep.c: #include "gdb_string.h"
2925 * mcore-tdep.c: Ditto.
2926 * ns32k-tdep.c: Ditto.
2927 * ns32knbsd-tdep.c: Ditto.
2929 * vax-tdep.c: Ditto.
2931 2002-09-27 David Carlton <carlton@math.stanford.edu>
2933 * config/djgpp/fnchange.lst: Add entries for
2934 gdb/testsuite/gdb.c++/m-static files.
2936 2002-09-27 Jim Wilson <wilson@redhat.com>
2938 * MAINTAINERS: Add myself to the Write After Approval list.
2940 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2942 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2945 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2947 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2950 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2952 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2953 (rs6000_struct_return_address): Delete variable.
2954 (rs6000_store_struct_return): Update.
2955 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2956 deprecated_extract_struct_value_address.
2957 (rs6000_frame_align): New function.
2958 (rs6000_gdbarch_init): Set frame_align.
2960 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2962 From Grace Sainsbury <graces@redhat.com>:
2963 * Makefile.in (gdbtk-main.o): New target.
2964 (gdb.o): New target.
2966 (main.o): Update dependencies.
2967 (gdb$(EXEEXT)): Add gdb.o.
2968 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2969 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2970 (SUBDIR_GDBTK_CLEAN): Set.
2971 (install-gdbtk): Install the insight binary.
2972 (uninstall-gdbtk): New target.
2973 (all-gdbtk, clean-gdbtk): New rule.
2974 * top.c (use_windows): Default to zero.
2975 * main.c: Include "main.h".
2977 (struct captured_main_args): Delete.
2978 (gdb_main): New function.
2982 2002-09-25 Andrew Cagney <cagney@redhat.com>
2984 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2985 (frame_map_regnum_to_name): New function.
2986 (frame_map_name_to_regnum): New function.
2987 * frame.h (frame_map_name_to_regnum): Declare.
2988 (frame_map_regnum_to_name): Declare.
2989 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2990 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2991 * parse.c: Do not include "builtin-regs.h".
2992 (target_map_name_to_register): Delete function.
2993 (write_dollar_variable): Use frame_map_name_to_regnum.
2994 * parser-defs.h (target_map_name_to_register): Delete declaration.
2995 * expprint.c: Include "frame.h".
2996 (print_subexp): Use frame_map_regnum_to_name.
2997 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2998 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3000 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3002 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3003 wasn't saved, and the next innermost frame is a dummy, return the
3004 dummy frame's link register.
3006 2002-09-24 Jim Blandy <jimb@redhat.com>
3008 Fix from Paul Breed:
3009 * main.c (captured_main): Add a `break' after the case for 'b'.
3011 2002-09-24 Keith Seitz <keiths@redhat.com>
3013 * varobj.c (c_type_of_child): Use get_target_type instead
3014 of TYPE_TARGET_TYPE.
3016 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3018 * source.c (get_current_or_default_source_symtab_and_line): Remove
3020 (set_default_source_symtab_and_line): New function. Attempts to
3021 determine a source file to list lines from if one is not currently
3023 (get_current_source_symtab_and_line): Initialize sal.pc and
3025 (set_current_source_symtab_and_line): Mark argument as const.
3026 * source.h: Update declarations and comments.
3027 * linespec.c (decode_line_1): Replace call to removed routine above.
3028 * stack.c (print_frame_info_base): Ditto.
3029 * cli/cli-cmds.c (edit_command): Ditto.
3030 (list_command): Ditto.
3032 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3034 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3035 sal.pc and sal.end fields.
3036 (get_current_or_default_source_symtab_and_line): Ditto.
3037 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3038 so we do not cause a new source symtab to be searched for (reverting an
3039 unintentional change from the 2002-09-20 patch).
3040 * scm-lang.c (scm_unpac): Ditto.
3042 2002-09-21 Andrew Cagney <cagney@redhat.com>
3044 * complaints.c (symfile_explanations): Remove new-line from
3045 ``isolated_message''.
3046 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3047 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3049 2002-09-20 Nick Clifton <nickc@redhat.com>
3051 * NEWS: Announce that V850EA ISA is no longer supported.
3052 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3054 2002-09-20 David Carlton <carlton@math.stanford.edu>
3056 * Makefile.in (c-lang.o): Correct dependencies.
3057 (utils.o): Gather dependencies.
3059 * c-lang.c: #include "gdb_string.h"
3061 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3063 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3064 * cli/cli-cmds.c (list_command): New function. Implements the new
3066 (_init_cli_cmds): Add new command definition.
3067 * gdb.1: Document edit command.
3068 * doc/gdb.texinfo: Document edit command.
3070 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3072 * source.c: Make global variables current_source_symtab and
3073 current_source_line static.
3074 (list_command): Moved to cli/cli-cmds.c.
3075 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3076 (get_first_line_listed): New accessor function.
3077 (get_lines_to_list): New accessor function.
3078 (get_current_source_symtab_and_line): New function. Retrieves the
3079 position in the source code that we consider current.
3080 (get_current_or_default_source_symtab_and_line): New function.
3081 Like the above but attempts to determine a default position if one
3082 is not currently defined.
3083 (set_current_source_symtab_and_line): New function. Sets the source
3084 code position considered current and returns the previously set one.
3085 (clear_current_source_symtab_and_line): Reset stored information about
3086 a current source line.
3087 (_initialize_source): Remove registration for the "list" command and
3089 * source.h: Add declarations for the new functions above.
3090 * symtab.h: Remove declarations for the global variables mentioned
3092 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3093 obtain current source line.
3094 * linespec.c (decode_line_1): Ditto.
3095 * macroscope.c (default_macro_scope): Ditto.
3096 * scm-lang.c (scm_unpac): Ditto.
3097 * stack.c (print_frame_info_base): Ditto.
3098 * symfile.c (clear_symtab_users): Ditto.
3099 * symtab.c (decode_line_spec): Ditto.
3100 * cli/cli-cmds.c (list_command): Moved here from source.c.
3101 (ambiguous_line_spec): Moved here from source.c.
3102 (_init_cli_cmds): Add definition for "list" and its alias.
3103 * Makefile.in: Update dependencies.
3105 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3107 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3108 with what gcc thinks is correct.
3110 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3112 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3113 multiple register push instruction.
3115 2002-09-19 Jim Blandy <jimb@redhat.com>
3117 Add support for distinct host and target character sets.
3118 * charset.c, charset.h: New files.
3119 * c-exp.y: #include "charset.h".
3120 (yylex): Convert character and string literals to the target
3121 character set, before returning them as the semantic value of the
3123 * c-lang.c: #include "charset.h".
3124 (c_emit_char): Use charset-specific methods to recognize
3125 characters with backslash escape forms, to decide which characters
3126 to print literally and which to print using numeric escape
3127 sequences, and to convert target characters to host characters
3129 * utils.c: #include "charset.h".
3130 (no_control_char_error): New function.
3131 (parse_escape): Use charset-specific methods to recognize
3132 backslash escapes, parse `control character' notation, and convert
3133 characters from the host character set to the target character set.
3134 * configure.in: Set the default host character set.
3135 Check where to find iconv, and what its argument types might be.
3136 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3137 * Makefile.in (SFILES): List charset.c.
3138 (COMMON_OBS): List charset.o.
3139 (charset.o): New rule.
3140 (charset_h): New header dependency variable.
3141 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3142 (LIBICONV): New variable, set by configure.
3143 (CLIBS): Include $(LIBICONV) here.
3144 * aclocal.m4, config.in, configure: Regenerated.
3146 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3148 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3151 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3153 * gdb_mbuild.sh: New file.
3155 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3157 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3159 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3161 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3162 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3163 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3164 valops.c, value.h: Revert previous change.
3166 2002-09-18 Michael Snyder <msnyder@redhat.com>
3168 Preliminary support for Objective-C:
3169 * defs.h (language_objc): New enum value.
3170 (puts_filtered_tabular): Declaration only, exported from utils.c.
3171 (skip_quoted): Delete, declared in completer.h.
3172 * c-exp.y: Include completer.h.
3175 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3176 New operator enum values.
3177 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3178 * language.c (binop_result_type): Handle language_objc case.
3179 (integral_type, character_type, string_type, boolean_type,
3180 structured_type, binop_type_check): Ditto.
3181 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3182 (struct objc_specific): Add to general_symbol_info.
3183 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3184 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3185 * parser-defs.h (struct objc_class_str): New struct type.
3186 (start_msglist, end_msglist, add_msglist): Declaration only,
3187 exported from objc-lang.c.
3188 * value.h (value_of_local, value_nsstring,
3189 call_function_by_hand_expecting_type): Exported from valops.c.
3190 * valops.c (find_function_addr): Export.
3191 (call_function_by_hand_expecting_type): New function.
3192 (value_of_local): New function.
3193 * symfile.c (init_filename_language_table): Add ".m" extension
3195 * utils.c (puts_filtered_tabular): New function.
3196 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3197 (set/show demangle): Extend help-string to refer to ObjC.
3198 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3199 * stabsread.c (symbol_reference_defined): Objective-C symbols
3200 may contain colons: make allowances when scanning stabs strings
3202 (objc_find_colon): New function.
3203 * printcmd.c (address_info): If language == objc then print
3204 "self" instead of "this".
3205 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3206 OP_NSSTRING, and OP_SELF.
3207 (prefixify_subexp): Ditto.
3208 * source.c (print_source_lines): Mention objc in comment.
3209 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3212 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3214 * complaints.h: Update copyright.
3215 (struct complaints): Declare.
3216 (struct complaint): Make `message' constant.
3217 (internal_complaint): Declare.
3218 (complaint): Declare.
3219 (complaint_root): Delete declaration.
3220 (symfile_complaints): Delete declaration.
3221 (struct complaints): Add opaque declaration.
3222 (clear_complaints): Add a complaints parameter.
3223 * complaints.c: Update copyright.
3224 (enum complaint_series): Define.
3225 (complaint_root): Delete.
3226 (struct complaints): Define.
3227 (complaint_sentinel, symfile_complaint_book): New variables.
3228 (symfile_explanations, symfile_complaints): New variables.
3230 (get_complaints): New function.
3231 (vcomplaint): New function.
3232 (complaint): New function.
3233 (internal_complaint): New function.
3234 (complain): Call vcomplain with symfile_complaint.
3235 (clear_complaints): Rewrite.
3236 (_initialize_complaints): Use add_setshow_command.
3237 * Makefile.in (complaints.o): Update dependencies.
3238 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3239 to call to clear_complaints.
3240 (new_symfile_objfile, reread_symbols): Ditto.
3241 (oldsyms_complaint): Delete.
3242 (empty_symtab_complaint, unknown_option_complaint): Delete.
3243 (free_named_symtabs): Use complaint instead of complain.
3245 2002-09-18 Michael Snyder <msnyder@redhat.com>
3247 Contributed by Apple Computer, Inc. Merged with current sources
3248 by Adam Fedor <fedor@doc.com> [cagney].
3250 * objc-lang.c: First clean-up round: comments, indentation.
3251 * objc-lang.h: Ditto.
3252 * objc-lang.y: Ditto.
3254 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3256 * maint.c (maintenance_internal_error): Print the parameter as the
3258 (maintenance_internal_warning): New function.
3259 (_initialize_maint_cmds): Add command `maint internal-warning'.
3261 * defs.h (internal_warning, internal_vwarning): Declare.
3262 * utils.c (struct internal_problem): Define.
3263 (internal_vproblem): New function.
3264 (internal_warning): New function.
3265 (internal_vwarning): New function.
3266 (internal_warning_problem, internal_error_problem): New variables.
3267 (internal_verror): Just call internal_vproblem.
3269 2002-09-18 Michael Snyder <msnyder@redhat.com>
3271 * objc-lang.c: New file, support for Objective-C.
3272 Preliminary check-in, not yet integrated into gdb.
3273 * objc-lang.h: New file.
3274 * objc-exp.y: New file.
3276 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3278 * infrun.c (signal_stop_update): Convert definition to ISO C.
3279 (signal_print_update): Ditto.
3280 (signal_pass_update): Ditto.
3281 * inflow.c (terminal_save_ours): Ditto.
3283 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3286 * config/djgpp/fnchange.lst: Handle name clashes between
3287 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3290 * i386-linux-tdep.h: Fix tipo.
3292 2002-09-18 Adam Fedor <fedor@gnu.org>
3294 * MAINTAINERS: Add myself to the Write After Approval list.
3296 2002-09-18 Jim Blandy <jimb@redhat.com>
3298 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3299 texthigh and textlow to reader-specific structs caused
3300 objfile_relocate to miss them. This is fixable, but the work that
3301 the change was supposed to prepare GDB for never got done anyway.
3303 2002-09-18 David Carlton <carlton@math.stanford.edu>
3305 * MAINTAINERS: Alphabetize Write After Approval list.
3307 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3310 * values.c (value_static_field): Call read_var_value.
3312 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3314 * valops.c (hand_function_call): Align the initial stack pointer
3315 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3316 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3318 * mips-tdep.c (mips_frame_align): New function.
3319 (mips_gdbarch_init): Set frame_align.
3320 * gdbarch.sh (FRAME_ALIGN): New method.
3321 * gdbarch.h, gdbarch.c: Re-generate.
3323 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3325 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3328 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3330 * NEWS: Mention that MIPS $fp behavior changed.
3331 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3332 reference to FP_REGNUM.
3333 (mipsnbsd_cannot_store_register): Ditto.
3334 * mips-linux-nat.c: Update copyright.
3335 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3336 (mips_linux_cannot_store_register): Ditto.
3337 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3338 * config/mips/tm-mips.h: Update copyright.
3339 (FP_REGNUM): Delete macro.
3340 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3341 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3342 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3343 (mips_r3041_reg_names, mips_r3051_reg_names)
3344 (mips_r3081_reg_names): Replace "fp" with "".
3347 2002-09-17 Theodore A. Roth <troth@verinet.com>
3349 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3350 generic_read_register_dummy() (PR gdb/703).
3351 (avr_push_return_address): #if 0 out unused vars.
3352 (avr_gdbarch_init): Enable use of avr_push_return_address().
3354 2002-09-17 Michael Snyder <msnyder@redhat.com>
3356 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3357 RTE will take care of it.
3359 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3361 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3362 invalid, return SP_REGNUM.
3364 2002-09-17 Michael Snyder <msnyder@redhat.com>
3366 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3367 point registers without sign extension.
3369 2002-09-17 Andrew Cagney <cagney@redhat.com>
3371 * blockframe.c (deprecated_read_register_dummy): Rename
3372 generic_read_register_dummy.
3373 * frame.c (frame_unwind_signed_register): New function.
3374 (frame_unwind_unsigned_register): New function.
3375 * frame.h (frame_unwind_signed_register): Declare.
3376 (frame_unwind_unsigned_register): Declare.
3377 (deprecated_read_register_dummy): Rename
3378 generic_read_register_dummy.
3380 * h8300-tdep.c (h8300_frame_chain): Update.
3381 (h8300_frame_saved_pc): Update.
3382 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3383 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3384 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3385 (s390_frame_chain): Update.
3386 * v850-tdep.c (v850_find_callers_reg): Update.
3387 (v850_frame_saved_pc): Update.
3388 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3389 (m32r_find_callers_reg): Update.
3390 (m32r_frame_saved_pc): Update.
3391 * sh-tdep.c (sh_find_callers_reg): Update.
3392 (sh64_get_saved_pr): Update.
3393 (sh_init_extra_frame_info): Update.
3394 (sh_init_extra_frame_info): Update.
3395 (sh64_init_extra_frame_info): Update.
3396 (sh64_init_extra_frame_info): Update.
3397 * mcore-tdep.c (mcore_find_callers_reg): Update.
3398 (mcore_frame_saved_pc): Update.
3399 (mcore_init_extra_frame_info): Update.
3400 * i386-tdep.c (i386_frame_saved_pc): Update.
3401 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3402 (ia64_init_extra_frame_info): Update.
3403 (ia64_init_extra_frame_info): Update.
3404 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3405 * cris-tdep.c (cris_init_extra_frame_info): Update.
3406 * avr-tdep.c (avr_frame_chain): Update.
3407 (avr_init_extra_frame_info): Update.
3408 (avr_frame_saved_pc): Update.
3409 * arm-tdep.c (arm_find_callers_reg): Update.
3410 (arm_init_extra_frame_info): Update.
3411 (arm_frame_saved_pc): Update.
3413 2002-09-17 Tom Tromey <tromey@redhat.com>
3415 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3418 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3420 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3421 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3423 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3426 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3428 * osfsolib.c: Remove file, replaced by solib-osf.c.
3429 * Makefile.in: Remove compilation rules for osfsolib.c.
3431 2002-09-16 David Carlton <carlton@math.stanford.edu>
3433 * cp-valprint.c (cp_print_class_method): Correct args to
3434 check_stub_method_group.
3436 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3438 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3439 `set architecture'. Unify naming convention of functions.
3440 (h8300_skip_prologue): Improve prologue analysis.
3441 (h8300_push_arguments): Rewritten to more closely match GCC's
3442 bizarre argument-passing behavior, along with the comment describing
3444 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3445 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3446 sim, remote-e7000.c, remote-hms.c and remote.c
3448 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3450 * i386-tdep.c (gdb_print_insn_i386): Removed.
3451 (i386_print_insn): New function.
3452 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3453 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3456 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3458 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3461 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3463 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3464 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3465 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3467 2002-09-13 Christopher Faylor <cgf@redhat.com>
3469 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3471 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3473 * gdbtypes.c (check_stub_method): Make static.
3474 (check_stub_method_group): New function.
3475 * gdbtypes.h: Update prototypes.
3476 * cp-support.c: New file.
3477 * cp-support.h: New file.
3479 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3480 (update_method_name_from_physname): New function.
3481 (read_member_functions): Correct method names for operators
3482 and v3 constructors/destructors. Separate v2 constructors and
3484 * Makefile.in (stabsread.o): Update dependencies.
3485 (SFILES): Add cp-support.c.
3486 (COMMON_OBS): Add cp-support.o.
3487 (cp_support_h, cp-support.o): Add.
3489 * cp-valprint.c (cp_print_class_method): Call
3490 check_stub_method_group instead of check_stub_method. Remove
3492 * p-valprint.c (pascal_object_print_class_method): Likewise.
3493 * valops.c (search_struct_method): Likewise.
3494 (find_method_list, value_struct_elt_for_reference): Likewise.
3496 2002-09-13 Andrew Cagney <cagney@redhat.com>
3498 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3499 * gdbarch.h, gdbarch.c: Regenerate.
3501 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3503 * frame.c (find_saved_register): Delete function.
3504 * frame.h (find_saved_register): Delete declaration.
3507 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3509 * mips-tdep.c (read_next_frame_reg): Re-hack using
3510 frame_register_unwind.
3512 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3514 * mips-tdep.c (mips_get_saved_register): Re-hack using
3515 frame_register_unwind.
3517 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3519 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3520 vector. Will be useful for Interix.
3521 * gdbarch.h, gdbarch.c: Regenerate.
3523 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3524 name of the malloc function by NAME_OF_MALLOC.
3526 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3528 * value.h (find_function_in_inferior): Add const keyword to
3529 one of the parameters. Allows us to invoke this function with
3531 * valops.c (find_function_in_inferior): Likewise.
3533 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3535 * exec.c (xfer_memory): Fix compilation warning with old versions
3537 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3539 2002-09-12 David Carlton <carlton@math.stanford.edu>
3541 * symtab.h: Run through gdb_indent.h.
3542 Add 2002 to Copyright year list.
3544 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3546 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3548 * MAINTAINERS: Add myself to write after approval list.
3550 2002-09-11 J. Brobecker <brobecker@gnat.com>
3552 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3554 2002-09-11 J. Brobecker <brobecker@gnat.com>
3556 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3559 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3561 * procfs.c (do_detach): Clear current signal, not just fault.
3562 Corrects problem with breakpoint trap signal leaking to detached
3565 2002-09-10 Michael Snyder <msnyder@redhat.com>
3567 * buildsym.c (finish_block): Protect against null pointer.
3569 2002-09-10 Andrew Cagney <cagney@redhat.com>
3571 * infcmd.c (default_print_registers_info): Send all output to
3572 ``file'' instead of ``gdb_stdout''.
3574 2002-09-10 Michael Snyder <msnyder@redhat.com>
3576 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3577 LONGEST, and use signed register read (addresses are sign-
3580 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3582 * event-loop.c (gdb_do_one_event): Make public.
3583 * event-loop.h (gdb_do_one_event): Declare.
3585 2002-09-10 Jeff Law <law@redhat.com>
3587 * infttrace.c (child_resume): Simplify and rework to avoid
3590 2002-09-09 Fred Fish <fnf@intrinsity.com>
3592 * printcmd.c (print_scalar_formatted): "len" is the number of
3593 target bytes, NOT the number of target bits.
3595 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3597 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3598 * top.c (init_main): Set rl_terminal_name.
3600 2002-09-08 Aidan Skinner <aidan@velvet.net>
3602 * ada-lang.c (ada_array_bound, ada_type_match,
3603 _initialize_ada_language): Fix K&R definitions.
3604 * ada-tasks.c (get_current_task): Fix K&R definitions.
3605 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3607 2002-09-07 Christopher Faylor <cgf@redhat.com>
3609 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3612 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3614 * i386-tdep.c (i386_register_virtual_type,
3615 i386_register_convertible, i386_register_convert_to_virtual,
3616 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3617 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3618 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3619 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3620 Don't set push_arguments twice.
3622 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3623 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3624 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3625 sigtramp_end to NULL.
3626 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3628 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3630 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3633 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3634 * gdbarch.h, gdbarch.c: Re-generate.
3635 * blockframe.c (find_pc_sect_partial_function): Convert to use
3636 SIGTRAMP_START_P predicate.
3638 2002-09-05 Michael Snyder <msnyder@redhat.com>
3640 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3641 generic_dummy_frame method and old method. Also distinguish
3642 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3643 (arm_extract_return_value): Use new regcache method.
3645 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3646 adjustment that doesn't conform to the ABI.
3647 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3648 saved regcache, not from current regcache.
3650 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3652 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3655 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3657 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3658 if arm_apcs_32 is false.
3660 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3662 GDB 5.3 branch created.
3664 2002-09-03 Theodore A. Roth <troth@verinet.com>
3666 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3667 generic_unwind_get_saved_register.
3669 2002-09-03 David Carlton <carlton@math.stanford.edu>
3671 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3672 argument (PR gdb/653). Update call to smash_to_method_type.
3673 (read_structure_scope): Update call to dwarf2_add_member_fn.
3675 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3677 * x86-64-linux-tdep.c: Include gdb_string.h
3678 * x86-64-linux-nat.c: Ditto.
3680 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3682 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3683 when YYDEBUG is set to 1.
3684 * c-exp.y: Likewise.
3685 * f-exp.y: Likewise.
3686 * jv-exp.y: Likewise.
3687 * m2-exp.y: Likewise.
3688 * p-exp.y: Likewise.
3690 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3692 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3694 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3695 solib_svr4_fetch_link_map_offsets to
3696 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3697 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3698 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3699 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3700 solib-svr4.o, and solib-legacy.o.
3701 * config/i386/tm-nbsd.h: Include solib.h.
3703 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3705 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3706 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3707 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3708 comment noting that this needs its own target configuration.
3709 * config/i386/nbsd.mt: New file.
3710 * config/i386/nbsdaout.mt: Remove.
3711 * config/i386/nbsdelf.mt: Ditto.
3712 * config/i386/tm-nbsdaout.h: Ditto.
3714 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3716 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3717 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3718 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3720 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3721 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3722 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3724 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3726 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3727 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3728 * i386-tdep.h (i386bsd_init_abi): New prototype.
3729 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3730 function declaration.
3731 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3732 for NetBSD-a.out or NetBSD-ELF.
3733 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3734 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3735 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3736 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3738 (i386nbsd_pc_in_sigtramp): New function.
3739 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3740 i386nbsd_pc_in_sigtramp.
3741 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3742 and i386nbsdelf_init_abi OS ABI handlers.
3743 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3744 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3746 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3748 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3749 registers if the target really has them.
3751 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3753 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3756 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3758 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3760 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3761 (alphanbsd_skip_sigtramp_frame): New functions.
3762 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3763 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3764 to alphanbsd_sigcontext_addr.
3766 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3768 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3770 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3771 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3772 nbsd_pc_in_sigtramp.
3773 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3774 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3775 * nbsd-tdep.c: Include gdb_string.h.
3776 (nbsd_pc_in_sigtramp): New function.
3777 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3778 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3779 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3780 ppcnbsd_pc_in_sigtramp.
3781 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3782 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3783 shnbsd_pc_in_sigtramp.
3784 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3785 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3786 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3788 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3790 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3791 watchpoints to NULL.
3792 (insert_breakpoints): set val field of watchpoints if NULL.
3795 2002-08-29 Jim Blandy <jimb@redhat.com>
3797 * symtab.c (lookup_symbol_aux): In the cases where we find a
3798 minimal symbol of an appropriate name and use its address to
3799 select a symtab to read and search, use `name' (as passed to us)
3800 as the demangled name when searching the symtab's global and
3801 static blocks, not the minsym's name.
3803 2002-08-29 Keith Seitz <keiths@redhat.com>
3805 * stack.c (print_frame_info_base): Always set current_source_symtab
3806 and current_source_line.
3808 2002-08-29 Donn Terry <donnte@microsoft.com>
3810 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3812 2002-08-28 Keith Seitz <keiths@redhat.com>
3814 * stack.c (select_frame): Add FIXME concerning selected-frame
3816 (select_frame_command): Send selected-frame-level-changed
3817 event notification, but only if the level actually changed.
3818 (up_silently_base): Add selected-frame-level-changed event
3820 (down_silently_base): Likewise.
3822 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3824 * Makefile.in: Update dependencies for all gdb/*.c files.
3826 2002-08-27 Tom Tromey <tromey@redhat.com>
3828 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3829 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3830 Update dependencies.
3831 * i387-tdep.c: Include gdb_string.h.
3832 * osabi.c: Likewise.
3833 * i386-linux-nat.c: Likewise.
3834 * lin-lwp.c: Likewise.
3835 * ax-gdb.c: Likewise.
3836 * signals/signals.c: Likewise.
3837 * jv-valprint.c: Likewise.
3838 * p-lang.c: Likewise.
3839 * c-valprint.c: Likewise.
3840 * cp-abi.c: Likewise.
3842 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3844 * cli/cli-script.h (copy_command_lines): Export.
3845 * breakpoint.c: Include cli/cli-script.h.
3846 * Makefile.in (breakpoint.o): Update dependencies.
3848 2002-08-26 Michael Snyder <msnyder@redhat.com>
3850 * breakpoint.c (insert_breakpoints): Protect all references
3851 to 'process_warning'. Shorten long lines.
3853 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3855 * cli/cli-script.c (copy_command_lines): New function.
3856 * defs.h (copy_command_lines): Export.
3857 * testsuite/gdb.base/commands.exp: New tests for commands
3858 attached to a temporary breakpoint, and for commands that
3859 delete the breakpoint they are attached to.
3861 2002-08-26 Michael Snyder <msnyder@redhat.com>
3863 * breakpoint.c (bpstat_stop_status): Instead of copying the
3864 pointer to the breakpoint commands struct, make a new copy
3865 of the struct and point to that.
3866 (bpstat_clear): Free the commands struct.
3867 (bpstat_clear_actions): Free the commands struct.
3868 (bpstat_do_actions): Free the command actions. Also execute
3869 the local cleanups, instead of deleting them.
3870 (delete_breakpoint): Leave the commands field of the bpstat
3871 chain alone -- it will be freed later.
3873 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3875 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3876 deleted in 2002-08-20 commit. This function is still used by
3879 2002-08-26 Keith Seitz <keiths@redhat.com>
3881 * gdb-events.sh: Add selected-frame-level-changed event.
3882 * gdb-events.c: Regenerated.
3883 * gdb-events.h: Regenerated.
3885 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3888 * inflow.c (terminal_save_ours): New function to save terminal
3890 * inferior.h (terminal_save_ours): Declare.
3891 * target.c (debug_to_terminal_save_ours): New function.
3892 (cleanup_target): Defaults to_terminal_save_ours.
3893 (update_current_target): Inherit to_terminal_save_ours.
3894 (setup_target_debug): Set to_terminal_save_ours.
3895 * target.h (target_terminal_save_ours): New to save terminal settings.
3896 (target_ops): New member to_terminal_save_ours.
3897 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3898 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3899 * inftarg.c (init_child_ops): Likewise.
3900 * m3-nat.c (init_m3_ops): Likewise.
3901 * procfs.c (init_procfs_ops): Likewise.
3902 * wince.c (init_child_ops): Likewise.
3903 * win32-nat.c (init_child_ops): Likewise.
3904 * sol-thread.c (init_sol_thread_ops): Likewise.
3906 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3908 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3909 use regcache_* functions.
3910 (i386_gdbarch_init): Set store_return_value instead of
3911 deprecated_store_return_value.
3913 * regcache.c (regcache_raw_write_signed,
3914 regcache_raw_write_unsigned): New functions.
3915 * regcache.h (regcache_raw_write_signed,
3916 regcache_raw_write_unsigned): New prototypes.
3918 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3920 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3921 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3922 source file dependencies. Cleanup corresponding generator rules.
3924 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3926 * regcache.h (register_offset_hack): Declare.
3927 (regcache_cooked_read_using_offset_hack): Declare.
3928 (regcache_cooked_write_using_offset_hack): Declare.
3930 * regcache.c (register_offset_hack): New function.
3931 (regcache_cooked_read_using_offset_hack): New function.
3932 (regcache_cooked_write_using_offset_hack): New function.
3933 (regcache_dump): Check that the registers, according to their
3934 offset, are packed hard against each other.
3935 (cooked_xfer_using_offset_hack): New function.
3937 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3939 * regcache.c (struct regcache_descr): Add field register_type.
3940 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3942 (init_regcache_descr): Initialize register_type. Pass the descr
3943 to init_legacy_regcache_descr. Use register_type instead of
3944 REGISTER_VIRTUAL_TYPE.
3945 (register_type): New function.
3946 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3947 * regcache.h (register_type): Declare.
3949 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3951 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3952 instead of deprecated_store_return_value. Fix fallout from
3953 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3955 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3957 * regcache.c (max_register_size): New function.
3958 (init_legacy_regcache_descr): Ensure that max_register_size is
3959 large enough for REGISTER_VIRTUAL_SIZE.
3960 * regcache.h (max_register_size): Declare.
3962 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3964 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3966 (e500_extract_return_value): Change type of valbuf pointer to
3969 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3971 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3974 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3975 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3976 long long) to prevent compiler warning on 64-bit systems.
3978 2002-08-23 Andrew Cagney <cagney@redhat.com>
3980 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3981 (DEPRECATED_STORE_RETURN_VALUE): New method.
3982 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3985 * values.c (set_return_value): Pass current_regcache to
3987 * arch-utils.h (legacy_store_return_value): Declare.
3988 * arch-utils.c (legacy_store_return_value): New function.
3989 (legacy_extract_return_value): Update parameters.
3991 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3993 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3994 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3995 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3996 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3997 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3998 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3999 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4000 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4001 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4002 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4005 * i386-tdep.c (i386_extract_return_value): Update.
4006 * arch-utils.c (legacy_extract_return_value): Update.
4007 * frv-tdep.c (frv_gdbarch_init): Update.
4008 * cris-tdep.c (cris_gdbarch_init): Update.
4009 * d10v-tdep.c (d10v_gdbarch_init): Update.
4010 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4011 * m68k-tdep.c (m68k_gdbarch_init): Update.
4012 * mcore-tdep.c (mcore_gdbarch_init): Update.
4013 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4014 * s390-tdep.c (s390_gdbarch_init): Update.
4015 * sparc-tdep.c (sparc_gdbarch_init): Update.
4016 * sh-tdep.c (sh_gdbarch_init): Update.
4017 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4018 * v850-tdep.c (v850_gdbarch_init): Update.
4019 * avr-tdep.c (avr_gdbarch_init): Update.
4020 * ia64-tdep.c (ia64_gdbarch_init): Update.
4021 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4022 * vax-tdep.c (vax_gdbarch_init): Update.
4023 * alpha-tdep.c (alpha_gdbarch_init): Update.
4024 * arm-tdep.c (arm_gdbarch_init): Update.
4025 * mips-tdep.c (mips_gdbarch_init): Update.
4026 * i386-tdep.c (i386_gdbarch_init): Update.
4028 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4030 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4031 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4033 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4035 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4038 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4040 * infrun.c (handle_inferior_event): Move a comment outside of a
4041 function call, in order to avoid indent reformatting this part
4042 of the code in an unreadable way.
4044 2002-08-23 Grace Sainsbury <graces@redhat.com>
4046 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4047 when breakpoints fail. Move general breakpoint error messages to
4049 * breakpoint.c (insert_breakpoints): Change warnings when
4050 breakpoints are nto inserted to specify the type. Remove call to
4051 memory_error when hardware breakpoints can't be inserted. Remove
4052 multiple calls to warning so all messages are sent to the user at
4054 (delete_breakpoints): Make insert error messsages more explicit.
4056 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4058 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4059 gdbserver/ChangeLog.
4061 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4063 * i386-tdep.c: Include "objfiles.h".
4064 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4065 skip_trampoline_code.
4066 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4067 (CPLUS_MARKER): Define to '.'.
4069 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4071 (linux_corefile_thread_callback): Increase args->num_notes.
4072 (linux_make_note_section): Initialize thread_args.num_notes, and
4073 use it to determine whether notes for any threads were created.
4075 2002-08-23 Donn Terry <donnte@microsoft.com>
4077 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4078 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4080 (write_with_trace): Conditionalize out the switch branch handling
4081 PCSHOLD if the corresponding macro is not defined. Likewise for
4082 PRSABORT and PRSTOP.
4083 This change will be needed by the Interix port.
4085 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4087 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4088 write_register wherever possible instead of manipulating the
4089 register bytes directly.
4090 Assign VALUE_CONTENTS to a variable and use that.
4091 The GPR numbers are now dependent on the architecture.
4093 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4095 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4097 (skip_prologue): Add support for BookE/e500 instructions.
4098 (e500_extract_return_value): New function.
4099 (frame_get_saved_regs): Add support for saving ev registers and
4101 (e500_store_return_value): New function.
4102 (rs6000_gdbarch_init): Move up default intializations of
4103 deprecated_extract_return_value and store_return_value. Overwrite
4104 init of store_return_value with e500 specific version.
4105 Set extract_return_value for e500.
4107 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4109 * blockframe.c (generic_call_dummy_register_unwind): Use
4110 regcache_cooked_read to catch cases in which the variable is
4111 stored in a pseudo register.
4113 2002-08-22 Andrew Cagney <cagney@redhat.com>
4115 * NEWS: Mention that the i960 has been made obsolete.
4116 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4118 (remote-nrom.o): Obsolete target.
4119 (remote-nindy.o, i960-tdep.o): Ditto.
4120 * remote-nrom.c: Make file obsolete.
4121 * remote-nindy.c, remote-vx960.c: Ditto.
4122 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4123 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4124 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4125 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4126 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4127 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4128 i960-*-vxworks* obsolete.
4129 * MAINTAINERS: Note that the i960 is obsolete.
4131 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4133 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4134 detach to allow reinitialization.
4136 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4138 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4141 2002-08-22 Jim Blandy <jimb@redhat.com>
4143 * coffread.c (coff_symfile_read): Don't try to read the line
4144 number table from disk if the image file doesn't have a symbol
4145 table; we'll never actually look at the info anyway, and Windows
4146 ships DLL's with bogus file offsets for the line number data.
4148 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4150 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4153 2002-08-21 Michael Snyder <msnyder@redhat.com>
4155 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4156 (MSYMBOL_SIZE): Replace macro with function.
4157 (DEFAULT_MIPS_TYPE): Delete unused macro.
4158 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4159 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4161 2002-08-21 Jim Blandy <jimb@redhat.com>
4163 * valops.c (value_cast): Simplify and correct logic for doing a
4164 static cast from a pointer to a base class to a pointer to a
4167 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4169 * infcmd.c (default_print_registers_info): Replace
4171 (registers_info): Use gdbarch_print_registers_info instead of
4173 * inferior.h (default_print_registers_info): Replace
4175 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4176 (DO_REGISTERS_INFO): Change to a predicate function.
4177 * gdbarch.h, gdbarch.c: Regenerate.
4179 2002-08-21 Keith Seitz <keiths@redhat.com>
4181 * gdb-events.sh: Add target-changed event.
4182 * gdb-events.c: Regenerated.
4183 * gdb-events.c: Regenerated.
4184 * valops.c (value_assign): Add target-changed event notification
4185 to inlval_register, lval_memory, and lval_reg_frame_relative.
4187 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4189 * NEWS: Add an entry regarding the improvement of the next/step
4190 operation on Alpha Tru64 multi-processor machines.
4192 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4194 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4196 * Makefile.in: Update all _h macro definitions.
4197 * Makefile.in (install-gdbtk): Move to install section.
4198 (rdi-share/libangsd.a): Move to end of file.
4200 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4202 * frame.c (frame_register_unwind): When a register, set addrp to
4203 the register's byte.
4205 2002-08-20 Michael Snyder <msnyder@redhat.com>
4207 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4208 used locally, so move them from the target machine header to here.
4209 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4210 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4212 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4214 2002-08-20 Andrew Cagney <cagney@redhat.com>
4216 * NEWS: Mention that the Apollo line was made obsolete.
4217 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4218 m68*-hp-hpux* obsolete.
4219 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4220 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4221 * buildsym.c (make_blockvector): Make static.
4222 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4223 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4224 (ALLDEPFILES): Remove dstread.c.
4225 (dstread.o): Obsolete make rule.
4226 * dstread.c: Makefile obsolete.
4228 * config/m68k/hp300hpux.mt: Ditto.
4229 * config/m68k/hp300hpux.mh: Ditto.
4230 * config/m68k/hp300bsd.mt: Ditto.
4231 * config/m68k/hp300bsd.mh: Ditto.
4232 * config/m68k/apollo68b.mt: Ditto.
4233 * config/m68k/apollo68v.mh: Ditto.
4234 * config/m68k/apollo68b.mh: Ditto.
4236 2002-08-20 Michael Snyder <msnyder@redhat.com>
4238 * mips-tdep.c (mips_in_return_stub): Make static.
4239 (mips_gdbarch_init): Set in_solib_return_trampoline.
4240 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4242 2002-08-20 Michael Snyder <msnyder@redhat.com>
4244 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4245 * gdbarch.c, gdbarch.h: Regenerate.
4246 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4248 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4250 2002-08-20 Michael Snyder <msnyder@redhat.com>
4252 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4253 (mips_gdbarch_init): Set skip_trampoline_code,
4254 in_solib_call_trampoline.
4255 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4256 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4258 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4260 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4262 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4263 vector type for ev registers.
4264 (e500_pseudo_register_read): New function.
4265 (e500_pseudo_register_write): New function.
4266 (e500_dwarf2_reg_to_regnum): New function.
4267 (PPC_UISA_NOFP_SPRS): New macro.
4268 (PPC_EV_REGS): New macro.
4269 (PPC_GPRS_PSEUDO_REGS): New macro.
4270 (registers_e500): New register set for e500.
4271 (variants): Add e500 variant.
4272 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4273 before setting architectural dependent variations. Initialize ev
4274 registers numbers. Add case for e500 architecture. Set the
4275 number of pseudo registers.
4277 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4279 * rs6000-tdep.c: Clean up comments.
4281 2002-08-20 Andrew Cagney <cagney@redhat.com>
4283 * h8300-tdep.c: Re-indent file.
4285 2002-08-20 Jim Blandy <jimb@redhat.com>
4287 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4290 2002-08-20 Keith Seitz <keiths@redhat.com>
4292 * breakpoints.c (watch_command_1): Use internal breakpoint
4293 when setting a watchpoint_scope breakpoint.
4295 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4297 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4298 (build_builtin_type_vec64i): Ditto.
4299 (build_builtin_type_vec128): Ditto.
4300 (build_builtin_type_vec128i): Ditto.
4302 2002-08-19 Michael Snyder <msnyder@redhat.com>
4304 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4305 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4306 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4307 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4308 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4309 CALL_DUMMY_ADDRESS): Delete.
4310 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4311 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4312 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4313 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4314 push_return_address.
4315 (mips_register_raw_size, mips_eabi_use_struct_convention,
4316 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4317 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4318 mips_init_extra_frame_info, mips_eabi_push_arguments,
4319 mips_n32n64_push_arguments, mips_push_return_address,
4320 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4321 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4323 2002-08-19 Michael Snyder <msnyder@redhat.com>
4325 * mips-tdep.c (mips_frame_num_args): New function.
4326 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4327 frame_saved_pc, frame_args_address, frame_locals_address,
4328 frame_num_args, and frame_args_skip.
4329 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4330 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4331 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4332 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4334 2002-08-20 Michael Snyder <msnyder@redhat.com>
4336 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4337 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4338 * mips-tdep.c (mips_store_struct_return): New function.
4339 (mips_extract_struct_value_address): New function.
4340 (mips_gdbarch_init): Set store_struct_return and
4341 extract_struct_value_address.
4343 2002-08-20 David Carlton <carlton@math.stanford.edu>
4345 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4346 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4347 (read_file_scope): Check that line_header is nonzero before
4348 decoding macro information.
4350 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4352 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4353 flag the general-purpose registers as floating-point on targets
4354 that don't support the floating-point registers.
4356 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4358 * rs6000-tdep.c (altivec_register_p): Delete.
4359 (rs6000_do_altivec_registers): Delete.
4360 (rs6000_altivec_registers_info): Delete.
4361 (rs6000_do_registers_info): Delete.
4362 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4363 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4365 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4367 * infcmd.c (do_registers_info): Print vector registers in hex
4369 (print_vector_info): Check that printing registers
4371 (print_float_info): Ditto.
4373 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4375 * mips-tdep.c (mips_gdbarch_init): Update.
4376 (mips_o32_extract_return_value): Rewrite.
4377 (mips_o32_store_return_value): Rewrite.
4378 (mips_o32_xfer_return_value): New function.
4379 (mips_xfer_register): Tweak debug print message. Allow for
4380 buf_offset when dumping the value transfered.
4382 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4384 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4385 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4386 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4387 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4388 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4390 2002-08-14 Michael Snyder <msnyder@redhat.com>
4392 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4394 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4396 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4398 (P): New macro to define a register as a pseudo register.
4399 (R, R4, R8, R16, FR32, R64, R0): Updated.
4400 (struct variant): Add new fields for number of pseudo registers
4401 and number of total registers.
4402 (tot_num_registers): New macro replacing....
4403 (num_registers): ...deleted macro.
4404 (num_registers): New function.
4405 (num_pseudo_registers): New function.
4406 (variants): Update all variants to intialize new fields correctly.
4407 Postpone initialization of number of pseudo regs and real regs.
4408 (init_variants): New function.
4409 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4412 2002-08-19 David Carlton <carlton@math.stanford.edu>
4414 * valops.c (search_struct_field): Change error message to treat
4415 return value of 0 from value_static_field as meaning that field is
4417 (value_struct_elt_for_reference): Ditto.
4418 * values.c (value_static_field): Treat an unresolved location the
4419 same as a nonexistent symbol. Fix PR gdb/635.
4420 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4421 enclosed. Fix PR gdb/574.
4422 * MAINTAINERS: Add self to Write After Approval list.
4424 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4426 * mips-tdep.c (mips_xfer_register): New function.
4427 (mips_n32n64_extract_return_value): Rewrite.
4428 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4429 instead of deprecated_extract_return_value.
4431 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4433 * rs6000-tdep.c (TDEP): Delete macro.
4434 (branch_dest): Replace use of TDEP macro with its body.
4435 (rs6000_pop_frame): Ditto.
4436 (rs6000_push_arguments): Ditto.
4437 (rs6000_skip_trampoline_code): Ditto.
4438 (rs6000_frame_saved_pc): Ditto.
4439 (rs6000_frame_chain): Ditto.
4440 (rs6000_register_name): Ditto.
4441 (rs6000_register_byte): Ditto.
4442 (rs6000_register_raw_size): Ditto.
4443 (rs6000_register_virtual_type): Ditto.
4444 (rs6000_register_convertible): Ditto.
4445 (rs6000_convert_from_func_ptr_addr): Ditto.
4447 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4449 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4451 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4452 MIPS_LINUX_JB_ELEMENT_SIZE.
4453 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4454 for MAX_REGISTER_RAW_SIZE arrays.
4455 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4456 MIPS_LINUX_JB_ELEMENT_SIZE.
4458 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4460 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4462 2002-08-19 Aidan Skinner <aidan@velvet.net>
4464 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4465 ada-valprint.c ada-tasks.c.
4466 (YYFILES): Add ada-exp.y.
4467 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4468 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4469 (ada-exp.tab.o): New target.
4471 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4473 * regcache.c (regcache_xfer_part): New function.
4474 (regcache_raw_read_part): New function.
4475 (regcache_raw_write_part): New function.
4476 (regcache_cooked_read_part): New function.
4477 (regcache_cooked_write_part): New function.
4478 * regcache.h (regcache_raw_read_part): Declare.
4479 (regcache_raw_write_part): Declare.
4480 (regcache_cooked_read_part): Declare.
4481 (regcache_cooked_write_part): Declare.
4483 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4485 * remote.c (remote_open_1): Add async_p.
4486 (remote_async_open_1): Delete.
4487 (open_remote_target): Delete.
4488 (remote_open, extended_remote_open): Update calls to remote_open_1.
4489 (remote_async_open, extended_remote_async_open): Call
4490 remote_open_1 instead of remote_async_open_1.
4492 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4494 * blockframe.c: Fix a few coding standard violations.
4496 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4498 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4500 * config/i386/tm-i386sco5.h: ... here. File removed.
4501 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4503 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4504 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4505 (TM_FILE): Set to tm-i386.h.
4506 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4507 * config/i386/tm-i386v.h: Remove file.
4508 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4509 instead of "i386/tm-i386v.h".
4510 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4511 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4513 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4514 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4517 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4519 * config/i386/nm-i386v.h: Add protection against
4521 (i386_register_u_addr): Remove prototype.
4522 (register_u_addr): New prototype.
4523 (REGISTER_U_ADDR): Redefine accordingly.
4524 * i386v-nat.c: Improve several comments.
4525 (i386_register_u_addr): Change signature and rename to
4526 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4529 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4531 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4532 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4533 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4534 deprecated_extract_return_value.
4535 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4536 rename mips_o32o64_push_arguments.
4537 (mips_gdbarch_init): Update.
4538 (mips_extract_return_value): Delete.
4539 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4540 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4541 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4542 (mips_n32n64_extract_return_value): Clone
4543 mips_extract_return_value.
4544 (mips_store_return_value): Delete.
4545 (mips_o32_store_return_value): Clone mips_store_return_value.
4546 (mips_o64_store_return_value): Clone mips_store_return_value.
4547 (mips_eabi_store_return_value): Clone mips_store_return_value.
4548 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4550 2002-08-18 Aidan Skinner <aidan@velvet.net>
4552 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4553 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4555 2002-08-18 Aidan Skinner <aidan@velvet.net>
4557 * ada-lang.c: Run through gdb_indent.sh.
4558 * ada-lang.h: Run through gdb_indent.sh.
4559 * ada-tasks.c: Run through gdb_indent.sh.
4560 * ada-typeprint.c: Run through gdb_indent.sh.
4561 * ada-valprint.c: Run through gdb_indent.sh.
4563 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4565 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4568 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4570 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4572 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4573 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4575 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4576 write_register_gen instead of write_register_bytes.
4578 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4579 i[3456]-*-osf1mk* configurations have been made obsolete.
4580 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4581 i[3456]86-*-osf1mk* hosts obsolete.
4582 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4584 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4585 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4586 config/i386/i386m3.mt, config/i386/nm-m3.h,
4587 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4588 config/i386/i386mk.mh, config/i386/i386mk.mt,
4589 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4591 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4592 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4593 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4595 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4597 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4598 (hppa_value_returned_from_stack): Declare.
4599 (hppa_extract_return_value): Declare.
4600 * config/pa/hppa.mt: New file.
4601 * configure.tgt: Recognize hppa*-*-*.
4602 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4604 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4606 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4609 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4611 * top.c (gdb_rl_operate_and_get_next): Make sure
4612 operate-and-get-next functions correctly even when the history
4613 list is completely filled.
4615 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4617 * MAINTAINERS (Target Instruction Set Architectures): Rename
4618 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4619 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4620 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4621 already listed under Host/Native.
4623 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4624 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4627 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4629 * config/ia64/ia64.mt: New file.
4630 * config/alpha/alpha.mt: New file.
4631 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4632 ia64-linux-gnu. Mention that ia64-elf is broken.
4633 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4635 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4637 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4638 generic_func_frame_valid instead of func_frame_valid.
4640 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4642 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4643 procfs appears to be broken when debugging on multi-processor
4644 machines. So enable software single stepping in order to avoid
4645 using the procfs interface to do next/step operations, using
4646 internal breakpoints instead.
4648 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4649 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4650 make this pc address equal to the value it would have if the
4651 system stepping capability was used. Also set a new flag used
4652 to ensure that we don't readjust the PC one more time later.
4654 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4655 address by DECR_PC_AFTER_BREAK when software single step is
4656 in use for this architecture, as this has already been taken
4657 care of in handle_inferior_event().
4659 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4661 * infrun.c (handle_inferior_event): Minor reformatting, to make
4662 a rather long condition expression easier to read.
4664 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4666 * Makefile.in (gdbtk.o): Move to end of file.
4667 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4668 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4669 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4670 (gdbtk-wrapper.o, gdbres.o): Ditto.
4672 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4674 * Makefile.in (copying.o): Separate out compile rule.
4675 (hpux-thread.o, procfs.o, signals.o): Ditto.
4676 (v850ice.o, z8k-tdep.o): Ditto.
4677 (tui-file.o): Move to TUI section.
4678 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4679 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4681 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4683 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4684 skip_trampoline_code, for better namespace-proofing.
4686 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4688 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4690 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4692 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4694 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4695 signal, check whether we hit a breakpoint before checking for a
4696 single step breakpoint. Otherwise, GDB fails to notice that a
4697 breakpoint has been hit when stepping onto a breakpoint.
4699 2002-08-16 Keith Seitz <keiths@redhat.com>
4701 * gdb-events.sh (clear_gdb_event_hooks): New function.
4702 * gdb-events.c: Regenerate.
4703 * gdb-events.h: Regenerate.
4705 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4707 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4708 not_a_sw_breakpoint.
4709 * breakpoint.h (bpstat_stop_status): Add parameter names.
4711 2002-08-16 Grace Sainsbury <graces@redhat.com>
4713 * remote.c (remote_insert_hw_breakpoint)
4714 (remote_remove_hw_breakpoint): Fix calculation of length field
4717 2002-08-15 Michael Snyder <msnyder@redhat.com>
4719 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4720 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4721 (supply_fpregset): Ditto.
4723 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4724 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4725 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4726 (TARGET_READ_SP): Delete.
4727 (DO_REGISTERS_INFO): Delete.
4728 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4730 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4731 from macros to functions.
4733 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4734 (mips_register_convertible, mips_register_convert_to_virtual,
4735 mips_register_convert_to_raw): Make static.
4736 (mips_read_sp): New function.
4737 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4738 (mips_do_registers_info): Make static.
4739 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4740 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4741 (mips_register_convert_from_type, mips_register_convert_to_type):
4743 (mips_gdbarch_init): Set up function_start_offset,
4744 register_virtual_size, pc_in_sigtramp.
4746 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4748 * infcmd.c (vector_info): New function.
4749 (_initialize_infcmd): Add command "info vector".
4750 (print_vector_info): New function.
4752 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4753 * gdbarch.h, gdbarch.c: Regenerate.
4755 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4757 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4758 ``print_all''. Only print vector registers when ``print_all''.
4760 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4762 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4763 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4765 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4766 Add `args' parameter.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4769 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4771 * infcmd.c (float_info): Call print_float_info.
4772 (print_float_info): New function. By default, print the
4773 floating-point registers.
4775 * arch-utils.h (default_print_float_info): Delete declaration.
4776 * arch-utils.c (default_print_float_info): Delete function.
4778 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4780 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4783 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4786 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4787 * configure.host: Make i[3456]86-*-aix host obsolete.
4788 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4789 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4790 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4791 config/i386/xm-i386aix.h: Make files obsolete.
4792 * i386aix-nat.c: Make file obsolete.
4793 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4794 (i386aix-nat.o): Make target obsolete.
4796 * config/i386/nm-gnu.h: Removed.
4797 * config/i386/nm-i386gnu.h: New file.
4798 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4799 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4801 * config/i386/tm-i386gnu.h: ... here. Removed.
4802 * config/i386/xm-i386gnu.h: Removed.
4803 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4804 (NAT_FILE): Set to nm-i386gnu.h.
4805 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4806 * i386-tdep.c: New file.
4807 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4808 (i386gnu-tdep.o): Specify dependencies.
4810 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4812 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4813 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4814 Adjust a few comments to reflect reality a bit closer.
4815 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4816 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4817 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4818 target_insert_watchpoint, target_remove_watchpoint):
4820 * config/i386/nm-i386sco5.h: ... here.
4821 (kernel_u_size): Add prototype. Improve a few comments and add
4822 protection against multiple inclusion.
4824 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4827 * uw-thread.c (SP_ARG0): Define if not already defined.
4828 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4830 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4832 * config/i386/tm-i386.h: Don't include "regcache.h".
4834 * i387-tdep.h (i387_print_float_info): New prototype.
4835 * i387-tdep.c (print_i387_value, print_i387_ext,
4836 print_i387_status_word, print_i387_control_word): Add `struct
4837 ui_file *' argument and use it for output.
4838 (i387_print_float_info): Renamed from i387_float_info. Add
4839 `struct gdbarch *' and `struct ui_file *' arguments and use the
4841 * i386-tdep.c: Include "i387-tdep.h".
4842 (i386_gdbarch_init): Set print_float_info.
4843 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4844 (FLOAT_INFO): Remove define.
4846 2002-08-13 Michael Snyder <msnyder@redhat.com>
4848 * mips-tdep.c (mips_push_arguments): Rename to
4849 mips_eabi_push_arguments, and tune for EABI.
4850 (MIPS_REGS_HAVE_HOME_P): Delete.
4851 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4852 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4853 Delete references to mips_regs_have_home_p.
4855 2002-08-14 Keith Seitz <keiths@redhat.com>
4857 * Makefile.in (install-gdbtk): Create insight plugin directory.
4858 Install plugins.tcl file.
4860 2002-08-14 Keith Seitz <keiths@redhat.com>
4862 * configure.in: Move SUBDIRS to near top of the file so that
4863 --enable options may add things to it.
4864 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4865 * configure: Regenerate.
4867 2002-08-13 Michael Snyder <msnyder@redhat.com>
4869 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4870 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4871 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4873 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4875 * vax-tdep.c (vax_get_saved_register): Delete function.
4876 (vax_gdbarch_init): Update.
4877 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4878 (ns32k_gdbarch_init): Update.
4879 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4880 (alpha_gdbarch_init): Update.
4882 2002-08-13 Andrew Cagney <cagney@redhat.com>
4884 * regcache.c (init_regcache_descr): Overallocate the
4885 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4886 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4888 (set_register_cached): Add range checking assertions. Use
4891 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4893 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4894 numbers for MMX registers.
4896 2002-08-13 Andrew Cagney <cagney@redhat.com>
4898 * i386-tdep.c (i386_gdbarch_init): Use
4899 generic_unwind_get_saved_register.
4901 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4903 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4904 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4906 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4907 Delete. Add comment regarding this now-deleted target method.
4909 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4911 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4912 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4913 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4914 real PC and the page number (if it's within the memory bank window).
4915 (m68hc11_pseudo_register_write): Likewise when saving.
4916 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4917 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4918 (m68hc11_register_raw_size): And use 32-bit for it.
4919 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4920 16K memory bank is used by the prog; also use the virtual pc.
4922 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4924 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4925 (m68hc11_gdbarch_init): Install it in gdbarch.
4926 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4927 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4928 (MSYMBOL_SIZE): New for documentation.
4929 (insn_return_kind): Enum to specify how a function returns.
4930 (frame_extra_info): Cleanup and record the return mode.
4931 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4932 register in address computation.
4933 (m68hc11_get_return_insn): New to obtain the return instruction used
4935 (m68hc11_frame_init_saved_regs): Take into account the return
4936 instruction used by the function for far and interrupt functions.
4937 (m68hc11_init_extra_frame_info): Take into account page register.
4938 (m68hc11_frame_args_address): Adjust according to the return mode.
4939 (show_regs): Print page register only when it's used.
4941 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4943 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4944 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4945 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4947 (m68hc11_register_raw_size): Likewise.
4949 2002-08-13 Andrew Cagney <cagney@redhat.com>
4951 * i386-tdep.c (i386_register_name): Handle mmx registers.
4952 (mmx_regnum_p): New function.
4953 (i386_mmx_names): New array.
4954 (mmx_num_regs): New variable.
4955 (i386_pseudo_register_read): New function.
4956 (i386_pseudo_register_write): New function.
4957 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4959 * regcache.c (regcache_raw_read_unsigned): New function.
4960 (regcache_raw_read_signed): New function.
4961 * regcache.h (regcache_raw_read_unsigned): Declare.
4962 (regcache_raw_read_signed): Declare.
4964 2002-08-13 Andrew Cagney <cagney@redhat.com>
4966 * regcache.c (regcache_raw_read_as_address): Delete function.
4967 (regcache_cooked_read_signed): New function.
4968 (regcache_cooked_read_unsigned): New function.
4969 * regcache.h (regcache_cooked_read_signed): Declare.
4970 (regcache_cooked_read_unsigned): Declare.
4971 (regcache_raw_read_as_address): Delete declaration.
4973 * blockframe.c (generic_read_register_dummy): Use
4974 regcache_cooked_read_unsigned.
4975 * i386-tdep.c (i386_extract_struct_value_address): Use
4976 regcache_cooked_read_unsigned.
4978 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4981 double sizes according to ELF ABI flags.
4982 (gdbarch_tdep): Record elf_flags.
4984 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4986 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4987 (m6812_prolog): They can appear in 68HC12 function prologue.
4988 (m68hc11_frame_chain): Cleanup.
4990 2002-08-12 Andrew Cagney <cagney@redhat.com>
4992 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4994 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4995 (i386_linux_register_raw_size): Delete function.
4996 (i386_linux_init_abi): Update.
4997 * i386-tdep.c (i386_register_raw_size): Delete function.
4998 (i386_register_byte): Delete function.
4999 (i386_gdbarch_init): Update.
5000 (i386_register_size): Delete array.
5001 (i386_register_offset): Delete array.
5003 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5004 (REGISTER_RAW_SIZE): Delete macro.
5005 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5006 (REGISTER_BYTE): Delete macro.
5008 2002-08-11 Aidan Skinner <aidan@velvet.net>
5010 * ada-lang.c (ada_lookup_partial_symbol)
5011 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5012 prototype names so that grep ^func works properly.
5014 * ada-lang.c (ada_array_element_type)
5015 (ada_lookup_partial_symbol): Fix typos in parameter list.
5017 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5018 Fix prototype names so that grep ^func works properly.
5020 2002-08-10 Andrew Cagney <cagney@redhat.com>
5021 Elena Zannoni <ezannoni@redhat.com>
5022 Martin M. Hunt <hunt@redhat.com>
5024 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5025 (build_builtin_type_vec128i): Set the vector bit.
5026 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5027 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5028 (build_builtin_type_vec64): New function.
5029 (build_builtin_type_vec64i): New function.
5030 (build_gdbtypes): Initialize builtin_type_vec64 and
5031 builtin_type_vec64i.
5033 2002-08-09 Andrew Cagney <cagney@redhat.com>
5035 * regcache.c (regcache_dump): Compare the register offset
5037 * arch-utils.c (generic_register_byte): New function.
5038 * arch-utils.h (generic_register_byte): Declare.
5039 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5040 * gdbarch.h, gdbarch.c: Regenerate.
5042 2002-08-09 Andrew Cagney <cagney@redhat.com>
5044 * regcache.c: Include "gdbcmd.h"
5045 (_initialize_regcache): Add commands "maintenance print
5046 registers", "maintenance print raw-registers" and "maintenance
5047 print cooked-registers".
5048 (enum regcache_dump_what): Define.
5049 (dump_endian_bytes): New function.
5050 (regcache_dump): New function.
5051 (regcache_print): New function.
5052 (maintenance_print_registers): New function.
5053 (maintenance_print_raw_registers): New function.
5054 (maintenance_print_cooked_registers): New function.
5055 * Makefile.in (regcache.o): Update dependencies.
5057 2002-08-09 Michael Snyder <msnyder@redhat.com>
5059 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5060 (mips_push_arguments): Correct some comments. Use paddr_nz
5061 for printing addresses in debug output. Replace static
5062 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5063 (mips_n32n64_push_arguments): New function, cloned from
5064 mips_push_arguments and tuned for the n32/n64 ABI.
5065 (mips_push_register): Buffer needs dynamic allocation.
5066 (mips_print_register): Ditto.
5067 (do_gp_register_row): Ditto.
5068 (mips_store_return_value): Ditto.
5069 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5071 2002-08-09 Don Howard <dhoward@redhat.com>
5073 * memattr.c (mem_info_command): Print special case of upper bound
5074 as max CORE_ADDR + 1.
5076 2002-08-08 Michael Snyder <msnyder@redhat.com>
5078 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5079 returns structs by ref if they're too big to fit in two registers.
5081 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5083 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5085 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5086 mips_find_saved_regs().
5087 (mips_pop_frame): Likewise.
5089 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5091 * blockframe.c (frame_saved_regs_register_unwind): Revise
5092 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5095 2002-08-09 Grace Sainsbury <graces@redhat.com>
5097 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5098 T-packets; the 'a' is not taken as a register number.
5099 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5100 (remote_stopped_data_address): New functions; add to target
5102 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5103 prototypes to match other implementations of this
5104 function. replace integer argument with pointer -- the length
5105 field in the Z-packet is the length of what is pointed to or 1 if
5106 pointer is null. Add to target vector.
5107 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5111 * remote.c (remote_wait): Add support to extract optional
5112 watchpoint information from T-packet. Ignore unrecognized
5113 optional info in T-packet.
5114 (remote_async_wait): Ditto.
5116 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5118 * cli/cli-dump.c: Change fopen modes to use binary open modes
5119 as defined in include/fopen-bin.h throughout.
5121 2002-08-08 Michael Snyder <msnyder@redhat.com>
5123 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5125 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5127 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5128 assertion failure by returning early after a warning.
5130 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5132 * mips-tdep.c (mips_find_saved_regs): Make static.
5133 (mips_frame_init_saved_regs): New function.
5134 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5135 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5136 (mips_find_saved_regs): Delete declaration.
5138 2002-08-08 Grace Sainsbury <graces@redhat.com>
5140 * remote.c (remote_wait, remote_async_wait): Change
5141 thread_num from int to ULONGEST.
5142 (unpack_varlen_hex): Change result parameter from
5143 int * to ULONGEST *.
5145 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5147 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5148 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5150 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5152 2002-08-08 Andrew Cagney <cagney@redhat.com>
5154 * gcore.c (override_derive_stack_segment): Delete variable.
5155 (preempt_derive_stack_segment): Delete function.
5156 (derive_stack_segment): Delete function.
5157 (default_derive_stack_segment): Renamed to derive_stack_segment.
5158 (override_derive_heap_segment): Delete variable.
5159 (preempt_derive_heap_segment): Delete function.
5160 (derive_heap_segment): Delete function.
5161 (default_derive_heap_segment): Rename to derive_heap_segment.
5163 2002-08-06 Michael Snyder <msnyder@redhat.com>
5165 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5166 * mips-tdep.c (mips_EABI_use_struct_convention,
5167 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5168 New functions. (mips_use_struct_convention): Delete.
5169 (mips_gdbarch_init): set use_gdbarch_convention.
5171 2002-08-06 Michael Snyder <msnyder@redhat.com>
5173 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5174 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5175 mips_o32_reg_struct_has_addr): New functions.
5176 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5178 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5180 * regcache.c (pseudo_register): Delete function.
5181 (fetch_register): Delete function.
5182 (store_register): Delete function.
5183 (regcache_raw_read, legacy_read_register_gen): Use
5184 target_fetch_registers instead of fetch_register.
5185 (legacy_write_register_gen, regcache_raw_write): Use
5186 target_store_register instead of store_register.
5187 (write_register_bytes): Ditto.
5189 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5190 (STORE_PSEUDO_REGISTER): Delete.
5191 * gdbarch.h, gdbarch.c: Regenerate.
5193 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5195 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5196 write dump file binary.
5198 2002-08-05 Michael Snyder <msnyder@redhat.com>
5200 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5201 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5202 (mips_gdbarch_init): Set N32 target to be mips64.
5204 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5206 * frame.c (find_saved_register): Break out of loop once saved
5207 register address is found. Don't mention sparc in loop comment
5210 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5212 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5213 mips_default_saved_regsize to 8.
5215 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5217 * gcore.c: Do not include <sys/procfs.h>.
5218 * Makefile.in (gcore.o): Update dependencies.
5220 2002-08-06 Andrew Cagney <cagney@redhat.com>
5222 * configure.tgt: Make arc-*-* obsolete.
5223 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5224 * MAINTAINERS: Make arc-elf obsolete.
5225 * arc-tdep.c: Make file obsolete.
5226 * config/arc/arc.mt: Ditto.
5227 * config/arc/tm-arc.h: Ditto.
5229 2002-08-05 Theodore A. Roth <troth@verinet.com>
5231 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5233 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5235 * mcore-tdep.c (mcore_gdbarch_init): Use
5236 generic_unwind_get_saved_register instead of
5237 generic_get_saved_register.
5238 * v850-tdep.c (v850_gdbarch_init): Ditto.
5239 * frv-tdep.c (frv_gdbarch_init): Ditto.
5240 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5241 * s390-tdep.c (s390_gdbarch_init): Ditto.
5242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5243 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5244 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5246 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5248 * objfiles.h: Add missing #include "symfile.h"
5250 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5252 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5254 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5255 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5258 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5260 * NEWS: Cleanup and nitpick.
5262 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5264 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5266 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5268 * Makefile.in (gdbtk-bp.o): Update dependencies.
5269 (gdbtk-register.o): Ditto.
5270 (gdbtk-varobj.o): Ditto.
5272 2002-08-03 Andrew Cagney <cagney@redhat.com>
5274 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5275 m68hc11_fetch_pseudo_register.
5276 (m68hc11_pseudo_register_write): Replace
5277 m68hc11_store_pseudo_register.
5278 (m68hc11_gdbarch_init): Update.
5280 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5282 * gdbarch.sh: Include "gdb_string.h".
5283 * gdbarch.c: Regenerate.
5285 * regcache.c: Include "gdb_string.h".
5286 * ax-general.c: Ditto.
5288 * std-regs.c: Ditto.
5289 * fbsd-proc.c: Ditto.
5292 * Makefile.in (regcache.o): Update dependencies.
5293 (thread.o, gdbarch.o): Ditto.
5294 (ax-general.o, gdbarch.o): Ditto.
5295 (varobj.o, std-regs.o): Ditto.
5296 (fbsd-proc.o): Specify dependencies.
5298 2002-08-02 Andrew Cagney <cagney@redhat.com>
5300 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5302 (regcache_cooked_write): Ditto.
5304 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5306 * regcache.c (regcache_cooked_read): New function.
5307 (regcache_cooked_write): New function.
5308 (read_register_gen): Rewrite using regcache_cooked_read.
5309 (write_register_gen): Rewrite using regcache_cooked_write.
5311 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5314 2002-08-02 Andrew Cagney <cagney@redhat.com>
5316 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5317 Replace the architecture methods register_read and register_write.
5318 * gdbarch.h, gdbarch.c: Regenerate.
5319 * regcache.c (init_regcache_descr): Update.
5320 (read_register_gen): Update.
5321 (write_register_gen): Update.
5322 (supply_register): Update comment.
5324 * sh-tdep.c (sh_gdbarch_init): Update.
5325 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5326 `regcache' and `gdbarch' parameters. Make `buffer' a void
5327 pointer. Update code.
5328 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5329 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5330 void pointer. Update code.
5331 (sh64_register_write): Delete.
5332 (sh4_register_read): Delete.
5333 (sh64_register_read): Delete.
5334 (sh4_register_write): Delete.
5335 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5336 void pointer, `to' parameter a void pointer.
5337 (sh_sh64_register_convert_to_raw): Ditto.
5339 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5341 * mips-tdep.c (mips_register_virtual_type): Use architecture
5342 invariant return values.
5344 2002-08-01 Andrew Cagney <cagney@redhat.com>
5346 * linux-proc.c: Include "gdb_string.h".
5347 * Makefile.in (linux-proc.o): Update dependency list.
5349 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5351 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5354 2002-08-01 Grace Sainsbury <graces@redhat.com>
5356 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5357 to_insert_watchpoint, to_remove_watchpoint,
5358 to_stopped_by_watchpoint, to_stopped_data_address,
5359 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5360 target vecctor. Define their corresponding macros so they call
5363 * target.c: Add default and debug versions of for
5364 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5365 to_insert_watchpoint, to_remove_watchpoint,
5366 to_stopped_by_watchpoint, to_stopped_data_address,
5367 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5369 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5371 * mips-tdep.c (mips_register_virtual_type): New function.
5372 (mips_gdbarch_init): Register mips_register_virtual_type()
5373 with gdbarch machinery.
5374 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5375 this file instead of tm-bigmips.h.
5376 (MIPS_REGSIZE): Delete this macro.
5377 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5378 multiarch version in mips-tdep.c will be found.
5380 2002-08-01 Andrew Cagney <cagney@redhat.com>
5382 * NEWS: Menion that CHILL has been made obsolete.
5384 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5385 * stabsread.c (read_range_type): Ditto.
5386 * gdbtypes.h: Ditto.
5387 * language.c (binop_type_check): Ditto.
5388 (binop_result_type): Ditto.
5389 (integral_type): Ditto.
5390 (character_type): Ditto.
5391 (string_type): Ditto.
5392 (boolean_type): Ditto.
5393 (structured_type): Ditto.
5394 (lang_bool_type): Ditto.
5395 (binop_type_check): Ditto.
5396 * language.h (_LANG_chill): Ditto.
5397 * dwarfread.c (set_cu_language): Ditto.
5398 * dwarfread.c (CHILL_PRODUCER): Ditto.
5399 * dwarfread.c (handle_producer): Ditto.
5400 * expression.h (enum exp_opcode): Ditto.
5401 * eval.c: Ditto for comments.
5402 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5403 * expprint.c (print_subexp): Ditto.
5404 (print_subexp): Ditto.
5405 * valops.c (value_cast): Ditto.
5406 (search_struct_field): Ditto.
5407 * value.h (COERCE_VARYING_ARRAY): Ditto.
5408 * symfile.c (init_filename_language_table): Ditto.
5409 (add_psymbol_with_dem_name_to_list): Ditto.
5410 * valarith.c (value_binop): Ditto.
5412 * valops.c (value_slice): Ditto.
5413 * symtab.h (union language_specific): Ditto.
5414 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5415 (SYMBOL_DEMANGLED_NAME): Ditto.
5416 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5417 * defs.h (enum language): Ditto.
5418 * symtab.c (got_symtab): Ditto.
5419 * utils.c (fprintf_symbol_filtered): Ditto.
5421 * ch-typeprint.c: Make file obsolete.
5422 * ch-valprint.c: Make file obsolete.
5423 * ch-lang.h: Make file obsolete.
5424 * ch-exp.c: Make file obsolete.
5425 * ch-lang.c: Make file obsolete.
5427 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5429 (TARGET_FLAGS_TO_PASS): Ditto.
5430 (CHILLFLAGS): Obsolete.
5432 (CHILL_FOR_TARGET): Obsolete.
5433 (CHILL_LIB): Obsolete.
5434 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5436 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5437 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5439 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5442 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5444 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5445 This does not change anything at the moment, but will be helpful
5446 later when full Ada support is integrated.
5448 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5450 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5453 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5455 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5456 and save it in a local variable. Use variable in later test.
5458 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5460 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5461 test. (Thanks to Daniel Jacobowitz.)
5463 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5465 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5466 (mips_abi_strings): Add "n64".
5467 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5469 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5471 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5472 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5474 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5476 * utils.c (host_pointer_to_address, address_to_host_pointer):
5477 Use gdb_assert() instead of explicit call to internal_error().
5479 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5481 * Makefile.in (rs6000-nat.o): Update dependencies.
5483 From Nicholas Duffek:
5484 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5485 (aix-thread.o): New rule.
5486 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5487 * config/powerpc/aix432.mh: New file.
5489 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5491 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5492 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5493 (fetch_core_registers, ppc_linux_supply_gregset)
5494 (ppc_linux_supply_fpregset): New functions.
5495 (ppc_linux_regset_core_fns): New.
5496 (_initialize_ppc_linux_tdep): Call add_core_fns.
5497 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5498 and ppc_linux_supply_gregset.
5499 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5500 (supply_fpregset): Call ppc_linux_supply_fpregset.
5501 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5503 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5505 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5507 * symtab.c (lookup_symbol): Demangle before lowercasing.
5509 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5511 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5513 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5514 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5515 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5516 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5518 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5519 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5520 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5521 (avr-tdep.o, mon960-rom.o): Ditto.
5522 (aout_stabs_gnu_h): Define.
5523 (symtab_h): Remove $(gdb_obstack_h).
5525 2002-07-30 Jim Blandy <jimb@redhat.com>
5527 Patch from David Carlton <carlton@math.stanford.edu>:
5528 * gdbinit.in: Move the `dir' commands that add GDB's own source
5529 directory to the search path to the end, so that the `gdb' source
5530 directory will be searched first.
5532 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5534 * gdb_obstack.h: New file.
5535 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5536 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5537 * objfiles.h: Include "gdb_obstack.h".
5538 * Makefile.in (gdb_obstack_h): Define.
5539 (symtab_h): Add $(gdb_obstack_h).
5540 (objfiles_h): Add $(gdb_obstack_h).
5542 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5543 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5544 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5545 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5546 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5547 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5548 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5549 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5551 * Makefile.in (bcache.o): Update dependencies.
5552 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5553 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5554 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5555 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5556 (stabsread.o, symfile.o, symmisc.o): Ditto.
5557 (symtab.o, typeprint.o, macroexp.o): Ditto.
5558 (macrotab.o, mdebugread.o): Ditto.
5559 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5560 (coff_ecoff_h, aout_aout64_h): Define.
5561 (aout_stabs_gnu_h, libaout_h): Define.
5563 2002-07-29 Andrew Cagney <cagney@redhat.com>
5565 * regcache.c (struct regcache_descr): Rename nr_registers to
5566 nr_cooked_registers. Revise comments describing the structure
5568 (init_regcache_descr): Update.
5569 (init_legacy_regcache_descr): Update.
5570 (read_register_gen, write_register_gen): When a cooked register in
5571 the raw register range, directly access the value from the raw
5574 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5576 * z8k-tdep.c: Do not include "obstack.h".
5577 * h8300-tdep.c, h8500-tdep.c: Ditto.
5578 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5579 * valprint.c, v850-tdep.c: Ditto.
5580 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5581 * mn10200-tdep.c: Ditto.
5583 * Makefile.in (z8k-tdep.o): Update dependencies.
5584 (m68hc11-tdep.o, valprint.o): Ditto.
5585 (v850-tdep.o, d10v-tdep.o): Ditto.
5586 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5587 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5588 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5589 (sh_opc_h, gdb_sim_sh_h): Define.
5590 (elf_sh_h, elf_bfd_h): Define.
5591 (opcode_m68hc11_h): Define.
5592 (OPCODES_SRC, OPCODES_DIR): define.
5593 (OPCODES): Use $(OPCODES_DIR).
5594 (gdb_sim_d10v_h): Rename sim_d10v_h.
5595 (gdb_sim_arm_h): Rename sim_arm_h.
5597 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5599 * utils.c (host_pointer_to_address, address_to_host_pointer):
5600 Change internal_error() message to indicate function responsible
5603 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5605 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5606 calls to local_hex_string_custom().
5608 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5610 * irix5-nat.c: Move IRIX shared library support from here...
5611 * solib-irix.c: ...to here. Revised substantially to work with
5612 generic solib framework.
5614 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5615 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5616 * mips-irix-tdep.c: New file.
5618 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5619 (mips-irix-tdep.o, solib-irix.o): New rules.
5620 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5622 * config/mips/irix6.mt (TDEPFILES): Likewise.
5623 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5625 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5627 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5628 disabled (via ``#if 0'') includes.
5630 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5632 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5633 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5634 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5635 Add support for the fpscr register.
5636 * rs6000-nat.c (regmap, fetch_inferior_registers)
5637 (store_inferior_registers, fetch_core_registers): Likewise.
5639 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5641 * rs6000-nat.c (language.h): Include.
5642 (special_regs): Delete this array.
5643 (regmap): New function.
5644 (fetch_register, store_register): Use regmap() to map gdb
5645 register numbers to ptrace register numbers. Also, use
5646 outputs from regmap() to make decisions regarding type of
5647 ptrace() call to make. In particular, don't compare against
5648 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5649 (fetch_inferior_registers, store_inferior_registers): Where
5650 possible, obtain register numbers from tdep struct. Don't
5651 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5652 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5653 (LAST_UISA_SP_REGNUM): Delete.
5655 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5657 * rs6000-nat.c (ppc-tdep.h): Include.
5658 (fetch_registers, store_register, fetch_core_registers): Don't
5659 access registers[] directly. Instead, use supply_register() or
5660 regcache_collect() as appropriate.
5661 (find_toc_address): Format hex address with local_hex_string().
5663 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5665 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5668 2002-07-24 Tom Tromey <tromey@redhat.com>
5670 * jv-exp.y: Marked all strings with _().
5671 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5673 (MethodInvocation, CastExpression, parse_number, yyerror,
5674 java_type_from_name, push_expression_name, yylex): Typo fixes.
5676 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5678 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5679 (tee_file_flush, tee_file_write, tee_file_fputs)
5680 (tee_file_isatty): New.
5681 * ui-file.h (tee_file_new): Add prototype.
5683 2002-07-24 Aidan Skinner <aidan@velvet.net>
5685 * ada-lang.c: Change k&r style function definitions to prototyped
5687 * ada-typeprint.c: Change k&r style function definitions to prototyped
5689 * ada-valprint.c: Change k&r style function definitions to prototyped
5692 2002-07-24 Andrew Cagney <cagney@redhat.com>
5694 * README: Remove reference to remote-bug.
5695 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5697 (m88k-nat.o): Delete rule.
5698 (m88k-tdep.o): Delete rule.
5699 (remote-bug.o): Delete rule.
5700 * MAINTAINERS: Mark as obsolete.
5701 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5702 * m88k-tdep.c: Make file obsolete.
5703 * config/m88k/m88k.mh: Ditto.
5704 * config/m88k/delta88v4.mh: Ditto.
5705 * config/m88k/delta88v4.mt: Ditto.
5706 * config/m88k/delta88.mt: Ditto.
5707 * config/m88k/delta88.mh: Ditto.
5708 * remote-bug.c: Ditto.
5709 * config/m88k/tm-delta88.h: Ditto.
5710 * config/m88k/nm-delta88v4.h: Ditto.
5711 * config/m88k/xm-delta88.h: Ditto.
5712 * config/m88k/xm-dgux.h: Ditto.
5713 * config/m88k/tm-m88k.h: Ditto.
5714 * config/m88k/nm-m88k.h: Ditto.
5715 * config/m88k/tm-delta88v4.h: Ditto.
5716 * m88k-nat.c: Ditto.
5717 * cxux-nat.c: Ditto.
5718 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5719 and m88*-*-* obsolete.
5720 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5723 2002-07-24 Andrew Cagney <cagney@redhat.com>
5725 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5726 constant. Same for local pointer variables.
5727 (extract_signed_integer): Ditto.
5728 * defs.h (extract_unsigned_integer): Update.
5729 (extract_signed_integer): Update.
5731 2002-07-24 Andrew Cagney <cagney@redhat.com>
5733 * regcache.c (regcache_raw_write): Change buf parameter to a
5734 constant void pointer.
5735 (regcache_raw_read): Change buf parameter to a void pointer.
5736 (legacy_write_register_gen): Change myaddr parameter a constant
5738 (supply_register): Change val parameter to a const void pointer.
5739 * regcache.h (regcache_raw_write): Update declaration.
5740 (regcache_raw_read): Update declaration.
5741 (supply_register): Update declaration.
5743 2002-07-24 Tom Tromey <tromey@redhat.com>
5745 * defs.h (gdb_readline_wrapper): Declare.
5746 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5747 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5748 * top.c (gdb_readline_wrapper): New function.
5749 (command_line_input): Use it.
5751 2002-07-24 Andrew Cagney <cagney@redhat.com>
5753 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5754 regcache_read and regcache_write.
5755 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5756 * regcache.c: Update.
5757 * sh-tdep.c (sh64_push_arguments): Update comment.
5758 (sh_pseudo_register_read): Update.
5759 (sh_pseudo_register_write): Update.
5760 (sh4_register_read): Update.
5761 (sh4_register_write): Update.
5762 (sh64_pseudo_register_read): Update.
5763 (sh64_pseudo_register_write): Update.
5764 (sh64_register_read): Update.
5765 (sh64_register_write): Update.
5766 * i386-tdep.c (i386_extract_return_value): Update.
5767 (i386_extract_struct_value_address): Update.
5768 (i386_extract_return_value): Update.
5769 * blockframe.c (generic_read_register_dummy): Update.
5770 (generic_call_dummy_register_unwind): Update
5771 * infrun.c (write_inferior_status_register): Update.
5773 2002-07-23 Jim Blandy <jimb@redhat.com>
5775 * parser-defs.h (expression_context_pc): Make this extern.
5776 (Thanks to Michael Snyder.)
5778 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5780 GDB 5.2.1 released from 5.2 branch.
5781 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5782 * README: Update to mention 5.2.1.
5784 2002-07-23 Mark Salter <msalter@redhat.com>
5786 * remote.c (remote_read_bytes): Fix check for error.
5788 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5790 * aix-thread.c (language.h): Include.
5791 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5792 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5793 Print newlines at end of debug messages.
5794 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5795 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5797 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5799 * aix-thread.c (ppc-tdep.h): Include.
5800 (special_register_p): New function.
5801 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5802 (store_regs_user_thread): Use register number information from
5803 gdbarch_tdep struct instead of hardcoded offsets relative to
5804 FIRST_UISA_SP_REGNUM.
5805 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5806 special_register_p() instead of using FPLAST_REGNUM and
5807 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5808 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5809 will be MQ's register number.
5811 2002-07-22 Michael Snyder <msnyder@redhat.com>
5813 * aix-thread.c (ops): Rename to aix_thread_ops.
5814 (base_ops): Rename to base_target.
5815 (ops_attach): Rename to aix_thread_attach.
5816 (ops_detach): Rename to aix_thread_detach.
5817 (ops_resume): Rename to aix_thread_detach.
5818 (ops_wait): Rename to aix_thread_wait.
5819 (ops_kill): Rename to aix_thread_kill.
5820 (init_ops): Rename to init_aix_thread_ops.
5821 (ops_fetch_register): Rename to aix_thread_fetch_register.
5822 (ops_store_register): Rename to aix_thread_store_register.
5823 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5824 (ops_thread_alive): Rename to aix_thread_thread_alive.
5825 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5826 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5827 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5828 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5829 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5830 (store_regs_lib): Rename to store_regs_user_thread.
5831 (store_regs_kern): Rename to store_regs_kernel_thread.
5833 2002-07-22 Michael Snyder <msnyder@redhat.com>
5835 * aix-thread.c (ops_prepare_to_store): Eliminate.
5836 (init_ops): Don't initialize ops.prepare_to_store.
5837 (store_regs_kern): Pre-fetch register buffers from child,
5838 because some registers may not be in the cache. Copy
5839 regs from register cache only if they are cached.
5840 (store_regs_lib): Copy regs from register cache only
5842 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5843 fill_gprs64): Ditto.
5845 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5847 * aix-thread.c (gdb_assert.h): Include.
5848 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5849 register sizes (from register cache) match size of buffer holding
5851 (fill_sprs32): Change parameter types to match those in the ptrace()
5853 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5854 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5856 2002-07-22 Michael Snyder <msnyder@redhat.com>
5858 * aix-thread.c (supply_sprs64): Cosmetic change.
5859 (supply_sprs32): Cosmetic change.
5860 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5861 (fill_sprs64): Use regcache_collect instead of read_register.
5862 (store_regs_lib): Use regcache_collect instead of
5863 read_register. Use fill_sprs32 instead of fill_sprs64,
5864 if debugging a 32-bit architecture.
5865 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5866 out of the register cache, instead of passing a pointer into
5867 the register cache directly to ptrace. Use regcache_collect
5868 insteaad of read_register.
5869 (ops_prepare_to_store): Use target_read_registers instead
5870 of read_register_bytes.
5872 2002-07-20 Aidan Skinner <aidan@velvet.net>
5874 * MAINTAINERS: Add self under write after approval.
5876 2002-07-20 Aidan Skinner <aidan@velvet.net>
5878 * ada-tasks.c: Change k&r style function definitions to prototyped
5881 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5883 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5884 * x86-64-tdep.c: Include "objfiles.h".
5885 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5886 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5888 2002-07-17 Michal Ludvig <michal@suse.cz>
5890 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5891 (update_context): Initialise cfa variable.
5893 2002-07-17 Michael Snyder <msnyder@redhat.com>
5895 * aix-thread.c: Shorten some long lines.
5896 Bring comments into line with code spec.
5898 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5900 * infrun.c: Re-indent using gdb_indent.sh.
5902 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5904 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5905 Leave the indentation temporarily untouched, to minimize the diffs.
5907 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5909 * stabsread.c: Make os9k sections of the code obsolete,
5911 * stabsread.h: Make os9k sections of the code obsolete.
5913 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5915 * linux-low.c (regsets_store_inferior_registers): Add free()
5916 at the end of a loop to prevent memory leak.
5917 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5918 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5919 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5921 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5923 2002-07-17 Jim Blandy <jimb@redhat.com>
5925 * macrocmd.c (info_macro_command): Remove newline from error
5928 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5930 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5931 (sh_gdbarch_init): Use it for sh-dsp.
5933 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5935 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5936 64-bit DWARF2 format.
5938 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5940 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5941 <sys/proc.h> when not available.
5943 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5945 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5946 * stabsread.c: Make os9k sections of the code obsolete.
5947 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5948 * config/i386/i386os9k.mt: Make file obsolete.
5949 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5950 (COMMON_OBS): Remove os9kread.o
5951 (SFILES): Remove os9kread.c.
5952 (os9kread.o, remote-os9k.o): Make target obsolete.
5953 * remote-os9k.c: Make file obsolete.
5954 * os9kread.c: Make file obsolete.
5957 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5959 * NEWS: Mention that the FR30 has been made obsolete.
5960 * fr30-tdep.c: Make file obsolete.
5961 * config/fr30/tm-fr30.h: Ditto.
5962 * config/fr30/fr30.mt: Ditto.
5963 * configure.tgt: Make fr30-*-elf obsolete.
5964 * MAINTAINERS: Make fr30-elf obsolete.
5966 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5968 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5969 found is not inside a section.
5971 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5973 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5975 (pdc_realloc): Use xrealloc() instead of realloc().
5977 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5979 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5980 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5981 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5984 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5986 * aix-thread.c (ptrace_check): Eliminate goto.
5987 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5990 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5992 * aix-thread.c (gdbcmd.h): Include.
5993 (DEBUG, DBG, DBG2, dbg): Eliminate.
5994 (debug_aix_thread): New static global.
5995 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5996 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5997 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5998 invocations to DBG and DBG2 macros to test against
5999 ``debug_aix_thread'' and call fprintf_unfiltered().
6000 (_initialize_aix_thread): Add new command "set debug aix-thread".
6002 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6004 From Gerhard Tonn <TON@de.ibm.com>:
6005 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6006 instead of supply_register.
6008 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6010 * dwarf2cfi.c: Include "gdb_assert.h".
6011 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6013 (update_context): Do not use __func__. Add missing ``break''.
6014 (update_context): Do not use __func__.
6016 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6018 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6019 and its setting. Set gdbarch instruction printing functions
6020 directly. For non-rs6000 case use new function
6021 gdb_print_insn_powerpc.
6022 (gdb_print_insn_powerpc): New function.
6024 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6026 * NEWS: Mention that the d30v has been marked obsolete.
6027 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6028 * configure.tgt: Mark d30v-*-* as obsolete.
6029 * d30v-tdep.c: Mark file as obsolete.
6030 * config/d30v/d30v.mt: Ditto.
6031 * config/d30v/tm-d30v.h: Ditto.
6033 2002-07-13 Aidan Skinner <aidan@velvet.net>
6035 * ada-tasks.c (add_task_entry): replace calls to
6036 malloc() with xmalloc
6037 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6039 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6040 ada_finish_decode_line_1, all_sals_for_line
6041 ada_breakpoint_rewrite): replace calls to free() with xfree()
6043 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6045 From Nicholas Duffek (with minor changes by Martin Hunt,
6046 Louis Hamilton, and Kevin Buettner):
6047 * aix-thread.c: New file.
6049 2002-07-12 Petr Sorfa <petrs@caldera.com>
6051 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6052 complaint for invalid attribute class or form.
6053 (read_func_scope): DW_AT_frame_base
6054 better handling of DW_AT_block*.
6055 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6056 better handling of DW_AT_block*.
6057 (read_common_block): DW_AT_location
6058 better handling of DW_AT_block*.
6059 (read_partial_die): DW_AT_location better handling
6061 (new_symbol): DW_AT_external better handling of
6062 DW_AT_block*. Proper initialization of variable
6064 (attr_form_is_block): New function that returns true
6065 if the attribute's form is of DW_FORM_block*.
6067 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6069 * valops.c (find_method_list): Remove comment about
6070 removed STATIC_MEMFUNCP argument.
6071 (value_find_oload_method_list): Likewise.
6073 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6075 From Nicholas Duffek:
6076 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6077 target_new_objfile_hook.
6079 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6081 From Nicholas Duffek:
6082 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6085 2002-07-12 Andrew Cagney <cagney@redhat.com>
6087 * MAINTAINERS: Mention --enable-sim-build-warnings.
6088 (m68hc11-elf): Disable sim build warnings.
6089 (m32r-elf): Mark as broken obsolete candidate.
6090 (x86_64-linux-gnu): Mark as buildable with -Werror.
6091 (arm-elf): Change -w to ``,'' which enables warnings but not
6094 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6096 * bcache.h: Update copyright.
6097 (struct bstring, struct bcache): Move definition to "bcache.c".
6098 Replaced by opaque declaration.
6099 (bcache_xfree): Replace free_bcache.
6100 (bcache_xmalloc, bcache_memory_used): Declare.
6102 * bcache.c: Update copyright.
6103 (struct bstring, struct bcache): Moved to here from "bcache.h".
6105 (bcache_xmalloc, bcache_memory_used): New functions.
6106 (bcache_xfree): Replace function free_bcache.
6108 * Makefile.in (objfiles.o): Add $(bcache_h).
6109 (objfiles_h): Remove $(bcache_h).
6110 (symfile.o): Add $(bcache_h).
6112 * symmisc.c: Update copyright.
6113 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6114 (print_objfile_statistics): Use bcache_memory_used.
6116 * symfile.c: Include "bcache.h".
6117 (reread_symbols): Use bcache_xfree.
6118 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6119 (add_psymbol_to_list): Pass psymbol_cache by value.
6120 (add_psymbol_with_dem_name_to_list): Ditto.
6122 * objfiles.h: Update copyright.
6123 (struct bcache): Declare opaque. Do not include "bcache.h".
6124 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6126 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6128 * objfiles.c: Include "bcache.h". Update copyright.
6129 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6131 (free_objfile): Use bcache_xfree.
6133 2002-07-11 Grace Sainsbury <graces@redhat.com>
6135 * monitor.c (monitor_fetch_register): Make name a constant.
6136 (monitor_store_register): Same.
6138 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6140 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6141 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6142 (finish_block) For non-function blocks, hash the symbol table. For
6143 function blocks, mark the symbol table as unhashed.
6144 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6145 (msymbol_hash_iw): Likewise.
6146 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6148 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6149 (lookup_minimal_symbol): Likewise for both.
6150 * symtab.h (struct block): Add `hashtable' flag. Comment the
6152 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6153 (ALL_BLOCK_SYMBOLS): Update.
6154 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6155 (struct symbol): Add `hash_next' pointer.
6156 * symtab.c (lookup_block_symbol): Search using the hash table when
6158 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6159 (search_symbols, find_addr_symbol): Likewise.
6161 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6162 (read_dst_symtab): Likewise.
6163 * jv-lang.c (get_java_class_symtab): Likewise.
6164 * mdebugread.c: Include "gdb_assert.h".
6165 (shrink_block): Assert that the block being modified is not hashed.
6166 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6167 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6169 (dump_symtab): Recognize hashed blocks.
6170 * printcmd.c (print_frame_args): Assert that function blocks do not
6171 have hashed symbol tables.
6172 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6173 (fill_in_ada_prototype, debug_print_block): Likewise.
6174 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6176 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6178 * stack.c (print_frame): Use result of frame_address_in_block()
6179 instead of fi->pc when evaluating symbols.
6180 (backtrace_command_1): Ditto.
6182 2002-07-11 Andrew Cagney <cagney@redhat.com>
6184 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6187 * arm-tdep.c (arm_register_name): Make return type constant.
6189 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6191 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6193 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6194 * s390-tdep.c (s390_fp_regnum): Ditto.
6195 (s390_read_fp): Ditto.
6196 (s390_pop_frame): Ditto.
6197 (_initialize_s390_tdep): Ditto.
6198 * remote.c (get_remote_state): Ditto.
6199 * procfs.c (mappingflags): Ditto.
6200 * memattr.c (_initialize_mem): Ditto.
6201 * mcore-tdep.c (mcore_pop_frame): Ditto.
6202 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6203 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6204 * language.c (set_case_str): Ditto.
6205 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6206 * frv-tdep.c (new_variant): Ditto.
6207 (frv_stopped_data_address): Ditto.
6208 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6209 (context_alloc): Ditto.
6210 (frame_state_alloc): Ditto.
6211 (unwind_tmp_obstack_init): Ditto.
6212 (unwind_tmp_obstack_free): Ditto.
6213 (cfi_read_fp): Ditto.
6214 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6215 (cris_pop_frame): Ditto.
6216 * c-lang.c (scanning_macro_expansion): Ditto.
6217 (finished_macro_expansion): Ditto.
6218 (c_preprocess_and_parse): Ditto.
6219 * gdbarch.sh: Ditto.
6220 * gdbarch.h, gdbarch.c: Regenerate.
6221 * config/mn10200/tm-mn10200.h: Adjust indentation.
6222 * target.c: Adjust indentation.
6223 * symtab.h: Adjust indentation.
6224 * stabsread.h: Adjust indentation.
6225 * remote-es.c: Adjust indentation.
6226 * os9kread.c: Adjust indentation.
6228 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6230 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6231 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6233 2002-07-10 Grace Sainsbury <graces@redhat.com>
6235 * NEWS: Mention m68k, mcore multi-arching.
6236 * MAINTAINERS: Change status of m68k, mcore to reflect
6239 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6241 * valops.c (find_overload_match): Free oload_syms.
6243 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6245 Define HAVE_SYS_PROC_H if sys/proc.h exists
6246 * configure.in: Add check for sys/proc.h
6247 * config.in: Regenerate.
6248 * configure: Regenerate.
6250 2002-07-09 Grace Sainsbury <graces@redhat.com>
6252 * config/m68k/tm-m68k.h: Remove macros wrapped in
6253 #if !GDB_MULTI_ARCH.
6255 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6257 * config.in, configure: Regenerate.
6259 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6261 * dwarf2cfi.c: Include "gcore.h".
6262 (execute_stack_op): Fix implementation of the
6263 DW_OP_deref and DW_OP_deref_size operators by letting do their
6264 lookup in the target.
6266 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6268 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6269 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6272 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6274 Fix PR gdb/595, gdb/602
6275 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6276 Don't call value_cast, just read the vtable pointer; update comments
6279 2002-07-05 Grace Sainsbury <graces@redhat.com>
6281 * config/mcore/tm-mcore.h: Remove file.
6282 * config/mcore/mcore.mt: Remove definition of TM_FILE
6283 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6285 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6287 * i386bsd-tdep.c: Include "gdb_string.h".
6289 2002-07-04 Grace Sainsbury <graces@redhat.com>
6291 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6292 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6294 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6295 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6296 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6297 (RETVAL_REGNUM): Move macros from tm-mcore.h
6298 (mcore_reg_struct_has_addr): New function.
6299 (mcore_gdbarch_init): Added initializations for the macros removed
6302 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6304 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6305 traditonal string branding within the ELF header.
6307 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6309 * symtab.c (remove_params): New function.
6310 (make_symbol_overload_list): Use it instead of cplus_demangle.
6311 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6313 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6315 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6317 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6319 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6320 and tdep->sigtramp_end.
6321 * i386obsd-nat.c: New file.
6322 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6324 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6325 Don't call get_current_frame().
6327 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6329 * i386-nat.c (child_post_startup_inferior): New function
6330 calling i386_cleanup_dregs if
6331 I386_USE_GENERIC_WATCHPOINTS is defined.
6332 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6333 conditional to acknowledge that i386-nat.c has its
6334 own child_post_startup_inferior function.
6336 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6338 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6339 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6340 instead of MAX_REGISTER_RAW_SIZE.
6341 (i386_extract_return_value, i386_extract_struct_value_address):
6342 Convert to use regcache.
6343 (i386_gdbarch_init): Set max_register_raw_size and
6344 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6345 Set extract_return_value and extract_struct_value_address instead
6346 of their deprecated variants.
6348 Convert i386 target to generic dummy frames.
6349 * i386-tdep.c: Include "symfile.h".
6350 (i386_frameless_signal_p): Consider a function to be frameless if
6351 the pc points at the first instruction of the function.
6352 (i386_frame_chain): Handle (generic) call dummies.
6353 (i386_frame_saved_pc): Likewise.
6354 (i386_frame_init_saved_regs): Remove code dealing with call
6355 dummies on the stack.
6356 (i386_push_dummy_frame): Removed.
6357 (i386_call_dummy_words): Removed.
6358 (i386_fix_call_dummy): Removed.
6359 (i386_push_return_address): New function.
6360 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6361 parameter, and don't call get_current_frame.
6362 (i386_pop_frame): New function.
6363 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6364 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6365 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6366 call_dummy_length to 0, set call_dummy_words to NULL, set
6367 sizeof_call_dummy_words to 0, set fix_call_dummy to
6368 generic_fix_call_dummy, set pc_in_call_dummy to
6369 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6370 generic_push_dummy_frame, set push_return_address to
6371 i386_push_return_address and set frame_chain_valid to
6372 generic_file_frame_chain_valid.
6374 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6376 * gdbarch.sh (struct regcache): Add opaque declaration.
6377 (EXTRACT_RETURN_VALUE): New architecture method.
6378 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6379 * gdbarch.h, gdbarch.c: Regenerate.
6380 * arch-utils.c (legacy_extract_return_value): New function.
6381 * arch-utils.h (legacy_extract_return_value): Declare.
6382 * values.c (value_being_returned): Re-enable code handling
6383 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6384 deprecated_grub_regcache_for_registers call to block handling
6385 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6386 (EXTRACT_RETURN_VALUE): Do not define.
6388 2002-07-03 Grace Sainsbury <graces@redhat.com>
6390 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6391 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6392 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6393 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6394 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6395 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6396 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6397 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6398 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6399 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6400 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6401 argument so the function fits the prototype in the architecture
6403 (mcore_pop_frame): Remove argument so the function fits the
6404 prototype. Use get_current_frame instead of the argument.
6405 (mcore_push_arguments): Change type of struct_return so the
6406 function can be used in the architecture vector.
6407 (mcore_store_struct_return): Add.
6408 (mcore_frame_init_saved_regs): Add.
6409 (mcore_gdbarch_init): Add function calls to replace the macros
6410 removed from tm-mcore.h
6412 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6414 * infcmd.c (print_return_value): Remove compatibility code calling
6415 deprecated_grub_regcache_for_registers.
6417 * values.c: Include "regcache.h".
6418 (value_being_returned): Update. Use
6419 deprecated_grub_regcache_for_registers to extract the register
6421 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6422 ``struct regcache''.
6423 * Makefile.in (values.o): Add dependency on $(regcache_h).
6425 * inferior.h (run_stack_dummy): Change type of second parameter to
6426 a ``struct regcache''.
6427 * valops.c (hand_function_call): Change type of retbuf to ``struct
6428 regcache''. Allocate using regcache_xmalloc, clean using
6429 make_cleanup_regcache_xfree.
6430 * infcmd.c (run_stack_dummy): Update. Use
6431 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6433 * regcache.c (do_regcache_xfree): New function.
6434 (make_cleanup_regcache_xfree): New function.
6435 * regcache.h (make_cleanup_regcache_xfree): Declare.
6437 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6439 * event-top.c (command_line_handler): Don't read past
6440 beginning of buffer.
6442 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6444 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6446 (varobj_create): Store frame_id for root.
6447 (varobj_gen_name): Use xasprintf.
6448 (varobj_update): Save and restore frame using get_frame_id() and
6450 (create_child): Use xasprintf.
6451 (new_root_variable): Initialize frame_id.
6452 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6453 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6454 to prevent memory leak.
6456 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6458 * valops.c (hand_function_call): Move declaration of retbuf to
6459 start of function, allocate using malloc, add a cleanup but before
6460 the inf_status cleanup, cleanup the buffer. Rename local variable
6461 old_chain to inf_status_cleanup.
6463 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6465 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6467 * cli/cli-decode.c (cmd_func_p): New function.
6468 (cmd_func): New function.
6470 * command.h: Add cmd_func() and cmd_func_p().
6472 2002-07-03 Grace Sainsbury <graces@redhat.com>
6474 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6475 (REGISTER_SIZE): Remove.
6476 (MAX_REGISTER_RAW_SIZE): Remove.
6477 (REGISTER_VIRTUAL_TYPE): Remove.
6478 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6479 (REGISTER_NAME): Remove.
6480 (USE_GENERIC_DUMMY_FRAMES): Remove.
6481 (CALL_DUMMY): Remove.
6482 (CALL_DUMMY_START_OFFSET): Remove.
6483 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6484 (CALL_DUMMY_LOCATION): Remove.
6485 (FIX_CALL_DUMMY): Remove.
6486 (CALL_DUMMY_ADDRESS): Remove.
6487 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6488 (SAVE_DUMMY_FRAME_TOS): Remove.
6489 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6490 (mcore_register_virtual_type): New function.
6491 (mcore_register_byte): New function.
6492 (mcore_register_size): New function.
6493 (mcore_register_name): New function.
6494 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6495 macros removed from tm-mcore.h.
6496 (mcore_dump_tdep): Add.
6497 (_initialize_mcore_tdep): Add gdbarch_register call.
6499 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6501 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6502 frameless_look_for_prologue, such that we actually call this
6505 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6507 * frame.h (frame_address_in_block): New function.
6509 * blockframe.c (frame_address_in_block): New function extracted
6510 from get_frame_block().
6511 (get_frame_block): Use frame_address_in_block().
6512 (block_innermost_frame): Use frame_address_in_block() to match
6513 the frame pc address against the block boundaries rather than
6514 the frame pc directly. This prevents a failure when a frame pc
6515 is actually a return-address pointing immediately after the end
6518 2002-07-02 Grace Sainsbury <graces@redhat.com>
6520 * MAINTAINERS: Add self under write after approval.
6522 2002-07-02 Grace Sainsbury <graces@redhat.com>
6524 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6525 used in architecture vector. The default is
6526 m68k_local_breakpoint_from_pc.
6527 (m68k_local_breakpoint_from_pc): Add.
6528 (enum): Add register numbers from tm-m68k.h.
6529 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6531 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6532 GDB_MULTI_ARCH_PARTIAL.
6533 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6534 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6536 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6537 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6538 to enum in m68k-tdep.c
6540 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6542 * solib-osf.c (open_map): Compute the list of shared libraries
6543 loaded by the inferior, rather than the list of libraries loaded
6544 by GDB itself. Otherwise, GDB ends up reading the symbols from
6545 the wrong shared libraries...
6547 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6549 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6550 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6552 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6554 (FRAMELESS_SIGNAL): Remove function.
6555 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6556 i386_linux_saved_pc_after_call): Removed.
6557 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6558 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6559 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6561 * i386-tdep.c (i386_frameless_signal_p): New function.
6562 (i386_frame_chain): Deal with frameless signals.
6563 (i386_sigtramp_saved_sp): New function.
6564 (i386_frame_saved_pc): Deal with frameless signals.
6565 (i386_saved_pc_after_call): Make sure the correct value is
6566 returned just after entry into a sigtramp.
6567 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6568 i386fbsd4_sc_sp_offset): New variables.
6569 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6570 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6571 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6572 similiar to what we already did for sc_pc_offset.
6573 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6576 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6578 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6580 * config/i386/tm-x86-64linux.h: New.
6581 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6583 * config/i386/nm-x86-64.h: Rename to ...
6584 * config/i386/nm-x86-64linux.h: ... this one.
6585 * config/i386/x86-64linux.mh: Reflect the above change.
6587 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6589 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6590 with sigcontext_addr. Add sc_sp_offset.
6591 (i386bsd_sigtramp_saved_pc): Remove prototype.
6592 (i386bsd_sicontext_addr): Add prototype.
6593 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6594 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6595 (i386_svr4_sigtramp_saved_pc): Removed.
6596 (i386_svr4_sigcontext_addr): New function.
6597 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6598 Initialize tdep->sigcontext_addr instead. Initialize
6599 tdep->sc_pc_offset and tdep->sc_sp_offset.
6600 (i386_gdbarch_init): Likewise.
6601 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6603 (i386bsd_sigtramp_saved_pc): Remove function.
6604 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6605 Initialize tdep->sigcontext_addr instead. Initialize
6607 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6608 of tdep->sigtramp_saved_pc.
6609 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6610 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6613 * i386-tdep.c (i386_frameless_function_invocation,
6614 i386_frame_num_args, i386_frame_init_saved_regs,
6615 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6616 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6617 i386_extract_return_value, i386_store_return_value,
6618 i386_extract_struct_value_address, i386_register_virtual_type,
6619 i386_register_convertible, i386_register_convert_to_virtual,
6620 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6621 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6624 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6626 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6628 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6629 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6630 this macro. Include "value.h".
6632 2002-06-30 Aidan Skinner <aidan@velvet.net>
6634 * ada-exp.tab.c: remove as it's a generated file
6635 * ada-lex.c: remove as it's a generated file
6637 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6639 * config/i386/tm-i386.h (struct frame_info, struct
6640 frame_saved_regs, struct value, struct type): Remove forward
6643 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6644 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6645 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6646 (FILL_FPXREGSET): Define.
6648 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6650 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6651 i[3456]86-*-netbsd* case.
6652 * config/i386/tm-obsd.h: Removed.
6653 * config/i386/obsd.mt: Removed.
6654 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6656 (MH_CFLAGS): Add -DYYDEBUG=0.
6658 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6659 i386nbsd_sc_pc_offset on OpenBSD too.
6661 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6662 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6663 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6665 * i386bsd-tdep.c: Include "arch-utils.h".
6666 (i386bsd_aout_in_solib_call_trampoline): New function.
6667 (i386bsd_init_abi): Set in_solib_call_trampoline to
6668 i386bsd_aout_in_solib_call_trampoline.
6669 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6670 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6672 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6674 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6675 (struct obstack, struct bcache): Add opaque declarations.
6676 * Makefile.in (macrotab_h): Update
6678 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6680 * blockframe.c (generic_find_dummy_frame): Change return type to
6681 ``struct regcache''.
6682 (struct dummy_frame): Replace field ``registers'' with regcache, a
6683 struct regcache object.
6684 (generic_find_dummy_frame): Update.
6685 (generic_push_dummy_frame): Update. Use regcache_xfree,
6686 regcache_xmalloc and regcache_cpy.
6687 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6689 (deprecated_generic_find_dummy_frame): Update.
6690 (generic_read_register_dummy): Update. Use
6691 regcache_read_as_address.
6692 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6693 (generic_get_saved_register): Update. Use regcache_read.
6695 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6697 * Makefile.in (objfiles_h): Add $(bcache_h).
6698 * objfiles.h: Include "bcache.h".
6700 * Makefile.in (symtab_h): Remove $(bcache_h).
6701 * symtab.h: Do not include "bcache.h".
6703 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6705 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6706 generic_func_frame_chain_valid.
6708 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6710 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6711 * config/i386/tm-fbsd.h: Likewise.
6713 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6715 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6716 generic_unwind_get_saved_register.
6718 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6720 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6721 * regcache.c (supply_register): Add missing argument to
6722 register_buffer call.
6724 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6726 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6727 Solaris /bin/grep does not not like it. From Peter Schauer.
6729 2002-06-26 Tom Tromey <tromey@redhat.com>
6731 * command.h (add_setshow_cmd): Declare.
6732 (add_setshow_cmd_full): Declare.
6733 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6734 returns void. Use add_setshow_cmd_full.
6735 (add_setshow_cmd_full): New function.
6736 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6737 (add_setshow_boolean_cmd): Likewise.
6739 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6741 * config/vax/tm-vax.h: Protect from multiple inclusion.
6742 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6743 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6744 * config/vax/tm-vaxbsd.h: ...here. New file.
6745 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6747 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6749 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6750 (BELIEVE_PCC_PROMOTION): Remove.
6751 (AP_REGNUM): Move to...
6752 * config/vax/nm-vax.h: ...here.
6753 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6754 (vax_breakpoint_from_pc): New function.
6755 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6756 and gdbarch_believe_pcc_promotion.
6758 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6760 * Makefile.in (vax_tdep_h): Define.
6761 (vax-tdep.o): Use $(vax_tdep_h).
6762 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6763 (vax_dump_tdep): New function.
6764 (_initialize_vax_tdep): Register vax_dump_tdep.
6765 * vax-tdep.h: Include osabi.h.
6766 (struct gdbarch_tdep): New.
6768 2002-06-26 Andrew Cagney <cagney@redhat.com>
6770 * frame.h (deprecated_generic_find_dummy_frame): Rename
6771 generic_find_dummy_frame.
6772 * blockframe.c (generic_find_dummy_frame): Make static.
6773 (deprecated_generic_find_dummy_frame): New function.
6774 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6775 generic_find_dummy_frame with deprecated_find_dummy_frame.
6776 (sh64_nofp_frame_init_saved_regs): Ditto.
6777 (sh_fp_frame_init_saved_regs): Ditto.
6778 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6779 (s390_frame_chain): Ditto.
6780 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6782 2002-06-26 Grace Sainsbury <graces@redhat.com>
6784 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6785 gdbarch vector are at the top.
6787 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6788 (FRAME_ARGS_ADDRESS): Remove.
6789 (FRAME_LOCALS_ADDRESS): Remove.
6790 (FRAME_NUM_ARGS): Remove.
6791 (FRAME_ARGS_SKIP): Remove.
6792 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6793 (m68k_gdbarch_init): Add gdbarch initializations for macros
6794 undefined in tm-m68k.h
6796 2002-06-26 Grace Sainsbury <graces@redhat.com>
6798 * monitor.h: Add the function regname to monitor_ops
6799 structure. This way NUM_REGS does not have to be a constant.
6800 * monitor.c (monitor_fetch_register): Added support for regname
6801 function. The function is called if the array regnames is NULL.
6802 (monitor_store_register): Same.
6803 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6805 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6806 cpu32bug_cmds.regname to point to new function.
6807 * abug-rom.c (abug_regname): Same as above.
6808 (init_abug_cmds): Same.
6809 * dbug-rom.c (dbug_regname): Same as above.
6810 (init_dbug_cmds): Same.
6811 * remote-est.c (est_regname): Same.
6812 (init_est_cmds): Same.
6813 * rom68k-rom.c (rom68k_regname): Same.
6814 (init_rom68k_cmds): Same.
6816 2002-06-25 Tom Tromey <tromey@redhat.com>
6818 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6820 2002-06-25 Andrew Cagney <cagney@redhat.com>
6822 * infrun.c (stop_registers): Change variable's type to ``struct
6824 (xmalloc_inferior_status): Delete function.
6825 (free_inferior_status): Delete function.
6826 (normal_stop): Use regcache_cpy.
6827 (struct inferior_status): Change type of fields ``stop_registers''
6828 and ``registers'' to ``struct regcache''.
6829 (write_inferior_status_register): Use regcache_write.
6830 (save_inferior_status): Instead of calling
6831 xmalloc_inferior_status, allocate the inf_status buffer directly.
6832 Use regcache_dup_no_passthrough and regcache_dup to save the
6834 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6835 Replace the stop_registers regcache instead of overriding it. Use
6836 regcache_xfree. Instead of calling free_inferior_status, xfree
6837 the buffer directly.
6838 (discard_inferior_status): Use regcache_xfree. Instead of calling
6839 free_inferior_status, xfree the buffer directly.
6840 (build_infrun): Use regcache_xmalloc.
6841 (_initialize_infrun): Delete redundant call to build_infrun.
6843 * Makefile.in (infcmd.o): Add $(regcache_h).
6845 * infcmd.c: Include "regcache.h".
6846 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6847 obtain the address of `stop_registers' register buffer.
6848 (print_return_value): Ditto.
6850 * inferior.h (struct regcache): Add opaque declaration.
6851 (stop_registers): Change variable's declared type to ``struct
6854 2002-06-24 Tom Tromey <tromey@redhat.com>
6856 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6857 * target.c (initialize_targets): Fixed typo in
6858 trust-readonly-sections `show' documentation.
6860 * main.c: Marked all strings with _().
6862 2002-06-24 Don Howard <dhoward@redhat.com>
6864 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6865 that means max CORE_ADDR+1.
6866 (lookup_mem_region): Ditto.
6867 (mem_info_command): Ditto.
6869 2002-06-24 Grace Sainsbury <graces@redhat.com>
6871 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6872 (REGISTER_BYTES_OK): Remove.
6873 (REGISTER_BYTES): Remove.
6874 (STORE_STRUCT_RETURN): Remove.
6875 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6876 (STORE_RETURN_VALUE): Remove.
6877 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6878 (FRAME_CHAIN): Remove.
6879 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6880 (FRAME_SAVED_PC): Remove.
6881 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6882 (m68k_store_struct_return): Add.
6883 (m68k_deprecated_extract_return_value): Add.
6884 (m68k_deprecated_extract_struct_value_address): Add.
6885 (m68k_store_return_value): Add.
6886 (m68k_frame_chain): Add.
6887 (m68k_frameless_function_invocation): Add.
6888 (m68k_frame_saved_pc): Add.
6889 (m68k_gdbarch_init): added set_gdbarch calls for new
6890 functions and deleted macros.
6892 2002-06-23 Tom Tromey <tromey@redhat.com>
6894 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6895 (ALLDEPFILES): Likewise.
6896 (udiheaders): Removed.
6897 (udip2soc.o): Likewise.
6898 (udi2go32.o): Likewise.
6900 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6902 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6904 * infrun.c (_initialize_infrun): Delete unnecessary call to
6907 * regcache.h: Update comments describing the regcache_cpy family
6909 (regcache_save, regcache_restore): Delete declaration.
6910 (regcache_save_no_passthrough): Delete declaration.
6911 (regcache_restore_no_passthrough): Delete declaration.
6912 * regcache.c (regcache_save): Delete function.
6913 (regcache_save_no_passthrough): Delete function.
6914 (regcache_restore): Delete function.
6915 (regcache_restore_no_passthrough): Delete function.
6917 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6919 * config/m68k/tm-m68k.h: Fix typo.
6920 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6921 (m68k_frame_init_saved_regs): Declare.
6923 2002-06-21 Jim Blandy <jimb@redhat.com>
6925 Remove some vestiges of Harris 88k support.
6926 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6927 register numbering quirk.
6928 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6929 odd symbols occurring in Harris 88k ELF targets.
6931 2002-06-21 Tom Tromey <tromey@redhat.com>
6933 * gdb_locale.h: New file.
6934 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6935 (defs_h): Added gdb_locale.h.
6936 * configure, config.in: Rebuilt.
6937 * configure.in (PACKAGE): Define.
6938 * defs.h: Include gdb_locale.h.
6939 * main.c (captured_main): Call setlocale, bindtextdomain,
6942 2002-06-21 Dave Brolley <brolley@redhat.com>
6944 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6945 * config/frv/frv.mt: New file.
6946 * config/frv/tm-frv.h: New file.
6947 * configure.tgt: Support frv-*-*.
6948 * Makefile.in (frv-tdep.o): New target.
6949 * frv-tdep.c: New file.
6950 * NEWS: Mention frv.
6952 2002-06-21 Dave Brolley <brolley@redhat.com>
6954 * MAINTAINERS: Add self to "Write After Approval" list.
6956 2002-06-21 Grace Sainsbury <graces@redhat.com>
6958 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6959 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6960 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6961 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6962 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6964 * m68k-tdep.c: Include arch-utils.h
6965 (m68k_register_raw_size): Add.
6966 (m68k_register_virtual_size): Add.
6967 (m68k_register_virtual_type): Add.
6968 (m68k_register_name): Add.
6969 (m68k_stack_align): Add.
6970 (m68k_register_byte): Add.
6971 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6974 2002-06-21 Grace Sainsbury <graces@redhat.com>
6976 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6977 m68k_find_saved_regs.
6978 (m68k_pop_frame): Removed saved_regs structure, and replaced
6979 references to it with frame->saved_regs.
6980 (m68k_gdbarch_init): Added function calls to initialize the
6982 (m68k_fix_call_dummy): Add.
6983 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6984 (CALL_DUMMY): Remove.
6985 (CALL_DUMMY_LENGTH): Remove.
6986 (CALL_DUMMY_START_OFFSET): Remove.
6987 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6988 (FIX_CALL_DUMMY): Remove.
6989 (PUSH_DUMMY_FRAME): Remove.
6990 (POP_FRAME): Remove.
6992 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6994 * parse.c (parse_fprintf): New function used to avoid calls to
6995 fprintf in bison parser generated debug code.
6996 * parser-defs.h: Declaration of new parse_fprintf function.
6997 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6998 Set YYDEBUG to 1 by default.
6999 Set YYFPRINTF as parse_fprintf.
7001 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7003 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7005 (pointer_encoding, enum ptr_encoding): New.
7006 (execute_cfa_program): Take care about pointer encoding.
7007 (dwarf2_build_frame_info): Only call parse_frame_info for
7008 .debug_frame and .eh_frame.
7009 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7010 fixed augmentation handling, added relative addressing,
7011 ignore duplicate FDEs. Added comments.
7012 * dwarf2cfi.c: Reindented.
7014 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7016 * event-top.c (command_handler): Don't use space_at_cmd_start
7017 unless there is sbrk() on the host. Assign time and space data
7018 to union fields of the appropriate length.
7020 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7022 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7023 x86_64_register_name. Return type changed to 'const char *'.
7024 (x86_64_register_name2nr): Rename to x86_64_register_number.
7025 (x86_64_gdbarch_init): Update to reflect the change.
7026 * x86-64-tdep.h: Ditto.
7027 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7028 (supply_fpregset): Ditto.
7030 2002-06-19 Andrew Cagney <cagney@redhat.com>
7032 * regcache.h: Update copyright.
7033 (struct regcache, struct gdbarch): Add opaque declarations.
7034 (current_regcache): Declare global variable.
7035 (regcache_read, regcache_write): Add gdbarch parameter.
7036 (regcache_save, regcache_save_no_passthrough)
7037 (regcache_restore, regcache_restore_no_passthrough)
7038 (regcache_dup, regcache_dup_no_passthrough)
7039 (regcache_cpy, regcache_cpy_no_passthrough)
7040 (deprecated_grub_regcache_for_registers)
7041 (deprecated_grub_regcache_for_register_valid)
7042 (regcache_valid_p): Add function declarations.
7044 * regcache.c: Update copyright.
7045 (regcache_descr_handle): New global variable.
7046 (struct regcache_descr): Define.
7047 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7048 (regcache_descr, xfree_regcache_descr): New functions.
7049 (struct regcache): Define.
7050 (regcache_xmalloc, regcache_xfree): New functions.
7051 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7052 (regcache_dup, regcache_dup_no_passthrough): New functions.
7053 (regcache_valid_p, regcache_read_as_address): New functions.
7054 (deprecated_grub_regcache_for_registers): New function.
7055 (deprecated_grub_regcache_for_register_valid): New function.
7056 (current_regcache): New global variable.
7057 (register_buffer): Add regcache parameter. Update calls.
7058 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7059 (read_register_gen, write_register_gen): Update register_buffer
7060 call. Test for legacy_p instead of gdbarch_register_read_p or
7061 gdbarch_register_write_p.
7062 (regcache_collect): Update register_buffer call.
7063 (build_regcache): Rewrite. Use deprecated grub functions.
7064 (regcache_save, regcache_save_no_passthrough): New functions.
7065 (regcache_restore, regcache_restore_no_passthrough): New
7067 (_initialize_regcache): Create the regcache_data_handle. Swap
7068 current_regcache global variable.
7070 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7071 parameter to regcache_read and regcache_write calls.
7072 (sh4_register_read): Ditto.
7073 (sh64_pseudo_register_read): Ditto.
7074 (sh64_register_read): Ditto.
7075 (sh_pseudo_register_write): Ditto.
7076 (sh4_register_write): Ditto.
7077 (sh64_pseudo_register_write): Ditto.
7078 (sh64_register_write): Ditto.
7080 * defs.h (XCALLOC): Define.
7082 2002-06-19 Grace Sainsbury <graces@redhat.com>
7084 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7085 * m68k-tdep.c (m68k_gdbarch_init): Added.
7086 (m68k_dump_tdep): Added.
7088 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7090 * ada-lang.c (fill_in_ada_prototype): Update comment.
7092 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7094 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7096 (mips_abi_string, mips_abi_strings): New.
7097 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7098 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7099 tdep->mips_abi_string. Honor mips_abi_string. Default to
7100 O32 if no ABI is found.
7101 (mips_dump_tdep): Use mips_abi_strings.
7102 (mips_abi_update): New function.
7103 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7104 ``set mips abi'' and ``show mips abi''. Check the size of
7107 2002-06-19 Andrew Cagney <cagney@redhat.com>
7109 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7112 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7114 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7115 current frame using only the first stack size adjustment. All
7116 subsequent size adjustments are not considered to be part of
7117 the "static" part of the current frame.
7118 Compute the address of the saved registers relative to the
7119 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7120 in use in this frame.
7122 2002-06-18 Don Howard <dhoward@redhat.com>
7124 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7125 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7126 suggesting this solution.
7128 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7130 * config/romp/xm-rtbsd.h: Delete file.
7131 * config/romp/rtbsd.mh: Delete file.
7133 2002-06-18 Keith Seitz <keiths@redhat.com>
7135 * breakpoint.c (condition_command): Post breakpoint_modify
7136 when a condition is added to an existing breakpoint.
7137 (commands_command): Likewise for commands.
7138 (set_ignore_count): Likewise for ignore counts.
7139 If no tty, do not simply return, still need to send event
7141 (ignore_command): Only print a newline if the command came
7143 Don't call breakpoints_changed, since this is now properly
7144 handled by set_ignore_count.
7146 2002-06-18 Andrew Cagney <cagney@redhat.com>
7148 * MAINTAINERS: Note that cris-elf target can be compiled with
7150 * cris-tdep.c (cris_register_name): Make return type constant.
7151 (cris_breakpoint_from_pc): Ditto.
7153 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7155 * frame.h (struct frame_info): Change type of context to
7158 2002-06-17 Andrew Cagney <cagney@redhat.com>
7160 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7162 * gdbarch.h, gdbarch.c: Regenerate.
7163 * config/mips/tm-mips.h (mips_register_name): Update.
7164 * i386-tdep.h (i386_register_name): Update.
7165 * mips-tdep.c (mips_register_name): Update
7166 * alpha-tdep.c (alpha_register_name): Update.
7167 * arch-utils.c (legacy_register_name): Update.
7168 * arch-utils.h (legacy_register_name): Update.
7169 * avr-tdep.c (avr_register_name): Update.
7170 * ia64-tdep.c (ia64_register_name): Update.
7171 * i386-tdep.c (i386_register_name): Update.
7172 * sparc-tdep.c (sparc32_register_name): Update.
7173 (sparc64_register_name): Update.
7174 (sparclite_register_name): Update.
7175 (sparclet_register_name): Update.
7176 * sh-tdep.c (sh_generic_register_name): Update.
7177 (sh_sh_register_name): Update.
7178 (sh_sh3_register_name): Update.
7179 (sh_sh3e_register_name): Update.
7180 (sh_sh_dsp_register_name): Update.
7181 (sh_sh3_dsp_register_name): Update.
7182 (sh_sh4_register_name): Update.
7183 (sh_sh64_register_name): Update.
7184 * s390-tdep.c (s390_register_name): Update.
7185 * rs6000-tdep.c (rs6000_register_name): Update.
7186 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7187 (ns32k_register_name_32382): Update.
7188 * d10v-tdep.c (d10v_ts2_register_name): Update.
7189 (d10v_ts3_register_name): Update.
7190 * xstormy16-tdep.c (xstormy16_register_name): Update.
7191 * vax-tdep.c (vax_register_name): Update.
7192 * v850-tdep.c (v850_register_name): Update.
7193 * m68hc11-tdep.c (m68hc11_register_name): Update.
7194 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7195 (am33_register_name): Update.
7197 2002-06-17 Grace Sainsbury <graces@redhat.com>
7199 * m68k-tdep.c: Reindented.
7201 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7203 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7204 list of predefined types.
7206 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7208 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7209 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7210 REGISTER_CONVERT_TO_RAW): Remove defines.
7211 (i386_register_virtual_type, i386_register_convertible,
7212 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7214 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7215 macros mentioned above.
7217 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7218 (i386lynx_saved_pc_after_call): Remove prototype.
7219 * i386ly-tdep.c: Include "i386-tdep.h".
7220 (i386lynx_saved_pc_after_call): Make static. Use
7221 read_memory_nobpt instead of read_memory. Use
7222 read_memory_unsigned_integer instead of read_memory_integer.
7223 (i386lynx_init_abi): New function.
7224 (i386lynx_coff_osabi_sniffer): New function.
7225 (_initialize_i386bsd_tdep): New function.
7227 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7228 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7229 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7230 (i386_fix_call_dummy): Remove prototype.
7231 * i386-tdep.c (i386_call_dummy_words): New variable.
7232 (i386_gdbarch_init): Adjust for removal of the
7233 macros mentioned above.
7235 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7237 * command.h (add_setshow_auto_boolean_cmd): Replace
7238 add_set_auto_boolean_cmd.
7239 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7240 add_set_auto_boolean_cmd.
7241 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7242 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7243 mask-address'' command.
7244 (show_mask_address): Add cmd parameter.
7245 * remote.c (add_packet_config_cmd): Update. Change type of
7246 set_func and show_func to cmd_sfunc_ftype.
7247 (_initialize_remote): Update `set remote Z-packet'
7248 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7249 (show_remote_protocol_e_packet_cmd): Ditto.
7250 (show_remote_protocol_E_packet_cmd): Ditto.
7251 (show_remote_protocol_P_packet_cmd): Ditto.
7252 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7253 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7254 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7255 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7256 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7257 (show_remote_protocol_Z_packet_cmd): Ditto.
7258 (show_remote_protocol_binary_download_cmd): Ditto.
7259 (show_remote_cmd): Pass NULL to all of above.
7261 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7263 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7264 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7265 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7266 POP_FRAME): Remove defines.
7267 (i386_push_arguments, i386_store_struct_return,
7268 i386_extract_return_value, i386_store_return_value,
7269 i386_extract_struct_value_address, i386_push_dummy_frame,
7270 i386_pop_frame): Renove prototypes.
7271 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7272 macros mentioned above.
7274 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7276 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7277 add_set_boolean_cmd.
7278 (add_setshow_cmd): New function.
7279 * command.h (add_setshow_boolean_cmd): Replace
7280 add_set_boolean_cmd.
7281 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7282 and ``set rdiromatzero''.
7283 * maint.c (_initialize_maint_cmds): Update commented out code.
7284 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7285 * target.c (initialize_targets): Update `set
7286 trust-readonly-sections'.
7287 * remote.c (_initialize_remote): Update `set remotebreak'.
7289 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7291 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7292 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7293 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7294 fit into multi-arch framework.
7295 (i386_breakpoint_from_pc): New function.
7296 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7299 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7300 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7301 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7302 (i386_frameless_function_invocation, i386_frame_num_args,
7303 i386_frame_init_saved_regs): Remove prototypes.
7304 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7305 macros mentioned above.
7307 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7309 * cli/cli-decode.c (set_cmd_cfunc): Update.
7310 (set_cmd_sfunc): Update.
7311 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7312 (set_cmd_sfunc, set_cmd_cfunc): Update.
7313 * cli/cli-decode.h: Update.
7315 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7317 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7318 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7320 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7322 * defs.h (auto_boolean): Declare enum.
7323 * command.h (cmd_auto_boolean): Delete enum.
7324 * mips-tdep.c (mask_address_var): Update.
7325 (mips_mask_address_p): Update.
7326 (show_mask_address): Update.
7327 * remote.c (struct packet_config): Update.
7328 (update_packet_config): Update.
7329 (show_packet_config_cmd): Update.
7330 (packet_ok): Update.
7331 (add_packet_config_cmd): Update.
7332 (_initialize_remote):
7333 * command.h: Update.
7334 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7335 (do_setshow_command): Update.
7336 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7337 * cli/cli-decode.h: Update.
7339 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7341 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7342 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7343 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7344 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7345 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7346 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7348 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7349 list of DJGPP COFF targets.
7351 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7352 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7353 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7354 (FP0_REGNUM): Remove define.
7355 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7356 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7357 (i386_register_virtual_size): Remove protoype.
7358 * i386-tdep.c (i386_register_virtual_size): Removed.
7359 (i386_extract_return_value, i386_store_return_value): Use
7360 FP0_REGNUM instead of NUM_FREGS to determine whether the
7361 floating-point registers are available.
7362 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7363 Adjust for removal of macros mentioned above.
7365 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7367 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7369 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7371 (supply_gregset, fill_gregset): Remove use of register keyword and
7372 remove declaration for regmap. Use I386_NUM_GREGS instead of
7373 NUM_REGS and NUM_FREGS.
7374 (FPREGSET_FSAVE_OFFSET): Remove.
7375 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7376 NUM_FREGS to determine whether the floating-point registers are
7379 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7380 gnu_store_registers): Replace usage of NUM_GREGS with
7383 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7384 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7385 usage of NUM_GREGS with I386_NUM_GREGS.
7387 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7389 * i386bsd-nat.c: Include "i386-tdep.h".
7390 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7393 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7394 and associated comment. They no longer make any sense, since we
7395 don't use this file anymore on Linux.
7397 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7398 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7399 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7400 elements in these arrays.
7401 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7404 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7406 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7407 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7409 2002-06-14 Andrew Cagney <cagney@redhat.com>
7411 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7412 EXTRACT_RETURN_VALUE.
7413 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7414 EXTRACT_STRUCT_VALUE_ADDRESS.
7415 * gdbarch.h, gdbarch.c: Regenerate.
7417 * values.c (value_being_returned): Handle
7418 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7419 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7421 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7422 * arm-tdep.c (arm_gdbarch_init): Update.
7423 * avr-tdep.c (avr_gdbarch_init): Update.
7424 * cris-tdep.c (cris_gdbarch_init): Update.
7425 * d10v-tdep.c (d10v_gdbarch_init): Update.
7426 * ia64-tdep.c (ia64_gdbarch_init): Update.
7427 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7429 * s390-tdep.c (s390_gdbarch_init): Update.
7430 * sh-tdep.c (sh_gdbarch_init): Update.
7431 * s390-tdep.c (s390_gdbarch_init): Update.
7432 * sparc-tdep.c (sparc_gdbarch_init): Update.
7433 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7434 * v850-tdep.c (v850_gdbarch_init): Update.
7435 * vax-tdep.c (vax_gdbarch_init): Update.
7436 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7439 * config/arc/tm-arc.h: Update.
7440 * config/d30v/tm-d30v.h: Update.
7441 * config/fr30/tm-fr30.h: Update.
7442 * config/h8300/tm-h8300.h: Update.
7443 * config/h8500/tm-h8500.h: Update.
7444 * config/i386/tm-i386.h: Update.
7445 * config/i386/tm-ptx.h: Update.
7446 * config/i386/tm-symmetry.h: Update.
7447 * config/i960/tm-i960.h: Update.
7448 * config/m32r/tm-m32r.h: Update.
7449 * config/m68k/tm-delta68.h: Update.
7450 * config/m68k/tm-linux.h: Update.
7451 * config/m68k/tm-m68k.h: Update.
7452 * config/m88k/tm-m88k.h: Update.
7453 * config/mcore/tm-mcore.h: Update.
7454 * config/mips/tm-mips.h: Update.
7455 * config/mn10200/tm-mn10200.h: Update.
7456 * config/pa/tm-hppa.h: Update.
7457 * config/pa/tm-hppa64.h: Update.
7458 * config/sparc/tm-sp64.h: Update.
7459 * config/sparc/tm-sparc.h: Update.
7460 * config/sparc/tm-sparclet.h: Update.
7461 * config/z8k/tm-z8k.h: Update.
7463 2002-06-14 Andrew Cagney <cagney@redhat.com>
7465 * Makefile.in (i386_linux_tdep_h): Define.
7466 (i386_tdep_h, i387_tdep_h): Define.
7467 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7468 $(i386_tdep_h) and $(i387_tdep_h).
7469 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7471 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7473 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7474 Already covered by the default.
7476 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7477 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7478 (i386_gdbarch_init): Initialize long_double_format and long_double
7481 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7482 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7484 * config/i386/i386sol2.mh: ... here.
7485 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7486 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7487 (SIGCONTEXT_PC_OFFSET): Remove define.
7488 (IN_SIGTRAMP): Remove define.
7489 * i386-sol2-tdep.c: New file.
7491 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7492 * config/i386/tm-i386nw.h: Removed.
7494 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7495 USE_STRUCT_CONVENTION): Remove defines.
7496 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7497 (get_longjmp_target): Remove prototype.
7498 (IN_SIGTRAMP): Remove define.
7499 (i386bsd_in_sigtramp): Remove prototype.
7500 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7501 function. Update comment accordingly
7502 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7503 (FRAME_SAVED_PC): Remove define.
7504 (i386bsd_frame_saved_pc): Remove prototype.
7505 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7506 GET_LONGJMP_TARGET): Remove defines.
7507 (get_longjmp_target): Remove prototype.
7508 (IN_SIGTRAMP): Remove define.
7509 (i386bsd_in_sigtramp): Remove prototype.
7510 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7511 function. Update comment accordingly
7512 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7513 (FRAME_SAVED_PC): Remove define.
7514 (i386bsd_frame_saved_pc): Remove prototype.
7515 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7517 (USE_STRUCT_CONVENTION): Remove prototype.
7518 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7520 (_initialize_i386bsd_nat): Revise logic to determine some
7521 constants at compile time when compiling a native GDB. Warn if
7522 things don't match up with what we expect.
7523 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7525 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7526 to use date stored in `struct gdbarch_tdep'.
7527 (i386bsd_sigcontext_offset): Remove varaible.
7528 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7529 stored in `struct gdbarch_tdep'.
7530 (i386bsd_frame_saved_pc): Make static.
7531 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7532 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7533 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7534 i386fbsd4_sc_pc_offset): New variables.
7535 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7536 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7538 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7540 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7541 Modify the value of i386fbsd_sigtramp_start and
7542 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7543 i386fbsd_sigtramp_end.
7544 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7547 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7548 define to i386-linux-tdep.h.
7549 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7550 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7552 (i386_linux_register_name, i386_linux_register_byte,
7553 i386_linux_register_raw_size): Remove prototypes.
7554 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7555 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7556 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7557 TARGET_WRITE_PC): Remove defines.
7558 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7559 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7560 i386_linux_write_pc): Remove prototypes.
7561 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7562 (get_longjmp_target): Remove prototype.
7563 * i386-linux-tdep.h: New file.
7564 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7565 * i386-linux-tdep.c: Include "i386-tdep.h" and
7566 "i386-linux-tdep.h".
7567 (i386_linux_register_name, i386_linux_register_byte,
7568 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7569 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7571 (i386_linux_init_abi): New function.
7572 (_initialize_i386_linux_tdep): New function.
7574 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7575 (i386_saved_pc_after_call): Remove prototype.
7576 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7577 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7578 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7579 (i386_register_name, i386_stab_reg_to_regnum,
7580 i386_dwarf_reg_to_regnum): Remove prototypes.
7581 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7582 SIZEOF_SSE_REGS): Remove defines.
7583 (REGISTER_BYTES): Remove define.
7584 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7585 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7586 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7587 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7588 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7589 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7590 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7591 (get_longjmp_target): Remove prototype.
7592 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7593 (sigtramp_saved_pc): Remove define.
7594 (i386v4_sigtramp_saved_pc): Remove prototype.
7595 * config/i386/tm-go32.h (FRAME_CHAIN,
7596 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7597 (i386go32_frame_saved_pc): Remove prototype.
7598 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7599 (get_longjmp_target): Remove prototype.
7600 * i386-tdep.h: Include "osabi.h".
7601 (enum i386_abi): Removed.
7602 (enum struct_return): New enum.
7603 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7604 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7605 sc_pc_offset members.
7606 (i386_gdbarch_register_os_abi): Remove prototype.
7607 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7608 I386_SSE_NUM_REGS): New defines.
7609 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7610 I386_SSE_SIZEOF_REGS): New defines.
7611 (i386_register_name, i386_register_byte, i386_register_raw_size):
7613 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7614 (i386bsd_sigtramp_saved_pc): New prototype.
7615 * i386-tdep.c: Don't include "elf-bfd.h".
7616 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7617 i386_frame_chain, i386_saved_pc_after_call): Make static.
7618 (i386_frame_saved_pc): Rewrite to call architecture dependent
7619 function to deal with signal handlers. Make static.
7620 (i386go32_frame_saved_pc): Removed.
7621 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7623 (i386_get_longjmp_target): New function.
7624 (default_struct_convention, pcc_struct_convention,
7625 reg_struct_convention, valid_conventions, struct_convention): New
7627 (i386_use_struct_convention): New function.
7628 (i386v4_sigtramp_saved_pc): Renamed to
7629 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7630 (i386_pc_in_sigtramp): New function.
7631 (i386_abi_names): Removed.
7632 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7633 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7635 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7636 i386_gdbarch_register_os_abi): Removed.
7637 (struct i386_abi_handler): Removed.
7638 (i386_abi_handler_list): Removed.
7639 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7641 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7642 i386_nw_init_abi): New functions.
7643 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7644 Use set_gdbarch_xxx() calls instead of relying on macros for a
7646 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7647 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7648 Register the various architecture variants defined in this file.
7650 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7652 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7653 (struct main_type): Remove arg_types member. Update comments for
7655 (TYPE_ARG_TYPES): Remove.
7656 (TYPE_FN_FIELD_ARGS): Update.
7657 (smash_to_method_type): Update prototype.
7659 * c-typeprint.c (cp_type_print_method_args): Take method type
7660 instead of argument list. Use new argument layout. Simplify.
7661 (c_type_print_args): Use new argument layout. Simplify.
7662 (c_type_print_base): Update call to cp_type_print_method_args.
7663 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7664 argument; use die->type instead. Update call to
7665 smash_to_method_type.
7666 (read_structure_scope): Update call to dwarf2_add_member_fn.
7667 * gdbtypes.c (allocate_stub_method): Update comment.
7668 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7669 Use new argument layout.
7670 (check_stub_method): Use new argument layout. Don't count
7671 void as an argument.
7672 (print_arg_types): Update comments. Use new argument layout.
7673 (recursive_dump_type): Don't print arg_types member.
7674 * hpread.c (hpread_read_struct_type): Use new argument layout.
7675 (fixup_class_method_type): Likewise.
7676 (hpread_type_lookup): Likewise.
7677 * stabsread.c (read_type): Update calls to read_args and
7678 smash_to_method_type.
7679 (read_args): Use new argument layout. Simplify.
7680 * valops.c (typecmp): Use new argument layout. Update parameters
7681 and comments. Simplify.
7682 (hand_function_call): Use new argument layout.
7683 (search_struct_method): Update call to typecmp.
7684 (find_overload_match): Use new argument layout.
7686 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7688 * NEWS: Mention multithreaded debug support for gdbserver.
7690 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7692 * MAINTAINERS: Mention NEWS.
7694 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7696 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7697 (struct mips_objfile_private, compare_pdr_entries): New.
7698 (non_heuristic_proc_desc): Read the ".pdr" section if it
7701 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7703 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7704 (arm_debug): New static variable.
7705 (_initialize_arm_tdep): Add ``set debug arm'' command.
7707 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7709 * Makefile.in (sim_arm_h): Define.
7710 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7711 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7712 (arm_register_sim_regno): New function, map an internal REGNUM
7713 onto a simulator register number.
7714 (arm_gdbarch_init): Set register_sim_regno.
7716 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7718 * MAINTAINERS: Add self.
7720 2002-06-11 Jim Blandy <jimb@redhat.com>
7722 * source.c (source_info): Mention whether the symtab has
7723 information about preprocessor macros.
7725 Call the command `info macro', not `show macro'.
7726 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7728 (_initialize_macrocmd): Register `info_macro_command' in
7729 `infolist', not `showlist'.
7731 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7733 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7734 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7735 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7736 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7737 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7739 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7740 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7741 (_initialize_mips_tdep): Remove dead code.
7742 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7743 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7744 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7745 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7746 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7747 MIPS_LAST_FP_ARG_REGNUM): Remove.
7749 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7751 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7752 (unwind_tmp_obstack_free, parse_frame_info)
7753 (update_context, cfi_read_fp, cfi_write_fp)
7754 (cfi_frame_chain, cfi_init_extra_frame_info)
7755 (cfi_virtual_frame_pointer): Use the above function.
7756 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7758 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7760 * v850-tdep.c (v850_type_is_scalar): New function.
7761 (v850_use_struct_convention): Match current gcc implementation
7762 as close as possible.
7763 (v850_push_arguments): Fix stack_offset handling. Don't write
7764 struct_addr into register. This is done by v850_store_struct_return.
7765 (v850_extract_return_value): Care for structs.
7766 (v850_store_return_value): Ditto.
7767 (v850_store_struct_return): Actually write address.
7769 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7771 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7772 without debug information too.
7774 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7776 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7777 Make multi-arch pure.
7778 * gdbarch.h, gdbarch.c: Re-generate.
7779 * arm-tdep.c (arm_print_float_info): Update.
7780 * arch-utils.h (default_print_float_info): Update.
7781 * arch-utils.c (default_print_float_info): Update.
7782 * infcmd.c (float_info): Update call.
7784 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7786 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7787 the front of the initialize list.
7789 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7791 * infrun.c (struct inferior_status): Replace fields
7792 selected_frame_address and selected_level with field
7794 (save_inferior_status): Update. Use get_frame_id.
7795 (struct restore_selected_frame_args): Delete.
7796 (restore_selected_frame): Update. Use frame_find_by_id.
7797 (restore_inferior_status): Update.
7799 * breakpoint.h (struct breakpoint): Change type of
7800 watchpoint_frame to frame_id.
7801 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7802 call to get_current_frame.
7803 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7805 (watchpoint_check): Use frame_find_by_id.
7807 * frame.h (record_selected_frame): Delete declaration.
7808 * stack.c (record_selected_frame): Delete function.
7810 * frame.h (struct frame_id): Define.
7811 (get_frame_id): Declare.
7812 (frame_find_by_id): Declare.
7813 * frame.c (frame_find_by_id): New function.
7814 (get_frame_id): New function.
7816 2002-06-10 Andrey Volkov <avolkov@transas.com>
7818 * ser-e7kpc.c: Fix duplicated define and call of
7819 _initialize_ser_e7000pc
7821 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7823 * signals/signals.c (target_signal_from_host): Fix #ifdef
7825 (do_target_signal_to_host): Likewise.
7827 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7829 * mips-tdep.c (mips_find_abi_section): New function.
7830 (mips_gdbarch_init): Call it.
7832 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7834 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7835 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7836 after Andrew's 2002-06-08 gdbarch change.
7838 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7840 * i386-linux-nat.c (suppy_gregset): Don't supply
7841 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7843 (fill_gregset): Don't fetch it under the same circumstances.
7845 2002-06-09 Andrew Cagney <cagney@redhat.com>
7847 * Makefile.in (callback_h): Define.
7848 (remote_sim_h): Update path to remote-sim.h.
7849 (remote-rdp.o): Add $(callback_h).
7850 (remote-sim.o): Use $(callback_h).
7851 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7852 * remote-rdp.c: Include "gdb/callback.h".
7854 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7856 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7857 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7859 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7861 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7862 * rdi-share/serpardr.c: Ditto.
7863 * rdi-share/unixcomm.c: Ditto.
7864 * rdi-share/serdrv.c: Ditto.
7865 * rdi-share/hostchan.h: Ditto.
7866 * rdi-share/hostchan.c: Ditto.
7867 * rdi-share/host.h: Ditto.
7868 * rdi-share/devsw.c: Ditto.
7870 * objfiles.h: Change type of obj_private to void pointer.
7871 * pa64solib.c: Update copyright. Don't include "assert.h", use
7872 strcmp instead of STREQ, use LONGEST, do not use PTR
7873 * somsolib.c: Ditto.
7875 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7876 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7877 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7879 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7881 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7882 (default_get_saved_register): Delete function.
7883 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7884 generic_unwind_get_saved_register.
7885 * gdbarch.h, gdbarch.c: Re-generate.
7887 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7889 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7890 generic_func_frame_chain_valid.
7891 * gdbarch.h, gdbarch.c: Re-generate.
7892 * blockframe.c (generic_func_frame_chain_valid): Only check
7893 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7894 passing FP to PC_IN_CALL_DUMMY.
7897 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7899 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7900 (register_gdbarch_data): Initialize init_p.
7901 (gdbarch_data): Initialize data pointer using the init function.
7902 (init_gdbarch_data): Delete function.
7903 (gdbarch_update_p): Update.
7904 (initialize_non_multiarch): Update.
7905 (struct gdbarch): Add field initialized_p.
7906 * gdbarch.h, gdbarch.c: Re-generate.
7908 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7910 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7911 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7912 better do the things actually here.
7913 * x86-64-tdep.c (x86_64_register_name2nr): New.
7914 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7915 (x86_64_gdbarch_init): Respect the above change.
7916 * x86-64-tdep.h (x86_64_register_name2nr)
7917 (x86_64_register_nr2name): Add prototypes.
7918 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7920 2002-06-06 Michael Snyder <msnyder@redhat.com>
7922 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7923 Delete extra braces and re-indent.
7924 (d10v_store_return_value): Char return values
7925 must be shifted over by one byte in R0.
7926 (d10v_extract_return_value): Delete extra braces, re-indent.
7928 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7930 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7931 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7932 (d10v_integer_to_address): Rewrite.
7933 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7934 the d10v specific functions which take care of converting to the
7937 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7939 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7940 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7942 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7944 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7946 * config/tm-linux.h: Ditto.
7947 * config/alpha/tm-alphalinux.h: Ditto.
7948 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7949 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7950 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7951 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7952 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7953 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7954 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7955 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7956 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7957 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7958 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7959 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7960 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7961 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7962 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7963 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7964 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7965 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7966 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7967 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7968 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7969 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7970 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7971 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7972 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7973 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7974 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7975 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7976 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7977 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7978 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7979 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7980 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7981 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7982 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7983 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7984 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7986 2002-05-04 Aidan Skinner <aidan@velvet.net>
7988 * ada-exp.tab.c: New file
7989 * ada-exp.y: New file
7990 * ada-lang.c: New file
7991 * ada-lang.h: New file
7992 * ada-lex.c: New file
7993 * ada-lex.l: New file
7994 * ada-tasks.c: New file
7995 * ada-typeprint.c: New file
7996 * ada-valprint.c: New file
7998 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8000 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8001 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8003 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8005 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8006 insetead of ppc-linux-tdep.o.
8007 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8008 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8010 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8012 2002-05-07 Christian Groessler <chris@groessler.org>
8013 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8014 bit register contents for little endian hosts.
8016 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8018 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8021 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8023 * gdbarch.h: Regenerate.
8025 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8027 * MAINTAINERS: Add everyone to write-after-approval list.
8029 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8031 * stack.c (frame_info): Use frame_register_unwind instead of
8032 saved_regs. Mention when the SP is on the stack or in a register.
8034 * frame.h (frame_register_unwind_ftype): Define. Document.
8035 (struct frame_info): Add field register_unwind and
8036 register_unwind_cache.
8037 (frame_register_unwind): Declare.
8038 (generic_unwind_get_saved_register): Declare.
8040 * frame.c (frame_register_unwind): New function.
8041 (generic_unwind_get_saved_register): New function.
8043 * blockframe.c (generic_call_dummy_register_unwind): New function.
8044 (frame_saved_regs_register_unwind): New function.
8045 (set_unwind_by_pc): New function.
8046 (create_new_frame): New function.
8047 (get_prev_frame): New function.
8049 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8051 * a29k-share/: Delete directory.
8052 * remote-vx29k.c: Delete file.
8054 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8056 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8057 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8059 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8061 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8062 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8065 (sparcnbsd-tdep.o): New dependency lists.
8066 * NEWS: Note new UltraSPARC NetBSD native configuration.
8067 * configure.host (sparc64-*-netbsd*): New host.
8068 * configure.tgt (sparc-*-netbsdelf*)
8069 (sparc-*-netbsd*): Set gdb_target to nbsd.
8070 (sparc64-*-netbsd*): New target.
8071 * sparc64nbsd-nat.c: New file.
8072 * sparcnbsd-nat.c: New file.
8073 * sparcnbsd-tdep.c: New file.
8074 * sparcnbsd-tdep.h: New file.
8075 * config/sparc/nbsd.mt: New file.
8076 * config/sparc/nbsd64.mh: New file.
8077 * config/sparc/nbsd64.mt: New file.
8078 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8079 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8081 * config/sparc/nbsdaout.mt: Remove.
8082 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8083 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8085 * config/sparc/nbsdelf.mt: Remove.
8086 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8087 sparc-nat.c compatiblity defines.
8088 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8089 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8090 * config/sparc/tm-nbsd64.h: New file.
8091 * config/sparc/tm-nbsdaout.h: Remove.
8092 * config/sparc/xm-nbsd.h: Remove.
8094 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8096 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8097 * sparc-tdep.c: Include osabi.h.
8098 (gdbarch_tdep): Add osabi member.
8099 (_initialize_sparc_tdep): Use gdbarch_register.
8100 (sparc_gdbarch_init): Use generic OS ABI framework.
8101 (sparc_dump_tdep): New function.
8103 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8105 * corefile.c (do_captured_read_memory_integer): Return non-zero
8107 (safe_read_memory_integer): Copy result of memory read when
8108 status is non-zero. Also, add comments.
8110 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8112 * Makefile.in (ppc_tdep_h): Define.
8115 (rs6000-tdep.o): Use $(ppc_tdep_h).
8118 (ppcnbsd-tdep.o): New dependency lists.
8119 * ppc-tdep.h: Use generic OS ABI framework.
8120 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8121 (ppc_linux_init_abi): New functions.
8122 (ppc_sysv_abi_broken_use_struct_convention)
8123 (ppc_sysv_abi_use_struct_convention)
8124 (ppc_sysv_abi_push_arguments): Move to...
8125 * ppc-sysv-tdep.c: ...here.
8126 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8127 * rs6000-tdep.c (process_note_abi_tag_sections)
8128 (get_elfosabi): Remove.
8129 (rs6000_gdbarch_init): Use generic OS ABI framework.
8130 (rs6000_dump_tdep): New function.
8131 (_initialize_rs6000_tdep): Use gdbarch_register.
8132 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8133 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8134 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8135 of ppc-linux-tdep.o.
8136 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8137 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8138 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8139 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8140 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8141 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8143 2002-05-29 Jim Blandy <jimb@redhat.com>
8145 * macroscope.c (default_macro_scope): Put `void' in empty argument
8148 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8150 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8151 * arch-utils.c: Include "sim-regno.h".
8152 * gdbarch.sh: Don't include "sim-regno.h".
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8156 * arch-utils.h (legacy_register_sim_regno): To here.
8157 * remote-sim.c (legacy_register_sim_regno): Move function from
8159 * arch-utils.c (legacy_register_sim_regno): To here.
8161 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8163 * sim-regno.h: New file.
8164 * Makefile.in (sim_regno_h): Define.
8165 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8166 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8167 (legacy_register_sim_regno): New function.
8168 (one2one_register_sim_regno): New function.
8169 (gdbsim_fetch_register): Rewrite.
8170 (gdbsim_store_register): Only store a register when
8171 REGISTER_SIM_REGNO is valid.
8172 * d10v-tdep.c: Include "sim-regno.h".
8173 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8174 (d10v_ts3_register_sim_regno): Ditto.
8175 * gdbarch.sh: Include "sim-regno.h".
8176 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8177 * gdbarch.h, gdbarch.c: Regenerate.
8178 * arch-utils.h (default_register_sim_regno): Delete declaration.
8179 * arch-utils.c (default_register_sim_regno): Delete function.
8181 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8183 * ppcnbsd-nat.c: Rewrite.
8184 * ppcnbsd-tdep.c: New file.
8185 * ppcnbsd-tdep.h: New file.
8186 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8187 solib.o, and solib-svr4.o.
8188 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8189 nbsd-tdep.o, and corelow.o.
8191 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8193 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8194 `tr' and `sed'. Mention that `broken' targets are not expected to
8197 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8199 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8200 Let PC point right after the prologue before looking up symbols.
8202 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8204 * i386-tdep.c (i386_register_virtual_type): Return
8205 builtin_type_vec128i for SSE registers.
8207 * gdbtypes.h (builtin_type_vec128i): Declare.
8209 * gdbtypes.c (build_builtin_type_vec128i): New function.
8210 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8211 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8212 (build_gdbtypes): Initialize new builtin vector types.
8213 (_initialize_gdbtypes): Register new vector types with gdbarch.
8215 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8217 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8218 since it has been multi-arch'd.
8219 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8220 Move Alpha and VAX multi-arch news entries to same section
8221 as other multi-arch news.
8223 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8225 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8226 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8227 static. Rename some register numbers to put them in ns32k-tdep
8229 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8230 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8232 (_initialize_ns32k_tdep): Use gdbarch_register.
8233 * ns32k-tdep.h: New file.
8234 * ns32knbsd-tdep.c: New file.
8235 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8236 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8237 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8238 REGISTER_BYTES, REGISTER_BYTE): Remove.
8239 * config/ns32k/tm-ns32k.h: New file.
8240 * config/ns32k/tm-umax.h: Remove.
8242 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8244 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8245 ns32k_store_struct_return, ns32k_extract_return_value,
8246 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8248 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8249 ns32k_saved_pc_after_call.
8250 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8251 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8252 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8253 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8254 ns32k_extract_struct_value_address.
8256 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8258 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8259 ns32k_fix_call_dummy): New.
8260 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8261 ns32k_call_dummy_words.
8262 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8263 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8264 CALL_DUMMY_NARGS): Remove.
8265 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8267 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8269 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8270 ns32k_frame_saved_pc, ns32k_frame_args_address,
8271 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8272 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8273 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8274 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8275 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8276 (BREAKPOINT): Remove..
8277 (FRAME_CHAIN): Define as ns32k_frame_chain.
8278 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8279 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8280 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8281 (FRAME_FIND_SAVED_REGS): Remove.
8282 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8283 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8284 (POP_FRAME): Define as ns32k_pop_frame.
8286 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8288 * ns32k-tdep.c (ns32k_register_byte_32082,
8289 ns32k_register_byte_32382, ns32k_register_raw_size,
8290 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8292 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8293 ns32k_register_byte_32382.
8294 * config/ns32k/tm-umax.h: Update copyright years.
8295 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8296 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8297 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8298 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8299 (ns32k_get_enter_addr): Fix prototype.
8301 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8303 * ns32k-tdep.c: Update copyright years.
8304 (ns32k_register_name_32082): New function.
8305 (ns32k_register_name_32382): Ditto.
8306 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8307 (REGISTER_NAME): Define as ns32k_register_name_32382.
8308 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8309 (REGISTER_NAME): Define as ns32k_register_name_32082.
8311 2002-05-24 Jim Blandy <jimb@redhat.com>
8313 * dwarf2read.c (free_line_header): Use xfree, not free.
8315 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8317 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8318 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8320 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8322 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8324 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8326 From Ross Alexander at NEC Europe:
8327 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8329 2002-05-23 Michael Snyder <msnyder@redhat.com>
8331 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8332 for input, rather than parse_and_eval_address.
8334 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8336 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8337 * Makefile.in (sim_d10v_h): Update definition.
8339 2002-05-24 Andrew Cagney <cagney@redhat.com>
8341 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8342 change `2002-05-22 Michael Snyder' below.
8343 (d10v_push_arguments): Ditto.
8344 (d10v_extract_return_value): Ditto.
8346 2002-05-23 Jim Blandy <jimb@redhat.com>
8348 * macrotab.c (check_for_redefinition): Don't complain if the new
8349 definition is the same as the previous one. Take more arguments
8350 to allow the comparison.
8351 (macro_define_object, macro_define_function): Pass more arguments
8352 to check_for_redefinition.
8354 2002-05-22 Michael Snyder <msnyder@redhat.com>
8356 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8357 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8358 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8359 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8360 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8361 Add a temp variable to save a call (and a memory read).
8362 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8363 if possible (so that PC_IN_CALL_DUMMY will work).
8365 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8367 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8369 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8371 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8373 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8374 (dwarf2_build_frame_info): Add offset to fde->initial_location
8375 so that frames of shared libraries are mapped correctly.
8376 (execute_stack_op): Change type of 'result' from ULONGEST to
8379 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8381 * config/alpha/tm-nbsd.h: Include solib.h.
8383 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8385 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8386 assumptions about the host's byte order.
8388 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8390 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8392 * alphanbsd-tdep.c: Include solib-svr4.h.
8393 * shnbsd-tdep.c: Ditto.
8395 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8397 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8398 nbsd-tdep.h to dependency list.
8399 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8400 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8401 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8402 nbsdaout.mh and nbsdelf.mh consistently.
8403 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8404 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8405 nbsdaout.mt and nbsdelf.mh consistently.
8406 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8407 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8408 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8409 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8410 a.out shared library stuff from here...
8411 * config/nm-nbsdaout.h: ...to here.
8412 * config/tm-nbsd.h: Remove.
8413 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8414 * config/arm/nbsd.mh: Remove.
8415 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8417 * config/arm/nbsdaout.mh: New file.
8418 * config/arm/nbsdelf.mh: New file.
8419 * config/arm/nm-nbsdaout.h: New file.
8420 * config/i386/nbsd.mh: Remove.
8421 * config/i386/nbsd.mt: Remove.
8422 * config/i386/nbsdaout.mh: New file.
8423 * config/i386/nbsdaout.mt: New file.
8424 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8425 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8426 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8427 i386_register_u_addr): Remove.
8428 * config/i386/nm-nbsdaout.h: New file.
8429 * config/i386/nm-nbsdelf.h: Remove.
8430 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8431 (USE_STRUCT_CONVENTION): Remove.
8432 * config/i386/tm-nbsdaout.h: New file.
8433 * config/i386/tm-nbsdelf.h: Remove.
8434 * config/m68k/nbsd.mh: Remove.
8435 * config/m68k/nbsd.mt: Remove.
8436 * config/m68k/nbsdaout.mh: New file.
8437 * config/m68k/nbsdaout.mt: New file.
8438 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8439 * config/m68k/nm-nbsdaout.h: New file.
8440 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8441 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8442 * config/ns32k/nbsd.mh: Remove.
8443 * config/ns32k/nbsd.mt: Remove.
8444 * config/ns32k/nbsdaout.mh: New file.
8445 * config/ns32k/nbsdaout.mt: New file.
8446 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8447 * config/ns32k/nm-nbsdaout.h: New file.
8448 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8449 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8450 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8451 (SVR4_SHARED_LIBS): Remove.
8452 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8453 * config/sparc/nbsd.mh: Remove.
8454 * config/sparc/nbsd.mt: Remove.
8455 * config/sparc/nbsdaout.mh: New file.
8456 * config/sparc/nbsdaout.mt: New file.
8457 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8458 * config/sparc/nbsdelf.mt: New file.
8459 * config/sparc/nm-nbsdaout.h: New file.
8460 * config/sparc/nm-nbsdelf.h: Remove.
8461 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8462 * config/sparc/tm-nbsdaout.h: New file.
8464 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8466 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8468 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8470 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8472 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8474 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8476 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8478 * NEWS: Note new MIPS NetBSD native configuration.
8479 * configure.host (mips*-*-netbsd*): New host.
8480 * configure.tgt (mips*-*-netbsd*): New target.
8481 * mipsnbsd-nat.c: New file.
8482 * mipsnbsd-tdep.c: New file.
8483 * mipsnbsd-tdep.h: New file.
8484 * config/mips/nbsd.mh: New file.
8485 * config/mips/nbsd.mt: New file.
8486 * config/mips/nm-nbsd.h: New file.
8487 * config/mips/tm-nbsd.h: New file.
8489 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8491 * Makefile.in (SFILES): Add osabi.c.
8492 (COMMON_OBS): Add osabi.o.
8493 (osabi.o): New dependency list.
8494 * osabi.c: New file.
8495 * osabi.h: New file.
8496 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8498 * Makefile.in (alpha_tdep_h): Define and use instead of
8500 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8501 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8503 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8504 * alpha-tdep.h: Include osabi.h.
8505 (alpha_abi): Remove.
8506 (gdbarch_tdep): Use generic OS ABI framework.
8507 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8508 gdbarch_register_osabi.
8509 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8510 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8511 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8513 * Makefile.in (sh_tdep_h): Add osabi.h.
8514 * sh-tdep.h (sh_osabi): Remove.
8515 (gdbarch_tdep): Use generic OS ABI framework.
8516 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8517 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8518 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8519 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8521 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8522 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8523 gdbarch_register_osabi.
8524 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8525 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8526 (get_elfosabi): Rename to...
8527 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8528 ABI framework support routines.
8529 (arm_gdbarch_init): Use generic OS ABI framework.
8530 (arm_dump_tdep): Likewise.
8531 (_initialize_arm_tdep): Likewise.
8532 * arm-tdep.h: Include osabi.h.
8534 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8536 (arm_gdbarch_register_os_abi): Remove prototype.
8537 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8538 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8540 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8541 * mips-tdep.c: Include osabi.h.
8542 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8545 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8547 * h8300-tdep.c: Fix formatting.
8549 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8551 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8552 printing vector registers.
8554 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8556 From Fernando Nasser:
8557 * remote.c (remote_async_open_1): Re-throw the exception when the
8559 (remote_cisco_open): Ditto.
8560 (remote_open_1): Ditto.
8562 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8564 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8565 (remote_start_remote): Add uiout parameter. Pass through to
8566 remote_start_remote_dummy.
8567 (remote_open_1): Use catch_exception instead of catch_errors.
8568 (remote_async_open_1): Ditto.
8569 (remote_cisco_open): Ditto.
8571 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8573 * remote.c (remote_start_remote): Replace PTR with void pointer.
8574 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8577 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8579 * gdb_indent.sh: Allow the script to be run in the sim directory.
8581 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8583 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8584 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8586 * corelow.c (core_open): Only call set_gdbarch_from_file if
8589 2002-05-17 Andrey Volkov <avolkov@transas.com>
8591 * h8300-tdep.c: Add support of EXR register
8592 * config/h8300/tm-h8300.h: Ditto.
8594 2002-05-17 Andrey Volkov <avolkov@transas.com>
8596 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8598 2002-05-17 Andrey Volkov <avolkov@transas.com>
8600 * h8300-tdep.c: Change literal regnums to REGNO.
8602 2002-05-17 Jim Blandy <jimb@redhat.com>
8604 * NEWS: Note addition of macro support.
8606 Expand preprocessor macros in C expressions.
8607 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8608 (scan_macro_expansion, scanning_macro_expansion,
8609 finished_macro_expansion): New function declarations.
8610 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8611 variable declarations.
8612 * parser-defs.h (expression_context_pc): New declaration.
8613 * parse.c (expression_context_pc): New variable.
8614 (parse_exp_1): Set expression_context_pc, as well as
8615 expression_context_block.
8616 * c-exp.y (yylex): If we're not already reading the result of a
8617 macro expansion, try to macro-expand the next token. When we're
8618 done scanning a macro expansion, switch back to the mainline text.
8619 Commas and `if's in a macro's expansion don't terminate the input.
8620 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8621 (macro_original_text, macro_expanded_text,
8622 expression_macro_lookup_func, expression_macro_lookup_baton): New
8624 (scan_macro_expansion, scanning_macro_expansion,
8625 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8626 c_preprocess_and_parse): New functions.
8627 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8628 c_preprocess_and_parse, instead of c_parse.
8629 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8630 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8632 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8634 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8635 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8636 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8638 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8640 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8642 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8644 * Makefile.in (sh_tdep_h): Define and use.
8645 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8646 register enum): Move to...
8647 * * sh-tdep.h: ...here.
8648 * sh-tdep.c: Include sh-tdep.h.
8649 * sh3-rom.c: Likewise.
8650 * shnbsd-tdep.c: Likewise.
8652 2002-05-16 Michael Snyder <msnyder@redhat.com>
8654 * arm-tdep.c: Spelling fix in comment.
8656 2002-05-16 Jim Blandy <jimb@redhat.com>
8658 Add commands for manually expanding macros and showing their
8660 * macrocmd.c, macroscope.c, macroscope.h: New files.
8661 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8662 (macroscope_h): New variable.
8663 (HFILES_NO_SRCDIR): Add macroscope.h.
8664 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8665 (macroscope.o, macrocmd.o): New rules.
8667 Teach the Dwarf 2 reader to read macro information.
8668 * dwarf2read.c: #include "macrotab.h".
8669 (dwarf_macinfo_buffer): New variable.
8670 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8672 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8673 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8674 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8675 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8676 dwarf2_macro_spaces_in_definition): New complaints.
8677 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8678 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8679 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8680 the partial symbol table.
8681 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8682 from what's recorded in the partial symbol table.
8683 (read_file_scope): If the compilation unit has a
8684 `DW_AT_macro_info' attribute, read its macro information.
8685 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8687 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8690 * ser-tcp.c: Don't include <netinet/udp.h>.
8692 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8694 * MAINTAINERS: Update my email address.
8696 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8698 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8699 include file of the same name.
8701 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8703 * configure.tgt: Mark v850 as multi-arched.
8704 * config/v850/tm-v850.h: Remove file.
8705 * config/v850/v850.mt: Eliminate TM_FILE.
8707 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8709 * v850-tdep.c: Full multi-arch.
8710 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8711 Define GDB_MULTI_ARCH to 2.
8713 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8715 * p-exp.y (current_type): New static variable.
8716 Carries the type of the expression at the position that is parsed.
8717 (push_current_type, pop_current_type): Two new functions. Used
8718 to store/restore current_type in expression on specific tokens.
8719 (search_field): New static variable. Set to one after parsing a point
8720 as at that point only a FIELDNAME token should be searched.
8721 (FIELDNAME): New token. After a point only a token belonging to
8722 current_type type definition is allowed.
8723 (all over token rules): reset and change current_type according
8725 (exp '[' rule): insert implicit array index field if
8726 exp is a pascal string type.
8728 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8730 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8731 frame info. Use frame_info's saved_regs instead of matching member
8732 in extra_frame_info throughout.
8733 (v850_frame_init_saved_regs): New function.
8734 (v850_init_extra_frame_info): Move most functionality into
8735 v850_frame_init_saved_regs().
8736 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8737 (v850_frame_find_saved_regs): Remove declaration.
8738 (FRAME_FIND_SAVED_REGS): Remove definition.
8739 (v850_frame_init_saved_regs): Add declaration.
8740 (FRAME_INIT_SAVED_REGS): Add definition.
8742 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8744 * v850-tdep.c: Begin multi-arch'ing v850.
8745 (v850_target_architecture_hook): Remove function.
8746 (v850_gdbarch_init): New function. Add code previously in
8747 v850_target_architecture_hook().
8748 (_initialize_v850_tdep): Don't set target_architecture_hook.
8749 Call register_gdbarch_init() instead.
8751 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8753 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8754 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8755 (fixup_class_method_type): Likewise.
8757 2002-05-15 Jim Blandy <jimb@redhat.com>
8759 Add macro structures to GDB's symbol tables. Nobody puts anything
8761 * symtab.h (struct symtab): New member: `macro_table'.
8762 * buildsym.h (pending_macros): New global variable.
8763 * buildsym.c: #include "macrotab.h".
8764 (buildsym_init): Initialize `pending_macros'.
8765 (end_symtab): If we found macro information while reading a CU's
8766 debugging info, do build a symtab structure for it. Make the
8767 symtab point to the macro information, and clear the
8768 `pending_macros' pointer which held it while we were reading the
8770 (really_free_pendings): Free any pending macro table.
8771 * objfiles.h (struct objfile): New member: `macro_cache'.
8772 * objfiles.c (allocate_objfile): Set allocate and free functions
8773 for the macro cache's objstack.
8774 (free_objfile): Empty the macro cache's obstack.
8775 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8776 set new allocate and free functions for it.
8777 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8778 free functions for the macro cache's objstack. (Why is this
8779 function building its own objfile?)
8780 * symmisc.c (print_objfile_statistics): Print statistics on the
8782 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8784 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8786 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8787 (REGISTER_U_ADDR): Delete definition.
8788 (arm_register_u_addr): Delete declaration.
8790 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8792 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8793 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8795 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8797 * regcache.c (register_valid): Revise comments refering to "Not
8798 available" and "unavailable".
8799 * frame.c (frame_register_read): Ditto.
8800 * findvar.c (value_of_register): Ditto.
8802 2002-05-15 Andrew Cagney <cagney@redhat.com>
8804 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8805 (remote-sim.o): Update dependencies.
8806 (d10v-tdep.o): Specify dependencies.
8807 (sim_d10v_h): Define.
8809 2002-05-14 Jim Blandy <jimb@redhat.com>
8811 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8812 * macrotab.c (macro_lookup_inclusion, find_definition,
8813 new_macro_table): Same.
8815 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8816 not `! strcmp ()'. This is a dubious improvement.
8817 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8819 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8820 although it's not necessary, to avoid a warning.
8822 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8824 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8825 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8826 TYPE_INSTANCE_FLAGS.
8827 (struct main_type): New.
8828 (struct type): Move most members to struct main_type. Change
8829 cv_type and as_type to new type_chain member. Add instance_flags.
8830 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8831 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8832 (finish_cv_type): Remove prototype.
8833 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8835 (alloc_type_instance): New function.
8836 (smash_type): New function.
8837 (make_pointer_type, make_reference_type, make_function_type)
8838 (smash_to_member_type, smash_to_method_type): Call smash_type.
8839 (make_qualified_type): New function.
8840 (make_type_with_address_space): Call make_qualified_type.
8841 (make_cv_type): Likewise.
8842 (finish_cv_type): Remove unnecessary function.
8843 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8844 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8845 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8846 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8847 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8848 * hpread.c (hpread_read_struct_type): Likewise.
8849 * stabsread.c (read_struct_type): Likewise.
8851 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8853 * configure.tgt: Add a catch all sh* target, for cases like
8854 sh[2,3,4]-elf and sh-hms.
8856 2002-05-14 Keith Seitz <keiths@redhat.com>
8858 * event-loop.c (create_file_handler): Don't do anything but
8859 update data when we are given a fd which we are already
8862 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8864 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8865 (update_context): Use __func__ in warnings.
8867 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8869 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8870 and tcp_close to net_open and net_close.
8871 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8872 using UDP if requested. Don't try to disable Nagle on UDP
8874 * remote.c (remote_serial_open): New function. Warn about UDP.
8875 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8877 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8879 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8881 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8883 * configure.tgt: Remove sh-hms target.
8884 * MAINTAINERS: Don't list sh-hms as a separate target.
8886 2002-05-13 Jim Blandy <jimb@redhat.com>
8888 Add first preprocessor macro-expansion files.
8889 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8890 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8891 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8892 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8893 (COMMON_OBS): Add macrotab.o, macroexp.o.
8894 (macroexp.o, macrotab.o): New rules.
8896 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8898 * config/m88k/tm-m88k.h: Update copyright.
8899 (m88k_target_write_pc): Declare
8900 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8901 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8902 (SHIFT_INST_REGS): Update definition.
8903 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8904 using old definition of TARGET_WRITE_PC.
8905 * regcache.c (generic_target_write_pc): Delete code handling
8907 * gdbarch.sh (NNPC_REGNUM): Delete.
8908 * gdbarch.h, gdbarch.c: Regenerate.
8910 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8912 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8915 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8917 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8918 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8919 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8921 * c-typeprint.c (cp_type_print_method_args): Likewise.
8922 (c_type_print_args): Likewise.
8923 * d10v-tdep.c (d10v_push_arguments): Likewise.
8924 (d10v_extract_return_value): Likewise.
8925 * expprint.c (print_subexp): Likewise.
8926 * gdbtypes.c (lookup_primitive_typename): Likewise.
8927 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8928 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8929 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8930 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8931 (TYPE_VECTOR): Likewise.
8932 * hpread.c (hpread_read_struct_type)
8933 (fix_static_member_physnames, fixup_class_method_type)
8934 (hpread_type_lookup): Likewise.
8935 * mdebugread.c (parse_symbol, parse_type): Likewise.
8936 * p-lang.c (is_pascal_string_type): Likewise.
8937 * valops.c (hand_function_call): Likewise.
8938 * x86-64-tdep.c (classify_argument): Likewise.
8940 * hpread.c (hpread_read_function_type)
8941 (hpread_read_doc_function_type): Call replace_type.
8942 * dstread.c (create_new_type): Delete.
8943 (decode_dst_structure, process_dst_function): Call alloc_type.
8944 Use type access macros.
8946 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8948 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8949 the're not supported by the current architecture.
8950 (i387_fill_fxsave): Likewise.
8952 2002-05-12 Fred Fish <fnf@redhat.com>
8954 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8955 sect_index_xxx members to index the first slot in section_offsets
8956 if all of the section_offsets are zero.
8958 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8960 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8961 checked in with last change.
8963 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8965 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8966 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8969 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8971 * Makefile.in: Update dependencies.
8973 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8975 * language.c (local_hex_string_custom): Simplify. Do not depend
8976 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8978 * memattr.c (mem_info_command): Replace calls to
8979 longest_local_hex_string and longest_local_hex_string_custom.
8980 * buildsym.c (make_blockvector): Ditto.
8981 * solib.c (info_sharedlibrary_command): Ditto.
8982 * tracepoint.c (tracepoints_info): Ditto.
8983 * symtab.c (print_msymbol_info): Ditto.
8985 * language.c (local_hex_string): Delete.
8986 (local_hex_string_custom): Delete.
8987 (longest_local_hex_string): Rename to local_hex_string.
8988 (longest_local_hex_string_custom): Rename to
8989 local_hex_string_custom.
8990 * language.h (local_hex_string): Change parameter type to LONGEST.
8991 (local_hex_string_custom): Ditto.
8992 (longest_local_hex_string): Delete declaration.
8993 (longest_local_hex_string_custom): Ditto.
8995 * solib.c: Update copyright.
8996 * memattr.c: Update copyright.
8998 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9000 * arch-utils.h (legacy_register_to_value): Declare.
9001 (legacy_value_to_register): Declare.
9002 (legacy_convert_register_p): Declare.
9003 * arch-utils.c (legacy_register_to_value): New function.
9004 (legacy_value_to_register): New function.
9005 (legacy_convert_register_p): New function.
9007 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9008 (VALUE_TO_REGISTER): Define.
9009 (CONVERT_REGISTER_P): Define.
9010 * gdbarch.h, gdbarch.c: Regenerate.
9012 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9014 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9017 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9018 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9020 * Makefile.in: Update dependencies for valops.c.
9021 * valops.c: Include "gdb_assert.h".
9022 (typecmp): Skip THIS parameter to methods.
9023 (find_method_list): Remove static_memfuncp argument,
9024 update callers. Check for stub methods.
9025 (find_value_oload_method_list): Don't set *static_memfuncp.
9026 (find_overload_match): Don't check for stub methods. Assert
9027 that methods are not stubbed. Handle static methods.
9028 (value_find_oload_method_list): Remove static_memfuncp argument.
9029 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9030 to the argument list for static stub methods.
9031 * value.h (value_find_oload_method_list): Update prototype.
9033 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9035 * arch-utils.h (generic_register_size): Declare.
9036 (generic_register_raw_size, generic_register_virtual_size): Delete
9038 * arch-utils.c (generic_register_raw_size): Delete.
9039 (generic_register_size): New function.
9040 (generic_register_virtual_size): Delete.
9042 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9043 default generic_register_size.
9044 * gdbarch.h, gdbarch.c: Re-generate.
9046 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9047 register_virtual_size.
9048 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9049 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9051 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9053 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9054 * gdbarch.h, gdbarch.c: Regenerate.
9055 * gnu-v3-abi.c: Update copyright.
9056 (vtable_address_point_offset): Update.
9057 (gnuv3_rtti_type): Update.
9058 (gnuv3_baseclass_offset): Update.
9059 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9060 (init_fetch_link_map_offsets): Update.
9061 * remote.c (get_remote_state): Update.
9063 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9065 * TODO: Remove value_headof/value_from_vtable_info comment.
9066 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9067 * values.c (value_headof, value_from_vtable_info): Delete.
9068 * value.h (value_from_vtable_info): Delete prototype.
9070 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9072 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9073 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9075 (gdb_assert_h): Define.
9076 (gdb_wait_h): Define.
9077 (gdb_regex_h): Define.
9079 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9081 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9082 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9084 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9086 * nbsd-tdep.c: Fix comment.
9088 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9090 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9091 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9092 (nbsd-tdep.o): New dependency list.
9093 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9095 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9096 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9097 * nbsd-tdep.c: New file.
9098 * nbsd-tdep.h: New file.
9099 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9101 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9102 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9103 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9104 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9106 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9108 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9109 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9110 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9111 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9112 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9113 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9115 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9117 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9118 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9119 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9120 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9121 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9122 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9123 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9125 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9127 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9128 fetch_elfcore_registers to...
9129 * i386nbsd-tdep.c: ...here.
9130 (i386nbsd_use_struct_convention): Rename to...
9131 (i386nbsd_aout_use_struct_convention): ...this.
9132 (i386nbsd_supply_reg): New function.
9133 (i386nbsd_fill_reg): New function.
9134 (fetch_core_registers): Use i386nbsd_supply_reg.
9135 (fetch_elfcore_registers): Likewise.
9136 (_initialize_i386nbsd_tdep): New function.
9137 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9138 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9139 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9140 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9141 (i386nbsd_aout_use_struct_convention): ...this.
9143 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9145 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9146 (store_inferior_registers): Use shnbsd_fill_reg.
9147 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9148 sh_nbsd_supply_register): Collapse into...
9149 (shnbsd_supply_reg): ...this.
9150 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9151 (shnbsd_fill_reg): ...this.
9152 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9153 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9154 (fetch_core_registers): Use shnbsd_supply_reg.
9155 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9156 (sh_nbsd_core_fns): Rename to...
9157 (shnbsd_core_fns): ...this.
9158 (sh_nbsd_elfcore_fns): Rename to...
9159 (shnbsd_elfcore_fns): ...this.
9160 (sh_nbsd_init_abi): Rename to...
9161 (shnbsd_init_abi): ...this.
9162 (_initialize_sh_nbsd_tdep): Rename to...
9163 (_initialize_shnbsd_tdep): ...this.
9164 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9165 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9166 sh_nbsd_fill_register): Remove prototypes.
9167 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9169 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9171 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9172 (i387-nat.o): Delete dependency list.
9173 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9174 (x86-64-linux-nat.o): Likewise.
9175 * i387-nat.c: Delete file, moving contents to...
9176 * i387-tdep.c: ...here.
9177 * i387-nat.h: Rename...
9178 * i387-tdep.h: ...to this.
9179 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9180 * i386-linux-nat.c: Likewise.
9181 * i386bsd-nat.c: Likewise.
9182 * i386gnu-nat.c: Likewise.
9183 * i386nbsd-nat.c: Likewise.
9184 * i386v4-nat.c: Likewise.
9185 * x86-64-linux-nat.c: Likewise.
9186 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9187 * config/i386/go32.mh (NATDEPFILES): Likewise.
9188 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9189 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9190 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9191 * config/i386/linux.mh (NATDEPFILES): Likewise.
9192 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9193 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9194 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9195 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9197 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9199 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9200 (alphanbsd-nat.o): Remove dependency list.
9201 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9202 * alphanbsd-nat.c: Delete. Contents moved to...
9203 * alphanbsd-tdep.c: ...here.
9204 (_initialize_alphanbsd_tdep): Register core functions.
9205 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9207 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9209 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9210 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9211 (alphanbsd-nat.o): Likewise.
9212 (alphabsd-tdep.o): New dependency list.
9213 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9214 (fill_gregset): Use alphabsd_fill_reg.
9215 (supply_fpregset): Use alphabsd_supply_fpreg.
9216 (fill_fpregset): Use alphabsd_fill_fpreg.
9217 (fetch_inferior_registers): Use struct reg and struct fpreg
9218 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9219 and alphabsd_supply_fpreg.
9220 (store_inferior_registers): Use struct reg and struct fpreg
9221 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9222 and alphabsd_fill_fpreg.
9223 * alphabsd-tdep.c: New file.
9224 * alphabsd-tdep.h: New file.
9225 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9226 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9227 alphabsd_supply_fpreg.
9228 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9229 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9231 2002-05-11 Eric Christopher <echristo@redhat.com>
9233 * mips-tdep.c (mips_double_register_type): Fix thinko.
9234 (mips_single_register_type): Ditto.
9235 * MAINTAINERS: Add self.
9237 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9239 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9240 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9241 right thing on architectures with different endianness and/or
9244 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9246 From Christian Limpach <chris@Pin.LU>
9247 * configure.in: Change sed expression which comments out
9248 NATDEPFILES to also comment out continuation lines.
9249 * configure: Regenerate.
9251 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9253 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9256 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9258 * sh-tdep.c: Include correct file.
9260 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9262 New support for sh64-elf (sh5) target.
9264 * configure.tgt: For sh64-elf target, default to sh-elf.
9266 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9267 (struct gdbarch_tdep): Add new fields for new registers and ABI
9270 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9271 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9272 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9273 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9274 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9275 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9276 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9277 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9278 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9279 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9280 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9281 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9282 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9283 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9284 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9285 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9286 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9287 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9288 sign_extend, sh64_nofp_frame_init_saved_regs,
9289 sh64_init_extra_frame_info, sh64_get_saved_register,
9290 sh64_extract_struct_value_address, sh64_pop_frame,
9291 sh64_push_arguments, sh64_extract_return_value,
9292 sh64_store_return_value, sh64_show_media_regs,
9293 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9294 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9295 sh_sh64_register_virtual_type,
9296 sh_sh64_register_convert_to_virtual,
9297 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9298 sh64_register_read, sh64_pseudo_register_write,
9299 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9300 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9301 sh64_do_pseudo_register, sh_compact_do_registers_info,
9302 sh64_do_registers_info, sh_gdbarch_init): New functions.
9304 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9306 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9308 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9310 * linespec.c (decode_line_1): Check for a double quote after
9311 a filename correctly.
9313 2002-05-10 Jim Blandy <jimb@redhat.com>
9315 Properly track the size of the current objfile's .debug_line section.
9316 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9317 (DWARF_LINE_SIZE): New macro.
9318 (dwarf2_build_psymtabs_hard): Record the line section's size in
9319 the partial symbol table.
9320 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9323 2002-05-10 Petr Sorfa <petrs@caldera.com>
9325 * ia64-tdep.c: Handle breakpoints on L instruction type
9326 in MLX instruction bundle by moving the breakpoint to
9327 the third slot (X instruction type) as L holds only data.
9329 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9331 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9332 (process_one_symbol): Complain about discarding local symbols
9333 due to a misplaced N_LBRAC entry.
9335 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9337 From Daniel Berlin <dan@cgsoftware.com>
9338 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9339 decrease the depth we are at, in the case of templates.
9341 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9343 * mips-tdep.c (mips_float_register_type): New function.
9344 (mips_double_register_type): New function.
9345 (mips_print_register): Use them.
9346 (do_fp_register_row): Likewise.
9348 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9350 * signals/signals.c (signals): Remove conditional compilation around
9351 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9352 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9354 2002-05-09 Michael Snyder <msnyder@redhat.com>
9356 * remote-rdp.c (remote_rdp_can_run): Remove.
9358 2002-05-09 Tom Tromey <tromey@redhat.com>
9360 * jv-valprint.c (java_val_print): Handle `char' as a special case
9363 2002-05-09 Michael Snyder <msnyder@redhat.com>
9365 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9366 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9367 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9368 str r(0123),[sp,#nn].
9369 (arm_skip_prologue): Ditto. Also make disassembly
9370 order-independent by placing it in a loop.
9372 2002-05-06 Michael Snyder <msnyder@redhat.com>
9374 * stabsread.c (read_type): Add recognition for new attribute:
9375 "@V;" means that an array type is actually a vector.
9376 This is analogous to the vector flag that's been added to dwarf2.
9378 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9380 * i386-tdep.h (i386_abi): New enum.
9381 (struct gdbarch_tdep): Replace os_ident member with abi.
9382 (i386_gdbarch_register_os_abi): New prototype.
9383 * i386-tdep.c (i386_abi_names): New array.
9384 (process_note_abi_tag_sections): Removed.
9385 (process_note_sections): New function.
9386 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9387 (struct i386_abi_handler): New struct.
9388 (i386_abi_handler_list): New variable.
9389 (i386_gdbarch_register_os_abi): New function.
9390 (i386_gdbarch_init): Adapt for the changes given above.
9392 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9394 * gregset.h: Say "GNU/Linux".
9396 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9398 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9399 (build_gdbtypes): Build builtin_type_v2_float.
9400 (_initialize_gdbtypes): Register new builtin type.
9402 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9404 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9405 (clear_gdbarch_swap): New function.
9406 (initialize_non_multiarch): Call.
9407 (gdbarch_update_p): Before calling init(), swap out and clear the
9408 existing architecture.
9409 * gdbarch.c: Regenerate.
9411 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9413 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9416 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9418 * sh-nbsd-nat.c: Rename to...
9419 * shnbsd-nat.c: ...this.
9420 * sh-nbsd-tdep.c: Rename to...
9421 * shnbsd-tdep.c: ...this.
9422 * sh-nbsd-tdep.h: Rename to...
9423 * shnbsd-tdep.h: ...this.
9424 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9425 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9427 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9429 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9430 concatenation for command help messages.
9432 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9434 * NEWS: Note new sh*-*-netbsdelf* configuration.
9435 * configure.host: Set gdb_host_cpu to sh for all sh*.
9436 (sh*-*-netbsdelf*): New host.
9437 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9438 (sh*-*-netbsdelf*): New target.
9439 * sh-nbsd-nat.c: New file.
9440 * sh-nbsd-tdep.c: New file.
9441 * sh-nbsd-tdep.h: New file.
9442 * config/sh/nbsd.mh: New file.
9443 * config/sh/nbsd.mt: New file.
9444 * config/sh/nm-nbsd.h: New file.
9445 * config/sh/tm-nbsd.h: New file.
9447 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9449 * sh-tdep.c (sh_osabi_names): Declare.
9450 (process_note_abi_tag_sections): New function.
9451 (get_elfosabi): Ditto.
9452 (sh_gdbarch_register_os_abi): Ditto.
9453 (sh_dump_tdep): Ditto.
9454 _initialize_sh_tdep): Use gdbarch_register to register
9455 sh_gdbarch_init and sh_dump_tdep.
9456 * config/sh/tm-sh.h (sh_osabi): Declare.
9457 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9459 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9461 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9462 (thumb_scan_prologue): Ditto.
9463 (arm_find_callers_reg): Ditto.
9464 (arm_frame_chain): Ditto.
9465 (arm_init_extra_frame_info): Ditto.
9466 (arm_frame_saved_pc): Ditto.
9467 (arm_pop_frame): Ditto.
9468 (arm_push_return_address): New function.
9469 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9470 call_dummy_location, call_dummy_breakpoint_offset_p,
9471 call_dummy_breakpoint_offset, call_dummy_p,
9472 call_dummy_stack_adjust_p, call_dummy_words,
9473 sizeof_call_dummy_words, call_dummy_start_offset,
9474 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9475 call_dummy_address, push_return_address and push_dummy_frame for
9476 generic dummy frames.
9478 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9480 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9481 size computation for alloca.
9482 (sh_fp_frame_init_saved_regs): Likewise.
9484 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9486 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9487 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9488 * arm-tdep.c (arm_store_return_value): Use them.
9489 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9490 * remote-rdp.c (remote_rdp_fetch_register): Use
9491 ARM_MAX_REGISTER_RAW_SIZE.
9492 (remote_rdp_store_register): Likewise.
9494 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9496 * dwarf2cfi.c: Code cleanup, removed unused variables,
9497 added default labels to switch {} statements.
9498 * x86-64-tdep.c: Ditto.
9499 * x86-64-linux-nat.c: Ditto.
9501 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9503 * solib.h: Protect against multiple inclusion.
9505 2002-05-06 Jim Blandy <jimb@redhat.com>
9507 Add first preprocessor macro-expansion files.
9508 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9509 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9510 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9511 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9512 (COMMON_OBS): Add macrotab.o, macroexp.o.
9513 (macroexp.o, macrotab.o): New rules.
9515 Separate the job of reading the line number info statement program
9516 header (...expialidocious) out into its own function.
9517 * dwarf2read.c (struct line_head, struct filenames, struct
9518 directories): Replace with...
9519 (struct line_header): New structure, containing the full
9520 contents of the statement program header, including the
9521 include directory and file name tables.
9522 (read_file_scope): If we have line number info, instead of just
9523 calling dwarf_decode_lines to do all the work, call
9524 dwarf_decode_line_header first to get a `struct line_header'
9525 containing the data in the statement program header, and then
9526 pass that to dwarf_decode_lines, which will pick up where that
9527 left off. Be sure to clean up the `struct line_header' object.
9528 (dwarf_decode_line_header, free_line_header, add_include_dir,
9529 add_file_name): New functions.
9530 (dwarf_decode_lines): Move all the code to read the statement
9531 program header into dwarf_decode_line_header. Take the line
9532 header it built as the first argument, instead of the offset to
9533 the compilation unit's line number info. Use the new `struct
9534 line_header' type instead of the old structures. No need to do
9535 cleanups here now, since we don't allocate anything.
9536 (dwarf2_statement_list_fits_in_line_number_section,
9537 dwarf2_line_header_too_long): New complaints.
9539 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9541 * gdbtypes.c (init_vector_type): New function.
9542 (build_builtin_type_vec128): Simplify the representation of SIMD
9544 (build_gdbtypes): Initialize new builtin vector types.
9545 (_initialize_gdbtypes): Register new vector types with gdbarch.
9546 (builtin_type_v4_float, builtin_type_v4_int32,
9547 builtin_type_v8_int16, builtin_type_v16_int8,
9548 builtin_type_v2_int32, builtin_type_v4_int16,
9549 builtin_type_v8_int8): New (renamed) SIMD types.
9551 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9553 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9554 (i387_fill_fxsave): Likewise.
9556 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9558 * alpha-tdep.c (alpha_extract_return_value): Don't use
9559 non-constant array size in prototype.
9561 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9563 From Brian Taylor <briant at model dot com>:
9564 * ui-out.c (ui_out_field_core_addr): Use the function
9565 longest_local_hex_string_custom'to format addresses > 32 bits
9568 * ui-out.c (ui_out_field_core_addr): Update comment.
9570 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9572 * stack.c (select_and_print_frame): Make static. Delete the
9574 (func_command): Update call.
9575 (select_frame_command): Delete code computing the frame level.
9576 * frame.h (select_and_print_frame): Delete declaration.
9578 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9580 * sparc-tdep.c (sparc_get_saved_register): Comment why
9581 get_prev_frame call is safe.
9583 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9585 * frame.h (select_frame): Delete level parameter.
9586 * stack.c (select_frame): Update. Use frame_relative_level to
9587 obtain the frame's level.
9588 (select_and_print_frame): Update call.
9589 (select_frame_command): Ditto.
9590 (up_silently_base): Ditto.
9591 (down_silently_base): Ditto.
9592 * ocd.c (ocd_start_remote): Ditto.
9593 * remote-rdp.c (remote_rdp_open): Ditto.
9594 * remote-mips.c (mips_initialize): Ditto.
9595 (common_open): Ditto.
9596 * remote-e7000.c (e7000_start_remote): Ditto.
9597 * m3-nat.c (select_thread): Ditto.
9598 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9599 (child_get_current_exception_event): Ditto.
9600 * varobj.c (varobj_create): Ditto.
9601 (varobj_update): Ditto.
9602 (c_value_of_root): Ditto.
9603 * tracepoint.c (finish_tfind_command): Ditto.
9604 * corelow.c (core_open): Ditto.
9605 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9606 * thread.c (info_threads_command): Ditto.
9607 (switch_to_thread): Ditto.
9608 * infrun.c (normal_stop): Ditto.
9609 (restore_selected_frame): Ditto.
9610 (restore_inferior_status): Ditto.
9611 * breakpoint.c (insert_breakpoints): Ditto.
9612 (watchpoint_check): Ditto.
9613 (bpstat_stop_status): Ditto.
9614 (do_enable_breakpoint): Ditto.
9615 * blockframe.c (flush_cached_frames): Ditto.
9616 (reinit_frame_cache): Ditto.
9618 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9620 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9623 2002-05-04 Jim Blandy <jimb@redhat.com>
9625 * gdbtypes.c (replace_type): Doc fix.
9627 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9629 * valprint.c (strcat_longest): Delete commented out function.
9632 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9634 * MAINTAINERS: Mark a29k as deleted.
9635 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9636 Move new configurations to the top.
9637 * configure.tgt: Remove a29k.
9638 * config/a29k/tm-vx29k.h: Delete.
9639 * config/a29k/vx29k.mt: Delete.
9640 * config/a29k/tm-a29k.h: Delete.
9641 * config/a29k/a29k-udi.mt: Delete.
9642 * config/a29k/a29k.mt: Delete.
9643 * a29k-tdep.c: Delete.
9644 * remote-udi.c: Delete.
9645 * remote-mm.c: Delete.
9646 * remote-eb.c: Delete.
9647 * remote-adapt.c: Delete.
9648 * Makefile.in: Remove obsolete code.
9649 * config/s390/s390x.mt: Ditto.
9650 * config/s390/s390.mt: Ditto.
9651 * config/sparc/sparclynx.mh: Ditto.
9652 * config/sparc/linux.mh: Ditto.
9653 * config/pa/hppaosf.mh: Ditto.
9654 * config/pa/hppabsd.mh: Ditto.
9655 * config/ns32k/nbsd.mt: Ditto.
9656 * config/mips/vr5000.mt: Ditto.
9657 * config/m68k/sun3os4.mh: Ditto.
9658 * config/m68k/nbsd.mt: Ditto.
9659 * config/m68k/m68klynx.mh: Ditto.
9660 * config/m32r/m32r.mt: Ditto.
9661 * config/i386/x86-64linux.mt: Ditto.
9662 * config/i386/nbsdelf.mt: Ditto.
9663 * config/i386/nbsd.mt: Ditto.
9664 * config/i386/i386lynx.mh: Ditto.
9666 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9668 * target.c (debug_print_register): New function. Handle oversize
9670 (debug_to_fetch_registers): Call.
9671 (debug_to_store_registers): Call.
9673 2002-05-03 Jim Blandy <jimb@redhat.com>
9675 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9676 (read_type): Doc fix.
9677 * gdbtypes.c (replace_type): Doc fix.
9679 * stabsread.c (multiply_defined_struct): New complaint.
9680 (read_struct_type): If the type we were passed isn't empty, or
9681 incomplete, don't read the new struct type into it; complain,
9682 and return the original type unchanged. Take a new `type_code'
9683 argument, which is the type code for the new type.
9684 (read_type): Rather than storing the type's type code here, pass
9685 it as an argument to read_struct_type, and let that take care of
9686 storing it. That way, we don't overwrite the original type code,
9687 so read_struct_type can use it to decide whether we're overwriting
9688 something we shouldn't.
9689 (complain_about_struct_wipeout): New function.
9691 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9693 * gdbarch.sh: Assert that gdbarch is non-NULL.
9694 * gdbarch.c: Regenerate.
9696 2002-05-03 Jason Merrill <jason@redhat.com>
9698 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9701 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9703 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9704 (x86_64_dwarf2gdb_regno_map_length),
9705 (x86_64_dwarf2_reg_to_regnum): Added.
9706 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9707 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9708 (_initialize_x86_64_tdep): Synced with the change above.
9709 (x86_64_skip_prologue): Reformulated message.
9711 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9713 * f-exp.y: Also use new prev_lexptr variable
9714 to improve error reporting. Based on Michael Snyder
9715 2002-04-24 dated patch to c-exp.y.
9716 * jv-exp.y: Likewise.
9717 * m2-exp.y: Likewise.
9719 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9721 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9722 we are dealing with vectors.
9724 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9726 * config/m68k/tm-nbsd.h: Obvious fix,
9727 correct machine name.
9729 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9731 * p-typeprint.c (pascal_type_print_base): Add support
9732 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9734 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9736 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9737 for fondamental pascal 'char' type.
9739 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9741 * p-lang.h (is_pascal_string_type): Declaration changed,
9742 new sixth argument of type char ** added.
9743 * p-lang.c (is_pascal_string_type): Implementation
9744 changed. Args length_pos, length_size, string_pos, char_size
9745 can now be NULL. New argument arrayname set to the field
9746 name of the char array. Return value set to char array
9747 field index plus one.
9748 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9749 is_pascal_string_type function.
9751 2002-05-02 Andrew Cagney <cagney@redhat.com>
9753 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9754 <cagney@redhat.com> change.
9755 * gdbarch.c: Regenerate.
9757 2002-05-02 Andrew Cagney <cagney@redhat.com>
9759 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9760 before probing for a new one. Detect errorenous gdbarch_init
9762 * gdbarch.c: Regenerate.
9764 2002-05-01 Andrew Cagney <cagney@redhat.com>
9766 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9767 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9768 * config/v850/tm-v850.h: Ditto. Update copyright.
9770 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9772 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9775 2002-04-30 Michael Snyder <msnyder@redhat.com>
9777 * arm-tdep.c: Whitespace clean-ups.
9778 (arm_skip_prologue): Fix thinko; two lines
9779 should have been removed as part of 4/24 change.
9781 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9783 * rs6000-tdep.c: Added comment describing how fpscr register
9784 numbers were chosen.
9786 2002-04-30 Michael Snyder <msnyder@redhat.com>
9788 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9790 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9792 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9793 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9794 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9796 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9798 From Louis Hamilton <hamilton@redhat.com>:
9799 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9800 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9801 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9802 not bfd-private xcoff data, to determine wordsize.
9803 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9805 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9807 GDB 5.2 released from 5.2 branch.
9809 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9811 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9812 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9813 (x86_64_register_info_table): Added comments with register numbers.
9815 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9817 * rs6000-tdep.c (rs6000_extract_return_value,
9818 rs6000_store_return_value): Handle returning vectors.
9819 (rs6000_gdbarch_init): Use
9820 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9821 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9823 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9825 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9826 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9828 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9830 * hpread.c (hpread_psymtab_to_symtab_1,
9831 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9832 with fprintf_unfiltered (gdb_stderr,...).
9834 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9836 * remote-array.c (printf_monitor, write_monitor,
9837 array_insert_breakpoint, array_remove_breakpoint ):
9838 Replace fprintf (stderr,...
9839 with fprintf_unfiltered (gdb_stderr,....
9840 * remote-es.c: Likewise.
9841 * remote-os9k.c: Likewise.
9842 * remote-st.c: Likewise.
9844 2002-04-28 Andreas Schwab <schwab@suse.de>
9846 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9847 linux-proc.o and gcore.o.
9849 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9851 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9852 code without frame pointers.
9854 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9856 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9859 2002-04-26 Ben Elliston <bje@redhat.com>
9861 * target.c (do_xfer_memory): Correct reference to the new option
9862 "trust-readonly-sections".
9864 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9866 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9867 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9868 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9870 (read_array_type): Record the fact that this array type is really a
9871 vector (i.e. are passed in by value).
9873 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9875 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9876 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9877 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9878 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9879 * alpha-linux-tdep.c: Include frame.h.
9880 (alpha_linux_sigcontext_addr): New function.
9881 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9882 alpha_linux_sigcontext_addr.
9883 * alpha-osf1-tdep.c: Include gdbcore.h.
9884 (alpha_osf1_sigcontext_addr): New function.
9885 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9886 alpha_osf1_sigcontext_addr.
9887 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9888 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9890 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9892 * stack.c (selected_frame_level):
9893 (select_frame): Do not set selected_frame_level.
9894 * frame.h (selected_frame_level): Delete declaration.
9896 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9898 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9899 convert_from_func_ptr-addr when AIX / PowerOpen.
9901 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9903 * valops.c (hand_function_call): Call
9904 generic_save_call_dummy_addr.
9905 * frame.h (generic_save_call_dummy_addr): Declare.
9906 * blockframe.c (struct dummy_frame): Add fields call_lo and
9908 (generic_find_dummy_frame): Check for PC in range call_lo to
9909 call_hi instead of entry_point_address.
9910 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9911 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9912 (generic_save_call_dummy_addr): New function.
9914 2002-04-24 David S. Miller <davem@redhat.com>
9916 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9917 sparc_skip_prologue.
9918 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9919 information to find prologue when possible.
9920 (sparc_prologue_frameless_p): Call examine_prologue directly.
9921 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9922 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9924 (SKIP_PROLOGUE): Likewise.
9926 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9928 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9929 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9930 indicate that the condition it was testing is always true.
9931 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9932 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9933 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9935 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9937 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9938 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9939 tdep->jb_pc and tdep->jb_elt_size.
9940 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9941 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9942 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9943 * alpha-nat.c (get_longjmp_target): Remove.
9944 (JB_ELEMENT_SIZE): Ditto.
9946 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9947 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9948 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9949 to alpha_get_longjmp_target.
9950 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9951 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9952 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9954 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9956 * README: Update to GDB 5.2.
9958 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9960 * gdbarch.sh (LC_ALL): Set to `c'.
9962 2002-04-25 Theodore A. Roth <troth@verinet.com>
9964 * avr-tdep.c: Ran through gdb_indent.sh.
9966 2002-04-25 Theodore A. Roth <troth@verinet.com>
9968 * MAINTAINERS: Add myself as AVR maintainer.
9969 * NEWS: Note new target avr.
9971 2002-04-25 Theodore A. Roth <troth@verinet.com>
9973 * Makefile.in: Add support for AVR target.
9974 * configure.tgt: Add support for AVR target.
9975 * avr-tdep.c: New file
9976 * config/avr/avr.mt: New file.
9978 2002-04-25 Theodore A. Roth <troth@verinet.com>
9980 * MAINTAINERS: Add myself to write-after-approval.
9982 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9984 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9985 with fprintf_unfiltered (gdb_stderr,....
9987 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9990 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9992 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9994 * p-exp.y: Also use new prev_lexptr variable
9995 to improve error reporting. Based on Michael Snyder
9996 2002-04-24 dated patch to c-exp.y.
9998 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10000 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10001 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10002 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10004 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10006 (FUNCTION_START_OFFSET): Remove.
10007 (BREAKPOINT): Ditto.
10009 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10011 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10014 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10016 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10017 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10018 alpha_linux_pc_in_sigtramp.
10019 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10020 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10021 alpha_osf1_pc_in_sigtramp.
10022 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10023 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10024 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10025 alphafbsd_pc_in_sigtramp.
10026 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10027 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10028 alphanbsd_pc_in_sigtramp.
10029 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10030 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10032 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10034 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10036 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10038 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10040 (alphanbsd-nat.o): New dependency list.
10041 (alphanbsd-tdep.o): Ditto.
10042 * NEWS: Note new native NetBSD/alpha configuration.
10043 * alphanbsd-nat.c: New file.
10044 * alphanbsd-tdep.c: Ditto.
10045 * configure.host (alpha*-*-netbsd*): New host.
10046 * configure.tgt (alpha*-*-netbsd*): New target.
10047 * config/alpha/nbsd.mh: New file.
10048 * config/alpha/nbsd.mt: Ditto.
10049 * config/alpha/nm-nbsd.h: Ditto.
10050 * config/alpha/tm-nbsd.h: Ditto.
10052 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10054 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10055 (alpha-osf1-tdep.o): New dependency list.
10056 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10057 and skip_sigtramp_frame members.
10058 * alpha-linux-tdep.c: Include gdbcore.h.
10059 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10060 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10061 * alpha-osf1-tdep.c: New file.
10062 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10064 (alpha_frame_past_sigtramp_frame): New function.
10065 (alpha_dynamic_sigtramp_offset): Ditto.
10066 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10067 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10068 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10069 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10070 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10071 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10072 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10073 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10074 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10075 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10076 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10077 to find_solib_trampoline_target.
10078 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10079 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10080 (SKIP_TRAMPOLINE_CODE): Remove.
10081 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10082 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10083 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10084 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10085 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10086 (PROC_SIGTRAMP_MAGIC): Ditto.
10087 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10088 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10089 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10090 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10091 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10093 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10095 * NEWS: Note that Alpha targets are now multi-arch.
10097 2002-04-24 Michael Snyder <msnyder@redhat.com>
10099 * parser-defs.h (prev_lexptr): New external variable.
10100 * parse.c (parse_exp_1): Set prev_lexptr to null before
10101 calling the language-specific parser.
10102 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10103 (yyerror): Use prev_lexptr in error reporting.
10105 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10107 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10108 * gregset.h: If FILL_FPXREGSET is defined, provide
10109 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10110 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10111 is defined, call fill_fpxregset.
10113 2002-04-24 Roland McGrath <roland@frob.com>
10115 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10116 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10117 (supply_gregset, supply_fpregset): New functions.
10119 * gnu-nat.c (gnu_find_memory_regions): New function.
10120 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10121 (gnu_xfer_memory): Add a cast.
10123 2002-04-24 Michael Snyder <msnyder@redhat.com>
10125 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10126 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10127 of argument regs ("str r(0123), [r11, #-nn"]).
10128 (arm_skip_prologue): Better handling for frameless functions.
10129 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10130 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10132 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10134 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10135 NUM_PSEUDO_REGS can be used.
10137 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10139 * arch-utils.h: Update copyright.
10141 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10142 * gdbarch.h, gdbarch.c: Re-generate.
10144 * inferior.h (IN_SIGTRAMP): Delete definition.
10145 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10146 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10148 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10149 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10150 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10151 (find_proc_framesize): Ditto.
10152 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10153 (alpha_init_extra_frame_info): Ditto.
10154 * infrun.c (handle_inferior_event): Ditto.
10155 (handle_inferior_event): Ditto.
10156 (check_sigtramp2): Ditto.
10157 * blockframe.c (create_new_frame): Ditto.
10158 (get_prev_frame): Ditto.
10159 * ppc-linux-tdep.c: Update comments.
10160 * i386-linux-tdep.c: Update comments.
10161 * breakpoint.c (bpstat_what): Update comment.
10163 2002-04-24 David S. Miller <davem@redhat.com>
10165 * i960-tdep.c (register_in_window_p): New function.
10166 (i960_find_saved_register): Use it instead of
10167 REGISTER_IN_WINDOW_P.
10168 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10170 * symtab.h (find_stab_function_addr): Kill extern.
10171 * minsyms.c (find_stab_function_addr): Remove from here...
10172 * dbxread.c: ... to here, and mark it static.
10174 2002-04-20 David S. Miller <davem@redhat.com>
10176 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10177 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10179 2002-04-21 David S. Miller <davem@redhat.com>
10181 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10182 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10183 (vx_write_register): Likewise.
10185 2002-04-23 J. Brobecker <brobecker@gnat.com>
10187 * source.c (is_regular_file): New function.
10188 (openp): Check wether file to open is a regular file
10189 to avoid opening directories.
10191 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10193 * findvar.c (extract_signed_integer): Cast printf argument
10194 to suppress format warning.
10195 (extract_unsigned_integer): Likewise.
10196 * infcmd.c (registers_info): Likewise.
10197 * top.c (get_prompt_1): Likewise.
10198 * valops.c (value_assign): Likewise.
10199 * valprint.c (print_decimal): Likewise.
10201 2002-04-22 H.J. Lu (hjl@gnu.org)
10203 * c-exp.y (typebase): Support
10205 [long|long long|short] [signed|unsigned] [int|]
10209 signed [long|long long|short] int
10211 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10213 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10215 * vax-tdep.h: New file.
10216 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10217 Make several routines static.
10218 (vax_get_saved_register): New function.
10219 (vax_gdbarch_init): New function.
10220 (_initialize_vax_tdep): Register vax_gdbarch_init.
10221 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10222 Remove macros now under the control of gdbarch.
10224 2002-04-22 Michael Snyder <msnyder@redhat.com>
10226 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10227 Some whitespace and coding standards tweaks.
10229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10231 * vax-tdep.c: Include regcache.h.
10232 (vax_call_dummy_words): New.
10233 (sizeof_vax_call_dummy_words): New.
10234 (vax_fix_call_dummy): New function.
10235 (vax_saved_pc_after_call): Ditto.
10236 * config/vax/tm-vax.h: Don't include regcache.h.
10237 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10238 (CALL_DUMMY): Remove.
10239 (CALL_DUMMY_WORDS): Define.
10240 (SIZEOF_CALL_DUMMY_WORDS): Define.
10241 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10243 2002-04-18 Michael Snyder <msnyder@redhat.com>
10245 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10247 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10249 * vax-tdep.c (vax_frame_chain): New function.
10250 (vax_push_dummy_frame): Ditto.
10251 (vax_pop_frame): Ditto.
10252 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10253 (FRAMELESS_FUNCTION_INVOCATION): Use
10254 generic_frameless_function_invocation_not.
10255 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10256 (POP_FRAME): Use vax_pop_frame.
10258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10260 * vax-tdep.c (vax_store_struct_return): New function.
10261 (vax_extract_return_value): Ditto.
10262 (vax_store_return_value): Ditto.
10263 (vax_extract_struct_value_address): Ditto.
10264 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10265 vax_store_struct_return.
10266 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10267 (STORE_RETURN_VALUE): Use vax_store_return_value.
10268 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10270 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10272 * vax-tdep.c (vax_frame_saved_pc): New function.
10273 (vax_frame_args_address_correct): Ditto.
10274 (vax_frame_args_address): Ditto.
10275 (vax_frame_locals_address): Ditto.
10276 (vax_frame_num_args): Move code to be in proximity to
10277 other frame-related functions.
10278 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10279 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10280 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10281 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10282 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10284 2002-04-22 H.J. Lu (hjl@gnu.org)
10286 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10289 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10291 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10292 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10293 (FRAME_INIT_SAVED_REGS): New macro.
10295 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10297 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10299 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10301 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10303 (fetch_osf_core_registers): Likewise.
10304 (supply_gregset): Likewise.
10306 2002-04-22 J. Brobecker <brobecker@gnat.com>
10308 * symfile.h (get_section_index): Define.
10309 * symfile.c (get_section_index): New function.
10310 * mdebugread.c (SC_IS_SBSS): New macro.
10311 (SC_IS_BSS): Return true for the scBss storage class only, as
10312 the scSBss storage class refers to the .sbss section.
10313 (parse_partial_symbols): Discard the symbols which associated
10314 section does not exist.
10315 Make sure to use the .sbss section index for symbols which
10316 storage class is scBss, rather than using the .bss section index.
10318 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10320 * vax-tdep.c: Update copyright years.
10321 (vax_register_name): New function.
10322 (vax_register_byte): Ditto.
10323 (vax_register_raw_size): Ditto.
10324 (vax_register_virtual_size): Ditto.
10325 (vax_register_virtual_type): Ditto.
10326 * config/vax/tm-vax.h: Update copyright years.
10327 (REGISTER_NAMES): Remove.
10328 (REGISTER_NAME): Define.
10329 (REGISTER_BYTE): Use vax_register_byte.
10330 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10331 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10332 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10334 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10336 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10338 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10340 2002-04-21 David S. Miller <davem@redhat.com>
10342 * arch-utils.c (generic_prologue_frameless_p): Kill
10343 SKIP_PROLOGUE_FRAMELESS_P code.
10344 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10346 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10347 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10348 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10350 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10351 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10352 (sparc_gdbarch_init): Pass it to
10353 set_gdbarch_prologue_frameless_p.
10355 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10357 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10358 (alphabsd-nat.o): New dependency list.
10360 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10362 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10364 (alpha-linux-tdep.o): New dependency list.
10365 (alphafbsd-tdep.o): Likewise.
10367 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10369 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10371 * alpha-tdep.c: ...from here.
10372 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10374 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10376 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10377 prototype from here...
10378 * alpha-tdep.h: ...to here.
10380 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10382 * frame.h (selected_frame_level): Document as deprecated.
10383 (frame_relative_level): Declare.
10384 * stack.c (frame_relative_level): New function.
10385 (selected_frame_level): Document as deprecated.
10386 (select_frame): Do not set the selected_frame_level.
10388 * stack.c (frame_info, record_selected_frame): Update.
10389 (frame_command, current_frame_command): Update.
10390 (up_silently_base, up_command, down_silently_base): Update.
10391 (down_command): Update.
10392 * inflow.c (kill_command): Update.
10393 * tracepoint.c (finish_tfind_command): Update.
10394 * corelow.c (core_open): Update.
10395 * thread.c (info_threads_command): Update.
10396 (do_captured_thread_select): Update.
10397 * infcmd.c (finish_command): Update.
10398 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10400 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10402 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10404 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10406 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10409 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10411 * alphafbsd-tdep.c: Update copyright years. Include
10413 (alphafbsd_use_struct_convention): Make static.
10414 (alphafbsd_init_abi): New function.
10415 (_initialize_alphafbsd_tdep): New function.
10416 * config/alpha/tm-fbsd.h: Update copyright years.
10417 (USE_STRUCT_CONVENTION): Remove.
10419 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10421 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10422 an Alpha ABI variant.
10423 (alpha_abi_handler_list): Declare.
10424 (alpha_gdbarch_register_os_abi): New function.
10425 (alpha_gdbarch_init): Give registered ABI variant handlers a
10426 chance to tweak the gdbarch once we have set up defaults.
10427 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10429 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10431 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10432 to standard_coerce_float_to_double.
10433 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10435 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10437 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10438 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10439 from gdbarch_tdep rather than a constant.
10440 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10441 the default text address for all Alpha Unix ABIs.
10442 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10443 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10445 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10447 * alpha-tdep.h: New file. Includes several Alpha target constants
10449 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10450 let gdbarch deal with.
10451 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10452 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10453 to dependency list.
10454 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10455 Alpha target register names.
10456 * alphabsd-nat.c: Likewise.
10457 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10458 Alpha target register names. Make serveral routines static.
10459 (alpha_get_saved_register): New function.
10460 (alpha_abi_names): New.
10461 (process_note_abi_tag_sections): New function.
10462 (get_elfosabi): New function.
10463 (alpha_gdbarch_init): New function.
10464 (alpha_dump_tdep): New function.
10465 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10467 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10469 * frame.c (find_saved_register): Delete #ifdef
10470 HAVE_REGISTER_WINDOWS code.
10471 * config/sparc/tm-sparc.h: Update comments.
10472 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10474 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10476 * i960-tdep.c (i960_find_saved_register): New function.
10477 (i960_get_saved_register): New function.
10478 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10479 (i960_get_saved_register): Declare.
10480 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10482 2002-04-20 David S. Miller <davem@redhat.com>
10484 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10486 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10488 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10489 instead of NUM_PSEUDO_REGS.
10491 2002-04-20 David S. Miller <davem@redhat.com>
10493 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10494 GDB_MULTI_ARCH_PARTIAL
10495 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10496 define, let tm-sp64.h do it.
10498 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10500 * frame.c (find_saved_register): Avoid a NULL pointer
10501 dereference and actually walk the frame list.
10503 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10505 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10506 sorted in most most-recent-used order. Document.
10507 * gdbarch.h, gdbarch.c: Regenerate.
10509 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10511 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10513 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10514 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10515 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10518 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10521 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10522 (build_builtin_type_vec128): Ditto.
10523 (append_composite_type_field): Fix calculation of type length in
10526 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10528 * config/djgpp/README: Update.
10530 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10533 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10535 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10536 (alpha_setup_arbitrary_frame): ...to this.
10537 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10538 for alpha_setup_arbitrary_frame.
10540 2002-04-18 Andrew Cagney <cagney@redhat.com>
10542 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10543 * gdbarch.h, gdbarch.c: Regenerate.
10545 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10546 * target.h (memory_breakpoint_from_pc): Update declaration.
10547 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10549 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10550 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10551 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10552 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10553 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10554 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10555 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10556 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10557 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10558 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10559 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10560 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10562 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10564 * monitor.c (monitor_insert_breakpoint): Ditto.
10565 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10567 * config/mcore/tm-mcore.h: Update copyright.
10568 * mem-break.c: Ditto.
10569 * xstormy16-tdep.c: Ditto.
10571 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10573 * p-exp.y: Add precedence rule for '^' token.
10574 This removes the shift/reduce conflicts.
10575 Remove the comment concerning these shift/reduce conflicts.
10577 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10579 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10580 (registers_powerpc_nofp): New register set for processors
10581 without floating point unit.
10583 2002-04-18 David S. Miller <davem@redhat.com>
10585 * MAINTAINERS: Add myself to write-after-approval.
10587 2002-04-17 Michael Snyder <msnyder@redhat.com>
10589 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10591 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10593 * rs6000-tdep.c (frame_initial_stack_address): Use
10594 frame_register_read to read the alloca_reg.
10596 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10598 * frame.c (find_saved_register): Find saved registers in the next
10602 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10604 * gdbarch.sh (LANG): Set to ``c''.
10606 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10608 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10610 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10612 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10615 * hpread.c (hpread_get_lntt): Add declaration.
10616 Also fix PR gdb/391.
10618 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10620 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10621 * aclocal.m4, configure: Re-generate.
10624 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10626 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10627 instead of tm_print_insn.
10629 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10631 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10633 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10635 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10636 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10637 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10639 2002-04-12 Don Howard <dhoward@redhat.com>
10641 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10642 max_user_call_depth.
10643 (init_cmd_lists): Initialize the new value;
10644 * cli/cli-script.c (execute_user_command): Limit the call depth of
10645 user defined commands. This avoids a core-dump when user commands
10646 are infinitly recursive.
10648 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10650 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10651 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10652 from tdep struct instead of DEFAULT_LR_SAVE.
10653 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10654 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10655 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10657 2002-04-12 Michael Snyder <msnyder@redhat.com>
10659 * Remote.c: Spelling fix.
10660 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10661 If no symbol found for "sbrk", try "_sbrk".
10662 (make_output_phdrs): Use bfd_section_name.
10663 (gcore_copy_callback): Use bfd_section_name.
10664 * eval.c: Indentation fix-ups.
10665 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10666 in case it gets applied to an address that is already
10667 in the instruction space.
10668 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10669 * symfile.c: Fix indentation, long lines.
10670 * source.c: White space fix-up.
10672 2002-04-12 Andrew Cagney <cagney@redhat.com>
10674 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10675 * frame.c (frame_register_read): New function. Return non-zero on
10677 (read_relative_register_raw_bytes_for_frame): Delete.
10678 (read_relative_register_raw_bytes): Delete.
10679 * frame.h (frame_register_read): Declare.
10680 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10681 * sh-tdep.c: Ditto.
10682 * infcmd.c (do_registers_info): Ditto.
10683 * hppa-tdep.c: Ditto.
10684 * rs6000-tdep.c: Ditto.
10685 * h8500-tdep.c: Ditto.
10686 * mips-tdep.c: Ditto.
10687 * h8300-tdep.c: Ditto.
10688 * z8k-tdep.c: Ditto.
10690 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10692 From Jimi X <jimix@watson.ibm.com>:
10693 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10696 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10698 From Jimi X <jimix@watson.ibm.com>:
10699 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10702 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10704 From Jimi X <jimix@watson.ibm.com>:
10705 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10706 register sets for these processor variants.
10708 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10710 * regformats/reg-ppc.dat: Support FPSCR.
10712 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10714 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10715 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10716 Add fpscr as an invalid/unfetchable register.
10717 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10718 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10719 (fill_fpregset): Add support for register fpscr.
10720 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10721 (fill_gregset): Account for the fact that register ``mq'' might
10723 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10724 (registers_power): Add fpscr to register set at slot 71.
10725 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10726 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10728 2002-04-11 Michael Snyder <msnyder@redhat.com>
10730 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10731 * configure: Regenerate.
10732 * config.in: Regenerate.
10733 * acconfig.h: Add define for _SYSCALL32.
10734 * core-sol2.c: Remove #define _SYSCALL32.
10735 * solib-legacy.c: Remove #define _SYSCALL32.
10737 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10739 * stack.c (select_frame): Cleanup internal error message, do not
10742 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10744 * stack.c (select_frame): Check that selected_frame and the
10745 specified level are as expected.
10746 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10748 * frame.h (struct frame_info): Add field `level'. Update
10750 Work-in-progress PR gdb/464.
10752 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10754 * maint.c (maint_print_section_info): Rename print_section_info.
10755 (print_bfd_section_info, print_objfile_section_info): Update.
10756 * inferior.h (struct gdbarch): Add opaque declaration.
10757 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10758 * gdbarch.h: Regenerate.
10760 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10762 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10763 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10764 (kernel_u_size): Added.
10765 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10766 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10768 2002-04-04 Jim Ingham <jingham@apple.com>
10770 * valarith.c (find_size_for_pointer_math): New function, either returns
10771 the size for a pointer's target, returns 1 for void *, or errors for
10773 (value_add, value_sub): use find_size_for_pointer_math.
10775 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10777 * linux-low.c (linux_look_up_symbols): New hook.
10778 (linux_target_ops): Add linux_look_up_symbols.
10779 * remote-utils.c (decode_address): New function.
10780 (look_up_one_symbol): New function.
10781 * server.c (handle_query): Call target look_up_symbols hook.
10782 * server.h (look_up_one_symbol): Add prototype.
10783 * target.h (struct target_ops): Add look_up_symbols hook.
10785 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10787 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10788 override FP_REGNUM with frame->fp. Update copyright.
10789 * parse.c (num_std_regs, std_regs): Delete.
10790 (target_map_name_to_register): Do not search std_regs. Update
10791 function description.
10792 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10793 declarations. Update copyright.
10796 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10798 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10799 after the last symbol in a block.
10801 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10803 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10804 is non zero as a found symbol.
10806 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10808 * findvar.c: Include "builtin-regs.h".
10809 (value_of_register): Call value_of_builtin_reg when applicable.
10810 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10811 (target_map_name_to_register): Call
10812 builtin_reg_map_name_to_regnum.
10813 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10814 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10815 (builtin_regs_h): Define.
10816 (builtin-regs.o): New target.
10817 (findvar.o): Add $(builtin_regs_h).
10818 * builtin-regs.c, builtin-regs.h: New files.
10819 * std-regs.c: New file.
10820 Partial fix for PR gdb/251.
10822 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10824 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10825 it's no longer required.
10827 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10829 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10831 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10833 From Jimi X <jimix@watson.ibm.com>:
10834 * rs6000-tdep.c (rs6000_software_single_step): Use
10835 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10836 and size. Use target_insert_breakpoint() and
10837 target_remove_breakpoint() to insert and remove breakpoints
10838 instead of explicit memory reads and writes.
10840 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10842 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10843 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10844 ELF_OBJECT_FORMAT ifdef.
10846 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10848 From Jimi X <jimix@watson.ibm.com>:
10849 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10851 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10853 From Jimi X <jimix@watson.ibm.com>:
10854 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10855 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10857 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10859 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10860 s/asprintf/xasprintf/.
10861 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10863 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10865 I believe Jeff Law denies responsability for this one:
10866 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10867 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10868 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10869 Work-around for PR gdb/366.
10871 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10873 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10874 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10875 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10877 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10879 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10880 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10883 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10885 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10888 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10890 * README (Reporting Bugs in GDB): Document the bug web page as the
10891 prefered way of submitting bugs.
10894 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10896 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10897 -1. Update comment.
10898 * gdbarch.h, gdbarch.c: Re-generate.
10900 2002-04-07 Andreas Schwab <schwab@suse.de>
10902 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10903 buffer to regcache_collect.
10905 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10907 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10908 * gdbarch.c, gdbarch.h: Re-generate.
10910 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10912 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10913 declaration. Fix -Werror.
10915 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10917 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10918 * gdbarch.c: Regenerate.
10920 2002-04-05 Michael Snyder <msnyder@redhat.com>
10922 * breakpoint.c (clear_command): Rewrite middle section to
10923 combine two loops with identical control conditions.
10924 Add a cleanup to eliminate a memory leak.
10925 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10927 2002-04-05 H.J. Lu (hjl@gnu.org)
10929 * solib-svr4.c (bkpt_names): Add "__start".
10931 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10933 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10934 as test for 64 bit target.
10936 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10938 * h8500-tdep.c (h8500_write_fp): Delete function.
10939 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10940 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10941 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10943 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10944 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10946 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10947 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10948 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10949 (d10v_write_fp): Delete function.
10950 * inferior.h (write_fp, generic_target_write_fp): Delete
10952 * regcache.c (generic_target_write_fp): Delete function.
10953 (write_fp): Delete function.
10954 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10955 * gdbarch.h, gdbarch.c: Regenerate.
10956 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10957 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10958 (sparc64_write_fp): Delete declaration.
10959 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10960 (h8500_write_fp): Delete declaration.
10962 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10964 * sparc-tdep.c (sparc64_write_fp): Delete.
10965 (sparc_push_dummy_frame): Replace write_fp call with code to store
10967 (sparc_gdbarch_init): Do not initialize write_fp.
10969 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10971 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10974 2002-03-29 Jim Blandy <jimb@redhat.com>
10976 * stack.c (get_selected_block): Add new argument `addr_in_block',
10977 used to return the exact code address we used to select the block,
10978 not just the block.
10979 * blockframe.c (get_frame_block, get_current_block): Same.
10980 * frame.h (get_frame_block, get_current_block,
10981 get_selected_block): Update declarations.
10982 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10983 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10985 2002-04-05 Michael Snyder <msnyder@redhat.com>
10987 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10990 2002-04-05 J. Brobecker <brobecker@gnat.com>
10992 * utils.c (xfullpath): New function.
10993 * defs.h (xfullpath): Add declaration.
10994 * source.c (openp): Use xfullpath in place of gdb_realpath to
10995 avoid resolving the basename part of filenames when the
10996 associated file is a symbolic link. This fixes a potential
10997 inconsistency between the filenames known to GDB and the
10998 filenames it prints in the annotations.
10999 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11000 to be able to match a filename with either the real filename, or
11001 the name of any symbolic link to this file.
11002 (lookup_partial_symtab): Ditto.
11004 2002-04-04 Michael Snyder <msnyder@redhat.com>
11006 * breakpoint.c: Add support for hardware breakpoints in overlays.
11007 (overlay_events_enabled): New state variable.
11008 (insert_breakpoints): Use overlay_events_enabled to decide
11009 whether to attempt to set a breakpoint at the overlay load addr.
11010 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11011 (remove_breakpoint): Use overlay_events_enabled to decide
11012 whether breakpoints need to be removed from overlay load addr.
11013 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11014 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11015 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11016 disable_overlay_breakpoints): Update overlay_events_enabled.
11018 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11020 * dwarf2read.c (struct function_range): New.
11021 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11022 (check_cu_functions): New.
11023 (read_file_scope): Initialize global function lists.
11024 Call dwarf_decode_line after processing children.
11025 (read_func_scope): Add to global function list.
11026 (dwarf_decode_lines): Call check_cu_functions everywhere
11027 record_line is called. Call record_line with a linenumber
11028 of 0 to mark sequence ends.
11030 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11032 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11033 change sync with glibc.
11035 2002-04-03 Jim Blandy <jimb@redhat.com>
11037 * configure.in: Call AC_C_INLINE.
11038 * configure: Regenerated.
11040 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11042 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11043 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11045 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11047 * NEWS: Mention gcore support on FreeBSD/i386.
11049 * fbsd-proc.c: New file.
11050 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11051 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11053 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11056 2002-03-29 Jim Blandy <jimb@redhat.com>
11058 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11059 unescaped newlines in string literals, but newer ones don't. So
11062 2002-03-26 Michael Snyder <msnyder@redhat.com>
11063 Andrew Cagney <cagney@redhat.com>
11065 * cli/cli-dump.c: New file. Dump memory to file,
11066 restore file to memory.
11067 * cli/cli-dump.h: New file.
11068 * Makefile.in: Add rules, dependencies for cli-dump.o.
11069 * NEWS: Mention new commands.
11071 2002-03-28 Michael Snyder <msnyder@redhat.com>
11073 * symfile.c (symbol_file_add): Move test for null symbols to later.
11075 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11077 From veksler at il.ibm.com:
11078 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11079 the xstrduped original path.
11082 2002-03-27 Michael Snyder <msnyder@redhat.com>
11084 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11085 * infcmd.c (_initialize_infcmd): Ditto.
11086 * language.c (_initialize_language): Ditto.
11087 * symfile.c (_initialize_symfile): Ditto.
11088 * top.c (_init_main): Ditto.
11089 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11091 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11093 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11094 vector registers handling.
11095 (skip_prologue): Handle new AltiVec instructions. Fill in new
11096 fields of frame data.
11097 (frame_get_saved_regs): Fill in information for AltiVec registers.
11099 2002-03-27 Jim Blandy <jimb@redhat.com>
11101 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11102 a function; leave this macro here to invoke that function.
11103 (symbol_init_mangled_name): Declaration for that function.
11104 * symtab.c (symbol_init_mangled_name): New function.
11106 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11108 * valarith.c: Replace strerror with safe_strerror.
11109 * tracepoint.c: Ditto.
11110 * lin-lwp.c: Ditto.
11111 * go32-nat.c: Ditto.
11113 * gnu-nat.c: Ditto.
11115 2002-03-27 Andreas Schwab <schwab@suse.de>
11117 * event-top.c (command_line_handler): Remove useless if.
11119 2002-03-27 Andreas Jaeger <aj@suse.de>
11121 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11124 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11126 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11127 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11128 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11129 (x86_64_linux_dr_get_status, supply_gregset),
11130 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11131 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11132 (x86_64_register_info_table): Add.
11133 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11134 (x86_64_register_raw_size, x86_64_register_virtual_type),
11135 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11136 general x86_64_register_info_table.
11137 (i386_gdbarch_init): gdbarch_register_bytes is now set
11138 dynamicaly during initialization.
11139 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11140 * gdbserver/linux-x86-64-low.c: Ditto.
11142 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11144 * gdbserver/server.c (main): Call target_signal_to_host_p
11145 and target_signal_to_host on signals received from the remote.
11146 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11147 target_signal_from_host on signals sent to the remote.
11148 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11149 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11151 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11153 * signals/signals.c: Include "server.h" in gdbserver build.
11154 (target_signal_from_name): Don't use STREQ.
11155 (_initialize_signals): Likewise. Don't include function in
11158 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11160 * signals.c: Moved to...
11161 * signals/signals.c: Here.
11162 * Makefile (signals.o): Update.
11164 2002-03-26 Jeff Law (law@redhat.com)
11166 * somread.c (som_symtab_read): Remove some commented out code and
11167 updated related comments. Do not set the minimal symbol table to
11168 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11169 in a dynamic executable.
11170 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11171 where we are unable to find the minimal symbol for the given
11174 2002-03-25 Jeff Law (law@redhat.com)
11176 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11178 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11180 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11182 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11184 * command.h: Update copyright.
11185 (struct cmd_list_element): Replace definition with opaque
11187 (enum cmd_types): Document that it will eventually be moved to
11189 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11190 (MALLOCED_REPLACEMENT): Delete macro.
11191 * Makefile.in (cli_decode_h): Add $(command_h).
11192 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11193 * top.c: Include "cli/cli-decode.h".
11194 * completer.c: Include "cli/cli-decode.h".
11195 * maint.c: Include "cli/cli-decode.h".
11196 * cli/cli-decode.h: Include "command.h".
11197 (enum command_class): Delete.
11198 (enum cmd_types): Comment out.
11199 (enum cmd_auto_boolean): Delete.
11200 (enum var_types): Delete.
11202 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11204 * cli/cli-decode.c: Include "gdb_assert.h".
11205 (add_set_or_show_cmd): New static function.
11206 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11207 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11208 all fields, such as func, from the set command.
11210 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11212 * MAINTAINERS (sh-elf): Change warning flag to -w.
11214 2002-03-23 Andrew Cagney <cagney@redhat.com>
11216 * defs.h (error): Add printf format attribute.
11217 * thread-db.c (thread_from_lwp): Fix error format string.
11218 * stack.c (parse_frame_specification): Ditto.
11219 * cli/cli-decode.c (undef_cmd_error): Ditto.
11220 * scm-lang.c (scm_lookup_name): Ditto.
11221 * tracepoint.c (trace_error): Ditto.
11222 * remote-utils.c (usage): Ditto.
11223 * remote.c (compare_sections_command): Ditto.
11226 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11228 * gdbtypes.c (append_composite_type_field): New function.
11229 (init_composite_type): New function.
11230 * gdbtypes.h (append_composite_type_field): Declare.
11231 (init_composite_type): Ditto.
11233 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11235 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11237 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11238 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11239 structure returning convention for SYSV ABI case, but not
11240 for GNU/Linux, FreeBSD, or NetBSD.
11242 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11244 * symtab.h (lookup_block_symbol): Add mangled_name argument
11247 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11248 with new mangled_name argument.
11249 * linespec.c (decode_line_1): Likewise.
11250 * valops (value_of_this): Likewise.
11251 * symtab.c (lookup_transparent_type): Likewise.
11252 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11253 (lookup_symbol): If we are given a mangled name, pass it down
11254 to lookup_symbol_aux.
11255 (lookup_block_symbol): If we are given a mangled name to check
11256 against, only return symbols which match it.
11258 2002-03-22 Christopher Faylor <cgf@redhat.com>
11260 * win32-nat.c (child_create_inferior): Check for proper shell to use
11261 here, in case the user changes it on the fly.
11262 (_initialize_inftarg): Remove shell path considerations.
11264 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11266 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11267 for gdbarch_max_register_raw_size and max_register_virtual_size.
11268 Adjust copyright year.
11270 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11272 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11273 in a function to cover the entire beginning of the function
11274 as well if it does not already.
11276 2002-03-21 Tom Rix <trix@redhat.com>
11278 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11279 (rs6000_ptrace64): Renamed from ptrace64.
11281 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11283 * gdbserver/remote-utils.c (remote_open): Don't call
11284 getprotobyname, we're all using TCP here so just use
11286 * gdbserver/gdbreplay.c (remote_open): Ditto.
11288 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11290 * regcache.c (_initialize_regcache): No need to call
11291 build_regcache() at this time; it gets called whenever
11292 the gdbarch changes.
11294 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11296 * sparc-nat.c: Include sys/param.h where possible.
11298 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11301 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11302 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11303 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11305 * stabsread.c (rs6000_builtin_type): Likewise.
11306 (read_sun_floating_type): Likewise.
11308 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11310 * stabsread.c (read_member_functions): Remove skip code for duplicate
11311 constructor/destructor methods. Use standard parsing for these
11312 methods and just do not chain them to the list of methods after
11315 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11317 * coffread.c: Remove redundant static declarations. Replace
11318 occurrences of `PTR' with `void *'.
11319 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11320 * top.h (quit_cover): Likewise.
11321 * defs.h (catch_errors): Likewise.
11323 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11325 * defs.h (XMALLOC): Define.
11326 * gdb-events.sh (XMALLOC): Delete macro.
11327 * gdb-events.c, gdb-events.h: Regenerate.
11328 * gdbarch.sh (XMALLOC): Delete macro.
11329 * gdbarch.c: Regenerate.
11330 * serial.c (XMALLOC): Delete macro.
11331 * ui-file.c (XMALLOC): Ditto.
11332 * ser-unix.h (XMALLOC): Ditto.
11333 * sh-tdep.c (XMALLOC): Ditto.
11334 * ui-out.c (XMALLOC): Ditto.
11335 * utils.c (XMALLOC): Ditto.
11336 * i386-tdep.c (XMALLOC): Ditto.
11337 * gdb-events.c (XMALLOC): Ditto.
11338 * d10v-tdep.c (XMALLOC): Ditto.
11339 * cli-out.c (XMALLOC): Ditto.
11341 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11342 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11343 * ui-file.c, ui-out.c: Ditto.
11345 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11347 * command.h (struct cmd_list_element): Add field context.
11348 (set_cmd_context, get_cmd_context): Declare.
11349 * cli/cli-decode.h: Ditto.
11350 * cli/cli-decode.c (get_cmd_context): New function.
11351 (set_cmd_context): New function.
11352 (add_cmd): Initialize context.
11353 Part of fixing PR gdb/145 and PR gdb/146.
11355 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11357 * cli/cli-decode.c (cmd_type): New function.
11358 * command.h (cmd_type): Declare.
11359 * infrun.c (set_schedlock_func): Call function cmd_type.
11360 * kod.c (kod_set_os): Call cmd_type.
11361 * cris-tdep.c (cris_version_update): Use function cmd_type.
11362 (cris_mode_update, cris_abi_update): Ditto.
11364 * command.h: (execute_cmd_post_hook): Declare.
11365 (execute_cmd_pre_hook): Declare.
11366 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11367 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11368 functions. Execute pre/post hook while ensuring that afterwords
11369 hook_in is cleared.
11370 * top.c (execute_command): Use execute_cmd_post_hook, and
11371 execute_cmd_pre_hook to execute pre/post commands.
11372 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11374 (hook_stop_stub): Call execute_cmd_pre_hook.
11376 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11378 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11379 set'' and this leads to a core dump. Move xstrdup of
11380 operating_system to after check that it is not NULL.
11382 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11384 * kod.c (kod_set_os): Remove unnecessary check that
11385 ``command->type'' is set_cmd.
11387 * valprint.c (set_input_radix): Use input_radix.
11388 (set_output_radix): Use output_radix.
11389 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11392 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11394 * value.h (struct value): Delete field ``substring_addr''. Change
11395 aligner fields to force_doublest_align, force_longest_align,
11396 force_core_addr_align and force_pointer_aligh.
11398 * value.h (struct value): Fix typo in above change.
11400 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11402 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11403 to fix internal_error from ``maintenance print architecture''.
11405 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11407 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11408 for gcc versions after gcc-2.8.1.
11410 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11412 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11413 for method resolution. Restore adjustment of ``this'' pointer after
11414 calling value_struct_elt, which was accidentally removed during the
11417 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11419 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11421 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11422 get_saved_register.
11423 * value.h (value_of_register): Update.
11425 2002-03-14 Richard Henderson <rth@redhat.com>
11427 * configure.in: Detect declaration for canonicalize_file_name.
11428 * utils.c (canonicalize_file_name): Declare, if needed.
11429 (gdb_realpath): Prefer realpath if available and usable.
11430 * config.in, configure: Rebuild.
11432 2002-03-14 Richard Henderson <rth@redhat.com>
11434 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11435 a constant array bound.
11437 * MAINTAINERS: Add myself to write-after-approval.
11439 2002-03-14 Michael Snyder <msnyder@redhat.com>
11441 * symfile.c (syms_from_objfile): Return immediately if no syms.
11442 (symbol_file_add): Return immediately if no syms.
11443 (find_sym_fns): Return immediately if no syms.
11445 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11447 * gdbserver/remote-util.c (remote_open): Print remote-side's
11448 IP address when remote debugging over the network.
11450 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11452 * config/sparc/fbsd.mh: Fix copyright.
11453 * config/sparc/fbsd.mt: Likewise.
11455 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11457 * MAINTAINERS: Fix typo in name of gdb warnings option.
11458 (x86-64): Fix formating so that this can be parsed by awk.
11460 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11462 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11463 * defs.h: Include "gdb/signals.h".
11464 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11466 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11468 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11469 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11472 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11473 Don Howard <dhoward@redhat.com>
11475 * mips-tdep.c (ST0_FR): Define.
11476 (mips2_fp_compat): New function, temporarily disabled.
11477 (mips_read_fp_register_single): New function.
11478 (mips_read_fp_register_double): New function.
11479 (mips_print_register): Use them.
11480 (do_fp_register_row): Likewise.
11482 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11484 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11487 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11489 * stabsread.c (read_member_functions): Fix is_stub test for
11490 static member functions, improve comment.
11492 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11494 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11495 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11496 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11497 commands that set boolean values.
11498 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11499 (arm_rdi_resume): Always initialize PC.
11500 (arm_rdi_open): Don't use rslt as a boolean.
11501 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11502 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11503 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11504 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11506 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11508 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11509 * configure: Rebuilt.
11511 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11513 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11514 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11516 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11518 * cli/cli-decode.c (set_cmd_completer): New function.
11519 * command.h (set_cmd_completer): Declare.
11520 * cli/cli-decode.h (set_cmd_completer): Ditto.
11522 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11523 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11524 * win32-nat.c (_initialize_inftarg): Ditto.
11525 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11526 * proc-api.c (_initialize_proc_api): Ditto.
11527 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11528 * source.c (_initialize_source): Ditto.
11529 * exec.c (_initialize_exec): Ditto.
11530 * solib.c (_initialize_solib): Ditto.
11531 * top.c (init_main): Ditto.
11532 * tracepoint.c (_initialize_tracepoint): Ditto.
11533 * symfile.c (_initialize_symfile): Ditto.
11534 * printcmd.c (_initialize_printcmd): Ditto.
11535 * infcmd.c (_initialize_infcmd): Ditto.
11536 * corefile.c (_initialize_core): Ditto.
11538 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11540 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11542 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11544 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11546 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11548 * NEWS: Update headings, 5.2 has branched.
11550 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11552 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11553 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11554 (register_addr, REGISTER_RAW_SIZE): Likewise.
11555 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11556 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11558 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11560 * MAINTAINERS (x86-64): Add myself.
11561 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11562 changed value_ptr -> struct value *
11564 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11566 * configure.host (sparc64-*-freebsd): Add.
11567 * configure.tgt: Likewise.
11568 * config/sparc/fbsd.mh: New file.
11569 * config/sparc/fbsd.mt: Likewise.
11570 * config/sparc/nm-fbsd.h: Likewise.
11571 * config/sparc/tm-fbsd.h: Likewise.
11573 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11575 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11576 regformats/reg-s390x.dat.
11578 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11580 * utils.c: Add FIXME explaining true/false problem.
11582 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11584 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11586 2002-02-28 Michael Chastain <mec@shout.net>
11588 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11590 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11592 * gdbserver/linux-s390-low.c: New file.
11593 * regformats/reg-s390.dat: New file.
11594 * regformats/reg-s390x.dat: New file.
11595 * gdbserver/configure.srv: Add S/390.
11596 * gdbserver/Makefile.in: Add S/390.
11597 * configure.tgt: Enable gdbserver for S/390.
11599 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11601 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11602 first line of the doc string for "info dos", except at the end of
11603 the sentence, since the short help stops at the first period.
11605 2002-02-28 Jason Merrill <jason@redhat.com>
11607 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11609 2002-02-27 Fred Fish <fnf@redhat.com>
11611 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11612 comment (dumy -> dummy).
11614 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11616 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11618 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11620 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11622 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11624 * gdbserver/acconfig.h: New file.
11625 * gdbserver/i387-fp.c: New file.
11626 * gdbserver/i387-fp.h: New file.
11627 * gdbserver/linux-x86-64.c: New file.
11628 * regformats/reg-x86-64.dat: New file.
11629 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11630 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11631 * gdbserver/configure.in: Add support for regsets.
11632 * gdbserver/config.in: Regenerate.
11633 * gdbserver/configure: Regenerate.
11634 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11635 * gdbserver/linux-low.h: New file.
11636 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11638 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11639 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11640 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11641 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11642 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11643 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11644 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11645 "i387-fp.h". Add PTRACE_GETREGS and friends.
11646 * gdbserver/regcache.c (supply_register): New function.
11647 (supply_register_by_name): New function.
11648 (collect_register): New function.
11649 (collect_register_by_name): New function.
11651 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11653 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11654 (config.status): Add configure.srv dependency.
11655 (server_h): Add config.h dependency.
11657 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11659 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11660 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11661 * gdbserver/configure.srv: Change i386-*-linux* to use
11664 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11666 * x86-64-tdep.c: Re-indent. Update copyright date.
11668 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11670 From Michal Ludvig <mludvig@suse.cz>:
11671 * x86-64-tdep.c (value.h): Delete.
11672 (gdb_assert.h): Include.
11673 (x86_64_register_convert_to_virtual,
11674 x86_64_register_convert_to_raw ): Add check which lets only
11675 floating-point values to be converted.
11676 (value_push): Delete.
11677 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11678 (i386_gdbarch_init): Number of register_bytes fixed.
11680 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11682 * MAINTAINERS: Add x86-64 target.
11684 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11686 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11687 * osfsolib.c (solib_map_sections): Ditto.
11688 * irix5-nat.c (solib_map_sections): Ditto.
11689 * corelow.c (gdb_check_format): Ditto.
11690 * symfile.c (symfile_bfd_open): Ditto.
11691 * solib.c (solib_map_sections): Ditto.
11694 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11696 * remote.c (_initialize_remote): By default, disable ``e'' and
11697 ``E'' step out-of-range packets.
11699 2002-02-26 Andreas Schwab <schwab@suse.de>
11701 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11702 m68k_linux_frame_saved_pc.
11703 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11705 (SIGCONTEXT_PC_OFFSET): Remove.
11706 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11707 m68k_linux_sigtramp_saved_pc): New functions.
11708 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11709 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11710 (UCONTEXT_PC_OFFSET): Define.
11711 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11712 non-RT and RT signal trampolines.
11714 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11716 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11717 (TARGET_NBPG, STACK_END_ADDR): Delete
11718 (VARIABLES_INSIDE_BLOCK): Delete.
11720 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11722 * utils.c (perror_with_name): Make string parameter constant.
11723 (print_sys_errmsg): Ditto.
11725 * defs.h (perror_with_name): Update.
11726 (print_sys_errmsg): Update.
11729 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11731 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11732 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11734 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11736 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11737 if it already matches the current architecture from the exec file.
11738 Include arch-utils.h for gdbarch_info_init prototype.
11739 * Makefile.in (rs6000-nat.o): Update dependencies.
11741 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11743 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11744 list of exported variables.
11746 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11748 * gdbserver/configure.srv: New file.
11749 * gdbserver/configure.in: Use configure.srv instead
11750 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11752 * gdbserver/configure: Regenerated.
11753 * gdbserver/terminal.h: New file.
11754 * gdbserver/Makefile.in: Update for configure changes. Remove
11755 more unneeded include paths.
11757 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11759 From wiz at danbala:
11760 * config/sparc/tm-sp64.h: Fix grammar and typos.
11763 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11765 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11766 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11767 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11768 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11769 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11770 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11771 * s390-tdep.c: Ditto.
11772 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11773 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11774 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11775 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11776 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11777 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11778 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11779 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11780 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11781 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11784 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11786 * lin-thread.c: Delete file.
11787 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11788 to gdb_proc_service.h.
11789 * configure: Re-generate.
11791 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11792 * serial.c (serial_open): Delete check for "ocd".
11795 * Makefile.in (linux-thread.o): Delete target.
11796 * linux-thread.c: Delete file.
11798 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11799 renamed SH files to be consistent.
11801 * symtab.c (sort_search_symbols): Use xfree.
11803 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11805 * arm-linux-tdep.c (arm_linux_init_abi): Register
11806 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11807 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11808 definition with undef, since we don't want the sysvr4 definition.
11809 (SKIP_TRAMPOLINE_CODE): Likewise.
11811 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11813 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11815 * configure.in: (AC_CHECK_FUNCS) Added test for
11816 canonicalize_file_name Regenerated.
11817 * config.in, configure: Regenerated.
11818 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11819 defined use canonicalize_file_name.
11821 2002-02-23 Michael Chastain <mec@shout.net>
11823 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11825 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11827 * README: Remove references to cygnus.com.
11828 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11829 dot com'' form. Remove references to cygnus.com and sourceware.
11831 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11833 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11834 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11835 1003.1-2001 no longer allows "head -1".
11836 * gdb/Makefile.in (version.c): Likewise.
11837 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11838 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11839 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11841 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11843 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11844 * command.h (cmd_cfunc_eq): Declare.
11845 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11847 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11848 ``struct cmd_list_element *''.
11849 * cli/cli-cmds.c (is_complete_command): Update. Use
11851 * top.c (execute_command): Pass the command to
11852 is_complete_command.
11853 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11855 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11857 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11858 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11859 architecture defines.
11860 * s390-tdep.c (s390_gdbarch_init): Likewise.
11862 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11864 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11865 (arm_linux_push_arguments): Likewise.
11866 (arm_linux_init_abi): Register them. Also register linux-specific
11868 (find_minsym_and_objfile): Use strcmp, not STREQ.
11869 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11870 (arm_linux_call_dummy_words): Delete declaration.
11871 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11872 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11874 (LOWEST_PC): Delete.
11876 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11878 * maint.c (print_section_info): Do not prepend `0x' to filepos
11879 output, it will be handled by local_hex_string_custom.
11881 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11883 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11884 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11885 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11887 2002-02-22 Jim Blandy <jimb@redhat.com>
11889 Indicate that the bcache functions don't change the strings
11891 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11892 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11894 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11896 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11898 2002-02-21 Christopher Faylor <cgf@redhat.com>
11900 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11901 find the complete path to a loaded DLL.
11903 2002-02-21 Fred Fish <fnf@redhat.com>
11905 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11906 that marks the end of the range of a function, enter a line number
11907 entry that has a line number of zero and a PC offset that matches
11908 the end of the function. This starts a range of PC's for which no
11909 line number information is known.
11910 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11911 PC's for which no line number info is found (line number is zero)
11912 then we didn't find any valid line information.
11913 * symtab.h: Document use of zero line number entry.
11915 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11917 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11918 (have_ptrace_getvrregs): Define for run time checks.
11919 (gdb_vrregset_t): New type for Altivec register handling.
11920 (fetch_register, store_register): Fetch/store altivec register
11922 (fetch_altivec_register, store_altivec_register): New functions.
11923 (supply_vrregset, fill_vrregset): New functions.
11924 (fetch_altivec_registers, store_altivec_registers): New functions.
11925 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11928 2002-02-21 Jiri Smid <smid@suse.cz>
11930 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11932 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11934 * Makefile.in (armnbsd-nat.o): Update dependencies.
11935 * armnbsd-nat.c (supply_gregset): New function. Common code to
11936 supply the integer register set.
11937 (supply_fparegset): New function. Similar for FPA registers.
11938 (fetch_regs, fetch_fp_regs): Use them.
11939 (fetch_core_registers): Likewise.
11940 (fetch_elfcore_registers): New function.
11941 (arm_netbsd_elfcore_fns): New core-file type specification.
11942 (_initialize_arm_netbsd_nat): Register it.
11944 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11946 * armnbsd-nat.c: Include gdbcore.h.
11947 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11948 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11949 'void' to declaration, to shut up ARI.
11950 (fetch_core_registers): Make static. Rewrite using supply_register.
11951 (arm_netbsd_core_fns): New core-file type specification.
11952 (_initialize_arm_netbsd_nat): New function.
11954 2002-02-21 Christopher Faylor <cgf@redhat.com>
11956 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11959 2002-02-20 Christopher Faylor <cgf@redhat.com>
11961 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11964 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11966 * jv-exp.y (parse_number): Change type of implicit longs
11967 to builtin_type_uint64.
11969 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11971 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11972 to be an integer instead of a `union wait'.
11974 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11976 * mips-linux-nat.c: Call the operating system GNU/Linux.
11977 * mips-linux-tdep.c: Likewise.
11978 * mips-tdep.c: Likewise.
11980 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11983 * jv-exp.y (parse_number): Handle 64-bit integers.
11985 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11987 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11988 AC_STDC_HEADERS to AC_HEADER_STDC.
11989 * gdbserver/configure: Regenerated.
11991 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11993 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11995 * sparc-tdep.c (get_longjmp_target): Likewise.
11997 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11999 * News: Add news about ARM and Multi-arch. Mention the new target
12002 2002-02-19 Jim Blandy <jimb@redhat.com>
12004 * stabsread.c (error_type_complaint): Improve error message.
12006 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12008 * gdbserver/README: Update documentation.
12009 * gdbserver/configure.in: Update configury to match documentation.
12010 * gdbserver/Makefile.in: Likewise.
12011 * gdbserver/configure: Regenerated.
12012 * gdbserver/aclocal.m4: New file, generated by aclocal.
12013 * gdbserver/config.in: New file, generated by autoheader.
12015 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12017 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12020 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12022 * arm-tdep.h (enum arm_float_model): New enum.
12023 (struct gdbarch_tdep): Add fp_model.
12024 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12025 up floating-point conversions until we know the floating-point model
12026 in use by the inferior. Don't complain about being unable to
12027 determine the ABI of the inferior when we don't have one.
12028 (arm_extract_return_value): Support different floating-point models.
12029 (arm_store_return_value): Likewise.
12030 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12032 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12034 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12036 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12037 of ``current_gdbarch''.
12039 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12041 * armnbsd-nat.c : ANSIfy all function declarations.
12042 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12043 (fetch_inferior_registers): Re-implement in terms of above.
12044 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12045 (store_inferior_registers): Re-implement in terms of above.
12047 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12049 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12051 * arm-linux-tdep.c: Likewise.
12052 * config/arm/tm-linux.h: Likewise.
12054 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12056 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12057 * config/arm/nbsd.mt (TM_FILE): Delete.
12058 * config/arm/tm-nbsd.h: Delete.
12060 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12062 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12063 Initialize CALL_DUMMY_LENGTH.
12065 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12067 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12069 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12070 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12071 defines one thing and that is incorrect for this port.
12072 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12074 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12076 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12078 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12080 * win32-nat.c (display_selector): New function. Displays information
12081 about the information returned by GetThreadSelectorEntry API function.
12082 (display_selectors): New function. Displays the infomation of
12083 the selector given as argument, or of CS, DS ans FS selectors
12084 if no argument is given.
12085 ( _initialize_inftarg): Add "w32" as info prefix command.
12086 Add "info w32 selector" as command calling display_selectors.
12088 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12090 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12091 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12094 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12096 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12098 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12100 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12101 (arm_fix_call_dummy): Call it.
12102 (arm_call_dummy_breakpoint_offset): Delete.
12103 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12104 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12106 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12108 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12109 Default to func_frame_chain_valid.
12110 * gdbarch.h, gdbarch.c: Re-generate.
12111 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12113 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12115 * ppc-linux-nat.c: Update copyright.
12116 (fetch_register, store_register): Add tid parameter, don't compute
12118 (fetch_ppc_registers, store_ppc_registers): Add tid
12119 parameter. Pass it along to callees.
12120 (fetch_inferior_registers, store_inferior_registers): Compute tid
12121 here, and pass it to calleed functions.
12122 (fill_gregset, supply_fpregset): Clean up formatting.
12124 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12126 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12127 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12129 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12131 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12132 * gdbarch.c gdbarch.h: Regenerate.
12133 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12135 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12136 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12137 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12139 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12140 * arm-tdep.c (arm_get_longjmp_target): New function.
12141 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12142 this to a positive value register arm_get_longjmp_target as the
12144 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12145 (arm_linux_init_abi): Set up longjmp description in tdep.
12146 * armnbsd-nat.c (get_longjmp_target): Delete.
12147 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12148 description in tdep.
12149 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12150 (get_longjmp_target): Delete declaration.
12151 (GET_LONGJMP_TARGET): Delete.
12152 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12153 (GET_LONGJMP_TARGET): Delete.
12155 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12157 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12158 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12159 of ``current_gdbarch''.
12161 2002-02-17 Tom Tromey <tromey@redhat.com>
12163 * cli/cli-cmds.c (compare_strings): New function.
12164 (complete_command): Only print each unique item once.
12165 * completer.h (complete_line): Declare.
12166 * completer.c (complete_line): New function.
12167 (line_completion_function): Use it.
12169 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12171 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12172 * gdbarch.h, gdbarch.c: Re-generate.
12174 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12176 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12178 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12180 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12181 * valops.c (value_arg_coerce): Don't take the address of a reference
12182 to convert an argument to a reference.
12184 2002-02-15 Christopher Faylor <cgf@redhat.com>
12186 * win32-nat.c (get_image_name): New function.
12187 (handle_load_dll): Use get_image_name function.
12188 (get_child_debug_event): Avoid registering debug events until possibly
12189 execed process is started.
12190 (child_create_inferior): Allow invocation via shell so that command
12191 line redirection, etc. works ok.
12192 (_initialize_inftarg): Add new command: "set shell" to control whether
12193 a shell is used to start a process.
12195 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12197 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12198 instead of find_register_by_number.
12199 (cannot_store_register): Likewise.
12201 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12203 * dwarf2read.c: Replace fprintf (stderr, ...) by
12204 fprintf_unfiltered (gdb_stderr, ...).
12206 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12208 * gdbserver/gdbserver.1: Document --attach.
12210 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12212 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12214 * arm-tdep.c (arm_default_arm_le_breakpoint)
12215 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12216 (arm_default_thumb_be_breakpoint): New. Initialize them from
12217 traditional breakpoint defines.
12218 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12219 (arm_gdbarch_init): Initialize new breakpoint variables.
12220 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12221 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12222 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12223 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12225 (arm_netbsd_init_abi_common): ... here; new function.
12226 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12227 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12228 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12229 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12231 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12233 * arm-tdep.h (enum arm_abi): New enum.
12234 (struct gdbarch_tdep): New structure.
12235 (LOWEST_PC): Provide a default.
12236 (arm_gdbarch_register_os_abi): Declare new function.
12237 * arm-tdep.c (arm_abi_names): New array.
12238 (process_note_abi_tag_sections): New function.
12239 (get_elfosabi): New function.
12240 (arm_gdbarch_register_os_abi): New function.
12241 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12242 support for that ABI has been built in, then call the appropriate
12243 configuration routine. Use gdbarch_num_regs() to get the number
12245 (arm_dump_tdep): New function.
12246 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12247 place-holder functions.
12248 (_initialize_arm_tdep): Register them.
12249 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12251 * armnbsd-tdep.c: New file.
12252 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12253 * config/arm/nbsd.mt (TDEPFILES): Add it.
12254 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12256 * armnbsd-nat.c: Include regcache.h.
12257 * Makefile.in (armnbsd-nat.o): Update dependency list.
12259 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12261 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12263 * gdbserver/Makefile.in: Fix typos in target rules.
12265 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12267 Fix part of PR gdb/267.
12268 * linespec.c (find_methods): Handle constructors specially for now.
12270 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12272 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12274 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12275 standard_coerce_float_to_double().
12277 2002-02-14 Christopher Faylor <cgf@redhat.com>
12279 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12282 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12284 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12285 find_variant_by_name, because it confuses the multiarch
12286 framework. Return NULL if there isn't an architecture with the
12287 user supplied name, instead of forcing a different one without
12288 recording the change with the multiarch machinery.
12289 (find_variant_by_name): Delete.
12291 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12293 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12294 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12296 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12298 * stack.c (print_frame_info_base): When calling
12299 print_frame_info_listing_hook, set current_source_symtab.
12301 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12303 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12304 and remove unused $(INCLUDE_DIR).
12305 Add regcache.c to OBS.
12306 Add generated register protocol files to clean target.
12307 Update dependencies for new objects, obsolete old target code.
12309 * gdbserver/linux-low.c: Remove all platform-specific code to
12310 new files. Remove various dead code. Update to use regcache
12312 * gdbserver/remote-utils.c (fromhex): Add return statement
12314 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12316 (input_interrupt): Add integer parameter to match prototype
12317 of a signal handler.
12318 (outreg): Use register_data ().
12319 (prepare_resume_reply): Use gdbserver_expedite_regs.
12320 * gdbserver/server.c (main): Dynamically allocate own_buf because
12321 PBUFSIZ is no longer constant. Use registers_to_string () and
12322 registers_from_string ().
12323 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12324 for error (), fatal (), and warning (). Update definition of
12325 PBUFSIZ to use regcache functionality. Add include guard.
12326 * gdbserver/utils.c (fatal): Add missing ``const''.
12327 (warning): New function.
12329 * regformats/regdat.sh: Include "regcache.h" in generated files.
12330 Provide init_registers () function.
12331 * regformats/regdef.h: Add prototype for set_register_cache ().
12334 * gdbserver/linux-arm-low.c: New file.
12335 * gdbserver/linux-i386-low.c: New file.
12336 * gdbserver/linux-ia64-low.c: New file.
12337 * gdbserver/linux-m68k-low.c: New file.
12338 * gdbserver/linux-mips-low.c: New file.
12339 * gdbserver/linux-ppc-low.c: New file.
12340 * gdbserver/linux-sh-low.c: New file.
12342 * gdbserver/regcache.c: New file.
12343 * gdbserver/regcache.h: New file.
12345 * gdbserver/low-linux.c: Removed obsolete file.
12347 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12349 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12350 * config/i386/linux.mt: Likewise.
12351 * config/ia64/linux.mt: Likewise.
12352 * config/m68k/linux.mh: Likewise.
12353 * config/powerpc/linux.mh: Likewise.
12354 * config/mips/linux.mt: Likewise.
12356 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12358 * config/i386/i386lynx.mh: Mark gdbserver variables
12359 as (currently) obsolete for this target.
12360 * config/i386/nbsd.mt: Likewise.
12361 * config/i386/nbsdelf.mt: Likewise.
12362 * config/m32r/m32r.mt: Likewise.
12363 * config/m68k/m68klynx.mh: Likewise.
12364 * config/m68k/nbsd.mt: Likewise.
12365 * config/m68k/sun3os4.mh: Likewise.
12366 * config/mips/vr5000.mt: Likewise.
12367 * config/ns32k/nbsd.mt: Likewise.
12368 * config/pa/hppabsd.mh: Likewise.
12369 * config/pa/hppaosf.mh: Likewise.
12370 * config/powerpc/nbsd.mt: Likewise.
12371 * config/rs6000/rs6000lynx.mh: Likewise.
12372 * config/s390/s390.mt: Likewise.
12373 * config/s390/s390x.mt: Likewise.
12374 * config/sparc/sparclynx.mh: Likewise.
12375 * config/sparc/sun4os4.mh: Likewise.
12376 * config/i386/x86-64linux.mt: Likewise.
12377 * config/sparc/linux.mh: Likewise.
12379 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12381 * configure.tgt: Configure gdbserver only for known working
12382 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12383 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12384 SUBDIRS if it is configured. Update comment for ${nativefile}.
12385 * configure: Regenerated.
12387 2002-02-13 Michael Snyder <msnyder@redhat.com>
12389 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12391 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12392 (default_gcore_mach): Just return 0, work around a problem in bfd.
12393 (default_gcore_target): OK to return NULL if exec_bfd is null.
12394 (make_mem_sec): Use a cast, avoid a warning.
12396 * procfs.c (find_memory_regions_callback): Use a cast instead of
12397 calling host_pointer_to_address (which complains if
12398 sizeof (host pointer) != sizeof (target pointer)).
12399 (procfs_make_note_section): Avoid overflow in psargs string.
12401 * procfs.c (procfs_make_note_section): Make the default
12402 implementation return an error.
12404 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12406 * procfs.c (procfs_make_note_section): Provide a default definition
12407 (for alpha-dec-osf4.0f). Fix typos.
12409 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12411 * linux-proc.c: Add include of regcache.h.
12412 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12414 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12416 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12417 * memattr.c (create_mem_region): Disallow useless empty region.
12418 Regions are half-open intervals, so allow [A..B) [B..C) as
12421 2002-02-13 Michael Chastain <mec@shout.net>
12423 * defs.h: Kill CONST_PTR.
12424 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12425 * c-lang.c (c_builtin_types): Likewise.
12426 * ch-lang.c (ch_builtin_types): Likewise.
12427 * f-lang.c (f_builtin_types): Likewise.
12428 * language.c (unknown_builtin_types): Likewise.
12429 * m2-lang.c (m2_builtin_types): Likewise.
12430 * p-lang.c (pascal_builtin_types): Likewise.
12431 * scm-lang.c (c_builtin_types): Likewise.
12433 2002-02-13 Keith Seitz <keiths@redhat.com>
12435 * arm-tdep.h (arm_get_next_pc): Add declaration.
12437 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12439 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12440 with other related struct-returning functions.
12441 (arm_extract_struct_value_address): New function.
12442 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12443 initialize float_format, double_format and long_double_format as
12444 appropriate to the endianness of the target.
12445 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12446 (arm_use_struct_convention): Delete declaration.
12447 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12449 2002-02-13 Keith Seitz <keiths@redhat.com>
12451 * defs.h (core_addr_to_string_nz): New function.
12453 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12455 Apply missing bits of 2002-01-15 patch.
12456 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12457 (fill_fpregset): Use i387_fill_fsave.
12459 2002-02-12 Keith Seitz <keiths@redhat.com>
12461 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12462 (core_addr_to_string_nz): New function.
12464 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12466 * arm-linux-nat.c: Really include arm-tdep.h.
12467 * config/arm/tm-linux.h (struct type, struct value): Declare.
12469 2002-02-11 Michael Snyder <msnyder@redhat.com>
12471 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12472 (gcore section): Ifdef for Solaris and Unixware only.
12473 (procfs_do_thread_registers): Unixware needs one lwpstatus
12474 per thread (not one prstatus or pstatus).
12475 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12476 not over all gdb threads. For unixware, call elfcore_write_pstatus
12477 once before iterating over threads.
12479 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12481 * arm-tdep.h: New file.
12482 * arm-tdep.c: Include arm-tdep.h.
12483 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12484 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12485 (arm_print_float_info, arm_register_type, convert_to_extended)
12486 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12487 (arm_extract_return_value, arm_register_name): Make static.
12488 (arm_software_single_step): Similarly. Fix types in declaration.
12489 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12490 (arm_store_return_value, arm_store_struct_return): New functions.
12491 (arm_gdbarch_init): Register the above functions. Also register
12492 call_dummy_start_offset, sizeof_call_dummy_words,
12493 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12494 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12495 max_register_virtual_size, register_size. Set up
12496 prologue_cache.saved_regs here, rather than ...
12497 (_initialize_arm_tdep): ... here.
12498 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12500 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12501 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12502 (arm_print_float_info, arm_register_type, convert_to_extended)
12503 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12504 (arm_extract_return_value, arm_register_name): Delete declarations.
12505 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12506 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12507 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12508 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12509 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12510 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12511 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12512 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12513 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12514 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12515 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12516 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12518 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12519 * remote-rdi.c remote-rdp.c: Likewise.
12520 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12521 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12522 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12525 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12526 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12527 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12528 from non-ARM_ prefixed definitions.
12529 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12531 * remote-rdi.c remote-rdp.c: Likewise.
12532 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12534 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12536 * arm-tdep.c (arm_frameless_function_invocation)
12537 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12538 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12539 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12540 (arm_pop_frame, arm_get_next_pc): Make static.
12541 (arm_gdbarch_init): Register above in gdbarch structure.
12542 (arm_read_fp): Renamed from arm_target_read_fp.
12543 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12544 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12545 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12546 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12547 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12548 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12549 (arm_pc_is_thumb_dummy): Delete declarations.
12550 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12551 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12552 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12553 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12555 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12557 * symtab.c (compare_search_syms): New function.
12558 (sort_search_symbols): New function.
12559 (search_symbols): Sort symbols after searching rather than
12562 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12564 * NEWS: Linux -> GNU/Linux.
12566 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12568 * gdbarch.sh: For for level one methods, disallow a definition
12569 when partially multi-arched. Add comments explaining rationale.
12570 * gdbarch.h: Re-generate.
12572 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12574 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12575 multi-arch partial.
12577 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12579 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12580 field. Use diff -u.
12581 * gdbarch.c: Re-generate.
12583 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12585 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12586 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12589 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12591 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12592 multi-arch partial.
12593 (PUSH_ARGUMENTS): Switch to using predefault.
12594 * gdbarch.c: Regenerate.
12596 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12598 * valops.c (PUSH_ARGUMENTS): Delete definition.
12599 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12600 partial. Default to default_push_arguments.
12601 * gdbarch.h, gdbarch.c: Regenerate.
12603 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12605 * defs.h (throw_exception): Rename return_to_top_level. Update
12607 * utils.c (error_stream, internal_verror, quit): Ditto.
12608 * top.c (throw_exception, catcher): Ditto.
12609 * sparclet-rom.c (sparclet_load): Ditto.
12610 * remote.c (interrupt_query, minitelnet): Ditto.
12611 * remote-sds.c (interrupt_query): Ditto.
12612 * remote-mips.c (mips_error, mips_kill): Ditto.
12613 * ocd.c (interrupt_query): Ditto.
12614 * monitor.c (monitor_interrupt_query): Ditto.
12615 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12616 * target.h: Update comment.
12618 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12620 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12622 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12623 default_double_format.
12624 * gdbarch.h, gdbarch.c: Re-generate.
12625 * findvar.c (floatformat_unknown): Delete variable definition.
12626 * doublest.h (floatformat_unknown): Delete variable declaration.
12628 2002-02-09 Jim Blandy <jimb@redhat.com>
12630 * stabsread.c (read_type): Add code to parse Sun's syntax for
12631 prototyped function types.
12633 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12635 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12636 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12638 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12640 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12641 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12642 now _initialize_xcoffsolib gets called again and overrides the
12643 commands from solib.c in a native configuration.
12645 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12647 * doublest.c (store_typed_floating): Don't try to return a value.
12650 2002-02-08 Jim Blandy <jimb@redhat.com>
12652 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12653 is prototyped and has no arguments, print its argument list as
12656 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12658 * MAINTAINERS (write-after-approval): Add myself.
12659 (paper-trail): I've escaped!
12661 2002-02-08 Christopher Faylor <cgf@redhat.com>
12663 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12665 (_initialize_check_for_gdb_ini): Ditto.
12667 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12669 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12670 xaprintf -> xasprintf.
12672 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12674 * win32-nat.c: Remove use of printf and sprintf functions.
12676 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12678 * arm-tdep.c (arm_frame_chain_valid): Make static.
12679 (arm_push_arguments): Likewise.
12680 (arm_gdbarch_init): New function.
12681 (_initialize_arm_tdep): Call it.
12682 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12683 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12684 (FRAME_CHAIN_VALID): Delete.
12685 (arm_frame_chain_valid): Delete declaration.
12686 (PUSH_ARGUMENTS): Delete.
12687 (arm_push_arguments): Delete declaration.
12688 (CALL_DUMMY_P): Delete.
12690 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12691 Corinna Vinschen <vinschen@redhat.com>
12693 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12694 on builtin float types.
12696 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12698 * utils.c: Include <curses.h> before "bfd.h".
12699 * tui/tui-hooks.c: Likewise.
12700 * tui/tui.c: Likewise.
12701 * tui/tuiCommand.c: Likewise.
12702 * tui/tuiData.c: Likewise.
12703 * tui/tuiDataWin.c: Likewise.
12704 * tui/tuiDisassem.c: Likewise.
12705 * tui/tuiGeneralWin.c: Likewise.
12706 * tui/tuiIO.c: Likewise.
12707 * tui/tuiLayout.c: Likewise.
12708 * tui/tuiRegs.c: Likewise.
12709 * tui/tuiSource.c: Likewise.
12710 * tui/tuiSourceWin.c: Likewise.
12711 * tui/tuiStack.c: Likewise.
12712 * tui/tuiWin.c: Likewise.
12714 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12716 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12717 to include space for pseudoregs as well. Update loops accordingly.
12718 (sh_fp_frame_init_saved_regs): Ditto.
12719 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12721 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12723 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12724 Add Richard Earnshaw to Arm maintainers.
12726 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12728 * defs.h (warning_begin): Delete declaration.
12730 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12733 2002-02-07 Michael Snyder <msnyder@redhat.com>
12735 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12736 Logic bug, remove misplaced else.
12738 2002-02-07 Klee Dienes <klee@apple.com>
12740 * fork-inferior.c (fork_inferior): Add '!' to the list of
12741 characters that need to be quoted when building a string for the
12742 shell. Quote '!' specifically with a backslash, since CSH chokes
12743 when trying to evaluate "str!str".
12745 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12747 * rdi-share/host.h: Only provide a typedef for bool if it is not
12750 2002-02-04 Michael Snyder <msnyder@redhat.com>
12752 * breakpoint.h (enum bptype): Add new overlay event bp type.
12753 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12755 * breakpoint.c (create_internal_breakpoint): New function.
12756 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12757 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12758 (create_thread_event_breakpoint): Ditto.
12759 (create_solib_event_breakpoint): Ditto.
12760 (create_overlay_event_breakpoint): New function.
12761 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12762 (update_breakpoints_after_exec): Delete and re-initialize
12763 overlay event breakpoints after an exec. Add FIXME comment
12764 about longjmp breakpoint.
12765 (print_it_typical): Ignore overlay event breakpoints.
12766 (print_one_breakpoint): Ditto.
12768 (bpstat_what): Do not stop for overlay event breakpoints.
12769 (delete_breakpoint): Don't delete overlay event breakpoints.
12770 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12771 (breakpoint_re_set): Re-create overlay event breakpoint.
12773 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12774 (overlay_manual_command): Disable overlay breakpoints.
12775 (overlay_off_command): Disable overlay breakpoints.
12777 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12779 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12780 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12781 to here from config/tm-arm.h.
12782 (coff_sym_is_thumb): Make static.
12783 (arm_elf_make_msymbol_special): New function.
12784 (arm_coff_make_msymbol_special): New function.
12785 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12786 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12787 (coff_sym_is_thumb): Delete declaration.
12788 (arm_elf_make_msymbol_special): Declare.
12789 (arm_coff_make_msymbol_special): Declare.
12790 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12791 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12793 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12795 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12797 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12799 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12800 * gdbarch.c gdbarch.h: Regenerate.
12801 * arch-utils.c (default_print_float_info): New function.
12802 * arch-utils.h (default_print_float_info): Prototype it.
12803 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12804 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12805 (PRINT_FLOAT_INFO): Document it.
12807 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12808 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12809 (PRINT_FLOAT_INFO): Define.
12811 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12813 * win32-nat.c (_initialize_check_for_gdb_ini):
12814 Add typecast to sprintf argument to suppress a warning.
12816 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12818 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12819 to allow easier handling of pass state.
12820 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12821 that gives exception name and address.
12822 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12823 and set last_sig value to ourstatus->value.sig. Some missing
12825 (child_continue): Correctly report continue_status.
12826 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12827 TARGET_SIGNAL_0 (new default value).
12828 (child_resume): consider sig argument passed to decide if
12829 the exception should be passed to debuggee or not.
12831 2002-02-05 Michael Snyder <msnyder@redhat.com>
12833 * regcache.c (fetch_register): Call target_fetch_register
12834 only if we don't call FETCH_PSEUDO_REGISTER.
12835 (store_register): Call target_store_register only if we
12836 don't call STORE_PSEUDO_REGISTER.
12838 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12840 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12841 ELF_MAKE_MSYMBOL_SPECIAL.
12842 * gdbarch.c, gdbarch.h: Regenerate.
12843 * arch-utils.c (default_make_msymbol_special): New function.
12844 * arch-utils.h (default_make_msymbol_special): Export.
12845 * elfread.c (elf_symtab_read): Compile use of
12846 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12848 * coffread.c (coff_symtab_read): Ditto, for
12849 COFF_MAKE_MSYMBOL_SPECIAL.
12851 2002-02-05 Jim Blandy <jimb@redhat.com>
12853 * solib-svr4.c (svr4_truncate_ptr): New function.
12854 (svr4_relocate_section_addresses): Do the address arithmetic with
12855 the appropriate truncation for target addresses, even when
12856 CORE_ADDR is larger than a target address.
12858 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12860 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12863 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12865 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12868 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12870 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12872 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12874 * gdbserver/linux-low.c: Remove unused include files.
12876 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12878 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12879 (read_inferior_memory): Use it.
12880 (write_inferior_memory): Likewise.
12882 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12884 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12885 grubbing through sys_errlist.
12887 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12889 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12891 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12892 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12894 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12896 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12897 (do_sfunc, set_cmd_sfunc): New functions.
12899 * command.h (struct cmd_list_element): Add field func.
12900 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12901 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12902 * cli/cli-decode.h: Ditto.
12904 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12905 (help_all, help_cmd_list): Ditto.
12906 (find_cmd, complete_on_cmdlist): Ditto.
12907 * top.c (execute_command): Ditto.
12909 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12912 * infcmd.c (notice_args_read): Fix function signature.
12914 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12915 * cli/cli-decode.c (add_set_cmd): Ditto.
12916 * utils.c (initialize_utils): Ditto.
12917 * maint.c (_initialize_maint_cmds): Ditto.
12918 * infrun.c (_initialize_infrun): Ditto.
12919 * demangle.c (_initialize_demangler): Ditto.
12920 * remote.c (add_packet_config_cmd): Ditto.
12921 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12922 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12923 * proc-api.c (_initialize_proc_api): Ditto.
12924 * kod.c (_initialize_kod): Ditto.
12925 * valprint.c (_initialize_valprint): Ditto.
12926 * top.c (init_main): Ditto.
12927 * infcmd.c (_initialize_infcmd): Ditto.
12928 * corefile.c (_initialize_core): Ditto.
12929 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12930 * arch-utils.c (initialize_current_architecture): Ditto.
12931 (_initialize_gdbarch_utils): Ditto.
12932 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12934 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12935 * wince.c (_initialize_inftarg): Ditto.
12936 * symfile.c (_initialize_symfile): Ditto.
12937 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12938 * language.c (_initialize_language): Ditto.
12939 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12941 2002-02-04 Michael Snyder <msnyder@redhat.com>
12943 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12945 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12947 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12948 Add rules for building the register data files.
12950 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12952 * regformats/regdat.sh: Add braces to the definition of
12953 expedite_regs_${arch}.
12955 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12957 * regformats/regdef.h (struct reg): Add comment describing the
12958 requirements for offset and size fields.
12960 2002-02-04 Andreas Schwab <schwab@suse.de>
12962 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12963 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12965 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12967 * gdbarch.sh (copyright): Update years in generated header.
12968 (SMASH_TEXT_ADDRESS): Add rule.
12969 * gdbarch.h, gdbarch.c: Re-generate.
12970 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12971 * dbxread.c: Likewise.
12972 * dwarfread.c: Likewise.
12973 * elfread.c: Likewise.
12974 * somread.c: Likewise.
12976 * arm-tdep.c (arm_smash_text_address): New function.
12977 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12979 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12981 Add support for hardware watchpoints on win32 native.
12982 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12983 CONTEXT_DEBUG_REGISTERS.
12984 (dr variable): New variable. Static array containing a local copy
12985 of debug registers.
12986 (debug_registers_changed): New variable. Reflects when debug registers
12987 are changed and need to be written to inferior.
12988 (debug_registers_used): New variable. Reflects when any debug register
12989 was set, used when new threads are created.
12990 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12992 (thread_rec): Set dr array if id is the thread of current_event .
12993 (child_continue, child_resume): Change the debug registers for all
12994 threads if debug_registers_changed.
12995 (child_add_thread): Change the debug registers if debug_registers_used.
12996 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12997 Link nm.h to new nm-cygwin.h file.
12998 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12999 of hardware registers.
13001 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13003 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13004 Restore behavour broken by 2002-01-20 Andrew Cagney
13005 <ac131313@redhat.com> IEEE_FLOAT removal.
13007 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13009 * c-valprint.c (c_val_print): Pass a proper valaddr to
13010 cp_print_class_method.
13011 * valops.c (search_struct_method): If there is only one method
13012 and args is NULL, return that method.
13014 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13016 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13017 accessing tag_name directly.
13019 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13021 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13022 of accessing tag_name directly.
13024 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13027 * gdbtypes.c (replace_type): New function.
13028 * gdbtypes.h (replace_type): Add prototype.
13029 * stabsread.c (read_type): Use replace_type.
13031 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13033 * Makefile.in (memattr.o): Add missing dependencies rule.
13035 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13037 * breakpoint.c (break_at_finish_command): Really export.
13038 (break_at_finish_at_depth_command): Ditto.
13039 (tbreak_at_finish_command): Ditto.
13040 * hppa-tdep.c: Include completer.h.
13041 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13042 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13044 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13046 * utils.c (do_write): New function.
13047 (error_stream): Rewrite combining the code from error_begin and
13049 (verror): Rewrite using error_stream.
13050 (error_begin): Delete function.
13052 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13054 * utils.c (error_begin): Make static.
13055 * defs.h (error_begin): Delete declaration.
13057 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13058 (decode_line_1): Use cplusplus_error instead of error_begin,
13059 cplusplus_hint and return_to_top_level.
13060 * coffread.c (coff_symfile_read): Use error instead of error_begin
13061 and return_to_top_level.
13062 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13064 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13066 * language.h (type_error, range_error): Make string parameter
13068 * language.c (warning_pre_print): Delete extern declaration.
13069 * dwarfread.c (warning_pre_print): Ditto.
13070 * language.c (type_error, range_error): Rewrite to use verror and
13071 vwarning instead of warning_begin.
13073 2002-02-01 Michael Snyder <msnyder@redhat.com>
13075 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13076 (set_ignore_count): Move misplaced comment back where it belongs.
13078 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13080 * command.h (NO_FUNCTION): Delete macro.
13081 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13082 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13083 * tracepoint.c (_initialize_tracepoint): Ditto.
13084 * cli/cli-decode.c (add_set_cmd): Ditto.
13085 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13087 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13089 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13090 Update ``this'' pointer when calling virtual functions.
13092 2002-02-01 Michael Snyder <msnyder@redhat.com>
13094 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13095 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13097 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13099 * regformats/reg-arm.dat: New file.
13100 * regformats/reg-i386.dat: New file.
13101 * regformats/reg-ia64.dat: New file.
13102 * regformats/reg-m68k.dat: New file.
13103 * regformats/reg-mips.dat: New file.
13104 * regformats/reg-ppc.dat: New file.
13105 * regformats/reg-sh.dat: New file.
13106 * regformats/regdef.h: New file.
13107 * regformats/regdat.sh: New file.
13109 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13111 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13112 (arm_frame_args_address, arm_frame_locals_address): New functions.
13113 (arm_frame_num_args): New function.
13114 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13115 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13116 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13118 2002-01-31 Michael Snyder <msnyder@redhat.com>
13120 * breakpoint.c (break_at_finish_command): Export.
13121 (break_at_finish_at_depth_command): Export.
13122 (tbreak_at_finish_command): Export.
13123 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13124 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13125 "txbreak" commands, which are HPPA specific.
13127 * printcmd.c (disassemble_command): Remove an ancient
13128 artifact of an old merge.
13130 * symfile.h (enum overlay_debugging_state):
13131 Define enum constant values for overlay mode.
13132 * symfile.c (overlay_debugging): Use enums instead of literals.
13133 (overlay_is_mapped, overlay_auto_command,
13134 overlay_manual_command): Ditto.
13136 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13137 breakpoint_here_p, breakpoint_inserted_here_p,
13138 breakpoint_thread_match, bpstat_stop_status,
13139 describe_other_breakpoints, check_duplicates, clear_command):
13140 Coding standard fixes.
13142 * target.c (target_xfer_memory): Add spaces, coding standard.
13143 (do_xfer_memory): Add missing line to trust-readonly
13144 code: check bfd SEC_READONLY flag for section.
13146 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13148 * PROBLEMS: Fix typo, 5.1->5.1.1.
13150 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13152 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13153 data symbols, since we search based on textlow and texthigh.
13154 (find_pc_sect_symtab): Likewise.
13156 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13158 * defs.h (vwarning): Declare.
13159 * utils.c (vwarning): New function.
13160 (warning): Call vwarning.
13161 (warning_begin): Delete function.
13163 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13164 the warning message.
13165 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13168 2002-01-30 Michael Snyder <msnyder@redhat.com>
13170 * NEWS: Mention "set trust-readonly-sections" command.
13171 Mention generate-core-file command.
13173 2002-01-15 Michael Snyder <msnyder@redhat.com>
13175 * target.c: New command, "set trust-readonly-sections on".
13176 (do_xfer_memory): Honor the suggestion to trust readonly sections
13177 by reading them from the object file instead of from the target.
13178 (initialize_targets): Register command "set trust-readonly-sections".
13180 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13182 * parse.c (target_map_name_to_register): Simplify, search regs and
13183 pseudo-regs using a single loop.
13185 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13187 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13189 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13191 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13192 * config/i386/i386v42mp.mh: Add i387-nat.o .
13193 * i386v4-nat.c: Include i387-nat.h.
13194 (supply_fpregset): Use i387_supply_fsave.
13195 (fill_fpregset): Use i387_fill_fsave.
13197 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13199 * arm-tdep.c (arm_call_dummy_words): Define.
13200 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13201 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13202 (CALL_DUMMY_WORDS): Define.
13203 (arm_call_dummy_words): Declare.
13204 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13205 (arm_linux_call_dummy_words): Declare.
13207 2002-01-30 Andreas Schwab <schwab@suse.de>
13209 * m68klinux-nat.c: Fix last change to use regcache_collect
13210 instead of referencing registers[] directly.
13212 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13214 * parse.c (target_map_name_to_register): Delete code wrapped in
13215 #ifdef REGISTER_NAME_ALIAS_HOOK.
13217 2002-01-28 Michael Snyder <msnyder@redhat.com>
13219 * regcache.c (legacy_read_register_gen): Need to be able to
13220 read pseudo-register as well as real register.
13221 (legacy_write_register_gen): Ditto.
13223 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13225 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13226 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13227 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13228 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13229 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13230 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13231 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13232 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13233 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13234 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13235 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13236 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13237 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13238 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13239 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13240 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13241 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13242 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13243 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13244 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13246 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13248 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13249 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13250 (initialize_current_architecture): Update target_byte_order using
13251 information from BFD.
13252 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13253 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13255 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13257 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13258 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13260 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13261 #ifdef INVALID_FLOAT.
13262 * infcmd.c (do_registers_info): Ditto.
13263 * values.c (unpack_double): Ditto. Add comment.
13265 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13266 already commented out.
13268 2002-01-26 Andreas Schwab <schwab@suse.de>
13270 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13271 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13272 registers and add support for PTRACE_GETREGS.
13274 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13276 GDB 5.1.1 released from 5.1 branch.
13277 * NEWS: Add 5.1.1 news.
13278 * README: Sync with 5.1 branch.
13280 2002-01-23 Fred Fish <fnf@redhat.com>
13282 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13283 stabstring on initial malloc. Reallocing will copy it for us,
13286 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13288 * Makefile.in (hpread_h): Delete.
13289 (HFILES_NO_SRCDIR): Remove hpread.h.
13290 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13291 (hpread.o): Update dependencies.
13292 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13294 * hp-psymtab-read.c: Remove file.
13295 * hp-symtab-read.c: Remove file.
13296 * hpread.h: Remove file.
13298 * hpread.c: Merge all contents of hp-psymtab-read.c,
13299 hp-symtab-read.c and hpread.h into this file, as it was prior to
13302 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13303 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13304 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13305 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13307 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13309 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13310 fill_gregset): Call gdbarch_tdep() just once, assign result to
13311 variable and use that, instead of calling the function several
13314 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13316 * configure.host: Accept sparcv9 as alias for sparc64.
13317 * configure.tgt: Likewise.
13319 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13321 * solib-aix5.c (build_so_list_from_mapfile)
13322 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13323 arguments is not reversed.
13324 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13325 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13327 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13329 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13330 modified version of obsolete sh_fetch_pseudo_register.
13331 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13332 (sh4_register_read): New function.
13333 (sh_pseudo_register_write): New function. Renamed and modified
13334 version of obsolete sh_store_pseudo_register.
13335 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13336 (sh4_register_write): New function.
13337 (sh_gdbarch_init): Remove setting of gdbarch function
13338 fetch_pseudo_register and store_pseudo_register. Remove setting of
13339 register_convert_to_raw, register_convert_to_virtual,
13340 register_convertible.
13341 (sh_sh4_register_convertible): Delete. No longer needed. All is
13342 taken care by architecture specific functions
13343 register_read/register_write.
13344 (sh_sh4_register_convert_to_virtual): Make static.
13345 (sh_sh4_register_convert_to_raw): Ditto.
13347 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13349 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13350 (floatformat_is_nan, floatformat_mantissa): Ditto.
13352 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13353 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13354 builtin_type_ieee_double_little,
13355 builtin_type_ieee_double_littlebyte_bigword,
13356 builtin_type_m68881_ext, builtin_type_i960_ext,
13357 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13358 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13359 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13360 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13362 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13364 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13365 parameter. Set frameless flag if it exists and depended of
13366 whether the scanned function is frameless or not.
13367 (xstormy16_skip_prologue): If function is frameless, return
13368 result of xstormy16_scan_prologue().
13369 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13372 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13374 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13375 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13376 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13377 sh_sh4_register_byte, sh_sh4_register_raw_size,
13378 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13379 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13380 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13381 sh_store_pseudo_register, sh_do_pseudo_register): Call
13382 gdbarch_tdep() just once, assign result to variable and use that,
13383 instead of calling the function several times.
13385 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13387 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13388 macros instead of LAST_FPU_CTRL_REGNUM.
13389 (store_register): Likewise.
13391 2002-01-21 Jim Blandy <jimb@redhat.com>
13393 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13394 is up-to-date before running the program, not just when a program
13397 2002-01-21 Fred Fish <fnf@redhat.com>
13399 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13400 when we have found all instructions we are looking for.
13402 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13404 * arm-tdep.c (arm_register_name): New function.
13405 (arm_registers_names): Make static.
13406 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13407 (arm_register_name): Declare.
13408 (REGISTER_NAME): Use it.
13410 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13411 Kevin Buettner <kevinb@redhat.com>
13413 Convert arm targets to new FRAME interface.
13414 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13415 (arm_frame_find_save_regs): Delete.
13416 (arm_frame_init_saved_regs): New.
13417 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13418 Allocate extra_info as required. Convert all uses of fsr.regs
13419 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13421 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13422 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13423 (check_prologue_cache, save_prologue_cache): Likewise.
13424 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13425 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13426 (FRAME_FIND_SAVED_REGS): Delete.
13427 (arm_frame_find_saved_regs): Delete prototype.
13428 (arm_frame_init_saved_regs): New prototype.
13429 (FRAME_INIT_SAVED_REGS): Define.
13431 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13433 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13435 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13437 From Jeff Law <law@redhat.com>:
13438 * infttrace.c: Include <sys/pstat.h>.
13439 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13440 exec file if the ttrace equivalent fails.
13442 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13444 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13445 (closeLogFile): Ditto.
13447 2002-01-20 Michael Chastain <mec@shout.net>
13449 * top.c (print_gdb_version): Bump copyright year to 2002.
13451 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13453 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13454 Zannoni and Eli Zaretskii.
13456 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13458 * buildsym.c: Update copyright years.
13459 * c-typeprint.c: Likewise.
13460 * dwarf2read.c: Likewise.
13461 * f-typeprint.c: Likewise.
13462 * gdbtypes.c: Likewise.
13463 * gdbtypes.h: Likewise.
13464 * hp-symtab-read.c: Likewise.
13465 * hpread.c: Likewise.
13466 * mdebugread.c: Likewise.
13467 * p-typeprint.c: Likewise.
13469 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13471 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13472 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13473 byte-order selectable.
13474 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13475 * arch-utils.c: Ditto.
13476 (set_endian): Ditto.
13477 (set_endian_from_file): Ditto.
13478 * gdbserver/low-sim.c (create_inferior): Ditto.
13479 * gdbarch.sh: Ditto.
13480 * gdbarch.h: Re-generate.
13481 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13482 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13483 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13484 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13485 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13486 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13487 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13488 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13490 * config/mips/tm-wince.h: Remove #undef of macro
13491 TARGET_BYTE_ORDER_SELECTABLE.
13492 * config/sh/tm-wince.h: Ditto.
13494 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13496 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13497 member function fields. Add accessor macro
13498 TYPE_FN_FIELD_ARTIFICIAL.
13499 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13500 * c-typeprint.c (c_type_print_base): Skip artificial member
13503 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13505 * f-typeprint.c: Delete unused function f_type_print_args.
13506 * p-typeprint.c: Delete unused function pascal_type_print_args.
13508 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13510 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13511 comment. Add ``artificial'' to ``union field_location''.
13513 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13515 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13516 * mdebugread.c (parse_symbol): Likewise.
13517 * stabsread.c (define_symbol): Likewise.
13518 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13519 initializing TYPE_FIELD_BITPOS to n (obsolete).
13520 (hpread_doc_function_type): Likewise.
13521 * hpread.c (hpread_function_type): Likewise.
13523 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13525 * configure.in (host_makefile_frag): Only require a host makefile
13526 fragment when a native build.
13527 * configure: Re-generate.
13529 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13531 * doublest.h (floatformat_from_type): Declare.
13532 * doublest.c (floatformat_from_type): New function.
13533 (convert_typed_floating): Use.
13535 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13536 call to function floatformat_from_type.
13538 * gdbarch.sh (IEEE_FLOAT): Delete.
13539 * gdbarch.h, gdbarch.c: Re-generate.
13540 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13541 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13542 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13543 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13544 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13545 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13546 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13547 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13548 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13549 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13550 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13551 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13553 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13554 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13556 * sh-tdep.c (sh_gdbarch_init): Ditto.
13557 * mips-tdep.c (mips_gdbarch_init): Ditto.
13558 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13559 * cris-tdep.c (cris_gdbarch_init): Ditto.
13561 2002-01-20 Jiri Smid <smid@suse.cz>
13563 * configure.host, configure.tgt: Support x86-64.
13564 * NEWS: Note new target x86-64.
13566 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13567 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13568 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13569 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13570 x86-64-linux-nat.o): Fix dependencies.
13572 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13574 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13575 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13576 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13577 * config/sparc/xm-sun4os4.h: Delete file.
13578 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13580 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13582 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13583 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13584 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13585 * config/i386/i386lynx.mh (XM_FILE): Delete.
13586 * config/rs6000/xm-rs6000ly.h: Delete file.
13587 * config/sparc/xm-sparclynx.h: Delete file.
13588 * config/m68k/xm-m68klynx.h: Delete file.
13589 * config/i386/xm-i386lynx.h: Delete file.
13590 * config/xm-lynx.h: Delete file.
13591 * config/djgpp/fnchange.lst: Update.
13593 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13595 * alpha-tdep.c (alpha_register_byte): New function.
13596 (alpha_register_raw_size): Ditto.
13597 (alpha_register_virtual_size): Ditto.
13598 (alpha_skip_prologue_internal): Renamed from
13599 alpha_skip_prologue.
13600 (alpha_skip_prologue): New version that calls
13601 alpha_skip_prologue_internal.
13602 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13603 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13604 second argument from alpha_skip_prologue.
13605 (REGISTER_BYTE): Use alpha_register_byte.
13606 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13607 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13608 (FRAMELESS_FUNCTION_INVOCATION): Use
13609 generic_frameless_function_invocation_not.
13610 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13611 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13613 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13615 * config/mips/xm-news-mips.h: Delete file.
13616 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13618 * config/m88k/xm-m88k.h: Delete file.
13619 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13620 * config/m88k/xm-delta88v4.h: Ditto.
13621 * config/m88k/xm-delta88.h: Ditto.
13623 * config/alpha/xm-fbsd.h: Delete file.
13624 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13626 * config/sparc/xm-sparc.h: Delete file.
13627 * Makefile.in (xm-sun4os4.h): Delete dependency.
13628 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13629 * config/sparc/xm-sun4os4.h: Ditto.
13630 * config/sparc/xm-linux.h: Ditto.
13632 * config/i386/xm-windows.h: Delete file.
13634 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13636 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13637 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13639 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13641 * alpha-tdep.c (alpha_call_dummy_words): New.
13642 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13643 (CALL_DUMMY_P): Define.
13644 (CALL_DUMMY_WORDS): Define.
13645 (SIZEOF_CALL_DUMMY_WORDS): Define.
13647 2002-01-19 Per Bothner <per@bothner.com>
13649 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13650 isn't NULL, which can happen with some gcj-3.x-produced code.
13652 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13654 * alpha-tdep.c (alpha_register_virtual_type): New function.
13655 (alpha_init_frame_pc_first): Ditto.
13656 (alpha_fix_call_dummy): Ditto.
13657 (alpha_store_struct_return): Ditto.
13658 (alpha_extract_struct_value_address): Ditto.
13659 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13660 alpha_register_virtual_type.
13661 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13662 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13663 alpha_extract_struct_value_address.
13664 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13665 (INIT_FRAME_PC): Use init_frame_pc_noop.
13666 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13668 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13670 * i386gnu-nat.c: Include "i386-tdep.h".
13671 (fetch_fpregs): Simplify code dealing with uninitialized floating
13672 point states such that it doesn't require FP7_REGNUM.
13674 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13676 * alpha-tdep.c (frame_extra_info): New.
13677 (alpha_find_saved_regs): Make static. Use
13679 (alpha_frame_init_saved_regs): New function.
13680 (alpha_frame_saved_pc): Use frame->extra_info.
13681 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13682 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13683 (init_extra_frame_info): Rename to...
13684 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13685 (alpha_print_extra_frame_info): New function.
13686 (alpha_frame_locals_address): Ditto.
13687 (alpha_frame_args_address): Ditto.
13688 (alpha_pop_frame): Use frame->extra_info.
13689 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13690 alpha_frame_args_address.
13691 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13692 (alpha_find_saved_regs): Remove prototype.
13693 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13694 (EXTRA_FRAME_INFO): Remove.
13695 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13696 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13698 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13700 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13701 (alpha_cannot_fetch_register): Ditto.
13702 (alpha_cannot_store_register): Ditto.
13703 (alpha_register_convertible): Ditto.
13704 (alpha_use_struct_convention): Ditto.
13705 * config/alpha/tm-alpha.h: Update copyright years.
13706 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13707 (INNER_THAN): Use core_addr_lessthan.
13708 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13709 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13710 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13711 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13712 (FRAME_CHAIN): Remove unnecessary cast.
13714 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13716 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13719 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13721 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13722 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13723 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13724 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13725 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13726 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13727 * x86-64-linux-nat.c: Ditto.
13729 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13731 * alpha-tdep.c (alpha_register_name): New function.
13732 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13733 (REGISTER_NAME): Define.
13735 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13737 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13739 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13741 * alpha-tdep.c: Update copyright years.
13742 (alpha_next_pc): New function.
13743 (alpha_software_single_step): Ditto.
13744 * config/alpha/tm-alpha.h: Add prototype for
13745 alpha_software_single_step.
13747 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13749 * alphabsd-nat.c: Update copyright years.
13750 (fill_gregset): Use regcache_collect.
13751 (fill_fpregset): Likewise.
13752 (fetch_inferior_registers): Only fetch integer registers
13753 if requested to do so.
13754 (store_inferior_registers): Only store integer registers
13755 if requested to do so.
13757 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13759 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13760 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13761 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13762 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13763 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13764 * config/arm/linux.mh (XDEPFILES): Delete.
13765 * config/arm/nbsd.mh (XDEPFILES): Delete.
13766 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13767 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13768 * config/i386/i386m3.mh (XDEPFILES): Delete.
13769 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13770 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13771 * config/i386/fbsd.mh (XDEPFILES): Delete.
13772 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13773 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13774 * config/i386/i386v4.mh (XDEPFILES): Delete.
13775 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13776 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13777 * config/i386/i386aix.mh (XDEPFILES): Delete.
13778 * config/i386/go32.mh (XDEPFILES): Delete.
13779 * config/i386/cygwin.mh (XDEPFILES): Delete.
13780 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13781 * config/i386/i386mach.mh (XDEPFILES): Delete.
13782 * config/i386/i386v32.mh (XDEPFILES): Delete.
13783 * config/i386/linux.mh (XDEPFILES): Delete.
13784 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13785 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13786 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13787 * config/i386/i386sco.mh (XDEPFILES): Delete.
13788 * config/i386/i386v.mh (XDEPFILES): Delete.
13789 * config/i386/nbsd.mh (XDEPFILES): Delete.
13790 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13791 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13792 * config/i386/symmetry.mh (XDEPFILES): Delete.
13793 * config/i386/obsd.mh (XDEPFILES): Delete.
13794 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13795 * config/ia64/linux.mh (XDEPFILES): Delete.
13796 * config/ia64/aix.mh (XDEPFILES): Delete.
13797 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13798 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13799 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13800 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13801 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13802 * config/m68k/linux.mh (XDEPFILES): Delete.
13803 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13804 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13805 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13806 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13807 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13808 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13809 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13810 * config/m88k/delta88.mh (XDEPFILES): Delete.
13811 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13812 * config/m88k/m88k.mh (XDEPFILES): Delete.
13813 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13814 * config/mips/linux.mh (XDEPFILES): Delete.
13815 * config/mips/irix6.mh (XDEPFILES): Delete.
13816 * config/mips/irix5.mh (XDEPFILES): Delete.
13817 * config/mips/irix4.mh (XDEPFILES): Delete.
13818 * config/mips/irix3.mh (XDEPFILES): Delete.
13819 * config/mips/decstation.mh (XDEPFILES): Delete.
13820 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13821 (NATDEPFILES): Move core-aout.o to here.
13822 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13823 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13824 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13825 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13826 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13827 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13828 * config/pa/hpux11.mh (XDEPFILES): Delete.
13829 * config/powerpc/aix.mh (XDEPFILES): Delete.
13830 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13831 * config/powerpc/linux.mh (XDEPFILES): Delete.
13832 * config/romp/rtbsd.mh: Rename XDEPFILES.
13833 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13834 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13835 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13836 * config/s390/s390.mh (XDEPFILES): Delete.
13837 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13838 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13839 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13840 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13841 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13842 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13843 * config/sparc/linux.mh (XDEPFILES): Delete.
13844 * config/vax/vaxult.mh (XDEPFILES): Delete.
13845 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13846 * Makefile.in (DEPFILES): Remove XDEPFILES.
13848 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13850 * utils.c (internal_verror): Fix comments, default is yes not no.
13851 Update queries to match. Default to quit and dump core.
13853 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13855 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13857 * defs.h, event-top.c, gdbcmd.h: Ditto.
13858 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13859 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13860 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13861 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13862 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13863 * mi/mi-main.c:Ditto.
13865 * stack.c, symfile.c: Update copyright.
13867 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13869 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13870 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13871 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13872 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13874 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13876 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13877 * gdbserver/low-lynx.c (myattach): Likewise.
13878 * gdbserver/low-nbsd.c (myattach): Likewise.
13879 * gdbserver/low-sim.c (myattach): Likewise.
13880 * gdbserver/low-sparc.c (myattach): Likewise.
13881 * gdbserver/low-sun3.c (myattach): Likewise.
13883 * gdbserver/low-linux.c (myattach): New function.
13885 * gdbserver/server.c (attach_inferior): New function.
13886 (main): Handle "--attach".
13888 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13890 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13893 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13895 * c-typeprint.c (is_type_conversion_operator): Add additional
13896 check for non-conversion operators.
13898 2002-01-15 Michael Snyder <msnyder@redhat.com>
13900 * linux-proc.c: Add "info proc" command, a la procfs.c.
13901 (read_mapping): New function, abstract and re-use code.
13902 (linux_find_memory_regions): Use new func read_mapping.
13903 (linux_info_proc_cmd): New function, implement "info proc".
13904 (_initialize_linux_proc): Add new command "info proc".
13906 2002-01-15 Michael Snyder <msnyder@redhat.com>
13908 * symfile.c (generic_load): Use bfd_map_over_sections method
13909 instead of manipulating bfd structure members directly.
13910 (add_section_size_callback): New function, bfd sections callback
13911 used by generic_load.
13912 (load_sections_callback): New function, bfd sections callback
13913 used by generic_load.
13915 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13917 [Based on work by Jim Blandy]
13918 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13919 (builtin_type_vec128): Export.
13920 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13922 (builtin_type_vec128): New builtin type for 128 bit vector
13924 (build_gdbtypes): Initialize builtin_type_v16qi and
13925 builtin_type_v8hi. Create the vec128 register builtin type
13927 (build_builtin_type_vec128): New function.
13928 (_initialize_gdbtypes): Register builtin_type_v16qi and
13929 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13930 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13931 AltiVec register to new builtin type.
13933 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13935 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13938 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13940 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13941 CLEAN_UP_REGISTER_VALUE.
13942 * regcache.c (supply_register): Update only call.
13944 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13946 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13947 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13948 a29k-*-vxworks* targets as obsolete.
13950 2002-01-14 Michael Snyder <msnyder@redhat.com>
13952 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13953 until we can resolve portability issues.
13954 * gregset.h: Remove references to fpxregs.
13955 * gcore.c (gcore_command): Initialize note_sec to NULL.
13957 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13959 * signals.c (target_signal_to_name): Rewrite. Only use
13960 signals[].name when in bounds and non-NULL.
13962 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13964 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13965 * signals.c (target_signal_to_name): Verify that SIG is within the
13966 bounds of the signals array.
13968 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13970 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13972 2002-01-13 Keith Seitz <keiths@redhat.com>
13974 * stack.c (print_frame_info_base): Print the frame's pc
13975 only if when print_frame_info_listing_hook is not defined.
13977 2002-01-13 Keith Seitz <keiths@redhat.com>
13979 * varobj.c (varobj_set_value): Make sure that there were no
13980 errors evaluating the object before attempting to set its
13982 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13983 so this offset adjustment is no longer necessary.
13984 (create_child): Don't set the error flag if the child is
13985 a CPLUS_FAKE_CHILD.
13986 (value_of_child): If value_fetch_lazy fails, return NULL
13987 so that callers will be notified that an error occurred.
13988 (c_value_of_variable): Delay check of variable's validity
13989 until later. We actually want all structs and unions to have
13991 Do not return "???" for variables which could not be evaluated.
13992 This error condition must be returned to the caller so that it
13993 can get the error condition from gdb.
13994 (cplus_name_of_child): Adjust index for vptr before figuring
13995 out the name of the child.
13996 (cplus_value_of_child): If a child's (real) parent is not valid,
13997 don't even bother trying to give a value for it. Just return
13998 an error. Change all instances in this function.
13999 (cplus_type_of_child): If our parent is one of the "fake"
14000 parents, we need to get at the type of the real parent, and
14001 derive the child's true type using this information.
14003 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14005 From 2002-01-09 John Marshall <johnm@falch.net>:
14006 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14007 sources.redhat.com, and tweak some related URLs which had
14008 suffered from linkrot.
14010 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14013 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14014 structures passed in registers.
14016 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14018 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14019 white space which prevented compilation. Reported by DSK
14020 <dsk@student.unsw.edu.au>.
14022 2002-01-11 Michael Snyder <msnyder@redhat.com>
14024 * symfile.c (build_section_addr_info_from_section_tab):
14025 Use bfd access method instead of manipulating bfd directly.
14026 (syms_from_objfile): Ditto.
14027 (simple_overlay_update_1): Ditto.
14028 (simple_overlay_update): Ditto.
14029 (generic_load): Ditto.
14030 (overlay_unmapped_address): FIXME comment, bfd access methods.
14031 (sections_overlap): FIXME comment, bfd access methods.
14032 (pc_in_mapped_range): FIXME comment, bfd access methods.
14033 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14034 (section_is_mapped): FIXME comment, bfd access methods.
14035 (section_is_overlay): FIXME comment, bfd access methods.
14037 * symfile.c (generic_load): Whitespace and long line cleanups.
14038 Remove duplicate variable, change several local variables to
14039 more appropriate data types.
14040 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14042 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14044 From Peter Schauer:
14045 * language.c (longest_local_hex_string_custom): Use phex_nz to
14046 convert NUM to a hex string.
14048 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14050 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14052 Update Copyright year.
14054 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14056 * language.c (longest_raw_hex_string): Delete unused function.
14058 2002-01-11 Petr Sorfa <petrs@caldera.com>
14060 * MAINTAINERS (write-after-approval): Add myself.
14061 * dwarf2read.c (read_tag_string_type): Handling of
14063 (read_tag_string_type): FORTRAN fix to prevent propagation of
14065 (set_cu_language): Handling of DW_LANG_Fortran95
14067 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14069 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14070 GETPID(inferior_ptid).
14071 (store_inferior_registers): Likewise.
14073 2002-01-10 Jason Merrill <jason@redhat.com>
14075 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14078 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14080 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14081 and bfd/elf32-sh-nbsd.c.
14083 2002-01-10 Michael Snyder <msnyder@redhat.com>
14085 * NEWS: Mention --pid and corefile/proc-id behavior change.
14087 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14088 * gcore.c: Include cli/cli-decode.h instead of command.h.
14090 * main.c (captured_main): Add new command line option "--pid".
14091 If the second command line argument (following the symbol-file)
14092 begins with a digit, try to attach to it before trying to open
14094 (print_gdb_help): Document the "--pid" argument.
14096 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14098 * completer.c (command_completer): New function.
14100 * completer.h <command_completer>: Add prototype.
14102 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14103 completer for the "help" command.
14105 2002-01-09 Jason Merrill <jason@redhat.com>
14107 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14109 2002-01-09 Michael Snyder <msnyder@redhat.com>
14111 * i386-linux-nat.c (fill_fpxregset): Make global.
14112 (store_fpxregset): Ditto.
14114 * gregset.h (gdb_fpxregset_t): Define.
14115 (supply_fpxregset): Prototype.
14116 (fill_fpxregset): Prototype.
14118 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14120 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14122 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14123 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14124 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14126 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14128 * MAINTAINERS: Update target maintainer rules so that any
14129 Maintainer can approve a tested patch for a maintenance-only
14132 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14134 * MAINTAINERS (write-after-approval): Add myself.
14136 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14139 2002-01-08 Michael Snyder <msnyder@redhat.com>
14141 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14142 real name of the executable, rather than the /proc name.
14144 2002-01-03 Michael Snyder <msnyder@redhat.com>
14146 Implement a "generate-core-file" command in gdb, save target state.
14147 * gcore.c: New file. Implement new command 'generate-core-file'.
14148 Save a corefile image of the current state of the inferior.
14149 * linux-proc.c: Add linux-specific code for saving corefiles.
14150 * target.h (struct target_ops): Add new target vectors for saving
14151 corefiles; to_find_memory_regions and to_make_corefile_notes.
14152 (target_find_memory_regions): New macro.
14153 (target_make_corefile_notes): New macro.
14154 * target.c (update_current_target): Inherit new target methods.
14155 (dummy_find_memory_regions): New place-holder method.
14156 (dummy_make_corefile_notes): New place-holder method.
14157 (init_dummy_target): Initialize new dummy target vectors.
14158 * exec.c (exec_set_find_memory_regions): New function.
14159 Allow the exec_ops vector for memory regions to be taken over.
14160 (exec_make_note_section): New function, target vector method.
14161 * defs.h (exec_set_find_memory_regions): Export prototype.
14162 * procfs.c (proc_find_memory_regions): New function, corefile method.
14163 (procfs_make_note_section): New function, corefile method.
14164 (init_procfs_ops): Set new target vector pointers.
14165 (find_memory_regions_callback): New function.
14166 (procfs_do_thread_registers): New function.
14167 (procfs_corefile_thread_callback): New function.
14168 * sol-thread.c (sol_find_memory_regions): New function.
14169 (sol_make_note_section): New function.
14170 (init_sol_thread_ops): Initialize new target vectors.
14171 * inftarg.c (inftarg_set_find_memory_regions): New function.
14172 Allow to_find_memory_regions vector to be taken over.
14173 (inftarg_set_make_corefile_notes): New function.
14174 Allow to_make_corefile_notes vector to be taken over.
14175 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14176 interface layer if not target_has_execution (may be a corefile).
14177 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14178 * config/sparc/sun4sol2.mh: Ditto.
14179 * config/alpha/alpha-linux.mh: Ditto.
14180 * config/arm/linux.mh: Ditto.
14181 * config/i386/x86-64linux.mh: Ditto.
14182 * config/ia64/linux.mh: Ditto.
14183 * config/m68k/linux.mh: Ditto.
14184 * config/mips/linux.mh: Ditto.
14185 * config/powerpc/linux.mh: Ditto.
14186 * config/sparc/linux.mh: Ditto.
14188 2002-01-07 Michael Snyder <msnyder@redhat.com>
14190 * arm-linux-nat.c: Remove references to regcache.c internal data
14191 (registers[] and register_valid[]).
14193 2002-01-07 Michael Snyder <msnyder@redhat.com>
14195 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14196 so that attaching to a pid will automatically read the process's
14197 symbol file and shlibs.
14198 * Makefile.in: Add rule for linux-proc.o.
14199 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14200 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14201 * config/arm/linux.mh: Ditto.
14202 * config/i386/linux.mh: Ditto.
14203 * config/i386/x86-64linux.mh: Ditto.
14204 * config/ia64/linux.mh: Ditto.
14205 * config/m68k/linux.mh: Ditto.
14206 * config/mips/linux.mh: Ditto.
14207 * config/powerpc/linux.mh: Ditto.
14208 * config/sparc/linux.mh: Ditto.
14210 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14212 * win32-nat.c: Add i386-tdep.h dependency.
14214 2002-01-07 Michael Snyder <msnyder@redhat.com>
14216 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14217 instead of bfd_get_arch_size. Don't bail out just because
14218 there's no exec_bfd.
14220 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14221 * p-valprint.c (pascal_object_print_value): Ditto.
14222 * somread.c (som_symtab_read): Ditto.
14223 * symfile.c (simple_free_overlay_region_table): Ditto.
14224 * valops.c (value_assign): Ditto.
14226 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14227 use tilde_expand and strerror for opening save-tracepoints file.
14229 * thread-db.c (thread_db_new_objfile): Indendation fix.
14231 * infptrace.c (GDB_MAX_ALLOCA): New define.
14232 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14233 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14234 can be overridden with whatever value is appropriate to the host).
14235 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14236 alloca to allocate potentially large buffer.
14237 * rs6000-nat.c (child_xfer_memory): Ditto.
14238 * symm-nat.c (child_xfer_memory): Ditto.
14239 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14241 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14243 From Nick Clifton <nickc@redhat.com>
14244 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14246 2002-01-07 Michael Snyder <msnyder@redhat.com>
14248 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14249 Don't use exec_bfd if it's NULL.
14251 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14253 * valops.c (value_arg_coerce): Fix formatting.
14255 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14257 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14258 * gnu-nat.c: Ditto.
14260 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14262 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14263 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14264 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14265 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14266 z8k-coff have not been multi-arched. Update z8k-coff build
14269 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14271 * MAINTAINERS: Mark a29k target as obsolete.
14272 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14273 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14275 * NEWS: Note that a29k targets are obsolete.
14276 * a29k-tdep.c: Mark as obsolete.
14277 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14278 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14279 a29k-*-vxworks* targets as obsolete.
14280 * remote-adapt.c: Obsolete.
14281 * remote-eb.c: Obsolete.
14282 * remote-mm.c: Obsolete.
14283 * remote-udi.c: Obsolete.
14284 * config/a29k/a29k-udi.mt: Obsolete.
14285 * config/a29k/a29k.mt: Obsolete.
14286 * config/a29k/tm-a29k.h: Obsolete.
14287 * config/a29k/tm-vx29k.h: Obsolete.
14288 * config/a29k/vx29k.mt: Obsolete.
14290 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14292 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14293 with BFD_ENDIAN_BIG.
14295 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14297 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14298 * configure, config.in: Re-generate.
14299 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14300 * defs.h: Do not include <endian.h>.
14302 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14304 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14305 * config.in: Regenerate.
14306 * configure.in: Update copyright years.
14307 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14308 * configure: Regenerate.
14309 * i386bsd-nat.c: Update copyright years.
14310 (fill_gregset): Use regcache_collect.
14311 (fetch_inferior_registers): Only fetch integer registers
14312 if requested to do so. Add support for XMM registers
14313 using PT_GETXMMREGS.
14314 (store_inferior_registers): Only store integer registers
14315 if requested to do so. Add support for XMM registers
14316 using PT_SETXMMREGS.
14317 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14318 (store_inferior_registers): Remove.
14319 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14320 (fetch_elfcore_registers): New function.
14321 (i386nbsd_elfcore_fns): New.
14322 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14323 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14325 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14326 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14327 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14328 * config/i386/tm-nbsd.h: Update copyright years.
14329 (HAVE_SSE_REGS): Define.
14330 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14331 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14332 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14333 (SIGCONTEXT_PC_OFFSET): Remove.
14334 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14336 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14338 * configure.tgt: Remove powerpc-*-macos* target.
14339 * config/m68k/xm-mpw.h: Delete file.
14340 * config/xm-mpw.h: Delete file.
14341 * ser-mac.c: Delete file.
14342 * mpw-make.sed: Delete file.
14343 * mpw-config.in: Delete file.
14344 * mac-xdep.c: Delete file.
14345 * mac-gdb.r: Delete file.
14346 * mac-defs.h: Delete file.
14347 * mac-nat.c: Delete file.
14348 * config/powerpc/macos.mh: Delete file.
14349 * config/powerpc/macos.mt: Delete file.
14350 * config/powerpc/nm-macos.h: Delete file.
14351 * config/powerpc/tm-macos.h: Delete file.
14352 * source.c (openp, open_source_file): Remove obsolete code.
14353 * top.c (gdb_readline): Ditto.
14354 * utils.c (query): Ditto.
14355 * event-top.c (display_gdb_prompt): Ditto.
14356 * Makefile.in (ser-mac.o): Delete obsolete target.
14359 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14361 * defs.h (BIG_ENDIAN): Delete macro definition.
14362 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14363 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14364 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14365 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14366 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14367 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14368 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14369 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14370 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14371 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14372 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14373 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14374 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14375 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14376 * gdbarch.c: Re-generate.
14378 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14380 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14383 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14385 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14387 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14389 * value.h (value_ptr): Delete typedef.
14391 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14393 * i386nbsd-nat.c: Update copyright years.
14394 Include i386-tdep.h.
14396 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14398 * stabsread.c: Update copyright years.
14400 From Debashis Mahata <debashis.mahata@wipro.com>:
14401 (read_struct_fields): Deal with Sun C compiler erroneous stab
14402 output for structs and unions.
14405 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14407 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14410 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14412 * cp-abi.c: Fix whitespace.
14413 (baseclass_offset): New wrapper function.
14414 * cp-abi.h (baseclass_offset): Add prototype.
14415 (struct cp_abi_ops): Add baseclass_offset pointer.
14417 * valops.c (vb_match): Move to...
14418 * gnu-v2-abi.c (vb_match): here.
14419 * valops.c (baseclass_offset): Move to...
14420 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14422 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14424 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14425 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14426 * hpacc-abi.c (init_hpacc_ops): Likewise.
14428 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14430 * valops.c (find_overload_match): Accept obj as a
14431 reference parameter. Update it before returning.
14432 * value.h (find_overload_match): Update prototype.
14433 * eval.c (evaluate_subexp_standard): Pass object to
14434 find_overload_match by reference.
14436 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14438 * valarith.c: Replace value_ptr with struct value pointer. Remove
14439 register attribute from value declarations.
14442 * scm-lang.c (scm_lookup_name): Ditto.
14444 2002-01-03 Michael Snyder <msnyder@redhat.com>
14446 Abstract the functionality of iterating over mapped memory
14447 regions into a general purpose iterator function.
14448 * procfs.c (iterate_over_mappings): New function, general purpose
14449 iterator for memory sections.
14450 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14451 (solib_mappings_callback): New function, callback for above.
14452 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14453 (info_mappings_callback): New function, callback for above.
14455 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14457 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14459 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14460 * i386-tdep.c: Include "elf-bfd.h".
14461 (process_note_abi_tag_sections): New function.
14462 (i386_gdbarch_init): Add code to recognize various OS/ABI
14465 * maint.c (_initialize_maint_cmds): Add missing \ in
14468 For older changes see ChangeLog-2001
14474 version-control: never