1 2002-12-13 Andrew Cagney <ac131313@redhat.com>
3 * frame.h (frame_id_unwind): Declare.
4 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
6 (frame_id_unwind_ftype): Declare.
7 * frame.c (frame_id_unwind): New function.
8 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
9 (create_new_frame, get_prev_frame): Pass id_unwind to
11 (frame_saved_regs_id_unwind): New function.
12 (frame_saved_regs_id_unwind): New function.
13 * dummy-frame.c (dummy_frame_id_unwind): New function.
14 (struct dummy_frame): Add field id.
15 (generic_push_dummy_frame): Initialize `id'.
16 * dummy-frame.h (dummy_frame_id_unwind): Declare.
18 2002-12-13 Andrew Cagney <ac131313@redhat.com>
20 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
21 pass that to set_momentary_breakpoint. Move comments to where they
23 * frame.h (set_current_frame): Delete declaration.
24 * frame.c (set_current_frame): Delete function.
26 2002-12-13 Andrew Cagney <ac131313@redhat.com>
28 * frame.c (frame_extra_info_zalloc): New function.
29 * frame.h (frame_extra_info_zalloc): Declare.
31 2002-12-13 Joel Brobecker <brobecker@gnat.com>
33 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
34 in the previous prototype change to set_momentary_breakpoint.
36 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
38 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
40 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
41 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
42 (stop_stepping): Remove outdated check for child vfork events.
44 2002-12-12 Andrew Cagney <ac131313@redhat.com>
46 * GDB 5.3 released from gdb_5_3-branch.
48 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
50 * corelow.c (init_core_ops): Delete references to to_require_attach
51 and to_require_detach.
52 * exec.c (init_exec_ops): Likewise.
53 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
54 hppa_require_detach directly.
55 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
56 * inftarg.c (child_detach): Remove.
57 (child_detach_from_process): Rename to child_detach, remove
59 (child_attach): Remove.
60 (child_attach_to_process): Rename to child_attach, remove after_fork
62 (init_child_ops): Delete references to to_require_attach
63 and to_require_detach.
64 * infttrace.c (hppa_require_attach): Update comment.
65 * target.c (cleanup_target, update_current_target)
66 (init_dummy_target, setup_target_debug): Delete references to
67 to_require_attach and to_require_detach.
68 (find_default_require_detach, find_default_require_attach)
69 (debug_to_require_attach, debug_to_require_detach): Remove
71 * target.h (struct target_ops): Remove to_require_attach
72 and to_require_detach.
73 (target_require_attach, target_require_detach): Delete macros.
74 (find_default_require_detach, find_default_require_attach): Delete
76 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
78 2002-12-11 Andrew Cagney <ac131313@redhat.com>
80 * frame.c (get_frame_extra_info): New function.
81 * frame.h (get_frame_extra_info): Declare.
83 2002-12-11 Andrew Cagney <ac131313@redhat.com>
85 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
86 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
87 with `struct frame_id'.
88 (set_longjmp_resume_breakpoint): Ditto.
89 * infrun.c (handle_inferior_event): Update.
90 * breakpoint.c (watch_command_1, until_break_command): Update.
91 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
92 (handle_inferior_event, step_over_function): Update.
93 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
94 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
95 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
96 * infcmd.c (finish_command, run_stack_dummy): Update.
98 2002-12-11 Kevin Buettner <kevinb@redhat.com>
100 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
101 (dwarf2_non_const_array_bound_ignored)
102 (dwarf2_missing_line_number_section)
103 (dwarf2_statement_list_fits_in_line_number_section)
104 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
105 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
106 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
107 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
108 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
109 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
110 (dwarf2_missing_member_fn_type_complaint)
111 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
112 (dwarf2_const_value_length_mismatch)
113 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
114 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
115 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
116 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
117 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
118 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
119 complaints using deprecated struct..
120 (dwarf2_non_const_array_bound_ignored_complaint)
121 (dwarf2_complex_location_expr_complaint)
122 (dwarf2_unsupported_at_frame_base_complaint)
123 (dwarf2_const_value_length_mismatch_complaint)
124 (dwarf2_macros_too_long_complaint)
125 (dwarf2_macro_malformed_definition_complaint)
126 (dwarf2_invalid_attrib_class_complaint): New functions.
127 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
128 (read_structure_scope, read_array_type, read_common_block)
129 (read_tag_pointer_type, read_base_type, read_partial_die)
130 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
131 (new_symbol, dwarf2_const_value, read_type_die)
132 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
133 (parse_macro_definition, dwarf_decode_macros): Replace calls to
134 complain() with, possibly indirect, calls to complaint().
136 2002-12-11 Andrew Cagney <cagney@redhat.com>
138 * frame.c (deprecated_get_frame_saved_regs): Rename
139 get_frame_saved_regs.
140 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
141 * sparc-tdep.c: Update.
142 * hppa-tdep.c: Update.
143 * h8500-tdep.c: Update.
145 2002-12-11 Kevin Buettner <kevinb@redhat.com>
147 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
148 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
149 ``char *'' for return and parameter types.
150 * gdbarch.h, gdbarch.c: Regenerate.
151 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
152 return type from ``char *'' to ``const char *''.
153 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
156 2002-12-11 Mark Kettenis <kettenis@gnu.org>
158 * i386-tdep.c: Include "dummy-frame.h".
159 (i386_frame_chain, i386_frame_saved_pc): Replace
160 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
161 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
163 2002-12-10 Andrew Cagney <cagney@redhat.com>
165 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
166 Change to a function with predicate.
167 * gdbarch.h, gdbarch.c: Re-generate.
168 * frame.c (get_prev_frame): Update. Test
169 DEPRECATED_INIT_FRAME_PC_P.
170 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
171 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
172 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
173 * alpha-tdep.c (alpha_gdbarch_init): Update.
174 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
175 * mips-tdep.c (mips_gdbarch_init): Update.
176 * i386-interix-tdep.c (i386_interix_init_abi): Update.
177 * arm-tdep.c: Update comments.
178 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
179 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
180 * frv-tdep.c (frv_gdbarch_init): Ditto.
181 * x86-64-tdep.c (x86_64_init_abi): Ditto.
182 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
183 * s390-tdep.c (s390_gdbarch_init): Ditto.
184 * v850-tdep.c (v850_gdbarch_init): Ditto.
185 * vax-tdep.c (vax_gdbarch_init): Ditto.
186 * sh-tdep.c (sh_gdbarch_init): Ditto.
187 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
189 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
191 * i386-tdep.c (i386_gdbarch_init): Ditto.
192 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
193 * cris-tdep.c (cris_gdbarch_init): Ditto.
194 * avr-tdep.c (avr_gdbarch_init): Ditto.
195 * arm-tdep.c (arm_gdbarch_init): Ditto.
196 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
197 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
199 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
201 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
203 * hppah-nat.c (saved_vfork_pid): Add.
204 (child_post_follow_vfork): Remove.
205 (child_follow_fork): New function.
206 (child_wait): Call detach_breakpoints after receiving the child vfork.
207 Call child_resume directly instead of going through resume ().
208 Make sure we have the exec before reporting the vfork.
209 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
210 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
211 (follow_fork): New function. Call target_follow_fork.
212 (follow_inferior_reset_breakpoints): New function broken out from
213 old follow_inferior_fork.
214 (resume): Remove hack to follow exec after vfork.
215 * inftarg.c (child_post_follow_vfork): Remove.
216 (child_follow_fork): New function.
217 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
218 * target.c (cleanup_target): Replace to_post_follow_vfork with
220 (update_current_target): Likewise.
221 (setup_target_debug): Likewise.
222 (debug_to_post_follow_vfork): Remove.
223 (debug_to_follow_fork): New function.
224 * target.h (struct target_ops): Replace to_post_folow_vfork with
226 (child_post_follow_vfork): Remove prototype.
227 (child_follow_fork): Add prototype.
228 (target_post_follow_vfork): Remove macro.
229 (target_follow_fork): Add macro.
231 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
233 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
234 (child_post_follow_vfork): Cancel pending exec event if we follow
236 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
237 events have been processed. Return a fake TARGET_WAITKIND_EXECD
238 event at the following wait call if necessary.
239 * infrun.c (follow_vfork): Don't follow_exec here.
240 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
241 case about HP/UX 10.20. Remove code pushed down to
242 hppah-nat.c:child_wait.
243 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
244 vfork_in_flight is set.
246 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
248 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
249 for the parent's fork event.
250 * infrun.c (handle_inferior_event): Only expect one fork event.
251 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
252 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
254 2002-12-10 Andrew Cagney <ac131313@redhat.com>
256 * PROBLEMS: Delete reference to PR gdb/725.
258 * MAINTAINERS (gdb.c++): Add David Carlton.
260 2002-12-09 David Carlton <carlton@math.stanford.edu>
262 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
263 * cli/cli-cmds.c: Ditto.
265 2002-12-09 Andrew Cagney <cagney@redhat.com>
267 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
268 function address in <>.
269 * gdbarch.c: Re-generate.
271 2002-12-09 David Carlton <carlton@math.stanford.edu>
273 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
275 2002-12-09 David Carlton <carlton@math.stanford.edu>
277 * linespec.c (symtab_from_filename): New function.
278 (decode_line_1): Move code into symtab_from_filename.
280 2002-12-09 Kevin Buettner <kevinb@redhat.com>
282 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
284 2002-12-07 Andrew Cagney <ac131313@redhat.com>
286 * f-valprint.c (info_common_command): Use get_frame_pc.
287 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
288 * ax-gdb.c (agent_command): Ditto.
289 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
290 (rs6000_pop_frame): Ditto.
291 (rs6000_frameless_function_invocation): Ditto.
292 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
293 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
294 * macroscope.c (default_macro_scope): Ditto.
295 * stack.c (print_frame_info_base): Ditto.
296 (print_frame, frame_info, print_frame_label_vars): Ditto.
297 (return_command, func_command, get_frame_language): Ditto.
298 * infcmd.c (finish_command): Ditto.
299 * dummy-frame.c (cached_find_dummy_frame): Ditto.
300 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
301 (break_at_finish_at_depth_command_1): Ditto.
302 (break_at_finish_command_1): Ditto.
303 (until_break_command, get_catch_sals): Ditto.
304 * blockframe.c (func_frame_chain_valid): Ditto.
305 (frameless_look_for_prologue): Ditto.
306 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
308 2002-12-08 Andrew Cagney <ac131313@redhat.com>
310 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
311 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
313 2002-12-08 Andrew Cagney <ac131313@redhat.com>
315 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
317 * gdbarch.h, gdbarch.c: Re-generate.
318 * frame.c (get_prev_frame): Explictly assign prev's pc with value
319 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
321 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
322 declaration to a function returning a CORE_ADDR.
323 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
324 * arch-utils.c (init_frame_pc_noop): Return the PC value.
325 (init_frame_pc_default): Ditto.
326 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
327 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
328 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
329 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
330 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
331 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
333 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
334 to init_frame_pc_noop.
335 (i386_interix_init_frame_pc): Delete function.
336 * z8k-tdep.c (init_frame_pc): Delete function.
337 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
338 (INIT_FRAME_PC_FIRST): Ditto.
339 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
340 (INIT_FRAME_PC_FIRST): Ditto.
341 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
342 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
344 (INIT_FRAME_PC_FIRST): Convert to an expression.
345 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
347 2002-12-08 Andrew Cagney <ac131313@redhat.com>
349 * blockframe.c: Use get_frame_base instead of directly accessing
350 the `struct frame_info' member frame.
351 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
352 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
354 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
356 * Makefile.in (readline_h): Define.
357 (completer.o): Depend on readline_h.
359 (event-top.o): Ditto.
366 (tracepoint.o): Ditto.
369 (tui-hooks.o): Ditto.
372 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
374 More cleanup from import of readline 4.3.
375 * completer.h (complete_line, readline_line_completion_function):
377 (line_completion_function): Removed, not used outside of completer.c.
378 * completer.c (readline_line_completion_function,
379 complete_function, line_completion_function): Use const for first
381 (line_completion_function): Make static.
382 (filename_completer): filename_completion_function is now called
383 rl_filename_completion_function
384 * corelow.c: Include <readline/readline.h>.
390 * top.c (init_main): No need to coerce
391 readline_line_completion_function anymore.
392 * cli/cli-dump.c: Include <readline/readline.h>.
394 2002-12-08 Andrew Cagney <ac131313@redhat.com>
396 * stack.c (frame_info): Use get_prev_frame.
397 * blockframe.c (frame_address_in_block): Ditto.
398 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
399 (rs6000_frameless_function_invocation): Ditto.
400 (rs6000_frame_saved_pc): Ditto.
401 (rs6000_frame_chain): Ditto.
402 * arch-utils.c (init_frame_pc_default): Ditto.
404 2002-12-08 Andrew Cagney <ac131313@redhat.com>
406 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
407 Delete redundant definition.
409 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
411 Import of readline 4.3:
412 * cli/cli-cmds.c: Include readline/tilde.h.
413 * cli/cli-setshow.c: Ditto.
414 * defs.h: Don't declare tilde_expand anymore, since readline
417 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
419 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
420 -Werror on this file.
422 2002-12-07 Andrew Cagney <ac131313@redhat.com>
424 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
426 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
427 * gdbarch.c: Regenerate.
429 2002-12-06 Andrew Cagney <ac131313@redhat.com>
431 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
432 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
433 provide a default value.
434 * gdbarch.h, gdbarch.c: Regenerate.
435 * frame.c (get_prev_frame): Update. Check
436 DEPRECATED_INIT_FRAME_PC_FIRST_P.
437 * s390-tdep.c (s390_gdbarch_init): Update.
438 * mips-tdep.c (mips_gdbarch_init): Update.
439 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
440 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
441 * alpha-tdep.c (alpha_gdbarch_init): Update.
443 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
445 * ia64-linux-nat.c: Include gdb_string.h.
446 * alpha-nat.c: Ditto.
447 * ppc-linux-nat.c: Ditto.
448 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
451 2002-12-05 Andrew Cagney <ac131313@redhat.com>
453 * gdbthread.h: Include "frame.h".
454 (struct thread_info): Replace step_frame_address with
456 * inferior.h: Include "frame.h".
457 (step_frame_id): Replace external variable step_frame_address.
458 * gdbthread.h (save_infrun_state): Replace step_frame_address
459 parameter with step_frame_id parameter.
460 (load_infrun_state): Ditto.
461 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
462 * infcmd.c (step_frame_id, step_1, step_once): Update.
463 * thread.c (load_infrun_state, save_infrun_state): Update.
464 * infrun.c (clear_proceed_status, save_inferior_status): Update.
465 (handle_inferior_event, step_over_function): Update.
466 (normal_stop, context_switch, restore_inferior_status): Update.
467 (struct inferior_status): Replace step_frame_address with
470 2002-12-05 David Carlton <carlton@math.stanford.edu>
472 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
473 DW_TAG_member as well as a declaration as being a C++ static data
475 (read_structure_scope): Combine tests for DW_TAG_member and
478 2002-12-05 David Carlton <carlton@math.stanford.edu>
480 * linespec.c (decode_compound): New function.
481 (decode_line_1): Move code into decode_compound.
483 2002-12-05 David Carlton <carlton@math.stanford.edu>
485 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
487 (lookup_symbol_aux): Do the 'field_of_this' check before checking
488 the static block. See PR gdb/804.
490 2002-12-05 David Carlton <carlton@math.stanford.edu>
492 * symtab.c (lookup_symbol_aux_block): New function.
493 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
495 2002-12-05 Andrew Cagney <ac131313@redhat.com>
497 * gdbarch.sh: Dump the predicate function and macro values.
498 (read): Print error on standard error.
499 * gdbarch.c: Regenerate.
501 2002-12-04 Kevin Buettner <kevinb@redhat.com>
503 * Makefile.in (mips_tdep_h): Define.
504 (mips-tdep.o): Add mips_tdep_h to dependency list.
505 * mips-tdep.h: New file.
506 * mips-tdep.c (mips-tdep.h): Include.
507 (enum mips_abi): Move to mips-tdep.h.
508 (mips_abi): New function.
510 2002-12-04 David Carlton <carlton@math.stanford.edu>
512 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
514 2002-12-04 David Carlton <carlton@math.stanford.edu>
516 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
518 (lookup_symbol_aux_minsyms): New function.
520 2002-12-04 J. Brobecker <brobecker@gnat.com>
522 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
524 2002-12-04 J. Brobecker <brobecker@gnat.com>
526 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
527 which is an obsolete macro name.
529 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
531 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
532 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
534 2002-12-03 H.J. Lu (hjl@gnu.org)
536 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
537 (create_breakpoints): Make sure the addr_string field is not
540 2002-12-03 Andrew Cagney <ac131313@redhat.com>
542 * sparc-nat.c (fetch_inferior_registers)
543 (store_inferior_registers): Add comment on problem of LWP vs
546 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
547 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
548 (lin_lwp_store_registers): Remove.
549 (init_lin_lwp_ops): Use fetch_inferior_registers
550 and store_inferior_registers directly.
551 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
552 (store_inferior_registers): Likewise.
555 2002-12-03 Andrew Cagney <ac131313@redhat.com>
557 * frame.h (get_frame_id): Convert to a function.
558 (null_frame_id, frame_id_p): Declare.
559 (frame_id_eq, frame_id_inner): Declare.
560 (frame_id_build): New function.
561 * frame.c (get_frame_id): Update. Use null_frame_id.
562 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
564 (null_frame_id, frame_id_p): Define.
565 (frame_id_eq, frame_id_inner): Define.
566 (frame_id_build): New function.
567 * varobj.c (varobj_create): Update.
568 (varobj_update): Update.
569 * valops.c (value_assign): Update.
570 (new_root_variable): Update.
571 * infrun.c (save_inferior_status): Update.
572 * breakpoint.c (watch_command_1): Update.
574 2002-12-03 J. Brobecker <brobecker@gnat.com>
576 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
579 2002-12-03 Andrew Cagney <cagney@redhat.com>
581 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
584 * PROBLEMS: Mention PR gdb/725.
586 2002-12-03 Andreas Schwab <schwab@suse.de>
588 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
590 2002-12-02 Adam Fedor <fedor@gnu.org>
591 Klee Dienes <kdienes@apple.com>
593 * objc-lang.c (objc_printstr): Add width arg to match
595 (compare_selectors): Add 'const' to arg types.
596 (compare_classes): Likewise.
597 (find_imps): Cast msym pointer to avoid compiler warning.
598 (print_object_command): Validate the address before
599 passing it to the print routine.
600 (find_objc_msgcall_submethod): Change function argument to
602 * objc-lang.h: Add 'extern' to all function declarations.
603 (value_nsstring): Add declaration.
605 2002-12-02 J. Brobecker <brobecker@gnat.com>
607 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
608 Fixes a build failure on HP/UX.
610 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
612 (hpread_has_name): Advance declaration to avoid a compilation warning.
613 (pst_syms_count): Add missing variable type. By change, the compiler
614 was defaulting to int, which seems a good choice. Fixes a compilation
616 (pst_syms_size): Likewise.
618 2002-12-02 J. Brobecker <brobecker@gnat.com>
620 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
621 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
622 later to set the proper gdbarch methods depending on the osabi.
623 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
625 2002-12-02 J. Brobecker <brobecker@gnat.com>
627 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
628 * osabi.c (gdb_osabi_name): Add strings images for the two new
630 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
632 2002-12-02 Andrew Cagney <ac131313@redhat.com>
634 * MAINTAINERS (Java): Global maintainers are responible for Java.
635 (Past Maintainers): Mention both Anthony Green and Per Bothner as
636 part Java maintainers.
638 2002-12-02 J. Brobecker <brobecker@gnat.com>
640 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
641 Fixes a compilation failure on AiX.
643 2002-12-02 J. Brobecker <brobecker@gnat.com>
645 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
646 why aix-thread.o is not listed.
648 2002-12-01 Andrew Cagney <ac131313@redhat.com>
650 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
651 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
652 * gdbarch.h, gdbarch.c: Re-generate.
653 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
654 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
655 * config/pa/tm-hppa.h, frame.h: Update.
656 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
657 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
658 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
659 * cris-tdep.c, alpha-tdep.c: Update.
660 * frame.c (set_unwind_by_pc, create_new_frame): Use either
661 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
662 (get_prev_frame): Ditto.
664 2002-11-30 Andrew Cagney <cagney@redhat.com>
666 * exec.c (xfer_memory): Replace boolean with int.
667 * p-exp.y: Use 0 instead of false.
668 * corelow.c (gdb_check_format): Change return type to int from
670 * utils.c: Don't include <curses.h> or <term.h> first.
672 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
674 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
675 (m68hc11_register_byte): Remove.
676 (m68hc11_gdbarch_init): Don't set the above.
678 2002-11-29 Andrew Cagney <cagney@redhat.com>
680 * remote-mips.c (mips_initialize): Force a selected frame rebuild
681 by calling get_selected_frame.
682 * ocd.c (ocd_start_remote): Use get_selected frame instead of
683 set_current_frame, create_new_frame, select_frame and
685 * remote-e7000.c (e7000_start_remote): Ditto.
686 * remote-mips.c (common_open): Ditto
687 * remote-rdp.c (remote_rdp_open): Ditto.
689 2002-11-29 Andreas Schwab <schwab@suse.de>
691 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
692 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
693 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
694 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
695 read_memory_unsigned_integer instead of read_memory_integer when
696 dealing with addresses and instruction opcodes.
697 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
698 (m68k_linux_frame_saved_pc): Likewise.
700 2002-11-29 Andrew Cagney <ac131313@redhat.com>
702 * stack.c (selected_frame, select_frame): Move from here ...
703 * frame.c (selected_frame, select_frame): ... to here. Include
705 * Makefile.in (frame.o): Update dependencies.
706 * frame.c (get_selected_frame): New function.
707 * frame.h (get_selected_frame): Declare.
708 (deprecated_selected_frame): Rename selected_frame.
709 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
710 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
711 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
712 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
713 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
714 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
715 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
716 * z8k-tdep.c, cli/cli-cmds.c: Update.
718 2002-11-29 Andrew Cagney <ac131313@redhat.com>
720 * frame.h (get_selected_block): Add comments.
722 2002-11-28 Andrew Cagney <ac131313@redhat.com>
724 * frame.c (pc_notcurrent): New function.
725 (find_frame_sal): New function.
726 * frame.h (find_frame_sal): Declare.
727 (struct symtab_and_line): Add opaque declaration.
728 * stack.c (print_frame_info_base): Use find_frame_sal instead of
731 * ada-lang.c (find_printable_frame): Ditto.
733 2002-11-28 J. Brobecker <brobecker@gnat.com>
735 * configure.in: Check that the pthdebug library is recent enough
736 before enabling thread support on native AiX.
737 * configure: Regenerate.
739 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
740 from the list of object files as it is now appended by configure
741 if thread support is enabled.
742 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
743 if thread support is enabled.
745 2002-11-28 Andrew Cagney <cagney@redhat.com>
747 * stack.c (get_selected_block): In-line get_current_block.
748 * frame.h (get_current_block): Delete declaration.
749 * blockframe.c (get_current_block): Delete function.
751 2002-11-28 Andrew Cagney <ac131313@redhat.com>
753 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
754 USE_GENERIC_DUMMY_FRAMES.
755 * gdbarch.h, gdbarch.c: Regenerate.
756 * valops.c, frame.c: Update.
757 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
758 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
759 * config/pa/tm-hppa.h, blockframe.c: Update.
760 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
761 * m68k-tdep.c, alpha-tdep.c: Ditto.
763 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
764 * mips-tdep.c: Ditto.
766 2002-11-27 Andrew Cagney <ac131313@redhat.com>
768 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
769 (USE_GENERIC_DUMMY_FRAMES): Default to true.
770 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
771 * gdbarch.c, gdbarch.h: Re-generate.
772 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
773 (CALL_DUMMY_LOCATION): Delete macro definition.
774 (PC_IN_CALL_DUMMY): Delete macro definitions.
776 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
777 default is already generic_pc_in_call_dummy.
778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
779 * v850-tdep.c (v850_gdbarch_init): Ditto.
780 * sh-tdep.c (sh_gdbarch_init): Ditto.
781 * rs6000-tdep.c (rs6000_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 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
787 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
788 * avr-tdep.c (avr_gdbarch_init): Ditto.
790 * arm-tdep.c (arm_gdbarch_init): Do not set
791 use_generic_dummy_frames, default is already 1.
792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
793 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
794 * v850-tdep.c (v850_gdbarch_init): Ditto.
795 * sh-tdep.c (sh_gdbarch_init): Ditto.
796 * s390-tdep.c (s390_gdbarch_init): Ditto.
797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
798 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
799 * mips-tdep.c (mips_gdbarch_init): Ditto.
800 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
802 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
803 * i386-tdep.c (i386_gdbarch_init): Ditto.
804 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
805 * frv-tdep.c (frv_gdbarch_init): Ditto.
806 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
807 * cris-tdep.c (cris_gdbarch_init): Ditto.
808 * avr-tdep.c (avr_gdbarch_init): Ditto.
810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
811 call_dummy_location, default is already AT_ENTRY_POINT.
812 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
813 * v850-tdep.c (v850_gdbarch_init): Ditto.
814 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
815 * sh-tdep.c (sh_gdbarch_init): Ditto.
816 * s390-tdep.c (s390_gdbarch_init): Ditto.
817 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
819 * mips-tdep.c (mips_gdbarch_init): Ditto.
820 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
822 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
823 * i386-tdep.c (i386_gdbarch_init): Ditto.
824 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
825 * frv-tdep.c (frv_gdbarch_init): Ditto.
826 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
827 * cris-tdep.c (cris_gdbarch_init): Ditto.
828 * avr-tdep.c (avr_gdbarch_init): Ditto.
829 * arm-tdep.c (arm_gdbarch_init): Ditto.
830 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
832 2002-11-28 Andrew Cagney <cagney@redhat.com>
834 * frame.h: Update comments on set_current_frame, create_new_frame,
835 flush_cached_frames, reinit_frame_cache, select_frame and
838 2002-11-27 Andrew Cagney <cagney@redhat.com>
840 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
841 deprecated pc_in_call_dummy function.
842 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
843 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
844 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
845 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
846 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
848 2002-11-26 Martin M. Hunt <hunt@redhat.com>
850 * Makefile.in: Remove Tix dependencies.
851 * acinclude.m4: Ditto.
853 * configure.in: Ditto.
854 * configure: Regenerated.
856 2002-11-26 Andrew Cagney <ac131313@redhat.com>
858 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
859 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
860 * gdbarch.c: Re-generate.
862 2002-11-26 Andrew Cagney <ac131313@redhat.com>
864 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
865 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
866 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
867 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
868 pc_in_call_dummy_at_entry_point.
869 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
870 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
871 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
872 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
873 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
874 pc_in_call_dummy_on_stack.
875 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
876 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
877 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
878 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
879 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
881 2002-11-26 Andrew Cagney <ac131313@redhat.com>
883 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
884 pc_in_call_dummy_before_text_end
885 (deprecated_pc_in_call_dummy_after_text_end): Rename
886 pc_in_call_dummy_after_text_end.
887 (deprecated_pc_in_call_dummy_on_stack): Rename
888 pc_in_call_dummy_on_stack.
889 (deprecated_pc_in_call_dummy_at_entry_point): Rename
890 pc_in_call_dummy_at_entry_point.
891 * m68k-tdep.c (m68k_gdbarch_init): Update.
892 * s390-tdep.c (s390_gdbarch_init): Update.
893 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
894 * vax-tdep.c (vax_gdbarch_init): Update.
895 * sparc-tdep.c (sparc_gdbarch_init): Update.
896 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
898 * i386-tdep.c (i386_gdbarch_init): Update.
899 * frv-tdep.c (frv_gdbarch_init): Update.
900 * cris-tdep.c (cris_gdbarch_init): Update.
901 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
902 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
903 (deprecated_pc_in_call_dummy_after_text_end)
904 (deprecated_pc_in_call_dummy_on_stack)
905 (deprecated_pc_in_call_dummy_at_entry_point): Update.
906 * alpha-tdep.c (alpha_gdbarch_init): Update.
908 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
910 * acconfig.h (HAVE_PREAD64): Add.
911 * configure.in: Check for pread64.
912 * config.in: Regenerated.
913 * configure: Regenerated.
914 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
915 * linux-proc.c (linux_proc_xfer_memory): New function.
916 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
918 2002-11-25 David Carlton <carlton@math.stanford.edu>
920 * dwarf2read.c (scan_partial_symbols): Descend into namespace
923 2002-11-25 Andrew Cagney <ac131313@redhat.com>
925 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
926 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
928 2002-11-25 Jim Blandy <jimb@redhat.com>
930 * symfile.c (init_objfile_sect_indices): New function.
931 (default_symfile_offsets): Move the section-index-initializing
932 stuff into init_objfile_sect_indices, and call that.
934 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
935 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
937 * symfile.c (syms_from_objfile): Adjust indentation.
939 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
940 || info_verbose isn't true.
942 2002-11-24 Andrew Cagney <ac131313@redhat.com>
944 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
945 default to get_frame_base.
946 * gdbarch.h, gdbarch.c: Regenerate.
947 * arch-utils.c (default_frame_address): Delete function.
948 * arch-utils.h (default_frame_address): Delete declaration
950 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
952 * varobj.c (find_frame_addr_in_frame_chain):
953 Use get_frame_base instead of FRAME_FP,
956 2002-11-19 Andrew Cagney <ac131313@redhat.com>
958 * frame.h (FRAME_FP): Delete macro.
959 (get_frame_base): New function declaration.
960 * frame.c (get_frame_base): New function.
961 (get_frame_id): Use ->frame.
962 (frame_find_by_id): Rewrite to use get_frame_id.
963 * blockframe.c: Use get_frame_base instead of FRAME_FP.
964 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
965 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
966 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
967 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
968 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
969 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
971 2002-11-24 Andrew Cagney <ac131313@redhat.com>
973 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
975 2002-11-24 Andrew Cagney <ac131313@redhat.com>
977 * frame.c (set_unwind_by_pc): Revert change below, use
979 (get_prev_frame): Ditto.
981 2002-11-24 Andrew Cagney <ac131313@redhat.com>
983 * dummy-frame.c (pc_in_dummy_frame): New function.
984 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
985 (find_dummy_frame): Update comment.
986 (generic_pop_current_frame): Use get_frame_type.
987 * dummy-frame.h (pc_in_dummy_frame): Declare.
988 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
989 (create_new_frame): Use pc_in_dummy_frame.
990 (get_prev_frame): Use pc_in_dummy_frame.
991 (frame_saved_regs_register_unwind): Use get_prev_frame.
992 (deprecated_generic_get_saved_register): Use get_prev_frame.
994 2002-11-23 Andrew Cagney <ac131313@redhat.com>
996 * blockframe.c (find_frame_addr_in_frame_chain): Move function
998 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
999 (varobj_create): Note that frame ID should be used.
1000 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1002 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1004 * breakpoint.c: Include "gdb_assert.h".
1005 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1007 * Makefile.in (breakpoint.o): Update dependencies.
1008 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1009 deprecated_frame_in_dummy.
1010 * stack.c (print_frame_info_base): Ditto.
1011 (frame_info): Ditto.
1012 (print_frame_info_base): Ditto. Delete dead code.
1014 2002-11-23 Andreas Schwab <schwab@suse.de>
1016 * Makefile.in (m68k_tdep_h): Define.
1017 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1018 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1019 * m68k-tdep.c: Move register number enum ...
1020 * m68k-tdep.h: ... to this new file and rename the constants from
1021 E_* to M68K_*. All uses changed.
1022 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1023 * abug-rom.c: Include "m68k-tdep.h". Use
1024 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1025 * cpu32bug-rom.c: Likewise.
1026 * dbug-rom.c: Likewise.
1027 * m68k-tdep.c: Likewise.
1028 * m68klinux-nat.c: Likewise.
1029 * remote-est.c: Likewise.
1030 * rom68k-rom.c: Likewise.
1031 * config/m68k/tm-linux.h: Likewise.
1033 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1035 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1036 dummy frame initialization code.
1037 * mips-tdep.c (mips_gdbarch_init): Ditto.
1039 2002-11-22 Christopher Faylor <cgf@redhat.com>
1041 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1044 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1046 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1047 to default_frame_address.
1048 * gdbarch.h, gdbarch.c: Re-generate.
1050 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1051 or frame_locals_address to default_frame_address.
1052 * m68k-tdep.c (m68k_gdbarch_init): Update.
1053 * i386-tdep.c (i386_gdbarch_init): Update.
1054 * frv-tdep.c (frv_gdbarch_init): Update.
1055 * sh-tdep.c (sh_gdbarch_init): Update.
1056 * v850-tdep.c (v850_gdbarch_init): Update.
1057 * sparc-tdep.c (sparc_gdbarch_init): Update.
1058 * mips-tdep.c (mips_gdbarch_init): Update.
1059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1060 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1063 * cris-tdep.c (cris_frame_args_address): Delete function.
1064 (cris_frame_locals_address): Delete function.
1065 (cris_gdbarch_init): Do not set frame_args_address or
1066 frame_locals_address.
1068 2002-11-22 Michael Snyder <msnyder@redhat.com>
1070 * thread-db.c (thread_db_load): Tell the user what's going on
1071 if dlopen fails on libthread_db.
1073 2002-11-23 Andreas Schwab <schwab@suse.de>
1075 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1076 invariant return values.
1078 2002-11-22 Andreas Schwab <schwab@suse.de>
1080 * valops.c (value_slice): Move declaration of `offset' to avoid
1083 2002-11-22 Christopher Faylor <cgf@redhat.com>
1085 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1086 (struct so_stuff): Add end_addr field.
1087 (register_loaded_dll): Calculate and store end address of loaded dll.
1088 (solib_address): New function.
1089 (child_solib_loaded_library_pathname): Pass carefully constructed
1090 section info to safe_symbol_file_add rather than ignoring it.
1091 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1093 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1094 (child_create_inferior): Fix a compiler warning.
1095 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1096 (solib_address): Declare new function.
1098 2002-11-22 Andreas Schwab <schwab@suse.de>
1100 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1103 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1105 * maint.c (_initialize_maint_cmds): Fix typo. From
1106 Francesco Potorti` <pot@gnu.org>.
1108 2002-11-21 Andrew Cagney <cagney@redhat.com>
1110 * mips-tdep.c (mips_dump_tdep): Delete references to
1111 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1112 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1113 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1114 * printcmd.c (build_address_symbolic): Delete calls to
1115 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1116 (address_info): Ditto.
1119 2002-11-19 Klee Dienes <kdienes@apple.com>
1120 Adam Fedor <fedor@gnu.org>
1122 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1123 the ability to explicitly specify the quote characters and word
1124 break characters; if NULL is specified for either, use the old
1125 behavior of using the characters used by the completer.
1126 (skip_chars): New function. Convenience wrapper around
1127 skip_quoted_chars to provide the original skip_chars behavior.
1128 * completer.h (skip_quoted_chars): Add prototype.
1130 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1132 Problems reported by Paul Eggert.
1133 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1135 2002-11-19 Andreas Schwab <schwab@suse.de>
1137 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1138 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1139 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1140 (m68k_linux_frame_saved_pc): Move to ...
1141 * m68klinux-tdep.c: ... here. New file.
1142 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1143 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1145 2002-11-19 Adam Fedor <fedor@gnu.org>
1147 * objc-exp.y: Revert to old skip_quoted usage.
1149 2002-11-19 Adam Fedor <fedor@gnu.org>
1151 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1152 (objc_lang_h): Define.
1153 (YYFILES): Add objc-exp.tab.c.
1154 (local-maintainer-clean): Remove objc-exp.tab.c.
1155 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1157 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1159 * p-exp.y (typecast rule): Add automatic dereference of
1160 pascal classes if needed.
1161 (THIS): Set current_type.
1162 Automatically dereference pascal classes.
1163 (typebase rule): Add ^typebase recognition.
1165 2002-11-18 Adam Fedor <fedor@gnu.org>
1167 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1168 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1169 (op_name): Handle OP_OBJC_SELF.
1170 * Makefile.in (expprint.o): Add additional depends.
1172 2002-11-18 Adam Fedor <fedor@gnu.org>
1174 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1175 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1176 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1177 * objc-exp.y: Likewise.
1179 2002-11-18 Adam Fedor <fedor@gnu.org>
1181 * gdb/parser-defs.h: (struct objc_class_str): New structure
1182 for parsing ObjC classes.
1184 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1186 * stack.c (frame_relative_level): Copy function from here ...
1187 * frame.c (frame_relative_level): ...to here.
1189 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1191 * frame.h (enum frame_type): Define.
1192 (get_frame_type): Declare.
1193 (struct frame_info): Add field `type'. Delete field
1194 signal_handler_caller.
1195 (deprecated_set_frame_signal_handler_caller): Declare.
1196 * frame.c (get_frame_type): New function.
1197 (deprecated_set_frame_type): New function.
1198 (create_new_frame): Set the frame's type.
1199 (get_prev_frame): Similar.
1200 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1201 * s390-tdep.c: Ditto.
1202 * m68klinux-nat.c: Ditto.
1203 * ns32k-tdep.c: Ditto.
1204 * x86-64-linux-tdep.c: Ditto.
1205 * vax-tdep.c: Ditto.
1206 * rs6000-tdep.c: Ditto.
1207 * ppc-linux-tdep.c: Ditto.
1208 * i386-interix-tdep.c: Ditto.
1209 * mips-tdep.c: Ditto.
1210 * m68k-tdep.c: Ditto.
1211 * hppa-tdep.c: Ditto.
1212 * ia64-tdep.c: Ditto.
1213 * cris-tdep.c: Ditto.
1214 * arm-tdep.c: Ditto.
1215 * alpha-tdep.c: Ditto.
1216 * i386-tdep.c: Ditto.
1218 * ada-lang.c: Ditto.
1219 * blockframe.c: Update.
1220 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1221 deprecated_set_frame_type instead of signal_handler_caller.
1222 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1223 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1224 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1226 2002-11-18 Klee Dienes <kdienes@apple.com>
1228 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1230 2002-11-18 Klee Dienes <kdienes@apple.com>
1232 * buildsym.c (pop_context): Add comment.
1234 2002-11-18 Klee Dienes <kdienes@apple.com>
1236 * buildsym.h (pop_context): Convert to function, defined in
1238 * buildsym.c: Include gdb_assert.h.
1239 (pop_context): Implement as C function. Add check for stack
1241 * dbxread.c (process_one_symbol): Complain and stop processing
1242 that symbol if we are already at the top of the context stack for
1243 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1244 when processing N_RBRAC.
1246 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1248 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1250 (struct target_waitstatus): Add opaque definition.
1251 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1252 * exec.c (init_exec_ops): Likewise.
1253 * fork-child.c (clone_and_follow_inferior): Remove.
1254 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1255 * inferior.h (clone_and_follow_inferior): Remove prototype.
1256 * infrun.c (follow_fork_mode_both): Remove.
1257 (follow_fork_mode_kind_names): Remove commented out "both".
1258 (follow_inferior_fork): Remove follow_fork_mode_both support.
1259 * inftarg.c (child_clone_and_follow_inferior): Remove.
1260 (child_post_follow_inferior_by_clone): Remove.
1261 (init_child_ops): Don't set to_clone_and_follow_inferior
1262 or to_post_follow_inferior_by_clone.
1263 * target.c (default_clone_and_follow_inferior): Remove.
1264 (cleanup_target): Don't set to_clone_and_follow_inferior
1265 or to_post_follow_inferior_by_clone.
1266 (find_default_clone_and_follow_inferior): Remove.
1267 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1268 (debug_to_clone_and_follow_inferior): Remove.
1269 (debug_to_post_follow_inferior_by_clone): Remove.
1270 (setup_target_debug): Don't set to_clone_and_follow_inferior
1271 or to_post_follow_inferior_by_clone.
1272 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1273 and to_post_follow_inferior_by_clone.
1274 (child_clone_and_follow_inferior): Remove prototype.
1275 (child_post_follow_inferior_by_clone): Remove prototype.
1276 (target_clone_and_follow_inferior): Remove macro.
1277 (target_post_follow_inferior_by_clone): Remove macro.
1278 (find_default_clone_and_follow_inferior): Remove prototype.
1280 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1282 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1283 inferior_has_vforked, and inferior_has_execd instead of
1284 target_has_forked, target_has_vforked, and target_has_execd.
1285 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1286 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1287 (CHILD_WAIT): Define.
1288 (child_wait): Add prototype.
1289 * hppah-nat.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 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1295 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1296 and hpux_has_syscall_event instead of the target hooks.
1297 * infrun.c (inferior_has_forked, inferior_has_vforked)
1298 (inferior_has_execd): New functions.
1299 * inftarg.c (not_same_real_pid): Remove.
1300 (child_wait): Remove references to not_same_real_pid,
1301 target_has_forked, target_has_vforked, target_has_execd,
1302 and target_has_syscall_event.
1303 (child_has_forked, child_has_vforked, child_has_execd)
1304 (child_has_syscall_event): Remove.
1305 (init_child_ops): Remove references to child_has_forked,
1306 child_has_vforked, child_has_execd, and child_has_syscall_event.
1307 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1308 (hpux_has_vforked): Likewise, from child_has_vforked.
1309 (hpux_has_execd): Likewise, from child_has_execd.
1310 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1311 * target.c (cleanup_target): Remove references to
1312 to_has_forked, to_has_vforked, to_has_execd, and
1313 to_has_syscall_event.
1314 (update_current_target): Likewise.
1315 (setup_target_debug): Likewise.
1316 (debug_to_has_forked): Remove.
1317 (debug_to_has_vforked): Remove.
1318 (debug_to_has_execd): Remove.
1319 (debug_to_has_syscall_event): Remove.
1320 * target.h (struct target_ops): Remove to_has_forked.
1321 to_has_vforked, to_has_execd, and to_has_syscall_event.
1322 (child_has_forked, child_has_vforked, child_has_execd)
1323 (child_has_syscall_event): Remove prototypes.
1324 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1326 (target_has_forked, target_has_vforked, target_has_execd)
1327 (target_has_syscall_event): Remove macros.
1329 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1331 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1332 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1333 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1334 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1335 * target.c (cleanup_target): Remove reference to
1336 to_can_follow_vfork_prior_to_exec.
1337 (update_current_target): Likewise.
1338 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1339 (setup_target_debug): Remove reference to
1340 to_can_follow_vfork_prior_to_exec.
1341 * target.h (struct target_ops): Remove
1342 to_can_follow_vfork_prior_to_exec.
1343 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1344 (target_can_follow_vfork_prior_to_exec): Remove definition.
1345 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1347 * infrun.c (follow_vfork_when_exec): Remove.
1348 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1349 (follow_exec): Likewise.
1350 (handle_inferior_event): Likewise.
1351 (keep_going): Likewise.
1353 2002-11-15 Andrew Cagney <cagney@redhat.com>
1355 * frame.c (generic_unwind_get_saved_register): Make static.
1356 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1357 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1358 defaults to generic_unwind_get_saved_register.
1359 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1361 * frv-tdep.c (frv_gdbarch_init): Ditto.
1362 * i386-tdep.c (i386_gdbarch_init): Ditto.
1363 * s390-tdep.c (s390_gdbarch_init): Ditto.
1364 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1365 * v850-tdep.c (v850_gdbarch_init): Ditto.
1366 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1367 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1368 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1370 2002-11-15 Andrew Cagney <cagney@redhat.com>
1372 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1375 2002-11-15 Andrew Cagney <cagney@redhat.com>
1377 * frame.h (sigtramp_saved_pc): Delete declaration.
1378 * blockframe.c (sigtramp_saved_pc): Delete function.
1379 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1380 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1381 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1382 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1384 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1386 * frame.c (frame_pc_unwind): New function.
1387 (frame_saved_regs_pc_unwind): New function.
1388 (frame_register_unwind): Pass unwind_cache instead of
1389 register_unwind_cache.
1390 (set_unwind_by_pc): Add unwind_pc parameter, set.
1391 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1392 (get_prev_frame): Ditto.
1393 * frame.h (frame_pc_unwind_ftype): Declare.
1394 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1395 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1396 (frame_pc_unwind): Declare.
1397 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1398 (struct dummy_frame): Add comment mentioning that values are for
1400 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1401 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1402 (generic_file_frame_chain_valid): Ditto.
1403 * stack.c (frame_info): Ditto.
1405 2002-11-15 David Carlton <carlton@math.stanford.edu>
1407 * linespec.c (locate_first_half): New function.
1408 (decode_line_1): Move code into locate_first_half.
1410 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1412 * complaints.h: Add comment explaining how to eliminate a
1413 deprecated_complain call.
1414 * complaints.h: Fix spelling errors.
1416 2002-11-15 David Carlton <carlton@math.stanford.edu>
1418 * printcmd.c: Remove #include "disasm.h".
1420 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1422 * frame.h: Move the most relevant interface functions to the start
1425 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1427 * regcache.h (deprecated_registers): Rename registers.
1428 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1429 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1430 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1431 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1432 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1433 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1434 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1435 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1436 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1437 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1438 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1439 * v850ice.c: Update.
1441 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1443 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1446 2002-11-13 Andrew Cagney <cagney@redhat.com>
1448 * regcache.h (deprecated_read_register_bytes): Rename
1449 read_register_bytes.
1450 (deprecated_write_register_bytes): Rename write_register_bytes.
1451 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1452 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1453 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1454 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1455 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1456 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1457 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1458 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1459 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1460 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1461 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1462 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1463 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1464 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1466 2002-11-13 Jim Blandy <jimb@redhat.com>
1468 * findvar.c (read_var_value): Doc fix.
1470 2002-11-13 Andrew Cagney <cagney@redhat.com>
1472 * regcache.c (struct regcache): Replace passthough_p with
1474 (regcache_xmalloc): Initialize readonly_p.
1475 (build_regcache): Initialize readonly_p.
1476 (regcache_save): New function.
1477 (regcache_restore): New function.
1478 (regcache_cpy): Re-implement using regcache_save and
1480 (regcache_raw_read): Update.
1481 (regcache_cooked_read): When a read-only cache, checked for cached
1482 pseudo register values.
1483 (regcache_raw_write): Assert that the cache is not read-only.
1484 Remove code handling a non-passthrough cache.
1485 * regcache.h (regcache_save): Declare.
1486 (regcache_restore): Declare.
1488 2002-11-13 Andrew Cagney <cagney@redhat.com>
1490 * regcache.c (struct regcache_descr): Add fields
1491 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1492 (init_legacy_regcache_descr): Compute the size of a cooked
1493 register cache and then assign that to sizeof_raw_registers. Set
1494 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1495 (init_legacy_regcache_descr): Ditto.
1497 2002-11-13 Andrew Cagney <cagney@redhat.com>
1499 * regcache.c (register_buffer): Move to near start of file, update
1501 (regcache_raw_read): Use.
1502 (regcache_raw_write): Use.
1503 (struct regcache): Rename raw_registers to registers and
1504 raw_register_valid_p to register_valid_p.
1505 (regcache_xmalloc): Update.
1506 (regcache_xfree): Update.
1507 (register_buffer): Update.
1508 (regcache_cpy): Update.
1509 (regcache_cpy_no_passthrough): Update.
1510 (regcache_valid_p): Update.
1511 (deprecated_grub_regcache_for_registers): Update.
1512 (deprecated_grub_regcache_for_register_valid): Update.
1513 (set_register_cached): Update.
1514 (regcache_raw_write): Update.
1516 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1518 * p-exp.y (name_not_typename): Use copy_name to
1519 set current_type variable for fields of THIS.
1521 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1523 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1524 * monitor.c (init_base_monitor_ops): Likewise.
1525 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1526 * remote-array.c (init_array_ops): Likewise.
1527 * remote-e7000.c (init_e7000_ops): Likewise.
1528 * remote-es.c (init_es1800_ops): Likewise.
1529 (init_es1800_child_ops): Likewise.
1530 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1531 * remote-sim.c (init_gdbsim_ops): Likewise.
1532 * remote-st.c (init_st2000_ops): Likewise.
1533 * sol-thread.c (init_sol_core_ops): Likewise.
1534 (init_sol_thread_ops): Likewise.
1535 * v850ice.c (init_850ice_ops): Likewise.
1536 * win32-nat.c (init_child_ops): Likewise.
1537 * wince.c (init_child_ops): Likewise.
1539 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1541 * utils.c (gdb_realpath): Make rp a constant pointer.
1543 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1545 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1546 a constant buffer; cannonicalize_file_name(); realpath() with a
1547 pathconf() defined buffer, xstrdup().
1549 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1551 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1552 to hang2.C; hang3.c to hang3.C.
1554 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1556 * findvar.c (read_var_value): Reenable TLS code.
1558 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1559 Jim Blandy <jimb@redhat.com>
1561 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1562 * target.c (update_current_target): Add
1563 to_get_thread_local_address.
1564 * target.h (to_get_thread_local_address): Export.
1565 (target_get_thread_local_address): Define.
1566 (target_get_thread_local_address_p): Define.
1567 * thread-db.c: Include solib-svr4.h.
1568 (td_thr_tls_get_addr_p): Define.
1569 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1570 (thread_db_get_thread_local_address): New function.
1571 (init_thread_db_ops): Initialize to_get_thread_local_address.
1572 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1573 * configure: Regenerate.
1574 * config.in: Regenerate.
1576 2002-11-11 David Carlton <carlton@math.stanford.edu>
1578 * linespec.c (set_flags): New function.
1579 (decode_line_1): Move code into set_flags.
1581 2002-11-11 David Carlton <carlton@math.stanford.edu>
1583 * linespec.c (decode_line_1): Move chunks of code to separate
1585 (initialize_defaults): New function.
1586 (decode_indirect): New function.
1588 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1590 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1591 instead of void_code_ptr.
1592 (sigtramp_saved_pc): Ditto.
1594 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1597 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1599 * gdbtypes.h (struct main_type): Move artificial flag out of
1600 loc. New member of ``struct field'' named static_kind. Reduce
1601 overloaded meaning of bitsize.
1602 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1603 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1604 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1606 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1608 (template_to_fixed_record_type, template_to_static_fixed_type)
1609 (to_record_with_fixed_variant_part): Likewise.
1610 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1611 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1612 * dwarfread.c (struct_type, enum_type): Likewise.
1613 * hpread.c (hpread_read_enum_type)
1614 (hpread_read_function_type, hpread_read_doc_function_type)
1615 (hpread_read_struct_type): Likewise.
1616 * mdebugread.c (parse_symbol): Likewise.
1618 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1620 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1621 * stack.c (print_frame_info_base): Update.
1622 (print_frame_info_base, frame_info): Update.
1623 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1624 (sparc_frame_saved_pc): Update.
1625 * ada-lang.c (find_printable_frame): Update.
1626 * breakpoint.c (deprecated_frame_in_dummy): Update.
1628 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1630 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1632 (regmap): Extend to cover all registers.
1633 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1634 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1636 (fetch_register, sore_register): Simplify.
1637 (old_fetch_inferior_registers, old_store_inferior_registers):
1639 (cannot_fetch_register, cannot_store_register): Change
1640 implementation to use regmap array to decide which registers
1641 cannot be fetched/stored. This removes $orig_eax from the
1642 registers that cannot be fetched/stored.
1643 (fetch_inferior_registers): Call fetch_register directly instead
1644 of calling old_fetch_inferior_registers.
1645 (store_inferior_registers): Call store_register directly instead
1646 of calling old_store_inferior_registers.
1647 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1648 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1649 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1651 2002-11-09 Klee Dienes <kdienes@apple.com>
1653 * i387-tdep.c (i387_supply_register): When called with NULL as a
1654 buffer, mark the register as not provided (to mirror the behavior
1655 of supply_register).
1656 (i387_supply_fxsave): Ditto.
1657 (i387_supply_fsave): Ditto (inherits the behavior from
1658 i387_supply_register).
1660 2002-11-09 Klee Dienes <kdienes@apple.com>
1662 * blockframe.c (sigtramp_saved_pc): Use
1663 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1664 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1665 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1667 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1669 * frame.c (get_prev_frame): Test prev_p to identify a previously
1670 unwound frame. Initialize prev_p.
1671 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1674 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1676 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1677 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1678 more comments. Zap dead code.
1680 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1682 * infcmd.c (print_vector_info, print_float_info): Move code that
1683 checks whether the target has any registers and whether there is a
1684 selected frame up, such that it is also used if a target provides
1685 multi-arch definitions of these functions.
1687 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1689 * Makefile.in (DESTDIR): Define.
1690 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1693 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1694 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1696 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1698 * i386-linux-tdep.c: Include "reggroups.h".
1699 (i386_linux_register_reggroup_p): New function.
1700 (i386_linux_init_abi): Set register_reggroup_p to
1701 i386_linux_register_reggroup_p.
1702 * i386-tdep.h (i386_register_reggroup_p): Declare.
1703 * i386-tdep.c: Include "reggroups.h".
1704 (i386_init_reggroups): New function.
1705 (i386_add_reggroups): New function.
1706 (i386_register_reggroup_p): New function.
1707 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1708 (_initialize_i386_tdep): Call i386_init_reggroups.
1709 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1712 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1714 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1715 request that's available in *BSD.
1717 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1719 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1722 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1724 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1725 * dummy-frame.c (find_dummy_frame): Rename
1726 generic_find_dummy_frame, make static. Return the dummy frame
1727 instead of the regcache.
1728 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1729 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1730 (dummy_frame_register_unwind): Rename
1731 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1732 * dummy-frame.h (dummy_frame_register_unwind): Rename
1733 generic_call_dummy_register_unwind.
1735 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1737 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1738 except the inclusion of "i386/tm-i386.h", to...
1739 * config/i386/nm-i386v42mp.h: ...here.
1740 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1742 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1744 * Makefile.in (frame.o): Update dependencies.
1745 * blockframe.c (current_frame, frame_obstack_alloc)
1746 (frame_saved_regs_zalloc, get_current_frame)
1747 (set_current_frame, create_new_frame)
1748 (set_unwind_by_pc, get_next_frame)
1749 (flush_cached_frames, reinit_frame_cache)
1750 (frame_saved_regs_register_unwind)
1751 (deprecated_generic_get_saved_register)
1752 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1753 (_initialize_blockframe): Move frame code from here...
1754 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1755 "annotate.h" and "dummy-frame.h".
1756 (_initialize_frame): New function.
1758 2002-11-08 Jim Blandy <jimb@redhat.com>
1760 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1761 when we finish a function a context.
1762 * buildsym.h (outermost_context_p): New macro.
1763 (Bug analyzed by David Edelsohn.)
1765 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1767 * blockframe.c: Include "dummy-frame.h".
1768 (struct dummy_frame, dummy_frame_stack)
1769 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1770 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1771 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1772 (generic_save_call_dummy_addr, generic_pop_current_frame)
1773 (generic_pop_dummy_frame, generic_fix_call_dummy)
1774 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1775 dummy frame code from here...
1776 * dummy-frame.c: ...to here. New file.
1777 * dummy-frame.h: New file.
1778 (generic_call_dummy_register_unwind): Declare.
1779 (generic_find_dummy_frame): Declare.
1780 * Makefile.in (SFILES): Add dummy-frame.c.
1781 (dummy-frame.o): Specify dependencies.
1782 (dummy_frame_h): Define.
1783 (COMMON_OBS): Add dummy-frame.o.
1784 (blockframe.o): Update dependencies.
1786 2002-11-08 Jim Blandy <jimb@redhat.com>
1788 * dwarf2read.c (read_func_scope): Restore local_symbols and
1789 param_symbols after we finish the function context. (Based on a
1790 patch from David Edelsohn.)
1792 2002-11-08 David Carlton <carlton@math.stanford.edu>
1794 * linespec.c (symbol_found): New function.
1795 (minsym_found): New function.
1796 (decode_line_1): Separate out some code into separate functions.
1798 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1800 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1801 the benefit of the interix target.
1802 * i386-tdep.h (i386_frameless_signal_p): Declare.
1804 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1806 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1807 declaration that snuck in from change below.
1809 2002-11-06 Andrew Cagney <cagney@redhat.com>
1811 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1813 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1814 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1815 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1816 (i386_mxcsr_regnum_p): new function. Use instead of
1818 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1819 (i386_sse_regnum_p): Declare.
1820 (i386_mxcsr_regnum_p): Declare.
1821 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1822 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1823 (IS_FP_REGNUM): Update definition.
1824 (IS_FPU_CTRL_REGNUM): Update definition..
1825 (IS_SSE_REGNUM): Update definition..
1826 * i386v-nat.c (register_u_addr): Update.
1827 * go32-nat.c (fetch_register): Update.
1828 (store_register): Update.
1830 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1832 Preparation work to convert the hppa targets to multiarch partial.
1834 * hppa-tdep.c: Add new functions replacing macro bodies from
1835 config/pa/tm-hppa.h. These function will be used to initialize
1836 the gdbarch structure. Import some comments from tm-hppa.h,
1837 and place them where appropriate, to avoid loosing them when
1838 we cleanup this file.
1839 (hppa_reg_struct_has_addr): New function.
1840 (hppa_inner_than): New function.
1841 (hppa_stack_align): New function.
1842 (hppa_pc_requires_run_before_use): New function.
1843 (hppa_instruction_nullified): New function.
1844 (hppa_register_byte): New function.
1845 (hppa_register_virtual_type): New function.
1846 (hppa_store_struct_return): New function.
1847 (hppa_cannot_store_register): New function.
1848 (hppa_frame_args_address): New function.
1849 (hppa_frame_locals_address): New function.
1850 (hppa_smash_text_address): New function.
1851 (hppa_coerce_float_to_double): New function. Requires the inclusion
1854 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1856 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1857 gdbarch-eligible macro to a call to the new associated function
1858 created in hppa-tdep.c.
1859 (INNER_THAN): Likewise.
1860 (STACK_ALIGN): Likewise.
1861 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1862 (INSTRUCTION_NULLIFIED): Likewise.
1863 (REGISTER_BYTE): Likewise.
1864 (REGISTER_VIRTUAL_TYPE): Likewise.
1865 (STORE_STRUCT_RETURN): Likewise.
1866 (CANNOT_STORE_REGISTER): Likewise.
1867 (FRAME_ARGS_ADDRESS): Likewise.
1868 (FRAME_LOCALS_ADDRESS): Likewise.
1869 (SMASH_TEXT_ADDRESS): Likewise.
1870 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1871 (ABOUT_TO_RETURN): Delete, as no longer used.
1873 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1875 * printcmd.c (disassemble_command): Remove obsolete function.
1876 (_initialize_printcmd): Do not create disassemble command here.
1877 * cli/cli-cmds.c (disassemble_command): New function. Implements
1878 disassemble command.
1879 (init_cli_cmds): Create disassemble command here instead.
1881 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1883 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1885 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1887 * regcache.h (regcache_cooked_read_using_offset_hack)
1888 (regcache_cooked_write_using_offset_hack): Delete declarations.
1889 (register_changed): Delete declaration.
1890 * regcache.c (regcache_cooked_read_using_offset_hack)
1891 (regcache_cooked_write_using_offset_hack): Delete functions.
1892 (cooked_xfer_using_offset_hack): Delete function.
1893 (register_changed): Delete function.
1895 2002-11-07 Jim Blandy <jimb@redhat.com>
1897 * macroscope.c: #include "complaints.h".
1898 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1899 but not in the macro table.
1900 * Makefile.in (macroscope.o): Record dependency.
1902 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1904 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1906 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1908 * regcache.c (deprecated_registers_fetched): Update.
1909 * regcache.h (deprecated_registers_fetched): Rename
1911 * remote-vxsparc.c (vx_read_register): Update.
1912 * remote-vxmips.c (vx_read_register): Update.
1913 * remote-vx68.c (vx_read_register): Update.
1914 * irix5-nat.c (fetch_core_registers): Update.
1915 * mipsm3-nat.c (fetch_inferior_registers): Update.
1916 * sun3-nat.c (fetch_inferior_registers): Update.
1917 * symm-nat.c (fetch_inferior_registers): Update.
1918 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1919 (fetch_core_registers): Update.
1920 (fetch_kcore_registers): Update.
1921 * mips-nat.c (fetch_inferior_registers): Update.
1922 * corelow.c (get_core_registers): Update.
1923 * a68v-nat.c (fetch_inferior_registers): Update.
1925 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1927 Put in place the framework necessary for multiarching the hppa targets.
1928 * hppa-tdep.c (hppa_gdbarch_init): New function.
1929 (hppa_dump_tdep): New function.
1930 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1931 tdep structure dumper.
1932 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1933 until the multi-arching conversion has partially been completed.
1935 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1937 * valops.c (value_assign): Merge lval_register case into
1938 lval_reg_frame_relative. Use frame_register and
1939 regcache_cooked_write instead of get_saved_register and
1940 write_register_bytes. After flushing the register cache, try to
1941 re-select the selected frame.
1943 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1945 * regcache.h (deprecated_register_valid): Rename register_valid.
1946 * regcache.c: Update.
1947 * ia64-aix-nat.c: Update.
1948 * i386gnu-nat.c: Update.
1949 * alpha-nat.c: Update.
1950 * sparc-nat.c: Update.
1951 * lynx-nat.c: Update.
1952 * remote-mips.c: Update.
1954 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1956 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1957 to end of file, to be more consistent with the pratice followed
1960 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1962 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1963 (print_float_info): Print registers in float_reggroup.
1964 (print_vector_info): Print registers in vector_reggroup.
1965 (default_print_registers_info): When all, print registers in
1966 all_reggroup. Otherwize, print registers in general_reggroup.
1967 (registers_info): Rewrite. Add support for register groups.
1970 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1972 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1974 (symtab_symbol_info): Remove eons old ifdeffed out code.
1975 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1978 2002-11-06 Theodore A. Roth <troth@openavr.org>
1980 * c-exp.y: Add missing semi-colons.
1981 * f-exp.y: Add missing semi-colons.
1982 * m2-exp.y: Add missing semi-colons.
1983 * p-exp.y: Add missing semi-colons.
1984 Add empty action to start rule to avoid a type clash error when
1985 building with bison >= 1.50.
1987 2002-11-06 Jim Blandy <jimb@redhat.com>
1989 * macrotab.h (struct macro_source_file): Doc fix.
1991 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1993 * varobj.c (child_exists, cplus_number_of_children): Change
1994 STREQ macro references to strcmp.
1995 (cplus_name_of_child): Change code to handle the fact that
1996 fields are not necessarily contiguous with regards to their
1997 access control. This is a fix for PR gdb/792.
1999 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2001 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2002 * gdbarch.h, gdbarch.c: Regnerate.
2003 * frame.h (frame_register): Declare.
2004 * frame.c (frame_register): New function.
2005 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2006 GET_SAVED_REGISTER, otherwize call
2007 generic_unwind_get_saved_register.
2008 (frame_register_read): Use frame_register instead of
2011 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2013 From Jim Ingham <jingham@apple.com>:
2014 * event-top.c (gdb_disable_readline): New function.
2015 (_initialize_event_loop): Move comment.
2017 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2019 * event-loop.c (start_event_loop): Add comment.
2022 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2024 * infcmd.c (default_print_registers_info): Do not call
2025 PRINT_REGISTER_HOOK.
2027 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2029 * sparc-tdep.c (sparc_print_register_hook): Make static.
2030 (sparc_print_registers_info): New function.
2031 (sparc_do_registers_info): New function.
2032 (sparclet_print_registers_info): New function.
2033 (sparclet_do_registers_info): New function.
2034 (do_sparc_print_registers_info): New function.
2035 (sparc_print_registers): New static function, clone of infcmd.c's
2036 default_print_registers_info.
2037 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2038 (sparclet_do_registers_info): Declare.
2039 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2040 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2042 (sparc_do_registers_info): Declare.
2043 (PRINT_REGISTER_HOOK): Delete macro.
2044 (sparc_print_register_hook): Delete declaration.
2046 2002-11-05 David Carlton <carlton@math.stanford.edu>
2048 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2050 (lookup_symbol_aux_local): New function.
2051 (lookup_symbol_aux_symtabs): New function.
2052 (lookup_symbol_aux_psymtabs): New function.
2054 2002-11-05 David Carlton <carlton@math.stanford.edu>
2056 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2057 previous values of 'objfile' and 'block'.
2059 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2061 * values.c (value_change_enclosing_type): Set
2062 enclosing_type field correctly also for the case where
2063 more memory needs to be allocated.
2065 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2067 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2070 * i387-tdep.c (i387_print_float_info): Replace calls to
2071 register_read and deprecated_read_register_gen with calls to
2072 frame_register_read, and make the necessary adjustments to the
2075 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2077 * gdbarch.sh (register_reggroup_p): Allow default value.
2078 * gdbarch.h, gdbarch.c: Regenerate.
2080 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2082 * regcache.h: Add coment indicating replacements for deprecated
2085 2002-11-02 Andrew Cagney <cagney@redhat.com>
2087 * reggroups.h, reggroups.c: New files.
2088 * regcache.c: Include "reggroups.h".
2089 (enum regcache_dump_what): Add `regcache_dump_groups'.
2090 (regcache_dump): Contract size of the "Type" column. When
2091 specified, dump the register's groups.
2092 (maintenance_print_register_groups): New function.
2093 (_initialize_regcache): Add command `maint print register-groups'.
2094 * Makefile.in (COMMON_OBS): Add reggroups.o
2095 (SFILES): Add reggroups.c.
2096 (reggroups_h): Define.
2097 (regcache.o, gdbarch.o): Update dependencies.
2098 (reggroups.o): Specify dependencies.
2099 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2100 Add opaque declaration for `struct reggroup' in generated .h file.
2101 Include "reggroups.h" in generated .c file.
2102 gdbarch.h, gdbarch.c: Re-generate.
2104 2002-11-02 Andrew Cagney <cagney@redhat.com>
2106 * regcache.h (deprecated_read_register_gen): Rename
2108 (deprecated_write_register_gen): Rename write_register_gen.
2109 * i387-tdep.c: Update.
2110 * x86-64-linux-nat.c: Update
2112 * thread-db.c: Update.
2113 * win32-nat.c: Update.
2114 * mips-tdep.c: Update.
2115 * d10v-tdep.c: Update.
2116 * cris-tdep.c: Update.
2117 * remote-sim.c: Update.
2118 * remote-rdi.c: Update.
2119 * remote-rdp.c: Update.
2122 * blockframe.c: Update.
2123 * x86-64-tdep.c: Update.
2124 * xstormy16-tdep.c: Update.
2125 * sh-tdep.c: Update.
2126 * s390-tdep.c: Update.
2127 * rs6000-tdep.c: Update.
2128 * sparc-tdep.c: Update.
2129 * i386-tdep.c: Update.
2130 * dwarf2cfi.c: Update.
2131 * regcache.c: Update.
2133 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2135 New interix-specific files:
2136 * config/i386/nm-interix.h: New file.
2137 * config/i386/interix.mh: New file.
2138 * config/i386/interix.mt: New file.
2139 * i386-interix-nat.c: New file.
2140 * i386-interix-tdep.c: New file.
2142 2002-11-01 Andrew Cagney <cagney@redhat.com>
2144 * frame.h (deprecated_generic_get_saved_register): Rename
2145 generic_get_saved_register.
2146 * blockframe.c (deprecated_generic_get_saved_register): Update.
2147 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2148 (xstormy16_frame_saved_register): Update.
2149 * sh-tdep.c (sh_gdbarch_init): Update.
2150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2151 * ia64-tdep.c (ia64_get_saved_register): Update.
2152 * cris-tdep.c (cris_gdbarch_init): Update.
2153 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2154 * arm-tdep.c (arm_gdbarch_init): Update.
2156 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2158 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2160 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2162 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2163 trampolines in sigaction.
2165 2002-10-31 Andrew Cagney <cagney@redhat.com>
2167 * h8300-tdep.c: Include "gdb_assert.h".
2168 (h8300_print_register): Add gdbarch, file and frame parameters.
2169 Use frame_read_unsigned_register to read the register's value.
2170 Use fprintf_filtered to display output.
2171 (h8300_print_registers_info): Replace h8300_do_registers_info.
2172 (h8300_gdbarch_init): Set print_registers_info.
2174 2002-10-31 Andrew Cagney <cagney@redhat.com>
2176 * frame.c (frame_read_unsigned_register): New function.
2177 (frame_read_signed_register): New function.
2178 * frame.h (frame_read_unsigned_register): Declare.
2179 (frame_read_signed_register): Declare.
2181 2002-10-31 Andrew Cagney <cagney@redhat.com>
2183 * h8500-tdep.c (h8500_print_registers_info): New static function,
2184 clone of infcmd.c's default_print_registers_info.
2185 (h8500_do_registers_info): New funtion.
2186 (h8500_print_register_hook): Rename print_register_hook, make
2189 * config/h8500/tm-h8500.h: Update copyright.
2190 (DEPRECATED_DO_REGISTERS_INFO): Define.
2191 (h8500_do_registers_info: Declare.
2192 (PRINT_REGISTER_HOOK): Delete macro.
2193 (print_register_hook): Delete function.
2195 2002-10-31 Andrew Cagney <cagney@redhat.com>
2197 * z8k-tdep.c (z8k_print_register_hook): Make static.
2198 (z8k_print_registers_info): New static function, clone of
2199 infcmd.c's default_print_registers_info.
2200 (z8k_do_registers_info): New function. Wrap
2201 z8k_print_registers_info.
2202 * config/z8k/tm-z8k.h: Update copyright.
2203 (PRINT_REGISTER_HOOK): Delete macro.
2204 (z8k_print_register_hook): Delete declaration.
2205 (DEPRECATED_DO_REGISTERS_INFO): Define.
2206 (z8k_do_registers_info): Declare.
2208 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2210 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2211 as this is already provided by value.h, and was actually causing
2212 a compilation error because of a conflict in parameter type
2213 declaration due to a missing const keyword.
2214 (low_text_segment_addres): Fix a compilation warning.
2216 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2218 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2219 registers without a name.
2220 (mips_linux_cannot_store_register): Don't store registers without
2223 2002-10-28 David Carlton <carlton@math.stanford.edu>
2225 * symtab.c (find_addr_symbol): Delete. (It was already commented
2227 * symtab.h: Delete prototype for find_addr_symbol.
2229 2002-10-26 Andrew Cagney <cagney@redhat.com>
2231 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2233 gdbarch.h, gdbarch.c: Re-generate.
2234 * infcmd.c (default_print_registers_info): Update reference.
2235 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2236 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2237 * sh-tdep.c (sh_gdbarch_init): Ditto.
2238 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2239 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2241 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2243 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2244 cfi_init_extra_frame_info.
2245 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2246 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2248 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2249 target where necessary. Add more comments and remove the ones
2250 that don't provide any useful information.
2252 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2253 deprecated_read_register_dummy with
2254 frame_unwind_unsigned_register.
2256 * i386-tdep.c (i386_extract_struct_value_address): Use
2257 regcache_raw_read_unsigned instead of
2258 regcache_cooked_read_unsigned since we know that the register
2259 we're reading isn't a pseudo register. Rename variable 'val' into
2260 the more descriptive 'addr'.
2262 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2263 (x86_64_push_return_address): Add comment.
2264 (x86_64_pop_frame): Make static.
2265 (examine_argument): Clarify comment.
2266 (x86_64_skip_prologue): Make prolog_expact variable static.
2268 * dwarf2cfi.c: Fix some formatting problems.
2269 (context_cpy, read_encoded_pointer): Clarify comments.
2271 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2272 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2273 i386 target back into x86_64_gdbarch_init. Add some comments and
2274 remove meaningless ones.
2276 2002-10-25 Andrew Cagney <cagney@redhat.com>
2278 * complaints.h (struct deprecated_complaint): Rename `struct
2280 * complaints.c (complain): Update.
2281 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2282 incorrect comment indicating that "symfile.h" was being included
2283 for the `struct complaint' definition.
2284 * remote-vx.c: Update.
2285 * objc-lang.c: Update.
2286 * xcoffread.c: Update.
2288 * mdebugread.c: Update.
2289 * stabsread.c: Update.
2290 * dwarf2read.c: Update.
2291 * dwarfread.c: Update.
2292 * elfread.c: Update.
2293 * coffread.c: Update.
2294 * stabsread.h: Update.
2295 * dbxread.c: Update.
2296 * buildsym.c: Update.
2297 * gdbtypes.c: Update.
2298 * macrotab.c: Update.
2300 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2302 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2303 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2304 (x86_64_init_abi): ...new function.
2306 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2307 * i386v-nat.c: Include "i386-tdep.h".
2309 2002-10-25 Andrew Cagney <cagney@redhat.com>
2311 * gdbtypes.c (address_space_name_to_int): Update.
2312 (address_space_int_to_name): Update.
2313 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2314 multi-arch predicate.
2315 (address_class_name_to_type_flags): Ditto.
2316 * gdbarch.h, gdbarch.c: Re-generate.
2318 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2320 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2322 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2324 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2326 * symtab.h (INIT_SAL): Delete macro.
2328 * symtab.c (init_sal): New function.
2330 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2331 to init_sal function call.
2332 (find_sal_from_funcs_and_line): Ditto.
2333 (all_sals_for_line): Ditto.
2334 * breakpoint.c (create_internal_breakpoint): Ditto.
2335 (create_fork_vfork_event_catchpoint): Ditto.
2336 (create_exec_event_catchpoint): Ditto.
2337 (parse_breakpoint_sals): Ditto.
2338 (watch_command_1): Ditto.
2339 (handle_gnu_4_16_catch_command): Ditto.
2340 (clear_command): Ditto.
2341 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2342 * infcmd.c (run_stack_dummy): Ditto.
2343 * infrun.c (process_event_stop_test): Ditto.
2344 (check_sigtramp2): Ditto.
2345 (step_over_function): Ditto.
2346 * linespec.c (decode_line_2): Ditto.
2347 (decode_line_1): Ditto.
2348 * source.c (line_info): Ditto.
2349 * symtab.c (find_pc_sect_line): Ditto.
2351 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2353 * dwarf2cfi.c (struct context)
2354 (struct context_reg): Moved to dwarf2cfi.h
2355 (context_alloc, frame_state_alloc, context_cpy):
2356 Made extern instead of static, removed prototypes.
2357 * dwarf2cfi.h (struct context)
2358 (struct context_reg): New, moved from dwarf2cfi.c
2359 (context_alloc, frame_state_alloc, context_cpy):
2361 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2362 Changed from static to extern.
2363 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2364 (LINUX_SIGCONTEXT_FP_OFFSET)
2365 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2366 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2367 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2368 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2369 set_gdbarch_*() calls now use x86-64 specific functions
2370 instead of DWARF2 CFI ones.
2371 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2372 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2373 (x86_64_init_extra_frame_info): New prototypes.
2375 2002-10-23 David Carlton <carlton@math.stanford.edu>
2377 * linespec.c: #include "parser-defs.h".
2378 Delete prototype for find_template_name_end.
2379 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2381 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2383 * NEWS: add recent mi fixes.
2384 * varobj.c (struct varobj): Add new "updated" flag.
2385 (new_variable): Default "updated" flag to 0.
2386 (varobj_set_value): Set "updated" flag to 1 if value
2388 (varobj_update): Check varobj "updated" flag before
2389 comparing old and refreshed values. Fix for
2392 2002-10-23 David Carlton <carlton@math.stanford.edu>
2394 * parse.c (parse_exp_1): Use BLOCK_START.
2395 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2397 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2399 2002-10-23 David Carlton <carlton@math.stanford.edu>
2401 * symtab.c: Delete cplusplus_hint.
2402 Delete prototype for find_template_name_end.
2404 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2406 * symtab.h: Update comment.
2408 2002-10-23 Michael Snyder <msnyder@redhat.com>
2410 * printcmd.c (address_info): Restore quotes in output.
2411 * valops.c (value_of_local): Restore quotes in error message.
2413 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2415 * symtab.c (symbol_demangled_name): New function.
2416 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2417 turning most of it into a function.
2418 (symbol_demangled_name): Export.
2420 2002-10-23 Michael Snyder <msnyder@redhat.com>
2422 * valops.c (value_of_local): Restore quotes in error message.
2424 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2426 * symtab.c (symbol_init_language_specific): New function.
2427 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2428 turning most of it into a function.
2429 (symbol_init_language_specific): Export.
2431 2002-10-23 David Carlton <carlton@math.stanford.edu>
2433 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2434 (dwarf_attr_name): Ditto.
2435 (dwarf_type_encoding_name): Ditto.
2436 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2437 (process_die): Handle DW_TAG_namespace,
2438 DW_TAG_imported_declaration, DW_TAG_imported_module.
2439 (read_namespace): New function.
2441 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2443 * configure.in: Define NEW_PROC_API on Interix too.
2444 * configure: Regenerate.
2446 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2448 * configure: Regenerate using the proper version of autoconf.
2450 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2452 * findvar.c (read_var_value): Temporarily disable TLS code, until
2453 complete TLS support is added.
2455 2002-10-21 Jim Blandy <jimb@redhat.com>
2456 Elena Zannoni <ezannoni@redhat.com>
2458 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2459 for thread local storage locations.
2460 (struct symbol): Add objfile field.
2461 (SYMBOL_OBJFILE): Define.
2462 * dwarf2read.c (is_thread_local): New static variable.
2463 (new_symbol): If variable is in thread local fill in address class
2464 and objfile appropriately.
2465 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2467 * printcmd.c (address_info): Print the information for thread
2468 local storage variable.
2469 * findvar.c (read_var_value): In case of thread local variable,
2470 defer to the target vector code to compute address.
2472 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2474 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2475 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2477 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2479 * symtab.h (address_class): Rename
2480 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2481 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2482 * printcmd.c (address_info): Ditto.
2483 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2485 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2487 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2488 DBREG_DRX macro to acces debug registers.
2490 * Makefile.in (i386obsd-tdep.o): New target.
2492 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2493 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2495 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2496 * config/i386/obsd.mt: New file.
2497 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2498 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2499 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2500 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2501 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2502 * i386obsd-tdep.c: New file.
2504 2002-10-19 Adam Fedor <fedor@gnu.org>
2506 * objc-exp.y (name_not_typename): Fix invalid comment.
2508 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2510 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2511 to allocate partial syms and macro byte caches.
2513 2002-10-18 David Carlton <carlton@math.stanford.edu>
2515 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2517 2002-10-18 Adam Fedor <fedor@gnu.org>
2519 * stabsread.c (find_name_end): New function.
2520 (define_symbol): Use it.
2522 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2524 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2525 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2526 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2527 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2529 2002-10-17 David Carlton <carlton@math.stanford.edu>
2531 * symfile.h: Add opaque declaration for struct obstack.
2532 Declare obsavestring to take a const char *.
2533 * symfile.c (obsavestring): Make first argument a const char *.
2535 2002-10-16 Adam Fedor <fedor@gnu.org>
2537 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2538 names when matching breakpoints in current file.
2540 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2542 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2543 (read_tag_pointer_type): Add address class support.
2544 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2545 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2547 * gdbarch.h, gdbarch.c: Regenerate.
2548 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2549 (make_type_with_address_space, recursive_type_dump): Add address
2551 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2552 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2553 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2555 2002-10-16 Klee Dienes <kdienes@apple.com>
2557 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2558 to get the last character of a char[] buffer, not
2559 name[sizeof(vptr_name)-1].
2561 2002-10-14 Adam Fedor <fedor@gnu.org>
2563 * symtab.h: New objc_specific struct.
2564 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2565 (SYMBOL_DEMANGLED_NAME): Likewise.
2567 2002-10-14 Adam Fedor <fedor@gnu.org>
2569 * symfile.c (init_filename_language_table): Add ObjC file extension.
2571 2002-10-14 Adam Fedor <fedor@gnu.org>
2573 * utils.c (puts_filtered_tabular): New function.
2574 (fprintf_symbol_filtered): Get ObjC demangled name.
2575 * defs.h (puts_filtered_tabular): Declared.
2577 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2579 * c-lang.h (c_type_print_varspec_prefix): Delete.
2580 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2581 ``need_post_space'' parameter. Adjust all callers.
2583 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2585 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2586 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2587 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2588 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2590 2002-10-13 Adam Fedor <fedor@gnu.org>
2592 * source.c (print_source_lines): Update comments.
2594 2002-10-13 Adam Fedor <fedor@gnu.org>
2596 * valops.c (value_of_local): New function.
2597 (value_of_this): Use it.
2598 * value.h (value_of_local): Declared.
2600 2002-10-13 Adam Fedor <fedor@gnu.org>
2602 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2603 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2605 2002-10-12 Adam Fedor <fedor@gnu.org>
2607 * language.c (binop_result_type): Add language_objc to case.
2608 (integral_type): Likewise.
2609 (character_type): Likewise.
2610 (string_type): Likewise.
2611 (boolean_type): Likewise.
2612 (structured_type): Likewise.
2613 (binop_type_check): Likewise.
2615 2002-10-11 Adam Fedor <fedor@gnu.org>
2617 * printcmd.c (address_info): Print 'self' for ObjC.
2619 2002-10-11 Adam Fedor <fedor@gnu.org>
2621 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2624 2002-10-11 Adam Fedor <fedor@gnu.org>
2626 * language.h (CAST_IS_CONVERSION): Add language_objc.
2628 2002-10-11 Adam Fedor <fedor@gnu.org>
2630 * defs.h (enum language): Add language_objc.
2632 2002-10-11 Klee Dienes <kdienes@apple.com>
2634 * corefile.c (read_memory_typed_address): New function.
2635 * gdbcore.h (read_memory_typed_address): Add prototype.
2636 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2637 to read a value destined for a CORE_ADDR, not read_memory_integer.
2638 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2639 (f77_get_dynamic_lowerbound): Ditto.
2641 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2643 * utils.c (string_to_core_addr): After turning string into
2644 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2645 which will do necessary sign-extension, etc.
2647 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2649 * c-exp.y (THIS): Delete token and grammar rule.
2650 (yylex): Don't return THIS.
2651 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2652 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2653 * demangle.c (cplus_markers): Update comment. Put '$'
2654 first. Remove CPLUS_MARKER.
2655 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2656 * jv-exp.y (THIS): Delete token and grammar rule.
2657 (yylex): Don't return THIS.
2658 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2659 * objc-exp.y (THIS): Delete token and grammar rule.
2660 (yylex): Don't return THIS.
2661 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2662 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2663 (read_member_functions): Likewise for opname.
2664 (read_tilde_fields): Use is_cplus_marker.
2666 * defs.h (CPLUS_MARKER): Don't define.
2667 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2668 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2669 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2670 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2671 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2673 * config/i386/tm-i386v4.h: Delete file.
2674 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2675 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2676 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2677 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2678 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2679 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2680 * config/i386/i386v4.mt (TM_FILE): Likewise.
2681 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2683 2002-10-10 Marko Mlinar <markom@opencores.org>
2685 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2686 accidentially not commited 2002-10-09
2687 * gdbarch.h, gdbarch.c: Re-generate.
2689 2002-10-09 Marko Mlinar <markom@opencores.org>
2691 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2692 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2693 * gdbarch.h, gdbarch.c: Re-generate.
2695 2002-10-08 Petr Sorfa <petrs@caldera.com>
2697 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2699 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2700 so we can work on more than one compilation unit at a time. This
2701 helps prepare GDB to handle inter-CU die references.
2702 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2703 the code to be defined before struct comp_unit_head.
2704 (comp_unit_head): Added new members - offset, cu_head,
2705 begin_die, next and dwarf2_abbrevs.
2706 (dwarf2_abbrevs): Removed single static var; now member of
2707 struct comp_unit_head.
2708 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2710 (psymtab_to_symtab_1): Changed to work with the new
2711 struct comp_unit_head.
2712 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2713 constructs the dwarf2_abbrevs[] inside the cu_header.
2714 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2715 dwarf2_abbrev table to clean up.
2716 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2717 handling of dwarf2_abbrevs inside the cu_header.
2718 (read_partial_die): Now supports the call to the new
2719 dwarf2_lookup_abbrev.
2720 (read_full_die): Now supports the call to the new
2721 dwarf2_lookup_abbrev.
2723 2002-10-06 Christopher Faylor <cgf@redhat.com>
2725 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2726 insure that shell variables, such as "transformed_name" are propagated
2727 to later shell statements in rule.
2729 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2731 * config/i386/nm-i386sco.h: Add protection against
2732 multiple-inclusion. Include "i386/nm-i386v.h".
2733 (REGISTER_U_ADDR): Remove define.
2734 (i386_register_u_addr): Remove prototype.
2736 2002-10-04 Michael Snyder <msnyder@redhat.com>
2738 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2739 before treating it as a single-step event.
2741 2002-10-03 Adam Fedor <fedor@gnu.org>
2743 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2744 (objc_demangle): Remove assignment in if statements, Replace
2746 (add_msglist): Likewise.
2747 (end_msglist): Likewise.
2748 (complare_selectors): Likewise.
2749 (selectors_info): Likewise.
2750 (compare_classes): Likewise.
2751 (classes_info): Likewise.
2752 (print_object_command): Likewise.
2753 (find_objc_msgcall_submethod): Replace PTR with void *.
2754 * objc-lang.h: Remove check for __STDC__.
2756 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2758 * ui-out.h (ui_out_field_fmt_int): New prototype.
2759 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2760 of field width and alignment.
2761 * stack.c (print_frame_info_base): When printing frame level, use
2762 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2765 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2767 * MAINTAINERS: Add self to Write After Approval list.
2769 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2771 * infcmd.c (interrupt_target_command_wrapper): Delete.
2772 (interrupt_target_command): Make non static.
2773 (nofp_registers_info): Make static.
2774 * stack.c (return_command_wrapper): Delete.
2775 (return_command): Make non static.
2777 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2779 * event-top.c (gdb_setup_readline): New function. Code moved from
2780 _initialize_event_loop().
2781 (_initialize_event_loop): Call gdb_setup_readline().
2783 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2785 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2786 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2787 * gdbarch.h, gdbarch.c: Re-generate.
2789 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2792 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2794 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2795 of fill_in_vptr_fieldno.
2797 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2799 * inferior.h (registers_info, stepi_command, nexti_command,
2800 continue_command, interrupt_target_command): Export from infcmd.c.
2801 * frame.h (args_info, selected_frame_level_changed_hook,
2802 return_command): Export from stack.c.
2803 * v850ice.c (stepi_command, nexti_command, continue_command): use
2804 prototypes from inferior.h.
2805 * tracepoint.c (registers_info, args_info, locals_info): Use
2806 prototypes from frame.h and inferior.h.
2807 * Makefile.in (mi-main.o): Add dependency on frame.h.
2809 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2811 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2812 value in register 3 adjusted by ppc_gp0_regnum.
2814 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2816 2002-10-02 Marko Mlinar <markom@opencores.org>
2818 * MAINTAINERS: Add myself to the Write After Approval list.
2820 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2822 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2823 of the section for the N64 ABI, fixed.
2825 * config/mips/tm-irix6.h: Include solib.h.
2827 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2829 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2832 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2834 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2835 and that "mi0" syntax has been removed.
2837 2002-09-30 David Carlton <carlton@math.stanford.edu>
2839 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2840 * ppc-sysv-tdep.c: #include "gdb_string.h".
2841 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2844 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2846 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2847 "vrsave"'s register number.
2849 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2851 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2852 use frame_unwind_signed_register to obtain the PC.
2853 (mips_frame_chain): Handle a generic dummy frame.
2854 (mips_init_extra_frame_info): When a generic dummy frame, don't
2855 re-compute the frame base.
2856 (mips_pop_frame): Handle generic dummy frames.
2857 (mips_gdbarch_init): When generic dummy frames, set
2858 use_generic_dummy_frames, push_dummy_frame to
2859 generic_push_dummy_frame, pc_in_call_dummy to
2860 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2861 generic_save_dummy_frame_tos.
2863 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2865 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2866 against TOP when TOP was explictly set.
2867 (generic_push_dummy_frame): Set TOP to zero.
2869 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2871 * event-loop.c (start_event_loop): Rename variable 'result' to
2872 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2874 2002-09-30 Keith Seitz <keiths@redhat.com>
2876 * gdb-events.sh (selected_thread_changed): New event.
2877 * gdb-events.c: Regenerated.
2878 * gdb-events.h: Regenerated.
2880 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2882 * MAINTAINERS: Add self to Write After Approval list.
2884 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2886 * disasm.c: New file.
2887 * disasm.h: New file.
2888 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2889 (compare_lines): Ditto.
2890 (dump_insns): Ditto.
2891 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2893 (do_assembly_only): Ditto.
2894 (do_disassembly): Renamed to gdb_disassembly and moved to
2895 disasm.c. Sdded uiout argument.
2896 * Makefile.in: Add new files. Reorder SFILES list. Update
2897 dependencies. Include libgdb.a later in the insight executable.
2899 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2901 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2902 bfd/elf64-alpha-fbsd.c.
2904 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2906 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2909 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2911 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2913 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2915 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2916 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2917 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2918 (S_msg_sig_post_reply): Ditto.
2920 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2922 * sh-tdep.c (sh_use_struct_convention): Use definition according
2924 (sh_push_arguments): Store in register with correct endianess.
2925 (sh_default_store_return_value): Ditto.
2926 (sh_gdbarch_init): Set sizeof long double to 8.
2928 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2930 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2931 Fix some whitespace problems.
2933 2002-09-27 David Carlton <carlton@math.stanford.edu>
2935 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2936 (mcore-tdep.o): Ditto.
2937 (ns32k-tdep.o): Ditto.
2938 (ns32knbsd-tdep.o): Ditto.
2940 (vax-tdep.o): Ditto.
2941 * cris-tdep.c: #include "gdb_string.h"
2942 * mcore-tdep.c: Ditto.
2943 * ns32k-tdep.c: Ditto.
2944 * ns32knbsd-tdep.c: Ditto.
2946 * vax-tdep.c: Ditto.
2948 2002-09-27 David Carlton <carlton@math.stanford.edu>
2950 * config/djgpp/fnchange.lst: Add entries for
2951 gdb/testsuite/gdb.c++/m-static files.
2953 2002-09-27 Jim Wilson <wilson@redhat.com>
2955 * MAINTAINERS: Add myself to the Write After Approval list.
2957 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2959 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2962 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2964 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2967 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2969 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2970 (rs6000_struct_return_address): Delete variable.
2971 (rs6000_store_struct_return): Update.
2972 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2973 deprecated_extract_struct_value_address.
2974 (rs6000_frame_align): New function.
2975 (rs6000_gdbarch_init): Set frame_align.
2977 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2979 From Grace Sainsbury <graces@redhat.com>:
2980 * Makefile.in (gdbtk-main.o): New target.
2981 (gdb.o): New target.
2983 (main.o): Update dependencies.
2984 (gdb$(EXEEXT)): Add gdb.o.
2985 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2986 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2987 (SUBDIR_GDBTK_CLEAN): Set.
2988 (install-gdbtk): Install the insight binary.
2989 (uninstall-gdbtk): New target.
2990 (all-gdbtk, clean-gdbtk): New rule.
2991 * top.c (use_windows): Default to zero.
2992 * main.c: Include "main.h".
2994 (struct captured_main_args): Delete.
2995 (gdb_main): New function.
2999 2002-09-25 Andrew Cagney <cagney@redhat.com>
3001 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3002 (frame_map_regnum_to_name): New function.
3003 (frame_map_name_to_regnum): New function.
3004 * frame.h (frame_map_name_to_regnum): Declare.
3005 (frame_map_regnum_to_name): Declare.
3006 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3007 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3008 * parse.c: Do not include "builtin-regs.h".
3009 (target_map_name_to_register): Delete function.
3010 (write_dollar_variable): Use frame_map_name_to_regnum.
3011 * parser-defs.h (target_map_name_to_register): Delete declaration.
3012 * expprint.c: Include "frame.h".
3013 (print_subexp): Use frame_map_regnum_to_name.
3014 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3015 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3017 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3019 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3020 wasn't saved, and the next innermost frame is a dummy, return the
3021 dummy frame's link register.
3023 2002-09-24 Jim Blandy <jimb@redhat.com>
3025 Fix from Paul Breed:
3026 * main.c (captured_main): Add a `break' after the case for 'b'.
3028 2002-09-24 Keith Seitz <keiths@redhat.com>
3030 * varobj.c (c_type_of_child): Use get_target_type instead
3031 of TYPE_TARGET_TYPE.
3033 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3035 * source.c (get_current_or_default_source_symtab_and_line): Remove
3037 (set_default_source_symtab_and_line): New function. Attempts to
3038 determine a source file to list lines from if one is not currently
3040 (get_current_source_symtab_and_line): Initialize sal.pc and
3042 (set_current_source_symtab_and_line): Mark argument as const.
3043 * source.h: Update declarations and comments.
3044 * linespec.c (decode_line_1): Replace call to removed routine above.
3045 * stack.c (print_frame_info_base): Ditto.
3046 * cli/cli-cmds.c (edit_command): Ditto.
3047 (list_command): Ditto.
3049 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3051 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3052 sal.pc and sal.end fields.
3053 (get_current_or_default_source_symtab_and_line): Ditto.
3054 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3055 so we do not cause a new source symtab to be searched for (reverting an
3056 unintentional change from the 2002-09-20 patch).
3057 * scm-lang.c (scm_unpac): Ditto.
3059 2002-09-21 Andrew Cagney <cagney@redhat.com>
3061 * complaints.c (symfile_explanations): Remove new-line from
3062 ``isolated_message''.
3063 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3064 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3066 2002-09-20 Nick Clifton <nickc@redhat.com>
3068 * NEWS: Announce that V850EA ISA is no longer supported.
3069 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3071 2002-09-20 David Carlton <carlton@math.stanford.edu>
3073 * Makefile.in (c-lang.o): Correct dependencies.
3074 (utils.o): Gather dependencies.
3076 * c-lang.c: #include "gdb_string.h"
3078 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3080 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3081 * cli/cli-cmds.c (list_command): New function. Implements the new
3083 (_init_cli_cmds): Add new command definition.
3084 * gdb.1: Document edit command.
3085 * doc/gdb.texinfo: Document edit command.
3087 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3089 * source.c: Make global variables current_source_symtab and
3090 current_source_line static.
3091 (list_command): Moved to cli/cli-cmds.c.
3092 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3093 (get_first_line_listed): New accessor function.
3094 (get_lines_to_list): New accessor function.
3095 (get_current_source_symtab_and_line): New function. Retrieves the
3096 position in the source code that we consider current.
3097 (get_current_or_default_source_symtab_and_line): New function.
3098 Like the above but attempts to determine a default position if one
3099 is not currently defined.
3100 (set_current_source_symtab_and_line): New function. Sets the source
3101 code position considered current and returns the previously set one.
3102 (clear_current_source_symtab_and_line): Reset stored information about
3103 a current source line.
3104 (_initialize_source): Remove registration for the "list" command and
3106 * source.h: Add declarations for the new functions above.
3107 * symtab.h: Remove declarations for the global variables mentioned
3109 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3110 obtain current source line.
3111 * linespec.c (decode_line_1): Ditto.
3112 * macroscope.c (default_macro_scope): Ditto.
3113 * scm-lang.c (scm_unpac): Ditto.
3114 * stack.c (print_frame_info_base): Ditto.
3115 * symfile.c (clear_symtab_users): Ditto.
3116 * symtab.c (decode_line_spec): Ditto.
3117 * cli/cli-cmds.c (list_command): Moved here from source.c.
3118 (ambiguous_line_spec): Moved here from source.c.
3119 (_init_cli_cmds): Add definition for "list" and its alias.
3120 * Makefile.in: Update dependencies.
3122 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3124 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3125 with what gcc thinks is correct.
3127 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3129 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3130 multiple register push instruction.
3132 2002-09-19 Jim Blandy <jimb@redhat.com>
3134 Add support for distinct host and target character sets.
3135 * charset.c, charset.h: New files.
3136 * c-exp.y: #include "charset.h".
3137 (yylex): Convert character and string literals to the target
3138 character set, before returning them as the semantic value of the
3140 * c-lang.c: #include "charset.h".
3141 (c_emit_char): Use charset-specific methods to recognize
3142 characters with backslash escape forms, to decide which characters
3143 to print literally and which to print using numeric escape
3144 sequences, and to convert target characters to host characters
3146 * utils.c: #include "charset.h".
3147 (no_control_char_error): New function.
3148 (parse_escape): Use charset-specific methods to recognize
3149 backslash escapes, parse `control character' notation, and convert
3150 characters from the host character set to the target character set.
3151 * configure.in: Set the default host character set.
3152 Check where to find iconv, and what its argument types might be.
3153 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3154 * Makefile.in (SFILES): List charset.c.
3155 (COMMON_OBS): List charset.o.
3156 (charset.o): New rule.
3157 (charset_h): New header dependency variable.
3158 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3159 (LIBICONV): New variable, set by configure.
3160 (CLIBS): Include $(LIBICONV) here.
3161 * aclocal.m4, config.in, configure: Regenerated.
3163 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3165 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3168 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3170 * gdb_mbuild.sh: New file.
3172 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3174 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3176 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3178 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3179 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3180 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3181 valops.c, value.h: Revert previous change.
3183 2002-09-18 Michael Snyder <msnyder@redhat.com>
3185 Preliminary support for Objective-C:
3186 * defs.h (language_objc): New enum value.
3187 (puts_filtered_tabular): Declaration only, exported from utils.c.
3188 (skip_quoted): Delete, declared in completer.h.
3189 * c-exp.y: Include completer.h.
3192 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3193 New operator enum values.
3194 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3195 * language.c (binop_result_type): Handle language_objc case.
3196 (integral_type, character_type, string_type, boolean_type,
3197 structured_type, binop_type_check): Ditto.
3198 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3199 (struct objc_specific): Add to general_symbol_info.
3200 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3201 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3202 * parser-defs.h (struct objc_class_str): New struct type.
3203 (start_msglist, end_msglist, add_msglist): Declaration only,
3204 exported from objc-lang.c.
3205 * value.h (value_of_local, value_nsstring,
3206 call_function_by_hand_expecting_type): Exported from valops.c.
3207 * valops.c (find_function_addr): Export.
3208 (call_function_by_hand_expecting_type): New function.
3209 (value_of_local): New function.
3210 * symfile.c (init_filename_language_table): Add ".m" extension
3212 * utils.c (puts_filtered_tabular): New function.
3213 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3214 (set/show demangle): Extend help-string to refer to ObjC.
3215 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3216 * stabsread.c (symbol_reference_defined): Objective-C symbols
3217 may contain colons: make allowances when scanning stabs strings
3219 (objc_find_colon): New function.
3220 * printcmd.c (address_info): If language == objc then print
3221 "self" instead of "this".
3222 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3223 OP_NSSTRING, and OP_SELF.
3224 (prefixify_subexp): Ditto.
3225 * source.c (print_source_lines): Mention objc in comment.
3226 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3229 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3231 * complaints.h: Update copyright.
3232 (struct complaints): Declare.
3233 (struct complaint): Make `message' constant.
3234 (internal_complaint): Declare.
3235 (complaint): Declare.
3236 (complaint_root): Delete declaration.
3237 (symfile_complaints): Delete declaration.
3238 (struct complaints): Add opaque declaration.
3239 (clear_complaints): Add a complaints parameter.
3240 * complaints.c: Update copyright.
3241 (enum complaint_series): Define.
3242 (complaint_root): Delete.
3243 (struct complaints): Define.
3244 (complaint_sentinel, symfile_complaint_book): New variables.
3245 (symfile_explanations, symfile_complaints): New variables.
3247 (get_complaints): New function.
3248 (vcomplaint): New function.
3249 (complaint): New function.
3250 (internal_complaint): New function.
3251 (complain): Call vcomplain with symfile_complaint.
3252 (clear_complaints): Rewrite.
3253 (_initialize_complaints): Use add_setshow_command.
3254 * Makefile.in (complaints.o): Update dependencies.
3255 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3256 to call to clear_complaints.
3257 (new_symfile_objfile, reread_symbols): Ditto.
3258 (oldsyms_complaint): Delete.
3259 (empty_symtab_complaint, unknown_option_complaint): Delete.
3260 (free_named_symtabs): Use complaint instead of complain.
3262 2002-09-18 Michael Snyder <msnyder@redhat.com>
3264 Contributed by Apple Computer, Inc. Merged with current sources
3265 by Adam Fedor <fedor@doc.com> [cagney].
3267 * objc-lang.c: First clean-up round: comments, indentation.
3268 * objc-lang.h: Ditto.
3269 * objc-lang.y: Ditto.
3271 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3273 * maint.c (maintenance_internal_error): Print the parameter as the
3275 (maintenance_internal_warning): New function.
3276 (_initialize_maint_cmds): Add command `maint internal-warning'.
3278 * defs.h (internal_warning, internal_vwarning): Declare.
3279 * utils.c (struct internal_problem): Define.
3280 (internal_vproblem): New function.
3281 (internal_warning): New function.
3282 (internal_vwarning): New function.
3283 (internal_warning_problem, internal_error_problem): New variables.
3284 (internal_verror): Just call internal_vproblem.
3286 2002-09-18 Michael Snyder <msnyder@redhat.com>
3288 * objc-lang.c: New file, support for Objective-C.
3289 Preliminary check-in, not yet integrated into gdb.
3290 * objc-lang.h: New file.
3291 * objc-exp.y: New file.
3293 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3295 * infrun.c (signal_stop_update): Convert definition to ISO C.
3296 (signal_print_update): Ditto.
3297 (signal_pass_update): Ditto.
3298 * inflow.c (terminal_save_ours): Ditto.
3300 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3303 * config/djgpp/fnchange.lst: Handle name clashes between
3304 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3307 * i386-linux-tdep.h: Fix tipo.
3309 2002-09-18 Adam Fedor <fedor@gnu.org>
3311 * MAINTAINERS: Add myself to the Write After Approval list.
3313 2002-09-18 Jim Blandy <jimb@redhat.com>
3315 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3316 texthigh and textlow to reader-specific structs caused
3317 objfile_relocate to miss them. This is fixable, but the work that
3318 the change was supposed to prepare GDB for never got done anyway.
3320 2002-09-18 David Carlton <carlton@math.stanford.edu>
3322 * MAINTAINERS: Alphabetize Write After Approval list.
3324 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3327 * values.c (value_static_field): Call read_var_value.
3329 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3331 * valops.c (hand_function_call): Align the initial stack pointer
3332 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3333 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3335 * mips-tdep.c (mips_frame_align): New function.
3336 (mips_gdbarch_init): Set frame_align.
3337 * gdbarch.sh (FRAME_ALIGN): New method.
3338 * gdbarch.h, gdbarch.c: Re-generate.
3340 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3342 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3345 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3347 * NEWS: Mention that MIPS $fp behavior changed.
3348 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3349 reference to FP_REGNUM.
3350 (mipsnbsd_cannot_store_register): Ditto.
3351 * mips-linux-nat.c: Update copyright.
3352 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3353 (mips_linux_cannot_store_register): Ditto.
3354 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3355 * config/mips/tm-mips.h: Update copyright.
3356 (FP_REGNUM): Delete macro.
3357 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3358 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3359 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3360 (mips_r3041_reg_names, mips_r3051_reg_names)
3361 (mips_r3081_reg_names): Replace "fp" with "".
3364 2002-09-17 Theodore A. Roth <troth@verinet.com>
3366 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3367 generic_read_register_dummy() (PR gdb/703).
3368 (avr_push_return_address): #if 0 out unused vars.
3369 (avr_gdbarch_init): Enable use of avr_push_return_address().
3371 2002-09-17 Michael Snyder <msnyder@redhat.com>
3373 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3374 RTE will take care of it.
3376 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3378 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3379 invalid, return SP_REGNUM.
3381 2002-09-17 Michael Snyder <msnyder@redhat.com>
3383 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3384 point registers without sign extension.
3386 2002-09-17 Andrew Cagney <cagney@redhat.com>
3388 * blockframe.c (deprecated_read_register_dummy): Rename
3389 generic_read_register_dummy.
3390 * frame.c (frame_unwind_signed_register): New function.
3391 (frame_unwind_unsigned_register): New function.
3392 * frame.h (frame_unwind_signed_register): Declare.
3393 (frame_unwind_unsigned_register): Declare.
3394 (deprecated_read_register_dummy): Rename
3395 generic_read_register_dummy.
3397 * h8300-tdep.c (h8300_frame_chain): Update.
3398 (h8300_frame_saved_pc): Update.
3399 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3400 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3401 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3402 (s390_frame_chain): Update.
3403 * v850-tdep.c (v850_find_callers_reg): Update.
3404 (v850_frame_saved_pc): Update.
3405 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3406 (m32r_find_callers_reg): Update.
3407 (m32r_frame_saved_pc): Update.
3408 * sh-tdep.c (sh_find_callers_reg): Update.
3409 (sh64_get_saved_pr): Update.
3410 (sh_init_extra_frame_info): Update.
3411 (sh_init_extra_frame_info): Update.
3412 (sh64_init_extra_frame_info): Update.
3413 (sh64_init_extra_frame_info): Update.
3414 * mcore-tdep.c (mcore_find_callers_reg): Update.
3415 (mcore_frame_saved_pc): Update.
3416 (mcore_init_extra_frame_info): Update.
3417 * i386-tdep.c (i386_frame_saved_pc): Update.
3418 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3419 (ia64_init_extra_frame_info): Update.
3420 (ia64_init_extra_frame_info): Update.
3421 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3422 * cris-tdep.c (cris_init_extra_frame_info): Update.
3423 * avr-tdep.c (avr_frame_chain): Update.
3424 (avr_init_extra_frame_info): Update.
3425 (avr_frame_saved_pc): Update.
3426 * arm-tdep.c (arm_find_callers_reg): Update.
3427 (arm_init_extra_frame_info): Update.
3428 (arm_frame_saved_pc): Update.
3430 2002-09-17 Tom Tromey <tromey@redhat.com>
3432 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3435 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3437 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3438 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3440 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3443 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3445 * osfsolib.c: Remove file, replaced by solib-osf.c.
3446 * Makefile.in: Remove compilation rules for osfsolib.c.
3448 2002-09-16 David Carlton <carlton@math.stanford.edu>
3450 * cp-valprint.c (cp_print_class_method): Correct args to
3451 check_stub_method_group.
3453 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3455 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3456 `set architecture'. Unify naming convention of functions.
3457 (h8300_skip_prologue): Improve prologue analysis.
3458 (h8300_push_arguments): Rewritten to more closely match GCC's
3459 bizarre argument-passing behavior, along with the comment describing
3461 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3462 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3463 sim, remote-e7000.c, remote-hms.c and remote.c
3465 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3467 * i386-tdep.c (gdb_print_insn_i386): Removed.
3468 (i386_print_insn): New function.
3469 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3470 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3473 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3475 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3478 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3480 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3481 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3482 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3484 2002-09-13 Christopher Faylor <cgf@redhat.com>
3486 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3488 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3490 * gdbtypes.c (check_stub_method): Make static.
3491 (check_stub_method_group): New function.
3492 * gdbtypes.h: Update prototypes.
3493 * cp-support.c: New file.
3494 * cp-support.h: New file.
3496 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3497 (update_method_name_from_physname): New function.
3498 (read_member_functions): Correct method names for operators
3499 and v3 constructors/destructors. Separate v2 constructors and
3501 * Makefile.in (stabsread.o): Update dependencies.
3502 (SFILES): Add cp-support.c.
3503 (COMMON_OBS): Add cp-support.o.
3504 (cp_support_h, cp-support.o): Add.
3506 * cp-valprint.c (cp_print_class_method): Call
3507 check_stub_method_group instead of check_stub_method. Remove
3509 * p-valprint.c (pascal_object_print_class_method): Likewise.
3510 * valops.c (search_struct_method): Likewise.
3511 (find_method_list, value_struct_elt_for_reference): Likewise.
3513 2002-09-13 Andrew Cagney <cagney@redhat.com>
3515 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3516 * gdbarch.h, gdbarch.c: Regenerate.
3518 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3520 * frame.c (find_saved_register): Delete function.
3521 * frame.h (find_saved_register): Delete declaration.
3524 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3526 * mips-tdep.c (read_next_frame_reg): Re-hack using
3527 frame_register_unwind.
3529 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3531 * mips-tdep.c (mips_get_saved_register): Re-hack using
3532 frame_register_unwind.
3534 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3536 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3537 vector. Will be useful for Interix.
3538 * gdbarch.h, gdbarch.c: Regenerate.
3540 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3541 name of the malloc function by NAME_OF_MALLOC.
3543 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3545 * value.h (find_function_in_inferior): Add const keyword to
3546 one of the parameters. Allows us to invoke this function with
3548 * valops.c (find_function_in_inferior): Likewise.
3550 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3552 * exec.c (xfer_memory): Fix compilation warning with old versions
3554 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3556 2002-09-12 David Carlton <carlton@math.stanford.edu>
3558 * symtab.h: Run through gdb_indent.h.
3559 Add 2002 to Copyright year list.
3561 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3563 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3565 * MAINTAINERS: Add myself to write after approval list.
3567 2002-09-11 J. Brobecker <brobecker@gnat.com>
3569 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3571 2002-09-11 J. Brobecker <brobecker@gnat.com>
3573 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3576 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3578 * procfs.c (do_detach): Clear current signal, not just fault.
3579 Corrects problem with breakpoint trap signal leaking to detached
3582 2002-09-10 Michael Snyder <msnyder@redhat.com>
3584 * buildsym.c (finish_block): Protect against null pointer.
3586 2002-09-10 Andrew Cagney <cagney@redhat.com>
3588 * infcmd.c (default_print_registers_info): Send all output to
3589 ``file'' instead of ``gdb_stdout''.
3591 2002-09-10 Michael Snyder <msnyder@redhat.com>
3593 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3594 LONGEST, and use signed register read (addresses are sign-
3597 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3599 * event-loop.c (gdb_do_one_event): Make public.
3600 * event-loop.h (gdb_do_one_event): Declare.
3602 2002-09-10 Jeff Law <law@redhat.com>
3604 * infttrace.c (child_resume): Simplify and rework to avoid
3607 2002-09-09 Fred Fish <fnf@intrinsity.com>
3609 * printcmd.c (print_scalar_formatted): "len" is the number of
3610 target bytes, NOT the number of target bits.
3612 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3614 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3615 * top.c (init_main): Set rl_terminal_name.
3617 2002-09-08 Aidan Skinner <aidan@velvet.net>
3619 * ada-lang.c (ada_array_bound, ada_type_match,
3620 _initialize_ada_language): Fix K&R definitions.
3621 * ada-tasks.c (get_current_task): Fix K&R definitions.
3622 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3624 2002-09-07 Christopher Faylor <cgf@redhat.com>
3626 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3629 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3631 * i386-tdep.c (i386_register_virtual_type,
3632 i386_register_convertible, i386_register_convert_to_virtual,
3633 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3634 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3635 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3636 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3637 Don't set push_arguments twice.
3639 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3640 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3641 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3642 sigtramp_end to NULL.
3643 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3645 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3647 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3650 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3652 * blockframe.c (find_pc_sect_partial_function): Convert to use
3653 SIGTRAMP_START_P predicate.
3655 2002-09-05 Michael Snyder <msnyder@redhat.com>
3657 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3658 generic_dummy_frame method and old method. Also distinguish
3659 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3660 (arm_extract_return_value): Use new regcache method.
3662 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3663 adjustment that doesn't conform to the ABI.
3664 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3665 saved regcache, not from current regcache.
3667 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3669 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3672 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3674 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3675 if arm_apcs_32 is false.
3677 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3679 GDB 5.3 branch created.
3681 2002-09-03 Theodore A. Roth <troth@verinet.com>
3683 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3684 generic_unwind_get_saved_register.
3686 2002-09-03 David Carlton <carlton@math.stanford.edu>
3688 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3689 argument (PR gdb/653). Update call to smash_to_method_type.
3690 (read_structure_scope): Update call to dwarf2_add_member_fn.
3692 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3694 * x86-64-linux-tdep.c: Include gdb_string.h
3695 * x86-64-linux-nat.c: Ditto.
3697 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3699 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3700 when YYDEBUG is set to 1.
3701 * c-exp.y: Likewise.
3702 * f-exp.y: Likewise.
3703 * jv-exp.y: Likewise.
3704 * m2-exp.y: Likewise.
3705 * p-exp.y: Likewise.
3707 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3709 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3711 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3712 solib_svr4_fetch_link_map_offsets to
3713 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3714 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3715 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3716 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3717 solib-svr4.o, and solib-legacy.o.
3718 * config/i386/tm-nbsd.h: Include solib.h.
3720 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3722 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3723 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3724 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3725 comment noting that this needs its own target configuration.
3726 * config/i386/nbsd.mt: New file.
3727 * config/i386/nbsdaout.mt: Remove.
3728 * config/i386/nbsdelf.mt: Ditto.
3729 * config/i386/tm-nbsdaout.h: Ditto.
3731 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3733 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3734 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3735 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3737 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3738 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3739 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3741 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3743 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3744 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3745 * i386-tdep.h (i386bsd_init_abi): New prototype.
3746 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3747 function declaration.
3748 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3749 for NetBSD-a.out or NetBSD-ELF.
3750 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3751 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3752 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3753 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3755 (i386nbsd_pc_in_sigtramp): New function.
3756 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3757 i386nbsd_pc_in_sigtramp.
3758 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3759 and i386nbsdelf_init_abi OS ABI handlers.
3760 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3761 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3763 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3765 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3766 registers if the target really has them.
3768 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3770 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3773 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3775 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3777 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3778 (alphanbsd_skip_sigtramp_frame): New functions.
3779 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3780 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3781 to alphanbsd_sigcontext_addr.
3783 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3785 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3787 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3788 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3789 nbsd_pc_in_sigtramp.
3790 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3791 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3792 * nbsd-tdep.c: Include gdb_string.h.
3793 (nbsd_pc_in_sigtramp): New function.
3794 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3795 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3796 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3797 ppcnbsd_pc_in_sigtramp.
3798 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3799 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3800 shnbsd_pc_in_sigtramp.
3801 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3802 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3803 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3805 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3807 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3808 watchpoints to NULL.
3809 (insert_breakpoints): set val field of watchpoints if NULL.
3812 2002-08-29 Jim Blandy <jimb@redhat.com>
3814 * symtab.c (lookup_symbol_aux): In the cases where we find a
3815 minimal symbol of an appropriate name and use its address to
3816 select a symtab to read and search, use `name' (as passed to us)
3817 as the demangled name when searching the symtab's global and
3818 static blocks, not the minsym's name.
3820 2002-08-29 Keith Seitz <keiths@redhat.com>
3822 * stack.c (print_frame_info_base): Always set current_source_symtab
3823 and current_source_line.
3825 2002-08-29 Donn Terry <donnte@microsoft.com>
3827 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3829 2002-08-28 Keith Seitz <keiths@redhat.com>
3831 * stack.c (select_frame): Add FIXME concerning selected-frame
3833 (select_frame_command): Send selected-frame-level-changed
3834 event notification, but only if the level actually changed.
3835 (up_silently_base): Add selected-frame-level-changed event
3837 (down_silently_base): Likewise.
3839 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3841 * Makefile.in: Update dependencies for all gdb/*.c files.
3843 2002-08-27 Tom Tromey <tromey@redhat.com>
3845 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3846 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3847 Update dependencies.
3848 * i387-tdep.c: Include gdb_string.h.
3849 * osabi.c: Likewise.
3850 * i386-linux-nat.c: Likewise.
3851 * lin-lwp.c: Likewise.
3852 * ax-gdb.c: Likewise.
3853 * signals/signals.c: Likewise.
3854 * jv-valprint.c: Likewise.
3855 * p-lang.c: Likewise.
3856 * c-valprint.c: Likewise.
3857 * cp-abi.c: Likewise.
3859 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3861 * cli/cli-script.h (copy_command_lines): Export.
3862 * breakpoint.c: Include cli/cli-script.h.
3863 * Makefile.in (breakpoint.o): Update dependencies.
3865 2002-08-26 Michael Snyder <msnyder@redhat.com>
3867 * breakpoint.c (insert_breakpoints): Protect all references
3868 to 'process_warning'. Shorten long lines.
3870 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3872 * cli/cli-script.c (copy_command_lines): New function.
3873 * defs.h (copy_command_lines): Export.
3874 * testsuite/gdb.base/commands.exp: New tests for commands
3875 attached to a temporary breakpoint, and for commands that
3876 delete the breakpoint they are attached to.
3878 2002-08-26 Michael Snyder <msnyder@redhat.com>
3880 * breakpoint.c (bpstat_stop_status): Instead of copying the
3881 pointer to the breakpoint commands struct, make a new copy
3882 of the struct and point to that.
3883 (bpstat_clear): Free the commands struct.
3884 (bpstat_clear_actions): Free the commands struct.
3885 (bpstat_do_actions): Free the command actions. Also execute
3886 the local cleanups, instead of deleting them.
3887 (delete_breakpoint): Leave the commands field of the bpstat
3888 chain alone -- it will be freed later.
3890 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3892 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3893 deleted in 2002-08-20 commit. This function is still used by
3896 2002-08-26 Keith Seitz <keiths@redhat.com>
3898 * gdb-events.sh: Add selected-frame-level-changed event.
3899 * gdb-events.c: Regenerated.
3900 * gdb-events.h: Regenerated.
3902 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3905 * inflow.c (terminal_save_ours): New function to save terminal
3907 * inferior.h (terminal_save_ours): Declare.
3908 * target.c (debug_to_terminal_save_ours): New function.
3909 (cleanup_target): Defaults to_terminal_save_ours.
3910 (update_current_target): Inherit to_terminal_save_ours.
3911 (setup_target_debug): Set to_terminal_save_ours.
3912 * target.h (target_terminal_save_ours): New to save terminal settings.
3913 (target_ops): New member to_terminal_save_ours.
3914 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3915 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3916 * inftarg.c (init_child_ops): Likewise.
3917 * m3-nat.c (init_m3_ops): Likewise.
3918 * procfs.c (init_procfs_ops): Likewise.
3919 * wince.c (init_child_ops): Likewise.
3920 * win32-nat.c (init_child_ops): Likewise.
3921 * sol-thread.c (init_sol_thread_ops): Likewise.
3923 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3925 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3926 use regcache_* functions.
3927 (i386_gdbarch_init): Set store_return_value instead of
3928 deprecated_store_return_value.
3930 * regcache.c (regcache_raw_write_signed,
3931 regcache_raw_write_unsigned): New functions.
3932 * regcache.h (regcache_raw_write_signed,
3933 regcache_raw_write_unsigned): New prototypes.
3935 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3937 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3938 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3939 source file dependencies. Cleanup corresponding generator rules.
3941 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3943 * regcache.h (register_offset_hack): Declare.
3944 (regcache_cooked_read_using_offset_hack): Declare.
3945 (regcache_cooked_write_using_offset_hack): Declare.
3947 * regcache.c (register_offset_hack): New function.
3948 (regcache_cooked_read_using_offset_hack): New function.
3949 (regcache_cooked_write_using_offset_hack): New function.
3950 (regcache_dump): Check that the registers, according to their
3951 offset, are packed hard against each other.
3952 (cooked_xfer_using_offset_hack): New function.
3954 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3956 * regcache.c (struct regcache_descr): Add field register_type.
3957 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3959 (init_regcache_descr): Initialize register_type. Pass the descr
3960 to init_legacy_regcache_descr. Use register_type instead of
3961 REGISTER_VIRTUAL_TYPE.
3962 (register_type): New function.
3963 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3964 * regcache.h (register_type): Declare.
3966 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3968 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3969 instead of deprecated_store_return_value. Fix fallout from
3970 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3972 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3974 * regcache.c (max_register_size): New function.
3975 (init_legacy_regcache_descr): Ensure that max_register_size is
3976 large enough for REGISTER_VIRTUAL_SIZE.
3977 * regcache.h (max_register_size): Declare.
3979 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3981 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3983 (e500_extract_return_value): Change type of valbuf pointer to
3986 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3988 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3991 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3992 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3993 long long) to prevent compiler warning on 64-bit systems.
3995 2002-08-23 Andrew Cagney <cagney@redhat.com>
3997 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3998 (DEPRECATED_STORE_RETURN_VALUE): New method.
3999 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4000 * gdbarch.h, gdbarch.c: Re-generate.
4002 * values.c (set_return_value): Pass current_regcache to
4004 * arch-utils.h (legacy_store_return_value): Declare.
4005 * arch-utils.c (legacy_store_return_value): New function.
4006 (legacy_extract_return_value): Update parameters.
4008 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4010 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4011 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4012 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4013 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4014 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4015 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4016 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4017 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4018 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4019 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4022 * i386-tdep.c (i386_extract_return_value): Update.
4023 * arch-utils.c (legacy_extract_return_value): Update.
4024 * frv-tdep.c (frv_gdbarch_init): Update.
4025 * cris-tdep.c (cris_gdbarch_init): Update.
4026 * d10v-tdep.c (d10v_gdbarch_init): Update.
4027 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4028 * m68k-tdep.c (m68k_gdbarch_init): Update.
4029 * mcore-tdep.c (mcore_gdbarch_init): Update.
4030 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4031 * s390-tdep.c (s390_gdbarch_init): Update.
4032 * sparc-tdep.c (sparc_gdbarch_init): Update.
4033 * sh-tdep.c (sh_gdbarch_init): Update.
4034 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4035 * v850-tdep.c (v850_gdbarch_init): Update.
4036 * avr-tdep.c (avr_gdbarch_init): Update.
4037 * ia64-tdep.c (ia64_gdbarch_init): Update.
4038 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4039 * vax-tdep.c (vax_gdbarch_init): Update.
4040 * alpha-tdep.c (alpha_gdbarch_init): Update.
4041 * arm-tdep.c (arm_gdbarch_init): Update.
4042 * mips-tdep.c (mips_gdbarch_init): Update.
4043 * i386-tdep.c (i386_gdbarch_init): Update.
4045 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4047 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4048 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4050 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4052 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4055 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4057 * infrun.c (handle_inferior_event): Move a comment outside of a
4058 function call, in order to avoid indent reformatting this part
4059 of the code in an unreadable way.
4061 2002-08-23 Grace Sainsbury <graces@redhat.com>
4063 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4064 when breakpoints fail. Move general breakpoint error messages to
4066 * breakpoint.c (insert_breakpoints): Change warnings when
4067 breakpoints are nto inserted to specify the type. Remove call to
4068 memory_error when hardware breakpoints can't be inserted. Remove
4069 multiple calls to warning so all messages are sent to the user at
4071 (delete_breakpoints): Make insert error messsages more explicit.
4073 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4075 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4076 gdbserver/ChangeLog.
4078 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4080 * i386-tdep.c: Include "objfiles.h".
4081 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4082 skip_trampoline_code.
4083 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4084 (CPLUS_MARKER): Define to '.'.
4086 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4088 (linux_corefile_thread_callback): Increase args->num_notes.
4089 (linux_make_note_section): Initialize thread_args.num_notes, and
4090 use it to determine whether notes for any threads were created.
4092 2002-08-23 Donn Terry <donnte@microsoft.com>
4094 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4095 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4097 (write_with_trace): Conditionalize out the switch branch handling
4098 PCSHOLD if the corresponding macro is not defined. Likewise for
4099 PRSABORT and PRSTOP.
4100 This change will be needed by the Interix port.
4102 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4104 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4105 write_register wherever possible instead of manipulating the
4106 register bytes directly.
4107 Assign VALUE_CONTENTS to a variable and use that.
4108 The GPR numbers are now dependent on the architecture.
4110 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4112 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4114 (skip_prologue): Add support for BookE/e500 instructions.
4115 (e500_extract_return_value): New function.
4116 (frame_get_saved_regs): Add support for saving ev registers and
4118 (e500_store_return_value): New function.
4119 (rs6000_gdbarch_init): Move up default intializations of
4120 deprecated_extract_return_value and store_return_value. Overwrite
4121 init of store_return_value with e500 specific version.
4122 Set extract_return_value for e500.
4124 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4126 * blockframe.c (generic_call_dummy_register_unwind): Use
4127 regcache_cooked_read to catch cases in which the variable is
4128 stored in a pseudo register.
4130 2002-08-22 Andrew Cagney <cagney@redhat.com>
4132 * NEWS: Mention that the i960 has been made obsolete.
4133 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4135 (remote-nrom.o): Obsolete target.
4136 (remote-nindy.o, i960-tdep.o): Ditto.
4137 * remote-nrom.c: Make file obsolete.
4138 * remote-nindy.c, remote-vx960.c: Ditto.
4139 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4140 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4141 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4142 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4143 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4144 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4145 i960-*-vxworks* obsolete.
4146 * MAINTAINERS: Note that the i960 is obsolete.
4148 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4150 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4151 detach to allow reinitialization.
4153 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4155 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4158 2002-08-22 Jim Blandy <jimb@redhat.com>
4160 * coffread.c (coff_symfile_read): Don't try to read the line
4161 number table from disk if the image file doesn't have a symbol
4162 table; we'll never actually look at the info anyway, and Windows
4163 ships DLL's with bogus file offsets for the line number data.
4165 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4170 2002-08-21 Michael Snyder <msnyder@redhat.com>
4172 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4173 (MSYMBOL_SIZE): Replace macro with function.
4174 (DEFAULT_MIPS_TYPE): Delete unused macro.
4175 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4176 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4178 2002-08-21 Jim Blandy <jimb@redhat.com>
4180 * valops.c (value_cast): Simplify and correct logic for doing a
4181 static cast from a pointer to a base class to a pointer to a
4184 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4186 * infcmd.c (default_print_registers_info): Replace
4188 (registers_info): Use gdbarch_print_registers_info instead of
4190 * inferior.h (default_print_registers_info): Replace
4192 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4193 (DO_REGISTERS_INFO): Change to a predicate function.
4194 * gdbarch.h, gdbarch.c: Regenerate.
4196 2002-08-21 Keith Seitz <keiths@redhat.com>
4198 * gdb-events.sh: Add target-changed event.
4199 * gdb-events.c: Regenerated.
4200 * gdb-events.c: Regenerated.
4201 * valops.c (value_assign): Add target-changed event notification
4202 to inlval_register, lval_memory, and lval_reg_frame_relative.
4204 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4206 * NEWS: Add an entry regarding the improvement of the next/step
4207 operation on Alpha Tru64 multi-processor machines.
4209 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4211 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4213 * Makefile.in: Update all _h macro definitions.
4214 * Makefile.in (install-gdbtk): Move to install section.
4215 (rdi-share/libangsd.a): Move to end of file.
4217 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4219 * frame.c (frame_register_unwind): When a register, set addrp to
4220 the register's byte.
4222 2002-08-20 Michael Snyder <msnyder@redhat.com>
4224 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4225 used locally, so move them from the target machine header to here.
4226 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4227 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4229 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4231 2002-08-20 Andrew Cagney <cagney@redhat.com>
4233 * NEWS: Mention that the Apollo line was made obsolete.
4234 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4235 m68*-hp-hpux* obsolete.
4236 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4237 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4238 * buildsym.c (make_blockvector): Make static.
4239 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4240 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4241 (ALLDEPFILES): Remove dstread.c.
4242 (dstread.o): Obsolete make rule.
4243 * dstread.c: Makefile obsolete.
4245 * config/m68k/hp300hpux.mt: Ditto.
4246 * config/m68k/hp300hpux.mh: Ditto.
4247 * config/m68k/hp300bsd.mt: Ditto.
4248 * config/m68k/hp300bsd.mh: Ditto.
4249 * config/m68k/apollo68b.mt: Ditto.
4250 * config/m68k/apollo68v.mh: Ditto.
4251 * config/m68k/apollo68b.mh: Ditto.
4253 2002-08-20 Michael Snyder <msnyder@redhat.com>
4255 * mips-tdep.c (mips_in_return_stub): Make static.
4256 (mips_gdbarch_init): Set in_solib_return_trampoline.
4257 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4259 2002-08-20 Michael Snyder <msnyder@redhat.com>
4261 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4262 * gdbarch.c, gdbarch.h: Regenerate.
4263 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4265 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4267 2002-08-20 Michael Snyder <msnyder@redhat.com>
4269 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4270 (mips_gdbarch_init): Set skip_trampoline_code,
4271 in_solib_call_trampoline.
4272 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4273 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4275 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4277 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4279 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4280 vector type for ev registers.
4281 (e500_pseudo_register_read): New function.
4282 (e500_pseudo_register_write): New function.
4283 (e500_dwarf2_reg_to_regnum): New function.
4284 (PPC_UISA_NOFP_SPRS): New macro.
4285 (PPC_EV_REGS): New macro.
4286 (PPC_GPRS_PSEUDO_REGS): New macro.
4287 (registers_e500): New register set for e500.
4288 (variants): Add e500 variant.
4289 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4290 before setting architectural dependent variations. Initialize ev
4291 registers numbers. Add case for e500 architecture. Set the
4292 number of pseudo registers.
4294 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4296 * rs6000-tdep.c: Clean up comments.
4298 2002-08-20 Andrew Cagney <cagney@redhat.com>
4300 * h8300-tdep.c: Re-indent file.
4302 2002-08-20 Jim Blandy <jimb@redhat.com>
4304 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4307 2002-08-20 Keith Seitz <keiths@redhat.com>
4309 * breakpoints.c (watch_command_1): Use internal breakpoint
4310 when setting a watchpoint_scope breakpoint.
4312 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4314 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4315 (build_builtin_type_vec64i): Ditto.
4316 (build_builtin_type_vec128): Ditto.
4317 (build_builtin_type_vec128i): Ditto.
4319 2002-08-19 Michael Snyder <msnyder@redhat.com>
4321 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4322 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4323 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4324 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4325 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4326 CALL_DUMMY_ADDRESS): Delete.
4327 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4328 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4329 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4330 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4331 push_return_address.
4332 (mips_register_raw_size, mips_eabi_use_struct_convention,
4333 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4334 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4335 mips_init_extra_frame_info, mips_eabi_push_arguments,
4336 mips_n32n64_push_arguments, mips_push_return_address,
4337 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4338 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4340 2002-08-19 Michael Snyder <msnyder@redhat.com>
4342 * mips-tdep.c (mips_frame_num_args): New function.
4343 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4344 frame_saved_pc, frame_args_address, frame_locals_address,
4345 frame_num_args, and frame_args_skip.
4346 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4347 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4348 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4349 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4351 2002-08-20 Michael Snyder <msnyder@redhat.com>
4353 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4354 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4355 * mips-tdep.c (mips_store_struct_return): New function.
4356 (mips_extract_struct_value_address): New function.
4357 (mips_gdbarch_init): Set store_struct_return and
4358 extract_struct_value_address.
4360 2002-08-20 David Carlton <carlton@math.stanford.edu>
4362 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4363 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4364 (read_file_scope): Check that line_header is nonzero before
4365 decoding macro information.
4367 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4369 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4370 flag the general-purpose registers as floating-point on targets
4371 that don't support the floating-point registers.
4373 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4375 * rs6000-tdep.c (altivec_register_p): Delete.
4376 (rs6000_do_altivec_registers): Delete.
4377 (rs6000_altivec_registers_info): Delete.
4378 (rs6000_do_registers_info): Delete.
4379 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4380 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4382 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4384 * infcmd.c (do_registers_info): Print vector registers in hex
4386 (print_vector_info): Check that printing registers
4388 (print_float_info): Ditto.
4390 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4392 * mips-tdep.c (mips_gdbarch_init): Update.
4393 (mips_o32_extract_return_value): Rewrite.
4394 (mips_o32_store_return_value): Rewrite.
4395 (mips_o32_xfer_return_value): New function.
4396 (mips_xfer_register): Tweak debug print message. Allow for
4397 buf_offset when dumping the value transfered.
4399 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4401 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4402 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4403 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4404 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4405 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4407 2002-08-14 Michael Snyder <msnyder@redhat.com>
4409 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4411 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4413 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4415 (P): New macro to define a register as a pseudo register.
4416 (R, R4, R8, R16, FR32, R64, R0): Updated.
4417 (struct variant): Add new fields for number of pseudo registers
4418 and number of total registers.
4419 (tot_num_registers): New macro replacing....
4420 (num_registers): ...deleted macro.
4421 (num_registers): New function.
4422 (num_pseudo_registers): New function.
4423 (variants): Update all variants to intialize new fields correctly.
4424 Postpone initialization of number of pseudo regs and real regs.
4425 (init_variants): New function.
4426 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4429 2002-08-19 David Carlton <carlton@math.stanford.edu>
4431 * valops.c (search_struct_field): Change error message to treat
4432 return value of 0 from value_static_field as meaning that field is
4434 (value_struct_elt_for_reference): Ditto.
4435 * values.c (value_static_field): Treat an unresolved location the
4436 same as a nonexistent symbol. Fix PR gdb/635.
4437 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4438 enclosed. Fix PR gdb/574.
4439 * MAINTAINERS: Add self to Write After Approval list.
4441 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4443 * mips-tdep.c (mips_xfer_register): New function.
4444 (mips_n32n64_extract_return_value): Rewrite.
4445 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4446 instead of deprecated_extract_return_value.
4448 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4450 * rs6000-tdep.c (TDEP): Delete macro.
4451 (branch_dest): Replace use of TDEP macro with its body.
4452 (rs6000_pop_frame): Ditto.
4453 (rs6000_push_arguments): Ditto.
4454 (rs6000_skip_trampoline_code): Ditto.
4455 (rs6000_frame_saved_pc): Ditto.
4456 (rs6000_frame_chain): Ditto.
4457 (rs6000_register_name): Ditto.
4458 (rs6000_register_byte): Ditto.
4459 (rs6000_register_raw_size): Ditto.
4460 (rs6000_register_virtual_type): Ditto.
4461 (rs6000_register_convertible): Ditto.
4462 (rs6000_convert_from_func_ptr_addr): Ditto.
4464 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4466 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4468 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4469 MIPS_LINUX_JB_ELEMENT_SIZE.
4470 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4471 for MAX_REGISTER_RAW_SIZE arrays.
4472 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4473 MIPS_LINUX_JB_ELEMENT_SIZE.
4475 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4477 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4479 2002-08-19 Aidan Skinner <aidan@velvet.net>
4481 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4482 ada-valprint.c ada-tasks.c.
4483 (YYFILES): Add ada-exp.y.
4484 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4485 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4486 (ada-exp.tab.o): New target.
4488 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4490 * regcache.c (regcache_xfer_part): New function.
4491 (regcache_raw_read_part): New function.
4492 (regcache_raw_write_part): New function.
4493 (regcache_cooked_read_part): New function.
4494 (regcache_cooked_write_part): New function.
4495 * regcache.h (regcache_raw_read_part): Declare.
4496 (regcache_raw_write_part): Declare.
4497 (regcache_cooked_read_part): Declare.
4498 (regcache_cooked_write_part): Declare.
4500 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4502 * remote.c (remote_open_1): Add async_p.
4503 (remote_async_open_1): Delete.
4504 (open_remote_target): Delete.
4505 (remote_open, extended_remote_open): Update calls to remote_open_1.
4506 (remote_async_open, extended_remote_async_open): Call
4507 remote_open_1 instead of remote_async_open_1.
4509 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4511 * blockframe.c: Fix a few coding standard violations.
4513 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4515 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4517 * config/i386/tm-i386sco5.h: ... here. File removed.
4518 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4520 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4521 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4522 (TM_FILE): Set to tm-i386.h.
4523 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4524 * config/i386/tm-i386v.h: Remove file.
4525 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4526 instead of "i386/tm-i386v.h".
4527 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4528 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4530 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4531 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4534 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4536 * config/i386/nm-i386v.h: Add protection against
4538 (i386_register_u_addr): Remove prototype.
4539 (register_u_addr): New prototype.
4540 (REGISTER_U_ADDR): Redefine accordingly.
4541 * i386v-nat.c: Improve several comments.
4542 (i386_register_u_addr): Change signature and rename to
4543 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4546 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4548 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4549 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4550 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4551 deprecated_extract_return_value.
4552 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4553 rename mips_o32o64_push_arguments.
4554 (mips_gdbarch_init): Update.
4555 (mips_extract_return_value): Delete.
4556 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4557 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4558 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4559 (mips_n32n64_extract_return_value): Clone
4560 mips_extract_return_value.
4561 (mips_store_return_value): Delete.
4562 (mips_o32_store_return_value): Clone mips_store_return_value.
4563 (mips_o64_store_return_value): Clone mips_store_return_value.
4564 (mips_eabi_store_return_value): Clone mips_store_return_value.
4565 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4567 2002-08-18 Aidan Skinner <aidan@velvet.net>
4569 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4570 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4572 2002-08-18 Aidan Skinner <aidan@velvet.net>
4574 * ada-lang.c: Run through gdb_indent.sh.
4575 * ada-lang.h: Run through gdb_indent.sh.
4576 * ada-tasks.c: Run through gdb_indent.sh.
4577 * ada-typeprint.c: Run through gdb_indent.sh.
4578 * ada-valprint.c: Run through gdb_indent.sh.
4580 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4582 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4585 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4587 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4589 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4590 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4592 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4593 write_register_gen instead of write_register_bytes.
4595 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4596 i[3456]-*-osf1mk* configurations have been made obsolete.
4597 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4598 i[3456]86-*-osf1mk* hosts obsolete.
4599 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4601 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4602 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4603 config/i386/i386m3.mt, config/i386/nm-m3.h,
4604 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4605 config/i386/i386mk.mh, config/i386/i386mk.mt,
4606 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4608 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4609 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4610 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4612 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4614 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4615 (hppa_value_returned_from_stack): Declare.
4616 (hppa_extract_return_value): Declare.
4617 * config/pa/hppa.mt: New file.
4618 * configure.tgt: Recognize hppa*-*-*.
4619 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4621 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4623 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4626 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4628 * top.c (gdb_rl_operate_and_get_next): Make sure
4629 operate-and-get-next functions correctly even when the history
4630 list is completely filled.
4632 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4634 * MAINTAINERS (Target Instruction Set Architectures): Rename
4635 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4636 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4637 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4638 already listed under Host/Native.
4640 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4641 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4644 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4646 * config/ia64/ia64.mt: New file.
4647 * config/alpha/alpha.mt: New file.
4648 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4649 ia64-linux-gnu. Mention that ia64-elf is broken.
4650 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4652 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4654 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4655 generic_func_frame_valid instead of func_frame_valid.
4657 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4659 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4660 procfs appears to be broken when debugging on multi-processor
4661 machines. So enable software single stepping in order to avoid
4662 using the procfs interface to do next/step operations, using
4663 internal breakpoints instead.
4665 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4666 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4667 make this pc address equal to the value it would have if the
4668 system stepping capability was used. Also set a new flag used
4669 to ensure that we don't readjust the PC one more time later.
4671 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4672 address by DECR_PC_AFTER_BREAK when software single step is
4673 in use for this architecture, as this has already been taken
4674 care of in handle_inferior_event().
4676 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4678 * infrun.c (handle_inferior_event): Minor reformatting, to make
4679 a rather long condition expression easier to read.
4681 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4683 * Makefile.in (gdbtk.o): Move to end of file.
4684 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4685 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4686 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4687 (gdbtk-wrapper.o, gdbres.o): Ditto.
4689 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4691 * Makefile.in (copying.o): Separate out compile rule.
4692 (hpux-thread.o, procfs.o, signals.o): Ditto.
4693 (v850ice.o, z8k-tdep.o): Ditto.
4694 (tui-file.o): Move to TUI section.
4695 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4696 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4698 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4700 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4701 skip_trampoline_code, for better namespace-proofing.
4703 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4705 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4707 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4709 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4711 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4712 signal, check whether we hit a breakpoint before checking for a
4713 single step breakpoint. Otherwise, GDB fails to notice that a
4714 breakpoint has been hit when stepping onto a breakpoint.
4716 2002-08-16 Keith Seitz <keiths@redhat.com>
4718 * gdb-events.sh (clear_gdb_event_hooks): New function.
4719 * gdb-events.c: Regenerate.
4720 * gdb-events.h: Regenerate.
4722 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4724 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4725 not_a_sw_breakpoint.
4726 * breakpoint.h (bpstat_stop_status): Add parameter names.
4728 2002-08-16 Grace Sainsbury <graces@redhat.com>
4730 * remote.c (remote_insert_hw_breakpoint)
4731 (remote_remove_hw_breakpoint): Fix calculation of length field
4734 2002-08-15 Michael Snyder <msnyder@redhat.com>
4736 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4737 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4738 (supply_fpregset): Ditto.
4740 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4741 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4742 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4743 (TARGET_READ_SP): Delete.
4744 (DO_REGISTERS_INFO): Delete.
4745 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4747 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4748 from macros to functions.
4750 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4751 (mips_register_convertible, mips_register_convert_to_virtual,
4752 mips_register_convert_to_raw): Make static.
4753 (mips_read_sp): New function.
4754 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4755 (mips_do_registers_info): Make static.
4756 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4757 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4758 (mips_register_convert_from_type, mips_register_convert_to_type):
4760 (mips_gdbarch_init): Set up function_start_offset,
4761 register_virtual_size, pc_in_sigtramp.
4763 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4765 * infcmd.c (vector_info): New function.
4766 (_initialize_infcmd): Add command "info vector".
4767 (print_vector_info): New function.
4769 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4770 * gdbarch.h, gdbarch.c: Regenerate.
4772 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4774 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4775 ``print_all''. Only print vector registers when ``print_all''.
4777 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4779 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4780 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4782 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4783 Add `args' parameter.
4784 * gdbarch.h, gdbarch.c: Regenerate.
4786 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4788 * infcmd.c (float_info): Call print_float_info.
4789 (print_float_info): New function. By default, print the
4790 floating-point registers.
4792 * arch-utils.h (default_print_float_info): Delete declaration.
4793 * arch-utils.c (default_print_float_info): Delete function.
4795 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4797 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4800 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4803 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4804 * configure.host: Make i[3456]86-*-aix host obsolete.
4805 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4806 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4807 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4808 config/i386/xm-i386aix.h: Make files obsolete.
4809 * i386aix-nat.c: Make file obsolete.
4810 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4811 (i386aix-nat.o): Make target obsolete.
4813 * config/i386/nm-gnu.h: Removed.
4814 * config/i386/nm-i386gnu.h: New file.
4815 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4816 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4818 * config/i386/tm-i386gnu.h: ... here. Removed.
4819 * config/i386/xm-i386gnu.h: Removed.
4820 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4821 (NAT_FILE): Set to nm-i386gnu.h.
4822 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4823 * i386-tdep.c: New file.
4824 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4825 (i386gnu-tdep.o): Specify dependencies.
4827 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4829 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4830 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4831 Adjust a few comments to reflect reality a bit closer.
4832 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4833 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4834 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4835 target_insert_watchpoint, target_remove_watchpoint):
4837 * config/i386/nm-i386sco5.h: ... here.
4838 (kernel_u_size): Add prototype. Improve a few comments and add
4839 protection against multiple inclusion.
4841 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4844 * uw-thread.c (SP_ARG0): Define if not already defined.
4845 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4847 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4849 * config/i386/tm-i386.h: Don't include "regcache.h".
4851 * i387-tdep.h (i387_print_float_info): New prototype.
4852 * i387-tdep.c (print_i387_value, print_i387_ext,
4853 print_i387_status_word, print_i387_control_word): Add `struct
4854 ui_file *' argument and use it for output.
4855 (i387_print_float_info): Renamed from i387_float_info. Add
4856 `struct gdbarch *' and `struct ui_file *' arguments and use the
4858 * i386-tdep.c: Include "i387-tdep.h".
4859 (i386_gdbarch_init): Set print_float_info.
4860 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4861 (FLOAT_INFO): Remove define.
4863 2002-08-13 Michael Snyder <msnyder@redhat.com>
4865 * mips-tdep.c (mips_push_arguments): Rename to
4866 mips_eabi_push_arguments, and tune for EABI.
4867 (MIPS_REGS_HAVE_HOME_P): Delete.
4868 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4869 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4870 Delete references to mips_regs_have_home_p.
4872 2002-08-14 Keith Seitz <keiths@redhat.com>
4874 * Makefile.in (install-gdbtk): Create insight plugin directory.
4875 Install plugins.tcl file.
4877 2002-08-14 Keith Seitz <keiths@redhat.com>
4879 * configure.in: Move SUBDIRS to near top of the file so that
4880 --enable options may add things to it.
4881 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4882 * configure: Regenerate.
4884 2002-08-13 Michael Snyder <msnyder@redhat.com>
4886 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4887 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4888 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4890 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4892 * vax-tdep.c (vax_get_saved_register): Delete function.
4893 (vax_gdbarch_init): Update.
4894 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4895 (ns32k_gdbarch_init): Update.
4896 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4897 (alpha_gdbarch_init): Update.
4899 2002-08-13 Andrew Cagney <cagney@redhat.com>
4901 * regcache.c (init_regcache_descr): Overallocate the
4902 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4903 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4905 (set_register_cached): Add range checking assertions. Use
4908 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4910 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4911 numbers for MMX registers.
4913 2002-08-13 Andrew Cagney <cagney@redhat.com>
4915 * i386-tdep.c (i386_gdbarch_init): Use
4916 generic_unwind_get_saved_register.
4918 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4920 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4921 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4923 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4924 Delete. Add comment regarding this now-deleted target method.
4926 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4928 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4929 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4930 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4931 real PC and the page number (if it's within the memory bank window).
4932 (m68hc11_pseudo_register_write): Likewise when saving.
4933 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4934 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4935 (m68hc11_register_raw_size): And use 32-bit for it.
4936 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4937 16K memory bank is used by the prog; also use the virtual pc.
4939 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4941 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4942 (m68hc11_gdbarch_init): Install it in gdbarch.
4943 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4944 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4945 (MSYMBOL_SIZE): New for documentation.
4946 (insn_return_kind): Enum to specify how a function returns.
4947 (frame_extra_info): Cleanup and record the return mode.
4948 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4949 register in address computation.
4950 (m68hc11_get_return_insn): New to obtain the return instruction used
4952 (m68hc11_frame_init_saved_regs): Take into account the return
4953 instruction used by the function for far and interrupt functions.
4954 (m68hc11_init_extra_frame_info): Take into account page register.
4955 (m68hc11_frame_args_address): Adjust according to the return mode.
4956 (show_regs): Print page register only when it's used.
4958 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4960 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4961 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4962 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4964 (m68hc11_register_raw_size): Likewise.
4966 2002-08-13 Andrew Cagney <cagney@redhat.com>
4968 * i386-tdep.c (i386_register_name): Handle mmx registers.
4969 (mmx_regnum_p): New function.
4970 (i386_mmx_names): New array.
4971 (mmx_num_regs): New variable.
4972 (i386_pseudo_register_read): New function.
4973 (i386_pseudo_register_write): New function.
4974 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4976 * regcache.c (regcache_raw_read_unsigned): New function.
4977 (regcache_raw_read_signed): New function.
4978 * regcache.h (regcache_raw_read_unsigned): Declare.
4979 (regcache_raw_read_signed): Declare.
4981 2002-08-13 Andrew Cagney <cagney@redhat.com>
4983 * regcache.c (regcache_raw_read_as_address): Delete function.
4984 (regcache_cooked_read_signed): New function.
4985 (regcache_cooked_read_unsigned): New function.
4986 * regcache.h (regcache_cooked_read_signed): Declare.
4987 (regcache_cooked_read_unsigned): Declare.
4988 (regcache_raw_read_as_address): Delete declaration.
4990 * blockframe.c (generic_read_register_dummy): Use
4991 regcache_cooked_read_unsigned.
4992 * i386-tdep.c (i386_extract_struct_value_address): Use
4993 regcache_cooked_read_unsigned.
4995 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4998 double sizes according to ELF ABI flags.
4999 (gdbarch_tdep): Record elf_flags.
5001 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5003 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5004 (m6812_prolog): They can appear in 68HC12 function prologue.
5005 (m68hc11_frame_chain): Cleanup.
5007 2002-08-12 Andrew Cagney <cagney@redhat.com>
5009 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5011 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5012 (i386_linux_register_raw_size): Delete function.
5013 (i386_linux_init_abi): Update.
5014 * i386-tdep.c (i386_register_raw_size): Delete function.
5015 (i386_register_byte): Delete function.
5016 (i386_gdbarch_init): Update.
5017 (i386_register_size): Delete array.
5018 (i386_register_offset): Delete array.
5020 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5021 (REGISTER_RAW_SIZE): Delete macro.
5022 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5023 (REGISTER_BYTE): Delete macro.
5025 2002-08-11 Aidan Skinner <aidan@velvet.net>
5027 * ada-lang.c (ada_lookup_partial_symbol)
5028 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5029 prototype names so that grep ^func works properly.
5031 * ada-lang.c (ada_array_element_type)
5032 (ada_lookup_partial_symbol): Fix typos in parameter list.
5034 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5035 Fix prototype names so that grep ^func works properly.
5037 2002-08-10 Andrew Cagney <cagney@redhat.com>
5038 Elena Zannoni <ezannoni@redhat.com>
5039 Martin M. Hunt <hunt@redhat.com>
5041 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5042 (build_builtin_type_vec128i): Set the vector bit.
5043 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5044 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5045 (build_builtin_type_vec64): New function.
5046 (build_builtin_type_vec64i): New function.
5047 (build_gdbtypes): Initialize builtin_type_vec64 and
5048 builtin_type_vec64i.
5050 2002-08-09 Andrew Cagney <cagney@redhat.com>
5052 * regcache.c (regcache_dump): Compare the register offset
5054 * arch-utils.c (generic_register_byte): New function.
5055 * arch-utils.h (generic_register_byte): Declare.
5056 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5057 * gdbarch.h, gdbarch.c: Regenerate.
5059 2002-08-09 Andrew Cagney <cagney@redhat.com>
5061 * regcache.c: Include "gdbcmd.h"
5062 (_initialize_regcache): Add commands "maintenance print
5063 registers", "maintenance print raw-registers" and "maintenance
5064 print cooked-registers".
5065 (enum regcache_dump_what): Define.
5066 (dump_endian_bytes): New function.
5067 (regcache_dump): New function.
5068 (regcache_print): New function.
5069 (maintenance_print_registers): New function.
5070 (maintenance_print_raw_registers): New function.
5071 (maintenance_print_cooked_registers): New function.
5072 * Makefile.in (regcache.o): Update dependencies.
5074 2002-08-09 Michael Snyder <msnyder@redhat.com>
5076 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5077 (mips_push_arguments): Correct some comments. Use paddr_nz
5078 for printing addresses in debug output. Replace static
5079 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5080 (mips_n32n64_push_arguments): New function, cloned from
5081 mips_push_arguments and tuned for the n32/n64 ABI.
5082 (mips_push_register): Buffer needs dynamic allocation.
5083 (mips_print_register): Ditto.
5084 (do_gp_register_row): Ditto.
5085 (mips_store_return_value): Ditto.
5086 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5088 2002-08-09 Don Howard <dhoward@redhat.com>
5090 * memattr.c (mem_info_command): Print special case of upper bound
5091 as max CORE_ADDR + 1.
5093 2002-08-08 Michael Snyder <msnyder@redhat.com>
5095 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5096 returns structs by ref if they're too big to fit in two registers.
5098 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5100 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5102 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5103 mips_find_saved_regs().
5104 (mips_pop_frame): Likewise.
5106 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5108 * blockframe.c (frame_saved_regs_register_unwind): Revise
5109 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5112 2002-08-09 Grace Sainsbury <graces@redhat.com>
5114 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5115 T-packets; the 'a' is not taken as a register number.
5116 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5117 (remote_stopped_data_address): New functions; add to target
5119 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5120 prototypes to match other implementations of this
5121 function. replace integer argument with pointer -- the length
5122 field in the Z-packet is the length of what is pointed to or 1 if
5123 pointer is null. Add to target vector.
5124 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5128 * remote.c (remote_wait): Add support to extract optional
5129 watchpoint information from T-packet. Ignore unrecognized
5130 optional info in T-packet.
5131 (remote_async_wait): Ditto.
5133 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5135 * cli/cli-dump.c: Change fopen modes to use binary open modes
5136 as defined in include/fopen-bin.h throughout.
5138 2002-08-08 Michael Snyder <msnyder@redhat.com>
5140 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5142 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5144 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5145 assertion failure by returning early after a warning.
5147 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5149 * mips-tdep.c (mips_find_saved_regs): Make static.
5150 (mips_frame_init_saved_regs): New function.
5151 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5152 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5153 (mips_find_saved_regs): Delete declaration.
5155 2002-08-08 Grace Sainsbury <graces@redhat.com>
5157 * remote.c (remote_wait, remote_async_wait): Change
5158 thread_num from int to ULONGEST.
5159 (unpack_varlen_hex): Change result parameter from
5160 int * to ULONGEST *.
5162 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5164 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5165 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5167 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5169 2002-08-08 Andrew Cagney <cagney@redhat.com>
5171 * gcore.c (override_derive_stack_segment): Delete variable.
5172 (preempt_derive_stack_segment): Delete function.
5173 (derive_stack_segment): Delete function.
5174 (default_derive_stack_segment): Renamed to derive_stack_segment.
5175 (override_derive_heap_segment): Delete variable.
5176 (preempt_derive_heap_segment): Delete function.
5177 (derive_heap_segment): Delete function.
5178 (default_derive_heap_segment): Rename to derive_heap_segment.
5180 2002-08-06 Michael Snyder <msnyder@redhat.com>
5182 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5183 * mips-tdep.c (mips_EABI_use_struct_convention,
5184 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5185 New functions. (mips_use_struct_convention): Delete.
5186 (mips_gdbarch_init): set use_gdbarch_convention.
5188 2002-08-06 Michael Snyder <msnyder@redhat.com>
5190 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5191 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5192 mips_o32_reg_struct_has_addr): New functions.
5193 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5195 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5197 * regcache.c (pseudo_register): Delete function.
5198 (fetch_register): Delete function.
5199 (store_register): Delete function.
5200 (regcache_raw_read, legacy_read_register_gen): Use
5201 target_fetch_registers instead of fetch_register.
5202 (legacy_write_register_gen, regcache_raw_write): Use
5203 target_store_register instead of store_register.
5204 (write_register_bytes): Ditto.
5206 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5207 (STORE_PSEUDO_REGISTER): Delete.
5208 * gdbarch.h, gdbarch.c: Regenerate.
5210 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5212 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5213 write dump file binary.
5215 2002-08-05 Michael Snyder <msnyder@redhat.com>
5217 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5218 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5219 (mips_gdbarch_init): Set N32 target to be mips64.
5221 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5223 * frame.c (find_saved_register): Break out of loop once saved
5224 register address is found. Don't mention sparc in loop comment
5227 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5229 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5230 mips_default_saved_regsize to 8.
5232 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5234 * gcore.c: Do not include <sys/procfs.h>.
5235 * Makefile.in (gcore.o): Update dependencies.
5237 2002-08-06 Andrew Cagney <cagney@redhat.com>
5239 * configure.tgt: Make arc-*-* obsolete.
5240 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5241 * MAINTAINERS: Make arc-elf obsolete.
5242 * arc-tdep.c: Make file obsolete.
5243 * config/arc/arc.mt: Ditto.
5244 * config/arc/tm-arc.h: Ditto.
5246 2002-08-05 Theodore A. Roth <troth@verinet.com>
5248 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5250 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5252 * mcore-tdep.c (mcore_gdbarch_init): Use
5253 generic_unwind_get_saved_register instead of
5254 generic_get_saved_register.
5255 * v850-tdep.c (v850_gdbarch_init): Ditto.
5256 * frv-tdep.c (frv_gdbarch_init): Ditto.
5257 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5258 * s390-tdep.c (s390_gdbarch_init): Ditto.
5259 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5260 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5261 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5263 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5265 * objfiles.h: Add missing #include "symfile.h"
5267 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5269 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5271 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5272 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5275 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5277 * NEWS: Cleanup and nitpick.
5279 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5281 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5283 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5285 * Makefile.in (gdbtk-bp.o): Update dependencies.
5286 (gdbtk-register.o): Ditto.
5287 (gdbtk-varobj.o): Ditto.
5289 2002-08-03 Andrew Cagney <cagney@redhat.com>
5291 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5292 m68hc11_fetch_pseudo_register.
5293 (m68hc11_pseudo_register_write): Replace
5294 m68hc11_store_pseudo_register.
5295 (m68hc11_gdbarch_init): Update.
5297 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5299 * gdbarch.sh: Include "gdb_string.h".
5300 * gdbarch.c: Regenerate.
5302 * regcache.c: Include "gdb_string.h".
5303 * ax-general.c: Ditto.
5305 * std-regs.c: Ditto.
5306 * fbsd-proc.c: Ditto.
5309 * Makefile.in (regcache.o): Update dependencies.
5310 (thread.o, gdbarch.o): Ditto.
5311 (ax-general.o, gdbarch.o): Ditto.
5312 (varobj.o, std-regs.o): Ditto.
5313 (fbsd-proc.o): Specify dependencies.
5315 2002-08-02 Andrew Cagney <cagney@redhat.com>
5317 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5319 (regcache_cooked_write): Ditto.
5321 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5323 * regcache.c (regcache_cooked_read): New function.
5324 (regcache_cooked_write): New function.
5325 (read_register_gen): Rewrite using regcache_cooked_read.
5326 (write_register_gen): Rewrite using regcache_cooked_write.
5328 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5331 2002-08-02 Andrew Cagney <cagney@redhat.com>
5333 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5334 Replace the architecture methods register_read and register_write.
5335 * gdbarch.h, gdbarch.c: Regenerate.
5336 * regcache.c (init_regcache_descr): Update.
5337 (read_register_gen): Update.
5338 (write_register_gen): Update.
5339 (supply_register): Update comment.
5341 * sh-tdep.c (sh_gdbarch_init): Update.
5342 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5343 `regcache' and `gdbarch' parameters. Make `buffer' a void
5344 pointer. Update code.
5345 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5346 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5347 void pointer. Update code.
5348 (sh64_register_write): Delete.
5349 (sh4_register_read): Delete.
5350 (sh64_register_read): Delete.
5351 (sh4_register_write): Delete.
5352 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5353 void pointer, `to' parameter a void pointer.
5354 (sh_sh64_register_convert_to_raw): Ditto.
5356 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5358 * mips-tdep.c (mips_register_virtual_type): Use architecture
5359 invariant return values.
5361 2002-08-01 Andrew Cagney <cagney@redhat.com>
5363 * linux-proc.c: Include "gdb_string.h".
5364 * Makefile.in (linux-proc.o): Update dependency list.
5366 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5368 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5371 2002-08-01 Grace Sainsbury <graces@redhat.com>
5373 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5374 to_insert_watchpoint, to_remove_watchpoint,
5375 to_stopped_by_watchpoint, to_stopped_data_address,
5376 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5377 target vecctor. Define their corresponding macros so they call
5380 * target.c: Add default and debug versions of for
5381 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5382 to_insert_watchpoint, to_remove_watchpoint,
5383 to_stopped_by_watchpoint, to_stopped_data_address,
5384 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5386 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5388 * mips-tdep.c (mips_register_virtual_type): New function.
5389 (mips_gdbarch_init): Register mips_register_virtual_type()
5390 with gdbarch machinery.
5391 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5392 this file instead of tm-bigmips.h.
5393 (MIPS_REGSIZE): Delete this macro.
5394 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5395 multiarch version in mips-tdep.c will be found.
5397 2002-08-01 Andrew Cagney <cagney@redhat.com>
5399 * NEWS: Menion that CHILL has been made obsolete.
5401 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5402 * stabsread.c (read_range_type): Ditto.
5403 * gdbtypes.h: Ditto.
5404 * language.c (binop_type_check): Ditto.
5405 (binop_result_type): Ditto.
5406 (integral_type): Ditto.
5407 (character_type): Ditto.
5408 (string_type): Ditto.
5409 (boolean_type): Ditto.
5410 (structured_type): Ditto.
5411 (lang_bool_type): Ditto.
5412 (binop_type_check): Ditto.
5413 * language.h (_LANG_chill): Ditto.
5414 * dwarfread.c (set_cu_language): Ditto.
5415 * dwarfread.c (CHILL_PRODUCER): Ditto.
5416 * dwarfread.c (handle_producer): Ditto.
5417 * expression.h (enum exp_opcode): Ditto.
5418 * eval.c: Ditto for comments.
5419 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5420 * expprint.c (print_subexp): Ditto.
5421 (print_subexp): Ditto.
5422 * valops.c (value_cast): Ditto.
5423 (search_struct_field): Ditto.
5424 * value.h (COERCE_VARYING_ARRAY): Ditto.
5425 * symfile.c (init_filename_language_table): Ditto.
5426 (add_psymbol_with_dem_name_to_list): Ditto.
5427 * valarith.c (value_binop): Ditto.
5429 * valops.c (value_slice): Ditto.
5430 * symtab.h (union language_specific): Ditto.
5431 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5432 (SYMBOL_DEMANGLED_NAME): Ditto.
5433 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5434 * defs.h (enum language): Ditto.
5435 * symtab.c (got_symtab): Ditto.
5436 * utils.c (fprintf_symbol_filtered): Ditto.
5438 * ch-typeprint.c: Make file obsolete.
5439 * ch-valprint.c: Make file obsolete.
5440 * ch-lang.h: Make file obsolete.
5441 * ch-exp.c: Make file obsolete.
5442 * ch-lang.c: Make file obsolete.
5444 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5446 (TARGET_FLAGS_TO_PASS): Ditto.
5447 (CHILLFLAGS): Obsolete.
5449 (CHILL_FOR_TARGET): Obsolete.
5450 (CHILL_LIB): Obsolete.
5451 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5453 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5454 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5456 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5459 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5461 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5462 This does not change anything at the moment, but will be helpful
5463 later when full Ada support is integrated.
5465 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5467 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5470 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5472 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5473 and save it in a local variable. Use variable in later test.
5475 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5477 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5478 test. (Thanks to Daniel Jacobowitz.)
5480 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5482 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5483 (mips_abi_strings): Add "n64".
5484 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5486 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5488 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5489 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5491 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5493 * utils.c (host_pointer_to_address, address_to_host_pointer):
5494 Use gdb_assert() instead of explicit call to internal_error().
5496 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5498 * Makefile.in (rs6000-nat.o): Update dependencies.
5500 From Nicholas Duffek:
5501 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5502 (aix-thread.o): New rule.
5503 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5504 * config/powerpc/aix432.mh: New file.
5506 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5508 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5509 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5510 (fetch_core_registers, ppc_linux_supply_gregset)
5511 (ppc_linux_supply_fpregset): New functions.
5512 (ppc_linux_regset_core_fns): New.
5513 (_initialize_ppc_linux_tdep): Call add_core_fns.
5514 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5515 and ppc_linux_supply_gregset.
5516 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5517 (supply_fpregset): Call ppc_linux_supply_fpregset.
5518 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5520 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5522 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5524 * symtab.c (lookup_symbol): Demangle before lowercasing.
5526 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5528 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5530 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5531 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5532 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5533 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5535 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5536 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5537 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5538 (avr-tdep.o, mon960-rom.o): Ditto.
5539 (aout_stabs_gnu_h): Define.
5540 (symtab_h): Remove $(gdb_obstack_h).
5542 2002-07-30 Jim Blandy <jimb@redhat.com>
5544 Patch from David Carlton <carlton@math.stanford.edu>:
5545 * gdbinit.in: Move the `dir' commands that add GDB's own source
5546 directory to the search path to the end, so that the `gdb' source
5547 directory will be searched first.
5549 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5551 * gdb_obstack.h: New file.
5552 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5553 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5554 * objfiles.h: Include "gdb_obstack.h".
5555 * Makefile.in (gdb_obstack_h): Define.
5556 (symtab_h): Add $(gdb_obstack_h).
5557 (objfiles_h): Add $(gdb_obstack_h).
5559 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5560 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5561 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5562 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5563 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5564 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5565 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5566 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5568 * Makefile.in (bcache.o): Update dependencies.
5569 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5570 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5571 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5572 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5573 (stabsread.o, symfile.o, symmisc.o): Ditto.
5574 (symtab.o, typeprint.o, macroexp.o): Ditto.
5575 (macrotab.o, mdebugread.o): Ditto.
5576 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5577 (coff_ecoff_h, aout_aout64_h): Define.
5578 (aout_stabs_gnu_h, libaout_h): Define.
5580 2002-07-29 Andrew Cagney <cagney@redhat.com>
5582 * regcache.c (struct regcache_descr): Rename nr_registers to
5583 nr_cooked_registers. Revise comments describing the structure
5585 (init_regcache_descr): Update.
5586 (init_legacy_regcache_descr): Update.
5587 (read_register_gen, write_register_gen): When a cooked register in
5588 the raw register range, directly access the value from the raw
5591 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5593 * z8k-tdep.c: Do not include "obstack.h".
5594 * h8300-tdep.c, h8500-tdep.c: Ditto.
5595 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5596 * valprint.c, v850-tdep.c: Ditto.
5597 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5598 * mn10200-tdep.c: Ditto.
5600 * Makefile.in (z8k-tdep.o): Update dependencies.
5601 (m68hc11-tdep.o, valprint.o): Ditto.
5602 (v850-tdep.o, d10v-tdep.o): Ditto.
5603 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5604 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5605 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5606 (sh_opc_h, gdb_sim_sh_h): Define.
5607 (elf_sh_h, elf_bfd_h): Define.
5608 (opcode_m68hc11_h): Define.
5609 (OPCODES_SRC, OPCODES_DIR): define.
5610 (OPCODES): Use $(OPCODES_DIR).
5611 (gdb_sim_d10v_h): Rename sim_d10v_h.
5612 (gdb_sim_arm_h): Rename sim_arm_h.
5614 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5616 * utils.c (host_pointer_to_address, address_to_host_pointer):
5617 Change internal_error() message to indicate function responsible
5620 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5622 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5623 calls to local_hex_string_custom().
5625 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5627 * irix5-nat.c: Move IRIX shared library support from here...
5628 * solib-irix.c: ...to here. Revised substantially to work with
5629 generic solib framework.
5631 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5632 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5633 * mips-irix-tdep.c: New file.
5635 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5636 (mips-irix-tdep.o, solib-irix.o): New rules.
5637 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5639 * config/mips/irix6.mt (TDEPFILES): Likewise.
5640 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5642 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5644 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5645 disabled (via ``#if 0'') includes.
5647 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5649 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5650 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5651 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5652 Add support for the fpscr register.
5653 * rs6000-nat.c (regmap, fetch_inferior_registers)
5654 (store_inferior_registers, fetch_core_registers): Likewise.
5656 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5658 * rs6000-nat.c (language.h): Include.
5659 (special_regs): Delete this array.
5660 (regmap): New function.
5661 (fetch_register, store_register): Use regmap() to map gdb
5662 register numbers to ptrace register numbers. Also, use
5663 outputs from regmap() to make decisions regarding type of
5664 ptrace() call to make. In particular, don't compare against
5665 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5666 (fetch_inferior_registers, store_inferior_registers): Where
5667 possible, obtain register numbers from tdep struct. Don't
5668 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5669 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5670 (LAST_UISA_SP_REGNUM): Delete.
5672 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5674 * rs6000-nat.c (ppc-tdep.h): Include.
5675 (fetch_registers, store_register, fetch_core_registers): Don't
5676 access registers[] directly. Instead, use supply_register() or
5677 regcache_collect() as appropriate.
5678 (find_toc_address): Format hex address with local_hex_string().
5680 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5682 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5685 2002-07-24 Tom Tromey <tromey@redhat.com>
5687 * jv-exp.y: Marked all strings with _().
5688 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5690 (MethodInvocation, CastExpression, parse_number, yyerror,
5691 java_type_from_name, push_expression_name, yylex): Typo fixes.
5693 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5695 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5696 (tee_file_flush, tee_file_write, tee_file_fputs)
5697 (tee_file_isatty): New.
5698 * ui-file.h (tee_file_new): Add prototype.
5700 2002-07-24 Aidan Skinner <aidan@velvet.net>
5702 * ada-lang.c: Change k&r style function definitions to prototyped
5704 * ada-typeprint.c: Change k&r style function definitions to prototyped
5706 * ada-valprint.c: Change k&r style function definitions to prototyped
5709 2002-07-24 Andrew Cagney <cagney@redhat.com>
5711 * README: Remove reference to remote-bug.
5712 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5714 (m88k-nat.o): Delete rule.
5715 (m88k-tdep.o): Delete rule.
5716 (remote-bug.o): Delete rule.
5717 * MAINTAINERS: Mark as obsolete.
5718 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5719 * m88k-tdep.c: Make file obsolete.
5720 * config/m88k/m88k.mh: Ditto.
5721 * config/m88k/delta88v4.mh: Ditto.
5722 * config/m88k/delta88v4.mt: Ditto.
5723 * config/m88k/delta88.mt: Ditto.
5724 * config/m88k/delta88.mh: Ditto.
5725 * remote-bug.c: Ditto.
5726 * config/m88k/tm-delta88.h: Ditto.
5727 * config/m88k/nm-delta88v4.h: Ditto.
5728 * config/m88k/xm-delta88.h: Ditto.
5729 * config/m88k/xm-dgux.h: Ditto.
5730 * config/m88k/tm-m88k.h: Ditto.
5731 * config/m88k/nm-m88k.h: Ditto.
5732 * config/m88k/tm-delta88v4.h: Ditto.
5733 * m88k-nat.c: Ditto.
5734 * cxux-nat.c: Ditto.
5735 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5736 and m88*-*-* obsolete.
5737 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5740 2002-07-24 Andrew Cagney <cagney@redhat.com>
5742 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5743 constant. Same for local pointer variables.
5744 (extract_signed_integer): Ditto.
5745 * defs.h (extract_unsigned_integer): Update.
5746 (extract_signed_integer): Update.
5748 2002-07-24 Andrew Cagney <cagney@redhat.com>
5750 * regcache.c (regcache_raw_write): Change buf parameter to a
5751 constant void pointer.
5752 (regcache_raw_read): Change buf parameter to a void pointer.
5753 (legacy_write_register_gen): Change myaddr parameter a constant
5755 (supply_register): Change val parameter to a const void pointer.
5756 * regcache.h (regcache_raw_write): Update declaration.
5757 (regcache_raw_read): Update declaration.
5758 (supply_register): Update declaration.
5760 2002-07-24 Tom Tromey <tromey@redhat.com>
5762 * defs.h (gdb_readline_wrapper): Declare.
5763 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5764 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5765 * top.c (gdb_readline_wrapper): New function.
5766 (command_line_input): Use it.
5768 2002-07-24 Andrew Cagney <cagney@redhat.com>
5770 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5771 regcache_read and regcache_write.
5772 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5773 * regcache.c: Update.
5774 * sh-tdep.c (sh64_push_arguments): Update comment.
5775 (sh_pseudo_register_read): Update.
5776 (sh_pseudo_register_write): Update.
5777 (sh4_register_read): Update.
5778 (sh4_register_write): Update.
5779 (sh64_pseudo_register_read): Update.
5780 (sh64_pseudo_register_write): Update.
5781 (sh64_register_read): Update.
5782 (sh64_register_write): Update.
5783 * i386-tdep.c (i386_extract_return_value): Update.
5784 (i386_extract_struct_value_address): Update.
5785 (i386_extract_return_value): Update.
5786 * blockframe.c (generic_read_register_dummy): Update.
5787 (generic_call_dummy_register_unwind): Update
5788 * infrun.c (write_inferior_status_register): Update.
5790 2002-07-23 Jim Blandy <jimb@redhat.com>
5792 * parser-defs.h (expression_context_pc): Make this extern.
5793 (Thanks to Michael Snyder.)
5795 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5797 GDB 5.2.1 released from 5.2 branch.
5798 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5799 * README: Update to mention 5.2.1.
5801 2002-07-23 Mark Salter <msalter@redhat.com>
5803 * remote.c (remote_read_bytes): Fix check for error.
5805 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5807 * aix-thread.c (language.h): Include.
5808 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5809 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5810 Print newlines at end of debug messages.
5811 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5812 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5814 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5816 * aix-thread.c (ppc-tdep.h): Include.
5817 (special_register_p): New function.
5818 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5819 (store_regs_user_thread): Use register number information from
5820 gdbarch_tdep struct instead of hardcoded offsets relative to
5821 FIRST_UISA_SP_REGNUM.
5822 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5823 special_register_p() instead of using FPLAST_REGNUM and
5824 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5825 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5826 will be MQ's register number.
5828 2002-07-22 Michael Snyder <msnyder@redhat.com>
5830 * aix-thread.c (ops): Rename to aix_thread_ops.
5831 (base_ops): Rename to base_target.
5832 (ops_attach): Rename to aix_thread_attach.
5833 (ops_detach): Rename to aix_thread_detach.
5834 (ops_resume): Rename to aix_thread_detach.
5835 (ops_wait): Rename to aix_thread_wait.
5836 (ops_kill): Rename to aix_thread_kill.
5837 (init_ops): Rename to init_aix_thread_ops.
5838 (ops_fetch_register): Rename to aix_thread_fetch_register.
5839 (ops_store_register): Rename to aix_thread_store_register.
5840 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5841 (ops_thread_alive): Rename to aix_thread_thread_alive.
5842 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5843 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5844 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5845 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5846 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5847 (store_regs_lib): Rename to store_regs_user_thread.
5848 (store_regs_kern): Rename to store_regs_kernel_thread.
5850 2002-07-22 Michael Snyder <msnyder@redhat.com>
5852 * aix-thread.c (ops_prepare_to_store): Eliminate.
5853 (init_ops): Don't initialize ops.prepare_to_store.
5854 (store_regs_kern): Pre-fetch register buffers from child,
5855 because some registers may not be in the cache. Copy
5856 regs from register cache only if they are cached.
5857 (store_regs_lib): Copy regs from register cache only
5859 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5860 fill_gprs64): Ditto.
5862 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5864 * aix-thread.c (gdb_assert.h): Include.
5865 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5866 register sizes (from register cache) match size of buffer holding
5868 (fill_sprs32): Change parameter types to match those in the ptrace()
5870 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5871 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5873 2002-07-22 Michael Snyder <msnyder@redhat.com>
5875 * aix-thread.c (supply_sprs64): Cosmetic change.
5876 (supply_sprs32): Cosmetic change.
5877 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5878 (fill_sprs64): Use regcache_collect instead of read_register.
5879 (store_regs_lib): Use regcache_collect instead of
5880 read_register. Use fill_sprs32 instead of fill_sprs64,
5881 if debugging a 32-bit architecture.
5882 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5883 out of the register cache, instead of passing a pointer into
5884 the register cache directly to ptrace. Use regcache_collect
5885 insteaad of read_register.
5886 (ops_prepare_to_store): Use target_read_registers instead
5887 of read_register_bytes.
5889 2002-07-20 Aidan Skinner <aidan@velvet.net>
5891 * MAINTAINERS: Add self under write after approval.
5893 2002-07-20 Aidan Skinner <aidan@velvet.net>
5895 * ada-tasks.c: Change k&r style function definitions to prototyped
5898 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5900 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5901 * x86-64-tdep.c: Include "objfiles.h".
5902 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5903 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5905 2002-07-17 Michal Ludvig <michal@suse.cz>
5907 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5908 (update_context): Initialise cfa variable.
5910 2002-07-17 Michael Snyder <msnyder@redhat.com>
5912 * aix-thread.c: Shorten some long lines.
5913 Bring comments into line with code spec.
5915 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5917 * infrun.c: Re-indent using gdb_indent.sh.
5919 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5921 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5922 Leave the indentation temporarily untouched, to minimize the diffs.
5924 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5926 * stabsread.c: Make os9k sections of the code obsolete,
5928 * stabsread.h: Make os9k sections of the code obsolete.
5930 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5932 * linux-low.c (regsets_store_inferior_registers): Add free()
5933 at the end of a loop to prevent memory leak.
5934 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5935 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5936 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5938 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5940 2002-07-17 Jim Blandy <jimb@redhat.com>
5942 * macrocmd.c (info_macro_command): Remove newline from error
5945 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5947 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5948 (sh_gdbarch_init): Use it for sh-dsp.
5950 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5952 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5953 64-bit DWARF2 format.
5955 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5957 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5958 <sys/proc.h> when not available.
5960 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5962 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5963 * stabsread.c: Make os9k sections of the code obsolete.
5964 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5965 * config/i386/i386os9k.mt: Make file obsolete.
5966 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5967 (COMMON_OBS): Remove os9kread.o
5968 (SFILES): Remove os9kread.c.
5969 (os9kread.o, remote-os9k.o): Make target obsolete.
5970 * remote-os9k.c: Make file obsolete.
5971 * os9kread.c: Make file obsolete.
5974 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5976 * NEWS: Mention that the FR30 has been made obsolete.
5977 * fr30-tdep.c: Make file obsolete.
5978 * config/fr30/tm-fr30.h: Ditto.
5979 * config/fr30/fr30.mt: Ditto.
5980 * configure.tgt: Make fr30-*-elf obsolete.
5981 * MAINTAINERS: Make fr30-elf obsolete.
5983 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5985 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5986 found is not inside a section.
5988 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5990 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5992 (pdc_realloc): Use xrealloc() instead of realloc().
5994 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5996 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5997 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5998 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6001 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6003 * aix-thread.c (ptrace_check): Eliminate goto.
6004 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6007 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6009 * aix-thread.c (gdbcmd.h): Include.
6010 (DEBUG, DBG, DBG2, dbg): Eliminate.
6011 (debug_aix_thread): New static global.
6012 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6013 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6014 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6015 invocations to DBG and DBG2 macros to test against
6016 ``debug_aix_thread'' and call fprintf_unfiltered().
6017 (_initialize_aix_thread): Add new command "set debug aix-thread".
6019 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6021 From Gerhard Tonn <TON@de.ibm.com>:
6022 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6023 instead of supply_register.
6025 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6027 * dwarf2cfi.c: Include "gdb_assert.h".
6028 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6030 (update_context): Do not use __func__. Add missing ``break''.
6031 (update_context): Do not use __func__.
6033 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6035 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6036 and its setting. Set gdbarch instruction printing functions
6037 directly. For non-rs6000 case use new function
6038 gdb_print_insn_powerpc.
6039 (gdb_print_insn_powerpc): New function.
6041 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6043 * NEWS: Mention that the d30v has been marked obsolete.
6044 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6045 * configure.tgt: Mark d30v-*-* as obsolete.
6046 * d30v-tdep.c: Mark file as obsolete.
6047 * config/d30v/d30v.mt: Ditto.
6048 * config/d30v/tm-d30v.h: Ditto.
6050 2002-07-13 Aidan Skinner <aidan@velvet.net>
6052 * ada-tasks.c (add_task_entry): replace calls to
6053 malloc() with xmalloc
6054 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6056 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6057 ada_finish_decode_line_1, all_sals_for_line
6058 ada_breakpoint_rewrite): replace calls to free() with xfree()
6060 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6062 From Nicholas Duffek (with minor changes by Martin Hunt,
6063 Louis Hamilton, and Kevin Buettner):
6064 * aix-thread.c: New file.
6066 2002-07-12 Petr Sorfa <petrs@caldera.com>
6068 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6069 complaint for invalid attribute class or form.
6070 (read_func_scope): DW_AT_frame_base
6071 better handling of DW_AT_block*.
6072 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6073 better handling of DW_AT_block*.
6074 (read_common_block): DW_AT_location
6075 better handling of DW_AT_block*.
6076 (read_partial_die): DW_AT_location better handling
6078 (new_symbol): DW_AT_external better handling of
6079 DW_AT_block*. Proper initialization of variable
6081 (attr_form_is_block): New function that returns true
6082 if the attribute's form is of DW_FORM_block*.
6084 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6086 * valops.c (find_method_list): Remove comment about
6087 removed STATIC_MEMFUNCP argument.
6088 (value_find_oload_method_list): Likewise.
6090 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6092 From Nicholas Duffek:
6093 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6094 target_new_objfile_hook.
6096 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6098 From Nicholas Duffek:
6099 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6102 2002-07-12 Andrew Cagney <cagney@redhat.com>
6104 * MAINTAINERS: Mention --enable-sim-build-warnings.
6105 (m68hc11-elf): Disable sim build warnings.
6106 (m32r-elf): Mark as broken obsolete candidate.
6107 (x86_64-linux-gnu): Mark as buildable with -Werror.
6108 (arm-elf): Change -w to ``,'' which enables warnings but not
6111 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6113 * bcache.h: Update copyright.
6114 (struct bstring, struct bcache): Move definition to "bcache.c".
6115 Replaced by opaque declaration.
6116 (bcache_xfree): Replace free_bcache.
6117 (bcache_xmalloc, bcache_memory_used): Declare.
6119 * bcache.c: Update copyright.
6120 (struct bstring, struct bcache): Moved to here from "bcache.h".
6122 (bcache_xmalloc, bcache_memory_used): New functions.
6123 (bcache_xfree): Replace function free_bcache.
6125 * Makefile.in (objfiles.o): Add $(bcache_h).
6126 (objfiles_h): Remove $(bcache_h).
6127 (symfile.o): Add $(bcache_h).
6129 * symmisc.c: Update copyright.
6130 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6131 (print_objfile_statistics): Use bcache_memory_used.
6133 * symfile.c: Include "bcache.h".
6134 (reread_symbols): Use bcache_xfree.
6135 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6136 (add_psymbol_to_list): Pass psymbol_cache by value.
6137 (add_psymbol_with_dem_name_to_list): Ditto.
6139 * objfiles.h: Update copyright.
6140 (struct bcache): Declare opaque. Do not include "bcache.h".
6141 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6143 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6145 * objfiles.c: Include "bcache.h". Update copyright.
6146 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6148 (free_objfile): Use bcache_xfree.
6150 2002-07-11 Grace Sainsbury <graces@redhat.com>
6152 * monitor.c (monitor_fetch_register): Make name a constant.
6153 (monitor_store_register): Same.
6155 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6157 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6158 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6159 (finish_block) For non-function blocks, hash the symbol table. For
6160 function blocks, mark the symbol table as unhashed.
6161 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6162 (msymbol_hash_iw): Likewise.
6163 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6165 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6166 (lookup_minimal_symbol): Likewise for both.
6167 * symtab.h (struct block): Add `hashtable' flag. Comment the
6169 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6170 (ALL_BLOCK_SYMBOLS): Update.
6171 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6172 (struct symbol): Add `hash_next' pointer.
6173 * symtab.c (lookup_block_symbol): Search using the hash table when
6175 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6176 (search_symbols, find_addr_symbol): Likewise.
6178 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6179 (read_dst_symtab): Likewise.
6180 * jv-lang.c (get_java_class_symtab): Likewise.
6181 * mdebugread.c: Include "gdb_assert.h".
6182 (shrink_block): Assert that the block being modified is not hashed.
6183 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6184 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6186 (dump_symtab): Recognize hashed blocks.
6187 * printcmd.c (print_frame_args): Assert that function blocks do not
6188 have hashed symbol tables.
6189 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6190 (fill_in_ada_prototype, debug_print_block): Likewise.
6191 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6193 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6195 * stack.c (print_frame): Use result of frame_address_in_block()
6196 instead of fi->pc when evaluating symbols.
6197 (backtrace_command_1): Ditto.
6199 2002-07-11 Andrew Cagney <cagney@redhat.com>
6201 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6204 * arm-tdep.c (arm_register_name): Make return type constant.
6206 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6208 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6210 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6211 * s390-tdep.c (s390_fp_regnum): Ditto.
6212 (s390_read_fp): Ditto.
6213 (s390_pop_frame): Ditto.
6214 (_initialize_s390_tdep): Ditto.
6215 * remote.c (get_remote_state): Ditto.
6216 * procfs.c (mappingflags): Ditto.
6217 * memattr.c (_initialize_mem): Ditto.
6218 * mcore-tdep.c (mcore_pop_frame): Ditto.
6219 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6220 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6221 * language.c (set_case_str): Ditto.
6222 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6223 * frv-tdep.c (new_variant): Ditto.
6224 (frv_stopped_data_address): Ditto.
6225 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6226 (context_alloc): Ditto.
6227 (frame_state_alloc): Ditto.
6228 (unwind_tmp_obstack_init): Ditto.
6229 (unwind_tmp_obstack_free): Ditto.
6230 (cfi_read_fp): Ditto.
6231 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6232 (cris_pop_frame): Ditto.
6233 * c-lang.c (scanning_macro_expansion): Ditto.
6234 (finished_macro_expansion): Ditto.
6235 (c_preprocess_and_parse): Ditto.
6236 * gdbarch.sh: Ditto.
6237 * gdbarch.h, gdbarch.c: Regenerate.
6238 * config/mn10200/tm-mn10200.h: Adjust indentation.
6239 * target.c: Adjust indentation.
6240 * symtab.h: Adjust indentation.
6241 * stabsread.h: Adjust indentation.
6242 * remote-es.c: Adjust indentation.
6243 * os9kread.c: Adjust indentation.
6245 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6247 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6248 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6250 2002-07-10 Grace Sainsbury <graces@redhat.com>
6252 * NEWS: Mention m68k, mcore multi-arching.
6253 * MAINTAINERS: Change status of m68k, mcore to reflect
6256 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6258 * valops.c (find_overload_match): Free oload_syms.
6260 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6262 Define HAVE_SYS_PROC_H if sys/proc.h exists
6263 * configure.in: Add check for sys/proc.h
6264 * config.in: Regenerate.
6265 * configure: Regenerate.
6267 2002-07-09 Grace Sainsbury <graces@redhat.com>
6269 * config/m68k/tm-m68k.h: Remove macros wrapped in
6270 #if !GDB_MULTI_ARCH.
6272 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6274 * config.in, configure: Regenerate.
6276 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6278 * dwarf2cfi.c: Include "gcore.h".
6279 (execute_stack_op): Fix implementation of the
6280 DW_OP_deref and DW_OP_deref_size operators by letting do their
6281 lookup in the target.
6283 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6285 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6286 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6289 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6291 Fix PR gdb/595, gdb/602
6292 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6293 Don't call value_cast, just read the vtable pointer; update comments
6296 2002-07-05 Grace Sainsbury <graces@redhat.com>
6298 * config/mcore/tm-mcore.h: Remove file.
6299 * config/mcore/mcore.mt: Remove definition of TM_FILE
6300 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6302 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6304 * i386bsd-tdep.c: Include "gdb_string.h".
6306 2002-07-04 Grace Sainsbury <graces@redhat.com>
6308 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6309 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6311 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6312 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6313 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6314 (RETVAL_REGNUM): Move macros from tm-mcore.h
6315 (mcore_reg_struct_has_addr): New function.
6316 (mcore_gdbarch_init): Added initializations for the macros removed
6319 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6321 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6322 traditonal string branding within the ELF header.
6324 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6326 * symtab.c (remove_params): New function.
6327 (make_symbol_overload_list): Use it instead of cplus_demangle.
6328 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6330 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6332 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6334 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6336 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6337 and tdep->sigtramp_end.
6338 * i386obsd-nat.c: New file.
6339 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6341 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6342 Don't call get_current_frame().
6344 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6346 * i386-nat.c (child_post_startup_inferior): New function
6347 calling i386_cleanup_dregs if
6348 I386_USE_GENERIC_WATCHPOINTS is defined.
6349 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6350 conditional to acknowledge that i386-nat.c has its
6351 own child_post_startup_inferior function.
6353 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6355 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6356 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6357 instead of MAX_REGISTER_RAW_SIZE.
6358 (i386_extract_return_value, i386_extract_struct_value_address):
6359 Convert to use regcache.
6360 (i386_gdbarch_init): Set max_register_raw_size and
6361 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6362 Set extract_return_value and extract_struct_value_address instead
6363 of their deprecated variants.
6365 Convert i386 target to generic dummy frames.
6366 * i386-tdep.c: Include "symfile.h".
6367 (i386_frameless_signal_p): Consider a function to be frameless if
6368 the pc points at the first instruction of the function.
6369 (i386_frame_chain): Handle (generic) call dummies.
6370 (i386_frame_saved_pc): Likewise.
6371 (i386_frame_init_saved_regs): Remove code dealing with call
6372 dummies on the stack.
6373 (i386_push_dummy_frame): Removed.
6374 (i386_call_dummy_words): Removed.
6375 (i386_fix_call_dummy): Removed.
6376 (i386_push_return_address): New function.
6377 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6378 parameter, and don't call get_current_frame.
6379 (i386_pop_frame): New function.
6380 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6381 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6382 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6383 call_dummy_length to 0, set call_dummy_words to NULL, set
6384 sizeof_call_dummy_words to 0, set fix_call_dummy to
6385 generic_fix_call_dummy, set pc_in_call_dummy to
6386 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6387 generic_push_dummy_frame, set push_return_address to
6388 i386_push_return_address and set frame_chain_valid to
6389 generic_file_frame_chain_valid.
6391 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6393 * gdbarch.sh (struct regcache): Add opaque declaration.
6394 (EXTRACT_RETURN_VALUE): New architecture method.
6395 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6396 * gdbarch.h, gdbarch.c: Regenerate.
6397 * arch-utils.c (legacy_extract_return_value): New function.
6398 * arch-utils.h (legacy_extract_return_value): Declare.
6399 * values.c (value_being_returned): Re-enable code handling
6400 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6401 deprecated_grub_regcache_for_registers call to block handling
6402 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6403 (EXTRACT_RETURN_VALUE): Do not define.
6405 2002-07-03 Grace Sainsbury <graces@redhat.com>
6407 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6408 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6409 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6410 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6411 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6412 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6413 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6414 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6415 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6416 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6417 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6418 argument so the function fits the prototype in the architecture
6420 (mcore_pop_frame): Remove argument so the function fits the
6421 prototype. Use get_current_frame instead of the argument.
6422 (mcore_push_arguments): Change type of struct_return so the
6423 function can be used in the architecture vector.
6424 (mcore_store_struct_return): Add.
6425 (mcore_frame_init_saved_regs): Add.
6426 (mcore_gdbarch_init): Add function calls to replace the macros
6427 removed from tm-mcore.h
6429 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6431 * infcmd.c (print_return_value): Remove compatibility code calling
6432 deprecated_grub_regcache_for_registers.
6434 * values.c: Include "regcache.h".
6435 (value_being_returned): Update. Use
6436 deprecated_grub_regcache_for_registers to extract the register
6438 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6439 ``struct regcache''.
6440 * Makefile.in (values.o): Add dependency on $(regcache_h).
6442 * inferior.h (run_stack_dummy): Change type of second parameter to
6443 a ``struct regcache''.
6444 * valops.c (hand_function_call): Change type of retbuf to ``struct
6445 regcache''. Allocate using regcache_xmalloc, clean using
6446 make_cleanup_regcache_xfree.
6447 * infcmd.c (run_stack_dummy): Update. Use
6448 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6450 * regcache.c (do_regcache_xfree): New function.
6451 (make_cleanup_regcache_xfree): New function.
6452 * regcache.h (make_cleanup_regcache_xfree): Declare.
6454 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6456 * event-top.c (command_line_handler): Don't read past
6457 beginning of buffer.
6459 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6461 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6463 (varobj_create): Store frame_id for root.
6464 (varobj_gen_name): Use xasprintf.
6465 (varobj_update): Save and restore frame using get_frame_id() and
6467 (create_child): Use xasprintf.
6468 (new_root_variable): Initialize frame_id.
6469 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6470 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6471 to prevent memory leak.
6473 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6475 * valops.c (hand_function_call): Move declaration of retbuf to
6476 start of function, allocate using malloc, add a cleanup but before
6477 the inf_status cleanup, cleanup the buffer. Rename local variable
6478 old_chain to inf_status_cleanup.
6480 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6482 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6484 * cli/cli-decode.c (cmd_func_p): New function.
6485 (cmd_func): New function.
6487 * command.h: Add cmd_func() and cmd_func_p().
6489 2002-07-03 Grace Sainsbury <graces@redhat.com>
6491 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6492 (REGISTER_SIZE): Remove.
6493 (MAX_REGISTER_RAW_SIZE): Remove.
6494 (REGISTER_VIRTUAL_TYPE): Remove.
6495 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6496 (REGISTER_NAME): Remove.
6497 (USE_GENERIC_DUMMY_FRAMES): Remove.
6498 (CALL_DUMMY): Remove.
6499 (CALL_DUMMY_START_OFFSET): Remove.
6500 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6501 (CALL_DUMMY_LOCATION): Remove.
6502 (FIX_CALL_DUMMY): Remove.
6503 (CALL_DUMMY_ADDRESS): Remove.
6504 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6505 (SAVE_DUMMY_FRAME_TOS): Remove.
6506 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6507 (mcore_register_virtual_type): New function.
6508 (mcore_register_byte): New function.
6509 (mcore_register_size): New function.
6510 (mcore_register_name): New function.
6511 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6512 macros removed from tm-mcore.h.
6513 (mcore_dump_tdep): Add.
6514 (_initialize_mcore_tdep): Add gdbarch_register call.
6516 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6518 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6519 frameless_look_for_prologue, such that we actually call this
6522 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6524 * frame.h (frame_address_in_block): New function.
6526 * blockframe.c (frame_address_in_block): New function extracted
6527 from get_frame_block().
6528 (get_frame_block): Use frame_address_in_block().
6529 (block_innermost_frame): Use frame_address_in_block() to match
6530 the frame pc address against the block boundaries rather than
6531 the frame pc directly. This prevents a failure when a frame pc
6532 is actually a return-address pointing immediately after the end
6535 2002-07-02 Grace Sainsbury <graces@redhat.com>
6537 * MAINTAINERS: Add self under write after approval.
6539 2002-07-02 Grace Sainsbury <graces@redhat.com>
6541 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6542 used in architecture vector. The default is
6543 m68k_local_breakpoint_from_pc.
6544 (m68k_local_breakpoint_from_pc): Add.
6545 (enum): Add register numbers from tm-m68k.h.
6546 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6548 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6549 GDB_MULTI_ARCH_PARTIAL.
6550 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6551 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6553 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6554 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6555 to enum in m68k-tdep.c
6557 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6559 * solib-osf.c (open_map): Compute the list of shared libraries
6560 loaded by the inferior, rather than the list of libraries loaded
6561 by GDB itself. Otherwise, GDB ends up reading the symbols from
6562 the wrong shared libraries...
6564 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6566 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6567 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6569 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6571 (FRAMELESS_SIGNAL): Remove function.
6572 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6573 i386_linux_saved_pc_after_call): Removed.
6574 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6575 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6576 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6578 * i386-tdep.c (i386_frameless_signal_p): New function.
6579 (i386_frame_chain): Deal with frameless signals.
6580 (i386_sigtramp_saved_sp): New function.
6581 (i386_frame_saved_pc): Deal with frameless signals.
6582 (i386_saved_pc_after_call): Make sure the correct value is
6583 returned just after entry into a sigtramp.
6584 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6585 i386fbsd4_sc_sp_offset): New variables.
6586 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6587 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6588 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6589 similiar to what we already did for sc_pc_offset.
6590 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6593 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6595 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6597 * config/i386/tm-x86-64linux.h: New.
6598 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6600 * config/i386/nm-x86-64.h: Rename to ...
6601 * config/i386/nm-x86-64linux.h: ... this one.
6602 * config/i386/x86-64linux.mh: Reflect the above change.
6604 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6606 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6607 with sigcontext_addr. Add sc_sp_offset.
6608 (i386bsd_sigtramp_saved_pc): Remove prototype.
6609 (i386bsd_sicontext_addr): Add prototype.
6610 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6611 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6612 (i386_svr4_sigtramp_saved_pc): Removed.
6613 (i386_svr4_sigcontext_addr): New function.
6614 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6615 Initialize tdep->sigcontext_addr instead. Initialize
6616 tdep->sc_pc_offset and tdep->sc_sp_offset.
6617 (i386_gdbarch_init): Likewise.
6618 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6620 (i386bsd_sigtramp_saved_pc): Remove function.
6621 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6622 Initialize tdep->sigcontext_addr instead. Initialize
6624 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6625 of tdep->sigtramp_saved_pc.
6626 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6627 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6630 * i386-tdep.c (i386_frameless_function_invocation,
6631 i386_frame_num_args, i386_frame_init_saved_regs,
6632 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6633 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6634 i386_extract_return_value, i386_store_return_value,
6635 i386_extract_struct_value_address, i386_register_virtual_type,
6636 i386_register_convertible, i386_register_convert_to_virtual,
6637 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6638 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6641 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6643 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6645 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6646 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6647 this macro. Include "value.h".
6649 2002-06-30 Aidan Skinner <aidan@velvet.net>
6651 * ada-exp.tab.c: remove as it's a generated file
6652 * ada-lex.c: remove as it's a generated file
6654 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6656 * config/i386/tm-i386.h (struct frame_info, struct
6657 frame_saved_regs, struct value, struct type): Remove forward
6660 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6661 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6662 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6663 (FILL_FPXREGSET): Define.
6665 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6667 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6668 i[3456]86-*-netbsd* case.
6669 * config/i386/tm-obsd.h: Removed.
6670 * config/i386/obsd.mt: Removed.
6671 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6673 (MH_CFLAGS): Add -DYYDEBUG=0.
6675 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6676 i386nbsd_sc_pc_offset on OpenBSD too.
6678 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6679 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6680 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6682 * i386bsd-tdep.c: Include "arch-utils.h".
6683 (i386bsd_aout_in_solib_call_trampoline): New function.
6684 (i386bsd_init_abi): Set in_solib_call_trampoline to
6685 i386bsd_aout_in_solib_call_trampoline.
6686 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6687 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6689 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6691 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6692 (struct obstack, struct bcache): Add opaque declarations.
6693 * Makefile.in (macrotab_h): Update
6695 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6697 * blockframe.c (generic_find_dummy_frame): Change return type to
6698 ``struct regcache''.
6699 (struct dummy_frame): Replace field ``registers'' with regcache, a
6700 struct regcache object.
6701 (generic_find_dummy_frame): Update.
6702 (generic_push_dummy_frame): Update. Use regcache_xfree,
6703 regcache_xmalloc and regcache_cpy.
6704 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6706 (deprecated_generic_find_dummy_frame): Update.
6707 (generic_read_register_dummy): Update. Use
6708 regcache_read_as_address.
6709 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6710 (generic_get_saved_register): Update. Use regcache_read.
6712 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6714 * Makefile.in (objfiles_h): Add $(bcache_h).
6715 * objfiles.h: Include "bcache.h".
6717 * Makefile.in (symtab_h): Remove $(bcache_h).
6718 * symtab.h: Do not include "bcache.h".
6720 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6722 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6723 generic_func_frame_chain_valid.
6725 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6727 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6728 * config/i386/tm-fbsd.h: Likewise.
6730 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6732 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6733 generic_unwind_get_saved_register.
6735 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6737 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6738 * regcache.c (supply_register): Add missing argument to
6739 register_buffer call.
6741 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6743 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6744 Solaris /bin/grep does not not like it. From Peter Schauer.
6746 2002-06-26 Tom Tromey <tromey@redhat.com>
6748 * command.h (add_setshow_cmd): Declare.
6749 (add_setshow_cmd_full): Declare.
6750 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6751 returns void. Use add_setshow_cmd_full.
6752 (add_setshow_cmd_full): New function.
6753 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6754 (add_setshow_boolean_cmd): Likewise.
6756 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6758 * config/vax/tm-vax.h: Protect from multiple inclusion.
6759 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6760 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6761 * config/vax/tm-vaxbsd.h: ...here. New file.
6762 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6764 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6766 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6767 (BELIEVE_PCC_PROMOTION): Remove.
6768 (AP_REGNUM): Move to...
6769 * config/vax/nm-vax.h: ...here.
6770 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6771 (vax_breakpoint_from_pc): New function.
6772 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6773 and gdbarch_believe_pcc_promotion.
6775 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6777 * Makefile.in (vax_tdep_h): Define.
6778 (vax-tdep.o): Use $(vax_tdep_h).
6779 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6780 (vax_dump_tdep): New function.
6781 (_initialize_vax_tdep): Register vax_dump_tdep.
6782 * vax-tdep.h: Include osabi.h.
6783 (struct gdbarch_tdep): New.
6785 2002-06-26 Andrew Cagney <cagney@redhat.com>
6787 * frame.h (deprecated_generic_find_dummy_frame): Rename
6788 generic_find_dummy_frame.
6789 * blockframe.c (generic_find_dummy_frame): Make static.
6790 (deprecated_generic_find_dummy_frame): New function.
6791 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6792 generic_find_dummy_frame with deprecated_find_dummy_frame.
6793 (sh64_nofp_frame_init_saved_regs): Ditto.
6794 (sh_fp_frame_init_saved_regs): Ditto.
6795 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6796 (s390_frame_chain): Ditto.
6797 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6799 2002-06-26 Grace Sainsbury <graces@redhat.com>
6801 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6802 gdbarch vector are at the top.
6804 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6805 (FRAME_ARGS_ADDRESS): Remove.
6806 (FRAME_LOCALS_ADDRESS): Remove.
6807 (FRAME_NUM_ARGS): Remove.
6808 (FRAME_ARGS_SKIP): Remove.
6809 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6810 (m68k_gdbarch_init): Add gdbarch initializations for macros
6811 undefined in tm-m68k.h
6813 2002-06-26 Grace Sainsbury <graces@redhat.com>
6815 * monitor.h: Add the function regname to monitor_ops
6816 structure. This way NUM_REGS does not have to be a constant.
6817 * monitor.c (monitor_fetch_register): Added support for regname
6818 function. The function is called if the array regnames is NULL.
6819 (monitor_store_register): Same.
6820 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6822 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6823 cpu32bug_cmds.regname to point to new function.
6824 * abug-rom.c (abug_regname): Same as above.
6825 (init_abug_cmds): Same.
6826 * dbug-rom.c (dbug_regname): Same as above.
6827 (init_dbug_cmds): Same.
6828 * remote-est.c (est_regname): Same.
6829 (init_est_cmds): Same.
6830 * rom68k-rom.c (rom68k_regname): Same.
6831 (init_rom68k_cmds): Same.
6833 2002-06-25 Tom Tromey <tromey@redhat.com>
6835 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6837 2002-06-25 Andrew Cagney <cagney@redhat.com>
6839 * infrun.c (stop_registers): Change variable's type to ``struct
6841 (xmalloc_inferior_status): Delete function.
6842 (free_inferior_status): Delete function.
6843 (normal_stop): Use regcache_cpy.
6844 (struct inferior_status): Change type of fields ``stop_registers''
6845 and ``registers'' to ``struct regcache''.
6846 (write_inferior_status_register): Use regcache_write.
6847 (save_inferior_status): Instead of calling
6848 xmalloc_inferior_status, allocate the inf_status buffer directly.
6849 Use regcache_dup_no_passthrough and regcache_dup to save the
6851 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6852 Replace the stop_registers regcache instead of overriding it. Use
6853 regcache_xfree. Instead of calling free_inferior_status, xfree
6854 the buffer directly.
6855 (discard_inferior_status): Use regcache_xfree. Instead of calling
6856 free_inferior_status, xfree the buffer directly.
6857 (build_infrun): Use regcache_xmalloc.
6858 (_initialize_infrun): Delete redundant call to build_infrun.
6860 * Makefile.in (infcmd.o): Add $(regcache_h).
6862 * infcmd.c: Include "regcache.h".
6863 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6864 obtain the address of `stop_registers' register buffer.
6865 (print_return_value): Ditto.
6867 * inferior.h (struct regcache): Add opaque declaration.
6868 (stop_registers): Change variable's declared type to ``struct
6871 2002-06-24 Tom Tromey <tromey@redhat.com>
6873 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6874 * target.c (initialize_targets): Fixed typo in
6875 trust-readonly-sections `show' documentation.
6877 * main.c: Marked all strings with _().
6879 2002-06-24 Don Howard <dhoward@redhat.com>
6881 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6882 that means max CORE_ADDR+1.
6883 (lookup_mem_region): Ditto.
6884 (mem_info_command): Ditto.
6886 2002-06-24 Grace Sainsbury <graces@redhat.com>
6888 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6889 (REGISTER_BYTES_OK): Remove.
6890 (REGISTER_BYTES): Remove.
6891 (STORE_STRUCT_RETURN): Remove.
6892 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6893 (STORE_RETURN_VALUE): Remove.
6894 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6895 (FRAME_CHAIN): Remove.
6896 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6897 (FRAME_SAVED_PC): Remove.
6898 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6899 (m68k_store_struct_return): Add.
6900 (m68k_deprecated_extract_return_value): Add.
6901 (m68k_deprecated_extract_struct_value_address): Add.
6902 (m68k_store_return_value): Add.
6903 (m68k_frame_chain): Add.
6904 (m68k_frameless_function_invocation): Add.
6905 (m68k_frame_saved_pc): Add.
6906 (m68k_gdbarch_init): added set_gdbarch calls for new
6907 functions and deleted macros.
6909 2002-06-23 Tom Tromey <tromey@redhat.com>
6911 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6912 (ALLDEPFILES): Likewise.
6913 (udiheaders): Removed.
6914 (udip2soc.o): Likewise.
6915 (udi2go32.o): Likewise.
6917 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6919 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6921 * infrun.c (_initialize_infrun): Delete unnecessary call to
6924 * regcache.h: Update comments describing the regcache_cpy family
6926 (regcache_save, regcache_restore): Delete declaration.
6927 (regcache_save_no_passthrough): Delete declaration.
6928 (regcache_restore_no_passthrough): Delete declaration.
6929 * regcache.c (regcache_save): Delete function.
6930 (regcache_save_no_passthrough): Delete function.
6931 (regcache_restore): Delete function.
6932 (regcache_restore_no_passthrough): Delete function.
6934 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6936 * config/m68k/tm-m68k.h: Fix typo.
6937 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6938 (m68k_frame_init_saved_regs): Declare.
6940 2002-06-21 Jim Blandy <jimb@redhat.com>
6942 Remove some vestiges of Harris 88k support.
6943 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6944 register numbering quirk.
6945 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6946 odd symbols occurring in Harris 88k ELF targets.
6948 2002-06-21 Tom Tromey <tromey@redhat.com>
6950 * gdb_locale.h: New file.
6951 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6952 (defs_h): Added gdb_locale.h.
6953 * configure, config.in: Rebuilt.
6954 * configure.in (PACKAGE): Define.
6955 * defs.h: Include gdb_locale.h.
6956 * main.c (captured_main): Call setlocale, bindtextdomain,
6959 2002-06-21 Dave Brolley <brolley@redhat.com>
6961 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6962 * config/frv/frv.mt: New file.
6963 * config/frv/tm-frv.h: New file.
6964 * configure.tgt: Support frv-*-*.
6965 * Makefile.in (frv-tdep.o): New target.
6966 * frv-tdep.c: New file.
6967 * NEWS: Mention frv.
6969 2002-06-21 Dave Brolley <brolley@redhat.com>
6971 * MAINTAINERS: Add self to "Write After Approval" list.
6973 2002-06-21 Grace Sainsbury <graces@redhat.com>
6975 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6976 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6977 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6978 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6979 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6981 * m68k-tdep.c: Include arch-utils.h
6982 (m68k_register_raw_size): Add.
6983 (m68k_register_virtual_size): Add.
6984 (m68k_register_virtual_type): Add.
6985 (m68k_register_name): Add.
6986 (m68k_stack_align): Add.
6987 (m68k_register_byte): Add.
6988 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6991 2002-06-21 Grace Sainsbury <graces@redhat.com>
6993 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6994 m68k_find_saved_regs.
6995 (m68k_pop_frame): Removed saved_regs structure, and replaced
6996 references to it with frame->saved_regs.
6997 (m68k_gdbarch_init): Added function calls to initialize the
6999 (m68k_fix_call_dummy): Add.
7000 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7001 (CALL_DUMMY): Remove.
7002 (CALL_DUMMY_LENGTH): Remove.
7003 (CALL_DUMMY_START_OFFSET): Remove.
7004 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7005 (FIX_CALL_DUMMY): Remove.
7006 (PUSH_DUMMY_FRAME): Remove.
7007 (POP_FRAME): Remove.
7009 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7011 * parse.c (parse_fprintf): New function used to avoid calls to
7012 fprintf in bison parser generated debug code.
7013 * parser-defs.h: Declaration of new parse_fprintf function.
7014 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7015 Set YYDEBUG to 1 by default.
7016 Set YYFPRINTF as parse_fprintf.
7018 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7020 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7022 (pointer_encoding, enum ptr_encoding): New.
7023 (execute_cfa_program): Take care about pointer encoding.
7024 (dwarf2_build_frame_info): Only call parse_frame_info for
7025 .debug_frame and .eh_frame.
7026 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7027 fixed augmentation handling, added relative addressing,
7028 ignore duplicate FDEs. Added comments.
7029 * dwarf2cfi.c: Reindented.
7031 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7033 * event-top.c (command_handler): Don't use space_at_cmd_start
7034 unless there is sbrk() on the host. Assign time and space data
7035 to union fields of the appropriate length.
7037 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7039 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7040 x86_64_register_name. Return type changed to 'const char *'.
7041 (x86_64_register_name2nr): Rename to x86_64_register_number.
7042 (x86_64_gdbarch_init): Update to reflect the change.
7043 * x86-64-tdep.h: Ditto.
7044 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7045 (supply_fpregset): Ditto.
7047 2002-06-19 Andrew Cagney <cagney@redhat.com>
7049 * regcache.h: Update copyright.
7050 (struct regcache, struct gdbarch): Add opaque declarations.
7051 (current_regcache): Declare global variable.
7052 (regcache_read, regcache_write): Add gdbarch parameter.
7053 (regcache_save, regcache_save_no_passthrough)
7054 (regcache_restore, regcache_restore_no_passthrough)
7055 (regcache_dup, regcache_dup_no_passthrough)
7056 (regcache_cpy, regcache_cpy_no_passthrough)
7057 (deprecated_grub_regcache_for_registers)
7058 (deprecated_grub_regcache_for_register_valid)
7059 (regcache_valid_p): Add function declarations.
7061 * regcache.c: Update copyright.
7062 (regcache_descr_handle): New global variable.
7063 (struct regcache_descr): Define.
7064 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7065 (regcache_descr, xfree_regcache_descr): New functions.
7066 (struct regcache): Define.
7067 (regcache_xmalloc, regcache_xfree): New functions.
7068 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7069 (regcache_dup, regcache_dup_no_passthrough): New functions.
7070 (regcache_valid_p, regcache_read_as_address): New functions.
7071 (deprecated_grub_regcache_for_registers): New function.
7072 (deprecated_grub_regcache_for_register_valid): New function.
7073 (current_regcache): New global variable.
7074 (register_buffer): Add regcache parameter. Update calls.
7075 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7076 (read_register_gen, write_register_gen): Update register_buffer
7077 call. Test for legacy_p instead of gdbarch_register_read_p or
7078 gdbarch_register_write_p.
7079 (regcache_collect): Update register_buffer call.
7080 (build_regcache): Rewrite. Use deprecated grub functions.
7081 (regcache_save, regcache_save_no_passthrough): New functions.
7082 (regcache_restore, regcache_restore_no_passthrough): New
7084 (_initialize_regcache): Create the regcache_data_handle. Swap
7085 current_regcache global variable.
7087 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7088 parameter to regcache_read and regcache_write calls.
7089 (sh4_register_read): Ditto.
7090 (sh64_pseudo_register_read): Ditto.
7091 (sh64_register_read): Ditto.
7092 (sh_pseudo_register_write): Ditto.
7093 (sh4_register_write): Ditto.
7094 (sh64_pseudo_register_write): Ditto.
7095 (sh64_register_write): Ditto.
7097 * defs.h (XCALLOC): Define.
7099 2002-06-19 Grace Sainsbury <graces@redhat.com>
7101 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7102 * m68k-tdep.c (m68k_gdbarch_init): Added.
7103 (m68k_dump_tdep): Added.
7105 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7107 * ada-lang.c (fill_in_ada_prototype): Update comment.
7109 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7111 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7113 (mips_abi_string, mips_abi_strings): New.
7114 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7115 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7116 tdep->mips_abi_string. Honor mips_abi_string. Default to
7117 O32 if no ABI is found.
7118 (mips_dump_tdep): Use mips_abi_strings.
7119 (mips_abi_update): New function.
7120 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7121 ``set mips abi'' and ``show mips abi''. Check the size of
7124 2002-06-19 Andrew Cagney <cagney@redhat.com>
7126 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7129 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7131 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7132 current frame using only the first stack size adjustment. All
7133 subsequent size adjustments are not considered to be part of
7134 the "static" part of the current frame.
7135 Compute the address of the saved registers relative to the
7136 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7137 in use in this frame.
7139 2002-06-18 Don Howard <dhoward@redhat.com>
7141 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7142 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7143 suggesting this solution.
7145 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7147 * config/romp/xm-rtbsd.h: Delete file.
7148 * config/romp/rtbsd.mh: Delete file.
7150 2002-06-18 Keith Seitz <keiths@redhat.com>
7152 * breakpoint.c (condition_command): Post breakpoint_modify
7153 when a condition is added to an existing breakpoint.
7154 (commands_command): Likewise for commands.
7155 (set_ignore_count): Likewise for ignore counts.
7156 If no tty, do not simply return, still need to send event
7158 (ignore_command): Only print a newline if the command came
7160 Don't call breakpoints_changed, since this is now properly
7161 handled by set_ignore_count.
7163 2002-06-18 Andrew Cagney <cagney@redhat.com>
7165 * MAINTAINERS: Note that cris-elf target can be compiled with
7167 * cris-tdep.c (cris_register_name): Make return type constant.
7168 (cris_breakpoint_from_pc): Ditto.
7170 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7172 * frame.h (struct frame_info): Change type of context to
7175 2002-06-17 Andrew Cagney <cagney@redhat.com>
7177 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7179 * gdbarch.h, gdbarch.c: Regenerate.
7180 * config/mips/tm-mips.h (mips_register_name): Update.
7181 * i386-tdep.h (i386_register_name): Update.
7182 * mips-tdep.c (mips_register_name): Update
7183 * alpha-tdep.c (alpha_register_name): Update.
7184 * arch-utils.c (legacy_register_name): Update.
7185 * arch-utils.h (legacy_register_name): Update.
7186 * avr-tdep.c (avr_register_name): Update.
7187 * ia64-tdep.c (ia64_register_name): Update.
7188 * i386-tdep.c (i386_register_name): Update.
7189 * sparc-tdep.c (sparc32_register_name): Update.
7190 (sparc64_register_name): Update.
7191 (sparclite_register_name): Update.
7192 (sparclet_register_name): Update.
7193 * sh-tdep.c (sh_generic_register_name): Update.
7194 (sh_sh_register_name): Update.
7195 (sh_sh3_register_name): Update.
7196 (sh_sh3e_register_name): Update.
7197 (sh_sh_dsp_register_name): Update.
7198 (sh_sh3_dsp_register_name): Update.
7199 (sh_sh4_register_name): Update.
7200 (sh_sh64_register_name): Update.
7201 * s390-tdep.c (s390_register_name): Update.
7202 * rs6000-tdep.c (rs6000_register_name): Update.
7203 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7204 (ns32k_register_name_32382): Update.
7205 * d10v-tdep.c (d10v_ts2_register_name): Update.
7206 (d10v_ts3_register_name): Update.
7207 * xstormy16-tdep.c (xstormy16_register_name): Update.
7208 * vax-tdep.c (vax_register_name): Update.
7209 * v850-tdep.c (v850_register_name): Update.
7210 * m68hc11-tdep.c (m68hc11_register_name): Update.
7211 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7212 (am33_register_name): Update.
7214 2002-06-17 Grace Sainsbury <graces@redhat.com>
7216 * m68k-tdep.c: Reindented.
7218 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7220 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7221 list of predefined types.
7223 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7225 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7226 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7227 REGISTER_CONVERT_TO_RAW): Remove defines.
7228 (i386_register_virtual_type, i386_register_convertible,
7229 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7231 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7232 macros mentioned above.
7234 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7235 (i386lynx_saved_pc_after_call): Remove prototype.
7236 * i386ly-tdep.c: Include "i386-tdep.h".
7237 (i386lynx_saved_pc_after_call): Make static. Use
7238 read_memory_nobpt instead of read_memory. Use
7239 read_memory_unsigned_integer instead of read_memory_integer.
7240 (i386lynx_init_abi): New function.
7241 (i386lynx_coff_osabi_sniffer): New function.
7242 (_initialize_i386bsd_tdep): New function.
7244 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7245 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7246 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7247 (i386_fix_call_dummy): Remove prototype.
7248 * i386-tdep.c (i386_call_dummy_words): New variable.
7249 (i386_gdbarch_init): Adjust for removal of the
7250 macros mentioned above.
7252 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7254 * command.h (add_setshow_auto_boolean_cmd): Replace
7255 add_set_auto_boolean_cmd.
7256 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7257 add_set_auto_boolean_cmd.
7258 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7259 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7260 mask-address'' command.
7261 (show_mask_address): Add cmd parameter.
7262 * remote.c (add_packet_config_cmd): Update. Change type of
7263 set_func and show_func to cmd_sfunc_ftype.
7264 (_initialize_remote): Update `set remote Z-packet'
7265 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7266 (show_remote_protocol_e_packet_cmd): Ditto.
7267 (show_remote_protocol_E_packet_cmd): Ditto.
7268 (show_remote_protocol_P_packet_cmd): Ditto.
7269 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7270 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7271 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7272 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7273 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7274 (show_remote_protocol_Z_packet_cmd): Ditto.
7275 (show_remote_protocol_binary_download_cmd): Ditto.
7276 (show_remote_cmd): Pass NULL to all of above.
7278 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7280 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7281 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7282 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7283 POP_FRAME): Remove defines.
7284 (i386_push_arguments, i386_store_struct_return,
7285 i386_extract_return_value, i386_store_return_value,
7286 i386_extract_struct_value_address, i386_push_dummy_frame,
7287 i386_pop_frame): Renove prototypes.
7288 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7289 macros mentioned above.
7291 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7293 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7294 add_set_boolean_cmd.
7295 (add_setshow_cmd): New function.
7296 * command.h (add_setshow_boolean_cmd): Replace
7297 add_set_boolean_cmd.
7298 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7299 and ``set rdiromatzero''.
7300 * maint.c (_initialize_maint_cmds): Update commented out code.
7301 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7302 * target.c (initialize_targets): Update `set
7303 trust-readonly-sections'.
7304 * remote.c (_initialize_remote): Update `set remotebreak'.
7306 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7308 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7309 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7310 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7311 fit into multi-arch framework.
7312 (i386_breakpoint_from_pc): New function.
7313 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7316 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7317 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7318 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7319 (i386_frameless_function_invocation, i386_frame_num_args,
7320 i386_frame_init_saved_regs): Remove prototypes.
7321 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7322 macros mentioned above.
7324 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7326 * cli/cli-decode.c (set_cmd_cfunc): Update.
7327 (set_cmd_sfunc): Update.
7328 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7329 (set_cmd_sfunc, set_cmd_cfunc): Update.
7330 * cli/cli-decode.h: Update.
7332 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7334 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7335 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7337 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7339 * defs.h (auto_boolean): Declare enum.
7340 * command.h (cmd_auto_boolean): Delete enum.
7341 * mips-tdep.c (mask_address_var): Update.
7342 (mips_mask_address_p): Update.
7343 (show_mask_address): Update.
7344 * remote.c (struct packet_config): Update.
7345 (update_packet_config): Update.
7346 (show_packet_config_cmd): Update.
7347 (packet_ok): Update.
7348 (add_packet_config_cmd): Update.
7349 (_initialize_remote):
7350 * command.h: Update.
7351 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7352 (do_setshow_command): Update.
7353 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7354 * cli/cli-decode.h: Update.
7356 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7358 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7359 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7360 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7361 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7362 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7363 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7365 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7366 list of DJGPP COFF targets.
7368 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7369 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7370 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7371 (FP0_REGNUM): Remove define.
7372 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7373 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7374 (i386_register_virtual_size): Remove protoype.
7375 * i386-tdep.c (i386_register_virtual_size): Removed.
7376 (i386_extract_return_value, i386_store_return_value): Use
7377 FP0_REGNUM instead of NUM_FREGS to determine whether the
7378 floating-point registers are available.
7379 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7380 Adjust for removal of macros mentioned above.
7382 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7384 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7386 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7388 (supply_gregset, fill_gregset): Remove use of register keyword and
7389 remove declaration for regmap. Use I386_NUM_GREGS instead of
7390 NUM_REGS and NUM_FREGS.
7391 (FPREGSET_FSAVE_OFFSET): Remove.
7392 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7393 NUM_FREGS to determine whether the floating-point registers are
7396 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7397 gnu_store_registers): Replace usage of NUM_GREGS with
7400 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7401 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7402 usage of NUM_GREGS with I386_NUM_GREGS.
7404 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7406 * i386bsd-nat.c: Include "i386-tdep.h".
7407 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7410 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7411 and associated comment. They no longer make any sense, since we
7412 don't use this file anymore on Linux.
7414 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7415 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7416 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7417 elements in these arrays.
7418 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7421 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7423 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7424 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7426 2002-06-14 Andrew Cagney <cagney@redhat.com>
7428 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7429 EXTRACT_RETURN_VALUE.
7430 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7431 EXTRACT_STRUCT_VALUE_ADDRESS.
7432 * gdbarch.h, gdbarch.c: Regenerate.
7434 * values.c (value_being_returned): Handle
7435 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7436 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7438 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7439 * arm-tdep.c (arm_gdbarch_init): Update.
7440 * avr-tdep.c (avr_gdbarch_init): Update.
7441 * cris-tdep.c (cris_gdbarch_init): Update.
7442 * d10v-tdep.c (d10v_gdbarch_init): Update.
7443 * ia64-tdep.c (ia64_gdbarch_init): Update.
7444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7446 * s390-tdep.c (s390_gdbarch_init): Update.
7447 * sh-tdep.c (sh_gdbarch_init): Update.
7448 * s390-tdep.c (s390_gdbarch_init): Update.
7449 * sparc-tdep.c (sparc_gdbarch_init): Update.
7450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7451 * v850-tdep.c (v850_gdbarch_init): Update.
7452 * vax-tdep.c (vax_gdbarch_init): Update.
7453 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7454 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7456 * config/arc/tm-arc.h: Update.
7457 * config/d30v/tm-d30v.h: Update.
7458 * config/fr30/tm-fr30.h: Update.
7459 * config/h8300/tm-h8300.h: Update.
7460 * config/h8500/tm-h8500.h: Update.
7461 * config/i386/tm-i386.h: Update.
7462 * config/i386/tm-ptx.h: Update.
7463 * config/i386/tm-symmetry.h: Update.
7464 * config/i960/tm-i960.h: Update.
7465 * config/m32r/tm-m32r.h: Update.
7466 * config/m68k/tm-delta68.h: Update.
7467 * config/m68k/tm-linux.h: Update.
7468 * config/m68k/tm-m68k.h: Update.
7469 * config/m88k/tm-m88k.h: Update.
7470 * config/mcore/tm-mcore.h: Update.
7471 * config/mips/tm-mips.h: Update.
7472 * config/mn10200/tm-mn10200.h: Update.
7473 * config/pa/tm-hppa.h: Update.
7474 * config/pa/tm-hppa64.h: Update.
7475 * config/sparc/tm-sp64.h: Update.
7476 * config/sparc/tm-sparc.h: Update.
7477 * config/sparc/tm-sparclet.h: Update.
7478 * config/z8k/tm-z8k.h: Update.
7480 2002-06-14 Andrew Cagney <cagney@redhat.com>
7482 * Makefile.in (i386_linux_tdep_h): Define.
7483 (i386_tdep_h, i387_tdep_h): Define.
7484 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7485 $(i386_tdep_h) and $(i387_tdep_h).
7486 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7488 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7490 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7491 Already covered by the default.
7493 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7494 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7495 (i386_gdbarch_init): Initialize long_double_format and long_double
7498 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7499 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7501 * config/i386/i386sol2.mh: ... here.
7502 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7503 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7504 (SIGCONTEXT_PC_OFFSET): Remove define.
7505 (IN_SIGTRAMP): Remove define.
7506 * i386-sol2-tdep.c: New file.
7508 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7509 * config/i386/tm-i386nw.h: Removed.
7511 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7512 USE_STRUCT_CONVENTION): Remove defines.
7513 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7514 (get_longjmp_target): Remove prototype.
7515 (IN_SIGTRAMP): Remove define.
7516 (i386bsd_in_sigtramp): Remove prototype.
7517 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7518 function. Update comment accordingly
7519 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7520 (FRAME_SAVED_PC): Remove define.
7521 (i386bsd_frame_saved_pc): Remove prototype.
7522 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7523 GET_LONGJMP_TARGET): Remove defines.
7524 (get_longjmp_target): Remove prototype.
7525 (IN_SIGTRAMP): Remove define.
7526 (i386bsd_in_sigtramp): Remove prototype.
7527 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7528 function. Update comment accordingly
7529 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7530 (FRAME_SAVED_PC): Remove define.
7531 (i386bsd_frame_saved_pc): Remove prototype.
7532 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7534 (USE_STRUCT_CONVENTION): Remove prototype.
7535 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7537 (_initialize_i386bsd_nat): Revise logic to determine some
7538 constants at compile time when compiling a native GDB. Warn if
7539 things don't match up with what we expect.
7540 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7542 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7543 to use date stored in `struct gdbarch_tdep'.
7544 (i386bsd_sigcontext_offset): Remove varaible.
7545 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7546 stored in `struct gdbarch_tdep'.
7547 (i386bsd_frame_saved_pc): Make static.
7548 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7549 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7550 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7551 i386fbsd4_sc_pc_offset): New variables.
7552 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7553 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7555 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7557 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7558 Modify the value of i386fbsd_sigtramp_start and
7559 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7560 i386fbsd_sigtramp_end.
7561 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7564 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7565 define to i386-linux-tdep.h.
7566 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7567 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7569 (i386_linux_register_name, i386_linux_register_byte,
7570 i386_linux_register_raw_size): Remove prototypes.
7571 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7572 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7573 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7574 TARGET_WRITE_PC): Remove defines.
7575 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7576 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7577 i386_linux_write_pc): Remove prototypes.
7578 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7579 (get_longjmp_target): Remove prototype.
7580 * i386-linux-tdep.h: New file.
7581 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7582 * i386-linux-tdep.c: Include "i386-tdep.h" and
7583 "i386-linux-tdep.h".
7584 (i386_linux_register_name, i386_linux_register_byte,
7585 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7586 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7588 (i386_linux_init_abi): New function.
7589 (_initialize_i386_linux_tdep): New function.
7591 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7592 (i386_saved_pc_after_call): Remove prototype.
7593 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7594 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7595 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7596 (i386_register_name, i386_stab_reg_to_regnum,
7597 i386_dwarf_reg_to_regnum): Remove prototypes.
7598 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7599 SIZEOF_SSE_REGS): Remove defines.
7600 (REGISTER_BYTES): Remove define.
7601 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7602 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7603 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7604 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7605 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7606 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7607 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7608 (get_longjmp_target): Remove prototype.
7609 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7610 (sigtramp_saved_pc): Remove define.
7611 (i386v4_sigtramp_saved_pc): Remove prototype.
7612 * config/i386/tm-go32.h (FRAME_CHAIN,
7613 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7614 (i386go32_frame_saved_pc): Remove prototype.
7615 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7616 (get_longjmp_target): Remove prototype.
7617 * i386-tdep.h: Include "osabi.h".
7618 (enum i386_abi): Removed.
7619 (enum struct_return): New enum.
7620 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7621 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7622 sc_pc_offset members.
7623 (i386_gdbarch_register_os_abi): Remove prototype.
7624 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7625 I386_SSE_NUM_REGS): New defines.
7626 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7627 I386_SSE_SIZEOF_REGS): New defines.
7628 (i386_register_name, i386_register_byte, i386_register_raw_size):
7630 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7631 (i386bsd_sigtramp_saved_pc): New prototype.
7632 * i386-tdep.c: Don't include "elf-bfd.h".
7633 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7634 i386_frame_chain, i386_saved_pc_after_call): Make static.
7635 (i386_frame_saved_pc): Rewrite to call architecture dependent
7636 function to deal with signal handlers. Make static.
7637 (i386go32_frame_saved_pc): Removed.
7638 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7640 (i386_get_longjmp_target): New function.
7641 (default_struct_convention, pcc_struct_convention,
7642 reg_struct_convention, valid_conventions, struct_convention): New
7644 (i386_use_struct_convention): New function.
7645 (i386v4_sigtramp_saved_pc): Renamed to
7646 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7647 (i386_pc_in_sigtramp): New function.
7648 (i386_abi_names): Removed.
7649 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7650 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7652 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7653 i386_gdbarch_register_os_abi): Removed.
7654 (struct i386_abi_handler): Removed.
7655 (i386_abi_handler_list): Removed.
7656 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7658 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7659 i386_nw_init_abi): New functions.
7660 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7661 Use set_gdbarch_xxx() calls instead of relying on macros for a
7663 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7664 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7665 Register the various architecture variants defined in this file.
7667 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7669 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7670 (struct main_type): Remove arg_types member. Update comments for
7672 (TYPE_ARG_TYPES): Remove.
7673 (TYPE_FN_FIELD_ARGS): Update.
7674 (smash_to_method_type): Update prototype.
7676 * c-typeprint.c (cp_type_print_method_args): Take method type
7677 instead of argument list. Use new argument layout. Simplify.
7678 (c_type_print_args): Use new argument layout. Simplify.
7679 (c_type_print_base): Update call to cp_type_print_method_args.
7680 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7681 argument; use die->type instead. Update call to
7682 smash_to_method_type.
7683 (read_structure_scope): Update call to dwarf2_add_member_fn.
7684 * gdbtypes.c (allocate_stub_method): Update comment.
7685 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7686 Use new argument layout.
7687 (check_stub_method): Use new argument layout. Don't count
7688 void as an argument.
7689 (print_arg_types): Update comments. Use new argument layout.
7690 (recursive_dump_type): Don't print arg_types member.
7691 * hpread.c (hpread_read_struct_type): Use new argument layout.
7692 (fixup_class_method_type): Likewise.
7693 (hpread_type_lookup): Likewise.
7694 * stabsread.c (read_type): Update calls to read_args and
7695 smash_to_method_type.
7696 (read_args): Use new argument layout. Simplify.
7697 * valops.c (typecmp): Use new argument layout. Update parameters
7698 and comments. Simplify.
7699 (hand_function_call): Use new argument layout.
7700 (search_struct_method): Update call to typecmp.
7701 (find_overload_match): Use new argument layout.
7703 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7705 * NEWS: Mention multithreaded debug support for gdbserver.
7707 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7709 * MAINTAINERS: Mention NEWS.
7711 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7713 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7714 (struct mips_objfile_private, compare_pdr_entries): New.
7715 (non_heuristic_proc_desc): Read the ".pdr" section if it
7718 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7720 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7721 (arm_debug): New static variable.
7722 (_initialize_arm_tdep): Add ``set debug arm'' command.
7724 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7726 * Makefile.in (sim_arm_h): Define.
7727 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7728 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7729 (arm_register_sim_regno): New function, map an internal REGNUM
7730 onto a simulator register number.
7731 (arm_gdbarch_init): Set register_sim_regno.
7733 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7735 * MAINTAINERS: Add self.
7737 2002-06-11 Jim Blandy <jimb@redhat.com>
7739 * source.c (source_info): Mention whether the symtab has
7740 information about preprocessor macros.
7742 Call the command `info macro', not `show macro'.
7743 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7745 (_initialize_macrocmd): Register `info_macro_command' in
7746 `infolist', not `showlist'.
7748 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7750 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7751 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7752 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7753 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7754 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7756 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7757 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7758 (_initialize_mips_tdep): Remove dead code.
7759 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7760 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7761 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7762 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7763 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7764 MIPS_LAST_FP_ARG_REGNUM): Remove.
7766 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7768 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7769 (unwind_tmp_obstack_free, parse_frame_info)
7770 (update_context, cfi_read_fp, cfi_write_fp)
7771 (cfi_frame_chain, cfi_init_extra_frame_info)
7772 (cfi_virtual_frame_pointer): Use the above function.
7773 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7775 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7777 * v850-tdep.c (v850_type_is_scalar): New function.
7778 (v850_use_struct_convention): Match current gcc implementation
7779 as close as possible.
7780 (v850_push_arguments): Fix stack_offset handling. Don't write
7781 struct_addr into register. This is done by v850_store_struct_return.
7782 (v850_extract_return_value): Care for structs.
7783 (v850_store_return_value): Ditto.
7784 (v850_store_struct_return): Actually write address.
7786 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7788 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7789 without debug information too.
7791 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7793 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7794 Make multi-arch pure.
7795 * gdbarch.h, gdbarch.c: Re-generate.
7796 * arm-tdep.c (arm_print_float_info): Update.
7797 * arch-utils.h (default_print_float_info): Update.
7798 * arch-utils.c (default_print_float_info): Update.
7799 * infcmd.c (float_info): Update call.
7801 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7803 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7804 the front of the initialize list.
7806 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7808 * infrun.c (struct inferior_status): Replace fields
7809 selected_frame_address and selected_level with field
7811 (save_inferior_status): Update. Use get_frame_id.
7812 (struct restore_selected_frame_args): Delete.
7813 (restore_selected_frame): Update. Use frame_find_by_id.
7814 (restore_inferior_status): Update.
7816 * breakpoint.h (struct breakpoint): Change type of
7817 watchpoint_frame to frame_id.
7818 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7819 call to get_current_frame.
7820 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7822 (watchpoint_check): Use frame_find_by_id.
7824 * frame.h (record_selected_frame): Delete declaration.
7825 * stack.c (record_selected_frame): Delete function.
7827 * frame.h (struct frame_id): Define.
7828 (get_frame_id): Declare.
7829 (frame_find_by_id): Declare.
7830 * frame.c (frame_find_by_id): New function.
7831 (get_frame_id): New function.
7833 2002-06-10 Andrey Volkov <avolkov@transas.com>
7835 * ser-e7kpc.c: Fix duplicated define and call of
7836 _initialize_ser_e7000pc
7838 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7840 * signals/signals.c (target_signal_from_host): Fix #ifdef
7842 (do_target_signal_to_host): Likewise.
7844 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7846 * mips-tdep.c (mips_find_abi_section): New function.
7847 (mips_gdbarch_init): Call it.
7849 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7851 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7852 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7853 after Andrew's 2002-06-08 gdbarch change.
7855 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7857 * i386-linux-nat.c (suppy_gregset): Don't supply
7858 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7860 (fill_gregset): Don't fetch it under the same circumstances.
7862 2002-06-09 Andrew Cagney <cagney@redhat.com>
7864 * Makefile.in (callback_h): Define.
7865 (remote_sim_h): Update path to remote-sim.h.
7866 (remote-rdp.o): Add $(callback_h).
7867 (remote-sim.o): Use $(callback_h).
7868 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7869 * remote-rdp.c: Include "gdb/callback.h".
7871 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7873 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7874 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7876 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7878 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7879 * rdi-share/serpardr.c: Ditto.
7880 * rdi-share/unixcomm.c: Ditto.
7881 * rdi-share/serdrv.c: Ditto.
7882 * rdi-share/hostchan.h: Ditto.
7883 * rdi-share/hostchan.c: Ditto.
7884 * rdi-share/host.h: Ditto.
7885 * rdi-share/devsw.c: Ditto.
7887 * objfiles.h: Change type of obj_private to void pointer.
7888 * pa64solib.c: Update copyright. Don't include "assert.h", use
7889 strcmp instead of STREQ, use LONGEST, do not use PTR
7890 * somsolib.c: Ditto.
7892 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7893 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7894 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7896 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7898 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7899 (default_get_saved_register): Delete function.
7900 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7901 generic_unwind_get_saved_register.
7902 * gdbarch.h, gdbarch.c: Re-generate.
7904 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7906 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7907 generic_func_frame_chain_valid.
7908 * gdbarch.h, gdbarch.c: Re-generate.
7909 * blockframe.c (generic_func_frame_chain_valid): Only check
7910 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7911 passing FP to PC_IN_CALL_DUMMY.
7914 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7916 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7917 (register_gdbarch_data): Initialize init_p.
7918 (gdbarch_data): Initialize data pointer using the init function.
7919 (init_gdbarch_data): Delete function.
7920 (gdbarch_update_p): Update.
7921 (initialize_non_multiarch): Update.
7922 (struct gdbarch): Add field initialized_p.
7923 * gdbarch.h, gdbarch.c: Re-generate.
7925 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7927 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7928 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7929 better do the things actually here.
7930 * x86-64-tdep.c (x86_64_register_name2nr): New.
7931 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7932 (x86_64_gdbarch_init): Respect the above change.
7933 * x86-64-tdep.h (x86_64_register_name2nr)
7934 (x86_64_register_nr2name): Add prototypes.
7935 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7937 2002-06-06 Michael Snyder <msnyder@redhat.com>
7939 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7940 Delete extra braces and re-indent.
7941 (d10v_store_return_value): Char return values
7942 must be shifted over by one byte in R0.
7943 (d10v_extract_return_value): Delete extra braces, re-indent.
7945 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7947 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7948 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7949 (d10v_integer_to_address): Rewrite.
7950 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7951 the d10v specific functions which take care of converting to the
7954 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7956 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7957 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7959 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7961 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7963 * config/tm-linux.h: Ditto.
7964 * config/alpha/tm-alphalinux.h: Ditto.
7965 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7966 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7967 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7968 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7969 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7970 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7971 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7972 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7973 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7974 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7975 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7976 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7977 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7978 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7979 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7980 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7981 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7982 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7983 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7984 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7985 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7986 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7987 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7988 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7989 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7990 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7991 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7992 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7993 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7994 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7995 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7996 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7997 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7998 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7999 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8000 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8001 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8003 2002-05-04 Aidan Skinner <aidan@velvet.net>
8005 * ada-exp.tab.c: New file
8006 * ada-exp.y: New file
8007 * ada-lang.c: New file
8008 * ada-lang.h: New file
8009 * ada-lex.c: New file
8010 * ada-lex.l: New file
8011 * ada-tasks.c: New file
8012 * ada-typeprint.c: New file
8013 * ada-valprint.c: New file
8015 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8017 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8018 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8020 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8022 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8023 insetead of ppc-linux-tdep.o.
8024 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8025 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8027 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8029 2002-05-07 Christian Groessler <chris@groessler.org>
8030 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8031 bit register contents for little endian hosts.
8033 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8035 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8038 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8040 * gdbarch.h: Regenerate.
8042 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8044 * MAINTAINERS: Add everyone to write-after-approval list.
8046 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8048 * stack.c (frame_info): Use frame_register_unwind instead of
8049 saved_regs. Mention when the SP is on the stack or in a register.
8051 * frame.h (frame_register_unwind_ftype): Define. Document.
8052 (struct frame_info): Add field register_unwind and
8053 register_unwind_cache.
8054 (frame_register_unwind): Declare.
8055 (generic_unwind_get_saved_register): Declare.
8057 * frame.c (frame_register_unwind): New function.
8058 (generic_unwind_get_saved_register): New function.
8060 * blockframe.c (generic_call_dummy_register_unwind): New function.
8061 (frame_saved_regs_register_unwind): New function.
8062 (set_unwind_by_pc): New function.
8063 (create_new_frame): New function.
8064 (get_prev_frame): New function.
8066 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8068 * a29k-share/: Delete directory.
8069 * remote-vx29k.c: Delete file.
8071 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8073 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8074 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8076 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8078 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8079 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8082 (sparcnbsd-tdep.o): New dependency lists.
8083 * NEWS: Note new UltraSPARC NetBSD native configuration.
8084 * configure.host (sparc64-*-netbsd*): New host.
8085 * configure.tgt (sparc-*-netbsdelf*)
8086 (sparc-*-netbsd*): Set gdb_target to nbsd.
8087 (sparc64-*-netbsd*): New target.
8088 * sparc64nbsd-nat.c: New file.
8089 * sparcnbsd-nat.c: New file.
8090 * sparcnbsd-tdep.c: New file.
8091 * sparcnbsd-tdep.h: New file.
8092 * config/sparc/nbsd.mt: New file.
8093 * config/sparc/nbsd64.mh: New file.
8094 * config/sparc/nbsd64.mt: New file.
8095 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8096 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8098 * config/sparc/nbsdaout.mt: Remove.
8099 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8100 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8102 * config/sparc/nbsdelf.mt: Remove.
8103 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8104 sparc-nat.c compatiblity defines.
8105 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8106 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8107 * config/sparc/tm-nbsd64.h: New file.
8108 * config/sparc/tm-nbsdaout.h: Remove.
8109 * config/sparc/xm-nbsd.h: Remove.
8111 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8113 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8114 * sparc-tdep.c: Include osabi.h.
8115 (gdbarch_tdep): Add osabi member.
8116 (_initialize_sparc_tdep): Use gdbarch_register.
8117 (sparc_gdbarch_init): Use generic OS ABI framework.
8118 (sparc_dump_tdep): New function.
8120 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8122 * corefile.c (do_captured_read_memory_integer): Return non-zero
8124 (safe_read_memory_integer): Copy result of memory read when
8125 status is non-zero. Also, add comments.
8127 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8129 * Makefile.in (ppc_tdep_h): Define.
8132 (rs6000-tdep.o): Use $(ppc_tdep_h).
8135 (ppcnbsd-tdep.o): New dependency lists.
8136 * ppc-tdep.h: Use generic OS ABI framework.
8137 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8138 (ppc_linux_init_abi): New functions.
8139 (ppc_sysv_abi_broken_use_struct_convention)
8140 (ppc_sysv_abi_use_struct_convention)
8141 (ppc_sysv_abi_push_arguments): Move to...
8142 * ppc-sysv-tdep.c: ...here.
8143 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8144 * rs6000-tdep.c (process_note_abi_tag_sections)
8145 (get_elfosabi): Remove.
8146 (rs6000_gdbarch_init): Use generic OS ABI framework.
8147 (rs6000_dump_tdep): New function.
8148 (_initialize_rs6000_tdep): Use gdbarch_register.
8149 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8150 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8151 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8152 of ppc-linux-tdep.o.
8153 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8154 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8155 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8156 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8157 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8158 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8160 2002-05-29 Jim Blandy <jimb@redhat.com>
8162 * macroscope.c (default_macro_scope): Put `void' in empty argument
8165 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8167 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8168 * arch-utils.c: Include "sim-regno.h".
8169 * gdbarch.sh: Don't include "sim-regno.h".
8170 * gdbarch.h, gdbarch.c: Regenerate.
8171 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8173 * arch-utils.h (legacy_register_sim_regno): To here.
8174 * remote-sim.c (legacy_register_sim_regno): Move function from
8176 * arch-utils.c (legacy_register_sim_regno): To here.
8178 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8180 * sim-regno.h: New file.
8181 * Makefile.in (sim_regno_h): Define.
8182 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8183 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8184 (legacy_register_sim_regno): New function.
8185 (one2one_register_sim_regno): New function.
8186 (gdbsim_fetch_register): Rewrite.
8187 (gdbsim_store_register): Only store a register when
8188 REGISTER_SIM_REGNO is valid.
8189 * d10v-tdep.c: Include "sim-regno.h".
8190 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8191 (d10v_ts3_register_sim_regno): Ditto.
8192 * gdbarch.sh: Include "sim-regno.h".
8193 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8194 * gdbarch.h, gdbarch.c: Regenerate.
8195 * arch-utils.h (default_register_sim_regno): Delete declaration.
8196 * arch-utils.c (default_register_sim_regno): Delete function.
8198 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8200 * ppcnbsd-nat.c: Rewrite.
8201 * ppcnbsd-tdep.c: New file.
8202 * ppcnbsd-tdep.h: New file.
8203 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8204 solib.o, and solib-svr4.o.
8205 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8206 nbsd-tdep.o, and corelow.o.
8208 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8210 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8211 `tr' and `sed'. Mention that `broken' targets are not expected to
8214 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8216 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8217 Let PC point right after the prologue before looking up symbols.
8219 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8221 * i386-tdep.c (i386_register_virtual_type): Return
8222 builtin_type_vec128i for SSE registers.
8224 * gdbtypes.h (builtin_type_vec128i): Declare.
8226 * gdbtypes.c (build_builtin_type_vec128i): New function.
8227 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8228 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8229 (build_gdbtypes): Initialize new builtin vector types.
8230 (_initialize_gdbtypes): Register new vector types with gdbarch.
8232 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8234 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8235 since it has been multi-arch'd.
8236 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8237 Move Alpha and VAX multi-arch news entries to same section
8238 as other multi-arch news.
8240 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8242 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8243 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8244 static. Rename some register numbers to put them in ns32k-tdep
8246 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8247 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8249 (_initialize_ns32k_tdep): Use gdbarch_register.
8250 * ns32k-tdep.h: New file.
8251 * ns32knbsd-tdep.c: New file.
8252 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8253 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8254 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8255 REGISTER_BYTES, REGISTER_BYTE): Remove.
8256 * config/ns32k/tm-ns32k.h: New file.
8257 * config/ns32k/tm-umax.h: Remove.
8259 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8261 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8262 ns32k_store_struct_return, ns32k_extract_return_value,
8263 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8265 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8266 ns32k_saved_pc_after_call.
8267 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8268 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8269 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8270 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8271 ns32k_extract_struct_value_address.
8273 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8275 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8276 ns32k_fix_call_dummy): New.
8277 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8278 ns32k_call_dummy_words.
8279 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8280 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8281 CALL_DUMMY_NARGS): Remove.
8282 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8284 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8286 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8287 ns32k_frame_saved_pc, ns32k_frame_args_address,
8288 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8289 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8290 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8291 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8292 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8293 (BREAKPOINT): Remove..
8294 (FRAME_CHAIN): Define as ns32k_frame_chain.
8295 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8296 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8297 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8298 (FRAME_FIND_SAVED_REGS): Remove.
8299 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8300 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8301 (POP_FRAME): Define as ns32k_pop_frame.
8303 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8305 * ns32k-tdep.c (ns32k_register_byte_32082,
8306 ns32k_register_byte_32382, ns32k_register_raw_size,
8307 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8309 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8310 ns32k_register_byte_32382.
8311 * config/ns32k/tm-umax.h: Update copyright years.
8312 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8313 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8314 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8315 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8316 (ns32k_get_enter_addr): Fix prototype.
8318 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8320 * ns32k-tdep.c: Update copyright years.
8321 (ns32k_register_name_32082): New function.
8322 (ns32k_register_name_32382): Ditto.
8323 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8324 (REGISTER_NAME): Define as ns32k_register_name_32382.
8325 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8326 (REGISTER_NAME): Define as ns32k_register_name_32082.
8328 2002-05-24 Jim Blandy <jimb@redhat.com>
8330 * dwarf2read.c (free_line_header): Use xfree, not free.
8332 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8334 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8335 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8337 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8339 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8341 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8343 From Ross Alexander at NEC Europe:
8344 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8346 2002-05-23 Michael Snyder <msnyder@redhat.com>
8348 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8349 for input, rather than parse_and_eval_address.
8351 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8353 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8354 * Makefile.in (sim_d10v_h): Update definition.
8356 2002-05-24 Andrew Cagney <cagney@redhat.com>
8358 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8359 change `2002-05-22 Michael Snyder' below.
8360 (d10v_push_arguments): Ditto.
8361 (d10v_extract_return_value): Ditto.
8363 2002-05-23 Jim Blandy <jimb@redhat.com>
8365 * macrotab.c (check_for_redefinition): Don't complain if the new
8366 definition is the same as the previous one. Take more arguments
8367 to allow the comparison.
8368 (macro_define_object, macro_define_function): Pass more arguments
8369 to check_for_redefinition.
8371 2002-05-22 Michael Snyder <msnyder@redhat.com>
8373 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8374 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8375 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8376 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8377 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8378 Add a temp variable to save a call (and a memory read).
8379 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8380 if possible (so that PC_IN_CALL_DUMMY will work).
8382 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8384 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8386 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8388 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8390 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8391 (dwarf2_build_frame_info): Add offset to fde->initial_location
8392 so that frames of shared libraries are mapped correctly.
8393 (execute_stack_op): Change type of 'result' from ULONGEST to
8396 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8398 * config/alpha/tm-nbsd.h: Include solib.h.
8400 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8402 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8403 assumptions about the host's byte order.
8405 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8407 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8409 * alphanbsd-tdep.c: Include solib-svr4.h.
8410 * shnbsd-tdep.c: Ditto.
8412 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8414 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8415 nbsd-tdep.h to dependency list.
8416 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8417 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8418 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8419 nbsdaout.mh and nbsdelf.mh consistently.
8420 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8421 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8422 nbsdaout.mt and nbsdelf.mh consistently.
8423 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8424 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8425 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8426 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8427 a.out shared library stuff from here...
8428 * config/nm-nbsdaout.h: ...to here.
8429 * config/tm-nbsd.h: Remove.
8430 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8431 * config/arm/nbsd.mh: Remove.
8432 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8434 * config/arm/nbsdaout.mh: New file.
8435 * config/arm/nbsdelf.mh: New file.
8436 * config/arm/nm-nbsdaout.h: New file.
8437 * config/i386/nbsd.mh: Remove.
8438 * config/i386/nbsd.mt: Remove.
8439 * config/i386/nbsdaout.mh: New file.
8440 * config/i386/nbsdaout.mt: New file.
8441 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8442 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8443 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8444 i386_register_u_addr): Remove.
8445 * config/i386/nm-nbsdaout.h: New file.
8446 * config/i386/nm-nbsdelf.h: Remove.
8447 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8448 (USE_STRUCT_CONVENTION): Remove.
8449 * config/i386/tm-nbsdaout.h: New file.
8450 * config/i386/tm-nbsdelf.h: Remove.
8451 * config/m68k/nbsd.mh: Remove.
8452 * config/m68k/nbsd.mt: Remove.
8453 * config/m68k/nbsdaout.mh: New file.
8454 * config/m68k/nbsdaout.mt: New file.
8455 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8456 * config/m68k/nm-nbsdaout.h: New file.
8457 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8458 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8459 * config/ns32k/nbsd.mh: Remove.
8460 * config/ns32k/nbsd.mt: Remove.
8461 * config/ns32k/nbsdaout.mh: New file.
8462 * config/ns32k/nbsdaout.mt: New file.
8463 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8464 * config/ns32k/nm-nbsdaout.h: New file.
8465 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8466 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8467 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8468 (SVR4_SHARED_LIBS): Remove.
8469 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8470 * config/sparc/nbsd.mh: Remove.
8471 * config/sparc/nbsd.mt: Remove.
8472 * config/sparc/nbsdaout.mh: New file.
8473 * config/sparc/nbsdaout.mt: New file.
8474 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8475 * config/sparc/nbsdelf.mt: New file.
8476 * config/sparc/nm-nbsdaout.h: New file.
8477 * config/sparc/nm-nbsdelf.h: Remove.
8478 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8479 * config/sparc/tm-nbsdaout.h: New file.
8481 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8483 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8485 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8487 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8489 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8491 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8493 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8495 * NEWS: Note new MIPS NetBSD native configuration.
8496 * configure.host (mips*-*-netbsd*): New host.
8497 * configure.tgt (mips*-*-netbsd*): New target.
8498 * mipsnbsd-nat.c: New file.
8499 * mipsnbsd-tdep.c: New file.
8500 * mipsnbsd-tdep.h: New file.
8501 * config/mips/nbsd.mh: New file.
8502 * config/mips/nbsd.mt: New file.
8503 * config/mips/nm-nbsd.h: New file.
8504 * config/mips/tm-nbsd.h: New file.
8506 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8508 * Makefile.in (SFILES): Add osabi.c.
8509 (COMMON_OBS): Add osabi.o.
8510 (osabi.o): New dependency list.
8511 * osabi.c: New file.
8512 * osabi.h: New file.
8513 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8515 * Makefile.in (alpha_tdep_h): Define and use instead of
8517 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8518 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8520 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8521 * alpha-tdep.h: Include osabi.h.
8522 (alpha_abi): Remove.
8523 (gdbarch_tdep): Use generic OS ABI framework.
8524 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8525 gdbarch_register_osabi.
8526 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8527 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8528 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8530 * Makefile.in (sh_tdep_h): Add osabi.h.
8531 * sh-tdep.h (sh_osabi): Remove.
8532 (gdbarch_tdep): Use generic OS ABI framework.
8533 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8534 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8535 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8536 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8538 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8539 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8540 gdbarch_register_osabi.
8541 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8542 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8543 (get_elfosabi): Rename to...
8544 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8545 ABI framework support routines.
8546 (arm_gdbarch_init): Use generic OS ABI framework.
8547 (arm_dump_tdep): Likewise.
8548 (_initialize_arm_tdep): Likewise.
8549 * arm-tdep.h: Include osabi.h.
8551 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8553 (arm_gdbarch_register_os_abi): Remove prototype.
8554 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8555 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8557 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8558 * mips-tdep.c: Include osabi.h.
8559 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8562 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8564 * h8300-tdep.c: Fix formatting.
8566 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8568 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8569 printing vector registers.
8571 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8573 From Fernando Nasser:
8574 * remote.c (remote_async_open_1): Re-throw the exception when the
8576 (remote_cisco_open): Ditto.
8577 (remote_open_1): Ditto.
8579 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8581 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8582 (remote_start_remote): Add uiout parameter. Pass through to
8583 remote_start_remote_dummy.
8584 (remote_open_1): Use catch_exception instead of catch_errors.
8585 (remote_async_open_1): Ditto.
8586 (remote_cisco_open): Ditto.
8588 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8590 * remote.c (remote_start_remote): Replace PTR with void pointer.
8591 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8594 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8596 * gdb_indent.sh: Allow the script to be run in the sim directory.
8598 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8600 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8601 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8603 * corelow.c (core_open): Only call set_gdbarch_from_file if
8606 2002-05-17 Andrey Volkov <avolkov@transas.com>
8608 * h8300-tdep.c: Add support of EXR register
8609 * config/h8300/tm-h8300.h: Ditto.
8611 2002-05-17 Andrey Volkov <avolkov@transas.com>
8613 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8615 2002-05-17 Andrey Volkov <avolkov@transas.com>
8617 * h8300-tdep.c: Change literal regnums to REGNO.
8619 2002-05-17 Jim Blandy <jimb@redhat.com>
8621 * NEWS: Note addition of macro support.
8623 Expand preprocessor macros in C expressions.
8624 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8625 (scan_macro_expansion, scanning_macro_expansion,
8626 finished_macro_expansion): New function declarations.
8627 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8628 variable declarations.
8629 * parser-defs.h (expression_context_pc): New declaration.
8630 * parse.c (expression_context_pc): New variable.
8631 (parse_exp_1): Set expression_context_pc, as well as
8632 expression_context_block.
8633 * c-exp.y (yylex): If we're not already reading the result of a
8634 macro expansion, try to macro-expand the next token. When we're
8635 done scanning a macro expansion, switch back to the mainline text.
8636 Commas and `if's in a macro's expansion don't terminate the input.
8637 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8638 (macro_original_text, macro_expanded_text,
8639 expression_macro_lookup_func, expression_macro_lookup_baton): New
8641 (scan_macro_expansion, scanning_macro_expansion,
8642 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8643 c_preprocess_and_parse): New functions.
8644 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8645 c_preprocess_and_parse, instead of c_parse.
8646 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8647 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8649 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8651 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8652 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8653 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8655 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8657 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8659 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8661 * Makefile.in (sh_tdep_h): Define and use.
8662 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8663 register enum): Move to...
8664 * * sh-tdep.h: ...here.
8665 * sh-tdep.c: Include sh-tdep.h.
8666 * sh3-rom.c: Likewise.
8667 * shnbsd-tdep.c: Likewise.
8669 2002-05-16 Michael Snyder <msnyder@redhat.com>
8671 * arm-tdep.c: Spelling fix in comment.
8673 2002-05-16 Jim Blandy <jimb@redhat.com>
8675 Add commands for manually expanding macros and showing their
8677 * macrocmd.c, macroscope.c, macroscope.h: New files.
8678 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8679 (macroscope_h): New variable.
8680 (HFILES_NO_SRCDIR): Add macroscope.h.
8681 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8682 (macroscope.o, macrocmd.o): New rules.
8684 Teach the Dwarf 2 reader to read macro information.
8685 * dwarf2read.c: #include "macrotab.h".
8686 (dwarf_macinfo_buffer): New variable.
8687 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8689 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8690 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8691 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8692 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8693 dwarf2_macro_spaces_in_definition): New complaints.
8694 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8695 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8696 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8697 the partial symbol table.
8698 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8699 from what's recorded in the partial symbol table.
8700 (read_file_scope): If the compilation unit has a
8701 `DW_AT_macro_info' attribute, read its macro information.
8702 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8704 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8707 * ser-tcp.c: Don't include <netinet/udp.h>.
8709 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8711 * MAINTAINERS: Update my email address.
8713 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8715 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8716 include file of the same name.
8718 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8720 * configure.tgt: Mark v850 as multi-arched.
8721 * config/v850/tm-v850.h: Remove file.
8722 * config/v850/v850.mt: Eliminate TM_FILE.
8724 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8726 * v850-tdep.c: Full multi-arch.
8727 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8728 Define GDB_MULTI_ARCH to 2.
8730 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8732 * p-exp.y (current_type): New static variable.
8733 Carries the type of the expression at the position that is parsed.
8734 (push_current_type, pop_current_type): Two new functions. Used
8735 to store/restore current_type in expression on specific tokens.
8736 (search_field): New static variable. Set to one after parsing a point
8737 as at that point only a FIELDNAME token should be searched.
8738 (FIELDNAME): New token. After a point only a token belonging to
8739 current_type type definition is allowed.
8740 (all over token rules): reset and change current_type according
8742 (exp '[' rule): insert implicit array index field if
8743 exp is a pascal string type.
8745 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8747 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8748 frame info. Use frame_info's saved_regs instead of matching member
8749 in extra_frame_info throughout.
8750 (v850_frame_init_saved_regs): New function.
8751 (v850_init_extra_frame_info): Move most functionality into
8752 v850_frame_init_saved_regs().
8753 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8754 (v850_frame_find_saved_regs): Remove declaration.
8755 (FRAME_FIND_SAVED_REGS): Remove definition.
8756 (v850_frame_init_saved_regs): Add declaration.
8757 (FRAME_INIT_SAVED_REGS): Add definition.
8759 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8761 * v850-tdep.c: Begin multi-arch'ing v850.
8762 (v850_target_architecture_hook): Remove function.
8763 (v850_gdbarch_init): New function. Add code previously in
8764 v850_target_architecture_hook().
8765 (_initialize_v850_tdep): Don't set target_architecture_hook.
8766 Call register_gdbarch_init() instead.
8768 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8770 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8771 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8772 (fixup_class_method_type): Likewise.
8774 2002-05-15 Jim Blandy <jimb@redhat.com>
8776 Add macro structures to GDB's symbol tables. Nobody puts anything
8778 * symtab.h (struct symtab): New member: `macro_table'.
8779 * buildsym.h (pending_macros): New global variable.
8780 * buildsym.c: #include "macrotab.h".
8781 (buildsym_init): Initialize `pending_macros'.
8782 (end_symtab): If we found macro information while reading a CU's
8783 debugging info, do build a symtab structure for it. Make the
8784 symtab point to the macro information, and clear the
8785 `pending_macros' pointer which held it while we were reading the
8787 (really_free_pendings): Free any pending macro table.
8788 * objfiles.h (struct objfile): New member: `macro_cache'.
8789 * objfiles.c (allocate_objfile): Set allocate and free functions
8790 for the macro cache's objstack.
8791 (free_objfile): Empty the macro cache's obstack.
8792 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8793 set new allocate and free functions for it.
8794 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8795 free functions for the macro cache's objstack. (Why is this
8796 function building its own objfile?)
8797 * symmisc.c (print_objfile_statistics): Print statistics on the
8799 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8801 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8803 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8804 (REGISTER_U_ADDR): Delete definition.
8805 (arm_register_u_addr): Delete declaration.
8807 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8809 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8810 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8812 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8814 * regcache.c (register_valid): Revise comments refering to "Not
8815 available" and "unavailable".
8816 * frame.c (frame_register_read): Ditto.
8817 * findvar.c (value_of_register): Ditto.
8819 2002-05-15 Andrew Cagney <cagney@redhat.com>
8821 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8822 (remote-sim.o): Update dependencies.
8823 (d10v-tdep.o): Specify dependencies.
8824 (sim_d10v_h): Define.
8826 2002-05-14 Jim Blandy <jimb@redhat.com>
8828 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8829 * macrotab.c (macro_lookup_inclusion, find_definition,
8830 new_macro_table): Same.
8832 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8833 not `! strcmp ()'. This is a dubious improvement.
8834 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8836 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8837 although it's not necessary, to avoid a warning.
8839 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8841 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8842 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8843 TYPE_INSTANCE_FLAGS.
8844 (struct main_type): New.
8845 (struct type): Move most members to struct main_type. Change
8846 cv_type and as_type to new type_chain member. Add instance_flags.
8847 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8848 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8849 (finish_cv_type): Remove prototype.
8850 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8852 (alloc_type_instance): New function.
8853 (smash_type): New function.
8854 (make_pointer_type, make_reference_type, make_function_type)
8855 (smash_to_member_type, smash_to_method_type): Call smash_type.
8856 (make_qualified_type): New function.
8857 (make_type_with_address_space): Call make_qualified_type.
8858 (make_cv_type): Likewise.
8859 (finish_cv_type): Remove unnecessary function.
8860 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8861 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8862 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8863 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8864 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8865 * hpread.c (hpread_read_struct_type): Likewise.
8866 * stabsread.c (read_struct_type): Likewise.
8868 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8870 * configure.tgt: Add a catch all sh* target, for cases like
8871 sh[2,3,4]-elf and sh-hms.
8873 2002-05-14 Keith Seitz <keiths@redhat.com>
8875 * event-loop.c (create_file_handler): Don't do anything but
8876 update data when we are given a fd which we are already
8879 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8881 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8882 (update_context): Use __func__ in warnings.
8884 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8886 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8887 and tcp_close to net_open and net_close.
8888 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8889 using UDP if requested. Don't try to disable Nagle on UDP
8891 * remote.c (remote_serial_open): New function. Warn about UDP.
8892 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8894 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8896 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8898 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8900 * configure.tgt: Remove sh-hms target.
8901 * MAINTAINERS: Don't list sh-hms as a separate target.
8903 2002-05-13 Jim Blandy <jimb@redhat.com>
8905 Add first preprocessor macro-expansion files.
8906 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8907 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8908 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8909 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8910 (COMMON_OBS): Add macrotab.o, macroexp.o.
8911 (macroexp.o, macrotab.o): New rules.
8913 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8915 * config/m88k/tm-m88k.h: Update copyright.
8916 (m88k_target_write_pc): Declare
8917 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8918 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8919 (SHIFT_INST_REGS): Update definition.
8920 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8921 using old definition of TARGET_WRITE_PC.
8922 * regcache.c (generic_target_write_pc): Delete code handling
8924 * gdbarch.sh (NNPC_REGNUM): Delete.
8925 * gdbarch.h, gdbarch.c: Regenerate.
8927 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8929 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8932 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8934 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8935 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8936 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8938 * c-typeprint.c (cp_type_print_method_args): Likewise.
8939 (c_type_print_args): Likewise.
8940 * d10v-tdep.c (d10v_push_arguments): Likewise.
8941 (d10v_extract_return_value): Likewise.
8942 * expprint.c (print_subexp): Likewise.
8943 * gdbtypes.c (lookup_primitive_typename): Likewise.
8944 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8945 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8946 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8947 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8948 (TYPE_VECTOR): Likewise.
8949 * hpread.c (hpread_read_struct_type)
8950 (fix_static_member_physnames, fixup_class_method_type)
8951 (hpread_type_lookup): Likewise.
8952 * mdebugread.c (parse_symbol, parse_type): Likewise.
8953 * p-lang.c (is_pascal_string_type): Likewise.
8954 * valops.c (hand_function_call): Likewise.
8955 * x86-64-tdep.c (classify_argument): Likewise.
8957 * hpread.c (hpread_read_function_type)
8958 (hpread_read_doc_function_type): Call replace_type.
8959 * dstread.c (create_new_type): Delete.
8960 (decode_dst_structure, process_dst_function): Call alloc_type.
8961 Use type access macros.
8963 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8965 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8966 the're not supported by the current architecture.
8967 (i387_fill_fxsave): Likewise.
8969 2002-05-12 Fred Fish <fnf@redhat.com>
8971 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8972 sect_index_xxx members to index the first slot in section_offsets
8973 if all of the section_offsets are zero.
8975 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8977 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8978 checked in with last change.
8980 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8982 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8983 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8986 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8988 * Makefile.in: Update dependencies.
8990 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8992 * language.c (local_hex_string_custom): Simplify. Do not depend
8993 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8995 * memattr.c (mem_info_command): Replace calls to
8996 longest_local_hex_string and longest_local_hex_string_custom.
8997 * buildsym.c (make_blockvector): Ditto.
8998 * solib.c (info_sharedlibrary_command): Ditto.
8999 * tracepoint.c (tracepoints_info): Ditto.
9000 * symtab.c (print_msymbol_info): Ditto.
9002 * language.c (local_hex_string): Delete.
9003 (local_hex_string_custom): Delete.
9004 (longest_local_hex_string): Rename to local_hex_string.
9005 (longest_local_hex_string_custom): Rename to
9006 local_hex_string_custom.
9007 * language.h (local_hex_string): Change parameter type to LONGEST.
9008 (local_hex_string_custom): Ditto.
9009 (longest_local_hex_string): Delete declaration.
9010 (longest_local_hex_string_custom): Ditto.
9012 * solib.c: Update copyright.
9013 * memattr.c: Update copyright.
9015 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9017 * arch-utils.h (legacy_register_to_value): Declare.
9018 (legacy_value_to_register): Declare.
9019 (legacy_convert_register_p): Declare.
9020 * arch-utils.c (legacy_register_to_value): New function.
9021 (legacy_value_to_register): New function.
9022 (legacy_convert_register_p): New function.
9024 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9025 (VALUE_TO_REGISTER): Define.
9026 (CONVERT_REGISTER_P): Define.
9027 * gdbarch.h, gdbarch.c: Regenerate.
9029 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9031 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9034 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9035 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9037 * Makefile.in: Update dependencies for valops.c.
9038 * valops.c: Include "gdb_assert.h".
9039 (typecmp): Skip THIS parameter to methods.
9040 (find_method_list): Remove static_memfuncp argument,
9041 update callers. Check for stub methods.
9042 (find_value_oload_method_list): Don't set *static_memfuncp.
9043 (find_overload_match): Don't check for stub methods. Assert
9044 that methods are not stubbed. Handle static methods.
9045 (value_find_oload_method_list): Remove static_memfuncp argument.
9046 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9047 to the argument list for static stub methods.
9048 * value.h (value_find_oload_method_list): Update prototype.
9050 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9052 * arch-utils.h (generic_register_size): Declare.
9053 (generic_register_raw_size, generic_register_virtual_size): Delete
9055 * arch-utils.c (generic_register_raw_size): Delete.
9056 (generic_register_size): New function.
9057 (generic_register_virtual_size): Delete.
9059 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9060 default generic_register_size.
9061 * gdbarch.h, gdbarch.c: Re-generate.
9063 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9064 register_virtual_size.
9065 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9066 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9068 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9070 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9071 * gdbarch.h, gdbarch.c: Regenerate.
9072 * gnu-v3-abi.c: Update copyright.
9073 (vtable_address_point_offset): Update.
9074 (gnuv3_rtti_type): Update.
9075 (gnuv3_baseclass_offset): Update.
9076 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9077 (init_fetch_link_map_offsets): Update.
9078 * remote.c (get_remote_state): Update.
9080 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9082 * TODO: Remove value_headof/value_from_vtable_info comment.
9083 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9084 * values.c (value_headof, value_from_vtable_info): Delete.
9085 * value.h (value_from_vtable_info): Delete prototype.
9087 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9089 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9090 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9092 (gdb_assert_h): Define.
9093 (gdb_wait_h): Define.
9094 (gdb_regex_h): Define.
9096 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9098 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9099 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9101 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9103 * nbsd-tdep.c: Fix comment.
9105 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9107 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9108 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9109 (nbsd-tdep.o): New dependency list.
9110 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9112 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9113 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9114 * nbsd-tdep.c: New file.
9115 * nbsd-tdep.h: New file.
9116 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9118 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9119 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9120 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9121 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9123 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9125 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9126 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9127 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9128 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9129 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9130 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9132 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9134 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9135 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9136 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9137 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9138 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9139 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9140 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9142 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9144 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9145 fetch_elfcore_registers to...
9146 * i386nbsd-tdep.c: ...here.
9147 (i386nbsd_use_struct_convention): Rename to...
9148 (i386nbsd_aout_use_struct_convention): ...this.
9149 (i386nbsd_supply_reg): New function.
9150 (i386nbsd_fill_reg): New function.
9151 (fetch_core_registers): Use i386nbsd_supply_reg.
9152 (fetch_elfcore_registers): Likewise.
9153 (_initialize_i386nbsd_tdep): New function.
9154 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9155 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9156 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9157 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9158 (i386nbsd_aout_use_struct_convention): ...this.
9160 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9162 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9163 (store_inferior_registers): Use shnbsd_fill_reg.
9164 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9165 sh_nbsd_supply_register): Collapse into...
9166 (shnbsd_supply_reg): ...this.
9167 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9168 (shnbsd_fill_reg): ...this.
9169 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9170 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9171 (fetch_core_registers): Use shnbsd_supply_reg.
9172 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9173 (sh_nbsd_core_fns): Rename to...
9174 (shnbsd_core_fns): ...this.
9175 (sh_nbsd_elfcore_fns): Rename to...
9176 (shnbsd_elfcore_fns): ...this.
9177 (sh_nbsd_init_abi): Rename to...
9178 (shnbsd_init_abi): ...this.
9179 (_initialize_sh_nbsd_tdep): Rename to...
9180 (_initialize_shnbsd_tdep): ...this.
9181 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9182 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9183 sh_nbsd_fill_register): Remove prototypes.
9184 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9186 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9188 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9189 (i387-nat.o): Delete dependency list.
9190 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9191 (x86-64-linux-nat.o): Likewise.
9192 * i387-nat.c: Delete file, moving contents to...
9193 * i387-tdep.c: ...here.
9194 * i387-nat.h: Rename...
9195 * i387-tdep.h: ...to this.
9196 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9197 * i386-linux-nat.c: Likewise.
9198 * i386bsd-nat.c: Likewise.
9199 * i386gnu-nat.c: Likewise.
9200 * i386nbsd-nat.c: Likewise.
9201 * i386v4-nat.c: Likewise.
9202 * x86-64-linux-nat.c: Likewise.
9203 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9204 * config/i386/go32.mh (NATDEPFILES): Likewise.
9205 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9206 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9207 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9208 * config/i386/linux.mh (NATDEPFILES): Likewise.
9209 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9210 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9211 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9212 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9214 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9216 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9217 (alphanbsd-nat.o): Remove dependency list.
9218 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9219 * alphanbsd-nat.c: Delete. Contents moved to...
9220 * alphanbsd-tdep.c: ...here.
9221 (_initialize_alphanbsd_tdep): Register core functions.
9222 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9224 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9226 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9227 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9228 (alphanbsd-nat.o): Likewise.
9229 (alphabsd-tdep.o): New dependency list.
9230 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9231 (fill_gregset): Use alphabsd_fill_reg.
9232 (supply_fpregset): Use alphabsd_supply_fpreg.
9233 (fill_fpregset): Use alphabsd_fill_fpreg.
9234 (fetch_inferior_registers): Use struct reg and struct fpreg
9235 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9236 and alphabsd_supply_fpreg.
9237 (store_inferior_registers): Use struct reg and struct fpreg
9238 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9239 and alphabsd_fill_fpreg.
9240 * alphabsd-tdep.c: New file.
9241 * alphabsd-tdep.h: New file.
9242 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9243 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9244 alphabsd_supply_fpreg.
9245 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9246 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9248 2002-05-11 Eric Christopher <echristo@redhat.com>
9250 * mips-tdep.c (mips_double_register_type): Fix thinko.
9251 (mips_single_register_type): Ditto.
9252 * MAINTAINERS: Add self.
9254 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9256 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9257 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9258 right thing on architectures with different endianness and/or
9261 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9263 From Christian Limpach <chris@Pin.LU>
9264 * configure.in: Change sed expression which comments out
9265 NATDEPFILES to also comment out continuation lines.
9266 * configure: Regenerate.
9268 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9270 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9273 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9275 * sh-tdep.c: Include correct file.
9277 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9279 New support for sh64-elf (sh5) target.
9281 * configure.tgt: For sh64-elf target, default to sh-elf.
9283 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9284 (struct gdbarch_tdep): Add new fields for new registers and ABI
9287 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9288 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9289 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9290 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9291 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9292 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9293 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9294 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9295 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9296 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9297 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9298 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9299 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9300 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9301 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9302 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9303 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9304 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9305 sign_extend, sh64_nofp_frame_init_saved_regs,
9306 sh64_init_extra_frame_info, sh64_get_saved_register,
9307 sh64_extract_struct_value_address, sh64_pop_frame,
9308 sh64_push_arguments, sh64_extract_return_value,
9309 sh64_store_return_value, sh64_show_media_regs,
9310 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9311 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9312 sh_sh64_register_virtual_type,
9313 sh_sh64_register_convert_to_virtual,
9314 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9315 sh64_register_read, sh64_pseudo_register_write,
9316 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9317 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9318 sh64_do_pseudo_register, sh_compact_do_registers_info,
9319 sh64_do_registers_info, sh_gdbarch_init): New functions.
9321 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9323 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9325 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9327 * linespec.c (decode_line_1): Check for a double quote after
9328 a filename correctly.
9330 2002-05-10 Jim Blandy <jimb@redhat.com>
9332 Properly track the size of the current objfile's .debug_line section.
9333 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9334 (DWARF_LINE_SIZE): New macro.
9335 (dwarf2_build_psymtabs_hard): Record the line section's size in
9336 the partial symbol table.
9337 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9340 2002-05-10 Petr Sorfa <petrs@caldera.com>
9342 * ia64-tdep.c: Handle breakpoints on L instruction type
9343 in MLX instruction bundle by moving the breakpoint to
9344 the third slot (X instruction type) as L holds only data.
9346 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9348 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9349 (process_one_symbol): Complain about discarding local symbols
9350 due to a misplaced N_LBRAC entry.
9352 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9354 From Daniel Berlin <dan@cgsoftware.com>
9355 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9356 decrease the depth we are at, in the case of templates.
9358 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9360 * mips-tdep.c (mips_float_register_type): New function.
9361 (mips_double_register_type): New function.
9362 (mips_print_register): Use them.
9363 (do_fp_register_row): Likewise.
9365 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9367 * signals/signals.c (signals): Remove conditional compilation around
9368 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9369 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9371 2002-05-09 Michael Snyder <msnyder@redhat.com>
9373 * remote-rdp.c (remote_rdp_can_run): Remove.
9375 2002-05-09 Tom Tromey <tromey@redhat.com>
9377 * jv-valprint.c (java_val_print): Handle `char' as a special case
9380 2002-05-09 Michael Snyder <msnyder@redhat.com>
9382 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9383 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9384 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9385 str r(0123),[sp,#nn].
9386 (arm_skip_prologue): Ditto. Also make disassembly
9387 order-independent by placing it in a loop.
9389 2002-05-06 Michael Snyder <msnyder@redhat.com>
9391 * stabsread.c (read_type): Add recognition for new attribute:
9392 "@V;" means that an array type is actually a vector.
9393 This is analogous to the vector flag that's been added to dwarf2.
9395 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9397 * i386-tdep.h (i386_abi): New enum.
9398 (struct gdbarch_tdep): Replace os_ident member with abi.
9399 (i386_gdbarch_register_os_abi): New prototype.
9400 * i386-tdep.c (i386_abi_names): New array.
9401 (process_note_abi_tag_sections): Removed.
9402 (process_note_sections): New function.
9403 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9404 (struct i386_abi_handler): New struct.
9405 (i386_abi_handler_list): New variable.
9406 (i386_gdbarch_register_os_abi): New function.
9407 (i386_gdbarch_init): Adapt for the changes given above.
9409 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9411 * gregset.h: Say "GNU/Linux".
9413 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9415 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9416 (build_gdbtypes): Build builtin_type_v2_float.
9417 (_initialize_gdbtypes): Register new builtin type.
9419 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9421 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9422 (clear_gdbarch_swap): New function.
9423 (initialize_non_multiarch): Call.
9424 (gdbarch_update_p): Before calling init(), swap out and clear the
9425 existing architecture.
9426 * gdbarch.c: Regenerate.
9428 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9430 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9433 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9435 * sh-nbsd-nat.c: Rename to...
9436 * shnbsd-nat.c: ...this.
9437 * sh-nbsd-tdep.c: Rename to...
9438 * shnbsd-tdep.c: ...this.
9439 * sh-nbsd-tdep.h: Rename to...
9440 * shnbsd-tdep.h: ...this.
9441 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9442 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9444 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9446 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9447 concatenation for command help messages.
9449 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9451 * NEWS: Note new sh*-*-netbsdelf* configuration.
9452 * configure.host: Set gdb_host_cpu to sh for all sh*.
9453 (sh*-*-netbsdelf*): New host.
9454 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9455 (sh*-*-netbsdelf*): New target.
9456 * sh-nbsd-nat.c: New file.
9457 * sh-nbsd-tdep.c: New file.
9458 * sh-nbsd-tdep.h: New file.
9459 * config/sh/nbsd.mh: New file.
9460 * config/sh/nbsd.mt: New file.
9461 * config/sh/nm-nbsd.h: New file.
9462 * config/sh/tm-nbsd.h: New file.
9464 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9466 * sh-tdep.c (sh_osabi_names): Declare.
9467 (process_note_abi_tag_sections): New function.
9468 (get_elfosabi): Ditto.
9469 (sh_gdbarch_register_os_abi): Ditto.
9470 (sh_dump_tdep): Ditto.
9471 _initialize_sh_tdep): Use gdbarch_register to register
9472 sh_gdbarch_init and sh_dump_tdep.
9473 * config/sh/tm-sh.h (sh_osabi): Declare.
9474 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9476 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9478 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9479 (thumb_scan_prologue): Ditto.
9480 (arm_find_callers_reg): Ditto.
9481 (arm_frame_chain): Ditto.
9482 (arm_init_extra_frame_info): Ditto.
9483 (arm_frame_saved_pc): Ditto.
9484 (arm_pop_frame): Ditto.
9485 (arm_push_return_address): New function.
9486 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9487 call_dummy_location, call_dummy_breakpoint_offset_p,
9488 call_dummy_breakpoint_offset, call_dummy_p,
9489 call_dummy_stack_adjust_p, call_dummy_words,
9490 sizeof_call_dummy_words, call_dummy_start_offset,
9491 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9492 call_dummy_address, push_return_address and push_dummy_frame for
9493 generic dummy frames.
9495 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9497 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9498 size computation for alloca.
9499 (sh_fp_frame_init_saved_regs): Likewise.
9501 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9503 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9504 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9505 * arm-tdep.c (arm_store_return_value): Use them.
9506 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9507 * remote-rdp.c (remote_rdp_fetch_register): Use
9508 ARM_MAX_REGISTER_RAW_SIZE.
9509 (remote_rdp_store_register): Likewise.
9511 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9513 * dwarf2cfi.c: Code cleanup, removed unused variables,
9514 added default labels to switch {} statements.
9515 * x86-64-tdep.c: Ditto.
9516 * x86-64-linux-nat.c: Ditto.
9518 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9520 * solib.h: Protect against multiple inclusion.
9522 2002-05-06 Jim Blandy <jimb@redhat.com>
9524 Add first preprocessor macro-expansion files.
9525 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9526 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9527 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9528 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9529 (COMMON_OBS): Add macrotab.o, macroexp.o.
9530 (macroexp.o, macrotab.o): New rules.
9532 Separate the job of reading the line number info statement program
9533 header (...expialidocious) out into its own function.
9534 * dwarf2read.c (struct line_head, struct filenames, struct
9535 directories): Replace with...
9536 (struct line_header): New structure, containing the full
9537 contents of the statement program header, including the
9538 include directory and file name tables.
9539 (read_file_scope): If we have line number info, instead of just
9540 calling dwarf_decode_lines to do all the work, call
9541 dwarf_decode_line_header first to get a `struct line_header'
9542 containing the data in the statement program header, and then
9543 pass that to dwarf_decode_lines, which will pick up where that
9544 left off. Be sure to clean up the `struct line_header' object.
9545 (dwarf_decode_line_header, free_line_header, add_include_dir,
9546 add_file_name): New functions.
9547 (dwarf_decode_lines): Move all the code to read the statement
9548 program header into dwarf_decode_line_header. Take the line
9549 header it built as the first argument, instead of the offset to
9550 the compilation unit's line number info. Use the new `struct
9551 line_header' type instead of the old structures. No need to do
9552 cleanups here now, since we don't allocate anything.
9553 (dwarf2_statement_list_fits_in_line_number_section,
9554 dwarf2_line_header_too_long): New complaints.
9556 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9558 * gdbtypes.c (init_vector_type): New function.
9559 (build_builtin_type_vec128): Simplify the representation of SIMD
9561 (build_gdbtypes): Initialize new builtin vector types.
9562 (_initialize_gdbtypes): Register new vector types with gdbarch.
9563 (builtin_type_v4_float, builtin_type_v4_int32,
9564 builtin_type_v8_int16, builtin_type_v16_int8,
9565 builtin_type_v2_int32, builtin_type_v4_int16,
9566 builtin_type_v8_int8): New (renamed) SIMD types.
9568 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9570 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9571 (i387_fill_fxsave): Likewise.
9573 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9575 * alpha-tdep.c (alpha_extract_return_value): Don't use
9576 non-constant array size in prototype.
9578 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9580 From Brian Taylor <briant at model dot com>:
9581 * ui-out.c (ui_out_field_core_addr): Use the function
9582 longest_local_hex_string_custom'to format addresses > 32 bits
9585 * ui-out.c (ui_out_field_core_addr): Update comment.
9587 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9589 * stack.c (select_and_print_frame): Make static. Delete the
9591 (func_command): Update call.
9592 (select_frame_command): Delete code computing the frame level.
9593 * frame.h (select_and_print_frame): Delete declaration.
9595 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9597 * sparc-tdep.c (sparc_get_saved_register): Comment why
9598 get_prev_frame call is safe.
9600 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9602 * frame.h (select_frame): Delete level parameter.
9603 * stack.c (select_frame): Update. Use frame_relative_level to
9604 obtain the frame's level.
9605 (select_and_print_frame): Update call.
9606 (select_frame_command): Ditto.
9607 (up_silently_base): Ditto.
9608 (down_silently_base): Ditto.
9609 * ocd.c (ocd_start_remote): Ditto.
9610 * remote-rdp.c (remote_rdp_open): Ditto.
9611 * remote-mips.c (mips_initialize): Ditto.
9612 (common_open): Ditto.
9613 * remote-e7000.c (e7000_start_remote): Ditto.
9614 * m3-nat.c (select_thread): Ditto.
9615 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9616 (child_get_current_exception_event): Ditto.
9617 * varobj.c (varobj_create): Ditto.
9618 (varobj_update): Ditto.
9619 (c_value_of_root): Ditto.
9620 * tracepoint.c (finish_tfind_command): Ditto.
9621 * corelow.c (core_open): Ditto.
9622 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9623 * thread.c (info_threads_command): Ditto.
9624 (switch_to_thread): Ditto.
9625 * infrun.c (normal_stop): Ditto.
9626 (restore_selected_frame): Ditto.
9627 (restore_inferior_status): Ditto.
9628 * breakpoint.c (insert_breakpoints): Ditto.
9629 (watchpoint_check): Ditto.
9630 (bpstat_stop_status): Ditto.
9631 (do_enable_breakpoint): Ditto.
9632 * blockframe.c (flush_cached_frames): Ditto.
9633 (reinit_frame_cache): Ditto.
9635 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9637 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9640 2002-05-04 Jim Blandy <jimb@redhat.com>
9642 * gdbtypes.c (replace_type): Doc fix.
9644 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9646 * valprint.c (strcat_longest): Delete commented out function.
9649 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9651 * MAINTAINERS: Mark a29k as deleted.
9652 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9653 Move new configurations to the top.
9654 * configure.tgt: Remove a29k.
9655 * config/a29k/tm-vx29k.h: Delete.
9656 * config/a29k/vx29k.mt: Delete.
9657 * config/a29k/tm-a29k.h: Delete.
9658 * config/a29k/a29k-udi.mt: Delete.
9659 * config/a29k/a29k.mt: Delete.
9660 * a29k-tdep.c: Delete.
9661 * remote-udi.c: Delete.
9662 * remote-mm.c: Delete.
9663 * remote-eb.c: Delete.
9664 * remote-adapt.c: Delete.
9665 * Makefile.in: Remove obsolete code.
9666 * config/s390/s390x.mt: Ditto.
9667 * config/s390/s390.mt: Ditto.
9668 * config/sparc/sparclynx.mh: Ditto.
9669 * config/sparc/linux.mh: Ditto.
9670 * config/pa/hppaosf.mh: Ditto.
9671 * config/pa/hppabsd.mh: Ditto.
9672 * config/ns32k/nbsd.mt: Ditto.
9673 * config/mips/vr5000.mt: Ditto.
9674 * config/m68k/sun3os4.mh: Ditto.
9675 * config/m68k/nbsd.mt: Ditto.
9676 * config/m68k/m68klynx.mh: Ditto.
9677 * config/m32r/m32r.mt: Ditto.
9678 * config/i386/x86-64linux.mt: Ditto.
9679 * config/i386/nbsdelf.mt: Ditto.
9680 * config/i386/nbsd.mt: Ditto.
9681 * config/i386/i386lynx.mh: Ditto.
9683 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9685 * target.c (debug_print_register): New function. Handle oversize
9687 (debug_to_fetch_registers): Call.
9688 (debug_to_store_registers): Call.
9690 2002-05-03 Jim Blandy <jimb@redhat.com>
9692 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9693 (read_type): Doc fix.
9694 * gdbtypes.c (replace_type): Doc fix.
9696 * stabsread.c (multiply_defined_struct): New complaint.
9697 (read_struct_type): If the type we were passed isn't empty, or
9698 incomplete, don't read the new struct type into it; complain,
9699 and return the original type unchanged. Take a new `type_code'
9700 argument, which is the type code for the new type.
9701 (read_type): Rather than storing the type's type code here, pass
9702 it as an argument to read_struct_type, and let that take care of
9703 storing it. That way, we don't overwrite the original type code,
9704 so read_struct_type can use it to decide whether we're overwriting
9705 something we shouldn't.
9706 (complain_about_struct_wipeout): New function.
9708 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9710 * gdbarch.sh: Assert that gdbarch is non-NULL.
9711 * gdbarch.c: Regenerate.
9713 2002-05-03 Jason Merrill <jason@redhat.com>
9715 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9718 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9720 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9721 (x86_64_dwarf2gdb_regno_map_length),
9722 (x86_64_dwarf2_reg_to_regnum): Added.
9723 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9724 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9725 (_initialize_x86_64_tdep): Synced with the change above.
9726 (x86_64_skip_prologue): Reformulated message.
9728 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9730 * f-exp.y: Also use new prev_lexptr variable
9731 to improve error reporting. Based on Michael Snyder
9732 2002-04-24 dated patch to c-exp.y.
9733 * jv-exp.y: Likewise.
9734 * m2-exp.y: Likewise.
9736 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9738 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9739 we are dealing with vectors.
9741 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9743 * config/m68k/tm-nbsd.h: Obvious fix,
9744 correct machine name.
9746 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9748 * p-typeprint.c (pascal_type_print_base): Add support
9749 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9751 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9753 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9754 for fondamental pascal 'char' type.
9756 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9758 * p-lang.h (is_pascal_string_type): Declaration changed,
9759 new sixth argument of type char ** added.
9760 * p-lang.c (is_pascal_string_type): Implementation
9761 changed. Args length_pos, length_size, string_pos, char_size
9762 can now be NULL. New argument arrayname set to the field
9763 name of the char array. Return value set to char array
9764 field index plus one.
9765 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9766 is_pascal_string_type function.
9768 2002-05-02 Andrew Cagney <cagney@redhat.com>
9770 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9771 <cagney@redhat.com> change.
9772 * gdbarch.c: Regenerate.
9774 2002-05-02 Andrew Cagney <cagney@redhat.com>
9776 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9777 before probing for a new one. Detect errorenous gdbarch_init
9779 * gdbarch.c: Regenerate.
9781 2002-05-01 Andrew Cagney <cagney@redhat.com>
9783 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9784 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9785 * config/v850/tm-v850.h: Ditto. Update copyright.
9787 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9789 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9792 2002-04-30 Michael Snyder <msnyder@redhat.com>
9794 * arm-tdep.c: Whitespace clean-ups.
9795 (arm_skip_prologue): Fix thinko; two lines
9796 should have been removed as part of 4/24 change.
9798 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9800 * rs6000-tdep.c: Added comment describing how fpscr register
9801 numbers were chosen.
9803 2002-04-30 Michael Snyder <msnyder@redhat.com>
9805 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9807 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9809 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9810 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9811 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9813 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9815 From Louis Hamilton <hamilton@redhat.com>:
9816 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9817 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9818 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9819 not bfd-private xcoff data, to determine wordsize.
9820 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9822 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9824 GDB 5.2 released from 5.2 branch.
9826 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9828 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9829 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9830 (x86_64_register_info_table): Added comments with register numbers.
9832 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9834 * rs6000-tdep.c (rs6000_extract_return_value,
9835 rs6000_store_return_value): Handle returning vectors.
9836 (rs6000_gdbarch_init): Use
9837 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9838 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9840 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9842 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9843 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9845 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9847 * hpread.c (hpread_psymtab_to_symtab_1,
9848 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9849 with fprintf_unfiltered (gdb_stderr,...).
9851 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9853 * remote-array.c (printf_monitor, write_monitor,
9854 array_insert_breakpoint, array_remove_breakpoint ):
9855 Replace fprintf (stderr,...
9856 with fprintf_unfiltered (gdb_stderr,....
9857 * remote-es.c: Likewise.
9858 * remote-os9k.c: Likewise.
9859 * remote-st.c: Likewise.
9861 2002-04-28 Andreas Schwab <schwab@suse.de>
9863 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9864 linux-proc.o and gcore.o.
9866 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9868 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9869 code without frame pointers.
9871 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9873 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9876 2002-04-26 Ben Elliston <bje@redhat.com>
9878 * target.c (do_xfer_memory): Correct reference to the new option
9879 "trust-readonly-sections".
9881 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9883 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9884 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9885 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9887 (read_array_type): Record the fact that this array type is really a
9888 vector (i.e. are passed in by value).
9890 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9892 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9893 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9894 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9895 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9896 * alpha-linux-tdep.c: Include frame.h.
9897 (alpha_linux_sigcontext_addr): New function.
9898 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9899 alpha_linux_sigcontext_addr.
9900 * alpha-osf1-tdep.c: Include gdbcore.h.
9901 (alpha_osf1_sigcontext_addr): New function.
9902 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9903 alpha_osf1_sigcontext_addr.
9904 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9905 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9907 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9909 * stack.c (selected_frame_level):
9910 (select_frame): Do not set selected_frame_level.
9911 * frame.h (selected_frame_level): Delete declaration.
9913 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9915 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9916 convert_from_func_ptr-addr when AIX / PowerOpen.
9918 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9920 * valops.c (hand_function_call): Call
9921 generic_save_call_dummy_addr.
9922 * frame.h (generic_save_call_dummy_addr): Declare.
9923 * blockframe.c (struct dummy_frame): Add fields call_lo and
9925 (generic_find_dummy_frame): Check for PC in range call_lo to
9926 call_hi instead of entry_point_address.
9927 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9928 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9929 (generic_save_call_dummy_addr): New function.
9931 2002-04-24 David S. Miller <davem@redhat.com>
9933 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9934 sparc_skip_prologue.
9935 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9936 information to find prologue when possible.
9937 (sparc_prologue_frameless_p): Call examine_prologue directly.
9938 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9939 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9941 (SKIP_PROLOGUE): Likewise.
9943 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9945 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9946 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9947 indicate that the condition it was testing is always true.
9948 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9949 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9950 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9952 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9954 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9955 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9956 tdep->jb_pc and tdep->jb_elt_size.
9957 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9958 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9959 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9960 * alpha-nat.c (get_longjmp_target): Remove.
9961 (JB_ELEMENT_SIZE): Ditto.
9963 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9964 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9965 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9966 to alpha_get_longjmp_target.
9967 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9968 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9969 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9971 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9973 * README: Update to GDB 5.2.
9975 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9977 * gdbarch.sh (LC_ALL): Set to `c'.
9979 2002-04-25 Theodore A. Roth <troth@verinet.com>
9981 * avr-tdep.c: Ran through gdb_indent.sh.
9983 2002-04-25 Theodore A. Roth <troth@verinet.com>
9985 * MAINTAINERS: Add myself as AVR maintainer.
9986 * NEWS: Note new target avr.
9988 2002-04-25 Theodore A. Roth <troth@verinet.com>
9990 * Makefile.in: Add support for AVR target.
9991 * configure.tgt: Add support for AVR target.
9992 * avr-tdep.c: New file
9993 * config/avr/avr.mt: New file.
9995 2002-04-25 Theodore A. Roth <troth@verinet.com>
9997 * MAINTAINERS: Add myself to write-after-approval.
9999 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10001 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10002 with fprintf_unfiltered (gdb_stderr,....
10004 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10007 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10009 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10011 * p-exp.y: Also use new prev_lexptr variable
10012 to improve error reporting. Based on Michael Snyder
10013 2002-04-24 dated patch to c-exp.y.
10015 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10017 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10018 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10019 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10021 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10023 (FUNCTION_START_OFFSET): Remove.
10024 (BREAKPOINT): Ditto.
10026 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10028 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10031 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10033 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10034 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10035 alpha_linux_pc_in_sigtramp.
10036 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10037 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10038 alpha_osf1_pc_in_sigtramp.
10039 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10040 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10041 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10042 alphafbsd_pc_in_sigtramp.
10043 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10044 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10045 alphanbsd_pc_in_sigtramp.
10046 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10047 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10049 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10051 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10053 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10055 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10057 (alphanbsd-nat.o): New dependency list.
10058 (alphanbsd-tdep.o): Ditto.
10059 * NEWS: Note new native NetBSD/alpha configuration.
10060 * alphanbsd-nat.c: New file.
10061 * alphanbsd-tdep.c: Ditto.
10062 * configure.host (alpha*-*-netbsd*): New host.
10063 * configure.tgt (alpha*-*-netbsd*): New target.
10064 * config/alpha/nbsd.mh: New file.
10065 * config/alpha/nbsd.mt: Ditto.
10066 * config/alpha/nm-nbsd.h: Ditto.
10067 * config/alpha/tm-nbsd.h: Ditto.
10069 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10071 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10072 (alpha-osf1-tdep.o): New dependency list.
10073 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10074 and skip_sigtramp_frame members.
10075 * alpha-linux-tdep.c: Include gdbcore.h.
10076 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10077 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10078 * alpha-osf1-tdep.c: New file.
10079 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10081 (alpha_frame_past_sigtramp_frame): New function.
10082 (alpha_dynamic_sigtramp_offset): Ditto.
10083 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10084 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10085 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10086 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10087 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10088 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10089 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10090 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10091 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10092 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10093 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10094 to find_solib_trampoline_target.
10095 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10096 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10097 (SKIP_TRAMPOLINE_CODE): Remove.
10098 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10099 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10100 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10101 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10102 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10103 (PROC_SIGTRAMP_MAGIC): Ditto.
10104 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10105 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10106 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10107 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10108 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10110 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10112 * NEWS: Note that Alpha targets are now multi-arch.
10114 2002-04-24 Michael Snyder <msnyder@redhat.com>
10116 * parser-defs.h (prev_lexptr): New external variable.
10117 * parse.c (parse_exp_1): Set prev_lexptr to null before
10118 calling the language-specific parser.
10119 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10120 (yyerror): Use prev_lexptr in error reporting.
10122 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10124 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10125 * gregset.h: If FILL_FPXREGSET is defined, provide
10126 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10127 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10128 is defined, call fill_fpxregset.
10130 2002-04-24 Roland McGrath <roland@frob.com>
10132 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10133 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10134 (supply_gregset, supply_fpregset): New functions.
10136 * gnu-nat.c (gnu_find_memory_regions): New function.
10137 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10138 (gnu_xfer_memory): Add a cast.
10140 2002-04-24 Michael Snyder <msnyder@redhat.com>
10142 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10143 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10144 of argument regs ("str r(0123), [r11, #-nn"]).
10145 (arm_skip_prologue): Better handling for frameless functions.
10146 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10147 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10149 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10151 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10152 NUM_PSEUDO_REGS can be used.
10154 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10156 * arch-utils.h: Update copyright.
10158 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10159 * gdbarch.h, gdbarch.c: Re-generate.
10161 * inferior.h (IN_SIGTRAMP): Delete definition.
10162 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10163 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10165 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10166 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10167 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10168 (find_proc_framesize): Ditto.
10169 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10170 (alpha_init_extra_frame_info): Ditto.
10171 * infrun.c (handle_inferior_event): Ditto.
10172 (handle_inferior_event): Ditto.
10173 (check_sigtramp2): Ditto.
10174 * blockframe.c (create_new_frame): Ditto.
10175 (get_prev_frame): Ditto.
10176 * ppc-linux-tdep.c: Update comments.
10177 * i386-linux-tdep.c: Update comments.
10178 * breakpoint.c (bpstat_what): Update comment.
10180 2002-04-24 David S. Miller <davem@redhat.com>
10182 * i960-tdep.c (register_in_window_p): New function.
10183 (i960_find_saved_register): Use it instead of
10184 REGISTER_IN_WINDOW_P.
10185 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10187 * symtab.h (find_stab_function_addr): Kill extern.
10188 * minsyms.c (find_stab_function_addr): Remove from here...
10189 * dbxread.c: ... to here, and mark it static.
10191 2002-04-20 David S. Miller <davem@redhat.com>
10193 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10194 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10196 2002-04-21 David S. Miller <davem@redhat.com>
10198 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10199 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10200 (vx_write_register): Likewise.
10202 2002-04-23 J. Brobecker <brobecker@gnat.com>
10204 * source.c (is_regular_file): New function.
10205 (openp): Check wether file to open is a regular file
10206 to avoid opening directories.
10208 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10210 * findvar.c (extract_signed_integer): Cast printf argument
10211 to suppress format warning.
10212 (extract_unsigned_integer): Likewise.
10213 * infcmd.c (registers_info): Likewise.
10214 * top.c (get_prompt_1): Likewise.
10215 * valops.c (value_assign): Likewise.
10216 * valprint.c (print_decimal): Likewise.
10218 2002-04-22 H.J. Lu (hjl@gnu.org)
10220 * c-exp.y (typebase): Support
10222 [long|long long|short] [signed|unsigned] [int|]
10226 signed [long|long long|short] int
10228 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10230 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10232 * vax-tdep.h: New file.
10233 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10234 Make several routines static.
10235 (vax_get_saved_register): New function.
10236 (vax_gdbarch_init): New function.
10237 (_initialize_vax_tdep): Register vax_gdbarch_init.
10238 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10239 Remove macros now under the control of gdbarch.
10241 2002-04-22 Michael Snyder <msnyder@redhat.com>
10243 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10244 Some whitespace and coding standards tweaks.
10246 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10248 * vax-tdep.c: Include regcache.h.
10249 (vax_call_dummy_words): New.
10250 (sizeof_vax_call_dummy_words): New.
10251 (vax_fix_call_dummy): New function.
10252 (vax_saved_pc_after_call): Ditto.
10253 * config/vax/tm-vax.h: Don't include regcache.h.
10254 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10255 (CALL_DUMMY): Remove.
10256 (CALL_DUMMY_WORDS): Define.
10257 (SIZEOF_CALL_DUMMY_WORDS): Define.
10258 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10260 2002-04-18 Michael Snyder <msnyder@redhat.com>
10262 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10264 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10266 * vax-tdep.c (vax_frame_chain): New function.
10267 (vax_push_dummy_frame): Ditto.
10268 (vax_pop_frame): Ditto.
10269 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10270 (FRAMELESS_FUNCTION_INVOCATION): Use
10271 generic_frameless_function_invocation_not.
10272 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10273 (POP_FRAME): Use vax_pop_frame.
10275 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10277 * vax-tdep.c (vax_store_struct_return): New function.
10278 (vax_extract_return_value): Ditto.
10279 (vax_store_return_value): Ditto.
10280 (vax_extract_struct_value_address): Ditto.
10281 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10282 vax_store_struct_return.
10283 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10284 (STORE_RETURN_VALUE): Use vax_store_return_value.
10285 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10287 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10289 * vax-tdep.c (vax_frame_saved_pc): New function.
10290 (vax_frame_args_address_correct): Ditto.
10291 (vax_frame_args_address): Ditto.
10292 (vax_frame_locals_address): Ditto.
10293 (vax_frame_num_args): Move code to be in proximity to
10294 other frame-related functions.
10295 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10296 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10297 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10298 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10299 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10301 2002-04-22 H.J. Lu (hjl@gnu.org)
10303 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10306 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10308 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10309 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10310 (FRAME_INIT_SAVED_REGS): New macro.
10312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10314 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10316 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10318 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10320 (fetch_osf_core_registers): Likewise.
10321 (supply_gregset): Likewise.
10323 2002-04-22 J. Brobecker <brobecker@gnat.com>
10325 * symfile.h (get_section_index): Define.
10326 * symfile.c (get_section_index): New function.
10327 * mdebugread.c (SC_IS_SBSS): New macro.
10328 (SC_IS_BSS): Return true for the scBss storage class only, as
10329 the scSBss storage class refers to the .sbss section.
10330 (parse_partial_symbols): Discard the symbols which associated
10331 section does not exist.
10332 Make sure to use the .sbss section index for symbols which
10333 storage class is scBss, rather than using the .bss section index.
10335 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10337 * vax-tdep.c: Update copyright years.
10338 (vax_register_name): New function.
10339 (vax_register_byte): Ditto.
10340 (vax_register_raw_size): Ditto.
10341 (vax_register_virtual_size): Ditto.
10342 (vax_register_virtual_type): Ditto.
10343 * config/vax/tm-vax.h: Update copyright years.
10344 (REGISTER_NAMES): Remove.
10345 (REGISTER_NAME): Define.
10346 (REGISTER_BYTE): Use vax_register_byte.
10347 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10348 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10349 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10351 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10353 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10355 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10357 2002-04-21 David S. Miller <davem@redhat.com>
10359 * arch-utils.c (generic_prologue_frameless_p): Kill
10360 SKIP_PROLOGUE_FRAMELESS_P code.
10361 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10363 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10364 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10365 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10367 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10368 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10369 (sparc_gdbarch_init): Pass it to
10370 set_gdbarch_prologue_frameless_p.
10372 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10374 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10375 (alphabsd-nat.o): New dependency list.
10377 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10379 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10381 (alpha-linux-tdep.o): New dependency list.
10382 (alphafbsd-tdep.o): Likewise.
10384 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10386 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10388 * alpha-tdep.c: ...from here.
10389 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10391 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10393 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10394 prototype from here...
10395 * alpha-tdep.h: ...to here.
10397 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10399 * frame.h (selected_frame_level): Document as deprecated.
10400 (frame_relative_level): Declare.
10401 * stack.c (frame_relative_level): New function.
10402 (selected_frame_level): Document as deprecated.
10403 (select_frame): Do not set the selected_frame_level.
10405 * stack.c (frame_info, record_selected_frame): Update.
10406 (frame_command, current_frame_command): Update.
10407 (up_silently_base, up_command, down_silently_base): Update.
10408 (down_command): Update.
10409 * inflow.c (kill_command): Update.
10410 * tracepoint.c (finish_tfind_command): Update.
10411 * corelow.c (core_open): Update.
10412 * thread.c (info_threads_command): Update.
10413 (do_captured_thread_select): Update.
10414 * infcmd.c (finish_command): Update.
10415 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10417 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10419 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10421 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10423 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10426 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10428 * alphafbsd-tdep.c: Update copyright years. Include
10430 (alphafbsd_use_struct_convention): Make static.
10431 (alphafbsd_init_abi): New function.
10432 (_initialize_alphafbsd_tdep): New function.
10433 * config/alpha/tm-fbsd.h: Update copyright years.
10434 (USE_STRUCT_CONVENTION): Remove.
10436 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10438 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10439 an Alpha ABI variant.
10440 (alpha_abi_handler_list): Declare.
10441 (alpha_gdbarch_register_os_abi): New function.
10442 (alpha_gdbarch_init): Give registered ABI variant handlers a
10443 chance to tweak the gdbarch once we have set up defaults.
10444 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10446 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10448 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10449 to standard_coerce_float_to_double.
10450 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10452 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10454 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10455 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10456 from gdbarch_tdep rather than a constant.
10457 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10458 the default text address for all Alpha Unix ABIs.
10459 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10460 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10462 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10464 * alpha-tdep.h: New file. Includes several Alpha target constants
10466 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10467 let gdbarch deal with.
10468 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10469 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10470 to dependency list.
10471 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10472 Alpha target register names.
10473 * alphabsd-nat.c: Likewise.
10474 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10475 Alpha target register names. Make serveral routines static.
10476 (alpha_get_saved_register): New function.
10477 (alpha_abi_names): New.
10478 (process_note_abi_tag_sections): New function.
10479 (get_elfosabi): New function.
10480 (alpha_gdbarch_init): New function.
10481 (alpha_dump_tdep): New function.
10482 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10484 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10486 * frame.c (find_saved_register): Delete #ifdef
10487 HAVE_REGISTER_WINDOWS code.
10488 * config/sparc/tm-sparc.h: Update comments.
10489 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10491 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10493 * i960-tdep.c (i960_find_saved_register): New function.
10494 (i960_get_saved_register): New function.
10495 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10496 (i960_get_saved_register): Declare.
10497 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10499 2002-04-20 David S. Miller <davem@redhat.com>
10501 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10503 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10505 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10506 instead of NUM_PSEUDO_REGS.
10508 2002-04-20 David S. Miller <davem@redhat.com>
10510 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10511 GDB_MULTI_ARCH_PARTIAL
10512 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10513 define, let tm-sp64.h do it.
10515 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10517 * frame.c (find_saved_register): Avoid a NULL pointer
10518 dereference and actually walk the frame list.
10520 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10522 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10523 sorted in most most-recent-used order. Document.
10524 * gdbarch.h, gdbarch.c: Regenerate.
10526 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10528 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10530 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10531 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10532 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10535 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10538 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10539 (build_builtin_type_vec128): Ditto.
10540 (append_composite_type_field): Fix calculation of type length in
10543 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10545 * config/djgpp/README: Update.
10547 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10550 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10552 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10553 (alpha_setup_arbitrary_frame): ...to this.
10554 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10555 for alpha_setup_arbitrary_frame.
10557 2002-04-18 Andrew Cagney <cagney@redhat.com>
10559 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10560 * gdbarch.h, gdbarch.c: Regenerate.
10562 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10563 * target.h (memory_breakpoint_from_pc): Update declaration.
10564 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10566 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10567 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10568 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10569 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10570 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10571 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10572 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10573 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10574 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10575 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10576 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10577 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10579 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10581 * monitor.c (monitor_insert_breakpoint): Ditto.
10582 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10584 * config/mcore/tm-mcore.h: Update copyright.
10585 * mem-break.c: Ditto.
10586 * xstormy16-tdep.c: Ditto.
10588 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10590 * p-exp.y: Add precedence rule for '^' token.
10591 This removes the shift/reduce conflicts.
10592 Remove the comment concerning these shift/reduce conflicts.
10594 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10596 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10597 (registers_powerpc_nofp): New register set for processors
10598 without floating point unit.
10600 2002-04-18 David S. Miller <davem@redhat.com>
10602 * MAINTAINERS: Add myself to write-after-approval.
10604 2002-04-17 Michael Snyder <msnyder@redhat.com>
10606 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10608 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10610 * rs6000-tdep.c (frame_initial_stack_address): Use
10611 frame_register_read to read the alloca_reg.
10613 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10615 * frame.c (find_saved_register): Find saved registers in the next
10619 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10621 * gdbarch.sh (LANG): Set to ``c''.
10623 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10625 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10627 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10629 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10632 * hpread.c (hpread_get_lntt): Add declaration.
10633 Also fix PR gdb/391.
10635 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10637 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10638 * aclocal.m4, configure: Re-generate.
10641 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10643 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10644 instead of tm_print_insn.
10646 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10648 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10650 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10652 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10653 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10654 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10656 2002-04-12 Don Howard <dhoward@redhat.com>
10658 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10659 max_user_call_depth.
10660 (init_cmd_lists): Initialize the new value;
10661 * cli/cli-script.c (execute_user_command): Limit the call depth of
10662 user defined commands. This avoids a core-dump when user commands
10663 are infinitly recursive.
10665 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10667 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10668 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10669 from tdep struct instead of DEFAULT_LR_SAVE.
10670 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10671 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10672 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10674 2002-04-12 Michael Snyder <msnyder@redhat.com>
10676 * Remote.c: Spelling fix.
10677 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10678 If no symbol found for "sbrk", try "_sbrk".
10679 (make_output_phdrs): Use bfd_section_name.
10680 (gcore_copy_callback): Use bfd_section_name.
10681 * eval.c: Indentation fix-ups.
10682 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10683 in case it gets applied to an address that is already
10684 in the instruction space.
10685 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10686 * symfile.c: Fix indentation, long lines.
10687 * source.c: White space fix-up.
10689 2002-04-12 Andrew Cagney <cagney@redhat.com>
10691 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10692 * frame.c (frame_register_read): New function. Return non-zero on
10694 (read_relative_register_raw_bytes_for_frame): Delete.
10695 (read_relative_register_raw_bytes): Delete.
10696 * frame.h (frame_register_read): Declare.
10697 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10698 * sh-tdep.c: Ditto.
10699 * infcmd.c (do_registers_info): Ditto.
10700 * hppa-tdep.c: Ditto.
10701 * rs6000-tdep.c: Ditto.
10702 * h8500-tdep.c: Ditto.
10703 * mips-tdep.c: Ditto.
10704 * h8300-tdep.c: Ditto.
10705 * z8k-tdep.c: Ditto.
10707 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10709 From Jimi X <jimix@watson.ibm.com>:
10710 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10713 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10715 From Jimi X <jimix@watson.ibm.com>:
10716 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10719 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10721 From Jimi X <jimix@watson.ibm.com>:
10722 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10723 register sets for these processor variants.
10725 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10727 * regformats/reg-ppc.dat: Support FPSCR.
10729 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10731 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10732 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10733 Add fpscr as an invalid/unfetchable register.
10734 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10735 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10736 (fill_fpregset): Add support for register fpscr.
10737 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10738 (fill_gregset): Account for the fact that register ``mq'' might
10740 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10741 (registers_power): Add fpscr to register set at slot 71.
10742 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10743 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10745 2002-04-11 Michael Snyder <msnyder@redhat.com>
10747 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10748 * configure: Regenerate.
10749 * config.in: Regenerate.
10750 * acconfig.h: Add define for _SYSCALL32.
10751 * core-sol2.c: Remove #define _SYSCALL32.
10752 * solib-legacy.c: Remove #define _SYSCALL32.
10754 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10756 * stack.c (select_frame): Cleanup internal error message, do not
10759 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10761 * stack.c (select_frame): Check that selected_frame and the
10762 specified level are as expected.
10763 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10765 * frame.h (struct frame_info): Add field `level'. Update
10767 Work-in-progress PR gdb/464.
10769 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10771 * maint.c (maint_print_section_info): Rename print_section_info.
10772 (print_bfd_section_info, print_objfile_section_info): Update.
10773 * inferior.h (struct gdbarch): Add opaque declaration.
10774 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10775 * gdbarch.h: Regenerate.
10777 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10779 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10780 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10781 (kernel_u_size): Added.
10782 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10783 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10785 2002-04-04 Jim Ingham <jingham@apple.com>
10787 * valarith.c (find_size_for_pointer_math): New function, either returns
10788 the size for a pointer's target, returns 1 for void *, or errors for
10790 (value_add, value_sub): use find_size_for_pointer_math.
10792 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10794 * linux-low.c (linux_look_up_symbols): New hook.
10795 (linux_target_ops): Add linux_look_up_symbols.
10796 * remote-utils.c (decode_address): New function.
10797 (look_up_one_symbol): New function.
10798 * server.c (handle_query): Call target look_up_symbols hook.
10799 * server.h (look_up_one_symbol): Add prototype.
10800 * target.h (struct target_ops): Add look_up_symbols hook.
10802 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10804 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10805 override FP_REGNUM with frame->fp. Update copyright.
10806 * parse.c (num_std_regs, std_regs): Delete.
10807 (target_map_name_to_register): Do not search std_regs. Update
10808 function description.
10809 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10810 declarations. Update copyright.
10813 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10815 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10816 after the last symbol in a block.
10818 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10820 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10821 is non zero as a found symbol.
10823 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10825 * findvar.c: Include "builtin-regs.h".
10826 (value_of_register): Call value_of_builtin_reg when applicable.
10827 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10828 (target_map_name_to_register): Call
10829 builtin_reg_map_name_to_regnum.
10830 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10831 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10832 (builtin_regs_h): Define.
10833 (builtin-regs.o): New target.
10834 (findvar.o): Add $(builtin_regs_h).
10835 * builtin-regs.c, builtin-regs.h: New files.
10836 * std-regs.c: New file.
10837 Partial fix for PR gdb/251.
10839 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10841 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10842 it's no longer required.
10844 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10846 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10848 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10850 From Jimi X <jimix@watson.ibm.com>:
10851 * rs6000-tdep.c (rs6000_software_single_step): Use
10852 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10853 and size. Use target_insert_breakpoint() and
10854 target_remove_breakpoint() to insert and remove breakpoints
10855 instead of explicit memory reads and writes.
10857 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10859 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10860 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10861 ELF_OBJECT_FORMAT ifdef.
10863 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10865 From Jimi X <jimix@watson.ibm.com>:
10866 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10868 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10870 From Jimi X <jimix@watson.ibm.com>:
10871 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10872 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10874 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10876 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10877 s/asprintf/xasprintf/.
10878 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10880 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10882 I believe Jeff Law denies responsability for this one:
10883 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10884 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10885 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10886 Work-around for PR gdb/366.
10888 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10890 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10891 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10892 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10894 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10896 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10897 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10900 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10902 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10905 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10907 * README (Reporting Bugs in GDB): Document the bug web page as the
10908 prefered way of submitting bugs.
10911 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10913 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10914 -1. Update comment.
10915 * gdbarch.h, gdbarch.c: Re-generate.
10917 2002-04-07 Andreas Schwab <schwab@suse.de>
10919 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10920 buffer to regcache_collect.
10922 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10924 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10925 * gdbarch.c, gdbarch.h: Re-generate.
10927 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10929 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10930 declaration. Fix -Werror.
10932 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10934 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10935 * gdbarch.c: Regenerate.
10937 2002-04-05 Michael Snyder <msnyder@redhat.com>
10939 * breakpoint.c (clear_command): Rewrite middle section to
10940 combine two loops with identical control conditions.
10941 Add a cleanup to eliminate a memory leak.
10942 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10944 2002-04-05 H.J. Lu (hjl@gnu.org)
10946 * solib-svr4.c (bkpt_names): Add "__start".
10948 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10950 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10951 as test for 64 bit target.
10953 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10955 * h8500-tdep.c (h8500_write_fp): Delete function.
10956 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10957 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10958 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10959 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10960 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10961 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10963 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10964 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10965 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10966 (d10v_write_fp): Delete function.
10967 * inferior.h (write_fp, generic_target_write_fp): Delete
10969 * regcache.c (generic_target_write_fp): Delete function.
10970 (write_fp): Delete function.
10971 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10972 * gdbarch.h, gdbarch.c: Regenerate.
10973 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10974 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10975 (sparc64_write_fp): Delete declaration.
10976 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10977 (h8500_write_fp): Delete declaration.
10979 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10981 * sparc-tdep.c (sparc64_write_fp): Delete.
10982 (sparc_push_dummy_frame): Replace write_fp call with code to store
10984 (sparc_gdbarch_init): Do not initialize write_fp.
10986 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10988 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10991 2002-03-29 Jim Blandy <jimb@redhat.com>
10993 * stack.c (get_selected_block): Add new argument `addr_in_block',
10994 used to return the exact code address we used to select the block,
10995 not just the block.
10996 * blockframe.c (get_frame_block, get_current_block): Same.
10997 * frame.h (get_frame_block, get_current_block,
10998 get_selected_block): Update declarations.
10999 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11000 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11002 2002-04-05 Michael Snyder <msnyder@redhat.com>
11004 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11007 2002-04-05 J. Brobecker <brobecker@gnat.com>
11009 * utils.c (xfullpath): New function.
11010 * defs.h (xfullpath): Add declaration.
11011 * source.c (openp): Use xfullpath in place of gdb_realpath to
11012 avoid resolving the basename part of filenames when the
11013 associated file is a symbolic link. This fixes a potential
11014 inconsistency between the filenames known to GDB and the
11015 filenames it prints in the annotations.
11016 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11017 to be able to match a filename with either the real filename, or
11018 the name of any symbolic link to this file.
11019 (lookup_partial_symtab): Ditto.
11021 2002-04-04 Michael Snyder <msnyder@redhat.com>
11023 * breakpoint.c: Add support for hardware breakpoints in overlays.
11024 (overlay_events_enabled): New state variable.
11025 (insert_breakpoints): Use overlay_events_enabled to decide
11026 whether to attempt to set a breakpoint at the overlay load addr.
11027 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11028 (remove_breakpoint): Use overlay_events_enabled to decide
11029 whether breakpoints need to be removed from overlay load addr.
11030 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11031 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11032 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11033 disable_overlay_breakpoints): Update overlay_events_enabled.
11035 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11037 * dwarf2read.c (struct function_range): New.
11038 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11039 (check_cu_functions): New.
11040 (read_file_scope): Initialize global function lists.
11041 Call dwarf_decode_line after processing children.
11042 (read_func_scope): Add to global function list.
11043 (dwarf_decode_lines): Call check_cu_functions everywhere
11044 record_line is called. Call record_line with a linenumber
11045 of 0 to mark sequence ends.
11047 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11049 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11050 change sync with glibc.
11052 2002-04-03 Jim Blandy <jimb@redhat.com>
11054 * configure.in: Call AC_C_INLINE.
11055 * configure: Regenerated.
11057 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11059 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11060 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11062 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11064 * NEWS: Mention gcore support on FreeBSD/i386.
11066 * fbsd-proc.c: New file.
11067 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11068 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11070 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11073 2002-03-29 Jim Blandy <jimb@redhat.com>
11075 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11076 unescaped newlines in string literals, but newer ones don't. So
11079 2002-03-26 Michael Snyder <msnyder@redhat.com>
11080 Andrew Cagney <cagney@redhat.com>
11082 * cli/cli-dump.c: New file. Dump memory to file,
11083 restore file to memory.
11084 * cli/cli-dump.h: New file.
11085 * Makefile.in: Add rules, dependencies for cli-dump.o.
11086 * NEWS: Mention new commands.
11088 2002-03-28 Michael Snyder <msnyder@redhat.com>
11090 * symfile.c (symbol_file_add): Move test for null symbols to later.
11092 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11094 From veksler at il.ibm.com:
11095 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11096 the xstrduped original path.
11099 2002-03-27 Michael Snyder <msnyder@redhat.com>
11101 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11102 * infcmd.c (_initialize_infcmd): Ditto.
11103 * language.c (_initialize_language): Ditto.
11104 * symfile.c (_initialize_symfile): Ditto.
11105 * top.c (_init_main): Ditto.
11106 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11108 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11110 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11111 vector registers handling.
11112 (skip_prologue): Handle new AltiVec instructions. Fill in new
11113 fields of frame data.
11114 (frame_get_saved_regs): Fill in information for AltiVec registers.
11116 2002-03-27 Jim Blandy <jimb@redhat.com>
11118 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11119 a function; leave this macro here to invoke that function.
11120 (symbol_init_mangled_name): Declaration for that function.
11121 * symtab.c (symbol_init_mangled_name): New function.
11123 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11125 * valarith.c: Replace strerror with safe_strerror.
11126 * tracepoint.c: Ditto.
11127 * lin-lwp.c: Ditto.
11128 * go32-nat.c: Ditto.
11130 * gnu-nat.c: Ditto.
11132 2002-03-27 Andreas Schwab <schwab@suse.de>
11134 * event-top.c (command_line_handler): Remove useless if.
11136 2002-03-27 Andreas Jaeger <aj@suse.de>
11138 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11141 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11143 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11144 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11145 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11146 (x86_64_linux_dr_get_status, supply_gregset),
11147 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11148 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11149 (x86_64_register_info_table): Add.
11150 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11151 (x86_64_register_raw_size, x86_64_register_virtual_type),
11152 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11153 general x86_64_register_info_table.
11154 (i386_gdbarch_init): gdbarch_register_bytes is now set
11155 dynamicaly during initialization.
11156 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11157 * gdbserver/linux-x86-64-low.c: Ditto.
11159 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11161 * gdbserver/server.c (main): Call target_signal_to_host_p
11162 and target_signal_to_host on signals received from the remote.
11163 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11164 target_signal_from_host on signals sent to the remote.
11165 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11166 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11168 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11170 * signals/signals.c: Include "server.h" in gdbserver build.
11171 (target_signal_from_name): Don't use STREQ.
11172 (_initialize_signals): Likewise. Don't include function in
11175 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11177 * signals.c: Moved to...
11178 * signals/signals.c: Here.
11179 * Makefile (signals.o): Update.
11181 2002-03-26 Jeff Law (law@redhat.com)
11183 * somread.c (som_symtab_read): Remove some commented out code and
11184 updated related comments. Do not set the minimal symbol table to
11185 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11186 in a dynamic executable.
11187 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11188 where we are unable to find the minimal symbol for the given
11191 2002-03-25 Jeff Law (law@redhat.com)
11193 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11195 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11197 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11199 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11201 * command.h: Update copyright.
11202 (struct cmd_list_element): Replace definition with opaque
11204 (enum cmd_types): Document that it will eventually be moved to
11206 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11207 (MALLOCED_REPLACEMENT): Delete macro.
11208 * Makefile.in (cli_decode_h): Add $(command_h).
11209 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11210 * top.c: Include "cli/cli-decode.h".
11211 * completer.c: Include "cli/cli-decode.h".
11212 * maint.c: Include "cli/cli-decode.h".
11213 * cli/cli-decode.h: Include "command.h".
11214 (enum command_class): Delete.
11215 (enum cmd_types): Comment out.
11216 (enum cmd_auto_boolean): Delete.
11217 (enum var_types): Delete.
11219 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11221 * cli/cli-decode.c: Include "gdb_assert.h".
11222 (add_set_or_show_cmd): New static function.
11223 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11224 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11225 all fields, such as func, from the set command.
11227 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11229 * MAINTAINERS (sh-elf): Change warning flag to -w.
11231 2002-03-23 Andrew Cagney <cagney@redhat.com>
11233 * defs.h (error): Add printf format attribute.
11234 * thread-db.c (thread_from_lwp): Fix error format string.
11235 * stack.c (parse_frame_specification): Ditto.
11236 * cli/cli-decode.c (undef_cmd_error): Ditto.
11237 * scm-lang.c (scm_lookup_name): Ditto.
11238 * tracepoint.c (trace_error): Ditto.
11239 * remote-utils.c (usage): Ditto.
11240 * remote.c (compare_sections_command): Ditto.
11243 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11245 * gdbtypes.c (append_composite_type_field): New function.
11246 (init_composite_type): New function.
11247 * gdbtypes.h (append_composite_type_field): Declare.
11248 (init_composite_type): Ditto.
11250 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11252 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11254 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11255 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11256 structure returning convention for SYSV ABI case, but not
11257 for GNU/Linux, FreeBSD, or NetBSD.
11259 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11261 * symtab.h (lookup_block_symbol): Add mangled_name argument
11264 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11265 with new mangled_name argument.
11266 * linespec.c (decode_line_1): Likewise.
11267 * valops (value_of_this): Likewise.
11268 * symtab.c (lookup_transparent_type): Likewise.
11269 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11270 (lookup_symbol): If we are given a mangled name, pass it down
11271 to lookup_symbol_aux.
11272 (lookup_block_symbol): If we are given a mangled name to check
11273 against, only return symbols which match it.
11275 2002-03-22 Christopher Faylor <cgf@redhat.com>
11277 * win32-nat.c (child_create_inferior): Check for proper shell to use
11278 here, in case the user changes it on the fly.
11279 (_initialize_inftarg): Remove shell path considerations.
11281 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11283 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11284 for gdbarch_max_register_raw_size and max_register_virtual_size.
11285 Adjust copyright year.
11287 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11289 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11290 in a function to cover the entire beginning of the function
11291 as well if it does not already.
11293 2002-03-21 Tom Rix <trix@redhat.com>
11295 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11296 (rs6000_ptrace64): Renamed from ptrace64.
11298 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11300 * gdbserver/remote-utils.c (remote_open): Don't call
11301 getprotobyname, we're all using TCP here so just use
11303 * gdbserver/gdbreplay.c (remote_open): Ditto.
11305 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11307 * regcache.c (_initialize_regcache): No need to call
11308 build_regcache() at this time; it gets called whenever
11309 the gdbarch changes.
11311 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11313 * sparc-nat.c: Include sys/param.h where possible.
11315 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11318 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11319 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11320 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11322 * stabsread.c (rs6000_builtin_type): Likewise.
11323 (read_sun_floating_type): Likewise.
11325 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11327 * stabsread.c (read_member_functions): Remove skip code for duplicate
11328 constructor/destructor methods. Use standard parsing for these
11329 methods and just do not chain them to the list of methods after
11332 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11334 * coffread.c: Remove redundant static declarations. Replace
11335 occurrences of `PTR' with `void *'.
11336 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11337 * top.h (quit_cover): Likewise.
11338 * defs.h (catch_errors): Likewise.
11340 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11342 * defs.h (XMALLOC): Define.
11343 * gdb-events.sh (XMALLOC): Delete macro.
11344 * gdb-events.c, gdb-events.h: Regenerate.
11345 * gdbarch.sh (XMALLOC): Delete macro.
11346 * gdbarch.c: Regenerate.
11347 * serial.c (XMALLOC): Delete macro.
11348 * ui-file.c (XMALLOC): Ditto.
11349 * ser-unix.h (XMALLOC): Ditto.
11350 * sh-tdep.c (XMALLOC): Ditto.
11351 * ui-out.c (XMALLOC): Ditto.
11352 * utils.c (XMALLOC): Ditto.
11353 * i386-tdep.c (XMALLOC): Ditto.
11354 * gdb-events.c (XMALLOC): Ditto.
11355 * d10v-tdep.c (XMALLOC): Ditto.
11356 * cli-out.c (XMALLOC): Ditto.
11358 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11359 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11360 * ui-file.c, ui-out.c: Ditto.
11362 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11364 * command.h (struct cmd_list_element): Add field context.
11365 (set_cmd_context, get_cmd_context): Declare.
11366 * cli/cli-decode.h: Ditto.
11367 * cli/cli-decode.c (get_cmd_context): New function.
11368 (set_cmd_context): New function.
11369 (add_cmd): Initialize context.
11370 Part of fixing PR gdb/145 and PR gdb/146.
11372 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11374 * cli/cli-decode.c (cmd_type): New function.
11375 * command.h (cmd_type): Declare.
11376 * infrun.c (set_schedlock_func): Call function cmd_type.
11377 * kod.c (kod_set_os): Call cmd_type.
11378 * cris-tdep.c (cris_version_update): Use function cmd_type.
11379 (cris_mode_update, cris_abi_update): Ditto.
11381 * command.h: (execute_cmd_post_hook): Declare.
11382 (execute_cmd_pre_hook): Declare.
11383 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11384 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11385 functions. Execute pre/post hook while ensuring that afterwords
11386 hook_in is cleared.
11387 * top.c (execute_command): Use execute_cmd_post_hook, and
11388 execute_cmd_pre_hook to execute pre/post commands.
11389 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11391 (hook_stop_stub): Call execute_cmd_pre_hook.
11393 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11395 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11396 set'' and this leads to a core dump. Move xstrdup of
11397 operating_system to after check that it is not NULL.
11399 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11401 * kod.c (kod_set_os): Remove unnecessary check that
11402 ``command->type'' is set_cmd.
11404 * valprint.c (set_input_radix): Use input_radix.
11405 (set_output_radix): Use output_radix.
11406 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11409 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11411 * value.h (struct value): Delete field ``substring_addr''. Change
11412 aligner fields to force_doublest_align, force_longest_align,
11413 force_core_addr_align and force_pointer_aligh.
11415 * value.h (struct value): Fix typo in above change.
11417 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11419 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11420 to fix internal_error from ``maintenance print architecture''.
11422 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11424 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11425 for gcc versions after gcc-2.8.1.
11427 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11429 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11430 for method resolution. Restore adjustment of ``this'' pointer after
11431 calling value_struct_elt, which was accidentally removed during the
11434 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11436 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11438 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11439 get_saved_register.
11440 * value.h (value_of_register): Update.
11442 2002-03-14 Richard Henderson <rth@redhat.com>
11444 * configure.in: Detect declaration for canonicalize_file_name.
11445 * utils.c (canonicalize_file_name): Declare, if needed.
11446 (gdb_realpath): Prefer realpath if available and usable.
11447 * config.in, configure: Rebuild.
11449 2002-03-14 Richard Henderson <rth@redhat.com>
11451 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11452 a constant array bound.
11454 * MAINTAINERS: Add myself to write-after-approval.
11456 2002-03-14 Michael Snyder <msnyder@redhat.com>
11458 * symfile.c (syms_from_objfile): Return immediately if no syms.
11459 (symbol_file_add): Return immediately if no syms.
11460 (find_sym_fns): Return immediately if no syms.
11462 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11464 * gdbserver/remote-util.c (remote_open): Print remote-side's
11465 IP address when remote debugging over the network.
11467 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11469 * config/sparc/fbsd.mh: Fix copyright.
11470 * config/sparc/fbsd.mt: Likewise.
11472 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11474 * MAINTAINERS: Fix typo in name of gdb warnings option.
11475 (x86-64): Fix formating so that this can be parsed by awk.
11477 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11479 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11480 * defs.h: Include "gdb/signals.h".
11481 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11483 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11485 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11486 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11489 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11490 Don Howard <dhoward@redhat.com>
11492 * mips-tdep.c (ST0_FR): Define.
11493 (mips2_fp_compat): New function, temporarily disabled.
11494 (mips_read_fp_register_single): New function.
11495 (mips_read_fp_register_double): New function.
11496 (mips_print_register): Use them.
11497 (do_fp_register_row): Likewise.
11499 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11501 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11504 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11506 * stabsread.c (read_member_functions): Fix is_stub test for
11507 static member functions, improve comment.
11509 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11511 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11512 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11513 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11514 commands that set boolean values.
11515 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11516 (arm_rdi_resume): Always initialize PC.
11517 (arm_rdi_open): Don't use rslt as a boolean.
11518 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11519 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11520 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11521 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11523 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11525 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11526 * configure: Rebuilt.
11528 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11530 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11531 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11533 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11535 * cli/cli-decode.c (set_cmd_completer): New function.
11536 * command.h (set_cmd_completer): Declare.
11537 * cli/cli-decode.h (set_cmd_completer): Ditto.
11539 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11540 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11541 * win32-nat.c (_initialize_inftarg): Ditto.
11542 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11543 * proc-api.c (_initialize_proc_api): Ditto.
11544 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11545 * source.c (_initialize_source): Ditto.
11546 * exec.c (_initialize_exec): Ditto.
11547 * solib.c (_initialize_solib): Ditto.
11548 * top.c (init_main): Ditto.
11549 * tracepoint.c (_initialize_tracepoint): Ditto.
11550 * symfile.c (_initialize_symfile): Ditto.
11551 * printcmd.c (_initialize_printcmd): Ditto.
11552 * infcmd.c (_initialize_infcmd): Ditto.
11553 * corefile.c (_initialize_core): Ditto.
11555 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11557 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11559 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11561 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11563 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11565 * NEWS: Update headings, 5.2 has branched.
11567 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11569 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11570 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11571 (register_addr, REGISTER_RAW_SIZE): Likewise.
11572 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11573 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11575 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11577 * MAINTAINERS (x86-64): Add myself.
11578 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11579 changed value_ptr -> struct value *
11581 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11583 * configure.host (sparc64-*-freebsd): Add.
11584 * configure.tgt: Likewise.
11585 * config/sparc/fbsd.mh: New file.
11586 * config/sparc/fbsd.mt: Likewise.
11587 * config/sparc/nm-fbsd.h: Likewise.
11588 * config/sparc/tm-fbsd.h: Likewise.
11590 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11592 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11593 regformats/reg-s390x.dat.
11595 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11597 * utils.c: Add FIXME explaining true/false problem.
11599 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11601 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11603 2002-02-28 Michael Chastain <mec@shout.net>
11605 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11607 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11609 * gdbserver/linux-s390-low.c: New file.
11610 * regformats/reg-s390.dat: New file.
11611 * regformats/reg-s390x.dat: New file.
11612 * gdbserver/configure.srv: Add S/390.
11613 * gdbserver/Makefile.in: Add S/390.
11614 * configure.tgt: Enable gdbserver for S/390.
11616 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11618 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11619 first line of the doc string for "info dos", except at the end of
11620 the sentence, since the short help stops at the first period.
11622 2002-02-28 Jason Merrill <jason@redhat.com>
11624 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11626 2002-02-27 Fred Fish <fnf@redhat.com>
11628 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11629 comment (dumy -> dummy).
11631 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11633 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11635 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11637 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11639 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11641 * gdbserver/acconfig.h: New file.
11642 * gdbserver/i387-fp.c: New file.
11643 * gdbserver/i387-fp.h: New file.
11644 * gdbserver/linux-x86-64.c: New file.
11645 * regformats/reg-x86-64.dat: New file.
11646 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11647 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11648 * gdbserver/configure.in: Add support for regsets.
11649 * gdbserver/config.in: Regenerate.
11650 * gdbserver/configure: Regenerate.
11651 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11652 * gdbserver/linux-low.h: New file.
11653 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11655 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11656 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11657 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11658 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11659 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11660 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11661 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11662 "i387-fp.h". Add PTRACE_GETREGS and friends.
11663 * gdbserver/regcache.c (supply_register): New function.
11664 (supply_register_by_name): New function.
11665 (collect_register): New function.
11666 (collect_register_by_name): New function.
11668 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11670 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11671 (config.status): Add configure.srv dependency.
11672 (server_h): Add config.h dependency.
11674 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11676 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11677 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11678 * gdbserver/configure.srv: Change i386-*-linux* to use
11681 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11683 * x86-64-tdep.c: Re-indent. Update copyright date.
11685 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11687 From Michal Ludvig <mludvig@suse.cz>:
11688 * x86-64-tdep.c (value.h): Delete.
11689 (gdb_assert.h): Include.
11690 (x86_64_register_convert_to_virtual,
11691 x86_64_register_convert_to_raw ): Add check which lets only
11692 floating-point values to be converted.
11693 (value_push): Delete.
11694 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11695 (i386_gdbarch_init): Number of register_bytes fixed.
11697 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11699 * MAINTAINERS: Add x86-64 target.
11701 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11703 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11704 * osfsolib.c (solib_map_sections): Ditto.
11705 * irix5-nat.c (solib_map_sections): Ditto.
11706 * corelow.c (gdb_check_format): Ditto.
11707 * symfile.c (symfile_bfd_open): Ditto.
11708 * solib.c (solib_map_sections): Ditto.
11711 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11713 * remote.c (_initialize_remote): By default, disable ``e'' and
11714 ``E'' step out-of-range packets.
11716 2002-02-26 Andreas Schwab <schwab@suse.de>
11718 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11719 m68k_linux_frame_saved_pc.
11720 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11722 (SIGCONTEXT_PC_OFFSET): Remove.
11723 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11724 m68k_linux_sigtramp_saved_pc): New functions.
11725 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11726 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11727 (UCONTEXT_PC_OFFSET): Define.
11728 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11729 non-RT and RT signal trampolines.
11731 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11733 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11734 (TARGET_NBPG, STACK_END_ADDR): Delete
11735 (VARIABLES_INSIDE_BLOCK): Delete.
11737 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11739 * utils.c (perror_with_name): Make string parameter constant.
11740 (print_sys_errmsg): Ditto.
11742 * defs.h (perror_with_name): Update.
11743 (print_sys_errmsg): Update.
11746 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11748 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11749 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11751 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11753 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11754 if it already matches the current architecture from the exec file.
11755 Include arch-utils.h for gdbarch_info_init prototype.
11756 * Makefile.in (rs6000-nat.o): Update dependencies.
11758 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11760 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11761 list of exported variables.
11763 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11765 * gdbserver/configure.srv: New file.
11766 * gdbserver/configure.in: Use configure.srv instead
11767 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11769 * gdbserver/configure: Regenerated.
11770 * gdbserver/terminal.h: New file.
11771 * gdbserver/Makefile.in: Update for configure changes. Remove
11772 more unneeded include paths.
11774 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11776 From wiz at danbala:
11777 * config/sparc/tm-sp64.h: Fix grammar and typos.
11780 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11782 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11783 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11784 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11785 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11786 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11787 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11788 * s390-tdep.c: Ditto.
11789 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11790 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11791 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11792 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11793 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11794 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11795 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11796 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11797 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11798 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11801 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11803 * lin-thread.c: Delete file.
11804 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11805 to gdb_proc_service.h.
11806 * configure: Re-generate.
11808 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11809 * serial.c (serial_open): Delete check for "ocd".
11812 * Makefile.in (linux-thread.o): Delete target.
11813 * linux-thread.c: Delete file.
11815 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11816 renamed SH files to be consistent.
11818 * symtab.c (sort_search_symbols): Use xfree.
11820 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11822 * arm-linux-tdep.c (arm_linux_init_abi): Register
11823 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11824 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11825 definition with undef, since we don't want the sysvr4 definition.
11826 (SKIP_TRAMPOLINE_CODE): Likewise.
11828 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11830 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11832 * configure.in: (AC_CHECK_FUNCS) Added test for
11833 canonicalize_file_name Regenerated.
11834 * config.in, configure: Regenerated.
11835 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11836 defined use canonicalize_file_name.
11838 2002-02-23 Michael Chastain <mec@shout.net>
11840 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11842 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11844 * README: Remove references to cygnus.com.
11845 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11846 dot com'' form. Remove references to cygnus.com and sourceware.
11848 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11850 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11851 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11852 1003.1-2001 no longer allows "head -1".
11853 * gdb/Makefile.in (version.c): Likewise.
11854 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11855 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11856 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11858 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11860 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11861 * command.h (cmd_cfunc_eq): Declare.
11862 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11864 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11865 ``struct cmd_list_element *''.
11866 * cli/cli-cmds.c (is_complete_command): Update. Use
11868 * top.c (execute_command): Pass the command to
11869 is_complete_command.
11870 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11872 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11874 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11875 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11876 architecture defines.
11877 * s390-tdep.c (s390_gdbarch_init): Likewise.
11879 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11881 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11882 (arm_linux_push_arguments): Likewise.
11883 (arm_linux_init_abi): Register them. Also register linux-specific
11885 (find_minsym_and_objfile): Use strcmp, not STREQ.
11886 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11887 (arm_linux_call_dummy_words): Delete declaration.
11888 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11889 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11891 (LOWEST_PC): Delete.
11893 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11895 * maint.c (print_section_info): Do not prepend `0x' to filepos
11896 output, it will be handled by local_hex_string_custom.
11898 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11900 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11901 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11902 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11904 2002-02-22 Jim Blandy <jimb@redhat.com>
11906 Indicate that the bcache functions don't change the strings
11908 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11909 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11911 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11913 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11915 2002-02-21 Christopher Faylor <cgf@redhat.com>
11917 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11918 find the complete path to a loaded DLL.
11920 2002-02-21 Fred Fish <fnf@redhat.com>
11922 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11923 that marks the end of the range of a function, enter a line number
11924 entry that has a line number of zero and a PC offset that matches
11925 the end of the function. This starts a range of PC's for which no
11926 line number information is known.
11927 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11928 PC's for which no line number info is found (line number is zero)
11929 then we didn't find any valid line information.
11930 * symtab.h: Document use of zero line number entry.
11932 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11934 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11935 (have_ptrace_getvrregs): Define for run time checks.
11936 (gdb_vrregset_t): New type for Altivec register handling.
11937 (fetch_register, store_register): Fetch/store altivec register
11939 (fetch_altivec_register, store_altivec_register): New functions.
11940 (supply_vrregset, fill_vrregset): New functions.
11941 (fetch_altivec_registers, store_altivec_registers): New functions.
11942 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11945 2002-02-21 Jiri Smid <smid@suse.cz>
11947 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11949 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11951 * Makefile.in (armnbsd-nat.o): Update dependencies.
11952 * armnbsd-nat.c (supply_gregset): New function. Common code to
11953 supply the integer register set.
11954 (supply_fparegset): New function. Similar for FPA registers.
11955 (fetch_regs, fetch_fp_regs): Use them.
11956 (fetch_core_registers): Likewise.
11957 (fetch_elfcore_registers): New function.
11958 (arm_netbsd_elfcore_fns): New core-file type specification.
11959 (_initialize_arm_netbsd_nat): Register it.
11961 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11963 * armnbsd-nat.c: Include gdbcore.h.
11964 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11965 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11966 'void' to declaration, to shut up ARI.
11967 (fetch_core_registers): Make static. Rewrite using supply_register.
11968 (arm_netbsd_core_fns): New core-file type specification.
11969 (_initialize_arm_netbsd_nat): New function.
11971 2002-02-21 Christopher Faylor <cgf@redhat.com>
11973 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11976 2002-02-20 Christopher Faylor <cgf@redhat.com>
11978 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11981 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11983 * jv-exp.y (parse_number): Change type of implicit longs
11984 to builtin_type_uint64.
11986 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11988 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11989 to be an integer instead of a `union wait'.
11991 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11993 * mips-linux-nat.c: Call the operating system GNU/Linux.
11994 * mips-linux-tdep.c: Likewise.
11995 * mips-tdep.c: Likewise.
11997 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12000 * jv-exp.y (parse_number): Handle 64-bit integers.
12002 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12004 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12005 AC_STDC_HEADERS to AC_HEADER_STDC.
12006 * gdbserver/configure: Regenerated.
12008 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12010 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12012 * sparc-tdep.c (get_longjmp_target): Likewise.
12014 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12016 * News: Add news about ARM and Multi-arch. Mention the new target
12019 2002-02-19 Jim Blandy <jimb@redhat.com>
12021 * stabsread.c (error_type_complaint): Improve error message.
12023 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12025 * gdbserver/README: Update documentation.
12026 * gdbserver/configure.in: Update configury to match documentation.
12027 * gdbserver/Makefile.in: Likewise.
12028 * gdbserver/configure: Regenerated.
12029 * gdbserver/aclocal.m4: New file, generated by aclocal.
12030 * gdbserver/config.in: New file, generated by autoheader.
12032 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12034 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12037 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12039 * arm-tdep.h (enum arm_float_model): New enum.
12040 (struct gdbarch_tdep): Add fp_model.
12041 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12042 up floating-point conversions until we know the floating-point model
12043 in use by the inferior. Don't complain about being unable to
12044 determine the ABI of the inferior when we don't have one.
12045 (arm_extract_return_value): Support different floating-point models.
12046 (arm_store_return_value): Likewise.
12047 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12049 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12051 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12053 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12054 of ``current_gdbarch''.
12056 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12058 * armnbsd-nat.c : ANSIfy all function declarations.
12059 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12060 (fetch_inferior_registers): Re-implement in terms of above.
12061 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12062 (store_inferior_registers): Re-implement in terms of above.
12064 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12066 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12068 * arm-linux-tdep.c: Likewise.
12069 * config/arm/tm-linux.h: Likewise.
12071 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12073 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12074 * config/arm/nbsd.mt (TM_FILE): Delete.
12075 * config/arm/tm-nbsd.h: Delete.
12077 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12079 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12080 Initialize CALL_DUMMY_LENGTH.
12082 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12084 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12086 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12087 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12088 defines one thing and that is incorrect for this port.
12089 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12091 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12093 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12095 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12097 * win32-nat.c (display_selector): New function. Displays information
12098 about the information returned by GetThreadSelectorEntry API function.
12099 (display_selectors): New function. Displays the infomation of
12100 the selector given as argument, or of CS, DS ans FS selectors
12101 if no argument is given.
12102 ( _initialize_inftarg): Add "w32" as info prefix command.
12103 Add "info w32 selector" as command calling display_selectors.
12105 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12107 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12108 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12111 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12113 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12115 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12117 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12118 (arm_fix_call_dummy): Call it.
12119 (arm_call_dummy_breakpoint_offset): Delete.
12120 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12121 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12123 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12125 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12126 Default to func_frame_chain_valid.
12127 * gdbarch.h, gdbarch.c: Re-generate.
12128 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12130 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12132 * ppc-linux-nat.c: Update copyright.
12133 (fetch_register, store_register): Add tid parameter, don't compute
12135 (fetch_ppc_registers, store_ppc_registers): Add tid
12136 parameter. Pass it along to callees.
12137 (fetch_inferior_registers, store_inferior_registers): Compute tid
12138 here, and pass it to calleed functions.
12139 (fill_gregset, supply_fpregset): Clean up formatting.
12141 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12143 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12144 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12146 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12148 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12149 * gdbarch.c gdbarch.h: Regenerate.
12150 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12152 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12153 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12154 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12156 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12157 * arm-tdep.c (arm_get_longjmp_target): New function.
12158 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12159 this to a positive value register arm_get_longjmp_target as the
12161 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12162 (arm_linux_init_abi): Set up longjmp description in tdep.
12163 * armnbsd-nat.c (get_longjmp_target): Delete.
12164 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12165 description in tdep.
12166 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12167 (get_longjmp_target): Delete declaration.
12168 (GET_LONGJMP_TARGET): Delete.
12169 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12170 (GET_LONGJMP_TARGET): Delete.
12172 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12174 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12175 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12176 of ``current_gdbarch''.
12178 2002-02-17 Tom Tromey <tromey@redhat.com>
12180 * cli/cli-cmds.c (compare_strings): New function.
12181 (complete_command): Only print each unique item once.
12182 * completer.h (complete_line): Declare.
12183 * completer.c (complete_line): New function.
12184 (line_completion_function): Use it.
12186 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12188 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12189 * gdbarch.h, gdbarch.c: Re-generate.
12191 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12193 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12195 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12197 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12198 * valops.c (value_arg_coerce): Don't take the address of a reference
12199 to convert an argument to a reference.
12201 2002-02-15 Christopher Faylor <cgf@redhat.com>
12203 * win32-nat.c (get_image_name): New function.
12204 (handle_load_dll): Use get_image_name function.
12205 (get_child_debug_event): Avoid registering debug events until possibly
12206 execed process is started.
12207 (child_create_inferior): Allow invocation via shell so that command
12208 line redirection, etc. works ok.
12209 (_initialize_inftarg): Add new command: "set shell" to control whether
12210 a shell is used to start a process.
12212 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12214 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12215 instead of find_register_by_number.
12216 (cannot_store_register): Likewise.
12218 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12220 * dwarf2read.c: Replace fprintf (stderr, ...) by
12221 fprintf_unfiltered (gdb_stderr, ...).
12223 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12225 * gdbserver/gdbserver.1: Document --attach.
12227 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12229 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12231 * arm-tdep.c (arm_default_arm_le_breakpoint)
12232 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12233 (arm_default_thumb_be_breakpoint): New. Initialize them from
12234 traditional breakpoint defines.
12235 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12236 (arm_gdbarch_init): Initialize new breakpoint variables.
12237 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12238 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12239 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12240 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12242 (arm_netbsd_init_abi_common): ... here; new function.
12243 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12244 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12245 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12246 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12248 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12250 * arm-tdep.h (enum arm_abi): New enum.
12251 (struct gdbarch_tdep): New structure.
12252 (LOWEST_PC): Provide a default.
12253 (arm_gdbarch_register_os_abi): Declare new function.
12254 * arm-tdep.c (arm_abi_names): New array.
12255 (process_note_abi_tag_sections): New function.
12256 (get_elfosabi): New function.
12257 (arm_gdbarch_register_os_abi): New function.
12258 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12259 support for that ABI has been built in, then call the appropriate
12260 configuration routine. Use gdbarch_num_regs() to get the number
12262 (arm_dump_tdep): New function.
12263 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12264 place-holder functions.
12265 (_initialize_arm_tdep): Register them.
12266 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12268 * armnbsd-tdep.c: New file.
12269 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12270 * config/arm/nbsd.mt (TDEPFILES): Add it.
12271 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12273 * armnbsd-nat.c: Include regcache.h.
12274 * Makefile.in (armnbsd-nat.o): Update dependency list.
12276 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12278 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12280 * gdbserver/Makefile.in: Fix typos in target rules.
12282 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12284 Fix part of PR gdb/267.
12285 * linespec.c (find_methods): Handle constructors specially for now.
12287 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12289 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12291 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12292 standard_coerce_float_to_double().
12294 2002-02-14 Christopher Faylor <cgf@redhat.com>
12296 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12299 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12301 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12302 find_variant_by_name, because it confuses the multiarch
12303 framework. Return NULL if there isn't an architecture with the
12304 user supplied name, instead of forcing a different one without
12305 recording the change with the multiarch machinery.
12306 (find_variant_by_name): Delete.
12308 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12310 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12311 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12313 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12315 * stack.c (print_frame_info_base): When calling
12316 print_frame_info_listing_hook, set current_source_symtab.
12318 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12320 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12321 and remove unused $(INCLUDE_DIR).
12322 Add regcache.c to OBS.
12323 Add generated register protocol files to clean target.
12324 Update dependencies for new objects, obsolete old target code.
12326 * gdbserver/linux-low.c: Remove all platform-specific code to
12327 new files. Remove various dead code. Update to use regcache
12329 * gdbserver/remote-utils.c (fromhex): Add return statement
12331 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12333 (input_interrupt): Add integer parameter to match prototype
12334 of a signal handler.
12335 (outreg): Use register_data ().
12336 (prepare_resume_reply): Use gdbserver_expedite_regs.
12337 * gdbserver/server.c (main): Dynamically allocate own_buf because
12338 PBUFSIZ is no longer constant. Use registers_to_string () and
12339 registers_from_string ().
12340 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12341 for error (), fatal (), and warning (). Update definition of
12342 PBUFSIZ to use regcache functionality. Add include guard.
12343 * gdbserver/utils.c (fatal): Add missing ``const''.
12344 (warning): New function.
12346 * regformats/regdat.sh: Include "regcache.h" in generated files.
12347 Provide init_registers () function.
12348 * regformats/regdef.h: Add prototype for set_register_cache ().
12351 * gdbserver/linux-arm-low.c: New file.
12352 * gdbserver/linux-i386-low.c: New file.
12353 * gdbserver/linux-ia64-low.c: New file.
12354 * gdbserver/linux-m68k-low.c: New file.
12355 * gdbserver/linux-mips-low.c: New file.
12356 * gdbserver/linux-ppc-low.c: New file.
12357 * gdbserver/linux-sh-low.c: New file.
12359 * gdbserver/regcache.c: New file.
12360 * gdbserver/regcache.h: New file.
12362 * gdbserver/low-linux.c: Removed obsolete file.
12364 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12366 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12367 * config/i386/linux.mt: Likewise.
12368 * config/ia64/linux.mt: Likewise.
12369 * config/m68k/linux.mh: Likewise.
12370 * config/powerpc/linux.mh: Likewise.
12371 * config/mips/linux.mt: Likewise.
12373 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12375 * config/i386/i386lynx.mh: Mark gdbserver variables
12376 as (currently) obsolete for this target.
12377 * config/i386/nbsd.mt: Likewise.
12378 * config/i386/nbsdelf.mt: Likewise.
12379 * config/m32r/m32r.mt: Likewise.
12380 * config/m68k/m68klynx.mh: Likewise.
12381 * config/m68k/nbsd.mt: Likewise.
12382 * config/m68k/sun3os4.mh: Likewise.
12383 * config/mips/vr5000.mt: Likewise.
12384 * config/ns32k/nbsd.mt: Likewise.
12385 * config/pa/hppabsd.mh: Likewise.
12386 * config/pa/hppaosf.mh: Likewise.
12387 * config/powerpc/nbsd.mt: Likewise.
12388 * config/rs6000/rs6000lynx.mh: Likewise.
12389 * config/s390/s390.mt: Likewise.
12390 * config/s390/s390x.mt: Likewise.
12391 * config/sparc/sparclynx.mh: Likewise.
12392 * config/sparc/sun4os4.mh: Likewise.
12393 * config/i386/x86-64linux.mt: Likewise.
12394 * config/sparc/linux.mh: Likewise.
12396 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12398 * configure.tgt: Configure gdbserver only for known working
12399 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12400 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12401 SUBDIRS if it is configured. Update comment for ${nativefile}.
12402 * configure: Regenerated.
12404 2002-02-13 Michael Snyder <msnyder@redhat.com>
12406 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12408 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12409 (default_gcore_mach): Just return 0, work around a problem in bfd.
12410 (default_gcore_target): OK to return NULL if exec_bfd is null.
12411 (make_mem_sec): Use a cast, avoid a warning.
12413 * procfs.c (find_memory_regions_callback): Use a cast instead of
12414 calling host_pointer_to_address (which complains if
12415 sizeof (host pointer) != sizeof (target pointer)).
12416 (procfs_make_note_section): Avoid overflow in psargs string.
12418 * procfs.c (procfs_make_note_section): Make the default
12419 implementation return an error.
12421 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12423 * procfs.c (procfs_make_note_section): Provide a default definition
12424 (for alpha-dec-osf4.0f). Fix typos.
12426 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12428 * linux-proc.c: Add include of regcache.h.
12429 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12431 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12433 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12434 * memattr.c (create_mem_region): Disallow useless empty region.
12435 Regions are half-open intervals, so allow [A..B) [B..C) as
12438 2002-02-13 Michael Chastain <mec@shout.net>
12440 * defs.h: Kill CONST_PTR.
12441 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12442 * c-lang.c (c_builtin_types): Likewise.
12443 * ch-lang.c (ch_builtin_types): Likewise.
12444 * f-lang.c (f_builtin_types): Likewise.
12445 * language.c (unknown_builtin_types): Likewise.
12446 * m2-lang.c (m2_builtin_types): Likewise.
12447 * p-lang.c (pascal_builtin_types): Likewise.
12448 * scm-lang.c (c_builtin_types): Likewise.
12450 2002-02-13 Keith Seitz <keiths@redhat.com>
12452 * arm-tdep.h (arm_get_next_pc): Add declaration.
12454 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12456 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12457 with other related struct-returning functions.
12458 (arm_extract_struct_value_address): New function.
12459 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12460 initialize float_format, double_format and long_double_format as
12461 appropriate to the endianness of the target.
12462 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12463 (arm_use_struct_convention): Delete declaration.
12464 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12466 2002-02-13 Keith Seitz <keiths@redhat.com>
12468 * defs.h (core_addr_to_string_nz): New function.
12470 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12472 Apply missing bits of 2002-01-15 patch.
12473 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12474 (fill_fpregset): Use i387_fill_fsave.
12476 2002-02-12 Keith Seitz <keiths@redhat.com>
12478 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12479 (core_addr_to_string_nz): New function.
12481 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12483 * arm-linux-nat.c: Really include arm-tdep.h.
12484 * config/arm/tm-linux.h (struct type, struct value): Declare.
12486 2002-02-11 Michael Snyder <msnyder@redhat.com>
12488 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12489 (gcore section): Ifdef for Solaris and Unixware only.
12490 (procfs_do_thread_registers): Unixware needs one lwpstatus
12491 per thread (not one prstatus or pstatus).
12492 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12493 not over all gdb threads. For unixware, call elfcore_write_pstatus
12494 once before iterating over threads.
12496 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12498 * arm-tdep.h: New file.
12499 * arm-tdep.c: Include arm-tdep.h.
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): Make static.
12505 (arm_software_single_step): Similarly. Fix types in declaration.
12506 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12507 (arm_store_return_value, arm_store_struct_return): New functions.
12508 (arm_gdbarch_init): Register the above functions. Also register
12509 call_dummy_start_offset, sizeof_call_dummy_words,
12510 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12511 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12512 max_register_virtual_size, register_size. Set up
12513 prologue_cache.saved_regs here, rather than ...
12514 (_initialize_arm_tdep): ... here.
12515 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12517 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12518 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12519 (arm_print_float_info, arm_register_type, convert_to_extended)
12520 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12521 (arm_extract_return_value, arm_register_name): Delete declarations.
12522 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12523 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12524 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12525 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12526 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12527 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12528 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12529 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12530 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12531 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12532 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12533 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12535 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12536 * remote-rdi.c remote-rdp.c: Likewise.
12537 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12538 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12539 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12542 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12543 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12544 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12545 from non-ARM_ prefixed definitions.
12546 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12548 * remote-rdi.c remote-rdp.c: Likewise.
12549 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12551 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12553 * arm-tdep.c (arm_frameless_function_invocation)
12554 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12555 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12556 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12557 (arm_pop_frame, arm_get_next_pc): Make static.
12558 (arm_gdbarch_init): Register above in gdbarch structure.
12559 (arm_read_fp): Renamed from arm_target_read_fp.
12560 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12561 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12562 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12563 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12564 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12565 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12566 (arm_pc_is_thumb_dummy): Delete declarations.
12567 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12568 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12569 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12570 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12572 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12574 * symtab.c (compare_search_syms): New function.
12575 (sort_search_symbols): New function.
12576 (search_symbols): Sort symbols after searching rather than
12579 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12581 * NEWS: Linux -> GNU/Linux.
12583 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12585 * gdbarch.sh: For for level one methods, disallow a definition
12586 when partially multi-arched. Add comments explaining rationale.
12587 * gdbarch.h: Re-generate.
12589 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12591 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12592 multi-arch partial.
12594 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12596 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12597 field. Use diff -u.
12598 * gdbarch.c: Re-generate.
12600 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12602 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12603 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12606 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12608 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12609 multi-arch partial.
12610 (PUSH_ARGUMENTS): Switch to using predefault.
12611 * gdbarch.c: Regenerate.
12613 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12615 * valops.c (PUSH_ARGUMENTS): Delete definition.
12616 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12617 partial. Default to default_push_arguments.
12618 * gdbarch.h, gdbarch.c: Regenerate.
12620 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12622 * defs.h (throw_exception): Rename return_to_top_level. Update
12624 * utils.c (error_stream, internal_verror, quit): Ditto.
12625 * top.c (throw_exception, catcher): Ditto.
12626 * sparclet-rom.c (sparclet_load): Ditto.
12627 * remote.c (interrupt_query, minitelnet): Ditto.
12628 * remote-sds.c (interrupt_query): Ditto.
12629 * remote-mips.c (mips_error, mips_kill): Ditto.
12630 * ocd.c (interrupt_query): Ditto.
12631 * monitor.c (monitor_interrupt_query): Ditto.
12632 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12633 * target.h: Update comment.
12635 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12637 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12639 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12640 default_double_format.
12641 * gdbarch.h, gdbarch.c: Re-generate.
12642 * findvar.c (floatformat_unknown): Delete variable definition.
12643 * doublest.h (floatformat_unknown): Delete variable declaration.
12645 2002-02-09 Jim Blandy <jimb@redhat.com>
12647 * stabsread.c (read_type): Add code to parse Sun's syntax for
12648 prototyped function types.
12650 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12652 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12653 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12655 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12657 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12658 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12659 now _initialize_xcoffsolib gets called again and overrides the
12660 commands from solib.c in a native configuration.
12662 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12664 * doublest.c (store_typed_floating): Don't try to return a value.
12667 2002-02-08 Jim Blandy <jimb@redhat.com>
12669 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12670 is prototyped and has no arguments, print its argument list as
12673 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12675 * MAINTAINERS (write-after-approval): Add myself.
12676 (paper-trail): I've escaped!
12678 2002-02-08 Christopher Faylor <cgf@redhat.com>
12680 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12682 (_initialize_check_for_gdb_ini): Ditto.
12684 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12686 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12687 xaprintf -> xasprintf.
12689 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12691 * win32-nat.c: Remove use of printf and sprintf functions.
12693 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12695 * arm-tdep.c (arm_frame_chain_valid): Make static.
12696 (arm_push_arguments): Likewise.
12697 (arm_gdbarch_init): New function.
12698 (_initialize_arm_tdep): Call it.
12699 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12700 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12701 (FRAME_CHAIN_VALID): Delete.
12702 (arm_frame_chain_valid): Delete declaration.
12703 (PUSH_ARGUMENTS): Delete.
12704 (arm_push_arguments): Delete declaration.
12705 (CALL_DUMMY_P): Delete.
12707 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12708 Corinna Vinschen <vinschen@redhat.com>
12710 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12711 on builtin float types.
12713 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12715 * utils.c: Include <curses.h> before "bfd.h".
12716 * tui/tui-hooks.c: Likewise.
12717 * tui/tui.c: Likewise.
12718 * tui/tuiCommand.c: Likewise.
12719 * tui/tuiData.c: Likewise.
12720 * tui/tuiDataWin.c: Likewise.
12721 * tui/tuiDisassem.c: Likewise.
12722 * tui/tuiGeneralWin.c: Likewise.
12723 * tui/tuiIO.c: Likewise.
12724 * tui/tuiLayout.c: Likewise.
12725 * tui/tuiRegs.c: Likewise.
12726 * tui/tuiSource.c: Likewise.
12727 * tui/tuiSourceWin.c: Likewise.
12728 * tui/tuiStack.c: Likewise.
12729 * tui/tuiWin.c: Likewise.
12731 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12733 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12734 to include space for pseudoregs as well. Update loops accordingly.
12735 (sh_fp_frame_init_saved_regs): Ditto.
12736 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12738 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12740 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12741 Add Richard Earnshaw to Arm maintainers.
12743 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12745 * defs.h (warning_begin): Delete declaration.
12747 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12750 2002-02-07 Michael Snyder <msnyder@redhat.com>
12752 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12753 Logic bug, remove misplaced else.
12755 2002-02-07 Klee Dienes <klee@apple.com>
12757 * fork-inferior.c (fork_inferior): Add '!' to the list of
12758 characters that need to be quoted when building a string for the
12759 shell. Quote '!' specifically with a backslash, since CSH chokes
12760 when trying to evaluate "str!str".
12762 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12764 * rdi-share/host.h: Only provide a typedef for bool if it is not
12767 2002-02-04 Michael Snyder <msnyder@redhat.com>
12769 * breakpoint.h (enum bptype): Add new overlay event bp type.
12770 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12772 * breakpoint.c (create_internal_breakpoint): New function.
12773 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12774 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12775 (create_thread_event_breakpoint): Ditto.
12776 (create_solib_event_breakpoint): Ditto.
12777 (create_overlay_event_breakpoint): New function.
12778 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12779 (update_breakpoints_after_exec): Delete and re-initialize
12780 overlay event breakpoints after an exec. Add FIXME comment
12781 about longjmp breakpoint.
12782 (print_it_typical): Ignore overlay event breakpoints.
12783 (print_one_breakpoint): Ditto.
12785 (bpstat_what): Do not stop for overlay event breakpoints.
12786 (delete_breakpoint): Don't delete overlay event breakpoints.
12787 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12788 (breakpoint_re_set): Re-create overlay event breakpoint.
12790 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12791 (overlay_manual_command): Disable overlay breakpoints.
12792 (overlay_off_command): Disable overlay breakpoints.
12794 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12796 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12797 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12798 to here from config/tm-arm.h.
12799 (coff_sym_is_thumb): Make static.
12800 (arm_elf_make_msymbol_special): New function.
12801 (arm_coff_make_msymbol_special): New function.
12802 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12803 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12804 (coff_sym_is_thumb): Delete declaration.
12805 (arm_elf_make_msymbol_special): Declare.
12806 (arm_coff_make_msymbol_special): Declare.
12807 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12808 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12810 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12812 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12814 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12816 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12817 * gdbarch.c gdbarch.h: Regenerate.
12818 * arch-utils.c (default_print_float_info): New function.
12819 * arch-utils.h (default_print_float_info): Prototype it.
12820 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12821 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12822 (PRINT_FLOAT_INFO): Document it.
12824 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12825 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12826 (PRINT_FLOAT_INFO): Define.
12828 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12830 * win32-nat.c (_initialize_check_for_gdb_ini):
12831 Add typecast to sprintf argument to suppress a warning.
12833 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12835 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12836 to allow easier handling of pass state.
12837 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12838 that gives exception name and address.
12839 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12840 and set last_sig value to ourstatus->value.sig. Some missing
12842 (child_continue): Correctly report continue_status.
12843 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12844 TARGET_SIGNAL_0 (new default value).
12845 (child_resume): consider sig argument passed to decide if
12846 the exception should be passed to debuggee or not.
12848 2002-02-05 Michael Snyder <msnyder@redhat.com>
12850 * regcache.c (fetch_register): Call target_fetch_register
12851 only if we don't call FETCH_PSEUDO_REGISTER.
12852 (store_register): Call target_store_register only if we
12853 don't call STORE_PSEUDO_REGISTER.
12855 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12857 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12858 ELF_MAKE_MSYMBOL_SPECIAL.
12859 * gdbarch.c, gdbarch.h: Regenerate.
12860 * arch-utils.c (default_make_msymbol_special): New function.
12861 * arch-utils.h (default_make_msymbol_special): Export.
12862 * elfread.c (elf_symtab_read): Compile use of
12863 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12865 * coffread.c (coff_symtab_read): Ditto, for
12866 COFF_MAKE_MSYMBOL_SPECIAL.
12868 2002-02-05 Jim Blandy <jimb@redhat.com>
12870 * solib-svr4.c (svr4_truncate_ptr): New function.
12871 (svr4_relocate_section_addresses): Do the address arithmetic with
12872 the appropriate truncation for target addresses, even when
12873 CORE_ADDR is larger than a target address.
12875 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12877 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12880 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12882 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12885 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12887 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12889 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12891 * gdbserver/linux-low.c: Remove unused include files.
12893 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12895 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12896 (read_inferior_memory): Use it.
12897 (write_inferior_memory): Likewise.
12899 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12901 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12902 grubbing through sys_errlist.
12904 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12906 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12908 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12909 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12911 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12913 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12914 (do_sfunc, set_cmd_sfunc): New functions.
12916 * command.h (struct cmd_list_element): Add field func.
12917 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12918 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12919 * cli/cli-decode.h: Ditto.
12921 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12922 (help_all, help_cmd_list): Ditto.
12923 (find_cmd, complete_on_cmdlist): Ditto.
12924 * top.c (execute_command): Ditto.
12926 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12929 * infcmd.c (notice_args_read): Fix function signature.
12931 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12932 * cli/cli-decode.c (add_set_cmd): Ditto.
12933 * utils.c (initialize_utils): Ditto.
12934 * maint.c (_initialize_maint_cmds): Ditto.
12935 * infrun.c (_initialize_infrun): Ditto.
12936 * demangle.c (_initialize_demangler): Ditto.
12937 * remote.c (add_packet_config_cmd): Ditto.
12938 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12939 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12940 * proc-api.c (_initialize_proc_api): Ditto.
12941 * kod.c (_initialize_kod): Ditto.
12942 * valprint.c (_initialize_valprint): Ditto.
12943 * top.c (init_main): Ditto.
12944 * infcmd.c (_initialize_infcmd): Ditto.
12945 * corefile.c (_initialize_core): Ditto.
12946 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12947 * arch-utils.c (initialize_current_architecture): Ditto.
12948 (_initialize_gdbarch_utils): Ditto.
12949 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12951 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12952 * wince.c (_initialize_inftarg): Ditto.
12953 * symfile.c (_initialize_symfile): Ditto.
12954 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12955 * language.c (_initialize_language): Ditto.
12956 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12958 2002-02-04 Michael Snyder <msnyder@redhat.com>
12960 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12962 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12964 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12965 Add rules for building the register data files.
12967 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12969 * regformats/regdat.sh: Add braces to the definition of
12970 expedite_regs_${arch}.
12972 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12974 * regformats/regdef.h (struct reg): Add comment describing the
12975 requirements for offset and size fields.
12977 2002-02-04 Andreas Schwab <schwab@suse.de>
12979 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12980 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12982 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12984 * gdbarch.sh (copyright): Update years in generated header.
12985 (SMASH_TEXT_ADDRESS): Add rule.
12986 * gdbarch.h, gdbarch.c: Re-generate.
12987 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12988 * dbxread.c: Likewise.
12989 * dwarfread.c: Likewise.
12990 * elfread.c: Likewise.
12991 * somread.c: Likewise.
12993 * arm-tdep.c (arm_smash_text_address): New function.
12994 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12996 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12998 Add support for hardware watchpoints on win32 native.
12999 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13000 CONTEXT_DEBUG_REGISTERS.
13001 (dr variable): New variable. Static array containing a local copy
13002 of debug registers.
13003 (debug_registers_changed): New variable. Reflects when debug registers
13004 are changed and need to be written to inferior.
13005 (debug_registers_used): New variable. Reflects when any debug register
13006 was set, used when new threads are created.
13007 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13009 (thread_rec): Set dr array if id is the thread of current_event .
13010 (child_continue, child_resume): Change the debug registers for all
13011 threads if debug_registers_changed.
13012 (child_add_thread): Change the debug registers if debug_registers_used.
13013 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13014 Link nm.h to new nm-cygwin.h file.
13015 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13016 of hardware registers.
13018 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13020 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13021 Restore behavour broken by 2002-01-20 Andrew Cagney
13022 <ac131313@redhat.com> IEEE_FLOAT removal.
13024 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13026 * c-valprint.c (c_val_print): Pass a proper valaddr to
13027 cp_print_class_method.
13028 * valops.c (search_struct_method): If there is only one method
13029 and args is NULL, return that method.
13031 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13033 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13034 accessing tag_name directly.
13036 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13038 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13039 of accessing tag_name directly.
13041 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13044 * gdbtypes.c (replace_type): New function.
13045 * gdbtypes.h (replace_type): Add prototype.
13046 * stabsread.c (read_type): Use replace_type.
13048 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13050 * Makefile.in (memattr.o): Add missing dependencies rule.
13052 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13054 * breakpoint.c (break_at_finish_command): Really export.
13055 (break_at_finish_at_depth_command): Ditto.
13056 (tbreak_at_finish_command): Ditto.
13057 * hppa-tdep.c: Include completer.h.
13058 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13059 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13061 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13063 * utils.c (do_write): New function.
13064 (error_stream): Rewrite combining the code from error_begin and
13066 (verror): Rewrite using error_stream.
13067 (error_begin): Delete function.
13069 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13071 * utils.c (error_begin): Make static.
13072 * defs.h (error_begin): Delete declaration.
13074 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13075 (decode_line_1): Use cplusplus_error instead of error_begin,
13076 cplusplus_hint and return_to_top_level.
13077 * coffread.c (coff_symfile_read): Use error instead of error_begin
13078 and return_to_top_level.
13079 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13081 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13083 * language.h (type_error, range_error): Make string parameter
13085 * language.c (warning_pre_print): Delete extern declaration.
13086 * dwarfread.c (warning_pre_print): Ditto.
13087 * language.c (type_error, range_error): Rewrite to use verror and
13088 vwarning instead of warning_begin.
13090 2002-02-01 Michael Snyder <msnyder@redhat.com>
13092 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13093 (set_ignore_count): Move misplaced comment back where it belongs.
13095 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13097 * command.h (NO_FUNCTION): Delete macro.
13098 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13099 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13100 * tracepoint.c (_initialize_tracepoint): Ditto.
13101 * cli/cli-decode.c (add_set_cmd): Ditto.
13102 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13104 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13106 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13107 Update ``this'' pointer when calling virtual functions.
13109 2002-02-01 Michael Snyder <msnyder@redhat.com>
13111 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13112 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13114 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13116 * regformats/reg-arm.dat: New file.
13117 * regformats/reg-i386.dat: New file.
13118 * regformats/reg-ia64.dat: New file.
13119 * regformats/reg-m68k.dat: New file.
13120 * regformats/reg-mips.dat: New file.
13121 * regformats/reg-ppc.dat: New file.
13122 * regformats/reg-sh.dat: New file.
13123 * regformats/regdef.h: New file.
13124 * regformats/regdat.sh: New file.
13126 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13128 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13129 (arm_frame_args_address, arm_frame_locals_address): New functions.
13130 (arm_frame_num_args): New function.
13131 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13132 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13133 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13135 2002-01-31 Michael Snyder <msnyder@redhat.com>
13137 * breakpoint.c (break_at_finish_command): Export.
13138 (break_at_finish_at_depth_command): Export.
13139 (tbreak_at_finish_command): Export.
13140 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13141 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13142 "txbreak" commands, which are HPPA specific.
13144 * printcmd.c (disassemble_command): Remove an ancient
13145 artifact of an old merge.
13147 * symfile.h (enum overlay_debugging_state):
13148 Define enum constant values for overlay mode.
13149 * symfile.c (overlay_debugging): Use enums instead of literals.
13150 (overlay_is_mapped, overlay_auto_command,
13151 overlay_manual_command): Ditto.
13153 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13154 breakpoint_here_p, breakpoint_inserted_here_p,
13155 breakpoint_thread_match, bpstat_stop_status,
13156 describe_other_breakpoints, check_duplicates, clear_command):
13157 Coding standard fixes.
13159 * target.c (target_xfer_memory): Add spaces, coding standard.
13160 (do_xfer_memory): Add missing line to trust-readonly
13161 code: check bfd SEC_READONLY flag for section.
13163 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13165 * PROBLEMS: Fix typo, 5.1->5.1.1.
13167 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13169 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13170 data symbols, since we search based on textlow and texthigh.
13171 (find_pc_sect_symtab): Likewise.
13173 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13175 * defs.h (vwarning): Declare.
13176 * utils.c (vwarning): New function.
13177 (warning): Call vwarning.
13178 (warning_begin): Delete function.
13180 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13181 the warning message.
13182 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13185 2002-01-30 Michael Snyder <msnyder@redhat.com>
13187 * NEWS: Mention "set trust-readonly-sections" command.
13188 Mention generate-core-file command.
13190 2002-01-15 Michael Snyder <msnyder@redhat.com>
13192 * target.c: New command, "set trust-readonly-sections on".
13193 (do_xfer_memory): Honor the suggestion to trust readonly sections
13194 by reading them from the object file instead of from the target.
13195 (initialize_targets): Register command "set trust-readonly-sections".
13197 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13199 * parse.c (target_map_name_to_register): Simplify, search regs and
13200 pseudo-regs using a single loop.
13202 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13204 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13206 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13208 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13209 * config/i386/i386v42mp.mh: Add i387-nat.o .
13210 * i386v4-nat.c: Include i387-nat.h.
13211 (supply_fpregset): Use i387_supply_fsave.
13212 (fill_fpregset): Use i387_fill_fsave.
13214 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13216 * arm-tdep.c (arm_call_dummy_words): Define.
13217 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13218 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13219 (CALL_DUMMY_WORDS): Define.
13220 (arm_call_dummy_words): Declare.
13221 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13222 (arm_linux_call_dummy_words): Declare.
13224 2002-01-30 Andreas Schwab <schwab@suse.de>
13226 * m68klinux-nat.c: Fix last change to use regcache_collect
13227 instead of referencing registers[] directly.
13229 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13231 * parse.c (target_map_name_to_register): Delete code wrapped in
13232 #ifdef REGISTER_NAME_ALIAS_HOOK.
13234 2002-01-28 Michael Snyder <msnyder@redhat.com>
13236 * regcache.c (legacy_read_register_gen): Need to be able to
13237 read pseudo-register as well as real register.
13238 (legacy_write_register_gen): Ditto.
13240 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13242 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13243 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13244 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13245 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13246 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13247 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13248 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13249 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13250 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13251 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13252 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13253 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13254 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13255 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13256 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13257 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13258 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13259 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13260 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13261 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13263 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13265 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13266 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13267 (initialize_current_architecture): Update target_byte_order using
13268 information from BFD.
13269 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13270 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13272 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13274 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13275 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13277 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13278 #ifdef INVALID_FLOAT.
13279 * infcmd.c (do_registers_info): Ditto.
13280 * values.c (unpack_double): Ditto. Add comment.
13282 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13283 already commented out.
13285 2002-01-26 Andreas Schwab <schwab@suse.de>
13287 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13288 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13289 registers and add support for PTRACE_GETREGS.
13291 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13293 GDB 5.1.1 released from 5.1 branch.
13294 * NEWS: Add 5.1.1 news.
13295 * README: Sync with 5.1 branch.
13297 2002-01-23 Fred Fish <fnf@redhat.com>
13299 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13300 stabstring on initial malloc. Reallocing will copy it for us,
13303 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13305 * Makefile.in (hpread_h): Delete.
13306 (HFILES_NO_SRCDIR): Remove hpread.h.
13307 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13308 (hpread.o): Update dependencies.
13309 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13311 * hp-psymtab-read.c: Remove file.
13312 * hp-symtab-read.c: Remove file.
13313 * hpread.h: Remove file.
13315 * hpread.c: Merge all contents of hp-psymtab-read.c,
13316 hp-symtab-read.c and hpread.h into this file, as it was prior to
13319 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13320 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13321 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13322 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13324 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13326 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13327 fill_gregset): Call gdbarch_tdep() just once, assign result to
13328 variable and use that, instead of calling the function several
13331 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13333 * configure.host: Accept sparcv9 as alias for sparc64.
13334 * configure.tgt: Likewise.
13336 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13338 * solib-aix5.c (build_so_list_from_mapfile)
13339 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13340 arguments is not reversed.
13341 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13342 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13344 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13346 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13347 modified version of obsolete sh_fetch_pseudo_register.
13348 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13349 (sh4_register_read): New function.
13350 (sh_pseudo_register_write): New function. Renamed and modified
13351 version of obsolete sh_store_pseudo_register.
13352 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13353 (sh4_register_write): New function.
13354 (sh_gdbarch_init): Remove setting of gdbarch function
13355 fetch_pseudo_register and store_pseudo_register. Remove setting of
13356 register_convert_to_raw, register_convert_to_virtual,
13357 register_convertible.
13358 (sh_sh4_register_convertible): Delete. No longer needed. All is
13359 taken care by architecture specific functions
13360 register_read/register_write.
13361 (sh_sh4_register_convert_to_virtual): Make static.
13362 (sh_sh4_register_convert_to_raw): Ditto.
13364 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13366 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13367 (floatformat_is_nan, floatformat_mantissa): Ditto.
13369 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13370 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13371 builtin_type_ieee_double_little,
13372 builtin_type_ieee_double_littlebyte_bigword,
13373 builtin_type_m68881_ext, builtin_type_i960_ext,
13374 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13375 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13376 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13377 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13379 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13381 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13382 parameter. Set frameless flag if it exists and depended of
13383 whether the scanned function is frameless or not.
13384 (xstormy16_skip_prologue): If function is frameless, return
13385 result of xstormy16_scan_prologue().
13386 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13389 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13391 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13392 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13393 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13394 sh_sh4_register_byte, sh_sh4_register_raw_size,
13395 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13396 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13397 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13398 sh_store_pseudo_register, sh_do_pseudo_register): Call
13399 gdbarch_tdep() just once, assign result to variable and use that,
13400 instead of calling the function several times.
13402 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13404 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13405 macros instead of LAST_FPU_CTRL_REGNUM.
13406 (store_register): Likewise.
13408 2002-01-21 Jim Blandy <jimb@redhat.com>
13410 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13411 is up-to-date before running the program, not just when a program
13414 2002-01-21 Fred Fish <fnf@redhat.com>
13416 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13417 when we have found all instructions we are looking for.
13419 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13421 * arm-tdep.c (arm_register_name): New function.
13422 (arm_registers_names): Make static.
13423 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13424 (arm_register_name): Declare.
13425 (REGISTER_NAME): Use it.
13427 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13428 Kevin Buettner <kevinb@redhat.com>
13430 Convert arm targets to new FRAME interface.
13431 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13432 (arm_frame_find_save_regs): Delete.
13433 (arm_frame_init_saved_regs): New.
13434 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13435 Allocate extra_info as required. Convert all uses of fsr.regs
13436 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13438 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13439 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13440 (check_prologue_cache, save_prologue_cache): Likewise.
13441 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13442 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13443 (FRAME_FIND_SAVED_REGS): Delete.
13444 (arm_frame_find_saved_regs): Delete prototype.
13445 (arm_frame_init_saved_regs): New prototype.
13446 (FRAME_INIT_SAVED_REGS): Define.
13448 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13450 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13452 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13454 From Jeff Law <law@redhat.com>:
13455 * infttrace.c: Include <sys/pstat.h>.
13456 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13457 exec file if the ttrace equivalent fails.
13459 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13461 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13462 (closeLogFile): Ditto.
13464 2002-01-20 Michael Chastain <mec@shout.net>
13466 * top.c (print_gdb_version): Bump copyright year to 2002.
13468 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13470 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13471 Zannoni and Eli Zaretskii.
13473 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13475 * buildsym.c: Update copyright years.
13476 * c-typeprint.c: Likewise.
13477 * dwarf2read.c: Likewise.
13478 * f-typeprint.c: Likewise.
13479 * gdbtypes.c: Likewise.
13480 * gdbtypes.h: Likewise.
13481 * hp-symtab-read.c: Likewise.
13482 * hpread.c: Likewise.
13483 * mdebugread.c: Likewise.
13484 * p-typeprint.c: Likewise.
13486 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13488 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13489 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13490 byte-order selectable.
13491 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13492 * arch-utils.c: Ditto.
13493 (set_endian): Ditto.
13494 (set_endian_from_file): Ditto.
13495 * gdbserver/low-sim.c (create_inferior): Ditto.
13496 * gdbarch.sh: Ditto.
13497 * gdbarch.h: Re-generate.
13498 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13499 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13500 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13501 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13502 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13503 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13504 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13505 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13507 * config/mips/tm-wince.h: Remove #undef of macro
13508 TARGET_BYTE_ORDER_SELECTABLE.
13509 * config/sh/tm-wince.h: Ditto.
13511 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13513 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13514 member function fields. Add accessor macro
13515 TYPE_FN_FIELD_ARTIFICIAL.
13516 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13517 * c-typeprint.c (c_type_print_base): Skip artificial member
13520 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13522 * f-typeprint.c: Delete unused function f_type_print_args.
13523 * p-typeprint.c: Delete unused function pascal_type_print_args.
13525 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13527 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13528 comment. Add ``artificial'' to ``union field_location''.
13530 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13532 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13533 * mdebugread.c (parse_symbol): Likewise.
13534 * stabsread.c (define_symbol): Likewise.
13535 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13536 initializing TYPE_FIELD_BITPOS to n (obsolete).
13537 (hpread_doc_function_type): Likewise.
13538 * hpread.c (hpread_function_type): Likewise.
13540 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13542 * configure.in (host_makefile_frag): Only require a host makefile
13543 fragment when a native build.
13544 * configure: Re-generate.
13546 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13548 * doublest.h (floatformat_from_type): Declare.
13549 * doublest.c (floatformat_from_type): New function.
13550 (convert_typed_floating): Use.
13552 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13553 call to function floatformat_from_type.
13555 * gdbarch.sh (IEEE_FLOAT): Delete.
13556 * gdbarch.h, gdbarch.c: Re-generate.
13557 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13558 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13559 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13560 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13561 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13562 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13563 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13564 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13565 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13566 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13567 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13568 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13570 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13571 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13572 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13573 * sh-tdep.c (sh_gdbarch_init): Ditto.
13574 * mips-tdep.c (mips_gdbarch_init): Ditto.
13575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13576 * cris-tdep.c (cris_gdbarch_init): Ditto.
13578 2002-01-20 Jiri Smid <smid@suse.cz>
13580 * configure.host, configure.tgt: Support x86-64.
13581 * NEWS: Note new target x86-64.
13583 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13584 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13585 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13586 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13587 x86-64-linux-nat.o): Fix dependencies.
13589 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13591 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13592 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13593 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13594 * config/sparc/xm-sun4os4.h: Delete file.
13595 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13597 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13599 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13600 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13601 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13602 * config/i386/i386lynx.mh (XM_FILE): Delete.
13603 * config/rs6000/xm-rs6000ly.h: Delete file.
13604 * config/sparc/xm-sparclynx.h: Delete file.
13605 * config/m68k/xm-m68klynx.h: Delete file.
13606 * config/i386/xm-i386lynx.h: Delete file.
13607 * config/xm-lynx.h: Delete file.
13608 * config/djgpp/fnchange.lst: Update.
13610 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13612 * alpha-tdep.c (alpha_register_byte): New function.
13613 (alpha_register_raw_size): Ditto.
13614 (alpha_register_virtual_size): Ditto.
13615 (alpha_skip_prologue_internal): Renamed from
13616 alpha_skip_prologue.
13617 (alpha_skip_prologue): New version that calls
13618 alpha_skip_prologue_internal.
13619 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13620 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13621 second argument from alpha_skip_prologue.
13622 (REGISTER_BYTE): Use alpha_register_byte.
13623 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13624 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13625 (FRAMELESS_FUNCTION_INVOCATION): Use
13626 generic_frameless_function_invocation_not.
13627 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13628 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13630 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13632 * config/mips/xm-news-mips.h: Delete file.
13633 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13635 * config/m88k/xm-m88k.h: Delete file.
13636 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13637 * config/m88k/xm-delta88v4.h: Ditto.
13638 * config/m88k/xm-delta88.h: Ditto.
13640 * config/alpha/xm-fbsd.h: Delete file.
13641 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13643 * config/sparc/xm-sparc.h: Delete file.
13644 * Makefile.in (xm-sun4os4.h): Delete dependency.
13645 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13646 * config/sparc/xm-sun4os4.h: Ditto.
13647 * config/sparc/xm-linux.h: Ditto.
13649 * config/i386/xm-windows.h: Delete file.
13651 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13653 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13654 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13656 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13658 * alpha-tdep.c (alpha_call_dummy_words): New.
13659 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13660 (CALL_DUMMY_P): Define.
13661 (CALL_DUMMY_WORDS): Define.
13662 (SIZEOF_CALL_DUMMY_WORDS): Define.
13664 2002-01-19 Per Bothner <per@bothner.com>
13666 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13667 isn't NULL, which can happen with some gcj-3.x-produced code.
13669 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13671 * alpha-tdep.c (alpha_register_virtual_type): New function.
13672 (alpha_init_frame_pc_first): Ditto.
13673 (alpha_fix_call_dummy): Ditto.
13674 (alpha_store_struct_return): Ditto.
13675 (alpha_extract_struct_value_address): Ditto.
13676 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13677 alpha_register_virtual_type.
13678 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13679 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13680 alpha_extract_struct_value_address.
13681 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13682 (INIT_FRAME_PC): Use init_frame_pc_noop.
13683 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13685 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13687 * i386gnu-nat.c: Include "i386-tdep.h".
13688 (fetch_fpregs): Simplify code dealing with uninitialized floating
13689 point states such that it doesn't require FP7_REGNUM.
13691 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13693 * alpha-tdep.c (frame_extra_info): New.
13694 (alpha_find_saved_regs): Make static. Use
13696 (alpha_frame_init_saved_regs): New function.
13697 (alpha_frame_saved_pc): Use frame->extra_info.
13698 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13699 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13700 (init_extra_frame_info): Rename to...
13701 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13702 (alpha_print_extra_frame_info): New function.
13703 (alpha_frame_locals_address): Ditto.
13704 (alpha_frame_args_address): Ditto.
13705 (alpha_pop_frame): Use frame->extra_info.
13706 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13707 alpha_frame_args_address.
13708 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13709 (alpha_find_saved_regs): Remove prototype.
13710 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13711 (EXTRA_FRAME_INFO): Remove.
13712 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13713 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13715 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13717 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13718 (alpha_cannot_fetch_register): Ditto.
13719 (alpha_cannot_store_register): Ditto.
13720 (alpha_register_convertible): Ditto.
13721 (alpha_use_struct_convention): Ditto.
13722 * config/alpha/tm-alpha.h: Update copyright years.
13723 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13724 (INNER_THAN): Use core_addr_lessthan.
13725 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13726 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13727 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13728 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13729 (FRAME_CHAIN): Remove unnecessary cast.
13731 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13733 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13736 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13738 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13739 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13740 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13741 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13742 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13743 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13744 * x86-64-linux-nat.c: Ditto.
13746 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13748 * alpha-tdep.c (alpha_register_name): New function.
13749 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13750 (REGISTER_NAME): Define.
13752 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13754 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13756 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13758 * alpha-tdep.c: Update copyright years.
13759 (alpha_next_pc): New function.
13760 (alpha_software_single_step): Ditto.
13761 * config/alpha/tm-alpha.h: Add prototype for
13762 alpha_software_single_step.
13764 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13766 * alphabsd-nat.c: Update copyright years.
13767 (fill_gregset): Use regcache_collect.
13768 (fill_fpregset): Likewise.
13769 (fetch_inferior_registers): Only fetch integer registers
13770 if requested to do so.
13771 (store_inferior_registers): Only store integer registers
13772 if requested to do so.
13774 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13776 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13777 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13778 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13779 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13780 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13781 * config/arm/linux.mh (XDEPFILES): Delete.
13782 * config/arm/nbsd.mh (XDEPFILES): Delete.
13783 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13784 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13785 * config/i386/i386m3.mh (XDEPFILES): Delete.
13786 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13787 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13788 * config/i386/fbsd.mh (XDEPFILES): Delete.
13789 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13790 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13791 * config/i386/i386v4.mh (XDEPFILES): Delete.
13792 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13793 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13794 * config/i386/i386aix.mh (XDEPFILES): Delete.
13795 * config/i386/go32.mh (XDEPFILES): Delete.
13796 * config/i386/cygwin.mh (XDEPFILES): Delete.
13797 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13798 * config/i386/i386mach.mh (XDEPFILES): Delete.
13799 * config/i386/i386v32.mh (XDEPFILES): Delete.
13800 * config/i386/linux.mh (XDEPFILES): Delete.
13801 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13802 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13803 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13804 * config/i386/i386sco.mh (XDEPFILES): Delete.
13805 * config/i386/i386v.mh (XDEPFILES): Delete.
13806 * config/i386/nbsd.mh (XDEPFILES): Delete.
13807 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13808 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13809 * config/i386/symmetry.mh (XDEPFILES): Delete.
13810 * config/i386/obsd.mh (XDEPFILES): Delete.
13811 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13812 * config/ia64/linux.mh (XDEPFILES): Delete.
13813 * config/ia64/aix.mh (XDEPFILES): Delete.
13814 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13815 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13816 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13817 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13818 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13819 * config/m68k/linux.mh (XDEPFILES): Delete.
13820 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13821 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13822 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13823 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13824 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13825 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13826 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13827 * config/m88k/delta88.mh (XDEPFILES): Delete.
13828 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13829 * config/m88k/m88k.mh (XDEPFILES): Delete.
13830 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13831 * config/mips/linux.mh (XDEPFILES): Delete.
13832 * config/mips/irix6.mh (XDEPFILES): Delete.
13833 * config/mips/irix5.mh (XDEPFILES): Delete.
13834 * config/mips/irix4.mh (XDEPFILES): Delete.
13835 * config/mips/irix3.mh (XDEPFILES): Delete.
13836 * config/mips/decstation.mh (XDEPFILES): Delete.
13837 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13838 (NATDEPFILES): Move core-aout.o to here.
13839 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13840 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13841 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13842 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13843 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13844 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13845 * config/pa/hpux11.mh (XDEPFILES): Delete.
13846 * config/powerpc/aix.mh (XDEPFILES): Delete.
13847 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13848 * config/powerpc/linux.mh (XDEPFILES): Delete.
13849 * config/romp/rtbsd.mh: Rename XDEPFILES.
13850 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13851 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13852 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13853 * config/s390/s390.mh (XDEPFILES): Delete.
13854 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13855 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13856 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13857 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13858 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13859 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13860 * config/sparc/linux.mh (XDEPFILES): Delete.
13861 * config/vax/vaxult.mh (XDEPFILES): Delete.
13862 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13863 * Makefile.in (DEPFILES): Remove XDEPFILES.
13865 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13867 * utils.c (internal_verror): Fix comments, default is yes not no.
13868 Update queries to match. Default to quit and dump core.
13870 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13872 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13874 * defs.h, event-top.c, gdbcmd.h: Ditto.
13875 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13876 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13877 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13878 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13879 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13880 * mi/mi-main.c:Ditto.
13882 * stack.c, symfile.c: Update copyright.
13884 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13886 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13887 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13888 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13889 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13891 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13893 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13894 * gdbserver/low-lynx.c (myattach): Likewise.
13895 * gdbserver/low-nbsd.c (myattach): Likewise.
13896 * gdbserver/low-sim.c (myattach): Likewise.
13897 * gdbserver/low-sparc.c (myattach): Likewise.
13898 * gdbserver/low-sun3.c (myattach): Likewise.
13900 * gdbserver/low-linux.c (myattach): New function.
13902 * gdbserver/server.c (attach_inferior): New function.
13903 (main): Handle "--attach".
13905 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13907 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13910 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13912 * c-typeprint.c (is_type_conversion_operator): Add additional
13913 check for non-conversion operators.
13915 2002-01-15 Michael Snyder <msnyder@redhat.com>
13917 * linux-proc.c: Add "info proc" command, a la procfs.c.
13918 (read_mapping): New function, abstract and re-use code.
13919 (linux_find_memory_regions): Use new func read_mapping.
13920 (linux_info_proc_cmd): New function, implement "info proc".
13921 (_initialize_linux_proc): Add new command "info proc".
13923 2002-01-15 Michael Snyder <msnyder@redhat.com>
13925 * symfile.c (generic_load): Use bfd_map_over_sections method
13926 instead of manipulating bfd structure members directly.
13927 (add_section_size_callback): New function, bfd sections callback
13928 used by generic_load.
13929 (load_sections_callback): New function, bfd sections callback
13930 used by generic_load.
13932 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13934 [Based on work by Jim Blandy]
13935 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13936 (builtin_type_vec128): Export.
13937 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13939 (builtin_type_vec128): New builtin type for 128 bit vector
13941 (build_gdbtypes): Initialize builtin_type_v16qi and
13942 builtin_type_v8hi. Create the vec128 register builtin type
13944 (build_builtin_type_vec128): New function.
13945 (_initialize_gdbtypes): Register builtin_type_v16qi and
13946 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13947 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13948 AltiVec register to new builtin type.
13950 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13952 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13955 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13957 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13958 CLEAN_UP_REGISTER_VALUE.
13959 * regcache.c (supply_register): Update only call.
13961 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13963 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13964 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13965 a29k-*-vxworks* targets as obsolete.
13967 2002-01-14 Michael Snyder <msnyder@redhat.com>
13969 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13970 until we can resolve portability issues.
13971 * gregset.h: Remove references to fpxregs.
13972 * gcore.c (gcore_command): Initialize note_sec to NULL.
13974 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13976 * signals.c (target_signal_to_name): Rewrite. Only use
13977 signals[].name when in bounds and non-NULL.
13979 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13981 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13982 * signals.c (target_signal_to_name): Verify that SIG is within the
13983 bounds of the signals array.
13985 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13987 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13989 2002-01-13 Keith Seitz <keiths@redhat.com>
13991 * stack.c (print_frame_info_base): Print the frame's pc
13992 only if when print_frame_info_listing_hook is not defined.
13994 2002-01-13 Keith Seitz <keiths@redhat.com>
13996 * varobj.c (varobj_set_value): Make sure that there were no
13997 errors evaluating the object before attempting to set its
13999 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14000 so this offset adjustment is no longer necessary.
14001 (create_child): Don't set the error flag if the child is
14002 a CPLUS_FAKE_CHILD.
14003 (value_of_child): If value_fetch_lazy fails, return NULL
14004 so that callers will be notified that an error occurred.
14005 (c_value_of_variable): Delay check of variable's validity
14006 until later. We actually want all structs and unions to have
14008 Do not return "???" for variables which could not be evaluated.
14009 This error condition must be returned to the caller so that it
14010 can get the error condition from gdb.
14011 (cplus_name_of_child): Adjust index for vptr before figuring
14012 out the name of the child.
14013 (cplus_value_of_child): If a child's (real) parent is not valid,
14014 don't even bother trying to give a value for it. Just return
14015 an error. Change all instances in this function.
14016 (cplus_type_of_child): If our parent is one of the "fake"
14017 parents, we need to get at the type of the real parent, and
14018 derive the child's true type using this information.
14020 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14022 From 2002-01-09 John Marshall <johnm@falch.net>:
14023 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14024 sources.redhat.com, and tweak some related URLs which had
14025 suffered from linkrot.
14027 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14030 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14031 structures passed in registers.
14033 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14035 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14036 white space which prevented compilation. Reported by DSK
14037 <dsk@student.unsw.edu.au>.
14039 2002-01-11 Michael Snyder <msnyder@redhat.com>
14041 * symfile.c (build_section_addr_info_from_section_tab):
14042 Use bfd access method instead of manipulating bfd directly.
14043 (syms_from_objfile): Ditto.
14044 (simple_overlay_update_1): Ditto.
14045 (simple_overlay_update): Ditto.
14046 (generic_load): Ditto.
14047 (overlay_unmapped_address): FIXME comment, bfd access methods.
14048 (sections_overlap): FIXME comment, bfd access methods.
14049 (pc_in_mapped_range): FIXME comment, bfd access methods.
14050 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14051 (section_is_mapped): FIXME comment, bfd access methods.
14052 (section_is_overlay): FIXME comment, bfd access methods.
14054 * symfile.c (generic_load): Whitespace and long line cleanups.
14055 Remove duplicate variable, change several local variables to
14056 more appropriate data types.
14057 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14059 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14061 From Peter Schauer:
14062 * language.c (longest_local_hex_string_custom): Use phex_nz to
14063 convert NUM to a hex string.
14065 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14067 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14069 Update Copyright year.
14071 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14073 * language.c (longest_raw_hex_string): Delete unused function.
14075 2002-01-11 Petr Sorfa <petrs@caldera.com>
14077 * MAINTAINERS (write-after-approval): Add myself.
14078 * dwarf2read.c (read_tag_string_type): Handling of
14080 (read_tag_string_type): FORTRAN fix to prevent propagation of
14082 (set_cu_language): Handling of DW_LANG_Fortran95
14084 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14086 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14087 GETPID(inferior_ptid).
14088 (store_inferior_registers): Likewise.
14090 2002-01-10 Jason Merrill <jason@redhat.com>
14092 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14095 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14097 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14098 and bfd/elf32-sh-nbsd.c.
14100 2002-01-10 Michael Snyder <msnyder@redhat.com>
14102 * NEWS: Mention --pid and corefile/proc-id behavior change.
14104 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14105 * gcore.c: Include cli/cli-decode.h instead of command.h.
14107 * main.c (captured_main): Add new command line option "--pid".
14108 If the second command line argument (following the symbol-file)
14109 begins with a digit, try to attach to it before trying to open
14111 (print_gdb_help): Document the "--pid" argument.
14113 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14115 * completer.c (command_completer): New function.
14117 * completer.h <command_completer>: Add prototype.
14119 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14120 completer for the "help" command.
14122 2002-01-09 Jason Merrill <jason@redhat.com>
14124 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14126 2002-01-09 Michael Snyder <msnyder@redhat.com>
14128 * i386-linux-nat.c (fill_fpxregset): Make global.
14129 (store_fpxregset): Ditto.
14131 * gregset.h (gdb_fpxregset_t): Define.
14132 (supply_fpxregset): Prototype.
14133 (fill_fpxregset): Prototype.
14135 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14137 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14139 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14140 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14141 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14143 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14145 * MAINTAINERS: Update target maintainer rules so that any
14146 Maintainer can approve a tested patch for a maintenance-only
14149 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14151 * MAINTAINERS (write-after-approval): Add myself.
14153 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14156 2002-01-08 Michael Snyder <msnyder@redhat.com>
14158 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14159 real name of the executable, rather than the /proc name.
14161 2002-01-03 Michael Snyder <msnyder@redhat.com>
14163 Implement a "generate-core-file" command in gdb, save target state.
14164 * gcore.c: New file. Implement new command 'generate-core-file'.
14165 Save a corefile image of the current state of the inferior.
14166 * linux-proc.c: Add linux-specific code for saving corefiles.
14167 * target.h (struct target_ops): Add new target vectors for saving
14168 corefiles; to_find_memory_regions and to_make_corefile_notes.
14169 (target_find_memory_regions): New macro.
14170 (target_make_corefile_notes): New macro.
14171 * target.c (update_current_target): Inherit new target methods.
14172 (dummy_find_memory_regions): New place-holder method.
14173 (dummy_make_corefile_notes): New place-holder method.
14174 (init_dummy_target): Initialize new dummy target vectors.
14175 * exec.c (exec_set_find_memory_regions): New function.
14176 Allow the exec_ops vector for memory regions to be taken over.
14177 (exec_make_note_section): New function, target vector method.
14178 * defs.h (exec_set_find_memory_regions): Export prototype.
14179 * procfs.c (proc_find_memory_regions): New function, corefile method.
14180 (procfs_make_note_section): New function, corefile method.
14181 (init_procfs_ops): Set new target vector pointers.
14182 (find_memory_regions_callback): New function.
14183 (procfs_do_thread_registers): New function.
14184 (procfs_corefile_thread_callback): New function.
14185 * sol-thread.c (sol_find_memory_regions): New function.
14186 (sol_make_note_section): New function.
14187 (init_sol_thread_ops): Initialize new target vectors.
14188 * inftarg.c (inftarg_set_find_memory_regions): New function.
14189 Allow to_find_memory_regions vector to be taken over.
14190 (inftarg_set_make_corefile_notes): New function.
14191 Allow to_make_corefile_notes vector to be taken over.
14192 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14193 interface layer if not target_has_execution (may be a corefile).
14194 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14195 * config/sparc/sun4sol2.mh: Ditto.
14196 * config/alpha/alpha-linux.mh: Ditto.
14197 * config/arm/linux.mh: Ditto.
14198 * config/i386/x86-64linux.mh: Ditto.
14199 * config/ia64/linux.mh: Ditto.
14200 * config/m68k/linux.mh: Ditto.
14201 * config/mips/linux.mh: Ditto.
14202 * config/powerpc/linux.mh: Ditto.
14203 * config/sparc/linux.mh: Ditto.
14205 2002-01-07 Michael Snyder <msnyder@redhat.com>
14207 * arm-linux-nat.c: Remove references to regcache.c internal data
14208 (registers[] and register_valid[]).
14210 2002-01-07 Michael Snyder <msnyder@redhat.com>
14212 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14213 so that attaching to a pid will automatically read the process's
14214 symbol file and shlibs.
14215 * Makefile.in: Add rule for linux-proc.o.
14216 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14217 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14218 * config/arm/linux.mh: Ditto.
14219 * config/i386/linux.mh: Ditto.
14220 * config/i386/x86-64linux.mh: Ditto.
14221 * config/ia64/linux.mh: Ditto.
14222 * config/m68k/linux.mh: Ditto.
14223 * config/mips/linux.mh: Ditto.
14224 * config/powerpc/linux.mh: Ditto.
14225 * config/sparc/linux.mh: Ditto.
14227 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14229 * win32-nat.c: Add i386-tdep.h dependency.
14231 2002-01-07 Michael Snyder <msnyder@redhat.com>
14233 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14234 instead of bfd_get_arch_size. Don't bail out just because
14235 there's no exec_bfd.
14237 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14238 * p-valprint.c (pascal_object_print_value): Ditto.
14239 * somread.c (som_symtab_read): Ditto.
14240 * symfile.c (simple_free_overlay_region_table): Ditto.
14241 * valops.c (value_assign): Ditto.
14243 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14244 use tilde_expand and strerror for opening save-tracepoints file.
14246 * thread-db.c (thread_db_new_objfile): Indendation fix.
14248 * infptrace.c (GDB_MAX_ALLOCA): New define.
14249 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14250 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14251 can be overridden with whatever value is appropriate to the host).
14252 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14253 alloca to allocate potentially large buffer.
14254 * rs6000-nat.c (child_xfer_memory): Ditto.
14255 * symm-nat.c (child_xfer_memory): Ditto.
14256 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14258 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14260 From Nick Clifton <nickc@redhat.com>
14261 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14263 2002-01-07 Michael Snyder <msnyder@redhat.com>
14265 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14266 Don't use exec_bfd if it's NULL.
14268 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14270 * valops.c (value_arg_coerce): Fix formatting.
14272 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14274 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14275 * gnu-nat.c: Ditto.
14277 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14279 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14280 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14281 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14282 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14283 z8k-coff have not been multi-arched. Update z8k-coff build
14286 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14288 * MAINTAINERS: Mark a29k target as obsolete.
14289 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14290 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14292 * NEWS: Note that a29k targets are obsolete.
14293 * a29k-tdep.c: Mark as obsolete.
14294 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14295 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14296 a29k-*-vxworks* targets as obsolete.
14297 * remote-adapt.c: Obsolete.
14298 * remote-eb.c: Obsolete.
14299 * remote-mm.c: Obsolete.
14300 * remote-udi.c: Obsolete.
14301 * config/a29k/a29k-udi.mt: Obsolete.
14302 * config/a29k/a29k.mt: Obsolete.
14303 * config/a29k/tm-a29k.h: Obsolete.
14304 * config/a29k/tm-vx29k.h: Obsolete.
14305 * config/a29k/vx29k.mt: Obsolete.
14307 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14309 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14310 with BFD_ENDIAN_BIG.
14312 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14314 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14315 * configure, config.in: Re-generate.
14316 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14317 * defs.h: Do not include <endian.h>.
14319 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14321 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14322 * config.in: Regenerate.
14323 * configure.in: Update copyright years.
14324 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14325 * configure: Regenerate.
14326 * i386bsd-nat.c: Update copyright years.
14327 (fill_gregset): Use regcache_collect.
14328 (fetch_inferior_registers): Only fetch integer registers
14329 if requested to do so. Add support for XMM registers
14330 using PT_GETXMMREGS.
14331 (store_inferior_registers): Only store integer registers
14332 if requested to do so. Add support for XMM registers
14333 using PT_SETXMMREGS.
14334 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14335 (store_inferior_registers): Remove.
14336 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14337 (fetch_elfcore_registers): New function.
14338 (i386nbsd_elfcore_fns): New.
14339 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14340 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14342 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14343 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14344 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14345 * config/i386/tm-nbsd.h: Update copyright years.
14346 (HAVE_SSE_REGS): Define.
14347 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14348 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14349 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14350 (SIGCONTEXT_PC_OFFSET): Remove.
14351 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14353 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14355 * configure.tgt: Remove powerpc-*-macos* target.
14356 * config/m68k/xm-mpw.h: Delete file.
14357 * config/xm-mpw.h: Delete file.
14358 * ser-mac.c: Delete file.
14359 * mpw-make.sed: Delete file.
14360 * mpw-config.in: Delete file.
14361 * mac-xdep.c: Delete file.
14362 * mac-gdb.r: Delete file.
14363 * mac-defs.h: Delete file.
14364 * mac-nat.c: Delete file.
14365 * config/powerpc/macos.mh: Delete file.
14366 * config/powerpc/macos.mt: Delete file.
14367 * config/powerpc/nm-macos.h: Delete file.
14368 * config/powerpc/tm-macos.h: Delete file.
14369 * source.c (openp, open_source_file): Remove obsolete code.
14370 * top.c (gdb_readline): Ditto.
14371 * utils.c (query): Ditto.
14372 * event-top.c (display_gdb_prompt): Ditto.
14373 * Makefile.in (ser-mac.o): Delete obsolete target.
14376 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14378 * defs.h (BIG_ENDIAN): Delete macro definition.
14379 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14380 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14381 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14382 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14383 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14384 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14385 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14386 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14387 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14388 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14389 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14390 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14391 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14392 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14393 * gdbarch.c: Re-generate.
14395 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14397 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14400 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14402 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14404 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14406 * value.h (value_ptr): Delete typedef.
14408 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14410 * i386nbsd-nat.c: Update copyright years.
14411 Include i386-tdep.h.
14413 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14415 * stabsread.c: Update copyright years.
14417 From Debashis Mahata <debashis.mahata@wipro.com>:
14418 (read_struct_fields): Deal with Sun C compiler erroneous stab
14419 output for structs and unions.
14422 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14424 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14427 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14429 * cp-abi.c: Fix whitespace.
14430 (baseclass_offset): New wrapper function.
14431 * cp-abi.h (baseclass_offset): Add prototype.
14432 (struct cp_abi_ops): Add baseclass_offset pointer.
14434 * valops.c (vb_match): Move to...
14435 * gnu-v2-abi.c (vb_match): here.
14436 * valops.c (baseclass_offset): Move to...
14437 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14439 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14441 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14442 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14443 * hpacc-abi.c (init_hpacc_ops): Likewise.
14445 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14447 * valops.c (find_overload_match): Accept obj as a
14448 reference parameter. Update it before returning.
14449 * value.h (find_overload_match): Update prototype.
14450 * eval.c (evaluate_subexp_standard): Pass object to
14451 find_overload_match by reference.
14453 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14455 * valarith.c: Replace value_ptr with struct value pointer. Remove
14456 register attribute from value declarations.
14459 * scm-lang.c (scm_lookup_name): Ditto.
14461 2002-01-03 Michael Snyder <msnyder@redhat.com>
14463 Abstract the functionality of iterating over mapped memory
14464 regions into a general purpose iterator function.
14465 * procfs.c (iterate_over_mappings): New function, general purpose
14466 iterator for memory sections.
14467 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14468 (solib_mappings_callback): New function, callback for above.
14469 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14470 (info_mappings_callback): New function, callback for above.
14472 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14474 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14476 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14477 * i386-tdep.c: Include "elf-bfd.h".
14478 (process_note_abi_tag_sections): New function.
14479 (i386_gdbarch_init): Add code to recognize various OS/ABI
14482 * maint.c (_initialize_maint_cmds): Add missing \ in
14485 For older changes see ChangeLog-2001
14491 version-control: never