1 2002-12-11 Andrew Cagney <ac131313@redhat.com>
3 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
4 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
5 with `struct frame_id'.
6 (set_longjmp_resume_breakpoint): Ditto.
7 * infrun.c (handle_inferior_event): Update.
8 * breakpoint.c (watch_command_1, until_break_command): Update.
9 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
10 (handle_inferior_event, step_over_function): Update.
11 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
12 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
13 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
14 * infcmd.c (finish_command, run_stack_dummy): Update.
16 2002-12-11 Kevin Buettner <kevinb@redhat.com>
18 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
19 (dwarf2_non_const_array_bound_ignored)
20 (dwarf2_missing_line_number_section)
21 (dwarf2_statement_list_fits_in_line_number_section)
22 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
23 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
24 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
25 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
26 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
27 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
28 (dwarf2_missing_member_fn_type_complaint)
29 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
30 (dwarf2_const_value_length_mismatch)
31 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
32 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
33 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
34 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
35 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
36 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
37 complaints using deprecated struct..
38 (dwarf2_non_const_array_bound_ignored_complaint)
39 (dwarf2_complex_location_expr_complaint)
40 (dwarf2_unsupported_at_frame_base_complaint)
41 (dwarf2_const_value_length_mismatch_complaint)
42 (dwarf2_macros_too_long_complaint)
43 (dwarf2_macro_malformed_definition_complaint)
44 (dwarf2_invalid_attrib_class_complaint): New functions.
45 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
46 (read_structure_scope, read_array_type, read_common_block)
47 (read_tag_pointer_type, read_base_type, read_partial_die)
48 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
49 (new_symbol, dwarf2_const_value, read_type_die)
50 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
51 (parse_macro_definition, dwarf_decode_macros): Replace calls to
52 complain() with, possibly indirect, calls to complaint().
54 2002-12-11 Andrew Cagney <cagney@redhat.com>
56 * frame.c (deprecated_get_frame_saved_regs): Rename
58 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
59 * sparc-tdep.c: Update.
60 * hppa-tdep.c: Update.
61 * h8500-tdep.c: Update.
63 2002-12-11 Kevin Buettner <kevinb@redhat.com>
65 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
66 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
67 ``char *'' for return and parameter types.
68 * gdbarch.h, gdbarch.c: Regenerate.
69 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
70 return type from ``char *'' to ``const char *''.
71 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
74 2002-12-11 Mark Kettenis <kettenis@gnu.org>
76 * i386-tdep.c: Include "dummy-frame.h".
77 (i386_frame_chain, i386_frame_saved_pc): Replace
78 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
79 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
81 2002-12-10 Andrew Cagney <cagney@redhat.com>
83 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
84 Change to a function with predicate.
85 * gdbarch.h, gdbarch.c: Re-generate.
86 * frame.c (get_prev_frame): Update. Test
87 DEPRECATED_INIT_FRAME_PC_P.
88 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
89 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
90 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
91 * alpha-tdep.c (alpha_gdbarch_init): Update.
92 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
93 * mips-tdep.c (mips_gdbarch_init): Update.
94 * i386-interix-tdep.c (i386_interix_init_abi): Update.
95 * arm-tdep.c: Update comments.
96 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
97 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
98 * frv-tdep.c (frv_gdbarch_init): Ditto.
99 * x86-64-tdep.c (x86_64_init_abi): Ditto.
100 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
101 * s390-tdep.c (s390_gdbarch_init): Ditto.
102 * v850-tdep.c (v850_gdbarch_init): Ditto.
103 * vax-tdep.c (vax_gdbarch_init): Ditto.
104 * sh-tdep.c (sh_gdbarch_init): Ditto.
105 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
107 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
109 * i386-tdep.c (i386_gdbarch_init): Ditto.
110 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
111 * cris-tdep.c (cris_gdbarch_init): Ditto.
112 * avr-tdep.c (avr_gdbarch_init): Ditto.
113 * arm-tdep.c (arm_gdbarch_init): Ditto.
114 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
115 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
117 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
119 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
121 * hppah-nat.c (saved_vfork_pid): Add.
122 (child_post_follow_vfork): Remove.
123 (child_follow_fork): New function.
124 (child_wait): Call detach_breakpoints after receiving the child vfork.
125 Call child_resume directly instead of going through resume ().
126 Make sure we have the exec before reporting the vfork.
127 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
128 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
129 (follow_fork): New function. Call target_follow_fork.
130 (follow_inferior_reset_breakpoints): New function broken out from
131 old follow_inferior_fork.
132 (resume): Remove hack to follow exec after vfork.
133 * inftarg.c (child_post_follow_vfork): Remove.
134 (child_follow_fork): New function.
135 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
136 * target.c (cleanup_target): Replace to_post_follow_vfork with
138 (update_current_target): Likewise.
139 (setup_target_debug): Likewise.
140 (debug_to_post_follow_vfork): Remove.
141 (debug_to_follow_fork): New function.
142 * target.h (struct target_ops): Replace to_post_folow_vfork with
144 (child_post_follow_vfork): Remove prototype.
145 (child_follow_fork): Add prototype.
146 (target_post_follow_vfork): Remove macro.
147 (target_follow_fork): Add macro.
149 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
151 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
152 (child_post_follow_vfork): Cancel pending exec event if we follow
154 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
155 events have been processed. Return a fake TARGET_WAITKIND_EXECD
156 event at the following wait call if necessary.
157 * infrun.c (follow_vfork): Don't follow_exec here.
158 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
159 case about HP/UX 10.20. Remove code pushed down to
160 hppah-nat.c:child_wait.
161 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
162 vfork_in_flight is set.
164 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
166 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
167 for the parent's fork event.
168 * infrun.c (handle_inferior_event): Only expect one fork event.
169 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
170 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
172 2002-12-10 Andrew Cagney <ac131313@redhat.com>
174 * PROBLEMS: Delete reference to PR gdb/725.
176 * MAINTAINERS (gdb.c++): Add David Carlton.
178 2002-12-09 David Carlton <carlton@math.stanford.edu>
180 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
181 * cli/cli-cmds.c: Ditto.
183 2002-12-09 Andrew Cagney <cagney@redhat.com>
185 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
186 function address in <>.
187 * gdbarch.c: Re-generate.
189 2002-12-09 David Carlton <carlton@math.stanford.edu>
191 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
193 2002-12-09 David Carlton <carlton@math.stanford.edu>
195 * linespec.c (symtab_from_filename): New function.
196 (decode_line_1): Move code into symtab_from_filename.
198 2002-12-09 Kevin Buettner <kevinb@redhat.com>
200 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
202 2002-12-07 Andrew Cagney <ac131313@redhat.com>
204 * f-valprint.c (info_common_command): Use get_frame_pc.
205 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
206 * ax-gdb.c (agent_command): Ditto.
207 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
208 (rs6000_pop_frame): Ditto.
209 (rs6000_frameless_function_invocation): Ditto.
210 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
211 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
212 * macroscope.c (default_macro_scope): Ditto.
213 * stack.c (print_frame_info_base): Ditto.
214 (print_frame, frame_info, print_frame_label_vars): Ditto.
215 (return_command, func_command, get_frame_language): Ditto.
216 * infcmd.c (finish_command): Ditto.
217 * dummy-frame.c (cached_find_dummy_frame): Ditto.
218 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
219 (break_at_finish_at_depth_command_1): Ditto.
220 (break_at_finish_command_1): Ditto.
221 (until_break_command, get_catch_sals): Ditto.
222 * blockframe.c (func_frame_chain_valid): Ditto.
223 (frameless_look_for_prologue): Ditto.
224 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
226 2002-12-08 Andrew Cagney <ac131313@redhat.com>
228 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
229 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
231 2002-12-08 Andrew Cagney <ac131313@redhat.com>
233 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
235 * gdbarch.h, gdbarch.c: Re-generate.
236 * frame.c (get_prev_frame): Explictly assign prev's pc with value
237 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
239 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
240 declaration to a function returning a CORE_ADDR.
241 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
242 * arch-utils.c (init_frame_pc_noop): Return the PC value.
243 (init_frame_pc_default): Ditto.
244 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
245 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
246 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
247 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
248 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
249 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
251 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
252 to init_frame_pc_noop.
253 (i386_interix_init_frame_pc): Delete function.
254 * z8k-tdep.c (init_frame_pc): Delete function.
255 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
256 (INIT_FRAME_PC_FIRST): Ditto.
257 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
258 (INIT_FRAME_PC_FIRST): Ditto.
259 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
260 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
262 (INIT_FRAME_PC_FIRST): Convert to an expression.
263 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
265 2002-12-08 Andrew Cagney <ac131313@redhat.com>
267 * blockframe.c: Use get_frame_base instead of directly accessing
268 the `struct frame_info' member frame.
269 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
270 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
272 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
274 * Makefile.in (readline_h): Define.
275 (completer.o): Depend on readline_h.
277 (event-top.o): Ditto.
284 (tracepoint.o): Ditto.
287 (tui-hooks.o): Ditto.
290 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
292 More cleanup from import of readline 4.3.
293 * completer.h (complete_line, readline_line_completion_function):
295 (line_completion_function): Removed, not used outside of completer.c.
296 * completer.c (readline_line_completion_function,
297 complete_function, line_completion_function): Use const for first
299 (line_completion_function): Make static.
300 (filename_completer): filename_completion_function is now called
301 rl_filename_completion_function
302 * corelow.c: Include <readline/readline.h>.
308 * top.c (init_main): No need to coerce
309 readline_line_completion_function anymore.
310 * cli/cli-dump.c: Include <readline/readline.h>.
312 2002-12-08 Andrew Cagney <ac131313@redhat.com>
314 * stack.c (frame_info): Use get_prev_frame.
315 * blockframe.c (frame_address_in_block): Ditto.
316 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
317 (rs6000_frameless_function_invocation): Ditto.
318 (rs6000_frame_saved_pc): Ditto.
319 (rs6000_frame_chain): Ditto.
320 * arch-utils.c (init_frame_pc_default): Ditto.
322 2002-12-08 Andrew Cagney <ac131313@redhat.com>
324 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
325 Delete redundant definition.
327 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
329 Import of readline 4.3:
330 * cli/cli-cmds.c: Include readline/tilde.h.
331 * cli/cli-setshow.c: Ditto.
332 * defs.h: Don't declare tilde_expand anymore, since readline
335 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
337 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
338 -Werror on this file.
340 2002-12-07 Andrew Cagney <ac131313@redhat.com>
342 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
344 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
345 * gdbarch.c: Regenerate.
347 2002-12-06 Andrew Cagney <ac131313@redhat.com>
349 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
350 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
351 provide a default value.
352 * gdbarch.h, gdbarch.c: Regenerate.
353 * frame.c (get_prev_frame): Update. Check
354 DEPRECATED_INIT_FRAME_PC_FIRST_P.
355 * s390-tdep.c (s390_gdbarch_init): Update.
356 * mips-tdep.c (mips_gdbarch_init): Update.
357 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
358 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
359 * alpha-tdep.c (alpha_gdbarch_init): Update.
361 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
363 * ia64-linux-nat.c: Include gdb_string.h.
364 * alpha-nat.c: Ditto.
365 * ppc-linux-nat.c: Ditto.
366 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
369 2002-12-05 Andrew Cagney <ac131313@redhat.com>
371 * gdbthread.h: Include "frame.h".
372 (struct thread_info): Replace step_frame_address with
374 * inferior.h: Include "frame.h".
375 (step_frame_id): Replace external variable step_frame_address.
376 * gdbthread.h (save_infrun_state): Replace step_frame_address
377 parameter with step_frame_id parameter.
378 (load_infrun_state): Ditto.
379 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
380 * infcmd.c (step_frame_id, step_1, step_once): Update.
381 * thread.c (load_infrun_state, save_infrun_state): Update.
382 * infrun.c (clear_proceed_status, save_inferior_status): Update.
383 (handle_inferior_event, step_over_function): Update.
384 (normal_stop, context_switch, restore_inferior_status): Update.
385 (struct inferior_status): Replace step_frame_address with
388 2002-12-05 David Carlton <carlton@math.stanford.edu>
390 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
391 DW_TAG_member as well as a declaration as being a C++ static data
393 (read_structure_scope): Combine tests for DW_TAG_member and
396 2002-12-05 David Carlton <carlton@math.stanford.edu>
398 * linespec.c (decode_compound): New function.
399 (decode_line_1): Move code into decode_compound.
401 2002-12-05 David Carlton <carlton@math.stanford.edu>
403 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
405 (lookup_symbol_aux): Do the 'field_of_this' check before checking
406 the static block. See PR gdb/804.
408 2002-12-05 David Carlton <carlton@math.stanford.edu>
410 * symtab.c (lookup_symbol_aux_block): New function.
411 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
413 2002-12-05 Andrew Cagney <ac131313@redhat.com>
415 * gdbarch.sh: Dump the predicate function and macro values.
416 (read): Print error on standard error.
417 * gdbarch.c: Regenerate.
419 2002-12-04 Kevin Buettner <kevinb@redhat.com>
421 * Makefile.in (mips_tdep_h): Define.
422 (mips-tdep.o): Add mips_tdep_h to dependency list.
423 * mips-tdep.h: New file.
424 * mips-tdep.c (mips-tdep.h): Include.
425 (enum mips_abi): Move to mips-tdep.h.
426 (mips_abi): New function.
428 2002-12-04 David Carlton <carlton@math.stanford.edu>
430 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
432 2002-12-04 David Carlton <carlton@math.stanford.edu>
434 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
436 (lookup_symbol_aux_minsyms): New function.
438 2002-12-04 J. Brobecker <brobecker@gnat.com>
440 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
442 2002-12-04 J. Brobecker <brobecker@gnat.com>
444 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
445 which is an obsolete macro name.
447 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
449 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
450 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
452 2002-12-03 H.J. Lu (hjl@gnu.org)
454 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
455 (create_breakpoints): Make sure the addr_string field is not
458 2002-12-03 Andrew Cagney <ac131313@redhat.com>
460 * sparc-nat.c (fetch_inferior_registers)
461 (store_inferior_registers): Add comment on problem of LWP vs
464 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
465 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
466 (lin_lwp_store_registers): Remove.
467 (init_lin_lwp_ops): Use fetch_inferior_registers
468 and store_inferior_registers directly.
469 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
470 (store_inferior_registers): Likewise.
473 2002-12-03 Andrew Cagney <ac131313@redhat.com>
475 * frame.h (get_frame_id): Convert to a function.
476 (null_frame_id, frame_id_p): Declare.
477 (frame_id_eq, frame_id_inner): Declare.
478 (frame_id_build): New function.
479 * frame.c (get_frame_id): Update. Use null_frame_id.
480 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
482 (null_frame_id, frame_id_p): Define.
483 (frame_id_eq, frame_id_inner): Define.
484 (frame_id_build): New function.
485 * varobj.c (varobj_create): Update.
486 (varobj_update): Update.
487 * valops.c (value_assign): Update.
488 (new_root_variable): Update.
489 * infrun.c (save_inferior_status): Update.
490 * breakpoint.c (watch_command_1): Update.
492 2002-12-03 J. Brobecker <brobecker@gnat.com>
494 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
497 2002-12-03 Andrew Cagney <cagney@redhat.com>
499 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
502 * PROBLEMS: Mention PR gdb/725.
504 2002-12-03 Andreas Schwab <schwab@suse.de>
506 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
508 2002-12-02 Adam Fedor <fedor@gnu.org>
509 Klee Dienes <kdienes@apple.com>
511 * objc-lang.c (objc_printstr): Add width arg to match
513 (compare_selectors): Add 'const' to arg types.
514 (compare_classes): Likewise.
515 (find_imps): Cast msym pointer to avoid compiler warning.
516 (print_object_command): Validate the address before
517 passing it to the print routine.
518 (find_objc_msgcall_submethod): Change function argument to
520 * objc-lang.h: Add 'extern' to all function declarations.
521 (value_nsstring): Add declaration.
523 2002-12-02 J. Brobecker <brobecker@gnat.com>
525 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
526 Fixes a build failure on HP/UX.
528 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
530 (hpread_has_name): Advance declaration to avoid a compilation warning.
531 (pst_syms_count): Add missing variable type. By change, the compiler
532 was defaulting to int, which seems a good choice. Fixes a compilation
534 (pst_syms_size): Likewise.
536 2002-12-02 J. Brobecker <brobecker@gnat.com>
538 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
539 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
540 later to set the proper gdbarch methods depending on the osabi.
541 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
543 2002-12-02 J. Brobecker <brobecker@gnat.com>
545 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
546 * osabi.c (gdb_osabi_name): Add strings images for the two new
548 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
550 2002-12-02 Andrew Cagney <ac131313@redhat.com>
552 * MAINTAINERS (Java): Global maintainers are responible for Java.
553 (Past Maintainers): Mention both Anthony Green and Per Bothner as
554 part Java maintainers.
556 2002-12-02 J. Brobecker <brobecker@gnat.com>
558 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
559 Fixes a compilation failure on AiX.
561 2002-12-02 J. Brobecker <brobecker@gnat.com>
563 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
564 why aix-thread.o is not listed.
566 2002-12-01 Andrew Cagney <ac131313@redhat.com>
568 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
569 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
570 * gdbarch.h, gdbarch.c: Re-generate.
571 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
572 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
573 * config/pa/tm-hppa.h, frame.h: Update.
574 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
575 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
576 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
577 * cris-tdep.c, alpha-tdep.c: Update.
578 * frame.c (set_unwind_by_pc, create_new_frame): Use either
579 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
580 (get_prev_frame): Ditto.
582 2002-11-30 Andrew Cagney <cagney@redhat.com>
584 * exec.c (xfer_memory): Replace boolean with int.
585 * p-exp.y: Use 0 instead of false.
586 * corelow.c (gdb_check_format): Change return type to int from
588 * utils.c: Don't include <curses.h> or <term.h> first.
590 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
592 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
593 (m68hc11_register_byte): Remove.
594 (m68hc11_gdbarch_init): Don't set the above.
596 2002-11-29 Andrew Cagney <cagney@redhat.com>
598 * remote-mips.c (mips_initialize): Force a selected frame rebuild
599 by calling get_selected_frame.
600 * ocd.c (ocd_start_remote): Use get_selected frame instead of
601 set_current_frame, create_new_frame, select_frame and
603 * remote-e7000.c (e7000_start_remote): Ditto.
604 * remote-mips.c (common_open): Ditto
605 * remote-rdp.c (remote_rdp_open): Ditto.
607 2002-11-29 Andreas Schwab <schwab@suse.de>
609 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
610 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
611 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
612 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
613 read_memory_unsigned_integer instead of read_memory_integer when
614 dealing with addresses and instruction opcodes.
615 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
616 (m68k_linux_frame_saved_pc): Likewise.
618 2002-11-29 Andrew Cagney <ac131313@redhat.com>
620 * stack.c (selected_frame, select_frame): Move from here ...
621 * frame.c (selected_frame, select_frame): ... to here. Include
623 * Makefile.in (frame.o): Update dependencies.
624 * frame.c (get_selected_frame): New function.
625 * frame.h (get_selected_frame): Declare.
626 (deprecated_selected_frame): Rename selected_frame.
627 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
628 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
629 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
630 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
631 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
632 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
633 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
634 * z8k-tdep.c, cli/cli-cmds.c: Update.
636 2002-11-29 Andrew Cagney <ac131313@redhat.com>
638 * frame.h (get_selected_block): Add comments.
640 2002-11-28 Andrew Cagney <ac131313@redhat.com>
642 * frame.c (pc_notcurrent): New function.
643 (find_frame_sal): New function.
644 * frame.h (find_frame_sal): Declare.
645 (struct symtab_and_line): Add opaque declaration.
646 * stack.c (print_frame_info_base): Use find_frame_sal instead of
649 * ada-lang.c (find_printable_frame): Ditto.
651 2002-11-28 J. Brobecker <brobecker@gnat.com>
653 * configure.in: Check that the pthdebug library is recent enough
654 before enabling thread support on native AiX.
655 * configure: Regenerate.
657 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
658 from the list of object files as it is now appended by configure
659 if thread support is enabled.
660 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
661 if thread support is enabled.
663 2002-11-28 Andrew Cagney <cagney@redhat.com>
665 * stack.c (get_selected_block): In-line get_current_block.
666 * frame.h (get_current_block): Delete declaration.
667 * blockframe.c (get_current_block): Delete function.
669 2002-11-28 Andrew Cagney <ac131313@redhat.com>
671 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
672 USE_GENERIC_DUMMY_FRAMES.
673 * gdbarch.h, gdbarch.c: Regenerate.
674 * valops.c, frame.c: Update.
675 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
676 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
677 * config/pa/tm-hppa.h, blockframe.c: Update.
678 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
679 * m68k-tdep.c, alpha-tdep.c: Ditto.
681 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
682 * mips-tdep.c: Ditto.
684 2002-11-27 Andrew Cagney <ac131313@redhat.com>
686 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
687 (USE_GENERIC_DUMMY_FRAMES): Default to true.
688 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
689 * gdbarch.c, gdbarch.h: Re-generate.
690 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
691 (CALL_DUMMY_LOCATION): Delete macro definition.
692 (PC_IN_CALL_DUMMY): Delete macro definitions.
694 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
695 default is already generic_pc_in_call_dummy.
696 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
697 * v850-tdep.c (v850_gdbarch_init): Ditto.
698 * sh-tdep.c (sh_gdbarch_init): Ditto.
699 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
700 * mips-tdep.c (mips_gdbarch_init): Ditto.
701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
703 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
704 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
705 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
706 * avr-tdep.c (avr_gdbarch_init): Ditto.
708 * arm-tdep.c (arm_gdbarch_init): Do not set
709 use_generic_dummy_frames, default is already 1.
710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
711 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
712 * v850-tdep.c (v850_gdbarch_init): Ditto.
713 * sh-tdep.c (sh_gdbarch_init): Ditto.
714 * s390-tdep.c (s390_gdbarch_init): Ditto.
715 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
716 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
717 * mips-tdep.c (mips_gdbarch_init): Ditto.
718 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
720 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
721 * i386-tdep.c (i386_gdbarch_init): Ditto.
722 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
723 * frv-tdep.c (frv_gdbarch_init): Ditto.
724 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
725 * cris-tdep.c (cris_gdbarch_init): Ditto.
726 * avr-tdep.c (avr_gdbarch_init): Ditto.
728 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
729 call_dummy_location, default is already AT_ENTRY_POINT.
730 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
731 * v850-tdep.c (v850_gdbarch_init): Ditto.
732 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
733 * sh-tdep.c (sh_gdbarch_init): Ditto.
734 * s390-tdep.c (s390_gdbarch_init): Ditto.
735 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
736 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
737 * mips-tdep.c (mips_gdbarch_init): Ditto.
738 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
740 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
741 * i386-tdep.c (i386_gdbarch_init): Ditto.
742 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
743 * frv-tdep.c (frv_gdbarch_init): Ditto.
744 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
745 * cris-tdep.c (cris_gdbarch_init): Ditto.
746 * avr-tdep.c (avr_gdbarch_init): Ditto.
747 * arm-tdep.c (arm_gdbarch_init): Ditto.
748 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
750 2002-11-28 Andrew Cagney <cagney@redhat.com>
752 * frame.h: Update comments on set_current_frame, create_new_frame,
753 flush_cached_frames, reinit_frame_cache, select_frame and
756 2002-11-27 Andrew Cagney <cagney@redhat.com>
758 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
759 deprecated pc_in_call_dummy function.
760 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
761 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
762 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
763 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
764 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
766 2002-11-26 Martin M. Hunt <hunt@redhat.com>
768 * Makefile.in: Remove Tix dependencies.
769 * acinclude.m4: Ditto.
771 * configure.in: Ditto.
772 * configure: Regenerated.
774 2002-11-26 Andrew Cagney <ac131313@redhat.com>
776 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
777 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
778 * gdbarch.c: Re-generate.
780 2002-11-26 Andrew Cagney <ac131313@redhat.com>
782 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
783 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
784 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
785 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
786 pc_in_call_dummy_at_entry_point.
787 * config/pa/tm-hppa.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/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
791 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
792 pc_in_call_dummy_on_stack.
793 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
794 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
795 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
796 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
797 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
799 2002-11-26 Andrew Cagney <ac131313@redhat.com>
801 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
802 pc_in_call_dummy_before_text_end
803 (deprecated_pc_in_call_dummy_after_text_end): Rename
804 pc_in_call_dummy_after_text_end.
805 (deprecated_pc_in_call_dummy_on_stack): Rename
806 pc_in_call_dummy_on_stack.
807 (deprecated_pc_in_call_dummy_at_entry_point): Rename
808 pc_in_call_dummy_at_entry_point.
809 * m68k-tdep.c (m68k_gdbarch_init): Update.
810 * s390-tdep.c (s390_gdbarch_init): Update.
811 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
812 * vax-tdep.c (vax_gdbarch_init): Update.
813 * sparc-tdep.c (sparc_gdbarch_init): Update.
814 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
815 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
816 * i386-tdep.c (i386_gdbarch_init): Update.
817 * frv-tdep.c (frv_gdbarch_init): Update.
818 * cris-tdep.c (cris_gdbarch_init): Update.
819 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
820 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
821 (deprecated_pc_in_call_dummy_after_text_end)
822 (deprecated_pc_in_call_dummy_on_stack)
823 (deprecated_pc_in_call_dummy_at_entry_point): Update.
824 * alpha-tdep.c (alpha_gdbarch_init): Update.
826 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
828 * acconfig.h (HAVE_PREAD64): Add.
829 * configure.in: Check for pread64.
830 * config.in: Regenerated.
831 * configure: Regenerated.
832 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
833 * linux-proc.c (linux_proc_xfer_memory): New function.
834 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
836 2002-11-25 David Carlton <carlton@math.stanford.edu>
838 * dwarf2read.c (scan_partial_symbols): Descend into namespace
841 2002-11-25 Andrew Cagney <ac131313@redhat.com>
843 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
844 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
846 2002-11-25 Jim Blandy <jimb@redhat.com>
848 * symfile.c (init_objfile_sect_indices): New function.
849 (default_symfile_offsets): Move the section-index-initializing
850 stuff into init_objfile_sect_indices, and call that.
852 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
853 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
855 * symfile.c (syms_from_objfile): Adjust indentation.
857 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
858 || info_verbose isn't true.
860 2002-11-24 Andrew Cagney <ac131313@redhat.com>
862 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
863 default to get_frame_base.
864 * gdbarch.h, gdbarch.c: Regenerate.
865 * arch-utils.c (default_frame_address): Delete function.
866 * arch-utils.h (default_frame_address): Delete declaration
868 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
870 * varobj.c (find_frame_addr_in_frame_chain):
871 Use get_frame_base instead of FRAME_FP,
874 2002-11-19 Andrew Cagney <ac131313@redhat.com>
876 * frame.h (FRAME_FP): Delete macro.
877 (get_frame_base): New function declaration.
878 * frame.c (get_frame_base): New function.
879 (get_frame_id): Use ->frame.
880 (frame_find_by_id): Rewrite to use get_frame_id.
881 * blockframe.c: Use get_frame_base instead of FRAME_FP.
882 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
883 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
884 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
885 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
886 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
887 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
889 2002-11-24 Andrew Cagney <ac131313@redhat.com>
891 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
893 2002-11-24 Andrew Cagney <ac131313@redhat.com>
895 * frame.c (set_unwind_by_pc): Revert change below, use
897 (get_prev_frame): Ditto.
899 2002-11-24 Andrew Cagney <ac131313@redhat.com>
901 * dummy-frame.c (pc_in_dummy_frame): New function.
902 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
903 (find_dummy_frame): Update comment.
904 (generic_pop_current_frame): Use get_frame_type.
905 * dummy-frame.h (pc_in_dummy_frame): Declare.
906 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
907 (create_new_frame): Use pc_in_dummy_frame.
908 (get_prev_frame): Use pc_in_dummy_frame.
909 (frame_saved_regs_register_unwind): Use get_prev_frame.
910 (deprecated_generic_get_saved_register): Use get_prev_frame.
912 2002-11-23 Andrew Cagney <ac131313@redhat.com>
914 * blockframe.c (find_frame_addr_in_frame_chain): Move function
916 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
917 (varobj_create): Note that frame ID should be used.
918 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
920 2002-11-23 Andrew Cagney <ac131313@redhat.com>
922 * breakpoint.c: Include "gdb_assert.h".
923 (deprecated_frame_in_dummy): Assert that generic dummy frames are
925 * Makefile.in (breakpoint.o): Update dependencies.
926 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
927 deprecated_frame_in_dummy.
928 * stack.c (print_frame_info_base): Ditto.
930 (print_frame_info_base): Ditto. Delete dead code.
932 2002-11-23 Andreas Schwab <schwab@suse.de>
934 * Makefile.in (m68k_tdep_h): Define.
935 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
936 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
937 * m68k-tdep.c: Move register number enum ...
938 * m68k-tdep.h: ... to this new file and rename the constants from
939 E_* to M68K_*. All uses changed.
940 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
941 * abug-rom.c: Include "m68k-tdep.h". Use
942 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
943 * cpu32bug-rom.c: Likewise.
944 * dbug-rom.c: Likewise.
945 * m68k-tdep.c: Likewise.
946 * m68klinux-nat.c: Likewise.
947 * remote-est.c: Likewise.
948 * rom68k-rom.c: Likewise.
949 * config/m68k/tm-linux.h: Likewise.
951 2002-11-23 Andrew Cagney <ac131313@redhat.com>
953 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
954 dummy frame initialization code.
955 * mips-tdep.c (mips_gdbarch_init): Ditto.
957 2002-11-22 Christopher Faylor <cgf@redhat.com>
959 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
962 2002-11-22 Andrew Cagney <ac131313@redhat.com>
964 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
965 to default_frame_address.
966 * gdbarch.h, gdbarch.c: Re-generate.
968 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
969 or frame_locals_address to default_frame_address.
970 * m68k-tdep.c (m68k_gdbarch_init): Update.
971 * i386-tdep.c (i386_gdbarch_init): Update.
972 * frv-tdep.c (frv_gdbarch_init): Update.
973 * sh-tdep.c (sh_gdbarch_init): Update.
974 * v850-tdep.c (v850_gdbarch_init): Update.
975 * sparc-tdep.c (sparc_gdbarch_init): Update.
976 * mips-tdep.c (mips_gdbarch_init): Update.
977 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
978 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
981 * cris-tdep.c (cris_frame_args_address): Delete function.
982 (cris_frame_locals_address): Delete function.
983 (cris_gdbarch_init): Do not set frame_args_address or
984 frame_locals_address.
986 2002-11-22 Michael Snyder <msnyder@redhat.com>
988 * thread-db.c (thread_db_load): Tell the user what's going on
989 if dlopen fails on libthread_db.
991 2002-11-23 Andreas Schwab <schwab@suse.de>
993 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
994 invariant return values.
996 2002-11-22 Andreas Schwab <schwab@suse.de>
998 * valops.c (value_slice): Move declaration of `offset' to avoid
1001 2002-11-22 Christopher Faylor <cgf@redhat.com>
1003 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1004 (struct so_stuff): Add end_addr field.
1005 (register_loaded_dll): Calculate and store end address of loaded dll.
1006 (solib_address): New function.
1007 (child_solib_loaded_library_pathname): Pass carefully constructed
1008 section info to safe_symbol_file_add rather than ignoring it.
1009 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1011 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1012 (child_create_inferior): Fix a compiler warning.
1013 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1014 (solib_address): Declare new function.
1016 2002-11-22 Andreas Schwab <schwab@suse.de>
1018 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1021 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1023 * maint.c (_initialize_maint_cmds): Fix typo. From
1024 Francesco Potorti` <pot@gnu.org>.
1026 2002-11-21 Andrew Cagney <cagney@redhat.com>
1028 * mips-tdep.c (mips_dump_tdep): Delete references to
1029 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1030 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1031 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1032 * printcmd.c (build_address_symbolic): Delete calls to
1033 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1034 (address_info): Ditto.
1037 2002-11-19 Klee Dienes <kdienes@apple.com>
1038 Adam Fedor <fedor@gnu.org>
1040 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1041 the ability to explicitly specify the quote characters and word
1042 break characters; if NULL is specified for either, use the old
1043 behavior of using the characters used by the completer.
1044 (skip_chars): New function. Convenience wrapper around
1045 skip_quoted_chars to provide the original skip_chars behavior.
1046 * completer.h (skip_quoted_chars): Add prototype.
1048 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1050 Problems reported by Paul Eggert.
1051 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1053 2002-11-19 Andreas Schwab <schwab@suse.de>
1055 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1056 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1057 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1058 (m68k_linux_frame_saved_pc): Move to ...
1059 * m68klinux-tdep.c: ... here. New file.
1060 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1061 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1063 2002-11-19 Adam Fedor <fedor@gnu.org>
1065 * objc-exp.y: Revert to old skip_quoted usage.
1067 2002-11-19 Adam Fedor <fedor@gnu.org>
1069 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1070 (objc_lang_h): Define.
1071 (YYFILES): Add objc-exp.tab.c.
1072 (local-maintainer-clean): Remove objc-exp.tab.c.
1073 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1075 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1077 * p-exp.y (typecast rule): Add automatic dereference of
1078 pascal classes if needed.
1079 (THIS): Set current_type.
1080 Automatically dereference pascal classes.
1081 (typebase rule): Add ^typebase recognition.
1083 2002-11-18 Adam Fedor <fedor@gnu.org>
1085 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1086 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1087 (op_name): Handle OP_OBJC_SELF.
1088 * Makefile.in (expprint.o): Add additional depends.
1090 2002-11-18 Adam Fedor <fedor@gnu.org>
1092 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1093 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1094 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1095 * objc-exp.y: Likewise.
1097 2002-11-18 Adam Fedor <fedor@gnu.org>
1099 * gdb/parser-defs.h: (struct objc_class_str): New structure
1100 for parsing ObjC classes.
1102 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1104 * stack.c (frame_relative_level): Copy function from here ...
1105 * frame.c (frame_relative_level): ...to here.
1107 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1109 * frame.h (enum frame_type): Define.
1110 (get_frame_type): Declare.
1111 (struct frame_info): Add field `type'. Delete field
1112 signal_handler_caller.
1113 (deprecated_set_frame_signal_handler_caller): Declare.
1114 * frame.c (get_frame_type): New function.
1115 (deprecated_set_frame_type): New function.
1116 (create_new_frame): Set the frame's type.
1117 (get_prev_frame): Similar.
1118 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1119 * s390-tdep.c: Ditto.
1120 * m68klinux-nat.c: Ditto.
1121 * ns32k-tdep.c: Ditto.
1122 * x86-64-linux-tdep.c: Ditto.
1123 * vax-tdep.c: Ditto.
1124 * rs6000-tdep.c: Ditto.
1125 * ppc-linux-tdep.c: Ditto.
1126 * i386-interix-tdep.c: Ditto.
1127 * mips-tdep.c: Ditto.
1128 * m68k-tdep.c: Ditto.
1129 * hppa-tdep.c: Ditto.
1130 * ia64-tdep.c: Ditto.
1131 * cris-tdep.c: Ditto.
1132 * arm-tdep.c: Ditto.
1133 * alpha-tdep.c: Ditto.
1134 * i386-tdep.c: Ditto.
1136 * ada-lang.c: Ditto.
1137 * blockframe.c: Update.
1138 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1139 deprecated_set_frame_type instead of signal_handler_caller.
1140 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1141 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1142 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1144 2002-11-18 Klee Dienes <kdienes@apple.com>
1146 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1148 2002-11-18 Klee Dienes <kdienes@apple.com>
1150 * buildsym.c (pop_context): Add comment.
1152 2002-11-18 Klee Dienes <kdienes@apple.com>
1154 * buildsym.h (pop_context): Convert to function, defined in
1156 * buildsym.c: Include gdb_assert.h.
1157 (pop_context): Implement as C function. Add check for stack
1159 * dbxread.c (process_one_symbol): Complain and stop processing
1160 that symbol if we are already at the top of the context stack for
1161 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1162 when processing N_RBRAC.
1164 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1166 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1168 (struct target_waitstatus): Add opaque definition.
1169 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1170 * exec.c (init_exec_ops): Likewise.
1171 * fork-child.c (clone_and_follow_inferior): Remove.
1172 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1173 * inferior.h (clone_and_follow_inferior): Remove prototype.
1174 * infrun.c (follow_fork_mode_both): Remove.
1175 (follow_fork_mode_kind_names): Remove commented out "both".
1176 (follow_inferior_fork): Remove follow_fork_mode_both support.
1177 * inftarg.c (child_clone_and_follow_inferior): Remove.
1178 (child_post_follow_inferior_by_clone): Remove.
1179 (init_child_ops): Don't set to_clone_and_follow_inferior
1180 or to_post_follow_inferior_by_clone.
1181 * target.c (default_clone_and_follow_inferior): Remove.
1182 (cleanup_target): Don't set to_clone_and_follow_inferior
1183 or to_post_follow_inferior_by_clone.
1184 (find_default_clone_and_follow_inferior): Remove.
1185 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1186 (debug_to_clone_and_follow_inferior): Remove.
1187 (debug_to_post_follow_inferior_by_clone): Remove.
1188 (setup_target_debug): Don't set to_clone_and_follow_inferior
1189 or to_post_follow_inferior_by_clone.
1190 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1191 and to_post_follow_inferior_by_clone.
1192 (child_clone_and_follow_inferior): Remove prototype.
1193 (child_post_follow_inferior_by_clone): Remove prototype.
1194 (target_clone_and_follow_inferior): Remove macro.
1195 (target_post_follow_inferior_by_clone): Remove macro.
1196 (find_default_clone_and_follow_inferior): Remove prototype.
1198 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1200 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1201 inferior_has_vforked, and inferior_has_execd instead of
1202 target_has_forked, target_has_vforked, and target_has_execd.
1203 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1204 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1205 (CHILD_WAIT): Define.
1206 (child_wait): Add prototype.
1207 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1209 (hpux_has_vforked): Likewise, from child_has_vforked.
1210 (hpux_has_execd): Likewise, from child_has_execd.
1211 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1212 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1213 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1214 and hpux_has_syscall_event instead of the target hooks.
1215 * infrun.c (inferior_has_forked, inferior_has_vforked)
1216 (inferior_has_execd): New functions.
1217 * inftarg.c (not_same_real_pid): Remove.
1218 (child_wait): Remove references to not_same_real_pid,
1219 target_has_forked, target_has_vforked, target_has_execd,
1220 and target_has_syscall_event.
1221 (child_has_forked, child_has_vforked, child_has_execd)
1222 (child_has_syscall_event): Remove.
1223 (init_child_ops): Remove references to child_has_forked,
1224 child_has_vforked, child_has_execd, and child_has_syscall_event.
1225 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1226 (hpux_has_vforked): Likewise, from child_has_vforked.
1227 (hpux_has_execd): Likewise, from child_has_execd.
1228 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1229 * target.c (cleanup_target): Remove references to
1230 to_has_forked, to_has_vforked, to_has_execd, and
1231 to_has_syscall_event.
1232 (update_current_target): Likewise.
1233 (setup_target_debug): Likewise.
1234 (debug_to_has_forked): Remove.
1235 (debug_to_has_vforked): Remove.
1236 (debug_to_has_execd): Remove.
1237 (debug_to_has_syscall_event): Remove.
1238 * target.h (struct target_ops): Remove to_has_forked.
1239 to_has_vforked, to_has_execd, and to_has_syscall_event.
1240 (child_has_forked, child_has_vforked, child_has_execd)
1241 (child_has_syscall_event): Remove prototypes.
1242 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1244 (target_has_forked, target_has_vforked, target_has_execd)
1245 (target_has_syscall_event): Remove macros.
1247 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1249 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1250 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1251 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1252 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1253 * target.c (cleanup_target): Remove reference to
1254 to_can_follow_vfork_prior_to_exec.
1255 (update_current_target): Likewise.
1256 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1257 (setup_target_debug): Remove reference to
1258 to_can_follow_vfork_prior_to_exec.
1259 * target.h (struct target_ops): Remove
1260 to_can_follow_vfork_prior_to_exec.
1261 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1262 (target_can_follow_vfork_prior_to_exec): Remove definition.
1263 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1265 * infrun.c (follow_vfork_when_exec): Remove.
1266 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1267 (follow_exec): Likewise.
1268 (handle_inferior_event): Likewise.
1269 (keep_going): Likewise.
1271 2002-11-15 Andrew Cagney <cagney@redhat.com>
1273 * frame.c (generic_unwind_get_saved_register): Make static.
1274 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1275 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1276 defaults to generic_unwind_get_saved_register.
1277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1278 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1279 * frv-tdep.c (frv_gdbarch_init): Ditto.
1280 * i386-tdep.c (i386_gdbarch_init): Ditto.
1281 * s390-tdep.c (s390_gdbarch_init): Ditto.
1282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1283 * v850-tdep.c (v850_gdbarch_init): Ditto.
1284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1285 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1286 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1288 2002-11-15 Andrew Cagney <cagney@redhat.com>
1290 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1293 2002-11-15 Andrew Cagney <cagney@redhat.com>
1295 * frame.h (sigtramp_saved_pc): Delete declaration.
1296 * blockframe.c (sigtramp_saved_pc): Delete function.
1297 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1298 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1299 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1300 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1302 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1304 * frame.c (frame_pc_unwind): New function.
1305 (frame_saved_regs_pc_unwind): New function.
1306 (frame_register_unwind): Pass unwind_cache instead of
1307 register_unwind_cache.
1308 (set_unwind_by_pc): Add unwind_pc parameter, set.
1309 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1310 (get_prev_frame): Ditto.
1311 * frame.h (frame_pc_unwind_ftype): Declare.
1312 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1313 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1314 (frame_pc_unwind): Declare.
1315 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1316 (struct dummy_frame): Add comment mentioning that values are for
1318 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1319 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1320 (generic_file_frame_chain_valid): Ditto.
1321 * stack.c (frame_info): Ditto.
1323 2002-11-15 David Carlton <carlton@math.stanford.edu>
1325 * linespec.c (locate_first_half): New function.
1326 (decode_line_1): Move code into locate_first_half.
1328 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1330 * complaints.h: Add comment explaining how to eliminate a
1331 deprecated_complain call.
1332 * complaints.h: Fix spelling errors.
1334 2002-11-15 David Carlton <carlton@math.stanford.edu>
1336 * printcmd.c: Remove #include "disasm.h".
1338 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1340 * frame.h: Move the most relevant interface functions to the start
1343 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1345 * regcache.h (deprecated_registers): Rename registers.
1346 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1347 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1348 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1349 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1350 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1351 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1352 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1353 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1354 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1355 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1356 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1357 * v850ice.c: Update.
1359 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1361 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1364 2002-11-13 Andrew Cagney <cagney@redhat.com>
1366 * regcache.h (deprecated_read_register_bytes): Rename
1367 read_register_bytes.
1368 (deprecated_write_register_bytes): Rename write_register_bytes.
1369 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1370 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1371 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1372 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1373 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1374 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1375 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1376 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1377 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1378 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1379 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1380 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1381 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1382 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1384 2002-11-13 Jim Blandy <jimb@redhat.com>
1386 * findvar.c (read_var_value): Doc fix.
1388 2002-11-13 Andrew Cagney <cagney@redhat.com>
1390 * regcache.c (struct regcache): Replace passthough_p with
1392 (regcache_xmalloc): Initialize readonly_p.
1393 (build_regcache): Initialize readonly_p.
1394 (regcache_save): New function.
1395 (regcache_restore): New function.
1396 (regcache_cpy): Re-implement using regcache_save and
1398 (regcache_raw_read): Update.
1399 (regcache_cooked_read): When a read-only cache, checked for cached
1400 pseudo register values.
1401 (regcache_raw_write): Assert that the cache is not read-only.
1402 Remove code handling a non-passthrough cache.
1403 * regcache.h (regcache_save): Declare.
1404 (regcache_restore): Declare.
1406 2002-11-13 Andrew Cagney <cagney@redhat.com>
1408 * regcache.c (struct regcache_descr): Add fields
1409 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1410 (init_legacy_regcache_descr): Compute the size of a cooked
1411 register cache and then assign that to sizeof_raw_registers. Set
1412 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1413 (init_legacy_regcache_descr): Ditto.
1415 2002-11-13 Andrew Cagney <cagney@redhat.com>
1417 * regcache.c (register_buffer): Move to near start of file, update
1419 (regcache_raw_read): Use.
1420 (regcache_raw_write): Use.
1421 (struct regcache): Rename raw_registers to registers and
1422 raw_register_valid_p to register_valid_p.
1423 (regcache_xmalloc): Update.
1424 (regcache_xfree): Update.
1425 (register_buffer): Update.
1426 (regcache_cpy): Update.
1427 (regcache_cpy_no_passthrough): Update.
1428 (regcache_valid_p): Update.
1429 (deprecated_grub_regcache_for_registers): Update.
1430 (deprecated_grub_regcache_for_register_valid): Update.
1431 (set_register_cached): Update.
1432 (regcache_raw_write): Update.
1434 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1436 * p-exp.y (name_not_typename): Use copy_name to
1437 set current_type variable for fields of THIS.
1439 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1441 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1442 * monitor.c (init_base_monitor_ops): Likewise.
1443 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1444 * remote-array.c (init_array_ops): Likewise.
1445 * remote-e7000.c (init_e7000_ops): Likewise.
1446 * remote-es.c (init_es1800_ops): Likewise.
1447 (init_es1800_child_ops): Likewise.
1448 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1449 * remote-sim.c (init_gdbsim_ops): Likewise.
1450 * remote-st.c (init_st2000_ops): Likewise.
1451 * sol-thread.c (init_sol_core_ops): Likewise.
1452 (init_sol_thread_ops): Likewise.
1453 * v850ice.c (init_850ice_ops): Likewise.
1454 * win32-nat.c (init_child_ops): Likewise.
1455 * wince.c (init_child_ops): Likewise.
1457 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1459 * utils.c (gdb_realpath): Make rp a constant pointer.
1461 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1463 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1464 a constant buffer; cannonicalize_file_name(); realpath() with a
1465 pathconf() defined buffer, xstrdup().
1467 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1469 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1470 to hang2.C; hang3.c to hang3.C.
1472 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1474 * findvar.c (read_var_value): Reenable TLS code.
1476 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1477 Jim Blandy <jimb@redhat.com>
1479 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1480 * target.c (update_current_target): Add
1481 to_get_thread_local_address.
1482 * target.h (to_get_thread_local_address): Export.
1483 (target_get_thread_local_address): Define.
1484 (target_get_thread_local_address_p): Define.
1485 * thread-db.c: Include solib-svr4.h.
1486 (td_thr_tls_get_addr_p): Define.
1487 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1488 (thread_db_get_thread_local_address): New function.
1489 (init_thread_db_ops): Initialize to_get_thread_local_address.
1490 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1491 * configure: Regenerate.
1492 * config.in: Regenerate.
1494 2002-11-11 David Carlton <carlton@math.stanford.edu>
1496 * linespec.c (set_flags): New function.
1497 (decode_line_1): Move code into set_flags.
1499 2002-11-11 David Carlton <carlton@math.stanford.edu>
1501 * linespec.c (decode_line_1): Move chunks of code to separate
1503 (initialize_defaults): New function.
1504 (decode_indirect): New function.
1506 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1508 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1509 instead of void_code_ptr.
1510 (sigtramp_saved_pc): Ditto.
1512 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1515 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1517 * gdbtypes.h (struct main_type): Move artificial flag out of
1518 loc. New member of ``struct field'' named static_kind. Reduce
1519 overloaded meaning of bitsize.
1520 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1521 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1522 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1524 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1526 (template_to_fixed_record_type, template_to_static_fixed_type)
1527 (to_record_with_fixed_variant_part): Likewise.
1528 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1529 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1530 * dwarfread.c (struct_type, enum_type): Likewise.
1531 * hpread.c (hpread_read_enum_type)
1532 (hpread_read_function_type, hpread_read_doc_function_type)
1533 (hpread_read_struct_type): Likewise.
1534 * mdebugread.c (parse_symbol): Likewise.
1536 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1538 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1539 * stack.c (print_frame_info_base): Update.
1540 (print_frame_info_base, frame_info): Update.
1541 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1542 (sparc_frame_saved_pc): Update.
1543 * ada-lang.c (find_printable_frame): Update.
1544 * breakpoint.c (deprecated_frame_in_dummy): Update.
1546 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1548 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1550 (regmap): Extend to cover all registers.
1551 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1552 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1554 (fetch_register, sore_register): Simplify.
1555 (old_fetch_inferior_registers, old_store_inferior_registers):
1557 (cannot_fetch_register, cannot_store_register): Change
1558 implementation to use regmap array to decide which registers
1559 cannot be fetched/stored. This removes $orig_eax from the
1560 registers that cannot be fetched/stored.
1561 (fetch_inferior_registers): Call fetch_register directly instead
1562 of calling old_fetch_inferior_registers.
1563 (store_inferior_registers): Call store_register directly instead
1564 of calling old_store_inferior_registers.
1565 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1566 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1567 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1569 2002-11-09 Klee Dienes <kdienes@apple.com>
1571 * i387-tdep.c (i387_supply_register): When called with NULL as a
1572 buffer, mark the register as not provided (to mirror the behavior
1573 of supply_register).
1574 (i387_supply_fxsave): Ditto.
1575 (i387_supply_fsave): Ditto (inherits the behavior from
1576 i387_supply_register).
1578 2002-11-09 Klee Dienes <kdienes@apple.com>
1580 * blockframe.c (sigtramp_saved_pc): Use
1581 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1582 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1583 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1585 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1587 * frame.c (get_prev_frame): Test prev_p to identify a previously
1588 unwound frame. Initialize prev_p.
1589 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1592 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1594 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1595 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1596 more comments. Zap dead code.
1598 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1600 * infcmd.c (print_vector_info, print_float_info): Move code that
1601 checks whether the target has any registers and whether there is a
1602 selected frame up, such that it is also used if a target provides
1603 multi-arch definitions of these functions.
1605 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1607 * Makefile.in (DESTDIR): Define.
1608 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1611 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1612 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1614 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1616 * i386-linux-tdep.c: Include "reggroups.h".
1617 (i386_linux_register_reggroup_p): New function.
1618 (i386_linux_init_abi): Set register_reggroup_p to
1619 i386_linux_register_reggroup_p.
1620 * i386-tdep.h (i386_register_reggroup_p): Declare.
1621 * i386-tdep.c: Include "reggroups.h".
1622 (i386_init_reggroups): New function.
1623 (i386_add_reggroups): New function.
1624 (i386_register_reggroup_p): New function.
1625 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1626 (_initialize_i386_tdep): Call i386_init_reggroups.
1627 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1630 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1632 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1633 request that's available in *BSD.
1635 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1637 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1640 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1642 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1643 * dummy-frame.c (find_dummy_frame): Rename
1644 generic_find_dummy_frame, make static. Return the dummy frame
1645 instead of the regcache.
1646 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1647 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1648 (dummy_frame_register_unwind): Rename
1649 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1650 * dummy-frame.h (dummy_frame_register_unwind): Rename
1651 generic_call_dummy_register_unwind.
1653 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1655 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1656 except the inclusion of "i386/tm-i386.h", to...
1657 * config/i386/nm-i386v42mp.h: ...here.
1658 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1660 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1662 * Makefile.in (frame.o): Update dependencies.
1663 * blockframe.c (current_frame, frame_obstack_alloc)
1664 (frame_saved_regs_zalloc, get_current_frame)
1665 (set_current_frame, create_new_frame)
1666 (set_unwind_by_pc, get_next_frame)
1667 (flush_cached_frames, reinit_frame_cache)
1668 (frame_saved_regs_register_unwind)
1669 (deprecated_generic_get_saved_register)
1670 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1671 (_initialize_blockframe): Move frame code from here...
1672 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1673 "annotate.h" and "dummy-frame.h".
1674 (_initialize_frame): New function.
1676 2002-11-08 Jim Blandy <jimb@redhat.com>
1678 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1679 when we finish a function a context.
1680 * buildsym.h (outermost_context_p): New macro.
1681 (Bug analyzed by David Edelsohn.)
1683 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1685 * blockframe.c: Include "dummy-frame.h".
1686 (struct dummy_frame, dummy_frame_stack)
1687 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1688 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1689 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1690 (generic_save_call_dummy_addr, generic_pop_current_frame)
1691 (generic_pop_dummy_frame, generic_fix_call_dummy)
1692 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1693 dummy frame code from here...
1694 * dummy-frame.c: ...to here. New file.
1695 * dummy-frame.h: New file.
1696 (generic_call_dummy_register_unwind): Declare.
1697 (generic_find_dummy_frame): Declare.
1698 * Makefile.in (SFILES): Add dummy-frame.c.
1699 (dummy-frame.o): Specify dependencies.
1700 (dummy_frame_h): Define.
1701 (COMMON_OBS): Add dummy-frame.o.
1702 (blockframe.o): Update dependencies.
1704 2002-11-08 Jim Blandy <jimb@redhat.com>
1706 * dwarf2read.c (read_func_scope): Restore local_symbols and
1707 param_symbols after we finish the function context. (Based on a
1708 patch from David Edelsohn.)
1710 2002-11-08 David Carlton <carlton@math.stanford.edu>
1712 * linespec.c (symbol_found): New function.
1713 (minsym_found): New function.
1714 (decode_line_1): Separate out some code into separate functions.
1716 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1718 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1719 the benefit of the interix target.
1720 * i386-tdep.h (i386_frameless_signal_p): Declare.
1722 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1724 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1725 declaration that snuck in from change below.
1727 2002-11-06 Andrew Cagney <cagney@redhat.com>
1729 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1731 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1732 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1733 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1734 (i386_mxcsr_regnum_p): new function. Use instead of
1736 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1737 (i386_sse_regnum_p): Declare.
1738 (i386_mxcsr_regnum_p): Declare.
1739 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1740 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1741 (IS_FP_REGNUM): Update definition.
1742 (IS_FPU_CTRL_REGNUM): Update definition..
1743 (IS_SSE_REGNUM): Update definition..
1744 * i386v-nat.c (register_u_addr): Update.
1745 * go32-nat.c (fetch_register): Update.
1746 (store_register): Update.
1748 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1750 Preparation work to convert the hppa targets to multiarch partial.
1752 * hppa-tdep.c: Add new functions replacing macro bodies from
1753 config/pa/tm-hppa.h. These function will be used to initialize
1754 the gdbarch structure. Import some comments from tm-hppa.h,
1755 and place them where appropriate, to avoid loosing them when
1756 we cleanup this file.
1757 (hppa_reg_struct_has_addr): New function.
1758 (hppa_inner_than): New function.
1759 (hppa_stack_align): New function.
1760 (hppa_pc_requires_run_before_use): New function.
1761 (hppa_instruction_nullified): New function.
1762 (hppa_register_byte): New function.
1763 (hppa_register_virtual_type): New function.
1764 (hppa_store_struct_return): New function.
1765 (hppa_cannot_store_register): New function.
1766 (hppa_frame_args_address): New function.
1767 (hppa_frame_locals_address): New function.
1768 (hppa_smash_text_address): New function.
1769 (hppa_coerce_float_to_double): New function. Requires the inclusion
1772 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1774 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1775 gdbarch-eligible macro to a call to the new associated function
1776 created in hppa-tdep.c.
1777 (INNER_THAN): Likewise.
1778 (STACK_ALIGN): Likewise.
1779 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1780 (INSTRUCTION_NULLIFIED): Likewise.
1781 (REGISTER_BYTE): Likewise.
1782 (REGISTER_VIRTUAL_TYPE): Likewise.
1783 (STORE_STRUCT_RETURN): Likewise.
1784 (CANNOT_STORE_REGISTER): Likewise.
1785 (FRAME_ARGS_ADDRESS): Likewise.
1786 (FRAME_LOCALS_ADDRESS): Likewise.
1787 (SMASH_TEXT_ADDRESS): Likewise.
1788 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1789 (ABOUT_TO_RETURN): Delete, as no longer used.
1791 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1793 * printcmd.c (disassemble_command): Remove obsolete function.
1794 (_initialize_printcmd): Do not create disassemble command here.
1795 * cli/cli-cmds.c (disassemble_command): New function. Implements
1796 disassemble command.
1797 (init_cli_cmds): Create disassemble command here instead.
1799 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1801 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1803 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1805 * regcache.h (regcache_cooked_read_using_offset_hack)
1806 (regcache_cooked_write_using_offset_hack): Delete declarations.
1807 (register_changed): Delete declaration.
1808 * regcache.c (regcache_cooked_read_using_offset_hack)
1809 (regcache_cooked_write_using_offset_hack): Delete functions.
1810 (cooked_xfer_using_offset_hack): Delete function.
1811 (register_changed): Delete function.
1813 2002-11-07 Jim Blandy <jimb@redhat.com>
1815 * macroscope.c: #include "complaints.h".
1816 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1817 but not in the macro table.
1818 * Makefile.in (macroscope.o): Record dependency.
1820 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1822 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1824 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1826 * regcache.c (deprecated_registers_fetched): Update.
1827 * regcache.h (deprecated_registers_fetched): Rename
1829 * remote-vxsparc.c (vx_read_register): Update.
1830 * remote-vxmips.c (vx_read_register): Update.
1831 * remote-vx68.c (vx_read_register): Update.
1832 * irix5-nat.c (fetch_core_registers): Update.
1833 * mipsm3-nat.c (fetch_inferior_registers): Update.
1834 * sun3-nat.c (fetch_inferior_registers): Update.
1835 * symm-nat.c (fetch_inferior_registers): Update.
1836 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1837 (fetch_core_registers): Update.
1838 (fetch_kcore_registers): Update.
1839 * mips-nat.c (fetch_inferior_registers): Update.
1840 * corelow.c (get_core_registers): Update.
1841 * a68v-nat.c (fetch_inferior_registers): Update.
1843 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1845 Put in place the framework necessary for multiarching the hppa targets.
1846 * hppa-tdep.c (hppa_gdbarch_init): New function.
1847 (hppa_dump_tdep): New function.
1848 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1849 tdep structure dumper.
1850 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1851 until the multi-arching conversion has partially been completed.
1853 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1855 * valops.c (value_assign): Merge lval_register case into
1856 lval_reg_frame_relative. Use frame_register and
1857 regcache_cooked_write instead of get_saved_register and
1858 write_register_bytes. After flushing the register cache, try to
1859 re-select the selected frame.
1861 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1863 * regcache.h (deprecated_register_valid): Rename register_valid.
1864 * regcache.c: Update.
1865 * ia64-aix-nat.c: Update.
1866 * i386gnu-nat.c: Update.
1867 * alpha-nat.c: Update.
1868 * sparc-nat.c: Update.
1869 * lynx-nat.c: Update.
1870 * remote-mips.c: Update.
1872 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1874 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1875 to end of file, to be more consistent with the pratice followed
1878 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1880 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1881 (print_float_info): Print registers in float_reggroup.
1882 (print_vector_info): Print registers in vector_reggroup.
1883 (default_print_registers_info): When all, print registers in
1884 all_reggroup. Otherwize, print registers in general_reggroup.
1885 (registers_info): Rewrite. Add support for register groups.
1888 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1890 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1892 (symtab_symbol_info): Remove eons old ifdeffed out code.
1893 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1896 2002-11-06 Theodore A. Roth <troth@openavr.org>
1898 * c-exp.y: Add missing semi-colons.
1899 * f-exp.y: Add missing semi-colons.
1900 * m2-exp.y: Add missing semi-colons.
1901 * p-exp.y: Add missing semi-colons.
1902 Add empty action to start rule to avoid a type clash error when
1903 building with bison >= 1.50.
1905 2002-11-06 Jim Blandy <jimb@redhat.com>
1907 * macrotab.h (struct macro_source_file): Doc fix.
1909 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1911 * varobj.c (child_exists, cplus_number_of_children): Change
1912 STREQ macro references to strcmp.
1913 (cplus_name_of_child): Change code to handle the fact that
1914 fields are not necessarily contiguous with regards to their
1915 access control. This is a fix for PR gdb/792.
1917 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1919 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1920 * gdbarch.h, gdbarch.c: Regnerate.
1921 * frame.h (frame_register): Declare.
1922 * frame.c (frame_register): New function.
1923 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1924 GET_SAVED_REGISTER, otherwize call
1925 generic_unwind_get_saved_register.
1926 (frame_register_read): Use frame_register instead of
1929 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1931 From Jim Ingham <jingham@apple.com>:
1932 * event-top.c (gdb_disable_readline): New function.
1933 (_initialize_event_loop): Move comment.
1935 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1937 * event-loop.c (start_event_loop): Add comment.
1940 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1942 * infcmd.c (default_print_registers_info): Do not call
1943 PRINT_REGISTER_HOOK.
1945 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1947 * sparc-tdep.c (sparc_print_register_hook): Make static.
1948 (sparc_print_registers_info): New function.
1949 (sparc_do_registers_info): New function.
1950 (sparclet_print_registers_info): New function.
1951 (sparclet_do_registers_info): New function.
1952 (do_sparc_print_registers_info): New function.
1953 (sparc_print_registers): New static function, clone of infcmd.c's
1954 default_print_registers_info.
1955 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1956 (sparclet_do_registers_info): Declare.
1957 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1958 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1960 (sparc_do_registers_info): Declare.
1961 (PRINT_REGISTER_HOOK): Delete macro.
1962 (sparc_print_register_hook): Delete declaration.
1964 2002-11-05 David Carlton <carlton@math.stanford.edu>
1966 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1968 (lookup_symbol_aux_local): New function.
1969 (lookup_symbol_aux_symtabs): New function.
1970 (lookup_symbol_aux_psymtabs): New function.
1972 2002-11-05 David Carlton <carlton@math.stanford.edu>
1974 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1975 previous values of 'objfile' and 'block'.
1977 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1979 * values.c (value_change_enclosing_type): Set
1980 enclosing_type field correctly also for the case where
1981 more memory needs to be allocated.
1983 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1985 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1988 * i387-tdep.c (i387_print_float_info): Replace calls to
1989 register_read and deprecated_read_register_gen with calls to
1990 frame_register_read, and make the necessary adjustments to the
1993 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1995 * gdbarch.sh (register_reggroup_p): Allow default value.
1996 * gdbarch.h, gdbarch.c: Regenerate.
1998 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2000 * regcache.h: Add coment indicating replacements for deprecated
2003 2002-11-02 Andrew Cagney <cagney@redhat.com>
2005 * reggroups.h, reggroups.c: New files.
2006 * regcache.c: Include "reggroups.h".
2007 (enum regcache_dump_what): Add `regcache_dump_groups'.
2008 (regcache_dump): Contract size of the "Type" column. When
2009 specified, dump the register's groups.
2010 (maintenance_print_register_groups): New function.
2011 (_initialize_regcache): Add command `maint print register-groups'.
2012 * Makefile.in (COMMON_OBS): Add reggroups.o
2013 (SFILES): Add reggroups.c.
2014 (reggroups_h): Define.
2015 (regcache.o, gdbarch.o): Update dependencies.
2016 (reggroups.o): Specify dependencies.
2017 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2018 Add opaque declaration for `struct reggroup' in generated .h file.
2019 Include "reggroups.h" in generated .c file.
2020 gdbarch.h, gdbarch.c: Re-generate.
2022 2002-11-02 Andrew Cagney <cagney@redhat.com>
2024 * regcache.h (deprecated_read_register_gen): Rename
2026 (deprecated_write_register_gen): Rename write_register_gen.
2027 * i387-tdep.c: Update.
2028 * x86-64-linux-nat.c: Update
2030 * thread-db.c: Update.
2031 * win32-nat.c: Update.
2032 * mips-tdep.c: Update.
2033 * d10v-tdep.c: Update.
2034 * cris-tdep.c: Update.
2035 * remote-sim.c: Update.
2036 * remote-rdi.c: Update.
2037 * remote-rdp.c: Update.
2040 * blockframe.c: Update.
2041 * x86-64-tdep.c: Update.
2042 * xstormy16-tdep.c: Update.
2043 * sh-tdep.c: Update.
2044 * s390-tdep.c: Update.
2045 * rs6000-tdep.c: Update.
2046 * sparc-tdep.c: Update.
2047 * i386-tdep.c: Update.
2048 * dwarf2cfi.c: Update.
2049 * regcache.c: Update.
2051 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2053 New interix-specific files:
2054 * config/i386/nm-interix.h: New file.
2055 * config/i386/interix.mh: New file.
2056 * config/i386/interix.mt: New file.
2057 * i386-interix-nat.c: New file.
2058 * i386-interix-tdep.c: New file.
2060 2002-11-01 Andrew Cagney <cagney@redhat.com>
2062 * frame.h (deprecated_generic_get_saved_register): Rename
2063 generic_get_saved_register.
2064 * blockframe.c (deprecated_generic_get_saved_register): Update.
2065 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2066 (xstormy16_frame_saved_register): Update.
2067 * sh-tdep.c (sh_gdbarch_init): Update.
2068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2069 * ia64-tdep.c (ia64_get_saved_register): Update.
2070 * cris-tdep.c (cris_gdbarch_init): Update.
2071 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2072 * arm-tdep.c (arm_gdbarch_init): Update.
2074 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2076 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2078 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2080 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2081 trampolines in sigaction.
2083 2002-10-31 Andrew Cagney <cagney@redhat.com>
2085 * h8300-tdep.c: Include "gdb_assert.h".
2086 (h8300_print_register): Add gdbarch, file and frame parameters.
2087 Use frame_read_unsigned_register to read the register's value.
2088 Use fprintf_filtered to display output.
2089 (h8300_print_registers_info): Replace h8300_do_registers_info.
2090 (h8300_gdbarch_init): Set print_registers_info.
2092 2002-10-31 Andrew Cagney <cagney@redhat.com>
2094 * frame.c (frame_read_unsigned_register): New function.
2095 (frame_read_signed_register): New function.
2096 * frame.h (frame_read_unsigned_register): Declare.
2097 (frame_read_signed_register): Declare.
2099 2002-10-31 Andrew Cagney <cagney@redhat.com>
2101 * h8500-tdep.c (h8500_print_registers_info): New static function,
2102 clone of infcmd.c's default_print_registers_info.
2103 (h8500_do_registers_info): New funtion.
2104 (h8500_print_register_hook): Rename print_register_hook, make
2107 * config/h8500/tm-h8500.h: Update copyright.
2108 (DEPRECATED_DO_REGISTERS_INFO): Define.
2109 (h8500_do_registers_info: Declare.
2110 (PRINT_REGISTER_HOOK): Delete macro.
2111 (print_register_hook): Delete function.
2113 2002-10-31 Andrew Cagney <cagney@redhat.com>
2115 * z8k-tdep.c (z8k_print_register_hook): Make static.
2116 (z8k_print_registers_info): New static function, clone of
2117 infcmd.c's default_print_registers_info.
2118 (z8k_do_registers_info): New function. Wrap
2119 z8k_print_registers_info.
2120 * config/z8k/tm-z8k.h: Update copyright.
2121 (PRINT_REGISTER_HOOK): Delete macro.
2122 (z8k_print_register_hook): Delete declaration.
2123 (DEPRECATED_DO_REGISTERS_INFO): Define.
2124 (z8k_do_registers_info): Declare.
2126 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2128 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2129 as this is already provided by value.h, and was actually causing
2130 a compilation error because of a conflict in parameter type
2131 declaration due to a missing const keyword.
2132 (low_text_segment_addres): Fix a compilation warning.
2134 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2136 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2137 registers without a name.
2138 (mips_linux_cannot_store_register): Don't store registers without
2141 2002-10-28 David Carlton <carlton@math.stanford.edu>
2143 * symtab.c (find_addr_symbol): Delete. (It was already commented
2145 * symtab.h: Delete prototype for find_addr_symbol.
2147 2002-10-26 Andrew Cagney <cagney@redhat.com>
2149 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2151 gdbarch.h, gdbarch.c: Re-generate.
2152 * infcmd.c (default_print_registers_info): Update reference.
2153 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2154 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2155 * sh-tdep.c (sh_gdbarch_init): Ditto.
2156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2159 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2161 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2162 cfi_init_extra_frame_info.
2163 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2164 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2166 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2167 target where necessary. Add more comments and remove the ones
2168 that don't provide any useful information.
2170 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2171 deprecated_read_register_dummy with
2172 frame_unwind_unsigned_register.
2174 * i386-tdep.c (i386_extract_struct_value_address): Use
2175 regcache_raw_read_unsigned instead of
2176 regcache_cooked_read_unsigned since we know that the register
2177 we're reading isn't a pseudo register. Rename variable 'val' into
2178 the more descriptive 'addr'.
2180 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2181 (x86_64_push_return_address): Add comment.
2182 (x86_64_pop_frame): Make static.
2183 (examine_argument): Clarify comment.
2184 (x86_64_skip_prologue): Make prolog_expact variable static.
2186 * dwarf2cfi.c: Fix some formatting problems.
2187 (context_cpy, read_encoded_pointer): Clarify comments.
2189 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2190 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2191 i386 target back into x86_64_gdbarch_init. Add some comments and
2192 remove meaningless ones.
2194 2002-10-25 Andrew Cagney <cagney@redhat.com>
2196 * complaints.h (struct deprecated_complaint): Rename `struct
2198 * complaints.c (complain): Update.
2199 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2200 incorrect comment indicating that "symfile.h" was being included
2201 for the `struct complaint' definition.
2202 * remote-vx.c: Update.
2203 * objc-lang.c: Update.
2204 * xcoffread.c: Update.
2206 * mdebugread.c: Update.
2207 * stabsread.c: Update.
2208 * dwarf2read.c: Update.
2209 * dwarfread.c: Update.
2210 * elfread.c: Update.
2211 * coffread.c: Update.
2212 * stabsread.h: Update.
2213 * dbxread.c: Update.
2214 * buildsym.c: Update.
2215 * gdbtypes.c: Update.
2216 * macrotab.c: Update.
2218 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2220 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2221 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2222 (x86_64_init_abi): ...new function.
2224 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2225 * i386v-nat.c: Include "i386-tdep.h".
2227 2002-10-25 Andrew Cagney <cagney@redhat.com>
2229 * gdbtypes.c (address_space_name_to_int): Update.
2230 (address_space_int_to_name): Update.
2231 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2232 multi-arch predicate.
2233 (address_class_name_to_type_flags): Ditto.
2234 * gdbarch.h, gdbarch.c: Re-generate.
2236 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2238 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2240 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2242 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2244 * symtab.h (INIT_SAL): Delete macro.
2246 * symtab.c (init_sal): New function.
2248 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2249 to init_sal function call.
2250 (find_sal_from_funcs_and_line): Ditto.
2251 (all_sals_for_line): Ditto.
2252 * breakpoint.c (create_internal_breakpoint): Ditto.
2253 (create_fork_vfork_event_catchpoint): Ditto.
2254 (create_exec_event_catchpoint): Ditto.
2255 (parse_breakpoint_sals): Ditto.
2256 (watch_command_1): Ditto.
2257 (handle_gnu_4_16_catch_command): Ditto.
2258 (clear_command): Ditto.
2259 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2260 * infcmd.c (run_stack_dummy): Ditto.
2261 * infrun.c (process_event_stop_test): Ditto.
2262 (check_sigtramp2): Ditto.
2263 (step_over_function): Ditto.
2264 * linespec.c (decode_line_2): Ditto.
2265 (decode_line_1): Ditto.
2266 * source.c (line_info): Ditto.
2267 * symtab.c (find_pc_sect_line): Ditto.
2269 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2271 * dwarf2cfi.c (struct context)
2272 (struct context_reg): Moved to dwarf2cfi.h
2273 (context_alloc, frame_state_alloc, context_cpy):
2274 Made extern instead of static, removed prototypes.
2275 * dwarf2cfi.h (struct context)
2276 (struct context_reg): New, moved from dwarf2cfi.c
2277 (context_alloc, frame_state_alloc, context_cpy):
2279 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2280 Changed from static to extern.
2281 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2282 (LINUX_SIGCONTEXT_FP_OFFSET)
2283 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2284 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2285 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2286 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2287 set_gdbarch_*() calls now use x86-64 specific functions
2288 instead of DWARF2 CFI ones.
2289 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2290 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2291 (x86_64_init_extra_frame_info): New prototypes.
2293 2002-10-23 David Carlton <carlton@math.stanford.edu>
2295 * linespec.c: #include "parser-defs.h".
2296 Delete prototype for find_template_name_end.
2297 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2299 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2301 * NEWS: add recent mi fixes.
2302 * varobj.c (struct varobj): Add new "updated" flag.
2303 (new_variable): Default "updated" flag to 0.
2304 (varobj_set_value): Set "updated" flag to 1 if value
2306 (varobj_update): Check varobj "updated" flag before
2307 comparing old and refreshed values. Fix for
2310 2002-10-23 David Carlton <carlton@math.stanford.edu>
2312 * parse.c (parse_exp_1): Use BLOCK_START.
2313 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2315 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2317 2002-10-23 David Carlton <carlton@math.stanford.edu>
2319 * symtab.c: Delete cplusplus_hint.
2320 Delete prototype for find_template_name_end.
2322 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2324 * symtab.h: Update comment.
2326 2002-10-23 Michael Snyder <msnyder@redhat.com>
2328 * printcmd.c (address_info): Restore quotes in output.
2329 * valops.c (value_of_local): Restore quotes in error message.
2331 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2333 * symtab.c (symbol_demangled_name): New function.
2334 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2335 turning most of it into a function.
2336 (symbol_demangled_name): Export.
2338 2002-10-23 Michael Snyder <msnyder@redhat.com>
2340 * valops.c (value_of_local): Restore quotes in error message.
2342 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2344 * symtab.c (symbol_init_language_specific): New function.
2345 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2346 turning most of it into a function.
2347 (symbol_init_language_specific): Export.
2349 2002-10-23 David Carlton <carlton@math.stanford.edu>
2351 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2352 (dwarf_attr_name): Ditto.
2353 (dwarf_type_encoding_name): Ditto.
2354 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2355 (process_die): Handle DW_TAG_namespace,
2356 DW_TAG_imported_declaration, DW_TAG_imported_module.
2357 (read_namespace): New function.
2359 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2361 * configure.in: Define NEW_PROC_API on Interix too.
2362 * configure: Regenerate.
2364 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2366 * configure: Regenerate using the proper version of autoconf.
2368 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2370 * findvar.c (read_var_value): Temporarily disable TLS code, until
2371 complete TLS support is added.
2373 2002-10-21 Jim Blandy <jimb@redhat.com>
2374 Elena Zannoni <ezannoni@redhat.com>
2376 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2377 for thread local storage locations.
2378 (struct symbol): Add objfile field.
2379 (SYMBOL_OBJFILE): Define.
2380 * dwarf2read.c (is_thread_local): New static variable.
2381 (new_symbol): If variable is in thread local fill in address class
2382 and objfile appropriately.
2383 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2385 * printcmd.c (address_info): Print the information for thread
2386 local storage variable.
2387 * findvar.c (read_var_value): In case of thread local variable,
2388 defer to the target vector code to compute address.
2390 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2392 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2393 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2395 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2397 * symtab.h (address_class): Rename
2398 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2399 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2400 * printcmd.c (address_info): Ditto.
2401 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2403 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2405 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2406 DBREG_DRX macro to acces debug registers.
2408 * Makefile.in (i386obsd-tdep.o): New target.
2410 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2411 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2413 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2414 * config/i386/obsd.mt: New file.
2415 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2416 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2417 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2418 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2419 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2420 * i386obsd-tdep.c: New file.
2422 2002-10-19 Adam Fedor <fedor@gnu.org>
2424 * objc-exp.y (name_not_typename): Fix invalid comment.
2426 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2428 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2429 to allocate partial syms and macro byte caches.
2431 2002-10-18 David Carlton <carlton@math.stanford.edu>
2433 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2435 2002-10-18 Adam Fedor <fedor@gnu.org>
2437 * stabsread.c (find_name_end): New function.
2438 (define_symbol): Use it.
2440 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2442 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2443 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2444 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2445 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2447 2002-10-17 David Carlton <carlton@math.stanford.edu>
2449 * symfile.h: Add opaque declaration for struct obstack.
2450 Declare obsavestring to take a const char *.
2451 * symfile.c (obsavestring): Make first argument a const char *.
2453 2002-10-16 Adam Fedor <fedor@gnu.org>
2455 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2456 names when matching breakpoints in current file.
2458 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2460 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2461 (read_tag_pointer_type): Add address class support.
2462 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2463 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2465 * gdbarch.h, gdbarch.c: Regenerate.
2466 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2467 (make_type_with_address_space, recursive_type_dump): Add address
2469 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2470 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2471 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2473 2002-10-16 Klee Dienes <kdienes@apple.com>
2475 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2476 to get the last character of a char[] buffer, not
2477 name[sizeof(vptr_name)-1].
2479 2002-10-14 Adam Fedor <fedor@gnu.org>
2481 * symtab.h: New objc_specific struct.
2482 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2483 (SYMBOL_DEMANGLED_NAME): Likewise.
2485 2002-10-14 Adam Fedor <fedor@gnu.org>
2487 * symfile.c (init_filename_language_table): Add ObjC file extension.
2489 2002-10-14 Adam Fedor <fedor@gnu.org>
2491 * utils.c (puts_filtered_tabular): New function.
2492 (fprintf_symbol_filtered): Get ObjC demangled name.
2493 * defs.h (puts_filtered_tabular): Declared.
2495 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2497 * c-lang.h (c_type_print_varspec_prefix): Delete.
2498 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2499 ``need_post_space'' parameter. Adjust all callers.
2501 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2503 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2504 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2505 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2506 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2508 2002-10-13 Adam Fedor <fedor@gnu.org>
2510 * source.c (print_source_lines): Update comments.
2512 2002-10-13 Adam Fedor <fedor@gnu.org>
2514 * valops.c (value_of_local): New function.
2515 (value_of_this): Use it.
2516 * value.h (value_of_local): Declared.
2518 2002-10-13 Adam Fedor <fedor@gnu.org>
2520 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2521 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2523 2002-10-12 Adam Fedor <fedor@gnu.org>
2525 * language.c (binop_result_type): Add language_objc to case.
2526 (integral_type): Likewise.
2527 (character_type): Likewise.
2528 (string_type): Likewise.
2529 (boolean_type): Likewise.
2530 (structured_type): Likewise.
2531 (binop_type_check): Likewise.
2533 2002-10-11 Adam Fedor <fedor@gnu.org>
2535 * printcmd.c (address_info): Print 'self' for ObjC.
2537 2002-10-11 Adam Fedor <fedor@gnu.org>
2539 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2542 2002-10-11 Adam Fedor <fedor@gnu.org>
2544 * language.h (CAST_IS_CONVERSION): Add language_objc.
2546 2002-10-11 Adam Fedor <fedor@gnu.org>
2548 * defs.h (enum language): Add language_objc.
2550 2002-10-11 Klee Dienes <kdienes@apple.com>
2552 * corefile.c (read_memory_typed_address): New function.
2553 * gdbcore.h (read_memory_typed_address): Add prototype.
2554 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2555 to read a value destined for a CORE_ADDR, not read_memory_integer.
2556 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2557 (f77_get_dynamic_lowerbound): Ditto.
2559 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2561 * utils.c (string_to_core_addr): After turning string into
2562 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2563 which will do necessary sign-extension, etc.
2565 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2567 * c-exp.y (THIS): Delete token and grammar rule.
2568 (yylex): Don't return THIS.
2569 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2570 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2571 * demangle.c (cplus_markers): Update comment. Put '$'
2572 first. Remove CPLUS_MARKER.
2573 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2574 * jv-exp.y (THIS): Delete token and grammar rule.
2575 (yylex): Don't return THIS.
2576 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2577 * objc-exp.y (THIS): Delete token and grammar rule.
2578 (yylex): Don't return THIS.
2579 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2580 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2581 (read_member_functions): Likewise for opname.
2582 (read_tilde_fields): Use is_cplus_marker.
2584 * defs.h (CPLUS_MARKER): Don't define.
2585 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2586 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2587 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2588 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2589 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2591 * config/i386/tm-i386v4.h: Delete file.
2592 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2593 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2594 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2595 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2596 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2597 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2598 * config/i386/i386v4.mt (TM_FILE): Likewise.
2599 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2601 2002-10-10 Marko Mlinar <markom@opencores.org>
2603 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2604 accidentially not commited 2002-10-09
2605 * gdbarch.h, gdbarch.c: Re-generate.
2607 2002-10-09 Marko Mlinar <markom@opencores.org>
2609 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2610 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2611 * gdbarch.h, gdbarch.c: Re-generate.
2613 2002-10-08 Petr Sorfa <petrs@caldera.com>
2615 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2617 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2618 so we can work on more than one compilation unit at a time. This
2619 helps prepare GDB to handle inter-CU die references.
2620 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2621 the code to be defined before struct comp_unit_head.
2622 (comp_unit_head): Added new members - offset, cu_head,
2623 begin_die, next and dwarf2_abbrevs.
2624 (dwarf2_abbrevs): Removed single static var; now member of
2625 struct comp_unit_head.
2626 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2628 (psymtab_to_symtab_1): Changed to work with the new
2629 struct comp_unit_head.
2630 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2631 constructs the dwarf2_abbrevs[] inside the cu_header.
2632 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2633 dwarf2_abbrev table to clean up.
2634 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2635 handling of dwarf2_abbrevs inside the cu_header.
2636 (read_partial_die): Now supports the call to the new
2637 dwarf2_lookup_abbrev.
2638 (read_full_die): Now supports the call to the new
2639 dwarf2_lookup_abbrev.
2641 2002-10-06 Christopher Faylor <cgf@redhat.com>
2643 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2644 insure that shell variables, such as "transformed_name" are propagated
2645 to later shell statements in rule.
2647 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2649 * config/i386/nm-i386sco.h: Add protection against
2650 multiple-inclusion. Include "i386/nm-i386v.h".
2651 (REGISTER_U_ADDR): Remove define.
2652 (i386_register_u_addr): Remove prototype.
2654 2002-10-04 Michael Snyder <msnyder@redhat.com>
2656 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2657 before treating it as a single-step event.
2659 2002-10-03 Adam Fedor <fedor@gnu.org>
2661 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2662 (objc_demangle): Remove assignment in if statements, Replace
2664 (add_msglist): Likewise.
2665 (end_msglist): Likewise.
2666 (complare_selectors): Likewise.
2667 (selectors_info): Likewise.
2668 (compare_classes): Likewise.
2669 (classes_info): Likewise.
2670 (print_object_command): Likewise.
2671 (find_objc_msgcall_submethod): Replace PTR with void *.
2672 * objc-lang.h: Remove check for __STDC__.
2674 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2676 * ui-out.h (ui_out_field_fmt_int): New prototype.
2677 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2678 of field width and alignment.
2679 * stack.c (print_frame_info_base): When printing frame level, use
2680 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2683 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2685 * MAINTAINERS: Add self to Write After Approval list.
2687 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2689 * infcmd.c (interrupt_target_command_wrapper): Delete.
2690 (interrupt_target_command): Make non static.
2691 (nofp_registers_info): Make static.
2692 * stack.c (return_command_wrapper): Delete.
2693 (return_command): Make non static.
2695 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2697 * event-top.c (gdb_setup_readline): New function. Code moved from
2698 _initialize_event_loop().
2699 (_initialize_event_loop): Call gdb_setup_readline().
2701 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2703 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2704 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2705 * gdbarch.h, gdbarch.c: Re-generate.
2707 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2710 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2712 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2713 of fill_in_vptr_fieldno.
2715 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2717 * inferior.h (registers_info, stepi_command, nexti_command,
2718 continue_command, interrupt_target_command): Export from infcmd.c.
2719 * frame.h (args_info, selected_frame_level_changed_hook,
2720 return_command): Export from stack.c.
2721 * v850ice.c (stepi_command, nexti_command, continue_command): use
2722 prototypes from inferior.h.
2723 * tracepoint.c (registers_info, args_info, locals_info): Use
2724 prototypes from frame.h and inferior.h.
2725 * Makefile.in (mi-main.o): Add dependency on frame.h.
2727 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2729 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2730 value in register 3 adjusted by ppc_gp0_regnum.
2732 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2734 2002-10-02 Marko Mlinar <markom@opencores.org>
2736 * MAINTAINERS: Add myself to the Write After Approval list.
2738 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2740 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2741 of the section for the N64 ABI, fixed.
2743 * config/mips/tm-irix6.h: Include solib.h.
2745 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2747 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2750 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2752 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2753 and that "mi0" syntax has been removed.
2755 2002-09-30 David Carlton <carlton@math.stanford.edu>
2757 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2758 * ppc-sysv-tdep.c: #include "gdb_string.h".
2759 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2762 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2764 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2765 "vrsave"'s register number.
2767 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2769 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2770 use frame_unwind_signed_register to obtain the PC.
2771 (mips_frame_chain): Handle a generic dummy frame.
2772 (mips_init_extra_frame_info): When a generic dummy frame, don't
2773 re-compute the frame base.
2774 (mips_pop_frame): Handle generic dummy frames.
2775 (mips_gdbarch_init): When generic dummy frames, set
2776 use_generic_dummy_frames, push_dummy_frame to
2777 generic_push_dummy_frame, pc_in_call_dummy to
2778 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2779 generic_save_dummy_frame_tos.
2781 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2783 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2784 against TOP when TOP was explictly set.
2785 (generic_push_dummy_frame): Set TOP to zero.
2787 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2789 * event-loop.c (start_event_loop): Rename variable 'result' to
2790 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2792 2002-09-30 Keith Seitz <keiths@redhat.com>
2794 * gdb-events.sh (selected_thread_changed): New event.
2795 * gdb-events.c: Regenerated.
2796 * gdb-events.h: Regenerated.
2798 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2800 * MAINTAINERS: Add self to Write After Approval list.
2802 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2804 * disasm.c: New file.
2805 * disasm.h: New file.
2806 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2807 (compare_lines): Ditto.
2808 (dump_insns): Ditto.
2809 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2811 (do_assembly_only): Ditto.
2812 (do_disassembly): Renamed to gdb_disassembly and moved to
2813 disasm.c. Sdded uiout argument.
2814 * Makefile.in: Add new files. Reorder SFILES list. Update
2815 dependencies. Include libgdb.a later in the insight executable.
2817 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2819 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2820 bfd/elf64-alpha-fbsd.c.
2822 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2824 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2827 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2829 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2831 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2833 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2834 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2835 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2836 (S_msg_sig_post_reply): Ditto.
2838 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2840 * sh-tdep.c (sh_use_struct_convention): Use definition according
2842 (sh_push_arguments): Store in register with correct endianess.
2843 (sh_default_store_return_value): Ditto.
2844 (sh_gdbarch_init): Set sizeof long double to 8.
2846 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2848 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2849 Fix some whitespace problems.
2851 2002-09-27 David Carlton <carlton@math.stanford.edu>
2853 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2854 (mcore-tdep.o): Ditto.
2855 (ns32k-tdep.o): Ditto.
2856 (ns32knbsd-tdep.o): Ditto.
2858 (vax-tdep.o): Ditto.
2859 * cris-tdep.c: #include "gdb_string.h"
2860 * mcore-tdep.c: Ditto.
2861 * ns32k-tdep.c: Ditto.
2862 * ns32knbsd-tdep.c: Ditto.
2864 * vax-tdep.c: Ditto.
2866 2002-09-27 David Carlton <carlton@math.stanford.edu>
2868 * config/djgpp/fnchange.lst: Add entries for
2869 gdb/testsuite/gdb.c++/m-static files.
2871 2002-09-27 Jim Wilson <wilson@redhat.com>
2873 * MAINTAINERS: Add myself to the Write After Approval list.
2875 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2877 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2880 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2882 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2885 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2887 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2888 (rs6000_struct_return_address): Delete variable.
2889 (rs6000_store_struct_return): Update.
2890 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2891 deprecated_extract_struct_value_address.
2892 (rs6000_frame_align): New function.
2893 (rs6000_gdbarch_init): Set frame_align.
2895 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2897 From Grace Sainsbury <graces@redhat.com>:
2898 * Makefile.in (gdbtk-main.o): New target.
2899 (gdb.o): New target.
2901 (main.o): Update dependencies.
2902 (gdb$(EXEEXT)): Add gdb.o.
2903 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2904 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2905 (SUBDIR_GDBTK_CLEAN): Set.
2906 (install-gdbtk): Install the insight binary.
2907 (uninstall-gdbtk): New target.
2908 (all-gdbtk, clean-gdbtk): New rule.
2909 * top.c (use_windows): Default to zero.
2910 * main.c: Include "main.h".
2912 (struct captured_main_args): Delete.
2913 (gdb_main): New function.
2917 2002-09-25 Andrew Cagney <cagney@redhat.com>
2919 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2920 (frame_map_regnum_to_name): New function.
2921 (frame_map_name_to_regnum): New function.
2922 * frame.h (frame_map_name_to_regnum): Declare.
2923 (frame_map_regnum_to_name): Declare.
2924 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2925 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2926 * parse.c: Do not include "builtin-regs.h".
2927 (target_map_name_to_register): Delete function.
2928 (write_dollar_variable): Use frame_map_name_to_regnum.
2929 * parser-defs.h (target_map_name_to_register): Delete declaration.
2930 * expprint.c: Include "frame.h".
2931 (print_subexp): Use frame_map_regnum_to_name.
2932 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2933 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2935 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2937 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2938 wasn't saved, and the next innermost frame is a dummy, return the
2939 dummy frame's link register.
2941 2002-09-24 Jim Blandy <jimb@redhat.com>
2943 Fix from Paul Breed:
2944 * main.c (captured_main): Add a `break' after the case for 'b'.
2946 2002-09-24 Keith Seitz <keiths@redhat.com>
2948 * varobj.c (c_type_of_child): Use get_target_type instead
2949 of TYPE_TARGET_TYPE.
2951 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2953 * source.c (get_current_or_default_source_symtab_and_line): Remove
2955 (set_default_source_symtab_and_line): New function. Attempts to
2956 determine a source file to list lines from if one is not currently
2958 (get_current_source_symtab_and_line): Initialize sal.pc and
2960 (set_current_source_symtab_and_line): Mark argument as const.
2961 * source.h: Update declarations and comments.
2962 * linespec.c (decode_line_1): Replace call to removed routine above.
2963 * stack.c (print_frame_info_base): Ditto.
2964 * cli/cli-cmds.c (edit_command): Ditto.
2965 (list_command): Ditto.
2967 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2969 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2970 sal.pc and sal.end fields.
2971 (get_current_or_default_source_symtab_and_line): Ditto.
2972 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2973 so we do not cause a new source symtab to be searched for (reverting an
2974 unintentional change from the 2002-09-20 patch).
2975 * scm-lang.c (scm_unpac): Ditto.
2977 2002-09-21 Andrew Cagney <cagney@redhat.com>
2979 * complaints.c (symfile_explanations): Remove new-line from
2980 ``isolated_message''.
2981 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2982 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2984 2002-09-20 Nick Clifton <nickc@redhat.com>
2986 * NEWS: Announce that V850EA ISA is no longer supported.
2987 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2989 2002-09-20 David Carlton <carlton@math.stanford.edu>
2991 * Makefile.in (c-lang.o): Correct dependencies.
2992 (utils.o): Gather dependencies.
2994 * c-lang.c: #include "gdb_string.h"
2996 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2998 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2999 * cli/cli-cmds.c (list_command): New function. Implements the new
3001 (_init_cli_cmds): Add new command definition.
3002 * gdb.1: Document edit command.
3003 * doc/gdb.texinfo: Document edit command.
3005 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3007 * source.c: Make global variables current_source_symtab and
3008 current_source_line static.
3009 (list_command): Moved to cli/cli-cmds.c.
3010 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3011 (get_first_line_listed): New accessor function.
3012 (get_lines_to_list): New accessor function.
3013 (get_current_source_symtab_and_line): New function. Retrieves the
3014 position in the source code that we consider current.
3015 (get_current_or_default_source_symtab_and_line): New function.
3016 Like the above but attempts to determine a default position if one
3017 is not currently defined.
3018 (set_current_source_symtab_and_line): New function. Sets the source
3019 code position considered current and returns the previously set one.
3020 (clear_current_source_symtab_and_line): Reset stored information about
3021 a current source line.
3022 (_initialize_source): Remove registration for the "list" command and
3024 * source.h: Add declarations for the new functions above.
3025 * symtab.h: Remove declarations for the global variables mentioned
3027 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3028 obtain current source line.
3029 * linespec.c (decode_line_1): Ditto.
3030 * macroscope.c (default_macro_scope): Ditto.
3031 * scm-lang.c (scm_unpac): Ditto.
3032 * stack.c (print_frame_info_base): Ditto.
3033 * symfile.c (clear_symtab_users): Ditto.
3034 * symtab.c (decode_line_spec): Ditto.
3035 * cli/cli-cmds.c (list_command): Moved here from source.c.
3036 (ambiguous_line_spec): Moved here from source.c.
3037 (_init_cli_cmds): Add definition for "list" and its alias.
3038 * Makefile.in: Update dependencies.
3040 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3042 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3043 with what gcc thinks is correct.
3045 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3047 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3048 multiple register push instruction.
3050 2002-09-19 Jim Blandy <jimb@redhat.com>
3052 Add support for distinct host and target character sets.
3053 * charset.c, charset.h: New files.
3054 * c-exp.y: #include "charset.h".
3055 (yylex): Convert character and string literals to the target
3056 character set, before returning them as the semantic value of the
3058 * c-lang.c: #include "charset.h".
3059 (c_emit_char): Use charset-specific methods to recognize
3060 characters with backslash escape forms, to decide which characters
3061 to print literally and which to print using numeric escape
3062 sequences, and to convert target characters to host characters
3064 * utils.c: #include "charset.h".
3065 (no_control_char_error): New function.
3066 (parse_escape): Use charset-specific methods to recognize
3067 backslash escapes, parse `control character' notation, and convert
3068 characters from the host character set to the target character set.
3069 * configure.in: Set the default host character set.
3070 Check where to find iconv, and what its argument types might be.
3071 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3072 * Makefile.in (SFILES): List charset.c.
3073 (COMMON_OBS): List charset.o.
3074 (charset.o): New rule.
3075 (charset_h): New header dependency variable.
3076 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3077 (LIBICONV): New variable, set by configure.
3078 (CLIBS): Include $(LIBICONV) here.
3079 * aclocal.m4, config.in, configure: Regenerated.
3081 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3083 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3086 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3088 * gdb_mbuild.sh: New file.
3090 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3092 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3094 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3096 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3097 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3098 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3099 valops.c, value.h: Revert previous change.
3101 2002-09-18 Michael Snyder <msnyder@redhat.com>
3103 Preliminary support for Objective-C:
3104 * defs.h (language_objc): New enum value.
3105 (puts_filtered_tabular): Declaration only, exported from utils.c.
3106 (skip_quoted): Delete, declared in completer.h.
3107 * c-exp.y: Include completer.h.
3110 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3111 New operator enum values.
3112 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3113 * language.c (binop_result_type): Handle language_objc case.
3114 (integral_type, character_type, string_type, boolean_type,
3115 structured_type, binop_type_check): Ditto.
3116 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3117 (struct objc_specific): Add to general_symbol_info.
3118 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3119 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3120 * parser-defs.h (struct objc_class_str): New struct type.
3121 (start_msglist, end_msglist, add_msglist): Declaration only,
3122 exported from objc-lang.c.
3123 * value.h (value_of_local, value_nsstring,
3124 call_function_by_hand_expecting_type): Exported from valops.c.
3125 * valops.c (find_function_addr): Export.
3126 (call_function_by_hand_expecting_type): New function.
3127 (value_of_local): New function.
3128 * symfile.c (init_filename_language_table): Add ".m" extension
3130 * utils.c (puts_filtered_tabular): New function.
3131 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3132 (set/show demangle): Extend help-string to refer to ObjC.
3133 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3134 * stabsread.c (symbol_reference_defined): Objective-C symbols
3135 may contain colons: make allowances when scanning stabs strings
3137 (objc_find_colon): New function.
3138 * printcmd.c (address_info): If language == objc then print
3139 "self" instead of "this".
3140 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3141 OP_NSSTRING, and OP_SELF.
3142 (prefixify_subexp): Ditto.
3143 * source.c (print_source_lines): Mention objc in comment.
3144 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3147 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3149 * complaints.h: Update copyright.
3150 (struct complaints): Declare.
3151 (struct complaint): Make `message' constant.
3152 (internal_complaint): Declare.
3153 (complaint): Declare.
3154 (complaint_root): Delete declaration.
3155 (symfile_complaints): Delete declaration.
3156 (struct complaints): Add opaque declaration.
3157 (clear_complaints): Add a complaints parameter.
3158 * complaints.c: Update copyright.
3159 (enum complaint_series): Define.
3160 (complaint_root): Delete.
3161 (struct complaints): Define.
3162 (complaint_sentinel, symfile_complaint_book): New variables.
3163 (symfile_explanations, symfile_complaints): New variables.
3165 (get_complaints): New function.
3166 (vcomplaint): New function.
3167 (complaint): New function.
3168 (internal_complaint): New function.
3169 (complain): Call vcomplain with symfile_complaint.
3170 (clear_complaints): Rewrite.
3171 (_initialize_complaints): Use add_setshow_command.
3172 * Makefile.in (complaints.o): Update dependencies.
3173 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3174 to call to clear_complaints.
3175 (new_symfile_objfile, reread_symbols): Ditto.
3176 (oldsyms_complaint): Delete.
3177 (empty_symtab_complaint, unknown_option_complaint): Delete.
3178 (free_named_symtabs): Use complaint instead of complain.
3180 2002-09-18 Michael Snyder <msnyder@redhat.com>
3182 Contributed by Apple Computer, Inc. Merged with current sources
3183 by Adam Fedor <fedor@doc.com> [cagney].
3185 * objc-lang.c: First clean-up round: comments, indentation.
3186 * objc-lang.h: Ditto.
3187 * objc-lang.y: Ditto.
3189 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3191 * maint.c (maintenance_internal_error): Print the parameter as the
3193 (maintenance_internal_warning): New function.
3194 (_initialize_maint_cmds): Add command `maint internal-warning'.
3196 * defs.h (internal_warning, internal_vwarning): Declare.
3197 * utils.c (struct internal_problem): Define.
3198 (internal_vproblem): New function.
3199 (internal_warning): New function.
3200 (internal_vwarning): New function.
3201 (internal_warning_problem, internal_error_problem): New variables.
3202 (internal_verror): Just call internal_vproblem.
3204 2002-09-18 Michael Snyder <msnyder@redhat.com>
3206 * objc-lang.c: New file, support for Objective-C.
3207 Preliminary check-in, not yet integrated into gdb.
3208 * objc-lang.h: New file.
3209 * objc-exp.y: New file.
3211 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3213 * infrun.c (signal_stop_update): Convert definition to ISO C.
3214 (signal_print_update): Ditto.
3215 (signal_pass_update): Ditto.
3216 * inflow.c (terminal_save_ours): Ditto.
3218 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3221 * config/djgpp/fnchange.lst: Handle name clashes between
3222 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3225 * i386-linux-tdep.h: Fix tipo.
3227 2002-09-18 Adam Fedor <fedor@gnu.org>
3229 * MAINTAINERS: Add myself to the Write After Approval list.
3231 2002-09-18 Jim Blandy <jimb@redhat.com>
3233 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3234 texthigh and textlow to reader-specific structs caused
3235 objfile_relocate to miss them. This is fixable, but the work that
3236 the change was supposed to prepare GDB for never got done anyway.
3238 2002-09-18 David Carlton <carlton@math.stanford.edu>
3240 * MAINTAINERS: Alphabetize Write After Approval list.
3242 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3245 * values.c (value_static_field): Call read_var_value.
3247 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3249 * valops.c (hand_function_call): Align the initial stack pointer
3250 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3251 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3253 * mips-tdep.c (mips_frame_align): New function.
3254 (mips_gdbarch_init): Set frame_align.
3255 * gdbarch.sh (FRAME_ALIGN): New method.
3256 * gdbarch.h, gdbarch.c: Re-generate.
3258 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3260 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3263 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3265 * NEWS: Mention that MIPS $fp behavior changed.
3266 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3267 reference to FP_REGNUM.
3268 (mipsnbsd_cannot_store_register): Ditto.
3269 * mips-linux-nat.c: Update copyright.
3270 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3271 (mips_linux_cannot_store_register): Ditto.
3272 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3273 * config/mips/tm-mips.h: Update copyright.
3274 (FP_REGNUM): Delete macro.
3275 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3276 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3277 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3278 (mips_r3041_reg_names, mips_r3051_reg_names)
3279 (mips_r3081_reg_names): Replace "fp" with "".
3282 2002-09-17 Theodore A. Roth <troth@verinet.com>
3284 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3285 generic_read_register_dummy() (PR gdb/703).
3286 (avr_push_return_address): #if 0 out unused vars.
3287 (avr_gdbarch_init): Enable use of avr_push_return_address().
3289 2002-09-17 Michael Snyder <msnyder@redhat.com>
3291 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3292 RTE will take care of it.
3294 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3296 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3297 invalid, return SP_REGNUM.
3299 2002-09-17 Michael Snyder <msnyder@redhat.com>
3301 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3302 point registers without sign extension.
3304 2002-09-17 Andrew Cagney <cagney@redhat.com>
3306 * blockframe.c (deprecated_read_register_dummy): Rename
3307 generic_read_register_dummy.
3308 * frame.c (frame_unwind_signed_register): New function.
3309 (frame_unwind_unsigned_register): New function.
3310 * frame.h (frame_unwind_signed_register): Declare.
3311 (frame_unwind_unsigned_register): Declare.
3312 (deprecated_read_register_dummy): Rename
3313 generic_read_register_dummy.
3315 * h8300-tdep.c (h8300_frame_chain): Update.
3316 (h8300_frame_saved_pc): Update.
3317 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3318 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3319 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3320 (s390_frame_chain): Update.
3321 * v850-tdep.c (v850_find_callers_reg): Update.
3322 (v850_frame_saved_pc): Update.
3323 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3324 (m32r_find_callers_reg): Update.
3325 (m32r_frame_saved_pc): Update.
3326 * sh-tdep.c (sh_find_callers_reg): Update.
3327 (sh64_get_saved_pr): Update.
3328 (sh_init_extra_frame_info): Update.
3329 (sh_init_extra_frame_info): Update.
3330 (sh64_init_extra_frame_info): Update.
3331 (sh64_init_extra_frame_info): Update.
3332 * mcore-tdep.c (mcore_find_callers_reg): Update.
3333 (mcore_frame_saved_pc): Update.
3334 (mcore_init_extra_frame_info): Update.
3335 * i386-tdep.c (i386_frame_saved_pc): Update.
3336 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3337 (ia64_init_extra_frame_info): Update.
3338 (ia64_init_extra_frame_info): Update.
3339 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3340 * cris-tdep.c (cris_init_extra_frame_info): Update.
3341 * avr-tdep.c (avr_frame_chain): Update.
3342 (avr_init_extra_frame_info): Update.
3343 (avr_frame_saved_pc): Update.
3344 * arm-tdep.c (arm_find_callers_reg): Update.
3345 (arm_init_extra_frame_info): Update.
3346 (arm_frame_saved_pc): Update.
3348 2002-09-17 Tom Tromey <tromey@redhat.com>
3350 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3353 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3355 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3356 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3358 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3361 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3363 * osfsolib.c: Remove file, replaced by solib-osf.c.
3364 * Makefile.in: Remove compilation rules for osfsolib.c.
3366 2002-09-16 David Carlton <carlton@math.stanford.edu>
3368 * cp-valprint.c (cp_print_class_method): Correct args to
3369 check_stub_method_group.
3371 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3373 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3374 `set architecture'. Unify naming convention of functions.
3375 (h8300_skip_prologue): Improve prologue analysis.
3376 (h8300_push_arguments): Rewritten to more closely match GCC's
3377 bizarre argument-passing behavior, along with the comment describing
3379 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3380 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3381 sim, remote-e7000.c, remote-hms.c and remote.c
3383 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3385 * i386-tdep.c (gdb_print_insn_i386): Removed.
3386 (i386_print_insn): New function.
3387 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3388 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3391 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3393 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3396 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3398 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3399 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3400 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3402 2002-09-13 Christopher Faylor <cgf@redhat.com>
3404 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3406 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3408 * gdbtypes.c (check_stub_method): Make static.
3409 (check_stub_method_group): New function.
3410 * gdbtypes.h: Update prototypes.
3411 * cp-support.c: New file.
3412 * cp-support.h: New file.
3414 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3415 (update_method_name_from_physname): New function.
3416 (read_member_functions): Correct method names for operators
3417 and v3 constructors/destructors. Separate v2 constructors and
3419 * Makefile.in (stabsread.o): Update dependencies.
3420 (SFILES): Add cp-support.c.
3421 (COMMON_OBS): Add cp-support.o.
3422 (cp_support_h, cp-support.o): Add.
3424 * cp-valprint.c (cp_print_class_method): Call
3425 check_stub_method_group instead of check_stub_method. Remove
3427 * p-valprint.c (pascal_object_print_class_method): Likewise.
3428 * valops.c (search_struct_method): Likewise.
3429 (find_method_list, value_struct_elt_for_reference): Likewise.
3431 2002-09-13 Andrew Cagney <cagney@redhat.com>
3433 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3434 * gdbarch.h, gdbarch.c: Regenerate.
3436 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3438 * frame.c (find_saved_register): Delete function.
3439 * frame.h (find_saved_register): Delete declaration.
3442 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3444 * mips-tdep.c (read_next_frame_reg): Re-hack using
3445 frame_register_unwind.
3447 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3449 * mips-tdep.c (mips_get_saved_register): Re-hack using
3450 frame_register_unwind.
3452 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3454 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3455 vector. Will be useful for Interix.
3456 * gdbarch.h, gdbarch.c: Regenerate.
3458 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3459 name of the malloc function by NAME_OF_MALLOC.
3461 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3463 * value.h (find_function_in_inferior): Add const keyword to
3464 one of the parameters. Allows us to invoke this function with
3466 * valops.c (find_function_in_inferior): Likewise.
3468 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3470 * exec.c (xfer_memory): Fix compilation warning with old versions
3472 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3474 2002-09-12 David Carlton <carlton@math.stanford.edu>
3476 * symtab.h: Run through gdb_indent.h.
3477 Add 2002 to Copyright year list.
3479 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3481 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3483 * MAINTAINERS: Add myself to write after approval list.
3485 2002-09-11 J. Brobecker <brobecker@gnat.com>
3487 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3489 2002-09-11 J. Brobecker <brobecker@gnat.com>
3491 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3494 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3496 * procfs.c (do_detach): Clear current signal, not just fault.
3497 Corrects problem with breakpoint trap signal leaking to detached
3500 2002-09-10 Michael Snyder <msnyder@redhat.com>
3502 * buildsym.c (finish_block): Protect against null pointer.
3504 2002-09-10 Andrew Cagney <cagney@redhat.com>
3506 * infcmd.c (default_print_registers_info): Send all output to
3507 ``file'' instead of ``gdb_stdout''.
3509 2002-09-10 Michael Snyder <msnyder@redhat.com>
3511 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3512 LONGEST, and use signed register read (addresses are sign-
3515 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3517 * event-loop.c (gdb_do_one_event): Make public.
3518 * event-loop.h (gdb_do_one_event): Declare.
3520 2002-09-10 Jeff Law <law@redhat.com>
3522 * infttrace.c (child_resume): Simplify and rework to avoid
3525 2002-09-09 Fred Fish <fnf@intrinsity.com>
3527 * printcmd.c (print_scalar_formatted): "len" is the number of
3528 target bytes, NOT the number of target bits.
3530 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3532 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3533 * top.c (init_main): Set rl_terminal_name.
3535 2002-09-08 Aidan Skinner <aidan@velvet.net>
3537 * ada-lang.c (ada_array_bound, ada_type_match,
3538 _initialize_ada_language): Fix K&R definitions.
3539 * ada-tasks.c (get_current_task): Fix K&R definitions.
3540 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3542 2002-09-07 Christopher Faylor <cgf@redhat.com>
3544 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3547 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3549 * i386-tdep.c (i386_register_virtual_type,
3550 i386_register_convertible, i386_register_convert_to_virtual,
3551 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3552 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3553 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3554 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3555 Don't set push_arguments twice.
3557 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3558 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3559 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3560 sigtramp_end to NULL.
3561 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3563 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3565 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3568 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3569 * gdbarch.h, gdbarch.c: Re-generate.
3570 * blockframe.c (find_pc_sect_partial_function): Convert to use
3571 SIGTRAMP_START_P predicate.
3573 2002-09-05 Michael Snyder <msnyder@redhat.com>
3575 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3576 generic_dummy_frame method and old method. Also distinguish
3577 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3578 (arm_extract_return_value): Use new regcache method.
3580 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3581 adjustment that doesn't conform to the ABI.
3582 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3583 saved regcache, not from current regcache.
3585 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3587 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3590 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3592 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3593 if arm_apcs_32 is false.
3595 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3597 GDB 5.3 branch created.
3599 2002-09-03 Theodore A. Roth <troth@verinet.com>
3601 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3602 generic_unwind_get_saved_register.
3604 2002-09-03 David Carlton <carlton@math.stanford.edu>
3606 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3607 argument (PR gdb/653). Update call to smash_to_method_type.
3608 (read_structure_scope): Update call to dwarf2_add_member_fn.
3610 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3612 * x86-64-linux-tdep.c: Include gdb_string.h
3613 * x86-64-linux-nat.c: Ditto.
3615 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3617 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3618 when YYDEBUG is set to 1.
3619 * c-exp.y: Likewise.
3620 * f-exp.y: Likewise.
3621 * jv-exp.y: Likewise.
3622 * m2-exp.y: Likewise.
3623 * p-exp.y: Likewise.
3625 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3627 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3629 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3630 solib_svr4_fetch_link_map_offsets to
3631 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3632 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3633 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3634 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3635 solib-svr4.o, and solib-legacy.o.
3636 * config/i386/tm-nbsd.h: Include solib.h.
3638 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3640 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3641 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3642 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3643 comment noting that this needs its own target configuration.
3644 * config/i386/nbsd.mt: New file.
3645 * config/i386/nbsdaout.mt: Remove.
3646 * config/i386/nbsdelf.mt: Ditto.
3647 * config/i386/tm-nbsdaout.h: Ditto.
3649 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3651 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3652 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3653 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3655 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3656 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3657 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3659 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3661 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3662 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3663 * i386-tdep.h (i386bsd_init_abi): New prototype.
3664 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3665 function declaration.
3666 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3667 for NetBSD-a.out or NetBSD-ELF.
3668 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3669 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3670 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3671 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3673 (i386nbsd_pc_in_sigtramp): New function.
3674 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3675 i386nbsd_pc_in_sigtramp.
3676 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3677 and i386nbsdelf_init_abi OS ABI handlers.
3678 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3679 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3681 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3683 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3684 registers if the target really has them.
3686 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3688 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3691 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3693 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3695 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3696 (alphanbsd_skip_sigtramp_frame): New functions.
3697 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3698 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3699 to alphanbsd_sigcontext_addr.
3701 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3703 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3705 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3706 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3707 nbsd_pc_in_sigtramp.
3708 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3709 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3710 * nbsd-tdep.c: Include gdb_string.h.
3711 (nbsd_pc_in_sigtramp): New function.
3712 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3713 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3714 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3715 ppcnbsd_pc_in_sigtramp.
3716 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3717 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3718 shnbsd_pc_in_sigtramp.
3719 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3720 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3721 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3723 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3725 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3726 watchpoints to NULL.
3727 (insert_breakpoints): set val field of watchpoints if NULL.
3730 2002-08-29 Jim Blandy <jimb@redhat.com>
3732 * symtab.c (lookup_symbol_aux): In the cases where we find a
3733 minimal symbol of an appropriate name and use its address to
3734 select a symtab to read and search, use `name' (as passed to us)
3735 as the demangled name when searching the symtab's global and
3736 static blocks, not the minsym's name.
3738 2002-08-29 Keith Seitz <keiths@redhat.com>
3740 * stack.c (print_frame_info_base): Always set current_source_symtab
3741 and current_source_line.
3743 2002-08-29 Donn Terry <donnte@microsoft.com>
3745 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3747 2002-08-28 Keith Seitz <keiths@redhat.com>
3749 * stack.c (select_frame): Add FIXME concerning selected-frame
3751 (select_frame_command): Send selected-frame-level-changed
3752 event notification, but only if the level actually changed.
3753 (up_silently_base): Add selected-frame-level-changed event
3755 (down_silently_base): Likewise.
3757 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3759 * Makefile.in: Update dependencies for all gdb/*.c files.
3761 2002-08-27 Tom Tromey <tromey@redhat.com>
3763 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3764 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3765 Update dependencies.
3766 * i387-tdep.c: Include gdb_string.h.
3767 * osabi.c: Likewise.
3768 * i386-linux-nat.c: Likewise.
3769 * lin-lwp.c: Likewise.
3770 * ax-gdb.c: Likewise.
3771 * signals/signals.c: Likewise.
3772 * jv-valprint.c: Likewise.
3773 * p-lang.c: Likewise.
3774 * c-valprint.c: Likewise.
3775 * cp-abi.c: Likewise.
3777 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3779 * cli/cli-script.h (copy_command_lines): Export.
3780 * breakpoint.c: Include cli/cli-script.h.
3781 * Makefile.in (breakpoint.o): Update dependencies.
3783 2002-08-26 Michael Snyder <msnyder@redhat.com>
3785 * breakpoint.c (insert_breakpoints): Protect all references
3786 to 'process_warning'. Shorten long lines.
3788 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3790 * cli/cli-script.c (copy_command_lines): New function.
3791 * defs.h (copy_command_lines): Export.
3792 * testsuite/gdb.base/commands.exp: New tests for commands
3793 attached to a temporary breakpoint, and for commands that
3794 delete the breakpoint they are attached to.
3796 2002-08-26 Michael Snyder <msnyder@redhat.com>
3798 * breakpoint.c (bpstat_stop_status): Instead of copying the
3799 pointer to the breakpoint commands struct, make a new copy
3800 of the struct and point to that.
3801 (bpstat_clear): Free the commands struct.
3802 (bpstat_clear_actions): Free the commands struct.
3803 (bpstat_do_actions): Free the command actions. Also execute
3804 the local cleanups, instead of deleting them.
3805 (delete_breakpoint): Leave the commands field of the bpstat
3806 chain alone -- it will be freed later.
3808 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3810 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3811 deleted in 2002-08-20 commit. This function is still used by
3814 2002-08-26 Keith Seitz <keiths@redhat.com>
3816 * gdb-events.sh: Add selected-frame-level-changed event.
3817 * gdb-events.c: Regenerated.
3818 * gdb-events.h: Regenerated.
3820 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3823 * inflow.c (terminal_save_ours): New function to save terminal
3825 * inferior.h (terminal_save_ours): Declare.
3826 * target.c (debug_to_terminal_save_ours): New function.
3827 (cleanup_target): Defaults to_terminal_save_ours.
3828 (update_current_target): Inherit to_terminal_save_ours.
3829 (setup_target_debug): Set to_terminal_save_ours.
3830 * target.h (target_terminal_save_ours): New to save terminal settings.
3831 (target_ops): New member to_terminal_save_ours.
3832 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3833 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3834 * inftarg.c (init_child_ops): Likewise.
3835 * m3-nat.c (init_m3_ops): Likewise.
3836 * procfs.c (init_procfs_ops): Likewise.
3837 * wince.c (init_child_ops): Likewise.
3838 * win32-nat.c (init_child_ops): Likewise.
3839 * sol-thread.c (init_sol_thread_ops): Likewise.
3841 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3843 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3844 use regcache_* functions.
3845 (i386_gdbarch_init): Set store_return_value instead of
3846 deprecated_store_return_value.
3848 * regcache.c (regcache_raw_write_signed,
3849 regcache_raw_write_unsigned): New functions.
3850 * regcache.h (regcache_raw_write_signed,
3851 regcache_raw_write_unsigned): New prototypes.
3853 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3855 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3856 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3857 source file dependencies. Cleanup corresponding generator rules.
3859 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3861 * regcache.h (register_offset_hack): Declare.
3862 (regcache_cooked_read_using_offset_hack): Declare.
3863 (regcache_cooked_write_using_offset_hack): Declare.
3865 * regcache.c (register_offset_hack): New function.
3866 (regcache_cooked_read_using_offset_hack): New function.
3867 (regcache_cooked_write_using_offset_hack): New function.
3868 (regcache_dump): Check that the registers, according to their
3869 offset, are packed hard against each other.
3870 (cooked_xfer_using_offset_hack): New function.
3872 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3874 * regcache.c (struct regcache_descr): Add field register_type.
3875 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3877 (init_regcache_descr): Initialize register_type. Pass the descr
3878 to init_legacy_regcache_descr. Use register_type instead of
3879 REGISTER_VIRTUAL_TYPE.
3880 (register_type): New function.
3881 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3882 * regcache.h (register_type): Declare.
3884 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3886 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3887 instead of deprecated_store_return_value. Fix fallout from
3888 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3890 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3892 * regcache.c (max_register_size): New function.
3893 (init_legacy_regcache_descr): Ensure that max_register_size is
3894 large enough for REGISTER_VIRTUAL_SIZE.
3895 * regcache.h (max_register_size): Declare.
3897 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3899 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3901 (e500_extract_return_value): Change type of valbuf pointer to
3904 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3906 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3909 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3910 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3911 long long) to prevent compiler warning on 64-bit systems.
3913 2002-08-23 Andrew Cagney <cagney@redhat.com>
3915 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3916 (DEPRECATED_STORE_RETURN_VALUE): New method.
3917 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3918 * gdbarch.h, gdbarch.c: Re-generate.
3920 * values.c (set_return_value): Pass current_regcache to
3922 * arch-utils.h (legacy_store_return_value): Declare.
3923 * arch-utils.c (legacy_store_return_value): New function.
3924 (legacy_extract_return_value): Update parameters.
3926 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3928 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3929 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3930 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3931 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3932 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3933 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3934 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3935 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3936 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3937 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3940 * i386-tdep.c (i386_extract_return_value): Update.
3941 * arch-utils.c (legacy_extract_return_value): Update.
3942 * frv-tdep.c (frv_gdbarch_init): Update.
3943 * cris-tdep.c (cris_gdbarch_init): Update.
3944 * d10v-tdep.c (d10v_gdbarch_init): Update.
3945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3946 * m68k-tdep.c (m68k_gdbarch_init): Update.
3947 * mcore-tdep.c (mcore_gdbarch_init): Update.
3948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3949 * s390-tdep.c (s390_gdbarch_init): Update.
3950 * sparc-tdep.c (sparc_gdbarch_init): Update.
3951 * sh-tdep.c (sh_gdbarch_init): Update.
3952 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3953 * v850-tdep.c (v850_gdbarch_init): Update.
3954 * avr-tdep.c (avr_gdbarch_init): Update.
3955 * ia64-tdep.c (ia64_gdbarch_init): Update.
3956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3957 * vax-tdep.c (vax_gdbarch_init): Update.
3958 * alpha-tdep.c (alpha_gdbarch_init): Update.
3959 * arm-tdep.c (arm_gdbarch_init): Update.
3960 * mips-tdep.c (mips_gdbarch_init): Update.
3961 * i386-tdep.c (i386_gdbarch_init): Update.
3963 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3965 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3966 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3968 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3970 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3973 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3975 * infrun.c (handle_inferior_event): Move a comment outside of a
3976 function call, in order to avoid indent reformatting this part
3977 of the code in an unreadable way.
3979 2002-08-23 Grace Sainsbury <graces@redhat.com>
3981 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3982 when breakpoints fail. Move general breakpoint error messages to
3984 * breakpoint.c (insert_breakpoints): Change warnings when
3985 breakpoints are nto inserted to specify the type. Remove call to
3986 memory_error when hardware breakpoints can't be inserted. Remove
3987 multiple calls to warning so all messages are sent to the user at
3989 (delete_breakpoints): Make insert error messsages more explicit.
3991 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3993 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3994 gdbserver/ChangeLog.
3996 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3998 * i386-tdep.c: Include "objfiles.h".
3999 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4000 skip_trampoline_code.
4001 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4002 (CPLUS_MARKER): Define to '.'.
4004 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4006 (linux_corefile_thread_callback): Increase args->num_notes.
4007 (linux_make_note_section): Initialize thread_args.num_notes, and
4008 use it to determine whether notes for any threads were created.
4010 2002-08-23 Donn Terry <donnte@microsoft.com>
4012 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4013 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4015 (write_with_trace): Conditionalize out the switch branch handling
4016 PCSHOLD if the corresponding macro is not defined. Likewise for
4017 PRSABORT and PRSTOP.
4018 This change will be needed by the Interix port.
4020 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4023 write_register wherever possible instead of manipulating the
4024 register bytes directly.
4025 Assign VALUE_CONTENTS to a variable and use that.
4026 The GPR numbers are now dependent on the architecture.
4028 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4030 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4032 (skip_prologue): Add support for BookE/e500 instructions.
4033 (e500_extract_return_value): New function.
4034 (frame_get_saved_regs): Add support for saving ev registers and
4036 (e500_store_return_value): New function.
4037 (rs6000_gdbarch_init): Move up default intializations of
4038 deprecated_extract_return_value and store_return_value. Overwrite
4039 init of store_return_value with e500 specific version.
4040 Set extract_return_value for e500.
4042 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4044 * blockframe.c (generic_call_dummy_register_unwind): Use
4045 regcache_cooked_read to catch cases in which the variable is
4046 stored in a pseudo register.
4048 2002-08-22 Andrew Cagney <cagney@redhat.com>
4050 * NEWS: Mention that the i960 has been made obsolete.
4051 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4053 (remote-nrom.o): Obsolete target.
4054 (remote-nindy.o, i960-tdep.o): Ditto.
4055 * remote-nrom.c: Make file obsolete.
4056 * remote-nindy.c, remote-vx960.c: Ditto.
4057 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4058 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4059 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4060 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4061 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4062 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4063 i960-*-vxworks* obsolete.
4064 * MAINTAINERS: Note that the i960 is obsolete.
4066 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4068 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4069 detach to allow reinitialization.
4071 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4073 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4076 2002-08-22 Jim Blandy <jimb@redhat.com>
4078 * coffread.c (coff_symfile_read): Don't try to read the line
4079 number table from disk if the image file doesn't have a symbol
4080 table; we'll never actually look at the info anyway, and Windows
4081 ships DLL's with bogus file offsets for the line number data.
4083 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4085 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4088 2002-08-21 Michael Snyder <msnyder@redhat.com>
4090 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4091 (MSYMBOL_SIZE): Replace macro with function.
4092 (DEFAULT_MIPS_TYPE): Delete unused macro.
4093 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4094 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4096 2002-08-21 Jim Blandy <jimb@redhat.com>
4098 * valops.c (value_cast): Simplify and correct logic for doing a
4099 static cast from a pointer to a base class to a pointer to a
4102 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4104 * infcmd.c (default_print_registers_info): Replace
4106 (registers_info): Use gdbarch_print_registers_info instead of
4108 * inferior.h (default_print_registers_info): Replace
4110 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4111 (DO_REGISTERS_INFO): Change to a predicate function.
4112 * gdbarch.h, gdbarch.c: Regenerate.
4114 2002-08-21 Keith Seitz <keiths@redhat.com>
4116 * gdb-events.sh: Add target-changed event.
4117 * gdb-events.c: Regenerated.
4118 * gdb-events.c: Regenerated.
4119 * valops.c (value_assign): Add target-changed event notification
4120 to inlval_register, lval_memory, and lval_reg_frame_relative.
4122 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4124 * NEWS: Add an entry regarding the improvement of the next/step
4125 operation on Alpha Tru64 multi-processor machines.
4127 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4129 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4131 * Makefile.in: Update all _h macro definitions.
4132 * Makefile.in (install-gdbtk): Move to install section.
4133 (rdi-share/libangsd.a): Move to end of file.
4135 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4137 * frame.c (frame_register_unwind): When a register, set addrp to
4138 the register's byte.
4140 2002-08-20 Michael Snyder <msnyder@redhat.com>
4142 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4143 used locally, so move them from the target machine header to here.
4144 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4145 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4147 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4149 2002-08-20 Andrew Cagney <cagney@redhat.com>
4151 * NEWS: Mention that the Apollo line was made obsolete.
4152 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4153 m68*-hp-hpux* obsolete.
4154 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4155 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4156 * buildsym.c (make_blockvector): Make static.
4157 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4158 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4159 (ALLDEPFILES): Remove dstread.c.
4160 (dstread.o): Obsolete make rule.
4161 * dstread.c: Makefile obsolete.
4163 * config/m68k/hp300hpux.mt: Ditto.
4164 * config/m68k/hp300hpux.mh: Ditto.
4165 * config/m68k/hp300bsd.mt: Ditto.
4166 * config/m68k/hp300bsd.mh: Ditto.
4167 * config/m68k/apollo68b.mt: Ditto.
4168 * config/m68k/apollo68v.mh: Ditto.
4169 * config/m68k/apollo68b.mh: Ditto.
4171 2002-08-20 Michael Snyder <msnyder@redhat.com>
4173 * mips-tdep.c (mips_in_return_stub): Make static.
4174 (mips_gdbarch_init): Set in_solib_return_trampoline.
4175 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4177 2002-08-20 Michael Snyder <msnyder@redhat.com>
4179 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4180 * gdbarch.c, gdbarch.h: Regenerate.
4181 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4183 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4185 2002-08-20 Michael Snyder <msnyder@redhat.com>
4187 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4188 (mips_gdbarch_init): Set skip_trampoline_code,
4189 in_solib_call_trampoline.
4190 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4191 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4193 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4195 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4197 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4198 vector type for ev registers.
4199 (e500_pseudo_register_read): New function.
4200 (e500_pseudo_register_write): New function.
4201 (e500_dwarf2_reg_to_regnum): New function.
4202 (PPC_UISA_NOFP_SPRS): New macro.
4203 (PPC_EV_REGS): New macro.
4204 (PPC_GPRS_PSEUDO_REGS): New macro.
4205 (registers_e500): New register set for e500.
4206 (variants): Add e500 variant.
4207 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4208 before setting architectural dependent variations. Initialize ev
4209 registers numbers. Add case for e500 architecture. Set the
4210 number of pseudo registers.
4212 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4214 * rs6000-tdep.c: Clean up comments.
4216 2002-08-20 Andrew Cagney <cagney@redhat.com>
4218 * h8300-tdep.c: Re-indent file.
4220 2002-08-20 Jim Blandy <jimb@redhat.com>
4222 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4225 2002-08-20 Keith Seitz <keiths@redhat.com>
4227 * breakpoints.c (watch_command_1): Use internal breakpoint
4228 when setting a watchpoint_scope breakpoint.
4230 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4232 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4233 (build_builtin_type_vec64i): Ditto.
4234 (build_builtin_type_vec128): Ditto.
4235 (build_builtin_type_vec128i): Ditto.
4237 2002-08-19 Michael Snyder <msnyder@redhat.com>
4239 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4240 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4241 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4242 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4243 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4244 CALL_DUMMY_ADDRESS): Delete.
4245 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4246 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4247 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4248 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4249 push_return_address.
4250 (mips_register_raw_size, mips_eabi_use_struct_convention,
4251 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4252 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4253 mips_init_extra_frame_info, mips_eabi_push_arguments,
4254 mips_n32n64_push_arguments, mips_push_return_address,
4255 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4256 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4258 2002-08-19 Michael Snyder <msnyder@redhat.com>
4260 * mips-tdep.c (mips_frame_num_args): New function.
4261 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4262 frame_saved_pc, frame_args_address, frame_locals_address,
4263 frame_num_args, and frame_args_skip.
4264 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4265 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4266 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4267 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4269 2002-08-20 Michael Snyder <msnyder@redhat.com>
4271 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4272 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4273 * mips-tdep.c (mips_store_struct_return): New function.
4274 (mips_extract_struct_value_address): New function.
4275 (mips_gdbarch_init): Set store_struct_return and
4276 extract_struct_value_address.
4278 2002-08-20 David Carlton <carlton@math.stanford.edu>
4280 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4281 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4282 (read_file_scope): Check that line_header is nonzero before
4283 decoding macro information.
4285 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4287 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4288 flag the general-purpose registers as floating-point on targets
4289 that don't support the floating-point registers.
4291 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4293 * rs6000-tdep.c (altivec_register_p): Delete.
4294 (rs6000_do_altivec_registers): Delete.
4295 (rs6000_altivec_registers_info): Delete.
4296 (rs6000_do_registers_info): Delete.
4297 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4298 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4300 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4302 * infcmd.c (do_registers_info): Print vector registers in hex
4304 (print_vector_info): Check that printing registers
4306 (print_float_info): Ditto.
4308 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4310 * mips-tdep.c (mips_gdbarch_init): Update.
4311 (mips_o32_extract_return_value): Rewrite.
4312 (mips_o32_store_return_value): Rewrite.
4313 (mips_o32_xfer_return_value): New function.
4314 (mips_xfer_register): Tweak debug print message. Allow for
4315 buf_offset when dumping the value transfered.
4317 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4319 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4320 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4321 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4322 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4323 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4325 2002-08-14 Michael Snyder <msnyder@redhat.com>
4327 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4329 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4331 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4333 (P): New macro to define a register as a pseudo register.
4334 (R, R4, R8, R16, FR32, R64, R0): Updated.
4335 (struct variant): Add new fields for number of pseudo registers
4336 and number of total registers.
4337 (tot_num_registers): New macro replacing....
4338 (num_registers): ...deleted macro.
4339 (num_registers): New function.
4340 (num_pseudo_registers): New function.
4341 (variants): Update all variants to intialize new fields correctly.
4342 Postpone initialization of number of pseudo regs and real regs.
4343 (init_variants): New function.
4344 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4347 2002-08-19 David Carlton <carlton@math.stanford.edu>
4349 * valops.c (search_struct_field): Change error message to treat
4350 return value of 0 from value_static_field as meaning that field is
4352 (value_struct_elt_for_reference): Ditto.
4353 * values.c (value_static_field): Treat an unresolved location the
4354 same as a nonexistent symbol. Fix PR gdb/635.
4355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4356 enclosed. Fix PR gdb/574.
4357 * MAINTAINERS: Add self to Write After Approval list.
4359 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4361 * mips-tdep.c (mips_xfer_register): New function.
4362 (mips_n32n64_extract_return_value): Rewrite.
4363 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4364 instead of deprecated_extract_return_value.
4366 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4368 * rs6000-tdep.c (TDEP): Delete macro.
4369 (branch_dest): Replace use of TDEP macro with its body.
4370 (rs6000_pop_frame): Ditto.
4371 (rs6000_push_arguments): Ditto.
4372 (rs6000_skip_trampoline_code): Ditto.
4373 (rs6000_frame_saved_pc): Ditto.
4374 (rs6000_frame_chain): Ditto.
4375 (rs6000_register_name): Ditto.
4376 (rs6000_register_byte): Ditto.
4377 (rs6000_register_raw_size): Ditto.
4378 (rs6000_register_virtual_type): Ditto.
4379 (rs6000_register_convertible): Ditto.
4380 (rs6000_convert_from_func_ptr_addr): Ditto.
4382 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4384 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4386 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4387 MIPS_LINUX_JB_ELEMENT_SIZE.
4388 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4389 for MAX_REGISTER_RAW_SIZE arrays.
4390 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4391 MIPS_LINUX_JB_ELEMENT_SIZE.
4393 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4395 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4397 2002-08-19 Aidan Skinner <aidan@velvet.net>
4399 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4400 ada-valprint.c ada-tasks.c.
4401 (YYFILES): Add ada-exp.y.
4402 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4403 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4404 (ada-exp.tab.o): New target.
4406 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4408 * regcache.c (regcache_xfer_part): New function.
4409 (regcache_raw_read_part): New function.
4410 (regcache_raw_write_part): New function.
4411 (regcache_cooked_read_part): New function.
4412 (regcache_cooked_write_part): New function.
4413 * regcache.h (regcache_raw_read_part): Declare.
4414 (regcache_raw_write_part): Declare.
4415 (regcache_cooked_read_part): Declare.
4416 (regcache_cooked_write_part): Declare.
4418 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4420 * remote.c (remote_open_1): Add async_p.
4421 (remote_async_open_1): Delete.
4422 (open_remote_target): Delete.
4423 (remote_open, extended_remote_open): Update calls to remote_open_1.
4424 (remote_async_open, extended_remote_async_open): Call
4425 remote_open_1 instead of remote_async_open_1.
4427 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4429 * blockframe.c: Fix a few coding standard violations.
4431 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4433 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4435 * config/i386/tm-i386sco5.h: ... here. File removed.
4436 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4438 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4439 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4440 (TM_FILE): Set to tm-i386.h.
4441 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4442 * config/i386/tm-i386v.h: Remove file.
4443 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4444 instead of "i386/tm-i386v.h".
4445 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4446 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4448 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4449 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4452 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4454 * config/i386/nm-i386v.h: Add protection against
4456 (i386_register_u_addr): Remove prototype.
4457 (register_u_addr): New prototype.
4458 (REGISTER_U_ADDR): Redefine accordingly.
4459 * i386v-nat.c: Improve several comments.
4460 (i386_register_u_addr): Change signature and rename to
4461 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4464 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4466 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4467 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4468 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4469 deprecated_extract_return_value.
4470 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4471 rename mips_o32o64_push_arguments.
4472 (mips_gdbarch_init): Update.
4473 (mips_extract_return_value): Delete.
4474 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4475 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4476 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4477 (mips_n32n64_extract_return_value): Clone
4478 mips_extract_return_value.
4479 (mips_store_return_value): Delete.
4480 (mips_o32_store_return_value): Clone mips_store_return_value.
4481 (mips_o64_store_return_value): Clone mips_store_return_value.
4482 (mips_eabi_store_return_value): Clone mips_store_return_value.
4483 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4485 2002-08-18 Aidan Skinner <aidan@velvet.net>
4487 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4488 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4490 2002-08-18 Aidan Skinner <aidan@velvet.net>
4492 * ada-lang.c: Run through gdb_indent.sh.
4493 * ada-lang.h: Run through gdb_indent.sh.
4494 * ada-tasks.c: Run through gdb_indent.sh.
4495 * ada-typeprint.c: Run through gdb_indent.sh.
4496 * ada-valprint.c: Run through gdb_indent.sh.
4498 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4500 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4503 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4505 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4507 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4508 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4510 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4511 write_register_gen instead of write_register_bytes.
4513 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4514 i[3456]-*-osf1mk* configurations have been made obsolete.
4515 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4516 i[3456]86-*-osf1mk* hosts obsolete.
4517 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4519 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4520 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4521 config/i386/i386m3.mt, config/i386/nm-m3.h,
4522 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4523 config/i386/i386mk.mh, config/i386/i386mk.mt,
4524 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4526 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4527 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4528 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4530 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4532 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4533 (hppa_value_returned_from_stack): Declare.
4534 (hppa_extract_return_value): Declare.
4535 * config/pa/hppa.mt: New file.
4536 * configure.tgt: Recognize hppa*-*-*.
4537 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4539 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4541 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4544 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4546 * top.c (gdb_rl_operate_and_get_next): Make sure
4547 operate-and-get-next functions correctly even when the history
4548 list is completely filled.
4550 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4552 * MAINTAINERS (Target Instruction Set Architectures): Rename
4553 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4554 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4555 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4556 already listed under Host/Native.
4558 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4559 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4562 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4564 * config/ia64/ia64.mt: New file.
4565 * config/alpha/alpha.mt: New file.
4566 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4567 ia64-linux-gnu. Mention that ia64-elf is broken.
4568 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4570 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4572 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4573 generic_func_frame_valid instead of func_frame_valid.
4575 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4577 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4578 procfs appears to be broken when debugging on multi-processor
4579 machines. So enable software single stepping in order to avoid
4580 using the procfs interface to do next/step operations, using
4581 internal breakpoints instead.
4583 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4584 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4585 make this pc address equal to the value it would have if the
4586 system stepping capability was used. Also set a new flag used
4587 to ensure that we don't readjust the PC one more time later.
4589 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4590 address by DECR_PC_AFTER_BREAK when software single step is
4591 in use for this architecture, as this has already been taken
4592 care of in handle_inferior_event().
4594 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4596 * infrun.c (handle_inferior_event): Minor reformatting, to make
4597 a rather long condition expression easier to read.
4599 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4601 * Makefile.in (gdbtk.o): Move to end of file.
4602 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4603 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4604 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4605 (gdbtk-wrapper.o, gdbres.o): Ditto.
4607 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4609 * Makefile.in (copying.o): Separate out compile rule.
4610 (hpux-thread.o, procfs.o, signals.o): Ditto.
4611 (v850ice.o, z8k-tdep.o): Ditto.
4612 (tui-file.o): Move to TUI section.
4613 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4614 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4616 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4618 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4619 skip_trampoline_code, for better namespace-proofing.
4621 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4623 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4625 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4627 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4629 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4630 signal, check whether we hit a breakpoint before checking for a
4631 single step breakpoint. Otherwise, GDB fails to notice that a
4632 breakpoint has been hit when stepping onto a breakpoint.
4634 2002-08-16 Keith Seitz <keiths@redhat.com>
4636 * gdb-events.sh (clear_gdb_event_hooks): New function.
4637 * gdb-events.c: Regenerate.
4638 * gdb-events.h: Regenerate.
4640 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4642 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4643 not_a_sw_breakpoint.
4644 * breakpoint.h (bpstat_stop_status): Add parameter names.
4646 2002-08-16 Grace Sainsbury <graces@redhat.com>
4648 * remote.c (remote_insert_hw_breakpoint)
4649 (remote_remove_hw_breakpoint): Fix calculation of length field
4652 2002-08-15 Michael Snyder <msnyder@redhat.com>
4654 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4655 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4656 (supply_fpregset): Ditto.
4658 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4659 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4660 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4661 (TARGET_READ_SP): Delete.
4662 (DO_REGISTERS_INFO): Delete.
4663 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4665 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4666 from macros to functions.
4668 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4669 (mips_register_convertible, mips_register_convert_to_virtual,
4670 mips_register_convert_to_raw): Make static.
4671 (mips_read_sp): New function.
4672 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4673 (mips_do_registers_info): Make static.
4674 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4675 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4676 (mips_register_convert_from_type, mips_register_convert_to_type):
4678 (mips_gdbarch_init): Set up function_start_offset,
4679 register_virtual_size, pc_in_sigtramp.
4681 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4683 * infcmd.c (vector_info): New function.
4684 (_initialize_infcmd): Add command "info vector".
4685 (print_vector_info): New function.
4687 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4688 * gdbarch.h, gdbarch.c: Regenerate.
4690 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4692 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4693 ``print_all''. Only print vector registers when ``print_all''.
4695 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4697 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4698 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4700 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4701 Add `args' parameter.
4702 * gdbarch.h, gdbarch.c: Regenerate.
4704 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4706 * infcmd.c (float_info): Call print_float_info.
4707 (print_float_info): New function. By default, print the
4708 floating-point registers.
4710 * arch-utils.h (default_print_float_info): Delete declaration.
4711 * arch-utils.c (default_print_float_info): Delete function.
4713 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4715 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4718 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4721 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4722 * configure.host: Make i[3456]86-*-aix host obsolete.
4723 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4724 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4725 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4726 config/i386/xm-i386aix.h: Make files obsolete.
4727 * i386aix-nat.c: Make file obsolete.
4728 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4729 (i386aix-nat.o): Make target obsolete.
4731 * config/i386/nm-gnu.h: Removed.
4732 * config/i386/nm-i386gnu.h: New file.
4733 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4734 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4736 * config/i386/tm-i386gnu.h: ... here. Removed.
4737 * config/i386/xm-i386gnu.h: Removed.
4738 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4739 (NAT_FILE): Set to nm-i386gnu.h.
4740 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4741 * i386-tdep.c: New file.
4742 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4743 (i386gnu-tdep.o): Specify dependencies.
4745 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4747 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4748 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4749 Adjust a few comments to reflect reality a bit closer.
4750 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4751 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4752 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4753 target_insert_watchpoint, target_remove_watchpoint):
4755 * config/i386/nm-i386sco5.h: ... here.
4756 (kernel_u_size): Add prototype. Improve a few comments and add
4757 protection against multiple inclusion.
4759 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4762 * uw-thread.c (SP_ARG0): Define if not already defined.
4763 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4765 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4767 * config/i386/tm-i386.h: Don't include "regcache.h".
4769 * i387-tdep.h (i387_print_float_info): New prototype.
4770 * i387-tdep.c (print_i387_value, print_i387_ext,
4771 print_i387_status_word, print_i387_control_word): Add `struct
4772 ui_file *' argument and use it for output.
4773 (i387_print_float_info): Renamed from i387_float_info. Add
4774 `struct gdbarch *' and `struct ui_file *' arguments and use the
4776 * i386-tdep.c: Include "i387-tdep.h".
4777 (i386_gdbarch_init): Set print_float_info.
4778 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4779 (FLOAT_INFO): Remove define.
4781 2002-08-13 Michael Snyder <msnyder@redhat.com>
4783 * mips-tdep.c (mips_push_arguments): Rename to
4784 mips_eabi_push_arguments, and tune for EABI.
4785 (MIPS_REGS_HAVE_HOME_P): Delete.
4786 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4787 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4788 Delete references to mips_regs_have_home_p.
4790 2002-08-14 Keith Seitz <keiths@redhat.com>
4792 * Makefile.in (install-gdbtk): Create insight plugin directory.
4793 Install plugins.tcl file.
4795 2002-08-14 Keith Seitz <keiths@redhat.com>
4797 * configure.in: Move SUBDIRS to near top of the file so that
4798 --enable options may add things to it.
4799 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4800 * configure: Regenerate.
4802 2002-08-13 Michael Snyder <msnyder@redhat.com>
4804 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4805 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4806 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4808 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4810 * vax-tdep.c (vax_get_saved_register): Delete function.
4811 (vax_gdbarch_init): Update.
4812 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4813 (ns32k_gdbarch_init): Update.
4814 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4815 (alpha_gdbarch_init): Update.
4817 2002-08-13 Andrew Cagney <cagney@redhat.com>
4819 * regcache.c (init_regcache_descr): Overallocate the
4820 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4821 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4823 (set_register_cached): Add range checking assertions. Use
4826 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4828 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4829 numbers for MMX registers.
4831 2002-08-13 Andrew Cagney <cagney@redhat.com>
4833 * i386-tdep.c (i386_gdbarch_init): Use
4834 generic_unwind_get_saved_register.
4836 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4838 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4839 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4841 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4842 Delete. Add comment regarding this now-deleted target method.
4844 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4846 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4847 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4848 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4849 real PC and the page number (if it's within the memory bank window).
4850 (m68hc11_pseudo_register_write): Likewise when saving.
4851 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4852 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4853 (m68hc11_register_raw_size): And use 32-bit for it.
4854 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4855 16K memory bank is used by the prog; also use the virtual pc.
4857 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4859 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4860 (m68hc11_gdbarch_init): Install it in gdbarch.
4861 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4862 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4863 (MSYMBOL_SIZE): New for documentation.
4864 (insn_return_kind): Enum to specify how a function returns.
4865 (frame_extra_info): Cleanup and record the return mode.
4866 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4867 register in address computation.
4868 (m68hc11_get_return_insn): New to obtain the return instruction used
4870 (m68hc11_frame_init_saved_regs): Take into account the return
4871 instruction used by the function for far and interrupt functions.
4872 (m68hc11_init_extra_frame_info): Take into account page register.
4873 (m68hc11_frame_args_address): Adjust according to the return mode.
4874 (show_regs): Print page register only when it's used.
4876 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4878 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4879 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4880 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4882 (m68hc11_register_raw_size): Likewise.
4884 2002-08-13 Andrew Cagney <cagney@redhat.com>
4886 * i386-tdep.c (i386_register_name): Handle mmx registers.
4887 (mmx_regnum_p): New function.
4888 (i386_mmx_names): New array.
4889 (mmx_num_regs): New variable.
4890 (i386_pseudo_register_read): New function.
4891 (i386_pseudo_register_write): New function.
4892 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4894 * regcache.c (regcache_raw_read_unsigned): New function.
4895 (regcache_raw_read_signed): New function.
4896 * regcache.h (regcache_raw_read_unsigned): Declare.
4897 (regcache_raw_read_signed): Declare.
4899 2002-08-13 Andrew Cagney <cagney@redhat.com>
4901 * regcache.c (regcache_raw_read_as_address): Delete function.
4902 (regcache_cooked_read_signed): New function.
4903 (regcache_cooked_read_unsigned): New function.
4904 * regcache.h (regcache_cooked_read_signed): Declare.
4905 (regcache_cooked_read_unsigned): Declare.
4906 (regcache_raw_read_as_address): Delete declaration.
4908 * blockframe.c (generic_read_register_dummy): Use
4909 regcache_cooked_read_unsigned.
4910 * i386-tdep.c (i386_extract_struct_value_address): Use
4911 regcache_cooked_read_unsigned.
4913 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4916 double sizes according to ELF ABI flags.
4917 (gdbarch_tdep): Record elf_flags.
4919 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4921 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4922 (m6812_prolog): They can appear in 68HC12 function prologue.
4923 (m68hc11_frame_chain): Cleanup.
4925 2002-08-12 Andrew Cagney <cagney@redhat.com>
4927 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4929 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4930 (i386_linux_register_raw_size): Delete function.
4931 (i386_linux_init_abi): Update.
4932 * i386-tdep.c (i386_register_raw_size): Delete function.
4933 (i386_register_byte): Delete function.
4934 (i386_gdbarch_init): Update.
4935 (i386_register_size): Delete array.
4936 (i386_register_offset): Delete array.
4938 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4939 (REGISTER_RAW_SIZE): Delete macro.
4940 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4941 (REGISTER_BYTE): Delete macro.
4943 2002-08-11 Aidan Skinner <aidan@velvet.net>
4945 * ada-lang.c (ada_lookup_partial_symbol)
4946 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4947 prototype names so that grep ^func works properly.
4949 * ada-lang.c (ada_array_element_type)
4950 (ada_lookup_partial_symbol): Fix typos in parameter list.
4952 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4953 Fix prototype names so that grep ^func works properly.
4955 2002-08-10 Andrew Cagney <cagney@redhat.com>
4956 Elena Zannoni <ezannoni@redhat.com>
4957 Martin M. Hunt <hunt@redhat.com>
4959 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4960 (build_builtin_type_vec128i): Set the vector bit.
4961 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4962 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4963 (build_builtin_type_vec64): New function.
4964 (build_builtin_type_vec64i): New function.
4965 (build_gdbtypes): Initialize builtin_type_vec64 and
4966 builtin_type_vec64i.
4968 2002-08-09 Andrew Cagney <cagney@redhat.com>
4970 * regcache.c (regcache_dump): Compare the register offset
4972 * arch-utils.c (generic_register_byte): New function.
4973 * arch-utils.h (generic_register_byte): Declare.
4974 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4975 * gdbarch.h, gdbarch.c: Regenerate.
4977 2002-08-09 Andrew Cagney <cagney@redhat.com>
4979 * regcache.c: Include "gdbcmd.h"
4980 (_initialize_regcache): Add commands "maintenance print
4981 registers", "maintenance print raw-registers" and "maintenance
4982 print cooked-registers".
4983 (enum regcache_dump_what): Define.
4984 (dump_endian_bytes): New function.
4985 (regcache_dump): New function.
4986 (regcache_print): New function.
4987 (maintenance_print_registers): New function.
4988 (maintenance_print_raw_registers): New function.
4989 (maintenance_print_cooked_registers): New function.
4990 * Makefile.in (regcache.o): Update dependencies.
4992 2002-08-09 Michael Snyder <msnyder@redhat.com>
4994 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4995 (mips_push_arguments): Correct some comments. Use paddr_nz
4996 for printing addresses in debug output. Replace static
4997 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4998 (mips_n32n64_push_arguments): New function, cloned from
4999 mips_push_arguments and tuned for the n32/n64 ABI.
5000 (mips_push_register): Buffer needs dynamic allocation.
5001 (mips_print_register): Ditto.
5002 (do_gp_register_row): Ditto.
5003 (mips_store_return_value): Ditto.
5004 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5006 2002-08-09 Don Howard <dhoward@redhat.com>
5008 * memattr.c (mem_info_command): Print special case of upper bound
5009 as max CORE_ADDR + 1.
5011 2002-08-08 Michael Snyder <msnyder@redhat.com>
5013 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5014 returns structs by ref if they're too big to fit in two registers.
5016 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5018 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5020 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5021 mips_find_saved_regs().
5022 (mips_pop_frame): Likewise.
5024 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5026 * blockframe.c (frame_saved_regs_register_unwind): Revise
5027 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5030 2002-08-09 Grace Sainsbury <graces@redhat.com>
5032 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5033 T-packets; the 'a' is not taken as a register number.
5034 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5035 (remote_stopped_data_address): New functions; add to target
5037 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5038 prototypes to match other implementations of this
5039 function. replace integer argument with pointer -- the length
5040 field in the Z-packet is the length of what is pointed to or 1 if
5041 pointer is null. Add to target vector.
5042 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5046 * remote.c (remote_wait): Add support to extract optional
5047 watchpoint information from T-packet. Ignore unrecognized
5048 optional info in T-packet.
5049 (remote_async_wait): Ditto.
5051 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5053 * cli/cli-dump.c: Change fopen modes to use binary open modes
5054 as defined in include/fopen-bin.h throughout.
5056 2002-08-08 Michael Snyder <msnyder@redhat.com>
5058 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5060 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5062 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5063 assertion failure by returning early after a warning.
5065 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5067 * mips-tdep.c (mips_find_saved_regs): Make static.
5068 (mips_frame_init_saved_regs): New function.
5069 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5070 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5071 (mips_find_saved_regs): Delete declaration.
5073 2002-08-08 Grace Sainsbury <graces@redhat.com>
5075 * remote.c (remote_wait, remote_async_wait): Change
5076 thread_num from int to ULONGEST.
5077 (unpack_varlen_hex): Change result parameter from
5078 int * to ULONGEST *.
5080 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5082 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5083 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5085 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5087 2002-08-08 Andrew Cagney <cagney@redhat.com>
5089 * gcore.c (override_derive_stack_segment): Delete variable.
5090 (preempt_derive_stack_segment): Delete function.
5091 (derive_stack_segment): Delete function.
5092 (default_derive_stack_segment): Renamed to derive_stack_segment.
5093 (override_derive_heap_segment): Delete variable.
5094 (preempt_derive_heap_segment): Delete function.
5095 (derive_heap_segment): Delete function.
5096 (default_derive_heap_segment): Rename to derive_heap_segment.
5098 2002-08-06 Michael Snyder <msnyder@redhat.com>
5100 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5101 * mips-tdep.c (mips_EABI_use_struct_convention,
5102 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5103 New functions. (mips_use_struct_convention): Delete.
5104 (mips_gdbarch_init): set use_gdbarch_convention.
5106 2002-08-06 Michael Snyder <msnyder@redhat.com>
5108 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5109 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5110 mips_o32_reg_struct_has_addr): New functions.
5111 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5113 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5115 * regcache.c (pseudo_register): Delete function.
5116 (fetch_register): Delete function.
5117 (store_register): Delete function.
5118 (regcache_raw_read, legacy_read_register_gen): Use
5119 target_fetch_registers instead of fetch_register.
5120 (legacy_write_register_gen, regcache_raw_write): Use
5121 target_store_register instead of store_register.
5122 (write_register_bytes): Ditto.
5124 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5125 (STORE_PSEUDO_REGISTER): Delete.
5126 * gdbarch.h, gdbarch.c: Regenerate.
5128 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5130 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5131 write dump file binary.
5133 2002-08-05 Michael Snyder <msnyder@redhat.com>
5135 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5136 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5137 (mips_gdbarch_init): Set N32 target to be mips64.
5139 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5141 * frame.c (find_saved_register): Break out of loop once saved
5142 register address is found. Don't mention sparc in loop comment
5145 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5147 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5148 mips_default_saved_regsize to 8.
5150 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5152 * gcore.c: Do not include <sys/procfs.h>.
5153 * Makefile.in (gcore.o): Update dependencies.
5155 2002-08-06 Andrew Cagney <cagney@redhat.com>
5157 * configure.tgt: Make arc-*-* obsolete.
5158 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5159 * MAINTAINERS: Make arc-elf obsolete.
5160 * arc-tdep.c: Make file obsolete.
5161 * config/arc/arc.mt: Ditto.
5162 * config/arc/tm-arc.h: Ditto.
5164 2002-08-05 Theodore A. Roth <troth@verinet.com>
5166 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5168 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5170 * mcore-tdep.c (mcore_gdbarch_init): Use
5171 generic_unwind_get_saved_register instead of
5172 generic_get_saved_register.
5173 * v850-tdep.c (v850_gdbarch_init): Ditto.
5174 * frv-tdep.c (frv_gdbarch_init): Ditto.
5175 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5176 * s390-tdep.c (s390_gdbarch_init): Ditto.
5177 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5178 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5179 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5181 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5183 * objfiles.h: Add missing #include "symfile.h"
5185 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5187 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5189 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5190 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5193 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5195 * NEWS: Cleanup and nitpick.
5197 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5199 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5201 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5203 * Makefile.in (gdbtk-bp.o): Update dependencies.
5204 (gdbtk-register.o): Ditto.
5205 (gdbtk-varobj.o): Ditto.
5207 2002-08-03 Andrew Cagney <cagney@redhat.com>
5209 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5210 m68hc11_fetch_pseudo_register.
5211 (m68hc11_pseudo_register_write): Replace
5212 m68hc11_store_pseudo_register.
5213 (m68hc11_gdbarch_init): Update.
5215 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5217 * gdbarch.sh: Include "gdb_string.h".
5218 * gdbarch.c: Regenerate.
5220 * regcache.c: Include "gdb_string.h".
5221 * ax-general.c: Ditto.
5223 * std-regs.c: Ditto.
5224 * fbsd-proc.c: Ditto.
5227 * Makefile.in (regcache.o): Update dependencies.
5228 (thread.o, gdbarch.o): Ditto.
5229 (ax-general.o, gdbarch.o): Ditto.
5230 (varobj.o, std-regs.o): Ditto.
5231 (fbsd-proc.o): Specify dependencies.
5233 2002-08-02 Andrew Cagney <cagney@redhat.com>
5235 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5237 (regcache_cooked_write): Ditto.
5239 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5241 * regcache.c (regcache_cooked_read): New function.
5242 (regcache_cooked_write): New function.
5243 (read_register_gen): Rewrite using regcache_cooked_read.
5244 (write_register_gen): Rewrite using regcache_cooked_write.
5246 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5249 2002-08-02 Andrew Cagney <cagney@redhat.com>
5251 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5252 Replace the architecture methods register_read and register_write.
5253 * gdbarch.h, gdbarch.c: Regenerate.
5254 * regcache.c (init_regcache_descr): Update.
5255 (read_register_gen): Update.
5256 (write_register_gen): Update.
5257 (supply_register): Update comment.
5259 * sh-tdep.c (sh_gdbarch_init): Update.
5260 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5261 `regcache' and `gdbarch' parameters. Make `buffer' a void
5262 pointer. Update code.
5263 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5264 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5265 void pointer. Update code.
5266 (sh64_register_write): Delete.
5267 (sh4_register_read): Delete.
5268 (sh64_register_read): Delete.
5269 (sh4_register_write): Delete.
5270 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5271 void pointer, `to' parameter a void pointer.
5272 (sh_sh64_register_convert_to_raw): Ditto.
5274 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5276 * mips-tdep.c (mips_register_virtual_type): Use architecture
5277 invariant return values.
5279 2002-08-01 Andrew Cagney <cagney@redhat.com>
5281 * linux-proc.c: Include "gdb_string.h".
5282 * Makefile.in (linux-proc.o): Update dependency list.
5284 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5286 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5289 2002-08-01 Grace Sainsbury <graces@redhat.com>
5291 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5292 to_insert_watchpoint, to_remove_watchpoint,
5293 to_stopped_by_watchpoint, to_stopped_data_address,
5294 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5295 target vecctor. Define their corresponding macros so they call
5298 * target.c: Add default and debug versions of for
5299 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5300 to_insert_watchpoint, to_remove_watchpoint,
5301 to_stopped_by_watchpoint, to_stopped_data_address,
5302 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5304 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5306 * mips-tdep.c (mips_register_virtual_type): New function.
5307 (mips_gdbarch_init): Register mips_register_virtual_type()
5308 with gdbarch machinery.
5309 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5310 this file instead of tm-bigmips.h.
5311 (MIPS_REGSIZE): Delete this macro.
5312 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5313 multiarch version in mips-tdep.c will be found.
5315 2002-08-01 Andrew Cagney <cagney@redhat.com>
5317 * NEWS: Menion that CHILL has been made obsolete.
5319 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5320 * stabsread.c (read_range_type): Ditto.
5321 * gdbtypes.h: Ditto.
5322 * language.c (binop_type_check): Ditto.
5323 (binop_result_type): Ditto.
5324 (integral_type): Ditto.
5325 (character_type): Ditto.
5326 (string_type): Ditto.
5327 (boolean_type): Ditto.
5328 (structured_type): Ditto.
5329 (lang_bool_type): Ditto.
5330 (binop_type_check): Ditto.
5331 * language.h (_LANG_chill): Ditto.
5332 * dwarfread.c (set_cu_language): Ditto.
5333 * dwarfread.c (CHILL_PRODUCER): Ditto.
5334 * dwarfread.c (handle_producer): Ditto.
5335 * expression.h (enum exp_opcode): Ditto.
5336 * eval.c: Ditto for comments.
5337 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5338 * expprint.c (print_subexp): Ditto.
5339 (print_subexp): Ditto.
5340 * valops.c (value_cast): Ditto.
5341 (search_struct_field): Ditto.
5342 * value.h (COERCE_VARYING_ARRAY): Ditto.
5343 * symfile.c (init_filename_language_table): Ditto.
5344 (add_psymbol_with_dem_name_to_list): Ditto.
5345 * valarith.c (value_binop): Ditto.
5347 * valops.c (value_slice): Ditto.
5348 * symtab.h (union language_specific): Ditto.
5349 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5350 (SYMBOL_DEMANGLED_NAME): Ditto.
5351 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5352 * defs.h (enum language): Ditto.
5353 * symtab.c (got_symtab): Ditto.
5354 * utils.c (fprintf_symbol_filtered): Ditto.
5356 * ch-typeprint.c: Make file obsolete.
5357 * ch-valprint.c: Make file obsolete.
5358 * ch-lang.h: Make file obsolete.
5359 * ch-exp.c: Make file obsolete.
5360 * ch-lang.c: Make file obsolete.
5362 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5364 (TARGET_FLAGS_TO_PASS): Ditto.
5365 (CHILLFLAGS): Obsolete.
5367 (CHILL_FOR_TARGET): Obsolete.
5368 (CHILL_LIB): Obsolete.
5369 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5371 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5372 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5374 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5377 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5379 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5380 This does not change anything at the moment, but will be helpful
5381 later when full Ada support is integrated.
5383 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5385 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5388 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5390 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5391 and save it in a local variable. Use variable in later test.
5393 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5395 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5396 test. (Thanks to Daniel Jacobowitz.)
5398 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5400 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5401 (mips_abi_strings): Add "n64".
5402 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5404 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5406 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5407 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5409 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5411 * utils.c (host_pointer_to_address, address_to_host_pointer):
5412 Use gdb_assert() instead of explicit call to internal_error().
5414 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5416 * Makefile.in (rs6000-nat.o): Update dependencies.
5418 From Nicholas Duffek:
5419 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5420 (aix-thread.o): New rule.
5421 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5422 * config/powerpc/aix432.mh: New file.
5424 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5426 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5427 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5428 (fetch_core_registers, ppc_linux_supply_gregset)
5429 (ppc_linux_supply_fpregset): New functions.
5430 (ppc_linux_regset_core_fns): New.
5431 (_initialize_ppc_linux_tdep): Call add_core_fns.
5432 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5433 and ppc_linux_supply_gregset.
5434 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5435 (supply_fpregset): Call ppc_linux_supply_fpregset.
5436 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5438 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5440 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5442 * symtab.c (lookup_symbol): Demangle before lowercasing.
5444 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5446 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5448 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5449 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5450 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5451 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5453 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5454 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5455 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5456 (avr-tdep.o, mon960-rom.o): Ditto.
5457 (aout_stabs_gnu_h): Define.
5458 (symtab_h): Remove $(gdb_obstack_h).
5460 2002-07-30 Jim Blandy <jimb@redhat.com>
5462 Patch from David Carlton <carlton@math.stanford.edu>:
5463 * gdbinit.in: Move the `dir' commands that add GDB's own source
5464 directory to the search path to the end, so that the `gdb' source
5465 directory will be searched first.
5467 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5469 * gdb_obstack.h: New file.
5470 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5471 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5472 * objfiles.h: Include "gdb_obstack.h".
5473 * Makefile.in (gdb_obstack_h): Define.
5474 (symtab_h): Add $(gdb_obstack_h).
5475 (objfiles_h): Add $(gdb_obstack_h).
5477 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5478 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5479 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5480 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5481 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5482 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5483 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5484 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5486 * Makefile.in (bcache.o): Update dependencies.
5487 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5488 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5489 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5490 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5491 (stabsread.o, symfile.o, symmisc.o): Ditto.
5492 (symtab.o, typeprint.o, macroexp.o): Ditto.
5493 (macrotab.o, mdebugread.o): Ditto.
5494 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5495 (coff_ecoff_h, aout_aout64_h): Define.
5496 (aout_stabs_gnu_h, libaout_h): Define.
5498 2002-07-29 Andrew Cagney <cagney@redhat.com>
5500 * regcache.c (struct regcache_descr): Rename nr_registers to
5501 nr_cooked_registers. Revise comments describing the structure
5503 (init_regcache_descr): Update.
5504 (init_legacy_regcache_descr): Update.
5505 (read_register_gen, write_register_gen): When a cooked register in
5506 the raw register range, directly access the value from the raw
5509 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5511 * z8k-tdep.c: Do not include "obstack.h".
5512 * h8300-tdep.c, h8500-tdep.c: Ditto.
5513 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5514 * valprint.c, v850-tdep.c: Ditto.
5515 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5516 * mn10200-tdep.c: Ditto.
5518 * Makefile.in (z8k-tdep.o): Update dependencies.
5519 (m68hc11-tdep.o, valprint.o): Ditto.
5520 (v850-tdep.o, d10v-tdep.o): Ditto.
5521 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5522 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5523 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5524 (sh_opc_h, gdb_sim_sh_h): Define.
5525 (elf_sh_h, elf_bfd_h): Define.
5526 (opcode_m68hc11_h): Define.
5527 (OPCODES_SRC, OPCODES_DIR): define.
5528 (OPCODES): Use $(OPCODES_DIR).
5529 (gdb_sim_d10v_h): Rename sim_d10v_h.
5530 (gdb_sim_arm_h): Rename sim_arm_h.
5532 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5534 * utils.c (host_pointer_to_address, address_to_host_pointer):
5535 Change internal_error() message to indicate function responsible
5538 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5540 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5541 calls to local_hex_string_custom().
5543 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5545 * irix5-nat.c: Move IRIX shared library support from here...
5546 * solib-irix.c: ...to here. Revised substantially to work with
5547 generic solib framework.
5549 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5550 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5551 * mips-irix-tdep.c: New file.
5553 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5554 (mips-irix-tdep.o, solib-irix.o): New rules.
5555 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5557 * config/mips/irix6.mt (TDEPFILES): Likewise.
5558 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5560 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5562 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5563 disabled (via ``#if 0'') includes.
5565 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5567 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5568 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5569 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5570 Add support for the fpscr register.
5571 * rs6000-nat.c (regmap, fetch_inferior_registers)
5572 (store_inferior_registers, fetch_core_registers): Likewise.
5574 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5576 * rs6000-nat.c (language.h): Include.
5577 (special_regs): Delete this array.
5578 (regmap): New function.
5579 (fetch_register, store_register): Use regmap() to map gdb
5580 register numbers to ptrace register numbers. Also, use
5581 outputs from regmap() to make decisions regarding type of
5582 ptrace() call to make. In particular, don't compare against
5583 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5584 (fetch_inferior_registers, store_inferior_registers): Where
5585 possible, obtain register numbers from tdep struct. Don't
5586 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5587 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5588 (LAST_UISA_SP_REGNUM): Delete.
5590 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5592 * rs6000-nat.c (ppc-tdep.h): Include.
5593 (fetch_registers, store_register, fetch_core_registers): Don't
5594 access registers[] directly. Instead, use supply_register() or
5595 regcache_collect() as appropriate.
5596 (find_toc_address): Format hex address with local_hex_string().
5598 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5600 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5603 2002-07-24 Tom Tromey <tromey@redhat.com>
5605 * jv-exp.y: Marked all strings with _().
5606 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5608 (MethodInvocation, CastExpression, parse_number, yyerror,
5609 java_type_from_name, push_expression_name, yylex): Typo fixes.
5611 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5613 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5614 (tee_file_flush, tee_file_write, tee_file_fputs)
5615 (tee_file_isatty): New.
5616 * ui-file.h (tee_file_new): Add prototype.
5618 2002-07-24 Aidan Skinner <aidan@velvet.net>
5620 * ada-lang.c: Change k&r style function definitions to prototyped
5622 * ada-typeprint.c: Change k&r style function definitions to prototyped
5624 * ada-valprint.c: Change k&r style function definitions to prototyped
5627 2002-07-24 Andrew Cagney <cagney@redhat.com>
5629 * README: Remove reference to remote-bug.
5630 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5632 (m88k-nat.o): Delete rule.
5633 (m88k-tdep.o): Delete rule.
5634 (remote-bug.o): Delete rule.
5635 * MAINTAINERS: Mark as obsolete.
5636 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5637 * m88k-tdep.c: Make file obsolete.
5638 * config/m88k/m88k.mh: Ditto.
5639 * config/m88k/delta88v4.mh: Ditto.
5640 * config/m88k/delta88v4.mt: Ditto.
5641 * config/m88k/delta88.mt: Ditto.
5642 * config/m88k/delta88.mh: Ditto.
5643 * remote-bug.c: Ditto.
5644 * config/m88k/tm-delta88.h: Ditto.
5645 * config/m88k/nm-delta88v4.h: Ditto.
5646 * config/m88k/xm-delta88.h: Ditto.
5647 * config/m88k/xm-dgux.h: Ditto.
5648 * config/m88k/tm-m88k.h: Ditto.
5649 * config/m88k/nm-m88k.h: Ditto.
5650 * config/m88k/tm-delta88v4.h: Ditto.
5651 * m88k-nat.c: Ditto.
5652 * cxux-nat.c: Ditto.
5653 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5654 and m88*-*-* obsolete.
5655 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5658 2002-07-24 Andrew Cagney <cagney@redhat.com>
5660 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5661 constant. Same for local pointer variables.
5662 (extract_signed_integer): Ditto.
5663 * defs.h (extract_unsigned_integer): Update.
5664 (extract_signed_integer): Update.
5666 2002-07-24 Andrew Cagney <cagney@redhat.com>
5668 * regcache.c (regcache_raw_write): Change buf parameter to a
5669 constant void pointer.
5670 (regcache_raw_read): Change buf parameter to a void pointer.
5671 (legacy_write_register_gen): Change myaddr parameter a constant
5673 (supply_register): Change val parameter to a const void pointer.
5674 * regcache.h (regcache_raw_write): Update declaration.
5675 (regcache_raw_read): Update declaration.
5676 (supply_register): Update declaration.
5678 2002-07-24 Tom Tromey <tromey@redhat.com>
5680 * defs.h (gdb_readline_wrapper): Declare.
5681 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5682 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5683 * top.c (gdb_readline_wrapper): New function.
5684 (command_line_input): Use it.
5686 2002-07-24 Andrew Cagney <cagney@redhat.com>
5688 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5689 regcache_read and regcache_write.
5690 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5691 * regcache.c: Update.
5692 * sh-tdep.c (sh64_push_arguments): Update comment.
5693 (sh_pseudo_register_read): Update.
5694 (sh_pseudo_register_write): Update.
5695 (sh4_register_read): Update.
5696 (sh4_register_write): Update.
5697 (sh64_pseudo_register_read): Update.
5698 (sh64_pseudo_register_write): Update.
5699 (sh64_register_read): Update.
5700 (sh64_register_write): Update.
5701 * i386-tdep.c (i386_extract_return_value): Update.
5702 (i386_extract_struct_value_address): Update.
5703 (i386_extract_return_value): Update.
5704 * blockframe.c (generic_read_register_dummy): Update.
5705 (generic_call_dummy_register_unwind): Update
5706 * infrun.c (write_inferior_status_register): Update.
5708 2002-07-23 Jim Blandy <jimb@redhat.com>
5710 * parser-defs.h (expression_context_pc): Make this extern.
5711 (Thanks to Michael Snyder.)
5713 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5715 GDB 5.2.1 released from 5.2 branch.
5716 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5717 * README: Update to mention 5.2.1.
5719 2002-07-23 Mark Salter <msalter@redhat.com>
5721 * remote.c (remote_read_bytes): Fix check for error.
5723 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5725 * aix-thread.c (language.h): Include.
5726 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5727 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5728 Print newlines at end of debug messages.
5729 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5730 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5732 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5734 * aix-thread.c (ppc-tdep.h): Include.
5735 (special_register_p): New function.
5736 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5737 (store_regs_user_thread): Use register number information from
5738 gdbarch_tdep struct instead of hardcoded offsets relative to
5739 FIRST_UISA_SP_REGNUM.
5740 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5741 special_register_p() instead of using FPLAST_REGNUM and
5742 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5743 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5744 will be MQ's register number.
5746 2002-07-22 Michael Snyder <msnyder@redhat.com>
5748 * aix-thread.c (ops): Rename to aix_thread_ops.
5749 (base_ops): Rename to base_target.
5750 (ops_attach): Rename to aix_thread_attach.
5751 (ops_detach): Rename to aix_thread_detach.
5752 (ops_resume): Rename to aix_thread_detach.
5753 (ops_wait): Rename to aix_thread_wait.
5754 (ops_kill): Rename to aix_thread_kill.
5755 (init_ops): Rename to init_aix_thread_ops.
5756 (ops_fetch_register): Rename to aix_thread_fetch_register.
5757 (ops_store_register): Rename to aix_thread_store_register.
5758 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5759 (ops_thread_alive): Rename to aix_thread_thread_alive.
5760 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5761 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5762 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5763 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5764 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5765 (store_regs_lib): Rename to store_regs_user_thread.
5766 (store_regs_kern): Rename to store_regs_kernel_thread.
5768 2002-07-22 Michael Snyder <msnyder@redhat.com>
5770 * aix-thread.c (ops_prepare_to_store): Eliminate.
5771 (init_ops): Don't initialize ops.prepare_to_store.
5772 (store_regs_kern): Pre-fetch register buffers from child,
5773 because some registers may not be in the cache. Copy
5774 regs from register cache only if they are cached.
5775 (store_regs_lib): Copy regs from register cache only
5777 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5778 fill_gprs64): Ditto.
5780 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5782 * aix-thread.c (gdb_assert.h): Include.
5783 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5784 register sizes (from register cache) match size of buffer holding
5786 (fill_sprs32): Change parameter types to match those in the ptrace()
5788 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5789 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5791 2002-07-22 Michael Snyder <msnyder@redhat.com>
5793 * aix-thread.c (supply_sprs64): Cosmetic change.
5794 (supply_sprs32): Cosmetic change.
5795 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5796 (fill_sprs64): Use regcache_collect instead of read_register.
5797 (store_regs_lib): Use regcache_collect instead of
5798 read_register. Use fill_sprs32 instead of fill_sprs64,
5799 if debugging a 32-bit architecture.
5800 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5801 out of the register cache, instead of passing a pointer into
5802 the register cache directly to ptrace. Use regcache_collect
5803 insteaad of read_register.
5804 (ops_prepare_to_store): Use target_read_registers instead
5805 of read_register_bytes.
5807 2002-07-20 Aidan Skinner <aidan@velvet.net>
5809 * MAINTAINERS: Add self under write after approval.
5811 2002-07-20 Aidan Skinner <aidan@velvet.net>
5813 * ada-tasks.c: Change k&r style function definitions to prototyped
5816 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5818 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5819 * x86-64-tdep.c: Include "objfiles.h".
5820 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5821 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5823 2002-07-17 Michal Ludvig <michal@suse.cz>
5825 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5826 (update_context): Initialise cfa variable.
5828 2002-07-17 Michael Snyder <msnyder@redhat.com>
5830 * aix-thread.c: Shorten some long lines.
5831 Bring comments into line with code spec.
5833 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5835 * infrun.c: Re-indent using gdb_indent.sh.
5837 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5839 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5840 Leave the indentation temporarily untouched, to minimize the diffs.
5842 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5844 * stabsread.c: Make os9k sections of the code obsolete,
5846 * stabsread.h: Make os9k sections of the code obsolete.
5848 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5850 * linux-low.c (regsets_store_inferior_registers): Add free()
5851 at the end of a loop to prevent memory leak.
5852 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5853 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5854 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5856 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5858 2002-07-17 Jim Blandy <jimb@redhat.com>
5860 * macrocmd.c (info_macro_command): Remove newline from error
5863 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5865 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5866 (sh_gdbarch_init): Use it for sh-dsp.
5868 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5870 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5871 64-bit DWARF2 format.
5873 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5875 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5876 <sys/proc.h> when not available.
5878 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5880 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5881 * stabsread.c: Make os9k sections of the code obsolete.
5882 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5883 * config/i386/i386os9k.mt: Make file obsolete.
5884 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5885 (COMMON_OBS): Remove os9kread.o
5886 (SFILES): Remove os9kread.c.
5887 (os9kread.o, remote-os9k.o): Make target obsolete.
5888 * remote-os9k.c: Make file obsolete.
5889 * os9kread.c: Make file obsolete.
5892 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5894 * NEWS: Mention that the FR30 has been made obsolete.
5895 * fr30-tdep.c: Make file obsolete.
5896 * config/fr30/tm-fr30.h: Ditto.
5897 * config/fr30/fr30.mt: Ditto.
5898 * configure.tgt: Make fr30-*-elf obsolete.
5899 * MAINTAINERS: Make fr30-elf obsolete.
5901 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5903 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5904 found is not inside a section.
5906 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5908 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5910 (pdc_realloc): Use xrealloc() instead of realloc().
5912 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5914 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5915 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5916 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5919 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5921 * aix-thread.c (ptrace_check): Eliminate goto.
5922 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5925 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5927 * aix-thread.c (gdbcmd.h): Include.
5928 (DEBUG, DBG, DBG2, dbg): Eliminate.
5929 (debug_aix_thread): New static global.
5930 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5931 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5932 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5933 invocations to DBG and DBG2 macros to test against
5934 ``debug_aix_thread'' and call fprintf_unfiltered().
5935 (_initialize_aix_thread): Add new command "set debug aix-thread".
5937 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5939 From Gerhard Tonn <TON@de.ibm.com>:
5940 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5941 instead of supply_register.
5943 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5945 * dwarf2cfi.c: Include "gdb_assert.h".
5946 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5948 (update_context): Do not use __func__. Add missing ``break''.
5949 (update_context): Do not use __func__.
5951 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5953 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5954 and its setting. Set gdbarch instruction printing functions
5955 directly. For non-rs6000 case use new function
5956 gdb_print_insn_powerpc.
5957 (gdb_print_insn_powerpc): New function.
5959 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5961 * NEWS: Mention that the d30v has been marked obsolete.
5962 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5963 * configure.tgt: Mark d30v-*-* as obsolete.
5964 * d30v-tdep.c: Mark file as obsolete.
5965 * config/d30v/d30v.mt: Ditto.
5966 * config/d30v/tm-d30v.h: Ditto.
5968 2002-07-13 Aidan Skinner <aidan@velvet.net>
5970 * ada-tasks.c (add_task_entry): replace calls to
5971 malloc() with xmalloc
5972 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5974 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5975 ada_finish_decode_line_1, all_sals_for_line
5976 ada_breakpoint_rewrite): replace calls to free() with xfree()
5978 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5980 From Nicholas Duffek (with minor changes by Martin Hunt,
5981 Louis Hamilton, and Kevin Buettner):
5982 * aix-thread.c: New file.
5984 2002-07-12 Petr Sorfa <petrs@caldera.com>
5986 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5987 complaint for invalid attribute class or form.
5988 (read_func_scope): DW_AT_frame_base
5989 better handling of DW_AT_block*.
5990 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5991 better handling of DW_AT_block*.
5992 (read_common_block): DW_AT_location
5993 better handling of DW_AT_block*.
5994 (read_partial_die): DW_AT_location better handling
5996 (new_symbol): DW_AT_external better handling of
5997 DW_AT_block*. Proper initialization of variable
5999 (attr_form_is_block): New function that returns true
6000 if the attribute's form is of DW_FORM_block*.
6002 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6004 * valops.c (find_method_list): Remove comment about
6005 removed STATIC_MEMFUNCP argument.
6006 (value_find_oload_method_list): Likewise.
6008 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6010 From Nicholas Duffek:
6011 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6012 target_new_objfile_hook.
6014 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6016 From Nicholas Duffek:
6017 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6020 2002-07-12 Andrew Cagney <cagney@redhat.com>
6022 * MAINTAINERS: Mention --enable-sim-build-warnings.
6023 (m68hc11-elf): Disable sim build warnings.
6024 (m32r-elf): Mark as broken obsolete candidate.
6025 (x86_64-linux-gnu): Mark as buildable with -Werror.
6026 (arm-elf): Change -w to ``,'' which enables warnings but not
6029 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6031 * bcache.h: Update copyright.
6032 (struct bstring, struct bcache): Move definition to "bcache.c".
6033 Replaced by opaque declaration.
6034 (bcache_xfree): Replace free_bcache.
6035 (bcache_xmalloc, bcache_memory_used): Declare.
6037 * bcache.c: Update copyright.
6038 (struct bstring, struct bcache): Moved to here from "bcache.h".
6040 (bcache_xmalloc, bcache_memory_used): New functions.
6041 (bcache_xfree): Replace function free_bcache.
6043 * Makefile.in (objfiles.o): Add $(bcache_h).
6044 (objfiles_h): Remove $(bcache_h).
6045 (symfile.o): Add $(bcache_h).
6047 * symmisc.c: Update copyright.
6048 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6049 (print_objfile_statistics): Use bcache_memory_used.
6051 * symfile.c: Include "bcache.h".
6052 (reread_symbols): Use bcache_xfree.
6053 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6054 (add_psymbol_to_list): Pass psymbol_cache by value.
6055 (add_psymbol_with_dem_name_to_list): Ditto.
6057 * objfiles.h: Update copyright.
6058 (struct bcache): Declare opaque. Do not include "bcache.h".
6059 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6061 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6063 * objfiles.c: Include "bcache.h". Update copyright.
6064 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6066 (free_objfile): Use bcache_xfree.
6068 2002-07-11 Grace Sainsbury <graces@redhat.com>
6070 * monitor.c (monitor_fetch_register): Make name a constant.
6071 (monitor_store_register): Same.
6073 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6075 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6076 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6077 (finish_block) For non-function blocks, hash the symbol table. For
6078 function blocks, mark the symbol table as unhashed.
6079 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6080 (msymbol_hash_iw): Likewise.
6081 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6083 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6084 (lookup_minimal_symbol): Likewise for both.
6085 * symtab.h (struct block): Add `hashtable' flag. Comment the
6087 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6088 (ALL_BLOCK_SYMBOLS): Update.
6089 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6090 (struct symbol): Add `hash_next' pointer.
6091 * symtab.c (lookup_block_symbol): Search using the hash table when
6093 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6094 (search_symbols, find_addr_symbol): Likewise.
6096 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6097 (read_dst_symtab): Likewise.
6098 * jv-lang.c (get_java_class_symtab): Likewise.
6099 * mdebugread.c: Include "gdb_assert.h".
6100 (shrink_block): Assert that the block being modified is not hashed.
6101 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6102 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6104 (dump_symtab): Recognize hashed blocks.
6105 * printcmd.c (print_frame_args): Assert that function blocks do not
6106 have hashed symbol tables.
6107 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6108 (fill_in_ada_prototype, debug_print_block): Likewise.
6109 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6111 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6113 * stack.c (print_frame): Use result of frame_address_in_block()
6114 instead of fi->pc when evaluating symbols.
6115 (backtrace_command_1): Ditto.
6117 2002-07-11 Andrew Cagney <cagney@redhat.com>
6119 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6122 * arm-tdep.c (arm_register_name): Make return type constant.
6124 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6126 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6128 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6129 * s390-tdep.c (s390_fp_regnum): Ditto.
6130 (s390_read_fp): Ditto.
6131 (s390_pop_frame): Ditto.
6132 (_initialize_s390_tdep): Ditto.
6133 * remote.c (get_remote_state): Ditto.
6134 * procfs.c (mappingflags): Ditto.
6135 * memattr.c (_initialize_mem): Ditto.
6136 * mcore-tdep.c (mcore_pop_frame): Ditto.
6137 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6138 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6139 * language.c (set_case_str): Ditto.
6140 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6141 * frv-tdep.c (new_variant): Ditto.
6142 (frv_stopped_data_address): Ditto.
6143 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6144 (context_alloc): Ditto.
6145 (frame_state_alloc): Ditto.
6146 (unwind_tmp_obstack_init): Ditto.
6147 (unwind_tmp_obstack_free): Ditto.
6148 (cfi_read_fp): Ditto.
6149 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6150 (cris_pop_frame): Ditto.
6151 * c-lang.c (scanning_macro_expansion): Ditto.
6152 (finished_macro_expansion): Ditto.
6153 (c_preprocess_and_parse): Ditto.
6154 * gdbarch.sh: Ditto.
6155 * gdbarch.h, gdbarch.c: Regenerate.
6156 * config/mn10200/tm-mn10200.h: Adjust indentation.
6157 * target.c: Adjust indentation.
6158 * symtab.h: Adjust indentation.
6159 * stabsread.h: Adjust indentation.
6160 * remote-es.c: Adjust indentation.
6161 * os9kread.c: Adjust indentation.
6163 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6165 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6166 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6168 2002-07-10 Grace Sainsbury <graces@redhat.com>
6170 * NEWS: Mention m68k, mcore multi-arching.
6171 * MAINTAINERS: Change status of m68k, mcore to reflect
6174 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6176 * valops.c (find_overload_match): Free oload_syms.
6178 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6180 Define HAVE_SYS_PROC_H if sys/proc.h exists
6181 * configure.in: Add check for sys/proc.h
6182 * config.in: Regenerate.
6183 * configure: Regenerate.
6185 2002-07-09 Grace Sainsbury <graces@redhat.com>
6187 * config/m68k/tm-m68k.h: Remove macros wrapped in
6188 #if !GDB_MULTI_ARCH.
6190 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6192 * config.in, configure: Regenerate.
6194 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6196 * dwarf2cfi.c: Include "gcore.h".
6197 (execute_stack_op): Fix implementation of the
6198 DW_OP_deref and DW_OP_deref_size operators by letting do their
6199 lookup in the target.
6201 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6203 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6204 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6207 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6209 Fix PR gdb/595, gdb/602
6210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6211 Don't call value_cast, just read the vtable pointer; update comments
6214 2002-07-05 Grace Sainsbury <graces@redhat.com>
6216 * config/mcore/tm-mcore.h: Remove file.
6217 * config/mcore/mcore.mt: Remove definition of TM_FILE
6218 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6220 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6222 * i386bsd-tdep.c: Include "gdb_string.h".
6224 2002-07-04 Grace Sainsbury <graces@redhat.com>
6226 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6227 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6229 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6230 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6231 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6232 (RETVAL_REGNUM): Move macros from tm-mcore.h
6233 (mcore_reg_struct_has_addr): New function.
6234 (mcore_gdbarch_init): Added initializations for the macros removed
6237 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6239 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6240 traditonal string branding within the ELF header.
6242 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6244 * symtab.c (remove_params): New function.
6245 (make_symbol_overload_list): Use it instead of cplus_demangle.
6246 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6248 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6250 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6252 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6254 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6255 and tdep->sigtramp_end.
6256 * i386obsd-nat.c: New file.
6257 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6259 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6260 Don't call get_current_frame().
6262 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6264 * i386-nat.c (child_post_startup_inferior): New function
6265 calling i386_cleanup_dregs if
6266 I386_USE_GENERIC_WATCHPOINTS is defined.
6267 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6268 conditional to acknowledge that i386-nat.c has its
6269 own child_post_startup_inferior function.
6271 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6273 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6274 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6275 instead of MAX_REGISTER_RAW_SIZE.
6276 (i386_extract_return_value, i386_extract_struct_value_address):
6277 Convert to use regcache.
6278 (i386_gdbarch_init): Set max_register_raw_size and
6279 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6280 Set extract_return_value and extract_struct_value_address instead
6281 of their deprecated variants.
6283 Convert i386 target to generic dummy frames.
6284 * i386-tdep.c: Include "symfile.h".
6285 (i386_frameless_signal_p): Consider a function to be frameless if
6286 the pc points at the first instruction of the function.
6287 (i386_frame_chain): Handle (generic) call dummies.
6288 (i386_frame_saved_pc): Likewise.
6289 (i386_frame_init_saved_regs): Remove code dealing with call
6290 dummies on the stack.
6291 (i386_push_dummy_frame): Removed.
6292 (i386_call_dummy_words): Removed.
6293 (i386_fix_call_dummy): Removed.
6294 (i386_push_return_address): New function.
6295 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6296 parameter, and don't call get_current_frame.
6297 (i386_pop_frame): New function.
6298 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6299 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6300 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6301 call_dummy_length to 0, set call_dummy_words to NULL, set
6302 sizeof_call_dummy_words to 0, set fix_call_dummy to
6303 generic_fix_call_dummy, set pc_in_call_dummy to
6304 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6305 generic_push_dummy_frame, set push_return_address to
6306 i386_push_return_address and set frame_chain_valid to
6307 generic_file_frame_chain_valid.
6309 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6311 * gdbarch.sh (struct regcache): Add opaque declaration.
6312 (EXTRACT_RETURN_VALUE): New architecture method.
6313 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6314 * gdbarch.h, gdbarch.c: Regenerate.
6315 * arch-utils.c (legacy_extract_return_value): New function.
6316 * arch-utils.h (legacy_extract_return_value): Declare.
6317 * values.c (value_being_returned): Re-enable code handling
6318 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6319 deprecated_grub_regcache_for_registers call to block handling
6320 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6321 (EXTRACT_RETURN_VALUE): Do not define.
6323 2002-07-03 Grace Sainsbury <graces@redhat.com>
6325 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6326 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6327 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6328 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6329 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6330 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6331 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6332 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6333 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6334 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6335 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6336 argument so the function fits the prototype in the architecture
6338 (mcore_pop_frame): Remove argument so the function fits the
6339 prototype. Use get_current_frame instead of the argument.
6340 (mcore_push_arguments): Change type of struct_return so the
6341 function can be used in the architecture vector.
6342 (mcore_store_struct_return): Add.
6343 (mcore_frame_init_saved_regs): Add.
6344 (mcore_gdbarch_init): Add function calls to replace the macros
6345 removed from tm-mcore.h
6347 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6349 * infcmd.c (print_return_value): Remove compatibility code calling
6350 deprecated_grub_regcache_for_registers.
6352 * values.c: Include "regcache.h".
6353 (value_being_returned): Update. Use
6354 deprecated_grub_regcache_for_registers to extract the register
6356 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6357 ``struct regcache''.
6358 * Makefile.in (values.o): Add dependency on $(regcache_h).
6360 * inferior.h (run_stack_dummy): Change type of second parameter to
6361 a ``struct regcache''.
6362 * valops.c (hand_function_call): Change type of retbuf to ``struct
6363 regcache''. Allocate using regcache_xmalloc, clean using
6364 make_cleanup_regcache_xfree.
6365 * infcmd.c (run_stack_dummy): Update. Use
6366 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6368 * regcache.c (do_regcache_xfree): New function.
6369 (make_cleanup_regcache_xfree): New function.
6370 * regcache.h (make_cleanup_regcache_xfree): Declare.
6372 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6374 * event-top.c (command_line_handler): Don't read past
6375 beginning of buffer.
6377 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6379 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6381 (varobj_create): Store frame_id for root.
6382 (varobj_gen_name): Use xasprintf.
6383 (varobj_update): Save and restore frame using get_frame_id() and
6385 (create_child): Use xasprintf.
6386 (new_root_variable): Initialize frame_id.
6387 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6388 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6389 to prevent memory leak.
6391 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6393 * valops.c (hand_function_call): Move declaration of retbuf to
6394 start of function, allocate using malloc, add a cleanup but before
6395 the inf_status cleanup, cleanup the buffer. Rename local variable
6396 old_chain to inf_status_cleanup.
6398 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6400 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6402 * cli/cli-decode.c (cmd_func_p): New function.
6403 (cmd_func): New function.
6405 * command.h: Add cmd_func() and cmd_func_p().
6407 2002-07-03 Grace Sainsbury <graces@redhat.com>
6409 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6410 (REGISTER_SIZE): Remove.
6411 (MAX_REGISTER_RAW_SIZE): Remove.
6412 (REGISTER_VIRTUAL_TYPE): Remove.
6413 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6414 (REGISTER_NAME): Remove.
6415 (USE_GENERIC_DUMMY_FRAMES): Remove.
6416 (CALL_DUMMY): Remove.
6417 (CALL_DUMMY_START_OFFSET): Remove.
6418 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6419 (CALL_DUMMY_LOCATION): Remove.
6420 (FIX_CALL_DUMMY): Remove.
6421 (CALL_DUMMY_ADDRESS): Remove.
6422 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6423 (SAVE_DUMMY_FRAME_TOS): Remove.
6424 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6425 (mcore_register_virtual_type): New function.
6426 (mcore_register_byte): New function.
6427 (mcore_register_size): New function.
6428 (mcore_register_name): New function.
6429 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6430 macros removed from tm-mcore.h.
6431 (mcore_dump_tdep): Add.
6432 (_initialize_mcore_tdep): Add gdbarch_register call.
6434 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6436 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6437 frameless_look_for_prologue, such that we actually call this
6440 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6442 * frame.h (frame_address_in_block): New function.
6444 * blockframe.c (frame_address_in_block): New function extracted
6445 from get_frame_block().
6446 (get_frame_block): Use frame_address_in_block().
6447 (block_innermost_frame): Use frame_address_in_block() to match
6448 the frame pc address against the block boundaries rather than
6449 the frame pc directly. This prevents a failure when a frame pc
6450 is actually a return-address pointing immediately after the end
6453 2002-07-02 Grace Sainsbury <graces@redhat.com>
6455 * MAINTAINERS: Add self under write after approval.
6457 2002-07-02 Grace Sainsbury <graces@redhat.com>
6459 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6460 used in architecture vector. The default is
6461 m68k_local_breakpoint_from_pc.
6462 (m68k_local_breakpoint_from_pc): Add.
6463 (enum): Add register numbers from tm-m68k.h.
6464 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6466 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6467 GDB_MULTI_ARCH_PARTIAL.
6468 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6469 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6471 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6472 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6473 to enum in m68k-tdep.c
6475 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6477 * solib-osf.c (open_map): Compute the list of shared libraries
6478 loaded by the inferior, rather than the list of libraries loaded
6479 by GDB itself. Otherwise, GDB ends up reading the symbols from
6480 the wrong shared libraries...
6482 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6484 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6485 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6487 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6489 (FRAMELESS_SIGNAL): Remove function.
6490 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6491 i386_linux_saved_pc_after_call): Removed.
6492 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6493 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6494 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6496 * i386-tdep.c (i386_frameless_signal_p): New function.
6497 (i386_frame_chain): Deal with frameless signals.
6498 (i386_sigtramp_saved_sp): New function.
6499 (i386_frame_saved_pc): Deal with frameless signals.
6500 (i386_saved_pc_after_call): Make sure the correct value is
6501 returned just after entry into a sigtramp.
6502 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6503 i386fbsd4_sc_sp_offset): New variables.
6504 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6505 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6506 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6507 similiar to what we already did for sc_pc_offset.
6508 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6511 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6513 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6515 * config/i386/tm-x86-64linux.h: New.
6516 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6518 * config/i386/nm-x86-64.h: Rename to ...
6519 * config/i386/nm-x86-64linux.h: ... this one.
6520 * config/i386/x86-64linux.mh: Reflect the above change.
6522 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6524 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6525 with sigcontext_addr. Add sc_sp_offset.
6526 (i386bsd_sigtramp_saved_pc): Remove prototype.
6527 (i386bsd_sicontext_addr): Add prototype.
6528 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6529 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6530 (i386_svr4_sigtramp_saved_pc): Removed.
6531 (i386_svr4_sigcontext_addr): New function.
6532 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6533 Initialize tdep->sigcontext_addr instead. Initialize
6534 tdep->sc_pc_offset and tdep->sc_sp_offset.
6535 (i386_gdbarch_init): Likewise.
6536 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6538 (i386bsd_sigtramp_saved_pc): Remove function.
6539 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6540 Initialize tdep->sigcontext_addr instead. Initialize
6542 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6543 of tdep->sigtramp_saved_pc.
6544 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6545 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6548 * i386-tdep.c (i386_frameless_function_invocation,
6549 i386_frame_num_args, i386_frame_init_saved_regs,
6550 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6551 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6552 i386_extract_return_value, i386_store_return_value,
6553 i386_extract_struct_value_address, i386_register_virtual_type,
6554 i386_register_convertible, i386_register_convert_to_virtual,
6555 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6556 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6559 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6561 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6563 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6564 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6565 this macro. Include "value.h".
6567 2002-06-30 Aidan Skinner <aidan@velvet.net>
6569 * ada-exp.tab.c: remove as it's a generated file
6570 * ada-lex.c: remove as it's a generated file
6572 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6574 * config/i386/tm-i386.h (struct frame_info, struct
6575 frame_saved_regs, struct value, struct type): Remove forward
6578 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6579 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6580 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6581 (FILL_FPXREGSET): Define.
6583 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6585 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6586 i[3456]86-*-netbsd* case.
6587 * config/i386/tm-obsd.h: Removed.
6588 * config/i386/obsd.mt: Removed.
6589 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6591 (MH_CFLAGS): Add -DYYDEBUG=0.
6593 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6594 i386nbsd_sc_pc_offset on OpenBSD too.
6596 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6597 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6598 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6600 * i386bsd-tdep.c: Include "arch-utils.h".
6601 (i386bsd_aout_in_solib_call_trampoline): New function.
6602 (i386bsd_init_abi): Set in_solib_call_trampoline to
6603 i386bsd_aout_in_solib_call_trampoline.
6604 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6605 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6607 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6609 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6610 (struct obstack, struct bcache): Add opaque declarations.
6611 * Makefile.in (macrotab_h): Update
6613 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6615 * blockframe.c (generic_find_dummy_frame): Change return type to
6616 ``struct regcache''.
6617 (struct dummy_frame): Replace field ``registers'' with regcache, a
6618 struct regcache object.
6619 (generic_find_dummy_frame): Update.
6620 (generic_push_dummy_frame): Update. Use regcache_xfree,
6621 regcache_xmalloc and regcache_cpy.
6622 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6624 (deprecated_generic_find_dummy_frame): Update.
6625 (generic_read_register_dummy): Update. Use
6626 regcache_read_as_address.
6627 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6628 (generic_get_saved_register): Update. Use regcache_read.
6630 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6632 * Makefile.in (objfiles_h): Add $(bcache_h).
6633 * objfiles.h: Include "bcache.h".
6635 * Makefile.in (symtab_h): Remove $(bcache_h).
6636 * symtab.h: Do not include "bcache.h".
6638 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6640 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6641 generic_func_frame_chain_valid.
6643 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6645 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6646 * config/i386/tm-fbsd.h: Likewise.
6648 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6650 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6651 generic_unwind_get_saved_register.
6653 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6655 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6656 * regcache.c (supply_register): Add missing argument to
6657 register_buffer call.
6659 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6661 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6662 Solaris /bin/grep does not not like it. From Peter Schauer.
6664 2002-06-26 Tom Tromey <tromey@redhat.com>
6666 * command.h (add_setshow_cmd): Declare.
6667 (add_setshow_cmd_full): Declare.
6668 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6669 returns void. Use add_setshow_cmd_full.
6670 (add_setshow_cmd_full): New function.
6671 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6672 (add_setshow_boolean_cmd): Likewise.
6674 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6676 * config/vax/tm-vax.h: Protect from multiple inclusion.
6677 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6678 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6679 * config/vax/tm-vaxbsd.h: ...here. New file.
6680 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6682 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6684 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6685 (BELIEVE_PCC_PROMOTION): Remove.
6686 (AP_REGNUM): Move to...
6687 * config/vax/nm-vax.h: ...here.
6688 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6689 (vax_breakpoint_from_pc): New function.
6690 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6691 and gdbarch_believe_pcc_promotion.
6693 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6695 * Makefile.in (vax_tdep_h): Define.
6696 (vax-tdep.o): Use $(vax_tdep_h).
6697 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6698 (vax_dump_tdep): New function.
6699 (_initialize_vax_tdep): Register vax_dump_tdep.
6700 * vax-tdep.h: Include osabi.h.
6701 (struct gdbarch_tdep): New.
6703 2002-06-26 Andrew Cagney <cagney@redhat.com>
6705 * frame.h (deprecated_generic_find_dummy_frame): Rename
6706 generic_find_dummy_frame.
6707 * blockframe.c (generic_find_dummy_frame): Make static.
6708 (deprecated_generic_find_dummy_frame): New function.
6709 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6710 generic_find_dummy_frame with deprecated_find_dummy_frame.
6711 (sh64_nofp_frame_init_saved_regs): Ditto.
6712 (sh_fp_frame_init_saved_regs): Ditto.
6713 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6714 (s390_frame_chain): Ditto.
6715 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6717 2002-06-26 Grace Sainsbury <graces@redhat.com>
6719 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6720 gdbarch vector are at the top.
6722 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6723 (FRAME_ARGS_ADDRESS): Remove.
6724 (FRAME_LOCALS_ADDRESS): Remove.
6725 (FRAME_NUM_ARGS): Remove.
6726 (FRAME_ARGS_SKIP): Remove.
6727 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6728 (m68k_gdbarch_init): Add gdbarch initializations for macros
6729 undefined in tm-m68k.h
6731 2002-06-26 Grace Sainsbury <graces@redhat.com>
6733 * monitor.h: Add the function regname to monitor_ops
6734 structure. This way NUM_REGS does not have to be a constant.
6735 * monitor.c (monitor_fetch_register): Added support for regname
6736 function. The function is called if the array regnames is NULL.
6737 (monitor_store_register): Same.
6738 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6740 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6741 cpu32bug_cmds.regname to point to new function.
6742 * abug-rom.c (abug_regname): Same as above.
6743 (init_abug_cmds): Same.
6744 * dbug-rom.c (dbug_regname): Same as above.
6745 (init_dbug_cmds): Same.
6746 * remote-est.c (est_regname): Same.
6747 (init_est_cmds): Same.
6748 * rom68k-rom.c (rom68k_regname): Same.
6749 (init_rom68k_cmds): Same.
6751 2002-06-25 Tom Tromey <tromey@redhat.com>
6753 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6755 2002-06-25 Andrew Cagney <cagney@redhat.com>
6757 * infrun.c (stop_registers): Change variable's type to ``struct
6759 (xmalloc_inferior_status): Delete function.
6760 (free_inferior_status): Delete function.
6761 (normal_stop): Use regcache_cpy.
6762 (struct inferior_status): Change type of fields ``stop_registers''
6763 and ``registers'' to ``struct regcache''.
6764 (write_inferior_status_register): Use regcache_write.
6765 (save_inferior_status): Instead of calling
6766 xmalloc_inferior_status, allocate the inf_status buffer directly.
6767 Use regcache_dup_no_passthrough and regcache_dup to save the
6769 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6770 Replace the stop_registers regcache instead of overriding it. Use
6771 regcache_xfree. Instead of calling free_inferior_status, xfree
6772 the buffer directly.
6773 (discard_inferior_status): Use regcache_xfree. Instead of calling
6774 free_inferior_status, xfree the buffer directly.
6775 (build_infrun): Use regcache_xmalloc.
6776 (_initialize_infrun): Delete redundant call to build_infrun.
6778 * Makefile.in (infcmd.o): Add $(regcache_h).
6780 * infcmd.c: Include "regcache.h".
6781 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6782 obtain the address of `stop_registers' register buffer.
6783 (print_return_value): Ditto.
6785 * inferior.h (struct regcache): Add opaque declaration.
6786 (stop_registers): Change variable's declared type to ``struct
6789 2002-06-24 Tom Tromey <tromey@redhat.com>
6791 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6792 * target.c (initialize_targets): Fixed typo in
6793 trust-readonly-sections `show' documentation.
6795 * main.c: Marked all strings with _().
6797 2002-06-24 Don Howard <dhoward@redhat.com>
6799 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6800 that means max CORE_ADDR+1.
6801 (lookup_mem_region): Ditto.
6802 (mem_info_command): Ditto.
6804 2002-06-24 Grace Sainsbury <graces@redhat.com>
6806 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6807 (REGISTER_BYTES_OK): Remove.
6808 (REGISTER_BYTES): Remove.
6809 (STORE_STRUCT_RETURN): Remove.
6810 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6811 (STORE_RETURN_VALUE): Remove.
6812 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6813 (FRAME_CHAIN): Remove.
6814 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6815 (FRAME_SAVED_PC): Remove.
6816 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6817 (m68k_store_struct_return): Add.
6818 (m68k_deprecated_extract_return_value): Add.
6819 (m68k_deprecated_extract_struct_value_address): Add.
6820 (m68k_store_return_value): Add.
6821 (m68k_frame_chain): Add.
6822 (m68k_frameless_function_invocation): Add.
6823 (m68k_frame_saved_pc): Add.
6824 (m68k_gdbarch_init): added set_gdbarch calls for new
6825 functions and deleted macros.
6827 2002-06-23 Tom Tromey <tromey@redhat.com>
6829 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6830 (ALLDEPFILES): Likewise.
6831 (udiheaders): Removed.
6832 (udip2soc.o): Likewise.
6833 (udi2go32.o): Likewise.
6835 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6837 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6839 * infrun.c (_initialize_infrun): Delete unnecessary call to
6842 * regcache.h: Update comments describing the regcache_cpy family
6844 (regcache_save, regcache_restore): Delete declaration.
6845 (regcache_save_no_passthrough): Delete declaration.
6846 (regcache_restore_no_passthrough): Delete declaration.
6847 * regcache.c (regcache_save): Delete function.
6848 (regcache_save_no_passthrough): Delete function.
6849 (regcache_restore): Delete function.
6850 (regcache_restore_no_passthrough): Delete function.
6852 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6854 * config/m68k/tm-m68k.h: Fix typo.
6855 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6856 (m68k_frame_init_saved_regs): Declare.
6858 2002-06-21 Jim Blandy <jimb@redhat.com>
6860 Remove some vestiges of Harris 88k support.
6861 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6862 register numbering quirk.
6863 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6864 odd symbols occurring in Harris 88k ELF targets.
6866 2002-06-21 Tom Tromey <tromey@redhat.com>
6868 * gdb_locale.h: New file.
6869 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6870 (defs_h): Added gdb_locale.h.
6871 * configure, config.in: Rebuilt.
6872 * configure.in (PACKAGE): Define.
6873 * defs.h: Include gdb_locale.h.
6874 * main.c (captured_main): Call setlocale, bindtextdomain,
6877 2002-06-21 Dave Brolley <brolley@redhat.com>
6879 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6880 * config/frv/frv.mt: New file.
6881 * config/frv/tm-frv.h: New file.
6882 * configure.tgt: Support frv-*-*.
6883 * Makefile.in (frv-tdep.o): New target.
6884 * frv-tdep.c: New file.
6885 * NEWS: Mention frv.
6887 2002-06-21 Dave Brolley <brolley@redhat.com>
6889 * MAINTAINERS: Add self to "Write After Approval" list.
6891 2002-06-21 Grace Sainsbury <graces@redhat.com>
6893 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6894 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6895 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6896 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6897 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6899 * m68k-tdep.c: Include arch-utils.h
6900 (m68k_register_raw_size): Add.
6901 (m68k_register_virtual_size): Add.
6902 (m68k_register_virtual_type): Add.
6903 (m68k_register_name): Add.
6904 (m68k_stack_align): Add.
6905 (m68k_register_byte): Add.
6906 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6909 2002-06-21 Grace Sainsbury <graces@redhat.com>
6911 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6912 m68k_find_saved_regs.
6913 (m68k_pop_frame): Removed saved_regs structure, and replaced
6914 references to it with frame->saved_regs.
6915 (m68k_gdbarch_init): Added function calls to initialize the
6917 (m68k_fix_call_dummy): Add.
6918 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6919 (CALL_DUMMY): Remove.
6920 (CALL_DUMMY_LENGTH): Remove.
6921 (CALL_DUMMY_START_OFFSET): Remove.
6922 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6923 (FIX_CALL_DUMMY): Remove.
6924 (PUSH_DUMMY_FRAME): Remove.
6925 (POP_FRAME): Remove.
6927 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6929 * parse.c (parse_fprintf): New function used to avoid calls to
6930 fprintf in bison parser generated debug code.
6931 * parser-defs.h: Declaration of new parse_fprintf function.
6932 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6933 Set YYDEBUG to 1 by default.
6934 Set YYFPRINTF as parse_fprintf.
6936 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6938 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6940 (pointer_encoding, enum ptr_encoding): New.
6941 (execute_cfa_program): Take care about pointer encoding.
6942 (dwarf2_build_frame_info): Only call parse_frame_info for
6943 .debug_frame and .eh_frame.
6944 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6945 fixed augmentation handling, added relative addressing,
6946 ignore duplicate FDEs. Added comments.
6947 * dwarf2cfi.c: Reindented.
6949 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6951 * event-top.c (command_handler): Don't use space_at_cmd_start
6952 unless there is sbrk() on the host. Assign time and space data
6953 to union fields of the appropriate length.
6955 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6957 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6958 x86_64_register_name. Return type changed to 'const char *'.
6959 (x86_64_register_name2nr): Rename to x86_64_register_number.
6960 (x86_64_gdbarch_init): Update to reflect the change.
6961 * x86-64-tdep.h: Ditto.
6962 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6963 (supply_fpregset): Ditto.
6965 2002-06-19 Andrew Cagney <cagney@redhat.com>
6967 * regcache.h: Update copyright.
6968 (struct regcache, struct gdbarch): Add opaque declarations.
6969 (current_regcache): Declare global variable.
6970 (regcache_read, regcache_write): Add gdbarch parameter.
6971 (regcache_save, regcache_save_no_passthrough)
6972 (regcache_restore, regcache_restore_no_passthrough)
6973 (regcache_dup, regcache_dup_no_passthrough)
6974 (regcache_cpy, regcache_cpy_no_passthrough)
6975 (deprecated_grub_regcache_for_registers)
6976 (deprecated_grub_regcache_for_register_valid)
6977 (regcache_valid_p): Add function declarations.
6979 * regcache.c: Update copyright.
6980 (regcache_descr_handle): New global variable.
6981 (struct regcache_descr): Define.
6982 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6983 (regcache_descr, xfree_regcache_descr): New functions.
6984 (struct regcache): Define.
6985 (regcache_xmalloc, regcache_xfree): New functions.
6986 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6987 (regcache_dup, regcache_dup_no_passthrough): New functions.
6988 (regcache_valid_p, regcache_read_as_address): New functions.
6989 (deprecated_grub_regcache_for_registers): New function.
6990 (deprecated_grub_regcache_for_register_valid): New function.
6991 (current_regcache): New global variable.
6992 (register_buffer): Add regcache parameter. Update calls.
6993 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6994 (read_register_gen, write_register_gen): Update register_buffer
6995 call. Test for legacy_p instead of gdbarch_register_read_p or
6996 gdbarch_register_write_p.
6997 (regcache_collect): Update register_buffer call.
6998 (build_regcache): Rewrite. Use deprecated grub functions.
6999 (regcache_save, regcache_save_no_passthrough): New functions.
7000 (regcache_restore, regcache_restore_no_passthrough): New
7002 (_initialize_regcache): Create the regcache_data_handle. Swap
7003 current_regcache global variable.
7005 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7006 parameter to regcache_read and regcache_write calls.
7007 (sh4_register_read): Ditto.
7008 (sh64_pseudo_register_read): Ditto.
7009 (sh64_register_read): Ditto.
7010 (sh_pseudo_register_write): Ditto.
7011 (sh4_register_write): Ditto.
7012 (sh64_pseudo_register_write): Ditto.
7013 (sh64_register_write): Ditto.
7015 * defs.h (XCALLOC): Define.
7017 2002-06-19 Grace Sainsbury <graces@redhat.com>
7019 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7020 * m68k-tdep.c (m68k_gdbarch_init): Added.
7021 (m68k_dump_tdep): Added.
7023 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7025 * ada-lang.c (fill_in_ada_prototype): Update comment.
7027 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7029 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7031 (mips_abi_string, mips_abi_strings): New.
7032 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7033 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7034 tdep->mips_abi_string. Honor mips_abi_string. Default to
7035 O32 if no ABI is found.
7036 (mips_dump_tdep): Use mips_abi_strings.
7037 (mips_abi_update): New function.
7038 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7039 ``set mips abi'' and ``show mips abi''. Check the size of
7042 2002-06-19 Andrew Cagney <cagney@redhat.com>
7044 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7047 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7049 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7050 current frame using only the first stack size adjustment. All
7051 subsequent size adjustments are not considered to be part of
7052 the "static" part of the current frame.
7053 Compute the address of the saved registers relative to the
7054 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7055 in use in this frame.
7057 2002-06-18 Don Howard <dhoward@redhat.com>
7059 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7060 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7061 suggesting this solution.
7063 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7065 * config/romp/xm-rtbsd.h: Delete file.
7066 * config/romp/rtbsd.mh: Delete file.
7068 2002-06-18 Keith Seitz <keiths@redhat.com>
7070 * breakpoint.c (condition_command): Post breakpoint_modify
7071 when a condition is added to an existing breakpoint.
7072 (commands_command): Likewise for commands.
7073 (set_ignore_count): Likewise for ignore counts.
7074 If no tty, do not simply return, still need to send event
7076 (ignore_command): Only print a newline if the command came
7078 Don't call breakpoints_changed, since this is now properly
7079 handled by set_ignore_count.
7081 2002-06-18 Andrew Cagney <cagney@redhat.com>
7083 * MAINTAINERS: Note that cris-elf target can be compiled with
7085 * cris-tdep.c (cris_register_name): Make return type constant.
7086 (cris_breakpoint_from_pc): Ditto.
7088 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7090 * frame.h (struct frame_info): Change type of context to
7093 2002-06-17 Andrew Cagney <cagney@redhat.com>
7095 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7097 * gdbarch.h, gdbarch.c: Regenerate.
7098 * config/mips/tm-mips.h (mips_register_name): Update.
7099 * i386-tdep.h (i386_register_name): Update.
7100 * mips-tdep.c (mips_register_name): Update
7101 * alpha-tdep.c (alpha_register_name): Update.
7102 * arch-utils.c (legacy_register_name): Update.
7103 * arch-utils.h (legacy_register_name): Update.
7104 * avr-tdep.c (avr_register_name): Update.
7105 * ia64-tdep.c (ia64_register_name): Update.
7106 * i386-tdep.c (i386_register_name): Update.
7107 * sparc-tdep.c (sparc32_register_name): Update.
7108 (sparc64_register_name): Update.
7109 (sparclite_register_name): Update.
7110 (sparclet_register_name): Update.
7111 * sh-tdep.c (sh_generic_register_name): Update.
7112 (sh_sh_register_name): Update.
7113 (sh_sh3_register_name): Update.
7114 (sh_sh3e_register_name): Update.
7115 (sh_sh_dsp_register_name): Update.
7116 (sh_sh3_dsp_register_name): Update.
7117 (sh_sh4_register_name): Update.
7118 (sh_sh64_register_name): Update.
7119 * s390-tdep.c (s390_register_name): Update.
7120 * rs6000-tdep.c (rs6000_register_name): Update.
7121 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7122 (ns32k_register_name_32382): Update.
7123 * d10v-tdep.c (d10v_ts2_register_name): Update.
7124 (d10v_ts3_register_name): Update.
7125 * xstormy16-tdep.c (xstormy16_register_name): Update.
7126 * vax-tdep.c (vax_register_name): Update.
7127 * v850-tdep.c (v850_register_name): Update.
7128 * m68hc11-tdep.c (m68hc11_register_name): Update.
7129 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7130 (am33_register_name): Update.
7132 2002-06-17 Grace Sainsbury <graces@redhat.com>
7134 * m68k-tdep.c: Reindented.
7136 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7138 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7139 list of predefined types.
7141 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7143 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7144 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7145 REGISTER_CONVERT_TO_RAW): Remove defines.
7146 (i386_register_virtual_type, i386_register_convertible,
7147 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7149 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7150 macros mentioned above.
7152 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7153 (i386lynx_saved_pc_after_call): Remove prototype.
7154 * i386ly-tdep.c: Include "i386-tdep.h".
7155 (i386lynx_saved_pc_after_call): Make static. Use
7156 read_memory_nobpt instead of read_memory. Use
7157 read_memory_unsigned_integer instead of read_memory_integer.
7158 (i386lynx_init_abi): New function.
7159 (i386lynx_coff_osabi_sniffer): New function.
7160 (_initialize_i386bsd_tdep): New function.
7162 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7163 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7164 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7165 (i386_fix_call_dummy): Remove prototype.
7166 * i386-tdep.c (i386_call_dummy_words): New variable.
7167 (i386_gdbarch_init): Adjust for removal of the
7168 macros mentioned above.
7170 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7172 * command.h (add_setshow_auto_boolean_cmd): Replace
7173 add_set_auto_boolean_cmd.
7174 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7175 add_set_auto_boolean_cmd.
7176 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7177 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7178 mask-address'' command.
7179 (show_mask_address): Add cmd parameter.
7180 * remote.c (add_packet_config_cmd): Update. Change type of
7181 set_func and show_func to cmd_sfunc_ftype.
7182 (_initialize_remote): Update `set remote Z-packet'
7183 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7184 (show_remote_protocol_e_packet_cmd): Ditto.
7185 (show_remote_protocol_E_packet_cmd): Ditto.
7186 (show_remote_protocol_P_packet_cmd): Ditto.
7187 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7188 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7189 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7190 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7191 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7192 (show_remote_protocol_Z_packet_cmd): Ditto.
7193 (show_remote_protocol_binary_download_cmd): Ditto.
7194 (show_remote_cmd): Pass NULL to all of above.
7196 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7198 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7199 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7200 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7201 POP_FRAME): Remove defines.
7202 (i386_push_arguments, i386_store_struct_return,
7203 i386_extract_return_value, i386_store_return_value,
7204 i386_extract_struct_value_address, i386_push_dummy_frame,
7205 i386_pop_frame): Renove prototypes.
7206 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7207 macros mentioned above.
7209 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7211 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7212 add_set_boolean_cmd.
7213 (add_setshow_cmd): New function.
7214 * command.h (add_setshow_boolean_cmd): Replace
7215 add_set_boolean_cmd.
7216 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7217 and ``set rdiromatzero''.
7218 * maint.c (_initialize_maint_cmds): Update commented out code.
7219 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7220 * target.c (initialize_targets): Update `set
7221 trust-readonly-sections'.
7222 * remote.c (_initialize_remote): Update `set remotebreak'.
7224 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7226 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7227 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7228 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7229 fit into multi-arch framework.
7230 (i386_breakpoint_from_pc): New function.
7231 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7234 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7235 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7236 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7237 (i386_frameless_function_invocation, i386_frame_num_args,
7238 i386_frame_init_saved_regs): Remove prototypes.
7239 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7240 macros mentioned above.
7242 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7244 * cli/cli-decode.c (set_cmd_cfunc): Update.
7245 (set_cmd_sfunc): Update.
7246 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7247 (set_cmd_sfunc, set_cmd_cfunc): Update.
7248 * cli/cli-decode.h: Update.
7250 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7252 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7253 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7255 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7257 * defs.h (auto_boolean): Declare enum.
7258 * command.h (cmd_auto_boolean): Delete enum.
7259 * mips-tdep.c (mask_address_var): Update.
7260 (mips_mask_address_p): Update.
7261 (show_mask_address): Update.
7262 * remote.c (struct packet_config): Update.
7263 (update_packet_config): Update.
7264 (show_packet_config_cmd): Update.
7265 (packet_ok): Update.
7266 (add_packet_config_cmd): Update.
7267 (_initialize_remote):
7268 * command.h: Update.
7269 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7270 (do_setshow_command): Update.
7271 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7272 * cli/cli-decode.h: Update.
7274 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7276 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7277 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7278 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7279 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7280 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7281 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7283 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7284 list of DJGPP COFF targets.
7286 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7287 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7288 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7289 (FP0_REGNUM): Remove define.
7290 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7291 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7292 (i386_register_virtual_size): Remove protoype.
7293 * i386-tdep.c (i386_register_virtual_size): Removed.
7294 (i386_extract_return_value, i386_store_return_value): Use
7295 FP0_REGNUM instead of NUM_FREGS to determine whether the
7296 floating-point registers are available.
7297 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7298 Adjust for removal of macros mentioned above.
7300 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7302 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7304 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7306 (supply_gregset, fill_gregset): Remove use of register keyword and
7307 remove declaration for regmap. Use I386_NUM_GREGS instead of
7308 NUM_REGS and NUM_FREGS.
7309 (FPREGSET_FSAVE_OFFSET): Remove.
7310 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7311 NUM_FREGS to determine whether the floating-point registers are
7314 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7315 gnu_store_registers): Replace usage of NUM_GREGS with
7318 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7319 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7320 usage of NUM_GREGS with I386_NUM_GREGS.
7322 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7324 * i386bsd-nat.c: Include "i386-tdep.h".
7325 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7328 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7329 and associated comment. They no longer make any sense, since we
7330 don't use this file anymore on Linux.
7332 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7333 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7334 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7335 elements in these arrays.
7336 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7339 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7341 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7342 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7344 2002-06-14 Andrew Cagney <cagney@redhat.com>
7346 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7347 EXTRACT_RETURN_VALUE.
7348 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7349 EXTRACT_STRUCT_VALUE_ADDRESS.
7350 * gdbarch.h, gdbarch.c: Regenerate.
7352 * values.c (value_being_returned): Handle
7353 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7354 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7356 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7357 * arm-tdep.c (arm_gdbarch_init): Update.
7358 * avr-tdep.c (avr_gdbarch_init): Update.
7359 * cris-tdep.c (cris_gdbarch_init): Update.
7360 * d10v-tdep.c (d10v_gdbarch_init): Update.
7361 * ia64-tdep.c (ia64_gdbarch_init): Update.
7362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7364 * s390-tdep.c (s390_gdbarch_init): Update.
7365 * sh-tdep.c (sh_gdbarch_init): Update.
7366 * s390-tdep.c (s390_gdbarch_init): Update.
7367 * sparc-tdep.c (sparc_gdbarch_init): Update.
7368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7369 * v850-tdep.c (v850_gdbarch_init): Update.
7370 * vax-tdep.c (vax_gdbarch_init): Update.
7371 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7374 * config/arc/tm-arc.h: Update.
7375 * config/d30v/tm-d30v.h: Update.
7376 * config/fr30/tm-fr30.h: Update.
7377 * config/h8300/tm-h8300.h: Update.
7378 * config/h8500/tm-h8500.h: Update.
7379 * config/i386/tm-i386.h: Update.
7380 * config/i386/tm-ptx.h: Update.
7381 * config/i386/tm-symmetry.h: Update.
7382 * config/i960/tm-i960.h: Update.
7383 * config/m32r/tm-m32r.h: Update.
7384 * config/m68k/tm-delta68.h: Update.
7385 * config/m68k/tm-linux.h: Update.
7386 * config/m68k/tm-m68k.h: Update.
7387 * config/m88k/tm-m88k.h: Update.
7388 * config/mcore/tm-mcore.h: Update.
7389 * config/mips/tm-mips.h: Update.
7390 * config/mn10200/tm-mn10200.h: Update.
7391 * config/pa/tm-hppa.h: Update.
7392 * config/pa/tm-hppa64.h: Update.
7393 * config/sparc/tm-sp64.h: Update.
7394 * config/sparc/tm-sparc.h: Update.
7395 * config/sparc/tm-sparclet.h: Update.
7396 * config/z8k/tm-z8k.h: Update.
7398 2002-06-14 Andrew Cagney <cagney@redhat.com>
7400 * Makefile.in (i386_linux_tdep_h): Define.
7401 (i386_tdep_h, i387_tdep_h): Define.
7402 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7403 $(i386_tdep_h) and $(i387_tdep_h).
7404 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7406 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7408 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7409 Already covered by the default.
7411 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7412 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7413 (i386_gdbarch_init): Initialize long_double_format and long_double
7416 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7417 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7419 * config/i386/i386sol2.mh: ... here.
7420 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7421 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7422 (SIGCONTEXT_PC_OFFSET): Remove define.
7423 (IN_SIGTRAMP): Remove define.
7424 * i386-sol2-tdep.c: New file.
7426 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7427 * config/i386/tm-i386nw.h: Removed.
7429 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7430 USE_STRUCT_CONVENTION): Remove defines.
7431 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7432 (get_longjmp_target): Remove prototype.
7433 (IN_SIGTRAMP): Remove define.
7434 (i386bsd_in_sigtramp): Remove prototype.
7435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7436 function. Update comment accordingly
7437 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7438 (FRAME_SAVED_PC): Remove define.
7439 (i386bsd_frame_saved_pc): Remove prototype.
7440 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7441 GET_LONGJMP_TARGET): Remove defines.
7442 (get_longjmp_target): Remove prototype.
7443 (IN_SIGTRAMP): Remove define.
7444 (i386bsd_in_sigtramp): Remove prototype.
7445 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7446 function. Update comment accordingly
7447 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7448 (FRAME_SAVED_PC): Remove define.
7449 (i386bsd_frame_saved_pc): Remove prototype.
7450 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7452 (USE_STRUCT_CONVENTION): Remove prototype.
7453 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7455 (_initialize_i386bsd_nat): Revise logic to determine some
7456 constants at compile time when compiling a native GDB. Warn if
7457 things don't match up with what we expect.
7458 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7460 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7461 to use date stored in `struct gdbarch_tdep'.
7462 (i386bsd_sigcontext_offset): Remove varaible.
7463 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7464 stored in `struct gdbarch_tdep'.
7465 (i386bsd_frame_saved_pc): Make static.
7466 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7467 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7468 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7469 i386fbsd4_sc_pc_offset): New variables.
7470 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7471 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7473 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7475 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7476 Modify the value of i386fbsd_sigtramp_start and
7477 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7478 i386fbsd_sigtramp_end.
7479 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7482 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7483 define to i386-linux-tdep.h.
7484 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7485 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7487 (i386_linux_register_name, i386_linux_register_byte,
7488 i386_linux_register_raw_size): Remove prototypes.
7489 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7490 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7491 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7492 TARGET_WRITE_PC): Remove defines.
7493 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7494 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7495 i386_linux_write_pc): Remove prototypes.
7496 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7497 (get_longjmp_target): Remove prototype.
7498 * i386-linux-tdep.h: New file.
7499 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7500 * i386-linux-tdep.c: Include "i386-tdep.h" and
7501 "i386-linux-tdep.h".
7502 (i386_linux_register_name, i386_linux_register_byte,
7503 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7504 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7506 (i386_linux_init_abi): New function.
7507 (_initialize_i386_linux_tdep): New function.
7509 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7510 (i386_saved_pc_after_call): Remove prototype.
7511 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7512 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7513 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7514 (i386_register_name, i386_stab_reg_to_regnum,
7515 i386_dwarf_reg_to_regnum): Remove prototypes.
7516 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7517 SIZEOF_SSE_REGS): Remove defines.
7518 (REGISTER_BYTES): Remove define.
7519 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7520 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7521 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7522 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7523 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7524 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7525 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7526 (get_longjmp_target): Remove prototype.
7527 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7528 (sigtramp_saved_pc): Remove define.
7529 (i386v4_sigtramp_saved_pc): Remove prototype.
7530 * config/i386/tm-go32.h (FRAME_CHAIN,
7531 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7532 (i386go32_frame_saved_pc): Remove prototype.
7533 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7534 (get_longjmp_target): Remove prototype.
7535 * i386-tdep.h: Include "osabi.h".
7536 (enum i386_abi): Removed.
7537 (enum struct_return): New enum.
7538 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7539 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7540 sc_pc_offset members.
7541 (i386_gdbarch_register_os_abi): Remove prototype.
7542 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7543 I386_SSE_NUM_REGS): New defines.
7544 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7545 I386_SSE_SIZEOF_REGS): New defines.
7546 (i386_register_name, i386_register_byte, i386_register_raw_size):
7548 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7549 (i386bsd_sigtramp_saved_pc): New prototype.
7550 * i386-tdep.c: Don't include "elf-bfd.h".
7551 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7552 i386_frame_chain, i386_saved_pc_after_call): Make static.
7553 (i386_frame_saved_pc): Rewrite to call architecture dependent
7554 function to deal with signal handlers. Make static.
7555 (i386go32_frame_saved_pc): Removed.
7556 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7558 (i386_get_longjmp_target): New function.
7559 (default_struct_convention, pcc_struct_convention,
7560 reg_struct_convention, valid_conventions, struct_convention): New
7562 (i386_use_struct_convention): New function.
7563 (i386v4_sigtramp_saved_pc): Renamed to
7564 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7565 (i386_pc_in_sigtramp): New function.
7566 (i386_abi_names): Removed.
7567 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7568 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7570 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7571 i386_gdbarch_register_os_abi): Removed.
7572 (struct i386_abi_handler): Removed.
7573 (i386_abi_handler_list): Removed.
7574 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7576 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7577 i386_nw_init_abi): New functions.
7578 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7579 Use set_gdbarch_xxx() calls instead of relying on macros for a
7581 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7582 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7583 Register the various architecture variants defined in this file.
7585 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7587 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7588 (struct main_type): Remove arg_types member. Update comments for
7590 (TYPE_ARG_TYPES): Remove.
7591 (TYPE_FN_FIELD_ARGS): Update.
7592 (smash_to_method_type): Update prototype.
7594 * c-typeprint.c (cp_type_print_method_args): Take method type
7595 instead of argument list. Use new argument layout. Simplify.
7596 (c_type_print_args): Use new argument layout. Simplify.
7597 (c_type_print_base): Update call to cp_type_print_method_args.
7598 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7599 argument; use die->type instead. Update call to
7600 smash_to_method_type.
7601 (read_structure_scope): Update call to dwarf2_add_member_fn.
7602 * gdbtypes.c (allocate_stub_method): Update comment.
7603 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7604 Use new argument layout.
7605 (check_stub_method): Use new argument layout. Don't count
7606 void as an argument.
7607 (print_arg_types): Update comments. Use new argument layout.
7608 (recursive_dump_type): Don't print arg_types member.
7609 * hpread.c (hpread_read_struct_type): Use new argument layout.
7610 (fixup_class_method_type): Likewise.
7611 (hpread_type_lookup): Likewise.
7612 * stabsread.c (read_type): Update calls to read_args and
7613 smash_to_method_type.
7614 (read_args): Use new argument layout. Simplify.
7615 * valops.c (typecmp): Use new argument layout. Update parameters
7616 and comments. Simplify.
7617 (hand_function_call): Use new argument layout.
7618 (search_struct_method): Update call to typecmp.
7619 (find_overload_match): Use new argument layout.
7621 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7623 * NEWS: Mention multithreaded debug support for gdbserver.
7625 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7627 * MAINTAINERS: Mention NEWS.
7629 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7631 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7632 (struct mips_objfile_private, compare_pdr_entries): New.
7633 (non_heuristic_proc_desc): Read the ".pdr" section if it
7636 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7638 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7639 (arm_debug): New static variable.
7640 (_initialize_arm_tdep): Add ``set debug arm'' command.
7642 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7644 * Makefile.in (sim_arm_h): Define.
7645 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7646 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7647 (arm_register_sim_regno): New function, map an internal REGNUM
7648 onto a simulator register number.
7649 (arm_gdbarch_init): Set register_sim_regno.
7651 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7653 * MAINTAINERS: Add self.
7655 2002-06-11 Jim Blandy <jimb@redhat.com>
7657 * source.c (source_info): Mention whether the symtab has
7658 information about preprocessor macros.
7660 Call the command `info macro', not `show macro'.
7661 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7663 (_initialize_macrocmd): Register `info_macro_command' in
7664 `infolist', not `showlist'.
7666 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7668 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7669 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7670 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7671 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7672 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7674 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7675 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7676 (_initialize_mips_tdep): Remove dead code.
7677 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7678 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7679 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7680 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7681 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7682 MIPS_LAST_FP_ARG_REGNUM): Remove.
7684 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7686 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7687 (unwind_tmp_obstack_free, parse_frame_info)
7688 (update_context, cfi_read_fp, cfi_write_fp)
7689 (cfi_frame_chain, cfi_init_extra_frame_info)
7690 (cfi_virtual_frame_pointer): Use the above function.
7691 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7693 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7695 * v850-tdep.c (v850_type_is_scalar): New function.
7696 (v850_use_struct_convention): Match current gcc implementation
7697 as close as possible.
7698 (v850_push_arguments): Fix stack_offset handling. Don't write
7699 struct_addr into register. This is done by v850_store_struct_return.
7700 (v850_extract_return_value): Care for structs.
7701 (v850_store_return_value): Ditto.
7702 (v850_store_struct_return): Actually write address.
7704 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7706 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7707 without debug information too.
7709 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7711 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7712 Make multi-arch pure.
7713 * gdbarch.h, gdbarch.c: Re-generate.
7714 * arm-tdep.c (arm_print_float_info): Update.
7715 * arch-utils.h (default_print_float_info): Update.
7716 * arch-utils.c (default_print_float_info): Update.
7717 * infcmd.c (float_info): Update call.
7719 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7721 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7722 the front of the initialize list.
7724 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7726 * infrun.c (struct inferior_status): Replace fields
7727 selected_frame_address and selected_level with field
7729 (save_inferior_status): Update. Use get_frame_id.
7730 (struct restore_selected_frame_args): Delete.
7731 (restore_selected_frame): Update. Use frame_find_by_id.
7732 (restore_inferior_status): Update.
7734 * breakpoint.h (struct breakpoint): Change type of
7735 watchpoint_frame to frame_id.
7736 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7737 call to get_current_frame.
7738 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7740 (watchpoint_check): Use frame_find_by_id.
7742 * frame.h (record_selected_frame): Delete declaration.
7743 * stack.c (record_selected_frame): Delete function.
7745 * frame.h (struct frame_id): Define.
7746 (get_frame_id): Declare.
7747 (frame_find_by_id): Declare.
7748 * frame.c (frame_find_by_id): New function.
7749 (get_frame_id): New function.
7751 2002-06-10 Andrey Volkov <avolkov@transas.com>
7753 * ser-e7kpc.c: Fix duplicated define and call of
7754 _initialize_ser_e7000pc
7756 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7758 * signals/signals.c (target_signal_from_host): Fix #ifdef
7760 (do_target_signal_to_host): Likewise.
7762 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7764 * mips-tdep.c (mips_find_abi_section): New function.
7765 (mips_gdbarch_init): Call it.
7767 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7769 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7770 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7771 after Andrew's 2002-06-08 gdbarch change.
7773 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7775 * i386-linux-nat.c (suppy_gregset): Don't supply
7776 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7778 (fill_gregset): Don't fetch it under the same circumstances.
7780 2002-06-09 Andrew Cagney <cagney@redhat.com>
7782 * Makefile.in (callback_h): Define.
7783 (remote_sim_h): Update path to remote-sim.h.
7784 (remote-rdp.o): Add $(callback_h).
7785 (remote-sim.o): Use $(callback_h).
7786 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7787 * remote-rdp.c: Include "gdb/callback.h".
7789 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7791 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7792 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7794 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7796 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7797 * rdi-share/serpardr.c: Ditto.
7798 * rdi-share/unixcomm.c: Ditto.
7799 * rdi-share/serdrv.c: Ditto.
7800 * rdi-share/hostchan.h: Ditto.
7801 * rdi-share/hostchan.c: Ditto.
7802 * rdi-share/host.h: Ditto.
7803 * rdi-share/devsw.c: Ditto.
7805 * objfiles.h: Change type of obj_private to void pointer.
7806 * pa64solib.c: Update copyright. Don't include "assert.h", use
7807 strcmp instead of STREQ, use LONGEST, do not use PTR
7808 * somsolib.c: Ditto.
7810 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7811 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7812 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7814 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7816 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7817 (default_get_saved_register): Delete function.
7818 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7819 generic_unwind_get_saved_register.
7820 * gdbarch.h, gdbarch.c: Re-generate.
7822 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7824 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7825 generic_func_frame_chain_valid.
7826 * gdbarch.h, gdbarch.c: Re-generate.
7827 * blockframe.c (generic_func_frame_chain_valid): Only check
7828 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7829 passing FP to PC_IN_CALL_DUMMY.
7832 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7834 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7835 (register_gdbarch_data): Initialize init_p.
7836 (gdbarch_data): Initialize data pointer using the init function.
7837 (init_gdbarch_data): Delete function.
7838 (gdbarch_update_p): Update.
7839 (initialize_non_multiarch): Update.
7840 (struct gdbarch): Add field initialized_p.
7841 * gdbarch.h, gdbarch.c: Re-generate.
7843 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7845 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7846 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7847 better do the things actually here.
7848 * x86-64-tdep.c (x86_64_register_name2nr): New.
7849 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7850 (x86_64_gdbarch_init): Respect the above change.
7851 * x86-64-tdep.h (x86_64_register_name2nr)
7852 (x86_64_register_nr2name): Add prototypes.
7853 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7855 2002-06-06 Michael Snyder <msnyder@redhat.com>
7857 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7858 Delete extra braces and re-indent.
7859 (d10v_store_return_value): Char return values
7860 must be shifted over by one byte in R0.
7861 (d10v_extract_return_value): Delete extra braces, re-indent.
7863 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7865 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7866 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7867 (d10v_integer_to_address): Rewrite.
7868 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7869 the d10v specific functions which take care of converting to the
7872 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7874 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7875 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7877 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7879 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7881 * config/tm-linux.h: Ditto.
7882 * config/alpha/tm-alphalinux.h: Ditto.
7883 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7884 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7885 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7886 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7887 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7888 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7889 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7890 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7891 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7892 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7893 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7894 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7895 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7896 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7897 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7898 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7899 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7900 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7901 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7902 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7903 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7904 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7905 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7906 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7907 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7908 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7909 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7910 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7911 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7912 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7913 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7914 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7915 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7916 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7917 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7918 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7919 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7921 2002-05-04 Aidan Skinner <aidan@velvet.net>
7923 * ada-exp.tab.c: New file
7924 * ada-exp.y: New file
7925 * ada-lang.c: New file
7926 * ada-lang.h: New file
7927 * ada-lex.c: New file
7928 * ada-lex.l: New file
7929 * ada-tasks.c: New file
7930 * ada-typeprint.c: New file
7931 * ada-valprint.c: New file
7933 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7935 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7936 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7938 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7940 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7941 insetead of ppc-linux-tdep.o.
7942 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7943 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7945 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7947 2002-05-07 Christian Groessler <chris@groessler.org>
7948 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7949 bit register contents for little endian hosts.
7951 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7953 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7956 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7958 * gdbarch.h: Regenerate.
7960 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7962 * MAINTAINERS: Add everyone to write-after-approval list.
7964 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7966 * stack.c (frame_info): Use frame_register_unwind instead of
7967 saved_regs. Mention when the SP is on the stack or in a register.
7969 * frame.h (frame_register_unwind_ftype): Define. Document.
7970 (struct frame_info): Add field register_unwind and
7971 register_unwind_cache.
7972 (frame_register_unwind): Declare.
7973 (generic_unwind_get_saved_register): Declare.
7975 * frame.c (frame_register_unwind): New function.
7976 (generic_unwind_get_saved_register): New function.
7978 * blockframe.c (generic_call_dummy_register_unwind): New function.
7979 (frame_saved_regs_register_unwind): New function.
7980 (set_unwind_by_pc): New function.
7981 (create_new_frame): New function.
7982 (get_prev_frame): New function.
7984 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7986 * a29k-share/: Delete directory.
7987 * remote-vx29k.c: Delete file.
7989 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7991 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7992 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7994 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7996 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7997 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8000 (sparcnbsd-tdep.o): New dependency lists.
8001 * NEWS: Note new UltraSPARC NetBSD native configuration.
8002 * configure.host (sparc64-*-netbsd*): New host.
8003 * configure.tgt (sparc-*-netbsdelf*)
8004 (sparc-*-netbsd*): Set gdb_target to nbsd.
8005 (sparc64-*-netbsd*): New target.
8006 * sparc64nbsd-nat.c: New file.
8007 * sparcnbsd-nat.c: New file.
8008 * sparcnbsd-tdep.c: New file.
8009 * sparcnbsd-tdep.h: New file.
8010 * config/sparc/nbsd.mt: New file.
8011 * config/sparc/nbsd64.mh: New file.
8012 * config/sparc/nbsd64.mt: New file.
8013 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8014 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8016 * config/sparc/nbsdaout.mt: Remove.
8017 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8018 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8020 * config/sparc/nbsdelf.mt: Remove.
8021 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8022 sparc-nat.c compatiblity defines.
8023 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8024 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8025 * config/sparc/tm-nbsd64.h: New file.
8026 * config/sparc/tm-nbsdaout.h: Remove.
8027 * config/sparc/xm-nbsd.h: Remove.
8029 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8031 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8032 * sparc-tdep.c: Include osabi.h.
8033 (gdbarch_tdep): Add osabi member.
8034 (_initialize_sparc_tdep): Use gdbarch_register.
8035 (sparc_gdbarch_init): Use generic OS ABI framework.
8036 (sparc_dump_tdep): New function.
8038 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8040 * corefile.c (do_captured_read_memory_integer): Return non-zero
8042 (safe_read_memory_integer): Copy result of memory read when
8043 status is non-zero. Also, add comments.
8045 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8047 * Makefile.in (ppc_tdep_h): Define.
8050 (rs6000-tdep.o): Use $(ppc_tdep_h).
8053 (ppcnbsd-tdep.o): New dependency lists.
8054 * ppc-tdep.h: Use generic OS ABI framework.
8055 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8056 (ppc_linux_init_abi): New functions.
8057 (ppc_sysv_abi_broken_use_struct_convention)
8058 (ppc_sysv_abi_use_struct_convention)
8059 (ppc_sysv_abi_push_arguments): Move to...
8060 * ppc-sysv-tdep.c: ...here.
8061 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8062 * rs6000-tdep.c (process_note_abi_tag_sections)
8063 (get_elfosabi): Remove.
8064 (rs6000_gdbarch_init): Use generic OS ABI framework.
8065 (rs6000_dump_tdep): New function.
8066 (_initialize_rs6000_tdep): Use gdbarch_register.
8067 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8068 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8069 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8070 of ppc-linux-tdep.o.
8071 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8072 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8073 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8074 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8075 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8076 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8078 2002-05-29 Jim Blandy <jimb@redhat.com>
8080 * macroscope.c (default_macro_scope): Put `void' in empty argument
8083 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8085 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8086 * arch-utils.c: Include "sim-regno.h".
8087 * gdbarch.sh: Don't include "sim-regno.h".
8088 * gdbarch.h, gdbarch.c: Regenerate.
8089 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8091 * arch-utils.h (legacy_register_sim_regno): To here.
8092 * remote-sim.c (legacy_register_sim_regno): Move function from
8094 * arch-utils.c (legacy_register_sim_regno): To here.
8096 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8098 * sim-regno.h: New file.
8099 * Makefile.in (sim_regno_h): Define.
8100 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8101 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8102 (legacy_register_sim_regno): New function.
8103 (one2one_register_sim_regno): New function.
8104 (gdbsim_fetch_register): Rewrite.
8105 (gdbsim_store_register): Only store a register when
8106 REGISTER_SIM_REGNO is valid.
8107 * d10v-tdep.c: Include "sim-regno.h".
8108 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8109 (d10v_ts3_register_sim_regno): Ditto.
8110 * gdbarch.sh: Include "sim-regno.h".
8111 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8112 * gdbarch.h, gdbarch.c: Regenerate.
8113 * arch-utils.h (default_register_sim_regno): Delete declaration.
8114 * arch-utils.c (default_register_sim_regno): Delete function.
8116 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8118 * ppcnbsd-nat.c: Rewrite.
8119 * ppcnbsd-tdep.c: New file.
8120 * ppcnbsd-tdep.h: New file.
8121 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8122 solib.o, and solib-svr4.o.
8123 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8124 nbsd-tdep.o, and corelow.o.
8126 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8128 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8129 `tr' and `sed'. Mention that `broken' targets are not expected to
8132 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8134 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8135 Let PC point right after the prologue before looking up symbols.
8137 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8139 * i386-tdep.c (i386_register_virtual_type): Return
8140 builtin_type_vec128i for SSE registers.
8142 * gdbtypes.h (builtin_type_vec128i): Declare.
8144 * gdbtypes.c (build_builtin_type_vec128i): New function.
8145 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8146 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8147 (build_gdbtypes): Initialize new builtin vector types.
8148 (_initialize_gdbtypes): Register new vector types with gdbarch.
8150 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8152 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8153 since it has been multi-arch'd.
8154 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8155 Move Alpha and VAX multi-arch news entries to same section
8156 as other multi-arch news.
8158 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8160 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8161 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8162 static. Rename some register numbers to put them in ns32k-tdep
8164 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8165 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8167 (_initialize_ns32k_tdep): Use gdbarch_register.
8168 * ns32k-tdep.h: New file.
8169 * ns32knbsd-tdep.c: New file.
8170 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8171 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8172 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8173 REGISTER_BYTES, REGISTER_BYTE): Remove.
8174 * config/ns32k/tm-ns32k.h: New file.
8175 * config/ns32k/tm-umax.h: Remove.
8177 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8179 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8180 ns32k_store_struct_return, ns32k_extract_return_value,
8181 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8183 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8184 ns32k_saved_pc_after_call.
8185 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8186 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8187 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8188 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8189 ns32k_extract_struct_value_address.
8191 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8193 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8194 ns32k_fix_call_dummy): New.
8195 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8196 ns32k_call_dummy_words.
8197 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8198 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8199 CALL_DUMMY_NARGS): Remove.
8200 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8202 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8204 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8205 ns32k_frame_saved_pc, ns32k_frame_args_address,
8206 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8207 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8208 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8209 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8210 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8211 (BREAKPOINT): Remove..
8212 (FRAME_CHAIN): Define as ns32k_frame_chain.
8213 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8214 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8215 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8216 (FRAME_FIND_SAVED_REGS): Remove.
8217 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8218 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8219 (POP_FRAME): Define as ns32k_pop_frame.
8221 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8223 * ns32k-tdep.c (ns32k_register_byte_32082,
8224 ns32k_register_byte_32382, ns32k_register_raw_size,
8225 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8227 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8228 ns32k_register_byte_32382.
8229 * config/ns32k/tm-umax.h: Update copyright years.
8230 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8231 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8232 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8233 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8234 (ns32k_get_enter_addr): Fix prototype.
8236 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8238 * ns32k-tdep.c: Update copyright years.
8239 (ns32k_register_name_32082): New function.
8240 (ns32k_register_name_32382): Ditto.
8241 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8242 (REGISTER_NAME): Define as ns32k_register_name_32382.
8243 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8244 (REGISTER_NAME): Define as ns32k_register_name_32082.
8246 2002-05-24 Jim Blandy <jimb@redhat.com>
8248 * dwarf2read.c (free_line_header): Use xfree, not free.
8250 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8252 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8253 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8255 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8257 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8259 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8261 From Ross Alexander at NEC Europe:
8262 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8264 2002-05-23 Michael Snyder <msnyder@redhat.com>
8266 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8267 for input, rather than parse_and_eval_address.
8269 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8271 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8272 * Makefile.in (sim_d10v_h): Update definition.
8274 2002-05-24 Andrew Cagney <cagney@redhat.com>
8276 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8277 change `2002-05-22 Michael Snyder' below.
8278 (d10v_push_arguments): Ditto.
8279 (d10v_extract_return_value): Ditto.
8281 2002-05-23 Jim Blandy <jimb@redhat.com>
8283 * macrotab.c (check_for_redefinition): Don't complain if the new
8284 definition is the same as the previous one. Take more arguments
8285 to allow the comparison.
8286 (macro_define_object, macro_define_function): Pass more arguments
8287 to check_for_redefinition.
8289 2002-05-22 Michael Snyder <msnyder@redhat.com>
8291 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8292 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8293 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8294 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8295 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8296 Add a temp variable to save a call (and a memory read).
8297 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8298 if possible (so that PC_IN_CALL_DUMMY will work).
8300 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8302 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8304 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8306 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8308 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8309 (dwarf2_build_frame_info): Add offset to fde->initial_location
8310 so that frames of shared libraries are mapped correctly.
8311 (execute_stack_op): Change type of 'result' from ULONGEST to
8314 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8316 * config/alpha/tm-nbsd.h: Include solib.h.
8318 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8320 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8321 assumptions about the host's byte order.
8323 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8325 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8327 * alphanbsd-tdep.c: Include solib-svr4.h.
8328 * shnbsd-tdep.c: Ditto.
8330 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8332 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8333 nbsd-tdep.h to dependency list.
8334 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8335 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8336 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8337 nbsdaout.mh and nbsdelf.mh consistently.
8338 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8339 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8340 nbsdaout.mt and nbsdelf.mh consistently.
8341 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8342 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8343 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8344 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8345 a.out shared library stuff from here...
8346 * config/nm-nbsdaout.h: ...to here.
8347 * config/tm-nbsd.h: Remove.
8348 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8349 * config/arm/nbsd.mh: Remove.
8350 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8352 * config/arm/nbsdaout.mh: New file.
8353 * config/arm/nbsdelf.mh: New file.
8354 * config/arm/nm-nbsdaout.h: New file.
8355 * config/i386/nbsd.mh: Remove.
8356 * config/i386/nbsd.mt: Remove.
8357 * config/i386/nbsdaout.mh: New file.
8358 * config/i386/nbsdaout.mt: New file.
8359 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8360 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8361 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8362 i386_register_u_addr): Remove.
8363 * config/i386/nm-nbsdaout.h: New file.
8364 * config/i386/nm-nbsdelf.h: Remove.
8365 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8366 (USE_STRUCT_CONVENTION): Remove.
8367 * config/i386/tm-nbsdaout.h: New file.
8368 * config/i386/tm-nbsdelf.h: Remove.
8369 * config/m68k/nbsd.mh: Remove.
8370 * config/m68k/nbsd.mt: Remove.
8371 * config/m68k/nbsdaout.mh: New file.
8372 * config/m68k/nbsdaout.mt: New file.
8373 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8374 * config/m68k/nm-nbsdaout.h: New file.
8375 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8376 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8377 * config/ns32k/nbsd.mh: Remove.
8378 * config/ns32k/nbsd.mt: Remove.
8379 * config/ns32k/nbsdaout.mh: New file.
8380 * config/ns32k/nbsdaout.mt: New file.
8381 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8382 * config/ns32k/nm-nbsdaout.h: New file.
8383 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8385 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8386 (SVR4_SHARED_LIBS): Remove.
8387 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8388 * config/sparc/nbsd.mh: Remove.
8389 * config/sparc/nbsd.mt: Remove.
8390 * config/sparc/nbsdaout.mh: New file.
8391 * config/sparc/nbsdaout.mt: New file.
8392 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8393 * config/sparc/nbsdelf.mt: New file.
8394 * config/sparc/nm-nbsdaout.h: New file.
8395 * config/sparc/nm-nbsdelf.h: Remove.
8396 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8397 * config/sparc/tm-nbsdaout.h: New file.
8399 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8401 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8403 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8405 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8407 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8409 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8411 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8413 * NEWS: Note new MIPS NetBSD native configuration.
8414 * configure.host (mips*-*-netbsd*): New host.
8415 * configure.tgt (mips*-*-netbsd*): New target.
8416 * mipsnbsd-nat.c: New file.
8417 * mipsnbsd-tdep.c: New file.
8418 * mipsnbsd-tdep.h: New file.
8419 * config/mips/nbsd.mh: New file.
8420 * config/mips/nbsd.mt: New file.
8421 * config/mips/nm-nbsd.h: New file.
8422 * config/mips/tm-nbsd.h: New file.
8424 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8426 * Makefile.in (SFILES): Add osabi.c.
8427 (COMMON_OBS): Add osabi.o.
8428 (osabi.o): New dependency list.
8429 * osabi.c: New file.
8430 * osabi.h: New file.
8431 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8433 * Makefile.in (alpha_tdep_h): Define and use instead of
8435 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8436 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8438 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8439 * alpha-tdep.h: Include osabi.h.
8440 (alpha_abi): Remove.
8441 (gdbarch_tdep): Use generic OS ABI framework.
8442 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8443 gdbarch_register_osabi.
8444 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8445 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8446 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8448 * Makefile.in (sh_tdep_h): Add osabi.h.
8449 * sh-tdep.h (sh_osabi): Remove.
8450 (gdbarch_tdep): Use generic OS ABI framework.
8451 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8452 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8453 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8454 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8456 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8457 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8458 gdbarch_register_osabi.
8459 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8460 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8461 (get_elfosabi): Rename to...
8462 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8463 ABI framework support routines.
8464 (arm_gdbarch_init): Use generic OS ABI framework.
8465 (arm_dump_tdep): Likewise.
8466 (_initialize_arm_tdep): Likewise.
8467 * arm-tdep.h: Include osabi.h.
8469 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8471 (arm_gdbarch_register_os_abi): Remove prototype.
8472 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8473 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8475 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8476 * mips-tdep.c: Include osabi.h.
8477 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8480 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8482 * h8300-tdep.c: Fix formatting.
8484 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8486 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8487 printing vector registers.
8489 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8491 From Fernando Nasser:
8492 * remote.c (remote_async_open_1): Re-throw the exception when the
8494 (remote_cisco_open): Ditto.
8495 (remote_open_1): Ditto.
8497 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8499 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8500 (remote_start_remote): Add uiout parameter. Pass through to
8501 remote_start_remote_dummy.
8502 (remote_open_1): Use catch_exception instead of catch_errors.
8503 (remote_async_open_1): Ditto.
8504 (remote_cisco_open): Ditto.
8506 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8508 * remote.c (remote_start_remote): Replace PTR with void pointer.
8509 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8512 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8514 * gdb_indent.sh: Allow the script to be run in the sim directory.
8516 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8518 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8519 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8521 * corelow.c (core_open): Only call set_gdbarch_from_file if
8524 2002-05-17 Andrey Volkov <avolkov@transas.com>
8526 * h8300-tdep.c: Add support of EXR register
8527 * config/h8300/tm-h8300.h: Ditto.
8529 2002-05-17 Andrey Volkov <avolkov@transas.com>
8531 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8533 2002-05-17 Andrey Volkov <avolkov@transas.com>
8535 * h8300-tdep.c: Change literal regnums to REGNO.
8537 2002-05-17 Jim Blandy <jimb@redhat.com>
8539 * NEWS: Note addition of macro support.
8541 Expand preprocessor macros in C expressions.
8542 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8543 (scan_macro_expansion, scanning_macro_expansion,
8544 finished_macro_expansion): New function declarations.
8545 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8546 variable declarations.
8547 * parser-defs.h (expression_context_pc): New declaration.
8548 * parse.c (expression_context_pc): New variable.
8549 (parse_exp_1): Set expression_context_pc, as well as
8550 expression_context_block.
8551 * c-exp.y (yylex): If we're not already reading the result of a
8552 macro expansion, try to macro-expand the next token. When we're
8553 done scanning a macro expansion, switch back to the mainline text.
8554 Commas and `if's in a macro's expansion don't terminate the input.
8555 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8556 (macro_original_text, macro_expanded_text,
8557 expression_macro_lookup_func, expression_macro_lookup_baton): New
8559 (scan_macro_expansion, scanning_macro_expansion,
8560 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8561 c_preprocess_and_parse): New functions.
8562 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8563 c_preprocess_and_parse, instead of c_parse.
8564 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8565 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8567 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8569 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8570 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8571 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8573 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8575 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8577 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8579 * Makefile.in (sh_tdep_h): Define and use.
8580 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8581 register enum): Move to...
8582 * * sh-tdep.h: ...here.
8583 * sh-tdep.c: Include sh-tdep.h.
8584 * sh3-rom.c: Likewise.
8585 * shnbsd-tdep.c: Likewise.
8587 2002-05-16 Michael Snyder <msnyder@redhat.com>
8589 * arm-tdep.c: Spelling fix in comment.
8591 2002-05-16 Jim Blandy <jimb@redhat.com>
8593 Add commands for manually expanding macros and showing their
8595 * macrocmd.c, macroscope.c, macroscope.h: New files.
8596 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8597 (macroscope_h): New variable.
8598 (HFILES_NO_SRCDIR): Add macroscope.h.
8599 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8600 (macroscope.o, macrocmd.o): New rules.
8602 Teach the Dwarf 2 reader to read macro information.
8603 * dwarf2read.c: #include "macrotab.h".
8604 (dwarf_macinfo_buffer): New variable.
8605 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8607 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8608 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8609 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8610 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8611 dwarf2_macro_spaces_in_definition): New complaints.
8612 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8613 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8614 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8615 the partial symbol table.
8616 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8617 from what's recorded in the partial symbol table.
8618 (read_file_scope): If the compilation unit has a
8619 `DW_AT_macro_info' attribute, read its macro information.
8620 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8622 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8625 * ser-tcp.c: Don't include <netinet/udp.h>.
8627 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8629 * MAINTAINERS: Update my email address.
8631 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8633 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8634 include file of the same name.
8636 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8638 * configure.tgt: Mark v850 as multi-arched.
8639 * config/v850/tm-v850.h: Remove file.
8640 * config/v850/v850.mt: Eliminate TM_FILE.
8642 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8644 * v850-tdep.c: Full multi-arch.
8645 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8646 Define GDB_MULTI_ARCH to 2.
8648 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8650 * p-exp.y (current_type): New static variable.
8651 Carries the type of the expression at the position that is parsed.
8652 (push_current_type, pop_current_type): Two new functions. Used
8653 to store/restore current_type in expression on specific tokens.
8654 (search_field): New static variable. Set to one after parsing a point
8655 as at that point only a FIELDNAME token should be searched.
8656 (FIELDNAME): New token. After a point only a token belonging to
8657 current_type type definition is allowed.
8658 (all over token rules): reset and change current_type according
8660 (exp '[' rule): insert implicit array index field if
8661 exp is a pascal string type.
8663 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8665 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8666 frame info. Use frame_info's saved_regs instead of matching member
8667 in extra_frame_info throughout.
8668 (v850_frame_init_saved_regs): New function.
8669 (v850_init_extra_frame_info): Move most functionality into
8670 v850_frame_init_saved_regs().
8671 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8672 (v850_frame_find_saved_regs): Remove declaration.
8673 (FRAME_FIND_SAVED_REGS): Remove definition.
8674 (v850_frame_init_saved_regs): Add declaration.
8675 (FRAME_INIT_SAVED_REGS): Add definition.
8677 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8679 * v850-tdep.c: Begin multi-arch'ing v850.
8680 (v850_target_architecture_hook): Remove function.
8681 (v850_gdbarch_init): New function. Add code previously in
8682 v850_target_architecture_hook().
8683 (_initialize_v850_tdep): Don't set target_architecture_hook.
8684 Call register_gdbarch_init() instead.
8686 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8688 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8689 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8690 (fixup_class_method_type): Likewise.
8692 2002-05-15 Jim Blandy <jimb@redhat.com>
8694 Add macro structures to GDB's symbol tables. Nobody puts anything
8696 * symtab.h (struct symtab): New member: `macro_table'.
8697 * buildsym.h (pending_macros): New global variable.
8698 * buildsym.c: #include "macrotab.h".
8699 (buildsym_init): Initialize `pending_macros'.
8700 (end_symtab): If we found macro information while reading a CU's
8701 debugging info, do build a symtab structure for it. Make the
8702 symtab point to the macro information, and clear the
8703 `pending_macros' pointer which held it while we were reading the
8705 (really_free_pendings): Free any pending macro table.
8706 * objfiles.h (struct objfile): New member: `macro_cache'.
8707 * objfiles.c (allocate_objfile): Set allocate and free functions
8708 for the macro cache's objstack.
8709 (free_objfile): Empty the macro cache's obstack.
8710 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8711 set new allocate and free functions for it.
8712 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8713 free functions for the macro cache's objstack. (Why is this
8714 function building its own objfile?)
8715 * symmisc.c (print_objfile_statistics): Print statistics on the
8717 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8719 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8721 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8722 (REGISTER_U_ADDR): Delete definition.
8723 (arm_register_u_addr): Delete declaration.
8725 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8727 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8728 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8730 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8732 * regcache.c (register_valid): Revise comments refering to "Not
8733 available" and "unavailable".
8734 * frame.c (frame_register_read): Ditto.
8735 * findvar.c (value_of_register): Ditto.
8737 2002-05-15 Andrew Cagney <cagney@redhat.com>
8739 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8740 (remote-sim.o): Update dependencies.
8741 (d10v-tdep.o): Specify dependencies.
8742 (sim_d10v_h): Define.
8744 2002-05-14 Jim Blandy <jimb@redhat.com>
8746 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8747 * macrotab.c (macro_lookup_inclusion, find_definition,
8748 new_macro_table): Same.
8750 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8751 not `! strcmp ()'. This is a dubious improvement.
8752 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8754 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8755 although it's not necessary, to avoid a warning.
8757 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8759 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8760 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8761 TYPE_INSTANCE_FLAGS.
8762 (struct main_type): New.
8763 (struct type): Move most members to struct main_type. Change
8764 cv_type and as_type to new type_chain member. Add instance_flags.
8765 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8766 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8767 (finish_cv_type): Remove prototype.
8768 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8770 (alloc_type_instance): New function.
8771 (smash_type): New function.
8772 (make_pointer_type, make_reference_type, make_function_type)
8773 (smash_to_member_type, smash_to_method_type): Call smash_type.
8774 (make_qualified_type): New function.
8775 (make_type_with_address_space): Call make_qualified_type.
8776 (make_cv_type): Likewise.
8777 (finish_cv_type): Remove unnecessary function.
8778 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8779 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8780 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8781 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8782 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8783 * hpread.c (hpread_read_struct_type): Likewise.
8784 * stabsread.c (read_struct_type): Likewise.
8786 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8788 * configure.tgt: Add a catch all sh* target, for cases like
8789 sh[2,3,4]-elf and sh-hms.
8791 2002-05-14 Keith Seitz <keiths@redhat.com>
8793 * event-loop.c (create_file_handler): Don't do anything but
8794 update data when we are given a fd which we are already
8797 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8799 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8800 (update_context): Use __func__ in warnings.
8802 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8804 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8805 and tcp_close to net_open and net_close.
8806 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8807 using UDP if requested. Don't try to disable Nagle on UDP
8809 * remote.c (remote_serial_open): New function. Warn about UDP.
8810 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8812 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8814 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8816 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8818 * configure.tgt: Remove sh-hms target.
8819 * MAINTAINERS: Don't list sh-hms as a separate target.
8821 2002-05-13 Jim Blandy <jimb@redhat.com>
8823 Add first preprocessor macro-expansion files.
8824 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8825 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8826 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8827 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8828 (COMMON_OBS): Add macrotab.o, macroexp.o.
8829 (macroexp.o, macrotab.o): New rules.
8831 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8833 * config/m88k/tm-m88k.h: Update copyright.
8834 (m88k_target_write_pc): Declare
8835 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8836 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8837 (SHIFT_INST_REGS): Update definition.
8838 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8839 using old definition of TARGET_WRITE_PC.
8840 * regcache.c (generic_target_write_pc): Delete code handling
8842 * gdbarch.sh (NNPC_REGNUM): Delete.
8843 * gdbarch.h, gdbarch.c: Regenerate.
8845 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8847 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8850 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8852 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8853 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8854 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8856 * c-typeprint.c (cp_type_print_method_args): Likewise.
8857 (c_type_print_args): Likewise.
8858 * d10v-tdep.c (d10v_push_arguments): Likewise.
8859 (d10v_extract_return_value): Likewise.
8860 * expprint.c (print_subexp): Likewise.
8861 * gdbtypes.c (lookup_primitive_typename): Likewise.
8862 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8863 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8864 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8865 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8866 (TYPE_VECTOR): Likewise.
8867 * hpread.c (hpread_read_struct_type)
8868 (fix_static_member_physnames, fixup_class_method_type)
8869 (hpread_type_lookup): Likewise.
8870 * mdebugread.c (parse_symbol, parse_type): Likewise.
8871 * p-lang.c (is_pascal_string_type): Likewise.
8872 * valops.c (hand_function_call): Likewise.
8873 * x86-64-tdep.c (classify_argument): Likewise.
8875 * hpread.c (hpread_read_function_type)
8876 (hpread_read_doc_function_type): Call replace_type.
8877 * dstread.c (create_new_type): Delete.
8878 (decode_dst_structure, process_dst_function): Call alloc_type.
8879 Use type access macros.
8881 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8883 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8884 the're not supported by the current architecture.
8885 (i387_fill_fxsave): Likewise.
8887 2002-05-12 Fred Fish <fnf@redhat.com>
8889 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8890 sect_index_xxx members to index the first slot in section_offsets
8891 if all of the section_offsets are zero.
8893 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8895 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8896 checked in with last change.
8898 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8900 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8901 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8904 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8906 * Makefile.in: Update dependencies.
8908 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8910 * language.c (local_hex_string_custom): Simplify. Do not depend
8911 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8913 * memattr.c (mem_info_command): Replace calls to
8914 longest_local_hex_string and longest_local_hex_string_custom.
8915 * buildsym.c (make_blockvector): Ditto.
8916 * solib.c (info_sharedlibrary_command): Ditto.
8917 * tracepoint.c (tracepoints_info): Ditto.
8918 * symtab.c (print_msymbol_info): Ditto.
8920 * language.c (local_hex_string): Delete.
8921 (local_hex_string_custom): Delete.
8922 (longest_local_hex_string): Rename to local_hex_string.
8923 (longest_local_hex_string_custom): Rename to
8924 local_hex_string_custom.
8925 * language.h (local_hex_string): Change parameter type to LONGEST.
8926 (local_hex_string_custom): Ditto.
8927 (longest_local_hex_string): Delete declaration.
8928 (longest_local_hex_string_custom): Ditto.
8930 * solib.c: Update copyright.
8931 * memattr.c: Update copyright.
8933 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8935 * arch-utils.h (legacy_register_to_value): Declare.
8936 (legacy_value_to_register): Declare.
8937 (legacy_convert_register_p): Declare.
8938 * arch-utils.c (legacy_register_to_value): New function.
8939 (legacy_value_to_register): New function.
8940 (legacy_convert_register_p): New function.
8942 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8943 (VALUE_TO_REGISTER): Define.
8944 (CONVERT_REGISTER_P): Define.
8945 * gdbarch.h, gdbarch.c: Regenerate.
8947 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8949 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8952 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8953 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8955 * Makefile.in: Update dependencies for valops.c.
8956 * valops.c: Include "gdb_assert.h".
8957 (typecmp): Skip THIS parameter to methods.
8958 (find_method_list): Remove static_memfuncp argument,
8959 update callers. Check for stub methods.
8960 (find_value_oload_method_list): Don't set *static_memfuncp.
8961 (find_overload_match): Don't check for stub methods. Assert
8962 that methods are not stubbed. Handle static methods.
8963 (value_find_oload_method_list): Remove static_memfuncp argument.
8964 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8965 to the argument list for static stub methods.
8966 * value.h (value_find_oload_method_list): Update prototype.
8968 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8970 * arch-utils.h (generic_register_size): Declare.
8971 (generic_register_raw_size, generic_register_virtual_size): Delete
8973 * arch-utils.c (generic_register_raw_size): Delete.
8974 (generic_register_size): New function.
8975 (generic_register_virtual_size): Delete.
8977 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8978 default generic_register_size.
8979 * gdbarch.h, gdbarch.c: Re-generate.
8981 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8982 register_virtual_size.
8983 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8986 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8988 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8989 * gdbarch.h, gdbarch.c: Regenerate.
8990 * gnu-v3-abi.c: Update copyright.
8991 (vtable_address_point_offset): Update.
8992 (gnuv3_rtti_type): Update.
8993 (gnuv3_baseclass_offset): Update.
8994 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8995 (init_fetch_link_map_offsets): Update.
8996 * remote.c (get_remote_state): Update.
8998 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9000 * TODO: Remove value_headof/value_from_vtable_info comment.
9001 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9002 * values.c (value_headof, value_from_vtable_info): Delete.
9003 * value.h (value_from_vtable_info): Delete prototype.
9005 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9007 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9008 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9010 (gdb_assert_h): Define.
9011 (gdb_wait_h): Define.
9012 (gdb_regex_h): Define.
9014 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9016 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9017 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9019 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9021 * nbsd-tdep.c: Fix comment.
9023 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9025 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9026 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9027 (nbsd-tdep.o): New dependency list.
9028 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9030 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9031 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9032 * nbsd-tdep.c: New file.
9033 * nbsd-tdep.h: New file.
9034 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9036 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9037 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9038 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9039 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9041 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9043 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9044 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9045 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9046 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9047 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9048 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9050 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9052 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9053 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9054 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9055 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9056 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9057 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9058 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9060 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9062 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9063 fetch_elfcore_registers to...
9064 * i386nbsd-tdep.c: ...here.
9065 (i386nbsd_use_struct_convention): Rename to...
9066 (i386nbsd_aout_use_struct_convention): ...this.
9067 (i386nbsd_supply_reg): New function.
9068 (i386nbsd_fill_reg): New function.
9069 (fetch_core_registers): Use i386nbsd_supply_reg.
9070 (fetch_elfcore_registers): Likewise.
9071 (_initialize_i386nbsd_tdep): New function.
9072 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9073 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9074 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9075 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9076 (i386nbsd_aout_use_struct_convention): ...this.
9078 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9080 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9081 (store_inferior_registers): Use shnbsd_fill_reg.
9082 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9083 sh_nbsd_supply_register): Collapse into...
9084 (shnbsd_supply_reg): ...this.
9085 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9086 (shnbsd_fill_reg): ...this.
9087 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9088 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9089 (fetch_core_registers): Use shnbsd_supply_reg.
9090 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9091 (sh_nbsd_core_fns): Rename to...
9092 (shnbsd_core_fns): ...this.
9093 (sh_nbsd_elfcore_fns): Rename to...
9094 (shnbsd_elfcore_fns): ...this.
9095 (sh_nbsd_init_abi): Rename to...
9096 (shnbsd_init_abi): ...this.
9097 (_initialize_sh_nbsd_tdep): Rename to...
9098 (_initialize_shnbsd_tdep): ...this.
9099 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9100 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9101 sh_nbsd_fill_register): Remove prototypes.
9102 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9104 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9106 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9107 (i387-nat.o): Delete dependency list.
9108 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9109 (x86-64-linux-nat.o): Likewise.
9110 * i387-nat.c: Delete file, moving contents to...
9111 * i387-tdep.c: ...here.
9112 * i387-nat.h: Rename...
9113 * i387-tdep.h: ...to this.
9114 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9115 * i386-linux-nat.c: Likewise.
9116 * i386bsd-nat.c: Likewise.
9117 * i386gnu-nat.c: Likewise.
9118 * i386nbsd-nat.c: Likewise.
9119 * i386v4-nat.c: Likewise.
9120 * x86-64-linux-nat.c: Likewise.
9121 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9122 * config/i386/go32.mh (NATDEPFILES): Likewise.
9123 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9124 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9125 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9126 * config/i386/linux.mh (NATDEPFILES): Likewise.
9127 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9128 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9129 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9130 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9132 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9134 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9135 (alphanbsd-nat.o): Remove dependency list.
9136 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9137 * alphanbsd-nat.c: Delete. Contents moved to...
9138 * alphanbsd-tdep.c: ...here.
9139 (_initialize_alphanbsd_tdep): Register core functions.
9140 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9142 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9144 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9145 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9146 (alphanbsd-nat.o): Likewise.
9147 (alphabsd-tdep.o): New dependency list.
9148 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9149 (fill_gregset): Use alphabsd_fill_reg.
9150 (supply_fpregset): Use alphabsd_supply_fpreg.
9151 (fill_fpregset): Use alphabsd_fill_fpreg.
9152 (fetch_inferior_registers): Use struct reg and struct fpreg
9153 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9154 and alphabsd_supply_fpreg.
9155 (store_inferior_registers): Use struct reg and struct fpreg
9156 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9157 and alphabsd_fill_fpreg.
9158 * alphabsd-tdep.c: New file.
9159 * alphabsd-tdep.h: New file.
9160 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9161 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9162 alphabsd_supply_fpreg.
9163 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9164 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9166 2002-05-11 Eric Christopher <echristo@redhat.com>
9168 * mips-tdep.c (mips_double_register_type): Fix thinko.
9169 (mips_single_register_type): Ditto.
9170 * MAINTAINERS: Add self.
9172 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9174 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9175 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9176 right thing on architectures with different endianness and/or
9179 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9181 From Christian Limpach <chris@Pin.LU>
9182 * configure.in: Change sed expression which comments out
9183 NATDEPFILES to also comment out continuation lines.
9184 * configure: Regenerate.
9186 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9188 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9191 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9193 * sh-tdep.c: Include correct file.
9195 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9197 New support for sh64-elf (sh5) target.
9199 * configure.tgt: For sh64-elf target, default to sh-elf.
9201 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9202 (struct gdbarch_tdep): Add new fields for new registers and ABI
9205 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9206 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9207 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9208 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9209 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9210 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9211 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9212 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9213 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9214 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9215 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9216 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9217 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9218 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9219 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9220 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9221 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9222 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9223 sign_extend, sh64_nofp_frame_init_saved_regs,
9224 sh64_init_extra_frame_info, sh64_get_saved_register,
9225 sh64_extract_struct_value_address, sh64_pop_frame,
9226 sh64_push_arguments, sh64_extract_return_value,
9227 sh64_store_return_value, sh64_show_media_regs,
9228 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9229 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9230 sh_sh64_register_virtual_type,
9231 sh_sh64_register_convert_to_virtual,
9232 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9233 sh64_register_read, sh64_pseudo_register_write,
9234 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9235 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9236 sh64_do_pseudo_register, sh_compact_do_registers_info,
9237 sh64_do_registers_info, sh_gdbarch_init): New functions.
9239 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9241 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9243 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9245 * linespec.c (decode_line_1): Check for a double quote after
9246 a filename correctly.
9248 2002-05-10 Jim Blandy <jimb@redhat.com>
9250 Properly track the size of the current objfile's .debug_line section.
9251 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9252 (DWARF_LINE_SIZE): New macro.
9253 (dwarf2_build_psymtabs_hard): Record the line section's size in
9254 the partial symbol table.
9255 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9258 2002-05-10 Petr Sorfa <petrs@caldera.com>
9260 * ia64-tdep.c: Handle breakpoints on L instruction type
9261 in MLX instruction bundle by moving the breakpoint to
9262 the third slot (X instruction type) as L holds only data.
9264 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9266 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9267 (process_one_symbol): Complain about discarding local symbols
9268 due to a misplaced N_LBRAC entry.
9270 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9272 From Daniel Berlin <dan@cgsoftware.com>
9273 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9274 decrease the depth we are at, in the case of templates.
9276 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9278 * mips-tdep.c (mips_float_register_type): New function.
9279 (mips_double_register_type): New function.
9280 (mips_print_register): Use them.
9281 (do_fp_register_row): Likewise.
9283 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9285 * signals/signals.c (signals): Remove conditional compilation around
9286 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9287 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9289 2002-05-09 Michael Snyder <msnyder@redhat.com>
9291 * remote-rdp.c (remote_rdp_can_run): Remove.
9293 2002-05-09 Tom Tromey <tromey@redhat.com>
9295 * jv-valprint.c (java_val_print): Handle `char' as a special case
9298 2002-05-09 Michael Snyder <msnyder@redhat.com>
9300 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9301 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9302 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9303 str r(0123),[sp,#nn].
9304 (arm_skip_prologue): Ditto. Also make disassembly
9305 order-independent by placing it in a loop.
9307 2002-05-06 Michael Snyder <msnyder@redhat.com>
9309 * stabsread.c (read_type): Add recognition for new attribute:
9310 "@V;" means that an array type is actually a vector.
9311 This is analogous to the vector flag that's been added to dwarf2.
9313 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9315 * i386-tdep.h (i386_abi): New enum.
9316 (struct gdbarch_tdep): Replace os_ident member with abi.
9317 (i386_gdbarch_register_os_abi): New prototype.
9318 * i386-tdep.c (i386_abi_names): New array.
9319 (process_note_abi_tag_sections): Removed.
9320 (process_note_sections): New function.
9321 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9322 (struct i386_abi_handler): New struct.
9323 (i386_abi_handler_list): New variable.
9324 (i386_gdbarch_register_os_abi): New function.
9325 (i386_gdbarch_init): Adapt for the changes given above.
9327 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9329 * gregset.h: Say "GNU/Linux".
9331 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9333 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9334 (build_gdbtypes): Build builtin_type_v2_float.
9335 (_initialize_gdbtypes): Register new builtin type.
9337 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9339 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9340 (clear_gdbarch_swap): New function.
9341 (initialize_non_multiarch): Call.
9342 (gdbarch_update_p): Before calling init(), swap out and clear the
9343 existing architecture.
9344 * gdbarch.c: Regenerate.
9346 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9348 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9351 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9353 * sh-nbsd-nat.c: Rename to...
9354 * shnbsd-nat.c: ...this.
9355 * sh-nbsd-tdep.c: Rename to...
9356 * shnbsd-tdep.c: ...this.
9357 * sh-nbsd-tdep.h: Rename to...
9358 * shnbsd-tdep.h: ...this.
9359 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9360 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9362 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9364 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9365 concatenation for command help messages.
9367 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9369 * NEWS: Note new sh*-*-netbsdelf* configuration.
9370 * configure.host: Set gdb_host_cpu to sh for all sh*.
9371 (sh*-*-netbsdelf*): New host.
9372 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9373 (sh*-*-netbsdelf*): New target.
9374 * sh-nbsd-nat.c: New file.
9375 * sh-nbsd-tdep.c: New file.
9376 * sh-nbsd-tdep.h: New file.
9377 * config/sh/nbsd.mh: New file.
9378 * config/sh/nbsd.mt: New file.
9379 * config/sh/nm-nbsd.h: New file.
9380 * config/sh/tm-nbsd.h: New file.
9382 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9384 * sh-tdep.c (sh_osabi_names): Declare.
9385 (process_note_abi_tag_sections): New function.
9386 (get_elfosabi): Ditto.
9387 (sh_gdbarch_register_os_abi): Ditto.
9388 (sh_dump_tdep): Ditto.
9389 _initialize_sh_tdep): Use gdbarch_register to register
9390 sh_gdbarch_init and sh_dump_tdep.
9391 * config/sh/tm-sh.h (sh_osabi): Declare.
9392 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9394 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9396 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9397 (thumb_scan_prologue): Ditto.
9398 (arm_find_callers_reg): Ditto.
9399 (arm_frame_chain): Ditto.
9400 (arm_init_extra_frame_info): Ditto.
9401 (arm_frame_saved_pc): Ditto.
9402 (arm_pop_frame): Ditto.
9403 (arm_push_return_address): New function.
9404 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9405 call_dummy_location, call_dummy_breakpoint_offset_p,
9406 call_dummy_breakpoint_offset, call_dummy_p,
9407 call_dummy_stack_adjust_p, call_dummy_words,
9408 sizeof_call_dummy_words, call_dummy_start_offset,
9409 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9410 call_dummy_address, push_return_address and push_dummy_frame for
9411 generic dummy frames.
9413 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9415 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9416 size computation for alloca.
9417 (sh_fp_frame_init_saved_regs): Likewise.
9419 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9421 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9422 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9423 * arm-tdep.c (arm_store_return_value): Use them.
9424 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9425 * remote-rdp.c (remote_rdp_fetch_register): Use
9426 ARM_MAX_REGISTER_RAW_SIZE.
9427 (remote_rdp_store_register): Likewise.
9429 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9431 * dwarf2cfi.c: Code cleanup, removed unused variables,
9432 added default labels to switch {} statements.
9433 * x86-64-tdep.c: Ditto.
9434 * x86-64-linux-nat.c: Ditto.
9436 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9438 * solib.h: Protect against multiple inclusion.
9440 2002-05-06 Jim Blandy <jimb@redhat.com>
9442 Add first preprocessor macro-expansion files.
9443 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9444 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9445 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9446 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9447 (COMMON_OBS): Add macrotab.o, macroexp.o.
9448 (macroexp.o, macrotab.o): New rules.
9450 Separate the job of reading the line number info statement program
9451 header (...expialidocious) out into its own function.
9452 * dwarf2read.c (struct line_head, struct filenames, struct
9453 directories): Replace with...
9454 (struct line_header): New structure, containing the full
9455 contents of the statement program header, including the
9456 include directory and file name tables.
9457 (read_file_scope): If we have line number info, instead of just
9458 calling dwarf_decode_lines to do all the work, call
9459 dwarf_decode_line_header first to get a `struct line_header'
9460 containing the data in the statement program header, and then
9461 pass that to dwarf_decode_lines, which will pick up where that
9462 left off. Be sure to clean up the `struct line_header' object.
9463 (dwarf_decode_line_header, free_line_header, add_include_dir,
9464 add_file_name): New functions.
9465 (dwarf_decode_lines): Move all the code to read the statement
9466 program header into dwarf_decode_line_header. Take the line
9467 header it built as the first argument, instead of the offset to
9468 the compilation unit's line number info. Use the new `struct
9469 line_header' type instead of the old structures. No need to do
9470 cleanups here now, since we don't allocate anything.
9471 (dwarf2_statement_list_fits_in_line_number_section,
9472 dwarf2_line_header_too_long): New complaints.
9474 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9476 * gdbtypes.c (init_vector_type): New function.
9477 (build_builtin_type_vec128): Simplify the representation of SIMD
9479 (build_gdbtypes): Initialize new builtin vector types.
9480 (_initialize_gdbtypes): Register new vector types with gdbarch.
9481 (builtin_type_v4_float, builtin_type_v4_int32,
9482 builtin_type_v8_int16, builtin_type_v16_int8,
9483 builtin_type_v2_int32, builtin_type_v4_int16,
9484 builtin_type_v8_int8): New (renamed) SIMD types.
9486 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9488 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9489 (i387_fill_fxsave): Likewise.
9491 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9493 * alpha-tdep.c (alpha_extract_return_value): Don't use
9494 non-constant array size in prototype.
9496 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9498 From Brian Taylor <briant at model dot com>:
9499 * ui-out.c (ui_out_field_core_addr): Use the function
9500 longest_local_hex_string_custom'to format addresses > 32 bits
9503 * ui-out.c (ui_out_field_core_addr): Update comment.
9505 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9507 * stack.c (select_and_print_frame): Make static. Delete the
9509 (func_command): Update call.
9510 (select_frame_command): Delete code computing the frame level.
9511 * frame.h (select_and_print_frame): Delete declaration.
9513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9515 * sparc-tdep.c (sparc_get_saved_register): Comment why
9516 get_prev_frame call is safe.
9518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9520 * frame.h (select_frame): Delete level parameter.
9521 * stack.c (select_frame): Update. Use frame_relative_level to
9522 obtain the frame's level.
9523 (select_and_print_frame): Update call.
9524 (select_frame_command): Ditto.
9525 (up_silently_base): Ditto.
9526 (down_silently_base): Ditto.
9527 * ocd.c (ocd_start_remote): Ditto.
9528 * remote-rdp.c (remote_rdp_open): Ditto.
9529 * remote-mips.c (mips_initialize): Ditto.
9530 (common_open): Ditto.
9531 * remote-e7000.c (e7000_start_remote): Ditto.
9532 * m3-nat.c (select_thread): Ditto.
9533 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9534 (child_get_current_exception_event): Ditto.
9535 * varobj.c (varobj_create): Ditto.
9536 (varobj_update): Ditto.
9537 (c_value_of_root): Ditto.
9538 * tracepoint.c (finish_tfind_command): Ditto.
9539 * corelow.c (core_open): Ditto.
9540 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9541 * thread.c (info_threads_command): Ditto.
9542 (switch_to_thread): Ditto.
9543 * infrun.c (normal_stop): Ditto.
9544 (restore_selected_frame): Ditto.
9545 (restore_inferior_status): Ditto.
9546 * breakpoint.c (insert_breakpoints): Ditto.
9547 (watchpoint_check): Ditto.
9548 (bpstat_stop_status): Ditto.
9549 (do_enable_breakpoint): Ditto.
9550 * blockframe.c (flush_cached_frames): Ditto.
9551 (reinit_frame_cache): Ditto.
9553 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9555 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9558 2002-05-04 Jim Blandy <jimb@redhat.com>
9560 * gdbtypes.c (replace_type): Doc fix.
9562 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9564 * valprint.c (strcat_longest): Delete commented out function.
9567 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9569 * MAINTAINERS: Mark a29k as deleted.
9570 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9571 Move new configurations to the top.
9572 * configure.tgt: Remove a29k.
9573 * config/a29k/tm-vx29k.h: Delete.
9574 * config/a29k/vx29k.mt: Delete.
9575 * config/a29k/tm-a29k.h: Delete.
9576 * config/a29k/a29k-udi.mt: Delete.
9577 * config/a29k/a29k.mt: Delete.
9578 * a29k-tdep.c: Delete.
9579 * remote-udi.c: Delete.
9580 * remote-mm.c: Delete.
9581 * remote-eb.c: Delete.
9582 * remote-adapt.c: Delete.
9583 * Makefile.in: Remove obsolete code.
9584 * config/s390/s390x.mt: Ditto.
9585 * config/s390/s390.mt: Ditto.
9586 * config/sparc/sparclynx.mh: Ditto.
9587 * config/sparc/linux.mh: Ditto.
9588 * config/pa/hppaosf.mh: Ditto.
9589 * config/pa/hppabsd.mh: Ditto.
9590 * config/ns32k/nbsd.mt: Ditto.
9591 * config/mips/vr5000.mt: Ditto.
9592 * config/m68k/sun3os4.mh: Ditto.
9593 * config/m68k/nbsd.mt: Ditto.
9594 * config/m68k/m68klynx.mh: Ditto.
9595 * config/m32r/m32r.mt: Ditto.
9596 * config/i386/x86-64linux.mt: Ditto.
9597 * config/i386/nbsdelf.mt: Ditto.
9598 * config/i386/nbsd.mt: Ditto.
9599 * config/i386/i386lynx.mh: Ditto.
9601 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9603 * target.c (debug_print_register): New function. Handle oversize
9605 (debug_to_fetch_registers): Call.
9606 (debug_to_store_registers): Call.
9608 2002-05-03 Jim Blandy <jimb@redhat.com>
9610 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9611 (read_type): Doc fix.
9612 * gdbtypes.c (replace_type): Doc fix.
9614 * stabsread.c (multiply_defined_struct): New complaint.
9615 (read_struct_type): If the type we were passed isn't empty, or
9616 incomplete, don't read the new struct type into it; complain,
9617 and return the original type unchanged. Take a new `type_code'
9618 argument, which is the type code for the new type.
9619 (read_type): Rather than storing the type's type code here, pass
9620 it as an argument to read_struct_type, and let that take care of
9621 storing it. That way, we don't overwrite the original type code,
9622 so read_struct_type can use it to decide whether we're overwriting
9623 something we shouldn't.
9624 (complain_about_struct_wipeout): New function.
9626 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9628 * gdbarch.sh: Assert that gdbarch is non-NULL.
9629 * gdbarch.c: Regenerate.
9631 2002-05-03 Jason Merrill <jason@redhat.com>
9633 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9636 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9638 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9639 (x86_64_dwarf2gdb_regno_map_length),
9640 (x86_64_dwarf2_reg_to_regnum): Added.
9641 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9642 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9643 (_initialize_x86_64_tdep): Synced with the change above.
9644 (x86_64_skip_prologue): Reformulated message.
9646 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9648 * f-exp.y: Also use new prev_lexptr variable
9649 to improve error reporting. Based on Michael Snyder
9650 2002-04-24 dated patch to c-exp.y.
9651 * jv-exp.y: Likewise.
9652 * m2-exp.y: Likewise.
9654 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9656 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9657 we are dealing with vectors.
9659 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9661 * config/m68k/tm-nbsd.h: Obvious fix,
9662 correct machine name.
9664 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9666 * p-typeprint.c (pascal_type_print_base): Add support
9667 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9669 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9671 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9672 for fondamental pascal 'char' type.
9674 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9676 * p-lang.h (is_pascal_string_type): Declaration changed,
9677 new sixth argument of type char ** added.
9678 * p-lang.c (is_pascal_string_type): Implementation
9679 changed. Args length_pos, length_size, string_pos, char_size
9680 can now be NULL. New argument arrayname set to the field
9681 name of the char array. Return value set to char array
9682 field index plus one.
9683 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9684 is_pascal_string_type function.
9686 2002-05-02 Andrew Cagney <cagney@redhat.com>
9688 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9689 <cagney@redhat.com> change.
9690 * gdbarch.c: Regenerate.
9692 2002-05-02 Andrew Cagney <cagney@redhat.com>
9694 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9695 before probing for a new one. Detect errorenous gdbarch_init
9697 * gdbarch.c: Regenerate.
9699 2002-05-01 Andrew Cagney <cagney@redhat.com>
9701 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9702 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9703 * config/v850/tm-v850.h: Ditto. Update copyright.
9705 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9707 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9710 2002-04-30 Michael Snyder <msnyder@redhat.com>
9712 * arm-tdep.c: Whitespace clean-ups.
9713 (arm_skip_prologue): Fix thinko; two lines
9714 should have been removed as part of 4/24 change.
9716 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9718 * rs6000-tdep.c: Added comment describing how fpscr register
9719 numbers were chosen.
9721 2002-04-30 Michael Snyder <msnyder@redhat.com>
9723 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9725 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9727 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9728 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9729 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9731 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9733 From Louis Hamilton <hamilton@redhat.com>:
9734 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9735 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9736 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9737 not bfd-private xcoff data, to determine wordsize.
9738 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9740 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9742 GDB 5.2 released from 5.2 branch.
9744 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9746 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9747 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9748 (x86_64_register_info_table): Added comments with register numbers.
9750 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9752 * rs6000-tdep.c (rs6000_extract_return_value,
9753 rs6000_store_return_value): Handle returning vectors.
9754 (rs6000_gdbarch_init): Use
9755 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9756 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9758 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9760 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9761 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9763 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9765 * hpread.c (hpread_psymtab_to_symtab_1,
9766 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9767 with fprintf_unfiltered (gdb_stderr,...).
9769 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9771 * remote-array.c (printf_monitor, write_monitor,
9772 array_insert_breakpoint, array_remove_breakpoint ):
9773 Replace fprintf (stderr,...
9774 with fprintf_unfiltered (gdb_stderr,....
9775 * remote-es.c: Likewise.
9776 * remote-os9k.c: Likewise.
9777 * remote-st.c: Likewise.
9779 2002-04-28 Andreas Schwab <schwab@suse.de>
9781 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9782 linux-proc.o and gcore.o.
9784 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9786 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9787 code without frame pointers.
9789 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9791 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9794 2002-04-26 Ben Elliston <bje@redhat.com>
9796 * target.c (do_xfer_memory): Correct reference to the new option
9797 "trust-readonly-sections".
9799 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9801 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9802 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9803 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9805 (read_array_type): Record the fact that this array type is really a
9806 vector (i.e. are passed in by value).
9808 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9810 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9811 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9812 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9813 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9814 * alpha-linux-tdep.c: Include frame.h.
9815 (alpha_linux_sigcontext_addr): New function.
9816 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9817 alpha_linux_sigcontext_addr.
9818 * alpha-osf1-tdep.c: Include gdbcore.h.
9819 (alpha_osf1_sigcontext_addr): New function.
9820 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9821 alpha_osf1_sigcontext_addr.
9822 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9823 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9825 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9827 * stack.c (selected_frame_level):
9828 (select_frame): Do not set selected_frame_level.
9829 * frame.h (selected_frame_level): Delete declaration.
9831 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9833 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9834 convert_from_func_ptr-addr when AIX / PowerOpen.
9836 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9838 * valops.c (hand_function_call): Call
9839 generic_save_call_dummy_addr.
9840 * frame.h (generic_save_call_dummy_addr): Declare.
9841 * blockframe.c (struct dummy_frame): Add fields call_lo and
9843 (generic_find_dummy_frame): Check for PC in range call_lo to
9844 call_hi instead of entry_point_address.
9845 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9846 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9847 (generic_save_call_dummy_addr): New function.
9849 2002-04-24 David S. Miller <davem@redhat.com>
9851 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9852 sparc_skip_prologue.
9853 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9854 information to find prologue when possible.
9855 (sparc_prologue_frameless_p): Call examine_prologue directly.
9856 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9857 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9859 (SKIP_PROLOGUE): Likewise.
9861 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9863 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9864 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9865 indicate that the condition it was testing is always true.
9866 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9867 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9868 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9870 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9872 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9873 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9874 tdep->jb_pc and tdep->jb_elt_size.
9875 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9876 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9877 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9878 * alpha-nat.c (get_longjmp_target): Remove.
9879 (JB_ELEMENT_SIZE): Ditto.
9881 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9882 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9883 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9884 to alpha_get_longjmp_target.
9885 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9886 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9887 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9889 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9891 * README: Update to GDB 5.2.
9893 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9895 * gdbarch.sh (LC_ALL): Set to `c'.
9897 2002-04-25 Theodore A. Roth <troth@verinet.com>
9899 * avr-tdep.c: Ran through gdb_indent.sh.
9901 2002-04-25 Theodore A. Roth <troth@verinet.com>
9903 * MAINTAINERS: Add myself as AVR maintainer.
9904 * NEWS: Note new target avr.
9906 2002-04-25 Theodore A. Roth <troth@verinet.com>
9908 * Makefile.in: Add support for AVR target.
9909 * configure.tgt: Add support for AVR target.
9910 * avr-tdep.c: New file
9911 * config/avr/avr.mt: New file.
9913 2002-04-25 Theodore A. Roth <troth@verinet.com>
9915 * MAINTAINERS: Add myself to write-after-approval.
9917 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9919 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9920 with fprintf_unfiltered (gdb_stderr,....
9922 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9925 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9927 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9929 * p-exp.y: Also use new prev_lexptr variable
9930 to improve error reporting. Based on Michael Snyder
9931 2002-04-24 dated patch to c-exp.y.
9933 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9935 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9936 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9937 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9939 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9941 (FUNCTION_START_OFFSET): Remove.
9942 (BREAKPOINT): Ditto.
9944 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9946 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9949 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9951 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9952 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9953 alpha_linux_pc_in_sigtramp.
9954 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9955 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9956 alpha_osf1_pc_in_sigtramp.
9957 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9958 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9959 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9960 alphafbsd_pc_in_sigtramp.
9961 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9962 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9963 alphanbsd_pc_in_sigtramp.
9964 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9965 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9967 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9969 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9971 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9973 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9975 (alphanbsd-nat.o): New dependency list.
9976 (alphanbsd-tdep.o): Ditto.
9977 * NEWS: Note new native NetBSD/alpha configuration.
9978 * alphanbsd-nat.c: New file.
9979 * alphanbsd-tdep.c: Ditto.
9980 * configure.host (alpha*-*-netbsd*): New host.
9981 * configure.tgt (alpha*-*-netbsd*): New target.
9982 * config/alpha/nbsd.mh: New file.
9983 * config/alpha/nbsd.mt: Ditto.
9984 * config/alpha/nm-nbsd.h: Ditto.
9985 * config/alpha/tm-nbsd.h: Ditto.
9987 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9989 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9990 (alpha-osf1-tdep.o): New dependency list.
9991 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9992 and skip_sigtramp_frame members.
9993 * alpha-linux-tdep.c: Include gdbcore.h.
9994 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9995 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9996 * alpha-osf1-tdep.c: New file.
9997 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9999 (alpha_frame_past_sigtramp_frame): New function.
10000 (alpha_dynamic_sigtramp_offset): Ditto.
10001 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10002 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10003 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10004 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10005 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10006 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10007 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10008 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10009 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10010 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10011 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10012 to find_solib_trampoline_target.
10013 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10014 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10015 (SKIP_TRAMPOLINE_CODE): Remove.
10016 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10017 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10018 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10019 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10020 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10021 (PROC_SIGTRAMP_MAGIC): Ditto.
10022 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10023 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10024 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10025 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10026 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10028 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10030 * NEWS: Note that Alpha targets are now multi-arch.
10032 2002-04-24 Michael Snyder <msnyder@redhat.com>
10034 * parser-defs.h (prev_lexptr): New external variable.
10035 * parse.c (parse_exp_1): Set prev_lexptr to null before
10036 calling the language-specific parser.
10037 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10038 (yyerror): Use prev_lexptr in error reporting.
10040 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10042 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10043 * gregset.h: If FILL_FPXREGSET is defined, provide
10044 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10045 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10046 is defined, call fill_fpxregset.
10048 2002-04-24 Roland McGrath <roland@frob.com>
10050 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10051 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10052 (supply_gregset, supply_fpregset): New functions.
10054 * gnu-nat.c (gnu_find_memory_regions): New function.
10055 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10056 (gnu_xfer_memory): Add a cast.
10058 2002-04-24 Michael Snyder <msnyder@redhat.com>
10060 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10061 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10062 of argument regs ("str r(0123), [r11, #-nn"]).
10063 (arm_skip_prologue): Better handling for frameless functions.
10064 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10065 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10067 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10069 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10070 NUM_PSEUDO_REGS can be used.
10072 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10074 * arch-utils.h: Update copyright.
10076 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10077 * gdbarch.h, gdbarch.c: Re-generate.
10079 * inferior.h (IN_SIGTRAMP): Delete definition.
10080 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10081 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10083 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10084 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10085 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10086 (find_proc_framesize): Ditto.
10087 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10088 (alpha_init_extra_frame_info): Ditto.
10089 * infrun.c (handle_inferior_event): Ditto.
10090 (handle_inferior_event): Ditto.
10091 (check_sigtramp2): Ditto.
10092 * blockframe.c (create_new_frame): Ditto.
10093 (get_prev_frame): Ditto.
10094 * ppc-linux-tdep.c: Update comments.
10095 * i386-linux-tdep.c: Update comments.
10096 * breakpoint.c (bpstat_what): Update comment.
10098 2002-04-24 David S. Miller <davem@redhat.com>
10100 * i960-tdep.c (register_in_window_p): New function.
10101 (i960_find_saved_register): Use it instead of
10102 REGISTER_IN_WINDOW_P.
10103 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10105 * symtab.h (find_stab_function_addr): Kill extern.
10106 * minsyms.c (find_stab_function_addr): Remove from here...
10107 * dbxread.c: ... to here, and mark it static.
10109 2002-04-20 David S. Miller <davem@redhat.com>
10111 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10112 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10114 2002-04-21 David S. Miller <davem@redhat.com>
10116 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10117 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10118 (vx_write_register): Likewise.
10120 2002-04-23 J. Brobecker <brobecker@gnat.com>
10122 * source.c (is_regular_file): New function.
10123 (openp): Check wether file to open is a regular file
10124 to avoid opening directories.
10126 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10128 * findvar.c (extract_signed_integer): Cast printf argument
10129 to suppress format warning.
10130 (extract_unsigned_integer): Likewise.
10131 * infcmd.c (registers_info): Likewise.
10132 * top.c (get_prompt_1): Likewise.
10133 * valops.c (value_assign): Likewise.
10134 * valprint.c (print_decimal): Likewise.
10136 2002-04-22 H.J. Lu (hjl@gnu.org)
10138 * c-exp.y (typebase): Support
10140 [long|long long|short] [signed|unsigned] [int|]
10144 signed [long|long long|short] int
10146 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10148 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10150 * vax-tdep.h: New file.
10151 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10152 Make several routines static.
10153 (vax_get_saved_register): New function.
10154 (vax_gdbarch_init): New function.
10155 (_initialize_vax_tdep): Register vax_gdbarch_init.
10156 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10157 Remove macros now under the control of gdbarch.
10159 2002-04-22 Michael Snyder <msnyder@redhat.com>
10161 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10162 Some whitespace and coding standards tweaks.
10164 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10166 * vax-tdep.c: Include regcache.h.
10167 (vax_call_dummy_words): New.
10168 (sizeof_vax_call_dummy_words): New.
10169 (vax_fix_call_dummy): New function.
10170 (vax_saved_pc_after_call): Ditto.
10171 * config/vax/tm-vax.h: Don't include regcache.h.
10172 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10173 (CALL_DUMMY): Remove.
10174 (CALL_DUMMY_WORDS): Define.
10175 (SIZEOF_CALL_DUMMY_WORDS): Define.
10176 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10178 2002-04-18 Michael Snyder <msnyder@redhat.com>
10180 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10182 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10184 * vax-tdep.c (vax_frame_chain): New function.
10185 (vax_push_dummy_frame): Ditto.
10186 (vax_pop_frame): Ditto.
10187 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10188 (FRAMELESS_FUNCTION_INVOCATION): Use
10189 generic_frameless_function_invocation_not.
10190 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10191 (POP_FRAME): Use vax_pop_frame.
10193 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10195 * vax-tdep.c (vax_store_struct_return): New function.
10196 (vax_extract_return_value): Ditto.
10197 (vax_store_return_value): Ditto.
10198 (vax_extract_struct_value_address): Ditto.
10199 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10200 vax_store_struct_return.
10201 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10202 (STORE_RETURN_VALUE): Use vax_store_return_value.
10203 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10205 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10207 * vax-tdep.c (vax_frame_saved_pc): New function.
10208 (vax_frame_args_address_correct): Ditto.
10209 (vax_frame_args_address): Ditto.
10210 (vax_frame_locals_address): Ditto.
10211 (vax_frame_num_args): Move code to be in proximity to
10212 other frame-related functions.
10213 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10214 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10215 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10216 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10217 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10219 2002-04-22 H.J. Lu (hjl@gnu.org)
10221 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10224 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10226 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10227 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10228 (FRAME_INIT_SAVED_REGS): New macro.
10230 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10232 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10234 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10236 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10238 (fetch_osf_core_registers): Likewise.
10239 (supply_gregset): Likewise.
10241 2002-04-22 J. Brobecker <brobecker@gnat.com>
10243 * symfile.h (get_section_index): Define.
10244 * symfile.c (get_section_index): New function.
10245 * mdebugread.c (SC_IS_SBSS): New macro.
10246 (SC_IS_BSS): Return true for the scBss storage class only, as
10247 the scSBss storage class refers to the .sbss section.
10248 (parse_partial_symbols): Discard the symbols which associated
10249 section does not exist.
10250 Make sure to use the .sbss section index for symbols which
10251 storage class is scBss, rather than using the .bss section index.
10253 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10255 * vax-tdep.c: Update copyright years.
10256 (vax_register_name): New function.
10257 (vax_register_byte): Ditto.
10258 (vax_register_raw_size): Ditto.
10259 (vax_register_virtual_size): Ditto.
10260 (vax_register_virtual_type): Ditto.
10261 * config/vax/tm-vax.h: Update copyright years.
10262 (REGISTER_NAMES): Remove.
10263 (REGISTER_NAME): Define.
10264 (REGISTER_BYTE): Use vax_register_byte.
10265 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10266 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10267 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10269 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10271 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10273 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10275 2002-04-21 David S. Miller <davem@redhat.com>
10277 * arch-utils.c (generic_prologue_frameless_p): Kill
10278 SKIP_PROLOGUE_FRAMELESS_P code.
10279 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10281 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10282 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10283 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10285 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10286 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10287 (sparc_gdbarch_init): Pass it to
10288 set_gdbarch_prologue_frameless_p.
10290 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10292 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10293 (alphabsd-nat.o): New dependency list.
10295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10297 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10299 (alpha-linux-tdep.o): New dependency list.
10300 (alphafbsd-tdep.o): Likewise.
10302 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10304 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10306 * alpha-tdep.c: ...from here.
10307 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10309 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10311 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10312 prototype from here...
10313 * alpha-tdep.h: ...to here.
10315 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10317 * frame.h (selected_frame_level): Document as deprecated.
10318 (frame_relative_level): Declare.
10319 * stack.c (frame_relative_level): New function.
10320 (selected_frame_level): Document as deprecated.
10321 (select_frame): Do not set the selected_frame_level.
10323 * stack.c (frame_info, record_selected_frame): Update.
10324 (frame_command, current_frame_command): Update.
10325 (up_silently_base, up_command, down_silently_base): Update.
10326 (down_command): Update.
10327 * inflow.c (kill_command): Update.
10328 * tracepoint.c (finish_tfind_command): Update.
10329 * corelow.c (core_open): Update.
10330 * thread.c (info_threads_command): Update.
10331 (do_captured_thread_select): Update.
10332 * infcmd.c (finish_command): Update.
10333 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10335 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10337 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10339 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10341 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10344 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10346 * alphafbsd-tdep.c: Update copyright years. Include
10348 (alphafbsd_use_struct_convention): Make static.
10349 (alphafbsd_init_abi): New function.
10350 (_initialize_alphafbsd_tdep): New function.
10351 * config/alpha/tm-fbsd.h: Update copyright years.
10352 (USE_STRUCT_CONVENTION): Remove.
10354 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10356 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10357 an Alpha ABI variant.
10358 (alpha_abi_handler_list): Declare.
10359 (alpha_gdbarch_register_os_abi): New function.
10360 (alpha_gdbarch_init): Give registered ABI variant handlers a
10361 chance to tweak the gdbarch once we have set up defaults.
10362 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10364 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10366 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10367 to standard_coerce_float_to_double.
10368 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10370 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10372 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10373 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10374 from gdbarch_tdep rather than a constant.
10375 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10376 the default text address for all Alpha Unix ABIs.
10377 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10378 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10380 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10382 * alpha-tdep.h: New file. Includes several Alpha target constants
10384 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10385 let gdbarch deal with.
10386 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10387 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10388 to dependency list.
10389 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10390 Alpha target register names.
10391 * alphabsd-nat.c: Likewise.
10392 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10393 Alpha target register names. Make serveral routines static.
10394 (alpha_get_saved_register): New function.
10395 (alpha_abi_names): New.
10396 (process_note_abi_tag_sections): New function.
10397 (get_elfosabi): New function.
10398 (alpha_gdbarch_init): New function.
10399 (alpha_dump_tdep): New function.
10400 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10402 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10404 * frame.c (find_saved_register): Delete #ifdef
10405 HAVE_REGISTER_WINDOWS code.
10406 * config/sparc/tm-sparc.h: Update comments.
10407 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10409 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10411 * i960-tdep.c (i960_find_saved_register): New function.
10412 (i960_get_saved_register): New function.
10413 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10414 (i960_get_saved_register): Declare.
10415 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10417 2002-04-20 David S. Miller <davem@redhat.com>
10419 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10421 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10423 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10424 instead of NUM_PSEUDO_REGS.
10426 2002-04-20 David S. Miller <davem@redhat.com>
10428 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10429 GDB_MULTI_ARCH_PARTIAL
10430 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10431 define, let tm-sp64.h do it.
10433 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10435 * frame.c (find_saved_register): Avoid a NULL pointer
10436 dereference and actually walk the frame list.
10438 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10440 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10441 sorted in most most-recent-used order. Document.
10442 * gdbarch.h, gdbarch.c: Regenerate.
10444 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10446 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10448 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10449 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10450 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10453 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10456 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10457 (build_builtin_type_vec128): Ditto.
10458 (append_composite_type_field): Fix calculation of type length in
10461 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10463 * config/djgpp/README: Update.
10465 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10468 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10470 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10471 (alpha_setup_arbitrary_frame): ...to this.
10472 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10473 for alpha_setup_arbitrary_frame.
10475 2002-04-18 Andrew Cagney <cagney@redhat.com>
10477 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10478 * gdbarch.h, gdbarch.c: Regenerate.
10480 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10481 * target.h (memory_breakpoint_from_pc): Update declaration.
10482 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10484 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10485 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10486 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10487 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10488 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10489 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10490 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10491 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10492 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10493 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10494 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10495 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10497 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10499 * monitor.c (monitor_insert_breakpoint): Ditto.
10500 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10502 * config/mcore/tm-mcore.h: Update copyright.
10503 * mem-break.c: Ditto.
10504 * xstormy16-tdep.c: Ditto.
10506 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10508 * p-exp.y: Add precedence rule for '^' token.
10509 This removes the shift/reduce conflicts.
10510 Remove the comment concerning these shift/reduce conflicts.
10512 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10514 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10515 (registers_powerpc_nofp): New register set for processors
10516 without floating point unit.
10518 2002-04-18 David S. Miller <davem@redhat.com>
10520 * MAINTAINERS: Add myself to write-after-approval.
10522 2002-04-17 Michael Snyder <msnyder@redhat.com>
10524 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10526 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10528 * rs6000-tdep.c (frame_initial_stack_address): Use
10529 frame_register_read to read the alloca_reg.
10531 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10533 * frame.c (find_saved_register): Find saved registers in the next
10537 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10539 * gdbarch.sh (LANG): Set to ``c''.
10541 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10543 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10545 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10547 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10550 * hpread.c (hpread_get_lntt): Add declaration.
10551 Also fix PR gdb/391.
10553 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10555 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10556 * aclocal.m4, configure: Re-generate.
10559 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10561 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10562 instead of tm_print_insn.
10564 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10566 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10568 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10570 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10571 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10572 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10574 2002-04-12 Don Howard <dhoward@redhat.com>
10576 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10577 max_user_call_depth.
10578 (init_cmd_lists): Initialize the new value;
10579 * cli/cli-script.c (execute_user_command): Limit the call depth of
10580 user defined commands. This avoids a core-dump when user commands
10581 are infinitly recursive.
10583 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10585 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10586 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10587 from tdep struct instead of DEFAULT_LR_SAVE.
10588 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10589 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10590 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10592 2002-04-12 Michael Snyder <msnyder@redhat.com>
10594 * Remote.c: Spelling fix.
10595 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10596 If no symbol found for "sbrk", try "_sbrk".
10597 (make_output_phdrs): Use bfd_section_name.
10598 (gcore_copy_callback): Use bfd_section_name.
10599 * eval.c: Indentation fix-ups.
10600 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10601 in case it gets applied to an address that is already
10602 in the instruction space.
10603 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10604 * symfile.c: Fix indentation, long lines.
10605 * source.c: White space fix-up.
10607 2002-04-12 Andrew Cagney <cagney@redhat.com>
10609 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10610 * frame.c (frame_register_read): New function. Return non-zero on
10612 (read_relative_register_raw_bytes_for_frame): Delete.
10613 (read_relative_register_raw_bytes): Delete.
10614 * frame.h (frame_register_read): Declare.
10615 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10616 * sh-tdep.c: Ditto.
10617 * infcmd.c (do_registers_info): Ditto.
10618 * hppa-tdep.c: Ditto.
10619 * rs6000-tdep.c: Ditto.
10620 * h8500-tdep.c: Ditto.
10621 * mips-tdep.c: Ditto.
10622 * h8300-tdep.c: Ditto.
10623 * z8k-tdep.c: Ditto.
10625 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10627 From Jimi X <jimix@watson.ibm.com>:
10628 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10631 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10633 From Jimi X <jimix@watson.ibm.com>:
10634 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10637 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10639 From Jimi X <jimix@watson.ibm.com>:
10640 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10641 register sets for these processor variants.
10643 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10645 * regformats/reg-ppc.dat: Support FPSCR.
10647 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10649 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10650 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10651 Add fpscr as an invalid/unfetchable register.
10652 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10653 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10654 (fill_fpregset): Add support for register fpscr.
10655 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10656 (fill_gregset): Account for the fact that register ``mq'' might
10658 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10659 (registers_power): Add fpscr to register set at slot 71.
10660 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10661 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10663 2002-04-11 Michael Snyder <msnyder@redhat.com>
10665 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10666 * configure: Regenerate.
10667 * config.in: Regenerate.
10668 * acconfig.h: Add define for _SYSCALL32.
10669 * core-sol2.c: Remove #define _SYSCALL32.
10670 * solib-legacy.c: Remove #define _SYSCALL32.
10672 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10674 * stack.c (select_frame): Cleanup internal error message, do not
10677 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10679 * stack.c (select_frame): Check that selected_frame and the
10680 specified level are as expected.
10681 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10683 * frame.h (struct frame_info): Add field `level'. Update
10685 Work-in-progress PR gdb/464.
10687 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10689 * maint.c (maint_print_section_info): Rename print_section_info.
10690 (print_bfd_section_info, print_objfile_section_info): Update.
10691 * inferior.h (struct gdbarch): Add opaque declaration.
10692 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10693 * gdbarch.h: Regenerate.
10695 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10697 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10698 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10699 (kernel_u_size): Added.
10700 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10701 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10703 2002-04-04 Jim Ingham <jingham@apple.com>
10705 * valarith.c (find_size_for_pointer_math): New function, either returns
10706 the size for a pointer's target, returns 1 for void *, or errors for
10708 (value_add, value_sub): use find_size_for_pointer_math.
10710 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10712 * linux-low.c (linux_look_up_symbols): New hook.
10713 (linux_target_ops): Add linux_look_up_symbols.
10714 * remote-utils.c (decode_address): New function.
10715 (look_up_one_symbol): New function.
10716 * server.c (handle_query): Call target look_up_symbols hook.
10717 * server.h (look_up_one_symbol): Add prototype.
10718 * target.h (struct target_ops): Add look_up_symbols hook.
10720 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10722 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10723 override FP_REGNUM with frame->fp. Update copyright.
10724 * parse.c (num_std_regs, std_regs): Delete.
10725 (target_map_name_to_register): Do not search std_regs. Update
10726 function description.
10727 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10728 declarations. Update copyright.
10731 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10733 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10734 after the last symbol in a block.
10736 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10738 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10739 is non zero as a found symbol.
10741 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10743 * findvar.c: Include "builtin-regs.h".
10744 (value_of_register): Call value_of_builtin_reg when applicable.
10745 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10746 (target_map_name_to_register): Call
10747 builtin_reg_map_name_to_regnum.
10748 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10749 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10750 (builtin_regs_h): Define.
10751 (builtin-regs.o): New target.
10752 (findvar.o): Add $(builtin_regs_h).
10753 * builtin-regs.c, builtin-regs.h: New files.
10754 * std-regs.c: New file.
10755 Partial fix for PR gdb/251.
10757 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10759 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10760 it's no longer required.
10762 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10764 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10766 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10768 From Jimi X <jimix@watson.ibm.com>:
10769 * rs6000-tdep.c (rs6000_software_single_step): Use
10770 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10771 and size. Use target_insert_breakpoint() and
10772 target_remove_breakpoint() to insert and remove breakpoints
10773 instead of explicit memory reads and writes.
10775 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10777 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10778 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10779 ELF_OBJECT_FORMAT ifdef.
10781 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10783 From Jimi X <jimix@watson.ibm.com>:
10784 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10786 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10788 From Jimi X <jimix@watson.ibm.com>:
10789 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10790 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10792 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10794 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10795 s/asprintf/xasprintf/.
10796 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10798 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10800 I believe Jeff Law denies responsability for this one:
10801 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10802 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10803 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10804 Work-around for PR gdb/366.
10806 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10808 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10809 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10810 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10812 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10814 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10815 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10818 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10820 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10823 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10825 * README (Reporting Bugs in GDB): Document the bug web page as the
10826 prefered way of submitting bugs.
10829 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10831 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10832 -1. Update comment.
10833 * gdbarch.h, gdbarch.c: Re-generate.
10835 2002-04-07 Andreas Schwab <schwab@suse.de>
10837 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10838 buffer to regcache_collect.
10840 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10842 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10843 * gdbarch.c, gdbarch.h: Re-generate.
10845 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10847 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10848 declaration. Fix -Werror.
10850 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10852 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10853 * gdbarch.c: Regenerate.
10855 2002-04-05 Michael Snyder <msnyder@redhat.com>
10857 * breakpoint.c (clear_command): Rewrite middle section to
10858 combine two loops with identical control conditions.
10859 Add a cleanup to eliminate a memory leak.
10860 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10862 2002-04-05 H.J. Lu (hjl@gnu.org)
10864 * solib-svr4.c (bkpt_names): Add "__start".
10866 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10868 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10869 as test for 64 bit target.
10871 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10873 * h8500-tdep.c (h8500_write_fp): Delete function.
10874 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10875 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10876 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10878 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10879 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10881 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10882 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10883 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10884 (d10v_write_fp): Delete function.
10885 * inferior.h (write_fp, generic_target_write_fp): Delete
10887 * regcache.c (generic_target_write_fp): Delete function.
10888 (write_fp): Delete function.
10889 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10890 * gdbarch.h, gdbarch.c: Regenerate.
10891 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10892 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10893 (sparc64_write_fp): Delete declaration.
10894 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10895 (h8500_write_fp): Delete declaration.
10897 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10899 * sparc-tdep.c (sparc64_write_fp): Delete.
10900 (sparc_push_dummy_frame): Replace write_fp call with code to store
10902 (sparc_gdbarch_init): Do not initialize write_fp.
10904 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10906 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10909 2002-03-29 Jim Blandy <jimb@redhat.com>
10911 * stack.c (get_selected_block): Add new argument `addr_in_block',
10912 used to return the exact code address we used to select the block,
10913 not just the block.
10914 * blockframe.c (get_frame_block, get_current_block): Same.
10915 * frame.h (get_frame_block, get_current_block,
10916 get_selected_block): Update declarations.
10917 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10918 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10920 2002-04-05 Michael Snyder <msnyder@redhat.com>
10922 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10925 2002-04-05 J. Brobecker <brobecker@gnat.com>
10927 * utils.c (xfullpath): New function.
10928 * defs.h (xfullpath): Add declaration.
10929 * source.c (openp): Use xfullpath in place of gdb_realpath to
10930 avoid resolving the basename part of filenames when the
10931 associated file is a symbolic link. This fixes a potential
10932 inconsistency between the filenames known to GDB and the
10933 filenames it prints in the annotations.
10934 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10935 to be able to match a filename with either the real filename, or
10936 the name of any symbolic link to this file.
10937 (lookup_partial_symtab): Ditto.
10939 2002-04-04 Michael Snyder <msnyder@redhat.com>
10941 * breakpoint.c: Add support for hardware breakpoints in overlays.
10942 (overlay_events_enabled): New state variable.
10943 (insert_breakpoints): Use overlay_events_enabled to decide
10944 whether to attempt to set a breakpoint at the overlay load addr.
10945 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10946 (remove_breakpoint): Use overlay_events_enabled to decide
10947 whether breakpoints need to be removed from overlay load addr.
10948 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10949 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10950 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10951 disable_overlay_breakpoints): Update overlay_events_enabled.
10953 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10955 * dwarf2read.c (struct function_range): New.
10956 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10957 (check_cu_functions): New.
10958 (read_file_scope): Initialize global function lists.
10959 Call dwarf_decode_line after processing children.
10960 (read_func_scope): Add to global function list.
10961 (dwarf_decode_lines): Call check_cu_functions everywhere
10962 record_line is called. Call record_line with a linenumber
10963 of 0 to mark sequence ends.
10965 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10967 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10968 change sync with glibc.
10970 2002-04-03 Jim Blandy <jimb@redhat.com>
10972 * configure.in: Call AC_C_INLINE.
10973 * configure: Regenerated.
10975 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10977 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10978 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10980 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10982 * NEWS: Mention gcore support on FreeBSD/i386.
10984 * fbsd-proc.c: New file.
10985 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10986 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10988 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10991 2002-03-29 Jim Blandy <jimb@redhat.com>
10993 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10994 unescaped newlines in string literals, but newer ones don't. So
10997 2002-03-26 Michael Snyder <msnyder@redhat.com>
10998 Andrew Cagney <cagney@redhat.com>
11000 * cli/cli-dump.c: New file. Dump memory to file,
11001 restore file to memory.
11002 * cli/cli-dump.h: New file.
11003 * Makefile.in: Add rules, dependencies for cli-dump.o.
11004 * NEWS: Mention new commands.
11006 2002-03-28 Michael Snyder <msnyder@redhat.com>
11008 * symfile.c (symbol_file_add): Move test for null symbols to later.
11010 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11012 From veksler at il.ibm.com:
11013 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11014 the xstrduped original path.
11017 2002-03-27 Michael Snyder <msnyder@redhat.com>
11019 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11020 * infcmd.c (_initialize_infcmd): Ditto.
11021 * language.c (_initialize_language): Ditto.
11022 * symfile.c (_initialize_symfile): Ditto.
11023 * top.c (_init_main): Ditto.
11024 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11026 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11028 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11029 vector registers handling.
11030 (skip_prologue): Handle new AltiVec instructions. Fill in new
11031 fields of frame data.
11032 (frame_get_saved_regs): Fill in information for AltiVec registers.
11034 2002-03-27 Jim Blandy <jimb@redhat.com>
11036 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11037 a function; leave this macro here to invoke that function.
11038 (symbol_init_mangled_name): Declaration for that function.
11039 * symtab.c (symbol_init_mangled_name): New function.
11041 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11043 * valarith.c: Replace strerror with safe_strerror.
11044 * tracepoint.c: Ditto.
11045 * lin-lwp.c: Ditto.
11046 * go32-nat.c: Ditto.
11048 * gnu-nat.c: Ditto.
11050 2002-03-27 Andreas Schwab <schwab@suse.de>
11052 * event-top.c (command_line_handler): Remove useless if.
11054 2002-03-27 Andreas Jaeger <aj@suse.de>
11056 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11059 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11061 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11062 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11063 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11064 (x86_64_linux_dr_get_status, supply_gregset),
11065 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11066 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11067 (x86_64_register_info_table): Add.
11068 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11069 (x86_64_register_raw_size, x86_64_register_virtual_type),
11070 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11071 general x86_64_register_info_table.
11072 (i386_gdbarch_init): gdbarch_register_bytes is now set
11073 dynamicaly during initialization.
11074 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11075 * gdbserver/linux-x86-64-low.c: Ditto.
11077 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11079 * gdbserver/server.c (main): Call target_signal_to_host_p
11080 and target_signal_to_host on signals received from the remote.
11081 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11082 target_signal_from_host on signals sent to the remote.
11083 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11084 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11086 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11088 * signals/signals.c: Include "server.h" in gdbserver build.
11089 (target_signal_from_name): Don't use STREQ.
11090 (_initialize_signals): Likewise. Don't include function in
11093 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11095 * signals.c: Moved to...
11096 * signals/signals.c: Here.
11097 * Makefile (signals.o): Update.
11099 2002-03-26 Jeff Law (law@redhat.com)
11101 * somread.c (som_symtab_read): Remove some commented out code and
11102 updated related comments. Do not set the minimal symbol table to
11103 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11104 in a dynamic executable.
11105 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11106 where we are unable to find the minimal symbol for the given
11109 2002-03-25 Jeff Law (law@redhat.com)
11111 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11113 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11115 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11117 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11119 * command.h: Update copyright.
11120 (struct cmd_list_element): Replace definition with opaque
11122 (enum cmd_types): Document that it will eventually be moved to
11124 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11125 (MALLOCED_REPLACEMENT): Delete macro.
11126 * Makefile.in (cli_decode_h): Add $(command_h).
11127 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11128 * top.c: Include "cli/cli-decode.h".
11129 * completer.c: Include "cli/cli-decode.h".
11130 * maint.c: Include "cli/cli-decode.h".
11131 * cli/cli-decode.h: Include "command.h".
11132 (enum command_class): Delete.
11133 (enum cmd_types): Comment out.
11134 (enum cmd_auto_boolean): Delete.
11135 (enum var_types): Delete.
11137 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11139 * cli/cli-decode.c: Include "gdb_assert.h".
11140 (add_set_or_show_cmd): New static function.
11141 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11142 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11143 all fields, such as func, from the set command.
11145 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11147 * MAINTAINERS (sh-elf): Change warning flag to -w.
11149 2002-03-23 Andrew Cagney <cagney@redhat.com>
11151 * defs.h (error): Add printf format attribute.
11152 * thread-db.c (thread_from_lwp): Fix error format string.
11153 * stack.c (parse_frame_specification): Ditto.
11154 * cli/cli-decode.c (undef_cmd_error): Ditto.
11155 * scm-lang.c (scm_lookup_name): Ditto.
11156 * tracepoint.c (trace_error): Ditto.
11157 * remote-utils.c (usage): Ditto.
11158 * remote.c (compare_sections_command): Ditto.
11161 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11163 * gdbtypes.c (append_composite_type_field): New function.
11164 (init_composite_type): New function.
11165 * gdbtypes.h (append_composite_type_field): Declare.
11166 (init_composite_type): Ditto.
11168 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11170 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11172 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11173 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11174 structure returning convention for SYSV ABI case, but not
11175 for GNU/Linux, FreeBSD, or NetBSD.
11177 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11179 * symtab.h (lookup_block_symbol): Add mangled_name argument
11182 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11183 with new mangled_name argument.
11184 * linespec.c (decode_line_1): Likewise.
11185 * valops (value_of_this): Likewise.
11186 * symtab.c (lookup_transparent_type): Likewise.
11187 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11188 (lookup_symbol): If we are given a mangled name, pass it down
11189 to lookup_symbol_aux.
11190 (lookup_block_symbol): If we are given a mangled name to check
11191 against, only return symbols which match it.
11193 2002-03-22 Christopher Faylor <cgf@redhat.com>
11195 * win32-nat.c (child_create_inferior): Check for proper shell to use
11196 here, in case the user changes it on the fly.
11197 (_initialize_inftarg): Remove shell path considerations.
11199 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11201 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11202 for gdbarch_max_register_raw_size and max_register_virtual_size.
11203 Adjust copyright year.
11205 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11207 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11208 in a function to cover the entire beginning of the function
11209 as well if it does not already.
11211 2002-03-21 Tom Rix <trix@redhat.com>
11213 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11214 (rs6000_ptrace64): Renamed from ptrace64.
11216 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11218 * gdbserver/remote-utils.c (remote_open): Don't call
11219 getprotobyname, we're all using TCP here so just use
11221 * gdbserver/gdbreplay.c (remote_open): Ditto.
11223 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11225 * regcache.c (_initialize_regcache): No need to call
11226 build_regcache() at this time; it gets called whenever
11227 the gdbarch changes.
11229 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11231 * sparc-nat.c: Include sys/param.h where possible.
11233 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11236 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11237 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11238 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11240 * stabsread.c (rs6000_builtin_type): Likewise.
11241 (read_sun_floating_type): Likewise.
11243 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11245 * stabsread.c (read_member_functions): Remove skip code for duplicate
11246 constructor/destructor methods. Use standard parsing for these
11247 methods and just do not chain them to the list of methods after
11250 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11252 * coffread.c: Remove redundant static declarations. Replace
11253 occurrences of `PTR' with `void *'.
11254 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11255 * top.h (quit_cover): Likewise.
11256 * defs.h (catch_errors): Likewise.
11258 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11260 * defs.h (XMALLOC): Define.
11261 * gdb-events.sh (XMALLOC): Delete macro.
11262 * gdb-events.c, gdb-events.h: Regenerate.
11263 * gdbarch.sh (XMALLOC): Delete macro.
11264 * gdbarch.c: Regenerate.
11265 * serial.c (XMALLOC): Delete macro.
11266 * ui-file.c (XMALLOC): Ditto.
11267 * ser-unix.h (XMALLOC): Ditto.
11268 * sh-tdep.c (XMALLOC): Ditto.
11269 * ui-out.c (XMALLOC): Ditto.
11270 * utils.c (XMALLOC): Ditto.
11271 * i386-tdep.c (XMALLOC): Ditto.
11272 * gdb-events.c (XMALLOC): Ditto.
11273 * d10v-tdep.c (XMALLOC): Ditto.
11274 * cli-out.c (XMALLOC): Ditto.
11276 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11277 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11278 * ui-file.c, ui-out.c: Ditto.
11280 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11282 * command.h (struct cmd_list_element): Add field context.
11283 (set_cmd_context, get_cmd_context): Declare.
11284 * cli/cli-decode.h: Ditto.
11285 * cli/cli-decode.c (get_cmd_context): New function.
11286 (set_cmd_context): New function.
11287 (add_cmd): Initialize context.
11288 Part of fixing PR gdb/145 and PR gdb/146.
11290 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11292 * cli/cli-decode.c (cmd_type): New function.
11293 * command.h (cmd_type): Declare.
11294 * infrun.c (set_schedlock_func): Call function cmd_type.
11295 * kod.c (kod_set_os): Call cmd_type.
11296 * cris-tdep.c (cris_version_update): Use function cmd_type.
11297 (cris_mode_update, cris_abi_update): Ditto.
11299 * command.h: (execute_cmd_post_hook): Declare.
11300 (execute_cmd_pre_hook): Declare.
11301 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11302 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11303 functions. Execute pre/post hook while ensuring that afterwords
11304 hook_in is cleared.
11305 * top.c (execute_command): Use execute_cmd_post_hook, and
11306 execute_cmd_pre_hook to execute pre/post commands.
11307 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11309 (hook_stop_stub): Call execute_cmd_pre_hook.
11311 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11313 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11314 set'' and this leads to a core dump. Move xstrdup of
11315 operating_system to after check that it is not NULL.
11317 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11319 * kod.c (kod_set_os): Remove unnecessary check that
11320 ``command->type'' is set_cmd.
11322 * valprint.c (set_input_radix): Use input_radix.
11323 (set_output_radix): Use output_radix.
11324 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11327 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11329 * value.h (struct value): Delete field ``substring_addr''. Change
11330 aligner fields to force_doublest_align, force_longest_align,
11331 force_core_addr_align and force_pointer_aligh.
11333 * value.h (struct value): Fix typo in above change.
11335 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11337 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11338 to fix internal_error from ``maintenance print architecture''.
11340 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11342 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11343 for gcc versions after gcc-2.8.1.
11345 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11347 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11348 for method resolution. Restore adjustment of ``this'' pointer after
11349 calling value_struct_elt, which was accidentally removed during the
11352 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11354 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11356 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11357 get_saved_register.
11358 * value.h (value_of_register): Update.
11360 2002-03-14 Richard Henderson <rth@redhat.com>
11362 * configure.in: Detect declaration for canonicalize_file_name.
11363 * utils.c (canonicalize_file_name): Declare, if needed.
11364 (gdb_realpath): Prefer realpath if available and usable.
11365 * config.in, configure: Rebuild.
11367 2002-03-14 Richard Henderson <rth@redhat.com>
11369 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11370 a constant array bound.
11372 * MAINTAINERS: Add myself to write-after-approval.
11374 2002-03-14 Michael Snyder <msnyder@redhat.com>
11376 * symfile.c (syms_from_objfile): Return immediately if no syms.
11377 (symbol_file_add): Return immediately if no syms.
11378 (find_sym_fns): Return immediately if no syms.
11380 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11382 * gdbserver/remote-util.c (remote_open): Print remote-side's
11383 IP address when remote debugging over the network.
11385 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11387 * config/sparc/fbsd.mh: Fix copyright.
11388 * config/sparc/fbsd.mt: Likewise.
11390 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11392 * MAINTAINERS: Fix typo in name of gdb warnings option.
11393 (x86-64): Fix formating so that this can be parsed by awk.
11395 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11397 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11398 * defs.h: Include "gdb/signals.h".
11399 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11401 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11403 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11404 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11407 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11408 Don Howard <dhoward@redhat.com>
11410 * mips-tdep.c (ST0_FR): Define.
11411 (mips2_fp_compat): New function, temporarily disabled.
11412 (mips_read_fp_register_single): New function.
11413 (mips_read_fp_register_double): New function.
11414 (mips_print_register): Use them.
11415 (do_fp_register_row): Likewise.
11417 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11419 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11422 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11424 * stabsread.c (read_member_functions): Fix is_stub test for
11425 static member functions, improve comment.
11427 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11429 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11430 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11431 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11432 commands that set boolean values.
11433 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11434 (arm_rdi_resume): Always initialize PC.
11435 (arm_rdi_open): Don't use rslt as a boolean.
11436 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11437 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11438 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11439 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11441 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11443 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11444 * configure: Rebuilt.
11446 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11448 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11449 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11451 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11453 * cli/cli-decode.c (set_cmd_completer): New function.
11454 * command.h (set_cmd_completer): Declare.
11455 * cli/cli-decode.h (set_cmd_completer): Ditto.
11457 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11458 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11459 * win32-nat.c (_initialize_inftarg): Ditto.
11460 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11461 * proc-api.c (_initialize_proc_api): Ditto.
11462 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11463 * source.c (_initialize_source): Ditto.
11464 * exec.c (_initialize_exec): Ditto.
11465 * solib.c (_initialize_solib): Ditto.
11466 * top.c (init_main): Ditto.
11467 * tracepoint.c (_initialize_tracepoint): Ditto.
11468 * symfile.c (_initialize_symfile): Ditto.
11469 * printcmd.c (_initialize_printcmd): Ditto.
11470 * infcmd.c (_initialize_infcmd): Ditto.
11471 * corefile.c (_initialize_core): Ditto.
11473 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11475 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11477 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11479 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11481 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11483 * NEWS: Update headings, 5.2 has branched.
11485 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11487 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11488 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11489 (register_addr, REGISTER_RAW_SIZE): Likewise.
11490 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11491 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11493 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11495 * MAINTAINERS (x86-64): Add myself.
11496 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11497 changed value_ptr -> struct value *
11499 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11501 * configure.host (sparc64-*-freebsd): Add.
11502 * configure.tgt: Likewise.
11503 * config/sparc/fbsd.mh: New file.
11504 * config/sparc/fbsd.mt: Likewise.
11505 * config/sparc/nm-fbsd.h: Likewise.
11506 * config/sparc/tm-fbsd.h: Likewise.
11508 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11510 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11511 regformats/reg-s390x.dat.
11513 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11515 * utils.c: Add FIXME explaining true/false problem.
11517 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11519 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11521 2002-02-28 Michael Chastain <mec@shout.net>
11523 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11525 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11527 * gdbserver/linux-s390-low.c: New file.
11528 * regformats/reg-s390.dat: New file.
11529 * regformats/reg-s390x.dat: New file.
11530 * gdbserver/configure.srv: Add S/390.
11531 * gdbserver/Makefile.in: Add S/390.
11532 * configure.tgt: Enable gdbserver for S/390.
11534 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11536 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11537 first line of the doc string for "info dos", except at the end of
11538 the sentence, since the short help stops at the first period.
11540 2002-02-28 Jason Merrill <jason@redhat.com>
11542 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11544 2002-02-27 Fred Fish <fnf@redhat.com>
11546 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11547 comment (dumy -> dummy).
11549 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11551 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11553 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11555 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11557 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11559 * gdbserver/acconfig.h: New file.
11560 * gdbserver/i387-fp.c: New file.
11561 * gdbserver/i387-fp.h: New file.
11562 * gdbserver/linux-x86-64.c: New file.
11563 * regformats/reg-x86-64.dat: New file.
11564 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11565 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11566 * gdbserver/configure.in: Add support for regsets.
11567 * gdbserver/config.in: Regenerate.
11568 * gdbserver/configure: Regenerate.
11569 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11570 * gdbserver/linux-low.h: New file.
11571 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11573 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11574 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11575 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11576 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11577 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11578 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11579 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11580 "i387-fp.h". Add PTRACE_GETREGS and friends.
11581 * gdbserver/regcache.c (supply_register): New function.
11582 (supply_register_by_name): New function.
11583 (collect_register): New function.
11584 (collect_register_by_name): New function.
11586 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11588 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11589 (config.status): Add configure.srv dependency.
11590 (server_h): Add config.h dependency.
11592 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11594 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11595 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11596 * gdbserver/configure.srv: Change i386-*-linux* to use
11599 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11601 * x86-64-tdep.c: Re-indent. Update copyright date.
11603 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11605 From Michal Ludvig <mludvig@suse.cz>:
11606 * x86-64-tdep.c (value.h): Delete.
11607 (gdb_assert.h): Include.
11608 (x86_64_register_convert_to_virtual,
11609 x86_64_register_convert_to_raw ): Add check which lets only
11610 floating-point values to be converted.
11611 (value_push): Delete.
11612 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11613 (i386_gdbarch_init): Number of register_bytes fixed.
11615 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11617 * MAINTAINERS: Add x86-64 target.
11619 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11621 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11622 * osfsolib.c (solib_map_sections): Ditto.
11623 * irix5-nat.c (solib_map_sections): Ditto.
11624 * corelow.c (gdb_check_format): Ditto.
11625 * symfile.c (symfile_bfd_open): Ditto.
11626 * solib.c (solib_map_sections): Ditto.
11629 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11631 * remote.c (_initialize_remote): By default, disable ``e'' and
11632 ``E'' step out-of-range packets.
11634 2002-02-26 Andreas Schwab <schwab@suse.de>
11636 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11637 m68k_linux_frame_saved_pc.
11638 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11640 (SIGCONTEXT_PC_OFFSET): Remove.
11641 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11642 m68k_linux_sigtramp_saved_pc): New functions.
11643 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11644 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11645 (UCONTEXT_PC_OFFSET): Define.
11646 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11647 non-RT and RT signal trampolines.
11649 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11651 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11652 (TARGET_NBPG, STACK_END_ADDR): Delete
11653 (VARIABLES_INSIDE_BLOCK): Delete.
11655 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11657 * utils.c (perror_with_name): Make string parameter constant.
11658 (print_sys_errmsg): Ditto.
11660 * defs.h (perror_with_name): Update.
11661 (print_sys_errmsg): Update.
11664 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11666 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11667 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11669 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11671 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11672 if it already matches the current architecture from the exec file.
11673 Include arch-utils.h for gdbarch_info_init prototype.
11674 * Makefile.in (rs6000-nat.o): Update dependencies.
11676 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11678 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11679 list of exported variables.
11681 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11683 * gdbserver/configure.srv: New file.
11684 * gdbserver/configure.in: Use configure.srv instead
11685 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11687 * gdbserver/configure: Regenerated.
11688 * gdbserver/terminal.h: New file.
11689 * gdbserver/Makefile.in: Update for configure changes. Remove
11690 more unneeded include paths.
11692 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11694 From wiz at danbala:
11695 * config/sparc/tm-sp64.h: Fix grammar and typos.
11698 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11700 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11701 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11702 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11703 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11704 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11705 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11706 * s390-tdep.c: Ditto.
11707 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11708 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11709 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11710 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11711 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11712 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11713 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11714 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11715 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11716 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11719 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11721 * lin-thread.c: Delete file.
11722 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11723 to gdb_proc_service.h.
11724 * configure: Re-generate.
11726 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11727 * serial.c (serial_open): Delete check for "ocd".
11730 * Makefile.in (linux-thread.o): Delete target.
11731 * linux-thread.c: Delete file.
11733 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11734 renamed SH files to be consistent.
11736 * symtab.c (sort_search_symbols): Use xfree.
11738 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11740 * arm-linux-tdep.c (arm_linux_init_abi): Register
11741 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11742 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11743 definition with undef, since we don't want the sysvr4 definition.
11744 (SKIP_TRAMPOLINE_CODE): Likewise.
11746 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11748 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11750 * configure.in: (AC_CHECK_FUNCS) Added test for
11751 canonicalize_file_name Regenerated.
11752 * config.in, configure: Regenerated.
11753 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11754 defined use canonicalize_file_name.
11756 2002-02-23 Michael Chastain <mec@shout.net>
11758 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11760 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11762 * README: Remove references to cygnus.com.
11763 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11764 dot com'' form. Remove references to cygnus.com and sourceware.
11766 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11768 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11769 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11770 1003.1-2001 no longer allows "head -1".
11771 * gdb/Makefile.in (version.c): Likewise.
11772 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11773 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11774 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11776 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11778 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11779 * command.h (cmd_cfunc_eq): Declare.
11780 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11782 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11783 ``struct cmd_list_element *''.
11784 * cli/cli-cmds.c (is_complete_command): Update. Use
11786 * top.c (execute_command): Pass the command to
11787 is_complete_command.
11788 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11790 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11792 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11793 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11794 architecture defines.
11795 * s390-tdep.c (s390_gdbarch_init): Likewise.
11797 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11799 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11800 (arm_linux_push_arguments): Likewise.
11801 (arm_linux_init_abi): Register them. Also register linux-specific
11803 (find_minsym_and_objfile): Use strcmp, not STREQ.
11804 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11805 (arm_linux_call_dummy_words): Delete declaration.
11806 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11807 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11809 (LOWEST_PC): Delete.
11811 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11813 * maint.c (print_section_info): Do not prepend `0x' to filepos
11814 output, it will be handled by local_hex_string_custom.
11816 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11818 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11819 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11820 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11822 2002-02-22 Jim Blandy <jimb@redhat.com>
11824 Indicate that the bcache functions don't change the strings
11826 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11827 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11829 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11831 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11833 2002-02-21 Christopher Faylor <cgf@redhat.com>
11835 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11836 find the complete path to a loaded DLL.
11838 2002-02-21 Fred Fish <fnf@redhat.com>
11840 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11841 that marks the end of the range of a function, enter a line number
11842 entry that has a line number of zero and a PC offset that matches
11843 the end of the function. This starts a range of PC's for which no
11844 line number information is known.
11845 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11846 PC's for which no line number info is found (line number is zero)
11847 then we didn't find any valid line information.
11848 * symtab.h: Document use of zero line number entry.
11850 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11852 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11853 (have_ptrace_getvrregs): Define for run time checks.
11854 (gdb_vrregset_t): New type for Altivec register handling.
11855 (fetch_register, store_register): Fetch/store altivec register
11857 (fetch_altivec_register, store_altivec_register): New functions.
11858 (supply_vrregset, fill_vrregset): New functions.
11859 (fetch_altivec_registers, store_altivec_registers): New functions.
11860 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11863 2002-02-21 Jiri Smid <smid@suse.cz>
11865 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11867 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11869 * Makefile.in (armnbsd-nat.o): Update dependencies.
11870 * armnbsd-nat.c (supply_gregset): New function. Common code to
11871 supply the integer register set.
11872 (supply_fparegset): New function. Similar for FPA registers.
11873 (fetch_regs, fetch_fp_regs): Use them.
11874 (fetch_core_registers): Likewise.
11875 (fetch_elfcore_registers): New function.
11876 (arm_netbsd_elfcore_fns): New core-file type specification.
11877 (_initialize_arm_netbsd_nat): Register it.
11879 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11881 * armnbsd-nat.c: Include gdbcore.h.
11882 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11883 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11884 'void' to declaration, to shut up ARI.
11885 (fetch_core_registers): Make static. Rewrite using supply_register.
11886 (arm_netbsd_core_fns): New core-file type specification.
11887 (_initialize_arm_netbsd_nat): New function.
11889 2002-02-21 Christopher Faylor <cgf@redhat.com>
11891 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11894 2002-02-20 Christopher Faylor <cgf@redhat.com>
11896 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11899 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11901 * jv-exp.y (parse_number): Change type of implicit longs
11902 to builtin_type_uint64.
11904 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11906 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11907 to be an integer instead of a `union wait'.
11909 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11911 * mips-linux-nat.c: Call the operating system GNU/Linux.
11912 * mips-linux-tdep.c: Likewise.
11913 * mips-tdep.c: Likewise.
11915 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11918 * jv-exp.y (parse_number): Handle 64-bit integers.
11920 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11922 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11923 AC_STDC_HEADERS to AC_HEADER_STDC.
11924 * gdbserver/configure: Regenerated.
11926 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11928 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11930 * sparc-tdep.c (get_longjmp_target): Likewise.
11932 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11934 * News: Add news about ARM and Multi-arch. Mention the new target
11937 2002-02-19 Jim Blandy <jimb@redhat.com>
11939 * stabsread.c (error_type_complaint): Improve error message.
11941 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11943 * gdbserver/README: Update documentation.
11944 * gdbserver/configure.in: Update configury to match documentation.
11945 * gdbserver/Makefile.in: Likewise.
11946 * gdbserver/configure: Regenerated.
11947 * gdbserver/aclocal.m4: New file, generated by aclocal.
11948 * gdbserver/config.in: New file, generated by autoheader.
11950 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11952 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11955 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11957 * arm-tdep.h (enum arm_float_model): New enum.
11958 (struct gdbarch_tdep): Add fp_model.
11959 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11960 up floating-point conversions until we know the floating-point model
11961 in use by the inferior. Don't complain about being unable to
11962 determine the ABI of the inferior when we don't have one.
11963 (arm_extract_return_value): Support different floating-point models.
11964 (arm_store_return_value): Likewise.
11965 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11967 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11969 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11971 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11972 of ``current_gdbarch''.
11974 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11976 * armnbsd-nat.c : ANSIfy all function declarations.
11977 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11978 (fetch_inferior_registers): Re-implement in terms of above.
11979 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11980 (store_inferior_registers): Re-implement in terms of above.
11982 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11984 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11986 * arm-linux-tdep.c: Likewise.
11987 * config/arm/tm-linux.h: Likewise.
11989 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11991 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11992 * config/arm/nbsd.mt (TM_FILE): Delete.
11993 * config/arm/tm-nbsd.h: Delete.
11995 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11997 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11998 Initialize CALL_DUMMY_LENGTH.
12000 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12002 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12004 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12005 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12006 defines one thing and that is incorrect for this port.
12007 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12009 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12011 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12013 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12015 * win32-nat.c (display_selector): New function. Displays information
12016 about the information returned by GetThreadSelectorEntry API function.
12017 (display_selectors): New function. Displays the infomation of
12018 the selector given as argument, or of CS, DS ans FS selectors
12019 if no argument is given.
12020 ( _initialize_inftarg): Add "w32" as info prefix command.
12021 Add "info w32 selector" as command calling display_selectors.
12023 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12025 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12026 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12029 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12031 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12033 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12035 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12036 (arm_fix_call_dummy): Call it.
12037 (arm_call_dummy_breakpoint_offset): Delete.
12038 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12039 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12041 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12043 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12044 Default to func_frame_chain_valid.
12045 * gdbarch.h, gdbarch.c: Re-generate.
12046 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12048 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12050 * ppc-linux-nat.c: Update copyright.
12051 (fetch_register, store_register): Add tid parameter, don't compute
12053 (fetch_ppc_registers, store_ppc_registers): Add tid
12054 parameter. Pass it along to callees.
12055 (fetch_inferior_registers, store_inferior_registers): Compute tid
12056 here, and pass it to calleed functions.
12057 (fill_gregset, supply_fpregset): Clean up formatting.
12059 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12061 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12062 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12064 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12066 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12067 * gdbarch.c gdbarch.h: Regenerate.
12068 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12070 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12071 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12072 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12074 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12075 * arm-tdep.c (arm_get_longjmp_target): New function.
12076 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12077 this to a positive value register arm_get_longjmp_target as the
12079 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12080 (arm_linux_init_abi): Set up longjmp description in tdep.
12081 * armnbsd-nat.c (get_longjmp_target): Delete.
12082 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12083 description in tdep.
12084 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12085 (get_longjmp_target): Delete declaration.
12086 (GET_LONGJMP_TARGET): Delete.
12087 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12088 (GET_LONGJMP_TARGET): Delete.
12090 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12092 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12093 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12094 of ``current_gdbarch''.
12096 2002-02-17 Tom Tromey <tromey@redhat.com>
12098 * cli/cli-cmds.c (compare_strings): New function.
12099 (complete_command): Only print each unique item once.
12100 * completer.h (complete_line): Declare.
12101 * completer.c (complete_line): New function.
12102 (line_completion_function): Use it.
12104 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12106 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12107 * gdbarch.h, gdbarch.c: Re-generate.
12109 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12111 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12113 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12115 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12116 * valops.c (value_arg_coerce): Don't take the address of a reference
12117 to convert an argument to a reference.
12119 2002-02-15 Christopher Faylor <cgf@redhat.com>
12121 * win32-nat.c (get_image_name): New function.
12122 (handle_load_dll): Use get_image_name function.
12123 (get_child_debug_event): Avoid registering debug events until possibly
12124 execed process is started.
12125 (child_create_inferior): Allow invocation via shell so that command
12126 line redirection, etc. works ok.
12127 (_initialize_inftarg): Add new command: "set shell" to control whether
12128 a shell is used to start a process.
12130 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12132 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12133 instead of find_register_by_number.
12134 (cannot_store_register): Likewise.
12136 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12138 * dwarf2read.c: Replace fprintf (stderr, ...) by
12139 fprintf_unfiltered (gdb_stderr, ...).
12141 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12143 * gdbserver/gdbserver.1: Document --attach.
12145 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12147 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12149 * arm-tdep.c (arm_default_arm_le_breakpoint)
12150 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12151 (arm_default_thumb_be_breakpoint): New. Initialize them from
12152 traditional breakpoint defines.
12153 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12154 (arm_gdbarch_init): Initialize new breakpoint variables.
12155 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12156 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12157 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12158 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12160 (arm_netbsd_init_abi_common): ... here; new function.
12161 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12162 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12163 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12164 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12166 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12168 * arm-tdep.h (enum arm_abi): New enum.
12169 (struct gdbarch_tdep): New structure.
12170 (LOWEST_PC): Provide a default.
12171 (arm_gdbarch_register_os_abi): Declare new function.
12172 * arm-tdep.c (arm_abi_names): New array.
12173 (process_note_abi_tag_sections): New function.
12174 (get_elfosabi): New function.
12175 (arm_gdbarch_register_os_abi): New function.
12176 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12177 support for that ABI has been built in, then call the appropriate
12178 configuration routine. Use gdbarch_num_regs() to get the number
12180 (arm_dump_tdep): New function.
12181 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12182 place-holder functions.
12183 (_initialize_arm_tdep): Register them.
12184 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12186 * armnbsd-tdep.c: New file.
12187 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12188 * config/arm/nbsd.mt (TDEPFILES): Add it.
12189 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12191 * armnbsd-nat.c: Include regcache.h.
12192 * Makefile.in (armnbsd-nat.o): Update dependency list.
12194 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12196 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12198 * gdbserver/Makefile.in: Fix typos in target rules.
12200 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12202 Fix part of PR gdb/267.
12203 * linespec.c (find_methods): Handle constructors specially for now.
12205 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12207 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12209 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12210 standard_coerce_float_to_double().
12212 2002-02-14 Christopher Faylor <cgf@redhat.com>
12214 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12217 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12219 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12220 find_variant_by_name, because it confuses the multiarch
12221 framework. Return NULL if there isn't an architecture with the
12222 user supplied name, instead of forcing a different one without
12223 recording the change with the multiarch machinery.
12224 (find_variant_by_name): Delete.
12226 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12228 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12229 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12231 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12233 * stack.c (print_frame_info_base): When calling
12234 print_frame_info_listing_hook, set current_source_symtab.
12236 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12238 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12239 and remove unused $(INCLUDE_DIR).
12240 Add regcache.c to OBS.
12241 Add generated register protocol files to clean target.
12242 Update dependencies for new objects, obsolete old target code.
12244 * gdbserver/linux-low.c: Remove all platform-specific code to
12245 new files. Remove various dead code. Update to use regcache
12247 * gdbserver/remote-utils.c (fromhex): Add return statement
12249 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12251 (input_interrupt): Add integer parameter to match prototype
12252 of a signal handler.
12253 (outreg): Use register_data ().
12254 (prepare_resume_reply): Use gdbserver_expedite_regs.
12255 * gdbserver/server.c (main): Dynamically allocate own_buf because
12256 PBUFSIZ is no longer constant. Use registers_to_string () and
12257 registers_from_string ().
12258 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12259 for error (), fatal (), and warning (). Update definition of
12260 PBUFSIZ to use regcache functionality. Add include guard.
12261 * gdbserver/utils.c (fatal): Add missing ``const''.
12262 (warning): New function.
12264 * regformats/regdat.sh: Include "regcache.h" in generated files.
12265 Provide init_registers () function.
12266 * regformats/regdef.h: Add prototype for set_register_cache ().
12269 * gdbserver/linux-arm-low.c: New file.
12270 * gdbserver/linux-i386-low.c: New file.
12271 * gdbserver/linux-ia64-low.c: New file.
12272 * gdbserver/linux-m68k-low.c: New file.
12273 * gdbserver/linux-mips-low.c: New file.
12274 * gdbserver/linux-ppc-low.c: New file.
12275 * gdbserver/linux-sh-low.c: New file.
12277 * gdbserver/regcache.c: New file.
12278 * gdbserver/regcache.h: New file.
12280 * gdbserver/low-linux.c: Removed obsolete file.
12282 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12284 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12285 * config/i386/linux.mt: Likewise.
12286 * config/ia64/linux.mt: Likewise.
12287 * config/m68k/linux.mh: Likewise.
12288 * config/powerpc/linux.mh: Likewise.
12289 * config/mips/linux.mt: Likewise.
12291 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12293 * config/i386/i386lynx.mh: Mark gdbserver variables
12294 as (currently) obsolete for this target.
12295 * config/i386/nbsd.mt: Likewise.
12296 * config/i386/nbsdelf.mt: Likewise.
12297 * config/m32r/m32r.mt: Likewise.
12298 * config/m68k/m68klynx.mh: Likewise.
12299 * config/m68k/nbsd.mt: Likewise.
12300 * config/m68k/sun3os4.mh: Likewise.
12301 * config/mips/vr5000.mt: Likewise.
12302 * config/ns32k/nbsd.mt: Likewise.
12303 * config/pa/hppabsd.mh: Likewise.
12304 * config/pa/hppaosf.mh: Likewise.
12305 * config/powerpc/nbsd.mt: Likewise.
12306 * config/rs6000/rs6000lynx.mh: Likewise.
12307 * config/s390/s390.mt: Likewise.
12308 * config/s390/s390x.mt: Likewise.
12309 * config/sparc/sparclynx.mh: Likewise.
12310 * config/sparc/sun4os4.mh: Likewise.
12311 * config/i386/x86-64linux.mt: Likewise.
12312 * config/sparc/linux.mh: Likewise.
12314 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12316 * configure.tgt: Configure gdbserver only for known working
12317 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12318 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12319 SUBDIRS if it is configured. Update comment for ${nativefile}.
12320 * configure: Regenerated.
12322 2002-02-13 Michael Snyder <msnyder@redhat.com>
12324 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12326 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12327 (default_gcore_mach): Just return 0, work around a problem in bfd.
12328 (default_gcore_target): OK to return NULL if exec_bfd is null.
12329 (make_mem_sec): Use a cast, avoid a warning.
12331 * procfs.c (find_memory_regions_callback): Use a cast instead of
12332 calling host_pointer_to_address (which complains if
12333 sizeof (host pointer) != sizeof (target pointer)).
12334 (procfs_make_note_section): Avoid overflow in psargs string.
12336 * procfs.c (procfs_make_note_section): Make the default
12337 implementation return an error.
12339 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12341 * procfs.c (procfs_make_note_section): Provide a default definition
12342 (for alpha-dec-osf4.0f). Fix typos.
12344 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12346 * linux-proc.c: Add include of regcache.h.
12347 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12349 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12351 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12352 * memattr.c (create_mem_region): Disallow useless empty region.
12353 Regions are half-open intervals, so allow [A..B) [B..C) as
12356 2002-02-13 Michael Chastain <mec@shout.net>
12358 * defs.h: Kill CONST_PTR.
12359 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12360 * c-lang.c (c_builtin_types): Likewise.
12361 * ch-lang.c (ch_builtin_types): Likewise.
12362 * f-lang.c (f_builtin_types): Likewise.
12363 * language.c (unknown_builtin_types): Likewise.
12364 * m2-lang.c (m2_builtin_types): Likewise.
12365 * p-lang.c (pascal_builtin_types): Likewise.
12366 * scm-lang.c (c_builtin_types): Likewise.
12368 2002-02-13 Keith Seitz <keiths@redhat.com>
12370 * arm-tdep.h (arm_get_next_pc): Add declaration.
12372 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12374 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12375 with other related struct-returning functions.
12376 (arm_extract_struct_value_address): New function.
12377 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12378 initialize float_format, double_format and long_double_format as
12379 appropriate to the endianness of the target.
12380 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12381 (arm_use_struct_convention): Delete declaration.
12382 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12384 2002-02-13 Keith Seitz <keiths@redhat.com>
12386 * defs.h (core_addr_to_string_nz): New function.
12388 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12390 Apply missing bits of 2002-01-15 patch.
12391 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12392 (fill_fpregset): Use i387_fill_fsave.
12394 2002-02-12 Keith Seitz <keiths@redhat.com>
12396 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12397 (core_addr_to_string_nz): New function.
12399 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12401 * arm-linux-nat.c: Really include arm-tdep.h.
12402 * config/arm/tm-linux.h (struct type, struct value): Declare.
12404 2002-02-11 Michael Snyder <msnyder@redhat.com>
12406 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12407 (gcore section): Ifdef for Solaris and Unixware only.
12408 (procfs_do_thread_registers): Unixware needs one lwpstatus
12409 per thread (not one prstatus or pstatus).
12410 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12411 not over all gdb threads. For unixware, call elfcore_write_pstatus
12412 once before iterating over threads.
12414 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12416 * arm-tdep.h: New file.
12417 * arm-tdep.c: Include arm-tdep.h.
12418 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12419 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12420 (arm_print_float_info, arm_register_type, convert_to_extended)
12421 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12422 (arm_extract_return_value, arm_register_name): Make static.
12423 (arm_software_single_step): Similarly. Fix types in declaration.
12424 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12425 (arm_store_return_value, arm_store_struct_return): New functions.
12426 (arm_gdbarch_init): Register the above functions. Also register
12427 call_dummy_start_offset, sizeof_call_dummy_words,
12428 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12429 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12430 max_register_virtual_size, register_size. Set up
12431 prologue_cache.saved_regs here, rather than ...
12432 (_initialize_arm_tdep): ... here.
12433 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12435 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12436 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12437 (arm_print_float_info, arm_register_type, convert_to_extended)
12438 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12439 (arm_extract_return_value, arm_register_name): Delete declarations.
12440 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12441 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12442 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12443 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12444 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12445 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12446 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12447 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12448 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12449 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12450 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12451 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12453 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12454 * remote-rdi.c remote-rdp.c: Likewise.
12455 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12456 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12457 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12460 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12461 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12462 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12463 from non-ARM_ prefixed definitions.
12464 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12466 * remote-rdi.c remote-rdp.c: Likewise.
12467 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12469 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12471 * arm-tdep.c (arm_frameless_function_invocation)
12472 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12473 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12474 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12475 (arm_pop_frame, arm_get_next_pc): Make static.
12476 (arm_gdbarch_init): Register above in gdbarch structure.
12477 (arm_read_fp): Renamed from arm_target_read_fp.
12478 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12479 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12480 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12481 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12482 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12483 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12484 (arm_pc_is_thumb_dummy): Delete declarations.
12485 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12486 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12487 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12488 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12490 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12492 * symtab.c (compare_search_syms): New function.
12493 (sort_search_symbols): New function.
12494 (search_symbols): Sort symbols after searching rather than
12497 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12499 * NEWS: Linux -> GNU/Linux.
12501 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12503 * gdbarch.sh: For for level one methods, disallow a definition
12504 when partially multi-arched. Add comments explaining rationale.
12505 * gdbarch.h: Re-generate.
12507 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12509 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12510 multi-arch partial.
12512 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12514 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12515 field. Use diff -u.
12516 * gdbarch.c: Re-generate.
12518 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12520 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12521 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12524 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12526 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12527 multi-arch partial.
12528 (PUSH_ARGUMENTS): Switch to using predefault.
12529 * gdbarch.c: Regenerate.
12531 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12533 * valops.c (PUSH_ARGUMENTS): Delete definition.
12534 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12535 partial. Default to default_push_arguments.
12536 * gdbarch.h, gdbarch.c: Regenerate.
12538 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12540 * defs.h (throw_exception): Rename return_to_top_level. Update
12542 * utils.c (error_stream, internal_verror, quit): Ditto.
12543 * top.c (throw_exception, catcher): Ditto.
12544 * sparclet-rom.c (sparclet_load): Ditto.
12545 * remote.c (interrupt_query, minitelnet): Ditto.
12546 * remote-sds.c (interrupt_query): Ditto.
12547 * remote-mips.c (mips_error, mips_kill): Ditto.
12548 * ocd.c (interrupt_query): Ditto.
12549 * monitor.c (monitor_interrupt_query): Ditto.
12550 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12551 * target.h: Update comment.
12553 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12555 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12557 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12558 default_double_format.
12559 * gdbarch.h, gdbarch.c: Re-generate.
12560 * findvar.c (floatformat_unknown): Delete variable definition.
12561 * doublest.h (floatformat_unknown): Delete variable declaration.
12563 2002-02-09 Jim Blandy <jimb@redhat.com>
12565 * stabsread.c (read_type): Add code to parse Sun's syntax for
12566 prototyped function types.
12568 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12570 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12571 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12573 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12575 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12576 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12577 now _initialize_xcoffsolib gets called again and overrides the
12578 commands from solib.c in a native configuration.
12580 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12582 * doublest.c (store_typed_floating): Don't try to return a value.
12585 2002-02-08 Jim Blandy <jimb@redhat.com>
12587 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12588 is prototyped and has no arguments, print its argument list as
12591 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12593 * MAINTAINERS (write-after-approval): Add myself.
12594 (paper-trail): I've escaped!
12596 2002-02-08 Christopher Faylor <cgf@redhat.com>
12598 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12600 (_initialize_check_for_gdb_ini): Ditto.
12602 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12604 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12605 xaprintf -> xasprintf.
12607 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12609 * win32-nat.c: Remove use of printf and sprintf functions.
12611 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12613 * arm-tdep.c (arm_frame_chain_valid): Make static.
12614 (arm_push_arguments): Likewise.
12615 (arm_gdbarch_init): New function.
12616 (_initialize_arm_tdep): Call it.
12617 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12618 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12619 (FRAME_CHAIN_VALID): Delete.
12620 (arm_frame_chain_valid): Delete declaration.
12621 (PUSH_ARGUMENTS): Delete.
12622 (arm_push_arguments): Delete declaration.
12623 (CALL_DUMMY_P): Delete.
12625 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12626 Corinna Vinschen <vinschen@redhat.com>
12628 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12629 on builtin float types.
12631 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12633 * utils.c: Include <curses.h> before "bfd.h".
12634 * tui/tui-hooks.c: Likewise.
12635 * tui/tui.c: Likewise.
12636 * tui/tuiCommand.c: Likewise.
12637 * tui/tuiData.c: Likewise.
12638 * tui/tuiDataWin.c: Likewise.
12639 * tui/tuiDisassem.c: Likewise.
12640 * tui/tuiGeneralWin.c: Likewise.
12641 * tui/tuiIO.c: Likewise.
12642 * tui/tuiLayout.c: Likewise.
12643 * tui/tuiRegs.c: Likewise.
12644 * tui/tuiSource.c: Likewise.
12645 * tui/tuiSourceWin.c: Likewise.
12646 * tui/tuiStack.c: Likewise.
12647 * tui/tuiWin.c: Likewise.
12649 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12651 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12652 to include space for pseudoregs as well. Update loops accordingly.
12653 (sh_fp_frame_init_saved_regs): Ditto.
12654 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12656 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12658 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12659 Add Richard Earnshaw to Arm maintainers.
12661 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12663 * defs.h (warning_begin): Delete declaration.
12665 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12668 2002-02-07 Michael Snyder <msnyder@redhat.com>
12670 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12671 Logic bug, remove misplaced else.
12673 2002-02-07 Klee Dienes <klee@apple.com>
12675 * fork-inferior.c (fork_inferior): Add '!' to the list of
12676 characters that need to be quoted when building a string for the
12677 shell. Quote '!' specifically with a backslash, since CSH chokes
12678 when trying to evaluate "str!str".
12680 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12682 * rdi-share/host.h: Only provide a typedef for bool if it is not
12685 2002-02-04 Michael Snyder <msnyder@redhat.com>
12687 * breakpoint.h (enum bptype): Add new overlay event bp type.
12688 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12690 * breakpoint.c (create_internal_breakpoint): New function.
12691 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12692 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12693 (create_thread_event_breakpoint): Ditto.
12694 (create_solib_event_breakpoint): Ditto.
12695 (create_overlay_event_breakpoint): New function.
12696 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12697 (update_breakpoints_after_exec): Delete and re-initialize
12698 overlay event breakpoints after an exec. Add FIXME comment
12699 about longjmp breakpoint.
12700 (print_it_typical): Ignore overlay event breakpoints.
12701 (print_one_breakpoint): Ditto.
12703 (bpstat_what): Do not stop for overlay event breakpoints.
12704 (delete_breakpoint): Don't delete overlay event breakpoints.
12705 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12706 (breakpoint_re_set): Re-create overlay event breakpoint.
12708 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12709 (overlay_manual_command): Disable overlay breakpoints.
12710 (overlay_off_command): Disable overlay breakpoints.
12712 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12714 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12715 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12716 to here from config/tm-arm.h.
12717 (coff_sym_is_thumb): Make static.
12718 (arm_elf_make_msymbol_special): New function.
12719 (arm_coff_make_msymbol_special): New function.
12720 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12721 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12722 (coff_sym_is_thumb): Delete declaration.
12723 (arm_elf_make_msymbol_special): Declare.
12724 (arm_coff_make_msymbol_special): Declare.
12725 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12726 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12728 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12730 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12732 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12734 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12735 * gdbarch.c gdbarch.h: Regenerate.
12736 * arch-utils.c (default_print_float_info): New function.
12737 * arch-utils.h (default_print_float_info): Prototype it.
12738 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12739 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12740 (PRINT_FLOAT_INFO): Document it.
12742 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12743 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12744 (PRINT_FLOAT_INFO): Define.
12746 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12748 * win32-nat.c (_initialize_check_for_gdb_ini):
12749 Add typecast to sprintf argument to suppress a warning.
12751 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12753 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12754 to allow easier handling of pass state.
12755 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12756 that gives exception name and address.
12757 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12758 and set last_sig value to ourstatus->value.sig. Some missing
12760 (child_continue): Correctly report continue_status.
12761 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12762 TARGET_SIGNAL_0 (new default value).
12763 (child_resume): consider sig argument passed to decide if
12764 the exception should be passed to debuggee or not.
12766 2002-02-05 Michael Snyder <msnyder@redhat.com>
12768 * regcache.c (fetch_register): Call target_fetch_register
12769 only if we don't call FETCH_PSEUDO_REGISTER.
12770 (store_register): Call target_store_register only if we
12771 don't call STORE_PSEUDO_REGISTER.
12773 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12775 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12776 ELF_MAKE_MSYMBOL_SPECIAL.
12777 * gdbarch.c, gdbarch.h: Regenerate.
12778 * arch-utils.c (default_make_msymbol_special): New function.
12779 * arch-utils.h (default_make_msymbol_special): Export.
12780 * elfread.c (elf_symtab_read): Compile use of
12781 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12783 * coffread.c (coff_symtab_read): Ditto, for
12784 COFF_MAKE_MSYMBOL_SPECIAL.
12786 2002-02-05 Jim Blandy <jimb@redhat.com>
12788 * solib-svr4.c (svr4_truncate_ptr): New function.
12789 (svr4_relocate_section_addresses): Do the address arithmetic with
12790 the appropriate truncation for target addresses, even when
12791 CORE_ADDR is larger than a target address.
12793 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12795 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12798 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12800 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12803 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12805 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12807 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12809 * gdbserver/linux-low.c: Remove unused include files.
12811 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12813 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12814 (read_inferior_memory): Use it.
12815 (write_inferior_memory): Likewise.
12817 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12819 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12820 grubbing through sys_errlist.
12822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12824 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12826 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12827 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12829 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12831 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12832 (do_sfunc, set_cmd_sfunc): New functions.
12834 * command.h (struct cmd_list_element): Add field func.
12835 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12836 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12837 * cli/cli-decode.h: Ditto.
12839 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12840 (help_all, help_cmd_list): Ditto.
12841 (find_cmd, complete_on_cmdlist): Ditto.
12842 * top.c (execute_command): Ditto.
12844 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12847 * infcmd.c (notice_args_read): Fix function signature.
12849 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12850 * cli/cli-decode.c (add_set_cmd): Ditto.
12851 * utils.c (initialize_utils): Ditto.
12852 * maint.c (_initialize_maint_cmds): Ditto.
12853 * infrun.c (_initialize_infrun): Ditto.
12854 * demangle.c (_initialize_demangler): Ditto.
12855 * remote.c (add_packet_config_cmd): Ditto.
12856 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12857 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12858 * proc-api.c (_initialize_proc_api): Ditto.
12859 * kod.c (_initialize_kod): Ditto.
12860 * valprint.c (_initialize_valprint): Ditto.
12861 * top.c (init_main): Ditto.
12862 * infcmd.c (_initialize_infcmd): Ditto.
12863 * corefile.c (_initialize_core): Ditto.
12864 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12865 * arch-utils.c (initialize_current_architecture): Ditto.
12866 (_initialize_gdbarch_utils): Ditto.
12867 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12869 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12870 * wince.c (_initialize_inftarg): Ditto.
12871 * symfile.c (_initialize_symfile): Ditto.
12872 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12873 * language.c (_initialize_language): Ditto.
12874 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12876 2002-02-04 Michael Snyder <msnyder@redhat.com>
12878 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12880 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12882 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12883 Add rules for building the register data files.
12885 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12887 * regformats/regdat.sh: Add braces to the definition of
12888 expedite_regs_${arch}.
12890 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12892 * regformats/regdef.h (struct reg): Add comment describing the
12893 requirements for offset and size fields.
12895 2002-02-04 Andreas Schwab <schwab@suse.de>
12897 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12898 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12900 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12902 * gdbarch.sh (copyright): Update years in generated header.
12903 (SMASH_TEXT_ADDRESS): Add rule.
12904 * gdbarch.h, gdbarch.c: Re-generate.
12905 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12906 * dbxread.c: Likewise.
12907 * dwarfread.c: Likewise.
12908 * elfread.c: Likewise.
12909 * somread.c: Likewise.
12911 * arm-tdep.c (arm_smash_text_address): New function.
12912 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12914 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12916 Add support for hardware watchpoints on win32 native.
12917 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12918 CONTEXT_DEBUG_REGISTERS.
12919 (dr variable): New variable. Static array containing a local copy
12920 of debug registers.
12921 (debug_registers_changed): New variable. Reflects when debug registers
12922 are changed and need to be written to inferior.
12923 (debug_registers_used): New variable. Reflects when any debug register
12924 was set, used when new threads are created.
12925 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12927 (thread_rec): Set dr array if id is the thread of current_event .
12928 (child_continue, child_resume): Change the debug registers for all
12929 threads if debug_registers_changed.
12930 (child_add_thread): Change the debug registers if debug_registers_used.
12931 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12932 Link nm.h to new nm-cygwin.h file.
12933 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12934 of hardware registers.
12936 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12938 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12939 Restore behavour broken by 2002-01-20 Andrew Cagney
12940 <ac131313@redhat.com> IEEE_FLOAT removal.
12942 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12944 * c-valprint.c (c_val_print): Pass a proper valaddr to
12945 cp_print_class_method.
12946 * valops.c (search_struct_method): If there is only one method
12947 and args is NULL, return that method.
12949 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12951 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12952 accessing tag_name directly.
12954 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12956 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12957 of accessing tag_name directly.
12959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12962 * gdbtypes.c (replace_type): New function.
12963 * gdbtypes.h (replace_type): Add prototype.
12964 * stabsread.c (read_type): Use replace_type.
12966 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12968 * Makefile.in (memattr.o): Add missing dependencies rule.
12970 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12972 * breakpoint.c (break_at_finish_command): Really export.
12973 (break_at_finish_at_depth_command): Ditto.
12974 (tbreak_at_finish_command): Ditto.
12975 * hppa-tdep.c: Include completer.h.
12976 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12977 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12979 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12981 * utils.c (do_write): New function.
12982 (error_stream): Rewrite combining the code from error_begin and
12984 (verror): Rewrite using error_stream.
12985 (error_begin): Delete function.
12987 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12989 * utils.c (error_begin): Make static.
12990 * defs.h (error_begin): Delete declaration.
12992 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12993 (decode_line_1): Use cplusplus_error instead of error_begin,
12994 cplusplus_hint and return_to_top_level.
12995 * coffread.c (coff_symfile_read): Use error instead of error_begin
12996 and return_to_top_level.
12997 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12999 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13001 * language.h (type_error, range_error): Make string parameter
13003 * language.c (warning_pre_print): Delete extern declaration.
13004 * dwarfread.c (warning_pre_print): Ditto.
13005 * language.c (type_error, range_error): Rewrite to use verror and
13006 vwarning instead of warning_begin.
13008 2002-02-01 Michael Snyder <msnyder@redhat.com>
13010 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13011 (set_ignore_count): Move misplaced comment back where it belongs.
13013 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13015 * command.h (NO_FUNCTION): Delete macro.
13016 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13017 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13018 * tracepoint.c (_initialize_tracepoint): Ditto.
13019 * cli/cli-decode.c (add_set_cmd): Ditto.
13020 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13022 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13024 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13025 Update ``this'' pointer when calling virtual functions.
13027 2002-02-01 Michael Snyder <msnyder@redhat.com>
13029 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13030 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13032 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13034 * regformats/reg-arm.dat: New file.
13035 * regformats/reg-i386.dat: New file.
13036 * regformats/reg-ia64.dat: New file.
13037 * regformats/reg-m68k.dat: New file.
13038 * regformats/reg-mips.dat: New file.
13039 * regformats/reg-ppc.dat: New file.
13040 * regformats/reg-sh.dat: New file.
13041 * regformats/regdef.h: New file.
13042 * regformats/regdat.sh: New file.
13044 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13046 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13047 (arm_frame_args_address, arm_frame_locals_address): New functions.
13048 (arm_frame_num_args): New function.
13049 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13050 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13051 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13053 2002-01-31 Michael Snyder <msnyder@redhat.com>
13055 * breakpoint.c (break_at_finish_command): Export.
13056 (break_at_finish_at_depth_command): Export.
13057 (tbreak_at_finish_command): Export.
13058 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13059 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13060 "txbreak" commands, which are HPPA specific.
13062 * printcmd.c (disassemble_command): Remove an ancient
13063 artifact of an old merge.
13065 * symfile.h (enum overlay_debugging_state):
13066 Define enum constant values for overlay mode.
13067 * symfile.c (overlay_debugging): Use enums instead of literals.
13068 (overlay_is_mapped, overlay_auto_command,
13069 overlay_manual_command): Ditto.
13071 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13072 breakpoint_here_p, breakpoint_inserted_here_p,
13073 breakpoint_thread_match, bpstat_stop_status,
13074 describe_other_breakpoints, check_duplicates, clear_command):
13075 Coding standard fixes.
13077 * target.c (target_xfer_memory): Add spaces, coding standard.
13078 (do_xfer_memory): Add missing line to trust-readonly
13079 code: check bfd SEC_READONLY flag for section.
13081 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13083 * PROBLEMS: Fix typo, 5.1->5.1.1.
13085 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13087 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13088 data symbols, since we search based on textlow and texthigh.
13089 (find_pc_sect_symtab): Likewise.
13091 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13093 * defs.h (vwarning): Declare.
13094 * utils.c (vwarning): New function.
13095 (warning): Call vwarning.
13096 (warning_begin): Delete function.
13098 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13099 the warning message.
13100 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13103 2002-01-30 Michael Snyder <msnyder@redhat.com>
13105 * NEWS: Mention "set trust-readonly-sections" command.
13106 Mention generate-core-file command.
13108 2002-01-15 Michael Snyder <msnyder@redhat.com>
13110 * target.c: New command, "set trust-readonly-sections on".
13111 (do_xfer_memory): Honor the suggestion to trust readonly sections
13112 by reading them from the object file instead of from the target.
13113 (initialize_targets): Register command "set trust-readonly-sections".
13115 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13117 * parse.c (target_map_name_to_register): Simplify, search regs and
13118 pseudo-regs using a single loop.
13120 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13122 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13124 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13126 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13127 * config/i386/i386v42mp.mh: Add i387-nat.o .
13128 * i386v4-nat.c: Include i387-nat.h.
13129 (supply_fpregset): Use i387_supply_fsave.
13130 (fill_fpregset): Use i387_fill_fsave.
13132 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13134 * arm-tdep.c (arm_call_dummy_words): Define.
13135 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13136 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13137 (CALL_DUMMY_WORDS): Define.
13138 (arm_call_dummy_words): Declare.
13139 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13140 (arm_linux_call_dummy_words): Declare.
13142 2002-01-30 Andreas Schwab <schwab@suse.de>
13144 * m68klinux-nat.c: Fix last change to use regcache_collect
13145 instead of referencing registers[] directly.
13147 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13149 * parse.c (target_map_name_to_register): Delete code wrapped in
13150 #ifdef REGISTER_NAME_ALIAS_HOOK.
13152 2002-01-28 Michael Snyder <msnyder@redhat.com>
13154 * regcache.c (legacy_read_register_gen): Need to be able to
13155 read pseudo-register as well as real register.
13156 (legacy_write_register_gen): Ditto.
13158 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13160 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13161 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13162 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13163 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13164 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13165 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13166 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13167 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13168 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13169 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13170 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13171 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13172 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13173 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13174 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13175 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13176 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13177 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13178 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13179 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13181 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13183 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13184 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13185 (initialize_current_architecture): Update target_byte_order using
13186 information from BFD.
13187 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13188 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13190 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13192 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13193 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13195 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13196 #ifdef INVALID_FLOAT.
13197 * infcmd.c (do_registers_info): Ditto.
13198 * values.c (unpack_double): Ditto. Add comment.
13200 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13201 already commented out.
13203 2002-01-26 Andreas Schwab <schwab@suse.de>
13205 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13206 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13207 registers and add support for PTRACE_GETREGS.
13209 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13211 GDB 5.1.1 released from 5.1 branch.
13212 * NEWS: Add 5.1.1 news.
13213 * README: Sync with 5.1 branch.
13215 2002-01-23 Fred Fish <fnf@redhat.com>
13217 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13218 stabstring on initial malloc. Reallocing will copy it for us,
13221 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13223 * Makefile.in (hpread_h): Delete.
13224 (HFILES_NO_SRCDIR): Remove hpread.h.
13225 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13226 (hpread.o): Update dependencies.
13227 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13229 * hp-psymtab-read.c: Remove file.
13230 * hp-symtab-read.c: Remove file.
13231 * hpread.h: Remove file.
13233 * hpread.c: Merge all contents of hp-psymtab-read.c,
13234 hp-symtab-read.c and hpread.h into this file, as it was prior to
13237 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13238 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13239 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13240 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13242 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13244 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13245 fill_gregset): Call gdbarch_tdep() just once, assign result to
13246 variable and use that, instead of calling the function several
13249 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13251 * configure.host: Accept sparcv9 as alias for sparc64.
13252 * configure.tgt: Likewise.
13254 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13256 * solib-aix5.c (build_so_list_from_mapfile)
13257 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13258 arguments is not reversed.
13259 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13260 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13262 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13264 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13265 modified version of obsolete sh_fetch_pseudo_register.
13266 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13267 (sh4_register_read): New function.
13268 (sh_pseudo_register_write): New function. Renamed and modified
13269 version of obsolete sh_store_pseudo_register.
13270 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13271 (sh4_register_write): New function.
13272 (sh_gdbarch_init): Remove setting of gdbarch function
13273 fetch_pseudo_register and store_pseudo_register. Remove setting of
13274 register_convert_to_raw, register_convert_to_virtual,
13275 register_convertible.
13276 (sh_sh4_register_convertible): Delete. No longer needed. All is
13277 taken care by architecture specific functions
13278 register_read/register_write.
13279 (sh_sh4_register_convert_to_virtual): Make static.
13280 (sh_sh4_register_convert_to_raw): Ditto.
13282 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13284 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13285 (floatformat_is_nan, floatformat_mantissa): Ditto.
13287 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13288 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13289 builtin_type_ieee_double_little,
13290 builtin_type_ieee_double_littlebyte_bigword,
13291 builtin_type_m68881_ext, builtin_type_i960_ext,
13292 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13293 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13294 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13295 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13297 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13299 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13300 parameter. Set frameless flag if it exists and depended of
13301 whether the scanned function is frameless or not.
13302 (xstormy16_skip_prologue): If function is frameless, return
13303 result of xstormy16_scan_prologue().
13304 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13307 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13309 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13310 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13311 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13312 sh_sh4_register_byte, sh_sh4_register_raw_size,
13313 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13314 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13315 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13316 sh_store_pseudo_register, sh_do_pseudo_register): Call
13317 gdbarch_tdep() just once, assign result to variable and use that,
13318 instead of calling the function several times.
13320 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13322 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13323 macros instead of LAST_FPU_CTRL_REGNUM.
13324 (store_register): Likewise.
13326 2002-01-21 Jim Blandy <jimb@redhat.com>
13328 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13329 is up-to-date before running the program, not just when a program
13332 2002-01-21 Fred Fish <fnf@redhat.com>
13334 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13335 when we have found all instructions we are looking for.
13337 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13339 * arm-tdep.c (arm_register_name): New function.
13340 (arm_registers_names): Make static.
13341 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13342 (arm_register_name): Declare.
13343 (REGISTER_NAME): Use it.
13345 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13346 Kevin Buettner <kevinb@redhat.com>
13348 Convert arm targets to new FRAME interface.
13349 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13350 (arm_frame_find_save_regs): Delete.
13351 (arm_frame_init_saved_regs): New.
13352 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13353 Allocate extra_info as required. Convert all uses of fsr.regs
13354 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13356 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13357 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13358 (check_prologue_cache, save_prologue_cache): Likewise.
13359 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13360 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13361 (FRAME_FIND_SAVED_REGS): Delete.
13362 (arm_frame_find_saved_regs): Delete prototype.
13363 (arm_frame_init_saved_regs): New prototype.
13364 (FRAME_INIT_SAVED_REGS): Define.
13366 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13368 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13370 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13372 From Jeff Law <law@redhat.com>:
13373 * infttrace.c: Include <sys/pstat.h>.
13374 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13375 exec file if the ttrace equivalent fails.
13377 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13379 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13380 (closeLogFile): Ditto.
13382 2002-01-20 Michael Chastain <mec@shout.net>
13384 * top.c (print_gdb_version): Bump copyright year to 2002.
13386 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13388 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13389 Zannoni and Eli Zaretskii.
13391 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13393 * buildsym.c: Update copyright years.
13394 * c-typeprint.c: Likewise.
13395 * dwarf2read.c: Likewise.
13396 * f-typeprint.c: Likewise.
13397 * gdbtypes.c: Likewise.
13398 * gdbtypes.h: Likewise.
13399 * hp-symtab-read.c: Likewise.
13400 * hpread.c: Likewise.
13401 * mdebugread.c: Likewise.
13402 * p-typeprint.c: Likewise.
13404 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13406 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13407 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13408 byte-order selectable.
13409 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13410 * arch-utils.c: Ditto.
13411 (set_endian): Ditto.
13412 (set_endian_from_file): Ditto.
13413 * gdbserver/low-sim.c (create_inferior): Ditto.
13414 * gdbarch.sh: Ditto.
13415 * gdbarch.h: Re-generate.
13416 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13417 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13418 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13419 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13420 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13421 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13422 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13423 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13425 * config/mips/tm-wince.h: Remove #undef of macro
13426 TARGET_BYTE_ORDER_SELECTABLE.
13427 * config/sh/tm-wince.h: Ditto.
13429 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13431 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13432 member function fields. Add accessor macro
13433 TYPE_FN_FIELD_ARTIFICIAL.
13434 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13435 * c-typeprint.c (c_type_print_base): Skip artificial member
13438 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13440 * f-typeprint.c: Delete unused function f_type_print_args.
13441 * p-typeprint.c: Delete unused function pascal_type_print_args.
13443 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13445 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13446 comment. Add ``artificial'' to ``union field_location''.
13448 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13450 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13451 * mdebugread.c (parse_symbol): Likewise.
13452 * stabsread.c (define_symbol): Likewise.
13453 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13454 initializing TYPE_FIELD_BITPOS to n (obsolete).
13455 (hpread_doc_function_type): Likewise.
13456 * hpread.c (hpread_function_type): Likewise.
13458 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13460 * configure.in (host_makefile_frag): Only require a host makefile
13461 fragment when a native build.
13462 * configure: Re-generate.
13464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13466 * doublest.h (floatformat_from_type): Declare.
13467 * doublest.c (floatformat_from_type): New function.
13468 (convert_typed_floating): Use.
13470 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13471 call to function floatformat_from_type.
13473 * gdbarch.sh (IEEE_FLOAT): Delete.
13474 * gdbarch.h, gdbarch.c: Re-generate.
13475 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13476 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13477 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13478 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13479 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13480 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13481 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13482 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13483 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13484 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13485 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13486 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13488 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13489 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13491 * sh-tdep.c (sh_gdbarch_init): Ditto.
13492 * mips-tdep.c (mips_gdbarch_init): Ditto.
13493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13494 * cris-tdep.c (cris_gdbarch_init): Ditto.
13496 2002-01-20 Jiri Smid <smid@suse.cz>
13498 * configure.host, configure.tgt: Support x86-64.
13499 * NEWS: Note new target x86-64.
13501 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13502 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13503 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13504 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13505 x86-64-linux-nat.o): Fix dependencies.
13507 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13509 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13510 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13511 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13512 * config/sparc/xm-sun4os4.h: Delete file.
13513 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13515 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13517 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13518 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13519 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13520 * config/i386/i386lynx.mh (XM_FILE): Delete.
13521 * config/rs6000/xm-rs6000ly.h: Delete file.
13522 * config/sparc/xm-sparclynx.h: Delete file.
13523 * config/m68k/xm-m68klynx.h: Delete file.
13524 * config/i386/xm-i386lynx.h: Delete file.
13525 * config/xm-lynx.h: Delete file.
13526 * config/djgpp/fnchange.lst: Update.
13528 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13530 * alpha-tdep.c (alpha_register_byte): New function.
13531 (alpha_register_raw_size): Ditto.
13532 (alpha_register_virtual_size): Ditto.
13533 (alpha_skip_prologue_internal): Renamed from
13534 alpha_skip_prologue.
13535 (alpha_skip_prologue): New version that calls
13536 alpha_skip_prologue_internal.
13537 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13538 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13539 second argument from alpha_skip_prologue.
13540 (REGISTER_BYTE): Use alpha_register_byte.
13541 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13542 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13543 (FRAMELESS_FUNCTION_INVOCATION): Use
13544 generic_frameless_function_invocation_not.
13545 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13546 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13548 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13550 * config/mips/xm-news-mips.h: Delete file.
13551 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13553 * config/m88k/xm-m88k.h: Delete file.
13554 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13555 * config/m88k/xm-delta88v4.h: Ditto.
13556 * config/m88k/xm-delta88.h: Ditto.
13558 * config/alpha/xm-fbsd.h: Delete file.
13559 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13561 * config/sparc/xm-sparc.h: Delete file.
13562 * Makefile.in (xm-sun4os4.h): Delete dependency.
13563 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13564 * config/sparc/xm-sun4os4.h: Ditto.
13565 * config/sparc/xm-linux.h: Ditto.
13567 * config/i386/xm-windows.h: Delete file.
13569 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13571 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13572 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13574 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13576 * alpha-tdep.c (alpha_call_dummy_words): New.
13577 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13578 (CALL_DUMMY_P): Define.
13579 (CALL_DUMMY_WORDS): Define.
13580 (SIZEOF_CALL_DUMMY_WORDS): Define.
13582 2002-01-19 Per Bothner <per@bothner.com>
13584 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13585 isn't NULL, which can happen with some gcj-3.x-produced code.
13587 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13589 * alpha-tdep.c (alpha_register_virtual_type): New function.
13590 (alpha_init_frame_pc_first): Ditto.
13591 (alpha_fix_call_dummy): Ditto.
13592 (alpha_store_struct_return): Ditto.
13593 (alpha_extract_struct_value_address): Ditto.
13594 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13595 alpha_register_virtual_type.
13596 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13597 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13598 alpha_extract_struct_value_address.
13599 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13600 (INIT_FRAME_PC): Use init_frame_pc_noop.
13601 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13603 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13605 * i386gnu-nat.c: Include "i386-tdep.h".
13606 (fetch_fpregs): Simplify code dealing with uninitialized floating
13607 point states such that it doesn't require FP7_REGNUM.
13609 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13611 * alpha-tdep.c (frame_extra_info): New.
13612 (alpha_find_saved_regs): Make static. Use
13614 (alpha_frame_init_saved_regs): New function.
13615 (alpha_frame_saved_pc): Use frame->extra_info.
13616 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13617 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13618 (init_extra_frame_info): Rename to...
13619 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13620 (alpha_print_extra_frame_info): New function.
13621 (alpha_frame_locals_address): Ditto.
13622 (alpha_frame_args_address): Ditto.
13623 (alpha_pop_frame): Use frame->extra_info.
13624 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13625 alpha_frame_args_address.
13626 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13627 (alpha_find_saved_regs): Remove prototype.
13628 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13629 (EXTRA_FRAME_INFO): Remove.
13630 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13631 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13633 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13635 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13636 (alpha_cannot_fetch_register): Ditto.
13637 (alpha_cannot_store_register): Ditto.
13638 (alpha_register_convertible): Ditto.
13639 (alpha_use_struct_convention): Ditto.
13640 * config/alpha/tm-alpha.h: Update copyright years.
13641 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13642 (INNER_THAN): Use core_addr_lessthan.
13643 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13644 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13645 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13646 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13647 (FRAME_CHAIN): Remove unnecessary cast.
13649 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13651 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13654 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13656 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13657 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13658 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13659 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13660 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13661 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13662 * x86-64-linux-nat.c: Ditto.
13664 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13666 * alpha-tdep.c (alpha_register_name): New function.
13667 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13668 (REGISTER_NAME): Define.
13670 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13672 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13674 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13676 * alpha-tdep.c: Update copyright years.
13677 (alpha_next_pc): New function.
13678 (alpha_software_single_step): Ditto.
13679 * config/alpha/tm-alpha.h: Add prototype for
13680 alpha_software_single_step.
13682 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13684 * alphabsd-nat.c: Update copyright years.
13685 (fill_gregset): Use regcache_collect.
13686 (fill_fpregset): Likewise.
13687 (fetch_inferior_registers): Only fetch integer registers
13688 if requested to do so.
13689 (store_inferior_registers): Only store integer registers
13690 if requested to do so.
13692 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13694 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13695 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13696 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13697 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13698 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13699 * config/arm/linux.mh (XDEPFILES): Delete.
13700 * config/arm/nbsd.mh (XDEPFILES): Delete.
13701 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13702 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13703 * config/i386/i386m3.mh (XDEPFILES): Delete.
13704 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13705 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13706 * config/i386/fbsd.mh (XDEPFILES): Delete.
13707 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13708 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13709 * config/i386/i386v4.mh (XDEPFILES): Delete.
13710 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13711 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13712 * config/i386/i386aix.mh (XDEPFILES): Delete.
13713 * config/i386/go32.mh (XDEPFILES): Delete.
13714 * config/i386/cygwin.mh (XDEPFILES): Delete.
13715 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13716 * config/i386/i386mach.mh (XDEPFILES): Delete.
13717 * config/i386/i386v32.mh (XDEPFILES): Delete.
13718 * config/i386/linux.mh (XDEPFILES): Delete.
13719 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13720 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13721 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13722 * config/i386/i386sco.mh (XDEPFILES): Delete.
13723 * config/i386/i386v.mh (XDEPFILES): Delete.
13724 * config/i386/nbsd.mh (XDEPFILES): Delete.
13725 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13726 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13727 * config/i386/symmetry.mh (XDEPFILES): Delete.
13728 * config/i386/obsd.mh (XDEPFILES): Delete.
13729 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13730 * config/ia64/linux.mh (XDEPFILES): Delete.
13731 * config/ia64/aix.mh (XDEPFILES): Delete.
13732 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13733 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13734 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13735 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13736 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13737 * config/m68k/linux.mh (XDEPFILES): Delete.
13738 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13739 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13740 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13741 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13742 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13743 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13744 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13745 * config/m88k/delta88.mh (XDEPFILES): Delete.
13746 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13747 * config/m88k/m88k.mh (XDEPFILES): Delete.
13748 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13749 * config/mips/linux.mh (XDEPFILES): Delete.
13750 * config/mips/irix6.mh (XDEPFILES): Delete.
13751 * config/mips/irix5.mh (XDEPFILES): Delete.
13752 * config/mips/irix4.mh (XDEPFILES): Delete.
13753 * config/mips/irix3.mh (XDEPFILES): Delete.
13754 * config/mips/decstation.mh (XDEPFILES): Delete.
13755 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13756 (NATDEPFILES): Move core-aout.o to here.
13757 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13758 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13759 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13760 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13761 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13762 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13763 * config/pa/hpux11.mh (XDEPFILES): Delete.
13764 * config/powerpc/aix.mh (XDEPFILES): Delete.
13765 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13766 * config/powerpc/linux.mh (XDEPFILES): Delete.
13767 * config/romp/rtbsd.mh: Rename XDEPFILES.
13768 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13769 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13770 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13771 * config/s390/s390.mh (XDEPFILES): Delete.
13772 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13773 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13774 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13775 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13776 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13777 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13778 * config/sparc/linux.mh (XDEPFILES): Delete.
13779 * config/vax/vaxult.mh (XDEPFILES): Delete.
13780 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13781 * Makefile.in (DEPFILES): Remove XDEPFILES.
13783 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13785 * utils.c (internal_verror): Fix comments, default is yes not no.
13786 Update queries to match. Default to quit and dump core.
13788 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13790 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13792 * defs.h, event-top.c, gdbcmd.h: Ditto.
13793 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13794 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13795 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13796 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13797 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13798 * mi/mi-main.c:Ditto.
13800 * stack.c, symfile.c: Update copyright.
13802 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13804 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13805 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13806 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13807 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13809 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13811 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13812 * gdbserver/low-lynx.c (myattach): Likewise.
13813 * gdbserver/low-nbsd.c (myattach): Likewise.
13814 * gdbserver/low-sim.c (myattach): Likewise.
13815 * gdbserver/low-sparc.c (myattach): Likewise.
13816 * gdbserver/low-sun3.c (myattach): Likewise.
13818 * gdbserver/low-linux.c (myattach): New function.
13820 * gdbserver/server.c (attach_inferior): New function.
13821 (main): Handle "--attach".
13823 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13825 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13828 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13830 * c-typeprint.c (is_type_conversion_operator): Add additional
13831 check for non-conversion operators.
13833 2002-01-15 Michael Snyder <msnyder@redhat.com>
13835 * linux-proc.c: Add "info proc" command, a la procfs.c.
13836 (read_mapping): New function, abstract and re-use code.
13837 (linux_find_memory_regions): Use new func read_mapping.
13838 (linux_info_proc_cmd): New function, implement "info proc".
13839 (_initialize_linux_proc): Add new command "info proc".
13841 2002-01-15 Michael Snyder <msnyder@redhat.com>
13843 * symfile.c (generic_load): Use bfd_map_over_sections method
13844 instead of manipulating bfd structure members directly.
13845 (add_section_size_callback): New function, bfd sections callback
13846 used by generic_load.
13847 (load_sections_callback): New function, bfd sections callback
13848 used by generic_load.
13850 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13852 [Based on work by Jim Blandy]
13853 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13854 (builtin_type_vec128): Export.
13855 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13857 (builtin_type_vec128): New builtin type for 128 bit vector
13859 (build_gdbtypes): Initialize builtin_type_v16qi and
13860 builtin_type_v8hi. Create the vec128 register builtin type
13862 (build_builtin_type_vec128): New function.
13863 (_initialize_gdbtypes): Register builtin_type_v16qi and
13864 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13865 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13866 AltiVec register to new builtin type.
13868 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13870 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13873 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13875 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13876 CLEAN_UP_REGISTER_VALUE.
13877 * regcache.c (supply_register): Update only call.
13879 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13881 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13882 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13883 a29k-*-vxworks* targets as obsolete.
13885 2002-01-14 Michael Snyder <msnyder@redhat.com>
13887 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13888 until we can resolve portability issues.
13889 * gregset.h: Remove references to fpxregs.
13890 * gcore.c (gcore_command): Initialize note_sec to NULL.
13892 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13894 * signals.c (target_signal_to_name): Rewrite. Only use
13895 signals[].name when in bounds and non-NULL.
13897 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13899 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13900 * signals.c (target_signal_to_name): Verify that SIG is within the
13901 bounds of the signals array.
13903 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13905 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13907 2002-01-13 Keith Seitz <keiths@redhat.com>
13909 * stack.c (print_frame_info_base): Print the frame's pc
13910 only if when print_frame_info_listing_hook is not defined.
13912 2002-01-13 Keith Seitz <keiths@redhat.com>
13914 * varobj.c (varobj_set_value): Make sure that there were no
13915 errors evaluating the object before attempting to set its
13917 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13918 so this offset adjustment is no longer necessary.
13919 (create_child): Don't set the error flag if the child is
13920 a CPLUS_FAKE_CHILD.
13921 (value_of_child): If value_fetch_lazy fails, return NULL
13922 so that callers will be notified that an error occurred.
13923 (c_value_of_variable): Delay check of variable's validity
13924 until later. We actually want all structs and unions to have
13926 Do not return "???" for variables which could not be evaluated.
13927 This error condition must be returned to the caller so that it
13928 can get the error condition from gdb.
13929 (cplus_name_of_child): Adjust index for vptr before figuring
13930 out the name of the child.
13931 (cplus_value_of_child): If a child's (real) parent is not valid,
13932 don't even bother trying to give a value for it. Just return
13933 an error. Change all instances in this function.
13934 (cplus_type_of_child): If our parent is one of the "fake"
13935 parents, we need to get at the type of the real parent, and
13936 derive the child's true type using this information.
13938 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13940 From 2002-01-09 John Marshall <johnm@falch.net>:
13941 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13942 sources.redhat.com, and tweak some related URLs which had
13943 suffered from linkrot.
13945 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13948 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13949 structures passed in registers.
13951 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13953 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13954 white space which prevented compilation. Reported by DSK
13955 <dsk@student.unsw.edu.au>.
13957 2002-01-11 Michael Snyder <msnyder@redhat.com>
13959 * symfile.c (build_section_addr_info_from_section_tab):
13960 Use bfd access method instead of manipulating bfd directly.
13961 (syms_from_objfile): Ditto.
13962 (simple_overlay_update_1): Ditto.
13963 (simple_overlay_update): Ditto.
13964 (generic_load): Ditto.
13965 (overlay_unmapped_address): FIXME comment, bfd access methods.
13966 (sections_overlap): FIXME comment, bfd access methods.
13967 (pc_in_mapped_range): FIXME comment, bfd access methods.
13968 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13969 (section_is_mapped): FIXME comment, bfd access methods.
13970 (section_is_overlay): FIXME comment, bfd access methods.
13972 * symfile.c (generic_load): Whitespace and long line cleanups.
13973 Remove duplicate variable, change several local variables to
13974 more appropriate data types.
13975 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13977 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13979 From Peter Schauer:
13980 * language.c (longest_local_hex_string_custom): Use phex_nz to
13981 convert NUM to a hex string.
13983 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13985 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13987 Update Copyright year.
13989 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13991 * language.c (longest_raw_hex_string): Delete unused function.
13993 2002-01-11 Petr Sorfa <petrs@caldera.com>
13995 * MAINTAINERS (write-after-approval): Add myself.
13996 * dwarf2read.c (read_tag_string_type): Handling of
13998 (read_tag_string_type): FORTRAN fix to prevent propagation of
14000 (set_cu_language): Handling of DW_LANG_Fortran95
14002 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14004 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14005 GETPID(inferior_ptid).
14006 (store_inferior_registers): Likewise.
14008 2002-01-10 Jason Merrill <jason@redhat.com>
14010 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14013 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14015 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14016 and bfd/elf32-sh-nbsd.c.
14018 2002-01-10 Michael Snyder <msnyder@redhat.com>
14020 * NEWS: Mention --pid and corefile/proc-id behavior change.
14022 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14023 * gcore.c: Include cli/cli-decode.h instead of command.h.
14025 * main.c (captured_main): Add new command line option "--pid".
14026 If the second command line argument (following the symbol-file)
14027 begins with a digit, try to attach to it before trying to open
14029 (print_gdb_help): Document the "--pid" argument.
14031 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14033 * completer.c (command_completer): New function.
14035 * completer.h <command_completer>: Add prototype.
14037 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14038 completer for the "help" command.
14040 2002-01-09 Jason Merrill <jason@redhat.com>
14042 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14044 2002-01-09 Michael Snyder <msnyder@redhat.com>
14046 * i386-linux-nat.c (fill_fpxregset): Make global.
14047 (store_fpxregset): Ditto.
14049 * gregset.h (gdb_fpxregset_t): Define.
14050 (supply_fpxregset): Prototype.
14051 (fill_fpxregset): Prototype.
14053 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14055 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14057 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14058 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14059 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14061 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14063 * MAINTAINERS: Update target maintainer rules so that any
14064 Maintainer can approve a tested patch for a maintenance-only
14067 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14069 * MAINTAINERS (write-after-approval): Add myself.
14071 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14074 2002-01-08 Michael Snyder <msnyder@redhat.com>
14076 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14077 real name of the executable, rather than the /proc name.
14079 2002-01-03 Michael Snyder <msnyder@redhat.com>
14081 Implement a "generate-core-file" command in gdb, save target state.
14082 * gcore.c: New file. Implement new command 'generate-core-file'.
14083 Save a corefile image of the current state of the inferior.
14084 * linux-proc.c: Add linux-specific code for saving corefiles.
14085 * target.h (struct target_ops): Add new target vectors for saving
14086 corefiles; to_find_memory_regions and to_make_corefile_notes.
14087 (target_find_memory_regions): New macro.
14088 (target_make_corefile_notes): New macro.
14089 * target.c (update_current_target): Inherit new target methods.
14090 (dummy_find_memory_regions): New place-holder method.
14091 (dummy_make_corefile_notes): New place-holder method.
14092 (init_dummy_target): Initialize new dummy target vectors.
14093 * exec.c (exec_set_find_memory_regions): New function.
14094 Allow the exec_ops vector for memory regions to be taken over.
14095 (exec_make_note_section): New function, target vector method.
14096 * defs.h (exec_set_find_memory_regions): Export prototype.
14097 * procfs.c (proc_find_memory_regions): New function, corefile method.
14098 (procfs_make_note_section): New function, corefile method.
14099 (init_procfs_ops): Set new target vector pointers.
14100 (find_memory_regions_callback): New function.
14101 (procfs_do_thread_registers): New function.
14102 (procfs_corefile_thread_callback): New function.
14103 * sol-thread.c (sol_find_memory_regions): New function.
14104 (sol_make_note_section): New function.
14105 (init_sol_thread_ops): Initialize new target vectors.
14106 * inftarg.c (inftarg_set_find_memory_regions): New function.
14107 Allow to_find_memory_regions vector to be taken over.
14108 (inftarg_set_make_corefile_notes): New function.
14109 Allow to_make_corefile_notes vector to be taken over.
14110 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14111 interface layer if not target_has_execution (may be a corefile).
14112 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14113 * config/sparc/sun4sol2.mh: Ditto.
14114 * config/alpha/alpha-linux.mh: Ditto.
14115 * config/arm/linux.mh: Ditto.
14116 * config/i386/x86-64linux.mh: Ditto.
14117 * config/ia64/linux.mh: Ditto.
14118 * config/m68k/linux.mh: Ditto.
14119 * config/mips/linux.mh: Ditto.
14120 * config/powerpc/linux.mh: Ditto.
14121 * config/sparc/linux.mh: Ditto.
14123 2002-01-07 Michael Snyder <msnyder@redhat.com>
14125 * arm-linux-nat.c: Remove references to regcache.c internal data
14126 (registers[] and register_valid[]).
14128 2002-01-07 Michael Snyder <msnyder@redhat.com>
14130 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14131 so that attaching to a pid will automatically read the process's
14132 symbol file and shlibs.
14133 * Makefile.in: Add rule for linux-proc.o.
14134 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14135 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14136 * config/arm/linux.mh: Ditto.
14137 * config/i386/linux.mh: Ditto.
14138 * config/i386/x86-64linux.mh: Ditto.
14139 * config/ia64/linux.mh: Ditto.
14140 * config/m68k/linux.mh: Ditto.
14141 * config/mips/linux.mh: Ditto.
14142 * config/powerpc/linux.mh: Ditto.
14143 * config/sparc/linux.mh: Ditto.
14145 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14147 * win32-nat.c: Add i386-tdep.h dependency.
14149 2002-01-07 Michael Snyder <msnyder@redhat.com>
14151 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14152 instead of bfd_get_arch_size. Don't bail out just because
14153 there's no exec_bfd.
14155 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14156 * p-valprint.c (pascal_object_print_value): Ditto.
14157 * somread.c (som_symtab_read): Ditto.
14158 * symfile.c (simple_free_overlay_region_table): Ditto.
14159 * valops.c (value_assign): Ditto.
14161 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14162 use tilde_expand and strerror for opening save-tracepoints file.
14164 * thread-db.c (thread_db_new_objfile): Indendation fix.
14166 * infptrace.c (GDB_MAX_ALLOCA): New define.
14167 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14168 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14169 can be overridden with whatever value is appropriate to the host).
14170 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14171 alloca to allocate potentially large buffer.
14172 * rs6000-nat.c (child_xfer_memory): Ditto.
14173 * symm-nat.c (child_xfer_memory): Ditto.
14174 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14176 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14178 From Nick Clifton <nickc@redhat.com>
14179 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14181 2002-01-07 Michael Snyder <msnyder@redhat.com>
14183 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14184 Don't use exec_bfd if it's NULL.
14186 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14188 * valops.c (value_arg_coerce): Fix formatting.
14190 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14192 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14193 * gnu-nat.c: Ditto.
14195 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14197 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14198 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14199 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14200 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14201 z8k-coff have not been multi-arched. Update z8k-coff build
14204 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14206 * MAINTAINERS: Mark a29k target as obsolete.
14207 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14208 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14210 * NEWS: Note that a29k targets are obsolete.
14211 * a29k-tdep.c: Mark as obsolete.
14212 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14213 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14214 a29k-*-vxworks* targets as obsolete.
14215 * remote-adapt.c: Obsolete.
14216 * remote-eb.c: Obsolete.
14217 * remote-mm.c: Obsolete.
14218 * remote-udi.c: Obsolete.
14219 * config/a29k/a29k-udi.mt: Obsolete.
14220 * config/a29k/a29k.mt: Obsolete.
14221 * config/a29k/tm-a29k.h: Obsolete.
14222 * config/a29k/tm-vx29k.h: Obsolete.
14223 * config/a29k/vx29k.mt: Obsolete.
14225 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14227 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14228 with BFD_ENDIAN_BIG.
14230 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14232 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14233 * configure, config.in: Re-generate.
14234 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14235 * defs.h: Do not include <endian.h>.
14237 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14239 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14240 * config.in: Regenerate.
14241 * configure.in: Update copyright years.
14242 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14243 * configure: Regenerate.
14244 * i386bsd-nat.c: Update copyright years.
14245 (fill_gregset): Use regcache_collect.
14246 (fetch_inferior_registers): Only fetch integer registers
14247 if requested to do so. Add support for XMM registers
14248 using PT_GETXMMREGS.
14249 (store_inferior_registers): Only store integer registers
14250 if requested to do so. Add support for XMM registers
14251 using PT_SETXMMREGS.
14252 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14253 (store_inferior_registers): Remove.
14254 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14255 (fetch_elfcore_registers): New function.
14256 (i386nbsd_elfcore_fns): New.
14257 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14258 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14260 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14261 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14262 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14263 * config/i386/tm-nbsd.h: Update copyright years.
14264 (HAVE_SSE_REGS): Define.
14265 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14266 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14267 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14268 (SIGCONTEXT_PC_OFFSET): Remove.
14269 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14271 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14273 * configure.tgt: Remove powerpc-*-macos* target.
14274 * config/m68k/xm-mpw.h: Delete file.
14275 * config/xm-mpw.h: Delete file.
14276 * ser-mac.c: Delete file.
14277 * mpw-make.sed: Delete file.
14278 * mpw-config.in: Delete file.
14279 * mac-xdep.c: Delete file.
14280 * mac-gdb.r: Delete file.
14281 * mac-defs.h: Delete file.
14282 * mac-nat.c: Delete file.
14283 * config/powerpc/macos.mh: Delete file.
14284 * config/powerpc/macos.mt: Delete file.
14285 * config/powerpc/nm-macos.h: Delete file.
14286 * config/powerpc/tm-macos.h: Delete file.
14287 * source.c (openp, open_source_file): Remove obsolete code.
14288 * top.c (gdb_readline): Ditto.
14289 * utils.c (query): Ditto.
14290 * event-top.c (display_gdb_prompt): Ditto.
14291 * Makefile.in (ser-mac.o): Delete obsolete target.
14294 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14296 * defs.h (BIG_ENDIAN): Delete macro definition.
14297 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14298 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14299 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14300 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14301 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14302 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14303 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14304 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14305 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14306 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14307 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14308 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14309 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14310 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14311 * gdbarch.c: Re-generate.
14313 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14315 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14318 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14320 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14322 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14324 * value.h (value_ptr): Delete typedef.
14326 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14328 * i386nbsd-nat.c: Update copyright years.
14329 Include i386-tdep.h.
14331 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14333 * stabsread.c: Update copyright years.
14335 From Debashis Mahata <debashis.mahata@wipro.com>:
14336 (read_struct_fields): Deal with Sun C compiler erroneous stab
14337 output for structs and unions.
14340 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14342 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14345 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14347 * cp-abi.c: Fix whitespace.
14348 (baseclass_offset): New wrapper function.
14349 * cp-abi.h (baseclass_offset): Add prototype.
14350 (struct cp_abi_ops): Add baseclass_offset pointer.
14352 * valops.c (vb_match): Move to...
14353 * gnu-v2-abi.c (vb_match): here.
14354 * valops.c (baseclass_offset): Move to...
14355 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14357 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14359 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14360 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14361 * hpacc-abi.c (init_hpacc_ops): Likewise.
14363 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14365 * valops.c (find_overload_match): Accept obj as a
14366 reference parameter. Update it before returning.
14367 * value.h (find_overload_match): Update prototype.
14368 * eval.c (evaluate_subexp_standard): Pass object to
14369 find_overload_match by reference.
14371 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14373 * valarith.c: Replace value_ptr with struct value pointer. Remove
14374 register attribute from value declarations.
14377 * scm-lang.c (scm_lookup_name): Ditto.
14379 2002-01-03 Michael Snyder <msnyder@redhat.com>
14381 Abstract the functionality of iterating over mapped memory
14382 regions into a general purpose iterator function.
14383 * procfs.c (iterate_over_mappings): New function, general purpose
14384 iterator for memory sections.
14385 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14386 (solib_mappings_callback): New function, callback for above.
14387 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14388 (info_mappings_callback): New function, callback for above.
14390 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14392 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14394 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14395 * i386-tdep.c: Include "elf-bfd.h".
14396 (process_note_abi_tag_sections): New function.
14397 (i386_gdbarch_init): Add code to recognize various OS/ABI
14400 * maint.c (_initialize_maint_cmds): Add missing \ in
14403 For older changes see ChangeLog-2001
14409 version-control: never