1 2002-12-11 Andrew Cagney <ac131313@redhat.com>
3 * frame.c (get_frame_extra_info): New function.
4 * frame.h (get_frame_extra_info): Declare.
6 2002-12-11 Andrew Cagney <ac131313@redhat.com>
8 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
9 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
10 with `struct frame_id'.
11 (set_longjmp_resume_breakpoint): Ditto.
12 * infrun.c (handle_inferior_event): Update.
13 * breakpoint.c (watch_command_1, until_break_command): Update.
14 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
15 (handle_inferior_event, step_over_function): Update.
16 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
17 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
18 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
19 * infcmd.c (finish_command, run_stack_dummy): Update.
21 2002-12-11 Kevin Buettner <kevinb@redhat.com>
23 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
24 (dwarf2_non_const_array_bound_ignored)
25 (dwarf2_missing_line_number_section)
26 (dwarf2_statement_list_fits_in_line_number_section)
27 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
28 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
29 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
30 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
31 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
32 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
33 (dwarf2_missing_member_fn_type_complaint)
34 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
35 (dwarf2_const_value_length_mismatch)
36 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
37 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
38 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
39 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
40 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
41 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
42 complaints using deprecated struct..
43 (dwarf2_non_const_array_bound_ignored_complaint)
44 (dwarf2_complex_location_expr_complaint)
45 (dwarf2_unsupported_at_frame_base_complaint)
46 (dwarf2_const_value_length_mismatch_complaint)
47 (dwarf2_macros_too_long_complaint)
48 (dwarf2_macro_malformed_definition_complaint)
49 (dwarf2_invalid_attrib_class_complaint): New functions.
50 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
51 (read_structure_scope, read_array_type, read_common_block)
52 (read_tag_pointer_type, read_base_type, read_partial_die)
53 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
54 (new_symbol, dwarf2_const_value, read_type_die)
55 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
56 (parse_macro_definition, dwarf_decode_macros): Replace calls to
57 complain() with, possibly indirect, calls to complaint().
59 2002-12-11 Andrew Cagney <cagney@redhat.com>
61 * frame.c (deprecated_get_frame_saved_regs): Rename
63 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
64 * sparc-tdep.c: Update.
65 * hppa-tdep.c: Update.
66 * h8500-tdep.c: Update.
68 2002-12-11 Kevin Buettner <kevinb@redhat.com>
70 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
71 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
72 ``char *'' for return and parameter types.
73 * gdbarch.h, gdbarch.c: Regenerate.
74 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
75 return type from ``char *'' to ``const char *''.
76 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
79 2002-12-11 Mark Kettenis <kettenis@gnu.org>
81 * i386-tdep.c: Include "dummy-frame.h".
82 (i386_frame_chain, i386_frame_saved_pc): Replace
83 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
84 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
86 2002-12-10 Andrew Cagney <cagney@redhat.com>
88 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
89 Change to a function with predicate.
90 * gdbarch.h, gdbarch.c: Re-generate.
91 * frame.c (get_prev_frame): Update. Test
92 DEPRECATED_INIT_FRAME_PC_P.
93 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
94 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
95 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
96 * alpha-tdep.c (alpha_gdbarch_init): Update.
97 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
98 * mips-tdep.c (mips_gdbarch_init): Update.
99 * i386-interix-tdep.c (i386_interix_init_abi): Update.
100 * arm-tdep.c: Update comments.
101 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
102 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
103 * frv-tdep.c (frv_gdbarch_init): Ditto.
104 * x86-64-tdep.c (x86_64_init_abi): Ditto.
105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
106 * s390-tdep.c (s390_gdbarch_init): Ditto.
107 * v850-tdep.c (v850_gdbarch_init): Ditto.
108 * vax-tdep.c (vax_gdbarch_init): Ditto.
109 * sh-tdep.c (sh_gdbarch_init): Ditto.
110 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
114 * i386-tdep.c (i386_gdbarch_init): Ditto.
115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
116 * cris-tdep.c (cris_gdbarch_init): Ditto.
117 * avr-tdep.c (avr_gdbarch_init): Ditto.
118 * arm-tdep.c (arm_gdbarch_init): Ditto.
119 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
120 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
122 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
124 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
126 * hppah-nat.c (saved_vfork_pid): Add.
127 (child_post_follow_vfork): Remove.
128 (child_follow_fork): New function.
129 (child_wait): Call detach_breakpoints after receiving the child vfork.
130 Call child_resume directly instead of going through resume ().
131 Make sure we have the exec before reporting the vfork.
132 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
133 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
134 (follow_fork): New function. Call target_follow_fork.
135 (follow_inferior_reset_breakpoints): New function broken out from
136 old follow_inferior_fork.
137 (resume): Remove hack to follow exec after vfork.
138 * inftarg.c (child_post_follow_vfork): Remove.
139 (child_follow_fork): New function.
140 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
141 * target.c (cleanup_target): Replace to_post_follow_vfork with
143 (update_current_target): Likewise.
144 (setup_target_debug): Likewise.
145 (debug_to_post_follow_vfork): Remove.
146 (debug_to_follow_fork): New function.
147 * target.h (struct target_ops): Replace to_post_folow_vfork with
149 (child_post_follow_vfork): Remove prototype.
150 (child_follow_fork): Add prototype.
151 (target_post_follow_vfork): Remove macro.
152 (target_follow_fork): Add macro.
154 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
156 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
157 (child_post_follow_vfork): Cancel pending exec event if we follow
159 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
160 events have been processed. Return a fake TARGET_WAITKIND_EXECD
161 event at the following wait call if necessary.
162 * infrun.c (follow_vfork): Don't follow_exec here.
163 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
164 case about HP/UX 10.20. Remove code pushed down to
165 hppah-nat.c:child_wait.
166 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
167 vfork_in_flight is set.
169 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
171 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
172 for the parent's fork event.
173 * infrun.c (handle_inferior_event): Only expect one fork event.
174 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
175 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
177 2002-12-10 Andrew Cagney <ac131313@redhat.com>
179 * PROBLEMS: Delete reference to PR gdb/725.
181 * MAINTAINERS (gdb.c++): Add David Carlton.
183 2002-12-09 David Carlton <carlton@math.stanford.edu>
185 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
186 * cli/cli-cmds.c: Ditto.
188 2002-12-09 Andrew Cagney <cagney@redhat.com>
190 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
191 function address in <>.
192 * gdbarch.c: Re-generate.
194 2002-12-09 David Carlton <carlton@math.stanford.edu>
196 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
198 2002-12-09 David Carlton <carlton@math.stanford.edu>
200 * linespec.c (symtab_from_filename): New function.
201 (decode_line_1): Move code into symtab_from_filename.
203 2002-12-09 Kevin Buettner <kevinb@redhat.com>
205 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
207 2002-12-07 Andrew Cagney <ac131313@redhat.com>
209 * f-valprint.c (info_common_command): Use get_frame_pc.
210 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
211 * ax-gdb.c (agent_command): Ditto.
212 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
213 (rs6000_pop_frame): Ditto.
214 (rs6000_frameless_function_invocation): Ditto.
215 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
216 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
217 * macroscope.c (default_macro_scope): Ditto.
218 * stack.c (print_frame_info_base): Ditto.
219 (print_frame, frame_info, print_frame_label_vars): Ditto.
220 (return_command, func_command, get_frame_language): Ditto.
221 * infcmd.c (finish_command): Ditto.
222 * dummy-frame.c (cached_find_dummy_frame): Ditto.
223 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
224 (break_at_finish_at_depth_command_1): Ditto.
225 (break_at_finish_command_1): Ditto.
226 (until_break_command, get_catch_sals): Ditto.
227 * blockframe.c (func_frame_chain_valid): Ditto.
228 (frameless_look_for_prologue): Ditto.
229 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
231 2002-12-08 Andrew Cagney <ac131313@redhat.com>
233 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
234 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
236 2002-12-08 Andrew Cagney <ac131313@redhat.com>
238 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
240 * gdbarch.h, gdbarch.c: Re-generate.
241 * frame.c (get_prev_frame): Explictly assign prev's pc with value
242 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
244 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
245 declaration to a function returning a CORE_ADDR.
246 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
247 * arch-utils.c (init_frame_pc_noop): Return the PC value.
248 (init_frame_pc_default): Ditto.
249 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
250 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
251 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
252 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
253 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
254 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
256 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
257 to init_frame_pc_noop.
258 (i386_interix_init_frame_pc): Delete function.
259 * z8k-tdep.c (init_frame_pc): Delete function.
260 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
261 (INIT_FRAME_PC_FIRST): Ditto.
262 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
263 (INIT_FRAME_PC_FIRST): Ditto.
264 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
265 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
267 (INIT_FRAME_PC_FIRST): Convert to an expression.
268 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
270 2002-12-08 Andrew Cagney <ac131313@redhat.com>
272 * blockframe.c: Use get_frame_base instead of directly accessing
273 the `struct frame_info' member frame.
274 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
275 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
277 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
279 * Makefile.in (readline_h): Define.
280 (completer.o): Depend on readline_h.
282 (event-top.o): Ditto.
289 (tracepoint.o): Ditto.
292 (tui-hooks.o): Ditto.
295 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
297 More cleanup from import of readline 4.3.
298 * completer.h (complete_line, readline_line_completion_function):
300 (line_completion_function): Removed, not used outside of completer.c.
301 * completer.c (readline_line_completion_function,
302 complete_function, line_completion_function): Use const for first
304 (line_completion_function): Make static.
305 (filename_completer): filename_completion_function is now called
306 rl_filename_completion_function
307 * corelow.c: Include <readline/readline.h>.
313 * top.c (init_main): No need to coerce
314 readline_line_completion_function anymore.
315 * cli/cli-dump.c: Include <readline/readline.h>.
317 2002-12-08 Andrew Cagney <ac131313@redhat.com>
319 * stack.c (frame_info): Use get_prev_frame.
320 * blockframe.c (frame_address_in_block): Ditto.
321 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
322 (rs6000_frameless_function_invocation): Ditto.
323 (rs6000_frame_saved_pc): Ditto.
324 (rs6000_frame_chain): Ditto.
325 * arch-utils.c (init_frame_pc_default): Ditto.
327 2002-12-08 Andrew Cagney <ac131313@redhat.com>
329 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
330 Delete redundant definition.
332 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
334 Import of readline 4.3:
335 * cli/cli-cmds.c: Include readline/tilde.h.
336 * cli/cli-setshow.c: Ditto.
337 * defs.h: Don't declare tilde_expand anymore, since readline
340 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
342 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
343 -Werror on this file.
345 2002-12-07 Andrew Cagney <ac131313@redhat.com>
347 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
349 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
350 * gdbarch.c: Regenerate.
352 2002-12-06 Andrew Cagney <ac131313@redhat.com>
354 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
355 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
356 provide a default value.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * frame.c (get_prev_frame): Update. Check
359 DEPRECATED_INIT_FRAME_PC_FIRST_P.
360 * s390-tdep.c (s390_gdbarch_init): Update.
361 * mips-tdep.c (mips_gdbarch_init): Update.
362 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
363 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
364 * alpha-tdep.c (alpha_gdbarch_init): Update.
366 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
368 * ia64-linux-nat.c: Include gdb_string.h.
369 * alpha-nat.c: Ditto.
370 * ppc-linux-nat.c: Ditto.
371 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
374 2002-12-05 Andrew Cagney <ac131313@redhat.com>
376 * gdbthread.h: Include "frame.h".
377 (struct thread_info): Replace step_frame_address with
379 * inferior.h: Include "frame.h".
380 (step_frame_id): Replace external variable step_frame_address.
381 * gdbthread.h (save_infrun_state): Replace step_frame_address
382 parameter with step_frame_id parameter.
383 (load_infrun_state): Ditto.
384 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
385 * infcmd.c (step_frame_id, step_1, step_once): Update.
386 * thread.c (load_infrun_state, save_infrun_state): Update.
387 * infrun.c (clear_proceed_status, save_inferior_status): Update.
388 (handle_inferior_event, step_over_function): Update.
389 (normal_stop, context_switch, restore_inferior_status): Update.
390 (struct inferior_status): Replace step_frame_address with
393 2002-12-05 David Carlton <carlton@math.stanford.edu>
395 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
396 DW_TAG_member as well as a declaration as being a C++ static data
398 (read_structure_scope): Combine tests for DW_TAG_member and
401 2002-12-05 David Carlton <carlton@math.stanford.edu>
403 * linespec.c (decode_compound): New function.
404 (decode_line_1): Move code into decode_compound.
406 2002-12-05 David Carlton <carlton@math.stanford.edu>
408 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
410 (lookup_symbol_aux): Do the 'field_of_this' check before checking
411 the static block. See PR gdb/804.
413 2002-12-05 David Carlton <carlton@math.stanford.edu>
415 * symtab.c (lookup_symbol_aux_block): New function.
416 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
418 2002-12-05 Andrew Cagney <ac131313@redhat.com>
420 * gdbarch.sh: Dump the predicate function and macro values.
421 (read): Print error on standard error.
422 * gdbarch.c: Regenerate.
424 2002-12-04 Kevin Buettner <kevinb@redhat.com>
426 * Makefile.in (mips_tdep_h): Define.
427 (mips-tdep.o): Add mips_tdep_h to dependency list.
428 * mips-tdep.h: New file.
429 * mips-tdep.c (mips-tdep.h): Include.
430 (enum mips_abi): Move to mips-tdep.h.
431 (mips_abi): New function.
433 2002-12-04 David Carlton <carlton@math.stanford.edu>
435 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
437 2002-12-04 David Carlton <carlton@math.stanford.edu>
439 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
441 (lookup_symbol_aux_minsyms): New function.
443 2002-12-04 J. Brobecker <brobecker@gnat.com>
445 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
447 2002-12-04 J. Brobecker <brobecker@gnat.com>
449 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
450 which is an obsolete macro name.
452 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
454 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
455 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
457 2002-12-03 H.J. Lu (hjl@gnu.org)
459 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
460 (create_breakpoints): Make sure the addr_string field is not
463 2002-12-03 Andrew Cagney <ac131313@redhat.com>
465 * sparc-nat.c (fetch_inferior_registers)
466 (store_inferior_registers): Add comment on problem of LWP vs
469 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
470 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
471 (lin_lwp_store_registers): Remove.
472 (init_lin_lwp_ops): Use fetch_inferior_registers
473 and store_inferior_registers directly.
474 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
475 (store_inferior_registers): Likewise.
478 2002-12-03 Andrew Cagney <ac131313@redhat.com>
480 * frame.h (get_frame_id): Convert to a function.
481 (null_frame_id, frame_id_p): Declare.
482 (frame_id_eq, frame_id_inner): Declare.
483 (frame_id_build): New function.
484 * frame.c (get_frame_id): Update. Use null_frame_id.
485 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
487 (null_frame_id, frame_id_p): Define.
488 (frame_id_eq, frame_id_inner): Define.
489 (frame_id_build): New function.
490 * varobj.c (varobj_create): Update.
491 (varobj_update): Update.
492 * valops.c (value_assign): Update.
493 (new_root_variable): Update.
494 * infrun.c (save_inferior_status): Update.
495 * breakpoint.c (watch_command_1): Update.
497 2002-12-03 J. Brobecker <brobecker@gnat.com>
499 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
502 2002-12-03 Andrew Cagney <cagney@redhat.com>
504 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
507 * PROBLEMS: Mention PR gdb/725.
509 2002-12-03 Andreas Schwab <schwab@suse.de>
511 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
513 2002-12-02 Adam Fedor <fedor@gnu.org>
514 Klee Dienes <kdienes@apple.com>
516 * objc-lang.c (objc_printstr): Add width arg to match
518 (compare_selectors): Add 'const' to arg types.
519 (compare_classes): Likewise.
520 (find_imps): Cast msym pointer to avoid compiler warning.
521 (print_object_command): Validate the address before
522 passing it to the print routine.
523 (find_objc_msgcall_submethod): Change function argument to
525 * objc-lang.h: Add 'extern' to all function declarations.
526 (value_nsstring): Add declaration.
528 2002-12-02 J. Brobecker <brobecker@gnat.com>
530 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
531 Fixes a build failure on HP/UX.
533 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
535 (hpread_has_name): Advance declaration to avoid a compilation warning.
536 (pst_syms_count): Add missing variable type. By change, the compiler
537 was defaulting to int, which seems a good choice. Fixes a compilation
539 (pst_syms_size): Likewise.
541 2002-12-02 J. Brobecker <brobecker@gnat.com>
543 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
544 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
545 later to set the proper gdbarch methods depending on the osabi.
546 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
548 2002-12-02 J. Brobecker <brobecker@gnat.com>
550 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
551 * osabi.c (gdb_osabi_name): Add strings images for the two new
553 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
555 2002-12-02 Andrew Cagney <ac131313@redhat.com>
557 * MAINTAINERS (Java): Global maintainers are responible for Java.
558 (Past Maintainers): Mention both Anthony Green and Per Bothner as
559 part Java maintainers.
561 2002-12-02 J. Brobecker <brobecker@gnat.com>
563 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
564 Fixes a compilation failure on AiX.
566 2002-12-02 J. Brobecker <brobecker@gnat.com>
568 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
569 why aix-thread.o is not listed.
571 2002-12-01 Andrew Cagney <ac131313@redhat.com>
573 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
574 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
575 * gdbarch.h, gdbarch.c: Re-generate.
576 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
577 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
578 * config/pa/tm-hppa.h, frame.h: Update.
579 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
580 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
581 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
582 * cris-tdep.c, alpha-tdep.c: Update.
583 * frame.c (set_unwind_by_pc, create_new_frame): Use either
584 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
585 (get_prev_frame): Ditto.
587 2002-11-30 Andrew Cagney <cagney@redhat.com>
589 * exec.c (xfer_memory): Replace boolean with int.
590 * p-exp.y: Use 0 instead of false.
591 * corelow.c (gdb_check_format): Change return type to int from
593 * utils.c: Don't include <curses.h> or <term.h> first.
595 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
597 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
598 (m68hc11_register_byte): Remove.
599 (m68hc11_gdbarch_init): Don't set the above.
601 2002-11-29 Andrew Cagney <cagney@redhat.com>
603 * remote-mips.c (mips_initialize): Force a selected frame rebuild
604 by calling get_selected_frame.
605 * ocd.c (ocd_start_remote): Use get_selected frame instead of
606 set_current_frame, create_new_frame, select_frame and
608 * remote-e7000.c (e7000_start_remote): Ditto.
609 * remote-mips.c (common_open): Ditto
610 * remote-rdp.c (remote_rdp_open): Ditto.
612 2002-11-29 Andreas Schwab <schwab@suse.de>
614 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
615 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
616 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
617 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
618 read_memory_unsigned_integer instead of read_memory_integer when
619 dealing with addresses and instruction opcodes.
620 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
621 (m68k_linux_frame_saved_pc): Likewise.
623 2002-11-29 Andrew Cagney <ac131313@redhat.com>
625 * stack.c (selected_frame, select_frame): Move from here ...
626 * frame.c (selected_frame, select_frame): ... to here. Include
628 * Makefile.in (frame.o): Update dependencies.
629 * frame.c (get_selected_frame): New function.
630 * frame.h (get_selected_frame): Declare.
631 (deprecated_selected_frame): Rename selected_frame.
632 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
633 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
634 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
635 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
636 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
637 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
638 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
639 * z8k-tdep.c, cli/cli-cmds.c: Update.
641 2002-11-29 Andrew Cagney <ac131313@redhat.com>
643 * frame.h (get_selected_block): Add comments.
645 2002-11-28 Andrew Cagney <ac131313@redhat.com>
647 * frame.c (pc_notcurrent): New function.
648 (find_frame_sal): New function.
649 * frame.h (find_frame_sal): Declare.
650 (struct symtab_and_line): Add opaque declaration.
651 * stack.c (print_frame_info_base): Use find_frame_sal instead of
654 * ada-lang.c (find_printable_frame): Ditto.
656 2002-11-28 J. Brobecker <brobecker@gnat.com>
658 * configure.in: Check that the pthdebug library is recent enough
659 before enabling thread support on native AiX.
660 * configure: Regenerate.
662 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
663 from the list of object files as it is now appended by configure
664 if thread support is enabled.
665 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
666 if thread support is enabled.
668 2002-11-28 Andrew Cagney <cagney@redhat.com>
670 * stack.c (get_selected_block): In-line get_current_block.
671 * frame.h (get_current_block): Delete declaration.
672 * blockframe.c (get_current_block): Delete function.
674 2002-11-28 Andrew Cagney <ac131313@redhat.com>
676 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
677 USE_GENERIC_DUMMY_FRAMES.
678 * gdbarch.h, gdbarch.c: Regenerate.
679 * valops.c, frame.c: Update.
680 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
681 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
682 * config/pa/tm-hppa.h, blockframe.c: Update.
683 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
684 * m68k-tdep.c, alpha-tdep.c: Ditto.
686 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
687 * mips-tdep.c: Ditto.
689 2002-11-27 Andrew Cagney <ac131313@redhat.com>
691 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
692 (USE_GENERIC_DUMMY_FRAMES): Default to true.
693 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
694 * gdbarch.c, gdbarch.h: Re-generate.
695 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
696 (CALL_DUMMY_LOCATION): Delete macro definition.
697 (PC_IN_CALL_DUMMY): Delete macro definitions.
699 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
700 default is already generic_pc_in_call_dummy.
701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
702 * v850-tdep.c (v850_gdbarch_init): Ditto.
703 * sh-tdep.c (sh_gdbarch_init): Ditto.
704 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
705 * mips-tdep.c (mips_gdbarch_init): Ditto.
706 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
708 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
709 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
711 * avr-tdep.c (avr_gdbarch_init): Ditto.
713 * arm-tdep.c (arm_gdbarch_init): Do not set
714 use_generic_dummy_frames, default is already 1.
715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
716 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
717 * v850-tdep.c (v850_gdbarch_init): Ditto.
718 * sh-tdep.c (sh_gdbarch_init): Ditto.
719 * s390-tdep.c (s390_gdbarch_init): Ditto.
720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
721 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
722 * mips-tdep.c (mips_gdbarch_init): Ditto.
723 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
725 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
726 * i386-tdep.c (i386_gdbarch_init): Ditto.
727 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
728 * frv-tdep.c (frv_gdbarch_init): Ditto.
729 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
730 * cris-tdep.c (cris_gdbarch_init): Ditto.
731 * avr-tdep.c (avr_gdbarch_init): Ditto.
733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
734 call_dummy_location, default is already AT_ENTRY_POINT.
735 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
736 * v850-tdep.c (v850_gdbarch_init): Ditto.
737 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
738 * sh-tdep.c (sh_gdbarch_init): Ditto.
739 * s390-tdep.c (s390_gdbarch_init): Ditto.
740 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
741 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
742 * mips-tdep.c (mips_gdbarch_init): Ditto.
743 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
745 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
746 * i386-tdep.c (i386_gdbarch_init): Ditto.
747 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
748 * frv-tdep.c (frv_gdbarch_init): Ditto.
749 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
750 * cris-tdep.c (cris_gdbarch_init): Ditto.
751 * avr-tdep.c (avr_gdbarch_init): Ditto.
752 * arm-tdep.c (arm_gdbarch_init): Ditto.
753 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
755 2002-11-28 Andrew Cagney <cagney@redhat.com>
757 * frame.h: Update comments on set_current_frame, create_new_frame,
758 flush_cached_frames, reinit_frame_cache, select_frame and
761 2002-11-27 Andrew Cagney <cagney@redhat.com>
763 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
764 deprecated pc_in_call_dummy function.
765 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
766 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
767 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
768 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
769 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
771 2002-11-26 Martin M. Hunt <hunt@redhat.com>
773 * Makefile.in: Remove Tix dependencies.
774 * acinclude.m4: Ditto.
776 * configure.in: Ditto.
777 * configure: Regenerated.
779 2002-11-26 Andrew Cagney <ac131313@redhat.com>
781 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
782 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
783 * gdbarch.c: Re-generate.
785 2002-11-26 Andrew Cagney <ac131313@redhat.com>
787 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
788 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
789 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
790 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
791 pc_in_call_dummy_at_entry_point.
792 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
793 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
794 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
795 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
796 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
797 pc_in_call_dummy_on_stack.
798 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
799 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
800 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
801 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
802 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
804 2002-11-26 Andrew Cagney <ac131313@redhat.com>
806 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
807 pc_in_call_dummy_before_text_end
808 (deprecated_pc_in_call_dummy_after_text_end): Rename
809 pc_in_call_dummy_after_text_end.
810 (deprecated_pc_in_call_dummy_on_stack): Rename
811 pc_in_call_dummy_on_stack.
812 (deprecated_pc_in_call_dummy_at_entry_point): Rename
813 pc_in_call_dummy_at_entry_point.
814 * m68k-tdep.c (m68k_gdbarch_init): Update.
815 * s390-tdep.c (s390_gdbarch_init): Update.
816 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
817 * vax-tdep.c (vax_gdbarch_init): Update.
818 * sparc-tdep.c (sparc_gdbarch_init): Update.
819 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
820 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
821 * i386-tdep.c (i386_gdbarch_init): Update.
822 * frv-tdep.c (frv_gdbarch_init): Update.
823 * cris-tdep.c (cris_gdbarch_init): Update.
824 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
825 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
826 (deprecated_pc_in_call_dummy_after_text_end)
827 (deprecated_pc_in_call_dummy_on_stack)
828 (deprecated_pc_in_call_dummy_at_entry_point): Update.
829 * alpha-tdep.c (alpha_gdbarch_init): Update.
831 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
833 * acconfig.h (HAVE_PREAD64): Add.
834 * configure.in: Check for pread64.
835 * config.in: Regenerated.
836 * configure: Regenerated.
837 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
838 * linux-proc.c (linux_proc_xfer_memory): New function.
839 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
841 2002-11-25 David Carlton <carlton@math.stanford.edu>
843 * dwarf2read.c (scan_partial_symbols): Descend into namespace
846 2002-11-25 Andrew Cagney <ac131313@redhat.com>
848 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
849 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
851 2002-11-25 Jim Blandy <jimb@redhat.com>
853 * symfile.c (init_objfile_sect_indices): New function.
854 (default_symfile_offsets): Move the section-index-initializing
855 stuff into init_objfile_sect_indices, and call that.
857 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
858 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
860 * symfile.c (syms_from_objfile): Adjust indentation.
862 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
863 || info_verbose isn't true.
865 2002-11-24 Andrew Cagney <ac131313@redhat.com>
867 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
868 default to get_frame_base.
869 * gdbarch.h, gdbarch.c: Regenerate.
870 * arch-utils.c (default_frame_address): Delete function.
871 * arch-utils.h (default_frame_address): Delete declaration
873 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
875 * varobj.c (find_frame_addr_in_frame_chain):
876 Use get_frame_base instead of FRAME_FP,
879 2002-11-19 Andrew Cagney <ac131313@redhat.com>
881 * frame.h (FRAME_FP): Delete macro.
882 (get_frame_base): New function declaration.
883 * frame.c (get_frame_base): New function.
884 (get_frame_id): Use ->frame.
885 (frame_find_by_id): Rewrite to use get_frame_id.
886 * blockframe.c: Use get_frame_base instead of FRAME_FP.
887 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
888 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
889 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
890 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
891 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
892 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
894 2002-11-24 Andrew Cagney <ac131313@redhat.com>
896 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
898 2002-11-24 Andrew Cagney <ac131313@redhat.com>
900 * frame.c (set_unwind_by_pc): Revert change below, use
902 (get_prev_frame): Ditto.
904 2002-11-24 Andrew Cagney <ac131313@redhat.com>
906 * dummy-frame.c (pc_in_dummy_frame): New function.
907 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
908 (find_dummy_frame): Update comment.
909 (generic_pop_current_frame): Use get_frame_type.
910 * dummy-frame.h (pc_in_dummy_frame): Declare.
911 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
912 (create_new_frame): Use pc_in_dummy_frame.
913 (get_prev_frame): Use pc_in_dummy_frame.
914 (frame_saved_regs_register_unwind): Use get_prev_frame.
915 (deprecated_generic_get_saved_register): Use get_prev_frame.
917 2002-11-23 Andrew Cagney <ac131313@redhat.com>
919 * blockframe.c (find_frame_addr_in_frame_chain): Move function
921 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
922 (varobj_create): Note that frame ID should be used.
923 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
925 2002-11-23 Andrew Cagney <ac131313@redhat.com>
927 * breakpoint.c: Include "gdb_assert.h".
928 (deprecated_frame_in_dummy): Assert that generic dummy frames are
930 * Makefile.in (breakpoint.o): Update dependencies.
931 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
932 deprecated_frame_in_dummy.
933 * stack.c (print_frame_info_base): Ditto.
935 (print_frame_info_base): Ditto. Delete dead code.
937 2002-11-23 Andreas Schwab <schwab@suse.de>
939 * Makefile.in (m68k_tdep_h): Define.
940 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
941 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
942 * m68k-tdep.c: Move register number enum ...
943 * m68k-tdep.h: ... to this new file and rename the constants from
944 E_* to M68K_*. All uses changed.
945 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
946 * abug-rom.c: Include "m68k-tdep.h". Use
947 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
948 * cpu32bug-rom.c: Likewise.
949 * dbug-rom.c: Likewise.
950 * m68k-tdep.c: Likewise.
951 * m68klinux-nat.c: Likewise.
952 * remote-est.c: Likewise.
953 * rom68k-rom.c: Likewise.
954 * config/m68k/tm-linux.h: Likewise.
956 2002-11-23 Andrew Cagney <ac131313@redhat.com>
958 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
959 dummy frame initialization code.
960 * mips-tdep.c (mips_gdbarch_init): Ditto.
962 2002-11-22 Christopher Faylor <cgf@redhat.com>
964 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
967 2002-11-22 Andrew Cagney <ac131313@redhat.com>
969 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
970 to default_frame_address.
971 * gdbarch.h, gdbarch.c: Re-generate.
973 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
974 or frame_locals_address to default_frame_address.
975 * m68k-tdep.c (m68k_gdbarch_init): Update.
976 * i386-tdep.c (i386_gdbarch_init): Update.
977 * frv-tdep.c (frv_gdbarch_init): Update.
978 * sh-tdep.c (sh_gdbarch_init): Update.
979 * v850-tdep.c (v850_gdbarch_init): Update.
980 * sparc-tdep.c (sparc_gdbarch_init): Update.
981 * mips-tdep.c (mips_gdbarch_init): Update.
982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
983 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
984 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
986 * cris-tdep.c (cris_frame_args_address): Delete function.
987 (cris_frame_locals_address): Delete function.
988 (cris_gdbarch_init): Do not set frame_args_address or
989 frame_locals_address.
991 2002-11-22 Michael Snyder <msnyder@redhat.com>
993 * thread-db.c (thread_db_load): Tell the user what's going on
994 if dlopen fails on libthread_db.
996 2002-11-23 Andreas Schwab <schwab@suse.de>
998 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
999 invariant return values.
1001 2002-11-22 Andreas Schwab <schwab@suse.de>
1003 * valops.c (value_slice): Move declaration of `offset' to avoid
1006 2002-11-22 Christopher Faylor <cgf@redhat.com>
1008 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1009 (struct so_stuff): Add end_addr field.
1010 (register_loaded_dll): Calculate and store end address of loaded dll.
1011 (solib_address): New function.
1012 (child_solib_loaded_library_pathname): Pass carefully constructed
1013 section info to safe_symbol_file_add rather than ignoring it.
1014 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1016 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1017 (child_create_inferior): Fix a compiler warning.
1018 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1019 (solib_address): Declare new function.
1021 2002-11-22 Andreas Schwab <schwab@suse.de>
1023 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1026 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1028 * maint.c (_initialize_maint_cmds): Fix typo. From
1029 Francesco Potorti` <pot@gnu.org>.
1031 2002-11-21 Andrew Cagney <cagney@redhat.com>
1033 * mips-tdep.c (mips_dump_tdep): Delete references to
1034 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1035 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1036 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1037 * printcmd.c (build_address_symbolic): Delete calls to
1038 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1039 (address_info): Ditto.
1042 2002-11-19 Klee Dienes <kdienes@apple.com>
1043 Adam Fedor <fedor@gnu.org>
1045 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1046 the ability to explicitly specify the quote characters and word
1047 break characters; if NULL is specified for either, use the old
1048 behavior of using the characters used by the completer.
1049 (skip_chars): New function. Convenience wrapper around
1050 skip_quoted_chars to provide the original skip_chars behavior.
1051 * completer.h (skip_quoted_chars): Add prototype.
1053 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1055 Problems reported by Paul Eggert.
1056 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1058 2002-11-19 Andreas Schwab <schwab@suse.de>
1060 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1061 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1062 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1063 (m68k_linux_frame_saved_pc): Move to ...
1064 * m68klinux-tdep.c: ... here. New file.
1065 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1066 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1068 2002-11-19 Adam Fedor <fedor@gnu.org>
1070 * objc-exp.y: Revert to old skip_quoted usage.
1072 2002-11-19 Adam Fedor <fedor@gnu.org>
1074 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1075 (objc_lang_h): Define.
1076 (YYFILES): Add objc-exp.tab.c.
1077 (local-maintainer-clean): Remove objc-exp.tab.c.
1078 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1080 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1082 * p-exp.y (typecast rule): Add automatic dereference of
1083 pascal classes if needed.
1084 (THIS): Set current_type.
1085 Automatically dereference pascal classes.
1086 (typebase rule): Add ^typebase recognition.
1088 2002-11-18 Adam Fedor <fedor@gnu.org>
1090 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1091 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1092 (op_name): Handle OP_OBJC_SELF.
1093 * Makefile.in (expprint.o): Add additional depends.
1095 2002-11-18 Adam Fedor <fedor@gnu.org>
1097 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1098 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1099 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1100 * objc-exp.y: Likewise.
1102 2002-11-18 Adam Fedor <fedor@gnu.org>
1104 * gdb/parser-defs.h: (struct objc_class_str): New structure
1105 for parsing ObjC classes.
1107 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1109 * stack.c (frame_relative_level): Copy function from here ...
1110 * frame.c (frame_relative_level): ...to here.
1112 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1114 * frame.h (enum frame_type): Define.
1115 (get_frame_type): Declare.
1116 (struct frame_info): Add field `type'. Delete field
1117 signal_handler_caller.
1118 (deprecated_set_frame_signal_handler_caller): Declare.
1119 * frame.c (get_frame_type): New function.
1120 (deprecated_set_frame_type): New function.
1121 (create_new_frame): Set the frame's type.
1122 (get_prev_frame): Similar.
1123 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1124 * s390-tdep.c: Ditto.
1125 * m68klinux-nat.c: Ditto.
1126 * ns32k-tdep.c: Ditto.
1127 * x86-64-linux-tdep.c: Ditto.
1128 * vax-tdep.c: Ditto.
1129 * rs6000-tdep.c: Ditto.
1130 * ppc-linux-tdep.c: Ditto.
1131 * i386-interix-tdep.c: Ditto.
1132 * mips-tdep.c: Ditto.
1133 * m68k-tdep.c: Ditto.
1134 * hppa-tdep.c: Ditto.
1135 * ia64-tdep.c: Ditto.
1136 * cris-tdep.c: Ditto.
1137 * arm-tdep.c: Ditto.
1138 * alpha-tdep.c: Ditto.
1139 * i386-tdep.c: Ditto.
1141 * ada-lang.c: Ditto.
1142 * blockframe.c: Update.
1143 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1144 deprecated_set_frame_type instead of signal_handler_caller.
1145 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1146 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1147 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1149 2002-11-18 Klee Dienes <kdienes@apple.com>
1151 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1153 2002-11-18 Klee Dienes <kdienes@apple.com>
1155 * buildsym.c (pop_context): Add comment.
1157 2002-11-18 Klee Dienes <kdienes@apple.com>
1159 * buildsym.h (pop_context): Convert to function, defined in
1161 * buildsym.c: Include gdb_assert.h.
1162 (pop_context): Implement as C function. Add check for stack
1164 * dbxread.c (process_one_symbol): Complain and stop processing
1165 that symbol if we are already at the top of the context stack for
1166 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1167 when processing N_RBRAC.
1169 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1171 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1173 (struct target_waitstatus): Add opaque definition.
1174 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1175 * exec.c (init_exec_ops): Likewise.
1176 * fork-child.c (clone_and_follow_inferior): Remove.
1177 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1178 * inferior.h (clone_and_follow_inferior): Remove prototype.
1179 * infrun.c (follow_fork_mode_both): Remove.
1180 (follow_fork_mode_kind_names): Remove commented out "both".
1181 (follow_inferior_fork): Remove follow_fork_mode_both support.
1182 * inftarg.c (child_clone_and_follow_inferior): Remove.
1183 (child_post_follow_inferior_by_clone): Remove.
1184 (init_child_ops): Don't set to_clone_and_follow_inferior
1185 or to_post_follow_inferior_by_clone.
1186 * target.c (default_clone_and_follow_inferior): Remove.
1187 (cleanup_target): Don't set to_clone_and_follow_inferior
1188 or to_post_follow_inferior_by_clone.
1189 (find_default_clone_and_follow_inferior): Remove.
1190 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1191 (debug_to_clone_and_follow_inferior): Remove.
1192 (debug_to_post_follow_inferior_by_clone): Remove.
1193 (setup_target_debug): Don't set to_clone_and_follow_inferior
1194 or to_post_follow_inferior_by_clone.
1195 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1196 and to_post_follow_inferior_by_clone.
1197 (child_clone_and_follow_inferior): Remove prototype.
1198 (child_post_follow_inferior_by_clone): Remove prototype.
1199 (target_clone_and_follow_inferior): Remove macro.
1200 (target_post_follow_inferior_by_clone): Remove macro.
1201 (find_default_clone_and_follow_inferior): Remove prototype.
1203 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1205 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1206 inferior_has_vforked, and inferior_has_execd instead of
1207 target_has_forked, target_has_vforked, and target_has_execd.
1208 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1209 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1210 (CHILD_WAIT): Define.
1211 (child_wait): Add prototype.
1212 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1214 (hpux_has_vforked): Likewise, from child_has_vforked.
1215 (hpux_has_execd): Likewise, from child_has_execd.
1216 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1217 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1218 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1219 and hpux_has_syscall_event instead of the target hooks.
1220 * infrun.c (inferior_has_forked, inferior_has_vforked)
1221 (inferior_has_execd): New functions.
1222 * inftarg.c (not_same_real_pid): Remove.
1223 (child_wait): Remove references to not_same_real_pid,
1224 target_has_forked, target_has_vforked, target_has_execd,
1225 and target_has_syscall_event.
1226 (child_has_forked, child_has_vforked, child_has_execd)
1227 (child_has_syscall_event): Remove.
1228 (init_child_ops): Remove references to child_has_forked,
1229 child_has_vforked, child_has_execd, and child_has_syscall_event.
1230 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1231 (hpux_has_vforked): Likewise, from child_has_vforked.
1232 (hpux_has_execd): Likewise, from child_has_execd.
1233 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1234 * target.c (cleanup_target): Remove references to
1235 to_has_forked, to_has_vforked, to_has_execd, and
1236 to_has_syscall_event.
1237 (update_current_target): Likewise.
1238 (setup_target_debug): Likewise.
1239 (debug_to_has_forked): Remove.
1240 (debug_to_has_vforked): Remove.
1241 (debug_to_has_execd): Remove.
1242 (debug_to_has_syscall_event): Remove.
1243 * target.h (struct target_ops): Remove to_has_forked.
1244 to_has_vforked, to_has_execd, and to_has_syscall_event.
1245 (child_has_forked, child_has_vforked, child_has_execd)
1246 (child_has_syscall_event): Remove prototypes.
1247 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1249 (target_has_forked, target_has_vforked, target_has_execd)
1250 (target_has_syscall_event): Remove macros.
1252 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1254 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1255 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1256 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1257 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1258 * target.c (cleanup_target): Remove reference to
1259 to_can_follow_vfork_prior_to_exec.
1260 (update_current_target): Likewise.
1261 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1262 (setup_target_debug): Remove reference to
1263 to_can_follow_vfork_prior_to_exec.
1264 * target.h (struct target_ops): Remove
1265 to_can_follow_vfork_prior_to_exec.
1266 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1267 (target_can_follow_vfork_prior_to_exec): Remove definition.
1268 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1270 * infrun.c (follow_vfork_when_exec): Remove.
1271 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1272 (follow_exec): Likewise.
1273 (handle_inferior_event): Likewise.
1274 (keep_going): Likewise.
1276 2002-11-15 Andrew Cagney <cagney@redhat.com>
1278 * frame.c (generic_unwind_get_saved_register): Make static.
1279 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1280 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1281 defaults to generic_unwind_get_saved_register.
1282 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1283 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1284 * frv-tdep.c (frv_gdbarch_init): Ditto.
1285 * i386-tdep.c (i386_gdbarch_init): Ditto.
1286 * s390-tdep.c (s390_gdbarch_init): Ditto.
1287 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1288 * v850-tdep.c (v850_gdbarch_init): Ditto.
1289 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1290 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1291 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1293 2002-11-15 Andrew Cagney <cagney@redhat.com>
1295 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1298 2002-11-15 Andrew Cagney <cagney@redhat.com>
1300 * frame.h (sigtramp_saved_pc): Delete declaration.
1301 * blockframe.c (sigtramp_saved_pc): Delete function.
1302 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1303 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1304 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1305 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1307 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1309 * frame.c (frame_pc_unwind): New function.
1310 (frame_saved_regs_pc_unwind): New function.
1311 (frame_register_unwind): Pass unwind_cache instead of
1312 register_unwind_cache.
1313 (set_unwind_by_pc): Add unwind_pc parameter, set.
1314 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1315 (get_prev_frame): Ditto.
1316 * frame.h (frame_pc_unwind_ftype): Declare.
1317 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1318 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1319 (frame_pc_unwind): Declare.
1320 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1321 (struct dummy_frame): Add comment mentioning that values are for
1323 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1324 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1325 (generic_file_frame_chain_valid): Ditto.
1326 * stack.c (frame_info): Ditto.
1328 2002-11-15 David Carlton <carlton@math.stanford.edu>
1330 * linespec.c (locate_first_half): New function.
1331 (decode_line_1): Move code into locate_first_half.
1333 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1335 * complaints.h: Add comment explaining how to eliminate a
1336 deprecated_complain call.
1337 * complaints.h: Fix spelling errors.
1339 2002-11-15 David Carlton <carlton@math.stanford.edu>
1341 * printcmd.c: Remove #include "disasm.h".
1343 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1345 * frame.h: Move the most relevant interface functions to the start
1348 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1350 * regcache.h (deprecated_registers): Rename registers.
1351 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1352 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1353 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1354 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1355 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1356 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1357 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1358 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1359 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1360 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1361 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1362 * v850ice.c: Update.
1364 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1366 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1369 2002-11-13 Andrew Cagney <cagney@redhat.com>
1371 * regcache.h (deprecated_read_register_bytes): Rename
1372 read_register_bytes.
1373 (deprecated_write_register_bytes): Rename write_register_bytes.
1374 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1375 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1376 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1377 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1378 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1379 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1380 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1381 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1382 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1383 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1384 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1385 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1386 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1387 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1389 2002-11-13 Jim Blandy <jimb@redhat.com>
1391 * findvar.c (read_var_value): Doc fix.
1393 2002-11-13 Andrew Cagney <cagney@redhat.com>
1395 * regcache.c (struct regcache): Replace passthough_p with
1397 (regcache_xmalloc): Initialize readonly_p.
1398 (build_regcache): Initialize readonly_p.
1399 (regcache_save): New function.
1400 (regcache_restore): New function.
1401 (regcache_cpy): Re-implement using regcache_save and
1403 (regcache_raw_read): Update.
1404 (regcache_cooked_read): When a read-only cache, checked for cached
1405 pseudo register values.
1406 (regcache_raw_write): Assert that the cache is not read-only.
1407 Remove code handling a non-passthrough cache.
1408 * regcache.h (regcache_save): Declare.
1409 (regcache_restore): Declare.
1411 2002-11-13 Andrew Cagney <cagney@redhat.com>
1413 * regcache.c (struct regcache_descr): Add fields
1414 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1415 (init_legacy_regcache_descr): Compute the size of a cooked
1416 register cache and then assign that to sizeof_raw_registers. Set
1417 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1418 (init_legacy_regcache_descr): Ditto.
1420 2002-11-13 Andrew Cagney <cagney@redhat.com>
1422 * regcache.c (register_buffer): Move to near start of file, update
1424 (regcache_raw_read): Use.
1425 (regcache_raw_write): Use.
1426 (struct regcache): Rename raw_registers to registers and
1427 raw_register_valid_p to register_valid_p.
1428 (regcache_xmalloc): Update.
1429 (regcache_xfree): Update.
1430 (register_buffer): Update.
1431 (regcache_cpy): Update.
1432 (regcache_cpy_no_passthrough): Update.
1433 (regcache_valid_p): Update.
1434 (deprecated_grub_regcache_for_registers): Update.
1435 (deprecated_grub_regcache_for_register_valid): Update.
1436 (set_register_cached): Update.
1437 (regcache_raw_write): Update.
1439 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1441 * p-exp.y (name_not_typename): Use copy_name to
1442 set current_type variable for fields of THIS.
1444 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1446 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1447 * monitor.c (init_base_monitor_ops): Likewise.
1448 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1449 * remote-array.c (init_array_ops): Likewise.
1450 * remote-e7000.c (init_e7000_ops): Likewise.
1451 * remote-es.c (init_es1800_ops): Likewise.
1452 (init_es1800_child_ops): Likewise.
1453 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1454 * remote-sim.c (init_gdbsim_ops): Likewise.
1455 * remote-st.c (init_st2000_ops): Likewise.
1456 * sol-thread.c (init_sol_core_ops): Likewise.
1457 (init_sol_thread_ops): Likewise.
1458 * v850ice.c (init_850ice_ops): Likewise.
1459 * win32-nat.c (init_child_ops): Likewise.
1460 * wince.c (init_child_ops): Likewise.
1462 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1464 * utils.c (gdb_realpath): Make rp a constant pointer.
1466 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1468 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1469 a constant buffer; cannonicalize_file_name(); realpath() with a
1470 pathconf() defined buffer, xstrdup().
1472 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1474 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1475 to hang2.C; hang3.c to hang3.C.
1477 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1479 * findvar.c (read_var_value): Reenable TLS code.
1481 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1482 Jim Blandy <jimb@redhat.com>
1484 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1485 * target.c (update_current_target): Add
1486 to_get_thread_local_address.
1487 * target.h (to_get_thread_local_address): Export.
1488 (target_get_thread_local_address): Define.
1489 (target_get_thread_local_address_p): Define.
1490 * thread-db.c: Include solib-svr4.h.
1491 (td_thr_tls_get_addr_p): Define.
1492 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1493 (thread_db_get_thread_local_address): New function.
1494 (init_thread_db_ops): Initialize to_get_thread_local_address.
1495 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1496 * configure: Regenerate.
1497 * config.in: Regenerate.
1499 2002-11-11 David Carlton <carlton@math.stanford.edu>
1501 * linespec.c (set_flags): New function.
1502 (decode_line_1): Move code into set_flags.
1504 2002-11-11 David Carlton <carlton@math.stanford.edu>
1506 * linespec.c (decode_line_1): Move chunks of code to separate
1508 (initialize_defaults): New function.
1509 (decode_indirect): New function.
1511 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1513 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1514 instead of void_code_ptr.
1515 (sigtramp_saved_pc): Ditto.
1517 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1520 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1522 * gdbtypes.h (struct main_type): Move artificial flag out of
1523 loc. New member of ``struct field'' named static_kind. Reduce
1524 overloaded meaning of bitsize.
1525 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1526 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1527 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1529 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1531 (template_to_fixed_record_type, template_to_static_fixed_type)
1532 (to_record_with_fixed_variant_part): Likewise.
1533 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1534 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1535 * dwarfread.c (struct_type, enum_type): Likewise.
1536 * hpread.c (hpread_read_enum_type)
1537 (hpread_read_function_type, hpread_read_doc_function_type)
1538 (hpread_read_struct_type): Likewise.
1539 * mdebugread.c (parse_symbol): Likewise.
1541 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1543 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1544 * stack.c (print_frame_info_base): Update.
1545 (print_frame_info_base, frame_info): Update.
1546 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1547 (sparc_frame_saved_pc): Update.
1548 * ada-lang.c (find_printable_frame): Update.
1549 * breakpoint.c (deprecated_frame_in_dummy): Update.
1551 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1553 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1555 (regmap): Extend to cover all registers.
1556 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1557 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1559 (fetch_register, sore_register): Simplify.
1560 (old_fetch_inferior_registers, old_store_inferior_registers):
1562 (cannot_fetch_register, cannot_store_register): Change
1563 implementation to use regmap array to decide which registers
1564 cannot be fetched/stored. This removes $orig_eax from the
1565 registers that cannot be fetched/stored.
1566 (fetch_inferior_registers): Call fetch_register directly instead
1567 of calling old_fetch_inferior_registers.
1568 (store_inferior_registers): Call store_register directly instead
1569 of calling old_store_inferior_registers.
1570 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1571 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1572 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1574 2002-11-09 Klee Dienes <kdienes@apple.com>
1576 * i387-tdep.c (i387_supply_register): When called with NULL as a
1577 buffer, mark the register as not provided (to mirror the behavior
1578 of supply_register).
1579 (i387_supply_fxsave): Ditto.
1580 (i387_supply_fsave): Ditto (inherits the behavior from
1581 i387_supply_register).
1583 2002-11-09 Klee Dienes <kdienes@apple.com>
1585 * blockframe.c (sigtramp_saved_pc): Use
1586 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1587 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1588 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1590 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1592 * frame.c (get_prev_frame): Test prev_p to identify a previously
1593 unwound frame. Initialize prev_p.
1594 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1597 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1599 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1600 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1601 more comments. Zap dead code.
1603 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1605 * infcmd.c (print_vector_info, print_float_info): Move code that
1606 checks whether the target has any registers and whether there is a
1607 selected frame up, such that it is also used if a target provides
1608 multi-arch definitions of these functions.
1610 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1612 * Makefile.in (DESTDIR): Define.
1613 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1616 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1617 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1619 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1621 * i386-linux-tdep.c: Include "reggroups.h".
1622 (i386_linux_register_reggroup_p): New function.
1623 (i386_linux_init_abi): Set register_reggroup_p to
1624 i386_linux_register_reggroup_p.
1625 * i386-tdep.h (i386_register_reggroup_p): Declare.
1626 * i386-tdep.c: Include "reggroups.h".
1627 (i386_init_reggroups): New function.
1628 (i386_add_reggroups): New function.
1629 (i386_register_reggroup_p): New function.
1630 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1631 (_initialize_i386_tdep): Call i386_init_reggroups.
1632 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1635 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1637 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1638 request that's available in *BSD.
1640 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1642 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1645 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1647 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1648 * dummy-frame.c (find_dummy_frame): Rename
1649 generic_find_dummy_frame, make static. Return the dummy frame
1650 instead of the regcache.
1651 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1652 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1653 (dummy_frame_register_unwind): Rename
1654 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1655 * dummy-frame.h (dummy_frame_register_unwind): Rename
1656 generic_call_dummy_register_unwind.
1658 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1660 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1661 except the inclusion of "i386/tm-i386.h", to...
1662 * config/i386/nm-i386v42mp.h: ...here.
1663 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1665 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1667 * Makefile.in (frame.o): Update dependencies.
1668 * blockframe.c (current_frame, frame_obstack_alloc)
1669 (frame_saved_regs_zalloc, get_current_frame)
1670 (set_current_frame, create_new_frame)
1671 (set_unwind_by_pc, get_next_frame)
1672 (flush_cached_frames, reinit_frame_cache)
1673 (frame_saved_regs_register_unwind)
1674 (deprecated_generic_get_saved_register)
1675 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1676 (_initialize_blockframe): Move frame code from here...
1677 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1678 "annotate.h" and "dummy-frame.h".
1679 (_initialize_frame): New function.
1681 2002-11-08 Jim Blandy <jimb@redhat.com>
1683 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1684 when we finish a function a context.
1685 * buildsym.h (outermost_context_p): New macro.
1686 (Bug analyzed by David Edelsohn.)
1688 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1690 * blockframe.c: Include "dummy-frame.h".
1691 (struct dummy_frame, dummy_frame_stack)
1692 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1693 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1694 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1695 (generic_save_call_dummy_addr, generic_pop_current_frame)
1696 (generic_pop_dummy_frame, generic_fix_call_dummy)
1697 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1698 dummy frame code from here...
1699 * dummy-frame.c: ...to here. New file.
1700 * dummy-frame.h: New file.
1701 (generic_call_dummy_register_unwind): Declare.
1702 (generic_find_dummy_frame): Declare.
1703 * Makefile.in (SFILES): Add dummy-frame.c.
1704 (dummy-frame.o): Specify dependencies.
1705 (dummy_frame_h): Define.
1706 (COMMON_OBS): Add dummy-frame.o.
1707 (blockframe.o): Update dependencies.
1709 2002-11-08 Jim Blandy <jimb@redhat.com>
1711 * dwarf2read.c (read_func_scope): Restore local_symbols and
1712 param_symbols after we finish the function context. (Based on a
1713 patch from David Edelsohn.)
1715 2002-11-08 David Carlton <carlton@math.stanford.edu>
1717 * linespec.c (symbol_found): New function.
1718 (minsym_found): New function.
1719 (decode_line_1): Separate out some code into separate functions.
1721 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1723 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1724 the benefit of the interix target.
1725 * i386-tdep.h (i386_frameless_signal_p): Declare.
1727 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1729 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1730 declaration that snuck in from change below.
1732 2002-11-06 Andrew Cagney <cagney@redhat.com>
1734 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1736 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1737 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1738 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1739 (i386_mxcsr_regnum_p): new function. Use instead of
1741 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1742 (i386_sse_regnum_p): Declare.
1743 (i386_mxcsr_regnum_p): Declare.
1744 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1745 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1746 (IS_FP_REGNUM): Update definition.
1747 (IS_FPU_CTRL_REGNUM): Update definition..
1748 (IS_SSE_REGNUM): Update definition..
1749 * i386v-nat.c (register_u_addr): Update.
1750 * go32-nat.c (fetch_register): Update.
1751 (store_register): Update.
1753 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1755 Preparation work to convert the hppa targets to multiarch partial.
1757 * hppa-tdep.c: Add new functions replacing macro bodies from
1758 config/pa/tm-hppa.h. These function will be used to initialize
1759 the gdbarch structure. Import some comments from tm-hppa.h,
1760 and place them where appropriate, to avoid loosing them when
1761 we cleanup this file.
1762 (hppa_reg_struct_has_addr): New function.
1763 (hppa_inner_than): New function.
1764 (hppa_stack_align): New function.
1765 (hppa_pc_requires_run_before_use): New function.
1766 (hppa_instruction_nullified): New function.
1767 (hppa_register_byte): New function.
1768 (hppa_register_virtual_type): New function.
1769 (hppa_store_struct_return): New function.
1770 (hppa_cannot_store_register): New function.
1771 (hppa_frame_args_address): New function.
1772 (hppa_frame_locals_address): New function.
1773 (hppa_smash_text_address): New function.
1774 (hppa_coerce_float_to_double): New function. Requires the inclusion
1777 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1779 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1780 gdbarch-eligible macro to a call to the new associated function
1781 created in hppa-tdep.c.
1782 (INNER_THAN): Likewise.
1783 (STACK_ALIGN): Likewise.
1784 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1785 (INSTRUCTION_NULLIFIED): Likewise.
1786 (REGISTER_BYTE): Likewise.
1787 (REGISTER_VIRTUAL_TYPE): Likewise.
1788 (STORE_STRUCT_RETURN): Likewise.
1789 (CANNOT_STORE_REGISTER): Likewise.
1790 (FRAME_ARGS_ADDRESS): Likewise.
1791 (FRAME_LOCALS_ADDRESS): Likewise.
1792 (SMASH_TEXT_ADDRESS): Likewise.
1793 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1794 (ABOUT_TO_RETURN): Delete, as no longer used.
1796 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1798 * printcmd.c (disassemble_command): Remove obsolete function.
1799 (_initialize_printcmd): Do not create disassemble command here.
1800 * cli/cli-cmds.c (disassemble_command): New function. Implements
1801 disassemble command.
1802 (init_cli_cmds): Create disassemble command here instead.
1804 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1806 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1808 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1810 * regcache.h (regcache_cooked_read_using_offset_hack)
1811 (regcache_cooked_write_using_offset_hack): Delete declarations.
1812 (register_changed): Delete declaration.
1813 * regcache.c (regcache_cooked_read_using_offset_hack)
1814 (regcache_cooked_write_using_offset_hack): Delete functions.
1815 (cooked_xfer_using_offset_hack): Delete function.
1816 (register_changed): Delete function.
1818 2002-11-07 Jim Blandy <jimb@redhat.com>
1820 * macroscope.c: #include "complaints.h".
1821 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1822 but not in the macro table.
1823 * Makefile.in (macroscope.o): Record dependency.
1825 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1827 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1829 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1831 * regcache.c (deprecated_registers_fetched): Update.
1832 * regcache.h (deprecated_registers_fetched): Rename
1834 * remote-vxsparc.c (vx_read_register): Update.
1835 * remote-vxmips.c (vx_read_register): Update.
1836 * remote-vx68.c (vx_read_register): Update.
1837 * irix5-nat.c (fetch_core_registers): Update.
1838 * mipsm3-nat.c (fetch_inferior_registers): Update.
1839 * sun3-nat.c (fetch_inferior_registers): Update.
1840 * symm-nat.c (fetch_inferior_registers): Update.
1841 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1842 (fetch_core_registers): Update.
1843 (fetch_kcore_registers): Update.
1844 * mips-nat.c (fetch_inferior_registers): Update.
1845 * corelow.c (get_core_registers): Update.
1846 * a68v-nat.c (fetch_inferior_registers): Update.
1848 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1850 Put in place the framework necessary for multiarching the hppa targets.
1851 * hppa-tdep.c (hppa_gdbarch_init): New function.
1852 (hppa_dump_tdep): New function.
1853 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1854 tdep structure dumper.
1855 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1856 until the multi-arching conversion has partially been completed.
1858 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1860 * valops.c (value_assign): Merge lval_register case into
1861 lval_reg_frame_relative. Use frame_register and
1862 regcache_cooked_write instead of get_saved_register and
1863 write_register_bytes. After flushing the register cache, try to
1864 re-select the selected frame.
1866 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1868 * regcache.h (deprecated_register_valid): Rename register_valid.
1869 * regcache.c: Update.
1870 * ia64-aix-nat.c: Update.
1871 * i386gnu-nat.c: Update.
1872 * alpha-nat.c: Update.
1873 * sparc-nat.c: Update.
1874 * lynx-nat.c: Update.
1875 * remote-mips.c: Update.
1877 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1879 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1880 to end of file, to be more consistent with the pratice followed
1883 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1885 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1886 (print_float_info): Print registers in float_reggroup.
1887 (print_vector_info): Print registers in vector_reggroup.
1888 (default_print_registers_info): When all, print registers in
1889 all_reggroup. Otherwize, print registers in general_reggroup.
1890 (registers_info): Rewrite. Add support for register groups.
1893 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1895 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1897 (symtab_symbol_info): Remove eons old ifdeffed out code.
1898 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1901 2002-11-06 Theodore A. Roth <troth@openavr.org>
1903 * c-exp.y: Add missing semi-colons.
1904 * f-exp.y: Add missing semi-colons.
1905 * m2-exp.y: Add missing semi-colons.
1906 * p-exp.y: Add missing semi-colons.
1907 Add empty action to start rule to avoid a type clash error when
1908 building with bison >= 1.50.
1910 2002-11-06 Jim Blandy <jimb@redhat.com>
1912 * macrotab.h (struct macro_source_file): Doc fix.
1914 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1916 * varobj.c (child_exists, cplus_number_of_children): Change
1917 STREQ macro references to strcmp.
1918 (cplus_name_of_child): Change code to handle the fact that
1919 fields are not necessarily contiguous with regards to their
1920 access control. This is a fix for PR gdb/792.
1922 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1924 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1925 * gdbarch.h, gdbarch.c: Regnerate.
1926 * frame.h (frame_register): Declare.
1927 * frame.c (frame_register): New function.
1928 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1929 GET_SAVED_REGISTER, otherwize call
1930 generic_unwind_get_saved_register.
1931 (frame_register_read): Use frame_register instead of
1934 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1936 From Jim Ingham <jingham@apple.com>:
1937 * event-top.c (gdb_disable_readline): New function.
1938 (_initialize_event_loop): Move comment.
1940 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1942 * event-loop.c (start_event_loop): Add comment.
1945 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1947 * infcmd.c (default_print_registers_info): Do not call
1948 PRINT_REGISTER_HOOK.
1950 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1952 * sparc-tdep.c (sparc_print_register_hook): Make static.
1953 (sparc_print_registers_info): New function.
1954 (sparc_do_registers_info): New function.
1955 (sparclet_print_registers_info): New function.
1956 (sparclet_do_registers_info): New function.
1957 (do_sparc_print_registers_info): New function.
1958 (sparc_print_registers): New static function, clone of infcmd.c's
1959 default_print_registers_info.
1960 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1961 (sparclet_do_registers_info): Declare.
1962 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1963 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1965 (sparc_do_registers_info): Declare.
1966 (PRINT_REGISTER_HOOK): Delete macro.
1967 (sparc_print_register_hook): Delete declaration.
1969 2002-11-05 David Carlton <carlton@math.stanford.edu>
1971 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1973 (lookup_symbol_aux_local): New function.
1974 (lookup_symbol_aux_symtabs): New function.
1975 (lookup_symbol_aux_psymtabs): New function.
1977 2002-11-05 David Carlton <carlton@math.stanford.edu>
1979 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1980 previous values of 'objfile' and 'block'.
1982 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1984 * values.c (value_change_enclosing_type): Set
1985 enclosing_type field correctly also for the case where
1986 more memory needs to be allocated.
1988 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1990 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1993 * i387-tdep.c (i387_print_float_info): Replace calls to
1994 register_read and deprecated_read_register_gen with calls to
1995 frame_register_read, and make the necessary adjustments to the
1998 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2000 * gdbarch.sh (register_reggroup_p): Allow default value.
2001 * gdbarch.h, gdbarch.c: Regenerate.
2003 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2005 * regcache.h: Add coment indicating replacements for deprecated
2008 2002-11-02 Andrew Cagney <cagney@redhat.com>
2010 * reggroups.h, reggroups.c: New files.
2011 * regcache.c: Include "reggroups.h".
2012 (enum regcache_dump_what): Add `regcache_dump_groups'.
2013 (regcache_dump): Contract size of the "Type" column. When
2014 specified, dump the register's groups.
2015 (maintenance_print_register_groups): New function.
2016 (_initialize_regcache): Add command `maint print register-groups'.
2017 * Makefile.in (COMMON_OBS): Add reggroups.o
2018 (SFILES): Add reggroups.c.
2019 (reggroups_h): Define.
2020 (regcache.o, gdbarch.o): Update dependencies.
2021 (reggroups.o): Specify dependencies.
2022 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2023 Add opaque declaration for `struct reggroup' in generated .h file.
2024 Include "reggroups.h" in generated .c file.
2025 gdbarch.h, gdbarch.c: Re-generate.
2027 2002-11-02 Andrew Cagney <cagney@redhat.com>
2029 * regcache.h (deprecated_read_register_gen): Rename
2031 (deprecated_write_register_gen): Rename write_register_gen.
2032 * i387-tdep.c: Update.
2033 * x86-64-linux-nat.c: Update
2035 * thread-db.c: Update.
2036 * win32-nat.c: Update.
2037 * mips-tdep.c: Update.
2038 * d10v-tdep.c: Update.
2039 * cris-tdep.c: Update.
2040 * remote-sim.c: Update.
2041 * remote-rdi.c: Update.
2042 * remote-rdp.c: Update.
2045 * blockframe.c: Update.
2046 * x86-64-tdep.c: Update.
2047 * xstormy16-tdep.c: Update.
2048 * sh-tdep.c: Update.
2049 * s390-tdep.c: Update.
2050 * rs6000-tdep.c: Update.
2051 * sparc-tdep.c: Update.
2052 * i386-tdep.c: Update.
2053 * dwarf2cfi.c: Update.
2054 * regcache.c: Update.
2056 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2058 New interix-specific files:
2059 * config/i386/nm-interix.h: New file.
2060 * config/i386/interix.mh: New file.
2061 * config/i386/interix.mt: New file.
2062 * i386-interix-nat.c: New file.
2063 * i386-interix-tdep.c: New file.
2065 2002-11-01 Andrew Cagney <cagney@redhat.com>
2067 * frame.h (deprecated_generic_get_saved_register): Rename
2068 generic_get_saved_register.
2069 * blockframe.c (deprecated_generic_get_saved_register): Update.
2070 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2071 (xstormy16_frame_saved_register): Update.
2072 * sh-tdep.c (sh_gdbarch_init): Update.
2073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2074 * ia64-tdep.c (ia64_get_saved_register): Update.
2075 * cris-tdep.c (cris_gdbarch_init): Update.
2076 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2077 * arm-tdep.c (arm_gdbarch_init): Update.
2079 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2081 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2083 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2085 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2086 trampolines in sigaction.
2088 2002-10-31 Andrew Cagney <cagney@redhat.com>
2090 * h8300-tdep.c: Include "gdb_assert.h".
2091 (h8300_print_register): Add gdbarch, file and frame parameters.
2092 Use frame_read_unsigned_register to read the register's value.
2093 Use fprintf_filtered to display output.
2094 (h8300_print_registers_info): Replace h8300_do_registers_info.
2095 (h8300_gdbarch_init): Set print_registers_info.
2097 2002-10-31 Andrew Cagney <cagney@redhat.com>
2099 * frame.c (frame_read_unsigned_register): New function.
2100 (frame_read_signed_register): New function.
2101 * frame.h (frame_read_unsigned_register): Declare.
2102 (frame_read_signed_register): Declare.
2104 2002-10-31 Andrew Cagney <cagney@redhat.com>
2106 * h8500-tdep.c (h8500_print_registers_info): New static function,
2107 clone of infcmd.c's default_print_registers_info.
2108 (h8500_do_registers_info): New funtion.
2109 (h8500_print_register_hook): Rename print_register_hook, make
2112 * config/h8500/tm-h8500.h: Update copyright.
2113 (DEPRECATED_DO_REGISTERS_INFO): Define.
2114 (h8500_do_registers_info: Declare.
2115 (PRINT_REGISTER_HOOK): Delete macro.
2116 (print_register_hook): Delete function.
2118 2002-10-31 Andrew Cagney <cagney@redhat.com>
2120 * z8k-tdep.c (z8k_print_register_hook): Make static.
2121 (z8k_print_registers_info): New static function, clone of
2122 infcmd.c's default_print_registers_info.
2123 (z8k_do_registers_info): New function. Wrap
2124 z8k_print_registers_info.
2125 * config/z8k/tm-z8k.h: Update copyright.
2126 (PRINT_REGISTER_HOOK): Delete macro.
2127 (z8k_print_register_hook): Delete declaration.
2128 (DEPRECATED_DO_REGISTERS_INFO): Define.
2129 (z8k_do_registers_info): Declare.
2131 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2133 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2134 as this is already provided by value.h, and was actually causing
2135 a compilation error because of a conflict in parameter type
2136 declaration due to a missing const keyword.
2137 (low_text_segment_addres): Fix a compilation warning.
2139 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2141 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2142 registers without a name.
2143 (mips_linux_cannot_store_register): Don't store registers without
2146 2002-10-28 David Carlton <carlton@math.stanford.edu>
2148 * symtab.c (find_addr_symbol): Delete. (It was already commented
2150 * symtab.h: Delete prototype for find_addr_symbol.
2152 2002-10-26 Andrew Cagney <cagney@redhat.com>
2154 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2156 gdbarch.h, gdbarch.c: Re-generate.
2157 * infcmd.c (default_print_registers_info): Update reference.
2158 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2159 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2160 * sh-tdep.c (sh_gdbarch_init): Ditto.
2161 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2164 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2166 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2167 cfi_init_extra_frame_info.
2168 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2169 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2171 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2172 target where necessary. Add more comments and remove the ones
2173 that don't provide any useful information.
2175 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2176 deprecated_read_register_dummy with
2177 frame_unwind_unsigned_register.
2179 * i386-tdep.c (i386_extract_struct_value_address): Use
2180 regcache_raw_read_unsigned instead of
2181 regcache_cooked_read_unsigned since we know that the register
2182 we're reading isn't a pseudo register. Rename variable 'val' into
2183 the more descriptive 'addr'.
2185 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2186 (x86_64_push_return_address): Add comment.
2187 (x86_64_pop_frame): Make static.
2188 (examine_argument): Clarify comment.
2189 (x86_64_skip_prologue): Make prolog_expact variable static.
2191 * dwarf2cfi.c: Fix some formatting problems.
2192 (context_cpy, read_encoded_pointer): Clarify comments.
2194 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2195 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2196 i386 target back into x86_64_gdbarch_init. Add some comments and
2197 remove meaningless ones.
2199 2002-10-25 Andrew Cagney <cagney@redhat.com>
2201 * complaints.h (struct deprecated_complaint): Rename `struct
2203 * complaints.c (complain): Update.
2204 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2205 incorrect comment indicating that "symfile.h" was being included
2206 for the `struct complaint' definition.
2207 * remote-vx.c: Update.
2208 * objc-lang.c: Update.
2209 * xcoffread.c: Update.
2211 * mdebugread.c: Update.
2212 * stabsread.c: Update.
2213 * dwarf2read.c: Update.
2214 * dwarfread.c: Update.
2215 * elfread.c: Update.
2216 * coffread.c: Update.
2217 * stabsread.h: Update.
2218 * dbxread.c: Update.
2219 * buildsym.c: Update.
2220 * gdbtypes.c: Update.
2221 * macrotab.c: Update.
2223 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2225 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2226 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2227 (x86_64_init_abi): ...new function.
2229 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2230 * i386v-nat.c: Include "i386-tdep.h".
2232 2002-10-25 Andrew Cagney <cagney@redhat.com>
2234 * gdbtypes.c (address_space_name_to_int): Update.
2235 (address_space_int_to_name): Update.
2236 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2237 multi-arch predicate.
2238 (address_class_name_to_type_flags): Ditto.
2239 * gdbarch.h, gdbarch.c: Re-generate.
2241 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2243 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2245 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2247 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2249 * symtab.h (INIT_SAL): Delete macro.
2251 * symtab.c (init_sal): New function.
2253 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2254 to init_sal function call.
2255 (find_sal_from_funcs_and_line): Ditto.
2256 (all_sals_for_line): Ditto.
2257 * breakpoint.c (create_internal_breakpoint): Ditto.
2258 (create_fork_vfork_event_catchpoint): Ditto.
2259 (create_exec_event_catchpoint): Ditto.
2260 (parse_breakpoint_sals): Ditto.
2261 (watch_command_1): Ditto.
2262 (handle_gnu_4_16_catch_command): Ditto.
2263 (clear_command): Ditto.
2264 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2265 * infcmd.c (run_stack_dummy): Ditto.
2266 * infrun.c (process_event_stop_test): Ditto.
2267 (check_sigtramp2): Ditto.
2268 (step_over_function): Ditto.
2269 * linespec.c (decode_line_2): Ditto.
2270 (decode_line_1): Ditto.
2271 * source.c (line_info): Ditto.
2272 * symtab.c (find_pc_sect_line): Ditto.
2274 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2276 * dwarf2cfi.c (struct context)
2277 (struct context_reg): Moved to dwarf2cfi.h
2278 (context_alloc, frame_state_alloc, context_cpy):
2279 Made extern instead of static, removed prototypes.
2280 * dwarf2cfi.h (struct context)
2281 (struct context_reg): New, moved from dwarf2cfi.c
2282 (context_alloc, frame_state_alloc, context_cpy):
2284 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2285 Changed from static to extern.
2286 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2287 (LINUX_SIGCONTEXT_FP_OFFSET)
2288 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2289 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2290 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2291 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2292 set_gdbarch_*() calls now use x86-64 specific functions
2293 instead of DWARF2 CFI ones.
2294 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2295 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2296 (x86_64_init_extra_frame_info): New prototypes.
2298 2002-10-23 David Carlton <carlton@math.stanford.edu>
2300 * linespec.c: #include "parser-defs.h".
2301 Delete prototype for find_template_name_end.
2302 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2304 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2306 * NEWS: add recent mi fixes.
2307 * varobj.c (struct varobj): Add new "updated" flag.
2308 (new_variable): Default "updated" flag to 0.
2309 (varobj_set_value): Set "updated" flag to 1 if value
2311 (varobj_update): Check varobj "updated" flag before
2312 comparing old and refreshed values. Fix for
2315 2002-10-23 David Carlton <carlton@math.stanford.edu>
2317 * parse.c (parse_exp_1): Use BLOCK_START.
2318 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2320 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2322 2002-10-23 David Carlton <carlton@math.stanford.edu>
2324 * symtab.c: Delete cplusplus_hint.
2325 Delete prototype for find_template_name_end.
2327 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2329 * symtab.h: Update comment.
2331 2002-10-23 Michael Snyder <msnyder@redhat.com>
2333 * printcmd.c (address_info): Restore quotes in output.
2334 * valops.c (value_of_local): Restore quotes in error message.
2336 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2338 * symtab.c (symbol_demangled_name): New function.
2339 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2340 turning most of it into a function.
2341 (symbol_demangled_name): Export.
2343 2002-10-23 Michael Snyder <msnyder@redhat.com>
2345 * valops.c (value_of_local): Restore quotes in error message.
2347 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2349 * symtab.c (symbol_init_language_specific): New function.
2350 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2351 turning most of it into a function.
2352 (symbol_init_language_specific): Export.
2354 2002-10-23 David Carlton <carlton@math.stanford.edu>
2356 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2357 (dwarf_attr_name): Ditto.
2358 (dwarf_type_encoding_name): Ditto.
2359 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2360 (process_die): Handle DW_TAG_namespace,
2361 DW_TAG_imported_declaration, DW_TAG_imported_module.
2362 (read_namespace): New function.
2364 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2366 * configure.in: Define NEW_PROC_API on Interix too.
2367 * configure: Regenerate.
2369 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2371 * configure: Regenerate using the proper version of autoconf.
2373 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2375 * findvar.c (read_var_value): Temporarily disable TLS code, until
2376 complete TLS support is added.
2378 2002-10-21 Jim Blandy <jimb@redhat.com>
2379 Elena Zannoni <ezannoni@redhat.com>
2381 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2382 for thread local storage locations.
2383 (struct symbol): Add objfile field.
2384 (SYMBOL_OBJFILE): Define.
2385 * dwarf2read.c (is_thread_local): New static variable.
2386 (new_symbol): If variable is in thread local fill in address class
2387 and objfile appropriately.
2388 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2390 * printcmd.c (address_info): Print the information for thread
2391 local storage variable.
2392 * findvar.c (read_var_value): In case of thread local variable,
2393 defer to the target vector code to compute address.
2395 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2397 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2398 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2400 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2402 * symtab.h (address_class): Rename
2403 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2404 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2405 * printcmd.c (address_info): Ditto.
2406 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2408 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2410 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2411 DBREG_DRX macro to acces debug registers.
2413 * Makefile.in (i386obsd-tdep.o): New target.
2415 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2416 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2418 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2419 * config/i386/obsd.mt: New file.
2420 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2421 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2422 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2423 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2424 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2425 * i386obsd-tdep.c: New file.
2427 2002-10-19 Adam Fedor <fedor@gnu.org>
2429 * objc-exp.y (name_not_typename): Fix invalid comment.
2431 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2433 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2434 to allocate partial syms and macro byte caches.
2436 2002-10-18 David Carlton <carlton@math.stanford.edu>
2438 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2440 2002-10-18 Adam Fedor <fedor@gnu.org>
2442 * stabsread.c (find_name_end): New function.
2443 (define_symbol): Use it.
2445 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2447 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2448 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2449 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2450 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2452 2002-10-17 David Carlton <carlton@math.stanford.edu>
2454 * symfile.h: Add opaque declaration for struct obstack.
2455 Declare obsavestring to take a const char *.
2456 * symfile.c (obsavestring): Make first argument a const char *.
2458 2002-10-16 Adam Fedor <fedor@gnu.org>
2460 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2461 names when matching breakpoints in current file.
2463 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2465 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2466 (read_tag_pointer_type): Add address class support.
2467 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2468 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2470 * gdbarch.h, gdbarch.c: Regenerate.
2471 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2472 (make_type_with_address_space, recursive_type_dump): Add address
2474 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2475 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2476 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2478 2002-10-16 Klee Dienes <kdienes@apple.com>
2480 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2481 to get the last character of a char[] buffer, not
2482 name[sizeof(vptr_name)-1].
2484 2002-10-14 Adam Fedor <fedor@gnu.org>
2486 * symtab.h: New objc_specific struct.
2487 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2488 (SYMBOL_DEMANGLED_NAME): Likewise.
2490 2002-10-14 Adam Fedor <fedor@gnu.org>
2492 * symfile.c (init_filename_language_table): Add ObjC file extension.
2494 2002-10-14 Adam Fedor <fedor@gnu.org>
2496 * utils.c (puts_filtered_tabular): New function.
2497 (fprintf_symbol_filtered): Get ObjC demangled name.
2498 * defs.h (puts_filtered_tabular): Declared.
2500 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2502 * c-lang.h (c_type_print_varspec_prefix): Delete.
2503 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2504 ``need_post_space'' parameter. Adjust all callers.
2506 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2508 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2509 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2510 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2511 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2513 2002-10-13 Adam Fedor <fedor@gnu.org>
2515 * source.c (print_source_lines): Update comments.
2517 2002-10-13 Adam Fedor <fedor@gnu.org>
2519 * valops.c (value_of_local): New function.
2520 (value_of_this): Use it.
2521 * value.h (value_of_local): Declared.
2523 2002-10-13 Adam Fedor <fedor@gnu.org>
2525 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2526 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2528 2002-10-12 Adam Fedor <fedor@gnu.org>
2530 * language.c (binop_result_type): Add language_objc to case.
2531 (integral_type): Likewise.
2532 (character_type): Likewise.
2533 (string_type): Likewise.
2534 (boolean_type): Likewise.
2535 (structured_type): Likewise.
2536 (binop_type_check): Likewise.
2538 2002-10-11 Adam Fedor <fedor@gnu.org>
2540 * printcmd.c (address_info): Print 'self' for ObjC.
2542 2002-10-11 Adam Fedor <fedor@gnu.org>
2544 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2547 2002-10-11 Adam Fedor <fedor@gnu.org>
2549 * language.h (CAST_IS_CONVERSION): Add language_objc.
2551 2002-10-11 Adam Fedor <fedor@gnu.org>
2553 * defs.h (enum language): Add language_objc.
2555 2002-10-11 Klee Dienes <kdienes@apple.com>
2557 * corefile.c (read_memory_typed_address): New function.
2558 * gdbcore.h (read_memory_typed_address): Add prototype.
2559 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2560 to read a value destined for a CORE_ADDR, not read_memory_integer.
2561 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2562 (f77_get_dynamic_lowerbound): Ditto.
2564 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2566 * utils.c (string_to_core_addr): After turning string into
2567 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2568 which will do necessary sign-extension, etc.
2570 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2572 * c-exp.y (THIS): Delete token and grammar rule.
2573 (yylex): Don't return THIS.
2574 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2575 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2576 * demangle.c (cplus_markers): Update comment. Put '$'
2577 first. Remove CPLUS_MARKER.
2578 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2579 * jv-exp.y (THIS): Delete token and grammar rule.
2580 (yylex): Don't return THIS.
2581 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2582 * objc-exp.y (THIS): Delete token and grammar rule.
2583 (yylex): Don't return THIS.
2584 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2585 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2586 (read_member_functions): Likewise for opname.
2587 (read_tilde_fields): Use is_cplus_marker.
2589 * defs.h (CPLUS_MARKER): Don't define.
2590 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2591 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2592 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2593 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2594 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2596 * config/i386/tm-i386v4.h: Delete file.
2597 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2598 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2599 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2600 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2601 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2602 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2603 * config/i386/i386v4.mt (TM_FILE): Likewise.
2604 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2606 2002-10-10 Marko Mlinar <markom@opencores.org>
2608 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2609 accidentially not commited 2002-10-09
2610 * gdbarch.h, gdbarch.c: Re-generate.
2612 2002-10-09 Marko Mlinar <markom@opencores.org>
2614 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2615 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2616 * gdbarch.h, gdbarch.c: Re-generate.
2618 2002-10-08 Petr Sorfa <petrs@caldera.com>
2620 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2622 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2623 so we can work on more than one compilation unit at a time. This
2624 helps prepare GDB to handle inter-CU die references.
2625 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2626 the code to be defined before struct comp_unit_head.
2627 (comp_unit_head): Added new members - offset, cu_head,
2628 begin_die, next and dwarf2_abbrevs.
2629 (dwarf2_abbrevs): Removed single static var; now member of
2630 struct comp_unit_head.
2631 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2633 (psymtab_to_symtab_1): Changed to work with the new
2634 struct comp_unit_head.
2635 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2636 constructs the dwarf2_abbrevs[] inside the cu_header.
2637 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2638 dwarf2_abbrev table to clean up.
2639 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2640 handling of dwarf2_abbrevs inside the cu_header.
2641 (read_partial_die): Now supports the call to the new
2642 dwarf2_lookup_abbrev.
2643 (read_full_die): Now supports the call to the new
2644 dwarf2_lookup_abbrev.
2646 2002-10-06 Christopher Faylor <cgf@redhat.com>
2648 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2649 insure that shell variables, such as "transformed_name" are propagated
2650 to later shell statements in rule.
2652 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2654 * config/i386/nm-i386sco.h: Add protection against
2655 multiple-inclusion. Include "i386/nm-i386v.h".
2656 (REGISTER_U_ADDR): Remove define.
2657 (i386_register_u_addr): Remove prototype.
2659 2002-10-04 Michael Snyder <msnyder@redhat.com>
2661 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2662 before treating it as a single-step event.
2664 2002-10-03 Adam Fedor <fedor@gnu.org>
2666 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2667 (objc_demangle): Remove assignment in if statements, Replace
2669 (add_msglist): Likewise.
2670 (end_msglist): Likewise.
2671 (complare_selectors): Likewise.
2672 (selectors_info): Likewise.
2673 (compare_classes): Likewise.
2674 (classes_info): Likewise.
2675 (print_object_command): Likewise.
2676 (find_objc_msgcall_submethod): Replace PTR with void *.
2677 * objc-lang.h: Remove check for __STDC__.
2679 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2681 * ui-out.h (ui_out_field_fmt_int): New prototype.
2682 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2683 of field width and alignment.
2684 * stack.c (print_frame_info_base): When printing frame level, use
2685 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2688 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2690 * MAINTAINERS: Add self to Write After Approval list.
2692 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2694 * infcmd.c (interrupt_target_command_wrapper): Delete.
2695 (interrupt_target_command): Make non static.
2696 (nofp_registers_info): Make static.
2697 * stack.c (return_command_wrapper): Delete.
2698 (return_command): Make non static.
2700 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2702 * event-top.c (gdb_setup_readline): New function. Code moved from
2703 _initialize_event_loop().
2704 (_initialize_event_loop): Call gdb_setup_readline().
2706 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2708 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2709 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2712 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2715 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2717 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2718 of fill_in_vptr_fieldno.
2720 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2722 * inferior.h (registers_info, stepi_command, nexti_command,
2723 continue_command, interrupt_target_command): Export from infcmd.c.
2724 * frame.h (args_info, selected_frame_level_changed_hook,
2725 return_command): Export from stack.c.
2726 * v850ice.c (stepi_command, nexti_command, continue_command): use
2727 prototypes from inferior.h.
2728 * tracepoint.c (registers_info, args_info, locals_info): Use
2729 prototypes from frame.h and inferior.h.
2730 * Makefile.in (mi-main.o): Add dependency on frame.h.
2732 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2734 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2735 value in register 3 adjusted by ppc_gp0_regnum.
2737 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2739 2002-10-02 Marko Mlinar <markom@opencores.org>
2741 * MAINTAINERS: Add myself to the Write After Approval list.
2743 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2745 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2746 of the section for the N64 ABI, fixed.
2748 * config/mips/tm-irix6.h: Include solib.h.
2750 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2752 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2755 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2757 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2758 and that "mi0" syntax has been removed.
2760 2002-09-30 David Carlton <carlton@math.stanford.edu>
2762 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2763 * ppc-sysv-tdep.c: #include "gdb_string.h".
2764 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2767 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2769 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2770 "vrsave"'s register number.
2772 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2774 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2775 use frame_unwind_signed_register to obtain the PC.
2776 (mips_frame_chain): Handle a generic dummy frame.
2777 (mips_init_extra_frame_info): When a generic dummy frame, don't
2778 re-compute the frame base.
2779 (mips_pop_frame): Handle generic dummy frames.
2780 (mips_gdbarch_init): When generic dummy frames, set
2781 use_generic_dummy_frames, push_dummy_frame to
2782 generic_push_dummy_frame, pc_in_call_dummy to
2783 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2784 generic_save_dummy_frame_tos.
2786 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2788 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2789 against TOP when TOP was explictly set.
2790 (generic_push_dummy_frame): Set TOP to zero.
2792 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2794 * event-loop.c (start_event_loop): Rename variable 'result' to
2795 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2797 2002-09-30 Keith Seitz <keiths@redhat.com>
2799 * gdb-events.sh (selected_thread_changed): New event.
2800 * gdb-events.c: Regenerated.
2801 * gdb-events.h: Regenerated.
2803 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2805 * MAINTAINERS: Add self to Write After Approval list.
2807 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2809 * disasm.c: New file.
2810 * disasm.h: New file.
2811 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2812 (compare_lines): Ditto.
2813 (dump_insns): Ditto.
2814 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2816 (do_assembly_only): Ditto.
2817 (do_disassembly): Renamed to gdb_disassembly and moved to
2818 disasm.c. Sdded uiout argument.
2819 * Makefile.in: Add new files. Reorder SFILES list. Update
2820 dependencies. Include libgdb.a later in the insight executable.
2822 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2824 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2825 bfd/elf64-alpha-fbsd.c.
2827 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2829 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2832 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2834 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2836 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2838 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2839 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2840 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2841 (S_msg_sig_post_reply): Ditto.
2843 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2845 * sh-tdep.c (sh_use_struct_convention): Use definition according
2847 (sh_push_arguments): Store in register with correct endianess.
2848 (sh_default_store_return_value): Ditto.
2849 (sh_gdbarch_init): Set sizeof long double to 8.
2851 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2853 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2854 Fix some whitespace problems.
2856 2002-09-27 David Carlton <carlton@math.stanford.edu>
2858 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2859 (mcore-tdep.o): Ditto.
2860 (ns32k-tdep.o): Ditto.
2861 (ns32knbsd-tdep.o): Ditto.
2863 (vax-tdep.o): Ditto.
2864 * cris-tdep.c: #include "gdb_string.h"
2865 * mcore-tdep.c: Ditto.
2866 * ns32k-tdep.c: Ditto.
2867 * ns32knbsd-tdep.c: Ditto.
2869 * vax-tdep.c: Ditto.
2871 2002-09-27 David Carlton <carlton@math.stanford.edu>
2873 * config/djgpp/fnchange.lst: Add entries for
2874 gdb/testsuite/gdb.c++/m-static files.
2876 2002-09-27 Jim Wilson <wilson@redhat.com>
2878 * MAINTAINERS: Add myself to the Write After Approval list.
2880 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2882 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2885 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2887 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2890 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2892 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2893 (rs6000_struct_return_address): Delete variable.
2894 (rs6000_store_struct_return): Update.
2895 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2896 deprecated_extract_struct_value_address.
2897 (rs6000_frame_align): New function.
2898 (rs6000_gdbarch_init): Set frame_align.
2900 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2902 From Grace Sainsbury <graces@redhat.com>:
2903 * Makefile.in (gdbtk-main.o): New target.
2904 (gdb.o): New target.
2906 (main.o): Update dependencies.
2907 (gdb$(EXEEXT)): Add gdb.o.
2908 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2909 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2910 (SUBDIR_GDBTK_CLEAN): Set.
2911 (install-gdbtk): Install the insight binary.
2912 (uninstall-gdbtk): New target.
2913 (all-gdbtk, clean-gdbtk): New rule.
2914 * top.c (use_windows): Default to zero.
2915 * main.c: Include "main.h".
2917 (struct captured_main_args): Delete.
2918 (gdb_main): New function.
2922 2002-09-25 Andrew Cagney <cagney@redhat.com>
2924 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2925 (frame_map_regnum_to_name): New function.
2926 (frame_map_name_to_regnum): New function.
2927 * frame.h (frame_map_name_to_regnum): Declare.
2928 (frame_map_regnum_to_name): Declare.
2929 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2930 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2931 * parse.c: Do not include "builtin-regs.h".
2932 (target_map_name_to_register): Delete function.
2933 (write_dollar_variable): Use frame_map_name_to_regnum.
2934 * parser-defs.h (target_map_name_to_register): Delete declaration.
2935 * expprint.c: Include "frame.h".
2936 (print_subexp): Use frame_map_regnum_to_name.
2937 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2938 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2940 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2942 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2943 wasn't saved, and the next innermost frame is a dummy, return the
2944 dummy frame's link register.
2946 2002-09-24 Jim Blandy <jimb@redhat.com>
2948 Fix from Paul Breed:
2949 * main.c (captured_main): Add a `break' after the case for 'b'.
2951 2002-09-24 Keith Seitz <keiths@redhat.com>
2953 * varobj.c (c_type_of_child): Use get_target_type instead
2954 of TYPE_TARGET_TYPE.
2956 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2958 * source.c (get_current_or_default_source_symtab_and_line): Remove
2960 (set_default_source_symtab_and_line): New function. Attempts to
2961 determine a source file to list lines from if one is not currently
2963 (get_current_source_symtab_and_line): Initialize sal.pc and
2965 (set_current_source_symtab_and_line): Mark argument as const.
2966 * source.h: Update declarations and comments.
2967 * linespec.c (decode_line_1): Replace call to removed routine above.
2968 * stack.c (print_frame_info_base): Ditto.
2969 * cli/cli-cmds.c (edit_command): Ditto.
2970 (list_command): Ditto.
2972 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2974 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2975 sal.pc and sal.end fields.
2976 (get_current_or_default_source_symtab_and_line): Ditto.
2977 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2978 so we do not cause a new source symtab to be searched for (reverting an
2979 unintentional change from the 2002-09-20 patch).
2980 * scm-lang.c (scm_unpac): Ditto.
2982 2002-09-21 Andrew Cagney <cagney@redhat.com>
2984 * complaints.c (symfile_explanations): Remove new-line from
2985 ``isolated_message''.
2986 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2987 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2989 2002-09-20 Nick Clifton <nickc@redhat.com>
2991 * NEWS: Announce that V850EA ISA is no longer supported.
2992 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2994 2002-09-20 David Carlton <carlton@math.stanford.edu>
2996 * Makefile.in (c-lang.o): Correct dependencies.
2997 (utils.o): Gather dependencies.
2999 * c-lang.c: #include "gdb_string.h"
3001 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3003 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3004 * cli/cli-cmds.c (list_command): New function. Implements the new
3006 (_init_cli_cmds): Add new command definition.
3007 * gdb.1: Document edit command.
3008 * doc/gdb.texinfo: Document edit command.
3010 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3012 * source.c: Make global variables current_source_symtab and
3013 current_source_line static.
3014 (list_command): Moved to cli/cli-cmds.c.
3015 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3016 (get_first_line_listed): New accessor function.
3017 (get_lines_to_list): New accessor function.
3018 (get_current_source_symtab_and_line): New function. Retrieves the
3019 position in the source code that we consider current.
3020 (get_current_or_default_source_symtab_and_line): New function.
3021 Like the above but attempts to determine a default position if one
3022 is not currently defined.
3023 (set_current_source_symtab_and_line): New function. Sets the source
3024 code position considered current and returns the previously set one.
3025 (clear_current_source_symtab_and_line): Reset stored information about
3026 a current source line.
3027 (_initialize_source): Remove registration for the "list" command and
3029 * source.h: Add declarations for the new functions above.
3030 * symtab.h: Remove declarations for the global variables mentioned
3032 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3033 obtain current source line.
3034 * linespec.c (decode_line_1): Ditto.
3035 * macroscope.c (default_macro_scope): Ditto.
3036 * scm-lang.c (scm_unpac): Ditto.
3037 * stack.c (print_frame_info_base): Ditto.
3038 * symfile.c (clear_symtab_users): Ditto.
3039 * symtab.c (decode_line_spec): Ditto.
3040 * cli/cli-cmds.c (list_command): Moved here from source.c.
3041 (ambiguous_line_spec): Moved here from source.c.
3042 (_init_cli_cmds): Add definition for "list" and its alias.
3043 * Makefile.in: Update dependencies.
3045 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3047 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3048 with what gcc thinks is correct.
3050 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3052 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3053 multiple register push instruction.
3055 2002-09-19 Jim Blandy <jimb@redhat.com>
3057 Add support for distinct host and target character sets.
3058 * charset.c, charset.h: New files.
3059 * c-exp.y: #include "charset.h".
3060 (yylex): Convert character and string literals to the target
3061 character set, before returning them as the semantic value of the
3063 * c-lang.c: #include "charset.h".
3064 (c_emit_char): Use charset-specific methods to recognize
3065 characters with backslash escape forms, to decide which characters
3066 to print literally and which to print using numeric escape
3067 sequences, and to convert target characters to host characters
3069 * utils.c: #include "charset.h".
3070 (no_control_char_error): New function.
3071 (parse_escape): Use charset-specific methods to recognize
3072 backslash escapes, parse `control character' notation, and convert
3073 characters from the host character set to the target character set.
3074 * configure.in: Set the default host character set.
3075 Check where to find iconv, and what its argument types might be.
3076 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3077 * Makefile.in (SFILES): List charset.c.
3078 (COMMON_OBS): List charset.o.
3079 (charset.o): New rule.
3080 (charset_h): New header dependency variable.
3081 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3082 (LIBICONV): New variable, set by configure.
3083 (CLIBS): Include $(LIBICONV) here.
3084 * aclocal.m4, config.in, configure: Regenerated.
3086 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3088 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3091 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3093 * gdb_mbuild.sh: New file.
3095 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3097 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3099 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3101 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3102 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3103 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3104 valops.c, value.h: Revert previous change.
3106 2002-09-18 Michael Snyder <msnyder@redhat.com>
3108 Preliminary support for Objective-C:
3109 * defs.h (language_objc): New enum value.
3110 (puts_filtered_tabular): Declaration only, exported from utils.c.
3111 (skip_quoted): Delete, declared in completer.h.
3112 * c-exp.y: Include completer.h.
3115 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3116 New operator enum values.
3117 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3118 * language.c (binop_result_type): Handle language_objc case.
3119 (integral_type, character_type, string_type, boolean_type,
3120 structured_type, binop_type_check): Ditto.
3121 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3122 (struct objc_specific): Add to general_symbol_info.
3123 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3124 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3125 * parser-defs.h (struct objc_class_str): New struct type.
3126 (start_msglist, end_msglist, add_msglist): Declaration only,
3127 exported from objc-lang.c.
3128 * value.h (value_of_local, value_nsstring,
3129 call_function_by_hand_expecting_type): Exported from valops.c.
3130 * valops.c (find_function_addr): Export.
3131 (call_function_by_hand_expecting_type): New function.
3132 (value_of_local): New function.
3133 * symfile.c (init_filename_language_table): Add ".m" extension
3135 * utils.c (puts_filtered_tabular): New function.
3136 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3137 (set/show demangle): Extend help-string to refer to ObjC.
3138 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3139 * stabsread.c (symbol_reference_defined): Objective-C symbols
3140 may contain colons: make allowances when scanning stabs strings
3142 (objc_find_colon): New function.
3143 * printcmd.c (address_info): If language == objc then print
3144 "self" instead of "this".
3145 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3146 OP_NSSTRING, and OP_SELF.
3147 (prefixify_subexp): Ditto.
3148 * source.c (print_source_lines): Mention objc in comment.
3149 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3152 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3154 * complaints.h: Update copyright.
3155 (struct complaints): Declare.
3156 (struct complaint): Make `message' constant.
3157 (internal_complaint): Declare.
3158 (complaint): Declare.
3159 (complaint_root): Delete declaration.
3160 (symfile_complaints): Delete declaration.
3161 (struct complaints): Add opaque declaration.
3162 (clear_complaints): Add a complaints parameter.
3163 * complaints.c: Update copyright.
3164 (enum complaint_series): Define.
3165 (complaint_root): Delete.
3166 (struct complaints): Define.
3167 (complaint_sentinel, symfile_complaint_book): New variables.
3168 (symfile_explanations, symfile_complaints): New variables.
3170 (get_complaints): New function.
3171 (vcomplaint): New function.
3172 (complaint): New function.
3173 (internal_complaint): New function.
3174 (complain): Call vcomplain with symfile_complaint.
3175 (clear_complaints): Rewrite.
3176 (_initialize_complaints): Use add_setshow_command.
3177 * Makefile.in (complaints.o): Update dependencies.
3178 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3179 to call to clear_complaints.
3180 (new_symfile_objfile, reread_symbols): Ditto.
3181 (oldsyms_complaint): Delete.
3182 (empty_symtab_complaint, unknown_option_complaint): Delete.
3183 (free_named_symtabs): Use complaint instead of complain.
3185 2002-09-18 Michael Snyder <msnyder@redhat.com>
3187 Contributed by Apple Computer, Inc. Merged with current sources
3188 by Adam Fedor <fedor@doc.com> [cagney].
3190 * objc-lang.c: First clean-up round: comments, indentation.
3191 * objc-lang.h: Ditto.
3192 * objc-lang.y: Ditto.
3194 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3196 * maint.c (maintenance_internal_error): Print the parameter as the
3198 (maintenance_internal_warning): New function.
3199 (_initialize_maint_cmds): Add command `maint internal-warning'.
3201 * defs.h (internal_warning, internal_vwarning): Declare.
3202 * utils.c (struct internal_problem): Define.
3203 (internal_vproblem): New function.
3204 (internal_warning): New function.
3205 (internal_vwarning): New function.
3206 (internal_warning_problem, internal_error_problem): New variables.
3207 (internal_verror): Just call internal_vproblem.
3209 2002-09-18 Michael Snyder <msnyder@redhat.com>
3211 * objc-lang.c: New file, support for Objective-C.
3212 Preliminary check-in, not yet integrated into gdb.
3213 * objc-lang.h: New file.
3214 * objc-exp.y: New file.
3216 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3218 * infrun.c (signal_stop_update): Convert definition to ISO C.
3219 (signal_print_update): Ditto.
3220 (signal_pass_update): Ditto.
3221 * inflow.c (terminal_save_ours): Ditto.
3223 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3226 * config/djgpp/fnchange.lst: Handle name clashes between
3227 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3230 * i386-linux-tdep.h: Fix tipo.
3232 2002-09-18 Adam Fedor <fedor@gnu.org>
3234 * MAINTAINERS: Add myself to the Write After Approval list.
3236 2002-09-18 Jim Blandy <jimb@redhat.com>
3238 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3239 texthigh and textlow to reader-specific structs caused
3240 objfile_relocate to miss them. This is fixable, but the work that
3241 the change was supposed to prepare GDB for never got done anyway.
3243 2002-09-18 David Carlton <carlton@math.stanford.edu>
3245 * MAINTAINERS: Alphabetize Write After Approval list.
3247 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3250 * values.c (value_static_field): Call read_var_value.
3252 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3254 * valops.c (hand_function_call): Align the initial stack pointer
3255 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3256 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3258 * mips-tdep.c (mips_frame_align): New function.
3259 (mips_gdbarch_init): Set frame_align.
3260 * gdbarch.sh (FRAME_ALIGN): New method.
3261 * gdbarch.h, gdbarch.c: Re-generate.
3263 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3265 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3268 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3270 * NEWS: Mention that MIPS $fp behavior changed.
3271 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3272 reference to FP_REGNUM.
3273 (mipsnbsd_cannot_store_register): Ditto.
3274 * mips-linux-nat.c: Update copyright.
3275 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3276 (mips_linux_cannot_store_register): Ditto.
3277 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3278 * config/mips/tm-mips.h: Update copyright.
3279 (FP_REGNUM): Delete macro.
3280 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3281 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3282 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3283 (mips_r3041_reg_names, mips_r3051_reg_names)
3284 (mips_r3081_reg_names): Replace "fp" with "".
3287 2002-09-17 Theodore A. Roth <troth@verinet.com>
3289 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3290 generic_read_register_dummy() (PR gdb/703).
3291 (avr_push_return_address): #if 0 out unused vars.
3292 (avr_gdbarch_init): Enable use of avr_push_return_address().
3294 2002-09-17 Michael Snyder <msnyder@redhat.com>
3296 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3297 RTE will take care of it.
3299 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3301 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3302 invalid, return SP_REGNUM.
3304 2002-09-17 Michael Snyder <msnyder@redhat.com>
3306 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3307 point registers without sign extension.
3309 2002-09-17 Andrew Cagney <cagney@redhat.com>
3311 * blockframe.c (deprecated_read_register_dummy): Rename
3312 generic_read_register_dummy.
3313 * frame.c (frame_unwind_signed_register): New function.
3314 (frame_unwind_unsigned_register): New function.
3315 * frame.h (frame_unwind_signed_register): Declare.
3316 (frame_unwind_unsigned_register): Declare.
3317 (deprecated_read_register_dummy): Rename
3318 generic_read_register_dummy.
3320 * h8300-tdep.c (h8300_frame_chain): Update.
3321 (h8300_frame_saved_pc): Update.
3322 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3323 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3324 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3325 (s390_frame_chain): Update.
3326 * v850-tdep.c (v850_find_callers_reg): Update.
3327 (v850_frame_saved_pc): Update.
3328 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3329 (m32r_find_callers_reg): Update.
3330 (m32r_frame_saved_pc): Update.
3331 * sh-tdep.c (sh_find_callers_reg): Update.
3332 (sh64_get_saved_pr): Update.
3333 (sh_init_extra_frame_info): Update.
3334 (sh_init_extra_frame_info): Update.
3335 (sh64_init_extra_frame_info): Update.
3336 (sh64_init_extra_frame_info): Update.
3337 * mcore-tdep.c (mcore_find_callers_reg): Update.
3338 (mcore_frame_saved_pc): Update.
3339 (mcore_init_extra_frame_info): Update.
3340 * i386-tdep.c (i386_frame_saved_pc): Update.
3341 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3342 (ia64_init_extra_frame_info): Update.
3343 (ia64_init_extra_frame_info): Update.
3344 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3345 * cris-tdep.c (cris_init_extra_frame_info): Update.
3346 * avr-tdep.c (avr_frame_chain): Update.
3347 (avr_init_extra_frame_info): Update.
3348 (avr_frame_saved_pc): Update.
3349 * arm-tdep.c (arm_find_callers_reg): Update.
3350 (arm_init_extra_frame_info): Update.
3351 (arm_frame_saved_pc): Update.
3353 2002-09-17 Tom Tromey <tromey@redhat.com>
3355 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3358 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3360 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3361 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3363 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3366 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3368 * osfsolib.c: Remove file, replaced by solib-osf.c.
3369 * Makefile.in: Remove compilation rules for osfsolib.c.
3371 2002-09-16 David Carlton <carlton@math.stanford.edu>
3373 * cp-valprint.c (cp_print_class_method): Correct args to
3374 check_stub_method_group.
3376 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3378 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3379 `set architecture'. Unify naming convention of functions.
3380 (h8300_skip_prologue): Improve prologue analysis.
3381 (h8300_push_arguments): Rewritten to more closely match GCC's
3382 bizarre argument-passing behavior, along with the comment describing
3384 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3385 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3386 sim, remote-e7000.c, remote-hms.c and remote.c
3388 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3390 * i386-tdep.c (gdb_print_insn_i386): Removed.
3391 (i386_print_insn): New function.
3392 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3393 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3396 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3398 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3401 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3403 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3404 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3405 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3407 2002-09-13 Christopher Faylor <cgf@redhat.com>
3409 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3411 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3413 * gdbtypes.c (check_stub_method): Make static.
3414 (check_stub_method_group): New function.
3415 * gdbtypes.h: Update prototypes.
3416 * cp-support.c: New file.
3417 * cp-support.h: New file.
3419 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3420 (update_method_name_from_physname): New function.
3421 (read_member_functions): Correct method names for operators
3422 and v3 constructors/destructors. Separate v2 constructors and
3424 * Makefile.in (stabsread.o): Update dependencies.
3425 (SFILES): Add cp-support.c.
3426 (COMMON_OBS): Add cp-support.o.
3427 (cp_support_h, cp-support.o): Add.
3429 * cp-valprint.c (cp_print_class_method): Call
3430 check_stub_method_group instead of check_stub_method. Remove
3432 * p-valprint.c (pascal_object_print_class_method): Likewise.
3433 * valops.c (search_struct_method): Likewise.
3434 (find_method_list, value_struct_elt_for_reference): Likewise.
3436 2002-09-13 Andrew Cagney <cagney@redhat.com>
3438 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3439 * gdbarch.h, gdbarch.c: Regenerate.
3441 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3443 * frame.c (find_saved_register): Delete function.
3444 * frame.h (find_saved_register): Delete declaration.
3447 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3449 * mips-tdep.c (read_next_frame_reg): Re-hack using
3450 frame_register_unwind.
3452 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3454 * mips-tdep.c (mips_get_saved_register): Re-hack using
3455 frame_register_unwind.
3457 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3459 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3460 vector. Will be useful for Interix.
3461 * gdbarch.h, gdbarch.c: Regenerate.
3463 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3464 name of the malloc function by NAME_OF_MALLOC.
3466 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3468 * value.h (find_function_in_inferior): Add const keyword to
3469 one of the parameters. Allows us to invoke this function with
3471 * valops.c (find_function_in_inferior): Likewise.
3473 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3475 * exec.c (xfer_memory): Fix compilation warning with old versions
3477 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3479 2002-09-12 David Carlton <carlton@math.stanford.edu>
3481 * symtab.h: Run through gdb_indent.h.
3482 Add 2002 to Copyright year list.
3484 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3486 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3488 * MAINTAINERS: Add myself to write after approval list.
3490 2002-09-11 J. Brobecker <brobecker@gnat.com>
3492 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3494 2002-09-11 J. Brobecker <brobecker@gnat.com>
3496 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3499 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3501 * procfs.c (do_detach): Clear current signal, not just fault.
3502 Corrects problem with breakpoint trap signal leaking to detached
3505 2002-09-10 Michael Snyder <msnyder@redhat.com>
3507 * buildsym.c (finish_block): Protect against null pointer.
3509 2002-09-10 Andrew Cagney <cagney@redhat.com>
3511 * infcmd.c (default_print_registers_info): Send all output to
3512 ``file'' instead of ``gdb_stdout''.
3514 2002-09-10 Michael Snyder <msnyder@redhat.com>
3516 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3517 LONGEST, and use signed register read (addresses are sign-
3520 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3522 * event-loop.c (gdb_do_one_event): Make public.
3523 * event-loop.h (gdb_do_one_event): Declare.
3525 2002-09-10 Jeff Law <law@redhat.com>
3527 * infttrace.c (child_resume): Simplify and rework to avoid
3530 2002-09-09 Fred Fish <fnf@intrinsity.com>
3532 * printcmd.c (print_scalar_formatted): "len" is the number of
3533 target bytes, NOT the number of target bits.
3535 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3537 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3538 * top.c (init_main): Set rl_terminal_name.
3540 2002-09-08 Aidan Skinner <aidan@velvet.net>
3542 * ada-lang.c (ada_array_bound, ada_type_match,
3543 _initialize_ada_language): Fix K&R definitions.
3544 * ada-tasks.c (get_current_task): Fix K&R definitions.
3545 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3547 2002-09-07 Christopher Faylor <cgf@redhat.com>
3549 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3552 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3554 * i386-tdep.c (i386_register_virtual_type,
3555 i386_register_convertible, i386_register_convert_to_virtual,
3556 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3557 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3558 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3559 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3560 Don't set push_arguments twice.
3562 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3563 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3564 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3565 sigtramp_end to NULL.
3566 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3568 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3570 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3573 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3574 * gdbarch.h, gdbarch.c: Re-generate.
3575 * blockframe.c (find_pc_sect_partial_function): Convert to use
3576 SIGTRAMP_START_P predicate.
3578 2002-09-05 Michael Snyder <msnyder@redhat.com>
3580 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3581 generic_dummy_frame method and old method. Also distinguish
3582 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3583 (arm_extract_return_value): Use new regcache method.
3585 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3586 adjustment that doesn't conform to the ABI.
3587 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3588 saved regcache, not from current regcache.
3590 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3592 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3595 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3597 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3598 if arm_apcs_32 is false.
3600 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3602 GDB 5.3 branch created.
3604 2002-09-03 Theodore A. Roth <troth@verinet.com>
3606 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3607 generic_unwind_get_saved_register.
3609 2002-09-03 David Carlton <carlton@math.stanford.edu>
3611 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3612 argument (PR gdb/653). Update call to smash_to_method_type.
3613 (read_structure_scope): Update call to dwarf2_add_member_fn.
3615 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3617 * x86-64-linux-tdep.c: Include gdb_string.h
3618 * x86-64-linux-nat.c: Ditto.
3620 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3622 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3623 when YYDEBUG is set to 1.
3624 * c-exp.y: Likewise.
3625 * f-exp.y: Likewise.
3626 * jv-exp.y: Likewise.
3627 * m2-exp.y: Likewise.
3628 * p-exp.y: Likewise.
3630 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3632 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3634 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3635 solib_svr4_fetch_link_map_offsets to
3636 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3637 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3638 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3639 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3640 solib-svr4.o, and solib-legacy.o.
3641 * config/i386/tm-nbsd.h: Include solib.h.
3643 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3645 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3646 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3647 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3648 comment noting that this needs its own target configuration.
3649 * config/i386/nbsd.mt: New file.
3650 * config/i386/nbsdaout.mt: Remove.
3651 * config/i386/nbsdelf.mt: Ditto.
3652 * config/i386/tm-nbsdaout.h: Ditto.
3654 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3656 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3657 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3658 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3660 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3661 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3662 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3664 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3666 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3667 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3668 * i386-tdep.h (i386bsd_init_abi): New prototype.
3669 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3670 function declaration.
3671 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3672 for NetBSD-a.out or NetBSD-ELF.
3673 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3674 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3675 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3676 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3678 (i386nbsd_pc_in_sigtramp): New function.
3679 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3680 i386nbsd_pc_in_sigtramp.
3681 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3682 and i386nbsdelf_init_abi OS ABI handlers.
3683 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3684 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3686 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3688 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3689 registers if the target really has them.
3691 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3693 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3696 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3698 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3700 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3701 (alphanbsd_skip_sigtramp_frame): New functions.
3702 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3703 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3704 to alphanbsd_sigcontext_addr.
3706 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3708 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3710 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3711 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3712 nbsd_pc_in_sigtramp.
3713 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3714 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3715 * nbsd-tdep.c: Include gdb_string.h.
3716 (nbsd_pc_in_sigtramp): New function.
3717 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3718 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3719 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3720 ppcnbsd_pc_in_sigtramp.
3721 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3722 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3723 shnbsd_pc_in_sigtramp.
3724 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3725 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3726 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3728 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3730 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3731 watchpoints to NULL.
3732 (insert_breakpoints): set val field of watchpoints if NULL.
3735 2002-08-29 Jim Blandy <jimb@redhat.com>
3737 * symtab.c (lookup_symbol_aux): In the cases where we find a
3738 minimal symbol of an appropriate name and use its address to
3739 select a symtab to read and search, use `name' (as passed to us)
3740 as the demangled name when searching the symtab's global and
3741 static blocks, not the minsym's name.
3743 2002-08-29 Keith Seitz <keiths@redhat.com>
3745 * stack.c (print_frame_info_base): Always set current_source_symtab
3746 and current_source_line.
3748 2002-08-29 Donn Terry <donnte@microsoft.com>
3750 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3752 2002-08-28 Keith Seitz <keiths@redhat.com>
3754 * stack.c (select_frame): Add FIXME concerning selected-frame
3756 (select_frame_command): Send selected-frame-level-changed
3757 event notification, but only if the level actually changed.
3758 (up_silently_base): Add selected-frame-level-changed event
3760 (down_silently_base): Likewise.
3762 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3764 * Makefile.in: Update dependencies for all gdb/*.c files.
3766 2002-08-27 Tom Tromey <tromey@redhat.com>
3768 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3769 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3770 Update dependencies.
3771 * i387-tdep.c: Include gdb_string.h.
3772 * osabi.c: Likewise.
3773 * i386-linux-nat.c: Likewise.
3774 * lin-lwp.c: Likewise.
3775 * ax-gdb.c: Likewise.
3776 * signals/signals.c: Likewise.
3777 * jv-valprint.c: Likewise.
3778 * p-lang.c: Likewise.
3779 * c-valprint.c: Likewise.
3780 * cp-abi.c: Likewise.
3782 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3784 * cli/cli-script.h (copy_command_lines): Export.
3785 * breakpoint.c: Include cli/cli-script.h.
3786 * Makefile.in (breakpoint.o): Update dependencies.
3788 2002-08-26 Michael Snyder <msnyder@redhat.com>
3790 * breakpoint.c (insert_breakpoints): Protect all references
3791 to 'process_warning'. Shorten long lines.
3793 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3795 * cli/cli-script.c (copy_command_lines): New function.
3796 * defs.h (copy_command_lines): Export.
3797 * testsuite/gdb.base/commands.exp: New tests for commands
3798 attached to a temporary breakpoint, and for commands that
3799 delete the breakpoint they are attached to.
3801 2002-08-26 Michael Snyder <msnyder@redhat.com>
3803 * breakpoint.c (bpstat_stop_status): Instead of copying the
3804 pointer to the breakpoint commands struct, make a new copy
3805 of the struct and point to that.
3806 (bpstat_clear): Free the commands struct.
3807 (bpstat_clear_actions): Free the commands struct.
3808 (bpstat_do_actions): Free the command actions. Also execute
3809 the local cleanups, instead of deleting them.
3810 (delete_breakpoint): Leave the commands field of the bpstat
3811 chain alone -- it will be freed later.
3813 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3815 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3816 deleted in 2002-08-20 commit. This function is still used by
3819 2002-08-26 Keith Seitz <keiths@redhat.com>
3821 * gdb-events.sh: Add selected-frame-level-changed event.
3822 * gdb-events.c: Regenerated.
3823 * gdb-events.h: Regenerated.
3825 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3828 * inflow.c (terminal_save_ours): New function to save terminal
3830 * inferior.h (terminal_save_ours): Declare.
3831 * target.c (debug_to_terminal_save_ours): New function.
3832 (cleanup_target): Defaults to_terminal_save_ours.
3833 (update_current_target): Inherit to_terminal_save_ours.
3834 (setup_target_debug): Set to_terminal_save_ours.
3835 * target.h (target_terminal_save_ours): New to save terminal settings.
3836 (target_ops): New member to_terminal_save_ours.
3837 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3838 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3839 * inftarg.c (init_child_ops): Likewise.
3840 * m3-nat.c (init_m3_ops): Likewise.
3841 * procfs.c (init_procfs_ops): Likewise.
3842 * wince.c (init_child_ops): Likewise.
3843 * win32-nat.c (init_child_ops): Likewise.
3844 * sol-thread.c (init_sol_thread_ops): Likewise.
3846 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3848 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3849 use regcache_* functions.
3850 (i386_gdbarch_init): Set store_return_value instead of
3851 deprecated_store_return_value.
3853 * regcache.c (regcache_raw_write_signed,
3854 regcache_raw_write_unsigned): New functions.
3855 * regcache.h (regcache_raw_write_signed,
3856 regcache_raw_write_unsigned): New prototypes.
3858 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3860 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3861 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3862 source file dependencies. Cleanup corresponding generator rules.
3864 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3866 * regcache.h (register_offset_hack): Declare.
3867 (regcache_cooked_read_using_offset_hack): Declare.
3868 (regcache_cooked_write_using_offset_hack): Declare.
3870 * regcache.c (register_offset_hack): New function.
3871 (regcache_cooked_read_using_offset_hack): New function.
3872 (regcache_cooked_write_using_offset_hack): New function.
3873 (regcache_dump): Check that the registers, according to their
3874 offset, are packed hard against each other.
3875 (cooked_xfer_using_offset_hack): New function.
3877 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3879 * regcache.c (struct regcache_descr): Add field register_type.
3880 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3882 (init_regcache_descr): Initialize register_type. Pass the descr
3883 to init_legacy_regcache_descr. Use register_type instead of
3884 REGISTER_VIRTUAL_TYPE.
3885 (register_type): New function.
3886 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3887 * regcache.h (register_type): Declare.
3889 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3891 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3892 instead of deprecated_store_return_value. Fix fallout from
3893 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3895 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3897 * regcache.c (max_register_size): New function.
3898 (init_legacy_regcache_descr): Ensure that max_register_size is
3899 large enough for REGISTER_VIRTUAL_SIZE.
3900 * regcache.h (max_register_size): Declare.
3902 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3904 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3906 (e500_extract_return_value): Change type of valbuf pointer to
3909 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3911 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3914 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3915 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3916 long long) to prevent compiler warning on 64-bit systems.
3918 2002-08-23 Andrew Cagney <cagney@redhat.com>
3920 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3921 (DEPRECATED_STORE_RETURN_VALUE): New method.
3922 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3923 * gdbarch.h, gdbarch.c: Re-generate.
3925 * values.c (set_return_value): Pass current_regcache to
3927 * arch-utils.h (legacy_store_return_value): Declare.
3928 * arch-utils.c (legacy_store_return_value): New function.
3929 (legacy_extract_return_value): Update parameters.
3931 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3933 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3934 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3935 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3936 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3937 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3938 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3939 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3940 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3941 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3942 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3945 * i386-tdep.c (i386_extract_return_value): Update.
3946 * arch-utils.c (legacy_extract_return_value): Update.
3947 * frv-tdep.c (frv_gdbarch_init): Update.
3948 * cris-tdep.c (cris_gdbarch_init): Update.
3949 * d10v-tdep.c (d10v_gdbarch_init): Update.
3950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3951 * m68k-tdep.c (m68k_gdbarch_init): Update.
3952 * mcore-tdep.c (mcore_gdbarch_init): Update.
3953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3954 * s390-tdep.c (s390_gdbarch_init): Update.
3955 * sparc-tdep.c (sparc_gdbarch_init): Update.
3956 * sh-tdep.c (sh_gdbarch_init): Update.
3957 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3958 * v850-tdep.c (v850_gdbarch_init): Update.
3959 * avr-tdep.c (avr_gdbarch_init): Update.
3960 * ia64-tdep.c (ia64_gdbarch_init): Update.
3961 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3962 * vax-tdep.c (vax_gdbarch_init): Update.
3963 * alpha-tdep.c (alpha_gdbarch_init): Update.
3964 * arm-tdep.c (arm_gdbarch_init): Update.
3965 * mips-tdep.c (mips_gdbarch_init): Update.
3966 * i386-tdep.c (i386_gdbarch_init): Update.
3968 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3970 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3971 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3973 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3975 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3978 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3980 * infrun.c (handle_inferior_event): Move a comment outside of a
3981 function call, in order to avoid indent reformatting this part
3982 of the code in an unreadable way.
3984 2002-08-23 Grace Sainsbury <graces@redhat.com>
3986 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3987 when breakpoints fail. Move general breakpoint error messages to
3989 * breakpoint.c (insert_breakpoints): Change warnings when
3990 breakpoints are nto inserted to specify the type. Remove call to
3991 memory_error when hardware breakpoints can't be inserted. Remove
3992 multiple calls to warning so all messages are sent to the user at
3994 (delete_breakpoints): Make insert error messsages more explicit.
3996 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3998 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3999 gdbserver/ChangeLog.
4001 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4003 * i386-tdep.c: Include "objfiles.h".
4004 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4005 skip_trampoline_code.
4006 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4007 (CPLUS_MARKER): Define to '.'.
4009 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4011 (linux_corefile_thread_callback): Increase args->num_notes.
4012 (linux_make_note_section): Initialize thread_args.num_notes, and
4013 use it to determine whether notes for any threads were created.
4015 2002-08-23 Donn Terry <donnte@microsoft.com>
4017 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4018 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4020 (write_with_trace): Conditionalize out the switch branch handling
4021 PCSHOLD if the corresponding macro is not defined. Likewise for
4022 PRSABORT and PRSTOP.
4023 This change will be needed by the Interix port.
4025 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4027 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4028 write_register wherever possible instead of manipulating the
4029 register bytes directly.
4030 Assign VALUE_CONTENTS to a variable and use that.
4031 The GPR numbers are now dependent on the architecture.
4033 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4035 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4037 (skip_prologue): Add support for BookE/e500 instructions.
4038 (e500_extract_return_value): New function.
4039 (frame_get_saved_regs): Add support for saving ev registers and
4041 (e500_store_return_value): New function.
4042 (rs6000_gdbarch_init): Move up default intializations of
4043 deprecated_extract_return_value and store_return_value. Overwrite
4044 init of store_return_value with e500 specific version.
4045 Set extract_return_value for e500.
4047 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4049 * blockframe.c (generic_call_dummy_register_unwind): Use
4050 regcache_cooked_read to catch cases in which the variable is
4051 stored in a pseudo register.
4053 2002-08-22 Andrew Cagney <cagney@redhat.com>
4055 * NEWS: Mention that the i960 has been made obsolete.
4056 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4058 (remote-nrom.o): Obsolete target.
4059 (remote-nindy.o, i960-tdep.o): Ditto.
4060 * remote-nrom.c: Make file obsolete.
4061 * remote-nindy.c, remote-vx960.c: Ditto.
4062 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4063 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4064 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4065 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4066 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4067 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4068 i960-*-vxworks* obsolete.
4069 * MAINTAINERS: Note that the i960 is obsolete.
4071 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4073 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4074 detach to allow reinitialization.
4076 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4078 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4081 2002-08-22 Jim Blandy <jimb@redhat.com>
4083 * coffread.c (coff_symfile_read): Don't try to read the line
4084 number table from disk if the image file doesn't have a symbol
4085 table; we'll never actually look at the info anyway, and Windows
4086 ships DLL's with bogus file offsets for the line number data.
4088 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4090 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4093 2002-08-21 Michael Snyder <msnyder@redhat.com>
4095 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4096 (MSYMBOL_SIZE): Replace macro with function.
4097 (DEFAULT_MIPS_TYPE): Delete unused macro.
4098 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4099 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4101 2002-08-21 Jim Blandy <jimb@redhat.com>
4103 * valops.c (value_cast): Simplify and correct logic for doing a
4104 static cast from a pointer to a base class to a pointer to a
4107 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4109 * infcmd.c (default_print_registers_info): Replace
4111 (registers_info): Use gdbarch_print_registers_info instead of
4113 * inferior.h (default_print_registers_info): Replace
4115 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4116 (DO_REGISTERS_INFO): Change to a predicate function.
4117 * gdbarch.h, gdbarch.c: Regenerate.
4119 2002-08-21 Keith Seitz <keiths@redhat.com>
4121 * gdb-events.sh: Add target-changed event.
4122 * gdb-events.c: Regenerated.
4123 * gdb-events.c: Regenerated.
4124 * valops.c (value_assign): Add target-changed event notification
4125 to inlval_register, lval_memory, and lval_reg_frame_relative.
4127 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4129 * NEWS: Add an entry regarding the improvement of the next/step
4130 operation on Alpha Tru64 multi-processor machines.
4132 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4134 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4136 * Makefile.in: Update all _h macro definitions.
4137 * Makefile.in (install-gdbtk): Move to install section.
4138 (rdi-share/libangsd.a): Move to end of file.
4140 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4142 * frame.c (frame_register_unwind): When a register, set addrp to
4143 the register's byte.
4145 2002-08-20 Michael Snyder <msnyder@redhat.com>
4147 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4148 used locally, so move them from the target machine header to here.
4149 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4150 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4152 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4154 2002-08-20 Andrew Cagney <cagney@redhat.com>
4156 * NEWS: Mention that the Apollo line was made obsolete.
4157 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4158 m68*-hp-hpux* obsolete.
4159 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4160 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4161 * buildsym.c (make_blockvector): Make static.
4162 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4163 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4164 (ALLDEPFILES): Remove dstread.c.
4165 (dstread.o): Obsolete make rule.
4166 * dstread.c: Makefile obsolete.
4168 * config/m68k/hp300hpux.mt: Ditto.
4169 * config/m68k/hp300hpux.mh: Ditto.
4170 * config/m68k/hp300bsd.mt: Ditto.
4171 * config/m68k/hp300bsd.mh: Ditto.
4172 * config/m68k/apollo68b.mt: Ditto.
4173 * config/m68k/apollo68v.mh: Ditto.
4174 * config/m68k/apollo68b.mh: Ditto.
4176 2002-08-20 Michael Snyder <msnyder@redhat.com>
4178 * mips-tdep.c (mips_in_return_stub): Make static.
4179 (mips_gdbarch_init): Set in_solib_return_trampoline.
4180 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4182 2002-08-20 Michael Snyder <msnyder@redhat.com>
4184 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4185 * gdbarch.c, gdbarch.h: Regenerate.
4186 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4188 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4190 2002-08-20 Michael Snyder <msnyder@redhat.com>
4192 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4193 (mips_gdbarch_init): Set skip_trampoline_code,
4194 in_solib_call_trampoline.
4195 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4196 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4198 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4200 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4202 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4203 vector type for ev registers.
4204 (e500_pseudo_register_read): New function.
4205 (e500_pseudo_register_write): New function.
4206 (e500_dwarf2_reg_to_regnum): New function.
4207 (PPC_UISA_NOFP_SPRS): New macro.
4208 (PPC_EV_REGS): New macro.
4209 (PPC_GPRS_PSEUDO_REGS): New macro.
4210 (registers_e500): New register set for e500.
4211 (variants): Add e500 variant.
4212 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4213 before setting architectural dependent variations. Initialize ev
4214 registers numbers. Add case for e500 architecture. Set the
4215 number of pseudo registers.
4217 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4219 * rs6000-tdep.c: Clean up comments.
4221 2002-08-20 Andrew Cagney <cagney@redhat.com>
4223 * h8300-tdep.c: Re-indent file.
4225 2002-08-20 Jim Blandy <jimb@redhat.com>
4227 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4230 2002-08-20 Keith Seitz <keiths@redhat.com>
4232 * breakpoints.c (watch_command_1): Use internal breakpoint
4233 when setting a watchpoint_scope breakpoint.
4235 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4237 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4238 (build_builtin_type_vec64i): Ditto.
4239 (build_builtin_type_vec128): Ditto.
4240 (build_builtin_type_vec128i): Ditto.
4242 2002-08-19 Michael Snyder <msnyder@redhat.com>
4244 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4245 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4246 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4247 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4248 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4249 CALL_DUMMY_ADDRESS): Delete.
4250 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4251 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4252 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4253 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4254 push_return_address.
4255 (mips_register_raw_size, mips_eabi_use_struct_convention,
4256 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4257 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4258 mips_init_extra_frame_info, mips_eabi_push_arguments,
4259 mips_n32n64_push_arguments, mips_push_return_address,
4260 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4261 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4263 2002-08-19 Michael Snyder <msnyder@redhat.com>
4265 * mips-tdep.c (mips_frame_num_args): New function.
4266 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4267 frame_saved_pc, frame_args_address, frame_locals_address,
4268 frame_num_args, and frame_args_skip.
4269 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4270 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4271 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4272 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4274 2002-08-20 Michael Snyder <msnyder@redhat.com>
4276 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4277 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4278 * mips-tdep.c (mips_store_struct_return): New function.
4279 (mips_extract_struct_value_address): New function.
4280 (mips_gdbarch_init): Set store_struct_return and
4281 extract_struct_value_address.
4283 2002-08-20 David Carlton <carlton@math.stanford.edu>
4285 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4286 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4287 (read_file_scope): Check that line_header is nonzero before
4288 decoding macro information.
4290 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4292 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4293 flag the general-purpose registers as floating-point on targets
4294 that don't support the floating-point registers.
4296 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4298 * rs6000-tdep.c (altivec_register_p): Delete.
4299 (rs6000_do_altivec_registers): Delete.
4300 (rs6000_altivec_registers_info): Delete.
4301 (rs6000_do_registers_info): Delete.
4302 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4303 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4305 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4307 * infcmd.c (do_registers_info): Print vector registers in hex
4309 (print_vector_info): Check that printing registers
4311 (print_float_info): Ditto.
4313 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4315 * mips-tdep.c (mips_gdbarch_init): Update.
4316 (mips_o32_extract_return_value): Rewrite.
4317 (mips_o32_store_return_value): Rewrite.
4318 (mips_o32_xfer_return_value): New function.
4319 (mips_xfer_register): Tweak debug print message. Allow for
4320 buf_offset when dumping the value transfered.
4322 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4324 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4325 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4326 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4327 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4328 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4330 2002-08-14 Michael Snyder <msnyder@redhat.com>
4332 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4334 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4336 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4338 (P): New macro to define a register as a pseudo register.
4339 (R, R4, R8, R16, FR32, R64, R0): Updated.
4340 (struct variant): Add new fields for number of pseudo registers
4341 and number of total registers.
4342 (tot_num_registers): New macro replacing....
4343 (num_registers): ...deleted macro.
4344 (num_registers): New function.
4345 (num_pseudo_registers): New function.
4346 (variants): Update all variants to intialize new fields correctly.
4347 Postpone initialization of number of pseudo regs and real regs.
4348 (init_variants): New function.
4349 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4352 2002-08-19 David Carlton <carlton@math.stanford.edu>
4354 * valops.c (search_struct_field): Change error message to treat
4355 return value of 0 from value_static_field as meaning that field is
4357 (value_struct_elt_for_reference): Ditto.
4358 * values.c (value_static_field): Treat an unresolved location the
4359 same as a nonexistent symbol. Fix PR gdb/635.
4360 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4361 enclosed. Fix PR gdb/574.
4362 * MAINTAINERS: Add self to Write After Approval list.
4364 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4366 * mips-tdep.c (mips_xfer_register): New function.
4367 (mips_n32n64_extract_return_value): Rewrite.
4368 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4369 instead of deprecated_extract_return_value.
4371 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4373 * rs6000-tdep.c (TDEP): Delete macro.
4374 (branch_dest): Replace use of TDEP macro with its body.
4375 (rs6000_pop_frame): Ditto.
4376 (rs6000_push_arguments): Ditto.
4377 (rs6000_skip_trampoline_code): Ditto.
4378 (rs6000_frame_saved_pc): Ditto.
4379 (rs6000_frame_chain): Ditto.
4380 (rs6000_register_name): Ditto.
4381 (rs6000_register_byte): Ditto.
4382 (rs6000_register_raw_size): Ditto.
4383 (rs6000_register_virtual_type): Ditto.
4384 (rs6000_register_convertible): Ditto.
4385 (rs6000_convert_from_func_ptr_addr): Ditto.
4387 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4389 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4391 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4392 MIPS_LINUX_JB_ELEMENT_SIZE.
4393 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4394 for MAX_REGISTER_RAW_SIZE arrays.
4395 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4396 MIPS_LINUX_JB_ELEMENT_SIZE.
4398 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4400 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4402 2002-08-19 Aidan Skinner <aidan@velvet.net>
4404 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4405 ada-valprint.c ada-tasks.c.
4406 (YYFILES): Add ada-exp.y.
4407 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4408 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4409 (ada-exp.tab.o): New target.
4411 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4413 * regcache.c (regcache_xfer_part): New function.
4414 (regcache_raw_read_part): New function.
4415 (regcache_raw_write_part): New function.
4416 (regcache_cooked_read_part): New function.
4417 (regcache_cooked_write_part): New function.
4418 * regcache.h (regcache_raw_read_part): Declare.
4419 (regcache_raw_write_part): Declare.
4420 (regcache_cooked_read_part): Declare.
4421 (regcache_cooked_write_part): Declare.
4423 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4425 * remote.c (remote_open_1): Add async_p.
4426 (remote_async_open_1): Delete.
4427 (open_remote_target): Delete.
4428 (remote_open, extended_remote_open): Update calls to remote_open_1.
4429 (remote_async_open, extended_remote_async_open): Call
4430 remote_open_1 instead of remote_async_open_1.
4432 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4434 * blockframe.c: Fix a few coding standard violations.
4436 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4438 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4440 * config/i386/tm-i386sco5.h: ... here. File removed.
4441 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4443 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4444 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4445 (TM_FILE): Set to tm-i386.h.
4446 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4447 * config/i386/tm-i386v.h: Remove file.
4448 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4449 instead of "i386/tm-i386v.h".
4450 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4451 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4453 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4454 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4457 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4459 * config/i386/nm-i386v.h: Add protection against
4461 (i386_register_u_addr): Remove prototype.
4462 (register_u_addr): New prototype.
4463 (REGISTER_U_ADDR): Redefine accordingly.
4464 * i386v-nat.c: Improve several comments.
4465 (i386_register_u_addr): Change signature and rename to
4466 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4469 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4471 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4472 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4473 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4474 deprecated_extract_return_value.
4475 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4476 rename mips_o32o64_push_arguments.
4477 (mips_gdbarch_init): Update.
4478 (mips_extract_return_value): Delete.
4479 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4480 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4481 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4482 (mips_n32n64_extract_return_value): Clone
4483 mips_extract_return_value.
4484 (mips_store_return_value): Delete.
4485 (mips_o32_store_return_value): Clone mips_store_return_value.
4486 (mips_o64_store_return_value): Clone mips_store_return_value.
4487 (mips_eabi_store_return_value): Clone mips_store_return_value.
4488 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4490 2002-08-18 Aidan Skinner <aidan@velvet.net>
4492 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4493 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4495 2002-08-18 Aidan Skinner <aidan@velvet.net>
4497 * ada-lang.c: Run through gdb_indent.sh.
4498 * ada-lang.h: Run through gdb_indent.sh.
4499 * ada-tasks.c: Run through gdb_indent.sh.
4500 * ada-typeprint.c: Run through gdb_indent.sh.
4501 * ada-valprint.c: Run through gdb_indent.sh.
4503 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4505 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4508 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4510 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4512 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4513 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4515 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4516 write_register_gen instead of write_register_bytes.
4518 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4519 i[3456]-*-osf1mk* configurations have been made obsolete.
4520 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4521 i[3456]86-*-osf1mk* hosts obsolete.
4522 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4524 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4525 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4526 config/i386/i386m3.mt, config/i386/nm-m3.h,
4527 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4528 config/i386/i386mk.mh, config/i386/i386mk.mt,
4529 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4531 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4532 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4533 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4535 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4537 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4538 (hppa_value_returned_from_stack): Declare.
4539 (hppa_extract_return_value): Declare.
4540 * config/pa/hppa.mt: New file.
4541 * configure.tgt: Recognize hppa*-*-*.
4542 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4544 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4546 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4549 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4551 * top.c (gdb_rl_operate_and_get_next): Make sure
4552 operate-and-get-next functions correctly even when the history
4553 list is completely filled.
4555 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4557 * MAINTAINERS (Target Instruction Set Architectures): Rename
4558 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4559 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4560 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4561 already listed under Host/Native.
4563 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4564 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4567 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4569 * config/ia64/ia64.mt: New file.
4570 * config/alpha/alpha.mt: New file.
4571 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4572 ia64-linux-gnu. Mention that ia64-elf is broken.
4573 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4575 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4577 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4578 generic_func_frame_valid instead of func_frame_valid.
4580 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4582 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4583 procfs appears to be broken when debugging on multi-processor
4584 machines. So enable software single stepping in order to avoid
4585 using the procfs interface to do next/step operations, using
4586 internal breakpoints instead.
4588 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4589 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4590 make this pc address equal to the value it would have if the
4591 system stepping capability was used. Also set a new flag used
4592 to ensure that we don't readjust the PC one more time later.
4594 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4595 address by DECR_PC_AFTER_BREAK when software single step is
4596 in use for this architecture, as this has already been taken
4597 care of in handle_inferior_event().
4599 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4601 * infrun.c (handle_inferior_event): Minor reformatting, to make
4602 a rather long condition expression easier to read.
4604 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4606 * Makefile.in (gdbtk.o): Move to end of file.
4607 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4608 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4609 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4610 (gdbtk-wrapper.o, gdbres.o): Ditto.
4612 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4614 * Makefile.in (copying.o): Separate out compile rule.
4615 (hpux-thread.o, procfs.o, signals.o): Ditto.
4616 (v850ice.o, z8k-tdep.o): Ditto.
4617 (tui-file.o): Move to TUI section.
4618 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4619 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4621 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4623 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4624 skip_trampoline_code, for better namespace-proofing.
4626 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4628 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4630 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4632 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4634 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4635 signal, check whether we hit a breakpoint before checking for a
4636 single step breakpoint. Otherwise, GDB fails to notice that a
4637 breakpoint has been hit when stepping onto a breakpoint.
4639 2002-08-16 Keith Seitz <keiths@redhat.com>
4641 * gdb-events.sh (clear_gdb_event_hooks): New function.
4642 * gdb-events.c: Regenerate.
4643 * gdb-events.h: Regenerate.
4645 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4647 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4648 not_a_sw_breakpoint.
4649 * breakpoint.h (bpstat_stop_status): Add parameter names.
4651 2002-08-16 Grace Sainsbury <graces@redhat.com>
4653 * remote.c (remote_insert_hw_breakpoint)
4654 (remote_remove_hw_breakpoint): Fix calculation of length field
4657 2002-08-15 Michael Snyder <msnyder@redhat.com>
4659 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4660 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4661 (supply_fpregset): Ditto.
4663 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4664 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4665 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4666 (TARGET_READ_SP): Delete.
4667 (DO_REGISTERS_INFO): Delete.
4668 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4670 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4671 from macros to functions.
4673 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4674 (mips_register_convertible, mips_register_convert_to_virtual,
4675 mips_register_convert_to_raw): Make static.
4676 (mips_read_sp): New function.
4677 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4678 (mips_do_registers_info): Make static.
4679 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4680 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4681 (mips_register_convert_from_type, mips_register_convert_to_type):
4683 (mips_gdbarch_init): Set up function_start_offset,
4684 register_virtual_size, pc_in_sigtramp.
4686 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4688 * infcmd.c (vector_info): New function.
4689 (_initialize_infcmd): Add command "info vector".
4690 (print_vector_info): New function.
4692 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4693 * gdbarch.h, gdbarch.c: Regenerate.
4695 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4697 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4698 ``print_all''. Only print vector registers when ``print_all''.
4700 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4702 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4703 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4705 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4706 Add `args' parameter.
4707 * gdbarch.h, gdbarch.c: Regenerate.
4709 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4711 * infcmd.c (float_info): Call print_float_info.
4712 (print_float_info): New function. By default, print the
4713 floating-point registers.
4715 * arch-utils.h (default_print_float_info): Delete declaration.
4716 * arch-utils.c (default_print_float_info): Delete function.
4718 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4720 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4723 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4726 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4727 * configure.host: Make i[3456]86-*-aix host obsolete.
4728 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4729 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4730 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4731 config/i386/xm-i386aix.h: Make files obsolete.
4732 * i386aix-nat.c: Make file obsolete.
4733 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4734 (i386aix-nat.o): Make target obsolete.
4736 * config/i386/nm-gnu.h: Removed.
4737 * config/i386/nm-i386gnu.h: New file.
4738 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4739 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4741 * config/i386/tm-i386gnu.h: ... here. Removed.
4742 * config/i386/xm-i386gnu.h: Removed.
4743 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4744 (NAT_FILE): Set to nm-i386gnu.h.
4745 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4746 * i386-tdep.c: New file.
4747 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4748 (i386gnu-tdep.o): Specify dependencies.
4750 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4752 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4753 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4754 Adjust a few comments to reflect reality a bit closer.
4755 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4756 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4757 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4758 target_insert_watchpoint, target_remove_watchpoint):
4760 * config/i386/nm-i386sco5.h: ... here.
4761 (kernel_u_size): Add prototype. Improve a few comments and add
4762 protection against multiple inclusion.
4764 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4767 * uw-thread.c (SP_ARG0): Define if not already defined.
4768 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4770 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4772 * config/i386/tm-i386.h: Don't include "regcache.h".
4774 * i387-tdep.h (i387_print_float_info): New prototype.
4775 * i387-tdep.c (print_i387_value, print_i387_ext,
4776 print_i387_status_word, print_i387_control_word): Add `struct
4777 ui_file *' argument and use it for output.
4778 (i387_print_float_info): Renamed from i387_float_info. Add
4779 `struct gdbarch *' and `struct ui_file *' arguments and use the
4781 * i386-tdep.c: Include "i387-tdep.h".
4782 (i386_gdbarch_init): Set print_float_info.
4783 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4784 (FLOAT_INFO): Remove define.
4786 2002-08-13 Michael Snyder <msnyder@redhat.com>
4788 * mips-tdep.c (mips_push_arguments): Rename to
4789 mips_eabi_push_arguments, and tune for EABI.
4790 (MIPS_REGS_HAVE_HOME_P): Delete.
4791 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4792 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4793 Delete references to mips_regs_have_home_p.
4795 2002-08-14 Keith Seitz <keiths@redhat.com>
4797 * Makefile.in (install-gdbtk): Create insight plugin directory.
4798 Install plugins.tcl file.
4800 2002-08-14 Keith Seitz <keiths@redhat.com>
4802 * configure.in: Move SUBDIRS to near top of the file so that
4803 --enable options may add things to it.
4804 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4805 * configure: Regenerate.
4807 2002-08-13 Michael Snyder <msnyder@redhat.com>
4809 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4810 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4811 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4813 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4815 * vax-tdep.c (vax_get_saved_register): Delete function.
4816 (vax_gdbarch_init): Update.
4817 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4818 (ns32k_gdbarch_init): Update.
4819 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4820 (alpha_gdbarch_init): Update.
4822 2002-08-13 Andrew Cagney <cagney@redhat.com>
4824 * regcache.c (init_regcache_descr): Overallocate the
4825 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4826 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4828 (set_register_cached): Add range checking assertions. Use
4831 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4833 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4834 numbers for MMX registers.
4836 2002-08-13 Andrew Cagney <cagney@redhat.com>
4838 * i386-tdep.c (i386_gdbarch_init): Use
4839 generic_unwind_get_saved_register.
4841 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4843 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4844 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4846 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4847 Delete. Add comment regarding this now-deleted target method.
4849 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4851 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4852 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4853 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4854 real PC and the page number (if it's within the memory bank window).
4855 (m68hc11_pseudo_register_write): Likewise when saving.
4856 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4857 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4858 (m68hc11_register_raw_size): And use 32-bit for it.
4859 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4860 16K memory bank is used by the prog; also use the virtual pc.
4862 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4864 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4865 (m68hc11_gdbarch_init): Install it in gdbarch.
4866 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4867 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4868 (MSYMBOL_SIZE): New for documentation.
4869 (insn_return_kind): Enum to specify how a function returns.
4870 (frame_extra_info): Cleanup and record the return mode.
4871 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4872 register in address computation.
4873 (m68hc11_get_return_insn): New to obtain the return instruction used
4875 (m68hc11_frame_init_saved_regs): Take into account the return
4876 instruction used by the function for far and interrupt functions.
4877 (m68hc11_init_extra_frame_info): Take into account page register.
4878 (m68hc11_frame_args_address): Adjust according to the return mode.
4879 (show_regs): Print page register only when it's used.
4881 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4883 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4884 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4885 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4887 (m68hc11_register_raw_size): Likewise.
4889 2002-08-13 Andrew Cagney <cagney@redhat.com>
4891 * i386-tdep.c (i386_register_name): Handle mmx registers.
4892 (mmx_regnum_p): New function.
4893 (i386_mmx_names): New array.
4894 (mmx_num_regs): New variable.
4895 (i386_pseudo_register_read): New function.
4896 (i386_pseudo_register_write): New function.
4897 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4899 * regcache.c (regcache_raw_read_unsigned): New function.
4900 (regcache_raw_read_signed): New function.
4901 * regcache.h (regcache_raw_read_unsigned): Declare.
4902 (regcache_raw_read_signed): Declare.
4904 2002-08-13 Andrew Cagney <cagney@redhat.com>
4906 * regcache.c (regcache_raw_read_as_address): Delete function.
4907 (regcache_cooked_read_signed): New function.
4908 (regcache_cooked_read_unsigned): New function.
4909 * regcache.h (regcache_cooked_read_signed): Declare.
4910 (regcache_cooked_read_unsigned): Declare.
4911 (regcache_raw_read_as_address): Delete declaration.
4913 * blockframe.c (generic_read_register_dummy): Use
4914 regcache_cooked_read_unsigned.
4915 * i386-tdep.c (i386_extract_struct_value_address): Use
4916 regcache_cooked_read_unsigned.
4918 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4921 double sizes according to ELF ABI flags.
4922 (gdbarch_tdep): Record elf_flags.
4924 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4926 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4927 (m6812_prolog): They can appear in 68HC12 function prologue.
4928 (m68hc11_frame_chain): Cleanup.
4930 2002-08-12 Andrew Cagney <cagney@redhat.com>
4932 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4934 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4935 (i386_linux_register_raw_size): Delete function.
4936 (i386_linux_init_abi): Update.
4937 * i386-tdep.c (i386_register_raw_size): Delete function.
4938 (i386_register_byte): Delete function.
4939 (i386_gdbarch_init): Update.
4940 (i386_register_size): Delete array.
4941 (i386_register_offset): Delete array.
4943 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4944 (REGISTER_RAW_SIZE): Delete macro.
4945 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4946 (REGISTER_BYTE): Delete macro.
4948 2002-08-11 Aidan Skinner <aidan@velvet.net>
4950 * ada-lang.c (ada_lookup_partial_symbol)
4951 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4952 prototype names so that grep ^func works properly.
4954 * ada-lang.c (ada_array_element_type)
4955 (ada_lookup_partial_symbol): Fix typos in parameter list.
4957 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4958 Fix prototype names so that grep ^func works properly.
4960 2002-08-10 Andrew Cagney <cagney@redhat.com>
4961 Elena Zannoni <ezannoni@redhat.com>
4962 Martin M. Hunt <hunt@redhat.com>
4964 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4965 (build_builtin_type_vec128i): Set the vector bit.
4966 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4967 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4968 (build_builtin_type_vec64): New function.
4969 (build_builtin_type_vec64i): New function.
4970 (build_gdbtypes): Initialize builtin_type_vec64 and
4971 builtin_type_vec64i.
4973 2002-08-09 Andrew Cagney <cagney@redhat.com>
4975 * regcache.c (regcache_dump): Compare the register offset
4977 * arch-utils.c (generic_register_byte): New function.
4978 * arch-utils.h (generic_register_byte): Declare.
4979 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4980 * gdbarch.h, gdbarch.c: Regenerate.
4982 2002-08-09 Andrew Cagney <cagney@redhat.com>
4984 * regcache.c: Include "gdbcmd.h"
4985 (_initialize_regcache): Add commands "maintenance print
4986 registers", "maintenance print raw-registers" and "maintenance
4987 print cooked-registers".
4988 (enum regcache_dump_what): Define.
4989 (dump_endian_bytes): New function.
4990 (regcache_dump): New function.
4991 (regcache_print): New function.
4992 (maintenance_print_registers): New function.
4993 (maintenance_print_raw_registers): New function.
4994 (maintenance_print_cooked_registers): New function.
4995 * Makefile.in (regcache.o): Update dependencies.
4997 2002-08-09 Michael Snyder <msnyder@redhat.com>
4999 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5000 (mips_push_arguments): Correct some comments. Use paddr_nz
5001 for printing addresses in debug output. Replace static
5002 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5003 (mips_n32n64_push_arguments): New function, cloned from
5004 mips_push_arguments and tuned for the n32/n64 ABI.
5005 (mips_push_register): Buffer needs dynamic allocation.
5006 (mips_print_register): Ditto.
5007 (do_gp_register_row): Ditto.
5008 (mips_store_return_value): Ditto.
5009 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5011 2002-08-09 Don Howard <dhoward@redhat.com>
5013 * memattr.c (mem_info_command): Print special case of upper bound
5014 as max CORE_ADDR + 1.
5016 2002-08-08 Michael Snyder <msnyder@redhat.com>
5018 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5019 returns structs by ref if they're too big to fit in two registers.
5021 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5023 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5025 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5026 mips_find_saved_regs().
5027 (mips_pop_frame): Likewise.
5029 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5031 * blockframe.c (frame_saved_regs_register_unwind): Revise
5032 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5035 2002-08-09 Grace Sainsbury <graces@redhat.com>
5037 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5038 T-packets; the 'a' is not taken as a register number.
5039 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5040 (remote_stopped_data_address): New functions; add to target
5042 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5043 prototypes to match other implementations of this
5044 function. replace integer argument with pointer -- the length
5045 field in the Z-packet is the length of what is pointed to or 1 if
5046 pointer is null. Add to target vector.
5047 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5051 * remote.c (remote_wait): Add support to extract optional
5052 watchpoint information from T-packet. Ignore unrecognized
5053 optional info in T-packet.
5054 (remote_async_wait): Ditto.
5056 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5058 * cli/cli-dump.c: Change fopen modes to use binary open modes
5059 as defined in include/fopen-bin.h throughout.
5061 2002-08-08 Michael Snyder <msnyder@redhat.com>
5063 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5065 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5067 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5068 assertion failure by returning early after a warning.
5070 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5072 * mips-tdep.c (mips_find_saved_regs): Make static.
5073 (mips_frame_init_saved_regs): New function.
5074 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5075 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5076 (mips_find_saved_regs): Delete declaration.
5078 2002-08-08 Grace Sainsbury <graces@redhat.com>
5080 * remote.c (remote_wait, remote_async_wait): Change
5081 thread_num from int to ULONGEST.
5082 (unpack_varlen_hex): Change result parameter from
5083 int * to ULONGEST *.
5085 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5087 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5088 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5090 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5092 2002-08-08 Andrew Cagney <cagney@redhat.com>
5094 * gcore.c (override_derive_stack_segment): Delete variable.
5095 (preempt_derive_stack_segment): Delete function.
5096 (derive_stack_segment): Delete function.
5097 (default_derive_stack_segment): Renamed to derive_stack_segment.
5098 (override_derive_heap_segment): Delete variable.
5099 (preempt_derive_heap_segment): Delete function.
5100 (derive_heap_segment): Delete function.
5101 (default_derive_heap_segment): Rename to derive_heap_segment.
5103 2002-08-06 Michael Snyder <msnyder@redhat.com>
5105 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5106 * mips-tdep.c (mips_EABI_use_struct_convention,
5107 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5108 New functions. (mips_use_struct_convention): Delete.
5109 (mips_gdbarch_init): set use_gdbarch_convention.
5111 2002-08-06 Michael Snyder <msnyder@redhat.com>
5113 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5114 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5115 mips_o32_reg_struct_has_addr): New functions.
5116 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5118 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5120 * regcache.c (pseudo_register): Delete function.
5121 (fetch_register): Delete function.
5122 (store_register): Delete function.
5123 (regcache_raw_read, legacy_read_register_gen): Use
5124 target_fetch_registers instead of fetch_register.
5125 (legacy_write_register_gen, regcache_raw_write): Use
5126 target_store_register instead of store_register.
5127 (write_register_bytes): Ditto.
5129 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5130 (STORE_PSEUDO_REGISTER): Delete.
5131 * gdbarch.h, gdbarch.c: Regenerate.
5133 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5135 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5136 write dump file binary.
5138 2002-08-05 Michael Snyder <msnyder@redhat.com>
5140 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5141 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5142 (mips_gdbarch_init): Set N32 target to be mips64.
5144 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5146 * frame.c (find_saved_register): Break out of loop once saved
5147 register address is found. Don't mention sparc in loop comment
5150 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5152 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5153 mips_default_saved_regsize to 8.
5155 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5157 * gcore.c: Do not include <sys/procfs.h>.
5158 * Makefile.in (gcore.o): Update dependencies.
5160 2002-08-06 Andrew Cagney <cagney@redhat.com>
5162 * configure.tgt: Make arc-*-* obsolete.
5163 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5164 * MAINTAINERS: Make arc-elf obsolete.
5165 * arc-tdep.c: Make file obsolete.
5166 * config/arc/arc.mt: Ditto.
5167 * config/arc/tm-arc.h: Ditto.
5169 2002-08-05 Theodore A. Roth <troth@verinet.com>
5171 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5173 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5175 * mcore-tdep.c (mcore_gdbarch_init): Use
5176 generic_unwind_get_saved_register instead of
5177 generic_get_saved_register.
5178 * v850-tdep.c (v850_gdbarch_init): Ditto.
5179 * frv-tdep.c (frv_gdbarch_init): Ditto.
5180 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5181 * s390-tdep.c (s390_gdbarch_init): Ditto.
5182 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5183 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5184 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5186 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5188 * objfiles.h: Add missing #include "symfile.h"
5190 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5192 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5194 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5195 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5198 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5200 * NEWS: Cleanup and nitpick.
5202 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5204 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5206 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5208 * Makefile.in (gdbtk-bp.o): Update dependencies.
5209 (gdbtk-register.o): Ditto.
5210 (gdbtk-varobj.o): Ditto.
5212 2002-08-03 Andrew Cagney <cagney@redhat.com>
5214 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5215 m68hc11_fetch_pseudo_register.
5216 (m68hc11_pseudo_register_write): Replace
5217 m68hc11_store_pseudo_register.
5218 (m68hc11_gdbarch_init): Update.
5220 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5222 * gdbarch.sh: Include "gdb_string.h".
5223 * gdbarch.c: Regenerate.
5225 * regcache.c: Include "gdb_string.h".
5226 * ax-general.c: Ditto.
5228 * std-regs.c: Ditto.
5229 * fbsd-proc.c: Ditto.
5232 * Makefile.in (regcache.o): Update dependencies.
5233 (thread.o, gdbarch.o): Ditto.
5234 (ax-general.o, gdbarch.o): Ditto.
5235 (varobj.o, std-regs.o): Ditto.
5236 (fbsd-proc.o): Specify dependencies.
5238 2002-08-02 Andrew Cagney <cagney@redhat.com>
5240 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5242 (regcache_cooked_write): Ditto.
5244 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5246 * regcache.c (regcache_cooked_read): New function.
5247 (regcache_cooked_write): New function.
5248 (read_register_gen): Rewrite using regcache_cooked_read.
5249 (write_register_gen): Rewrite using regcache_cooked_write.
5251 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5254 2002-08-02 Andrew Cagney <cagney@redhat.com>
5256 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5257 Replace the architecture methods register_read and register_write.
5258 * gdbarch.h, gdbarch.c: Regenerate.
5259 * regcache.c (init_regcache_descr): Update.
5260 (read_register_gen): Update.
5261 (write_register_gen): Update.
5262 (supply_register): Update comment.
5264 * sh-tdep.c (sh_gdbarch_init): Update.
5265 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5266 `regcache' and `gdbarch' parameters. Make `buffer' a void
5267 pointer. Update code.
5268 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5269 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5270 void pointer. Update code.
5271 (sh64_register_write): Delete.
5272 (sh4_register_read): Delete.
5273 (sh64_register_read): Delete.
5274 (sh4_register_write): Delete.
5275 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5276 void pointer, `to' parameter a void pointer.
5277 (sh_sh64_register_convert_to_raw): Ditto.
5279 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5281 * mips-tdep.c (mips_register_virtual_type): Use architecture
5282 invariant return values.
5284 2002-08-01 Andrew Cagney <cagney@redhat.com>
5286 * linux-proc.c: Include "gdb_string.h".
5287 * Makefile.in (linux-proc.o): Update dependency list.
5289 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5291 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5294 2002-08-01 Grace Sainsbury <graces@redhat.com>
5296 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5297 to_insert_watchpoint, to_remove_watchpoint,
5298 to_stopped_by_watchpoint, to_stopped_data_address,
5299 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5300 target vecctor. Define their corresponding macros so they call
5303 * target.c: Add default and debug versions of for
5304 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5305 to_insert_watchpoint, to_remove_watchpoint,
5306 to_stopped_by_watchpoint, to_stopped_data_address,
5307 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5309 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5311 * mips-tdep.c (mips_register_virtual_type): New function.
5312 (mips_gdbarch_init): Register mips_register_virtual_type()
5313 with gdbarch machinery.
5314 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5315 this file instead of tm-bigmips.h.
5316 (MIPS_REGSIZE): Delete this macro.
5317 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5318 multiarch version in mips-tdep.c will be found.
5320 2002-08-01 Andrew Cagney <cagney@redhat.com>
5322 * NEWS: Menion that CHILL has been made obsolete.
5324 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5325 * stabsread.c (read_range_type): Ditto.
5326 * gdbtypes.h: Ditto.
5327 * language.c (binop_type_check): Ditto.
5328 (binop_result_type): Ditto.
5329 (integral_type): Ditto.
5330 (character_type): Ditto.
5331 (string_type): Ditto.
5332 (boolean_type): Ditto.
5333 (structured_type): Ditto.
5334 (lang_bool_type): Ditto.
5335 (binop_type_check): Ditto.
5336 * language.h (_LANG_chill): Ditto.
5337 * dwarfread.c (set_cu_language): Ditto.
5338 * dwarfread.c (CHILL_PRODUCER): Ditto.
5339 * dwarfread.c (handle_producer): Ditto.
5340 * expression.h (enum exp_opcode): Ditto.
5341 * eval.c: Ditto for comments.
5342 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5343 * expprint.c (print_subexp): Ditto.
5344 (print_subexp): Ditto.
5345 * valops.c (value_cast): Ditto.
5346 (search_struct_field): Ditto.
5347 * value.h (COERCE_VARYING_ARRAY): Ditto.
5348 * symfile.c (init_filename_language_table): Ditto.
5349 (add_psymbol_with_dem_name_to_list): Ditto.
5350 * valarith.c (value_binop): Ditto.
5352 * valops.c (value_slice): Ditto.
5353 * symtab.h (union language_specific): Ditto.
5354 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5355 (SYMBOL_DEMANGLED_NAME): Ditto.
5356 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5357 * defs.h (enum language): Ditto.
5358 * symtab.c (got_symtab): Ditto.
5359 * utils.c (fprintf_symbol_filtered): Ditto.
5361 * ch-typeprint.c: Make file obsolete.
5362 * ch-valprint.c: Make file obsolete.
5363 * ch-lang.h: Make file obsolete.
5364 * ch-exp.c: Make file obsolete.
5365 * ch-lang.c: Make file obsolete.
5367 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5369 (TARGET_FLAGS_TO_PASS): Ditto.
5370 (CHILLFLAGS): Obsolete.
5372 (CHILL_FOR_TARGET): Obsolete.
5373 (CHILL_LIB): Obsolete.
5374 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5376 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5377 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5379 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5382 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5384 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5385 This does not change anything at the moment, but will be helpful
5386 later when full Ada support is integrated.
5388 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5390 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5393 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5395 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5396 and save it in a local variable. Use variable in later test.
5398 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5400 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5401 test. (Thanks to Daniel Jacobowitz.)
5403 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5405 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5406 (mips_abi_strings): Add "n64".
5407 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5409 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5411 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5412 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5414 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5416 * utils.c (host_pointer_to_address, address_to_host_pointer):
5417 Use gdb_assert() instead of explicit call to internal_error().
5419 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5421 * Makefile.in (rs6000-nat.o): Update dependencies.
5423 From Nicholas Duffek:
5424 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5425 (aix-thread.o): New rule.
5426 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5427 * config/powerpc/aix432.mh: New file.
5429 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5431 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5432 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5433 (fetch_core_registers, ppc_linux_supply_gregset)
5434 (ppc_linux_supply_fpregset): New functions.
5435 (ppc_linux_regset_core_fns): New.
5436 (_initialize_ppc_linux_tdep): Call add_core_fns.
5437 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5438 and ppc_linux_supply_gregset.
5439 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5440 (supply_fpregset): Call ppc_linux_supply_fpregset.
5441 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5443 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5445 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5447 * symtab.c (lookup_symbol): Demangle before lowercasing.
5449 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5451 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5453 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5454 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5455 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5456 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5458 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5459 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5460 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5461 (avr-tdep.o, mon960-rom.o): Ditto.
5462 (aout_stabs_gnu_h): Define.
5463 (symtab_h): Remove $(gdb_obstack_h).
5465 2002-07-30 Jim Blandy <jimb@redhat.com>
5467 Patch from David Carlton <carlton@math.stanford.edu>:
5468 * gdbinit.in: Move the `dir' commands that add GDB's own source
5469 directory to the search path to the end, so that the `gdb' source
5470 directory will be searched first.
5472 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5474 * gdb_obstack.h: New file.
5475 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5476 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5477 * objfiles.h: Include "gdb_obstack.h".
5478 * Makefile.in (gdb_obstack_h): Define.
5479 (symtab_h): Add $(gdb_obstack_h).
5480 (objfiles_h): Add $(gdb_obstack_h).
5482 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5483 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5484 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5485 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5486 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5487 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5488 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5489 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5491 * Makefile.in (bcache.o): Update dependencies.
5492 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5493 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5494 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5495 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5496 (stabsread.o, symfile.o, symmisc.o): Ditto.
5497 (symtab.o, typeprint.o, macroexp.o): Ditto.
5498 (macrotab.o, mdebugread.o): Ditto.
5499 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5500 (coff_ecoff_h, aout_aout64_h): Define.
5501 (aout_stabs_gnu_h, libaout_h): Define.
5503 2002-07-29 Andrew Cagney <cagney@redhat.com>
5505 * regcache.c (struct regcache_descr): Rename nr_registers to
5506 nr_cooked_registers. Revise comments describing the structure
5508 (init_regcache_descr): Update.
5509 (init_legacy_regcache_descr): Update.
5510 (read_register_gen, write_register_gen): When a cooked register in
5511 the raw register range, directly access the value from the raw
5514 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5516 * z8k-tdep.c: Do not include "obstack.h".
5517 * h8300-tdep.c, h8500-tdep.c: Ditto.
5518 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5519 * valprint.c, v850-tdep.c: Ditto.
5520 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5521 * mn10200-tdep.c: Ditto.
5523 * Makefile.in (z8k-tdep.o): Update dependencies.
5524 (m68hc11-tdep.o, valprint.o): Ditto.
5525 (v850-tdep.o, d10v-tdep.o): Ditto.
5526 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5527 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5528 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5529 (sh_opc_h, gdb_sim_sh_h): Define.
5530 (elf_sh_h, elf_bfd_h): Define.
5531 (opcode_m68hc11_h): Define.
5532 (OPCODES_SRC, OPCODES_DIR): define.
5533 (OPCODES): Use $(OPCODES_DIR).
5534 (gdb_sim_d10v_h): Rename sim_d10v_h.
5535 (gdb_sim_arm_h): Rename sim_arm_h.
5537 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5539 * utils.c (host_pointer_to_address, address_to_host_pointer):
5540 Change internal_error() message to indicate function responsible
5543 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5545 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5546 calls to local_hex_string_custom().
5548 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5550 * irix5-nat.c: Move IRIX shared library support from here...
5551 * solib-irix.c: ...to here. Revised substantially to work with
5552 generic solib framework.
5554 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5555 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5556 * mips-irix-tdep.c: New file.
5558 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5559 (mips-irix-tdep.o, solib-irix.o): New rules.
5560 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5562 * config/mips/irix6.mt (TDEPFILES): Likewise.
5563 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5565 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5567 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5568 disabled (via ``#if 0'') includes.
5570 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5572 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5573 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5574 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5575 Add support for the fpscr register.
5576 * rs6000-nat.c (regmap, fetch_inferior_registers)
5577 (store_inferior_registers, fetch_core_registers): Likewise.
5579 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5581 * rs6000-nat.c (language.h): Include.
5582 (special_regs): Delete this array.
5583 (regmap): New function.
5584 (fetch_register, store_register): Use regmap() to map gdb
5585 register numbers to ptrace register numbers. Also, use
5586 outputs from regmap() to make decisions regarding type of
5587 ptrace() call to make. In particular, don't compare against
5588 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5589 (fetch_inferior_registers, store_inferior_registers): Where
5590 possible, obtain register numbers from tdep struct. Don't
5591 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5592 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5593 (LAST_UISA_SP_REGNUM): Delete.
5595 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5597 * rs6000-nat.c (ppc-tdep.h): Include.
5598 (fetch_registers, store_register, fetch_core_registers): Don't
5599 access registers[] directly. Instead, use supply_register() or
5600 regcache_collect() as appropriate.
5601 (find_toc_address): Format hex address with local_hex_string().
5603 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5605 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5608 2002-07-24 Tom Tromey <tromey@redhat.com>
5610 * jv-exp.y: Marked all strings with _().
5611 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5613 (MethodInvocation, CastExpression, parse_number, yyerror,
5614 java_type_from_name, push_expression_name, yylex): Typo fixes.
5616 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5618 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5619 (tee_file_flush, tee_file_write, tee_file_fputs)
5620 (tee_file_isatty): New.
5621 * ui-file.h (tee_file_new): Add prototype.
5623 2002-07-24 Aidan Skinner <aidan@velvet.net>
5625 * ada-lang.c: Change k&r style function definitions to prototyped
5627 * ada-typeprint.c: Change k&r style function definitions to prototyped
5629 * ada-valprint.c: Change k&r style function definitions to prototyped
5632 2002-07-24 Andrew Cagney <cagney@redhat.com>
5634 * README: Remove reference to remote-bug.
5635 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5637 (m88k-nat.o): Delete rule.
5638 (m88k-tdep.o): Delete rule.
5639 (remote-bug.o): Delete rule.
5640 * MAINTAINERS: Mark as obsolete.
5641 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5642 * m88k-tdep.c: Make file obsolete.
5643 * config/m88k/m88k.mh: Ditto.
5644 * config/m88k/delta88v4.mh: Ditto.
5645 * config/m88k/delta88v4.mt: Ditto.
5646 * config/m88k/delta88.mt: Ditto.
5647 * config/m88k/delta88.mh: Ditto.
5648 * remote-bug.c: Ditto.
5649 * config/m88k/tm-delta88.h: Ditto.
5650 * config/m88k/nm-delta88v4.h: Ditto.
5651 * config/m88k/xm-delta88.h: Ditto.
5652 * config/m88k/xm-dgux.h: Ditto.
5653 * config/m88k/tm-m88k.h: Ditto.
5654 * config/m88k/nm-m88k.h: Ditto.
5655 * config/m88k/tm-delta88v4.h: Ditto.
5656 * m88k-nat.c: Ditto.
5657 * cxux-nat.c: Ditto.
5658 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5659 and m88*-*-* obsolete.
5660 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5663 2002-07-24 Andrew Cagney <cagney@redhat.com>
5665 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5666 constant. Same for local pointer variables.
5667 (extract_signed_integer): Ditto.
5668 * defs.h (extract_unsigned_integer): Update.
5669 (extract_signed_integer): Update.
5671 2002-07-24 Andrew Cagney <cagney@redhat.com>
5673 * regcache.c (regcache_raw_write): Change buf parameter to a
5674 constant void pointer.
5675 (regcache_raw_read): Change buf parameter to a void pointer.
5676 (legacy_write_register_gen): Change myaddr parameter a constant
5678 (supply_register): Change val parameter to a const void pointer.
5679 * regcache.h (regcache_raw_write): Update declaration.
5680 (regcache_raw_read): Update declaration.
5681 (supply_register): Update declaration.
5683 2002-07-24 Tom Tromey <tromey@redhat.com>
5685 * defs.h (gdb_readline_wrapper): Declare.
5686 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5687 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5688 * top.c (gdb_readline_wrapper): New function.
5689 (command_line_input): Use it.
5691 2002-07-24 Andrew Cagney <cagney@redhat.com>
5693 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5694 regcache_read and regcache_write.
5695 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5696 * regcache.c: Update.
5697 * sh-tdep.c (sh64_push_arguments): Update comment.
5698 (sh_pseudo_register_read): Update.
5699 (sh_pseudo_register_write): Update.
5700 (sh4_register_read): Update.
5701 (sh4_register_write): Update.
5702 (sh64_pseudo_register_read): Update.
5703 (sh64_pseudo_register_write): Update.
5704 (sh64_register_read): Update.
5705 (sh64_register_write): Update.
5706 * i386-tdep.c (i386_extract_return_value): Update.
5707 (i386_extract_struct_value_address): Update.
5708 (i386_extract_return_value): Update.
5709 * blockframe.c (generic_read_register_dummy): Update.
5710 (generic_call_dummy_register_unwind): Update
5711 * infrun.c (write_inferior_status_register): Update.
5713 2002-07-23 Jim Blandy <jimb@redhat.com>
5715 * parser-defs.h (expression_context_pc): Make this extern.
5716 (Thanks to Michael Snyder.)
5718 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5720 GDB 5.2.1 released from 5.2 branch.
5721 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5722 * README: Update to mention 5.2.1.
5724 2002-07-23 Mark Salter <msalter@redhat.com>
5726 * remote.c (remote_read_bytes): Fix check for error.
5728 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5730 * aix-thread.c (language.h): Include.
5731 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5732 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5733 Print newlines at end of debug messages.
5734 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5735 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5737 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5739 * aix-thread.c (ppc-tdep.h): Include.
5740 (special_register_p): New function.
5741 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5742 (store_regs_user_thread): Use register number information from
5743 gdbarch_tdep struct instead of hardcoded offsets relative to
5744 FIRST_UISA_SP_REGNUM.
5745 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5746 special_register_p() instead of using FPLAST_REGNUM and
5747 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5748 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5749 will be MQ's register number.
5751 2002-07-22 Michael Snyder <msnyder@redhat.com>
5753 * aix-thread.c (ops): Rename to aix_thread_ops.
5754 (base_ops): Rename to base_target.
5755 (ops_attach): Rename to aix_thread_attach.
5756 (ops_detach): Rename to aix_thread_detach.
5757 (ops_resume): Rename to aix_thread_detach.
5758 (ops_wait): Rename to aix_thread_wait.
5759 (ops_kill): Rename to aix_thread_kill.
5760 (init_ops): Rename to init_aix_thread_ops.
5761 (ops_fetch_register): Rename to aix_thread_fetch_register.
5762 (ops_store_register): Rename to aix_thread_store_register.
5763 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5764 (ops_thread_alive): Rename to aix_thread_thread_alive.
5765 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5766 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5767 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5768 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5769 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5770 (store_regs_lib): Rename to store_regs_user_thread.
5771 (store_regs_kern): Rename to store_regs_kernel_thread.
5773 2002-07-22 Michael Snyder <msnyder@redhat.com>
5775 * aix-thread.c (ops_prepare_to_store): Eliminate.
5776 (init_ops): Don't initialize ops.prepare_to_store.
5777 (store_regs_kern): Pre-fetch register buffers from child,
5778 because some registers may not be in the cache. Copy
5779 regs from register cache only if they are cached.
5780 (store_regs_lib): Copy regs from register cache only
5782 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5783 fill_gprs64): Ditto.
5785 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5787 * aix-thread.c (gdb_assert.h): Include.
5788 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5789 register sizes (from register cache) match size of buffer holding
5791 (fill_sprs32): Change parameter types to match those in the ptrace()
5793 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5794 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5796 2002-07-22 Michael Snyder <msnyder@redhat.com>
5798 * aix-thread.c (supply_sprs64): Cosmetic change.
5799 (supply_sprs32): Cosmetic change.
5800 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5801 (fill_sprs64): Use regcache_collect instead of read_register.
5802 (store_regs_lib): Use regcache_collect instead of
5803 read_register. Use fill_sprs32 instead of fill_sprs64,
5804 if debugging a 32-bit architecture.
5805 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5806 out of the register cache, instead of passing a pointer into
5807 the register cache directly to ptrace. Use regcache_collect
5808 insteaad of read_register.
5809 (ops_prepare_to_store): Use target_read_registers instead
5810 of read_register_bytes.
5812 2002-07-20 Aidan Skinner <aidan@velvet.net>
5814 * MAINTAINERS: Add self under write after approval.
5816 2002-07-20 Aidan Skinner <aidan@velvet.net>
5818 * ada-tasks.c: Change k&r style function definitions to prototyped
5821 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5823 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5824 * x86-64-tdep.c: Include "objfiles.h".
5825 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5826 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5828 2002-07-17 Michal Ludvig <michal@suse.cz>
5830 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5831 (update_context): Initialise cfa variable.
5833 2002-07-17 Michael Snyder <msnyder@redhat.com>
5835 * aix-thread.c: Shorten some long lines.
5836 Bring comments into line with code spec.
5838 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5840 * infrun.c: Re-indent using gdb_indent.sh.
5842 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5844 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5845 Leave the indentation temporarily untouched, to minimize the diffs.
5847 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5849 * stabsread.c: Make os9k sections of the code obsolete,
5851 * stabsread.h: Make os9k sections of the code obsolete.
5853 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5855 * linux-low.c (regsets_store_inferior_registers): Add free()
5856 at the end of a loop to prevent memory leak.
5857 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5858 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5859 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5861 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5863 2002-07-17 Jim Blandy <jimb@redhat.com>
5865 * macrocmd.c (info_macro_command): Remove newline from error
5868 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5870 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5871 (sh_gdbarch_init): Use it for sh-dsp.
5873 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5875 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5876 64-bit DWARF2 format.
5878 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5880 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5881 <sys/proc.h> when not available.
5883 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5885 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5886 * stabsread.c: Make os9k sections of the code obsolete.
5887 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5888 * config/i386/i386os9k.mt: Make file obsolete.
5889 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5890 (COMMON_OBS): Remove os9kread.o
5891 (SFILES): Remove os9kread.c.
5892 (os9kread.o, remote-os9k.o): Make target obsolete.
5893 * remote-os9k.c: Make file obsolete.
5894 * os9kread.c: Make file obsolete.
5897 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5899 * NEWS: Mention that the FR30 has been made obsolete.
5900 * fr30-tdep.c: Make file obsolete.
5901 * config/fr30/tm-fr30.h: Ditto.
5902 * config/fr30/fr30.mt: Ditto.
5903 * configure.tgt: Make fr30-*-elf obsolete.
5904 * MAINTAINERS: Make fr30-elf obsolete.
5906 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5908 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5909 found is not inside a section.
5911 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5913 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5915 (pdc_realloc): Use xrealloc() instead of realloc().
5917 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5919 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5920 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5921 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5924 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5926 * aix-thread.c (ptrace_check): Eliminate goto.
5927 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5930 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5932 * aix-thread.c (gdbcmd.h): Include.
5933 (DEBUG, DBG, DBG2, dbg): Eliminate.
5934 (debug_aix_thread): New static global.
5935 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5936 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5937 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5938 invocations to DBG and DBG2 macros to test against
5939 ``debug_aix_thread'' and call fprintf_unfiltered().
5940 (_initialize_aix_thread): Add new command "set debug aix-thread".
5942 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5944 From Gerhard Tonn <TON@de.ibm.com>:
5945 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5946 instead of supply_register.
5948 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5950 * dwarf2cfi.c: Include "gdb_assert.h".
5951 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5953 (update_context): Do not use __func__. Add missing ``break''.
5954 (update_context): Do not use __func__.
5956 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5958 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5959 and its setting. Set gdbarch instruction printing functions
5960 directly. For non-rs6000 case use new function
5961 gdb_print_insn_powerpc.
5962 (gdb_print_insn_powerpc): New function.
5964 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5966 * NEWS: Mention that the d30v has been marked obsolete.
5967 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5968 * configure.tgt: Mark d30v-*-* as obsolete.
5969 * d30v-tdep.c: Mark file as obsolete.
5970 * config/d30v/d30v.mt: Ditto.
5971 * config/d30v/tm-d30v.h: Ditto.
5973 2002-07-13 Aidan Skinner <aidan@velvet.net>
5975 * ada-tasks.c (add_task_entry): replace calls to
5976 malloc() with xmalloc
5977 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5979 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5980 ada_finish_decode_line_1, all_sals_for_line
5981 ada_breakpoint_rewrite): replace calls to free() with xfree()
5983 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5985 From Nicholas Duffek (with minor changes by Martin Hunt,
5986 Louis Hamilton, and Kevin Buettner):
5987 * aix-thread.c: New file.
5989 2002-07-12 Petr Sorfa <petrs@caldera.com>
5991 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5992 complaint for invalid attribute class or form.
5993 (read_func_scope): DW_AT_frame_base
5994 better handling of DW_AT_block*.
5995 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5996 better handling of DW_AT_block*.
5997 (read_common_block): DW_AT_location
5998 better handling of DW_AT_block*.
5999 (read_partial_die): DW_AT_location better handling
6001 (new_symbol): DW_AT_external better handling of
6002 DW_AT_block*. Proper initialization of variable
6004 (attr_form_is_block): New function that returns true
6005 if the attribute's form is of DW_FORM_block*.
6007 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6009 * valops.c (find_method_list): Remove comment about
6010 removed STATIC_MEMFUNCP argument.
6011 (value_find_oload_method_list): Likewise.
6013 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6015 From Nicholas Duffek:
6016 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6017 target_new_objfile_hook.
6019 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6021 From Nicholas Duffek:
6022 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6025 2002-07-12 Andrew Cagney <cagney@redhat.com>
6027 * MAINTAINERS: Mention --enable-sim-build-warnings.
6028 (m68hc11-elf): Disable sim build warnings.
6029 (m32r-elf): Mark as broken obsolete candidate.
6030 (x86_64-linux-gnu): Mark as buildable with -Werror.
6031 (arm-elf): Change -w to ``,'' which enables warnings but not
6034 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6036 * bcache.h: Update copyright.
6037 (struct bstring, struct bcache): Move definition to "bcache.c".
6038 Replaced by opaque declaration.
6039 (bcache_xfree): Replace free_bcache.
6040 (bcache_xmalloc, bcache_memory_used): Declare.
6042 * bcache.c: Update copyright.
6043 (struct bstring, struct bcache): Moved to here from "bcache.h".
6045 (bcache_xmalloc, bcache_memory_used): New functions.
6046 (bcache_xfree): Replace function free_bcache.
6048 * Makefile.in (objfiles.o): Add $(bcache_h).
6049 (objfiles_h): Remove $(bcache_h).
6050 (symfile.o): Add $(bcache_h).
6052 * symmisc.c: Update copyright.
6053 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6054 (print_objfile_statistics): Use bcache_memory_used.
6056 * symfile.c: Include "bcache.h".
6057 (reread_symbols): Use bcache_xfree.
6058 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6059 (add_psymbol_to_list): Pass psymbol_cache by value.
6060 (add_psymbol_with_dem_name_to_list): Ditto.
6062 * objfiles.h: Update copyright.
6063 (struct bcache): Declare opaque. Do not include "bcache.h".
6064 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6066 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6068 * objfiles.c: Include "bcache.h". Update copyright.
6069 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6071 (free_objfile): Use bcache_xfree.
6073 2002-07-11 Grace Sainsbury <graces@redhat.com>
6075 * monitor.c (monitor_fetch_register): Make name a constant.
6076 (monitor_store_register): Same.
6078 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6080 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6081 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6082 (finish_block) For non-function blocks, hash the symbol table. For
6083 function blocks, mark the symbol table as unhashed.
6084 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6085 (msymbol_hash_iw): Likewise.
6086 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6088 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6089 (lookup_minimal_symbol): Likewise for both.
6090 * symtab.h (struct block): Add `hashtable' flag. Comment the
6092 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6093 (ALL_BLOCK_SYMBOLS): Update.
6094 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6095 (struct symbol): Add `hash_next' pointer.
6096 * symtab.c (lookup_block_symbol): Search using the hash table when
6098 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6099 (search_symbols, find_addr_symbol): Likewise.
6101 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6102 (read_dst_symtab): Likewise.
6103 * jv-lang.c (get_java_class_symtab): Likewise.
6104 * mdebugread.c: Include "gdb_assert.h".
6105 (shrink_block): Assert that the block being modified is not hashed.
6106 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6107 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6109 (dump_symtab): Recognize hashed blocks.
6110 * printcmd.c (print_frame_args): Assert that function blocks do not
6111 have hashed symbol tables.
6112 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6113 (fill_in_ada_prototype, debug_print_block): Likewise.
6114 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6116 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6118 * stack.c (print_frame): Use result of frame_address_in_block()
6119 instead of fi->pc when evaluating symbols.
6120 (backtrace_command_1): Ditto.
6122 2002-07-11 Andrew Cagney <cagney@redhat.com>
6124 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6127 * arm-tdep.c (arm_register_name): Make return type constant.
6129 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6131 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6133 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6134 * s390-tdep.c (s390_fp_regnum): Ditto.
6135 (s390_read_fp): Ditto.
6136 (s390_pop_frame): Ditto.
6137 (_initialize_s390_tdep): Ditto.
6138 * remote.c (get_remote_state): Ditto.
6139 * procfs.c (mappingflags): Ditto.
6140 * memattr.c (_initialize_mem): Ditto.
6141 * mcore-tdep.c (mcore_pop_frame): Ditto.
6142 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6143 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6144 * language.c (set_case_str): Ditto.
6145 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6146 * frv-tdep.c (new_variant): Ditto.
6147 (frv_stopped_data_address): Ditto.
6148 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6149 (context_alloc): Ditto.
6150 (frame_state_alloc): Ditto.
6151 (unwind_tmp_obstack_init): Ditto.
6152 (unwind_tmp_obstack_free): Ditto.
6153 (cfi_read_fp): Ditto.
6154 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6155 (cris_pop_frame): Ditto.
6156 * c-lang.c (scanning_macro_expansion): Ditto.
6157 (finished_macro_expansion): Ditto.
6158 (c_preprocess_and_parse): Ditto.
6159 * gdbarch.sh: Ditto.
6160 * gdbarch.h, gdbarch.c: Regenerate.
6161 * config/mn10200/tm-mn10200.h: Adjust indentation.
6162 * target.c: Adjust indentation.
6163 * symtab.h: Adjust indentation.
6164 * stabsread.h: Adjust indentation.
6165 * remote-es.c: Adjust indentation.
6166 * os9kread.c: Adjust indentation.
6168 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6170 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6171 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6173 2002-07-10 Grace Sainsbury <graces@redhat.com>
6175 * NEWS: Mention m68k, mcore multi-arching.
6176 * MAINTAINERS: Change status of m68k, mcore to reflect
6179 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6181 * valops.c (find_overload_match): Free oload_syms.
6183 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6185 Define HAVE_SYS_PROC_H if sys/proc.h exists
6186 * configure.in: Add check for sys/proc.h
6187 * config.in: Regenerate.
6188 * configure: Regenerate.
6190 2002-07-09 Grace Sainsbury <graces@redhat.com>
6192 * config/m68k/tm-m68k.h: Remove macros wrapped in
6193 #if !GDB_MULTI_ARCH.
6195 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6197 * config.in, configure: Regenerate.
6199 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6201 * dwarf2cfi.c: Include "gcore.h".
6202 (execute_stack_op): Fix implementation of the
6203 DW_OP_deref and DW_OP_deref_size operators by letting do their
6204 lookup in the target.
6206 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6208 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6209 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6212 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6214 Fix PR gdb/595, gdb/602
6215 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6216 Don't call value_cast, just read the vtable pointer; update comments
6219 2002-07-05 Grace Sainsbury <graces@redhat.com>
6221 * config/mcore/tm-mcore.h: Remove file.
6222 * config/mcore/mcore.mt: Remove definition of TM_FILE
6223 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6225 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6227 * i386bsd-tdep.c: Include "gdb_string.h".
6229 2002-07-04 Grace Sainsbury <graces@redhat.com>
6231 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6232 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6234 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6235 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6236 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6237 (RETVAL_REGNUM): Move macros from tm-mcore.h
6238 (mcore_reg_struct_has_addr): New function.
6239 (mcore_gdbarch_init): Added initializations for the macros removed
6242 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6244 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6245 traditonal string branding within the ELF header.
6247 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6249 * symtab.c (remove_params): New function.
6250 (make_symbol_overload_list): Use it instead of cplus_demangle.
6251 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6253 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6255 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6257 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6259 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6260 and tdep->sigtramp_end.
6261 * i386obsd-nat.c: New file.
6262 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6264 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6265 Don't call get_current_frame().
6267 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6269 * i386-nat.c (child_post_startup_inferior): New function
6270 calling i386_cleanup_dregs if
6271 I386_USE_GENERIC_WATCHPOINTS is defined.
6272 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6273 conditional to acknowledge that i386-nat.c has its
6274 own child_post_startup_inferior function.
6276 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6278 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6279 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6280 instead of MAX_REGISTER_RAW_SIZE.
6281 (i386_extract_return_value, i386_extract_struct_value_address):
6282 Convert to use regcache.
6283 (i386_gdbarch_init): Set max_register_raw_size and
6284 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6285 Set extract_return_value and extract_struct_value_address instead
6286 of their deprecated variants.
6288 Convert i386 target to generic dummy frames.
6289 * i386-tdep.c: Include "symfile.h".
6290 (i386_frameless_signal_p): Consider a function to be frameless if
6291 the pc points at the first instruction of the function.
6292 (i386_frame_chain): Handle (generic) call dummies.
6293 (i386_frame_saved_pc): Likewise.
6294 (i386_frame_init_saved_regs): Remove code dealing with call
6295 dummies on the stack.
6296 (i386_push_dummy_frame): Removed.
6297 (i386_call_dummy_words): Removed.
6298 (i386_fix_call_dummy): Removed.
6299 (i386_push_return_address): New function.
6300 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6301 parameter, and don't call get_current_frame.
6302 (i386_pop_frame): New function.
6303 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6304 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6305 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6306 call_dummy_length to 0, set call_dummy_words to NULL, set
6307 sizeof_call_dummy_words to 0, set fix_call_dummy to
6308 generic_fix_call_dummy, set pc_in_call_dummy to
6309 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6310 generic_push_dummy_frame, set push_return_address to
6311 i386_push_return_address and set frame_chain_valid to
6312 generic_file_frame_chain_valid.
6314 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6316 * gdbarch.sh (struct regcache): Add opaque declaration.
6317 (EXTRACT_RETURN_VALUE): New architecture method.
6318 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6319 * gdbarch.h, gdbarch.c: Regenerate.
6320 * arch-utils.c (legacy_extract_return_value): New function.
6321 * arch-utils.h (legacy_extract_return_value): Declare.
6322 * values.c (value_being_returned): Re-enable code handling
6323 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6324 deprecated_grub_regcache_for_registers call to block handling
6325 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6326 (EXTRACT_RETURN_VALUE): Do not define.
6328 2002-07-03 Grace Sainsbury <graces@redhat.com>
6330 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6331 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6332 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6333 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6334 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6335 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6336 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6337 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6338 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6339 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6340 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6341 argument so the function fits the prototype in the architecture
6343 (mcore_pop_frame): Remove argument so the function fits the
6344 prototype. Use get_current_frame instead of the argument.
6345 (mcore_push_arguments): Change type of struct_return so the
6346 function can be used in the architecture vector.
6347 (mcore_store_struct_return): Add.
6348 (mcore_frame_init_saved_regs): Add.
6349 (mcore_gdbarch_init): Add function calls to replace the macros
6350 removed from tm-mcore.h
6352 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6354 * infcmd.c (print_return_value): Remove compatibility code calling
6355 deprecated_grub_regcache_for_registers.
6357 * values.c: Include "regcache.h".
6358 (value_being_returned): Update. Use
6359 deprecated_grub_regcache_for_registers to extract the register
6361 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6362 ``struct regcache''.
6363 * Makefile.in (values.o): Add dependency on $(regcache_h).
6365 * inferior.h (run_stack_dummy): Change type of second parameter to
6366 a ``struct regcache''.
6367 * valops.c (hand_function_call): Change type of retbuf to ``struct
6368 regcache''. Allocate using regcache_xmalloc, clean using
6369 make_cleanup_regcache_xfree.
6370 * infcmd.c (run_stack_dummy): Update. Use
6371 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6373 * regcache.c (do_regcache_xfree): New function.
6374 (make_cleanup_regcache_xfree): New function.
6375 * regcache.h (make_cleanup_regcache_xfree): Declare.
6377 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6379 * event-top.c (command_line_handler): Don't read past
6380 beginning of buffer.
6382 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6384 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6386 (varobj_create): Store frame_id for root.
6387 (varobj_gen_name): Use xasprintf.
6388 (varobj_update): Save and restore frame using get_frame_id() and
6390 (create_child): Use xasprintf.
6391 (new_root_variable): Initialize frame_id.
6392 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6393 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6394 to prevent memory leak.
6396 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6398 * valops.c (hand_function_call): Move declaration of retbuf to
6399 start of function, allocate using malloc, add a cleanup but before
6400 the inf_status cleanup, cleanup the buffer. Rename local variable
6401 old_chain to inf_status_cleanup.
6403 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6405 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6407 * cli/cli-decode.c (cmd_func_p): New function.
6408 (cmd_func): New function.
6410 * command.h: Add cmd_func() and cmd_func_p().
6412 2002-07-03 Grace Sainsbury <graces@redhat.com>
6414 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6415 (REGISTER_SIZE): Remove.
6416 (MAX_REGISTER_RAW_SIZE): Remove.
6417 (REGISTER_VIRTUAL_TYPE): Remove.
6418 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6419 (REGISTER_NAME): Remove.
6420 (USE_GENERIC_DUMMY_FRAMES): Remove.
6421 (CALL_DUMMY): Remove.
6422 (CALL_DUMMY_START_OFFSET): Remove.
6423 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6424 (CALL_DUMMY_LOCATION): Remove.
6425 (FIX_CALL_DUMMY): Remove.
6426 (CALL_DUMMY_ADDRESS): Remove.
6427 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6428 (SAVE_DUMMY_FRAME_TOS): Remove.
6429 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6430 (mcore_register_virtual_type): New function.
6431 (mcore_register_byte): New function.
6432 (mcore_register_size): New function.
6433 (mcore_register_name): New function.
6434 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6435 macros removed from tm-mcore.h.
6436 (mcore_dump_tdep): Add.
6437 (_initialize_mcore_tdep): Add gdbarch_register call.
6439 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6441 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6442 frameless_look_for_prologue, such that we actually call this
6445 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6447 * frame.h (frame_address_in_block): New function.
6449 * blockframe.c (frame_address_in_block): New function extracted
6450 from get_frame_block().
6451 (get_frame_block): Use frame_address_in_block().
6452 (block_innermost_frame): Use frame_address_in_block() to match
6453 the frame pc address against the block boundaries rather than
6454 the frame pc directly. This prevents a failure when a frame pc
6455 is actually a return-address pointing immediately after the end
6458 2002-07-02 Grace Sainsbury <graces@redhat.com>
6460 * MAINTAINERS: Add self under write after approval.
6462 2002-07-02 Grace Sainsbury <graces@redhat.com>
6464 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6465 used in architecture vector. The default is
6466 m68k_local_breakpoint_from_pc.
6467 (m68k_local_breakpoint_from_pc): Add.
6468 (enum): Add register numbers from tm-m68k.h.
6469 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6471 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6472 GDB_MULTI_ARCH_PARTIAL.
6473 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6474 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6476 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6477 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6478 to enum in m68k-tdep.c
6480 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6482 * solib-osf.c (open_map): Compute the list of shared libraries
6483 loaded by the inferior, rather than the list of libraries loaded
6484 by GDB itself. Otherwise, GDB ends up reading the symbols from
6485 the wrong shared libraries...
6487 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6489 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6490 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6492 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6494 (FRAMELESS_SIGNAL): Remove function.
6495 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6496 i386_linux_saved_pc_after_call): Removed.
6497 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6498 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6499 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6501 * i386-tdep.c (i386_frameless_signal_p): New function.
6502 (i386_frame_chain): Deal with frameless signals.
6503 (i386_sigtramp_saved_sp): New function.
6504 (i386_frame_saved_pc): Deal with frameless signals.
6505 (i386_saved_pc_after_call): Make sure the correct value is
6506 returned just after entry into a sigtramp.
6507 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6508 i386fbsd4_sc_sp_offset): New variables.
6509 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6510 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6511 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6512 similiar to what we already did for sc_pc_offset.
6513 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6516 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6518 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6520 * config/i386/tm-x86-64linux.h: New.
6521 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6523 * config/i386/nm-x86-64.h: Rename to ...
6524 * config/i386/nm-x86-64linux.h: ... this one.
6525 * config/i386/x86-64linux.mh: Reflect the above change.
6527 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6529 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6530 with sigcontext_addr. Add sc_sp_offset.
6531 (i386bsd_sigtramp_saved_pc): Remove prototype.
6532 (i386bsd_sicontext_addr): Add prototype.
6533 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6534 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6535 (i386_svr4_sigtramp_saved_pc): Removed.
6536 (i386_svr4_sigcontext_addr): New function.
6537 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6538 Initialize tdep->sigcontext_addr instead. Initialize
6539 tdep->sc_pc_offset and tdep->sc_sp_offset.
6540 (i386_gdbarch_init): Likewise.
6541 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6543 (i386bsd_sigtramp_saved_pc): Remove function.
6544 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6545 Initialize tdep->sigcontext_addr instead. Initialize
6547 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6548 of tdep->sigtramp_saved_pc.
6549 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6550 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6553 * i386-tdep.c (i386_frameless_function_invocation,
6554 i386_frame_num_args, i386_frame_init_saved_regs,
6555 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6556 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6557 i386_extract_return_value, i386_store_return_value,
6558 i386_extract_struct_value_address, i386_register_virtual_type,
6559 i386_register_convertible, i386_register_convert_to_virtual,
6560 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6561 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6564 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6566 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6568 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6569 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6570 this macro. Include "value.h".
6572 2002-06-30 Aidan Skinner <aidan@velvet.net>
6574 * ada-exp.tab.c: remove as it's a generated file
6575 * ada-lex.c: remove as it's a generated file
6577 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6579 * config/i386/tm-i386.h (struct frame_info, struct
6580 frame_saved_regs, struct value, struct type): Remove forward
6583 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6584 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6585 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6586 (FILL_FPXREGSET): Define.
6588 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6590 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6591 i[3456]86-*-netbsd* case.
6592 * config/i386/tm-obsd.h: Removed.
6593 * config/i386/obsd.mt: Removed.
6594 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6596 (MH_CFLAGS): Add -DYYDEBUG=0.
6598 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6599 i386nbsd_sc_pc_offset on OpenBSD too.
6601 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6602 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6603 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6605 * i386bsd-tdep.c: Include "arch-utils.h".
6606 (i386bsd_aout_in_solib_call_trampoline): New function.
6607 (i386bsd_init_abi): Set in_solib_call_trampoline to
6608 i386bsd_aout_in_solib_call_trampoline.
6609 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6610 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6612 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6614 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6615 (struct obstack, struct bcache): Add opaque declarations.
6616 * Makefile.in (macrotab_h): Update
6618 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6620 * blockframe.c (generic_find_dummy_frame): Change return type to
6621 ``struct regcache''.
6622 (struct dummy_frame): Replace field ``registers'' with regcache, a
6623 struct regcache object.
6624 (generic_find_dummy_frame): Update.
6625 (generic_push_dummy_frame): Update. Use regcache_xfree,
6626 regcache_xmalloc and regcache_cpy.
6627 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6629 (deprecated_generic_find_dummy_frame): Update.
6630 (generic_read_register_dummy): Update. Use
6631 regcache_read_as_address.
6632 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6633 (generic_get_saved_register): Update. Use regcache_read.
6635 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6637 * Makefile.in (objfiles_h): Add $(bcache_h).
6638 * objfiles.h: Include "bcache.h".
6640 * Makefile.in (symtab_h): Remove $(bcache_h).
6641 * symtab.h: Do not include "bcache.h".
6643 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6645 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6646 generic_func_frame_chain_valid.
6648 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6650 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6651 * config/i386/tm-fbsd.h: Likewise.
6653 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6655 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6656 generic_unwind_get_saved_register.
6658 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6660 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6661 * regcache.c (supply_register): Add missing argument to
6662 register_buffer call.
6664 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6666 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6667 Solaris /bin/grep does not not like it. From Peter Schauer.
6669 2002-06-26 Tom Tromey <tromey@redhat.com>
6671 * command.h (add_setshow_cmd): Declare.
6672 (add_setshow_cmd_full): Declare.
6673 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6674 returns void. Use add_setshow_cmd_full.
6675 (add_setshow_cmd_full): New function.
6676 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6677 (add_setshow_boolean_cmd): Likewise.
6679 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6681 * config/vax/tm-vax.h: Protect from multiple inclusion.
6682 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6683 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6684 * config/vax/tm-vaxbsd.h: ...here. New file.
6685 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6687 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6689 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6690 (BELIEVE_PCC_PROMOTION): Remove.
6691 (AP_REGNUM): Move to...
6692 * config/vax/nm-vax.h: ...here.
6693 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6694 (vax_breakpoint_from_pc): New function.
6695 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6696 and gdbarch_believe_pcc_promotion.
6698 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6700 * Makefile.in (vax_tdep_h): Define.
6701 (vax-tdep.o): Use $(vax_tdep_h).
6702 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6703 (vax_dump_tdep): New function.
6704 (_initialize_vax_tdep): Register vax_dump_tdep.
6705 * vax-tdep.h: Include osabi.h.
6706 (struct gdbarch_tdep): New.
6708 2002-06-26 Andrew Cagney <cagney@redhat.com>
6710 * frame.h (deprecated_generic_find_dummy_frame): Rename
6711 generic_find_dummy_frame.
6712 * blockframe.c (generic_find_dummy_frame): Make static.
6713 (deprecated_generic_find_dummy_frame): New function.
6714 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6715 generic_find_dummy_frame with deprecated_find_dummy_frame.
6716 (sh64_nofp_frame_init_saved_regs): Ditto.
6717 (sh_fp_frame_init_saved_regs): Ditto.
6718 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6719 (s390_frame_chain): Ditto.
6720 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6722 2002-06-26 Grace Sainsbury <graces@redhat.com>
6724 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6725 gdbarch vector are at the top.
6727 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6728 (FRAME_ARGS_ADDRESS): Remove.
6729 (FRAME_LOCALS_ADDRESS): Remove.
6730 (FRAME_NUM_ARGS): Remove.
6731 (FRAME_ARGS_SKIP): Remove.
6732 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6733 (m68k_gdbarch_init): Add gdbarch initializations for macros
6734 undefined in tm-m68k.h
6736 2002-06-26 Grace Sainsbury <graces@redhat.com>
6738 * monitor.h: Add the function regname to monitor_ops
6739 structure. This way NUM_REGS does not have to be a constant.
6740 * monitor.c (monitor_fetch_register): Added support for regname
6741 function. The function is called if the array regnames is NULL.
6742 (monitor_store_register): Same.
6743 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6745 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6746 cpu32bug_cmds.regname to point to new function.
6747 * abug-rom.c (abug_regname): Same as above.
6748 (init_abug_cmds): Same.
6749 * dbug-rom.c (dbug_regname): Same as above.
6750 (init_dbug_cmds): Same.
6751 * remote-est.c (est_regname): Same.
6752 (init_est_cmds): Same.
6753 * rom68k-rom.c (rom68k_regname): Same.
6754 (init_rom68k_cmds): Same.
6756 2002-06-25 Tom Tromey <tromey@redhat.com>
6758 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6760 2002-06-25 Andrew Cagney <cagney@redhat.com>
6762 * infrun.c (stop_registers): Change variable's type to ``struct
6764 (xmalloc_inferior_status): Delete function.
6765 (free_inferior_status): Delete function.
6766 (normal_stop): Use regcache_cpy.
6767 (struct inferior_status): Change type of fields ``stop_registers''
6768 and ``registers'' to ``struct regcache''.
6769 (write_inferior_status_register): Use regcache_write.
6770 (save_inferior_status): Instead of calling
6771 xmalloc_inferior_status, allocate the inf_status buffer directly.
6772 Use regcache_dup_no_passthrough and regcache_dup to save the
6774 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6775 Replace the stop_registers regcache instead of overriding it. Use
6776 regcache_xfree. Instead of calling free_inferior_status, xfree
6777 the buffer directly.
6778 (discard_inferior_status): Use regcache_xfree. Instead of calling
6779 free_inferior_status, xfree the buffer directly.
6780 (build_infrun): Use regcache_xmalloc.
6781 (_initialize_infrun): Delete redundant call to build_infrun.
6783 * Makefile.in (infcmd.o): Add $(regcache_h).
6785 * infcmd.c: Include "regcache.h".
6786 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6787 obtain the address of `stop_registers' register buffer.
6788 (print_return_value): Ditto.
6790 * inferior.h (struct regcache): Add opaque declaration.
6791 (stop_registers): Change variable's declared type to ``struct
6794 2002-06-24 Tom Tromey <tromey@redhat.com>
6796 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6797 * target.c (initialize_targets): Fixed typo in
6798 trust-readonly-sections `show' documentation.
6800 * main.c: Marked all strings with _().
6802 2002-06-24 Don Howard <dhoward@redhat.com>
6804 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6805 that means max CORE_ADDR+1.
6806 (lookup_mem_region): Ditto.
6807 (mem_info_command): Ditto.
6809 2002-06-24 Grace Sainsbury <graces@redhat.com>
6811 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6812 (REGISTER_BYTES_OK): Remove.
6813 (REGISTER_BYTES): Remove.
6814 (STORE_STRUCT_RETURN): Remove.
6815 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6816 (STORE_RETURN_VALUE): Remove.
6817 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6818 (FRAME_CHAIN): Remove.
6819 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6820 (FRAME_SAVED_PC): Remove.
6821 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6822 (m68k_store_struct_return): Add.
6823 (m68k_deprecated_extract_return_value): Add.
6824 (m68k_deprecated_extract_struct_value_address): Add.
6825 (m68k_store_return_value): Add.
6826 (m68k_frame_chain): Add.
6827 (m68k_frameless_function_invocation): Add.
6828 (m68k_frame_saved_pc): Add.
6829 (m68k_gdbarch_init): added set_gdbarch calls for new
6830 functions and deleted macros.
6832 2002-06-23 Tom Tromey <tromey@redhat.com>
6834 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6835 (ALLDEPFILES): Likewise.
6836 (udiheaders): Removed.
6837 (udip2soc.o): Likewise.
6838 (udi2go32.o): Likewise.
6840 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6842 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6844 * infrun.c (_initialize_infrun): Delete unnecessary call to
6847 * regcache.h: Update comments describing the regcache_cpy family
6849 (regcache_save, regcache_restore): Delete declaration.
6850 (regcache_save_no_passthrough): Delete declaration.
6851 (regcache_restore_no_passthrough): Delete declaration.
6852 * regcache.c (regcache_save): Delete function.
6853 (regcache_save_no_passthrough): Delete function.
6854 (regcache_restore): Delete function.
6855 (regcache_restore_no_passthrough): Delete function.
6857 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6859 * config/m68k/tm-m68k.h: Fix typo.
6860 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6861 (m68k_frame_init_saved_regs): Declare.
6863 2002-06-21 Jim Blandy <jimb@redhat.com>
6865 Remove some vestiges of Harris 88k support.
6866 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6867 register numbering quirk.
6868 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6869 odd symbols occurring in Harris 88k ELF targets.
6871 2002-06-21 Tom Tromey <tromey@redhat.com>
6873 * gdb_locale.h: New file.
6874 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6875 (defs_h): Added gdb_locale.h.
6876 * configure, config.in: Rebuilt.
6877 * configure.in (PACKAGE): Define.
6878 * defs.h: Include gdb_locale.h.
6879 * main.c (captured_main): Call setlocale, bindtextdomain,
6882 2002-06-21 Dave Brolley <brolley@redhat.com>
6884 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6885 * config/frv/frv.mt: New file.
6886 * config/frv/tm-frv.h: New file.
6887 * configure.tgt: Support frv-*-*.
6888 * Makefile.in (frv-tdep.o): New target.
6889 * frv-tdep.c: New file.
6890 * NEWS: Mention frv.
6892 2002-06-21 Dave Brolley <brolley@redhat.com>
6894 * MAINTAINERS: Add self to "Write After Approval" list.
6896 2002-06-21 Grace Sainsbury <graces@redhat.com>
6898 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6899 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6900 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6901 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6902 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6904 * m68k-tdep.c: Include arch-utils.h
6905 (m68k_register_raw_size): Add.
6906 (m68k_register_virtual_size): Add.
6907 (m68k_register_virtual_type): Add.
6908 (m68k_register_name): Add.
6909 (m68k_stack_align): Add.
6910 (m68k_register_byte): Add.
6911 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6914 2002-06-21 Grace Sainsbury <graces@redhat.com>
6916 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6917 m68k_find_saved_regs.
6918 (m68k_pop_frame): Removed saved_regs structure, and replaced
6919 references to it with frame->saved_regs.
6920 (m68k_gdbarch_init): Added function calls to initialize the
6922 (m68k_fix_call_dummy): Add.
6923 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6924 (CALL_DUMMY): Remove.
6925 (CALL_DUMMY_LENGTH): Remove.
6926 (CALL_DUMMY_START_OFFSET): Remove.
6927 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6928 (FIX_CALL_DUMMY): Remove.
6929 (PUSH_DUMMY_FRAME): Remove.
6930 (POP_FRAME): Remove.
6932 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6934 * parse.c (parse_fprintf): New function used to avoid calls to
6935 fprintf in bison parser generated debug code.
6936 * parser-defs.h: Declaration of new parse_fprintf function.
6937 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6938 Set YYDEBUG to 1 by default.
6939 Set YYFPRINTF as parse_fprintf.
6941 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6943 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6945 (pointer_encoding, enum ptr_encoding): New.
6946 (execute_cfa_program): Take care about pointer encoding.
6947 (dwarf2_build_frame_info): Only call parse_frame_info for
6948 .debug_frame and .eh_frame.
6949 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6950 fixed augmentation handling, added relative addressing,
6951 ignore duplicate FDEs. Added comments.
6952 * dwarf2cfi.c: Reindented.
6954 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6956 * event-top.c (command_handler): Don't use space_at_cmd_start
6957 unless there is sbrk() on the host. Assign time and space data
6958 to union fields of the appropriate length.
6960 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6962 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6963 x86_64_register_name. Return type changed to 'const char *'.
6964 (x86_64_register_name2nr): Rename to x86_64_register_number.
6965 (x86_64_gdbarch_init): Update to reflect the change.
6966 * x86-64-tdep.h: Ditto.
6967 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6968 (supply_fpregset): Ditto.
6970 2002-06-19 Andrew Cagney <cagney@redhat.com>
6972 * regcache.h: Update copyright.
6973 (struct regcache, struct gdbarch): Add opaque declarations.
6974 (current_regcache): Declare global variable.
6975 (regcache_read, regcache_write): Add gdbarch parameter.
6976 (regcache_save, regcache_save_no_passthrough)
6977 (regcache_restore, regcache_restore_no_passthrough)
6978 (regcache_dup, regcache_dup_no_passthrough)
6979 (regcache_cpy, regcache_cpy_no_passthrough)
6980 (deprecated_grub_regcache_for_registers)
6981 (deprecated_grub_regcache_for_register_valid)
6982 (regcache_valid_p): Add function declarations.
6984 * regcache.c: Update copyright.
6985 (regcache_descr_handle): New global variable.
6986 (struct regcache_descr): Define.
6987 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6988 (regcache_descr, xfree_regcache_descr): New functions.
6989 (struct regcache): Define.
6990 (regcache_xmalloc, regcache_xfree): New functions.
6991 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6992 (regcache_dup, regcache_dup_no_passthrough): New functions.
6993 (regcache_valid_p, regcache_read_as_address): New functions.
6994 (deprecated_grub_regcache_for_registers): New function.
6995 (deprecated_grub_regcache_for_register_valid): New function.
6996 (current_regcache): New global variable.
6997 (register_buffer): Add regcache parameter. Update calls.
6998 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6999 (read_register_gen, write_register_gen): Update register_buffer
7000 call. Test for legacy_p instead of gdbarch_register_read_p or
7001 gdbarch_register_write_p.
7002 (regcache_collect): Update register_buffer call.
7003 (build_regcache): Rewrite. Use deprecated grub functions.
7004 (regcache_save, regcache_save_no_passthrough): New functions.
7005 (regcache_restore, regcache_restore_no_passthrough): New
7007 (_initialize_regcache): Create the regcache_data_handle. Swap
7008 current_regcache global variable.
7010 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7011 parameter to regcache_read and regcache_write calls.
7012 (sh4_register_read): Ditto.
7013 (sh64_pseudo_register_read): Ditto.
7014 (sh64_register_read): Ditto.
7015 (sh_pseudo_register_write): Ditto.
7016 (sh4_register_write): Ditto.
7017 (sh64_pseudo_register_write): Ditto.
7018 (sh64_register_write): Ditto.
7020 * defs.h (XCALLOC): Define.
7022 2002-06-19 Grace Sainsbury <graces@redhat.com>
7024 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7025 * m68k-tdep.c (m68k_gdbarch_init): Added.
7026 (m68k_dump_tdep): Added.
7028 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7030 * ada-lang.c (fill_in_ada_prototype): Update comment.
7032 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7034 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7036 (mips_abi_string, mips_abi_strings): New.
7037 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7038 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7039 tdep->mips_abi_string. Honor mips_abi_string. Default to
7040 O32 if no ABI is found.
7041 (mips_dump_tdep): Use mips_abi_strings.
7042 (mips_abi_update): New function.
7043 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7044 ``set mips abi'' and ``show mips abi''. Check the size of
7047 2002-06-19 Andrew Cagney <cagney@redhat.com>
7049 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7052 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7054 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7055 current frame using only the first stack size adjustment. All
7056 subsequent size adjustments are not considered to be part of
7057 the "static" part of the current frame.
7058 Compute the address of the saved registers relative to the
7059 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7060 in use in this frame.
7062 2002-06-18 Don Howard <dhoward@redhat.com>
7064 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7065 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7066 suggesting this solution.
7068 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7070 * config/romp/xm-rtbsd.h: Delete file.
7071 * config/romp/rtbsd.mh: Delete file.
7073 2002-06-18 Keith Seitz <keiths@redhat.com>
7075 * breakpoint.c (condition_command): Post breakpoint_modify
7076 when a condition is added to an existing breakpoint.
7077 (commands_command): Likewise for commands.
7078 (set_ignore_count): Likewise for ignore counts.
7079 If no tty, do not simply return, still need to send event
7081 (ignore_command): Only print a newline if the command came
7083 Don't call breakpoints_changed, since this is now properly
7084 handled by set_ignore_count.
7086 2002-06-18 Andrew Cagney <cagney@redhat.com>
7088 * MAINTAINERS: Note that cris-elf target can be compiled with
7090 * cris-tdep.c (cris_register_name): Make return type constant.
7091 (cris_breakpoint_from_pc): Ditto.
7093 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7095 * frame.h (struct frame_info): Change type of context to
7098 2002-06-17 Andrew Cagney <cagney@redhat.com>
7100 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7102 * gdbarch.h, gdbarch.c: Regenerate.
7103 * config/mips/tm-mips.h (mips_register_name): Update.
7104 * i386-tdep.h (i386_register_name): Update.
7105 * mips-tdep.c (mips_register_name): Update
7106 * alpha-tdep.c (alpha_register_name): Update.
7107 * arch-utils.c (legacy_register_name): Update.
7108 * arch-utils.h (legacy_register_name): Update.
7109 * avr-tdep.c (avr_register_name): Update.
7110 * ia64-tdep.c (ia64_register_name): Update.
7111 * i386-tdep.c (i386_register_name): Update.
7112 * sparc-tdep.c (sparc32_register_name): Update.
7113 (sparc64_register_name): Update.
7114 (sparclite_register_name): Update.
7115 (sparclet_register_name): Update.
7116 * sh-tdep.c (sh_generic_register_name): Update.
7117 (sh_sh_register_name): Update.
7118 (sh_sh3_register_name): Update.
7119 (sh_sh3e_register_name): Update.
7120 (sh_sh_dsp_register_name): Update.
7121 (sh_sh3_dsp_register_name): Update.
7122 (sh_sh4_register_name): Update.
7123 (sh_sh64_register_name): Update.
7124 * s390-tdep.c (s390_register_name): Update.
7125 * rs6000-tdep.c (rs6000_register_name): Update.
7126 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7127 (ns32k_register_name_32382): Update.
7128 * d10v-tdep.c (d10v_ts2_register_name): Update.
7129 (d10v_ts3_register_name): Update.
7130 * xstormy16-tdep.c (xstormy16_register_name): Update.
7131 * vax-tdep.c (vax_register_name): Update.
7132 * v850-tdep.c (v850_register_name): Update.
7133 * m68hc11-tdep.c (m68hc11_register_name): Update.
7134 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7135 (am33_register_name): Update.
7137 2002-06-17 Grace Sainsbury <graces@redhat.com>
7139 * m68k-tdep.c: Reindented.
7141 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7143 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7144 list of predefined types.
7146 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7148 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7149 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7150 REGISTER_CONVERT_TO_RAW): Remove defines.
7151 (i386_register_virtual_type, i386_register_convertible,
7152 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7154 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7155 macros mentioned above.
7157 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7158 (i386lynx_saved_pc_after_call): Remove prototype.
7159 * i386ly-tdep.c: Include "i386-tdep.h".
7160 (i386lynx_saved_pc_after_call): Make static. Use
7161 read_memory_nobpt instead of read_memory. Use
7162 read_memory_unsigned_integer instead of read_memory_integer.
7163 (i386lynx_init_abi): New function.
7164 (i386lynx_coff_osabi_sniffer): New function.
7165 (_initialize_i386bsd_tdep): New function.
7167 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7168 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7169 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7170 (i386_fix_call_dummy): Remove prototype.
7171 * i386-tdep.c (i386_call_dummy_words): New variable.
7172 (i386_gdbarch_init): Adjust for removal of the
7173 macros mentioned above.
7175 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7177 * command.h (add_setshow_auto_boolean_cmd): Replace
7178 add_set_auto_boolean_cmd.
7179 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7180 add_set_auto_boolean_cmd.
7181 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7182 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7183 mask-address'' command.
7184 (show_mask_address): Add cmd parameter.
7185 * remote.c (add_packet_config_cmd): Update. Change type of
7186 set_func and show_func to cmd_sfunc_ftype.
7187 (_initialize_remote): Update `set remote Z-packet'
7188 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7189 (show_remote_protocol_e_packet_cmd): Ditto.
7190 (show_remote_protocol_E_packet_cmd): Ditto.
7191 (show_remote_protocol_P_packet_cmd): Ditto.
7192 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7193 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7194 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7195 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7196 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7197 (show_remote_protocol_Z_packet_cmd): Ditto.
7198 (show_remote_protocol_binary_download_cmd): Ditto.
7199 (show_remote_cmd): Pass NULL to all of above.
7201 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7203 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7204 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7205 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7206 POP_FRAME): Remove defines.
7207 (i386_push_arguments, i386_store_struct_return,
7208 i386_extract_return_value, i386_store_return_value,
7209 i386_extract_struct_value_address, i386_push_dummy_frame,
7210 i386_pop_frame): Renove prototypes.
7211 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7212 macros mentioned above.
7214 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7216 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7217 add_set_boolean_cmd.
7218 (add_setshow_cmd): New function.
7219 * command.h (add_setshow_boolean_cmd): Replace
7220 add_set_boolean_cmd.
7221 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7222 and ``set rdiromatzero''.
7223 * maint.c (_initialize_maint_cmds): Update commented out code.
7224 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7225 * target.c (initialize_targets): Update `set
7226 trust-readonly-sections'.
7227 * remote.c (_initialize_remote): Update `set remotebreak'.
7229 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7231 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7232 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7233 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7234 fit into multi-arch framework.
7235 (i386_breakpoint_from_pc): New function.
7236 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7239 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7240 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7241 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7242 (i386_frameless_function_invocation, i386_frame_num_args,
7243 i386_frame_init_saved_regs): Remove prototypes.
7244 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7245 macros mentioned above.
7247 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7249 * cli/cli-decode.c (set_cmd_cfunc): Update.
7250 (set_cmd_sfunc): Update.
7251 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7252 (set_cmd_sfunc, set_cmd_cfunc): Update.
7253 * cli/cli-decode.h: Update.
7255 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7257 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7258 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7260 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7262 * defs.h (auto_boolean): Declare enum.
7263 * command.h (cmd_auto_boolean): Delete enum.
7264 * mips-tdep.c (mask_address_var): Update.
7265 (mips_mask_address_p): Update.
7266 (show_mask_address): Update.
7267 * remote.c (struct packet_config): Update.
7268 (update_packet_config): Update.
7269 (show_packet_config_cmd): Update.
7270 (packet_ok): Update.
7271 (add_packet_config_cmd): Update.
7272 (_initialize_remote):
7273 * command.h: Update.
7274 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7275 (do_setshow_command): Update.
7276 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7277 * cli/cli-decode.h: Update.
7279 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7281 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7282 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7283 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7284 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7285 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7286 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7288 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7289 list of DJGPP COFF targets.
7291 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7292 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7293 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7294 (FP0_REGNUM): Remove define.
7295 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7296 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7297 (i386_register_virtual_size): Remove protoype.
7298 * i386-tdep.c (i386_register_virtual_size): Removed.
7299 (i386_extract_return_value, i386_store_return_value): Use
7300 FP0_REGNUM instead of NUM_FREGS to determine whether the
7301 floating-point registers are available.
7302 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7303 Adjust for removal of macros mentioned above.
7305 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7307 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7309 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7311 (supply_gregset, fill_gregset): Remove use of register keyword and
7312 remove declaration for regmap. Use I386_NUM_GREGS instead of
7313 NUM_REGS and NUM_FREGS.
7314 (FPREGSET_FSAVE_OFFSET): Remove.
7315 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7316 NUM_FREGS to determine whether the floating-point registers are
7319 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7320 gnu_store_registers): Replace usage of NUM_GREGS with
7323 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7324 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7325 usage of NUM_GREGS with I386_NUM_GREGS.
7327 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7329 * i386bsd-nat.c: Include "i386-tdep.h".
7330 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7333 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7334 and associated comment. They no longer make any sense, since we
7335 don't use this file anymore on Linux.
7337 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7338 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7339 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7340 elements in these arrays.
7341 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7344 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7346 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7347 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7349 2002-06-14 Andrew Cagney <cagney@redhat.com>
7351 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7352 EXTRACT_RETURN_VALUE.
7353 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7354 EXTRACT_STRUCT_VALUE_ADDRESS.
7355 * gdbarch.h, gdbarch.c: Regenerate.
7357 * values.c (value_being_returned): Handle
7358 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7359 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7361 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7362 * arm-tdep.c (arm_gdbarch_init): Update.
7363 * avr-tdep.c (avr_gdbarch_init): Update.
7364 * cris-tdep.c (cris_gdbarch_init): Update.
7365 * d10v-tdep.c (d10v_gdbarch_init): Update.
7366 * ia64-tdep.c (ia64_gdbarch_init): Update.
7367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7368 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7369 * s390-tdep.c (s390_gdbarch_init): Update.
7370 * sh-tdep.c (sh_gdbarch_init): Update.
7371 * s390-tdep.c (s390_gdbarch_init): Update.
7372 * sparc-tdep.c (sparc_gdbarch_init): Update.
7373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7374 * v850-tdep.c (v850_gdbarch_init): Update.
7375 * vax-tdep.c (vax_gdbarch_init): Update.
7376 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7377 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7379 * config/arc/tm-arc.h: Update.
7380 * config/d30v/tm-d30v.h: Update.
7381 * config/fr30/tm-fr30.h: Update.
7382 * config/h8300/tm-h8300.h: Update.
7383 * config/h8500/tm-h8500.h: Update.
7384 * config/i386/tm-i386.h: Update.
7385 * config/i386/tm-ptx.h: Update.
7386 * config/i386/tm-symmetry.h: Update.
7387 * config/i960/tm-i960.h: Update.
7388 * config/m32r/tm-m32r.h: Update.
7389 * config/m68k/tm-delta68.h: Update.
7390 * config/m68k/tm-linux.h: Update.
7391 * config/m68k/tm-m68k.h: Update.
7392 * config/m88k/tm-m88k.h: Update.
7393 * config/mcore/tm-mcore.h: Update.
7394 * config/mips/tm-mips.h: Update.
7395 * config/mn10200/tm-mn10200.h: Update.
7396 * config/pa/tm-hppa.h: Update.
7397 * config/pa/tm-hppa64.h: Update.
7398 * config/sparc/tm-sp64.h: Update.
7399 * config/sparc/tm-sparc.h: Update.
7400 * config/sparc/tm-sparclet.h: Update.
7401 * config/z8k/tm-z8k.h: Update.
7403 2002-06-14 Andrew Cagney <cagney@redhat.com>
7405 * Makefile.in (i386_linux_tdep_h): Define.
7406 (i386_tdep_h, i387_tdep_h): Define.
7407 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7408 $(i386_tdep_h) and $(i387_tdep_h).
7409 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7411 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7413 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7414 Already covered by the default.
7416 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7417 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7418 (i386_gdbarch_init): Initialize long_double_format and long_double
7421 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7422 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7424 * config/i386/i386sol2.mh: ... here.
7425 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7426 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7427 (SIGCONTEXT_PC_OFFSET): Remove define.
7428 (IN_SIGTRAMP): Remove define.
7429 * i386-sol2-tdep.c: New file.
7431 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7432 * config/i386/tm-i386nw.h: Removed.
7434 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7435 USE_STRUCT_CONVENTION): Remove defines.
7436 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7437 (get_longjmp_target): Remove prototype.
7438 (IN_SIGTRAMP): Remove define.
7439 (i386bsd_in_sigtramp): Remove prototype.
7440 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7441 function. Update comment accordingly
7442 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7443 (FRAME_SAVED_PC): Remove define.
7444 (i386bsd_frame_saved_pc): Remove prototype.
7445 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7446 GET_LONGJMP_TARGET): Remove defines.
7447 (get_longjmp_target): Remove prototype.
7448 (IN_SIGTRAMP): Remove define.
7449 (i386bsd_in_sigtramp): Remove prototype.
7450 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7451 function. Update comment accordingly
7452 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7453 (FRAME_SAVED_PC): Remove define.
7454 (i386bsd_frame_saved_pc): Remove prototype.
7455 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7457 (USE_STRUCT_CONVENTION): Remove prototype.
7458 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7460 (_initialize_i386bsd_nat): Revise logic to determine some
7461 constants at compile time when compiling a native GDB. Warn if
7462 things don't match up with what we expect.
7463 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7465 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7466 to use date stored in `struct gdbarch_tdep'.
7467 (i386bsd_sigcontext_offset): Remove varaible.
7468 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7469 stored in `struct gdbarch_tdep'.
7470 (i386bsd_frame_saved_pc): Make static.
7471 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7472 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7473 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7474 i386fbsd4_sc_pc_offset): New variables.
7475 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7476 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7478 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7480 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7481 Modify the value of i386fbsd_sigtramp_start and
7482 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7483 i386fbsd_sigtramp_end.
7484 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7487 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7488 define to i386-linux-tdep.h.
7489 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7490 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7492 (i386_linux_register_name, i386_linux_register_byte,
7493 i386_linux_register_raw_size): Remove prototypes.
7494 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7495 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7496 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7497 TARGET_WRITE_PC): Remove defines.
7498 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7499 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7500 i386_linux_write_pc): Remove prototypes.
7501 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7502 (get_longjmp_target): Remove prototype.
7503 * i386-linux-tdep.h: New file.
7504 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7505 * i386-linux-tdep.c: Include "i386-tdep.h" and
7506 "i386-linux-tdep.h".
7507 (i386_linux_register_name, i386_linux_register_byte,
7508 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7509 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7511 (i386_linux_init_abi): New function.
7512 (_initialize_i386_linux_tdep): New function.
7514 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7515 (i386_saved_pc_after_call): Remove prototype.
7516 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7517 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7518 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7519 (i386_register_name, i386_stab_reg_to_regnum,
7520 i386_dwarf_reg_to_regnum): Remove prototypes.
7521 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7522 SIZEOF_SSE_REGS): Remove defines.
7523 (REGISTER_BYTES): Remove define.
7524 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7525 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7526 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7527 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7528 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7529 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7530 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7531 (get_longjmp_target): Remove prototype.
7532 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7533 (sigtramp_saved_pc): Remove define.
7534 (i386v4_sigtramp_saved_pc): Remove prototype.
7535 * config/i386/tm-go32.h (FRAME_CHAIN,
7536 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7537 (i386go32_frame_saved_pc): Remove prototype.
7538 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7539 (get_longjmp_target): Remove prototype.
7540 * i386-tdep.h: Include "osabi.h".
7541 (enum i386_abi): Removed.
7542 (enum struct_return): New enum.
7543 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7544 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7545 sc_pc_offset members.
7546 (i386_gdbarch_register_os_abi): Remove prototype.
7547 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7548 I386_SSE_NUM_REGS): New defines.
7549 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7550 I386_SSE_SIZEOF_REGS): New defines.
7551 (i386_register_name, i386_register_byte, i386_register_raw_size):
7553 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7554 (i386bsd_sigtramp_saved_pc): New prototype.
7555 * i386-tdep.c: Don't include "elf-bfd.h".
7556 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7557 i386_frame_chain, i386_saved_pc_after_call): Make static.
7558 (i386_frame_saved_pc): Rewrite to call architecture dependent
7559 function to deal with signal handlers. Make static.
7560 (i386go32_frame_saved_pc): Removed.
7561 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7563 (i386_get_longjmp_target): New function.
7564 (default_struct_convention, pcc_struct_convention,
7565 reg_struct_convention, valid_conventions, struct_convention): New
7567 (i386_use_struct_convention): New function.
7568 (i386v4_sigtramp_saved_pc): Renamed to
7569 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7570 (i386_pc_in_sigtramp): New function.
7571 (i386_abi_names): Removed.
7572 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7573 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7575 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7576 i386_gdbarch_register_os_abi): Removed.
7577 (struct i386_abi_handler): Removed.
7578 (i386_abi_handler_list): Removed.
7579 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7581 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7582 i386_nw_init_abi): New functions.
7583 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7584 Use set_gdbarch_xxx() calls instead of relying on macros for a
7586 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7587 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7588 Register the various architecture variants defined in this file.
7590 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7592 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7593 (struct main_type): Remove arg_types member. Update comments for
7595 (TYPE_ARG_TYPES): Remove.
7596 (TYPE_FN_FIELD_ARGS): Update.
7597 (smash_to_method_type): Update prototype.
7599 * c-typeprint.c (cp_type_print_method_args): Take method type
7600 instead of argument list. Use new argument layout. Simplify.
7601 (c_type_print_args): Use new argument layout. Simplify.
7602 (c_type_print_base): Update call to cp_type_print_method_args.
7603 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7604 argument; use die->type instead. Update call to
7605 smash_to_method_type.
7606 (read_structure_scope): Update call to dwarf2_add_member_fn.
7607 * gdbtypes.c (allocate_stub_method): Update comment.
7608 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7609 Use new argument layout.
7610 (check_stub_method): Use new argument layout. Don't count
7611 void as an argument.
7612 (print_arg_types): Update comments. Use new argument layout.
7613 (recursive_dump_type): Don't print arg_types member.
7614 * hpread.c (hpread_read_struct_type): Use new argument layout.
7615 (fixup_class_method_type): Likewise.
7616 (hpread_type_lookup): Likewise.
7617 * stabsread.c (read_type): Update calls to read_args and
7618 smash_to_method_type.
7619 (read_args): Use new argument layout. Simplify.
7620 * valops.c (typecmp): Use new argument layout. Update parameters
7621 and comments. Simplify.
7622 (hand_function_call): Use new argument layout.
7623 (search_struct_method): Update call to typecmp.
7624 (find_overload_match): Use new argument layout.
7626 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7628 * NEWS: Mention multithreaded debug support for gdbserver.
7630 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7632 * MAINTAINERS: Mention NEWS.
7634 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7636 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7637 (struct mips_objfile_private, compare_pdr_entries): New.
7638 (non_heuristic_proc_desc): Read the ".pdr" section if it
7641 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7643 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7644 (arm_debug): New static variable.
7645 (_initialize_arm_tdep): Add ``set debug arm'' command.
7647 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7649 * Makefile.in (sim_arm_h): Define.
7650 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7651 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7652 (arm_register_sim_regno): New function, map an internal REGNUM
7653 onto a simulator register number.
7654 (arm_gdbarch_init): Set register_sim_regno.
7656 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7658 * MAINTAINERS: Add self.
7660 2002-06-11 Jim Blandy <jimb@redhat.com>
7662 * source.c (source_info): Mention whether the symtab has
7663 information about preprocessor macros.
7665 Call the command `info macro', not `show macro'.
7666 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7668 (_initialize_macrocmd): Register `info_macro_command' in
7669 `infolist', not `showlist'.
7671 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7673 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7674 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7675 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7676 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7677 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7679 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7680 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7681 (_initialize_mips_tdep): Remove dead code.
7682 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7683 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7684 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7685 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7686 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7687 MIPS_LAST_FP_ARG_REGNUM): Remove.
7689 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7691 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7692 (unwind_tmp_obstack_free, parse_frame_info)
7693 (update_context, cfi_read_fp, cfi_write_fp)
7694 (cfi_frame_chain, cfi_init_extra_frame_info)
7695 (cfi_virtual_frame_pointer): Use the above function.
7696 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7698 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7700 * v850-tdep.c (v850_type_is_scalar): New function.
7701 (v850_use_struct_convention): Match current gcc implementation
7702 as close as possible.
7703 (v850_push_arguments): Fix stack_offset handling. Don't write
7704 struct_addr into register. This is done by v850_store_struct_return.
7705 (v850_extract_return_value): Care for structs.
7706 (v850_store_return_value): Ditto.
7707 (v850_store_struct_return): Actually write address.
7709 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7711 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7712 without debug information too.
7714 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7716 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7717 Make multi-arch pure.
7718 * gdbarch.h, gdbarch.c: Re-generate.
7719 * arm-tdep.c (arm_print_float_info): Update.
7720 * arch-utils.h (default_print_float_info): Update.
7721 * arch-utils.c (default_print_float_info): Update.
7722 * infcmd.c (float_info): Update call.
7724 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7726 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7727 the front of the initialize list.
7729 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7731 * infrun.c (struct inferior_status): Replace fields
7732 selected_frame_address and selected_level with field
7734 (save_inferior_status): Update. Use get_frame_id.
7735 (struct restore_selected_frame_args): Delete.
7736 (restore_selected_frame): Update. Use frame_find_by_id.
7737 (restore_inferior_status): Update.
7739 * breakpoint.h (struct breakpoint): Change type of
7740 watchpoint_frame to frame_id.
7741 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7742 call to get_current_frame.
7743 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7745 (watchpoint_check): Use frame_find_by_id.
7747 * frame.h (record_selected_frame): Delete declaration.
7748 * stack.c (record_selected_frame): Delete function.
7750 * frame.h (struct frame_id): Define.
7751 (get_frame_id): Declare.
7752 (frame_find_by_id): Declare.
7753 * frame.c (frame_find_by_id): New function.
7754 (get_frame_id): New function.
7756 2002-06-10 Andrey Volkov <avolkov@transas.com>
7758 * ser-e7kpc.c: Fix duplicated define and call of
7759 _initialize_ser_e7000pc
7761 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7763 * signals/signals.c (target_signal_from_host): Fix #ifdef
7765 (do_target_signal_to_host): Likewise.
7767 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7769 * mips-tdep.c (mips_find_abi_section): New function.
7770 (mips_gdbarch_init): Call it.
7772 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7774 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7775 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7776 after Andrew's 2002-06-08 gdbarch change.
7778 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7780 * i386-linux-nat.c (suppy_gregset): Don't supply
7781 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7783 (fill_gregset): Don't fetch it under the same circumstances.
7785 2002-06-09 Andrew Cagney <cagney@redhat.com>
7787 * Makefile.in (callback_h): Define.
7788 (remote_sim_h): Update path to remote-sim.h.
7789 (remote-rdp.o): Add $(callback_h).
7790 (remote-sim.o): Use $(callback_h).
7791 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7792 * remote-rdp.c: Include "gdb/callback.h".
7794 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7796 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7797 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7799 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7801 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7802 * rdi-share/serpardr.c: Ditto.
7803 * rdi-share/unixcomm.c: Ditto.
7804 * rdi-share/serdrv.c: Ditto.
7805 * rdi-share/hostchan.h: Ditto.
7806 * rdi-share/hostchan.c: Ditto.
7807 * rdi-share/host.h: Ditto.
7808 * rdi-share/devsw.c: Ditto.
7810 * objfiles.h: Change type of obj_private to void pointer.
7811 * pa64solib.c: Update copyright. Don't include "assert.h", use
7812 strcmp instead of STREQ, use LONGEST, do not use PTR
7813 * somsolib.c: Ditto.
7815 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7816 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7817 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7819 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7821 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7822 (default_get_saved_register): Delete function.
7823 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7824 generic_unwind_get_saved_register.
7825 * gdbarch.h, gdbarch.c: Re-generate.
7827 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7829 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7830 generic_func_frame_chain_valid.
7831 * gdbarch.h, gdbarch.c: Re-generate.
7832 * blockframe.c (generic_func_frame_chain_valid): Only check
7833 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7834 passing FP to PC_IN_CALL_DUMMY.
7837 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7839 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7840 (register_gdbarch_data): Initialize init_p.
7841 (gdbarch_data): Initialize data pointer using the init function.
7842 (init_gdbarch_data): Delete function.
7843 (gdbarch_update_p): Update.
7844 (initialize_non_multiarch): Update.
7845 (struct gdbarch): Add field initialized_p.
7846 * gdbarch.h, gdbarch.c: Re-generate.
7848 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7850 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7851 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7852 better do the things actually here.
7853 * x86-64-tdep.c (x86_64_register_name2nr): New.
7854 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7855 (x86_64_gdbarch_init): Respect the above change.
7856 * x86-64-tdep.h (x86_64_register_name2nr)
7857 (x86_64_register_nr2name): Add prototypes.
7858 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7860 2002-06-06 Michael Snyder <msnyder@redhat.com>
7862 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7863 Delete extra braces and re-indent.
7864 (d10v_store_return_value): Char return values
7865 must be shifted over by one byte in R0.
7866 (d10v_extract_return_value): Delete extra braces, re-indent.
7868 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7870 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7871 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7872 (d10v_integer_to_address): Rewrite.
7873 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7874 the d10v specific functions which take care of converting to the
7877 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7879 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7880 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7882 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7884 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7886 * config/tm-linux.h: Ditto.
7887 * config/alpha/tm-alphalinux.h: Ditto.
7888 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7889 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7890 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7891 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7892 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7893 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7894 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7895 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7896 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7897 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7898 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7899 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7900 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7901 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7902 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7903 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7904 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7905 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7906 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7907 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7908 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7909 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7910 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7911 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7912 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7913 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7914 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7915 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7916 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7917 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7918 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7919 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7920 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7921 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7922 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7923 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7924 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7926 2002-05-04 Aidan Skinner <aidan@velvet.net>
7928 * ada-exp.tab.c: New file
7929 * ada-exp.y: New file
7930 * ada-lang.c: New file
7931 * ada-lang.h: New file
7932 * ada-lex.c: New file
7933 * ada-lex.l: New file
7934 * ada-tasks.c: New file
7935 * ada-typeprint.c: New file
7936 * ada-valprint.c: New file
7938 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7940 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7941 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7943 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7945 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7946 insetead of ppc-linux-tdep.o.
7947 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7948 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7950 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7952 2002-05-07 Christian Groessler <chris@groessler.org>
7953 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7954 bit register contents for little endian hosts.
7956 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7958 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7961 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7963 * gdbarch.h: Regenerate.
7965 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7967 * MAINTAINERS: Add everyone to write-after-approval list.
7969 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7971 * stack.c (frame_info): Use frame_register_unwind instead of
7972 saved_regs. Mention when the SP is on the stack or in a register.
7974 * frame.h (frame_register_unwind_ftype): Define. Document.
7975 (struct frame_info): Add field register_unwind and
7976 register_unwind_cache.
7977 (frame_register_unwind): Declare.
7978 (generic_unwind_get_saved_register): Declare.
7980 * frame.c (frame_register_unwind): New function.
7981 (generic_unwind_get_saved_register): New function.
7983 * blockframe.c (generic_call_dummy_register_unwind): New function.
7984 (frame_saved_regs_register_unwind): New function.
7985 (set_unwind_by_pc): New function.
7986 (create_new_frame): New function.
7987 (get_prev_frame): New function.
7989 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7991 * a29k-share/: Delete directory.
7992 * remote-vx29k.c: Delete file.
7994 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7996 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7997 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7999 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8001 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8002 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8005 (sparcnbsd-tdep.o): New dependency lists.
8006 * NEWS: Note new UltraSPARC NetBSD native configuration.
8007 * configure.host (sparc64-*-netbsd*): New host.
8008 * configure.tgt (sparc-*-netbsdelf*)
8009 (sparc-*-netbsd*): Set gdb_target to nbsd.
8010 (sparc64-*-netbsd*): New target.
8011 * sparc64nbsd-nat.c: New file.
8012 * sparcnbsd-nat.c: New file.
8013 * sparcnbsd-tdep.c: New file.
8014 * sparcnbsd-tdep.h: New file.
8015 * config/sparc/nbsd.mt: New file.
8016 * config/sparc/nbsd64.mh: New file.
8017 * config/sparc/nbsd64.mt: New file.
8018 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8019 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8021 * config/sparc/nbsdaout.mt: Remove.
8022 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8023 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8025 * config/sparc/nbsdelf.mt: Remove.
8026 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8027 sparc-nat.c compatiblity defines.
8028 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8029 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8030 * config/sparc/tm-nbsd64.h: New file.
8031 * config/sparc/tm-nbsdaout.h: Remove.
8032 * config/sparc/xm-nbsd.h: Remove.
8034 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8036 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8037 * sparc-tdep.c: Include osabi.h.
8038 (gdbarch_tdep): Add osabi member.
8039 (_initialize_sparc_tdep): Use gdbarch_register.
8040 (sparc_gdbarch_init): Use generic OS ABI framework.
8041 (sparc_dump_tdep): New function.
8043 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8045 * corefile.c (do_captured_read_memory_integer): Return non-zero
8047 (safe_read_memory_integer): Copy result of memory read when
8048 status is non-zero. Also, add comments.
8050 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8052 * Makefile.in (ppc_tdep_h): Define.
8055 (rs6000-tdep.o): Use $(ppc_tdep_h).
8058 (ppcnbsd-tdep.o): New dependency lists.
8059 * ppc-tdep.h: Use generic OS ABI framework.
8060 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8061 (ppc_linux_init_abi): New functions.
8062 (ppc_sysv_abi_broken_use_struct_convention)
8063 (ppc_sysv_abi_use_struct_convention)
8064 (ppc_sysv_abi_push_arguments): Move to...
8065 * ppc-sysv-tdep.c: ...here.
8066 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8067 * rs6000-tdep.c (process_note_abi_tag_sections)
8068 (get_elfosabi): Remove.
8069 (rs6000_gdbarch_init): Use generic OS ABI framework.
8070 (rs6000_dump_tdep): New function.
8071 (_initialize_rs6000_tdep): Use gdbarch_register.
8072 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8073 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8074 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8075 of ppc-linux-tdep.o.
8076 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8077 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8078 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8079 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8080 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8081 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8083 2002-05-29 Jim Blandy <jimb@redhat.com>
8085 * macroscope.c (default_macro_scope): Put `void' in empty argument
8088 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8090 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8091 * arch-utils.c: Include "sim-regno.h".
8092 * gdbarch.sh: Don't include "sim-regno.h".
8093 * gdbarch.h, gdbarch.c: Regenerate.
8094 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8096 * arch-utils.h (legacy_register_sim_regno): To here.
8097 * remote-sim.c (legacy_register_sim_regno): Move function from
8099 * arch-utils.c (legacy_register_sim_regno): To here.
8101 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8103 * sim-regno.h: New file.
8104 * Makefile.in (sim_regno_h): Define.
8105 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8106 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8107 (legacy_register_sim_regno): New function.
8108 (one2one_register_sim_regno): New function.
8109 (gdbsim_fetch_register): Rewrite.
8110 (gdbsim_store_register): Only store a register when
8111 REGISTER_SIM_REGNO is valid.
8112 * d10v-tdep.c: Include "sim-regno.h".
8113 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8114 (d10v_ts3_register_sim_regno): Ditto.
8115 * gdbarch.sh: Include "sim-regno.h".
8116 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118 * arch-utils.h (default_register_sim_regno): Delete declaration.
8119 * arch-utils.c (default_register_sim_regno): Delete function.
8121 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8123 * ppcnbsd-nat.c: Rewrite.
8124 * ppcnbsd-tdep.c: New file.
8125 * ppcnbsd-tdep.h: New file.
8126 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8127 solib.o, and solib-svr4.o.
8128 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8129 nbsd-tdep.o, and corelow.o.
8131 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8133 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8134 `tr' and `sed'. Mention that `broken' targets are not expected to
8137 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8139 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8140 Let PC point right after the prologue before looking up symbols.
8142 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8144 * i386-tdep.c (i386_register_virtual_type): Return
8145 builtin_type_vec128i for SSE registers.
8147 * gdbtypes.h (builtin_type_vec128i): Declare.
8149 * gdbtypes.c (build_builtin_type_vec128i): New function.
8150 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8151 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8152 (build_gdbtypes): Initialize new builtin vector types.
8153 (_initialize_gdbtypes): Register new vector types with gdbarch.
8155 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8157 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8158 since it has been multi-arch'd.
8159 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8160 Move Alpha and VAX multi-arch news entries to same section
8161 as other multi-arch news.
8163 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8165 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8166 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8167 static. Rename some register numbers to put them in ns32k-tdep
8169 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8170 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8172 (_initialize_ns32k_tdep): Use gdbarch_register.
8173 * ns32k-tdep.h: New file.
8174 * ns32knbsd-tdep.c: New file.
8175 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8176 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8177 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8178 REGISTER_BYTES, REGISTER_BYTE): Remove.
8179 * config/ns32k/tm-ns32k.h: New file.
8180 * config/ns32k/tm-umax.h: Remove.
8182 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8184 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8185 ns32k_store_struct_return, ns32k_extract_return_value,
8186 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8188 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8189 ns32k_saved_pc_after_call.
8190 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8191 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8192 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8193 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8194 ns32k_extract_struct_value_address.
8196 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8198 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8199 ns32k_fix_call_dummy): New.
8200 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8201 ns32k_call_dummy_words.
8202 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8203 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8204 CALL_DUMMY_NARGS): Remove.
8205 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8207 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8209 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8210 ns32k_frame_saved_pc, ns32k_frame_args_address,
8211 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8212 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8213 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8214 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8215 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8216 (BREAKPOINT): Remove..
8217 (FRAME_CHAIN): Define as ns32k_frame_chain.
8218 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8219 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8220 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8221 (FRAME_FIND_SAVED_REGS): Remove.
8222 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8223 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8224 (POP_FRAME): Define as ns32k_pop_frame.
8226 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8228 * ns32k-tdep.c (ns32k_register_byte_32082,
8229 ns32k_register_byte_32382, ns32k_register_raw_size,
8230 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8232 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8233 ns32k_register_byte_32382.
8234 * config/ns32k/tm-umax.h: Update copyright years.
8235 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8236 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8237 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8238 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8239 (ns32k_get_enter_addr): Fix prototype.
8241 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8243 * ns32k-tdep.c: Update copyright years.
8244 (ns32k_register_name_32082): New function.
8245 (ns32k_register_name_32382): Ditto.
8246 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8247 (REGISTER_NAME): Define as ns32k_register_name_32382.
8248 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8249 (REGISTER_NAME): Define as ns32k_register_name_32082.
8251 2002-05-24 Jim Blandy <jimb@redhat.com>
8253 * dwarf2read.c (free_line_header): Use xfree, not free.
8255 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8257 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8258 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8260 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8262 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8264 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8266 From Ross Alexander at NEC Europe:
8267 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8269 2002-05-23 Michael Snyder <msnyder@redhat.com>
8271 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8272 for input, rather than parse_and_eval_address.
8274 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8276 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8277 * Makefile.in (sim_d10v_h): Update definition.
8279 2002-05-24 Andrew Cagney <cagney@redhat.com>
8281 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8282 change `2002-05-22 Michael Snyder' below.
8283 (d10v_push_arguments): Ditto.
8284 (d10v_extract_return_value): Ditto.
8286 2002-05-23 Jim Blandy <jimb@redhat.com>
8288 * macrotab.c (check_for_redefinition): Don't complain if the new
8289 definition is the same as the previous one. Take more arguments
8290 to allow the comparison.
8291 (macro_define_object, macro_define_function): Pass more arguments
8292 to check_for_redefinition.
8294 2002-05-22 Michael Snyder <msnyder@redhat.com>
8296 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8297 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8298 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8299 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8300 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8301 Add a temp variable to save a call (and a memory read).
8302 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8303 if possible (so that PC_IN_CALL_DUMMY will work).
8305 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8307 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8309 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8311 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8313 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8314 (dwarf2_build_frame_info): Add offset to fde->initial_location
8315 so that frames of shared libraries are mapped correctly.
8316 (execute_stack_op): Change type of 'result' from ULONGEST to
8319 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8321 * config/alpha/tm-nbsd.h: Include solib.h.
8323 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8325 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8326 assumptions about the host's byte order.
8328 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8330 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8332 * alphanbsd-tdep.c: Include solib-svr4.h.
8333 * shnbsd-tdep.c: Ditto.
8335 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8337 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8338 nbsd-tdep.h to dependency list.
8339 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8340 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8341 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8342 nbsdaout.mh and nbsdelf.mh consistently.
8343 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8344 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8345 nbsdaout.mt and nbsdelf.mh consistently.
8346 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8347 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8348 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8349 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8350 a.out shared library stuff from here...
8351 * config/nm-nbsdaout.h: ...to here.
8352 * config/tm-nbsd.h: Remove.
8353 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8354 * config/arm/nbsd.mh: Remove.
8355 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8357 * config/arm/nbsdaout.mh: New file.
8358 * config/arm/nbsdelf.mh: New file.
8359 * config/arm/nm-nbsdaout.h: New file.
8360 * config/i386/nbsd.mh: Remove.
8361 * config/i386/nbsd.mt: Remove.
8362 * config/i386/nbsdaout.mh: New file.
8363 * config/i386/nbsdaout.mt: New file.
8364 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8365 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8366 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8367 i386_register_u_addr): Remove.
8368 * config/i386/nm-nbsdaout.h: New file.
8369 * config/i386/nm-nbsdelf.h: Remove.
8370 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8371 (USE_STRUCT_CONVENTION): Remove.
8372 * config/i386/tm-nbsdaout.h: New file.
8373 * config/i386/tm-nbsdelf.h: Remove.
8374 * config/m68k/nbsd.mh: Remove.
8375 * config/m68k/nbsd.mt: Remove.
8376 * config/m68k/nbsdaout.mh: New file.
8377 * config/m68k/nbsdaout.mt: New file.
8378 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8379 * config/m68k/nm-nbsdaout.h: New file.
8380 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8381 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8382 * config/ns32k/nbsd.mh: Remove.
8383 * config/ns32k/nbsd.mt: Remove.
8384 * config/ns32k/nbsdaout.mh: New file.
8385 * config/ns32k/nbsdaout.mt: New file.
8386 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8387 * config/ns32k/nm-nbsdaout.h: New file.
8388 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8389 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8390 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8391 (SVR4_SHARED_LIBS): Remove.
8392 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8393 * config/sparc/nbsd.mh: Remove.
8394 * config/sparc/nbsd.mt: Remove.
8395 * config/sparc/nbsdaout.mh: New file.
8396 * config/sparc/nbsdaout.mt: New file.
8397 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8398 * config/sparc/nbsdelf.mt: New file.
8399 * config/sparc/nm-nbsdaout.h: New file.
8400 * config/sparc/nm-nbsdelf.h: Remove.
8401 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8402 * config/sparc/tm-nbsdaout.h: New file.
8404 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8406 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8408 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8410 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8412 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8414 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8416 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8418 * NEWS: Note new MIPS NetBSD native configuration.
8419 * configure.host (mips*-*-netbsd*): New host.
8420 * configure.tgt (mips*-*-netbsd*): New target.
8421 * mipsnbsd-nat.c: New file.
8422 * mipsnbsd-tdep.c: New file.
8423 * mipsnbsd-tdep.h: New file.
8424 * config/mips/nbsd.mh: New file.
8425 * config/mips/nbsd.mt: New file.
8426 * config/mips/nm-nbsd.h: New file.
8427 * config/mips/tm-nbsd.h: New file.
8429 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8431 * Makefile.in (SFILES): Add osabi.c.
8432 (COMMON_OBS): Add osabi.o.
8433 (osabi.o): New dependency list.
8434 * osabi.c: New file.
8435 * osabi.h: New file.
8436 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8438 * Makefile.in (alpha_tdep_h): Define and use instead of
8440 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8441 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8443 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8444 * alpha-tdep.h: Include osabi.h.
8445 (alpha_abi): Remove.
8446 (gdbarch_tdep): Use generic OS ABI framework.
8447 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8448 gdbarch_register_osabi.
8449 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8450 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8451 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8453 * Makefile.in (sh_tdep_h): Add osabi.h.
8454 * sh-tdep.h (sh_osabi): Remove.
8455 (gdbarch_tdep): Use generic OS ABI framework.
8456 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8457 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8458 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8459 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8461 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8462 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8463 gdbarch_register_osabi.
8464 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8465 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8466 (get_elfosabi): Rename to...
8467 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8468 ABI framework support routines.
8469 (arm_gdbarch_init): Use generic OS ABI framework.
8470 (arm_dump_tdep): Likewise.
8471 (_initialize_arm_tdep): Likewise.
8472 * arm-tdep.h: Include osabi.h.
8474 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8476 (arm_gdbarch_register_os_abi): Remove prototype.
8477 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8478 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8480 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8481 * mips-tdep.c: Include osabi.h.
8482 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8485 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8487 * h8300-tdep.c: Fix formatting.
8489 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8491 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8492 printing vector registers.
8494 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8496 From Fernando Nasser:
8497 * remote.c (remote_async_open_1): Re-throw the exception when the
8499 (remote_cisco_open): Ditto.
8500 (remote_open_1): Ditto.
8502 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8504 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8505 (remote_start_remote): Add uiout parameter. Pass through to
8506 remote_start_remote_dummy.
8507 (remote_open_1): Use catch_exception instead of catch_errors.
8508 (remote_async_open_1): Ditto.
8509 (remote_cisco_open): Ditto.
8511 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8513 * remote.c (remote_start_remote): Replace PTR with void pointer.
8514 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8517 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8519 * gdb_indent.sh: Allow the script to be run in the sim directory.
8521 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8523 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8524 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8526 * corelow.c (core_open): Only call set_gdbarch_from_file if
8529 2002-05-17 Andrey Volkov <avolkov@transas.com>
8531 * h8300-tdep.c: Add support of EXR register
8532 * config/h8300/tm-h8300.h: Ditto.
8534 2002-05-17 Andrey Volkov <avolkov@transas.com>
8536 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8538 2002-05-17 Andrey Volkov <avolkov@transas.com>
8540 * h8300-tdep.c: Change literal regnums to REGNO.
8542 2002-05-17 Jim Blandy <jimb@redhat.com>
8544 * NEWS: Note addition of macro support.
8546 Expand preprocessor macros in C expressions.
8547 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8548 (scan_macro_expansion, scanning_macro_expansion,
8549 finished_macro_expansion): New function declarations.
8550 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8551 variable declarations.
8552 * parser-defs.h (expression_context_pc): New declaration.
8553 * parse.c (expression_context_pc): New variable.
8554 (parse_exp_1): Set expression_context_pc, as well as
8555 expression_context_block.
8556 * c-exp.y (yylex): If we're not already reading the result of a
8557 macro expansion, try to macro-expand the next token. When we're
8558 done scanning a macro expansion, switch back to the mainline text.
8559 Commas and `if's in a macro's expansion don't terminate the input.
8560 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8561 (macro_original_text, macro_expanded_text,
8562 expression_macro_lookup_func, expression_macro_lookup_baton): New
8564 (scan_macro_expansion, scanning_macro_expansion,
8565 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8566 c_preprocess_and_parse): New functions.
8567 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8568 c_preprocess_and_parse, instead of c_parse.
8569 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8570 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8572 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8574 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8575 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8576 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8578 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8580 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8582 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8584 * Makefile.in (sh_tdep_h): Define and use.
8585 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8586 register enum): Move to...
8587 * * sh-tdep.h: ...here.
8588 * sh-tdep.c: Include sh-tdep.h.
8589 * sh3-rom.c: Likewise.
8590 * shnbsd-tdep.c: Likewise.
8592 2002-05-16 Michael Snyder <msnyder@redhat.com>
8594 * arm-tdep.c: Spelling fix in comment.
8596 2002-05-16 Jim Blandy <jimb@redhat.com>
8598 Add commands for manually expanding macros and showing their
8600 * macrocmd.c, macroscope.c, macroscope.h: New files.
8601 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8602 (macroscope_h): New variable.
8603 (HFILES_NO_SRCDIR): Add macroscope.h.
8604 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8605 (macroscope.o, macrocmd.o): New rules.
8607 Teach the Dwarf 2 reader to read macro information.
8608 * dwarf2read.c: #include "macrotab.h".
8609 (dwarf_macinfo_buffer): New variable.
8610 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8612 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8613 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8614 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8615 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8616 dwarf2_macro_spaces_in_definition): New complaints.
8617 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8618 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8619 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8620 the partial symbol table.
8621 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8622 from what's recorded in the partial symbol table.
8623 (read_file_scope): If the compilation unit has a
8624 `DW_AT_macro_info' attribute, read its macro information.
8625 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8627 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8630 * ser-tcp.c: Don't include <netinet/udp.h>.
8632 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8634 * MAINTAINERS: Update my email address.
8636 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8638 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8639 include file of the same name.
8641 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8643 * configure.tgt: Mark v850 as multi-arched.
8644 * config/v850/tm-v850.h: Remove file.
8645 * config/v850/v850.mt: Eliminate TM_FILE.
8647 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8649 * v850-tdep.c: Full multi-arch.
8650 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8651 Define GDB_MULTI_ARCH to 2.
8653 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8655 * p-exp.y (current_type): New static variable.
8656 Carries the type of the expression at the position that is parsed.
8657 (push_current_type, pop_current_type): Two new functions. Used
8658 to store/restore current_type in expression on specific tokens.
8659 (search_field): New static variable. Set to one after parsing a point
8660 as at that point only a FIELDNAME token should be searched.
8661 (FIELDNAME): New token. After a point only a token belonging to
8662 current_type type definition is allowed.
8663 (all over token rules): reset and change current_type according
8665 (exp '[' rule): insert implicit array index field if
8666 exp is a pascal string type.
8668 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8670 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8671 frame info. Use frame_info's saved_regs instead of matching member
8672 in extra_frame_info throughout.
8673 (v850_frame_init_saved_regs): New function.
8674 (v850_init_extra_frame_info): Move most functionality into
8675 v850_frame_init_saved_regs().
8676 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8677 (v850_frame_find_saved_regs): Remove declaration.
8678 (FRAME_FIND_SAVED_REGS): Remove definition.
8679 (v850_frame_init_saved_regs): Add declaration.
8680 (FRAME_INIT_SAVED_REGS): Add definition.
8682 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8684 * v850-tdep.c: Begin multi-arch'ing v850.
8685 (v850_target_architecture_hook): Remove function.
8686 (v850_gdbarch_init): New function. Add code previously in
8687 v850_target_architecture_hook().
8688 (_initialize_v850_tdep): Don't set target_architecture_hook.
8689 Call register_gdbarch_init() instead.
8691 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8693 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8694 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8695 (fixup_class_method_type): Likewise.
8697 2002-05-15 Jim Blandy <jimb@redhat.com>
8699 Add macro structures to GDB's symbol tables. Nobody puts anything
8701 * symtab.h (struct symtab): New member: `macro_table'.
8702 * buildsym.h (pending_macros): New global variable.
8703 * buildsym.c: #include "macrotab.h".
8704 (buildsym_init): Initialize `pending_macros'.
8705 (end_symtab): If we found macro information while reading a CU's
8706 debugging info, do build a symtab structure for it. Make the
8707 symtab point to the macro information, and clear the
8708 `pending_macros' pointer which held it while we were reading the
8710 (really_free_pendings): Free any pending macro table.
8711 * objfiles.h (struct objfile): New member: `macro_cache'.
8712 * objfiles.c (allocate_objfile): Set allocate and free functions
8713 for the macro cache's objstack.
8714 (free_objfile): Empty the macro cache's obstack.
8715 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8716 set new allocate and free functions for it.
8717 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8718 free functions for the macro cache's objstack. (Why is this
8719 function building its own objfile?)
8720 * symmisc.c (print_objfile_statistics): Print statistics on the
8722 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8724 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8726 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8727 (REGISTER_U_ADDR): Delete definition.
8728 (arm_register_u_addr): Delete declaration.
8730 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8732 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8733 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8735 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8737 * regcache.c (register_valid): Revise comments refering to "Not
8738 available" and "unavailable".
8739 * frame.c (frame_register_read): Ditto.
8740 * findvar.c (value_of_register): Ditto.
8742 2002-05-15 Andrew Cagney <cagney@redhat.com>
8744 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8745 (remote-sim.o): Update dependencies.
8746 (d10v-tdep.o): Specify dependencies.
8747 (sim_d10v_h): Define.
8749 2002-05-14 Jim Blandy <jimb@redhat.com>
8751 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8752 * macrotab.c (macro_lookup_inclusion, find_definition,
8753 new_macro_table): Same.
8755 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8756 not `! strcmp ()'. This is a dubious improvement.
8757 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8759 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8760 although it's not necessary, to avoid a warning.
8762 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8764 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8765 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8766 TYPE_INSTANCE_FLAGS.
8767 (struct main_type): New.
8768 (struct type): Move most members to struct main_type. Change
8769 cv_type and as_type to new type_chain member. Add instance_flags.
8770 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8771 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8772 (finish_cv_type): Remove prototype.
8773 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8775 (alloc_type_instance): New function.
8776 (smash_type): New function.
8777 (make_pointer_type, make_reference_type, make_function_type)
8778 (smash_to_member_type, smash_to_method_type): Call smash_type.
8779 (make_qualified_type): New function.
8780 (make_type_with_address_space): Call make_qualified_type.
8781 (make_cv_type): Likewise.
8782 (finish_cv_type): Remove unnecessary function.
8783 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8784 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8785 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8786 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8787 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8788 * hpread.c (hpread_read_struct_type): Likewise.
8789 * stabsread.c (read_struct_type): Likewise.
8791 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8793 * configure.tgt: Add a catch all sh* target, for cases like
8794 sh[2,3,4]-elf and sh-hms.
8796 2002-05-14 Keith Seitz <keiths@redhat.com>
8798 * event-loop.c (create_file_handler): Don't do anything but
8799 update data when we are given a fd which we are already
8802 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8804 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8805 (update_context): Use __func__ in warnings.
8807 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8809 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8810 and tcp_close to net_open and net_close.
8811 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8812 using UDP if requested. Don't try to disable Nagle on UDP
8814 * remote.c (remote_serial_open): New function. Warn about UDP.
8815 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8817 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8819 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8821 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8823 * configure.tgt: Remove sh-hms target.
8824 * MAINTAINERS: Don't list sh-hms as a separate target.
8826 2002-05-13 Jim Blandy <jimb@redhat.com>
8828 Add first preprocessor macro-expansion files.
8829 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8830 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8831 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8832 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8833 (COMMON_OBS): Add macrotab.o, macroexp.o.
8834 (macroexp.o, macrotab.o): New rules.
8836 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8838 * config/m88k/tm-m88k.h: Update copyright.
8839 (m88k_target_write_pc): Declare
8840 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8841 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8842 (SHIFT_INST_REGS): Update definition.
8843 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8844 using old definition of TARGET_WRITE_PC.
8845 * regcache.c (generic_target_write_pc): Delete code handling
8847 * gdbarch.sh (NNPC_REGNUM): Delete.
8848 * gdbarch.h, gdbarch.c: Regenerate.
8850 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8852 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8855 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8857 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8858 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8859 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8861 * c-typeprint.c (cp_type_print_method_args): Likewise.
8862 (c_type_print_args): Likewise.
8863 * d10v-tdep.c (d10v_push_arguments): Likewise.
8864 (d10v_extract_return_value): Likewise.
8865 * expprint.c (print_subexp): Likewise.
8866 * gdbtypes.c (lookup_primitive_typename): Likewise.
8867 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8868 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8869 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8870 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8871 (TYPE_VECTOR): Likewise.
8872 * hpread.c (hpread_read_struct_type)
8873 (fix_static_member_physnames, fixup_class_method_type)
8874 (hpread_type_lookup): Likewise.
8875 * mdebugread.c (parse_symbol, parse_type): Likewise.
8876 * p-lang.c (is_pascal_string_type): Likewise.
8877 * valops.c (hand_function_call): Likewise.
8878 * x86-64-tdep.c (classify_argument): Likewise.
8880 * hpread.c (hpread_read_function_type)
8881 (hpread_read_doc_function_type): Call replace_type.
8882 * dstread.c (create_new_type): Delete.
8883 (decode_dst_structure, process_dst_function): Call alloc_type.
8884 Use type access macros.
8886 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8888 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8889 the're not supported by the current architecture.
8890 (i387_fill_fxsave): Likewise.
8892 2002-05-12 Fred Fish <fnf@redhat.com>
8894 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8895 sect_index_xxx members to index the first slot in section_offsets
8896 if all of the section_offsets are zero.
8898 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8900 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8901 checked in with last change.
8903 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8905 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8906 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8909 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8911 * Makefile.in: Update dependencies.
8913 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8915 * language.c (local_hex_string_custom): Simplify. Do not depend
8916 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8918 * memattr.c (mem_info_command): Replace calls to
8919 longest_local_hex_string and longest_local_hex_string_custom.
8920 * buildsym.c (make_blockvector): Ditto.
8921 * solib.c (info_sharedlibrary_command): Ditto.
8922 * tracepoint.c (tracepoints_info): Ditto.
8923 * symtab.c (print_msymbol_info): Ditto.
8925 * language.c (local_hex_string): Delete.
8926 (local_hex_string_custom): Delete.
8927 (longest_local_hex_string): Rename to local_hex_string.
8928 (longest_local_hex_string_custom): Rename to
8929 local_hex_string_custom.
8930 * language.h (local_hex_string): Change parameter type to LONGEST.
8931 (local_hex_string_custom): Ditto.
8932 (longest_local_hex_string): Delete declaration.
8933 (longest_local_hex_string_custom): Ditto.
8935 * solib.c: Update copyright.
8936 * memattr.c: Update copyright.
8938 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8940 * arch-utils.h (legacy_register_to_value): Declare.
8941 (legacy_value_to_register): Declare.
8942 (legacy_convert_register_p): Declare.
8943 * arch-utils.c (legacy_register_to_value): New function.
8944 (legacy_value_to_register): New function.
8945 (legacy_convert_register_p): New function.
8947 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8948 (VALUE_TO_REGISTER): Define.
8949 (CONVERT_REGISTER_P): Define.
8950 * gdbarch.h, gdbarch.c: Regenerate.
8952 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8954 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8957 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8958 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8960 * Makefile.in: Update dependencies for valops.c.
8961 * valops.c: Include "gdb_assert.h".
8962 (typecmp): Skip THIS parameter to methods.
8963 (find_method_list): Remove static_memfuncp argument,
8964 update callers. Check for stub methods.
8965 (find_value_oload_method_list): Don't set *static_memfuncp.
8966 (find_overload_match): Don't check for stub methods. Assert
8967 that methods are not stubbed. Handle static methods.
8968 (value_find_oload_method_list): Remove static_memfuncp argument.
8969 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8970 to the argument list for static stub methods.
8971 * value.h (value_find_oload_method_list): Update prototype.
8973 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8975 * arch-utils.h (generic_register_size): Declare.
8976 (generic_register_raw_size, generic_register_virtual_size): Delete
8978 * arch-utils.c (generic_register_raw_size): Delete.
8979 (generic_register_size): New function.
8980 (generic_register_virtual_size): Delete.
8982 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8983 default generic_register_size.
8984 * gdbarch.h, gdbarch.c: Re-generate.
8986 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8987 register_virtual_size.
8988 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8989 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8991 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8993 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8994 * gdbarch.h, gdbarch.c: Regenerate.
8995 * gnu-v3-abi.c: Update copyright.
8996 (vtable_address_point_offset): Update.
8997 (gnuv3_rtti_type): Update.
8998 (gnuv3_baseclass_offset): Update.
8999 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9000 (init_fetch_link_map_offsets): Update.
9001 * remote.c (get_remote_state): Update.
9003 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9005 * TODO: Remove value_headof/value_from_vtable_info comment.
9006 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9007 * values.c (value_headof, value_from_vtable_info): Delete.
9008 * value.h (value_from_vtable_info): Delete prototype.
9010 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9012 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9013 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9015 (gdb_assert_h): Define.
9016 (gdb_wait_h): Define.
9017 (gdb_regex_h): Define.
9019 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9021 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9022 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9024 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9026 * nbsd-tdep.c: Fix comment.
9028 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9030 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9031 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9032 (nbsd-tdep.o): New dependency list.
9033 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9035 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9036 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9037 * nbsd-tdep.c: New file.
9038 * nbsd-tdep.h: New file.
9039 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9041 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9042 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9043 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9044 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9046 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9048 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9049 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9050 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9051 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9052 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9053 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9055 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9057 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9058 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9059 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9060 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9061 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9062 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9063 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9065 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9067 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9068 fetch_elfcore_registers to...
9069 * i386nbsd-tdep.c: ...here.
9070 (i386nbsd_use_struct_convention): Rename to...
9071 (i386nbsd_aout_use_struct_convention): ...this.
9072 (i386nbsd_supply_reg): New function.
9073 (i386nbsd_fill_reg): New function.
9074 (fetch_core_registers): Use i386nbsd_supply_reg.
9075 (fetch_elfcore_registers): Likewise.
9076 (_initialize_i386nbsd_tdep): New function.
9077 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9078 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9079 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9080 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9081 (i386nbsd_aout_use_struct_convention): ...this.
9083 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9085 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9086 (store_inferior_registers): Use shnbsd_fill_reg.
9087 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9088 sh_nbsd_supply_register): Collapse into...
9089 (shnbsd_supply_reg): ...this.
9090 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9091 (shnbsd_fill_reg): ...this.
9092 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9093 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9094 (fetch_core_registers): Use shnbsd_supply_reg.
9095 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9096 (sh_nbsd_core_fns): Rename to...
9097 (shnbsd_core_fns): ...this.
9098 (sh_nbsd_elfcore_fns): Rename to...
9099 (shnbsd_elfcore_fns): ...this.
9100 (sh_nbsd_init_abi): Rename to...
9101 (shnbsd_init_abi): ...this.
9102 (_initialize_sh_nbsd_tdep): Rename to...
9103 (_initialize_shnbsd_tdep): ...this.
9104 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9105 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9106 sh_nbsd_fill_register): Remove prototypes.
9107 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9109 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9111 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9112 (i387-nat.o): Delete dependency list.
9113 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9114 (x86-64-linux-nat.o): Likewise.
9115 * i387-nat.c: Delete file, moving contents to...
9116 * i387-tdep.c: ...here.
9117 * i387-nat.h: Rename...
9118 * i387-tdep.h: ...to this.
9119 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9120 * i386-linux-nat.c: Likewise.
9121 * i386bsd-nat.c: Likewise.
9122 * i386gnu-nat.c: Likewise.
9123 * i386nbsd-nat.c: Likewise.
9124 * i386v4-nat.c: Likewise.
9125 * x86-64-linux-nat.c: Likewise.
9126 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9127 * config/i386/go32.mh (NATDEPFILES): Likewise.
9128 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9129 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9130 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9131 * config/i386/linux.mh (NATDEPFILES): Likewise.
9132 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9133 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9134 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9135 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9137 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9139 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9140 (alphanbsd-nat.o): Remove dependency list.
9141 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9142 * alphanbsd-nat.c: Delete. Contents moved to...
9143 * alphanbsd-tdep.c: ...here.
9144 (_initialize_alphanbsd_tdep): Register core functions.
9145 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9147 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9149 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9150 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9151 (alphanbsd-nat.o): Likewise.
9152 (alphabsd-tdep.o): New dependency list.
9153 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9154 (fill_gregset): Use alphabsd_fill_reg.
9155 (supply_fpregset): Use alphabsd_supply_fpreg.
9156 (fill_fpregset): Use alphabsd_fill_fpreg.
9157 (fetch_inferior_registers): Use struct reg and struct fpreg
9158 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9159 and alphabsd_supply_fpreg.
9160 (store_inferior_registers): Use struct reg and struct fpreg
9161 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9162 and alphabsd_fill_fpreg.
9163 * alphabsd-tdep.c: New file.
9164 * alphabsd-tdep.h: New file.
9165 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9166 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9167 alphabsd_supply_fpreg.
9168 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9169 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9171 2002-05-11 Eric Christopher <echristo@redhat.com>
9173 * mips-tdep.c (mips_double_register_type): Fix thinko.
9174 (mips_single_register_type): Ditto.
9175 * MAINTAINERS: Add self.
9177 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9179 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9180 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9181 right thing on architectures with different endianness and/or
9184 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9186 From Christian Limpach <chris@Pin.LU>
9187 * configure.in: Change sed expression which comments out
9188 NATDEPFILES to also comment out continuation lines.
9189 * configure: Regenerate.
9191 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9193 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9196 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9198 * sh-tdep.c: Include correct file.
9200 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9202 New support for sh64-elf (sh5) target.
9204 * configure.tgt: For sh64-elf target, default to sh-elf.
9206 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9207 (struct gdbarch_tdep): Add new fields for new registers and ABI
9210 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9211 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9212 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9213 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9214 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9215 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9216 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9217 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9218 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9219 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9220 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9221 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9222 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9223 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9224 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9225 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9226 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9227 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9228 sign_extend, sh64_nofp_frame_init_saved_regs,
9229 sh64_init_extra_frame_info, sh64_get_saved_register,
9230 sh64_extract_struct_value_address, sh64_pop_frame,
9231 sh64_push_arguments, sh64_extract_return_value,
9232 sh64_store_return_value, sh64_show_media_regs,
9233 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9234 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9235 sh_sh64_register_virtual_type,
9236 sh_sh64_register_convert_to_virtual,
9237 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9238 sh64_register_read, sh64_pseudo_register_write,
9239 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9240 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9241 sh64_do_pseudo_register, sh_compact_do_registers_info,
9242 sh64_do_registers_info, sh_gdbarch_init): New functions.
9244 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9246 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9248 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9250 * linespec.c (decode_line_1): Check for a double quote after
9251 a filename correctly.
9253 2002-05-10 Jim Blandy <jimb@redhat.com>
9255 Properly track the size of the current objfile's .debug_line section.
9256 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9257 (DWARF_LINE_SIZE): New macro.
9258 (dwarf2_build_psymtabs_hard): Record the line section's size in
9259 the partial symbol table.
9260 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9263 2002-05-10 Petr Sorfa <petrs@caldera.com>
9265 * ia64-tdep.c: Handle breakpoints on L instruction type
9266 in MLX instruction bundle by moving the breakpoint to
9267 the third slot (X instruction type) as L holds only data.
9269 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9271 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9272 (process_one_symbol): Complain about discarding local symbols
9273 due to a misplaced N_LBRAC entry.
9275 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9277 From Daniel Berlin <dan@cgsoftware.com>
9278 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9279 decrease the depth we are at, in the case of templates.
9281 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9283 * mips-tdep.c (mips_float_register_type): New function.
9284 (mips_double_register_type): New function.
9285 (mips_print_register): Use them.
9286 (do_fp_register_row): Likewise.
9288 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9290 * signals/signals.c (signals): Remove conditional compilation around
9291 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9292 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9294 2002-05-09 Michael Snyder <msnyder@redhat.com>
9296 * remote-rdp.c (remote_rdp_can_run): Remove.
9298 2002-05-09 Tom Tromey <tromey@redhat.com>
9300 * jv-valprint.c (java_val_print): Handle `char' as a special case
9303 2002-05-09 Michael Snyder <msnyder@redhat.com>
9305 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9306 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9307 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9308 str r(0123),[sp,#nn].
9309 (arm_skip_prologue): Ditto. Also make disassembly
9310 order-independent by placing it in a loop.
9312 2002-05-06 Michael Snyder <msnyder@redhat.com>
9314 * stabsread.c (read_type): Add recognition for new attribute:
9315 "@V;" means that an array type is actually a vector.
9316 This is analogous to the vector flag that's been added to dwarf2.
9318 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9320 * i386-tdep.h (i386_abi): New enum.
9321 (struct gdbarch_tdep): Replace os_ident member with abi.
9322 (i386_gdbarch_register_os_abi): New prototype.
9323 * i386-tdep.c (i386_abi_names): New array.
9324 (process_note_abi_tag_sections): Removed.
9325 (process_note_sections): New function.
9326 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9327 (struct i386_abi_handler): New struct.
9328 (i386_abi_handler_list): New variable.
9329 (i386_gdbarch_register_os_abi): New function.
9330 (i386_gdbarch_init): Adapt for the changes given above.
9332 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9334 * gregset.h: Say "GNU/Linux".
9336 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9338 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9339 (build_gdbtypes): Build builtin_type_v2_float.
9340 (_initialize_gdbtypes): Register new builtin type.
9342 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9344 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9345 (clear_gdbarch_swap): New function.
9346 (initialize_non_multiarch): Call.
9347 (gdbarch_update_p): Before calling init(), swap out and clear the
9348 existing architecture.
9349 * gdbarch.c: Regenerate.
9351 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9353 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9356 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9358 * sh-nbsd-nat.c: Rename to...
9359 * shnbsd-nat.c: ...this.
9360 * sh-nbsd-tdep.c: Rename to...
9361 * shnbsd-tdep.c: ...this.
9362 * sh-nbsd-tdep.h: Rename to...
9363 * shnbsd-tdep.h: ...this.
9364 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9365 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9367 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9369 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9370 concatenation for command help messages.
9372 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9374 * NEWS: Note new sh*-*-netbsdelf* configuration.
9375 * configure.host: Set gdb_host_cpu to sh for all sh*.
9376 (sh*-*-netbsdelf*): New host.
9377 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9378 (sh*-*-netbsdelf*): New target.
9379 * sh-nbsd-nat.c: New file.
9380 * sh-nbsd-tdep.c: New file.
9381 * sh-nbsd-tdep.h: New file.
9382 * config/sh/nbsd.mh: New file.
9383 * config/sh/nbsd.mt: New file.
9384 * config/sh/nm-nbsd.h: New file.
9385 * config/sh/tm-nbsd.h: New file.
9387 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9389 * sh-tdep.c (sh_osabi_names): Declare.
9390 (process_note_abi_tag_sections): New function.
9391 (get_elfosabi): Ditto.
9392 (sh_gdbarch_register_os_abi): Ditto.
9393 (sh_dump_tdep): Ditto.
9394 _initialize_sh_tdep): Use gdbarch_register to register
9395 sh_gdbarch_init and sh_dump_tdep.
9396 * config/sh/tm-sh.h (sh_osabi): Declare.
9397 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9399 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9401 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9402 (thumb_scan_prologue): Ditto.
9403 (arm_find_callers_reg): Ditto.
9404 (arm_frame_chain): Ditto.
9405 (arm_init_extra_frame_info): Ditto.
9406 (arm_frame_saved_pc): Ditto.
9407 (arm_pop_frame): Ditto.
9408 (arm_push_return_address): New function.
9409 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9410 call_dummy_location, call_dummy_breakpoint_offset_p,
9411 call_dummy_breakpoint_offset, call_dummy_p,
9412 call_dummy_stack_adjust_p, call_dummy_words,
9413 sizeof_call_dummy_words, call_dummy_start_offset,
9414 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9415 call_dummy_address, push_return_address and push_dummy_frame for
9416 generic dummy frames.
9418 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9420 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9421 size computation for alloca.
9422 (sh_fp_frame_init_saved_regs): Likewise.
9424 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9426 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9427 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9428 * arm-tdep.c (arm_store_return_value): Use them.
9429 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9430 * remote-rdp.c (remote_rdp_fetch_register): Use
9431 ARM_MAX_REGISTER_RAW_SIZE.
9432 (remote_rdp_store_register): Likewise.
9434 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9436 * dwarf2cfi.c: Code cleanup, removed unused variables,
9437 added default labels to switch {} statements.
9438 * x86-64-tdep.c: Ditto.
9439 * x86-64-linux-nat.c: Ditto.
9441 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9443 * solib.h: Protect against multiple inclusion.
9445 2002-05-06 Jim Blandy <jimb@redhat.com>
9447 Add first preprocessor macro-expansion files.
9448 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9449 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9450 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9451 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9452 (COMMON_OBS): Add macrotab.o, macroexp.o.
9453 (macroexp.o, macrotab.o): New rules.
9455 Separate the job of reading the line number info statement program
9456 header (...expialidocious) out into its own function.
9457 * dwarf2read.c (struct line_head, struct filenames, struct
9458 directories): Replace with...
9459 (struct line_header): New structure, containing the full
9460 contents of the statement program header, including the
9461 include directory and file name tables.
9462 (read_file_scope): If we have line number info, instead of just
9463 calling dwarf_decode_lines to do all the work, call
9464 dwarf_decode_line_header first to get a `struct line_header'
9465 containing the data in the statement program header, and then
9466 pass that to dwarf_decode_lines, which will pick up where that
9467 left off. Be sure to clean up the `struct line_header' object.
9468 (dwarf_decode_line_header, free_line_header, add_include_dir,
9469 add_file_name): New functions.
9470 (dwarf_decode_lines): Move all the code to read the statement
9471 program header into dwarf_decode_line_header. Take the line
9472 header it built as the first argument, instead of the offset to
9473 the compilation unit's line number info. Use the new `struct
9474 line_header' type instead of the old structures. No need to do
9475 cleanups here now, since we don't allocate anything.
9476 (dwarf2_statement_list_fits_in_line_number_section,
9477 dwarf2_line_header_too_long): New complaints.
9479 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9481 * gdbtypes.c (init_vector_type): New function.
9482 (build_builtin_type_vec128): Simplify the representation of SIMD
9484 (build_gdbtypes): Initialize new builtin vector types.
9485 (_initialize_gdbtypes): Register new vector types with gdbarch.
9486 (builtin_type_v4_float, builtin_type_v4_int32,
9487 builtin_type_v8_int16, builtin_type_v16_int8,
9488 builtin_type_v2_int32, builtin_type_v4_int16,
9489 builtin_type_v8_int8): New (renamed) SIMD types.
9491 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9493 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9494 (i387_fill_fxsave): Likewise.
9496 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9498 * alpha-tdep.c (alpha_extract_return_value): Don't use
9499 non-constant array size in prototype.
9501 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9503 From Brian Taylor <briant at model dot com>:
9504 * ui-out.c (ui_out_field_core_addr): Use the function
9505 longest_local_hex_string_custom'to format addresses > 32 bits
9508 * ui-out.c (ui_out_field_core_addr): Update comment.
9510 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9512 * stack.c (select_and_print_frame): Make static. Delete the
9514 (func_command): Update call.
9515 (select_frame_command): Delete code computing the frame level.
9516 * frame.h (select_and_print_frame): Delete declaration.
9518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9520 * sparc-tdep.c (sparc_get_saved_register): Comment why
9521 get_prev_frame call is safe.
9523 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9525 * frame.h (select_frame): Delete level parameter.
9526 * stack.c (select_frame): Update. Use frame_relative_level to
9527 obtain the frame's level.
9528 (select_and_print_frame): Update call.
9529 (select_frame_command): Ditto.
9530 (up_silently_base): Ditto.
9531 (down_silently_base): Ditto.
9532 * ocd.c (ocd_start_remote): Ditto.
9533 * remote-rdp.c (remote_rdp_open): Ditto.
9534 * remote-mips.c (mips_initialize): Ditto.
9535 (common_open): Ditto.
9536 * remote-e7000.c (e7000_start_remote): Ditto.
9537 * m3-nat.c (select_thread): Ditto.
9538 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9539 (child_get_current_exception_event): Ditto.
9540 * varobj.c (varobj_create): Ditto.
9541 (varobj_update): Ditto.
9542 (c_value_of_root): Ditto.
9543 * tracepoint.c (finish_tfind_command): Ditto.
9544 * corelow.c (core_open): Ditto.
9545 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9546 * thread.c (info_threads_command): Ditto.
9547 (switch_to_thread): Ditto.
9548 * infrun.c (normal_stop): Ditto.
9549 (restore_selected_frame): Ditto.
9550 (restore_inferior_status): Ditto.
9551 * breakpoint.c (insert_breakpoints): Ditto.
9552 (watchpoint_check): Ditto.
9553 (bpstat_stop_status): Ditto.
9554 (do_enable_breakpoint): Ditto.
9555 * blockframe.c (flush_cached_frames): Ditto.
9556 (reinit_frame_cache): Ditto.
9558 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9560 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9563 2002-05-04 Jim Blandy <jimb@redhat.com>
9565 * gdbtypes.c (replace_type): Doc fix.
9567 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9569 * valprint.c (strcat_longest): Delete commented out function.
9572 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9574 * MAINTAINERS: Mark a29k as deleted.
9575 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9576 Move new configurations to the top.
9577 * configure.tgt: Remove a29k.
9578 * config/a29k/tm-vx29k.h: Delete.
9579 * config/a29k/vx29k.mt: Delete.
9580 * config/a29k/tm-a29k.h: Delete.
9581 * config/a29k/a29k-udi.mt: Delete.
9582 * config/a29k/a29k.mt: Delete.
9583 * a29k-tdep.c: Delete.
9584 * remote-udi.c: Delete.
9585 * remote-mm.c: Delete.
9586 * remote-eb.c: Delete.
9587 * remote-adapt.c: Delete.
9588 * Makefile.in: Remove obsolete code.
9589 * config/s390/s390x.mt: Ditto.
9590 * config/s390/s390.mt: Ditto.
9591 * config/sparc/sparclynx.mh: Ditto.
9592 * config/sparc/linux.mh: Ditto.
9593 * config/pa/hppaosf.mh: Ditto.
9594 * config/pa/hppabsd.mh: Ditto.
9595 * config/ns32k/nbsd.mt: Ditto.
9596 * config/mips/vr5000.mt: Ditto.
9597 * config/m68k/sun3os4.mh: Ditto.
9598 * config/m68k/nbsd.mt: Ditto.
9599 * config/m68k/m68klynx.mh: Ditto.
9600 * config/m32r/m32r.mt: Ditto.
9601 * config/i386/x86-64linux.mt: Ditto.
9602 * config/i386/nbsdelf.mt: Ditto.
9603 * config/i386/nbsd.mt: Ditto.
9604 * config/i386/i386lynx.mh: Ditto.
9606 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9608 * target.c (debug_print_register): New function. Handle oversize
9610 (debug_to_fetch_registers): Call.
9611 (debug_to_store_registers): Call.
9613 2002-05-03 Jim Blandy <jimb@redhat.com>
9615 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9616 (read_type): Doc fix.
9617 * gdbtypes.c (replace_type): Doc fix.
9619 * stabsread.c (multiply_defined_struct): New complaint.
9620 (read_struct_type): If the type we were passed isn't empty, or
9621 incomplete, don't read the new struct type into it; complain,
9622 and return the original type unchanged. Take a new `type_code'
9623 argument, which is the type code for the new type.
9624 (read_type): Rather than storing the type's type code here, pass
9625 it as an argument to read_struct_type, and let that take care of
9626 storing it. That way, we don't overwrite the original type code,
9627 so read_struct_type can use it to decide whether we're overwriting
9628 something we shouldn't.
9629 (complain_about_struct_wipeout): New function.
9631 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9633 * gdbarch.sh: Assert that gdbarch is non-NULL.
9634 * gdbarch.c: Regenerate.
9636 2002-05-03 Jason Merrill <jason@redhat.com>
9638 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9641 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9643 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9644 (x86_64_dwarf2gdb_regno_map_length),
9645 (x86_64_dwarf2_reg_to_regnum): Added.
9646 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9647 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9648 (_initialize_x86_64_tdep): Synced with the change above.
9649 (x86_64_skip_prologue): Reformulated message.
9651 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9653 * f-exp.y: Also use new prev_lexptr variable
9654 to improve error reporting. Based on Michael Snyder
9655 2002-04-24 dated patch to c-exp.y.
9656 * jv-exp.y: Likewise.
9657 * m2-exp.y: Likewise.
9659 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9661 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9662 we are dealing with vectors.
9664 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9666 * config/m68k/tm-nbsd.h: Obvious fix,
9667 correct machine name.
9669 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9671 * p-typeprint.c (pascal_type_print_base): Add support
9672 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9674 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9676 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9677 for fondamental pascal 'char' type.
9679 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9681 * p-lang.h (is_pascal_string_type): Declaration changed,
9682 new sixth argument of type char ** added.
9683 * p-lang.c (is_pascal_string_type): Implementation
9684 changed. Args length_pos, length_size, string_pos, char_size
9685 can now be NULL. New argument arrayname set to the field
9686 name of the char array. Return value set to char array
9687 field index plus one.
9688 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9689 is_pascal_string_type function.
9691 2002-05-02 Andrew Cagney <cagney@redhat.com>
9693 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9694 <cagney@redhat.com> change.
9695 * gdbarch.c: Regenerate.
9697 2002-05-02 Andrew Cagney <cagney@redhat.com>
9699 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9700 before probing for a new one. Detect errorenous gdbarch_init
9702 * gdbarch.c: Regenerate.
9704 2002-05-01 Andrew Cagney <cagney@redhat.com>
9706 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9707 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9708 * config/v850/tm-v850.h: Ditto. Update copyright.
9710 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9712 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9715 2002-04-30 Michael Snyder <msnyder@redhat.com>
9717 * arm-tdep.c: Whitespace clean-ups.
9718 (arm_skip_prologue): Fix thinko; two lines
9719 should have been removed as part of 4/24 change.
9721 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9723 * rs6000-tdep.c: Added comment describing how fpscr register
9724 numbers were chosen.
9726 2002-04-30 Michael Snyder <msnyder@redhat.com>
9728 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9730 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9732 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9733 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9734 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9736 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9738 From Louis Hamilton <hamilton@redhat.com>:
9739 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9740 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9741 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9742 not bfd-private xcoff data, to determine wordsize.
9743 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9745 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9747 GDB 5.2 released from 5.2 branch.
9749 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9751 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9752 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9753 (x86_64_register_info_table): Added comments with register numbers.
9755 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9757 * rs6000-tdep.c (rs6000_extract_return_value,
9758 rs6000_store_return_value): Handle returning vectors.
9759 (rs6000_gdbarch_init): Use
9760 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9761 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9763 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9765 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9766 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9768 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9770 * hpread.c (hpread_psymtab_to_symtab_1,
9771 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9772 with fprintf_unfiltered (gdb_stderr,...).
9774 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9776 * remote-array.c (printf_monitor, write_monitor,
9777 array_insert_breakpoint, array_remove_breakpoint ):
9778 Replace fprintf (stderr,...
9779 with fprintf_unfiltered (gdb_stderr,....
9780 * remote-es.c: Likewise.
9781 * remote-os9k.c: Likewise.
9782 * remote-st.c: Likewise.
9784 2002-04-28 Andreas Schwab <schwab@suse.de>
9786 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9787 linux-proc.o and gcore.o.
9789 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9791 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9792 code without frame pointers.
9794 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9796 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9799 2002-04-26 Ben Elliston <bje@redhat.com>
9801 * target.c (do_xfer_memory): Correct reference to the new option
9802 "trust-readonly-sections".
9804 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9806 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9807 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9808 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9810 (read_array_type): Record the fact that this array type is really a
9811 vector (i.e. are passed in by value).
9813 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9815 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9816 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9817 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9818 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9819 * alpha-linux-tdep.c: Include frame.h.
9820 (alpha_linux_sigcontext_addr): New function.
9821 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9822 alpha_linux_sigcontext_addr.
9823 * alpha-osf1-tdep.c: Include gdbcore.h.
9824 (alpha_osf1_sigcontext_addr): New function.
9825 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9826 alpha_osf1_sigcontext_addr.
9827 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9828 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9830 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9832 * stack.c (selected_frame_level):
9833 (select_frame): Do not set selected_frame_level.
9834 * frame.h (selected_frame_level): Delete declaration.
9836 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9838 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9839 convert_from_func_ptr-addr when AIX / PowerOpen.
9841 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9843 * valops.c (hand_function_call): Call
9844 generic_save_call_dummy_addr.
9845 * frame.h (generic_save_call_dummy_addr): Declare.
9846 * blockframe.c (struct dummy_frame): Add fields call_lo and
9848 (generic_find_dummy_frame): Check for PC in range call_lo to
9849 call_hi instead of entry_point_address.
9850 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9851 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9852 (generic_save_call_dummy_addr): New function.
9854 2002-04-24 David S. Miller <davem@redhat.com>
9856 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9857 sparc_skip_prologue.
9858 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9859 information to find prologue when possible.
9860 (sparc_prologue_frameless_p): Call examine_prologue directly.
9861 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9862 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9864 (SKIP_PROLOGUE): Likewise.
9866 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9868 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9869 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9870 indicate that the condition it was testing is always true.
9871 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9872 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9873 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9875 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9877 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9878 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9879 tdep->jb_pc and tdep->jb_elt_size.
9880 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9881 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9882 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9883 * alpha-nat.c (get_longjmp_target): Remove.
9884 (JB_ELEMENT_SIZE): Ditto.
9886 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9887 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9888 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9889 to alpha_get_longjmp_target.
9890 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9891 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9892 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9894 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9896 * README: Update to GDB 5.2.
9898 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9900 * gdbarch.sh (LC_ALL): Set to `c'.
9902 2002-04-25 Theodore A. Roth <troth@verinet.com>
9904 * avr-tdep.c: Ran through gdb_indent.sh.
9906 2002-04-25 Theodore A. Roth <troth@verinet.com>
9908 * MAINTAINERS: Add myself as AVR maintainer.
9909 * NEWS: Note new target avr.
9911 2002-04-25 Theodore A. Roth <troth@verinet.com>
9913 * Makefile.in: Add support for AVR target.
9914 * configure.tgt: Add support for AVR target.
9915 * avr-tdep.c: New file
9916 * config/avr/avr.mt: New file.
9918 2002-04-25 Theodore A. Roth <troth@verinet.com>
9920 * MAINTAINERS: Add myself to write-after-approval.
9922 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9924 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9925 with fprintf_unfiltered (gdb_stderr,....
9927 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9930 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9932 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9934 * p-exp.y: Also use new prev_lexptr variable
9935 to improve error reporting. Based on Michael Snyder
9936 2002-04-24 dated patch to c-exp.y.
9938 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9940 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9941 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9942 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9944 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9946 (FUNCTION_START_OFFSET): Remove.
9947 (BREAKPOINT): Ditto.
9949 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9951 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9954 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9956 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9957 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9958 alpha_linux_pc_in_sigtramp.
9959 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9960 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9961 alpha_osf1_pc_in_sigtramp.
9962 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9963 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9964 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9965 alphafbsd_pc_in_sigtramp.
9966 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9967 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9968 alphanbsd_pc_in_sigtramp.
9969 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9970 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9972 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9974 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9976 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9978 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9980 (alphanbsd-nat.o): New dependency list.
9981 (alphanbsd-tdep.o): Ditto.
9982 * NEWS: Note new native NetBSD/alpha configuration.
9983 * alphanbsd-nat.c: New file.
9984 * alphanbsd-tdep.c: Ditto.
9985 * configure.host (alpha*-*-netbsd*): New host.
9986 * configure.tgt (alpha*-*-netbsd*): New target.
9987 * config/alpha/nbsd.mh: New file.
9988 * config/alpha/nbsd.mt: Ditto.
9989 * config/alpha/nm-nbsd.h: Ditto.
9990 * config/alpha/tm-nbsd.h: Ditto.
9992 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9994 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9995 (alpha-osf1-tdep.o): New dependency list.
9996 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9997 and skip_sigtramp_frame members.
9998 * alpha-linux-tdep.c: Include gdbcore.h.
9999 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10000 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10001 * alpha-osf1-tdep.c: New file.
10002 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10004 (alpha_frame_past_sigtramp_frame): New function.
10005 (alpha_dynamic_sigtramp_offset): Ditto.
10006 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10007 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10008 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10009 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10010 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10011 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10012 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10013 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10014 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10015 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10016 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10017 to find_solib_trampoline_target.
10018 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10019 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10020 (SKIP_TRAMPOLINE_CODE): Remove.
10021 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10022 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10023 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10024 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10025 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10026 (PROC_SIGTRAMP_MAGIC): Ditto.
10027 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10028 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10029 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10030 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10031 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10033 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10035 * NEWS: Note that Alpha targets are now multi-arch.
10037 2002-04-24 Michael Snyder <msnyder@redhat.com>
10039 * parser-defs.h (prev_lexptr): New external variable.
10040 * parse.c (parse_exp_1): Set prev_lexptr to null before
10041 calling the language-specific parser.
10042 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10043 (yyerror): Use prev_lexptr in error reporting.
10045 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10047 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10048 * gregset.h: If FILL_FPXREGSET is defined, provide
10049 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10050 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10051 is defined, call fill_fpxregset.
10053 2002-04-24 Roland McGrath <roland@frob.com>
10055 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10056 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10057 (supply_gregset, supply_fpregset): New functions.
10059 * gnu-nat.c (gnu_find_memory_regions): New function.
10060 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10061 (gnu_xfer_memory): Add a cast.
10063 2002-04-24 Michael Snyder <msnyder@redhat.com>
10065 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10066 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10067 of argument regs ("str r(0123), [r11, #-nn"]).
10068 (arm_skip_prologue): Better handling for frameless functions.
10069 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10070 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10072 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10074 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10075 NUM_PSEUDO_REGS can be used.
10077 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10079 * arch-utils.h: Update copyright.
10081 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10082 * gdbarch.h, gdbarch.c: Re-generate.
10084 * inferior.h (IN_SIGTRAMP): Delete definition.
10085 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10086 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10088 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10089 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10090 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10091 (find_proc_framesize): Ditto.
10092 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10093 (alpha_init_extra_frame_info): Ditto.
10094 * infrun.c (handle_inferior_event): Ditto.
10095 (handle_inferior_event): Ditto.
10096 (check_sigtramp2): Ditto.
10097 * blockframe.c (create_new_frame): Ditto.
10098 (get_prev_frame): Ditto.
10099 * ppc-linux-tdep.c: Update comments.
10100 * i386-linux-tdep.c: Update comments.
10101 * breakpoint.c (bpstat_what): Update comment.
10103 2002-04-24 David S. Miller <davem@redhat.com>
10105 * i960-tdep.c (register_in_window_p): New function.
10106 (i960_find_saved_register): Use it instead of
10107 REGISTER_IN_WINDOW_P.
10108 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10110 * symtab.h (find_stab_function_addr): Kill extern.
10111 * minsyms.c (find_stab_function_addr): Remove from here...
10112 * dbxread.c: ... to here, and mark it static.
10114 2002-04-20 David S. Miller <davem@redhat.com>
10116 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10117 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10119 2002-04-21 David S. Miller <davem@redhat.com>
10121 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10122 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10123 (vx_write_register): Likewise.
10125 2002-04-23 J. Brobecker <brobecker@gnat.com>
10127 * source.c (is_regular_file): New function.
10128 (openp): Check wether file to open is a regular file
10129 to avoid opening directories.
10131 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10133 * findvar.c (extract_signed_integer): Cast printf argument
10134 to suppress format warning.
10135 (extract_unsigned_integer): Likewise.
10136 * infcmd.c (registers_info): Likewise.
10137 * top.c (get_prompt_1): Likewise.
10138 * valops.c (value_assign): Likewise.
10139 * valprint.c (print_decimal): Likewise.
10141 2002-04-22 H.J. Lu (hjl@gnu.org)
10143 * c-exp.y (typebase): Support
10145 [long|long long|short] [signed|unsigned] [int|]
10149 signed [long|long long|short] int
10151 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10153 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10155 * vax-tdep.h: New file.
10156 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10157 Make several routines static.
10158 (vax_get_saved_register): New function.
10159 (vax_gdbarch_init): New function.
10160 (_initialize_vax_tdep): Register vax_gdbarch_init.
10161 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10162 Remove macros now under the control of gdbarch.
10164 2002-04-22 Michael Snyder <msnyder@redhat.com>
10166 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10167 Some whitespace and coding standards tweaks.
10169 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10171 * vax-tdep.c: Include regcache.h.
10172 (vax_call_dummy_words): New.
10173 (sizeof_vax_call_dummy_words): New.
10174 (vax_fix_call_dummy): New function.
10175 (vax_saved_pc_after_call): Ditto.
10176 * config/vax/tm-vax.h: Don't include regcache.h.
10177 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10178 (CALL_DUMMY): Remove.
10179 (CALL_DUMMY_WORDS): Define.
10180 (SIZEOF_CALL_DUMMY_WORDS): Define.
10181 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10183 2002-04-18 Michael Snyder <msnyder@redhat.com>
10185 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10187 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10189 * vax-tdep.c (vax_frame_chain): New function.
10190 (vax_push_dummy_frame): Ditto.
10191 (vax_pop_frame): Ditto.
10192 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10193 (FRAMELESS_FUNCTION_INVOCATION): Use
10194 generic_frameless_function_invocation_not.
10195 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10196 (POP_FRAME): Use vax_pop_frame.
10198 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10200 * vax-tdep.c (vax_store_struct_return): New function.
10201 (vax_extract_return_value): Ditto.
10202 (vax_store_return_value): Ditto.
10203 (vax_extract_struct_value_address): Ditto.
10204 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10205 vax_store_struct_return.
10206 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10207 (STORE_RETURN_VALUE): Use vax_store_return_value.
10208 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10212 * vax-tdep.c (vax_frame_saved_pc): New function.
10213 (vax_frame_args_address_correct): Ditto.
10214 (vax_frame_args_address): Ditto.
10215 (vax_frame_locals_address): Ditto.
10216 (vax_frame_num_args): Move code to be in proximity to
10217 other frame-related functions.
10218 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10219 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10220 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10221 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10222 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10224 2002-04-22 H.J. Lu (hjl@gnu.org)
10226 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10231 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10232 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10233 (FRAME_INIT_SAVED_REGS): New macro.
10235 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10237 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10239 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10241 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10243 (fetch_osf_core_registers): Likewise.
10244 (supply_gregset): Likewise.
10246 2002-04-22 J. Brobecker <brobecker@gnat.com>
10248 * symfile.h (get_section_index): Define.
10249 * symfile.c (get_section_index): New function.
10250 * mdebugread.c (SC_IS_SBSS): New macro.
10251 (SC_IS_BSS): Return true for the scBss storage class only, as
10252 the scSBss storage class refers to the .sbss section.
10253 (parse_partial_symbols): Discard the symbols which associated
10254 section does not exist.
10255 Make sure to use the .sbss section index for symbols which
10256 storage class is scBss, rather than using the .bss section index.
10258 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10260 * vax-tdep.c: Update copyright years.
10261 (vax_register_name): New function.
10262 (vax_register_byte): Ditto.
10263 (vax_register_raw_size): Ditto.
10264 (vax_register_virtual_size): Ditto.
10265 (vax_register_virtual_type): Ditto.
10266 * config/vax/tm-vax.h: Update copyright years.
10267 (REGISTER_NAMES): Remove.
10268 (REGISTER_NAME): Define.
10269 (REGISTER_BYTE): Use vax_register_byte.
10270 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10271 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10272 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10274 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10276 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10278 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10280 2002-04-21 David S. Miller <davem@redhat.com>
10282 * arch-utils.c (generic_prologue_frameless_p): Kill
10283 SKIP_PROLOGUE_FRAMELESS_P code.
10284 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10286 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10287 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10288 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10290 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10291 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10292 (sparc_gdbarch_init): Pass it to
10293 set_gdbarch_prologue_frameless_p.
10295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10297 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10298 (alphabsd-nat.o): New dependency list.
10300 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10302 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10304 (alpha-linux-tdep.o): New dependency list.
10305 (alphafbsd-tdep.o): Likewise.
10307 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10309 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10311 * alpha-tdep.c: ...from here.
10312 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10314 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10316 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10317 prototype from here...
10318 * alpha-tdep.h: ...to here.
10320 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10322 * frame.h (selected_frame_level): Document as deprecated.
10323 (frame_relative_level): Declare.
10324 * stack.c (frame_relative_level): New function.
10325 (selected_frame_level): Document as deprecated.
10326 (select_frame): Do not set the selected_frame_level.
10328 * stack.c (frame_info, record_selected_frame): Update.
10329 (frame_command, current_frame_command): Update.
10330 (up_silently_base, up_command, down_silently_base): Update.
10331 (down_command): Update.
10332 * inflow.c (kill_command): Update.
10333 * tracepoint.c (finish_tfind_command): Update.
10334 * corelow.c (core_open): Update.
10335 * thread.c (info_threads_command): Update.
10336 (do_captured_thread_select): Update.
10337 * infcmd.c (finish_command): Update.
10338 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10340 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10342 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10344 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10346 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10349 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10351 * alphafbsd-tdep.c: Update copyright years. Include
10353 (alphafbsd_use_struct_convention): Make static.
10354 (alphafbsd_init_abi): New function.
10355 (_initialize_alphafbsd_tdep): New function.
10356 * config/alpha/tm-fbsd.h: Update copyright years.
10357 (USE_STRUCT_CONVENTION): Remove.
10359 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10361 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10362 an Alpha ABI variant.
10363 (alpha_abi_handler_list): Declare.
10364 (alpha_gdbarch_register_os_abi): New function.
10365 (alpha_gdbarch_init): Give registered ABI variant handlers a
10366 chance to tweak the gdbarch once we have set up defaults.
10367 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10369 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10371 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10372 to standard_coerce_float_to_double.
10373 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10375 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10377 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10378 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10379 from gdbarch_tdep rather than a constant.
10380 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10381 the default text address for all Alpha Unix ABIs.
10382 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10383 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10385 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10387 * alpha-tdep.h: New file. Includes several Alpha target constants
10389 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10390 let gdbarch deal with.
10391 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10392 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10393 to dependency list.
10394 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10395 Alpha target register names.
10396 * alphabsd-nat.c: Likewise.
10397 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10398 Alpha target register names. Make serveral routines static.
10399 (alpha_get_saved_register): New function.
10400 (alpha_abi_names): New.
10401 (process_note_abi_tag_sections): New function.
10402 (get_elfosabi): New function.
10403 (alpha_gdbarch_init): New function.
10404 (alpha_dump_tdep): New function.
10405 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10407 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10409 * frame.c (find_saved_register): Delete #ifdef
10410 HAVE_REGISTER_WINDOWS code.
10411 * config/sparc/tm-sparc.h: Update comments.
10412 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10414 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10416 * i960-tdep.c (i960_find_saved_register): New function.
10417 (i960_get_saved_register): New function.
10418 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10419 (i960_get_saved_register): Declare.
10420 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10422 2002-04-20 David S. Miller <davem@redhat.com>
10424 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10426 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10428 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10429 instead of NUM_PSEUDO_REGS.
10431 2002-04-20 David S. Miller <davem@redhat.com>
10433 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10434 GDB_MULTI_ARCH_PARTIAL
10435 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10436 define, let tm-sp64.h do it.
10438 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10440 * frame.c (find_saved_register): Avoid a NULL pointer
10441 dereference and actually walk the frame list.
10443 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10445 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10446 sorted in most most-recent-used order. Document.
10447 * gdbarch.h, gdbarch.c: Regenerate.
10449 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10451 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10453 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10454 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10455 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10458 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10461 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10462 (build_builtin_type_vec128): Ditto.
10463 (append_composite_type_field): Fix calculation of type length in
10466 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10468 * config/djgpp/README: Update.
10470 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10473 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10475 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10476 (alpha_setup_arbitrary_frame): ...to this.
10477 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10478 for alpha_setup_arbitrary_frame.
10480 2002-04-18 Andrew Cagney <cagney@redhat.com>
10482 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10483 * gdbarch.h, gdbarch.c: Regenerate.
10485 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10486 * target.h (memory_breakpoint_from_pc): Update declaration.
10487 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10489 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10490 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10491 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10492 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10493 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10494 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10495 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10496 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10497 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10498 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10499 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10500 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10502 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10504 * monitor.c (monitor_insert_breakpoint): Ditto.
10505 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10507 * config/mcore/tm-mcore.h: Update copyright.
10508 * mem-break.c: Ditto.
10509 * xstormy16-tdep.c: Ditto.
10511 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10513 * p-exp.y: Add precedence rule for '^' token.
10514 This removes the shift/reduce conflicts.
10515 Remove the comment concerning these shift/reduce conflicts.
10517 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10519 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10520 (registers_powerpc_nofp): New register set for processors
10521 without floating point unit.
10523 2002-04-18 David S. Miller <davem@redhat.com>
10525 * MAINTAINERS: Add myself to write-after-approval.
10527 2002-04-17 Michael Snyder <msnyder@redhat.com>
10529 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10531 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10533 * rs6000-tdep.c (frame_initial_stack_address): Use
10534 frame_register_read to read the alloca_reg.
10536 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10538 * frame.c (find_saved_register): Find saved registers in the next
10542 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10544 * gdbarch.sh (LANG): Set to ``c''.
10546 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10548 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10550 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10552 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10555 * hpread.c (hpread_get_lntt): Add declaration.
10556 Also fix PR gdb/391.
10558 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10560 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10561 * aclocal.m4, configure: Re-generate.
10564 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10566 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10567 instead of tm_print_insn.
10569 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10571 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10573 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10575 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10576 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10577 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10579 2002-04-12 Don Howard <dhoward@redhat.com>
10581 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10582 max_user_call_depth.
10583 (init_cmd_lists): Initialize the new value;
10584 * cli/cli-script.c (execute_user_command): Limit the call depth of
10585 user defined commands. This avoids a core-dump when user commands
10586 are infinitly recursive.
10588 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10590 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10591 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10592 from tdep struct instead of DEFAULT_LR_SAVE.
10593 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10594 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10595 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10597 2002-04-12 Michael Snyder <msnyder@redhat.com>
10599 * Remote.c: Spelling fix.
10600 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10601 If no symbol found for "sbrk", try "_sbrk".
10602 (make_output_phdrs): Use bfd_section_name.
10603 (gcore_copy_callback): Use bfd_section_name.
10604 * eval.c: Indentation fix-ups.
10605 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10606 in case it gets applied to an address that is already
10607 in the instruction space.
10608 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10609 * symfile.c: Fix indentation, long lines.
10610 * source.c: White space fix-up.
10612 2002-04-12 Andrew Cagney <cagney@redhat.com>
10614 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10615 * frame.c (frame_register_read): New function. Return non-zero on
10617 (read_relative_register_raw_bytes_for_frame): Delete.
10618 (read_relative_register_raw_bytes): Delete.
10619 * frame.h (frame_register_read): Declare.
10620 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10621 * sh-tdep.c: Ditto.
10622 * infcmd.c (do_registers_info): Ditto.
10623 * hppa-tdep.c: Ditto.
10624 * rs6000-tdep.c: Ditto.
10625 * h8500-tdep.c: Ditto.
10626 * mips-tdep.c: Ditto.
10627 * h8300-tdep.c: Ditto.
10628 * z8k-tdep.c: Ditto.
10630 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10632 From Jimi X <jimix@watson.ibm.com>:
10633 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10636 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10638 From Jimi X <jimix@watson.ibm.com>:
10639 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10642 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10644 From Jimi X <jimix@watson.ibm.com>:
10645 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10646 register sets for these processor variants.
10648 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10650 * regformats/reg-ppc.dat: Support FPSCR.
10652 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10654 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10655 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10656 Add fpscr as an invalid/unfetchable register.
10657 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10658 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10659 (fill_fpregset): Add support for register fpscr.
10660 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10661 (fill_gregset): Account for the fact that register ``mq'' might
10663 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10664 (registers_power): Add fpscr to register set at slot 71.
10665 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10666 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10668 2002-04-11 Michael Snyder <msnyder@redhat.com>
10670 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10671 * configure: Regenerate.
10672 * config.in: Regenerate.
10673 * acconfig.h: Add define for _SYSCALL32.
10674 * core-sol2.c: Remove #define _SYSCALL32.
10675 * solib-legacy.c: Remove #define _SYSCALL32.
10677 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10679 * stack.c (select_frame): Cleanup internal error message, do not
10682 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10684 * stack.c (select_frame): Check that selected_frame and the
10685 specified level are as expected.
10686 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10688 * frame.h (struct frame_info): Add field `level'. Update
10690 Work-in-progress PR gdb/464.
10692 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10694 * maint.c (maint_print_section_info): Rename print_section_info.
10695 (print_bfd_section_info, print_objfile_section_info): Update.
10696 * inferior.h (struct gdbarch): Add opaque declaration.
10697 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10698 * gdbarch.h: Regenerate.
10700 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10702 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10703 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10704 (kernel_u_size): Added.
10705 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10706 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10708 2002-04-04 Jim Ingham <jingham@apple.com>
10710 * valarith.c (find_size_for_pointer_math): New function, either returns
10711 the size for a pointer's target, returns 1 for void *, or errors for
10713 (value_add, value_sub): use find_size_for_pointer_math.
10715 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10717 * linux-low.c (linux_look_up_symbols): New hook.
10718 (linux_target_ops): Add linux_look_up_symbols.
10719 * remote-utils.c (decode_address): New function.
10720 (look_up_one_symbol): New function.
10721 * server.c (handle_query): Call target look_up_symbols hook.
10722 * server.h (look_up_one_symbol): Add prototype.
10723 * target.h (struct target_ops): Add look_up_symbols hook.
10725 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10727 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10728 override FP_REGNUM with frame->fp. Update copyright.
10729 * parse.c (num_std_regs, std_regs): Delete.
10730 (target_map_name_to_register): Do not search std_regs. Update
10731 function description.
10732 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10733 declarations. Update copyright.
10736 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10738 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10739 after the last symbol in a block.
10741 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10743 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10744 is non zero as a found symbol.
10746 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10748 * findvar.c: Include "builtin-regs.h".
10749 (value_of_register): Call value_of_builtin_reg when applicable.
10750 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10751 (target_map_name_to_register): Call
10752 builtin_reg_map_name_to_regnum.
10753 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10754 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10755 (builtin_regs_h): Define.
10756 (builtin-regs.o): New target.
10757 (findvar.o): Add $(builtin_regs_h).
10758 * builtin-regs.c, builtin-regs.h: New files.
10759 * std-regs.c: New file.
10760 Partial fix for PR gdb/251.
10762 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10764 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10765 it's no longer required.
10767 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10769 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10771 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10773 From Jimi X <jimix@watson.ibm.com>:
10774 * rs6000-tdep.c (rs6000_software_single_step): Use
10775 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10776 and size. Use target_insert_breakpoint() and
10777 target_remove_breakpoint() to insert and remove breakpoints
10778 instead of explicit memory reads and writes.
10780 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10782 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10783 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10784 ELF_OBJECT_FORMAT ifdef.
10786 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10788 From Jimi X <jimix@watson.ibm.com>:
10789 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10791 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10793 From Jimi X <jimix@watson.ibm.com>:
10794 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10795 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10797 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10799 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10800 s/asprintf/xasprintf/.
10801 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10803 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10805 I believe Jeff Law denies responsability for this one:
10806 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10807 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10808 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10809 Work-around for PR gdb/366.
10811 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10813 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10814 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10815 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10817 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10819 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10820 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10823 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10825 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10828 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10830 * README (Reporting Bugs in GDB): Document the bug web page as the
10831 prefered way of submitting bugs.
10834 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10836 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10837 -1. Update comment.
10838 * gdbarch.h, gdbarch.c: Re-generate.
10840 2002-04-07 Andreas Schwab <schwab@suse.de>
10842 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10843 buffer to regcache_collect.
10845 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10847 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10848 * gdbarch.c, gdbarch.h: Re-generate.
10850 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10852 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10853 declaration. Fix -Werror.
10855 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10857 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10858 * gdbarch.c: Regenerate.
10860 2002-04-05 Michael Snyder <msnyder@redhat.com>
10862 * breakpoint.c (clear_command): Rewrite middle section to
10863 combine two loops with identical control conditions.
10864 Add a cleanup to eliminate a memory leak.
10865 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10867 2002-04-05 H.J. Lu (hjl@gnu.org)
10869 * solib-svr4.c (bkpt_names): Add "__start".
10871 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10873 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10874 as test for 64 bit target.
10876 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10878 * h8500-tdep.c (h8500_write_fp): Delete function.
10879 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10880 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10881 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10883 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10884 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10886 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10887 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10888 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10889 (d10v_write_fp): Delete function.
10890 * inferior.h (write_fp, generic_target_write_fp): Delete
10892 * regcache.c (generic_target_write_fp): Delete function.
10893 (write_fp): Delete function.
10894 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10895 * gdbarch.h, gdbarch.c: Regenerate.
10896 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10897 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10898 (sparc64_write_fp): Delete declaration.
10899 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10900 (h8500_write_fp): Delete declaration.
10902 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10904 * sparc-tdep.c (sparc64_write_fp): Delete.
10905 (sparc_push_dummy_frame): Replace write_fp call with code to store
10907 (sparc_gdbarch_init): Do not initialize write_fp.
10909 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10911 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10914 2002-03-29 Jim Blandy <jimb@redhat.com>
10916 * stack.c (get_selected_block): Add new argument `addr_in_block',
10917 used to return the exact code address we used to select the block,
10918 not just the block.
10919 * blockframe.c (get_frame_block, get_current_block): Same.
10920 * frame.h (get_frame_block, get_current_block,
10921 get_selected_block): Update declarations.
10922 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10923 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10925 2002-04-05 Michael Snyder <msnyder@redhat.com>
10927 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10930 2002-04-05 J. Brobecker <brobecker@gnat.com>
10932 * utils.c (xfullpath): New function.
10933 * defs.h (xfullpath): Add declaration.
10934 * source.c (openp): Use xfullpath in place of gdb_realpath to
10935 avoid resolving the basename part of filenames when the
10936 associated file is a symbolic link. This fixes a potential
10937 inconsistency between the filenames known to GDB and the
10938 filenames it prints in the annotations.
10939 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10940 to be able to match a filename with either the real filename, or
10941 the name of any symbolic link to this file.
10942 (lookup_partial_symtab): Ditto.
10944 2002-04-04 Michael Snyder <msnyder@redhat.com>
10946 * breakpoint.c: Add support for hardware breakpoints in overlays.
10947 (overlay_events_enabled): New state variable.
10948 (insert_breakpoints): Use overlay_events_enabled to decide
10949 whether to attempt to set a breakpoint at the overlay load addr.
10950 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10951 (remove_breakpoint): Use overlay_events_enabled to decide
10952 whether breakpoints need to be removed from overlay load addr.
10953 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10954 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10955 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10956 disable_overlay_breakpoints): Update overlay_events_enabled.
10958 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10960 * dwarf2read.c (struct function_range): New.
10961 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10962 (check_cu_functions): New.
10963 (read_file_scope): Initialize global function lists.
10964 Call dwarf_decode_line after processing children.
10965 (read_func_scope): Add to global function list.
10966 (dwarf_decode_lines): Call check_cu_functions everywhere
10967 record_line is called. Call record_line with a linenumber
10968 of 0 to mark sequence ends.
10970 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10972 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10973 change sync with glibc.
10975 2002-04-03 Jim Blandy <jimb@redhat.com>
10977 * configure.in: Call AC_C_INLINE.
10978 * configure: Regenerated.
10980 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10982 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10983 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10985 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10987 * NEWS: Mention gcore support on FreeBSD/i386.
10989 * fbsd-proc.c: New file.
10990 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10991 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10993 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10996 2002-03-29 Jim Blandy <jimb@redhat.com>
10998 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10999 unescaped newlines in string literals, but newer ones don't. So
11002 2002-03-26 Michael Snyder <msnyder@redhat.com>
11003 Andrew Cagney <cagney@redhat.com>
11005 * cli/cli-dump.c: New file. Dump memory to file,
11006 restore file to memory.
11007 * cli/cli-dump.h: New file.
11008 * Makefile.in: Add rules, dependencies for cli-dump.o.
11009 * NEWS: Mention new commands.
11011 2002-03-28 Michael Snyder <msnyder@redhat.com>
11013 * symfile.c (symbol_file_add): Move test for null symbols to later.
11015 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11017 From veksler at il.ibm.com:
11018 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11019 the xstrduped original path.
11022 2002-03-27 Michael Snyder <msnyder@redhat.com>
11024 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11025 * infcmd.c (_initialize_infcmd): Ditto.
11026 * language.c (_initialize_language): Ditto.
11027 * symfile.c (_initialize_symfile): Ditto.
11028 * top.c (_init_main): Ditto.
11029 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11031 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11033 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11034 vector registers handling.
11035 (skip_prologue): Handle new AltiVec instructions. Fill in new
11036 fields of frame data.
11037 (frame_get_saved_regs): Fill in information for AltiVec registers.
11039 2002-03-27 Jim Blandy <jimb@redhat.com>
11041 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11042 a function; leave this macro here to invoke that function.
11043 (symbol_init_mangled_name): Declaration for that function.
11044 * symtab.c (symbol_init_mangled_name): New function.
11046 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11048 * valarith.c: Replace strerror with safe_strerror.
11049 * tracepoint.c: Ditto.
11050 * lin-lwp.c: Ditto.
11051 * go32-nat.c: Ditto.
11053 * gnu-nat.c: Ditto.
11055 2002-03-27 Andreas Schwab <schwab@suse.de>
11057 * event-top.c (command_line_handler): Remove useless if.
11059 2002-03-27 Andreas Jaeger <aj@suse.de>
11061 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11064 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11066 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11067 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11068 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11069 (x86_64_linux_dr_get_status, supply_gregset),
11070 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11071 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11072 (x86_64_register_info_table): Add.
11073 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11074 (x86_64_register_raw_size, x86_64_register_virtual_type),
11075 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11076 general x86_64_register_info_table.
11077 (i386_gdbarch_init): gdbarch_register_bytes is now set
11078 dynamicaly during initialization.
11079 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11080 * gdbserver/linux-x86-64-low.c: Ditto.
11082 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11084 * gdbserver/server.c (main): Call target_signal_to_host_p
11085 and target_signal_to_host on signals received from the remote.
11086 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11087 target_signal_from_host on signals sent to the remote.
11088 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11089 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11091 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11093 * signals/signals.c: Include "server.h" in gdbserver build.
11094 (target_signal_from_name): Don't use STREQ.
11095 (_initialize_signals): Likewise. Don't include function in
11098 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11100 * signals.c: Moved to...
11101 * signals/signals.c: Here.
11102 * Makefile (signals.o): Update.
11104 2002-03-26 Jeff Law (law@redhat.com)
11106 * somread.c (som_symtab_read): Remove some commented out code and
11107 updated related comments. Do not set the minimal symbol table to
11108 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11109 in a dynamic executable.
11110 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11111 where we are unable to find the minimal symbol for the given
11114 2002-03-25 Jeff Law (law@redhat.com)
11116 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11118 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11120 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11122 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11124 * command.h: Update copyright.
11125 (struct cmd_list_element): Replace definition with opaque
11127 (enum cmd_types): Document that it will eventually be moved to
11129 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11130 (MALLOCED_REPLACEMENT): Delete macro.
11131 * Makefile.in (cli_decode_h): Add $(command_h).
11132 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11133 * top.c: Include "cli/cli-decode.h".
11134 * completer.c: Include "cli/cli-decode.h".
11135 * maint.c: Include "cli/cli-decode.h".
11136 * cli/cli-decode.h: Include "command.h".
11137 (enum command_class): Delete.
11138 (enum cmd_types): Comment out.
11139 (enum cmd_auto_boolean): Delete.
11140 (enum var_types): Delete.
11142 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11144 * cli/cli-decode.c: Include "gdb_assert.h".
11145 (add_set_or_show_cmd): New static function.
11146 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11147 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11148 all fields, such as func, from the set command.
11150 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11152 * MAINTAINERS (sh-elf): Change warning flag to -w.
11154 2002-03-23 Andrew Cagney <cagney@redhat.com>
11156 * defs.h (error): Add printf format attribute.
11157 * thread-db.c (thread_from_lwp): Fix error format string.
11158 * stack.c (parse_frame_specification): Ditto.
11159 * cli/cli-decode.c (undef_cmd_error): Ditto.
11160 * scm-lang.c (scm_lookup_name): Ditto.
11161 * tracepoint.c (trace_error): Ditto.
11162 * remote-utils.c (usage): Ditto.
11163 * remote.c (compare_sections_command): Ditto.
11166 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11168 * gdbtypes.c (append_composite_type_field): New function.
11169 (init_composite_type): New function.
11170 * gdbtypes.h (append_composite_type_field): Declare.
11171 (init_composite_type): Ditto.
11173 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11175 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11177 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11178 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11179 structure returning convention for SYSV ABI case, but not
11180 for GNU/Linux, FreeBSD, or NetBSD.
11182 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11184 * symtab.h (lookup_block_symbol): Add mangled_name argument
11187 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11188 with new mangled_name argument.
11189 * linespec.c (decode_line_1): Likewise.
11190 * valops (value_of_this): Likewise.
11191 * symtab.c (lookup_transparent_type): Likewise.
11192 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11193 (lookup_symbol): If we are given a mangled name, pass it down
11194 to lookup_symbol_aux.
11195 (lookup_block_symbol): If we are given a mangled name to check
11196 against, only return symbols which match it.
11198 2002-03-22 Christopher Faylor <cgf@redhat.com>
11200 * win32-nat.c (child_create_inferior): Check for proper shell to use
11201 here, in case the user changes it on the fly.
11202 (_initialize_inftarg): Remove shell path considerations.
11204 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11206 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11207 for gdbarch_max_register_raw_size and max_register_virtual_size.
11208 Adjust copyright year.
11210 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11212 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11213 in a function to cover the entire beginning of the function
11214 as well if it does not already.
11216 2002-03-21 Tom Rix <trix@redhat.com>
11218 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11219 (rs6000_ptrace64): Renamed from ptrace64.
11221 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11223 * gdbserver/remote-utils.c (remote_open): Don't call
11224 getprotobyname, we're all using TCP here so just use
11226 * gdbserver/gdbreplay.c (remote_open): Ditto.
11228 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11230 * regcache.c (_initialize_regcache): No need to call
11231 build_regcache() at this time; it gets called whenever
11232 the gdbarch changes.
11234 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11236 * sparc-nat.c: Include sys/param.h where possible.
11238 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11241 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11242 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11243 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11245 * stabsread.c (rs6000_builtin_type): Likewise.
11246 (read_sun_floating_type): Likewise.
11248 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11250 * stabsread.c (read_member_functions): Remove skip code for duplicate
11251 constructor/destructor methods. Use standard parsing for these
11252 methods and just do not chain them to the list of methods after
11255 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11257 * coffread.c: Remove redundant static declarations. Replace
11258 occurrences of `PTR' with `void *'.
11259 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11260 * top.h (quit_cover): Likewise.
11261 * defs.h (catch_errors): Likewise.
11263 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11265 * defs.h (XMALLOC): Define.
11266 * gdb-events.sh (XMALLOC): Delete macro.
11267 * gdb-events.c, gdb-events.h: Regenerate.
11268 * gdbarch.sh (XMALLOC): Delete macro.
11269 * gdbarch.c: Regenerate.
11270 * serial.c (XMALLOC): Delete macro.
11271 * ui-file.c (XMALLOC): Ditto.
11272 * ser-unix.h (XMALLOC): Ditto.
11273 * sh-tdep.c (XMALLOC): Ditto.
11274 * ui-out.c (XMALLOC): Ditto.
11275 * utils.c (XMALLOC): Ditto.
11276 * i386-tdep.c (XMALLOC): Ditto.
11277 * gdb-events.c (XMALLOC): Ditto.
11278 * d10v-tdep.c (XMALLOC): Ditto.
11279 * cli-out.c (XMALLOC): Ditto.
11281 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11282 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11283 * ui-file.c, ui-out.c: Ditto.
11285 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11287 * command.h (struct cmd_list_element): Add field context.
11288 (set_cmd_context, get_cmd_context): Declare.
11289 * cli/cli-decode.h: Ditto.
11290 * cli/cli-decode.c (get_cmd_context): New function.
11291 (set_cmd_context): New function.
11292 (add_cmd): Initialize context.
11293 Part of fixing PR gdb/145 and PR gdb/146.
11295 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11297 * cli/cli-decode.c (cmd_type): New function.
11298 * command.h (cmd_type): Declare.
11299 * infrun.c (set_schedlock_func): Call function cmd_type.
11300 * kod.c (kod_set_os): Call cmd_type.
11301 * cris-tdep.c (cris_version_update): Use function cmd_type.
11302 (cris_mode_update, cris_abi_update): Ditto.
11304 * command.h: (execute_cmd_post_hook): Declare.
11305 (execute_cmd_pre_hook): Declare.
11306 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11307 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11308 functions. Execute pre/post hook while ensuring that afterwords
11309 hook_in is cleared.
11310 * top.c (execute_command): Use execute_cmd_post_hook, and
11311 execute_cmd_pre_hook to execute pre/post commands.
11312 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11314 (hook_stop_stub): Call execute_cmd_pre_hook.
11316 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11318 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11319 set'' and this leads to a core dump. Move xstrdup of
11320 operating_system to after check that it is not NULL.
11322 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11324 * kod.c (kod_set_os): Remove unnecessary check that
11325 ``command->type'' is set_cmd.
11327 * valprint.c (set_input_radix): Use input_radix.
11328 (set_output_radix): Use output_radix.
11329 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11332 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11334 * value.h (struct value): Delete field ``substring_addr''. Change
11335 aligner fields to force_doublest_align, force_longest_align,
11336 force_core_addr_align and force_pointer_aligh.
11338 * value.h (struct value): Fix typo in above change.
11340 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11342 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11343 to fix internal_error from ``maintenance print architecture''.
11345 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11347 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11348 for gcc versions after gcc-2.8.1.
11350 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11352 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11353 for method resolution. Restore adjustment of ``this'' pointer after
11354 calling value_struct_elt, which was accidentally removed during the
11357 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11359 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11361 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11362 get_saved_register.
11363 * value.h (value_of_register): Update.
11365 2002-03-14 Richard Henderson <rth@redhat.com>
11367 * configure.in: Detect declaration for canonicalize_file_name.
11368 * utils.c (canonicalize_file_name): Declare, if needed.
11369 (gdb_realpath): Prefer realpath if available and usable.
11370 * config.in, configure: Rebuild.
11372 2002-03-14 Richard Henderson <rth@redhat.com>
11374 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11375 a constant array bound.
11377 * MAINTAINERS: Add myself to write-after-approval.
11379 2002-03-14 Michael Snyder <msnyder@redhat.com>
11381 * symfile.c (syms_from_objfile): Return immediately if no syms.
11382 (symbol_file_add): Return immediately if no syms.
11383 (find_sym_fns): Return immediately if no syms.
11385 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11387 * gdbserver/remote-util.c (remote_open): Print remote-side's
11388 IP address when remote debugging over the network.
11390 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11392 * config/sparc/fbsd.mh: Fix copyright.
11393 * config/sparc/fbsd.mt: Likewise.
11395 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11397 * MAINTAINERS: Fix typo in name of gdb warnings option.
11398 (x86-64): Fix formating so that this can be parsed by awk.
11400 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11402 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11403 * defs.h: Include "gdb/signals.h".
11404 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11406 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11408 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11409 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11412 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11413 Don Howard <dhoward@redhat.com>
11415 * mips-tdep.c (ST0_FR): Define.
11416 (mips2_fp_compat): New function, temporarily disabled.
11417 (mips_read_fp_register_single): New function.
11418 (mips_read_fp_register_double): New function.
11419 (mips_print_register): Use them.
11420 (do_fp_register_row): Likewise.
11422 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11424 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11427 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11429 * stabsread.c (read_member_functions): Fix is_stub test for
11430 static member functions, improve comment.
11432 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11434 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11435 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11436 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11437 commands that set boolean values.
11438 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11439 (arm_rdi_resume): Always initialize PC.
11440 (arm_rdi_open): Don't use rslt as a boolean.
11441 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11442 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11443 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11444 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11446 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11448 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11449 * configure: Rebuilt.
11451 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11453 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11454 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11456 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11458 * cli/cli-decode.c (set_cmd_completer): New function.
11459 * command.h (set_cmd_completer): Declare.
11460 * cli/cli-decode.h (set_cmd_completer): Ditto.
11462 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11463 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11464 * win32-nat.c (_initialize_inftarg): Ditto.
11465 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11466 * proc-api.c (_initialize_proc_api): Ditto.
11467 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11468 * source.c (_initialize_source): Ditto.
11469 * exec.c (_initialize_exec): Ditto.
11470 * solib.c (_initialize_solib): Ditto.
11471 * top.c (init_main): Ditto.
11472 * tracepoint.c (_initialize_tracepoint): Ditto.
11473 * symfile.c (_initialize_symfile): Ditto.
11474 * printcmd.c (_initialize_printcmd): Ditto.
11475 * infcmd.c (_initialize_infcmd): Ditto.
11476 * corefile.c (_initialize_core): Ditto.
11478 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11480 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11482 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11484 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11486 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11488 * NEWS: Update headings, 5.2 has branched.
11490 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11492 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11493 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11494 (register_addr, REGISTER_RAW_SIZE): Likewise.
11495 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11496 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11498 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11500 * MAINTAINERS (x86-64): Add myself.
11501 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11502 changed value_ptr -> struct value *
11504 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11506 * configure.host (sparc64-*-freebsd): Add.
11507 * configure.tgt: Likewise.
11508 * config/sparc/fbsd.mh: New file.
11509 * config/sparc/fbsd.mt: Likewise.
11510 * config/sparc/nm-fbsd.h: Likewise.
11511 * config/sparc/tm-fbsd.h: Likewise.
11513 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11515 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11516 regformats/reg-s390x.dat.
11518 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11520 * utils.c: Add FIXME explaining true/false problem.
11522 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11524 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11526 2002-02-28 Michael Chastain <mec@shout.net>
11528 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11530 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11532 * gdbserver/linux-s390-low.c: New file.
11533 * regformats/reg-s390.dat: New file.
11534 * regformats/reg-s390x.dat: New file.
11535 * gdbserver/configure.srv: Add S/390.
11536 * gdbserver/Makefile.in: Add S/390.
11537 * configure.tgt: Enable gdbserver for S/390.
11539 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11541 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11542 first line of the doc string for "info dos", except at the end of
11543 the sentence, since the short help stops at the first period.
11545 2002-02-28 Jason Merrill <jason@redhat.com>
11547 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11549 2002-02-27 Fred Fish <fnf@redhat.com>
11551 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11552 comment (dumy -> dummy).
11554 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11556 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11558 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11560 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11562 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11564 * gdbserver/acconfig.h: New file.
11565 * gdbserver/i387-fp.c: New file.
11566 * gdbserver/i387-fp.h: New file.
11567 * gdbserver/linux-x86-64.c: New file.
11568 * regformats/reg-x86-64.dat: New file.
11569 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11570 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11571 * gdbserver/configure.in: Add support for regsets.
11572 * gdbserver/config.in: Regenerate.
11573 * gdbserver/configure: Regenerate.
11574 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11575 * gdbserver/linux-low.h: New file.
11576 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11578 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11579 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11580 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11581 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11582 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11583 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11584 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11585 "i387-fp.h". Add PTRACE_GETREGS and friends.
11586 * gdbserver/regcache.c (supply_register): New function.
11587 (supply_register_by_name): New function.
11588 (collect_register): New function.
11589 (collect_register_by_name): New function.
11591 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11593 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11594 (config.status): Add configure.srv dependency.
11595 (server_h): Add config.h dependency.
11597 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11599 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11600 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11601 * gdbserver/configure.srv: Change i386-*-linux* to use
11604 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11606 * x86-64-tdep.c: Re-indent. Update copyright date.
11608 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11610 From Michal Ludvig <mludvig@suse.cz>:
11611 * x86-64-tdep.c (value.h): Delete.
11612 (gdb_assert.h): Include.
11613 (x86_64_register_convert_to_virtual,
11614 x86_64_register_convert_to_raw ): Add check which lets only
11615 floating-point values to be converted.
11616 (value_push): Delete.
11617 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11618 (i386_gdbarch_init): Number of register_bytes fixed.
11620 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11622 * MAINTAINERS: Add x86-64 target.
11624 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11626 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11627 * osfsolib.c (solib_map_sections): Ditto.
11628 * irix5-nat.c (solib_map_sections): Ditto.
11629 * corelow.c (gdb_check_format): Ditto.
11630 * symfile.c (symfile_bfd_open): Ditto.
11631 * solib.c (solib_map_sections): Ditto.
11634 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11636 * remote.c (_initialize_remote): By default, disable ``e'' and
11637 ``E'' step out-of-range packets.
11639 2002-02-26 Andreas Schwab <schwab@suse.de>
11641 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11642 m68k_linux_frame_saved_pc.
11643 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11645 (SIGCONTEXT_PC_OFFSET): Remove.
11646 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11647 m68k_linux_sigtramp_saved_pc): New functions.
11648 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11649 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11650 (UCONTEXT_PC_OFFSET): Define.
11651 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11652 non-RT and RT signal trampolines.
11654 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11656 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11657 (TARGET_NBPG, STACK_END_ADDR): Delete
11658 (VARIABLES_INSIDE_BLOCK): Delete.
11660 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11662 * utils.c (perror_with_name): Make string parameter constant.
11663 (print_sys_errmsg): Ditto.
11665 * defs.h (perror_with_name): Update.
11666 (print_sys_errmsg): Update.
11669 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11671 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11672 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11674 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11676 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11677 if it already matches the current architecture from the exec file.
11678 Include arch-utils.h for gdbarch_info_init prototype.
11679 * Makefile.in (rs6000-nat.o): Update dependencies.
11681 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11683 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11684 list of exported variables.
11686 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11688 * gdbserver/configure.srv: New file.
11689 * gdbserver/configure.in: Use configure.srv instead
11690 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11692 * gdbserver/configure: Regenerated.
11693 * gdbserver/terminal.h: New file.
11694 * gdbserver/Makefile.in: Update for configure changes. Remove
11695 more unneeded include paths.
11697 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11699 From wiz at danbala:
11700 * config/sparc/tm-sp64.h: Fix grammar and typos.
11703 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11705 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11706 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11707 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11708 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11709 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11710 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11711 * s390-tdep.c: Ditto.
11712 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11713 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11714 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11715 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11716 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11717 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11718 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11719 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11720 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11721 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11724 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11726 * lin-thread.c: Delete file.
11727 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11728 to gdb_proc_service.h.
11729 * configure: Re-generate.
11731 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11732 * serial.c (serial_open): Delete check for "ocd".
11735 * Makefile.in (linux-thread.o): Delete target.
11736 * linux-thread.c: Delete file.
11738 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11739 renamed SH files to be consistent.
11741 * symtab.c (sort_search_symbols): Use xfree.
11743 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11745 * arm-linux-tdep.c (arm_linux_init_abi): Register
11746 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11747 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11748 definition with undef, since we don't want the sysvr4 definition.
11749 (SKIP_TRAMPOLINE_CODE): Likewise.
11751 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11753 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11755 * configure.in: (AC_CHECK_FUNCS) Added test for
11756 canonicalize_file_name Regenerated.
11757 * config.in, configure: Regenerated.
11758 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11759 defined use canonicalize_file_name.
11761 2002-02-23 Michael Chastain <mec@shout.net>
11763 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11765 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11767 * README: Remove references to cygnus.com.
11768 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11769 dot com'' form. Remove references to cygnus.com and sourceware.
11771 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11773 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11774 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11775 1003.1-2001 no longer allows "head -1".
11776 * gdb/Makefile.in (version.c): Likewise.
11777 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11778 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11779 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11781 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11783 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11784 * command.h (cmd_cfunc_eq): Declare.
11785 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11787 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11788 ``struct cmd_list_element *''.
11789 * cli/cli-cmds.c (is_complete_command): Update. Use
11791 * top.c (execute_command): Pass the command to
11792 is_complete_command.
11793 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11795 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11797 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11798 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11799 architecture defines.
11800 * s390-tdep.c (s390_gdbarch_init): Likewise.
11802 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11804 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11805 (arm_linux_push_arguments): Likewise.
11806 (arm_linux_init_abi): Register them. Also register linux-specific
11808 (find_minsym_and_objfile): Use strcmp, not STREQ.
11809 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11810 (arm_linux_call_dummy_words): Delete declaration.
11811 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11812 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11814 (LOWEST_PC): Delete.
11816 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11818 * maint.c (print_section_info): Do not prepend `0x' to filepos
11819 output, it will be handled by local_hex_string_custom.
11821 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11823 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11824 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11825 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11827 2002-02-22 Jim Blandy <jimb@redhat.com>
11829 Indicate that the bcache functions don't change the strings
11831 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11832 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11834 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11836 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11838 2002-02-21 Christopher Faylor <cgf@redhat.com>
11840 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11841 find the complete path to a loaded DLL.
11843 2002-02-21 Fred Fish <fnf@redhat.com>
11845 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11846 that marks the end of the range of a function, enter a line number
11847 entry that has a line number of zero and a PC offset that matches
11848 the end of the function. This starts a range of PC's for which no
11849 line number information is known.
11850 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11851 PC's for which no line number info is found (line number is zero)
11852 then we didn't find any valid line information.
11853 * symtab.h: Document use of zero line number entry.
11855 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11857 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11858 (have_ptrace_getvrregs): Define for run time checks.
11859 (gdb_vrregset_t): New type for Altivec register handling.
11860 (fetch_register, store_register): Fetch/store altivec register
11862 (fetch_altivec_register, store_altivec_register): New functions.
11863 (supply_vrregset, fill_vrregset): New functions.
11864 (fetch_altivec_registers, store_altivec_registers): New functions.
11865 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11868 2002-02-21 Jiri Smid <smid@suse.cz>
11870 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11872 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11874 * Makefile.in (armnbsd-nat.o): Update dependencies.
11875 * armnbsd-nat.c (supply_gregset): New function. Common code to
11876 supply the integer register set.
11877 (supply_fparegset): New function. Similar for FPA registers.
11878 (fetch_regs, fetch_fp_regs): Use them.
11879 (fetch_core_registers): Likewise.
11880 (fetch_elfcore_registers): New function.
11881 (arm_netbsd_elfcore_fns): New core-file type specification.
11882 (_initialize_arm_netbsd_nat): Register it.
11884 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11886 * armnbsd-nat.c: Include gdbcore.h.
11887 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11888 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11889 'void' to declaration, to shut up ARI.
11890 (fetch_core_registers): Make static. Rewrite using supply_register.
11891 (arm_netbsd_core_fns): New core-file type specification.
11892 (_initialize_arm_netbsd_nat): New function.
11894 2002-02-21 Christopher Faylor <cgf@redhat.com>
11896 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11899 2002-02-20 Christopher Faylor <cgf@redhat.com>
11901 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11904 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11906 * jv-exp.y (parse_number): Change type of implicit longs
11907 to builtin_type_uint64.
11909 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11911 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11912 to be an integer instead of a `union wait'.
11914 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11916 * mips-linux-nat.c: Call the operating system GNU/Linux.
11917 * mips-linux-tdep.c: Likewise.
11918 * mips-tdep.c: Likewise.
11920 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11923 * jv-exp.y (parse_number): Handle 64-bit integers.
11925 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11927 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11928 AC_STDC_HEADERS to AC_HEADER_STDC.
11929 * gdbserver/configure: Regenerated.
11931 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11933 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11935 * sparc-tdep.c (get_longjmp_target): Likewise.
11937 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11939 * News: Add news about ARM and Multi-arch. Mention the new target
11942 2002-02-19 Jim Blandy <jimb@redhat.com>
11944 * stabsread.c (error_type_complaint): Improve error message.
11946 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11948 * gdbserver/README: Update documentation.
11949 * gdbserver/configure.in: Update configury to match documentation.
11950 * gdbserver/Makefile.in: Likewise.
11951 * gdbserver/configure: Regenerated.
11952 * gdbserver/aclocal.m4: New file, generated by aclocal.
11953 * gdbserver/config.in: New file, generated by autoheader.
11955 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11957 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11960 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11962 * arm-tdep.h (enum arm_float_model): New enum.
11963 (struct gdbarch_tdep): Add fp_model.
11964 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11965 up floating-point conversions until we know the floating-point model
11966 in use by the inferior. Don't complain about being unable to
11967 determine the ABI of the inferior when we don't have one.
11968 (arm_extract_return_value): Support different floating-point models.
11969 (arm_store_return_value): Likewise.
11970 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11972 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11974 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11976 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11977 of ``current_gdbarch''.
11979 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11981 * armnbsd-nat.c : ANSIfy all function declarations.
11982 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11983 (fetch_inferior_registers): Re-implement in terms of above.
11984 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11985 (store_inferior_registers): Re-implement in terms of above.
11987 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11989 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11991 * arm-linux-tdep.c: Likewise.
11992 * config/arm/tm-linux.h: Likewise.
11994 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11996 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11997 * config/arm/nbsd.mt (TM_FILE): Delete.
11998 * config/arm/tm-nbsd.h: Delete.
12000 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12002 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12003 Initialize CALL_DUMMY_LENGTH.
12005 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12007 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12009 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12010 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12011 defines one thing and that is incorrect for this port.
12012 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12014 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12016 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12018 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12020 * win32-nat.c (display_selector): New function. Displays information
12021 about the information returned by GetThreadSelectorEntry API function.
12022 (display_selectors): New function. Displays the infomation of
12023 the selector given as argument, or of CS, DS ans FS selectors
12024 if no argument is given.
12025 ( _initialize_inftarg): Add "w32" as info prefix command.
12026 Add "info w32 selector" as command calling display_selectors.
12028 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12030 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12031 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12034 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12036 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12038 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12040 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12041 (arm_fix_call_dummy): Call it.
12042 (arm_call_dummy_breakpoint_offset): Delete.
12043 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12044 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12046 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12048 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12049 Default to func_frame_chain_valid.
12050 * gdbarch.h, gdbarch.c: Re-generate.
12051 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12053 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12055 * ppc-linux-nat.c: Update copyright.
12056 (fetch_register, store_register): Add tid parameter, don't compute
12058 (fetch_ppc_registers, store_ppc_registers): Add tid
12059 parameter. Pass it along to callees.
12060 (fetch_inferior_registers, store_inferior_registers): Compute tid
12061 here, and pass it to calleed functions.
12062 (fill_gregset, supply_fpregset): Clean up formatting.
12064 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12066 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12067 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12069 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12071 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12072 * gdbarch.c gdbarch.h: Regenerate.
12073 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12075 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12076 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12077 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12079 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12080 * arm-tdep.c (arm_get_longjmp_target): New function.
12081 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12082 this to a positive value register arm_get_longjmp_target as the
12084 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12085 (arm_linux_init_abi): Set up longjmp description in tdep.
12086 * armnbsd-nat.c (get_longjmp_target): Delete.
12087 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12088 description in tdep.
12089 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12090 (get_longjmp_target): Delete declaration.
12091 (GET_LONGJMP_TARGET): Delete.
12092 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12093 (GET_LONGJMP_TARGET): Delete.
12095 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12097 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12098 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12099 of ``current_gdbarch''.
12101 2002-02-17 Tom Tromey <tromey@redhat.com>
12103 * cli/cli-cmds.c (compare_strings): New function.
12104 (complete_command): Only print each unique item once.
12105 * completer.h (complete_line): Declare.
12106 * completer.c (complete_line): New function.
12107 (line_completion_function): Use it.
12109 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12111 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12112 * gdbarch.h, gdbarch.c: Re-generate.
12114 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12116 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12118 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12120 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12121 * valops.c (value_arg_coerce): Don't take the address of a reference
12122 to convert an argument to a reference.
12124 2002-02-15 Christopher Faylor <cgf@redhat.com>
12126 * win32-nat.c (get_image_name): New function.
12127 (handle_load_dll): Use get_image_name function.
12128 (get_child_debug_event): Avoid registering debug events until possibly
12129 execed process is started.
12130 (child_create_inferior): Allow invocation via shell so that command
12131 line redirection, etc. works ok.
12132 (_initialize_inftarg): Add new command: "set shell" to control whether
12133 a shell is used to start a process.
12135 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12137 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12138 instead of find_register_by_number.
12139 (cannot_store_register): Likewise.
12141 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12143 * dwarf2read.c: Replace fprintf (stderr, ...) by
12144 fprintf_unfiltered (gdb_stderr, ...).
12146 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12148 * gdbserver/gdbserver.1: Document --attach.
12150 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12152 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12154 * arm-tdep.c (arm_default_arm_le_breakpoint)
12155 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12156 (arm_default_thumb_be_breakpoint): New. Initialize them from
12157 traditional breakpoint defines.
12158 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12159 (arm_gdbarch_init): Initialize new breakpoint variables.
12160 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12161 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12162 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12163 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12165 (arm_netbsd_init_abi_common): ... here; new function.
12166 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12167 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12168 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12169 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12171 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12173 * arm-tdep.h (enum arm_abi): New enum.
12174 (struct gdbarch_tdep): New structure.
12175 (LOWEST_PC): Provide a default.
12176 (arm_gdbarch_register_os_abi): Declare new function.
12177 * arm-tdep.c (arm_abi_names): New array.
12178 (process_note_abi_tag_sections): New function.
12179 (get_elfosabi): New function.
12180 (arm_gdbarch_register_os_abi): New function.
12181 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12182 support for that ABI has been built in, then call the appropriate
12183 configuration routine. Use gdbarch_num_regs() to get the number
12185 (arm_dump_tdep): New function.
12186 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12187 place-holder functions.
12188 (_initialize_arm_tdep): Register them.
12189 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12191 * armnbsd-tdep.c: New file.
12192 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12193 * config/arm/nbsd.mt (TDEPFILES): Add it.
12194 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12196 * armnbsd-nat.c: Include regcache.h.
12197 * Makefile.in (armnbsd-nat.o): Update dependency list.
12199 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12201 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12203 * gdbserver/Makefile.in: Fix typos in target rules.
12205 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12207 Fix part of PR gdb/267.
12208 * linespec.c (find_methods): Handle constructors specially for now.
12210 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12212 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12214 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12215 standard_coerce_float_to_double().
12217 2002-02-14 Christopher Faylor <cgf@redhat.com>
12219 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12222 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12224 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12225 find_variant_by_name, because it confuses the multiarch
12226 framework. Return NULL if there isn't an architecture with the
12227 user supplied name, instead of forcing a different one without
12228 recording the change with the multiarch machinery.
12229 (find_variant_by_name): Delete.
12231 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12233 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12234 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12236 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12238 * stack.c (print_frame_info_base): When calling
12239 print_frame_info_listing_hook, set current_source_symtab.
12241 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12243 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12244 and remove unused $(INCLUDE_DIR).
12245 Add regcache.c to OBS.
12246 Add generated register protocol files to clean target.
12247 Update dependencies for new objects, obsolete old target code.
12249 * gdbserver/linux-low.c: Remove all platform-specific code to
12250 new files. Remove various dead code. Update to use regcache
12252 * gdbserver/remote-utils.c (fromhex): Add return statement
12254 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12256 (input_interrupt): Add integer parameter to match prototype
12257 of a signal handler.
12258 (outreg): Use register_data ().
12259 (prepare_resume_reply): Use gdbserver_expedite_regs.
12260 * gdbserver/server.c (main): Dynamically allocate own_buf because
12261 PBUFSIZ is no longer constant. Use registers_to_string () and
12262 registers_from_string ().
12263 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12264 for error (), fatal (), and warning (). Update definition of
12265 PBUFSIZ to use regcache functionality. Add include guard.
12266 * gdbserver/utils.c (fatal): Add missing ``const''.
12267 (warning): New function.
12269 * regformats/regdat.sh: Include "regcache.h" in generated files.
12270 Provide init_registers () function.
12271 * regformats/regdef.h: Add prototype for set_register_cache ().
12274 * gdbserver/linux-arm-low.c: New file.
12275 * gdbserver/linux-i386-low.c: New file.
12276 * gdbserver/linux-ia64-low.c: New file.
12277 * gdbserver/linux-m68k-low.c: New file.
12278 * gdbserver/linux-mips-low.c: New file.
12279 * gdbserver/linux-ppc-low.c: New file.
12280 * gdbserver/linux-sh-low.c: New file.
12282 * gdbserver/regcache.c: New file.
12283 * gdbserver/regcache.h: New file.
12285 * gdbserver/low-linux.c: Removed obsolete file.
12287 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12289 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12290 * config/i386/linux.mt: Likewise.
12291 * config/ia64/linux.mt: Likewise.
12292 * config/m68k/linux.mh: Likewise.
12293 * config/powerpc/linux.mh: Likewise.
12294 * config/mips/linux.mt: Likewise.
12296 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12298 * config/i386/i386lynx.mh: Mark gdbserver variables
12299 as (currently) obsolete for this target.
12300 * config/i386/nbsd.mt: Likewise.
12301 * config/i386/nbsdelf.mt: Likewise.
12302 * config/m32r/m32r.mt: Likewise.
12303 * config/m68k/m68klynx.mh: Likewise.
12304 * config/m68k/nbsd.mt: Likewise.
12305 * config/m68k/sun3os4.mh: Likewise.
12306 * config/mips/vr5000.mt: Likewise.
12307 * config/ns32k/nbsd.mt: Likewise.
12308 * config/pa/hppabsd.mh: Likewise.
12309 * config/pa/hppaosf.mh: Likewise.
12310 * config/powerpc/nbsd.mt: Likewise.
12311 * config/rs6000/rs6000lynx.mh: Likewise.
12312 * config/s390/s390.mt: Likewise.
12313 * config/s390/s390x.mt: Likewise.
12314 * config/sparc/sparclynx.mh: Likewise.
12315 * config/sparc/sun4os4.mh: Likewise.
12316 * config/i386/x86-64linux.mt: Likewise.
12317 * config/sparc/linux.mh: Likewise.
12319 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12321 * configure.tgt: Configure gdbserver only for known working
12322 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12323 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12324 SUBDIRS if it is configured. Update comment for ${nativefile}.
12325 * configure: Regenerated.
12327 2002-02-13 Michael Snyder <msnyder@redhat.com>
12329 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12331 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12332 (default_gcore_mach): Just return 0, work around a problem in bfd.
12333 (default_gcore_target): OK to return NULL if exec_bfd is null.
12334 (make_mem_sec): Use a cast, avoid a warning.
12336 * procfs.c (find_memory_regions_callback): Use a cast instead of
12337 calling host_pointer_to_address (which complains if
12338 sizeof (host pointer) != sizeof (target pointer)).
12339 (procfs_make_note_section): Avoid overflow in psargs string.
12341 * procfs.c (procfs_make_note_section): Make the default
12342 implementation return an error.
12344 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12346 * procfs.c (procfs_make_note_section): Provide a default definition
12347 (for alpha-dec-osf4.0f). Fix typos.
12349 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12351 * linux-proc.c: Add include of regcache.h.
12352 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12354 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12356 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12357 * memattr.c (create_mem_region): Disallow useless empty region.
12358 Regions are half-open intervals, so allow [A..B) [B..C) as
12361 2002-02-13 Michael Chastain <mec@shout.net>
12363 * defs.h: Kill CONST_PTR.
12364 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12365 * c-lang.c (c_builtin_types): Likewise.
12366 * ch-lang.c (ch_builtin_types): Likewise.
12367 * f-lang.c (f_builtin_types): Likewise.
12368 * language.c (unknown_builtin_types): Likewise.
12369 * m2-lang.c (m2_builtin_types): Likewise.
12370 * p-lang.c (pascal_builtin_types): Likewise.
12371 * scm-lang.c (c_builtin_types): Likewise.
12373 2002-02-13 Keith Seitz <keiths@redhat.com>
12375 * arm-tdep.h (arm_get_next_pc): Add declaration.
12377 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12379 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12380 with other related struct-returning functions.
12381 (arm_extract_struct_value_address): New function.
12382 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12383 initialize float_format, double_format and long_double_format as
12384 appropriate to the endianness of the target.
12385 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12386 (arm_use_struct_convention): Delete declaration.
12387 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12389 2002-02-13 Keith Seitz <keiths@redhat.com>
12391 * defs.h (core_addr_to_string_nz): New function.
12393 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12395 Apply missing bits of 2002-01-15 patch.
12396 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12397 (fill_fpregset): Use i387_fill_fsave.
12399 2002-02-12 Keith Seitz <keiths@redhat.com>
12401 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12402 (core_addr_to_string_nz): New function.
12404 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12406 * arm-linux-nat.c: Really include arm-tdep.h.
12407 * config/arm/tm-linux.h (struct type, struct value): Declare.
12409 2002-02-11 Michael Snyder <msnyder@redhat.com>
12411 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12412 (gcore section): Ifdef for Solaris and Unixware only.
12413 (procfs_do_thread_registers): Unixware needs one lwpstatus
12414 per thread (not one prstatus or pstatus).
12415 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12416 not over all gdb threads. For unixware, call elfcore_write_pstatus
12417 once before iterating over threads.
12419 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12421 * arm-tdep.h: New file.
12422 * arm-tdep.c: Include arm-tdep.h.
12423 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12424 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12425 (arm_print_float_info, arm_register_type, convert_to_extended)
12426 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12427 (arm_extract_return_value, arm_register_name): Make static.
12428 (arm_software_single_step): Similarly. Fix types in declaration.
12429 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12430 (arm_store_return_value, arm_store_struct_return): New functions.
12431 (arm_gdbarch_init): Register the above functions. Also register
12432 call_dummy_start_offset, sizeof_call_dummy_words,
12433 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12434 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12435 max_register_virtual_size, register_size. Set up
12436 prologue_cache.saved_regs here, rather than ...
12437 (_initialize_arm_tdep): ... here.
12438 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12440 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12441 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12442 (arm_print_float_info, arm_register_type, convert_to_extended)
12443 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12444 (arm_extract_return_value, arm_register_name): Delete declarations.
12445 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12446 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12447 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12448 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12449 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12450 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12451 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12452 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12453 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12454 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12455 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12456 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12458 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12459 * remote-rdi.c remote-rdp.c: Likewise.
12460 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12461 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12462 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12465 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12466 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12467 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12468 from non-ARM_ prefixed definitions.
12469 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12471 * remote-rdi.c remote-rdp.c: Likewise.
12472 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12474 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12476 * arm-tdep.c (arm_frameless_function_invocation)
12477 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12478 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12479 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12480 (arm_pop_frame, arm_get_next_pc): Make static.
12481 (arm_gdbarch_init): Register above in gdbarch structure.
12482 (arm_read_fp): Renamed from arm_target_read_fp.
12483 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12484 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12485 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12486 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12487 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12488 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12489 (arm_pc_is_thumb_dummy): Delete declarations.
12490 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12491 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12492 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12493 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12495 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12497 * symtab.c (compare_search_syms): New function.
12498 (sort_search_symbols): New function.
12499 (search_symbols): Sort symbols after searching rather than
12502 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12504 * NEWS: Linux -> GNU/Linux.
12506 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12508 * gdbarch.sh: For for level one methods, disallow a definition
12509 when partially multi-arched. Add comments explaining rationale.
12510 * gdbarch.h: Re-generate.
12512 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12514 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12515 multi-arch partial.
12517 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12519 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12520 field. Use diff -u.
12521 * gdbarch.c: Re-generate.
12523 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12525 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12526 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12529 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12531 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12532 multi-arch partial.
12533 (PUSH_ARGUMENTS): Switch to using predefault.
12534 * gdbarch.c: Regenerate.
12536 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12538 * valops.c (PUSH_ARGUMENTS): Delete definition.
12539 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12540 partial. Default to default_push_arguments.
12541 * gdbarch.h, gdbarch.c: Regenerate.
12543 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12545 * defs.h (throw_exception): Rename return_to_top_level. Update
12547 * utils.c (error_stream, internal_verror, quit): Ditto.
12548 * top.c (throw_exception, catcher): Ditto.
12549 * sparclet-rom.c (sparclet_load): Ditto.
12550 * remote.c (interrupt_query, minitelnet): Ditto.
12551 * remote-sds.c (interrupt_query): Ditto.
12552 * remote-mips.c (mips_error, mips_kill): Ditto.
12553 * ocd.c (interrupt_query): Ditto.
12554 * monitor.c (monitor_interrupt_query): Ditto.
12555 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12556 * target.h: Update comment.
12558 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12560 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12562 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12563 default_double_format.
12564 * gdbarch.h, gdbarch.c: Re-generate.
12565 * findvar.c (floatformat_unknown): Delete variable definition.
12566 * doublest.h (floatformat_unknown): Delete variable declaration.
12568 2002-02-09 Jim Blandy <jimb@redhat.com>
12570 * stabsread.c (read_type): Add code to parse Sun's syntax for
12571 prototyped function types.
12573 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12575 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12576 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12578 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12580 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12581 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12582 now _initialize_xcoffsolib gets called again and overrides the
12583 commands from solib.c in a native configuration.
12585 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12587 * doublest.c (store_typed_floating): Don't try to return a value.
12590 2002-02-08 Jim Blandy <jimb@redhat.com>
12592 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12593 is prototyped and has no arguments, print its argument list as
12596 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12598 * MAINTAINERS (write-after-approval): Add myself.
12599 (paper-trail): I've escaped!
12601 2002-02-08 Christopher Faylor <cgf@redhat.com>
12603 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12605 (_initialize_check_for_gdb_ini): Ditto.
12607 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12609 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12610 xaprintf -> xasprintf.
12612 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12614 * win32-nat.c: Remove use of printf and sprintf functions.
12616 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12618 * arm-tdep.c (arm_frame_chain_valid): Make static.
12619 (arm_push_arguments): Likewise.
12620 (arm_gdbarch_init): New function.
12621 (_initialize_arm_tdep): Call it.
12622 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12623 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12624 (FRAME_CHAIN_VALID): Delete.
12625 (arm_frame_chain_valid): Delete declaration.
12626 (PUSH_ARGUMENTS): Delete.
12627 (arm_push_arguments): Delete declaration.
12628 (CALL_DUMMY_P): Delete.
12630 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12631 Corinna Vinschen <vinschen@redhat.com>
12633 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12634 on builtin float types.
12636 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12638 * utils.c: Include <curses.h> before "bfd.h".
12639 * tui/tui-hooks.c: Likewise.
12640 * tui/tui.c: Likewise.
12641 * tui/tuiCommand.c: Likewise.
12642 * tui/tuiData.c: Likewise.
12643 * tui/tuiDataWin.c: Likewise.
12644 * tui/tuiDisassem.c: Likewise.
12645 * tui/tuiGeneralWin.c: Likewise.
12646 * tui/tuiIO.c: Likewise.
12647 * tui/tuiLayout.c: Likewise.
12648 * tui/tuiRegs.c: Likewise.
12649 * tui/tuiSource.c: Likewise.
12650 * tui/tuiSourceWin.c: Likewise.
12651 * tui/tuiStack.c: Likewise.
12652 * tui/tuiWin.c: Likewise.
12654 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12656 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12657 to include space for pseudoregs as well. Update loops accordingly.
12658 (sh_fp_frame_init_saved_regs): Ditto.
12659 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12661 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12663 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12664 Add Richard Earnshaw to Arm maintainers.
12666 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12668 * defs.h (warning_begin): Delete declaration.
12670 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12673 2002-02-07 Michael Snyder <msnyder@redhat.com>
12675 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12676 Logic bug, remove misplaced else.
12678 2002-02-07 Klee Dienes <klee@apple.com>
12680 * fork-inferior.c (fork_inferior): Add '!' to the list of
12681 characters that need to be quoted when building a string for the
12682 shell. Quote '!' specifically with a backslash, since CSH chokes
12683 when trying to evaluate "str!str".
12685 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12687 * rdi-share/host.h: Only provide a typedef for bool if it is not
12690 2002-02-04 Michael Snyder <msnyder@redhat.com>
12692 * breakpoint.h (enum bptype): Add new overlay event bp type.
12693 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12695 * breakpoint.c (create_internal_breakpoint): New function.
12696 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12697 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12698 (create_thread_event_breakpoint): Ditto.
12699 (create_solib_event_breakpoint): Ditto.
12700 (create_overlay_event_breakpoint): New function.
12701 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12702 (update_breakpoints_after_exec): Delete and re-initialize
12703 overlay event breakpoints after an exec. Add FIXME comment
12704 about longjmp breakpoint.
12705 (print_it_typical): Ignore overlay event breakpoints.
12706 (print_one_breakpoint): Ditto.
12708 (bpstat_what): Do not stop for overlay event breakpoints.
12709 (delete_breakpoint): Don't delete overlay event breakpoints.
12710 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12711 (breakpoint_re_set): Re-create overlay event breakpoint.
12713 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12714 (overlay_manual_command): Disable overlay breakpoints.
12715 (overlay_off_command): Disable overlay breakpoints.
12717 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12719 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12720 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12721 to here from config/tm-arm.h.
12722 (coff_sym_is_thumb): Make static.
12723 (arm_elf_make_msymbol_special): New function.
12724 (arm_coff_make_msymbol_special): New function.
12725 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12726 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12727 (coff_sym_is_thumb): Delete declaration.
12728 (arm_elf_make_msymbol_special): Declare.
12729 (arm_coff_make_msymbol_special): Declare.
12730 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12731 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12733 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12735 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12737 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12739 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12740 * gdbarch.c gdbarch.h: Regenerate.
12741 * arch-utils.c (default_print_float_info): New function.
12742 * arch-utils.h (default_print_float_info): Prototype it.
12743 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12744 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12745 (PRINT_FLOAT_INFO): Document it.
12747 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12748 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12749 (PRINT_FLOAT_INFO): Define.
12751 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12753 * win32-nat.c (_initialize_check_for_gdb_ini):
12754 Add typecast to sprintf argument to suppress a warning.
12756 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12758 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12759 to allow easier handling of pass state.
12760 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12761 that gives exception name and address.
12762 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12763 and set last_sig value to ourstatus->value.sig. Some missing
12765 (child_continue): Correctly report continue_status.
12766 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12767 TARGET_SIGNAL_0 (new default value).
12768 (child_resume): consider sig argument passed to decide if
12769 the exception should be passed to debuggee or not.
12771 2002-02-05 Michael Snyder <msnyder@redhat.com>
12773 * regcache.c (fetch_register): Call target_fetch_register
12774 only if we don't call FETCH_PSEUDO_REGISTER.
12775 (store_register): Call target_store_register only if we
12776 don't call STORE_PSEUDO_REGISTER.
12778 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12780 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12781 ELF_MAKE_MSYMBOL_SPECIAL.
12782 * gdbarch.c, gdbarch.h: Regenerate.
12783 * arch-utils.c (default_make_msymbol_special): New function.
12784 * arch-utils.h (default_make_msymbol_special): Export.
12785 * elfread.c (elf_symtab_read): Compile use of
12786 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12788 * coffread.c (coff_symtab_read): Ditto, for
12789 COFF_MAKE_MSYMBOL_SPECIAL.
12791 2002-02-05 Jim Blandy <jimb@redhat.com>
12793 * solib-svr4.c (svr4_truncate_ptr): New function.
12794 (svr4_relocate_section_addresses): Do the address arithmetic with
12795 the appropriate truncation for target addresses, even when
12796 CORE_ADDR is larger than a target address.
12798 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12800 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12803 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12805 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12808 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12810 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12812 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12814 * gdbserver/linux-low.c: Remove unused include files.
12816 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12818 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12819 (read_inferior_memory): Use it.
12820 (write_inferior_memory): Likewise.
12822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12824 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12825 grubbing through sys_errlist.
12827 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12829 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12831 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12832 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12834 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12836 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12837 (do_sfunc, set_cmd_sfunc): New functions.
12839 * command.h (struct cmd_list_element): Add field func.
12840 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12841 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12842 * cli/cli-decode.h: Ditto.
12844 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12845 (help_all, help_cmd_list): Ditto.
12846 (find_cmd, complete_on_cmdlist): Ditto.
12847 * top.c (execute_command): Ditto.
12849 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12852 * infcmd.c (notice_args_read): Fix function signature.
12854 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12855 * cli/cli-decode.c (add_set_cmd): Ditto.
12856 * utils.c (initialize_utils): Ditto.
12857 * maint.c (_initialize_maint_cmds): Ditto.
12858 * infrun.c (_initialize_infrun): Ditto.
12859 * demangle.c (_initialize_demangler): Ditto.
12860 * remote.c (add_packet_config_cmd): Ditto.
12861 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12862 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12863 * proc-api.c (_initialize_proc_api): Ditto.
12864 * kod.c (_initialize_kod): Ditto.
12865 * valprint.c (_initialize_valprint): Ditto.
12866 * top.c (init_main): Ditto.
12867 * infcmd.c (_initialize_infcmd): Ditto.
12868 * corefile.c (_initialize_core): Ditto.
12869 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12870 * arch-utils.c (initialize_current_architecture): Ditto.
12871 (_initialize_gdbarch_utils): Ditto.
12872 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12874 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12875 * wince.c (_initialize_inftarg): Ditto.
12876 * symfile.c (_initialize_symfile): Ditto.
12877 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12878 * language.c (_initialize_language): Ditto.
12879 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12881 2002-02-04 Michael Snyder <msnyder@redhat.com>
12883 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12885 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12887 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12888 Add rules for building the register data files.
12890 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12892 * regformats/regdat.sh: Add braces to the definition of
12893 expedite_regs_${arch}.
12895 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12897 * regformats/regdef.h (struct reg): Add comment describing the
12898 requirements for offset and size fields.
12900 2002-02-04 Andreas Schwab <schwab@suse.de>
12902 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12903 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12905 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12907 * gdbarch.sh (copyright): Update years in generated header.
12908 (SMASH_TEXT_ADDRESS): Add rule.
12909 * gdbarch.h, gdbarch.c: Re-generate.
12910 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12911 * dbxread.c: Likewise.
12912 * dwarfread.c: Likewise.
12913 * elfread.c: Likewise.
12914 * somread.c: Likewise.
12916 * arm-tdep.c (arm_smash_text_address): New function.
12917 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12919 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12921 Add support for hardware watchpoints on win32 native.
12922 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12923 CONTEXT_DEBUG_REGISTERS.
12924 (dr variable): New variable. Static array containing a local copy
12925 of debug registers.
12926 (debug_registers_changed): New variable. Reflects when debug registers
12927 are changed and need to be written to inferior.
12928 (debug_registers_used): New variable. Reflects when any debug register
12929 was set, used when new threads are created.
12930 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12932 (thread_rec): Set dr array if id is the thread of current_event .
12933 (child_continue, child_resume): Change the debug registers for all
12934 threads if debug_registers_changed.
12935 (child_add_thread): Change the debug registers if debug_registers_used.
12936 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12937 Link nm.h to new nm-cygwin.h file.
12938 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12939 of hardware registers.
12941 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12943 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12944 Restore behavour broken by 2002-01-20 Andrew Cagney
12945 <ac131313@redhat.com> IEEE_FLOAT removal.
12947 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12949 * c-valprint.c (c_val_print): Pass a proper valaddr to
12950 cp_print_class_method.
12951 * valops.c (search_struct_method): If there is only one method
12952 and args is NULL, return that method.
12954 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12956 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12957 accessing tag_name directly.
12959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12961 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12962 of accessing tag_name directly.
12964 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12967 * gdbtypes.c (replace_type): New function.
12968 * gdbtypes.h (replace_type): Add prototype.
12969 * stabsread.c (read_type): Use replace_type.
12971 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12973 * Makefile.in (memattr.o): Add missing dependencies rule.
12975 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12977 * breakpoint.c (break_at_finish_command): Really export.
12978 (break_at_finish_at_depth_command): Ditto.
12979 (tbreak_at_finish_command): Ditto.
12980 * hppa-tdep.c: Include completer.h.
12981 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12982 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12984 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12986 * utils.c (do_write): New function.
12987 (error_stream): Rewrite combining the code from error_begin and
12989 (verror): Rewrite using error_stream.
12990 (error_begin): Delete function.
12992 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12994 * utils.c (error_begin): Make static.
12995 * defs.h (error_begin): Delete declaration.
12997 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12998 (decode_line_1): Use cplusplus_error instead of error_begin,
12999 cplusplus_hint and return_to_top_level.
13000 * coffread.c (coff_symfile_read): Use error instead of error_begin
13001 and return_to_top_level.
13002 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13004 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13006 * language.h (type_error, range_error): Make string parameter
13008 * language.c (warning_pre_print): Delete extern declaration.
13009 * dwarfread.c (warning_pre_print): Ditto.
13010 * language.c (type_error, range_error): Rewrite to use verror and
13011 vwarning instead of warning_begin.
13013 2002-02-01 Michael Snyder <msnyder@redhat.com>
13015 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13016 (set_ignore_count): Move misplaced comment back where it belongs.
13018 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13020 * command.h (NO_FUNCTION): Delete macro.
13021 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13022 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13023 * tracepoint.c (_initialize_tracepoint): Ditto.
13024 * cli/cli-decode.c (add_set_cmd): Ditto.
13025 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13027 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13029 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13030 Update ``this'' pointer when calling virtual functions.
13032 2002-02-01 Michael Snyder <msnyder@redhat.com>
13034 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13035 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13037 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13039 * regformats/reg-arm.dat: New file.
13040 * regformats/reg-i386.dat: New file.
13041 * regformats/reg-ia64.dat: New file.
13042 * regformats/reg-m68k.dat: New file.
13043 * regformats/reg-mips.dat: New file.
13044 * regformats/reg-ppc.dat: New file.
13045 * regformats/reg-sh.dat: New file.
13046 * regformats/regdef.h: New file.
13047 * regformats/regdat.sh: New file.
13049 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13051 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13052 (arm_frame_args_address, arm_frame_locals_address): New functions.
13053 (arm_frame_num_args): New function.
13054 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13055 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13056 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13058 2002-01-31 Michael Snyder <msnyder@redhat.com>
13060 * breakpoint.c (break_at_finish_command): Export.
13061 (break_at_finish_at_depth_command): Export.
13062 (tbreak_at_finish_command): Export.
13063 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13064 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13065 "txbreak" commands, which are HPPA specific.
13067 * printcmd.c (disassemble_command): Remove an ancient
13068 artifact of an old merge.
13070 * symfile.h (enum overlay_debugging_state):
13071 Define enum constant values for overlay mode.
13072 * symfile.c (overlay_debugging): Use enums instead of literals.
13073 (overlay_is_mapped, overlay_auto_command,
13074 overlay_manual_command): Ditto.
13076 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13077 breakpoint_here_p, breakpoint_inserted_here_p,
13078 breakpoint_thread_match, bpstat_stop_status,
13079 describe_other_breakpoints, check_duplicates, clear_command):
13080 Coding standard fixes.
13082 * target.c (target_xfer_memory): Add spaces, coding standard.
13083 (do_xfer_memory): Add missing line to trust-readonly
13084 code: check bfd SEC_READONLY flag for section.
13086 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13088 * PROBLEMS: Fix typo, 5.1->5.1.1.
13090 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13092 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13093 data symbols, since we search based on textlow and texthigh.
13094 (find_pc_sect_symtab): Likewise.
13096 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13098 * defs.h (vwarning): Declare.
13099 * utils.c (vwarning): New function.
13100 (warning): Call vwarning.
13101 (warning_begin): Delete function.
13103 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13104 the warning message.
13105 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13108 2002-01-30 Michael Snyder <msnyder@redhat.com>
13110 * NEWS: Mention "set trust-readonly-sections" command.
13111 Mention generate-core-file command.
13113 2002-01-15 Michael Snyder <msnyder@redhat.com>
13115 * target.c: New command, "set trust-readonly-sections on".
13116 (do_xfer_memory): Honor the suggestion to trust readonly sections
13117 by reading them from the object file instead of from the target.
13118 (initialize_targets): Register command "set trust-readonly-sections".
13120 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13122 * parse.c (target_map_name_to_register): Simplify, search regs and
13123 pseudo-regs using a single loop.
13125 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13127 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13129 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13131 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13132 * config/i386/i386v42mp.mh: Add i387-nat.o .
13133 * i386v4-nat.c: Include i387-nat.h.
13134 (supply_fpregset): Use i387_supply_fsave.
13135 (fill_fpregset): Use i387_fill_fsave.
13137 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13139 * arm-tdep.c (arm_call_dummy_words): Define.
13140 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13141 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13142 (CALL_DUMMY_WORDS): Define.
13143 (arm_call_dummy_words): Declare.
13144 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13145 (arm_linux_call_dummy_words): Declare.
13147 2002-01-30 Andreas Schwab <schwab@suse.de>
13149 * m68klinux-nat.c: Fix last change to use regcache_collect
13150 instead of referencing registers[] directly.
13152 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13154 * parse.c (target_map_name_to_register): Delete code wrapped in
13155 #ifdef REGISTER_NAME_ALIAS_HOOK.
13157 2002-01-28 Michael Snyder <msnyder@redhat.com>
13159 * regcache.c (legacy_read_register_gen): Need to be able to
13160 read pseudo-register as well as real register.
13161 (legacy_write_register_gen): Ditto.
13163 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13165 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13166 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13167 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13168 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13169 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13170 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13171 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13172 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13173 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13174 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13175 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13176 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13177 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13178 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13179 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13180 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13181 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13182 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13183 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13184 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13186 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13188 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13189 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13190 (initialize_current_architecture): Update target_byte_order using
13191 information from BFD.
13192 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13193 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13195 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13197 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13198 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13200 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13201 #ifdef INVALID_FLOAT.
13202 * infcmd.c (do_registers_info): Ditto.
13203 * values.c (unpack_double): Ditto. Add comment.
13205 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13206 already commented out.
13208 2002-01-26 Andreas Schwab <schwab@suse.de>
13210 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13211 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13212 registers and add support for PTRACE_GETREGS.
13214 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13216 GDB 5.1.1 released from 5.1 branch.
13217 * NEWS: Add 5.1.1 news.
13218 * README: Sync with 5.1 branch.
13220 2002-01-23 Fred Fish <fnf@redhat.com>
13222 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13223 stabstring on initial malloc. Reallocing will copy it for us,
13226 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13228 * Makefile.in (hpread_h): Delete.
13229 (HFILES_NO_SRCDIR): Remove hpread.h.
13230 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13231 (hpread.o): Update dependencies.
13232 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13234 * hp-psymtab-read.c: Remove file.
13235 * hp-symtab-read.c: Remove file.
13236 * hpread.h: Remove file.
13238 * hpread.c: Merge all contents of hp-psymtab-read.c,
13239 hp-symtab-read.c and hpread.h into this file, as it was prior to
13242 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13243 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13244 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13245 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13247 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13249 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13250 fill_gregset): Call gdbarch_tdep() just once, assign result to
13251 variable and use that, instead of calling the function several
13254 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13256 * configure.host: Accept sparcv9 as alias for sparc64.
13257 * configure.tgt: Likewise.
13259 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13261 * solib-aix5.c (build_so_list_from_mapfile)
13262 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13263 arguments is not reversed.
13264 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13265 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13267 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13269 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13270 modified version of obsolete sh_fetch_pseudo_register.
13271 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13272 (sh4_register_read): New function.
13273 (sh_pseudo_register_write): New function. Renamed and modified
13274 version of obsolete sh_store_pseudo_register.
13275 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13276 (sh4_register_write): New function.
13277 (sh_gdbarch_init): Remove setting of gdbarch function
13278 fetch_pseudo_register and store_pseudo_register. Remove setting of
13279 register_convert_to_raw, register_convert_to_virtual,
13280 register_convertible.
13281 (sh_sh4_register_convertible): Delete. No longer needed. All is
13282 taken care by architecture specific functions
13283 register_read/register_write.
13284 (sh_sh4_register_convert_to_virtual): Make static.
13285 (sh_sh4_register_convert_to_raw): Ditto.
13287 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13289 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13290 (floatformat_is_nan, floatformat_mantissa): Ditto.
13292 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13293 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13294 builtin_type_ieee_double_little,
13295 builtin_type_ieee_double_littlebyte_bigword,
13296 builtin_type_m68881_ext, builtin_type_i960_ext,
13297 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13298 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13299 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13300 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13302 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13304 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13305 parameter. Set frameless flag if it exists and depended of
13306 whether the scanned function is frameless or not.
13307 (xstormy16_skip_prologue): If function is frameless, return
13308 result of xstormy16_scan_prologue().
13309 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13312 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13314 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13315 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13316 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13317 sh_sh4_register_byte, sh_sh4_register_raw_size,
13318 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13319 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13320 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13321 sh_store_pseudo_register, sh_do_pseudo_register): Call
13322 gdbarch_tdep() just once, assign result to variable and use that,
13323 instead of calling the function several times.
13325 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13327 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13328 macros instead of LAST_FPU_CTRL_REGNUM.
13329 (store_register): Likewise.
13331 2002-01-21 Jim Blandy <jimb@redhat.com>
13333 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13334 is up-to-date before running the program, not just when a program
13337 2002-01-21 Fred Fish <fnf@redhat.com>
13339 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13340 when we have found all instructions we are looking for.
13342 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13344 * arm-tdep.c (arm_register_name): New function.
13345 (arm_registers_names): Make static.
13346 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13347 (arm_register_name): Declare.
13348 (REGISTER_NAME): Use it.
13350 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13351 Kevin Buettner <kevinb@redhat.com>
13353 Convert arm targets to new FRAME interface.
13354 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13355 (arm_frame_find_save_regs): Delete.
13356 (arm_frame_init_saved_regs): New.
13357 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13358 Allocate extra_info as required. Convert all uses of fsr.regs
13359 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13361 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13362 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13363 (check_prologue_cache, save_prologue_cache): Likewise.
13364 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13365 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13366 (FRAME_FIND_SAVED_REGS): Delete.
13367 (arm_frame_find_saved_regs): Delete prototype.
13368 (arm_frame_init_saved_regs): New prototype.
13369 (FRAME_INIT_SAVED_REGS): Define.
13371 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13373 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13375 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13377 From Jeff Law <law@redhat.com>:
13378 * infttrace.c: Include <sys/pstat.h>.
13379 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13380 exec file if the ttrace equivalent fails.
13382 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13384 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13385 (closeLogFile): Ditto.
13387 2002-01-20 Michael Chastain <mec@shout.net>
13389 * top.c (print_gdb_version): Bump copyright year to 2002.
13391 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13393 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13394 Zannoni and Eli Zaretskii.
13396 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13398 * buildsym.c: Update copyright years.
13399 * c-typeprint.c: Likewise.
13400 * dwarf2read.c: Likewise.
13401 * f-typeprint.c: Likewise.
13402 * gdbtypes.c: Likewise.
13403 * gdbtypes.h: Likewise.
13404 * hp-symtab-read.c: Likewise.
13405 * hpread.c: Likewise.
13406 * mdebugread.c: Likewise.
13407 * p-typeprint.c: Likewise.
13409 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13411 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13412 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13413 byte-order selectable.
13414 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13415 * arch-utils.c: Ditto.
13416 (set_endian): Ditto.
13417 (set_endian_from_file): Ditto.
13418 * gdbserver/low-sim.c (create_inferior): Ditto.
13419 * gdbarch.sh: Ditto.
13420 * gdbarch.h: Re-generate.
13421 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13422 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13423 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13424 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13425 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13426 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13427 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13428 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13430 * config/mips/tm-wince.h: Remove #undef of macro
13431 TARGET_BYTE_ORDER_SELECTABLE.
13432 * config/sh/tm-wince.h: Ditto.
13434 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13436 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13437 member function fields. Add accessor macro
13438 TYPE_FN_FIELD_ARTIFICIAL.
13439 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13440 * c-typeprint.c (c_type_print_base): Skip artificial member
13443 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13445 * f-typeprint.c: Delete unused function f_type_print_args.
13446 * p-typeprint.c: Delete unused function pascal_type_print_args.
13448 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13450 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13451 comment. Add ``artificial'' to ``union field_location''.
13453 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13455 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13456 * mdebugread.c (parse_symbol): Likewise.
13457 * stabsread.c (define_symbol): Likewise.
13458 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13459 initializing TYPE_FIELD_BITPOS to n (obsolete).
13460 (hpread_doc_function_type): Likewise.
13461 * hpread.c (hpread_function_type): Likewise.
13463 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13465 * configure.in (host_makefile_frag): Only require a host makefile
13466 fragment when a native build.
13467 * configure: Re-generate.
13469 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13471 * doublest.h (floatformat_from_type): Declare.
13472 * doublest.c (floatformat_from_type): New function.
13473 (convert_typed_floating): Use.
13475 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13476 call to function floatformat_from_type.
13478 * gdbarch.sh (IEEE_FLOAT): Delete.
13479 * gdbarch.h, gdbarch.c: Re-generate.
13480 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13481 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13482 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13483 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13484 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13485 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13486 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13487 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13488 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13489 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13490 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13491 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13493 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13494 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13495 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13496 * sh-tdep.c (sh_gdbarch_init): Ditto.
13497 * mips-tdep.c (mips_gdbarch_init): Ditto.
13498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13499 * cris-tdep.c (cris_gdbarch_init): Ditto.
13501 2002-01-20 Jiri Smid <smid@suse.cz>
13503 * configure.host, configure.tgt: Support x86-64.
13504 * NEWS: Note new target x86-64.
13506 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13507 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13508 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13509 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13510 x86-64-linux-nat.o): Fix dependencies.
13512 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13514 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13515 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13516 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13517 * config/sparc/xm-sun4os4.h: Delete file.
13518 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13520 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13522 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13523 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13524 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13525 * config/i386/i386lynx.mh (XM_FILE): Delete.
13526 * config/rs6000/xm-rs6000ly.h: Delete file.
13527 * config/sparc/xm-sparclynx.h: Delete file.
13528 * config/m68k/xm-m68klynx.h: Delete file.
13529 * config/i386/xm-i386lynx.h: Delete file.
13530 * config/xm-lynx.h: Delete file.
13531 * config/djgpp/fnchange.lst: Update.
13533 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13535 * alpha-tdep.c (alpha_register_byte): New function.
13536 (alpha_register_raw_size): Ditto.
13537 (alpha_register_virtual_size): Ditto.
13538 (alpha_skip_prologue_internal): Renamed from
13539 alpha_skip_prologue.
13540 (alpha_skip_prologue): New version that calls
13541 alpha_skip_prologue_internal.
13542 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13543 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13544 second argument from alpha_skip_prologue.
13545 (REGISTER_BYTE): Use alpha_register_byte.
13546 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13547 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13548 (FRAMELESS_FUNCTION_INVOCATION): Use
13549 generic_frameless_function_invocation_not.
13550 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13551 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13553 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13555 * config/mips/xm-news-mips.h: Delete file.
13556 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13558 * config/m88k/xm-m88k.h: Delete file.
13559 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13560 * config/m88k/xm-delta88v4.h: Ditto.
13561 * config/m88k/xm-delta88.h: Ditto.
13563 * config/alpha/xm-fbsd.h: Delete file.
13564 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13566 * config/sparc/xm-sparc.h: Delete file.
13567 * Makefile.in (xm-sun4os4.h): Delete dependency.
13568 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13569 * config/sparc/xm-sun4os4.h: Ditto.
13570 * config/sparc/xm-linux.h: Ditto.
13572 * config/i386/xm-windows.h: Delete file.
13574 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13576 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13577 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13579 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13581 * alpha-tdep.c (alpha_call_dummy_words): New.
13582 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13583 (CALL_DUMMY_P): Define.
13584 (CALL_DUMMY_WORDS): Define.
13585 (SIZEOF_CALL_DUMMY_WORDS): Define.
13587 2002-01-19 Per Bothner <per@bothner.com>
13589 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13590 isn't NULL, which can happen with some gcj-3.x-produced code.
13592 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13594 * alpha-tdep.c (alpha_register_virtual_type): New function.
13595 (alpha_init_frame_pc_first): Ditto.
13596 (alpha_fix_call_dummy): Ditto.
13597 (alpha_store_struct_return): Ditto.
13598 (alpha_extract_struct_value_address): Ditto.
13599 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13600 alpha_register_virtual_type.
13601 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13602 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13603 alpha_extract_struct_value_address.
13604 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13605 (INIT_FRAME_PC): Use init_frame_pc_noop.
13606 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13608 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13610 * i386gnu-nat.c: Include "i386-tdep.h".
13611 (fetch_fpregs): Simplify code dealing with uninitialized floating
13612 point states such that it doesn't require FP7_REGNUM.
13614 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13616 * alpha-tdep.c (frame_extra_info): New.
13617 (alpha_find_saved_regs): Make static. Use
13619 (alpha_frame_init_saved_regs): New function.
13620 (alpha_frame_saved_pc): Use frame->extra_info.
13621 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13622 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13623 (init_extra_frame_info): Rename to...
13624 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13625 (alpha_print_extra_frame_info): New function.
13626 (alpha_frame_locals_address): Ditto.
13627 (alpha_frame_args_address): Ditto.
13628 (alpha_pop_frame): Use frame->extra_info.
13629 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13630 alpha_frame_args_address.
13631 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13632 (alpha_find_saved_regs): Remove prototype.
13633 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13634 (EXTRA_FRAME_INFO): Remove.
13635 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13636 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13638 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13640 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13641 (alpha_cannot_fetch_register): Ditto.
13642 (alpha_cannot_store_register): Ditto.
13643 (alpha_register_convertible): Ditto.
13644 (alpha_use_struct_convention): Ditto.
13645 * config/alpha/tm-alpha.h: Update copyright years.
13646 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13647 (INNER_THAN): Use core_addr_lessthan.
13648 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13649 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13650 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13651 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13652 (FRAME_CHAIN): Remove unnecessary cast.
13654 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13656 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13659 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13661 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13662 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13663 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13664 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13665 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13666 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13667 * x86-64-linux-nat.c: Ditto.
13669 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13671 * alpha-tdep.c (alpha_register_name): New function.
13672 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13673 (REGISTER_NAME): Define.
13675 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13677 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13679 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13681 * alpha-tdep.c: Update copyright years.
13682 (alpha_next_pc): New function.
13683 (alpha_software_single_step): Ditto.
13684 * config/alpha/tm-alpha.h: Add prototype for
13685 alpha_software_single_step.
13687 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13689 * alphabsd-nat.c: Update copyright years.
13690 (fill_gregset): Use regcache_collect.
13691 (fill_fpregset): Likewise.
13692 (fetch_inferior_registers): Only fetch integer registers
13693 if requested to do so.
13694 (store_inferior_registers): Only store integer registers
13695 if requested to do so.
13697 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13699 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13700 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13701 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13702 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13703 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13704 * config/arm/linux.mh (XDEPFILES): Delete.
13705 * config/arm/nbsd.mh (XDEPFILES): Delete.
13706 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13707 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13708 * config/i386/i386m3.mh (XDEPFILES): Delete.
13709 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13710 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13711 * config/i386/fbsd.mh (XDEPFILES): Delete.
13712 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13713 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13714 * config/i386/i386v4.mh (XDEPFILES): Delete.
13715 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13716 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13717 * config/i386/i386aix.mh (XDEPFILES): Delete.
13718 * config/i386/go32.mh (XDEPFILES): Delete.
13719 * config/i386/cygwin.mh (XDEPFILES): Delete.
13720 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13721 * config/i386/i386mach.mh (XDEPFILES): Delete.
13722 * config/i386/i386v32.mh (XDEPFILES): Delete.
13723 * config/i386/linux.mh (XDEPFILES): Delete.
13724 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13725 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13726 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13727 * config/i386/i386sco.mh (XDEPFILES): Delete.
13728 * config/i386/i386v.mh (XDEPFILES): Delete.
13729 * config/i386/nbsd.mh (XDEPFILES): Delete.
13730 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13731 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13732 * config/i386/symmetry.mh (XDEPFILES): Delete.
13733 * config/i386/obsd.mh (XDEPFILES): Delete.
13734 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13735 * config/ia64/linux.mh (XDEPFILES): Delete.
13736 * config/ia64/aix.mh (XDEPFILES): Delete.
13737 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13738 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13739 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13740 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13741 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13742 * config/m68k/linux.mh (XDEPFILES): Delete.
13743 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13744 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13745 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13746 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13747 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13748 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13749 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13750 * config/m88k/delta88.mh (XDEPFILES): Delete.
13751 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13752 * config/m88k/m88k.mh (XDEPFILES): Delete.
13753 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13754 * config/mips/linux.mh (XDEPFILES): Delete.
13755 * config/mips/irix6.mh (XDEPFILES): Delete.
13756 * config/mips/irix5.mh (XDEPFILES): Delete.
13757 * config/mips/irix4.mh (XDEPFILES): Delete.
13758 * config/mips/irix3.mh (XDEPFILES): Delete.
13759 * config/mips/decstation.mh (XDEPFILES): Delete.
13760 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13761 (NATDEPFILES): Move core-aout.o to here.
13762 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13763 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13764 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13765 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13766 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13767 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13768 * config/pa/hpux11.mh (XDEPFILES): Delete.
13769 * config/powerpc/aix.mh (XDEPFILES): Delete.
13770 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13771 * config/powerpc/linux.mh (XDEPFILES): Delete.
13772 * config/romp/rtbsd.mh: Rename XDEPFILES.
13773 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13774 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13775 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13776 * config/s390/s390.mh (XDEPFILES): Delete.
13777 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13778 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13779 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13780 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13781 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13782 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13783 * config/sparc/linux.mh (XDEPFILES): Delete.
13784 * config/vax/vaxult.mh (XDEPFILES): Delete.
13785 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13786 * Makefile.in (DEPFILES): Remove XDEPFILES.
13788 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13790 * utils.c (internal_verror): Fix comments, default is yes not no.
13791 Update queries to match. Default to quit and dump core.
13793 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13795 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13797 * defs.h, event-top.c, gdbcmd.h: Ditto.
13798 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13799 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13800 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13801 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13802 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13803 * mi/mi-main.c:Ditto.
13805 * stack.c, symfile.c: Update copyright.
13807 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13809 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13810 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13811 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13812 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13814 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13816 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13817 * gdbserver/low-lynx.c (myattach): Likewise.
13818 * gdbserver/low-nbsd.c (myattach): Likewise.
13819 * gdbserver/low-sim.c (myattach): Likewise.
13820 * gdbserver/low-sparc.c (myattach): Likewise.
13821 * gdbserver/low-sun3.c (myattach): Likewise.
13823 * gdbserver/low-linux.c (myattach): New function.
13825 * gdbserver/server.c (attach_inferior): New function.
13826 (main): Handle "--attach".
13828 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13830 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13833 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13835 * c-typeprint.c (is_type_conversion_operator): Add additional
13836 check for non-conversion operators.
13838 2002-01-15 Michael Snyder <msnyder@redhat.com>
13840 * linux-proc.c: Add "info proc" command, a la procfs.c.
13841 (read_mapping): New function, abstract and re-use code.
13842 (linux_find_memory_regions): Use new func read_mapping.
13843 (linux_info_proc_cmd): New function, implement "info proc".
13844 (_initialize_linux_proc): Add new command "info proc".
13846 2002-01-15 Michael Snyder <msnyder@redhat.com>
13848 * symfile.c (generic_load): Use bfd_map_over_sections method
13849 instead of manipulating bfd structure members directly.
13850 (add_section_size_callback): New function, bfd sections callback
13851 used by generic_load.
13852 (load_sections_callback): New function, bfd sections callback
13853 used by generic_load.
13855 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13857 [Based on work by Jim Blandy]
13858 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13859 (builtin_type_vec128): Export.
13860 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13862 (builtin_type_vec128): New builtin type for 128 bit vector
13864 (build_gdbtypes): Initialize builtin_type_v16qi and
13865 builtin_type_v8hi. Create the vec128 register builtin type
13867 (build_builtin_type_vec128): New function.
13868 (_initialize_gdbtypes): Register builtin_type_v16qi and
13869 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13870 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13871 AltiVec register to new builtin type.
13873 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13875 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13878 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13880 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13881 CLEAN_UP_REGISTER_VALUE.
13882 * regcache.c (supply_register): Update only call.
13884 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13886 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13887 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13888 a29k-*-vxworks* targets as obsolete.
13890 2002-01-14 Michael Snyder <msnyder@redhat.com>
13892 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13893 until we can resolve portability issues.
13894 * gregset.h: Remove references to fpxregs.
13895 * gcore.c (gcore_command): Initialize note_sec to NULL.
13897 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13899 * signals.c (target_signal_to_name): Rewrite. Only use
13900 signals[].name when in bounds and non-NULL.
13902 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13904 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13905 * signals.c (target_signal_to_name): Verify that SIG is within the
13906 bounds of the signals array.
13908 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13910 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13912 2002-01-13 Keith Seitz <keiths@redhat.com>
13914 * stack.c (print_frame_info_base): Print the frame's pc
13915 only if when print_frame_info_listing_hook is not defined.
13917 2002-01-13 Keith Seitz <keiths@redhat.com>
13919 * varobj.c (varobj_set_value): Make sure that there were no
13920 errors evaluating the object before attempting to set its
13922 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13923 so this offset adjustment is no longer necessary.
13924 (create_child): Don't set the error flag if the child is
13925 a CPLUS_FAKE_CHILD.
13926 (value_of_child): If value_fetch_lazy fails, return NULL
13927 so that callers will be notified that an error occurred.
13928 (c_value_of_variable): Delay check of variable's validity
13929 until later. We actually want all structs and unions to have
13931 Do not return "???" for variables which could not be evaluated.
13932 This error condition must be returned to the caller so that it
13933 can get the error condition from gdb.
13934 (cplus_name_of_child): Adjust index for vptr before figuring
13935 out the name of the child.
13936 (cplus_value_of_child): If a child's (real) parent is not valid,
13937 don't even bother trying to give a value for it. Just return
13938 an error. Change all instances in this function.
13939 (cplus_type_of_child): If our parent is one of the "fake"
13940 parents, we need to get at the type of the real parent, and
13941 derive the child's true type using this information.
13943 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13945 From 2002-01-09 John Marshall <johnm@falch.net>:
13946 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13947 sources.redhat.com, and tweak some related URLs which had
13948 suffered from linkrot.
13950 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13953 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13954 structures passed in registers.
13956 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13958 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13959 white space which prevented compilation. Reported by DSK
13960 <dsk@student.unsw.edu.au>.
13962 2002-01-11 Michael Snyder <msnyder@redhat.com>
13964 * symfile.c (build_section_addr_info_from_section_tab):
13965 Use bfd access method instead of manipulating bfd directly.
13966 (syms_from_objfile): Ditto.
13967 (simple_overlay_update_1): Ditto.
13968 (simple_overlay_update): Ditto.
13969 (generic_load): Ditto.
13970 (overlay_unmapped_address): FIXME comment, bfd access methods.
13971 (sections_overlap): FIXME comment, bfd access methods.
13972 (pc_in_mapped_range): FIXME comment, bfd access methods.
13973 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13974 (section_is_mapped): FIXME comment, bfd access methods.
13975 (section_is_overlay): FIXME comment, bfd access methods.
13977 * symfile.c (generic_load): Whitespace and long line cleanups.
13978 Remove duplicate variable, change several local variables to
13979 more appropriate data types.
13980 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13982 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13984 From Peter Schauer:
13985 * language.c (longest_local_hex_string_custom): Use phex_nz to
13986 convert NUM to a hex string.
13988 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13990 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13992 Update Copyright year.
13994 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13996 * language.c (longest_raw_hex_string): Delete unused function.
13998 2002-01-11 Petr Sorfa <petrs@caldera.com>
14000 * MAINTAINERS (write-after-approval): Add myself.
14001 * dwarf2read.c (read_tag_string_type): Handling of
14003 (read_tag_string_type): FORTRAN fix to prevent propagation of
14005 (set_cu_language): Handling of DW_LANG_Fortran95
14007 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14009 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14010 GETPID(inferior_ptid).
14011 (store_inferior_registers): Likewise.
14013 2002-01-10 Jason Merrill <jason@redhat.com>
14015 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14018 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14020 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14021 and bfd/elf32-sh-nbsd.c.
14023 2002-01-10 Michael Snyder <msnyder@redhat.com>
14025 * NEWS: Mention --pid and corefile/proc-id behavior change.
14027 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14028 * gcore.c: Include cli/cli-decode.h instead of command.h.
14030 * main.c (captured_main): Add new command line option "--pid".
14031 If the second command line argument (following the symbol-file)
14032 begins with a digit, try to attach to it before trying to open
14034 (print_gdb_help): Document the "--pid" argument.
14036 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14038 * completer.c (command_completer): New function.
14040 * completer.h <command_completer>: Add prototype.
14042 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14043 completer for the "help" command.
14045 2002-01-09 Jason Merrill <jason@redhat.com>
14047 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14049 2002-01-09 Michael Snyder <msnyder@redhat.com>
14051 * i386-linux-nat.c (fill_fpxregset): Make global.
14052 (store_fpxregset): Ditto.
14054 * gregset.h (gdb_fpxregset_t): Define.
14055 (supply_fpxregset): Prototype.
14056 (fill_fpxregset): Prototype.
14058 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14060 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14062 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14063 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14064 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14066 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14068 * MAINTAINERS: Update target maintainer rules so that any
14069 Maintainer can approve a tested patch for a maintenance-only
14072 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14074 * MAINTAINERS (write-after-approval): Add myself.
14076 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14079 2002-01-08 Michael Snyder <msnyder@redhat.com>
14081 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14082 real name of the executable, rather than the /proc name.
14084 2002-01-03 Michael Snyder <msnyder@redhat.com>
14086 Implement a "generate-core-file" command in gdb, save target state.
14087 * gcore.c: New file. Implement new command 'generate-core-file'.
14088 Save a corefile image of the current state of the inferior.
14089 * linux-proc.c: Add linux-specific code for saving corefiles.
14090 * target.h (struct target_ops): Add new target vectors for saving
14091 corefiles; to_find_memory_regions and to_make_corefile_notes.
14092 (target_find_memory_regions): New macro.
14093 (target_make_corefile_notes): New macro.
14094 * target.c (update_current_target): Inherit new target methods.
14095 (dummy_find_memory_regions): New place-holder method.
14096 (dummy_make_corefile_notes): New place-holder method.
14097 (init_dummy_target): Initialize new dummy target vectors.
14098 * exec.c (exec_set_find_memory_regions): New function.
14099 Allow the exec_ops vector for memory regions to be taken over.
14100 (exec_make_note_section): New function, target vector method.
14101 * defs.h (exec_set_find_memory_regions): Export prototype.
14102 * procfs.c (proc_find_memory_regions): New function, corefile method.
14103 (procfs_make_note_section): New function, corefile method.
14104 (init_procfs_ops): Set new target vector pointers.
14105 (find_memory_regions_callback): New function.
14106 (procfs_do_thread_registers): New function.
14107 (procfs_corefile_thread_callback): New function.
14108 * sol-thread.c (sol_find_memory_regions): New function.
14109 (sol_make_note_section): New function.
14110 (init_sol_thread_ops): Initialize new target vectors.
14111 * inftarg.c (inftarg_set_find_memory_regions): New function.
14112 Allow to_find_memory_regions vector to be taken over.
14113 (inftarg_set_make_corefile_notes): New function.
14114 Allow to_make_corefile_notes vector to be taken over.
14115 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14116 interface layer if not target_has_execution (may be a corefile).
14117 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14118 * config/sparc/sun4sol2.mh: Ditto.
14119 * config/alpha/alpha-linux.mh: Ditto.
14120 * config/arm/linux.mh: Ditto.
14121 * config/i386/x86-64linux.mh: Ditto.
14122 * config/ia64/linux.mh: Ditto.
14123 * config/m68k/linux.mh: Ditto.
14124 * config/mips/linux.mh: Ditto.
14125 * config/powerpc/linux.mh: Ditto.
14126 * config/sparc/linux.mh: Ditto.
14128 2002-01-07 Michael Snyder <msnyder@redhat.com>
14130 * arm-linux-nat.c: Remove references to regcache.c internal data
14131 (registers[] and register_valid[]).
14133 2002-01-07 Michael Snyder <msnyder@redhat.com>
14135 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14136 so that attaching to a pid will automatically read the process's
14137 symbol file and shlibs.
14138 * Makefile.in: Add rule for linux-proc.o.
14139 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14140 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14141 * config/arm/linux.mh: Ditto.
14142 * config/i386/linux.mh: Ditto.
14143 * config/i386/x86-64linux.mh: Ditto.
14144 * config/ia64/linux.mh: Ditto.
14145 * config/m68k/linux.mh: Ditto.
14146 * config/mips/linux.mh: Ditto.
14147 * config/powerpc/linux.mh: Ditto.
14148 * config/sparc/linux.mh: Ditto.
14150 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14152 * win32-nat.c: Add i386-tdep.h dependency.
14154 2002-01-07 Michael Snyder <msnyder@redhat.com>
14156 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14157 instead of bfd_get_arch_size. Don't bail out just because
14158 there's no exec_bfd.
14160 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14161 * p-valprint.c (pascal_object_print_value): Ditto.
14162 * somread.c (som_symtab_read): Ditto.
14163 * symfile.c (simple_free_overlay_region_table): Ditto.
14164 * valops.c (value_assign): Ditto.
14166 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14167 use tilde_expand and strerror for opening save-tracepoints file.
14169 * thread-db.c (thread_db_new_objfile): Indendation fix.
14171 * infptrace.c (GDB_MAX_ALLOCA): New define.
14172 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14173 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14174 can be overridden with whatever value is appropriate to the host).
14175 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14176 alloca to allocate potentially large buffer.
14177 * rs6000-nat.c (child_xfer_memory): Ditto.
14178 * symm-nat.c (child_xfer_memory): Ditto.
14179 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14181 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14183 From Nick Clifton <nickc@redhat.com>
14184 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14186 2002-01-07 Michael Snyder <msnyder@redhat.com>
14188 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14189 Don't use exec_bfd if it's NULL.
14191 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14193 * valops.c (value_arg_coerce): Fix formatting.
14195 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14197 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14198 * gnu-nat.c: Ditto.
14200 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14202 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14203 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14204 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14205 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14206 z8k-coff have not been multi-arched. Update z8k-coff build
14209 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14211 * MAINTAINERS: Mark a29k target as obsolete.
14212 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14213 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14215 * NEWS: Note that a29k targets are obsolete.
14216 * a29k-tdep.c: Mark as obsolete.
14217 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14218 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14219 a29k-*-vxworks* targets as obsolete.
14220 * remote-adapt.c: Obsolete.
14221 * remote-eb.c: Obsolete.
14222 * remote-mm.c: Obsolete.
14223 * remote-udi.c: Obsolete.
14224 * config/a29k/a29k-udi.mt: Obsolete.
14225 * config/a29k/a29k.mt: Obsolete.
14226 * config/a29k/tm-a29k.h: Obsolete.
14227 * config/a29k/tm-vx29k.h: Obsolete.
14228 * config/a29k/vx29k.mt: Obsolete.
14230 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14232 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14233 with BFD_ENDIAN_BIG.
14235 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14237 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14238 * configure, config.in: Re-generate.
14239 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14240 * defs.h: Do not include <endian.h>.
14242 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14244 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14245 * config.in: Regenerate.
14246 * configure.in: Update copyright years.
14247 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14248 * configure: Regenerate.
14249 * i386bsd-nat.c: Update copyright years.
14250 (fill_gregset): Use regcache_collect.
14251 (fetch_inferior_registers): Only fetch integer registers
14252 if requested to do so. Add support for XMM registers
14253 using PT_GETXMMREGS.
14254 (store_inferior_registers): Only store integer registers
14255 if requested to do so. Add support for XMM registers
14256 using PT_SETXMMREGS.
14257 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14258 (store_inferior_registers): Remove.
14259 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14260 (fetch_elfcore_registers): New function.
14261 (i386nbsd_elfcore_fns): New.
14262 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14263 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14265 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14266 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14267 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14268 * config/i386/tm-nbsd.h: Update copyright years.
14269 (HAVE_SSE_REGS): Define.
14270 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14271 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14272 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14273 (SIGCONTEXT_PC_OFFSET): Remove.
14274 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14276 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14278 * configure.tgt: Remove powerpc-*-macos* target.
14279 * config/m68k/xm-mpw.h: Delete file.
14280 * config/xm-mpw.h: Delete file.
14281 * ser-mac.c: Delete file.
14282 * mpw-make.sed: Delete file.
14283 * mpw-config.in: Delete file.
14284 * mac-xdep.c: Delete file.
14285 * mac-gdb.r: Delete file.
14286 * mac-defs.h: Delete file.
14287 * mac-nat.c: Delete file.
14288 * config/powerpc/macos.mh: Delete file.
14289 * config/powerpc/macos.mt: Delete file.
14290 * config/powerpc/nm-macos.h: Delete file.
14291 * config/powerpc/tm-macos.h: Delete file.
14292 * source.c (openp, open_source_file): Remove obsolete code.
14293 * top.c (gdb_readline): Ditto.
14294 * utils.c (query): Ditto.
14295 * event-top.c (display_gdb_prompt): Ditto.
14296 * Makefile.in (ser-mac.o): Delete obsolete target.
14299 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14301 * defs.h (BIG_ENDIAN): Delete macro definition.
14302 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14303 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14304 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14305 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14306 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14307 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14308 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14309 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14310 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14311 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14312 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14313 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14314 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14315 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14316 * gdbarch.c: Re-generate.
14318 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14320 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14323 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14325 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14327 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14329 * value.h (value_ptr): Delete typedef.
14331 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14333 * i386nbsd-nat.c: Update copyright years.
14334 Include i386-tdep.h.
14336 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14338 * stabsread.c: Update copyright years.
14340 From Debashis Mahata <debashis.mahata@wipro.com>:
14341 (read_struct_fields): Deal with Sun C compiler erroneous stab
14342 output for structs and unions.
14345 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14347 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14350 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14352 * cp-abi.c: Fix whitespace.
14353 (baseclass_offset): New wrapper function.
14354 * cp-abi.h (baseclass_offset): Add prototype.
14355 (struct cp_abi_ops): Add baseclass_offset pointer.
14357 * valops.c (vb_match): Move to...
14358 * gnu-v2-abi.c (vb_match): here.
14359 * valops.c (baseclass_offset): Move to...
14360 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14362 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14364 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14365 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14366 * hpacc-abi.c (init_hpacc_ops): Likewise.
14368 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14370 * valops.c (find_overload_match): Accept obj as a
14371 reference parameter. Update it before returning.
14372 * value.h (find_overload_match): Update prototype.
14373 * eval.c (evaluate_subexp_standard): Pass object to
14374 find_overload_match by reference.
14376 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14378 * valarith.c: Replace value_ptr with struct value pointer. Remove
14379 register attribute from value declarations.
14382 * scm-lang.c (scm_lookup_name): Ditto.
14384 2002-01-03 Michael Snyder <msnyder@redhat.com>
14386 Abstract the functionality of iterating over mapped memory
14387 regions into a general purpose iterator function.
14388 * procfs.c (iterate_over_mappings): New function, general purpose
14389 iterator for memory sections.
14390 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14391 (solib_mappings_callback): New function, callback for above.
14392 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14393 (info_mappings_callback): New function, callback for above.
14395 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14397 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14399 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14400 * i386-tdep.c: Include "elf-bfd.h".
14401 (process_note_abi_tag_sections): New function.
14402 (i386_gdbarch_init): Add code to recognize various OS/ABI
14405 * maint.c (_initialize_maint_cmds): Add missing \ in
14408 For older changes see ChangeLog-2001
14414 version-control: never