Multiarch SVR4_FETCH_LINK_MAP_OFFSETS and GET_LONGJMP_TARGET for GNU/Linux/MIPS.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-20 Kevin Buettner <kevinb@redhat.com>
2
3 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
4 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
5 (mips_linux_get_longjmp_target): Delete declarations.
6 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
7 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
8 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
9 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
10 (mips_linux_get_longjmp_target)
11 (mips_linux_svr4_fetch_link_map_offsets): Make static.
12 (mips_linux_init_abi): New function.
13 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
14
15 2002-12-19 Keith Seitz <keiths@redhat.com>
16
17 patch committed by Elena Zannoni <ezannoni@redhat.com>
18 * thread.c (do_captured_list_thread_ids): Call prune_threads and
19 target_find_new_threads. Fix for PR mi/669.
20
21 2002-12-19 David Carlton <carlton@math.stanford.edu>
22
23 * linespec.c (decode_line_1): Move code into decode_all_digits.
24 (decode_all_digits): New function.
25
26 2002-12-19 Kevin Buettner <kevinb@redhat.com>
27
28 * exec.c (print_section_info): Select a format string to use with
29 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
30
31 2002-12-18 Andrew Cagney <ac131313@redhat.com>
32
33 * frame.c (deprecated_update_current_frame_pc_hack): Replace
34 deprecated_update_current_frame_pc_hack.
35 (deprecated_update_frame_base_hack): New function.
36 * frame.h (deprecated_update_frame_pc_hack): Replace
37 (deprecated_update_frame_base_hack): Declare.
38 * infrun.c (normal_stop): Update.
39
40 2002-12-18 Andrew Cagney <ac131313@redhat.com>
41
42 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
43 frame_extra_info_zalloc.
44 (rs6000_frame_args_address): Use get_frame_extra_info.
45 (frame_get_saved_regs): Use get_frame_saved_regs.
46 (frame_initial_stack_address): Use get_frame_saved_regs and
47 get_frame_extra_info.
48 (frame_initial_stack_address): Use get_frame_extra_info.
49
50 2002-12-17 Kevin Buettner <kevinb@redhat.com>
51
52 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
53 array size.
54 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
55 checks for r3900_regnames[].
56
57 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
58
59 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
60 All uses changed
61 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
62
63 2002-12-17 David Carlton <carlton@math.stanford.edu>
64
65 * symtab.c (lookup_partial_symbol): Don't search past the end of
66 the partial symbols.
67
68 2002-12-17 Andrew Cagney <ac131313@redhat.com>
69
70 * stack.c (frame_info): Use get_frame_saved_regs.
71 * breakpoint.c (until_break_command): Use get_frame_pc.
72
73 2002-12-16 Kevin Buettner <kevinb@redhat.com>
74
75 * buildsym.c (block_end_complaint, anon_block_end_complaint)
76 (innerblock_complaint, innerblock_anon_complaint)
77 (blockvector_complaint): Delete deprecated complaint structs.
78 (finish_block, make_blockvector, end_symtab): Replace calls
79 to complain() with calls to complaint().
80 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
81 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
82 (unexpected_type_complaint, bad_sclass_complaint)
83 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
84 Delete deprecated complaint structs.
85 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
86 Replace calls to complain() with calls to complaint().
87 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
88 (unknown_symtype_complaint, unknown_symchar_complaint)
89 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
90 (lbrac_mismatch_complaint, repeated_header_complaint)
91 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
92 Delete deprecated complaint structs.
93 (unknown_symtype_complaint, lbrac_mismatch_complaint)
94 (repeated_header_complaint)
95 (function_outside_compiliation_unit_complaint): New functions.
96 (add_old_header_file, find_corresponding_bincl_psymtab)
97 (set_namestring, find_stab_function_addr, read_dbx_symtab)
98 (process_one_symbol): Replace calls to complain() with, possibly
99 indirect, calls to complaint().
100 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
101 (unknown_attribute_form, unknown_attribute_length)
102 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
103 (const_ignored, botched_modified_type, op_deref2, op_deref4)
104 (basereg_not_handled, dup_user_type_allocation)
105 (dup_user_type_definition, missing_tag, bad_array_element_type)
106 (subscript_data_items, unhandled_array_subscript_format)
107 (unknown_array_subscript_format, not_row_major)
108 (missing_at_name): Delete deprecated complaint structs.
109 (bad_die_ref_complaint, unknown_attribute_form_complaint)
110 (dup_user_type_definition_complaint)
111 (bad_array_element_type_complaint): New functions.
112 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
113 (decode_subscript_data_item, dwarf_read_array_type)
114 (read_tag_string_type, read_subroutine_type, read_func_scope)
115 (locval, scan_partial_symbols, decode_modified_type)
116 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
117 (attribute_size): Replace calls to complain() with, possibly
118 indirect, calls to complaint().
119 * elfread.c (section_info_complaint, section_info_dup_complaint)
120 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
121 Delete deprecated complaint structs.
122 (elf_symtab_read, elfstab_offset_sections): Replace calls to
123 complain() with calls to complaint().
124 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
125 struct.
126 (stub_noname_complaint): New function.
127 (check_typedef, add_mangled_type): Replace calls to complain()
128 with calls to complaint().
129 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
130 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
131 (hpread_unhandled_type_complaint, hpread_struct_complaint)
132 (hpread_array_complaint, hpread_type_lookup_complaint)
133 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
134 (hpread_unhandled_common_complaint)
135 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
136 struct definitions and declarations.
137 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
138 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
139 Replace calls to complain() with, possibly indirect, calls to
140 complaint().
141 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
142 Likewise.
143 * mdebugread.c (bad_file_number_complaint, index_complaint)
144 (aux_index_complaint, block_index_complaint)
145 (unknown_ext_complaint, unknown_sym_complaint)
146 (unknown_st_complaint, block_overflow_complaint)
147 (basic_type_complaint, unknown_type_qual_complaint)
148 (array_index_type_complaint, bad_tag_guess_complaint)
149 (block_member_complaint, stEnd_complaint)
150 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
151 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
152 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
153 (bad_continued_complaint, bad_rfd_entry_complaint)
154 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
155 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
156 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
157 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
158 complaint structs.
159 (index_complaint, unknown_ext_complaint, basic_type_complaint)
160 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
161 (unexpected_type_code_complaint)
162 (function_outside_compilation_unit_complaint): New functions.
163 (parse_symbol, parse_type, upgrade_type, parse_procedure)
164 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
165 Replace calls to complain() with, possibly indirect calls to
166 complaint().
167 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
168 Delete deprecated complaint structs.
169 (lookup__objc_class, lookup_child_selector): Replace complain()
170 with complaint().
171 * remote-vx.c (cant_contact_target): Delete deprecated complaint
172 struct.
173 (vx_lookup_symbol): Replace complain() with complaint().
174 * stabsread.c (invalid_cpp_abbrev_complaint)
175 (invalid_cpp_type_complaint, member_fn_complaint)
176 (const_vol_complaint, error_type_complaint)
177 (invalid_member_complaint, range_type_base_complaint)
178 (reg_value_complaint, vtbl_notfound_complaint)
179 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
180 (unresolved_sym_chain_complaint, stabs_general_complaint)
181 (lrs_general_complaint, multiply_defined_struct): Delete
182 deprecated complaint structs.
183 (invalid_cpp_abbrev_complaint, ref_value_complaint)
184 (stabs_general_complaint, lrs_general_complaint)
185 (msg_unknown_complaint): New functions.
186 (dbx_lookup_type, read_cfront_baseclasses)
187 (read_cfront_member_functions, resolve_symbol_reference)
188 (define_symbol, resolve_live_range, add_live_range, read_type)
189 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
190 (read_one_struct_field, read_baseclasses, read_tilde_fields)
191 (read_cfront_static_fields, attach_fields_to_type)
192 (complain_about_struct_wipeout, read_range_type)
193 (common_block_start, common_block_end, cleanup_undefined_types)
194 (scan_file_globals): Replace complain() with complaint().
195 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
196 Delete deprecated complaint struct declarations.
197 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
198 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
199 (bf_not_found_complaint, ef_complaint, eb_complaint)
200 (function_outside_compilation_unit_complaint): New functions.
201 (record_include_begin, record_include_end, enter_line_range)
202 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
203 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
204 complain() with complaint().
205
206 2002-12-16 Andrew Cagney <ac131313@redhat.com>
207
208 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
209 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
210 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
211 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
212 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
213 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
214 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
215 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
216 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
217 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
218 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
219 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
220 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
221 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
222 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
223 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
224 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
225 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
226 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
227 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
228 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
229 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
230 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
231 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
232 * config/m88k/xm-dgux.h: Delete.
233 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
234 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
235 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
236 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
237 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
238 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
239 * ch-valprint.c: Delete.
240
241 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
242
243 * infrun.c (handle_inferior_event): Rearrange code to resume if
244 no catchpoint triggers for an event.
245
246 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
247
248 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
249 and TARGET_WAITKIND_VFORKED cases.
250
251 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
252
253 * infrun.c (handle_inferior_event): Assume that catchpoints
254 are not affected by DECR_PC_AFTER_BREAK.
255
256 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
257
258 * target.c (update_current_target): Don't inherit DONT_USE.
259 * target.h (struct target_ops): Remove DONT_USE.
260 (target_next): Remove macro.
261
262 2002-12-15 Mark Kettenis <kettenis@gnu.org>
263
264 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
265
266 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
267
268 * arm-tdep.c (convert_from_extended): New argument to hold the
269 type of floating point result we want to convert to. Make input
270 argument const. Fix all callers.
271 (convert_to_extended): Similarly.
272 (arm_extract_return_value): Now takes a regcache argument. Change
273 code to use regcache accessor functions. Correctly extract
274 smaller-than-word results on big-endian machines.
275 (arm_store_return_value): Now takes a regcache argument. Change
276 code to use regcache accessor functions. Correctly zero/sign extend
277 smaller than word results before storing into r0.
278 (arm_gdbarch_init): Register new-style extract_return_value and
279 store_return_value functions.
280
281 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
282
283 * thread-db.c (thread_from_lwp): Uniquify error msg.
284 (lwp_from_thread): Ditto.
285 (check_event): Ditto.
286 (find_new_threads_callback): Ditto.
287 (thread_db_pid_to_str): Ditto.
288
289 2002-12-13 Andrew Cagney <ac131313@redhat.com>
290
291 * frame.h (get_frame_saved_regs): Declare.
292 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
293 pointer.
294 * frame.c (get_frame_saved_regs): New function.
295 (frame_saved_regs_zalloc): Return the allocated saved_regs.
296
297 2002-12-13 Andrew Cagney <ac131313@redhat.com>
298
299 * frame.c (deprecated_update_current_frame_pc_hack): New
300 function.
301 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
302 * infrun.c (normal_stop): Use said function instead of directly
303 modifying the frame's PC.
304
305 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
306
307 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
308
309 2002-12-13 Kevin Buettner <kevinb@redhat.com>
310
311 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
312 config/mips/tm-irix6.h (NUM_REGS): Delete.
313 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
314 (temp_saved_regs): Declare as a pointer rather than an array.
315 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
316 that ``temp_saved_regs'' has storage allocated to it and that
317 it's the correct size.
318
319 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
320
321 * defs.h (init_last_source_visited): New prototype.
322 (add_path): Ditto.
323 * source.c (add_path): New function that adds to a specified path.
324 (mod_path): Change to call add_path.
325 (init_last_source_visited): New function to allow interfaces to
326 initialize static variable: last_source_visited. Part of fix
327 for PR gdb/741.
328 * Makefile.in: Add support for mi/mi-cmd-env.c.
329
330 2002-12-13 Andrew Cagney <ac131313@redhat.com>
331
332 * frame.h (frame_id_unwind): Declare.
333 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
334 id_unwind_cache.
335 (frame_id_unwind_ftype): Declare.
336 * frame.c (frame_id_unwind): New function.
337 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
338 (create_new_frame, get_prev_frame): Pass id_unwind to
339 set_unwind_by_pc.
340 (frame_saved_regs_id_unwind): New function.
341 (frame_saved_regs_id_unwind): New function.
342 * dummy-frame.c (dummy_frame_id_unwind): New function.
343 (struct dummy_frame): Add field id.
344 (generic_push_dummy_frame): Initialize `id'.
345 * dummy-frame.h (dummy_frame_id_unwind): Declare.
346
347 2002-12-13 Andrew Cagney <ac131313@redhat.com>
348
349 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
350 pass that to set_momentary_breakpoint. Move comments to where they
351 belong.
352 * frame.h (set_current_frame): Delete declaration.
353 * frame.c (set_current_frame): Delete function.
354
355 2002-12-13 Andrew Cagney <ac131313@redhat.com>
356
357 * frame.c (frame_extra_info_zalloc): New function.
358 * frame.h (frame_extra_info_zalloc): Declare.
359
360 2002-12-13 Joel Brobecker <brobecker@gnat.com>
361
362 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
363 in the previous prototype change to set_momentary_breakpoint.
364
365 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
366
367 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
368 and saw_child_exec.
369 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
370 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
371 (stop_stepping): Remove outdated check for child vfork events.
372
373 2002-12-12 Andrew Cagney <ac131313@redhat.com>
374
375 * GDB 5.3 released from gdb_5_3-branch.
376
377 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
378
379 * corelow.c (init_core_ops): Delete references to to_require_attach
380 and to_require_detach.
381 * exec.c (init_exec_ops): Likewise.
382 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
383 hppa_require_detach directly.
384 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
385 * inftarg.c (child_detach): Remove.
386 (child_detach_from_process): Rename to child_detach, remove
387 after_fork argument.
388 (child_attach): Remove.
389 (child_attach_to_process): Rename to child_attach, remove after_fork
390 argument.
391 (init_child_ops): Delete references to to_require_attach
392 and to_require_detach.
393 * infttrace.c (hppa_require_attach): Update comment.
394 * target.c (cleanup_target, update_current_target)
395 (init_dummy_target, setup_target_debug): Delete references to
396 to_require_attach and to_require_detach.
397 (find_default_require_detach, find_default_require_attach)
398 (debug_to_require_attach, debug_to_require_detach): Remove
399 functions.
400 * target.h (struct target_ops): Remove to_require_attach
401 and to_require_detach.
402 (target_require_attach, target_require_detach): Delete macros.
403 (find_default_require_detach, find_default_require_attach): Delete
404 prototypes.
405 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
406
407 2002-12-11 Andrew Cagney <ac131313@redhat.com>
408
409 * frame.c (get_frame_extra_info): New function.
410 * frame.h (get_frame_extra_info): Declare.
411
412 2002-12-11 Andrew Cagney <ac131313@redhat.com>
413
414 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
415 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
416 with `struct frame_id'.
417 (set_longjmp_resume_breakpoint): Ditto.
418 * infrun.c (handle_inferior_event): Update.
419 * breakpoint.c (watch_command_1, until_break_command): Update.
420 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
421 (handle_inferior_event, step_over_function): Update.
422 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
423 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
424 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
425 * infcmd.c (finish_command, run_stack_dummy): Update.
426
427 2002-12-11 Kevin Buettner <kevinb@redhat.com>
428
429 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
430 (dwarf2_non_const_array_bound_ignored)
431 (dwarf2_missing_line_number_section)
432 (dwarf2_statement_list_fits_in_line_number_section)
433 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
434 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
435 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
436 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
437 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
438 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
439 (dwarf2_missing_member_fn_type_complaint)
440 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
441 (dwarf2_const_value_length_mismatch)
442 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
443 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
444 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
445 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
446 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
447 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
448 complaints using deprecated struct..
449 (dwarf2_non_const_array_bound_ignored_complaint)
450 (dwarf2_complex_location_expr_complaint)
451 (dwarf2_unsupported_at_frame_base_complaint)
452 (dwarf2_const_value_length_mismatch_complaint)
453 (dwarf2_macros_too_long_complaint)
454 (dwarf2_macro_malformed_definition_complaint)
455 (dwarf2_invalid_attrib_class_complaint): New functions.
456 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
457 (read_structure_scope, read_array_type, read_common_block)
458 (read_tag_pointer_type, read_base_type, read_partial_die)
459 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
460 (new_symbol, dwarf2_const_value, read_type_die)
461 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
462 (parse_macro_definition, dwarf_decode_macros): Replace calls to
463 complain() with, possibly indirect, calls to complaint().
464
465 2002-12-11 Andrew Cagney <cagney@redhat.com>
466
467 * frame.c (deprecated_get_frame_saved_regs): Rename
468 get_frame_saved_regs.
469 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
470 * sparc-tdep.c: Update.
471 * hppa-tdep.c: Update.
472 * h8500-tdep.c: Update.
473
474 2002-12-11 Kevin Buettner <kevinb@redhat.com>
475
476 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
477 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
478 ``char *'' for return and parameter types.
479 * gdbarch.h, gdbarch.c: Regenerate.
480 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
481 return type from ``char *'' to ``const char *''.
482 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
483 const.
484
485 2002-12-11 Mark Kettenis <kettenis@gnu.org>
486
487 * i386-tdep.c: Include "dummy-frame.h".
488 (i386_frame_chain, i386_frame_saved_pc): Replace
489 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
490 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
491
492 2002-12-10 Andrew Cagney <cagney@redhat.com>
493
494 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
495 Change to a function with predicate.
496 * gdbarch.h, gdbarch.c: Re-generate.
497 * frame.c (get_prev_frame): Update. Test
498 DEPRECATED_INIT_FRAME_PC_P.
499 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
500 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
501 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
502 * alpha-tdep.c (alpha_gdbarch_init): Update.
503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
504 * mips-tdep.c (mips_gdbarch_init): Update.
505 * i386-interix-tdep.c (i386_interix_init_abi): Update.
506 * arm-tdep.c: Update comments.
507 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
508 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
509 * frv-tdep.c (frv_gdbarch_init): Ditto.
510 * x86-64-tdep.c (x86_64_init_abi): Ditto.
511 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
512 * s390-tdep.c (s390_gdbarch_init): Ditto.
513 * v850-tdep.c (v850_gdbarch_init): Ditto.
514 * vax-tdep.c (vax_gdbarch_init): Ditto.
515 * sh-tdep.c (sh_gdbarch_init): Ditto.
516 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
520 * i386-tdep.c (i386_gdbarch_init): Ditto.
521 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
522 * cris-tdep.c (cris_gdbarch_init): Ditto.
523 * avr-tdep.c (avr_gdbarch_init): Ditto.
524 * arm-tdep.c (arm_gdbarch_init): Ditto.
525 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
526 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
527
528 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
529
530 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
531 CHILD_FOLLOW_FORK.
532 * hppah-nat.c (saved_vfork_pid): Add.
533 (child_post_follow_vfork): Remove.
534 (child_follow_fork): New function.
535 (child_wait): Call detach_breakpoints after receiving the child vfork.
536 Call child_resume directly instead of going through resume ().
537 Make sure we have the exec before reporting the vfork.
538 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
539 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
540 (follow_fork): New function. Call target_follow_fork.
541 (follow_inferior_reset_breakpoints): New function broken out from
542 old follow_inferior_fork.
543 (resume): Remove hack to follow exec after vfork.
544 * inftarg.c (child_post_follow_vfork): Remove.
545 (child_follow_fork): New function.
546 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
547 * target.c (cleanup_target): Replace to_post_follow_vfork with
548 to_follow_fork.
549 (update_current_target): Likewise.
550 (setup_target_debug): Likewise.
551 (debug_to_post_follow_vfork): Remove.
552 (debug_to_follow_fork): New function.
553 * target.h (struct target_ops): Replace to_post_folow_vfork with
554 to_follow_fork.
555 (child_post_follow_vfork): Remove prototype.
556 (child_follow_fork): Add prototype.
557 (target_post_follow_vfork): Remove macro.
558 (target_follow_fork): Add macro.
559
560 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
561
562 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
563 (child_post_follow_vfork): Cancel pending exec event if we follow
564 the parent.
565 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
566 events have been processed. Return a fake TARGET_WAITKIND_EXECD
567 event at the following wait call if necessary.
568 * infrun.c (follow_vfork): Don't follow_exec here.
569 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
570 case about HP/UX 10.20. Remove code pushed down to
571 hppah-nat.c:child_wait.
572 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
573 vfork_in_flight is set.
574
575 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
576
577 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
578 for the parent's fork event.
579 * infrun.c (handle_inferior_event): Only expect one fork event.
580 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
581 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
582
583 2002-12-10 Andrew Cagney <ac131313@redhat.com>
584
585 * PROBLEMS: Delete reference to PR gdb/725.
586
587 * MAINTAINERS (gdb.c++): Add David Carlton.
588
589 2002-12-09 David Carlton <carlton@math.stanford.edu>
590
591 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
592 * cli/cli-cmds.c: Ditto.
593
594 2002-12-09 Andrew Cagney <cagney@redhat.com>
595
596 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
597 function address in <>.
598 * gdbarch.c: Re-generate.
599
600 2002-12-09 David Carlton <carlton@math.stanford.edu>
601
602 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
603
604 2002-12-09 David Carlton <carlton@math.stanford.edu>
605
606 * linespec.c (symtab_from_filename): New function.
607 (decode_line_1): Move code into symtab_from_filename.
608
609 2002-12-09 Kevin Buettner <kevinb@redhat.com>
610
611 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
612
613 2002-12-07 Andrew Cagney <ac131313@redhat.com>
614
615 * f-valprint.c (info_common_command): Use get_frame_pc.
616 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
617 * ax-gdb.c (agent_command): Ditto.
618 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
619 (rs6000_pop_frame): Ditto.
620 (rs6000_frameless_function_invocation): Ditto.
621 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
622 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
623 * macroscope.c (default_macro_scope): Ditto.
624 * stack.c (print_frame_info_base): Ditto.
625 (print_frame, frame_info, print_frame_label_vars): Ditto.
626 (return_command, func_command, get_frame_language): Ditto.
627 * infcmd.c (finish_command): Ditto.
628 * dummy-frame.c (cached_find_dummy_frame): Ditto.
629 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
630 (break_at_finish_at_depth_command_1): Ditto.
631 (break_at_finish_command_1): Ditto.
632 (until_break_command, get_catch_sals): Ditto.
633 * blockframe.c (func_frame_chain_valid): Ditto.
634 (frameless_look_for_prologue): Ditto.
635 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
636
637 2002-12-08 Andrew Cagney <ac131313@redhat.com>
638
639 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
640 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
641
642 2002-12-08 Andrew Cagney <ac131313@redhat.com>
643
644 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
645 to pure functions.
646 * gdbarch.h, gdbarch.c: Re-generate.
647 * frame.c (get_prev_frame): Explictly assign prev's pc with value
648 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
649
650 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
651 declaration to a function returning a CORE_ADDR.
652 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
653 * arch-utils.c (init_frame_pc_noop): Return the PC value.
654 (init_frame_pc_default): Ditto.
655 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
656 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
657 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
658 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
659 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
660 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
661
662 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
663 to init_frame_pc_noop.
664 (i386_interix_init_frame_pc): Delete function.
665 * z8k-tdep.c (init_frame_pc): Delete function.
666 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
667 (INIT_FRAME_PC_FIRST): Ditto.
668 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
669 (INIT_FRAME_PC_FIRST): Ditto.
670 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
671 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
672 init_frame_pc_noop.
673 (INIT_FRAME_PC_FIRST): Convert to an expression.
674 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
675
676 2002-12-08 Andrew Cagney <ac131313@redhat.com>
677
678 * blockframe.c: Use get_frame_base instead of directly accessing
679 the `struct frame_info' member frame.
680 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
681 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
682
683 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
684
685 * Makefile.in (readline_h): Define.
686 (completer.o): Depend on readline_h.
687 (corelow.o): Ditto.
688 (event-top.o): Ditto.
689 (exec.o): Ditto.
690 (solib.o): Ditto.
691 (source.o): Ditto.
692 (symfile.o): Ditto.
693 (symmisc.o): Ditto.
694 (top.o): Ditto.
695 (tracepoint.o): Ditto.
696 (utils.o): Ditto.
697 (cli-dump.o): Ditto.
698 (tui-hooks.o): Ditto.
699 (tuiWin.o): Ditto.
700
701 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
702
703 More cleanup from import of readline 4.3.
704 * completer.h (complete_line, readline_line_completion_function):
705 Update prototypes.
706 (line_completion_function): Removed, not used outside of completer.c.
707 * completer.c (readline_line_completion_function,
708 complete_function, line_completion_function): Use const for first
709 parameter.
710 (line_completion_function): Make static.
711 (filename_completer): filename_completion_function is now called
712 rl_filename_completion_function
713 * corelow.c: Include <readline/readline.h>.
714 * exec.c: Ditto.
715 * solib.c: Ditto.
716 * source.c: Ditto.
717 * symfile.c: Ditto.
718 * symmisc.c: Ditto.
719 * top.c (init_main): No need to coerce
720 readline_line_completion_function anymore.
721 * cli/cli-dump.c: Include <readline/readline.h>.
722
723 2002-12-08 Andrew Cagney <ac131313@redhat.com>
724
725 * stack.c (frame_info): Use get_prev_frame.
726 * blockframe.c (frame_address_in_block): Ditto.
727 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
728 (rs6000_frameless_function_invocation): Ditto.
729 (rs6000_frame_saved_pc): Ditto.
730 (rs6000_frame_chain): Ditto.
731 * arch-utils.c (init_frame_pc_default): Ditto.
732
733 2002-12-08 Andrew Cagney <ac131313@redhat.com>
734
735 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
736 Delete redundant definition.
737
738 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
739
740 Import of readline 4.3:
741 * cli/cli-cmds.c: Include readline/tilde.h.
742 * cli/cli-setshow.c: Ditto.
743 * defs.h: Don't declare tilde_expand anymore, since readline
744 exports it.
745
746 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
747
748 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
749 -Werror on this file.
750
751 2002-12-07 Andrew Cagney <ac131313@redhat.com>
752
753 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
754 the format name.
755 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
756 * gdbarch.c: Regenerate.
757
758 2002-12-06 Andrew Cagney <ac131313@redhat.com>
759
760 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
761 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
762 provide a default value.
763 * gdbarch.h, gdbarch.c: Regenerate.
764 * frame.c (get_prev_frame): Update. Check
765 DEPRECATED_INIT_FRAME_PC_FIRST_P.
766 * s390-tdep.c (s390_gdbarch_init): Update.
767 * mips-tdep.c (mips_gdbarch_init): Update.
768 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
769 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
770 * alpha-tdep.c (alpha_gdbarch_init): Update.
771
772 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
773
774 * ia64-linux-nat.c: Include gdb_string.h.
775 * alpha-nat.c: Ditto.
776 * ppc-linux-nat.c: Ditto.
777 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
778 Update dependencies.
779
780 2002-12-05 Andrew Cagney <ac131313@redhat.com>
781
782 * gdbthread.h: Include "frame.h".
783 (struct thread_info): Replace step_frame_address with
784 step_frame_id.
785 * inferior.h: Include "frame.h".
786 (step_frame_id): Replace external variable step_frame_address.
787 * gdbthread.h (save_infrun_state): Replace step_frame_address
788 parameter with step_frame_id parameter.
789 (load_infrun_state): Ditto.
790 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
791 * infcmd.c (step_frame_id, step_1, step_once): Update.
792 * thread.c (load_infrun_state, save_infrun_state): Update.
793 * infrun.c (clear_proceed_status, save_inferior_status): Update.
794 (handle_inferior_event, step_over_function): Update.
795 (normal_stop, context_switch, restore_inferior_status): Update.
796 (struct inferior_status): Replace step_frame_address with
797 step_frame_id.
798
799 2002-12-05 David Carlton <carlton@math.stanford.edu>
800
801 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
802 DW_TAG_member as well as a declaration as being a C++ static data
803 member.
804 (read_structure_scope): Combine tests for DW_TAG_member and
805 DW_TAG_variable.
806
807 2002-12-05 David Carlton <carlton@math.stanford.edu>
808
809 * linespec.c (decode_compound): New function.
810 (decode_line_1): Move code into decode_compound.
811
812 2002-12-05 David Carlton <carlton@math.stanford.edu>
813
814 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
815 argument.
816 (lookup_symbol_aux): Do the 'field_of_this' check before checking
817 the static block. See PR gdb/804.
818
819 2002-12-05 David Carlton <carlton@math.stanford.edu>
820
821 * symtab.c (lookup_symbol_aux_block): New function.
822 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
823
824 2002-12-05 Andrew Cagney <ac131313@redhat.com>
825
826 * gdbarch.sh: Dump the predicate function and macro values.
827 (read): Print error on standard error.
828 * gdbarch.c: Regenerate.
829
830 2002-12-04 Kevin Buettner <kevinb@redhat.com>
831
832 * Makefile.in (mips_tdep_h): Define.
833 (mips-tdep.o): Add mips_tdep_h to dependency list.
834 * mips-tdep.h: New file.
835 * mips-tdep.c (mips-tdep.h): Include.
836 (enum mips_abi): Move to mips-tdep.h.
837 (mips_abi): New function.
838
839 2002-12-04 David Carlton <carlton@math.stanford.edu>
840
841 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
842
843 2002-12-04 David Carlton <carlton@math.stanford.edu>
844
845 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
846 function.
847 (lookup_symbol_aux_minsyms): New function.
848
849 2002-12-04 J. Brobecker <brobecker@gnat.com>
850
851 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
852
853 2002-12-04 J. Brobecker <brobecker@gnat.com>
854
855 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
856 which is an obsolete macro name.
857
858 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
859
860 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
861 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
862
863 2002-12-03 H.J. Lu (hjl@gnu.org)
864
865 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
866 (create_breakpoints): Make sure the addr_string field is not
867 NULL.
868
869 2002-12-03 Andrew Cagney <ac131313@redhat.com>
870
871 * sparc-nat.c (fetch_inferior_registers)
872 (store_inferior_registers): Add comment on problem of LWP vs
873 threads.
874
875 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
876 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
877 (lin_lwp_store_registers): Remove.
878 (init_lin_lwp_ops): Use fetch_inferior_registers
879 and store_inferior_registers directly.
880 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
881 (store_inferior_registers): Likewise.
882 Fix PR gdb/725.
883
884 2002-12-03 Andrew Cagney <ac131313@redhat.com>
885
886 * frame.h (get_frame_id): Convert to a function.
887 (null_frame_id, frame_id_p): Declare.
888 (frame_id_eq, frame_id_inner): Declare.
889 (frame_id_build): New function.
890 * frame.c (get_frame_id): Update. Use null_frame_id.
891 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
892 frame_id_inner.
893 (null_frame_id, frame_id_p): Define.
894 (frame_id_eq, frame_id_inner): Define.
895 (frame_id_build): New function.
896 * varobj.c (varobj_create): Update.
897 (varobj_update): Update.
898 * valops.c (value_assign): Update.
899 (new_root_variable): Update.
900 * infrun.c (save_inferior_status): Update.
901 * breakpoint.c (watch_command_1): Update.
902
903 2002-12-03 J. Brobecker <brobecker@gnat.com>
904
905 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
906 (SNAP2): Likewise.
907
908 2002-12-03 Andrew Cagney <cagney@redhat.com>
909
910 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
911 patch.
912
913 * PROBLEMS: Mention PR gdb/725.
914
915 2002-12-03 Andreas Schwab <schwab@suse.de>
916
917 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
918
919 2002-12-02 Adam Fedor <fedor@gnu.org>
920 Klee Dienes <kdienes@apple.com>
921
922 * objc-lang.c (objc_printstr): Add width arg to match
923 printstr prototype.
924 (compare_selectors): Add 'const' to arg types.
925 (compare_classes): Likewise.
926 (find_imps): Cast msym pointer to avoid compiler warning.
927 (print_object_command): Validate the address before
928 passing it to the print routine.
929 (find_objc_msgcall_submethod): Change function argument to
930 return an int.
931 * objc-lang.h: Add 'extern' to all function declarations.
932 (value_nsstring): Add declaration.
933
934 2002-12-02 J. Brobecker <brobecker@gnat.com>
935
936 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
937 Fixes a build failure on HP/UX.
938
939 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
940 failure on HP/UX.
941 (hpread_has_name): Advance declaration to avoid a compilation warning.
942 (pst_syms_count): Add missing variable type. By change, the compiler
943 was defaulting to int, which seems a good choice. Fixes a compilation
944 warning.
945 (pst_syms_size): Likewise.
946
947 2002-12-02 J. Brobecker <brobecker@gnat.com>
948
949 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
950 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
951 later to set the proper gdbarch methods depending on the osabi.
952 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
953
954 2002-12-02 J. Brobecker <brobecker@gnat.com>
955
956 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
957 * osabi.c (gdb_osabi_name): Add strings images for the two new
958 enum values.
959 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
960
961 2002-12-02 Andrew Cagney <ac131313@redhat.com>
962
963 * MAINTAINERS (Java): Global maintainers are responible for Java.
964 (Past Maintainers): Mention both Anthony Green and Per Bothner as
965 part Java maintainers.
966
967 2002-12-02 J. Brobecker <brobecker@gnat.com>
968
969 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
970 Fixes a compilation failure on AiX.
971
972 2002-12-02 J. Brobecker <brobecker@gnat.com>
973
974 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
975 why aix-thread.o is not listed.
976
977 2002-12-01 Andrew Cagney <ac131313@redhat.com>
978
979 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
980 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
981 * gdbarch.h, gdbarch.c: Re-generate.
982 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
983 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
984 * config/pa/tm-hppa.h, frame.h: Update.
985 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
986 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
987 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
988 * cris-tdep.c, alpha-tdep.c: Update.
989 * frame.c (set_unwind_by_pc, create_new_frame): Use either
990 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
991 (get_prev_frame): Ditto.
992
993 2002-11-30 Andrew Cagney <cagney@redhat.com>
994
995 * exec.c (xfer_memory): Replace boolean with int.
996 * p-exp.y: Use 0 instead of false.
997 * corelow.c (gdb_check_format): Change return type to int from
998 boolean.
999 * utils.c: Don't include <curses.h> or <term.h> first.
1000
1001 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1002
1003 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1004 (m68hc11_register_byte): Remove.
1005 (m68hc11_gdbarch_init): Don't set the above.
1006
1007 2002-11-29 Andrew Cagney <cagney@redhat.com>
1008
1009 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1010 by calling get_selected_frame.
1011 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1012 set_current_frame, create_new_frame, select_frame and
1013 get_current_frame.
1014 * remote-e7000.c (e7000_start_remote): Ditto.
1015 * remote-mips.c (common_open): Ditto
1016 * remote-rdp.c (remote_rdp_open): Ditto.
1017
1018 2002-11-29 Andreas Schwab <schwab@suse.de>
1019
1020 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1021 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1022 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1023 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1024 read_memory_unsigned_integer instead of read_memory_integer when
1025 dealing with addresses and instruction opcodes.
1026 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1027 (m68k_linux_frame_saved_pc): Likewise.
1028
1029 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1030
1031 * stack.c (selected_frame, select_frame): Move from here ...
1032 * frame.c (selected_frame, select_frame): ... to here. Include
1033 "language.h".
1034 * Makefile.in (frame.o): Update dependencies.
1035 * frame.c (get_selected_frame): New function.
1036 * frame.h (get_selected_frame): Declare.
1037 (deprecated_selected_frame): Rename selected_frame.
1038 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1039 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1040 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1041 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1042 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1043 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1044 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1045 * z8k-tdep.c, cli/cli-cmds.c: Update.
1046
1047 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1048
1049 * frame.h (get_selected_block): Add comments.
1050
1051 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1052
1053 * frame.c (pc_notcurrent): New function.
1054 (find_frame_sal): New function.
1055 * frame.h (find_frame_sal): Declare.
1056 (struct symtab_and_line): Add opaque declaration.
1057 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1058 find_pc_line.
1059 (frame_info): Ditto.
1060 * ada-lang.c (find_printable_frame): Ditto.
1061
1062 2002-11-28 J. Brobecker <brobecker@gnat.com>
1063
1064 * configure.in: Check that the pthdebug library is recent enough
1065 before enabling thread support on native AiX.
1066 * configure: Regenerate.
1067
1068 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1069 from the list of object files as it is now appended by configure
1070 if thread support is enabled.
1071 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1072 if thread support is enabled.
1073
1074 2002-11-28 Andrew Cagney <cagney@redhat.com>
1075
1076 * stack.c (get_selected_block): In-line get_current_block.
1077 * frame.h (get_current_block): Delete declaration.
1078 * blockframe.c (get_current_block): Delete function.
1079
1080 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1081
1082 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1083 USE_GENERIC_DUMMY_FRAMES.
1084 * gdbarch.h, gdbarch.c: Regenerate.
1085 * valops.c, frame.c: Update.
1086 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1087 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1088 * config/pa/tm-hppa.h, blockframe.c: Update.
1089 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1090 * m68k-tdep.c, alpha-tdep.c: Ditto.
1091
1092 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1093 * mips-tdep.c: Ditto.
1094
1095 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1096
1097 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1098 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1099 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1100 * gdbarch.c, gdbarch.h: Re-generate.
1101 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1102 (CALL_DUMMY_LOCATION): Delete macro definition.
1103 (PC_IN_CALL_DUMMY): Delete macro definitions.
1104
1105 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1106 default is already generic_pc_in_call_dummy.
1107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1108 * v850-tdep.c (v850_gdbarch_init): Ditto.
1109 * sh-tdep.c (sh_gdbarch_init): Ditto.
1110 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1111 * mips-tdep.c (mips_gdbarch_init): Ditto.
1112 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1114 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1115 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1117 * avr-tdep.c (avr_gdbarch_init): Ditto.
1118
1119 * arm-tdep.c (arm_gdbarch_init): Do not set
1120 use_generic_dummy_frames, default is already 1.
1121 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1122 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1123 * v850-tdep.c (v850_gdbarch_init): Ditto.
1124 * sh-tdep.c (sh_gdbarch_init): Ditto.
1125 * s390-tdep.c (s390_gdbarch_init): Ditto.
1126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1128 * mips-tdep.c (mips_gdbarch_init): Ditto.
1129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1132 * i386-tdep.c (i386_gdbarch_init): Ditto.
1133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1134 * frv-tdep.c (frv_gdbarch_init): Ditto.
1135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1136 * cris-tdep.c (cris_gdbarch_init): Ditto.
1137 * avr-tdep.c (avr_gdbarch_init): Ditto.
1138
1139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1140 call_dummy_location, default is already AT_ENTRY_POINT.
1141 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1142 * v850-tdep.c (v850_gdbarch_init): Ditto.
1143 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1144 * sh-tdep.c (sh_gdbarch_init): Ditto.
1145 * s390-tdep.c (s390_gdbarch_init): Ditto.
1146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1148 * mips-tdep.c (mips_gdbarch_init): Ditto.
1149 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1151 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1152 * i386-tdep.c (i386_gdbarch_init): Ditto.
1153 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1154 * frv-tdep.c (frv_gdbarch_init): Ditto.
1155 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1156 * cris-tdep.c (cris_gdbarch_init): Ditto.
1157 * avr-tdep.c (avr_gdbarch_init): Ditto.
1158 * arm-tdep.c (arm_gdbarch_init): Ditto.
1159 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1160
1161 2002-11-28 Andrew Cagney <cagney@redhat.com>
1162
1163 * frame.h: Update comments on set_current_frame, create_new_frame,
1164 flush_cached_frames, reinit_frame_cache, select_frame and
1165 selected_frame.
1166
1167 2002-11-27 Andrew Cagney <cagney@redhat.com>
1168
1169 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1170 deprecated pc_in_call_dummy function.
1171 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1172 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1173 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1174 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1175 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1176
1177 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1178
1179 * Makefile.in: Remove Tix dependencies.
1180 * acinclude.m4: Ditto.
1181 * aclocal.m4: Ditto.
1182 * configure.in: Ditto.
1183 * configure: Regenerated.
1184
1185 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1186
1187 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1188 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1189 * gdbarch.c: Re-generate.
1190
1191 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1192
1193 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1194 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1195 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1196 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1197 pc_in_call_dummy_at_entry_point.
1198 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1199 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1200 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1201 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1202 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1203 pc_in_call_dummy_on_stack.
1204 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1205 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1206 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1207 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1208 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1209
1210 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1211
1212 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1213 pc_in_call_dummy_before_text_end
1214 (deprecated_pc_in_call_dummy_after_text_end): Rename
1215 pc_in_call_dummy_after_text_end.
1216 (deprecated_pc_in_call_dummy_on_stack): Rename
1217 pc_in_call_dummy_on_stack.
1218 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1219 pc_in_call_dummy_at_entry_point.
1220 * m68k-tdep.c (m68k_gdbarch_init): Update.
1221 * s390-tdep.c (s390_gdbarch_init): Update.
1222 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1223 * vax-tdep.c (vax_gdbarch_init): Update.
1224 * sparc-tdep.c (sparc_gdbarch_init): Update.
1225 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1226 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1227 * i386-tdep.c (i386_gdbarch_init): Update.
1228 * frv-tdep.c (frv_gdbarch_init): Update.
1229 * cris-tdep.c (cris_gdbarch_init): Update.
1230 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1231 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1232 (deprecated_pc_in_call_dummy_after_text_end)
1233 (deprecated_pc_in_call_dummy_on_stack)
1234 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1235 * alpha-tdep.c (alpha_gdbarch_init): Update.
1236
1237 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1238
1239 * acconfig.h (HAVE_PREAD64): Add.
1240 * configure.in: Check for pread64.
1241 * config.in: Regenerated.
1242 * configure: Regenerated.
1243 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1244 * linux-proc.c (linux_proc_xfer_memory): New function.
1245 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1246
1247 2002-11-25 David Carlton <carlton@math.stanford.edu>
1248
1249 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1250 pdi's with no name.
1251
1252 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1253
1254 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1255 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1256
1257 2002-11-25 Jim Blandy <jimb@redhat.com>
1258
1259 * symfile.c (init_objfile_sect_indices): New function.
1260 (default_symfile_offsets): Move the section-index-initializing
1261 stuff into init_objfile_sect_indices, and call that.
1262
1263 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1264 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1265
1266 * symfile.c (syms_from_objfile): Adjust indentation.
1267
1268 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1269 || info_verbose isn't true.
1270
1271 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1272
1273 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1274 default to get_frame_base.
1275 * gdbarch.h, gdbarch.c: Regenerate.
1276 * arch-utils.c (default_frame_address): Delete function.
1277 * arch-utils.h (default_frame_address): Delete declaration
1278
1279 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1280
1281 * varobj.c (find_frame_addr_in_frame_chain):
1282 Use get_frame_base instead of FRAME_FP,
1283 obvious fix.
1284
1285 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1286
1287 * frame.h (FRAME_FP): Delete macro.
1288 (get_frame_base): New function declaration.
1289 * frame.c (get_frame_base): New function.
1290 (get_frame_id): Use ->frame.
1291 (frame_find_by_id): Rewrite to use get_frame_id.
1292 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1293 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1294 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1295 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1296 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1297 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1298 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1299
1300 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1301
1302 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1303
1304 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1305
1306 * frame.c (set_unwind_by_pc): Revert change below, use
1307 PC_IN_CALL_DUMMY.
1308 (get_prev_frame): Ditto.
1309
1310 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1311
1312 * dummy-frame.c (pc_in_dummy_frame): New function.
1313 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1314 (find_dummy_frame): Update comment.
1315 (generic_pop_current_frame): Use get_frame_type.
1316 * dummy-frame.h (pc_in_dummy_frame): Declare.
1317 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1318 (create_new_frame): Use pc_in_dummy_frame.
1319 (get_prev_frame): Use pc_in_dummy_frame.
1320 (frame_saved_regs_register_unwind): Use get_prev_frame.
1321 (deprecated_generic_get_saved_register): Use get_prev_frame.
1322
1323 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1324
1325 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1326 from here ...
1327 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1328 (varobj_create): Note that frame ID should be used.
1329 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1330
1331 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1332
1333 * breakpoint.c: Include "gdb_assert.h".
1334 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1335 not being used.
1336 * Makefile.in (breakpoint.o): Update dependencies.
1337 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1338 deprecated_frame_in_dummy.
1339 * stack.c (print_frame_info_base): Ditto.
1340 (frame_info): Ditto.
1341 (print_frame_info_base): Ditto. Delete dead code.
1342
1343 2002-11-23 Andreas Schwab <schwab@suse.de>
1344
1345 * Makefile.in (m68k_tdep_h): Define.
1346 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1347 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1348 * m68k-tdep.c: Move register number enum ...
1349 * m68k-tdep.h: ... to this new file and rename the constants from
1350 E_* to M68K_*. All uses changed.
1351 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1352 * abug-rom.c: Include "m68k-tdep.h". Use
1353 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1354 * cpu32bug-rom.c: Likewise.
1355 * dbug-rom.c: Likewise.
1356 * m68k-tdep.c: Likewise.
1357 * m68klinux-nat.c: Likewise.
1358 * remote-est.c: Likewise.
1359 * rom68k-rom.c: Likewise.
1360 * config/m68k/tm-linux.h: Likewise.
1361
1362 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1363
1364 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1365 dummy frame initialization code.
1366 * mips-tdep.c (mips_gdbarch_init): Ditto.
1367
1368 2002-11-22 Christopher Faylor <cgf@redhat.com>
1369
1370 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1371 attach will hang.
1372
1373 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1374
1375 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1376 to default_frame_address.
1377 * gdbarch.h, gdbarch.c: Re-generate.
1378
1379 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1380 or frame_locals_address to default_frame_address.
1381 * m68k-tdep.c (m68k_gdbarch_init): Update.
1382 * i386-tdep.c (i386_gdbarch_init): Update.
1383 * frv-tdep.c (frv_gdbarch_init): Update.
1384 * sh-tdep.c (sh_gdbarch_init): Update.
1385 * v850-tdep.c (v850_gdbarch_init): Update.
1386 * sparc-tdep.c (sparc_gdbarch_init): Update.
1387 * mips-tdep.c (mips_gdbarch_init): Update.
1388 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1389 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1390 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1391
1392 * cris-tdep.c (cris_frame_args_address): Delete function.
1393 (cris_frame_locals_address): Delete function.
1394 (cris_gdbarch_init): Do not set frame_args_address or
1395 frame_locals_address.
1396
1397 2002-11-22 Michael Snyder <msnyder@redhat.com>
1398
1399 * thread-db.c (thread_db_load): Tell the user what's going on
1400 if dlopen fails on libthread_db.
1401
1402 2002-11-23 Andreas Schwab <schwab@suse.de>
1403
1404 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1405 invariant return values.
1406
1407 2002-11-22 Andreas Schwab <schwab@suse.de>
1408
1409 * valops.c (value_slice): Move declaration of `offset' to avoid
1410 warning.
1411
1412 2002-11-22 Christopher Faylor <cgf@redhat.com>
1413
1414 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1415 (struct so_stuff): Add end_addr field.
1416 (register_loaded_dll): Calculate and store end address of loaded dll.
1417 (solib_address): New function.
1418 (child_solib_loaded_library_pathname): Pass carefully constructed
1419 section info to safe_symbol_file_add rather than ignoring it.
1420 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1421 DLL is loaded.
1422 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1423 (child_create_inferior): Fix a compiler warning.
1424 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1425 (solib_address): Declare new function.
1426
1427 2002-11-22 Andreas Schwab <schwab@suse.de>
1428
1429 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1430 and FPS registers.
1431
1432 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1433
1434 * maint.c (_initialize_maint_cmds): Fix typo. From
1435 Francesco Potorti` <pot@gnu.org>.
1436
1437 2002-11-21 Andrew Cagney <cagney@redhat.com>
1438
1439 * mips-tdep.c (mips_dump_tdep): Delete references to
1440 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1441 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1442 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1443 * printcmd.c (build_address_symbolic): Delete calls to
1444 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1445 (address_info): Ditto.
1446 Fix PR gdb/773.
1447
1448 2002-11-19 Klee Dienes <kdienes@apple.com>
1449 Adam Fedor <fedor@gnu.org>
1450
1451 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1452 the ability to explicitly specify the quote characters and word
1453 break characters; if NULL is specified for either, use the old
1454 behavior of using the characters used by the completer.
1455 (skip_chars): New function. Convenience wrapper around
1456 skip_quoted_chars to provide the original skip_chars behavior.
1457 * completer.h (skip_quoted_chars): Add prototype.
1458
1459 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1460
1461 Problems reported by Paul Eggert.
1462 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1463
1464 2002-11-19 Andreas Schwab <schwab@suse.de>
1465
1466 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1467 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1468 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1469 (m68k_linux_frame_saved_pc): Move to ...
1470 * m68klinux-tdep.c: ... here. New file.
1471 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1472 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1473
1474 2002-11-19 Adam Fedor <fedor@gnu.org>
1475
1476 * objc-exp.y: Revert to old skip_quoted usage.
1477
1478 2002-11-19 Adam Fedor <fedor@gnu.org>
1479
1480 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1481 (objc_lang_h): Define.
1482 (YYFILES): Add objc-exp.tab.c.
1483 (local-maintainer-clean): Remove objc-exp.tab.c.
1484 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1485
1486 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1487
1488 * p-exp.y (typecast rule): Add automatic dereference of
1489 pascal classes if needed.
1490 (THIS): Set current_type.
1491 Automatically dereference pascal classes.
1492 (typebase rule): Add ^typebase recognition.
1493
1494 2002-11-18 Adam Fedor <fedor@gnu.org>
1495
1496 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1497 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1498 (op_name): Handle OP_OBJC_SELF.
1499 * Makefile.in (expprint.o): Add additional depends.
1500
1501 2002-11-18 Adam Fedor <fedor@gnu.org>
1502
1503 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1504 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1505 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1506 * objc-exp.y: Likewise.
1507
1508 2002-11-18 Adam Fedor <fedor@gnu.org>
1509
1510 * gdb/parser-defs.h: (struct objc_class_str): New structure
1511 for parsing ObjC classes.
1512
1513 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1514
1515 * stack.c (frame_relative_level): Copy function from here ...
1516 * frame.c (frame_relative_level): ...to here.
1517
1518 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1519
1520 * frame.h (enum frame_type): Define.
1521 (get_frame_type): Declare.
1522 (struct frame_info): Add field `type'. Delete field
1523 signal_handler_caller.
1524 (deprecated_set_frame_signal_handler_caller): Declare.
1525 * frame.c (get_frame_type): New function.
1526 (deprecated_set_frame_type): New function.
1527 (create_new_frame): Set the frame's type.
1528 (get_prev_frame): Similar.
1529 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1530 * s390-tdep.c: Ditto.
1531 * m68klinux-nat.c: Ditto.
1532 * ns32k-tdep.c: Ditto.
1533 * x86-64-linux-tdep.c: Ditto.
1534 * vax-tdep.c: Ditto.
1535 * rs6000-tdep.c: Ditto.
1536 * ppc-linux-tdep.c: Ditto.
1537 * i386-interix-tdep.c: Ditto.
1538 * mips-tdep.c: Ditto.
1539 * m68k-tdep.c: Ditto.
1540 * hppa-tdep.c: Ditto.
1541 * ia64-tdep.c: Ditto.
1542 * cris-tdep.c: Ditto.
1543 * arm-tdep.c: Ditto.
1544 * alpha-tdep.c: Ditto.
1545 * i386-tdep.c: Ditto.
1546 * stack.c: Ditto.
1547 * ada-lang.c: Ditto.
1548 * blockframe.c: Update.
1549 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1550 deprecated_set_frame_type instead of signal_handler_caller.
1551 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1552 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1553 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1554
1555 2002-11-18 Klee Dienes <kdienes@apple.com>
1556
1557 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1558
1559 2002-11-18 Klee Dienes <kdienes@apple.com>
1560
1561 * buildsym.c (pop_context): Add comment.
1562
1563 2002-11-18 Klee Dienes <kdienes@apple.com>
1564
1565 * buildsym.h (pop_context): Convert to function, defined in
1566 buildsym.c.
1567 * buildsym.c: Include gdb_assert.h.
1568 (pop_context): Implement as C function. Add check for stack
1569 underflow.
1570 * dbxread.c (process_one_symbol): Complain and stop processing
1571 that symbol if we are already at the top of the context stack for
1572 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1573 when processing N_RBRAC.
1574
1575 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1576
1577 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1578 define.
1579 (struct target_waitstatus): Add opaque definition.
1580 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1581 * exec.c (init_exec_ops): Likewise.
1582 * fork-child.c (clone_and_follow_inferior): Remove.
1583 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1584 * inferior.h (clone_and_follow_inferior): Remove prototype.
1585 * infrun.c (follow_fork_mode_both): Remove.
1586 (follow_fork_mode_kind_names): Remove commented out "both".
1587 (follow_inferior_fork): Remove follow_fork_mode_both support.
1588 * inftarg.c (child_clone_and_follow_inferior): Remove.
1589 (child_post_follow_inferior_by_clone): Remove.
1590 (init_child_ops): Don't set to_clone_and_follow_inferior
1591 or to_post_follow_inferior_by_clone.
1592 * target.c (default_clone_and_follow_inferior): Remove.
1593 (cleanup_target): Don't set to_clone_and_follow_inferior
1594 or to_post_follow_inferior_by_clone.
1595 (find_default_clone_and_follow_inferior): Remove.
1596 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1597 (debug_to_clone_and_follow_inferior): Remove.
1598 (debug_to_post_follow_inferior_by_clone): Remove.
1599 (setup_target_debug): Don't set to_clone_and_follow_inferior
1600 or to_post_follow_inferior_by_clone.
1601 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1602 and to_post_follow_inferior_by_clone.
1603 (child_clone_and_follow_inferior): Remove prototype.
1604 (child_post_follow_inferior_by_clone): Remove prototype.
1605 (target_clone_and_follow_inferior): Remove macro.
1606 (target_post_follow_inferior_by_clone): Remove macro.
1607 (find_default_clone_and_follow_inferior): Remove prototype.
1608
1609 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1612 inferior_has_vforked, and inferior_has_execd instead of
1613 target_has_forked, target_has_vforked, and target_has_execd.
1614 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1615 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1616 (CHILD_WAIT): Define.
1617 (child_wait): Add prototype.
1618 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1619 Add prototype.
1620 (hpux_has_vforked): Likewise, from child_has_vforked.
1621 (hpux_has_execd): Likewise, from child_has_execd.
1622 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1623 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1624 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1625 and hpux_has_syscall_event instead of the target hooks.
1626 * infrun.c (inferior_has_forked, inferior_has_vforked)
1627 (inferior_has_execd): New functions.
1628 * inftarg.c (not_same_real_pid): Remove.
1629 (child_wait): Remove references to not_same_real_pid,
1630 target_has_forked, target_has_vforked, target_has_execd,
1631 and target_has_syscall_event.
1632 (child_has_forked, child_has_vforked, child_has_execd)
1633 (child_has_syscall_event): Remove.
1634 (init_child_ops): Remove references to child_has_forked,
1635 child_has_vforked, child_has_execd, and child_has_syscall_event.
1636 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1637 (hpux_has_vforked): Likewise, from child_has_vforked.
1638 (hpux_has_execd): Likewise, from child_has_execd.
1639 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1640 * target.c (cleanup_target): Remove references to
1641 to_has_forked, to_has_vforked, to_has_execd, and
1642 to_has_syscall_event.
1643 (update_current_target): Likewise.
1644 (setup_target_debug): Likewise.
1645 (debug_to_has_forked): Remove.
1646 (debug_to_has_vforked): Remove.
1647 (debug_to_has_execd): Remove.
1648 (debug_to_has_syscall_event): Remove.
1649 * target.h (struct target_ops): Remove to_has_forked.
1650 to_has_vforked, to_has_execd, and to_has_syscall_event.
1651 (child_has_forked, child_has_vforked, child_has_execd)
1652 (child_has_syscall_event): Remove prototypes.
1653 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1654 prototypes.
1655 (target_has_forked, target_has_vforked, target_has_execd)
1656 (target_has_syscall_event): Remove macros.
1657
1658 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1659
1660 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1661 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1662 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1663 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1664 * target.c (cleanup_target): Remove reference to
1665 to_can_follow_vfork_prior_to_exec.
1666 (update_current_target): Likewise.
1667 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1668 (setup_target_debug): Remove reference to
1669 to_can_follow_vfork_prior_to_exec.
1670 * target.h (struct target_ops): Remove
1671 to_can_follow_vfork_prior_to_exec.
1672 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1673 (target_can_follow_vfork_prior_to_exec): Remove definition.
1674 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1675 define.
1676 * infrun.c (follow_vfork_when_exec): Remove.
1677 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1678 (follow_exec): Likewise.
1679 (handle_inferior_event): Likewise.
1680 (keep_going): Likewise.
1681
1682 2002-11-15 Andrew Cagney <cagney@redhat.com>
1683
1684 * frame.c (generic_unwind_get_saved_register): Make static.
1685 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1686 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1687 defaults to generic_unwind_get_saved_register.
1688 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1689 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1690 * frv-tdep.c (frv_gdbarch_init): Ditto.
1691 * i386-tdep.c (i386_gdbarch_init): Ditto.
1692 * s390-tdep.c (s390_gdbarch_init): Ditto.
1693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1694 * v850-tdep.c (v850_gdbarch_init): Ditto.
1695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1696 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1697 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1698
1699 2002-11-15 Andrew Cagney <cagney@redhat.com>
1700
1701 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1702 i386-tdep.c.
1703
1704 2002-11-15 Andrew Cagney <cagney@redhat.com>
1705
1706 * frame.h (sigtramp_saved_pc): Delete declaration.
1707 * blockframe.c (sigtramp_saved_pc): Delete function.
1708 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1709 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1710 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1711 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1712
1713 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1714
1715 * frame.c (frame_pc_unwind): New function.
1716 (frame_saved_regs_pc_unwind): New function.
1717 (frame_register_unwind): Pass unwind_cache instead of
1718 register_unwind_cache.
1719 (set_unwind_by_pc): Add unwind_pc parameter, set.
1720 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1721 (get_prev_frame): Ditto.
1722 * frame.h (frame_pc_unwind_ftype): Declare.
1723 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1724 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1725 (frame_pc_unwind): Declare.
1726 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1727 (struct dummy_frame): Add comment mentioning that values are for
1728 previous frame.
1729 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1730 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1731 (generic_file_frame_chain_valid): Ditto.
1732 * stack.c (frame_info): Ditto.
1733
1734 2002-11-15 David Carlton <carlton@math.stanford.edu>
1735
1736 * linespec.c (locate_first_half): New function.
1737 (decode_line_1): Move code into locate_first_half.
1738
1739 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1740
1741 * complaints.h: Add comment explaining how to eliminate a
1742 deprecated_complain call.
1743 * complaints.h: Fix spelling errors.
1744
1745 2002-11-15 David Carlton <carlton@math.stanford.edu>
1746
1747 * printcmd.c: Remove #include "disasm.h".
1748
1749 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1750
1751 * frame.h: Move the most relevant interface functions to the start
1752 of the file.
1753
1754 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1755
1756 * regcache.h (deprecated_registers): Rename registers.
1757 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1758 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1759 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1760 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1761 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1762 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1763 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1764 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1765 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1766 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1767 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1768 * v850ice.c: Update.
1769
1770 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1771
1772 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1773 NULL buffer.
1774
1775 2002-11-13 Andrew Cagney <cagney@redhat.com>
1776
1777 * regcache.h (deprecated_read_register_bytes): Rename
1778 read_register_bytes.
1779 (deprecated_write_register_bytes): Rename write_register_bytes.
1780 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1781 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1782 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1783 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1784 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1785 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1786 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1787 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1788 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1789 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1790 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1791 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1792 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1793 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1794
1795 2002-11-13 Jim Blandy <jimb@redhat.com>
1796
1797 * findvar.c (read_var_value): Doc fix.
1798
1799 2002-11-13 Andrew Cagney <cagney@redhat.com>
1800
1801 * regcache.c (struct regcache): Replace passthough_p with
1802 readonly_p.
1803 (regcache_xmalloc): Initialize readonly_p.
1804 (build_regcache): Initialize readonly_p.
1805 (regcache_save): New function.
1806 (regcache_restore): New function.
1807 (regcache_cpy): Re-implement using regcache_save and
1808 regcache_restore.
1809 (regcache_raw_read): Update.
1810 (regcache_cooked_read): When a read-only cache, checked for cached
1811 pseudo register values.
1812 (regcache_raw_write): Assert that the cache is not read-only.
1813 Remove code handling a non-passthrough cache.
1814 * regcache.h (regcache_save): Declare.
1815 (regcache_restore): Declare.
1816
1817 2002-11-13 Andrew Cagney <cagney@redhat.com>
1818
1819 * regcache.c (struct regcache_descr): Add fields
1820 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1821 (init_legacy_regcache_descr): Compute the size of a cooked
1822 register cache and then assign that to sizeof_raw_registers. Set
1823 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1824 (init_legacy_regcache_descr): Ditto.
1825
1826 2002-11-13 Andrew Cagney <cagney@redhat.com>
1827
1828 * regcache.c (register_buffer): Move to near start of file, update
1829 description.
1830 (regcache_raw_read): Use.
1831 (regcache_raw_write): Use.
1832 (struct regcache): Rename raw_registers to registers and
1833 raw_register_valid_p to register_valid_p.
1834 (regcache_xmalloc): Update.
1835 (regcache_xfree): Update.
1836 (register_buffer): Update.
1837 (regcache_cpy): Update.
1838 (regcache_cpy_no_passthrough): Update.
1839 (regcache_valid_p): Update.
1840 (deprecated_grub_regcache_for_registers): Update.
1841 (deprecated_grub_regcache_for_register_valid): Update.
1842 (set_register_cached): Update.
1843 (regcache_raw_write): Update.
1844
1845 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1846
1847 * p-exp.y (name_not_typename): Use copy_name to
1848 set current_type variable for fields of THIS.
1849
1850 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1851
1852 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1853 * monitor.c (init_base_monitor_ops): Likewise.
1854 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1855 * remote-array.c (init_array_ops): Likewise.
1856 * remote-e7000.c (init_e7000_ops): Likewise.
1857 * remote-es.c (init_es1800_ops): Likewise.
1858 (init_es1800_child_ops): Likewise.
1859 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1860 * remote-sim.c (init_gdbsim_ops): Likewise.
1861 * remote-st.c (init_st2000_ops): Likewise.
1862 * sol-thread.c (init_sol_core_ops): Likewise.
1863 (init_sol_thread_ops): Likewise.
1864 * v850ice.c (init_850ice_ops): Likewise.
1865 * win32-nat.c (init_child_ops): Likewise.
1866 * wince.c (init_child_ops): Likewise.
1867
1868 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1869
1870 * utils.c (gdb_realpath): Make rp a constant pointer.
1871
1872 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1873
1874 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1875 a constant buffer; cannonicalize_file_name(); realpath() with a
1876 pathconf() defined buffer, xstrdup().
1877
1878 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1879
1880 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1881 to hang2.C; hang3.c to hang3.C.
1882
1883 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1884
1885 * findvar.c (read_var_value): Reenable TLS code.
1886
1887 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1888 Jim Blandy <jimb@redhat.com>
1889
1890 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1891 * target.c (update_current_target): Add
1892 to_get_thread_local_address.
1893 * target.h (to_get_thread_local_address): Export.
1894 (target_get_thread_local_address): Define.
1895 (target_get_thread_local_address_p): Define.
1896 * thread-db.c: Include solib-svr4.h.
1897 (td_thr_tls_get_addr_p): Define.
1898 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1899 (thread_db_get_thread_local_address): New function.
1900 (init_thread_db_ops): Initialize to_get_thread_local_address.
1901 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1902 * configure: Regenerate.
1903 * config.in: Regenerate.
1904
1905 2002-11-11 David Carlton <carlton@math.stanford.edu>
1906
1907 * linespec.c (set_flags): New function.
1908 (decode_line_1): Move code into set_flags.
1909
1910 2002-11-11 David Carlton <carlton@math.stanford.edu>
1911
1912 * linespec.c (decode_line_1): Move chunks of code to separate
1913 functions.
1914 (initialize_defaults): New function.
1915 (decode_indirect): New function.
1916
1917 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1918
1919 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1920 instead of void_code_ptr.
1921 (sigtramp_saved_pc): Ditto.
1922
1923 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1924 i386_fp_regnum_p.
1925
1926 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1927
1928 * gdbtypes.h (struct main_type): Move artificial flag out of
1929 loc. New member of ``struct field'' named static_kind. Reduce
1930 overloaded meaning of bitsize.
1931 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1932 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1933 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1934
1935 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1936 new fields.
1937 (template_to_fixed_record_type, template_to_static_fixed_type)
1938 (to_record_with_fixed_variant_part): Likewise.
1939 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1940 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1941 * dwarfread.c (struct_type, enum_type): Likewise.
1942 * hpread.c (hpread_read_enum_type)
1943 (hpread_read_function_type, hpread_read_doc_function_type)
1944 (hpread_read_struct_type): Likewise.
1945 * mdebugread.c (parse_symbol): Likewise.
1946
1947 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1948
1949 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1950 * stack.c (print_frame_info_base): Update.
1951 (print_frame_info_base, frame_info): Update.
1952 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1953 (sparc_frame_saved_pc): Update.
1954 * ada-lang.c (find_printable_frame): Update.
1955 * breakpoint.c (deprecated_frame_in_dummy): Update.
1956
1957 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1958
1959 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1960 defined.
1961 (regmap): Extend to cover all registers.
1962 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1963 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1964 definitions.
1965 (fetch_register, sore_register): Simplify.
1966 (old_fetch_inferior_registers, old_store_inferior_registers):
1967 Remove functions.
1968 (cannot_fetch_register, cannot_store_register): Change
1969 implementation to use regmap array to decide which registers
1970 cannot be fetched/stored. This removes $orig_eax from the
1971 registers that cannot be fetched/stored.
1972 (fetch_inferior_registers): Call fetch_register directly instead
1973 of calling old_fetch_inferior_registers.
1974 (store_inferior_registers): Call store_register directly instead
1975 of calling old_store_inferior_registers.
1976 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1977 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1978 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1979
1980 2002-11-09 Klee Dienes <kdienes@apple.com>
1981
1982 * i387-tdep.c (i387_supply_register): When called with NULL as a
1983 buffer, mark the register as not provided (to mirror the behavior
1984 of supply_register).
1985 (i387_supply_fxsave): Ditto.
1986 (i387_supply_fsave): Ditto (inherits the behavior from
1987 i387_supply_register).
1988
1989 2002-11-09 Klee Dienes <kdienes@apple.com>
1990
1991 * blockframe.c (sigtramp_saved_pc): Use
1992 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1993 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1994 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1995
1996 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1997
1998 * frame.c (get_prev_frame): Test prev_p to identify a previously
1999 unwound frame. Initialize prev_p.
2000 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2001 comment.
2002
2003 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2004
2005 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2006 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2007 more comments. Zap dead code.
2008
2009 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2010
2011 * infcmd.c (print_vector_info, print_float_info): Move code that
2012 checks whether the target has any registers and whether there is a
2013 selected frame up, such that it is also used if a target provides
2014 multi-arch definitions of these functions.
2015
2016 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2017
2018 * Makefile.in (DESTDIR): Define.
2019 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2020 prefix.
2021
2022 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2023 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2024
2025 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2026
2027 * i386-linux-tdep.c: Include "reggroups.h".
2028 (i386_linux_register_reggroup_p): New function.
2029 (i386_linux_init_abi): Set register_reggroup_p to
2030 i386_linux_register_reggroup_p.
2031 * i386-tdep.h (i386_register_reggroup_p): Declare.
2032 * i386-tdep.c: Include "reggroups.h".
2033 (i386_init_reggroups): New function.
2034 (i386_add_reggroups): New function.
2035 (i386_register_reggroup_p): New function.
2036 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2037 (_initialize_i386_tdep): Call i386_init_reggroups.
2038 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2039 specific reggroups.
2040
2041 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2042
2043 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2044 request that's available in *BSD.
2045
2046 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2047
2048 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2049 FDOFF_REGNUM.
2050
2051 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2052
2053 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2054 * dummy-frame.c (find_dummy_frame): Rename
2055 generic_find_dummy_frame, make static. Return the dummy frame
2056 instead of the regcache.
2057 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2058 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2059 (dummy_frame_register_unwind): Rename
2060 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2061 * dummy-frame.h (dummy_frame_register_unwind): Rename
2062 generic_call_dummy_register_unwind.
2063
2064 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2065
2066 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2067 except the inclusion of "i386/tm-i386.h", to...
2068 * config/i386/nm-i386v42mp.h: ...here.
2069 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2070
2071 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2072
2073 * Makefile.in (frame.o): Update dependencies.
2074 * blockframe.c (current_frame, frame_obstack_alloc)
2075 (frame_saved_regs_zalloc, get_current_frame)
2076 (set_current_frame, create_new_frame)
2077 (set_unwind_by_pc, get_next_frame)
2078 (flush_cached_frames, reinit_frame_cache)
2079 (frame_saved_regs_register_unwind)
2080 (deprecated_generic_get_saved_register)
2081 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2082 (_initialize_blockframe): Move frame code from here...
2083 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2084 "annotate.h" and "dummy-frame.h".
2085 (_initialize_frame): New function.
2086
2087 2002-11-08 Jim Blandy <jimb@redhat.com>
2088
2089 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2090 when we finish a function a context.
2091 * buildsym.h (outermost_context_p): New macro.
2092 (Bug analyzed by David Edelsohn.)
2093
2094 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2095
2096 * blockframe.c: Include "dummy-frame.h".
2097 (struct dummy_frame, dummy_frame_stack)
2098 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2099 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2100 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2101 (generic_save_call_dummy_addr, generic_pop_current_frame)
2102 (generic_pop_dummy_frame, generic_fix_call_dummy)
2103 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2104 dummy frame code from here...
2105 * dummy-frame.c: ...to here. New file.
2106 * dummy-frame.h: New file.
2107 (generic_call_dummy_register_unwind): Declare.
2108 (generic_find_dummy_frame): Declare.
2109 * Makefile.in (SFILES): Add dummy-frame.c.
2110 (dummy-frame.o): Specify dependencies.
2111 (dummy_frame_h): Define.
2112 (COMMON_OBS): Add dummy-frame.o.
2113 (blockframe.o): Update dependencies.
2114
2115 2002-11-08 Jim Blandy <jimb@redhat.com>
2116
2117 * dwarf2read.c (read_func_scope): Restore local_symbols and
2118 param_symbols after we finish the function context. (Based on a
2119 patch from David Edelsohn.)
2120
2121 2002-11-08 David Carlton <carlton@math.stanford.edu>
2122
2123 * linespec.c (symbol_found): New function.
2124 (minsym_found): New function.
2125 (decode_line_1): Separate out some code into separate functions.
2126
2127 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2128
2129 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2130 the benefit of the interix target.
2131 * i386-tdep.h (i386_frameless_signal_p): Declare.
2132
2133 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2134
2135 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2136 declaration that snuck in from change below.
2137
2138 2002-11-06 Andrew Cagney <cagney@redhat.com>
2139
2140 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2141 all callers.
2142 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2143 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2144 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2145 (i386_mxcsr_regnum_p): new function. Use instead of
2146 MXCSR_REGNUM_P.
2147 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2148 (i386_sse_regnum_p): Declare.
2149 (i386_mxcsr_regnum_p): Declare.
2150 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2151 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2152 (IS_FP_REGNUM): Update definition.
2153 (IS_FPU_CTRL_REGNUM): Update definition..
2154 (IS_SSE_REGNUM): Update definition..
2155 * i386v-nat.c (register_u_addr): Update.
2156 * go32-nat.c (fetch_register): Update.
2157 (store_register): Update.
2158
2159 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2160
2161 Preparation work to convert the hppa targets to multiarch partial.
2162
2163 * hppa-tdep.c: Add new functions replacing macro bodies from
2164 config/pa/tm-hppa.h. These function will be used to initialize
2165 the gdbarch structure. Import some comments from tm-hppa.h,
2166 and place them where appropriate, to avoid loosing them when
2167 we cleanup this file.
2168 (hppa_reg_struct_has_addr): New function.
2169 (hppa_inner_than): New function.
2170 (hppa_stack_align): New function.
2171 (hppa_pc_requires_run_before_use): New function.
2172 (hppa_instruction_nullified): New function.
2173 (hppa_register_byte): New function.
2174 (hppa_register_virtual_type): New function.
2175 (hppa_store_struct_return): New function.
2176 (hppa_cannot_store_register): New function.
2177 (hppa_frame_args_address): New function.
2178 (hppa_frame_locals_address): New function.
2179 (hppa_smash_text_address): New function.
2180 (hppa_coerce_float_to_double): New function. Requires the inclusion
2181 of "language.h".
2182
2183 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2184
2185 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2186 gdbarch-eligible macro to a call to the new associated function
2187 created in hppa-tdep.c.
2188 (INNER_THAN): Likewise.
2189 (STACK_ALIGN): Likewise.
2190 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2191 (INSTRUCTION_NULLIFIED): Likewise.
2192 (REGISTER_BYTE): Likewise.
2193 (REGISTER_VIRTUAL_TYPE): Likewise.
2194 (STORE_STRUCT_RETURN): Likewise.
2195 (CANNOT_STORE_REGISTER): Likewise.
2196 (FRAME_ARGS_ADDRESS): Likewise.
2197 (FRAME_LOCALS_ADDRESS): Likewise.
2198 (SMASH_TEXT_ADDRESS): Likewise.
2199 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2200 (ABOUT_TO_RETURN): Delete, as no longer used.
2201
2202 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2203
2204 * printcmd.c (disassemble_command): Remove obsolete function.
2205 (_initialize_printcmd): Do not create disassemble command here.
2206 * cli/cli-cmds.c (disassemble_command): New function. Implements
2207 disassemble command.
2208 (init_cli_cmds): Create disassemble command here instead.
2209
2210 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2211
2212 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2213
2214 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2215
2216 * regcache.h (regcache_cooked_read_using_offset_hack)
2217 (regcache_cooked_write_using_offset_hack): Delete declarations.
2218 (register_changed): Delete declaration.
2219 * regcache.c (regcache_cooked_read_using_offset_hack)
2220 (regcache_cooked_write_using_offset_hack): Delete functions.
2221 (cooked_xfer_using_offset_hack): Delete function.
2222 (register_changed): Delete function.
2223
2224 2002-11-07 Jim Blandy <jimb@redhat.com>
2225
2226 * macroscope.c: #include "complaints.h".
2227 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2228 but not in the macro table.
2229 * Makefile.in (macroscope.o): Record dependency.
2230
2231 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2232
2233 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2234
2235 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2236
2237 * regcache.c (deprecated_registers_fetched): Update.
2238 * regcache.h (deprecated_registers_fetched): Rename
2239 registers_fetched.
2240 * remote-vxsparc.c (vx_read_register): Update.
2241 * remote-vxmips.c (vx_read_register): Update.
2242 * remote-vx68.c (vx_read_register): Update.
2243 * irix5-nat.c (fetch_core_registers): Update.
2244 * mipsm3-nat.c (fetch_inferior_registers): Update.
2245 * sun3-nat.c (fetch_inferior_registers): Update.
2246 * symm-nat.c (fetch_inferior_registers): Update.
2247 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2248 (fetch_core_registers): Update.
2249 (fetch_kcore_registers): Update.
2250 * mips-nat.c (fetch_inferior_registers): Update.
2251 * corelow.c (get_core_registers): Update.
2252 * a68v-nat.c (fetch_inferior_registers): Update.
2253
2254 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2255
2256 Put in place the framework necessary for multiarching the hppa targets.
2257 * hppa-tdep.c (hppa_gdbarch_init): New function.
2258 (hppa_dump_tdep): New function.
2259 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2260 tdep structure dumper.
2261 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2262 until the multi-arching conversion has partially been completed.
2263
2264 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2265
2266 * valops.c (value_assign): Merge lval_register case into
2267 lval_reg_frame_relative. Use frame_register and
2268 regcache_cooked_write instead of get_saved_register and
2269 write_register_bytes. After flushing the register cache, try to
2270 re-select the selected frame.
2271
2272 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2273
2274 * regcache.h (deprecated_register_valid): Rename register_valid.
2275 * regcache.c: Update.
2276 * ia64-aix-nat.c: Update.
2277 * i386gnu-nat.c: Update.
2278 * alpha-nat.c: Update.
2279 * sparc-nat.c: Update.
2280 * lynx-nat.c: Update.
2281 * remote-mips.c: Update.
2282
2283 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2284
2285 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2286 to end of file, to be more consistent with the pratice followed
2287 by other targets.
2288
2289 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2290
2291 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2292 (print_float_info): Print registers in float_reggroup.
2293 (print_vector_info): Print registers in vector_reggroup.
2294 (default_print_registers_info): When all, print registers in
2295 all_reggroup. Otherwize, print registers in general_reggroup.
2296 (registers_info): Rewrite. Add support for register groups.
2297 Eliminate a goto.
2298
2299 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2300
2301 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2302 ages.
2303 (symtab_symbol_info): Remove eons old ifdeffed out code.
2304 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2305 command.
2306
2307 2002-11-06 Theodore A. Roth <troth@openavr.org>
2308
2309 * c-exp.y: Add missing semi-colons.
2310 * f-exp.y: Add missing semi-colons.
2311 * m2-exp.y: Add missing semi-colons.
2312 * p-exp.y: Add missing semi-colons.
2313 Add empty action to start rule to avoid a type clash error when
2314 building with bison >= 1.50.
2315
2316 2002-11-06 Jim Blandy <jimb@redhat.com>
2317
2318 * macrotab.h (struct macro_source_file): Doc fix.
2319
2320 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2321
2322 * varobj.c (child_exists, cplus_number_of_children): Change
2323 STREQ macro references to strcmp.
2324 (cplus_name_of_child): Change code to handle the fact that
2325 fields are not necessarily contiguous with regards to their
2326 access control. This is a fix for PR gdb/792.
2327
2328 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2329
2330 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2331 * gdbarch.h, gdbarch.c: Regnerate.
2332 * frame.h (frame_register): Declare.
2333 * frame.c (frame_register): New function.
2334 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2335 GET_SAVED_REGISTER, otherwize call
2336 generic_unwind_get_saved_register.
2337 (frame_register_read): Use frame_register instead of
2338 get_saved_register.
2339
2340 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2341
2342 From Jim Ingham <jingham@apple.com>:
2343 * event-top.c (gdb_disable_readline): New function.
2344 (_initialize_event_loop): Move comment.
2345
2346 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2347
2348 * event-loop.c (start_event_loop): Add comment.
2349 Update copyright.
2350
2351 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2352
2353 * infcmd.c (default_print_registers_info): Do not call
2354 PRINT_REGISTER_HOOK.
2355
2356 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2357
2358 * sparc-tdep.c (sparc_print_register_hook): Make static.
2359 (sparc_print_registers_info): New function.
2360 (sparc_do_registers_info): New function.
2361 (sparclet_print_registers_info): New function.
2362 (sparclet_do_registers_info): New function.
2363 (do_sparc_print_registers_info): New function.
2364 (sparc_print_registers): New static function, clone of infcmd.c's
2365 default_print_registers_info.
2366 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2367 (sparclet_do_registers_info): Declare.
2368 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2369 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2370 Re-define.
2371 (sparc_do_registers_info): Declare.
2372 (PRINT_REGISTER_HOOK): Delete macro.
2373 (sparc_print_register_hook): Delete declaration.
2374
2375 2002-11-05 David Carlton <carlton@math.stanford.edu>
2376
2377 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2378 functions.
2379 (lookup_symbol_aux_local): New function.
2380 (lookup_symbol_aux_symtabs): New function.
2381 (lookup_symbol_aux_psymtabs): New function.
2382
2383 2002-11-05 David Carlton <carlton@math.stanford.edu>
2384
2385 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2386 previous values of 'objfile' and 'block'.
2387
2388 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2389
2390 * values.c (value_change_enclosing_type): Set
2391 enclosing_type field correctly also for the case where
2392 more memory needs to be allocated.
2393
2394 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2395
2396 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2397 of puts_filtered.
2398
2399 * i387-tdep.c (i387_print_float_info): Replace calls to
2400 register_read and deprecated_read_register_gen with calls to
2401 frame_register_read, and make the necessary adjustments to the
2402 surrounding code.
2403
2404 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2405
2406 * gdbarch.sh (register_reggroup_p): Allow default value.
2407 * gdbarch.h, gdbarch.c: Regenerate.
2408
2409 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2410
2411 * regcache.h: Add coment indicating replacements for deprecated
2412 functions.
2413
2414 2002-11-02 Andrew Cagney <cagney@redhat.com>
2415
2416 * reggroups.h, reggroups.c: New files.
2417 * regcache.c: Include "reggroups.h".
2418 (enum regcache_dump_what): Add `regcache_dump_groups'.
2419 (regcache_dump): Contract size of the "Type" column. When
2420 specified, dump the register's groups.
2421 (maintenance_print_register_groups): New function.
2422 (_initialize_regcache): Add command `maint print register-groups'.
2423 * Makefile.in (COMMON_OBS): Add reggroups.o
2424 (SFILES): Add reggroups.c.
2425 (reggroups_h): Define.
2426 (regcache.o, gdbarch.o): Update dependencies.
2427 (reggroups.o): Specify dependencies.
2428 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2429 Add opaque declaration for `struct reggroup' in generated .h file.
2430 Include "reggroups.h" in generated .c file.
2431 gdbarch.h, gdbarch.c: Re-generate.
2432
2433 2002-11-02 Andrew Cagney <cagney@redhat.com>
2434
2435 * regcache.h (deprecated_read_register_gen): Rename
2436 read_register_gen.
2437 (deprecated_write_register_gen): Rename write_register_gen.
2438 * i387-tdep.c: Update.
2439 * x86-64-linux-nat.c: Update
2440 * wince.c: Update.
2441 * thread-db.c: Update.
2442 * win32-nat.c: Update.
2443 * mips-tdep.c: Update.
2444 * d10v-tdep.c: Update.
2445 * cris-tdep.c: Update.
2446 * remote-sim.c: Update.
2447 * remote-rdi.c: Update.
2448 * remote-rdp.c: Update.
2449 * frame.c: Update.
2450 * target.c: Update.
2451 * blockframe.c: Update.
2452 * x86-64-tdep.c: Update.
2453 * xstormy16-tdep.c: Update.
2454 * sh-tdep.c: Update.
2455 * s390-tdep.c: Update.
2456 * rs6000-tdep.c: Update.
2457 * sparc-tdep.c: Update.
2458 * i386-tdep.c: Update.
2459 * dwarf2cfi.c: Update.
2460 * regcache.c: Update.
2461
2462 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2463
2464 New interix-specific files:
2465 * config/i386/nm-interix.h: New file.
2466 * config/i386/interix.mh: New file.
2467 * config/i386/interix.mt: New file.
2468 * i386-interix-nat.c: New file.
2469 * i386-interix-tdep.c: New file.
2470
2471 2002-11-01 Andrew Cagney <cagney@redhat.com>
2472
2473 * frame.h (deprecated_generic_get_saved_register): Rename
2474 generic_get_saved_register.
2475 * blockframe.c (deprecated_generic_get_saved_register): Update.
2476 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2477 (xstormy16_frame_saved_register): Update.
2478 * sh-tdep.c (sh_gdbarch_init): Update.
2479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2480 * ia64-tdep.c (ia64_get_saved_register): Update.
2481 * cris-tdep.c (cris_gdbarch_init): Update.
2482 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2483 * arm-tdep.c (arm_gdbarch_init): Update.
2484
2485 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2488
2489 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2490
2491 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2492 trampolines in sigaction.
2493
2494 2002-10-31 Andrew Cagney <cagney@redhat.com>
2495
2496 * h8300-tdep.c: Include "gdb_assert.h".
2497 (h8300_print_register): Add gdbarch, file and frame parameters.
2498 Use frame_read_unsigned_register to read the register's value.
2499 Use fprintf_filtered to display output.
2500 (h8300_print_registers_info): Replace h8300_do_registers_info.
2501 (h8300_gdbarch_init): Set print_registers_info.
2502
2503 2002-10-31 Andrew Cagney <cagney@redhat.com>
2504
2505 * frame.c (frame_read_unsigned_register): New function.
2506 (frame_read_signed_register): New function.
2507 * frame.h (frame_read_unsigned_register): Declare.
2508 (frame_read_signed_register): Declare.
2509
2510 2002-10-31 Andrew Cagney <cagney@redhat.com>
2511
2512 * h8500-tdep.c (h8500_print_registers_info): New static function,
2513 clone of infcmd.c's default_print_registers_info.
2514 (h8500_do_registers_info): New funtion.
2515 (h8500_print_register_hook): Rename print_register_hook, make
2516 static.
2517
2518 * config/h8500/tm-h8500.h: Update copyright.
2519 (DEPRECATED_DO_REGISTERS_INFO): Define.
2520 (h8500_do_registers_info: Declare.
2521 (PRINT_REGISTER_HOOK): Delete macro.
2522 (print_register_hook): Delete function.
2523
2524 2002-10-31 Andrew Cagney <cagney@redhat.com>
2525
2526 * z8k-tdep.c (z8k_print_register_hook): Make static.
2527 (z8k_print_registers_info): New static function, clone of
2528 infcmd.c's default_print_registers_info.
2529 (z8k_do_registers_info): New function. Wrap
2530 z8k_print_registers_info.
2531 * config/z8k/tm-z8k.h: Update copyright.
2532 (PRINT_REGISTER_HOOK): Delete macro.
2533 (z8k_print_register_hook): Delete declaration.
2534 (DEPRECATED_DO_REGISTERS_INFO): Define.
2535 (z8k_do_registers_info): Declare.
2536
2537 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2538
2539 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2540 as this is already provided by value.h, and was actually causing
2541 a compilation error because of a conflict in parameter type
2542 declaration due to a missing const keyword.
2543 (low_text_segment_addres): Fix a compilation warning.
2544
2545 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2546
2547 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2548 registers without a name.
2549 (mips_linux_cannot_store_register): Don't store registers without
2550 a name.
2551
2552 2002-10-28 David Carlton <carlton@math.stanford.edu>
2553
2554 * symtab.c (find_addr_symbol): Delete. (It was already commented
2555 out.)
2556 * symtab.h: Delete prototype for find_addr_symbol.
2557
2558 2002-10-26 Andrew Cagney <cagney@redhat.com>
2559
2560 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2561 DO_REGISTERS_INFO.
2562 gdbarch.h, gdbarch.c: Re-generate.
2563 * infcmd.c (default_print_registers_info): Update reference.
2564 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2565 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2566 * sh-tdep.c (sh_gdbarch_init): Ditto.
2567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2569
2570 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2571
2572 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2573 cfi_init_extra_frame_info.
2574 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2575 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2576
2577 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2578 target where necessary. Add more comments and remove the ones
2579 that don't provide any useful information.
2580
2581 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2582 deprecated_read_register_dummy with
2583 frame_unwind_unsigned_register.
2584
2585 * i386-tdep.c (i386_extract_struct_value_address): Use
2586 regcache_raw_read_unsigned instead of
2587 regcache_cooked_read_unsigned since we know that the register
2588 we're reading isn't a pseudo register. Rename variable 'val' into
2589 the more descriptive 'addr'.
2590
2591 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2592 (x86_64_push_return_address): Add comment.
2593 (x86_64_pop_frame): Make static.
2594 (examine_argument): Clarify comment.
2595 (x86_64_skip_prologue): Make prolog_expact variable static.
2596
2597 * dwarf2cfi.c: Fix some formatting problems.
2598 (context_cpy, read_encoded_pointer): Clarify comments.
2599
2600 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2601 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2602 i386 target back into x86_64_gdbarch_init. Add some comments and
2603 remove meaningless ones.
2604
2605 2002-10-25 Andrew Cagney <cagney@redhat.com>
2606
2607 * complaints.h (struct deprecated_complaint): Rename `struct
2608 complaint'.
2609 * complaints.c (complain): Update.
2610 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2611 incorrect comment indicating that "symfile.h" was being included
2612 for the `struct complaint' definition.
2613 * remote-vx.c: Update.
2614 * objc-lang.c: Update.
2615 * xcoffread.c: Update.
2616 * hpread.c: Update.
2617 * mdebugread.c: Update.
2618 * stabsread.c: Update.
2619 * dwarf2read.c: Update.
2620 * dwarfread.c: Update.
2621 * elfread.c: Update.
2622 * coffread.c: Update.
2623 * stabsread.h: Update.
2624 * dbxread.c: Update.
2625 * buildsym.c: Update.
2626 * gdbtypes.c: Update.
2627 * macrotab.c: Update.
2628
2629 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2630
2631 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2632 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2633 (x86_64_init_abi): ...new function.
2634
2635 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2636 * i386v-nat.c: Include "i386-tdep.h".
2637
2638 2002-10-25 Andrew Cagney <cagney@redhat.com>
2639
2640 * gdbtypes.c (address_space_name_to_int): Update.
2641 (address_space_int_to_name): Update.
2642 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2643 multi-arch predicate.
2644 (address_class_name_to_type_flags): Ditto.
2645 * gdbarch.h, gdbarch.c: Re-generate.
2646
2647 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2648
2649 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2650
2651 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2652
2653 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2654
2655 * symtab.h (INIT_SAL): Delete macro.
2656 (init_sal): Export.
2657 * symtab.c (init_sal): New function.
2658
2659 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2660 to init_sal function call.
2661 (find_sal_from_funcs_and_line): Ditto.
2662 (all_sals_for_line): Ditto.
2663 * breakpoint.c (create_internal_breakpoint): Ditto.
2664 (create_fork_vfork_event_catchpoint): Ditto.
2665 (create_exec_event_catchpoint): Ditto.
2666 (parse_breakpoint_sals): Ditto.
2667 (watch_command_1): Ditto.
2668 (handle_gnu_4_16_catch_command): Ditto.
2669 (clear_command): Ditto.
2670 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2671 * infcmd.c (run_stack_dummy): Ditto.
2672 * infrun.c (process_event_stop_test): Ditto.
2673 (check_sigtramp2): Ditto.
2674 (step_over_function): Ditto.
2675 * linespec.c (decode_line_2): Ditto.
2676 (decode_line_1): Ditto.
2677 * source.c (line_info): Ditto.
2678 * symtab.c (find_pc_sect_line): Ditto.
2679
2680 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2681
2682 * dwarf2cfi.c (struct context)
2683 (struct context_reg): Moved to dwarf2cfi.h
2684 (context_alloc, frame_state_alloc, context_cpy):
2685 Made extern instead of static, removed prototypes.
2686 * dwarf2cfi.h (struct context)
2687 (struct context_reg): New, moved from dwarf2cfi.c
2688 (context_alloc, frame_state_alloc, context_cpy):
2689 New prototypes.
2690 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2691 Changed from static to extern.
2692 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2693 (LINUX_SIGCONTEXT_FP_OFFSET)
2694 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2695 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2696 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2697 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2698 set_gdbarch_*() calls now use x86-64 specific functions
2699 instead of DWARF2 CFI ones.
2700 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2701 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2702 (x86_64_init_extra_frame_info): New prototypes.
2703
2704 2002-10-23 David Carlton <carlton@math.stanford.edu>
2705
2706 * linespec.c: #include "parser-defs.h".
2707 Delete prototype for find_template_name_end.
2708 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2709
2710 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2711
2712 * NEWS: add recent mi fixes.
2713 * varobj.c (struct varobj): Add new "updated" flag.
2714 (new_variable): Default "updated" flag to 0.
2715 (varobj_set_value): Set "updated" flag to 1 if value
2716 changes.
2717 (varobj_update): Check varobj "updated" flag before
2718 comparing old and refreshed values. Fix for
2719 PR gdb/702.
2720
2721 2002-10-23 David Carlton <carlton@math.stanford.edu>
2722
2723 * parse.c (parse_exp_1): Use BLOCK_START.
2724 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2725 SYMBOL_BLOCK_VALUE.
2726 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2727
2728 2002-10-23 David Carlton <carlton@math.stanford.edu>
2729
2730 * symtab.c: Delete cplusplus_hint.
2731 Delete prototype for find_template_name_end.
2732
2733 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2734
2735 * symtab.h: Update comment.
2736
2737 2002-10-23 Michael Snyder <msnyder@redhat.com>
2738
2739 * printcmd.c (address_info): Restore quotes in output.
2740 * valops.c (value_of_local): Restore quotes in error message.
2741
2742 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2743
2744 * symtab.c (symbol_demangled_name): New function.
2745 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2746 turning most of it into a function.
2747 (symbol_demangled_name): Export.
2748
2749 2002-10-23 Michael Snyder <msnyder@redhat.com>
2750
2751 * valops.c (value_of_local): Restore quotes in error message.
2752
2753 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2754
2755 * symtab.c (symbol_init_language_specific): New function.
2756 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2757 turning most of it into a function.
2758 (symbol_init_language_specific): Export.
2759
2760 2002-10-23 David Carlton <carlton@math.stanford.edu>
2761
2762 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2763 (dwarf_attr_name): Ditto.
2764 (dwarf_type_encoding_name): Ditto.
2765 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2766 (process_die): Handle DW_TAG_namespace,
2767 DW_TAG_imported_declaration, DW_TAG_imported_module.
2768 (read_namespace): New function.
2769
2770 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2771
2772 * configure.in: Define NEW_PROC_API on Interix too.
2773 * configure: Regenerate.
2774
2775 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2776
2777 * configure: Regenerate using the proper version of autoconf.
2778
2779 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2780
2781 * findvar.c (read_var_value): Temporarily disable TLS code, until
2782 complete TLS support is added.
2783
2784 2002-10-21 Jim Blandy <jimb@redhat.com>
2785 Elena Zannoni <ezannoni@redhat.com>
2786
2787 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2788 for thread local storage locations.
2789 (struct symbol): Add objfile field.
2790 (SYMBOL_OBJFILE): Define.
2791 * dwarf2read.c (is_thread_local): New static variable.
2792 (new_symbol): If variable is in thread local fill in address class
2793 and objfile appropriately.
2794 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2795 stack operation.
2796 * printcmd.c (address_info): Print the information for thread
2797 local storage variable.
2798 * findvar.c (read_var_value): In case of thread local variable,
2799 defer to the target vector code to compute address.
2800
2801 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2802
2803 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2804 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2805
2806 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2807
2808 * symtab.h (address_class): Rename
2809 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2810 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2811 * printcmd.c (address_info): Ditto.
2812 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2813
2814 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2815
2816 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2817 DBREG_DRX macro to acces debug registers.
2818
2819 * Makefile.in (i386obsd-tdep.o): New target.
2820
2821 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2822 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2823
2824 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2825 * config/i386/obsd.mt: New file.
2826 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2827 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2828 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2829 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2830 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2831 * i386obsd-tdep.c: New file.
2832
2833 2002-10-19 Adam Fedor <fedor@gnu.org>
2834
2835 * objc-exp.y (name_not_typename): Fix invalid comment.
2836
2837 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2838
2839 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2840 to allocate partial syms and macro byte caches.
2841
2842 2002-10-18 David Carlton <carlton@math.stanford.edu>
2843
2844 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2845
2846 2002-10-18 Adam Fedor <fedor@gnu.org>
2847
2848 * stabsread.c (find_name_end): New function.
2849 (define_symbol): Use it.
2850
2851 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2852
2853 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2854 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2855 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2856 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2857
2858 2002-10-17 David Carlton <carlton@math.stanford.edu>
2859
2860 * symfile.h: Add opaque declaration for struct obstack.
2861 Declare obsavestring to take a const char *.
2862 * symfile.c (obsavestring): Make first argument a const char *.
2863
2864 2002-10-16 Adam Fedor <fedor@gnu.org>
2865
2866 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2867 names when matching breakpoints in current file.
2868
2869 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2870
2871 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2872 (read_tag_pointer_type): Add address class support.
2873 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2874 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2875 New methods.
2876 * gdbarch.h, gdbarch.c: Regenerate.
2877 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2878 (make_type_with_address_space, recursive_type_dump): Add address
2879 class support.
2880 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2881 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2882 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2883
2884 2002-10-16 Klee Dienes <kdienes@apple.com>
2885
2886 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2887 to get the last character of a char[] buffer, not
2888 name[sizeof(vptr_name)-1].
2889
2890 2002-10-14 Adam Fedor <fedor@gnu.org>
2891
2892 * symtab.h: New objc_specific struct.
2893 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2894 (SYMBOL_DEMANGLED_NAME): Likewise.
2895
2896 2002-10-14 Adam Fedor <fedor@gnu.org>
2897
2898 * symfile.c (init_filename_language_table): Add ObjC file extension.
2899
2900 2002-10-14 Adam Fedor <fedor@gnu.org>
2901
2902 * utils.c (puts_filtered_tabular): New function.
2903 (fprintf_symbol_filtered): Get ObjC demangled name.
2904 * defs.h (puts_filtered_tabular): Declared.
2905
2906 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2907
2908 * c-lang.h (c_type_print_varspec_prefix): Delete.
2909 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2910 ``need_post_space'' parameter. Adjust all callers.
2911
2912 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2913
2914 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2915 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2916 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2917 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2918
2919 2002-10-13 Adam Fedor <fedor@gnu.org>
2920
2921 * source.c (print_source_lines): Update comments.
2922
2923 2002-10-13 Adam Fedor <fedor@gnu.org>
2924
2925 * valops.c (value_of_local): New function.
2926 (value_of_this): Use it.
2927 * value.h (value_of_local): Declared.
2928
2929 2002-10-13 Adam Fedor <fedor@gnu.org>
2930
2931 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2932 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2933
2934 2002-10-12 Adam Fedor <fedor@gnu.org>
2935
2936 * language.c (binop_result_type): Add language_objc to case.
2937 (integral_type): Likewise.
2938 (character_type): Likewise.
2939 (string_type): Likewise.
2940 (boolean_type): Likewise.
2941 (structured_type): Likewise.
2942 (binop_type_check): Likewise.
2943
2944 2002-10-11 Adam Fedor <fedor@gnu.org>
2945
2946 * printcmd.c (address_info): Print 'self' for ObjC.
2947
2948 2002-10-11 Adam Fedor <fedor@gnu.org>
2949
2950 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2951 OP_SELF.
2952
2953 2002-10-11 Adam Fedor <fedor@gnu.org>
2954
2955 * language.h (CAST_IS_CONVERSION): Add language_objc.
2956
2957 2002-10-11 Adam Fedor <fedor@gnu.org>
2958
2959 * defs.h (enum language): Add language_objc.
2960
2961 2002-10-11 Klee Dienes <kdienes@apple.com>
2962
2963 * corefile.c (read_memory_typed_address): New function.
2964 * gdbcore.h (read_memory_typed_address): Add prototype.
2965 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2966 to read a value destined for a CORE_ADDR, not read_memory_integer.
2967 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2968 (f77_get_dynamic_lowerbound): Ditto.
2969
2970 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2971
2972 * utils.c (string_to_core_addr): After turning string into
2973 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2974 which will do necessary sign-extension, etc.
2975
2976 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2977
2978 * c-exp.y (THIS): Delete token and grammar rule.
2979 (yylex): Don't return THIS.
2980 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2981 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2982 * demangle.c (cplus_markers): Update comment. Put '$'
2983 first. Remove CPLUS_MARKER.
2984 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2985 * jv-exp.y (THIS): Delete token and grammar rule.
2986 (yylex): Don't return THIS.
2987 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2988 * objc-exp.y (THIS): Delete token and grammar rule.
2989 (yylex): Don't return THIS.
2990 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2991 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2992 (read_member_functions): Likewise for opname.
2993 (read_tilde_fields): Use is_cplus_marker.
2994
2995 * defs.h (CPLUS_MARKER): Don't define.
2996 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2997 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2998 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2999 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3000 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3001
3002 * config/i386/tm-i386v4.h: Delete file.
3003 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3004 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3005 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3006 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3007 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3008 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3009 * config/i386/i386v4.mt (TM_FILE): Likewise.
3010 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3011
3012 2002-10-10 Marko Mlinar <markom@opencores.org>
3013
3014 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3015 accidentially not commited 2002-10-09
3016 * gdbarch.h, gdbarch.c: Re-generate.
3017
3018 2002-10-09 Marko Mlinar <markom@opencores.org>
3019
3020 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3021 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3022 * gdbarch.h, gdbarch.c: Re-generate.
3023
3024 2002-10-08 Petr Sorfa <petrs@caldera.com>
3025
3026 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3027
3028 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3029 so we can work on more than one compilation unit at a time. This
3030 helps prepare GDB to handle inter-CU die references.
3031 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3032 the code to be defined before struct comp_unit_head.
3033 (comp_unit_head): Added new members - offset, cu_head,
3034 begin_die, next and dwarf2_abbrevs.
3035 (dwarf2_abbrevs): Removed single static var; now member of
3036 struct comp_unit_head.
3037 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3038 members.
3039 (psymtab_to_symtab_1): Changed to work with the new
3040 struct comp_unit_head.
3041 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3042 constructs the dwarf2_abbrevs[] inside the cu_header.
3043 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3044 dwarf2_abbrev table to clean up.
3045 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3046 handling of dwarf2_abbrevs inside the cu_header.
3047 (read_partial_die): Now supports the call to the new
3048 dwarf2_lookup_abbrev.
3049 (read_full_die): Now supports the call to the new
3050 dwarf2_lookup_abbrev.
3051
3052 2002-10-06 Christopher Faylor <cgf@redhat.com>
3053
3054 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3055 insure that shell variables, such as "transformed_name" are propagated
3056 to later shell statements in rule.
3057
3058 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3059
3060 * config/i386/nm-i386sco.h: Add protection against
3061 multiple-inclusion. Include "i386/nm-i386v.h".
3062 (REGISTER_U_ADDR): Remove define.
3063 (i386_register_u_addr): Remove prototype.
3064
3065 2002-10-04 Michael Snyder <msnyder@redhat.com>
3066
3067 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3068 before treating it as a single-step event.
3069
3070 2002-10-03 Adam Fedor <fedor@gnu.org>
3071
3072 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3073 (objc_demangle): Remove assignment in if statements, Replace
3074 free with xfree.
3075 (add_msglist): Likewise.
3076 (end_msglist): Likewise.
3077 (complare_selectors): Likewise.
3078 (selectors_info): Likewise.
3079 (compare_classes): Likewise.
3080 (classes_info): Likewise.
3081 (print_object_command): Likewise.
3082 (find_objc_msgcall_submethod): Replace PTR with void *.
3083 * objc-lang.h: Remove check for __STDC__.
3084
3085 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3086
3087 * ui-out.h (ui_out_field_fmt_int): New prototype.
3088 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3089 of field width and alignment.
3090 * stack.c (print_frame_info_base): When printing frame level, use
3091 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3092 PR gdb/192
3093
3094 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3095
3096 * MAINTAINERS: Add self to Write After Approval list.
3097
3098 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3099
3100 * infcmd.c (interrupt_target_command_wrapper): Delete.
3101 (interrupt_target_command): Make non static.
3102 (nofp_registers_info): Make static.
3103 * stack.c (return_command_wrapper): Delete.
3104 (return_command): Make non static.
3105
3106 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3107
3108 * event-top.c (gdb_setup_readline): New function. Code moved from
3109 _initialize_event_loop().
3110 (_initialize_event_loop): Call gdb_setup_readline().
3111
3112 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3113
3114 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3115 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3116 * gdbarch.h, gdbarch.c: Re-generate.
3117
3118 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3119
3120 Fix PR gdb/778
3121 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3122 before recursing.
3123 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3124 of fill_in_vptr_fieldno.
3125
3126 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3127
3128 * inferior.h (registers_info, stepi_command, nexti_command,
3129 continue_command, interrupt_target_command): Export from infcmd.c.
3130 * frame.h (args_info, selected_frame_level_changed_hook,
3131 return_command): Export from stack.c.
3132 * v850ice.c (stepi_command, nexti_command, continue_command): use
3133 prototypes from inferior.h.
3134 * tracepoint.c (registers_info, args_info, locals_info): Use
3135 prototypes from frame.h and inferior.h.
3136 * Makefile.in (mi-main.o): Add dependency on frame.h.
3137
3138 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3139
3140 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3141 value in register 3 adjusted by ppc_gp0_regnum.
3142
3143 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3144
3145 2002-10-02 Marko Mlinar <markom@opencores.org>
3146
3147 * MAINTAINERS: Add myself to the Write After Approval list.
3148
3149 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3150
3151 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3152 of the section for the N64 ABI, fixed.
3153
3154 * config/mips/tm-irix6.h: Include solib.h.
3155
3156 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3157
3158 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3159 GNU operators.
3160
3161 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3162
3163 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3164 and that "mi0" syntax has been removed.
3165
3166 2002-09-30 David Carlton <carlton@math.stanford.edu>
3167
3168 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3169 * ppc-sysv-tdep.c: #include "gdb_string.h".
3170 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3171 pacify GCC.
3172
3173 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3174
3175 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3176 "vrsave"'s register number.
3177
3178 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3179
3180 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3181 use frame_unwind_signed_register to obtain the PC.
3182 (mips_frame_chain): Handle a generic dummy frame.
3183 (mips_init_extra_frame_info): When a generic dummy frame, don't
3184 re-compute the frame base.
3185 (mips_pop_frame): Handle generic dummy frames.
3186 (mips_gdbarch_init): When generic dummy frames, set
3187 use_generic_dummy_frames, push_dummy_frame to
3188 generic_push_dummy_frame, pc_in_call_dummy to
3189 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3190 generic_save_dummy_frame_tos.
3191
3192 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3193
3194 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3195 against TOP when TOP was explictly set.
3196 (generic_push_dummy_frame): Set TOP to zero.
3197
3198 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3199
3200 * event-loop.c (start_event_loop): Rename variable 'result' to
3201 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3202
3203 2002-09-30 Keith Seitz <keiths@redhat.com>
3204
3205 * gdb-events.sh (selected_thread_changed): New event.
3206 * gdb-events.c: Regenerated.
3207 * gdb-events.h: Regenerated.
3208
3209 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3210
3211 * MAINTAINERS: Add self to Write After Approval list.
3212
3213 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3214
3215 * disasm.c: New file.
3216 * disasm.h: New file.
3217 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3218 (compare_lines): Ditto.
3219 (dump_insns): Ditto.
3220 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3221 argument.
3222 (do_assembly_only): Ditto.
3223 (do_disassembly): Renamed to gdb_disassembly and moved to
3224 disasm.c. Sdded uiout argument.
3225 * Makefile.in: Add new files. Reorder SFILES list. Update
3226 dependencies. Include libgdb.a later in the insight executable.
3227
3228 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3229
3230 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3231 bfd/elf64-alpha-fbsd.c.
3232
3233 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3234
3235 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3236 i386gnu-tdep.c.
3237
3238 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3239
3240 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3241 __FUNCTION__.
3242 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3243 function name.
3244 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3245 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3246 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3247 (S_msg_sig_post_reply): Ditto.
3248
3249 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3250
3251 * sh-tdep.c (sh_use_struct_convention): Use definition according
3252 to ABI.
3253 (sh_push_arguments): Store in register with correct endianess.
3254 (sh_default_store_return_value): Ditto.
3255 (sh_gdbarch_init): Set sizeof long double to 8.
3256
3257 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3258
3259 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3260 Fix some whitespace problems.
3261
3262 2002-09-27 David Carlton <carlton@math.stanford.edu>
3263
3264 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3265 (mcore-tdep.o): Ditto.
3266 (ns32k-tdep.o): Ditto.
3267 (ns32knbsd-tdep.o): Ditto.
3268 (sh3-rom.o): Ditto.
3269 (vax-tdep.o): Ditto.
3270 * cris-tdep.c: #include "gdb_string.h"
3271 * mcore-tdep.c: Ditto.
3272 * ns32k-tdep.c: Ditto.
3273 * ns32knbsd-tdep.c: Ditto.
3274 * sh3-rom.c: Ditto.
3275 * vax-tdep.c: Ditto.
3276
3277 2002-09-27 David Carlton <carlton@math.stanford.edu>
3278
3279 * config/djgpp/fnchange.lst: Add entries for
3280 gdb/testsuite/gdb.c++/m-static files.
3281
3282 2002-09-27 Jim Wilson <wilson@redhat.com>
3283
3284 * MAINTAINERS: Add myself to the Write After Approval list.
3285
3286 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3287
3288 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3289
3290
3291 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3292
3293 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3294 frame.
3295
3296 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3297
3298 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3299 (rs6000_struct_return_address): Delete variable.
3300 (rs6000_store_struct_return): Update.
3301 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3302 deprecated_extract_struct_value_address.
3303 (rs6000_frame_align): New function.
3304 (rs6000_gdbarch_init): Set frame_align.
3305
3306 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3307
3308 From Grace Sainsbury <graces@redhat.com>:
3309 * Makefile.in (gdbtk-main.o): New target.
3310 (gdb.o): New target.
3311 (main_h): Define.
3312 (main.o): Update dependencies.
3313 (gdb$(EXEEXT)): Add gdb.o.
3314 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3315 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3316 (SUBDIR_GDBTK_CLEAN): Set.
3317 (install-gdbtk): Install the insight binary.
3318 (uninstall-gdbtk): New target.
3319 (all-gdbtk, clean-gdbtk): New rule.
3320 * top.c (use_windows): Default to zero.
3321 * main.c: Include "main.h".
3322 (main): Delete.
3323 (struct captured_main_args): Delete.
3324 (gdb_main): New function.
3325 * main.h: New file.
3326 * gdb.c: New File.
3327
3328 2002-09-25 Andrew Cagney <cagney@redhat.com>
3329
3330 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3331 (frame_map_regnum_to_name): New function.
3332 (frame_map_name_to_regnum): New function.
3333 * frame.h (frame_map_name_to_regnum): Declare.
3334 (frame_map_regnum_to_name): Declare.
3335 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3336 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3337 * parse.c: Do not include "builtin-regs.h".
3338 (target_map_name_to_register): Delete function.
3339 (write_dollar_variable): Use frame_map_name_to_regnum.
3340 * parser-defs.h (target_map_name_to_register): Delete declaration.
3341 * expprint.c: Include "frame.h".
3342 (print_subexp): Use frame_map_regnum_to_name.
3343 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3344 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3345
3346 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3347
3348 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3349 wasn't saved, and the next innermost frame is a dummy, return the
3350 dummy frame's link register.
3351
3352 2002-09-24 Jim Blandy <jimb@redhat.com>
3353
3354 Fix from Paul Breed:
3355 * main.c (captured_main): Add a `break' after the case for 'b'.
3356
3357 2002-09-24 Keith Seitz <keiths@redhat.com>
3358
3359 * varobj.c (c_type_of_child): Use get_target_type instead
3360 of TYPE_TARGET_TYPE.
3361
3362 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3363
3364 * source.c (get_current_or_default_source_symtab_and_line): Remove
3365 function.
3366 (set_default_source_symtab_and_line): New function. Attempts to
3367 determine a source file to list lines from if one is not currently
3368 defined.
3369 (get_current_source_symtab_and_line): Initialize sal.pc and
3370 sal.end fields.
3371 (set_current_source_symtab_and_line): Mark argument as const.
3372 * source.h: Update declarations and comments.
3373 * linespec.c (decode_line_1): Replace call to removed routine above.
3374 * stack.c (print_frame_info_base): Ditto.
3375 * cli/cli-cmds.c (edit_command): Ditto.
3376 (list_command): Ditto.
3377
3378 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3379
3380 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3381 sal.pc and sal.end fields.
3382 (get_current_or_default_source_symtab_and_line): Ditto.
3383 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3384 so we do not cause a new source symtab to be searched for (reverting an
3385 unintentional change from the 2002-09-20 patch).
3386 * scm-lang.c (scm_unpac): Ditto.
3387
3388 2002-09-21 Andrew Cagney <cagney@redhat.com>
3389
3390 * complaints.c (symfile_explanations): Remove new-line from
3391 ``isolated_message''.
3392 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3393 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3394
3395 2002-09-20 Nick Clifton <nickc@redhat.com>
3396
3397 * NEWS: Announce that V850EA ISA is no longer supported.
3398 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3399
3400 2002-09-20 David Carlton <carlton@math.stanford.edu>
3401
3402 * Makefile.in (c-lang.o): Correct dependencies.
3403 (utils.o): Gather dependencies.
3404 (charset.o): Move.
3405 * c-lang.c: #include "gdb_string.h"
3406
3407 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3408
3409 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3410 * cli/cli-cmds.c (list_command): New function. Implements the new
3411 cli edit command.
3412 (_init_cli_cmds): Add new command definition.
3413 * gdb.1: Document edit command.
3414 * doc/gdb.texinfo: Document edit command.
3415
3416 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3417
3418 * source.c: Make global variables current_source_symtab and
3419 current_source_line static.
3420 (list_command): Moved to cli/cli-cmds.c.
3421 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3422 (get_first_line_listed): New accessor function.
3423 (get_lines_to_list): New accessor function.
3424 (get_current_source_symtab_and_line): New function. Retrieves the
3425 position in the source code that we consider current.
3426 (get_current_or_default_source_symtab_and_line): New function.
3427 Like the above but attempts to determine a default position if one
3428 is not currently defined.
3429 (set_current_source_symtab_and_line): New function. Sets the source
3430 code position considered current and returns the previously set one.
3431 (clear_current_source_symtab_and_line): Reset stored information about
3432 a current source line.
3433 (_initialize_source): Remove registration for the "list" command and
3434 its alias.
3435 * source.h: Add declarations for the new functions above.
3436 * symtab.h: Remove declarations for the global variables mentioned
3437 above.
3438 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3439 obtain current source line.
3440 * linespec.c (decode_line_1): Ditto.
3441 * macroscope.c (default_macro_scope): Ditto.
3442 * scm-lang.c (scm_unpac): Ditto.
3443 * stack.c (print_frame_info_base): Ditto.
3444 * symfile.c (clear_symtab_users): Ditto.
3445 * symtab.c (decode_line_spec): Ditto.
3446 * cli/cli-cmds.c (list_command): Moved here from source.c.
3447 (ambiguous_line_spec): Moved here from source.c.
3448 (_init_cli_cmds): Add definition for "list" and its alias.
3449 * Makefile.in: Update dependencies.
3450
3451 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3452
3453 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3454 with what gcc thinks is correct.
3455
3456 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3457
3458 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3459 multiple register push instruction.
3460
3461 2002-09-19 Jim Blandy <jimb@redhat.com>
3462
3463 Add support for distinct host and target character sets.
3464 * charset.c, charset.h: New files.
3465 * c-exp.y: #include "charset.h".
3466 (yylex): Convert character and string literals to the target
3467 character set, before returning them as the semantic value of the
3468 token.
3469 * c-lang.c: #include "charset.h".
3470 (c_emit_char): Use charset-specific methods to recognize
3471 characters with backslash escape forms, to decide which characters
3472 to print literally and which to print using numeric escape
3473 sequences, and to convert target characters to host characters
3474 before printing.
3475 * utils.c: #include "charset.h".
3476 (no_control_char_error): New function.
3477 (parse_escape): Use charset-specific methods to recognize
3478 backslash escapes, parse `control character' notation, and convert
3479 characters from the host character set to the target character set.
3480 * configure.in: Set the default host character set.
3481 Check where to find iconv, and what its argument types might be.
3482 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3483 * Makefile.in (SFILES): List charset.c.
3484 (COMMON_OBS): List charset.o.
3485 (charset.o): New rule.
3486 (charset_h): New header dependency variable.
3487 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3488 (LIBICONV): New variable, set by configure.
3489 (CLIBS): Include $(LIBICONV) here.
3490 * aclocal.m4, config.in, configure: Regenerated.
3491
3492 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3493
3494 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3495 bison 1.35 warning.
3496
3497 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3498
3499 * gdb_mbuild.sh: New file.
3500
3501 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3502
3503 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3504
3505 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3506
3507 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3508 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3509 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3510 valops.c, value.h: Revert previous change.
3511
3512 2002-09-18 Michael Snyder <msnyder@redhat.com>
3513
3514 Preliminary support for Objective-C:
3515 * defs.h (language_objc): New enum value.
3516 (puts_filtered_tabular): Declaration only, exported from utils.c.
3517 (skip_quoted): Delete, declared in completer.h.
3518 * c-exp.y: Include completer.h.
3519 * p-exp.y: Ditto.
3520 * jv-exp.y: Ditto.
3521 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3522 New operator enum values.
3523 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3524 * language.c (binop_result_type): Handle language_objc case.
3525 (integral_type, character_type, string_type, boolean_type,
3526 structured_type, binop_type_check): Ditto.
3527 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3528 (struct objc_specific): Add to general_symbol_info.
3529 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3530 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3531 * parser-defs.h (struct objc_class_str): New struct type.
3532 (start_msglist, end_msglist, add_msglist): Declaration only,
3533 exported from objc-lang.c.
3534 * value.h (value_of_local, value_nsstring,
3535 call_function_by_hand_expecting_type): Exported from valops.c.
3536 * valops.c (find_function_addr): Export.
3537 (call_function_by_hand_expecting_type): New function.
3538 (value_of_local): New function.
3539 * symfile.c (init_filename_language_table): Add ".m" extension
3540 for Objective-C.
3541 * utils.c (puts_filtered_tabular): New function.
3542 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3543 (set/show demangle): Extend help-string to refer to ObjC.
3544 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3545 * stabsread.c (symbol_reference_defined): Objective-C symbols
3546 may contain colons: make allowances when scanning stabs strings
3547 for colons.
3548 (objc_find_colon): New function.
3549 * printcmd.c (address_info): If language == objc then print
3550 "self" instead of "this".
3551 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3552 OP_NSSTRING, and OP_SELF.
3553 (prefixify_subexp): Ditto.
3554 * source.c (print_source_lines): Mention objc in comment.
3555 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3556 method names.
3557
3558 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3559
3560 * complaints.h: Update copyright.
3561 (struct complaints): Declare.
3562 (struct complaint): Make `message' constant.
3563 (internal_complaint): Declare.
3564 (complaint): Declare.
3565 (complaint_root): Delete declaration.
3566 (symfile_complaints): Delete declaration.
3567 (struct complaints): Add opaque declaration.
3568 (clear_complaints): Add a complaints parameter.
3569 * complaints.c: Update copyright.
3570 (enum complaint_series): Define.
3571 (complaint_root): Delete.
3572 (struct complaints): Define.
3573 (complaint_sentinel, symfile_complaint_book): New variables.
3574 (symfile_explanations, symfile_complaints): New variables.
3575 New variables.
3576 (get_complaints): New function.
3577 (vcomplaint): New function.
3578 (complaint): New function.
3579 (internal_complaint): New function.
3580 (complain): Call vcomplain with symfile_complaint.
3581 (clear_complaints): Rewrite.
3582 (_initialize_complaints): Use add_setshow_command.
3583 * Makefile.in (complaints.o): Update dependencies.
3584 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3585 to call to clear_complaints.
3586 (new_symfile_objfile, reread_symbols): Ditto.
3587 (oldsyms_complaint): Delete.
3588 (empty_symtab_complaint, unknown_option_complaint): Delete.
3589 (free_named_symtabs): Use complaint instead of complain.
3590
3591 2002-09-18 Michael Snyder <msnyder@redhat.com>
3592
3593 Contributed by Apple Computer, Inc. Merged with current sources
3594 by Adam Fedor <fedor@doc.com> [cagney].
3595
3596 * objc-lang.c: First clean-up round: comments, indentation.
3597 * objc-lang.h: Ditto.
3598 * objc-lang.y: Ditto.
3599
3600 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3601
3602 * maint.c (maintenance_internal_error): Print the parameter as the
3603 error message.
3604 (maintenance_internal_warning): New function.
3605 (_initialize_maint_cmds): Add command `maint internal-warning'.
3606
3607 * defs.h (internal_warning, internal_vwarning): Declare.
3608 * utils.c (struct internal_problem): Define.
3609 (internal_vproblem): New function.
3610 (internal_warning): New function.
3611 (internal_vwarning): New function.
3612 (internal_warning_problem, internal_error_problem): New variables.
3613 (internal_verror): Just call internal_vproblem.
3614
3615 2002-09-18 Michael Snyder <msnyder@redhat.com>
3616
3617 * objc-lang.c: New file, support for Objective-C.
3618 Preliminary check-in, not yet integrated into gdb.
3619 * objc-lang.h: New file.
3620 * objc-exp.y: New file.
3621
3622 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3623
3624 * infrun.c (signal_stop_update): Convert definition to ISO C.
3625 (signal_print_update): Ditto.
3626 (signal_pass_update): Ditto.
3627 * inflow.c (terminal_save_ours): Ditto.
3628
3629 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3630 comments.
3631
3632 * config/djgpp/fnchange.lst: Handle name clashes between
3633 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3634 bfd/coff-tic80.c.
3635
3636 * i386-linux-tdep.h: Fix tipo.
3637
3638 2002-09-18 Adam Fedor <fedor@gnu.org>
3639
3640 * MAINTAINERS: Add myself to the Write After Approval list.
3641
3642 2002-09-18 Jim Blandy <jimb@redhat.com>
3643
3644 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3645 texthigh and textlow to reader-specific structs caused
3646 objfile_relocate to miss them. This is fixable, but the work that
3647 the change was supposed to prepare GDB for never got done anyway.
3648
3649 2002-09-18 David Carlton <carlton@math.stanford.edu>
3650
3651 * MAINTAINERS: Alphabetize Write After Approval list.
3652
3653 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3654
3655 Fix PR gdb/709
3656 * values.c (value_static_field): Call read_var_value.
3657
3658 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3659
3660 * valops.c (hand_function_call): Align the initial stack pointer
3661 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3662 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3663 return value.
3664 * mips-tdep.c (mips_frame_align): New function.
3665 (mips_gdbarch_init): Set frame_align.
3666 * gdbarch.sh (FRAME_ALIGN): New method.
3667 * gdbarch.h, gdbarch.c: Re-generate.
3668
3669 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3670
3671 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3672 registers.
3673
3674 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3675
3676 * NEWS: Mention that MIPS $fp behavior changed.
3677 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3678 reference to FP_REGNUM.
3679 (mipsnbsd_cannot_store_register): Ditto.
3680 * mips-linux-nat.c: Update copyright.
3681 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3682 (mips_linux_cannot_store_register): Ditto.
3683 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3684 * config/mips/tm-mips.h: Update copyright.
3685 (FP_REGNUM): Delete macro.
3686 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3687 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3688 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3689 (mips_r3041_reg_names, mips_r3051_reg_names)
3690 (mips_r3081_reg_names): Replace "fp" with "".
3691 Fix PR gdb/480.
3692
3693 2002-09-17 Theodore A. Roth <troth@verinet.com>
3694
3695 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3696 generic_read_register_dummy() (PR gdb/703).
3697 (avr_push_return_address): #if 0 out unused vars.
3698 (avr_gdbarch_init): Enable use of avr_push_return_address().
3699
3700 2002-09-17 Michael Snyder <msnyder@redhat.com>
3701
3702 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3703 RTE will take care of it.
3704
3705 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3706
3707 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3708 invalid, return SP_REGNUM.
3709
3710 2002-09-17 Michael Snyder <msnyder@redhat.com>
3711
3712 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3713 point registers without sign extension.
3714
3715 2002-09-17 Andrew Cagney <cagney@redhat.com>
3716
3717 * blockframe.c (deprecated_read_register_dummy): Rename
3718 generic_read_register_dummy.
3719 * frame.c (frame_unwind_signed_register): New function.
3720 (frame_unwind_unsigned_register): New function.
3721 * frame.h (frame_unwind_signed_register): Declare.
3722 (frame_unwind_unsigned_register): Declare.
3723 (deprecated_read_register_dummy): Rename
3724 generic_read_register_dummy.
3725
3726 * h8300-tdep.c (h8300_frame_chain): Update.
3727 (h8300_frame_saved_pc): Update.
3728 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3729 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3730 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3731 (s390_frame_chain): Update.
3732 * v850-tdep.c (v850_find_callers_reg): Update.
3733 (v850_frame_saved_pc): Update.
3734 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3735 (m32r_find_callers_reg): Update.
3736 (m32r_frame_saved_pc): Update.
3737 * sh-tdep.c (sh_find_callers_reg): Update.
3738 (sh64_get_saved_pr): Update.
3739 (sh_init_extra_frame_info): Update.
3740 (sh_init_extra_frame_info): Update.
3741 (sh64_init_extra_frame_info): Update.
3742 (sh64_init_extra_frame_info): Update.
3743 * mcore-tdep.c (mcore_find_callers_reg): Update.
3744 (mcore_frame_saved_pc): Update.
3745 (mcore_init_extra_frame_info): Update.
3746 * i386-tdep.c (i386_frame_saved_pc): Update.
3747 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3748 (ia64_init_extra_frame_info): Update.
3749 (ia64_init_extra_frame_info): Update.
3750 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3751 * cris-tdep.c (cris_init_extra_frame_info): Update.
3752 * avr-tdep.c (avr_frame_chain): Update.
3753 (avr_init_extra_frame_info): Update.
3754 (avr_frame_saved_pc): Update.
3755 * arm-tdep.c (arm_find_callers_reg): Update.
3756 (arm_init_extra_frame_info): Update.
3757 (arm_frame_saved_pc): Update.
3758
3759 2002-09-17 Tom Tromey <tromey@redhat.com>
3760
3761 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3762 is "'".
3763
3764 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3765
3766 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3767 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3768 NEXT_PROLOGUE_INSN.
3769 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3770 NEXT_PROLOGUE_INSN.
3771
3772 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3773
3774 * osfsolib.c: Remove file, replaced by solib-osf.c.
3775 * Makefile.in: Remove compilation rules for osfsolib.c.
3776
3777 2002-09-16 David Carlton <carlton@math.stanford.edu>
3778
3779 * cp-valprint.c (cp_print_class_method): Correct args to
3780 check_stub_method_group.
3781
3782 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3783
3784 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3785 `set architecture'. Unify naming convention of functions.
3786 (h8300_skip_prologue): Improve prologue analysis.
3787 (h8300_push_arguments): Rewritten to more closely match GCC's
3788 bizarre argument-passing behavior, along with the comment describing
3789 said behavior.
3790 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3791 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3792 sim, remote-e7000.c, remote-hms.c and remote.c
3793
3794 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3795
3796 * i386-tdep.c (gdb_print_insn_i386): Removed.
3797 (i386_print_insn): New function.
3798 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3799 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3800 tm_print_insn_info.
3801
3802 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3803
3804 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3805 zero.
3806
3807 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3808
3809 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3810 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3811 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3812
3813 2002-09-13 Christopher Faylor <cgf@redhat.com>
3814
3815 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3816
3817 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3818
3819 * gdbtypes.c (check_stub_method): Make static.
3820 (check_stub_method_group): New function.
3821 * gdbtypes.h: Update prototypes.
3822 * cp-support.c: New file.
3823 * cp-support.h: New file.
3824
3825 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3826 (update_method_name_from_physname): New function.
3827 (read_member_functions): Correct method names for operators
3828 and v3 constructors/destructors. Separate v2 constructors and
3829 destructors.
3830 * Makefile.in (stabsread.o): Update dependencies.
3831 (SFILES): Add cp-support.c.
3832 (COMMON_OBS): Add cp-support.o.
3833 (cp_support_h, cp-support.o): Add.
3834
3835 * cp-valprint.c (cp_print_class_method): Call
3836 check_stub_method_group instead of check_stub_method. Remove
3837 extraneous QUITs.
3838 * p-valprint.c (pascal_object_print_class_method): Likewise.
3839 * valops.c (search_struct_method): Likewise.
3840 (find_method_list, value_struct_elt_for_reference): Likewise.
3841
3842 2002-09-13 Andrew Cagney <cagney@redhat.com>
3843
3844 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3845 * gdbarch.h, gdbarch.c: Regenerate.
3846
3847 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3848
3849 * frame.c (find_saved_register): Delete function.
3850 * frame.h (find_saved_register): Delete declaration.
3851 Fix PR gdb/631.
3852
3853 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3854
3855 * mips-tdep.c (read_next_frame_reg): Re-hack using
3856 frame_register_unwind.
3857
3858 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3859
3860 * mips-tdep.c (mips_get_saved_register): Re-hack using
3861 frame_register_unwind.
3862
3863 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3864
3865 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3866 vector. Will be useful for Interix.
3867 * gdbarch.h, gdbarch.c: Regenerate.
3868
3869 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3870 name of the malloc function by NAME_OF_MALLOC.
3871
3872 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3873
3874 * value.h (find_function_in_inferior): Add const keyword to
3875 one of the parameters. Allows us to invoke this function with
3876 a const char *.
3877 * valops.c (find_function_in_inferior): Likewise.
3878
3879 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3880
3881 * exec.c (xfer_memory): Fix compilation warning with old versions
3882 of GCC.
3883 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3884
3885 2002-09-12 David Carlton <carlton@math.stanford.edu>
3886
3887 * symtab.h: Run through gdb_indent.h.
3888 Add 2002 to Copyright year list.
3889
3890 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3891
3892 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3893 mach constants.
3894 * MAINTAINERS: Add myself to write after approval list.
3895
3896 2002-09-11 J. Brobecker <brobecker@gnat.com>
3897
3898 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3899
3900 2002-09-11 J. Brobecker <brobecker@gnat.com>
3901
3902 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3903 Interix.
3904
3905 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3906
3907 * procfs.c (do_detach): Clear current signal, not just fault.
3908 Corrects problem with breakpoint trap signal leaking to detached
3909 process on Tru64.
3910
3911 2002-09-10 Michael Snyder <msnyder@redhat.com>
3912
3913 * buildsym.c (finish_block): Protect against null pointer.
3914
3915 2002-09-10 Andrew Cagney <cagney@redhat.com>
3916
3917 * infcmd.c (default_print_registers_info): Send all output to
3918 ``file'' instead of ``gdb_stdout''.
3919
3920 2002-09-10 Michael Snyder <msnyder@redhat.com>
3921
3922 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3923 LONGEST, and use signed register read (addresses are sign-
3924 extended for mips).
3925
3926 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3927
3928 * event-loop.c (gdb_do_one_event): Make public.
3929 * event-loop.h (gdb_do_one_event): Declare.
3930
3931 2002-09-10 Jeff Law <law@redhat.com>
3932
3933 * infttrace.c (child_resume): Simplify and rework to avoid
3934 TT_PROC_CONTINUE.
3935
3936 2002-09-09 Fred Fish <fnf@intrinsity.com>
3937
3938 * printcmd.c (print_scalar_formatted): "len" is the number of
3939 target bytes, NOT the number of target bits.
3940
3941 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3942
3943 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3944 * top.c (init_main): Set rl_terminal_name.
3945
3946 2002-09-08 Aidan Skinner <aidan@velvet.net>
3947
3948 * ada-lang.c (ada_array_bound, ada_type_match,
3949 _initialize_ada_language): Fix K&R definitions.
3950 * ada-tasks.c (get_current_task): Fix K&R definitions.
3951 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3952
3953 2002-09-07 Christopher Faylor <cgf@redhat.com>
3954
3955 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3956 Add XP.
3957
3958 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3959
3960 * i386-tdep.c (i386_register_virtual_type,
3961 i386_register_convertible, i386_register_convert_to_virtual,
3962 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3963 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3964 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3965 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3966 Don't set push_arguments twice.
3967
3968 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3969 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3970 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3971 sigtramp_end to NULL.
3972 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3973 defines.
3974 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3975
3976 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3977 whitespace.
3978
3979 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3980 * gdbarch.h, gdbarch.c: Re-generate.
3981 * blockframe.c (find_pc_sect_partial_function): Convert to use
3982 SIGTRAMP_START_P predicate.
3983
3984 2002-09-05 Michael Snyder <msnyder@redhat.com>
3985
3986 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3987 generic_dummy_frame method and old method. Also distinguish
3988 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3989 (arm_extract_return_value): Use new regcache method.
3990
3991 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3992 adjustment that doesn't conform to the ABI.
3993 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3994 saved regcache, not from current regcache.
3995
3996 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3997
3998 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3999 * README: Update.
4000
4001 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4002
4003 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4004 if arm_apcs_32 is false.
4005
4006 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4007
4008 GDB 5.3 branch created.
4009
4010 2002-09-03 Theodore A. Roth <troth@verinet.com>
4011
4012 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4013 generic_unwind_get_saved_register.
4014
4015 2002-09-03 David Carlton <carlton@math.stanford.edu>
4016
4017 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4018 argument (PR gdb/653). Update call to smash_to_method_type.
4019 (read_structure_scope): Update call to dwarf2_add_member_fn.
4020
4021 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4022
4023 * x86-64-linux-tdep.c: Include gdb_string.h
4024 * x86-64-linux-nat.c: Ditto.
4025
4026 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4027
4028 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4029 when YYDEBUG is set to 1.
4030 * c-exp.y: Likewise.
4031 * f-exp.y: Likewise.
4032 * jv-exp.y: Likewise.
4033 * m2-exp.y: Likewise.
4034 * p-exp.y: Likewise.
4035
4036 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4037
4038 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4039 dependency list.
4040 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4041 solib_svr4_fetch_link_map_offsets to
4042 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4043 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4044 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4045 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4046 solib-svr4.o, and solib-legacy.o.
4047 * config/i386/tm-nbsd.h: Include solib.h.
4048
4049 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4050
4051 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4052 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4053 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4054 comment noting that this needs its own target configuration.
4055 * config/i386/nbsd.mt: New file.
4056 * config/i386/nbsdaout.mt: Remove.
4057 * config/i386/nbsdelf.mt: Ditto.
4058 * config/i386/tm-nbsdaout.h: Ditto.
4059
4060 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4061
4062 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4063 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4064 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4065 tdep->sigtramp_end.
4066 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4067 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4068 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4069
4070 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4071
4072 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4073 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4074 * i386-tdep.h (i386bsd_init_abi): New prototype.
4075 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4076 function declaration.
4077 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4078 for NetBSD-a.out or NetBSD-ELF.
4079 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4080 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4081 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4082 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4083 and nbsd-tdep.h.
4084 (i386nbsd_pc_in_sigtramp): New function.
4085 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4086 i386nbsd_pc_in_sigtramp.
4087 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4088 and i386nbsdelf_init_abi OS ABI handlers.
4089 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4090 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4091
4092 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4093
4094 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4095 registers if the target really has them.
4096
4097 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4098
4099 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4100 than nbsd-tdep.h.
4101
4102 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4103
4104 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4105 list.
4106 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4107 (alphanbsd_skip_sigtramp_frame): New functions.
4108 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4109 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4110 to alphanbsd_sigcontext_addr.
4111
4112 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4113
4114 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4115 list.
4116 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4117 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4118 nbsd_pc_in_sigtramp.
4119 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4120 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4121 * nbsd-tdep.c: Include gdb_string.h.
4122 (nbsd_pc_in_sigtramp): New function.
4123 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4124 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4125 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4126 ppcnbsd_pc_in_sigtramp.
4127 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4128 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4129 shnbsd_pc_in_sigtramp.
4130 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4131 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4132 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4133
4134 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4135
4136 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4137 watchpoints to NULL.
4138 (insert_breakpoints): set val field of watchpoints if NULL.
4139
4140
4141 2002-08-29 Jim Blandy <jimb@redhat.com>
4142
4143 * symtab.c (lookup_symbol_aux): In the cases where we find a
4144 minimal symbol of an appropriate name and use its address to
4145 select a symtab to read and search, use `name' (as passed to us)
4146 as the demangled name when searching the symtab's global and
4147 static blocks, not the minsym's name.
4148
4149 2002-08-29 Keith Seitz <keiths@redhat.com>
4150
4151 * stack.c (print_frame_info_base): Always set current_source_symtab
4152 and current_source_line.
4153
4154 2002-08-29 Donn Terry <donnte@microsoft.com>
4155
4156 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4157
4158 2002-08-28 Keith Seitz <keiths@redhat.com>
4159
4160 * stack.c (select_frame): Add FIXME concerning selected-frame
4161 events.
4162 (select_frame_command): Send selected-frame-level-changed
4163 event notification, but only if the level actually changed.
4164 (up_silently_base): Add selected-frame-level-changed event
4165 notification.
4166 (down_silently_base): Likewise.
4167
4168 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4169
4170 * Makefile.in: Update dependencies for all gdb/*.c files.
4171
4172 2002-08-27 Tom Tromey <tromey@redhat.com>
4173
4174 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4175 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4176 Update dependencies.
4177 * i387-tdep.c: Include gdb_string.h.
4178 * osabi.c: Likewise.
4179 * i386-linux-nat.c: Likewise.
4180 * lin-lwp.c: Likewise.
4181 * ax-gdb.c: Likewise.
4182 * signals/signals.c: Likewise.
4183 * jv-valprint.c: Likewise.
4184 * p-lang.c: Likewise.
4185 * c-valprint.c: Likewise.
4186 * cp-abi.c: Likewise.
4187
4188 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4189
4190 * cli/cli-script.h (copy_command_lines): Export.
4191 * breakpoint.c: Include cli/cli-script.h.
4192 * Makefile.in (breakpoint.o): Update dependencies.
4193
4194 2002-08-26 Michael Snyder <msnyder@redhat.com>
4195
4196 * breakpoint.c (insert_breakpoints): Protect all references
4197 to 'process_warning'. Shorten long lines.
4198
4199 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4200
4201 * cli/cli-script.c (copy_command_lines): New function.
4202 * defs.h (copy_command_lines): Export.
4203 * testsuite/gdb.base/commands.exp: New tests for commands
4204 attached to a temporary breakpoint, and for commands that
4205 delete the breakpoint they are attached to.
4206
4207 2002-08-26 Michael Snyder <msnyder@redhat.com>
4208
4209 * breakpoint.c (bpstat_stop_status): Instead of copying the
4210 pointer to the breakpoint commands struct, make a new copy
4211 of the struct and point to that.
4212 (bpstat_clear): Free the commands struct.
4213 (bpstat_clear_actions): Free the commands struct.
4214 (bpstat_do_actions): Free the command actions. Also execute
4215 the local cleanups, instead of deleting them.
4216 (delete_breakpoint): Leave the commands field of the bpstat
4217 chain alone -- it will be freed later.
4218
4219 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4220
4221 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4222 deleted in 2002-08-20 commit. This function is still used by
4223 ppc-linux-nat.c.
4224
4225 2002-08-26 Keith Seitz <keiths@redhat.com>
4226
4227 * gdb-events.sh: Add selected-frame-level-changed event.
4228 * gdb-events.c: Regenerated.
4229 * gdb-events.h: Regenerated.
4230
4231 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4232
4233 Fix PR gdb/393:
4234 * inflow.c (terminal_save_ours): New function to save terminal
4235 settings.
4236 * inferior.h (terminal_save_ours): Declare.
4237 * target.c (debug_to_terminal_save_ours): New function.
4238 (cleanup_target): Defaults to_terminal_save_ours.
4239 (update_current_target): Inherit to_terminal_save_ours.
4240 (setup_target_debug): Set to_terminal_save_ours.
4241 * target.h (target_terminal_save_ours): New to save terminal settings.
4242 (target_ops): New member to_terminal_save_ours.
4243 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4244 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4245 * inftarg.c (init_child_ops): Likewise.
4246 * m3-nat.c (init_m3_ops): Likewise.
4247 * procfs.c (init_procfs_ops): Likewise.
4248 * wince.c (init_child_ops): Likewise.
4249 * win32-nat.c (init_child_ops): Likewise.
4250 * sol-thread.c (init_sol_thread_ops): Likewise.
4251
4252 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4253
4254 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4255 use regcache_* functions.
4256 (i386_gdbarch_init): Set store_return_value instead of
4257 deprecated_store_return_value.
4258
4259 * regcache.c (regcache_raw_write_signed,
4260 regcache_raw_write_unsigned): New functions.
4261 * regcache.h (regcache_raw_write_signed,
4262 regcache_raw_write_unsigned): New prototypes.
4263
4264 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4265
4266 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4267 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4268 source file dependencies. Cleanup corresponding generator rules.
4269
4270 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4271
4272 * regcache.h (register_offset_hack): Declare.
4273 (regcache_cooked_read_using_offset_hack): Declare.
4274 (regcache_cooked_write_using_offset_hack): Declare.
4275
4276 * regcache.c (register_offset_hack): New function.
4277 (regcache_cooked_read_using_offset_hack): New function.
4278 (regcache_cooked_write_using_offset_hack): New function.
4279 (regcache_dump): Check that the registers, according to their
4280 offset, are packed hard against each other.
4281 (cooked_xfer_using_offset_hack): New function.
4282
4283 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4284
4285 * regcache.c (struct regcache_descr): Add field register_type.
4286 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4287 in as a parameter
4288 (init_regcache_descr): Initialize register_type. Pass the descr
4289 to init_legacy_regcache_descr. Use register_type instead of
4290 REGISTER_VIRTUAL_TYPE.
4291 (register_type): New function.
4292 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4293 * regcache.h (register_type): Declare.
4294
4295 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4296
4297 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4298 instead of deprecated_store_return_value. Fix fallout from
4299 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4300
4301 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4302
4303 * regcache.c (max_register_size): New function.
4304 (init_legacy_regcache_descr): Ensure that max_register_size is
4305 large enough for REGISTER_VIRTUAL_SIZE.
4306 * regcache.h (max_register_size): Declare.
4307
4308 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4309
4310 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4311 store_return_value.
4312 (e500_extract_return_value): Change type of valbuf pointer to
4313 void.
4314
4315 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4316
4317 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4318 workaround.
4319
4320 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4321 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4322 long long) to prevent compiler warning on 64-bit systems.
4323
4324 2002-08-23 Andrew Cagney <cagney@redhat.com>
4325
4326 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4327 (DEPRECATED_STORE_RETURN_VALUE): New method.
4328 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4329 * gdbarch.h, gdbarch.c: Re-generate.
4330
4331 * values.c (set_return_value): Pass current_regcache to
4332 STORE_RETURN_VALUE.
4333 * arch-utils.h (legacy_store_return_value): Declare.
4334 * arch-utils.c (legacy_store_return_value): New function.
4335 (legacy_extract_return_value): Update parameters.
4336
4337 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4338 STORE_RETURN_VALUE.
4339 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4340 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4341 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4342 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4343 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4344 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4345 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4346 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4347 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4348 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4349
4350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4351 * i386-tdep.c (i386_extract_return_value): Update.
4352 * arch-utils.c (legacy_extract_return_value): Update.
4353 * frv-tdep.c (frv_gdbarch_init): Update.
4354 * cris-tdep.c (cris_gdbarch_init): Update.
4355 * d10v-tdep.c (d10v_gdbarch_init): Update.
4356 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4357 * m68k-tdep.c (m68k_gdbarch_init): Update.
4358 * mcore-tdep.c (mcore_gdbarch_init): Update.
4359 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4360 * s390-tdep.c (s390_gdbarch_init): Update.
4361 * sparc-tdep.c (sparc_gdbarch_init): Update.
4362 * sh-tdep.c (sh_gdbarch_init): Update.
4363 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4364 * v850-tdep.c (v850_gdbarch_init): Update.
4365 * avr-tdep.c (avr_gdbarch_init): Update.
4366 * ia64-tdep.c (ia64_gdbarch_init): Update.
4367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4368 * vax-tdep.c (vax_gdbarch_init): Update.
4369 * alpha-tdep.c (alpha_gdbarch_init): Update.
4370 * arm-tdep.c (arm_gdbarch_init): Update.
4371 * mips-tdep.c (mips_gdbarch_init): Update.
4372 * i386-tdep.c (i386_gdbarch_init): Update.
4373
4374 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4375
4376 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4377 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4378
4379 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4380
4381 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4382 problems.
4383
4384 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4385
4386 * infrun.c (handle_inferior_event): Move a comment outside of a
4387 function call, in order to avoid indent reformatting this part
4388 of the code in an unreadable way.
4389
4390 2002-08-23 Grace Sainsbury <graces@redhat.com>
4391
4392 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4393 when breakpoints fail. Move general breakpoint error messages to
4394 insert_breakpoints.
4395 * breakpoint.c (insert_breakpoints): Change warnings when
4396 breakpoints are nto inserted to specify the type. Remove call to
4397 memory_error when hardware breakpoints can't be inserted. Remove
4398 multiple calls to warning so all messages are sent to the user at
4399 once.
4400 (delete_breakpoints): Make insert error messsages more explicit.
4401
4402 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4403
4404 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4405 gdbserver/ChangeLog.
4406
4407 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4408
4409 * i386-tdep.c: Include "objfiles.h".
4410 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4411 skip_trampoline_code.
4412 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4413 (CPLUS_MARKER): Define to '.'.
4414
4415 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4416 member.
4417 (linux_corefile_thread_callback): Increase args->num_notes.
4418 (linux_make_note_section): Initialize thread_args.num_notes, and
4419 use it to determine whether notes for any threads were created.
4420
4421 2002-08-23 Donn Terry <donnte@microsoft.com>
4422
4423 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4424 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4425 and PCUNKILL.
4426 (write_with_trace): Conditionalize out the switch branch handling
4427 PCSHOLD if the corresponding macro is not defined. Likewise for
4428 PRSABORT and PRSTOP.
4429 This change will be needed by the Interix port.
4430
4431 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4432
4433 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4434 write_register wherever possible instead of manipulating the
4435 register bytes directly.
4436 Assign VALUE_CONTENTS to a variable and use that.
4437 The GPR numbers are now dependent on the architecture.
4438
4439 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4440
4441 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4442 ev_offset fields.
4443 (skip_prologue): Add support for BookE/e500 instructions.
4444 (e500_extract_return_value): New function.
4445 (frame_get_saved_regs): Add support for saving ev registers and
4446 pseudo gpr's.
4447 (e500_store_return_value): New function.
4448 (rs6000_gdbarch_init): Move up default intializations of
4449 deprecated_extract_return_value and store_return_value. Overwrite
4450 init of store_return_value with e500 specific version.
4451 Set extract_return_value for e500.
4452
4453 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4454
4455 * blockframe.c (generic_call_dummy_register_unwind): Use
4456 regcache_cooked_read to catch cases in which the variable is
4457 stored in a pseudo register.
4458
4459 2002-08-22 Andrew Cagney <cagney@redhat.com>
4460
4461 * NEWS: Mention that the i960 has been made obsolete.
4462 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4463 i960-tdep.c
4464 (remote-nrom.o): Obsolete target.
4465 (remote-nindy.o, i960-tdep.o): Ditto.
4466 * remote-nrom.c: Make file obsolete.
4467 * remote-nindy.c, remote-vx960.c: Ditto.
4468 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4469 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4470 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4471 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4472 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4473 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4474 i960-*-vxworks* obsolete.
4475 * MAINTAINERS: Note that the i960 is obsolete.
4476
4477 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4478
4479 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4480 detach to allow reinitialization.
4481
4482 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4483
4484 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4485 attempt).
4486
4487 2002-08-22 Jim Blandy <jimb@redhat.com>
4488
4489 * coffread.c (coff_symfile_read): Don't try to read the line
4490 number table from disk if the image file doesn't have a symbol
4491 table; we'll never actually look at the info anyway, and Windows
4492 ships DLL's with bogus file offsets for the line number data.
4493
4494 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4495
4496 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4497 an e500 executable.
4498
4499 2002-08-21 Michael Snyder <msnyder@redhat.com>
4500
4501 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4502 (MSYMBOL_SIZE): Replace macro with function.
4503 (DEFAULT_MIPS_TYPE): Delete unused macro.
4504 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4505 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4506
4507 2002-08-21 Jim Blandy <jimb@redhat.com>
4508
4509 * valops.c (value_cast): Simplify and correct logic for doing a
4510 static cast from a pointer to a base class to a pointer to a
4511 derived class.
4512
4513 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4514
4515 * infcmd.c (default_print_registers_info): Replace
4516 do_registers_info.
4517 (registers_info): Use gdbarch_print_registers_info instead of
4518 DO_REGISTERS_INFO.
4519 * inferior.h (default_print_registers_info): Replace
4520 do_registers_info.
4521 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4522 (DO_REGISTERS_INFO): Change to a predicate function.
4523 * gdbarch.h, gdbarch.c: Regenerate.
4524
4525 2002-08-21 Keith Seitz <keiths@redhat.com>
4526
4527 * gdb-events.sh: Add target-changed event.
4528 * gdb-events.c: Regenerated.
4529 * gdb-events.c: Regenerated.
4530 * valops.c (value_assign): Add target-changed event notification
4531 to inlval_register, lval_memory, and lval_reg_frame_relative.
4532
4533 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4534
4535 * NEWS: Add an entry regarding the improvement of the next/step
4536 operation on Alpha Tru64 multi-processor machines.
4537
4538 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4539
4540 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4541 directores.
4542 * Makefile.in: Update all _h macro definitions.
4543 * Makefile.in (install-gdbtk): Move to install section.
4544 (rdi-share/libangsd.a): Move to end of file.
4545
4546 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4547
4548 * frame.c (frame_register_unwind): When a register, set addrp to
4549 the register's byte.
4550
4551 2002-08-20 Michael Snyder <msnyder@redhat.com>
4552
4553 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4554 used locally, so move them from the target machine header to here.
4555 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4556 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4557 Make static.
4558 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4559
4560 2002-08-20 Andrew Cagney <cagney@redhat.com>
4561
4562 * NEWS: Mention that the Apollo line was made obsolete.
4563 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4564 m68*-hp-hpux* obsolete.
4565 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4566 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4567 * buildsym.c (make_blockvector): Make static.
4568 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4569 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4570 (ALLDEPFILES): Remove dstread.c.
4571 (dstread.o): Obsolete make rule.
4572 * dstread.c: Makefile obsolete.
4573 * dst.h: Ditto.
4574 * config/m68k/hp300hpux.mt: Ditto.
4575 * config/m68k/hp300hpux.mh: Ditto.
4576 * config/m68k/hp300bsd.mt: Ditto.
4577 * config/m68k/hp300bsd.mh: Ditto.
4578 * config/m68k/apollo68b.mt: Ditto.
4579 * config/m68k/apollo68v.mh: Ditto.
4580 * config/m68k/apollo68b.mh: Ditto.
4581
4582 2002-08-20 Michael Snyder <msnyder@redhat.com>
4583
4584 * mips-tdep.c (mips_in_return_stub): Make static.
4585 (mips_gdbarch_init): Set in_solib_return_trampoline.
4586 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4587
4588 2002-08-20 Michael Snyder <msnyder@redhat.com>
4589
4590 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4591 * gdbarch.c, gdbarch.h: Regenerate.
4592 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4593 Add.
4594 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4595
4596 2002-08-20 Michael Snyder <msnyder@redhat.com>
4597
4598 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4599 (mips_gdbarch_init): Set skip_trampoline_code,
4600 in_solib_call_trampoline.
4601 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4602 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4603
4604 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4605
4606 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4607
4608 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4609 vector type for ev registers.
4610 (e500_pseudo_register_read): New function.
4611 (e500_pseudo_register_write): New function.
4612 (e500_dwarf2_reg_to_regnum): New function.
4613 (PPC_UISA_NOFP_SPRS): New macro.
4614 (PPC_EV_REGS): New macro.
4615 (PPC_GPRS_PSEUDO_REGS): New macro.
4616 (registers_e500): New register set for e500.
4617 (variants): Add e500 variant.
4618 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4619 before setting architectural dependent variations. Initialize ev
4620 registers numbers. Add case for e500 architecture. Set the
4621 number of pseudo registers.
4622
4623 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4624
4625 * rs6000-tdep.c: Clean up comments.
4626
4627 2002-08-20 Andrew Cagney <cagney@redhat.com>
4628
4629 * h8300-tdep.c: Re-indent file.
4630
4631 2002-08-20 Jim Blandy <jimb@redhat.com>
4632
4633 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4634 default for this.
4635
4636 2002-08-20 Keith Seitz <keiths@redhat.com>
4637
4638 * breakpoints.c (watch_command_1): Use internal breakpoint
4639 when setting a watchpoint_scope breakpoint.
4640
4641 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4642
4643 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4644 (build_builtin_type_vec64i): Ditto.
4645 (build_builtin_type_vec128): Ditto.
4646 (build_builtin_type_vec128i): Ditto.
4647
4648 2002-08-19 Michael Snyder <msnyder@redhat.com>
4649
4650 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4651 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4652 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4653 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4654 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4655 CALL_DUMMY_ADDRESS): Delete.
4656 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4657 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4658 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4659 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4660 push_return_address.
4661 (mips_register_raw_size, mips_eabi_use_struct_convention,
4662 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4663 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4664 mips_init_extra_frame_info, mips_eabi_push_arguments,
4665 mips_n32n64_push_arguments, mips_push_return_address,
4666 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4667 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4668
4669 2002-08-19 Michael Snyder <msnyder@redhat.com>
4670
4671 * mips-tdep.c (mips_frame_num_args): New function.
4672 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4673 frame_saved_pc, frame_args_address, frame_locals_address,
4674 frame_num_args, and frame_args_skip.
4675 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4676 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4677 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4678 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4679
4680 2002-08-20 Michael Snyder <msnyder@redhat.com>
4681
4682 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4683 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4684 * mips-tdep.c (mips_store_struct_return): New function.
4685 (mips_extract_struct_value_address): New function.
4686 (mips_gdbarch_init): Set store_struct_return and
4687 extract_struct_value_address.
4688
4689 2002-08-20 David Carlton <carlton@math.stanford.edu>
4690
4691 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4692 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4693 (read_file_scope): Check that line_header is nonzero before
4694 decoding macro information.
4695
4696 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4697
4698 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4699 flag the general-purpose registers as floating-point on targets
4700 that don't support the floating-point registers.
4701
4702 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4703
4704 * rs6000-tdep.c (altivec_register_p): Delete.
4705 (rs6000_do_altivec_registers): Delete.
4706 (rs6000_altivec_registers_info): Delete.
4707 (rs6000_do_registers_info): Delete.
4708 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4709 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4710
4711 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4712
4713 * infcmd.c (do_registers_info): Print vector registers in hex
4714 format only.
4715 (print_vector_info): Check that printing registers
4716 makes sense.
4717 (print_float_info): Ditto.
4718
4719 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4720
4721 * mips-tdep.c (mips_gdbarch_init): Update.
4722 (mips_o32_extract_return_value): Rewrite.
4723 (mips_o32_store_return_value): Rewrite.
4724 (mips_o32_xfer_return_value): New function.
4725 (mips_xfer_register): Tweak debug print message. Allow for
4726 buf_offset when dumping the value transfered.
4727
4728 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4729
4730 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4731 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4732 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4733 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4734 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4735
4736 2002-08-14 Michael Snyder <msnyder@redhat.com>
4737
4738 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4739
4740 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4741
4742 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4743 register.
4744 (P): New macro to define a register as a pseudo register.
4745 (R, R4, R8, R16, FR32, R64, R0): Updated.
4746 (struct variant): Add new fields for number of pseudo registers
4747 and number of total registers.
4748 (tot_num_registers): New macro replacing....
4749 (num_registers): ...deleted macro.
4750 (num_registers): New function.
4751 (num_pseudo_registers): New function.
4752 (variants): Update all variants to intialize new fields correctly.
4753 Postpone initialization of number of pseudo regs and real regs.
4754 (init_variants): New function.
4755 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4756 registers offsets.
4757
4758 2002-08-19 David Carlton <carlton@math.stanford.edu>
4759
4760 * valops.c (search_struct_field): Change error message to treat
4761 return value of 0 from value_static_field as meaning that field is
4762 optimized out.
4763 (value_struct_elt_for_reference): Ditto.
4764 * values.c (value_static_field): Treat an unresolved location the
4765 same as a nonexistent symbol. Fix PR gdb/635.
4766 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4767 enclosed. Fix PR gdb/574.
4768 * MAINTAINERS: Add self to Write After Approval list.
4769
4770 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4771
4772 * mips-tdep.c (mips_xfer_register): New function.
4773 (mips_n32n64_extract_return_value): Rewrite.
4774 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4775 instead of deprecated_extract_return_value.
4776
4777 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4778
4779 * rs6000-tdep.c (TDEP): Delete macro.
4780 (branch_dest): Replace use of TDEP macro with its body.
4781 (rs6000_pop_frame): Ditto.
4782 (rs6000_push_arguments): Ditto.
4783 (rs6000_skip_trampoline_code): Ditto.
4784 (rs6000_frame_saved_pc): Ditto.
4785 (rs6000_frame_chain): Ditto.
4786 (rs6000_register_name): Ditto.
4787 (rs6000_register_byte): Ditto.
4788 (rs6000_register_raw_size): Ditto.
4789 (rs6000_register_virtual_type): Ditto.
4790 (rs6000_register_convertible): Ditto.
4791 (rs6000_convert_from_func_ptr_addr): Ditto.
4792
4793 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4794
4795 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4796 conditionally.
4797 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4798 MIPS_LINUX_JB_ELEMENT_SIZE.
4799 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4800 for MAX_REGISTER_RAW_SIZE arrays.
4801 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4802 MIPS_LINUX_JB_ELEMENT_SIZE.
4803
4804 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4805
4806 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4807
4808 2002-08-19 Aidan Skinner <aidan@velvet.net>
4809
4810 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4811 ada-valprint.c ada-tasks.c.
4812 (YYFILES): Add ada-exp.y.
4813 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4814 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4815 (ada-exp.tab.o): New target.
4816
4817 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4818
4819 * regcache.c (regcache_xfer_part): New function.
4820 (regcache_raw_read_part): New function.
4821 (regcache_raw_write_part): New function.
4822 (regcache_cooked_read_part): New function.
4823 (regcache_cooked_write_part): New function.
4824 * regcache.h (regcache_raw_read_part): Declare.
4825 (regcache_raw_write_part): Declare.
4826 (regcache_cooked_read_part): Declare.
4827 (regcache_cooked_write_part): Declare.
4828
4829 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4830
4831 * remote.c (remote_open_1): Add async_p.
4832 (remote_async_open_1): Delete.
4833 (open_remote_target): Delete.
4834 (remote_open, extended_remote_open): Update calls to remote_open_1.
4835 (remote_async_open, extended_remote_async_open): Call
4836 remote_open_1 instead of remote_async_open_1.
4837
4838 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4839
4840 * blockframe.c: Fix a few coding standard violations.
4841
4842 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4843
4844 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4845 here from ...
4846 * config/i386/tm-i386sco5.h: ... here. File removed.
4847 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4848
4849 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4850 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4851 (TM_FILE): Set to tm-i386.h.
4852 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4853 * config/i386/tm-i386v.h: Remove file.
4854 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4855 instead of "i386/tm-i386v.h".
4856 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4857 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4858 "i386/tm-i386v.h".
4859 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4860 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4861 "i386/tm-i386.h".
4862
4863 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4864
4865 * config/i386/nm-i386v.h: Add protection against
4866 multiple-inclusion.
4867 (i386_register_u_addr): Remove prototype.
4868 (register_u_addr): New prototype.
4869 (REGISTER_U_ADDR): Redefine accordingly.
4870 * i386v-nat.c: Improve several comments.
4871 (i386_register_u_addr): Change signature and rename to
4872 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4873 ubase variable.
4874
4875 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4876
4877 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4878 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4879 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4880 deprecated_extract_return_value.
4881 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4882 rename mips_o32o64_push_arguments.
4883 (mips_gdbarch_init): Update.
4884 (mips_extract_return_value): Delete.
4885 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4886 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4887 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4888 (mips_n32n64_extract_return_value): Clone
4889 mips_extract_return_value.
4890 (mips_store_return_value): Delete.
4891 (mips_o32_store_return_value): Clone mips_store_return_value.
4892 (mips_o64_store_return_value): Clone mips_store_return_value.
4893 (mips_eabi_store_return_value): Clone mips_store_return_value.
4894 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4895
4896 2002-08-18 Aidan Skinner <aidan@velvet.net>
4897
4898 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4899 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4900
4901 2002-08-18 Aidan Skinner <aidan@velvet.net>
4902
4903 * ada-lang.c: Run through gdb_indent.sh.
4904 * ada-lang.h: Run through gdb_indent.sh.
4905 * ada-tasks.c: Run through gdb_indent.sh.
4906 * ada-typeprint.c: Run through gdb_indent.sh.
4907 * ada-valprint.c: Run through gdb_indent.sh.
4908
4909 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4910
4911 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4912 ABI.
4913
4914 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4915
4916 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4917
4918 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4919 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4920
4921 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4922 write_register_gen instead of write_register_bytes.
4923
4924 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4925 i[3456]-*-osf1mk* configurations have been made obsolete.
4926 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4927 i[3456]86-*-osf1mk* hosts obsolete.
4928 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4929 targets obsolete.
4930 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4931 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4932 config/i386/i386m3.mt, config/i386/nm-m3.h,
4933 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4934 config/i386/i386mk.mh, config/i386/i386mk.mt,
4935 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4936 obsolete.
4937 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4938 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4939 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4940
4941 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4942
4943 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4944 (hppa_value_returned_from_stack): Declare.
4945 (hppa_extract_return_value): Declare.
4946 * config/pa/hppa.mt: New file.
4947 * configure.tgt: Recognize hppa*-*-*.
4948 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4949
4950 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4951
4952 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4953 comment.
4954
4955 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4956
4957 * top.c (gdb_rl_operate_and_get_next): Make sure
4958 operate-and-get-next functions correctly even when the history
4959 list is completely filled.
4960
4961 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4962
4963 * MAINTAINERS (Target Instruction Set Architectures): Rename
4964 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4965 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4966 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4967 already listed under Host/Native.
4968
4969 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4970 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4971 mips*-*-*.
4972
4973 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4974
4975 * config/ia64/ia64.mt: New file.
4976 * config/alpha/alpha.mt: New file.
4977 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4978 ia64-linux-gnu. Mention that ia64-elf is broken.
4979 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4980
4981 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4982
4983 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4984 generic_func_frame_valid instead of func_frame_valid.
4985
4986 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4987
4988 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4989 procfs appears to be broken when debugging on multi-processor
4990 machines. So enable software single stepping in order to avoid
4991 using the procfs interface to do next/step operations, using
4992 internal breakpoints instead.
4993
4994 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4995 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4996 make this pc address equal to the value it would have if the
4997 system stepping capability was used. Also set a new flag used
4998 to ensure that we don't readjust the PC one more time later.
4999
5000 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5001 address by DECR_PC_AFTER_BREAK when software single step is
5002 in use for this architecture, as this has already been taken
5003 care of in handle_inferior_event().
5004
5005 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5006
5007 * infrun.c (handle_inferior_event): Minor reformatting, to make
5008 a rather long condition expression easier to read.
5009
5010 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5011
5012 * Makefile.in (gdbtk.o): Move to end of file.
5013 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5014 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5015 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5016 (gdbtk-wrapper.o, gdbres.o): Ditto.
5017
5018 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5019
5020 * Makefile.in (copying.o): Separate out compile rule.
5021 (hpux-thread.o, procfs.o, signals.o): Ditto.
5022 (v850ice.o, z8k-tdep.o): Ditto.
5023 (tui-file.o): Move to TUI section.
5024 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5025 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5026
5027 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5028
5029 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5030 skip_trampoline_code, for better namespace-proofing.
5031
5032 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5033
5034 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5035
5036 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5037
5038 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5039
5040 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5041 signal, check whether we hit a breakpoint before checking for a
5042 single step breakpoint. Otherwise, GDB fails to notice that a
5043 breakpoint has been hit when stepping onto a breakpoint.
5044
5045 2002-08-16 Keith Seitz <keiths@redhat.com>
5046
5047 * gdb-events.sh (clear_gdb_event_hooks): New function.
5048 * gdb-events.c: Regenerate.
5049 * gdb-events.h: Regenerate.
5050
5051 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5052
5053 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5054 not_a_sw_breakpoint.
5055 * breakpoint.h (bpstat_stop_status): Add parameter names.
5056
5057 2002-08-16 Grace Sainsbury <graces@redhat.com>
5058
5059 * remote.c (remote_insert_hw_breakpoint)
5060 (remote_remove_hw_breakpoint): Fix calculation of length field
5061 for Z-packet.
5062
5063 2002-08-15 Michael Snyder <msnyder@redhat.com>
5064
5065 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5066 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5067 (supply_fpregset): Ditto.
5068
5069 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5070 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5071 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5072 (TARGET_READ_SP): Delete.
5073 (DO_REGISTERS_INFO): Delete.
5074 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5075 Delete.
5076 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5077 from macros to functions.
5078
5079 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5080 (mips_register_convertible, mips_register_convert_to_virtual,
5081 mips_register_convert_to_raw): Make static.
5082 (mips_read_sp): New function.
5083 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5084 (mips_do_registers_info): Make static.
5085 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5086 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5087 (mips_register_convert_from_type, mips_register_convert_to_type):
5088 New functions.
5089 (mips_gdbarch_init): Set up function_start_offset,
5090 register_virtual_size, pc_in_sigtramp.
5091
5092 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5093
5094 * infcmd.c (vector_info): New function.
5095 (_initialize_infcmd): Add command "info vector".
5096 (print_vector_info): New function.
5097
5098 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5099 * gdbarch.h, gdbarch.c: Regenerate.
5100
5101 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5102
5103 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5104 ``print_all''. Only print vector registers when ``print_all''.
5105
5106 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5107
5108 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5109 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5110
5111 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5112 Add `args' parameter.
5113 * gdbarch.h, gdbarch.c: Regenerate.
5114
5115 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5116
5117 * infcmd.c (float_info): Call print_float_info.
5118 (print_float_info): New function. By default, print the
5119 floating-point registers.
5120
5121 * arch-utils.h (default_print_float_info): Delete declaration.
5122 * arch-utils.c (default_print_float_info): Delete function.
5123
5124 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5125
5126 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5127 out define.
5128
5129 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5130 FRAME.
5131
5132 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5133 * configure.host: Make i[3456]86-*-aix host obsolete.
5134 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5135 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5136 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5137 config/i386/xm-i386aix.h: Make files obsolete.
5138 * i386aix-nat.c: Make file obsolete.
5139 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5140 (i386aix-nat.o): Make target obsolete.
5141
5142 * config/i386/nm-gnu.h: Removed.
5143 * config/i386/nm-i386gnu.h: New file.
5144 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5145 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5146 Moved here from ...
5147 * config/i386/tm-i386gnu.h: ... here. Removed.
5148 * config/i386/xm-i386gnu.h: Removed.
5149 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5150 (NAT_FILE): Set to nm-i386gnu.h.
5151 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5152 * i386-tdep.c: New file.
5153 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5154 (i386gnu-tdep.o): Specify dependencies.
5155
5156 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5157
5158 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5159 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5160 Adjust a few comments to reflect reality a bit closer.
5161 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5162 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5163 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5164 target_insert_watchpoint, target_remove_watchpoint):
5165 Move defines to ...
5166 * config/i386/nm-i386sco5.h: ... here.
5167 (kernel_u_size): Add prototype. Improve a few comments and add
5168 protection against multiple inclusion.
5169
5170 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5171 out define.
5172
5173 * uw-thread.c (SP_ARG0): Define if not already defined.
5174 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5175
5176 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5177
5178 * config/i386/tm-i386.h: Don't include "regcache.h".
5179
5180 * i387-tdep.h (i387_print_float_info): New prototype.
5181 * i387-tdep.c (print_i387_value, print_i387_ext,
5182 print_i387_status_word, print_i387_control_word): Add `struct
5183 ui_file *' argument and use it for output.
5184 (i387_print_float_info): Renamed from i387_float_info. Add
5185 `struct gdbarch *' and `struct ui_file *' arguments and use the
5186 latter for output.
5187 * i386-tdep.c: Include "i387-tdep.h".
5188 (i386_gdbarch_init): Set print_float_info.
5189 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5190 (FLOAT_INFO): Remove define.
5191
5192 2002-08-13 Michael Snyder <msnyder@redhat.com>
5193
5194 * mips-tdep.c (mips_push_arguments): Rename to
5195 mips_eabi_push_arguments, and tune for EABI.
5196 (MIPS_REGS_HAVE_HOME_P): Delete.
5197 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5198 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5199 Delete references to mips_regs_have_home_p.
5200
5201 2002-08-14 Keith Seitz <keiths@redhat.com>
5202
5203 * Makefile.in (install-gdbtk): Create insight plugin directory.
5204 Install plugins.tcl file.
5205
5206 2002-08-14 Keith Seitz <keiths@redhat.com>
5207
5208 * configure.in: Move SUBDIRS to near top of the file so that
5209 --enable options may add things to it.
5210 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5211 * configure: Regenerate.
5212
5213 2002-08-13 Michael Snyder <msnyder@redhat.com>
5214
5215 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5216 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5217 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5218
5219 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5220
5221 * vax-tdep.c (vax_get_saved_register): Delete function.
5222 (vax_gdbarch_init): Update.
5223 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5224 (ns32k_gdbarch_init): Update.
5225 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5226 (alpha_gdbarch_init): Update.
5227
5228 2002-08-13 Andrew Cagney <cagney@redhat.com>
5229
5230 * regcache.c (init_regcache_descr): Overallocate the
5231 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5232 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5233 nr_raw_registers.
5234 (set_register_cached): Add range checking assertions. Use
5235 current_regcache.
5236
5237 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5238
5239 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5240 numbers for MMX registers.
5241
5242 2002-08-13 Andrew Cagney <cagney@redhat.com>
5243
5244 * i386-tdep.c (i386_gdbarch_init): Use
5245 generic_unwind_get_saved_register.
5246
5247 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5248
5249 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5250 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5251 target vector.
5252 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5253 Delete. Add comment regarding this now-deleted target method.
5254
5255 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5256
5257 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5258 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5259 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5260 real PC and the page number (if it's within the memory bank window).
5261 (m68hc11_pseudo_register_write): Likewise when saving.
5262 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5263 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5264 (m68hc11_register_raw_size): And use 32-bit for it.
5265 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5266 16K memory bank is used by the prog; also use the virtual pc.
5267
5268 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5269
5270 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5271 (m68hc11_gdbarch_init): Install it in gdbarch.
5272 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5273 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5274 (MSYMBOL_SIZE): New for documentation.
5275 (insn_return_kind): Enum to specify how a function returns.
5276 (frame_extra_info): Cleanup and record the return mode.
5277 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5278 register in address computation.
5279 (m68hc11_get_return_insn): New to obtain the return instruction used
5280 by the function.
5281 (m68hc11_frame_init_saved_regs): Take into account the return
5282 instruction used by the function for far and interrupt functions.
5283 (m68hc11_init_extra_frame_info): Take into account page register.
5284 (m68hc11_frame_args_address): Adjust according to the return mode.
5285 (show_regs): Print page register only when it's used.
5286
5287 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5288
5289 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5290 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5291 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5292 registers.
5293 (m68hc11_register_raw_size): Likewise.
5294
5295 2002-08-13 Andrew Cagney <cagney@redhat.com>
5296
5297 * i386-tdep.c (i386_register_name): Handle mmx registers.
5298 (mmx_regnum_p): New function.
5299 (i386_mmx_names): New array.
5300 (mmx_num_regs): New variable.
5301 (i386_pseudo_register_read): New function.
5302 (i386_pseudo_register_write): New function.
5303 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5304
5305 * regcache.c (regcache_raw_read_unsigned): New function.
5306 (regcache_raw_read_signed): New function.
5307 * regcache.h (regcache_raw_read_unsigned): Declare.
5308 (regcache_raw_read_signed): Declare.
5309
5310 2002-08-13 Andrew Cagney <cagney@redhat.com>
5311
5312 * regcache.c (regcache_raw_read_as_address): Delete function.
5313 (regcache_cooked_read_signed): New function.
5314 (regcache_cooked_read_unsigned): New function.
5315 * regcache.h (regcache_cooked_read_signed): Declare.
5316 (regcache_cooked_read_unsigned): Declare.
5317 (regcache_raw_read_as_address): Delete declaration.
5318
5319 * blockframe.c (generic_read_register_dummy): Use
5320 regcache_cooked_read_unsigned.
5321 * i386-tdep.c (i386_extract_struct_value_address): Use
5322 regcache_cooked_read_unsigned.
5323
5324 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5325
5326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5327 double sizes according to ELF ABI flags.
5328 (gdbarch_tdep): Record elf_flags.
5329
5330 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5331
5332 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5333 (m6812_prolog): They can appear in 68HC12 function prologue.
5334 (m68hc11_frame_chain): Cleanup.
5335
5336 2002-08-12 Andrew Cagney <cagney@redhat.com>
5337
5338 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5339 declarations.
5340 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5341 (i386_linux_register_raw_size): Delete function.
5342 (i386_linux_init_abi): Update.
5343 * i386-tdep.c (i386_register_raw_size): Delete function.
5344 (i386_register_byte): Delete function.
5345 (i386_gdbarch_init): Update.
5346 (i386_register_size): Delete array.
5347 (i386_register_offset): Delete array.
5348
5349 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5350 (REGISTER_RAW_SIZE): Delete macro.
5351 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5352 (REGISTER_BYTE): Delete macro.
5353
5354 2002-08-11 Aidan Skinner <aidan@velvet.net>
5355
5356 * ada-lang.c (ada_lookup_partial_symbol)
5357 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5358 prototype names so that grep ^func works properly.
5359
5360 * ada-lang.c (ada_array_element_type)
5361 (ada_lookup_partial_symbol): Fix typos in parameter list.
5362
5363 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5364 Fix prototype names so that grep ^func works properly.
5365
5366 2002-08-10 Andrew Cagney <cagney@redhat.com>
5367 Elena Zannoni <ezannoni@redhat.com>
5368 Martin M. Hunt <hunt@redhat.com>
5369
5370 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5371 (build_builtin_type_vec128i): Set the vector bit.
5372 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5373 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5374 (build_builtin_type_vec64): New function.
5375 (build_builtin_type_vec64i): New function.
5376 (build_gdbtypes): Initialize builtin_type_vec64 and
5377 builtin_type_vec64i.
5378
5379 2002-08-09 Andrew Cagney <cagney@redhat.com>
5380
5381 * regcache.c (regcache_dump): Compare the register offset
5382 with REGISTER_BYTE.
5383 * arch-utils.c (generic_register_byte): New function.
5384 * arch-utils.h (generic_register_byte): Declare.
5385 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5386 * gdbarch.h, gdbarch.c: Regenerate.
5387
5388 2002-08-09 Andrew Cagney <cagney@redhat.com>
5389
5390 * regcache.c: Include "gdbcmd.h"
5391 (_initialize_regcache): Add commands "maintenance print
5392 registers", "maintenance print raw-registers" and "maintenance
5393 print cooked-registers".
5394 (enum regcache_dump_what): Define.
5395 (dump_endian_bytes): New function.
5396 (regcache_dump): New function.
5397 (regcache_print): New function.
5398 (maintenance_print_registers): New function.
5399 (maintenance_print_raw_registers): New function.
5400 (maintenance_print_cooked_registers): New function.
5401 * Makefile.in (regcache.o): Update dependencies.
5402
5403 2002-08-09 Michael Snyder <msnyder@redhat.com>
5404
5405 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5406 (mips_push_arguments): Correct some comments. Use paddr_nz
5407 for printing addresses in debug output. Replace static
5408 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5409 (mips_n32n64_push_arguments): New function, cloned from
5410 mips_push_arguments and tuned for the n32/n64 ABI.
5411 (mips_push_register): Buffer needs dynamic allocation.
5412 (mips_print_register): Ditto.
5413 (do_gp_register_row): Ditto.
5414 (mips_store_return_value): Ditto.
5415 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5416
5417 2002-08-09 Don Howard <dhoward@redhat.com>
5418
5419 * memattr.c (mem_info_command): Print special case of upper bound
5420 as max CORE_ADDR + 1.
5421
5422 2002-08-08 Michael Snyder <msnyder@redhat.com>
5423
5424 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5425 returns structs by ref if they're too big to fit in two registers.
5426
5427 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5428
5429 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5430 saved regs value.
5431 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5432 mips_find_saved_regs().
5433 (mips_pop_frame): Likewise.
5434
5435 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5436
5437 * blockframe.c (frame_saved_regs_register_unwind): Revise
5438 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5439 frames are in use.
5440
5441 2002-08-09 Grace Sainsbury <graces@redhat.com>
5442
5443 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5444 T-packets; the 'a' is not taken as a register number.
5445 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5446 (remote_stopped_data_address): New functions; add to target
5447 vector.
5448 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5449 prototypes to match other implementations of this
5450 function. replace integer argument with pointer -- the length
5451 field in the Z-packet is the length of what is pointed to or 1 if
5452 pointer is null. Add to target vector.
5453 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5454 target vector.
5455
5456 From Mark Salter:
5457 * remote.c (remote_wait): Add support to extract optional
5458 watchpoint information from T-packet. Ignore unrecognized
5459 optional info in T-packet.
5460 (remote_async_wait): Ditto.
5461
5462 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5463
5464 * cli/cli-dump.c: Change fopen modes to use binary open modes
5465 as defined in include/fopen-bin.h throughout.
5466
5467 2002-08-08 Michael Snyder <msnyder@redhat.com>
5468
5469 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5470
5471 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5472
5473 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5474 assertion failure by returning early after a warning.
5475
5476 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5477
5478 * mips-tdep.c (mips_find_saved_regs): Make static.
5479 (mips_frame_init_saved_regs): New function.
5480 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5481 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5482 (mips_find_saved_regs): Delete declaration.
5483
5484 2002-08-08 Grace Sainsbury <graces@redhat.com>
5485
5486 * remote.c (remote_wait, remote_async_wait): Change
5487 thread_num from int to ULONGEST.
5488 (unpack_varlen_hex): Change result parameter from
5489 int * to ULONGEST *.
5490
5491 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5492
5493 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5494 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5495 powerpc*-*-*.
5496 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5497
5498 2002-08-08 Andrew Cagney <cagney@redhat.com>
5499
5500 * gcore.c (override_derive_stack_segment): Delete variable.
5501 (preempt_derive_stack_segment): Delete function.
5502 (derive_stack_segment): Delete function.
5503 (default_derive_stack_segment): Renamed to derive_stack_segment.
5504 (override_derive_heap_segment): Delete variable.
5505 (preempt_derive_heap_segment): Delete function.
5506 (derive_heap_segment): Delete function.
5507 (default_derive_heap_segment): Rename to derive_heap_segment.
5508
5509 2002-08-06 Michael Snyder <msnyder@redhat.com>
5510
5511 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5512 * mips-tdep.c (mips_EABI_use_struct_convention,
5513 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5514 New functions. (mips_use_struct_convention): Delete.
5515 (mips_gdbarch_init): set use_gdbarch_convention.
5516
5517 2002-08-06 Michael Snyder <msnyder@redhat.com>
5518
5519 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5520 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5521 mips_o32_reg_struct_has_addr): New functions.
5522 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5523
5524 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5525
5526 * regcache.c (pseudo_register): Delete function.
5527 (fetch_register): Delete function.
5528 (store_register): Delete function.
5529 (regcache_raw_read, legacy_read_register_gen): Use
5530 target_fetch_registers instead of fetch_register.
5531 (legacy_write_register_gen, regcache_raw_write): Use
5532 target_store_register instead of store_register.
5533 (write_register_bytes): Ditto.
5534
5535 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5536 (STORE_PSEUDO_REGISTER): Delete.
5537 * gdbarch.h, gdbarch.c: Regenerate.
5538
5539 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5540
5541 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5542 write dump file binary.
5543
5544 2002-08-05 Michael Snyder <msnyder@redhat.com>
5545
5546 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5547 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5548 (mips_gdbarch_init): Set N32 target to be mips64.
5549
5550 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5551
5552 * frame.c (find_saved_register): Break out of loop once saved
5553 register address is found. Don't mention sparc in loop comment
5554 anymore.
5555
5556 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5557
5558 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5559 mips_default_saved_regsize to 8.
5560
5561 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5562
5563 * gcore.c: Do not include <sys/procfs.h>.
5564 * Makefile.in (gcore.o): Update dependencies.
5565
5566 2002-08-06 Andrew Cagney <cagney@redhat.com>
5567
5568 * configure.tgt: Make arc-*-* obsolete.
5569 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5570 * MAINTAINERS: Make arc-elf obsolete.
5571 * arc-tdep.c: Make file obsolete.
5572 * config/arc/arc.mt: Ditto.
5573 * config/arc/tm-arc.h: Ditto.
5574
5575 2002-08-05 Theodore A. Roth <troth@verinet.com>
5576
5577 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5578
5579 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5580
5581 * mcore-tdep.c (mcore_gdbarch_init): Use
5582 generic_unwind_get_saved_register instead of
5583 generic_get_saved_register.
5584 * v850-tdep.c (v850_gdbarch_init): Ditto.
5585 * frv-tdep.c (frv_gdbarch_init): Ditto.
5586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5587 * s390-tdep.c (s390_gdbarch_init): Ditto.
5588 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5589 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5590 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5591
5592 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5593
5594 * objfiles.h: Add missing #include "symfile.h"
5595
5596 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5597
5598 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5599
5600 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5601 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5602 of FIELD_BITSIZE.
5603
5604 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5605
5606 * NEWS: Cleanup and nitpick.
5607
5608 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5609
5610 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5611
5612 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5613
5614 * Makefile.in (gdbtk-bp.o): Update dependencies.
5615 (gdbtk-register.o): Ditto.
5616 (gdbtk-varobj.o): Ditto.
5617
5618 2002-08-03 Andrew Cagney <cagney@redhat.com>
5619
5620 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5621 m68hc11_fetch_pseudo_register.
5622 (m68hc11_pseudo_register_write): Replace
5623 m68hc11_store_pseudo_register.
5624 (m68hc11_gdbarch_init): Update.
5625
5626 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5627
5628 * gdbarch.sh: Include "gdb_string.h".
5629 * gdbarch.c: Regenerate.
5630
5631 * regcache.c: Include "gdb_string.h".
5632 * ax-general.c: Ditto.
5633 * varobj.c: Ditto.
5634 * std-regs.c: Ditto.
5635 * fbsd-proc.c: Ditto.
5636 * thread.c: Ditto.
5637
5638 * Makefile.in (regcache.o): Update dependencies.
5639 (thread.o, gdbarch.o): Ditto.
5640 (ax-general.o, gdbarch.o): Ditto.
5641 (varobj.o, std-regs.o): Ditto.
5642 (fbsd-proc.o): Specify dependencies.
5643
5644 2002-08-02 Andrew Cagney <cagney@redhat.com>
5645
5646 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5647 regnum.
5648 (regcache_cooked_write): Ditto.
5649
5650 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5651
5652 * regcache.c (regcache_cooked_read): New function.
5653 (regcache_cooked_write): New function.
5654 (read_register_gen): Rewrite using regcache_cooked_read.
5655 (write_register_gen): Rewrite using regcache_cooked_write.
5656
5657 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5658 Declare.
5659
5660 2002-08-02 Andrew Cagney <cagney@redhat.com>
5661
5662 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5663 Replace the architecture methods register_read and register_write.
5664 * gdbarch.h, gdbarch.c: Regenerate.
5665 * regcache.c (init_regcache_descr): Update.
5666 (read_register_gen): Update.
5667 (write_register_gen): Update.
5668 (supply_register): Update comment.
5669
5670 * sh-tdep.c (sh_gdbarch_init): Update.
5671 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5672 `regcache' and `gdbarch' parameters. Make `buffer' a void
5673 pointer. Update code.
5674 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5675 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5676 void pointer. Update code.
5677 (sh64_register_write): Delete.
5678 (sh4_register_read): Delete.
5679 (sh64_register_read): Delete.
5680 (sh4_register_write): Delete.
5681 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5682 void pointer, `to' parameter a void pointer.
5683 (sh_sh64_register_convert_to_raw): Ditto.
5684
5685 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5686
5687 * mips-tdep.c (mips_register_virtual_type): Use architecture
5688 invariant return values.
5689
5690 2002-08-01 Andrew Cagney <cagney@redhat.com>
5691
5692 * linux-proc.c: Include "gdb_string.h".
5693 * Makefile.in (linux-proc.o): Update dependency list.
5694
5695 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5696
5697 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5698 comment.
5699
5700 2002-08-01 Grace Sainsbury <graces@redhat.com>
5701
5702 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5703 to_insert_watchpoint, to_remove_watchpoint,
5704 to_stopped_by_watchpoint, to_stopped_data_address,
5705 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5706 target vecctor. Define their corresponding macros so they call
5707 them.
5708
5709 * target.c: Add default and debug versions of for
5710 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5711 to_insert_watchpoint, to_remove_watchpoint,
5712 to_stopped_by_watchpoint, to_stopped_data_address,
5713 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5714
5715 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5716
5717 * mips-tdep.c (mips_register_virtual_type): New function.
5718 (mips_gdbarch_init): Register mips_register_virtual_type()
5719 with gdbarch machinery.
5720 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5721 this file instead of tm-bigmips.h.
5722 (MIPS_REGSIZE): Delete this macro.
5723 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5724 multiarch version in mips-tdep.c will be found.
5725
5726 2002-08-01 Andrew Cagney <cagney@redhat.com>
5727
5728 * NEWS: Menion that CHILL has been made obsolete.
5729
5730 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5731 * stabsread.c (read_range_type): Ditto.
5732 * gdbtypes.h: Ditto.
5733 * language.c (binop_type_check): Ditto.
5734 (binop_result_type): Ditto.
5735 (integral_type): Ditto.
5736 (character_type): Ditto.
5737 (string_type): Ditto.
5738 (boolean_type): Ditto.
5739 (structured_type): Ditto.
5740 (lang_bool_type): Ditto.
5741 (binop_type_check): Ditto.
5742 * language.h (_LANG_chill): Ditto.
5743 * dwarfread.c (set_cu_language): Ditto.
5744 * dwarfread.c (CHILL_PRODUCER): Ditto.
5745 * dwarfread.c (handle_producer): Ditto.
5746 * expression.h (enum exp_opcode): Ditto.
5747 * eval.c: Ditto for comments.
5748 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5749 * expprint.c (print_subexp): Ditto.
5750 (print_subexp): Ditto.
5751 * valops.c (value_cast): Ditto.
5752 (search_struct_field): Ditto.
5753 * value.h (COERCE_VARYING_ARRAY): Ditto.
5754 * symfile.c (init_filename_language_table): Ditto.
5755 (add_psymbol_with_dem_name_to_list): Ditto.
5756 * valarith.c (value_binop): Ditto.
5757 (value_neg): Ditto.
5758 * valops.c (value_slice): Ditto.
5759 * symtab.h (union language_specific): Ditto.
5760 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5761 (SYMBOL_DEMANGLED_NAME): Ditto.
5762 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5763 * defs.h (enum language): Ditto.
5764 * symtab.c (got_symtab): Ditto.
5765 * utils.c (fprintf_symbol_filtered): Ditto.
5766
5767 * ch-typeprint.c: Make file obsolete.
5768 * ch-valprint.c: Make file obsolete.
5769 * ch-lang.h: Make file obsolete.
5770 * ch-exp.c: Make file obsolete.
5771 * ch-lang.c: Make file obsolete.
5772
5773 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5774 CHILL_LIB.
5775 (TARGET_FLAGS_TO_PASS): Ditto.
5776 (CHILLFLAGS): Obsolete.
5777 (CHILL): Obsolete.
5778 (CHILL_FOR_TARGET): Obsolete.
5779 (CHILL_LIB): Obsolete.
5780 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5781 ch-valprint.c.
5782 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5783 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5784 ch-lang.o.
5785 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5786 targets.
5787
5788 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5789
5790 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5791 This does not change anything at the moment, but will be helpful
5792 later when full Ada support is integrated.
5793
5794 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5795
5796 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5797 help message.
5798
5799 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5800
5801 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5802 and save it in a local variable. Use variable in later test.
5803
5804 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5805
5806 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5807 test. (Thanks to Daniel Jacobowitz.)
5808
5809 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5810
5811 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5812 (mips_abi_strings): Add "n64".
5813 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5814
5815 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5816
5817 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5818 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5819
5820 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5821
5822 * utils.c (host_pointer_to_address, address_to_host_pointer):
5823 Use gdb_assert() instead of explicit call to internal_error().
5824
5825 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5826
5827 * Makefile.in (rs6000-nat.o): Update dependencies.
5828
5829 From Nicholas Duffek:
5830 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5831 (aix-thread.o): New rule.
5832 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5833 * config/powerpc/aix432.mh: New file.
5834
5835 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5836
5837 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5838 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5839 (fetch_core_registers, ppc_linux_supply_gregset)
5840 (ppc_linux_supply_fpregset): New functions.
5841 (ppc_linux_regset_core_fns): New.
5842 (_initialize_ppc_linux_tdep): Call add_core_fns.
5843 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5844 and ppc_linux_supply_gregset.
5845 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5846 (supply_fpregset): Call ppc_linux_supply_fpregset.
5847 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5848 corelow.o.
5849 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5850
5851 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5852
5853 * symtab.c (lookup_symbol): Demangle before lowercasing.
5854
5855 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5856
5857 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5858 declaration.
5859 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5860 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5861 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5862 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5863 "gdb_string.h".
5864 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5865 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5866 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5867 (avr-tdep.o, mon960-rom.o): Ditto.
5868 (aout_stabs_gnu_h): Define.
5869 (symtab_h): Remove $(gdb_obstack_h).
5870
5871 2002-07-30 Jim Blandy <jimb@redhat.com>
5872
5873 Patch from David Carlton <carlton@math.stanford.edu>:
5874 * gdbinit.in: Move the `dir' commands that add GDB's own source
5875 directory to the search path to the end, so that the `gdb' source
5876 directory will be searched first.
5877
5878 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5879
5880 * gdb_obstack.h: New file.
5881 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5882 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5883 * objfiles.h: Include "gdb_obstack.h".
5884 * Makefile.in (gdb_obstack_h): Define.
5885 (symtab_h): Add $(gdb_obstack_h).
5886 (objfiles_h): Add $(gdb_obstack_h).
5887
5888 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5889 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5890 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5891 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5892 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5893 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5894 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5895 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5896
5897 * Makefile.in (bcache.o): Update dependencies.
5898 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5899 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5900 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5901 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5902 (stabsread.o, symfile.o, symmisc.o): Ditto.
5903 (symtab.o, typeprint.o, macroexp.o): Ditto.
5904 (macrotab.o, mdebugread.o): Ditto.
5905 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5906 (coff_ecoff_h, aout_aout64_h): Define.
5907 (aout_stabs_gnu_h, libaout_h): Define.
5908
5909 2002-07-29 Andrew Cagney <cagney@redhat.com>
5910
5911 * regcache.c (struct regcache_descr): Rename nr_registers to
5912 nr_cooked_registers. Revise comments describing the structure
5913 member fields.
5914 (init_regcache_descr): Update.
5915 (init_legacy_regcache_descr): Update.
5916 (read_register_gen, write_register_gen): When a cooked register in
5917 the raw register range, directly access the value from the raw
5918 register cache.
5919
5920 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5921
5922 * z8k-tdep.c: Do not include "obstack.h".
5923 * h8300-tdep.c, h8500-tdep.c: Ditto.
5924 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5925 * valprint.c, v850-tdep.c: Ditto.
5926 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5927 * mn10200-tdep.c: Ditto.
5928
5929 * Makefile.in (z8k-tdep.o): Update dependencies.
5930 (m68hc11-tdep.o, valprint.o): Ditto.
5931 (v850-tdep.o, d10v-tdep.o): Ditto.
5932 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5933 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5934 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5935 (sh_opc_h, gdb_sim_sh_h): Define.
5936 (elf_sh_h, elf_bfd_h): Define.
5937 (opcode_m68hc11_h): Define.
5938 (OPCODES_SRC, OPCODES_DIR): define.
5939 (OPCODES): Use $(OPCODES_DIR).
5940 (gdb_sim_d10v_h): Rename sim_d10v_h.
5941 (gdb_sim_arm_h): Rename sim_arm_h.
5942
5943 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5944
5945 * utils.c (host_pointer_to_address, address_to_host_pointer):
5946 Change internal_error() message to indicate function responsible
5947 for the error.
5948
5949 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5950
5951 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5952 calls to local_hex_string_custom().
5953
5954 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5955
5956 * irix5-nat.c: Move IRIX shared library support from here...
5957 * solib-irix.c: ...to here. Revised substantially to work with
5958 generic solib framework.
5959
5960 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5961 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5962 * mips-irix-tdep.c: New file.
5963
5964 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5965 (mips-irix-tdep.o, solib-irix.o): New rules.
5966 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5967 solib-irix.o.
5968 * config/mips/irix6.mt (TDEPFILES): Likewise.
5969 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5970
5971 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5972
5973 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5974 disabled (via ``#if 0'') includes.
5975
5976 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5977
5978 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5979 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5980 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5981 Add support for the fpscr register.
5982 * rs6000-nat.c (regmap, fetch_inferior_registers)
5983 (store_inferior_registers, fetch_core_registers): Likewise.
5984
5985 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5986
5987 * rs6000-nat.c (language.h): Include.
5988 (special_regs): Delete this array.
5989 (regmap): New function.
5990 (fetch_register, store_register): Use regmap() to map gdb
5991 register numbers to ptrace register numbers. Also, use
5992 outputs from regmap() to make decisions regarding type of
5993 ptrace() call to make. In particular, don't compare against
5994 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5995 (fetch_inferior_registers, store_inferior_registers): Where
5996 possible, obtain register numbers from tdep struct. Don't
5997 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5998 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5999 (LAST_UISA_SP_REGNUM): Delete.
6000
6001 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6002
6003 * rs6000-nat.c (ppc-tdep.h): Include.
6004 (fetch_registers, store_register, fetch_core_registers): Don't
6005 access registers[] directly. Instead, use supply_register() or
6006 regcache_collect() as appropriate.
6007 (find_toc_address): Format hex address with local_hex_string().
6008
6009 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6010
6011 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6012 bfd/elf32-frv.c.
6013
6014 2002-07-24 Tom Tromey <tromey@redhat.com>
6015
6016 * jv-exp.y: Marked all strings with _().
6017 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6018 internal_error.
6019 (MethodInvocation, CastExpression, parse_number, yyerror,
6020 java_type_from_name, push_expression_name, yylex): Typo fixes.
6021
6022 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6023
6024 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6025 (tee_file_flush, tee_file_write, tee_file_fputs)
6026 (tee_file_isatty): New.
6027 * ui-file.h (tee_file_new): Add prototype.
6028
6029 2002-07-24 Aidan Skinner <aidan@velvet.net>
6030
6031 * ada-lang.c: Change k&r style function definitions to prototyped
6032 form.
6033 * ada-typeprint.c: Change k&r style function definitions to prototyped
6034 form.
6035 * ada-valprint.c: Change k&r style function definitions to prototyped
6036 form.
6037
6038 2002-07-24 Andrew Cagney <cagney@redhat.com>
6039
6040 * README: Remove reference to remote-bug.
6041 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6042 remote-bug.c.
6043 (m88k-nat.o): Delete rule.
6044 (m88k-tdep.o): Delete rule.
6045 (remote-bug.o): Delete rule.
6046 * MAINTAINERS: Mark as obsolete.
6047 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6048 * m88k-tdep.c: Make file obsolete.
6049 * config/m88k/m88k.mh: Ditto.
6050 * config/m88k/delta88v4.mh: Ditto.
6051 * config/m88k/delta88v4.mt: Ditto.
6052 * config/m88k/delta88.mt: Ditto.
6053 * config/m88k/delta88.mh: Ditto.
6054 * remote-bug.c: Ditto.
6055 * config/m88k/tm-delta88.h: Ditto.
6056 * config/m88k/nm-delta88v4.h: Ditto.
6057 * config/m88k/xm-delta88.h: Ditto.
6058 * config/m88k/xm-dgux.h: Ditto.
6059 * config/m88k/tm-m88k.h: Ditto.
6060 * config/m88k/nm-m88k.h: Ditto.
6061 * config/m88k/tm-delta88v4.h: Ditto.
6062 * m88k-nat.c: Ditto.
6063 * cxux-nat.c: Ditto.
6064 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6065 and m88*-*-* obsolete.
6066 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6067 m88*-*-* obsolete.
6068
6069 2002-07-24 Andrew Cagney <cagney@redhat.com>
6070
6071 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6072 constant. Same for local pointer variables.
6073 (extract_signed_integer): Ditto.
6074 * defs.h (extract_unsigned_integer): Update.
6075 (extract_signed_integer): Update.
6076
6077 2002-07-24 Andrew Cagney <cagney@redhat.com>
6078
6079 * regcache.c (regcache_raw_write): Change buf parameter to a
6080 constant void pointer.
6081 (regcache_raw_read): Change buf parameter to a void pointer.
6082 (legacy_write_register_gen): Change myaddr parameter a constant
6083 void pointer.
6084 (supply_register): Change val parameter to a const void pointer.
6085 * regcache.h (regcache_raw_write): Update declaration.
6086 (regcache_raw_read): Update declaration.
6087 (supply_register): Update declaration.
6088
6089 2002-07-24 Tom Tromey <tromey@redhat.com>
6090
6091 * defs.h (gdb_readline_wrapper): Declare.
6092 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6093 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6094 * top.c (gdb_readline_wrapper): New function.
6095 (command_line_input): Use it.
6096
6097 2002-07-24 Andrew Cagney <cagney@redhat.com>
6098
6099 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6100 regcache_read and regcache_write.
6101 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6102 * regcache.c: Update.
6103 * sh-tdep.c (sh64_push_arguments): Update comment.
6104 (sh_pseudo_register_read): Update.
6105 (sh_pseudo_register_write): Update.
6106 (sh4_register_read): Update.
6107 (sh4_register_write): Update.
6108 (sh64_pseudo_register_read): Update.
6109 (sh64_pseudo_register_write): Update.
6110 (sh64_register_read): Update.
6111 (sh64_register_write): Update.
6112 * i386-tdep.c (i386_extract_return_value): Update.
6113 (i386_extract_struct_value_address): Update.
6114 (i386_extract_return_value): Update.
6115 * blockframe.c (generic_read_register_dummy): Update.
6116 (generic_call_dummy_register_unwind): Update
6117 * infrun.c (write_inferior_status_register): Update.
6118
6119 2002-07-23 Jim Blandy <jimb@redhat.com>
6120
6121 * parser-defs.h (expression_context_pc): Make this extern.
6122 (Thanks to Michael Snyder.)
6123
6124 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6125
6126 GDB 5.2.1 released from 5.2 branch.
6127 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6128 * README: Update to mention 5.2.1.
6129
6130 2002-07-23 Mark Salter <msalter@redhat.com>
6131
6132 * remote.c (remote_read_bytes): Fix check for error.
6133
6134 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6135
6136 * aix-thread.c (language.h): Include.
6137 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6138 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6139 Print newlines at end of debug messages.
6140 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6141 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6142
6143 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6144
6145 * aix-thread.c (ppc-tdep.h): Include.
6146 (special_register_p): New function.
6147 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6148 (store_regs_user_thread): Use register number information from
6149 gdbarch_tdep struct instead of hardcoded offsets relative to
6150 FIRST_UISA_SP_REGNUM.
6151 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6152 special_register_p() instead of using FPLAST_REGNUM and
6153 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6154 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6155 will be MQ's register number.
6156
6157 2002-07-22 Michael Snyder <msnyder@redhat.com>
6158
6159 * aix-thread.c (ops): Rename to aix_thread_ops.
6160 (base_ops): Rename to base_target.
6161 (ops_attach): Rename to aix_thread_attach.
6162 (ops_detach): Rename to aix_thread_detach.
6163 (ops_resume): Rename to aix_thread_detach.
6164 (ops_wait): Rename to aix_thread_wait.
6165 (ops_kill): Rename to aix_thread_kill.
6166 (init_ops): Rename to init_aix_thread_ops.
6167 (ops_fetch_register): Rename to aix_thread_fetch_register.
6168 (ops_store_register): Rename to aix_thread_store_register.
6169 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6170 (ops_thread_alive): Rename to aix_thread_thread_alive.
6171 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6172 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6173 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6174 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6175 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6176 (store_regs_lib): Rename to store_regs_user_thread.
6177 (store_regs_kern): Rename to store_regs_kernel_thread.
6178
6179 2002-07-22 Michael Snyder <msnyder@redhat.com>
6180
6181 * aix-thread.c (ops_prepare_to_store): Eliminate.
6182 (init_ops): Don't initialize ops.prepare_to_store.
6183 (store_regs_kern): Pre-fetch register buffers from child,
6184 because some registers may not be in the cache. Copy
6185 regs from register cache only if they are cached.
6186 (store_regs_lib): Copy regs from register cache only
6187 if they are cached.
6188 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6189 fill_gprs64): Ditto.
6190
6191 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6192
6193 * aix-thread.c (gdb_assert.h): Include.
6194 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6195 register sizes (from register cache) match size of buffer holding
6196 register data.
6197 (fill_sprs32): Change parameter types to match those in the ptrace()
6198 buffer.
6199 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6200 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6201
6202 2002-07-22 Michael Snyder <msnyder@redhat.com>
6203
6204 * aix-thread.c (supply_sprs64): Cosmetic change.
6205 (supply_sprs32): Cosmetic change.
6206 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6207 (fill_sprs64): Use regcache_collect instead of read_register.
6208 (store_regs_lib): Use regcache_collect instead of
6209 read_register. Use fill_sprs32 instead of fill_sprs64,
6210 if debugging a 32-bit architecture.
6211 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6212 out of the register cache, instead of passing a pointer into
6213 the register cache directly to ptrace. Use regcache_collect
6214 insteaad of read_register.
6215 (ops_prepare_to_store): Use target_read_registers instead
6216 of read_register_bytes.
6217
6218 2002-07-20 Aidan Skinner <aidan@velvet.net>
6219
6220 * MAINTAINERS: Add self under write after approval.
6221
6222 2002-07-20 Aidan Skinner <aidan@velvet.net>
6223
6224 * ada-tasks.c: Change k&r style function definitions to prototyped
6225 form.
6226
6227 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6228
6229 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6230 * x86-64-tdep.c: Include "objfiles.h".
6231 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6232 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6233
6234 2002-07-17 Michal Ludvig <michal@suse.cz>
6235
6236 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6237 (update_context): Initialise cfa variable.
6238
6239 2002-07-17 Michael Snyder <msnyder@redhat.com>
6240
6241 * aix-thread.c: Shorten some long lines.
6242 Bring comments into line with code spec.
6243
6244 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6245
6246 * infrun.c: Re-indent using gdb_indent.sh.
6247
6248 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6249
6250 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6251 Leave the indentation temporarily untouched, to minimize the diffs.
6252
6253 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6254
6255 * stabsread.c: Make os9k sections of the code obsolete,
6256 for real this time.
6257 * stabsread.h: Make os9k sections of the code obsolete.
6258
6259 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6260
6261 * linux-low.c (regsets_store_inferior_registers): Add free()
6262 at the end of a loop to prevent memory leak.
6263 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6264 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6265 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6266 line a comment.
6267 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6268
6269 2002-07-17 Jim Blandy <jimb@redhat.com>
6270
6271 * macrocmd.c (info_macro_command): Remove newline from error
6272 message.
6273
6274 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6275
6276 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6277 (sh_gdbarch_init): Use it for sh-dsp.
6278
6279 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6280
6281 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6282 64-bit DWARF2 format.
6283
6284 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6285
6286 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6287 <sys/proc.h> when not available.
6288
6289 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6290
6291 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6292 * stabsread.c: Make os9k sections of the code obsolete.
6293 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6294 * config/i386/i386os9k.mt: Make file obsolete.
6295 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6296 (COMMON_OBS): Remove os9kread.o
6297 (SFILES): Remove os9kread.c.
6298 (os9kread.o, remote-os9k.o): Make target obsolete.
6299 * remote-os9k.c: Make file obsolete.
6300 * os9kread.c: Make file obsolete.
6301 * Makefile.in
6302
6303 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6304
6305 * NEWS: Mention that the FR30 has been made obsolete.
6306 * fr30-tdep.c: Make file obsolete.
6307 * config/fr30/tm-fr30.h: Ditto.
6308 * config/fr30/fr30.mt: Ditto.
6309 * configure.tgt: Make fr30-*-elf obsolete.
6310 * MAINTAINERS: Make fr30-elf obsolete.
6311
6312 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6313
6314 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6315 found is not inside a section.
6316
6317 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6318
6319 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6320 strerror().
6321 (pdc_realloc): Use xrealloc() instead of realloc().
6322
6323 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6324
6325 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6326 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6327 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6328 macros.
6329
6330 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6331
6332 * aix-thread.c (ptrace_check): Eliminate goto.
6333 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6334 problem.
6335
6336 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6337
6338 * aix-thread.c (gdbcmd.h): Include.
6339 (DEBUG, DBG, DBG2, dbg): Eliminate.
6340 (debug_aix_thread): New static global.
6341 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6342 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6343 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6344 invocations to DBG and DBG2 macros to test against
6345 ``debug_aix_thread'' and call fprintf_unfiltered().
6346 (_initialize_aix_thread): Add new command "set debug aix-thread".
6347
6348 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6349
6350 From Gerhard Tonn <TON@de.ibm.com>:
6351 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6352 instead of supply_register.
6353
6354 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6355
6356 * dwarf2cfi.c: Include "gdb_assert.h".
6357 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6358 non-NULL.
6359 (update_context): Do not use __func__. Add missing ``break''.
6360 (update_context): Do not use __func__.
6361
6362 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6363
6364 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6365 and its setting. Set gdbarch instruction printing functions
6366 directly. For non-rs6000 case use new function
6367 gdb_print_insn_powerpc.
6368 (gdb_print_insn_powerpc): New function.
6369
6370 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6371
6372 * NEWS: Mention that the d30v has been marked obsolete.
6373 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6374 * configure.tgt: Mark d30v-*-* as obsolete.
6375 * d30v-tdep.c: Mark file as obsolete.
6376 * config/d30v/d30v.mt: Ditto.
6377 * config/d30v/tm-d30v.h: Ditto.
6378
6379 2002-07-13 Aidan Skinner <aidan@velvet.net>
6380
6381 * ada-tasks.c (add_task_entry): replace calls to
6382 malloc() with xmalloc
6383 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6384
6385 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6386 ada_finish_decode_line_1, all_sals_for_line
6387 ada_breakpoint_rewrite): replace calls to free() with xfree()
6388
6389 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6390
6391 From Nicholas Duffek (with minor changes by Martin Hunt,
6392 Louis Hamilton, and Kevin Buettner):
6393 * aix-thread.c: New file.
6394
6395 2002-07-12 Petr Sorfa <petrs@caldera.com>
6396
6397 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6398 complaint for invalid attribute class or form.
6399 (read_func_scope): DW_AT_frame_base
6400 better handling of DW_AT_block*.
6401 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6402 better handling of DW_AT_block*.
6403 (read_common_block): DW_AT_location
6404 better handling of DW_AT_block*.
6405 (read_partial_die): DW_AT_location better handling
6406 of DW_AT_block*.
6407 (new_symbol): DW_AT_external better handling of
6408 DW_AT_block*. Proper initialization of variable
6409 "addr".
6410 (attr_form_is_block): New function that returns true
6411 if the attribute's form is of DW_FORM_block*.
6412
6413 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6414
6415 * valops.c (find_method_list): Remove comment about
6416 removed STATIC_MEMFUNCP argument.
6417 (value_find_oload_method_list): Likewise.
6418
6419 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6420
6421 From Nicholas Duffek:
6422 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6423 target_new_objfile_hook.
6424
6425 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6426
6427 From Nicholas Duffek:
6428 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6429 csect.
6430
6431 2002-07-12 Andrew Cagney <cagney@redhat.com>
6432
6433 * MAINTAINERS: Mention --enable-sim-build-warnings.
6434 (m68hc11-elf): Disable sim build warnings.
6435 (m32r-elf): Mark as broken obsolete candidate.
6436 (x86_64-linux-gnu): Mark as buildable with -Werror.
6437 (arm-elf): Change -w to ``,'' which enables warnings but not
6438 -Werror.
6439
6440 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6441
6442 * bcache.h: Update copyright.
6443 (struct bstring, struct bcache): Move definition to "bcache.c".
6444 Replaced by opaque declaration.
6445 (bcache_xfree): Replace free_bcache.
6446 (bcache_xmalloc, bcache_memory_used): Declare.
6447
6448 * bcache.c: Update copyright.
6449 (struct bstring, struct bcache): Moved to here from "bcache.h".
6450 Update comments.
6451 (bcache_xmalloc, bcache_memory_used): New functions.
6452 (bcache_xfree): Replace function free_bcache.
6453
6454 * Makefile.in (objfiles.o): Add $(bcache_h).
6455 (objfiles_h): Remove $(bcache_h).
6456 (symfile.o): Add $(bcache_h).
6457
6458 * symmisc.c: Update copyright.
6459 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6460 (print_objfile_statistics): Use bcache_memory_used.
6461
6462 * symfile.c: Include "bcache.h".
6463 (reread_symbols): Use bcache_xfree.
6464 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6465 (add_psymbol_to_list): Pass psymbol_cache by value.
6466 (add_psymbol_with_dem_name_to_list): Ditto.
6467
6468 * objfiles.h: Update copyright.
6469 (struct bcache): Declare opaque. Do not include "bcache.h".
6470 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6471 bcache'' pointers.
6472 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6473
6474 * objfiles.c: Include "bcache.h". Update copyright.
6475 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6476 macro_cache.
6477 (free_objfile): Use bcache_xfree.
6478
6479 2002-07-11 Grace Sainsbury <graces@redhat.com>
6480
6481 * monitor.c (monitor_fetch_register): Make name a constant.
6482 (monitor_store_register): Same.
6483
6484 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6485
6486 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6487 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6488 (finish_block) For non-function blocks, hash the symbol table. For
6489 function blocks, mark the symbol table as unhashed.
6490 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6491 (msymbol_hash_iw): Likewise.
6492 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6493 value.
6494 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6495 (lookup_minimal_symbol): Likewise for both.
6496 * symtab.h (struct block): Add `hashtable' flag. Comment the
6497 hashtable.
6498 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6499 (ALL_BLOCK_SYMBOLS): Update.
6500 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6501 (struct symbol): Add `hash_next' pointer.
6502 * symtab.c (lookup_block_symbol): Search using the hash table when
6503 possible.
6504 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6505 (search_symbols, find_addr_symbol): Likewise.
6506
6507 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6508 (read_dst_symtab): Likewise.
6509 * jv-lang.c (get_java_class_symtab): Likewise.
6510 * mdebugread.c: Include "gdb_assert.h".
6511 (shrink_block): Assert that the block being modified is not hashed.
6512 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6513 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6514 symbols.
6515 (dump_symtab): Recognize hashed blocks.
6516 * printcmd.c (print_frame_args): Assert that function blocks do not
6517 have hashed symbol tables.
6518 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6519 (fill_in_ada_prototype, debug_print_block): Likewise.
6520 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6521
6522 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6523
6524 * stack.c (print_frame): Use result of frame_address_in_block()
6525 instead of fi->pc when evaluating symbols.
6526 (backtrace_command_1): Ditto.
6527
6528 2002-07-11 Andrew Cagney <cagney@redhat.com>
6529
6530 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6531 Make static.
6532
6533 * arm-tdep.c (arm_register_name): Make return type constant.
6534
6535 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6536
6537 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6538 prototype.
6539 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6540 * s390-tdep.c (s390_fp_regnum): Ditto.
6541 (s390_read_fp): Ditto.
6542 (s390_pop_frame): Ditto.
6543 (_initialize_s390_tdep): Ditto.
6544 * remote.c (get_remote_state): Ditto.
6545 * procfs.c (mappingflags): Ditto.
6546 * memattr.c (_initialize_mem): Ditto.
6547 * mcore-tdep.c (mcore_pop_frame): Ditto.
6548 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6549 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6550 * language.c (set_case_str): Ditto.
6551 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6552 * frv-tdep.c (new_variant): Ditto.
6553 (frv_stopped_data_address): Ditto.
6554 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6555 (context_alloc): Ditto.
6556 (frame_state_alloc): Ditto.
6557 (unwind_tmp_obstack_init): Ditto.
6558 (unwind_tmp_obstack_free): Ditto.
6559 (cfi_read_fp): Ditto.
6560 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6561 (cris_pop_frame): Ditto.
6562 * c-lang.c (scanning_macro_expansion): Ditto.
6563 (finished_macro_expansion): Ditto.
6564 (c_preprocess_and_parse): Ditto.
6565 * gdbarch.sh: Ditto.
6566 * gdbarch.h, gdbarch.c: Regenerate.
6567 * config/mn10200/tm-mn10200.h: Adjust indentation.
6568 * target.c: Adjust indentation.
6569 * symtab.h: Adjust indentation.
6570 * stabsread.h: Adjust indentation.
6571 * remote-es.c: Adjust indentation.
6572 * os9kread.c: Adjust indentation.
6573
6574 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6575
6576 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6577 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6578
6579 2002-07-10 Grace Sainsbury <graces@redhat.com>
6580
6581 * NEWS: Mention m68k, mcore multi-arching.
6582 * MAINTAINERS: Change status of m68k, mcore to reflect
6583 multi-arching.
6584
6585 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6586
6587 * valops.c (find_overload_match): Free oload_syms.
6588
6589 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6590
6591 Define HAVE_SYS_PROC_H if sys/proc.h exists
6592 * configure.in: Add check for sys/proc.h
6593 * config.in: Regenerate.
6594 * configure: Regenerate.
6595
6596 2002-07-09 Grace Sainsbury <graces@redhat.com>
6597
6598 * config/m68k/tm-m68k.h: Remove macros wrapped in
6599 #if !GDB_MULTI_ARCH.
6600
6601 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6602
6603 * config.in, configure: Regenerate.
6604
6605 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6606
6607 * dwarf2cfi.c: Include "gcore.h".
6608 (execute_stack_op): Fix implementation of the
6609 DW_OP_deref and DW_OP_deref_size operators by letting do their
6610 lookup in the target.
6611
6612 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6613
6614 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6615 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6616 tdep->sc_sp_offset.
6617
6618 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6619
6620 Fix PR gdb/595, gdb/602
6621 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6622 Don't call value_cast, just read the vtable pointer; update comments
6623 to match.
6624
6625 2002-07-05 Grace Sainsbury <graces@redhat.com>
6626
6627 * config/mcore/tm-mcore.h: Remove file.
6628 * config/mcore/mcore.mt: Remove definition of TM_FILE
6629 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6630
6631 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6632
6633 * i386bsd-tdep.c: Include "gdb_string.h".
6634
6635 2002-07-04 Grace Sainsbury <graces@redhat.com>
6636
6637 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6638 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6639 mcore-tdep.
6640 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6641 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6642 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6643 (RETVAL_REGNUM): Move macros from tm-mcore.h
6644 (mcore_reg_struct_has_addr): New function.
6645 (mcore_gdbarch_init): Added initializations for the macros removed
6646 from tm-mcore.h.
6647
6648 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6649
6650 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6651 traditonal string branding within the ELF header.
6652
6653 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6654
6655 * symtab.c (remove_params): New function.
6656 (make_symbol_overload_list): Use it instead of cplus_demangle.
6657 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6658
6659 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6660
6661 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6662
6663 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6664 New variables.
6665 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6666 and tdep->sigtramp_end.
6667 * i386obsd-nat.c: New file.
6668 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6669
6670 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6671 Don't call get_current_frame().
6672
6673 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6674
6675 * i386-nat.c (child_post_startup_inferior): New function
6676 calling i386_cleanup_dregs if
6677 I386_USE_GENERIC_WATCHPOINTS is defined.
6678 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6679 conditional to acknowledge that i386-nat.c has its
6680 own child_post_startup_inferior function.
6681
6682 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6683
6684 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6685 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6686 instead of MAX_REGISTER_RAW_SIZE.
6687 (i386_extract_return_value, i386_extract_struct_value_address):
6688 Convert to use regcache.
6689 (i386_gdbarch_init): Set max_register_raw_size and
6690 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6691 Set extract_return_value and extract_struct_value_address instead
6692 of their deprecated variants.
6693
6694 Convert i386 target to generic dummy frames.
6695 * i386-tdep.c: Include "symfile.h".
6696 (i386_frameless_signal_p): Consider a function to be frameless if
6697 the pc points at the first instruction of the function.
6698 (i386_frame_chain): Handle (generic) call dummies.
6699 (i386_frame_saved_pc): Likewise.
6700 (i386_frame_init_saved_regs): Remove code dealing with call
6701 dummies on the stack.
6702 (i386_push_dummy_frame): Removed.
6703 (i386_call_dummy_words): Removed.
6704 (i386_fix_call_dummy): Removed.
6705 (i386_push_return_address): New function.
6706 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6707 parameter, and don't call get_current_frame.
6708 (i386_pop_frame): New function.
6709 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6710 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6711 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6712 call_dummy_length to 0, set call_dummy_words to NULL, set
6713 sizeof_call_dummy_words to 0, set fix_call_dummy to
6714 generic_fix_call_dummy, set pc_in_call_dummy to
6715 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6716 generic_push_dummy_frame, set push_return_address to
6717 i386_push_return_address and set frame_chain_valid to
6718 generic_file_frame_chain_valid.
6719
6720 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6721
6722 * gdbarch.sh (struct regcache): Add opaque declaration.
6723 (EXTRACT_RETURN_VALUE): New architecture method.
6724 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6725 * gdbarch.h, gdbarch.c: Regenerate.
6726 * arch-utils.c (legacy_extract_return_value): New function.
6727 * arch-utils.h (legacy_extract_return_value): Declare.
6728 * values.c (value_being_returned): Re-enable code handling
6729 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6730 deprecated_grub_regcache_for_registers call to block handling
6731 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6732 (EXTRACT_RETURN_VALUE): Do not define.
6733
6734 2002-07-03 Grace Sainsbury <graces@redhat.com>
6735
6736 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6737 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6738 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6739 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6740 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6741 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6742 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6743 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6744 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6745 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6746 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6747 argument so the function fits the prototype in the architecture
6748 vector.
6749 (mcore_pop_frame): Remove argument so the function fits the
6750 prototype. Use get_current_frame instead of the argument.
6751 (mcore_push_arguments): Change type of struct_return so the
6752 function can be used in the architecture vector.
6753 (mcore_store_struct_return): Add.
6754 (mcore_frame_init_saved_regs): Add.
6755 (mcore_gdbarch_init): Add function calls to replace the macros
6756 removed from tm-mcore.h
6757
6758 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6759
6760 * infcmd.c (print_return_value): Remove compatibility code calling
6761 deprecated_grub_regcache_for_registers.
6762
6763 * values.c: Include "regcache.h".
6764 (value_being_returned): Update. Use
6765 deprecated_grub_regcache_for_registers to extract the register
6766 buffer address.
6767 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6768 ``struct regcache''.
6769 * Makefile.in (values.o): Add dependency on $(regcache_h).
6770
6771 * inferior.h (run_stack_dummy): Change type of second parameter to
6772 a ``struct regcache''.
6773 * valops.c (hand_function_call): Change type of retbuf to ``struct
6774 regcache''. Allocate using regcache_xmalloc, clean using
6775 make_cleanup_regcache_xfree.
6776 * infcmd.c (run_stack_dummy): Update. Use
6777 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6778
6779 * regcache.c (do_regcache_xfree): New function.
6780 (make_cleanup_regcache_xfree): New function.
6781 * regcache.h (make_cleanup_regcache_xfree): Declare.
6782
6783 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6784
6785 * event-top.c (command_line_handler): Don't read past
6786 beginning of buffer.
6787
6788 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6789
6790 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6791 struct frame_id.
6792 (varobj_create): Store frame_id for root.
6793 (varobj_gen_name): Use xasprintf.
6794 (varobj_update): Save and restore frame using get_frame_id() and
6795 frame_find_by_id().
6796 (create_child): Use xasprintf.
6797 (new_root_variable): Initialize frame_id.
6798 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6799 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6800 to prevent memory leak.
6801
6802 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6803
6804 * valops.c (hand_function_call): Move declaration of retbuf to
6805 start of function, allocate using malloc, add a cleanup but before
6806 the inf_status cleanup, cleanup the buffer. Rename local variable
6807 old_chain to inf_status_cleanup.
6808
6809 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6810
6811 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6812
6813 * cli/cli-decode.c (cmd_func_p): New function.
6814 (cmd_func): New function.
6815
6816 * command.h: Add cmd_func() and cmd_func_p().
6817
6818 2002-07-03 Grace Sainsbury <graces@redhat.com>
6819
6820 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6821 (REGISTER_SIZE): Remove.
6822 (MAX_REGISTER_RAW_SIZE): Remove.
6823 (REGISTER_VIRTUAL_TYPE): Remove.
6824 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6825 (REGISTER_NAME): Remove.
6826 (USE_GENERIC_DUMMY_FRAMES): Remove.
6827 (CALL_DUMMY): Remove.
6828 (CALL_DUMMY_START_OFFSET): Remove.
6829 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6830 (CALL_DUMMY_LOCATION): Remove.
6831 (FIX_CALL_DUMMY): Remove.
6832 (CALL_DUMMY_ADDRESS): Remove.
6833 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6834 (SAVE_DUMMY_FRAME_TOS): Remove.
6835 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6836 (mcore_register_virtual_type): New function.
6837 (mcore_register_byte): New function.
6838 (mcore_register_size): New function.
6839 (mcore_register_name): New function.
6840 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6841 macros removed from tm-mcore.h.
6842 (mcore_dump_tdep): Add.
6843 (_initialize_mcore_tdep): Add gdbarch_register call.
6844
6845 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6846
6847 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6848 frameless_look_for_prologue, such that we actually call this
6849 function.
6850
6851 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6852
6853 * frame.h (frame_address_in_block): New function.
6854
6855 * blockframe.c (frame_address_in_block): New function extracted
6856 from get_frame_block().
6857 (get_frame_block): Use frame_address_in_block().
6858 (block_innermost_frame): Use frame_address_in_block() to match
6859 the frame pc address against the block boundaries rather than
6860 the frame pc directly. This prevents a failure when a frame pc
6861 is actually a return-address pointing immediately after the end
6862 of the given block.
6863
6864 2002-07-02 Grace Sainsbury <graces@redhat.com>
6865
6866 * MAINTAINERS: Add self under write after approval.
6867
6868 2002-07-02 Grace Sainsbury <graces@redhat.com>
6869
6870 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6871 used in architecture vector. The default is
6872 m68k_local_breakpoint_from_pc.
6873 (m68k_local_breakpoint_from_pc): Add.
6874 (enum): Add register numbers from tm-m68k.h.
6875 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6876 vector.
6877 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6878 GDB_MULTI_ARCH_PARTIAL.
6879 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6880 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6881 m68k-tdep.c.
6882 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6883 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6884 to enum in m68k-tdep.c
6885
6886 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6887
6888 * solib-osf.c (open_map): Compute the list of shared libraries
6889 loaded by the inferior, rather than the list of libraries loaded
6890 by GDB itself. Otherwise, GDB ends up reading the symbols from
6891 the wrong shared libraries...
6892
6893 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6894
6895 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6896 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6897 macros.
6898 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6899 Remove functions.
6900 (FRAMELESS_SIGNAL): Remove function.
6901 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6902 i386_linux_saved_pc_after_call): Removed.
6903 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6904 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6905 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6906
6907 * i386-tdep.c (i386_frameless_signal_p): New function.
6908 (i386_frame_chain): Deal with frameless signals.
6909 (i386_sigtramp_saved_sp): New function.
6910 (i386_frame_saved_pc): Deal with frameless signals.
6911 (i386_saved_pc_after_call): Make sure the correct value is
6912 returned just after entry into a sigtramp.
6913 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6914 i386fbsd4_sc_sp_offset): New variables.
6915 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6916 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6917 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6918 similiar to what we already did for sc_pc_offset.
6919 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6920 tdep->sc_sp_offset.
6921
6922 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6923
6924 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6925
6926 * config/i386/tm-x86-64linux.h: New.
6927 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6928 definitions.
6929 * config/i386/nm-x86-64.h: Rename to ...
6930 * config/i386/nm-x86-64linux.h: ... this one.
6931 * config/i386/x86-64linux.mh: Reflect the above change.
6932
6933 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6934
6935 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6936 with sigcontext_addr. Add sc_sp_offset.
6937 (i386bsd_sigtramp_saved_pc): Remove prototype.
6938 (i386bsd_sicontext_addr): Add prototype.
6939 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6940 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6941 (i386_svr4_sigtramp_saved_pc): Removed.
6942 (i386_svr4_sigcontext_addr): New function.
6943 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6944 Initialize tdep->sigcontext_addr instead. Initialize
6945 tdep->sc_pc_offset and tdep->sc_sp_offset.
6946 (i386_gdbarch_init): Likewise.
6947 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6948 any more.
6949 (i386bsd_sigtramp_saved_pc): Remove function.
6950 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6951 Initialize tdep->sigcontext_addr instead. Initialize
6952 tdep->sc_pc_offset.
6953 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6954 of tdep->sigtramp_saved_pc.
6955 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6956 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6957 instead.
6958
6959 * i386-tdep.c (i386_frameless_function_invocation,
6960 i386_frame_num_args, i386_frame_init_saved_regs,
6961 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6962 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6963 i386_extract_return_value, i386_store_return_value,
6964 i386_extract_struct_value_address, i386_register_virtual_type,
6965 i386_register_convertible, i386_register_convert_to_virtual,
6966 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6967 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6968 static.
6969
6970 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6971
6972 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6973
6974 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6975 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6976 this macro. Include "value.h".
6977
6978 2002-06-30 Aidan Skinner <aidan@velvet.net>
6979
6980 * ada-exp.tab.c: remove as it's a generated file
6981 * ada-lex.c: remove as it's a generated file
6982
6983 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6984
6985 * config/i386/tm-i386.h (struct frame_info, struct
6986 frame_saved_regs, struct value, struct type): Remove forward
6987 declarations.
6988
6989 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6990 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6991 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6992 (FILL_FPXREGSET): Define.
6993
6994 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6995
6996 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6997 i[3456]86-*-netbsd* case.
6998 * config/i386/tm-obsd.h: Removed.
6999 * config/i386/obsd.mt: Removed.
7000 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7001 core-aout.o.
7002 (MH_CFLAGS): Add -DYYDEBUG=0.
7003
7004 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7005 i386nbsd_sc_pc_offset on OpenBSD too.
7006
7007 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7008 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7009 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7010 define.
7011 * i386bsd-tdep.c: Include "arch-utils.h".
7012 (i386bsd_aout_in_solib_call_trampoline): New function.
7013 (i386bsd_init_abi): Set in_solib_call_trampoline to
7014 i386bsd_aout_in_solib_call_trampoline.
7015 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7016 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7017
7018 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7019
7020 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7021 (struct obstack, struct bcache): Add opaque declarations.
7022 * Makefile.in (macrotab_h): Update
7023
7024 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7025
7026 * blockframe.c (generic_find_dummy_frame): Change return type to
7027 ``struct regcache''.
7028 (struct dummy_frame): Replace field ``registers'' with regcache, a
7029 struct regcache object.
7030 (generic_find_dummy_frame): Update.
7031 (generic_push_dummy_frame): Update. Use regcache_xfree,
7032 regcache_xmalloc and regcache_cpy.
7033 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7034 regcache_xfree.
7035 (deprecated_generic_find_dummy_frame): Update.
7036 (generic_read_register_dummy): Update. Use
7037 regcache_read_as_address.
7038 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7039 (generic_get_saved_register): Update. Use regcache_read.
7040
7041 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7042
7043 * Makefile.in (objfiles_h): Add $(bcache_h).
7044 * objfiles.h: Include "bcache.h".
7045
7046 * Makefile.in (symtab_h): Remove $(bcache_h).
7047 * symtab.h: Do not include "bcache.h".
7048
7049 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7050
7051 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7052 generic_func_frame_chain_valid.
7053
7054 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7055
7056 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7057 * config/i386/tm-fbsd.h: Likewise.
7058
7059 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7060
7061 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7062 generic_unwind_get_saved_register.
7063
7064 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7065
7066 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7067 * regcache.c (supply_register): Add missing argument to
7068 register_buffer call.
7069
7070 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7071
7072 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7073 Solaris /bin/grep does not not like it. From Peter Schauer.
7074
7075 2002-06-26 Tom Tromey <tromey@redhat.com>
7076
7077 * command.h (add_setshow_cmd): Declare.
7078 (add_setshow_cmd_full): Declare.
7079 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7080 returns void. Use add_setshow_cmd_full.
7081 (add_setshow_cmd_full): New function.
7082 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7083 (add_setshow_boolean_cmd): Likewise.
7084
7085 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7086
7087 * config/vax/tm-vax.h: Protect from multiple inclusion.
7088 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7089 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7090 * config/vax/tm-vaxbsd.h: ...here. New file.
7091 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7092
7093 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7094
7095 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7096 (BELIEVE_PCC_PROMOTION): Remove.
7097 (AP_REGNUM): Move to...
7098 * config/vax/nm-vax.h: ...here.
7099 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7100 (vax_breakpoint_from_pc): New function.
7101 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7102 and gdbarch_believe_pcc_promotion.
7103
7104 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7105
7106 * Makefile.in (vax_tdep_h): Define.
7107 (vax-tdep.o): Use $(vax_tdep_h).
7108 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7109 (vax_dump_tdep): New function.
7110 (_initialize_vax_tdep): Register vax_dump_tdep.
7111 * vax-tdep.h: Include osabi.h.
7112 (struct gdbarch_tdep): New.
7113
7114 2002-06-26 Andrew Cagney <cagney@redhat.com>
7115
7116 * frame.h (deprecated_generic_find_dummy_frame): Rename
7117 generic_find_dummy_frame.
7118 * blockframe.c (generic_find_dummy_frame): Make static.
7119 (deprecated_generic_find_dummy_frame): New function.
7120 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7121 generic_find_dummy_frame with deprecated_find_dummy_frame.
7122 (sh64_nofp_frame_init_saved_regs): Ditto.
7123 (sh_fp_frame_init_saved_regs): Ditto.
7124 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7125 (s390_frame_chain): Ditto.
7126 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7127
7128 2002-06-26 Grace Sainsbury <graces@redhat.com>
7129
7130 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7131 gdbarch vector are at the top.
7132 (NUM_REGS): Remove.
7133 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7134 (FRAME_ARGS_ADDRESS): Remove.
7135 (FRAME_LOCALS_ADDRESS): Remove.
7136 (FRAME_NUM_ARGS): Remove.
7137 (FRAME_ARGS_SKIP): Remove.
7138 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7139 (m68k_gdbarch_init): Add gdbarch initializations for macros
7140 undefined in tm-m68k.h
7141
7142 2002-06-26 Grace Sainsbury <graces@redhat.com>
7143
7144 * monitor.h: Add the function regname to monitor_ops
7145 structure. This way NUM_REGS does not have to be a constant.
7146 * monitor.c (monitor_fetch_register): Added support for regname
7147 function. The function is called if the array regnames is NULL.
7148 (monitor_store_register): Same.
7149 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7150 regnames array.
7151 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7152 cpu32bug_cmds.regname to point to new function.
7153 * abug-rom.c (abug_regname): Same as above.
7154 (init_abug_cmds): Same.
7155 * dbug-rom.c (dbug_regname): Same as above.
7156 (init_dbug_cmds): Same.
7157 * remote-est.c (est_regname): Same.
7158 (init_est_cmds): Same.
7159 * rom68k-rom.c (rom68k_regname): Same.
7160 (init_rom68k_cmds): Same.
7161
7162 2002-06-25 Tom Tromey <tromey@redhat.com>
7163
7164 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7165
7166 2002-06-25 Andrew Cagney <cagney@redhat.com>
7167
7168 * infrun.c (stop_registers): Change variable's type to ``struct
7169 regcache'''.
7170 (xmalloc_inferior_status): Delete function.
7171 (free_inferior_status): Delete function.
7172 (normal_stop): Use regcache_cpy.
7173 (struct inferior_status): Change type of fields ``stop_registers''
7174 and ``registers'' to ``struct regcache''.
7175 (write_inferior_status_register): Use regcache_write.
7176 (save_inferior_status): Instead of calling
7177 xmalloc_inferior_status, allocate the inf_status buffer directly.
7178 Use regcache_dup_no_passthrough and regcache_dup to save the
7179 buffers.
7180 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7181 Replace the stop_registers regcache instead of overriding it. Use
7182 regcache_xfree. Instead of calling free_inferior_status, xfree
7183 the buffer directly.
7184 (discard_inferior_status): Use regcache_xfree. Instead of calling
7185 free_inferior_status, xfree the buffer directly.
7186 (build_infrun): Use regcache_xmalloc.
7187 (_initialize_infrun): Delete redundant call to build_infrun.
7188
7189 * Makefile.in (infcmd.o): Add $(regcache_h).
7190
7191 * infcmd.c: Include "regcache.h".
7192 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7193 obtain the address of `stop_registers' register buffer.
7194 (print_return_value): Ditto.
7195
7196 * inferior.h (struct regcache): Add opaque declaration.
7197 (stop_registers): Change variable's declared type to ``struct
7198 regcache''.
7199
7200 2002-06-24 Tom Tromey <tromey@redhat.com>
7201
7202 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7203 * target.c (initialize_targets): Fixed typo in
7204 trust-readonly-sections `show' documentation.
7205
7206 * main.c: Marked all strings with _().
7207
7208 2002-06-24 Don Howard <dhoward@redhat.com>
7209
7210 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7211 that means max CORE_ADDR+1.
7212 (lookup_mem_region): Ditto.
7213 (mem_info_command): Ditto.
7214
7215 2002-06-24 Grace Sainsbury <graces@redhat.com>
7216
7217 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7218 (REGISTER_BYTES_OK): Remove.
7219 (REGISTER_BYTES): Remove.
7220 (STORE_STRUCT_RETURN): Remove.
7221 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7222 (STORE_RETURN_VALUE): Remove.
7223 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7224 (FRAME_CHAIN): Remove.
7225 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7226 (FRAME_SAVED_PC): Remove.
7227 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7228 (m68k_store_struct_return): Add.
7229 (m68k_deprecated_extract_return_value): Add.
7230 (m68k_deprecated_extract_struct_value_address): Add.
7231 (m68k_store_return_value): Add.
7232 (m68k_frame_chain): Add.
7233 (m68k_frameless_function_invocation): Add.
7234 (m68k_frame_saved_pc): Add.
7235 (m68k_gdbarch_init): added set_gdbarch calls for new
7236 functions and deleted macros.
7237
7238 2002-06-23 Tom Tromey <tromey@redhat.com>
7239
7240 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7241 (ALLDEPFILES): Likewise.
7242 (udiheaders): Removed.
7243 (udip2soc.o): Likewise.
7244 (udi2go32.o): Likewise.
7245 (udr.o): Likewise.
7246 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7247
7248 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7249
7250 * infrun.c (_initialize_infrun): Delete unnecessary call to
7251 build_infrun.
7252
7253 * regcache.h: Update comments describing the regcache_cpy family
7254 of functions.
7255 (regcache_save, regcache_restore): Delete declaration.
7256 (regcache_save_no_passthrough): Delete declaration.
7257 (regcache_restore_no_passthrough): Delete declaration.
7258 * regcache.c (regcache_save): Delete function.
7259 (regcache_save_no_passthrough): Delete function.
7260 (regcache_restore): Delete function.
7261 (regcache_restore_no_passthrough): Delete function.
7262
7263 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7264
7265 * config/m68k/tm-m68k.h: Fix typo.
7266 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7267 (m68k_frame_init_saved_regs): Declare.
7268
7269 2002-06-21 Jim Blandy <jimb@redhat.com>
7270
7271 Remove some vestiges of Harris 88k support.
7272 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7273 register numbering quirk.
7274 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7275 odd symbols occurring in Harris 88k ELF targets.
7276
7277 2002-06-21 Tom Tromey <tromey@redhat.com>
7278
7279 * gdb_locale.h: New file.
7280 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7281 (defs_h): Added gdb_locale.h.
7282 * configure, config.in: Rebuilt.
7283 * configure.in (PACKAGE): Define.
7284 * defs.h: Include gdb_locale.h.
7285 * main.c (captured_main): Call setlocale, bindtextdomain,
7286 textdomain.
7287
7288 2002-06-21 Dave Brolley <brolley@redhat.com>
7289
7290 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7291 * config/frv/frv.mt: New file.
7292 * config/frv/tm-frv.h: New file.
7293 * configure.tgt: Support frv-*-*.
7294 * Makefile.in (frv-tdep.o): New target.
7295 * frv-tdep.c: New file.
7296 * NEWS: Mention frv.
7297
7298 2002-06-21 Dave Brolley <brolley@redhat.com>
7299
7300 * MAINTAINERS: Add self to "Write After Approval" list.
7301
7302 2002-06-21 Grace Sainsbury <graces@redhat.com>
7303
7304 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7305 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7306 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7307 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7308 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7309
7310 * m68k-tdep.c: Include arch-utils.h
7311 (m68k_register_raw_size): Add.
7312 (m68k_register_virtual_size): Add.
7313 (m68k_register_virtual_type): Add.
7314 (m68k_register_name): Add.
7315 (m68k_stack_align): Add.
7316 (m68k_register_byte): Add.
7317 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7318 tm-m68k.h.
7319
7320 2002-06-21 Grace Sainsbury <graces@redhat.com>
7321
7322 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7323 m68k_find_saved_regs.
7324 (m68k_pop_frame): Removed saved_regs structure, and replaced
7325 references to it with frame->saved_regs.
7326 (m68k_gdbarch_init): Added function calls to initialize the
7327 gdbarch structure.
7328 (m68k_fix_call_dummy): Add.
7329 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7330 (CALL_DUMMY): Remove.
7331 (CALL_DUMMY_LENGTH): Remove.
7332 (CALL_DUMMY_START_OFFSET): Remove.
7333 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7334 (FIX_CALL_DUMMY): Remove.
7335 (PUSH_DUMMY_FRAME): Remove.
7336 (POP_FRAME): Remove.
7337
7338 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7339
7340 * parse.c (parse_fprintf): New function used to avoid calls to
7341 fprintf in bison parser generated debug code.
7342 * parser-defs.h: Declaration of new parse_fprintf function.
7343 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7344 Set YYDEBUG to 1 by default.
7345 Set YYFPRINTF as parse_fprintf.
7346
7347 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7348
7349 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7350 encoding anymore.
7351 (pointer_encoding, enum ptr_encoding): New.
7352 (execute_cfa_program): Take care about pointer encoding.
7353 (dwarf2_build_frame_info): Only call parse_frame_info for
7354 .debug_frame and .eh_frame.
7355 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7356 fixed augmentation handling, added relative addressing,
7357 ignore duplicate FDEs. Added comments.
7358 * dwarf2cfi.c: Reindented.
7359
7360 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7361
7362 * event-top.c (command_handler): Don't use space_at_cmd_start
7363 unless there is sbrk() on the host. Assign time and space data
7364 to union fields of the appropriate length.
7365
7366 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7367
7368 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7369 x86_64_register_name. Return type changed to 'const char *'.
7370 (x86_64_register_name2nr): Rename to x86_64_register_number.
7371 (x86_64_gdbarch_init): Update to reflect the change.
7372 * x86-64-tdep.h: Ditto.
7373 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7374 (supply_fpregset): Ditto.
7375
7376 2002-06-19 Andrew Cagney <cagney@redhat.com>
7377
7378 * regcache.h: Update copyright.
7379 (struct regcache, struct gdbarch): Add opaque declarations.
7380 (current_regcache): Declare global variable.
7381 (regcache_read, regcache_write): Add gdbarch parameter.
7382 (regcache_save, regcache_save_no_passthrough)
7383 (regcache_restore, regcache_restore_no_passthrough)
7384 (regcache_dup, regcache_dup_no_passthrough)
7385 (regcache_cpy, regcache_cpy_no_passthrough)
7386 (deprecated_grub_regcache_for_registers)
7387 (deprecated_grub_regcache_for_register_valid)
7388 (regcache_valid_p): Add function declarations.
7389
7390 * regcache.c: Update copyright.
7391 (regcache_descr_handle): New global variable.
7392 (struct regcache_descr): Define.
7393 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7394 (regcache_descr, xfree_regcache_descr): New functions.
7395 (struct regcache): Define.
7396 (regcache_xmalloc, regcache_xfree): New functions.
7397 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7398 (regcache_dup, regcache_dup_no_passthrough): New functions.
7399 (regcache_valid_p, regcache_read_as_address): New functions.
7400 (deprecated_grub_regcache_for_registers): New function.
7401 (deprecated_grub_regcache_for_register_valid): New function.
7402 (current_regcache): New global variable.
7403 (register_buffer): Add regcache parameter. Update calls.
7404 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7405 (read_register_gen, write_register_gen): Update register_buffer
7406 call. Test for legacy_p instead of gdbarch_register_read_p or
7407 gdbarch_register_write_p.
7408 (regcache_collect): Update register_buffer call.
7409 (build_regcache): Rewrite. Use deprecated grub functions.
7410 (regcache_save, regcache_save_no_passthrough): New functions.
7411 (regcache_restore, regcache_restore_no_passthrough): New
7412 functions.
7413 (_initialize_regcache): Create the regcache_data_handle. Swap
7414 current_regcache global variable.
7415
7416 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7417 parameter to regcache_read and regcache_write calls.
7418 (sh4_register_read): Ditto.
7419 (sh64_pseudo_register_read): Ditto.
7420 (sh64_register_read): Ditto.
7421 (sh_pseudo_register_write): Ditto.
7422 (sh4_register_write): Ditto.
7423 (sh64_pseudo_register_write): Ditto.
7424 (sh64_register_write): Ditto.
7425
7426 * defs.h (XCALLOC): Define.
7427
7428 2002-06-19 Grace Sainsbury <graces@redhat.com>
7429
7430 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7431 * m68k-tdep.c (m68k_gdbarch_init): Added.
7432 (m68k_dump_tdep): Added.
7433
7434 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7435
7436 * ada-lang.c (fill_in_ada_prototype): Update comment.
7437
7438 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7439
7440 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7441 MIPS_ABI_LAST.
7442 (mips_abi_string, mips_abi_strings): New.
7443 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7444 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7445 tdep->mips_abi_string. Honor mips_abi_string. Default to
7446 O32 if no ABI is found.
7447 (mips_dump_tdep): Use mips_abi_strings.
7448 (mips_abi_update): New function.
7449 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7450 ``set mips abi'' and ``show mips abi''. Check the size of
7451 mips_abi_strings.
7452
7453 2002-06-19 Andrew Cagney <cagney@redhat.com>
7454
7455 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7456 constant.
7457
7458 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7459
7460 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7461 current frame using only the first stack size adjustment. All
7462 subsequent size adjustments are not considered to be part of
7463 the "static" part of the current frame.
7464 Compute the address of the saved registers relative to the
7465 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7466 in use in this frame.
7467
7468 2002-06-18 Don Howard <dhoward@redhat.com>
7469
7470 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7471 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7472 suggesting this solution.
7473
7474 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7475
7476 * config/romp/xm-rtbsd.h: Delete file.
7477 * config/romp/rtbsd.mh: Delete file.
7478
7479 2002-06-18 Keith Seitz <keiths@redhat.com>
7480
7481 * breakpoint.c (condition_command): Post breakpoint_modify
7482 when a condition is added to an existing breakpoint.
7483 (commands_command): Likewise for commands.
7484 (set_ignore_count): Likewise for ignore counts.
7485 If no tty, do not simply return, still need to send event
7486 notification.
7487 (ignore_command): Only print a newline if the command came
7488 from a tty.
7489 Don't call breakpoints_changed, since this is now properly
7490 handled by set_ignore_count.
7491
7492 2002-06-18 Andrew Cagney <cagney@redhat.com>
7493
7494 * MAINTAINERS: Note that cris-elf target can be compiled with
7495 -Werror.
7496 * cris-tdep.c (cris_register_name): Make return type constant.
7497 (cris_breakpoint_from_pc): Ditto.
7498
7499 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7500
7501 * frame.h (struct frame_info): Change type of context to
7502 'struct context'.
7503
7504 2002-06-17 Andrew Cagney <cagney@redhat.com>
7505
7506 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7507 pointer.
7508 * gdbarch.h, gdbarch.c: Regenerate.
7509 * config/mips/tm-mips.h (mips_register_name): Update.
7510 * i386-tdep.h (i386_register_name): Update.
7511 * mips-tdep.c (mips_register_name): Update
7512 * alpha-tdep.c (alpha_register_name): Update.
7513 * arch-utils.c (legacy_register_name): Update.
7514 * arch-utils.h (legacy_register_name): Update.
7515 * avr-tdep.c (avr_register_name): Update.
7516 * ia64-tdep.c (ia64_register_name): Update.
7517 * i386-tdep.c (i386_register_name): Update.
7518 * sparc-tdep.c (sparc32_register_name): Update.
7519 (sparc64_register_name): Update.
7520 (sparclite_register_name): Update.
7521 (sparclet_register_name): Update.
7522 * sh-tdep.c (sh_generic_register_name): Update.
7523 (sh_sh_register_name): Update.
7524 (sh_sh3_register_name): Update.
7525 (sh_sh3e_register_name): Update.
7526 (sh_sh_dsp_register_name): Update.
7527 (sh_sh3_dsp_register_name): Update.
7528 (sh_sh4_register_name): Update.
7529 (sh_sh64_register_name): Update.
7530 * s390-tdep.c (s390_register_name): Update.
7531 * rs6000-tdep.c (rs6000_register_name): Update.
7532 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7533 (ns32k_register_name_32382): Update.
7534 * d10v-tdep.c (d10v_ts2_register_name): Update.
7535 (d10v_ts3_register_name): Update.
7536 * xstormy16-tdep.c (xstormy16_register_name): Update.
7537 * vax-tdep.c (vax_register_name): Update.
7538 * v850-tdep.c (v850_register_name): Update.
7539 * m68hc11-tdep.c (m68hc11_register_name): Update.
7540 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7541 (am33_register_name): Update.
7542
7543 2002-06-17 Grace Sainsbury <graces@redhat.com>
7544
7545 * m68k-tdep.c: Reindented.
7546
7547 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7548
7549 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7550 list of predefined types.
7551
7552 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7553
7554 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7555 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7556 REGISTER_CONVERT_TO_RAW): Remove defines.
7557 (i386_register_virtual_type, i386_register_convertible,
7558 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7559 Remove prototypes.
7560 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7561 macros mentioned above.
7562
7563 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7564 (i386lynx_saved_pc_after_call): Remove prototype.
7565 * i386ly-tdep.c: Include "i386-tdep.h".
7566 (i386lynx_saved_pc_after_call): Make static. Use
7567 read_memory_nobpt instead of read_memory. Use
7568 read_memory_unsigned_integer instead of read_memory_integer.
7569 (i386lynx_init_abi): New function.
7570 (i386lynx_coff_osabi_sniffer): New function.
7571 (_initialize_i386bsd_tdep): New function.
7572
7573 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7574 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7575 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7576 (i386_fix_call_dummy): Remove prototype.
7577 * i386-tdep.c (i386_call_dummy_words): New variable.
7578 (i386_gdbarch_init): Adjust for removal of the
7579 macros mentioned above.
7580
7581 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7582
7583 * command.h (add_setshow_auto_boolean_cmd): Replace
7584 add_set_auto_boolean_cmd.
7585 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7586 add_set_auto_boolean_cmd.
7587 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7588 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7589 mask-address'' command.
7590 (show_mask_address): Add cmd parameter.
7591 * remote.c (add_packet_config_cmd): Update. Change type of
7592 set_func and show_func to cmd_sfunc_ftype.
7593 (_initialize_remote): Update `set remote Z-packet'
7594 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7595 (show_remote_protocol_e_packet_cmd): Ditto.
7596 (show_remote_protocol_E_packet_cmd): Ditto.
7597 (show_remote_protocol_P_packet_cmd): Ditto.
7598 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7599 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7600 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7601 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7602 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7603 (show_remote_protocol_Z_packet_cmd): Ditto.
7604 (show_remote_protocol_binary_download_cmd): Ditto.
7605 (show_remote_cmd): Pass NULL to all of above.
7606
7607 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7608
7609 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7610 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7611 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7612 POP_FRAME): Remove defines.
7613 (i386_push_arguments, i386_store_struct_return,
7614 i386_extract_return_value, i386_store_return_value,
7615 i386_extract_struct_value_address, i386_push_dummy_frame,
7616 i386_pop_frame): Renove prototypes.
7617 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7618 macros mentioned above.
7619
7620 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7621
7622 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7623 add_set_boolean_cmd.
7624 (add_setshow_cmd): New function.
7625 * command.h (add_setshow_boolean_cmd): Replace
7626 add_set_boolean_cmd.
7627 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7628 and ``set rdiromatzero''.
7629 * maint.c (_initialize_maint_cmds): Update commented out code.
7630 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7631 * target.c (initialize_targets): Update `set
7632 trust-readonly-sections'.
7633 * remote.c (_initialize_remote): Update `set remotebreak'.
7634
7635 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7636
7637 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7638 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7639 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7640 fit into multi-arch framework.
7641 (i386_breakpoint_from_pc): New function.
7642 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7643 above.
7644
7645 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7646 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7647 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7648 (i386_frameless_function_invocation, i386_frame_num_args,
7649 i386_frame_init_saved_regs): Remove prototypes.
7650 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7651 macros mentioned above.
7652
7653 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7654
7655 * cli/cli-decode.c (set_cmd_cfunc): Update.
7656 (set_cmd_sfunc): Update.
7657 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7658 (set_cmd_sfunc, set_cmd_cfunc): Update.
7659 * cli/cli-decode.h: Update.
7660
7661 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7662
7663 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7664 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7665
7666 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7667
7668 * defs.h (auto_boolean): Declare enum.
7669 * command.h (cmd_auto_boolean): Delete enum.
7670 * mips-tdep.c (mask_address_var): Update.
7671 (mips_mask_address_p): Update.
7672 (show_mask_address): Update.
7673 * remote.c (struct packet_config): Update.
7674 (update_packet_config): Update.
7675 (show_packet_config_cmd): Update.
7676 (packet_ok): Update.
7677 (add_packet_config_cmd): Update.
7678 (_initialize_remote):
7679 * command.h: Update.
7680 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7681 (do_setshow_command): Update.
7682 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7683 * cli/cli-decode.h: Update.
7684
7685 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7686
7687 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7688 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7689 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7690 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7691 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7692 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7693
7694 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7695 list of DJGPP COFF targets.
7696
7697 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7698 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7699 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7700 (FP0_REGNUM): Remove define.
7701 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7702 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7703 (i386_register_virtual_size): Remove protoype.
7704 * i386-tdep.c (i386_register_virtual_size): Removed.
7705 (i386_extract_return_value, i386_store_return_value): Use
7706 FP0_REGNUM instead of NUM_FREGS to determine whether the
7707 floating-point registers are available.
7708 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7709 Adjust for removal of macros mentioned above.
7710
7711 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7712
7713 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7714 comments.
7715 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7716 Remove prototypes.
7717 (supply_gregset, fill_gregset): Remove use of register keyword and
7718 remove declaration for regmap. Use I386_NUM_GREGS instead of
7719 NUM_REGS and NUM_FREGS.
7720 (FPREGSET_FSAVE_OFFSET): Remove.
7721 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7722 NUM_FREGS to determine whether the floating-point registers are
7723 available.
7724
7725 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7726 gnu_store_registers): Replace usage of NUM_GREGS with
7727 I386_NUM_GREGS.
7728
7729 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7730 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7731 usage of NUM_GREGS with I386_NUM_GREGS.
7732
7733 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7734
7735 * i386bsd-nat.c: Include "i386-tdep.h".
7736 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7737 I386_NUM_GREGS.
7738
7739 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7740 and associated comment. They no longer make any sense, since we
7741 don't use this file anymore on Linux.
7742
7743 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7744 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7745 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7746 elements in these arrays.
7747 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7748 MAX_NUM_REGS.
7749
7750 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7751
7752 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7753 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7754
7755 2002-06-14 Andrew Cagney <cagney@redhat.com>
7756
7757 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7758 EXTRACT_RETURN_VALUE.
7759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7760 EXTRACT_STRUCT_VALUE_ADDRESS.
7761 * gdbarch.h, gdbarch.c: Regenerate.
7762
7763 * values.c (value_being_returned): Handle
7764 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7765 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7766
7767 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7768 * arm-tdep.c (arm_gdbarch_init): Update.
7769 * avr-tdep.c (avr_gdbarch_init): Update.
7770 * cris-tdep.c (cris_gdbarch_init): Update.
7771 * d10v-tdep.c (d10v_gdbarch_init): Update.
7772 * ia64-tdep.c (ia64_gdbarch_init): Update.
7773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7774 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7775 * s390-tdep.c (s390_gdbarch_init): Update.
7776 * sh-tdep.c (sh_gdbarch_init): Update.
7777 * s390-tdep.c (s390_gdbarch_init): Update.
7778 * sparc-tdep.c (sparc_gdbarch_init): Update.
7779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7780 * v850-tdep.c (v850_gdbarch_init): Update.
7781 * vax-tdep.c (vax_gdbarch_init): Update.
7782 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7784
7785 * config/arc/tm-arc.h: Update.
7786 * config/d30v/tm-d30v.h: Update.
7787 * config/fr30/tm-fr30.h: Update.
7788 * config/h8300/tm-h8300.h: Update.
7789 * config/h8500/tm-h8500.h: Update.
7790 * config/i386/tm-i386.h: Update.
7791 * config/i386/tm-ptx.h: Update.
7792 * config/i386/tm-symmetry.h: Update.
7793 * config/i960/tm-i960.h: Update.
7794 * config/m32r/tm-m32r.h: Update.
7795 * config/m68k/tm-delta68.h: Update.
7796 * config/m68k/tm-linux.h: Update.
7797 * config/m68k/tm-m68k.h: Update.
7798 * config/m88k/tm-m88k.h: Update.
7799 * config/mcore/tm-mcore.h: Update.
7800 * config/mips/tm-mips.h: Update.
7801 * config/mn10200/tm-mn10200.h: Update.
7802 * config/pa/tm-hppa.h: Update.
7803 * config/pa/tm-hppa64.h: Update.
7804 * config/sparc/tm-sp64.h: Update.
7805 * config/sparc/tm-sparc.h: Update.
7806 * config/sparc/tm-sparclet.h: Update.
7807 * config/z8k/tm-z8k.h: Update.
7808
7809 2002-06-14 Andrew Cagney <cagney@redhat.com>
7810
7811 * Makefile.in (i386_linux_tdep_h): Define.
7812 (i386_tdep_h, i387_tdep_h): Define.
7813 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7814 $(i386_tdep_h) and $(i387_tdep_h).
7815 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7816
7817 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7818
7819 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7820 Already covered by the default.
7821
7822 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7823 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7824 (i386_gdbarch_init): Initialize long_double_format and long_double
7825 bit.
7826
7827 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7828 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7829 Move these to ...
7830 * config/i386/i386sol2.mh: ... here.
7831 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7832 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7833 (SIGCONTEXT_PC_OFFSET): Remove define.
7834 (IN_SIGTRAMP): Remove define.
7835 * i386-sol2-tdep.c: New file.
7836
7837 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7838 * config/i386/tm-i386nw.h: Removed.
7839
7840 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7841 USE_STRUCT_CONVENTION): Remove defines.
7842 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7843 (get_longjmp_target): Remove prototype.
7844 (IN_SIGTRAMP): Remove define.
7845 (i386bsd_in_sigtramp): Remove prototype.
7846 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7847 function. Update comment accordingly
7848 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7849 (FRAME_SAVED_PC): Remove define.
7850 (i386bsd_frame_saved_pc): Remove prototype.
7851 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7852 GET_LONGJMP_TARGET): Remove defines.
7853 (get_longjmp_target): Remove prototype.
7854 (IN_SIGTRAMP): Remove define.
7855 (i386bsd_in_sigtramp): Remove prototype.
7856 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7857 function. Update comment accordingly
7858 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7859 (FRAME_SAVED_PC): Remove define.
7860 (i386bsd_frame_saved_pc): Remove prototype.
7861 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7862 Remove prototype.
7863 (USE_STRUCT_CONVENTION): Remove prototype.
7864 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7865 declaration.
7866 (_initialize_i386bsd_nat): Revise logic to determine some
7867 constants at compile time when compiling a native GDB. Warn if
7868 things don't match up with what we expect.
7869 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7870 Remove variables.
7871 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7872 to use date stored in `struct gdbarch_tdep'.
7873 (i386bsd_sigcontext_offset): Remove varaible.
7874 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7875 stored in `struct gdbarch_tdep'.
7876 (i386bsd_frame_saved_pc): Make static.
7877 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7878 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7879 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7880 i386fbsd4_sc_pc_offset): New variables.
7881 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7882 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7883 functions.
7884 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7885 functions.
7886 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7887 Modify the value of i386fbsd_sigtramp_start and
7888 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7889 i386fbsd_sigtramp_end.
7890 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7891 function.
7892
7893 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7894 define to i386-linux-tdep.h.
7895 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7896 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7897 defines.
7898 (i386_linux_register_name, i386_linux_register_byte,
7899 i386_linux_register_raw_size): Remove prototypes.
7900 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7901 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7902 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7903 TARGET_WRITE_PC): Remove defines.
7904 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7905 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7906 i386_linux_write_pc): Remove prototypes.
7907 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7908 (get_longjmp_target): Remove prototype.
7909 * i386-linux-tdep.h: New file.
7910 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7911 * i386-linux-tdep.c: Include "i386-tdep.h" and
7912 "i386-linux-tdep.h".
7913 (i386_linux_register_name, i386_linux_register_byte,
7914 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7915 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7916 Make static.
7917 (i386_linux_init_abi): New function.
7918 (_initialize_i386_linux_tdep): New function.
7919
7920 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7921 (i386_saved_pc_after_call): Remove prototype.
7922 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7923 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7924 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7925 (i386_register_name, i386_stab_reg_to_regnum,
7926 i386_dwarf_reg_to_regnum): Remove prototypes.
7927 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7928 SIZEOF_SSE_REGS): Remove defines.
7929 (REGISTER_BYTES): Remove define.
7930 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7931 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7932 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7933 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7934 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7935 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7936 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7937 (get_longjmp_target): Remove prototype.
7938 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7939 (sigtramp_saved_pc): Remove define.
7940 (i386v4_sigtramp_saved_pc): Remove prototype.
7941 * config/i386/tm-go32.h (FRAME_CHAIN,
7942 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7943 (i386go32_frame_saved_pc): Remove prototype.
7944 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7945 (get_longjmp_target): Remove prototype.
7946 * i386-tdep.h: Include "osabi.h".
7947 (enum i386_abi): Removed.
7948 (enum struct_return): New enum.
7949 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7950 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7951 sc_pc_offset members.
7952 (i386_gdbarch_register_os_abi): Remove prototype.
7953 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7954 I386_SSE_NUM_REGS): New defines.
7955 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7956 I386_SSE_SIZEOF_REGS): New defines.
7957 (i386_register_name, i386_register_byte, i386_register_raw_size):
7958 New prototypes.
7959 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7960 (i386bsd_sigtramp_saved_pc): New prototype.
7961 * i386-tdep.c: Don't include "elf-bfd.h".
7962 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7963 i386_frame_chain, i386_saved_pc_after_call): Make static.
7964 (i386_frame_saved_pc): Rewrite to call architecture dependent
7965 function to deal with signal handlers. Make static.
7966 (i386go32_frame_saved_pc): Removed.
7967 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7968 Removed.
7969 (i386_get_longjmp_target): New function.
7970 (default_struct_convention, pcc_struct_convention,
7971 reg_struct_convention, valid_conventions, struct_convention): New
7972 variables.
7973 (i386_use_struct_convention): New function.
7974 (i386v4_sigtramp_saved_pc): Renamed to
7975 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7976 (i386_pc_in_sigtramp): New function.
7977 (i386_abi_names): Removed.
7978 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7979 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7980 Removed.
7981 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7982 i386_gdbarch_register_os_abi): Removed.
7983 (struct i386_abi_handler): Removed.
7984 (i386_abi_handler_list): Removed.
7985 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7986 functions.
7987 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7988 i386_nw_init_abi): New functions.
7989 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7990 Use set_gdbarch_xxx() calls instead of relying on macros for a
7991 number of calls.
7992 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7993 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7994 Register the various architecture variants defined in this file.
7995
7996 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7997
7998 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7999 (struct main_type): Remove arg_types member. Update comments for
8000 struct field.
8001 (TYPE_ARG_TYPES): Remove.
8002 (TYPE_FN_FIELD_ARGS): Update.
8003 (smash_to_method_type): Update prototype.
8004
8005 * c-typeprint.c (cp_type_print_method_args): Take method type
8006 instead of argument list. Use new argument layout. Simplify.
8007 (c_type_print_args): Use new argument layout. Simplify.
8008 (c_type_print_base): Update call to cp_type_print_method_args.
8009 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8010 argument; use die->type instead. Update call to
8011 smash_to_method_type.
8012 (read_structure_scope): Update call to dwarf2_add_member_fn.
8013 * gdbtypes.c (allocate_stub_method): Update comment.
8014 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8015 Use new argument layout.
8016 (check_stub_method): Use new argument layout. Don't count
8017 void as an argument.
8018 (print_arg_types): Update comments. Use new argument layout.
8019 (recursive_dump_type): Don't print arg_types member.
8020 * hpread.c (hpread_read_struct_type): Use new argument layout.
8021 (fixup_class_method_type): Likewise.
8022 (hpread_type_lookup): Likewise.
8023 * stabsread.c (read_type): Update calls to read_args and
8024 smash_to_method_type.
8025 (read_args): Use new argument layout. Simplify.
8026 * valops.c (typecmp): Use new argument layout. Update parameters
8027 and comments. Simplify.
8028 (hand_function_call): Use new argument layout.
8029 (search_struct_method): Update call to typecmp.
8030 (find_overload_match): Use new argument layout.
8031
8032 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8033
8034 * NEWS: Mention multithreaded debug support for gdbserver.
8035
8036 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8037
8038 * MAINTAINERS: Mention NEWS.
8039
8040 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8041
8042 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8043 (struct mips_objfile_private, compare_pdr_entries): New.
8044 (non_heuristic_proc_desc): Read the ".pdr" section if it
8045 is present.
8046
8047 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8048
8049 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8050 (arm_debug): New static variable.
8051 (_initialize_arm_tdep): Add ``set debug arm'' command.
8052
8053 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8054
8055 * Makefile.in (sim_arm_h): Define.
8056 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8057 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8058 (arm_register_sim_regno): New function, map an internal REGNUM
8059 onto a simulator register number.
8060 (arm_gdbarch_init): Set register_sim_regno.
8061
8062 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8063
8064 * MAINTAINERS: Add self.
8065
8066 2002-06-11 Jim Blandy <jimb@redhat.com>
8067
8068 * source.c (source_info): Mention whether the symtab has
8069 information about preprocessor macros.
8070
8071 Call the command `info macro', not `show macro'.
8072 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8073 Fix error message.
8074 (_initialize_macrocmd): Register `info_macro_command' in
8075 `infolist', not `showlist'.
8076
8077 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8078
8079 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8080 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8081 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8082 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8083 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8084 unconditionally.
8085 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8086 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8087 (_initialize_mips_tdep): Remove dead code.
8088 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8089 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8090 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8091 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8092 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8093 MIPS_LAST_FP_ARG_REGNUM): Remove.
8094
8095 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8096
8097 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8098 (unwind_tmp_obstack_free, parse_frame_info)
8099 (update_context, cfi_read_fp, cfi_write_fp)
8100 (cfi_frame_chain, cfi_init_extra_frame_info)
8101 (cfi_virtual_frame_pointer): Use the above function.
8102 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8103
8104 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8105
8106 * v850-tdep.c (v850_type_is_scalar): New function.
8107 (v850_use_struct_convention): Match current gcc implementation
8108 as close as possible.
8109 (v850_push_arguments): Fix stack_offset handling. Don't write
8110 struct_addr into register. This is done by v850_store_struct_return.
8111 (v850_extract_return_value): Care for structs.
8112 (v850_store_return_value): Ditto.
8113 (v850_store_struct_return): Actually write address.
8114
8115 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8116
8117 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8118 without debug information too.
8119
8120 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8121
8122 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8123 Make multi-arch pure.
8124 * gdbarch.h, gdbarch.c: Re-generate.
8125 * arm-tdep.c (arm_print_float_info): Update.
8126 * arch-utils.h (default_print_float_info): Update.
8127 * arch-utils.c (default_print_float_info): Update.
8128 * infcmd.c (float_info): Update call.
8129
8130 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8131
8132 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8133 the front of the initialize list.
8134
8135 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8136
8137 * infrun.c (struct inferior_status): Replace fields
8138 selected_frame_address and selected_level with field
8139 selected_frame_id.
8140 (save_inferior_status): Update. Use get_frame_id.
8141 (struct restore_selected_frame_args): Delete.
8142 (restore_selected_frame): Update. Use frame_find_by_id.
8143 (restore_inferior_status): Update.
8144
8145 * breakpoint.h (struct breakpoint): Change type of
8146 watchpoint_frame to frame_id.
8147 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8148 call to get_current_frame.
8149 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8150 get_current_frame.
8151 (watchpoint_check): Use frame_find_by_id.
8152
8153 * frame.h (record_selected_frame): Delete declaration.
8154 * stack.c (record_selected_frame): Delete function.
8155
8156 * frame.h (struct frame_id): Define.
8157 (get_frame_id): Declare.
8158 (frame_find_by_id): Declare.
8159 * frame.c (frame_find_by_id): New function.
8160 (get_frame_id): New function.
8161
8162 2002-06-10 Andrey Volkov <avolkov@transas.com>
8163
8164 * ser-e7kpc.c: Fix duplicated define and call of
8165 _initialize_ser_e7000pc
8166
8167 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8168
8169 * signals/signals.c (target_signal_from_host): Fix #ifdef
8170 SIGRTMIN case.
8171 (do_target_signal_to_host): Likewise.
8172
8173 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * mips-tdep.c (mips_find_abi_section): New function.
8176 (mips_gdbarch_init): Call it.
8177
8178 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8179
8180 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8181 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8182 after Andrew's 2002-06-08 gdbarch change.
8183
8184 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8185
8186 * i386-linux-nat.c (suppy_gregset): Don't supply
8187 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8188 register cache.
8189 (fill_gregset): Don't fetch it under the same circumstances.
8190
8191 2002-06-09 Andrew Cagney <cagney@redhat.com>
8192
8193 * Makefile.in (callback_h): Define.
8194 (remote_sim_h): Update path to remote-sim.h.
8195 (remote-rdp.o): Add $(callback_h).
8196 (remote-sim.o): Use $(callback_h).
8197 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8198 * remote-rdp.c: Include "gdb/callback.h".
8199
8200 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8201
8202 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8203 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8204
8205 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8206
8207 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8208 * rdi-share/serpardr.c: Ditto.
8209 * rdi-share/unixcomm.c: Ditto.
8210 * rdi-share/serdrv.c: Ditto.
8211 * rdi-share/hostchan.h: Ditto.
8212 * rdi-share/hostchan.c: Ditto.
8213 * rdi-share/host.h: Ditto.
8214 * rdi-share/devsw.c: Ditto.
8215
8216 * objfiles.h: Change type of obj_private to void pointer.
8217 * pa64solib.c: Update copyright. Don't include "assert.h", use
8218 strcmp instead of STREQ, use LONGEST, do not use PTR
8219 * somsolib.c: Ditto.
8220
8221 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8222 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8223 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8224
8225 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8226
8227 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8228 (default_get_saved_register): Delete function.
8229 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8230 generic_unwind_get_saved_register.
8231 * gdbarch.h, gdbarch.c: Re-generate.
8232
8233 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8234
8235 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8236 generic_func_frame_chain_valid.
8237 * gdbarch.h, gdbarch.c: Re-generate.
8238 * blockframe.c (generic_func_frame_chain_valid): Only check
8239 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8240 passing FP to PC_IN_CALL_DUMMY.
8241 Fix PR gdb/360.
8242
8243 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8244
8245 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8246 (register_gdbarch_data): Initialize init_p.
8247 (gdbarch_data): Initialize data pointer using the init function.
8248 (init_gdbarch_data): Delete function.
8249 (gdbarch_update_p): Update.
8250 (initialize_non_multiarch): Update.
8251 (struct gdbarch): Add field initialized_p.
8252 * gdbarch.h, gdbarch.c: Re-generate.
8253
8254 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8255
8256 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8257 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8258 better do the things actually here.
8259 * x86-64-tdep.c (x86_64_register_name2nr): New.
8260 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8261 (x86_64_gdbarch_init): Respect the above change.
8262 * x86-64-tdep.h (x86_64_register_name2nr)
8263 (x86_64_register_nr2name): Add prototypes.
8264 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8265
8266 2002-06-06 Michael Snyder <msnyder@redhat.com>
8267
8268 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8269 Delete extra braces and re-indent.
8270 (d10v_store_return_value): Char return values
8271 must be shifted over by one byte in R0.
8272 (d10v_extract_return_value): Delete extra braces, re-indent.
8273
8274 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8275
8276 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8277 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8278 (d10v_integer_to_address): Rewrite.
8279 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8280 the d10v specific functions which take care of converting to the
8281 correct space.
8282
8283 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8284
8285 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8286 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8287
8288 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8289
8290 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8291 includes.
8292 * config/tm-linux.h: Ditto.
8293 * config/alpha/tm-alphalinux.h: Ditto.
8294 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8295 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8296 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8297 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8298 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8299 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8300 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8301 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8302 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8303 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8304 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8305 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8306 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8307 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8308 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8309 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8310 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8311 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8312 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8313 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8314 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8315 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8316 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8317 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8318 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8319 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8320 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8321 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8322 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8323 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8324 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8325 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8326 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8327 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8328 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8329 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8330 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8331
8332 2002-05-04 Aidan Skinner <aidan@velvet.net>
8333
8334 * ada-exp.tab.c: New file
8335 * ada-exp.y: New file
8336 * ada-lang.c: New file
8337 * ada-lang.h: New file
8338 * ada-lex.c: New file
8339 * ada-lex.l: New file
8340 * ada-tasks.c: New file
8341 * ada-typeprint.c: New file
8342 * ada-valprint.c: New file
8343
8344 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8347 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8348
8349 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8350
8351 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8352 insetead of ppc-linux-tdep.o.
8353 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8354 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8355
8356 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8357
8358 2002-05-07 Christian Groessler <chris@groessler.org>
8359 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8360 bit register contents for little endian hosts.
8361
8362 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8363
8364 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8365 any maintainer.
8366
8367 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8368
8369 * gdbarch.h: Regenerate.
8370
8371 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8372
8373 * MAINTAINERS: Add everyone to write-after-approval list.
8374
8375 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8376
8377 * stack.c (frame_info): Use frame_register_unwind instead of
8378 saved_regs. Mention when the SP is on the stack or in a register.
8379
8380 * frame.h (frame_register_unwind_ftype): Define. Document.
8381 (struct frame_info): Add field register_unwind and
8382 register_unwind_cache.
8383 (frame_register_unwind): Declare.
8384 (generic_unwind_get_saved_register): Declare.
8385
8386 * frame.c (frame_register_unwind): New function.
8387 (generic_unwind_get_saved_register): New function.
8388
8389 * blockframe.c (generic_call_dummy_register_unwind): New function.
8390 (frame_saved_regs_register_unwind): New function.
8391 (set_unwind_by_pc): New function.
8392 (create_new_frame): New function.
8393 (get_prev_frame): New function.
8394
8395 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8396
8397 * a29k-share/: Delete directory.
8398 * remote-vx29k.c: Delete file.
8399
8400 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8401
8402 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8403 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8404
8405 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8406
8407 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8408 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8409 (sparc64nbsd-nat.o)
8410 (sparcnbsd-nat.o)
8411 (sparcnbsd-tdep.o): New dependency lists.
8412 * NEWS: Note new UltraSPARC NetBSD native configuration.
8413 * configure.host (sparc64-*-netbsd*): New host.
8414 * configure.tgt (sparc-*-netbsdelf*)
8415 (sparc-*-netbsd*): Set gdb_target to nbsd.
8416 (sparc64-*-netbsd*): New target.
8417 * sparc64nbsd-nat.c: New file.
8418 * sparcnbsd-nat.c: New file.
8419 * sparcnbsd-tdep.c: New file.
8420 * sparcnbsd-tdep.h: New file.
8421 * config/sparc/nbsd.mt: New file.
8422 * config/sparc/nbsd64.mh: New file.
8423 * config/sparc/nbsd64.mt: New file.
8424 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8425 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8426 (HOST_IPC): Remove.
8427 * config/sparc/nbsdaout.mt: Remove.
8428 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8429 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8430 (HOST_IPC): Remove.
8431 * config/sparc/nbsdelf.mt: Remove.
8432 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8433 sparc-nat.c compatiblity defines.
8434 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8435 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8436 * config/sparc/tm-nbsd64.h: New file.
8437 * config/sparc/tm-nbsdaout.h: Remove.
8438 * config/sparc/xm-nbsd.h: Remove.
8439
8440 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8441
8442 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8443 * sparc-tdep.c: Include osabi.h.
8444 (gdbarch_tdep): Add osabi member.
8445 (_initialize_sparc_tdep): Use gdbarch_register.
8446 (sparc_gdbarch_init): Use generic OS ABI framework.
8447 (sparc_dump_tdep): New function.
8448
8449 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8450
8451 * corefile.c (do_captured_read_memory_integer): Return non-zero
8452 result.
8453 (safe_read_memory_integer): Copy result of memory read when
8454 status is non-zero. Also, add comments.
8455
8456 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8457
8458 * Makefile.in (ppc_tdep_h): Define.
8459 (ppc-linux-nat.o)
8460 (ppc-linux-tdep.o)
8461 (rs6000-tdep.o): Use $(ppc_tdep_h).
8462 (ppc-sysv-tdep.o)
8463 (ppcnbsd-nat.o)
8464 (ppcnbsd-tdep.o): New dependency lists.
8465 * ppc-tdep.h: Use generic OS ABI framework.
8466 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8467 (ppc_linux_init_abi): New functions.
8468 (ppc_sysv_abi_broken_use_struct_convention)
8469 (ppc_sysv_abi_use_struct_convention)
8470 (ppc_sysv_abi_push_arguments): Move to...
8471 * ppc-sysv-tdep.c: ...here.
8472 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8473 * rs6000-tdep.c (process_note_abi_tag_sections)
8474 (get_elfosabi): Remove.
8475 (rs6000_gdbarch_init): Use generic OS ABI framework.
8476 (rs6000_dump_tdep): New function.
8477 (_initialize_rs6000_tdep): Use gdbarch_register.
8478 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8479 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8480 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8481 of ppc-linux-tdep.o.
8482 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8483 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8484 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8485 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8486 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8487 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8488
8489 2002-05-29 Jim Blandy <jimb@redhat.com>
8490
8491 * macroscope.c (default_macro_scope): Put `void' in empty argument
8492 list.
8493
8494 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8495
8496 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8497 * arch-utils.c: Include "sim-regno.h".
8498 * gdbarch.sh: Don't include "sim-regno.h".
8499 * gdbarch.h, gdbarch.c: Regenerate.
8500 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8501 here.
8502 * arch-utils.h (legacy_register_sim_regno): To here.
8503 * remote-sim.c (legacy_register_sim_regno): Move function from
8504 here.
8505 * arch-utils.c (legacy_register_sim_regno): To here.
8506
8507 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8508
8509 * sim-regno.h: New file.
8510 * Makefile.in (sim_regno_h): Define.
8511 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8512 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8513 (legacy_register_sim_regno): New function.
8514 (one2one_register_sim_regno): New function.
8515 (gdbsim_fetch_register): Rewrite.
8516 (gdbsim_store_register): Only store a register when
8517 REGISTER_SIM_REGNO is valid.
8518 * d10v-tdep.c: Include "sim-regno.h".
8519 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8520 (d10v_ts3_register_sim_regno): Ditto.
8521 * gdbarch.sh: Include "sim-regno.h".
8522 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8523 * gdbarch.h, gdbarch.c: Regenerate.
8524 * arch-utils.h (default_register_sim_regno): Delete declaration.
8525 * arch-utils.c (default_register_sim_regno): Delete function.
8526
8527 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8528
8529 * ppcnbsd-nat.c: Rewrite.
8530 * ppcnbsd-tdep.c: New file.
8531 * ppcnbsd-tdep.h: New file.
8532 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8533 solib.o, and solib-svr4.o.
8534 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8535 nbsd-tdep.o, and corelow.o.
8536
8537 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8538
8539 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8540 `tr' and `sed'. Mention that `broken' targets are not expected to
8541 build.
8542
8543 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8544
8545 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8546 Let PC point right after the prologue before looking up symbols.
8547
8548 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8549
8550 * i386-tdep.c (i386_register_virtual_type): Return
8551 builtin_type_vec128i for SSE registers.
8552
8553 * gdbtypes.h (builtin_type_vec128i): Declare.
8554
8555 * gdbtypes.c (build_builtin_type_vec128i): New function.
8556 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8557 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8558 (build_gdbtypes): Initialize new builtin vector types.
8559 (_initialize_gdbtypes): Register new vector types with gdbarch.
8560
8561 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8562
8563 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8564 since it has been multi-arch'd.
8565 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8566 Move Alpha and VAX multi-arch news entries to same section
8567 as other multi-arch news.
8568
8569 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8570
8571 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8572 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8573 static. Rename some register numbers to put them in ns32k-tdep
8574 private namespace.
8575 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8576 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8577 functions.
8578 (_initialize_ns32k_tdep): Use gdbarch_register.
8579 * ns32k-tdep.h: New file.
8580 * ns32knbsd-tdep.c: New file.
8581 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8582 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8583 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8584 REGISTER_BYTES, REGISTER_BYTE): Remove.
8585 * config/ns32k/tm-ns32k.h: New file.
8586 * config/ns32k/tm-umax.h: Remove.
8587
8588 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8589
8590 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8591 ns32k_store_struct_return, ns32k_extract_return_value,
8592 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8593 functions.
8594 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8595 ns32k_saved_pc_after_call.
8596 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8597 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8598 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8599 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8600 ns32k_extract_struct_value_address.
8601
8602 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8603
8604 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8605 ns32k_fix_call_dummy): New.
8606 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8607 ns32k_call_dummy_words.
8608 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8609 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8610 CALL_DUMMY_NARGS): Remove.
8611 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8612
8613 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8614
8615 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8616 ns32k_frame_saved_pc, ns32k_frame_args_address,
8617 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8618 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8619 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8620 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8621 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8622 (BREAKPOINT): Remove..
8623 (FRAME_CHAIN): Define as ns32k_frame_chain.
8624 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8625 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8626 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8627 (FRAME_FIND_SAVED_REGS): Remove.
8628 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8629 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8630 (POP_FRAME): Define as ns32k_pop_frame.
8631
8632 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8633
8634 * ns32k-tdep.c (ns32k_register_byte_32082,
8635 ns32k_register_byte_32382, ns32k_register_raw_size,
8636 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8637 functions.
8638 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8639 ns32k_register_byte_32382.
8640 * config/ns32k/tm-umax.h: Update copyright years.
8641 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8642 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8643 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8644 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8645 (ns32k_get_enter_addr): Fix prototype.
8646
8647 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8648
8649 * ns32k-tdep.c: Update copyright years.
8650 (ns32k_register_name_32082): New function.
8651 (ns32k_register_name_32382): Ditto.
8652 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8653 (REGISTER_NAME): Define as ns32k_register_name_32382.
8654 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8655 (REGISTER_NAME): Define as ns32k_register_name_32082.
8656
8657 2002-05-24 Jim Blandy <jimb@redhat.com>
8658
8659 * dwarf2read.c (free_line_header): Use xfree, not free.
8660
8661 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8662
8663 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8664 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8665
8666 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8667
8668 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8669
8670 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8671
8672 From Ross Alexander at NEC Europe:
8673 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8674
8675 2002-05-23 Michael Snyder <msnyder@redhat.com>
8676
8677 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8678 for input, rather than parse_and_eval_address.
8679
8680 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8681
8682 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8683 * Makefile.in (sim_d10v_h): Update definition.
8684
8685 2002-05-24 Andrew Cagney <cagney@redhat.com>
8686
8687 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8688 change `2002-05-22 Michael Snyder' below.
8689 (d10v_push_arguments): Ditto.
8690 (d10v_extract_return_value): Ditto.
8691
8692 2002-05-23 Jim Blandy <jimb@redhat.com>
8693
8694 * macrotab.c (check_for_redefinition): Don't complain if the new
8695 definition is the same as the previous one. Take more arguments
8696 to allow the comparison.
8697 (macro_define_object, macro_define_function): Pass more arguments
8698 to check_for_redefinition.
8699
8700 2002-05-22 Michael Snyder <msnyder@redhat.com>
8701
8702 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8703 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8704 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8705 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8706 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8707 Add a temp variable to save a call (and a memory read).
8708 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8709 if possible (so that PC_IN_CALL_DUMMY will work).
8710
8711 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8712
8713 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8714
8715 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8716
8717 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8718 fde->cie_ptr.
8719 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8720 (dwarf2_build_frame_info): Add offset to fde->initial_location
8721 so that frames of shared libraries are mapped correctly.
8722 (execute_stack_op): Change type of 'result' from ULONGEST to
8723 CORE_ADDR.
8724
8725 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8726
8727 * config/alpha/tm-nbsd.h: Include solib.h.
8728
8729 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8730
8731 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8732 assumptions about the host's byte order.
8733
8734 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8735
8736 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8737 to dependency list.
8738 * alphanbsd-tdep.c: Include solib-svr4.h.
8739 * shnbsd-tdep.c: Ditto.
8740
8741 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8742
8743 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8744 nbsd-tdep.h to dependency list.
8745 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8746 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8747 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8748 nbsdaout.mh and nbsdelf.mh consistently.
8749 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8750 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8751 nbsdaout.mt and nbsdelf.mh consistently.
8752 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8753 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8754 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8755 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8756 a.out shared library stuff from here...
8757 * config/nm-nbsdaout.h: ...to here.
8758 * config/tm-nbsd.h: Remove.
8759 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8760 * config/arm/nbsd.mh: Remove.
8761 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8762 nbsd-tdep.o.
8763 * config/arm/nbsdaout.mh: New file.
8764 * config/arm/nbsdelf.mh: New file.
8765 * config/arm/nm-nbsdaout.h: New file.
8766 * config/i386/nbsd.mh: Remove.
8767 * config/i386/nbsd.mt: Remove.
8768 * config/i386/nbsdaout.mh: New file.
8769 * config/i386/nbsdaout.mt: New file.
8770 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8771 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8772 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8773 i386_register_u_addr): Remove.
8774 * config/i386/nm-nbsdaout.h: New file.
8775 * config/i386/nm-nbsdelf.h: Remove.
8776 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8777 (USE_STRUCT_CONVENTION): Remove.
8778 * config/i386/tm-nbsdaout.h: New file.
8779 * config/i386/tm-nbsdelf.h: Remove.
8780 * config/m68k/nbsd.mh: Remove.
8781 * config/m68k/nbsd.mt: Remove.
8782 * config/m68k/nbsdaout.mh: New file.
8783 * config/m68k/nbsdaout.mt: New file.
8784 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8785 * config/m68k/nm-nbsdaout.h: New file.
8786 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8787 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8788 * config/ns32k/nbsd.mh: Remove.
8789 * config/ns32k/nbsd.mt: Remove.
8790 * config/ns32k/nbsdaout.mh: New file.
8791 * config/ns32k/nbsdaout.mt: New file.
8792 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8793 * config/ns32k/nm-nbsdaout.h: New file.
8794 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8795 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8796 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8797 (SVR4_SHARED_LIBS): Remove.
8798 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8799 * config/sparc/nbsd.mh: Remove.
8800 * config/sparc/nbsd.mt: Remove.
8801 * config/sparc/nbsdaout.mh: New file.
8802 * config/sparc/nbsdaout.mt: New file.
8803 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8804 * config/sparc/nbsdelf.mt: New file.
8805 * config/sparc/nm-nbsdaout.h: New file.
8806 * config/sparc/nm-nbsdelf.h: Remove.
8807 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8808 * config/sparc/tm-nbsdaout.h: New file.
8809
8810 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8811
8812 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8813 mipsnbsd-tdep.c
8814 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8815
8816 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8817
8818 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8819 shnbsd-nat.c.
8820 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8821
8822 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8823
8824 * NEWS: Note new MIPS NetBSD native configuration.
8825 * configure.host (mips*-*-netbsd*): New host.
8826 * configure.tgt (mips*-*-netbsd*): New target.
8827 * mipsnbsd-nat.c: New file.
8828 * mipsnbsd-tdep.c: New file.
8829 * mipsnbsd-tdep.h: New file.
8830 * config/mips/nbsd.mh: New file.
8831 * config/mips/nbsd.mt: New file.
8832 * config/mips/nm-nbsd.h: New file.
8833 * config/mips/tm-nbsd.h: New file.
8834
8835 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8836
8837 * Makefile.in (SFILES): Add osabi.c.
8838 (COMMON_OBS): Add osabi.o.
8839 (osabi.o): New dependency list.
8840 * osabi.c: New file.
8841 * osabi.h: New file.
8842 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8843
8844 * Makefile.in (alpha_tdep_h): Define and use instead of
8845 alpha-tdep.h.
8846 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8847 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8848 Remove.
8849 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8850 * alpha-tdep.h: Include osabi.h.
8851 (alpha_abi): Remove.
8852 (gdbarch_tdep): Use generic OS ABI framework.
8853 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8854 gdbarch_register_osabi.
8855 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8856 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8857 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8858
8859 * Makefile.in (sh_tdep_h): Add osabi.h.
8860 * sh-tdep.h (sh_osabi): Remove.
8861 (gdbarch_tdep): Use generic OS ABI framework.
8862 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8863 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8864 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8865 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8866
8867 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8868 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8869 gdbarch_register_osabi.
8870 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8871 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8872 (get_elfosabi): Rename to...
8873 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8874 ABI framework support routines.
8875 (arm_gdbarch_init): Use generic OS ABI framework.
8876 (arm_dump_tdep): Likewise.
8877 (_initialize_arm_tdep): Likewise.
8878 * arm-tdep.h: Include osabi.h.
8879 (arm_abi): Remove.
8880 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8881 osabi member.
8882 (arm_gdbarch_register_os_abi): Remove prototype.
8883 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8884 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8885
8886 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8887 * mips-tdep.c: Include osabi.h.
8888 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8889 OS ABI framework.
8890
8891 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8892
8893 * h8300-tdep.c: Fix formatting.
8894
8895 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8896
8897 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8898 printing vector registers.
8899
8900 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8901
8902 From Fernando Nasser:
8903 * remote.c (remote_async_open_1): Re-throw the exception when the
8904 connection fails.
8905 (remote_cisco_open): Ditto.
8906 (remote_open_1): Ditto.
8907
8908 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8909
8910 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8911 (remote_start_remote): Add uiout parameter. Pass through to
8912 remote_start_remote_dummy.
8913 (remote_open_1): Use catch_exception instead of catch_errors.
8914 (remote_async_open_1): Ditto.
8915 (remote_cisco_open): Ditto.
8916
8917 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8918
8919 * remote.c (remote_start_remote): Replace PTR with void pointer.
8920 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8921 static.
8922
8923 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8924
8925 * gdb_indent.sh: Allow the script to be run in the sim directory.
8926
8927 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8928
8929 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8930 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8931
8932 * corelow.c (core_open): Only call set_gdbarch_from_file if
8933 exec_bfd is NULL.
8934
8935 2002-05-17 Andrey Volkov <avolkov@transas.com>
8936
8937 * h8300-tdep.c: Add support of EXR register
8938 * config/h8300/tm-h8300.h: Ditto.
8939
8940 2002-05-17 Andrey Volkov <avolkov@transas.com>
8941
8942 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8943
8944 2002-05-17 Andrey Volkov <avolkov@transas.com>
8945
8946 * h8300-tdep.c: Change literal regnums to REGNO.
8947
8948 2002-05-17 Jim Blandy <jimb@redhat.com>
8949
8950 * NEWS: Note addition of macro support.
8951
8952 Expand preprocessor macros in C expressions.
8953 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8954 (scan_macro_expansion, scanning_macro_expansion,
8955 finished_macro_expansion): New function declarations.
8956 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8957 variable declarations.
8958 * parser-defs.h (expression_context_pc): New declaration.
8959 * parse.c (expression_context_pc): New variable.
8960 (parse_exp_1): Set expression_context_pc, as well as
8961 expression_context_block.
8962 * c-exp.y (yylex): If we're not already reading the result of a
8963 macro expansion, try to macro-expand the next token. When we're
8964 done scanning a macro expansion, switch back to the mainline text.
8965 Commas and `if's in a macro's expansion don't terminate the input.
8966 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8967 (macro_original_text, macro_expanded_text,
8968 expression_macro_lookup_func, expression_macro_lookup_baton): New
8969 variables.
8970 (scan_macro_expansion, scanning_macro_expansion,
8971 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8972 c_preprocess_and_parse): New functions.
8973 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8974 c_preprocess_and_parse, instead of c_parse.
8975 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8976 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8977
8978 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8979
8980 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8981 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8982 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8983
8984 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8985
8986 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8987
8988 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8989
8990 * Makefile.in (sh_tdep_h): Define and use.
8991 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8992 register enum): Move to...
8993 * * sh-tdep.h: ...here.
8994 * sh-tdep.c: Include sh-tdep.h.
8995 * sh3-rom.c: Likewise.
8996 * shnbsd-tdep.c: Likewise.
8997
8998 2002-05-16 Michael Snyder <msnyder@redhat.com>
8999
9000 * arm-tdep.c: Spelling fix in comment.
9001
9002 2002-05-16 Jim Blandy <jimb@redhat.com>
9003
9004 Add commands for manually expanding macros and showing their
9005 definitions.
9006 * macrocmd.c, macroscope.c, macroscope.h: New files.
9007 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9008 (macroscope_h): New variable.
9009 (HFILES_NO_SRCDIR): Add macroscope.h.
9010 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9011 (macroscope.o, macrocmd.o): New rules.
9012
9013 Teach the Dwarf 2 reader to read macro information.
9014 * dwarf2read.c: #include "macrotab.h".
9015 (dwarf_macinfo_buffer): New variable.
9016 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9017 dwarf_macinfo_size.
9018 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9019 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9020 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9021 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9022 dwarf2_macro_spaces_in_definition): New complaints.
9023 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9024 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9025 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9026 the partial symbol table.
9027 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9028 from what's recorded in the partial symbol table.
9029 (read_file_scope): If the compilation unit has a
9030 `DW_AT_macro_info' attribute, read its macro information.
9031 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9032
9033 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9034
9035 Fix PR gdb/546
9036 * ser-tcp.c: Don't include <netinet/udp.h>.
9037
9038 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9039
9040 * MAINTAINERS: Update my email address.
9041
9042 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9045 include file of the same name.
9046
9047 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9048
9049 * configure.tgt: Mark v850 as multi-arched.
9050 * config/v850/tm-v850.h: Remove file.
9051 * config/v850/v850.mt: Eliminate TM_FILE.
9052
9053 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9054
9055 * v850-tdep.c: Full multi-arch.
9056 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9057 Define GDB_MULTI_ARCH to 2.
9058
9059 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9060
9061 * p-exp.y (current_type): New static variable.
9062 Carries the type of the expression at the position that is parsed.
9063 (push_current_type, pop_current_type): Two new functions. Used
9064 to store/restore current_type in expression on specific tokens.
9065 (search_field): New static variable. Set to one after parsing a point
9066 as at that point only a FIELDNAME token should be searched.
9067 (FIELDNAME): New token. After a point only a token belonging to
9068 current_type type definition is allowed.
9069 (all over token rules): reset and change current_type according
9070 to rules.
9071 (exp '[' rule): insert implicit array index field if
9072 exp is a pascal string type.
9073
9074 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9075
9076 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9077 frame info. Use frame_info's saved_regs instead of matching member
9078 in extra_frame_info throughout.
9079 (v850_frame_init_saved_regs): New function.
9080 (v850_init_extra_frame_info): Move most functionality into
9081 v850_frame_init_saved_regs().
9082 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9083 (v850_frame_find_saved_regs): Remove declaration.
9084 (FRAME_FIND_SAVED_REGS): Remove definition.
9085 (v850_frame_init_saved_regs): Add declaration.
9086 (FRAME_INIT_SAVED_REGS): Add definition.
9087
9088 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9089
9090 * v850-tdep.c: Begin multi-arch'ing v850.
9091 (v850_target_architecture_hook): Remove function.
9092 (v850_gdbarch_init): New function. Add code previously in
9093 v850_target_architecture_hook().
9094 (_initialize_v850_tdep): Don't set target_architecture_hook.
9095 Call register_gdbarch_init() instead.
9096
9097 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9098
9099 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9100 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9101 (fixup_class_method_type): Likewise.
9102
9103 2002-05-15 Jim Blandy <jimb@redhat.com>
9104
9105 Add macro structures to GDB's symbol tables. Nobody puts anything
9106 in them yet.
9107 * symtab.h (struct symtab): New member: `macro_table'.
9108 * buildsym.h (pending_macros): New global variable.
9109 * buildsym.c: #include "macrotab.h".
9110 (buildsym_init): Initialize `pending_macros'.
9111 (end_symtab): If we found macro information while reading a CU's
9112 debugging info, do build a symtab structure for it. Make the
9113 symtab point to the macro information, and clear the
9114 `pending_macros' pointer which held it while we were reading the
9115 debug info.
9116 (really_free_pendings): Free any pending macro table.
9117 * objfiles.h (struct objfile): New member: `macro_cache'.
9118 * objfiles.c (allocate_objfile): Set allocate and free functions
9119 for the macro cache's objstack.
9120 (free_objfile): Empty the macro cache's obstack.
9121 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9122 set new allocate and free functions for it.
9123 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9124 free functions for the macro cache's objstack. (Why is this
9125 function building its own objfile?)
9126 * symmisc.c (print_objfile_statistics): Print statistics on the
9127 macro bcache.
9128 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9129
9130 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9133 (REGISTER_U_ADDR): Delete definition.
9134 (arm_register_u_addr): Delete declaration.
9135
9136 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9137
9138 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9139 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9140
9141 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9142
9143 * regcache.c (register_valid): Revise comments refering to "Not
9144 available" and "unavailable".
9145 * frame.c (frame_register_read): Ditto.
9146 * findvar.c (value_of_register): Ditto.
9147
9148 2002-05-15 Andrew Cagney <cagney@redhat.com>
9149
9150 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9151 (remote-sim.o): Update dependencies.
9152 (d10v-tdep.o): Specify dependencies.
9153 (sim_d10v_h): Define.
9154
9155 2002-05-14 Jim Blandy <jimb@redhat.com>
9156
9157 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9158 * macrotab.c (macro_lookup_inclusion, find_definition,
9159 new_macro_table): Same.
9160
9161 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9162 not `! strcmp ()'. This is a dubious improvement.
9163 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9164
9165 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9166 although it's not necessary, to avoid a warning.
9167
9168 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9169
9170 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9171 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9172 TYPE_INSTANCE_FLAGS.
9173 (struct main_type): New.
9174 (struct type): Move most members to struct main_type. Change
9175 cv_type and as_type to new type_chain member. Add instance_flags.
9176 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9177 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9178 (finish_cv_type): Remove prototype.
9179 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9180 Set TYPE_CHAIN.
9181 (alloc_type_instance): New function.
9182 (smash_type): New function.
9183 (make_pointer_type, make_reference_type, make_function_type)
9184 (smash_to_member_type, smash_to_method_type): Call smash_type.
9185 (make_qualified_type): New function.
9186 (make_type_with_address_space): Call make_qualified_type.
9187 (make_cv_type): Likewise.
9188 (finish_cv_type): Remove unnecessary function.
9189 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9190 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9191 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9192 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9193 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9194 * hpread.c (hpread_read_struct_type): Likewise.
9195 * stabsread.c (read_struct_type): Likewise.
9196
9197 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9198
9199 * configure.tgt: Add a catch all sh* target, for cases like
9200 sh[2,3,4]-elf and sh-hms.
9201
9202 2002-05-14 Keith Seitz <keiths@redhat.com>
9203
9204 * event-loop.c (create_file_handler): Don't do anything but
9205 update data when we are given a fd which we are already
9206 monitoring.
9207
9208 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9209
9210 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9211 (update_context): Use __func__ in warnings.
9212
9213 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9214
9215 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9216 and tcp_close to net_open and net_close.
9217 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9218 using UDP if requested. Don't try to disable Nagle on UDP
9219 sockets.
9220 * remote.c (remote_serial_open): New function. Warn about UDP.
9221 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9222
9223 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9224
9225 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9226
9227 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9228
9229 * configure.tgt: Remove sh-hms target.
9230 * MAINTAINERS: Don't list sh-hms as a separate target.
9231
9232 2002-05-13 Jim Blandy <jimb@redhat.com>
9233
9234 Add first preprocessor macro-expansion files.
9235 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9236 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9237 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9238 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9239 (COMMON_OBS): Add macrotab.o, macroexp.o.
9240 (macroexp.o, macrotab.o): New rules.
9241
9242 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9243
9244 * config/m88k/tm-m88k.h: Update copyright.
9245 (m88k_target_write_pc): Declare
9246 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9247 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9248 (SHIFT_INST_REGS): Update definition.
9249 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9250 using old definition of TARGET_WRITE_PC.
9251 * regcache.c (generic_target_write_pc): Delete code handling
9252 NNPC_REGNUM.
9253 * gdbarch.sh (NNPC_REGNUM): Delete.
9254 * gdbarch.h, gdbarch.c: Regenerate.
9255
9256 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9257
9258 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9259 builtin reg number.
9260
9261 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9262
9263 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9264 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9265 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9266 access macros.
9267 * c-typeprint.c (cp_type_print_method_args): Likewise.
9268 (c_type_print_args): Likewise.
9269 * d10v-tdep.c (d10v_push_arguments): Likewise.
9270 (d10v_extract_return_value): Likewise.
9271 * expprint.c (print_subexp): Likewise.
9272 * gdbtypes.c (lookup_primitive_typename): Likewise.
9273 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9274 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9275 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9276 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9277 (TYPE_VECTOR): Likewise.
9278 * hpread.c (hpread_read_struct_type)
9279 (fix_static_member_physnames, fixup_class_method_type)
9280 (hpread_type_lookup): Likewise.
9281 * mdebugread.c (parse_symbol, parse_type): Likewise.
9282 * p-lang.c (is_pascal_string_type): Likewise.
9283 * valops.c (hand_function_call): Likewise.
9284 * x86-64-tdep.c (classify_argument): Likewise.
9285
9286 * hpread.c (hpread_read_function_type)
9287 (hpread_read_doc_function_type): Call replace_type.
9288 * dstread.c (create_new_type): Delete.
9289 (decode_dst_structure, process_dst_function): Call alloc_type.
9290 Use type access macros.
9291
9292 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9293
9294 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9295 the're not supported by the current architecture.
9296 (i387_fill_fxsave): Likewise.
9297
9298 2002-05-12 Fred Fish <fnf@redhat.com>
9299
9300 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9301 sect_index_xxx members to index the first slot in section_offsets
9302 if all of the section_offsets are zero.
9303
9304 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9305
9306 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9307 checked in with last change.
9308
9309 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9310
9311 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9312 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9313 config.sub.
9314
9315 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9316
9317 * Makefile.in: Update dependencies.
9318
9319 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9320
9321 * language.c (local_hex_string_custom): Simplify. Do not depend
9322 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9323
9324 * memattr.c (mem_info_command): Replace calls to
9325 longest_local_hex_string and longest_local_hex_string_custom.
9326 * buildsym.c (make_blockvector): Ditto.
9327 * solib.c (info_sharedlibrary_command): Ditto.
9328 * tracepoint.c (tracepoints_info): Ditto.
9329 * symtab.c (print_msymbol_info): Ditto.
9330
9331 * language.c (local_hex_string): Delete.
9332 (local_hex_string_custom): Delete.
9333 (longest_local_hex_string): Rename to local_hex_string.
9334 (longest_local_hex_string_custom): Rename to
9335 local_hex_string_custom.
9336 * language.h (local_hex_string): Change parameter type to LONGEST.
9337 (local_hex_string_custom): Ditto.
9338 (longest_local_hex_string): Delete declaration.
9339 (longest_local_hex_string_custom): Ditto.
9340
9341 * solib.c: Update copyright.
9342 * memattr.c: Update copyright.
9343
9344 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9345
9346 * arch-utils.h (legacy_register_to_value): Declare.
9347 (legacy_value_to_register): Declare.
9348 (legacy_convert_register_p): Declare.
9349 * arch-utils.c (legacy_register_to_value): New function.
9350 (legacy_value_to_register): New function.
9351 (legacy_convert_register_p): New function.
9352
9353 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9354 (VALUE_TO_REGISTER): Define.
9355 (CONVERT_REGISTER_P): Define.
9356 * gdbarch.h, gdbarch.c: Regenerate.
9357
9358 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9359 VALUE_TO_REGISTER.
9360 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9361 CONVERT_REGISTER_P.
9362
9363 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9364 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9365
9366 * Makefile.in: Update dependencies for valops.c.
9367 * valops.c: Include "gdb_assert.h".
9368 (typecmp): Skip THIS parameter to methods.
9369 (find_method_list): Remove static_memfuncp argument,
9370 update callers. Check for stub methods.
9371 (find_value_oload_method_list): Don't set *static_memfuncp.
9372 (find_overload_match): Don't check for stub methods. Assert
9373 that methods are not stubbed. Handle static methods.
9374 (value_find_oload_method_list): Remove static_memfuncp argument.
9375 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9376 to the argument list for static stub methods.
9377 * value.h (value_find_oload_method_list): Update prototype.
9378
9379 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9380
9381 * arch-utils.h (generic_register_size): Declare.
9382 (generic_register_raw_size, generic_register_virtual_size): Delete
9383 declarations.
9384 * arch-utils.c (generic_register_raw_size): Delete.
9385 (generic_register_size): New function.
9386 (generic_register_virtual_size): Delete.
9387
9388 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9389 default generic_register_size.
9390 * gdbarch.h, gdbarch.c: Re-generate.
9391
9392 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9393 register_virtual_size.
9394 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9395 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9396
9397 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9398
9399 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9400 * gdbarch.h, gdbarch.c: Regenerate.
9401 * gnu-v3-abi.c: Update copyright.
9402 (vtable_address_point_offset): Update.
9403 (gnuv3_rtti_type): Update.
9404 (gnuv3_baseclass_offset): Update.
9405 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9406 (init_fetch_link_map_offsets): Update.
9407 * remote.c (get_remote_state): Update.
9408
9409 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9410
9411 * TODO: Remove value_headof/value_from_vtable_info comment.
9412 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9413 * values.c (value_headof, value_from_vtable_info): Delete.
9414 * value.h (value_from_vtable_info): Delete prototype.
9415
9416 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9417
9418 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9419 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9420 $(gdb_regex_h).
9421 (gdb_assert_h): Define.
9422 (gdb_wait_h): Define.
9423 (gdb_regex_h): Define.
9424
9425 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9426
9427 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9428 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9429
9430 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9431
9432 * nbsd-tdep.c: Fix comment.
9433
9434 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9435
9436 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9437 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9438 (nbsd-tdep.o): New dependency list.
9439 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9440 nbsd-tdep.h.
9441 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9442 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9443 * nbsd-tdep.c: New file.
9444 * nbsd-tdep.h: New file.
9445 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9446 nbsd-tdep.h.
9447 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9448 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9449 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9450 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9451
9452 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9453
9454 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9455 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9456 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9457 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9458 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9459 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9460
9461 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9464 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9465 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9466 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9467 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9468 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9469 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9470
9471 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9472
9473 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9474 fetch_elfcore_registers to...
9475 * i386nbsd-tdep.c: ...here.
9476 (i386nbsd_use_struct_convention): Rename to...
9477 (i386nbsd_aout_use_struct_convention): ...this.
9478 (i386nbsd_supply_reg): New function.
9479 (i386nbsd_fill_reg): New function.
9480 (fetch_core_registers): Use i386nbsd_supply_reg.
9481 (fetch_elfcore_registers): Likewise.
9482 (_initialize_i386nbsd_tdep): New function.
9483 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9484 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9485 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9486 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9487 (i386nbsd_aout_use_struct_convention): ...this.
9488
9489 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9490
9491 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9492 (store_inferior_registers): Use shnbsd_fill_reg.
9493 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9494 sh_nbsd_supply_register): Collapse into...
9495 (shnbsd_supply_reg): ...this.
9496 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9497 (shnbsd_fill_reg): ...this.
9498 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9499 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9500 (fetch_core_registers): Use shnbsd_supply_reg.
9501 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9502 (sh_nbsd_core_fns): Rename to...
9503 (shnbsd_core_fns): ...this.
9504 (sh_nbsd_elfcore_fns): Rename to...
9505 (shnbsd_elfcore_fns): ...this.
9506 (sh_nbsd_init_abi): Rename to...
9507 (shnbsd_init_abi): ...this.
9508 (_initialize_sh_nbsd_tdep): Rename to...
9509 (_initialize_shnbsd_tdep): ...this.
9510 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9511 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9512 sh_nbsd_fill_register): Remove prototypes.
9513 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9514
9515 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9516
9517 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9518 (i387-nat.o): Delete dependency list.
9519 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9520 (x86-64-linux-nat.o): Likewise.
9521 * i387-nat.c: Delete file, moving contents to...
9522 * i387-tdep.c: ...here.
9523 * i387-nat.h: Rename...
9524 * i387-tdep.h: ...to this.
9525 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9526 * i386-linux-nat.c: Likewise.
9527 * i386bsd-nat.c: Likewise.
9528 * i386gnu-nat.c: Likewise.
9529 * i386nbsd-nat.c: Likewise.
9530 * i386v4-nat.c: Likewise.
9531 * x86-64-linux-nat.c: Likewise.
9532 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9533 * config/i386/go32.mh (NATDEPFILES): Likewise.
9534 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9535 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9536 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9537 * config/i386/linux.mh (NATDEPFILES): Likewise.
9538 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9539 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9540 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9541 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9542
9543 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9544
9545 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9546 (alphanbsd-nat.o): Remove dependency list.
9547 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9548 * alphanbsd-nat.c: Delete. Contents moved to...
9549 * alphanbsd-tdep.c: ...here.
9550 (_initialize_alphanbsd_tdep): Register core functions.
9551 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9552
9553 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9554
9555 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9556 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9557 (alphanbsd-nat.o): Likewise.
9558 (alphabsd-tdep.o): New dependency list.
9559 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9560 (fill_gregset): Use alphabsd_fill_reg.
9561 (supply_fpregset): Use alphabsd_supply_fpreg.
9562 (fill_fpregset): Use alphabsd_fill_fpreg.
9563 (fetch_inferior_registers): Use struct reg and struct fpreg
9564 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9565 and alphabsd_supply_fpreg.
9566 (store_inferior_registers): Use struct reg and struct fpreg
9567 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9568 and alphabsd_fill_fpreg.
9569 * alphabsd-tdep.c: New file.
9570 * alphabsd-tdep.h: New file.
9571 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9572 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9573 alphabsd_supply_fpreg.
9574 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9575 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9576
9577 2002-05-11 Eric Christopher <echristo@redhat.com>
9578
9579 * mips-tdep.c (mips_double_register_type): Fix thinko.
9580 (mips_single_register_type): Ditto.
9581 * MAINTAINERS: Add self.
9582
9583 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9584
9585 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9586 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9587 right thing on architectures with different endianness and/or
9588 integer sizes.
9589
9590 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9591
9592 From Christian Limpach <chris@Pin.LU>
9593 * configure.in: Change sed expression which comments out
9594 NATDEPFILES to also comment out continuation lines.
9595 * configure: Regenerate.
9596
9597 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9598
9599 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9600 big patch.
9601
9602 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9603
9604 * sh-tdep.c: Include correct file.
9605
9606 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9607
9608 New support for sh64-elf (sh5) target.
9609
9610 * configure.tgt: For sh64-elf target, default to sh-elf.
9611
9612 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9613 (struct gdbarch_tdep): Add new fields for new registers and ABI
9614 info.
9615
9616 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9617 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9618 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9619 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9620 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9621 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9622 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9623 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9624 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9625 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9626 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9627 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9628 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9629 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9630 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9631 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9632 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9633 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9634 sign_extend, sh64_nofp_frame_init_saved_regs,
9635 sh64_init_extra_frame_info, sh64_get_saved_register,
9636 sh64_extract_struct_value_address, sh64_pop_frame,
9637 sh64_push_arguments, sh64_extract_return_value,
9638 sh64_store_return_value, sh64_show_media_regs,
9639 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9640 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9641 sh_sh64_register_virtual_type,
9642 sh_sh64_register_convert_to_virtual,
9643 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9644 sh64_register_read, sh64_pseudo_register_write,
9645 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9646 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9647 sh64_do_pseudo_register, sh_compact_do_registers_info,
9648 sh64_do_registers_info, sh_gdbarch_init): New functions.
9649
9650 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9651
9652 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9653
9654 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9655
9656 * linespec.c (decode_line_1): Check for a double quote after
9657 a filename correctly.
9658
9659 2002-05-10 Jim Blandy <jimb@redhat.com>
9660
9661 Properly track the size of the current objfile's .debug_line section.
9662 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9663 (DWARF_LINE_SIZE): New macro.
9664 (dwarf2_build_psymtabs_hard): Record the line section's size in
9665 the partial symbol table.
9666 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9667 symbol table.
9668
9669 2002-05-10 Petr Sorfa <petrs@caldera.com>
9670
9671 * ia64-tdep.c: Handle breakpoints on L instruction type
9672 in MLX instruction bundle by moving the breakpoint to
9673 the third slot (X instruction type) as L holds only data.
9674
9675 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9676
9677 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9678 (process_one_symbol): Complain about discarding local symbols
9679 due to a misplaced N_LBRAC entry.
9680
9681 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9682
9683 From Daniel Berlin <dan@cgsoftware.com>
9684 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9685 decrease the depth we are at, in the case of templates.
9686
9687 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9688
9689 * mips-tdep.c (mips_float_register_type): New function.
9690 (mips_double_register_type): New function.
9691 (mips_print_register): Use them.
9692 (do_fp_register_row): Likewise.
9693
9694 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9695
9696 * signals/signals.c (signals): Remove conditional compilation around
9697 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9698 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9699
9700 2002-05-09 Michael Snyder <msnyder@redhat.com>
9701
9702 * remote-rdp.c (remote_rdp_can_run): Remove.
9703
9704 2002-05-09 Tom Tromey <tromey@redhat.com>
9705
9706 * jv-valprint.c (java_val_print): Handle `char' as a special case
9707 of TYPE_CODE_INT.
9708
9709 2002-05-09 Michael Snyder <msnyder@redhat.com>
9710
9711 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9712 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9713 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9714 str r(0123),[sp,#nn].
9715 (arm_skip_prologue): Ditto. Also make disassembly
9716 order-independent by placing it in a loop.
9717
9718 2002-05-06 Michael Snyder <msnyder@redhat.com>
9719
9720 * stabsread.c (read_type): Add recognition for new attribute:
9721 "@V;" means that an array type is actually a vector.
9722 This is analogous to the vector flag that's been added to dwarf2.
9723
9724 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9725
9726 * i386-tdep.h (i386_abi): New enum.
9727 (struct gdbarch_tdep): Replace os_ident member with abi.
9728 (i386_gdbarch_register_os_abi): New prototype.
9729 * i386-tdep.c (i386_abi_names): New array.
9730 (process_note_abi_tag_sections): Removed.
9731 (process_note_sections): New function.
9732 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9733 (struct i386_abi_handler): New struct.
9734 (i386_abi_handler_list): New variable.
9735 (i386_gdbarch_register_os_abi): New function.
9736 (i386_gdbarch_init): Adapt for the changes given above.
9737
9738 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9739
9740 * gregset.h: Say "GNU/Linux".
9741
9742 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9743
9744 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9745 (build_gdbtypes): Build builtin_type_v2_float.
9746 (_initialize_gdbtypes): Register new builtin type.
9747
9748 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9749
9750 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9751 (clear_gdbarch_swap): New function.
9752 (initialize_non_multiarch): Call.
9753 (gdbarch_update_p): Before calling init(), swap out and clear the
9754 existing architecture.
9755 * gdbarch.c: Regenerate.
9756
9757 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9758
9759 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9760 alphanbsd-tdep.c.
9761
9762 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9763
9764 * sh-nbsd-nat.c: Rename to...
9765 * shnbsd-nat.c: ...this.
9766 * sh-nbsd-tdep.c: Rename to...
9767 * shnbsd-tdep.c: ...this.
9768 * sh-nbsd-tdep.h: Rename to...
9769 * shnbsd-tdep.h: ...this.
9770 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9771 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9772
9773 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9774
9775 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9776 concatenation for command help messages.
9777
9778 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9779
9780 * NEWS: Note new sh*-*-netbsdelf* configuration.
9781 * configure.host: Set gdb_host_cpu to sh for all sh*.
9782 (sh*-*-netbsdelf*): New host.
9783 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9784 (sh*-*-netbsdelf*): New target.
9785 * sh-nbsd-nat.c: New file.
9786 * sh-nbsd-tdep.c: New file.
9787 * sh-nbsd-tdep.h: New file.
9788 * config/sh/nbsd.mh: New file.
9789 * config/sh/nbsd.mt: New file.
9790 * config/sh/nm-nbsd.h: New file.
9791 * config/sh/tm-nbsd.h: New file.
9792
9793 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9794
9795 * sh-tdep.c (sh_osabi_names): Declare.
9796 (process_note_abi_tag_sections): New function.
9797 (get_elfosabi): Ditto.
9798 (sh_gdbarch_register_os_abi): Ditto.
9799 (sh_dump_tdep): Ditto.
9800 _initialize_sh_tdep): Use gdbarch_register to register
9801 sh_gdbarch_init and sh_dump_tdep.
9802 * config/sh/tm-sh.h (sh_osabi): Declare.
9803 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9804
9805 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9806
9807 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9808 (thumb_scan_prologue): Ditto.
9809 (arm_find_callers_reg): Ditto.
9810 (arm_frame_chain): Ditto.
9811 (arm_init_extra_frame_info): Ditto.
9812 (arm_frame_saved_pc): Ditto.
9813 (arm_pop_frame): Ditto.
9814 (arm_push_return_address): New function.
9815 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9816 call_dummy_location, call_dummy_breakpoint_offset_p,
9817 call_dummy_breakpoint_offset, call_dummy_p,
9818 call_dummy_stack_adjust_p, call_dummy_words,
9819 sizeof_call_dummy_words, call_dummy_start_offset,
9820 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9821 call_dummy_address, push_return_address and push_dummy_frame for
9822 generic dummy frames.
9823
9824 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9825
9826 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9827 size computation for alloca.
9828 (sh_fp_frame_init_saved_regs): Likewise.
9829
9830 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9831
9832 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9833 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9834 * arm-tdep.c (arm_store_return_value): Use them.
9835 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9836 * remote-rdp.c (remote_rdp_fetch_register): Use
9837 ARM_MAX_REGISTER_RAW_SIZE.
9838 (remote_rdp_store_register): Likewise.
9839
9840 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9841
9842 * dwarf2cfi.c: Code cleanup, removed unused variables,
9843 added default labels to switch {} statements.
9844 * x86-64-tdep.c: Ditto.
9845 * x86-64-linux-nat.c: Ditto.
9846
9847 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * solib.h: Protect against multiple inclusion.
9850
9851 2002-05-06 Jim Blandy <jimb@redhat.com>
9852
9853 Add first preprocessor macro-expansion files.
9854 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9855 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9856 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9857 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9858 (COMMON_OBS): Add macrotab.o, macroexp.o.
9859 (macroexp.o, macrotab.o): New rules.
9860
9861 Separate the job of reading the line number info statement program
9862 header (...expialidocious) out into its own function.
9863 * dwarf2read.c (struct line_head, struct filenames, struct
9864 directories): Replace with...
9865 (struct line_header): New structure, containing the full
9866 contents of the statement program header, including the
9867 include directory and file name tables.
9868 (read_file_scope): If we have line number info, instead of just
9869 calling dwarf_decode_lines to do all the work, call
9870 dwarf_decode_line_header first to get a `struct line_header'
9871 containing the data in the statement program header, and then
9872 pass that to dwarf_decode_lines, which will pick up where that
9873 left off. Be sure to clean up the `struct line_header' object.
9874 (dwarf_decode_line_header, free_line_header, add_include_dir,
9875 add_file_name): New functions.
9876 (dwarf_decode_lines): Move all the code to read the statement
9877 program header into dwarf_decode_line_header. Take the line
9878 header it built as the first argument, instead of the offset to
9879 the compilation unit's line number info. Use the new `struct
9880 line_header' type instead of the old structures. No need to do
9881 cleanups here now, since we don't allocate anything.
9882 (dwarf2_statement_list_fits_in_line_number_section,
9883 dwarf2_line_header_too_long): New complaints.
9884
9885 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9886
9887 * gdbtypes.c (init_vector_type): New function.
9888 (build_builtin_type_vec128): Simplify the representation of SIMD
9889 registers.
9890 (build_gdbtypes): Initialize new builtin vector types.
9891 (_initialize_gdbtypes): Register new vector types with gdbarch.
9892 (builtin_type_v4_float, builtin_type_v4_int32,
9893 builtin_type_v8_int16, builtin_type_v16_int8,
9894 builtin_type_v2_int32, builtin_type_v4_int16,
9895 builtin_type_v8_int8): New (renamed) SIMD types.
9896
9897 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9898
9899 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9900 (i387_fill_fxsave): Likewise.
9901
9902 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9903
9904 * alpha-tdep.c (alpha_extract_return_value): Don't use
9905 non-constant array size in prototype.
9906
9907 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9908
9909 From Brian Taylor <briant at model dot com>:
9910 * ui-out.c (ui_out_field_core_addr): Use the function
9911 longest_local_hex_string_custom'to format addresses > 32 bits
9912 wide.
9913
9914 * ui-out.c (ui_out_field_core_addr): Update comment.
9915
9916 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9917
9918 * stack.c (select_and_print_frame): Make static. Delete the
9919 parameter `level'.
9920 (func_command): Update call.
9921 (select_frame_command): Delete code computing the frame level.
9922 * frame.h (select_and_print_frame): Delete declaration.
9923
9924 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9925
9926 * sparc-tdep.c (sparc_get_saved_register): Comment why
9927 get_prev_frame call is safe.
9928
9929 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9930
9931 * frame.h (select_frame): Delete level parameter.
9932 * stack.c (select_frame): Update. Use frame_relative_level to
9933 obtain the frame's level.
9934 (select_and_print_frame): Update call.
9935 (select_frame_command): Ditto.
9936 (up_silently_base): Ditto.
9937 (down_silently_base): Ditto.
9938 * ocd.c (ocd_start_remote): Ditto.
9939 * remote-rdp.c (remote_rdp_open): Ditto.
9940 * remote-mips.c (mips_initialize): Ditto.
9941 (common_open): Ditto.
9942 * remote-e7000.c (e7000_start_remote): Ditto.
9943 * m3-nat.c (select_thread): Ditto.
9944 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9945 (child_get_current_exception_event): Ditto.
9946 * varobj.c (varobj_create): Ditto.
9947 (varobj_update): Ditto.
9948 (c_value_of_root): Ditto.
9949 * tracepoint.c (finish_tfind_command): Ditto.
9950 * corelow.c (core_open): Ditto.
9951 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9952 * thread.c (info_threads_command): Ditto.
9953 (switch_to_thread): Ditto.
9954 * infrun.c (normal_stop): Ditto.
9955 (restore_selected_frame): Ditto.
9956 (restore_inferior_status): Ditto.
9957 * breakpoint.c (insert_breakpoints): Ditto.
9958 (watchpoint_check): Ditto.
9959 (bpstat_stop_status): Ditto.
9960 (do_enable_breakpoint): Ditto.
9961 * blockframe.c (flush_cached_frames): Ditto.
9962 (reinit_frame_cache): Ditto.
9963
9964 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9965
9966 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9967 maintainer.
9968
9969 2002-05-04 Jim Blandy <jimb@redhat.com>
9970
9971 * gdbtypes.c (replace_type): Doc fix.
9972
9973 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9974
9975 * valprint.c (strcat_longest): Delete commented out function.
9976 Update copyright.
9977
9978 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9979
9980 * MAINTAINERS: Mark a29k as deleted.
9981 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9982 Move new configurations to the top.
9983 * configure.tgt: Remove a29k.
9984 * config/a29k/tm-vx29k.h: Delete.
9985 * config/a29k/vx29k.mt: Delete.
9986 * config/a29k/tm-a29k.h: Delete.
9987 * config/a29k/a29k-udi.mt: Delete.
9988 * config/a29k/a29k.mt: Delete.
9989 * a29k-tdep.c: Delete.
9990 * remote-udi.c: Delete.
9991 * remote-mm.c: Delete.
9992 * remote-eb.c: Delete.
9993 * remote-adapt.c: Delete.
9994 * Makefile.in: Remove obsolete code.
9995 * config/s390/s390x.mt: Ditto.
9996 * config/s390/s390.mt: Ditto.
9997 * config/sparc/sparclynx.mh: Ditto.
9998 * config/sparc/linux.mh: Ditto.
9999 * config/pa/hppaosf.mh: Ditto.
10000 * config/pa/hppabsd.mh: Ditto.
10001 * config/ns32k/nbsd.mt: Ditto.
10002 * config/mips/vr5000.mt: Ditto.
10003 * config/m68k/sun3os4.mh: Ditto.
10004 * config/m68k/nbsd.mt: Ditto.
10005 * config/m68k/m68klynx.mh: Ditto.
10006 * config/m32r/m32r.mt: Ditto.
10007 * config/i386/x86-64linux.mt: Ditto.
10008 * config/i386/nbsdelf.mt: Ditto.
10009 * config/i386/nbsd.mt: Ditto.
10010 * config/i386/i386lynx.mh: Ditto.
10011
10012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10013
10014 * target.c (debug_print_register): New function. Handle oversize
10015 registers.
10016 (debug_to_fetch_registers): Call.
10017 (debug_to_store_registers): Call.
10018
10019 2002-05-03 Jim Blandy <jimb@redhat.com>
10020
10021 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10022 (read_type): Doc fix.
10023 * gdbtypes.c (replace_type): Doc fix.
10024
10025 * stabsread.c (multiply_defined_struct): New complaint.
10026 (read_struct_type): If the type we were passed isn't empty, or
10027 incomplete, don't read the new struct type into it; complain,
10028 and return the original type unchanged. Take a new `type_code'
10029 argument, which is the type code for the new type.
10030 (read_type): Rather than storing the type's type code here, pass
10031 it as an argument to read_struct_type, and let that take care of
10032 storing it. That way, we don't overwrite the original type code,
10033 so read_struct_type can use it to decide whether we're overwriting
10034 something we shouldn't.
10035 (complain_about_struct_wipeout): New function.
10036
10037 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10038
10039 * gdbarch.sh: Assert that gdbarch is non-NULL.
10040 * gdbarch.c: Regenerate.
10041
10042 2002-05-03 Jason Merrill <jason@redhat.com>
10043
10044 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10045 and return NULL.
10046
10047 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10048
10049 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10050 (x86_64_dwarf2gdb_regno_map_length),
10051 (x86_64_dwarf2_reg_to_regnum): Added.
10052 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10053 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10054 (_initialize_x86_64_tdep): Synced with the change above.
10055 (x86_64_skip_prologue): Reformulated message.
10056
10057 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10058
10059 * f-exp.y: Also use new prev_lexptr variable
10060 to improve error reporting. Based on Michael Snyder
10061 2002-04-24 dated patch to c-exp.y.
10062 * jv-exp.y: Likewise.
10063 * m2-exp.y: Likewise.
10064
10065 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10066
10067 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10068 we are dealing with vectors.
10069
10070 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10071
10072 * config/m68k/tm-nbsd.h: Obvious fix,
10073 correct machine name.
10074
10075 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10076
10077 * p-typeprint.c (pascal_type_print_base): Add support
10078 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10079
10080 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10081
10082 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10083 for fondamental pascal 'char' type.
10084
10085 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10086
10087 * p-lang.h (is_pascal_string_type): Declaration changed,
10088 new sixth argument of type char ** added.
10089 * p-lang.c (is_pascal_string_type): Implementation
10090 changed. Args length_pos, length_size, string_pos, char_size
10091 can now be NULL. New argument arrayname set to the field
10092 name of the char array. Return value set to char array
10093 field index plus one.
10094 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10095 is_pascal_string_type function.
10096
10097 2002-05-02 Andrew Cagney <cagney@redhat.com>
10098
10099 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10100 <cagney@redhat.com> change.
10101 * gdbarch.c: Regenerate.
10102
10103 2002-05-02 Andrew Cagney <cagney@redhat.com>
10104
10105 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10106 before probing for a new one. Detect errorenous gdbarch_init
10107 functions.
10108 * gdbarch.c: Regenerate.
10109
10110 2002-05-01 Andrew Cagney <cagney@redhat.com>
10111
10112 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10113 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10114 * config/v850/tm-v850.h: Ditto. Update copyright.
10115
10116 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10117
10118 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10119 current_gdbarch.
10120
10121 2002-04-30 Michael Snyder <msnyder@redhat.com>
10122
10123 * arm-tdep.c: Whitespace clean-ups.
10124 (arm_skip_prologue): Fix thinko; two lines
10125 should have been removed as part of 4/24 change.
10126
10127 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10128
10129 * rs6000-tdep.c: Added comment describing how fpscr register
10130 numbers were chosen.
10131
10132 2002-04-30 Michael Snyder <msnyder@redhat.com>
10133
10134 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10135
10136 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10137
10138 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10139 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10140 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10141
10142 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10143
10144 From Louis Hamilton <hamilton@redhat.com>:
10145 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10146 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10147 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10148 not bfd-private xcoff data, to determine wordsize.
10149 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10150
10151 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10152
10153 GDB 5.2 released from 5.2 branch.
10154
10155 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10156
10157 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10158 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10159 (x86_64_register_info_table): Added comments with register numbers.
10160
10161 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10162
10163 * rs6000-tdep.c (rs6000_extract_return_value,
10164 rs6000_store_return_value): Handle returning vectors.
10165 (rs6000_gdbarch_init): Use
10166 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10167 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10168 New function.
10169 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10170 vectors.
10171 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10172 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10173
10174 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10175
10176 * hpread.c (hpread_psymtab_to_symtab_1,
10177 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10178 with fprintf_unfiltered (gdb_stderr,...).
10179
10180 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10181
10182 * remote-array.c (printf_monitor, write_monitor,
10183 array_insert_breakpoint, array_remove_breakpoint ):
10184 Replace fprintf (stderr,...
10185 with fprintf_unfiltered (gdb_stderr,....
10186 * remote-es.c: Likewise.
10187 * remote-os9k.c: Likewise.
10188 * remote-st.c: Likewise.
10189
10190 2002-04-28 Andreas Schwab <schwab@suse.de>
10191
10192 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10193 linux-proc.o and gcore.o.
10194
10195 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10196
10197 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10198 code without frame pointers.
10199
10200 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10201
10202 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10203 ON_STACK is needed.
10204
10205 2002-04-26 Ben Elliston <bje@redhat.com>
10206
10207 * target.c (do_xfer_memory): Correct reference to the new option
10208 "trust-readonly-sections".
10209
10210 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10211
10212 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10213 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10214 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10215 vectors.
10216 (read_array_type): Record the fact that this array type is really a
10217 vector (i.e. are passed in by value).
10218
10219 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10220
10221 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10222 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10223 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10224 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10225 * alpha-linux-tdep.c: Include frame.h.
10226 (alpha_linux_sigcontext_addr): New function.
10227 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10228 alpha_linux_sigcontext_addr.
10229 * alpha-osf1-tdep.c: Include gdbcore.h.
10230 (alpha_osf1_sigcontext_addr): New function.
10231 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10232 alpha_osf1_sigcontext_addr.
10233 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10234 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10235
10236 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10237
10238 * stack.c (selected_frame_level):
10239 (select_frame): Do not set selected_frame_level.
10240 * frame.h (selected_frame_level): Delete declaration.
10241
10242 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10243
10244 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10245 convert_from_func_ptr-addr when AIX / PowerOpen.
10246
10247 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10248
10249 * valops.c (hand_function_call): Call
10250 generic_save_call_dummy_addr.
10251 * frame.h (generic_save_call_dummy_addr): Declare.
10252 * blockframe.c (struct dummy_frame): Add fields call_lo and
10253 call_hi.
10254 (generic_find_dummy_frame): Check for PC in range call_lo to
10255 call_hi instead of entry_point_address.
10256 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10257 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10258 (generic_save_call_dummy_addr): New function.
10259
10260 2002-04-24 David S. Miller <davem@redhat.com>
10261
10262 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10263 sparc_skip_prologue.
10264 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10265 information to find prologue when possible.
10266 (sparc_prologue_frameless_p): Call examine_prologue directly.
10267 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10268 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10269 second argument.
10270 (SKIP_PROLOGUE): Likewise.
10271
10272 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10273
10274 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10275 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10276 indicate that the condition it was testing is always true.
10277 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10278 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10279 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10280
10281 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10282
10283 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10284 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10285 tdep->jb_pc and tdep->jb_elt_size.
10286 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10287 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10288 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10289 * alpha-nat.c (get_longjmp_target): Remove.
10290 (JB_ELEMENT_SIZE): Ditto.
10291 (JB_PC): Ditto.
10292 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10293 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10294 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10295 to alpha_get_longjmp_target.
10296 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10297 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10298 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10299
10300 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10301
10302 * README: Update to GDB 5.2.
10303
10304 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10305
10306 * gdbarch.sh (LC_ALL): Set to `c'.
10307
10308 2002-04-25 Theodore A. Roth <troth@verinet.com>
10309
10310 * avr-tdep.c: Ran through gdb_indent.sh.
10311
10312 2002-04-25 Theodore A. Roth <troth@verinet.com>
10313
10314 * MAINTAINERS: Add myself as AVR maintainer.
10315 * NEWS: Note new target avr.
10316
10317 2002-04-25 Theodore A. Roth <troth@verinet.com>
10318
10319 * Makefile.in: Add support for AVR target.
10320 * configure.tgt: Add support for AVR target.
10321 * avr-tdep.c: New file
10322 * config/avr/avr.mt: New file.
10323
10324 2002-04-25 Theodore A. Roth <troth@verinet.com>
10325
10326 * MAINTAINERS: Add myself to write-after-approval.
10327
10328 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10329
10330 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10331 with fprintf_unfiltered (gdb_stderr,....
10332
10333 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10334
10335 Fix PR gdb/508.
10336 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10337
10338 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10339
10340 * p-exp.y: Also use new prev_lexptr variable
10341 to improve error reporting. Based on Michael Snyder
10342 2002-04-24 dated patch to c-exp.y.
10343
10344 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10345
10346 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10347 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10348 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10349 to 0.
10350 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10351 and struct value.
10352 (FUNCTION_START_OFFSET): Remove.
10353 (BREAKPOINT): Ditto.
10354
10355 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10356
10357 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10358 * NEWS: Ditto.
10359
10360 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10361
10362 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10363 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10364 alpha_linux_pc_in_sigtramp.
10365 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10366 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10367 alpha_osf1_pc_in_sigtramp.
10368 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10369 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10370 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10371 alphafbsd_pc_in_sigtramp.
10372 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10373 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10374 alphanbsd_pc_in_sigtramp.
10375 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10376 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10377
10378 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10379
10380 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10381
10382 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10383
10384 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10385 alphanbsd-tdep.c.
10386 (alphanbsd-nat.o): New dependency list.
10387 (alphanbsd-tdep.o): Ditto.
10388 * NEWS: Note new native NetBSD/alpha configuration.
10389 * alphanbsd-nat.c: New file.
10390 * alphanbsd-tdep.c: Ditto.
10391 * configure.host (alpha*-*-netbsd*): New host.
10392 * configure.tgt (alpha*-*-netbsd*): New target.
10393 * config/alpha/nbsd.mh: New file.
10394 * config/alpha/nbsd.mt: Ditto.
10395 * config/alpha/nm-nbsd.h: Ditto.
10396 * config/alpha/tm-nbsd.h: Ditto.
10397
10398 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10399
10400 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10401 (alpha-osf1-tdep.o): New dependency list.
10402 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10403 and skip_sigtramp_frame members.
10404 * alpha-linux-tdep.c: Include gdbcore.h.
10405 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10406 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10407 * alpha-osf1-tdep.c: New file.
10408 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10409 alpha-osf1-dep.c.
10410 (alpha_frame_past_sigtramp_frame): New function.
10411 (alpha_dynamic_sigtramp_offset): Ditto.
10412 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10413 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10414 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10415 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10416 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10417 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10418 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10419 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10420 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10421 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10422 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10423 to find_solib_trampoline_target.
10424 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10425 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10426 (SKIP_TRAMPOLINE_CODE): Remove.
10427 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10428 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10429 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10430 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10431 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10432 (PROC_SIGTRAMP_MAGIC): Ditto.
10433 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10434 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10435 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10436 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10437 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10438
10439 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10440
10441 * NEWS: Note that Alpha targets are now multi-arch.
10442
10443 2002-04-24 Michael Snyder <msnyder@redhat.com>
10444
10445 * parser-defs.h (prev_lexptr): New external variable.
10446 * parse.c (parse_exp_1): Set prev_lexptr to null before
10447 calling the language-specific parser.
10448 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10449 (yyerror): Use prev_lexptr in error reporting.
10450
10451 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10452
10453 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10454 * gregset.h: If FILL_FPXREGSET is defined, provide
10455 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10456 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10457 is defined, call fill_fpxregset.
10458
10459 2002-04-24 Roland McGrath <roland@frob.com>
10460
10461 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10462 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10463 (supply_gregset, supply_fpregset): New functions.
10464
10465 * gnu-nat.c (gnu_find_memory_regions): New function.
10466 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10467 (gnu_xfer_memory): Add a cast.
10468
10469 2002-04-24 Michael Snyder <msnyder@redhat.com>
10470
10471 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10472 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10473 of argument regs ("str r(0123), [r11, #-nn"]).
10474 (arm_skip_prologue): Better handling for frameless functions.
10475 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10476 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10477
10478 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10479
10480 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10481 NUM_PSEUDO_REGS can be used.
10482
10483 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10484
10485 * arch-utils.h: Update copyright.
10486
10487 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10488 * gdbarch.h, gdbarch.c: Re-generate.
10489
10490 * inferior.h (IN_SIGTRAMP): Delete definition.
10491 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10492 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10493
10494 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10495 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10496 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10497 (find_proc_framesize): Ditto.
10498 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10499 (alpha_init_extra_frame_info): Ditto.
10500 * infrun.c (handle_inferior_event): Ditto.
10501 (handle_inferior_event): Ditto.
10502 (check_sigtramp2): Ditto.
10503 * blockframe.c (create_new_frame): Ditto.
10504 (get_prev_frame): Ditto.
10505 * ppc-linux-tdep.c: Update comments.
10506 * i386-linux-tdep.c: Update comments.
10507 * breakpoint.c (bpstat_what): Update comment.
10508
10509 2002-04-24 David S. Miller <davem@redhat.com>
10510
10511 * i960-tdep.c (register_in_window_p): New function.
10512 (i960_find_saved_register): Use it instead of
10513 REGISTER_IN_WINDOW_P.
10514 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10515
10516 * symtab.h (find_stab_function_addr): Kill extern.
10517 * minsyms.c (find_stab_function_addr): Remove from here...
10518 * dbxread.c: ... to here, and mark it static.
10519
10520 2002-04-20 David S. Miller <davem@redhat.com>
10521
10522 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10523 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10524
10525 2002-04-21 David S. Miller <davem@redhat.com>
10526
10527 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10528 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10529 (vx_write_register): Likewise.
10530
10531 2002-04-23 J. Brobecker <brobecker@gnat.com>
10532
10533 * source.c (is_regular_file): New function.
10534 (openp): Check wether file to open is a regular file
10535 to avoid opening directories.
10536
10537 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10538
10539 * findvar.c (extract_signed_integer): Cast printf argument
10540 to suppress format warning.
10541 (extract_unsigned_integer): Likewise.
10542 * infcmd.c (registers_info): Likewise.
10543 * top.c (get_prompt_1): Likewise.
10544 * valops.c (value_assign): Likewise.
10545 * valprint.c (print_decimal): Likewise.
10546
10547 2002-04-22 H.J. Lu (hjl@gnu.org)
10548
10549 * c-exp.y (typebase): Support
10550
10551 [long|long long|short] [signed|unsigned] [int|]
10552
10553 and
10554
10555 signed [long|long long|short] int
10556
10557 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10558
10559 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10560 and vax-tdep.h.
10561 * vax-tdep.h: New file.
10562 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10563 Make several routines static.
10564 (vax_get_saved_register): New function.
10565 (vax_gdbarch_init): New function.
10566 (_initialize_vax_tdep): Register vax_gdbarch_init.
10567 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10568 Remove macros now under the control of gdbarch.
10569
10570 2002-04-22 Michael Snyder <msnyder@redhat.com>
10571
10572 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10573 Some whitespace and coding standards tweaks.
10574
10575 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10576
10577 * vax-tdep.c: Include regcache.h.
10578 (vax_call_dummy_words): New.
10579 (sizeof_vax_call_dummy_words): New.
10580 (vax_fix_call_dummy): New function.
10581 (vax_saved_pc_after_call): Ditto.
10582 * config/vax/tm-vax.h: Don't include regcache.h.
10583 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10584 (CALL_DUMMY): Remove.
10585 (CALL_DUMMY_WORDS): Define.
10586 (SIZEOF_CALL_DUMMY_WORDS): Define.
10587 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10588
10589 2002-04-18 Michael Snyder <msnyder@redhat.com>
10590
10591 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10592
10593 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10594
10595 * vax-tdep.c (vax_frame_chain): New function.
10596 (vax_push_dummy_frame): Ditto.
10597 (vax_pop_frame): Ditto.
10598 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10599 (FRAMELESS_FUNCTION_INVOCATION): Use
10600 generic_frameless_function_invocation_not.
10601 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10602 (POP_FRAME): Use vax_pop_frame.
10603
10604 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10605
10606 * vax-tdep.c (vax_store_struct_return): New function.
10607 (vax_extract_return_value): Ditto.
10608 (vax_store_return_value): Ditto.
10609 (vax_extract_struct_value_address): Ditto.
10610 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10611 vax_store_struct_return.
10612 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10613 (STORE_RETURN_VALUE): Use vax_store_return_value.
10614 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10615
10616 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10617
10618 * vax-tdep.c (vax_frame_saved_pc): New function.
10619 (vax_frame_args_address_correct): Ditto.
10620 (vax_frame_args_address): Ditto.
10621 (vax_frame_locals_address): Ditto.
10622 (vax_frame_num_args): Move code to be in proximity to
10623 other frame-related functions.
10624 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10625 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10626 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10627 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10628 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10629
10630 2002-04-22 H.J. Lu (hjl@gnu.org)
10631
10632 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10633 includedir.
10634
10635 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10636
10637 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10638 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10639 (FRAME_INIT_SAVED_REGS): New macro.
10640
10641 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10642
10643 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10644
10645 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10646
10647 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10648 where needed.
10649 (fetch_osf_core_registers): Likewise.
10650 (supply_gregset): Likewise.
10651
10652 2002-04-22 J. Brobecker <brobecker@gnat.com>
10653
10654 * symfile.h (get_section_index): Define.
10655 * symfile.c (get_section_index): New function.
10656 * mdebugread.c (SC_IS_SBSS): New macro.
10657 (SC_IS_BSS): Return true for the scBss storage class only, as
10658 the scSBss storage class refers to the .sbss section.
10659 (parse_partial_symbols): Discard the symbols which associated
10660 section does not exist.
10661 Make sure to use the .sbss section index for symbols which
10662 storage class is scBss, rather than using the .bss section index.
10663
10664 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10665
10666 * vax-tdep.c: Update copyright years.
10667 (vax_register_name): New function.
10668 (vax_register_byte): Ditto.
10669 (vax_register_raw_size): Ditto.
10670 (vax_register_virtual_size): Ditto.
10671 (vax_register_virtual_type): Ditto.
10672 * config/vax/tm-vax.h: Update copyright years.
10673 (REGISTER_NAMES): Remove.
10674 (REGISTER_NAME): Define.
10675 (REGISTER_BYTE): Use vax_register_byte.
10676 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10677 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10678 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10679
10680 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10681
10682 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10683 declaration
10684 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10685
10686 2002-04-21 David S. Miller <davem@redhat.com>
10687
10688 * arch-utils.c (generic_prologue_frameless_p): Kill
10689 SKIP_PROLOGUE_FRAMELESS_P code.
10690 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10691 references.
10692 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10693 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10694 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10695 references.
10696 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10697 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10698 (sparc_gdbarch_init): Pass it to
10699 set_gdbarch_prologue_frameless_p.
10700
10701 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10702
10703 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10704 (alphabsd-nat.o): New dependency list.
10705
10706 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10707
10708 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10709 alphafbsd-tdep.c.
10710 (alpha-linux-tdep.o): New dependency list.
10711 (alphafbsd-tdep.o): Likewise.
10712
10713 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10714
10715 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10716 to here...
10717 * alpha-tdep.c: ...from here.
10718 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10719
10720 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10721
10722 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10723 prototype from here...
10724 * alpha-tdep.h: ...to here.
10725
10726 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10727
10728 * frame.h (selected_frame_level): Document as deprecated.
10729 (frame_relative_level): Declare.
10730 * stack.c (frame_relative_level): New function.
10731 (selected_frame_level): Document as deprecated.
10732 (select_frame): Do not set the selected_frame_level.
10733
10734 * stack.c (frame_info, record_selected_frame): Update.
10735 (frame_command, current_frame_command): Update.
10736 (up_silently_base, up_command, down_silently_base): Update.
10737 (down_command): Update.
10738 * inflow.c (kill_command): Update.
10739 * tracepoint.c (finish_tfind_command): Update.
10740 * corelow.c (core_open): Update.
10741 * thread.c (info_threads_command): Update.
10742 (do_captured_thread_select): Update.
10743 * infcmd.c (finish_command): Update.
10744 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10745
10746 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10747
10748 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10749
10750 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10751
10752 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10753 type const.
10754
10755 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10756
10757 * alphafbsd-tdep.c: Update copyright years. Include
10758 alpha-tdep.h.
10759 (alphafbsd_use_struct_convention): Make static.
10760 (alphafbsd_init_abi): New function.
10761 (_initialize_alphafbsd_tdep): New function.
10762 * config/alpha/tm-fbsd.h: Update copyright years.
10763 (USE_STRUCT_CONVENTION): Remove.
10764
10765 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10766
10767 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10768 an Alpha ABI variant.
10769 (alpha_abi_handler_list): Declare.
10770 (alpha_gdbarch_register_os_abi): New function.
10771 (alpha_gdbarch_init): Give registered ABI variant handlers a
10772 chance to tweak the gdbarch once we have set up defaults.
10773 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10774
10775 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10776
10777 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10778 to standard_coerce_float_to_double.
10779 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10780
10781 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10782
10783 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10784 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10785 from gdbarch_tdep rather than a constant.
10786 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10787 the default text address for all Alpha Unix ABIs.
10788 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10789 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10790
10791 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10792
10793 * alpha-tdep.h: New file. Includes several Alpha target constants
10794 taken from...
10795 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10796 let gdbarch deal with.
10797 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10798 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10799 to dependency list.
10800 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10801 Alpha target register names.
10802 * alphabsd-nat.c: Likewise.
10803 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10804 Alpha target register names. Make serveral routines static.
10805 (alpha_get_saved_register): New function.
10806 (alpha_abi_names): New.
10807 (process_note_abi_tag_sections): New function.
10808 (get_elfosabi): New function.
10809 (alpha_gdbarch_init): New function.
10810 (alpha_dump_tdep): New function.
10811 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10812
10813 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10814
10815 * frame.c (find_saved_register): Delete #ifdef
10816 HAVE_REGISTER_WINDOWS code.
10817 * config/sparc/tm-sparc.h: Update comments.
10818 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10819
10820 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10821
10822 * i960-tdep.c (i960_find_saved_register): New function.
10823 (i960_get_saved_register): New function.
10824 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10825 (i960_get_saved_register): Declare.
10826 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10827
10828 2002-04-20 David S. Miller <davem@redhat.com>
10829
10830 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10831
10832 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10833
10834 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10835 instead of NUM_PSEUDO_REGS.
10836
10837 2002-04-20 David S. Miller <davem@redhat.com>
10838
10839 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10840 GDB_MULTI_ARCH_PARTIAL
10841 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10842 define, let tm-sp64.h do it.
10843
10844 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10845
10846 * frame.c (find_saved_register): Avoid a NULL pointer
10847 dereference and actually walk the frame list.
10848
10849 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10850
10851 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10852 sorted in most most-recent-used order. Document.
10853 * gdbarch.h, gdbarch.c: Regenerate.
10854
10855 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10856
10857 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10858 instead of ->prev.
10859 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10860 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10861 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10862 instead of ->prev.
10863
10864 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10865
10866 Fix PR gdb/471.
10867 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10868 (build_builtin_type_vec128): Ditto.
10869 (append_composite_type_field): Fix calculation of type length in
10870 union case.
10871
10872 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10873
10874 * config/djgpp/README: Update.
10875
10876 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10877 compiler warnings.
10878
10879 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10880
10881 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10882 (alpha_setup_arbitrary_frame): ...to this.
10883 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10884 for alpha_setup_arbitrary_frame.
10885
10886 2002-04-18 Andrew Cagney <cagney@redhat.com>
10887
10888 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10889 * gdbarch.h, gdbarch.c: Regenerate.
10890
10891 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10892 * target.h (memory_breakpoint_from_pc): Update declaration.
10893 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10894
10895 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10896 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10897 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10898 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10899 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10900 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10901 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10902 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10903 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10904 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10905 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10906 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10907
10908 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10909 const pointer.
10910 * monitor.c (monitor_insert_breakpoint): Ditto.
10911 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10912
10913 * config/mcore/tm-mcore.h: Update copyright.
10914 * mem-break.c: Ditto.
10915 * xstormy16-tdep.c: Ditto.
10916
10917 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10918
10919 * p-exp.y: Add precedence rule for '^' token.
10920 This removes the shift/reduce conflicts.
10921 Remove the comment concerning these shift/reduce conflicts.
10922
10923 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10924
10925 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10926 (registers_powerpc_nofp): New register set for processors
10927 without floating point unit.
10928
10929 2002-04-18 David S. Miller <davem@redhat.com>
10930
10931 * MAINTAINERS: Add myself to write-after-approval.
10932
10933 2002-04-17 Michael Snyder <msnyder@redhat.com>
10934
10935 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10936
10937 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10938
10939 * rs6000-tdep.c (frame_initial_stack_address): Use
10940 frame_register_read to read the alloca_reg.
10941
10942 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10943
10944 * frame.c (find_saved_register): Find saved registers in the next
10945 not prev frame.
10946 Fix PR gdb/365.
10947
10948 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10949
10950 * gdbarch.sh (LANG): Set to ``c''.
10951
10952 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10953
10954 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10955
10956 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10957
10958 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10959 Update copyright.
10960
10961 * hpread.c (hpread_get_lntt): Add declaration.
10962 Also fix PR gdb/391.
10963
10964 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10965
10966 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10967 * aclocal.m4, configure: Re-generate.
10968 Fix PR gdb/391.
10969
10970 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10971
10972 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10973 instead of tm_print_insn.
10974
10975 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10976
10977 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10978
10979 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10980
10981 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10982 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10983 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10984
10985 2002-04-12 Don Howard <dhoward@redhat.com>
10986
10987 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10988 max_user_call_depth.
10989 (init_cmd_lists): Initialize the new value;
10990 * cli/cli-script.c (execute_user_command): Limit the call depth of
10991 user defined commands. This avoids a core-dump when user commands
10992 are infinitly recursive.
10993
10994 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10995
10996 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10997 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10998 from tdep struct instead of DEFAULT_LR_SAVE.
10999 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11000 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11001 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11002
11003 2002-04-12 Michael Snyder <msnyder@redhat.com>
11004
11005 * Remote.c: Spelling fix.
11006 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11007 If no symbol found for "sbrk", try "_sbrk".
11008 (make_output_phdrs): Use bfd_section_name.
11009 (gcore_copy_callback): Use bfd_section_name.
11010 * eval.c: Indentation fix-ups.
11011 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11012 in case it gets applied to an address that is already
11013 in the instruction space.
11014 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11015 * symfile.c: Fix indentation, long lines.
11016 * source.c: White space fix-up.
11017
11018 2002-04-12 Andrew Cagney <cagney@redhat.com>
11019
11020 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11021 * frame.c (frame_register_read): New function. Return non-zero on
11022 success.
11023 (read_relative_register_raw_bytes_for_frame): Delete.
11024 (read_relative_register_raw_bytes): Delete.
11025 * frame.h (frame_register_read): Declare.
11026 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11027 * sh-tdep.c: Ditto.
11028 * infcmd.c (do_registers_info): Ditto.
11029 * hppa-tdep.c: Ditto.
11030 * rs6000-tdep.c: Ditto.
11031 * h8500-tdep.c: Ditto.
11032 * mips-tdep.c: Ditto.
11033 * h8300-tdep.c: Ditto.
11034 * z8k-tdep.c: Ditto.
11035
11036 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11037
11038 From Jimi X <jimix@watson.ibm.com>:
11039 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11040 64-bit SysV ABI.
11041
11042 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11043
11044 From Jimi X <jimix@watson.ibm.com>:
11045 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11046 bfd info.
11047
11048 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11049
11050 From Jimi X <jimix@watson.ibm.com>:
11051 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11052 register sets for these processor variants.
11053
11054 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * regformats/reg-ppc.dat: Support FPSCR.
11057
11058 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11059
11060 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11061 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11062 Add fpscr as an invalid/unfetchable register.
11063 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11064 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11065 (fill_fpregset): Add support for register fpscr.
11066 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11067 (fill_gregset): Account for the fact that register ``mq'' might
11068 not exist.
11069 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11070 (registers_power): Add fpscr to register set at slot 71.
11071 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11072 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11073
11074 2002-04-11 Michael Snyder <msnyder@redhat.com>
11075
11076 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11077 * configure: Regenerate.
11078 * config.in: Regenerate.
11079 * acconfig.h: Add define for _SYSCALL32.
11080 * core-sol2.c: Remove #define _SYSCALL32.
11081 * solib-legacy.c: Remove #define _SYSCALL32.
11082
11083 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11084
11085 * stack.c (select_frame): Cleanup internal error message, do not
11086 use %p.
11087
11088 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11089
11090 * stack.c (select_frame): Check that selected_frame and the
11091 specified level are as expected.
11092 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11093 Update copyright.
11094 * frame.h (struct frame_info): Add field `level'. Update
11095 copyright.
11096 Work-in-progress PR gdb/464.
11097
11098 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11099
11100 * maint.c (maint_print_section_info): Rename print_section_info.
11101 (print_bfd_section_info, print_objfile_section_info): Update.
11102 * inferior.h (struct gdbarch): Add opaque declaration.
11103 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11104 * gdbarch.h: Regenerate.
11105
11106 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11107
11108 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11109 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11110 (kernel_u_size): Added.
11111 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11112 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11113
11114 2002-04-04 Jim Ingham <jingham@apple.com>
11115
11116 * valarith.c (find_size_for_pointer_math): New function, either returns
11117 the size for a pointer's target, returns 1 for void *, or errors for
11118 incomplete types.
11119 (value_add, value_sub): use find_size_for_pointer_math.
11120
11121 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * linux-low.c (linux_look_up_symbols): New hook.
11124 (linux_target_ops): Add linux_look_up_symbols.
11125 * remote-utils.c (decode_address): New function.
11126 (look_up_one_symbol): New function.
11127 * server.c (handle_query): Call target look_up_symbols hook.
11128 * server.h (look_up_one_symbol): Add prototype.
11129 * target.h (struct target_ops): Add look_up_symbols hook.
11130
11131 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11132
11133 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11134 override FP_REGNUM with frame->fp. Update copyright.
11135 * parse.c (num_std_regs, std_regs): Delete.
11136 (target_map_name_to_register): Do not search std_regs. Update
11137 function description.
11138 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11139 declarations. Update copyright.
11140 Fix PR gdb/251.
11141
11142 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11143
11144 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11145 after the last symbol in a block.
11146
11147 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11148
11149 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11150 is non zero as a found symbol.
11151
11152 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11153
11154 * findvar.c: Include "builtin-regs.h".
11155 (value_of_register): Call value_of_builtin_reg when applicable.
11156 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11157 (target_map_name_to_register): Call
11158 builtin_reg_map_name_to_regnum.
11159 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11160 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11161 (builtin_regs_h): Define.
11162 (builtin-regs.o): New target.
11163 (findvar.o): Add $(builtin_regs_h).
11164 * builtin-regs.c, builtin-regs.h: New files.
11165 * std-regs.c: New file.
11166 Partial fix for PR gdb/251.
11167
11168 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11169
11170 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11171 it's no longer required.
11172
11173 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11174
11175 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11176
11177 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11178
11179 From Jimi X <jimix@watson.ibm.com>:
11180 * rs6000-tdep.c (rs6000_software_single_step): Use
11181 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11182 and size. Use target_insert_breakpoint() and
11183 target_remove_breakpoint() to insert and remove breakpoints
11184 instead of explicit memory reads and writes.
11185
11186 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11187
11188 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11189 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11190 ELF_OBJECT_FORMAT ifdef.
11191
11192 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11193
11194 From Jimi X <jimix@watson.ibm.com>:
11195 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11196
11197 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11198
11199 From Jimi X <jimix@watson.ibm.com>:
11200 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11201 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11202
11203 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11204
11205 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11206 s/asprintf/xasprintf/.
11207 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11208
11209 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11210
11211 I believe Jeff Law denies responsability for this one:
11212 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11213 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11214 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11215 Work-around for PR gdb/366.
11216
11217 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11218
11219 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11220 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11221 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11222
11223 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11224
11225 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11226 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11227 information.
11228
11229 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11230
11231 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11232 maintainer.
11233
11234 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11235
11236 * README (Reporting Bugs in GDB): Document the bug web page as the
11237 prefered way of submitting bugs.
11238 Fix PR gdb/402.
11239
11240 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11241
11242 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11243 -1. Update comment.
11244 * gdbarch.h, gdbarch.c: Re-generate.
11245
11246 2002-04-07 Andreas Schwab <schwab@suse.de>
11247
11248 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11249 buffer to regcache_collect.
11250
11251 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11252
11253 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11254 * gdbarch.c, gdbarch.h: Re-generate.
11255
11256 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11257
11258 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11259 declaration. Fix -Werror.
11260
11261 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11262
11263 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11264 * gdbarch.c: Regenerate.
11265
11266 2002-04-05 Michael Snyder <msnyder@redhat.com>
11267
11268 * breakpoint.c (clear_command): Rewrite middle section to
11269 combine two loops with identical control conditions.
11270 Add a cleanup to eliminate a memory leak.
11271 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11272
11273 2002-04-05 H.J. Lu (hjl@gnu.org)
11274
11275 * solib-svr4.c (bkpt_names): Add "__start".
11276
11277 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11278
11279 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11280 as test for 64 bit target.
11281
11282 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11283
11284 * h8500-tdep.c (h8500_write_fp): Delete function.
11285 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11286 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11287 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11289 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11290 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11291 (s390_write_fp):
11292 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11293 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11294 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11295 (d10v_write_fp): Delete function.
11296 * inferior.h (write_fp, generic_target_write_fp): Delete
11297 declarations.
11298 * regcache.c (generic_target_write_fp): Delete function.
11299 (write_fp): Delete function.
11300 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11301 * gdbarch.h, gdbarch.c: Regenerate.
11302 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11303 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11304 (sparc64_write_fp): Delete declaration.
11305 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11306 (h8500_write_fp): Delete declaration.
11307
11308 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11309
11310 * sparc-tdep.c (sparc64_write_fp): Delete.
11311 (sparc_push_dummy_frame): Replace write_fp call with code to store
11312 the FP directly.
11313 (sparc_gdbarch_init): Do not initialize write_fp.
11314
11315 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11316
11317 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11318 clause.
11319
11320 2002-03-29 Jim Blandy <jimb@redhat.com>
11321
11322 * stack.c (get_selected_block): Add new argument `addr_in_block',
11323 used to return the exact code address we used to select the block,
11324 not just the block.
11325 * blockframe.c (get_frame_block, get_current_block): Same.
11326 * frame.h (get_frame_block, get_current_block,
11327 get_selected_block): Update declarations.
11328 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11329 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11330
11331 2002-04-05 Michael Snyder <msnyder@redhat.com>
11332
11333 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11334 warning message.
11335
11336 2002-04-05 J. Brobecker <brobecker@gnat.com>
11337
11338 * utils.c (xfullpath): New function.
11339 * defs.h (xfullpath): Add declaration.
11340 * source.c (openp): Use xfullpath in place of gdb_realpath to
11341 avoid resolving the basename part of filenames when the
11342 associated file is a symbolic link. This fixes a potential
11343 inconsistency between the filenames known to GDB and the
11344 filenames it prints in the annotations.
11345 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11346 to be able to match a filename with either the real filename, or
11347 the name of any symbolic link to this file.
11348 (lookup_partial_symtab): Ditto.
11349
11350 2002-04-04 Michael Snyder <msnyder@redhat.com>
11351
11352 * breakpoint.c: Add support for hardware breakpoints in overlays.
11353 (overlay_events_enabled): New state variable.
11354 (insert_breakpoints): Use overlay_events_enabled to decide
11355 whether to attempt to set a breakpoint at the overlay load addr.
11356 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11357 (remove_breakpoint): Use overlay_events_enabled to decide
11358 whether breakpoints need to be removed from overlay load addr.
11359 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11360 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11361 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11362 disable_overlay_breakpoints): Update overlay_events_enabled.
11363
11364 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11365
11366 * dwarf2read.c (struct function_range): New.
11367 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11368 (check_cu_functions): New.
11369 (read_file_scope): Initialize global function lists.
11370 Call dwarf_decode_line after processing children.
11371 (read_func_scope): Add to global function list.
11372 (dwarf_decode_lines): Call check_cu_functions everywhere
11373 record_line is called. Call record_line with a linenumber
11374 of 0 to mark sequence ends.
11375
11376 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11377
11378 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11379 change sync with glibc.
11380
11381 2002-04-03 Jim Blandy <jimb@redhat.com>
11382
11383 * configure.in: Call AC_C_INLINE.
11384 * configure: Regenerated.
11385
11386 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11389 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11390
11391 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11392
11393 * NEWS: Mention gcore support on FreeBSD/i386.
11394
11395 * fbsd-proc.c: New file.
11396 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11397 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11398
11399 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11400 while statement.
11401
11402 2002-03-29 Jim Blandy <jimb@redhat.com>
11403
11404 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11405 unescaped newlines in string literals, but newer ones don't. So
11406 escape them.
11407
11408 2002-03-26 Michael Snyder <msnyder@redhat.com>
11409 Andrew Cagney <cagney@redhat.com>
11410
11411 * cli/cli-dump.c: New file. Dump memory to file,
11412 restore file to memory.
11413 * cli/cli-dump.h: New file.
11414 * Makefile.in: Add rules, dependencies for cli-dump.o.
11415 * NEWS: Mention new commands.
11416
11417 2002-03-28 Michael Snyder <msnyder@redhat.com>
11418
11419 * symfile.c (symbol_file_add): Move test for null symbols to later.
11420
11421 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11422
11423 From veksler at il.ibm.com:
11424 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11425 the xstrduped original path.
11426 Fix PR gdb/417.
11427
11428 2002-03-27 Michael Snyder <msnyder@redhat.com>
11429
11430 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11431 * infcmd.c (_initialize_infcmd): Ditto.
11432 * language.c (_initialize_language): Ditto.
11433 * symfile.c (_initialize_symfile): Ditto.
11434 * top.c (_init_main): Ditto.
11435 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11436
11437 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11438
11439 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11440 vector registers handling.
11441 (skip_prologue): Handle new AltiVec instructions. Fill in new
11442 fields of frame data.
11443 (frame_get_saved_regs): Fill in information for AltiVec registers.
11444
11445 2002-03-27 Jim Blandy <jimb@redhat.com>
11446
11447 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11448 a function; leave this macro here to invoke that function.
11449 (symbol_init_mangled_name): Declaration for that function.
11450 * symtab.c (symbol_init_mangled_name): New function.
11451
11452 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11453
11454 * valarith.c: Replace strerror with safe_strerror.
11455 * tracepoint.c: Ditto.
11456 * lin-lwp.c: Ditto.
11457 * go32-nat.c: Ditto.
11458 * inflow.c: Ditto.
11459 * gnu-nat.c: Ditto.
11460
11461 2002-03-27 Andreas Schwab <schwab@suse.de>
11462
11463 * event-top.c (command_line_handler): Remove useless if.
11464
11465 2002-03-27 Andreas Jaeger <aj@suse.de>
11466
11467 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11468 comment.
11469
11470 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11471
11472 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11473 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11474 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11475 (x86_64_linux_dr_get_status, supply_gregset),
11476 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11477 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11478 (x86_64_register_info_table): Add.
11479 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11480 (x86_64_register_raw_size, x86_64_register_virtual_type),
11481 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11482 general x86_64_register_info_table.
11483 (i386_gdbarch_init): gdbarch_register_bytes is now set
11484 dynamicaly during initialization.
11485 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11486 * gdbserver/linux-x86-64-low.c: Ditto.
11487
11488 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11489
11490 * gdbserver/server.c (main): Call target_signal_to_host_p
11491 and target_signal_to_host on signals received from the remote.
11492 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11493 target_signal_from_host on signals sent to the remote.
11494 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11495 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11496
11497 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11498
11499 * signals/signals.c: Include "server.h" in gdbserver build.
11500 (target_signal_from_name): Don't use STREQ.
11501 (_initialize_signals): Likewise. Don't include function in
11502 gdbserver build.
11503
11504 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11505
11506 * signals.c: Moved to...
11507 * signals/signals.c: Here.
11508 * Makefile (signals.o): Update.
11509
11510 2002-03-26 Jeff Law (law@redhat.com)
11511
11512 * somread.c (som_symtab_read): Remove some commented out code and
11513 updated related comments. Do not set the minimal symbol table to
11514 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11515 in a dynamic executable.
11516 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11517 where we are unable to find the minimal symbol for the given
11518 PC value.
11519
11520 2002-03-25 Jeff Law (law@redhat.com)
11521
11522 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11523
11524 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11525
11526 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11527
11528 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11529
11530 * command.h: Update copyright.
11531 (struct cmd_list_element): Replace definition with opaque
11532 declaration.
11533 (enum cmd_types): Document that it will eventually be moved to
11534 cli/cli-decode.h
11535 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11536 (MALLOCED_REPLACEMENT): Delete macro.
11537 * Makefile.in (cli_decode_h): Add $(command_h).
11538 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11539 * top.c: Include "cli/cli-decode.h".
11540 * completer.c: Include "cli/cli-decode.h".
11541 * maint.c: Include "cli/cli-decode.h".
11542 * cli/cli-decode.h: Include "command.h".
11543 (enum command_class): Delete.
11544 (enum cmd_types): Comment out.
11545 (enum cmd_auto_boolean): Delete.
11546 (enum var_types): Delete.
11547
11548 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11549
11550 * cli/cli-decode.c: Include "gdb_assert.h".
11551 (add_set_or_show_cmd): New static function.
11552 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11553 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11554 all fields, such as func, from the set command.
11555
11556 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11557
11558 * MAINTAINERS (sh-elf): Change warning flag to -w.
11559
11560 2002-03-23 Andrew Cagney <cagney@redhat.com>
11561
11562 * defs.h (error): Add printf format attribute.
11563 * thread-db.c (thread_from_lwp): Fix error format string.
11564 * stack.c (parse_frame_specification): Ditto.
11565 * cli/cli-decode.c (undef_cmd_error): Ditto.
11566 * scm-lang.c (scm_lookup_name): Ditto.
11567 * tracepoint.c (trace_error): Ditto.
11568 * remote-utils.c (usage): Ditto.
11569 * remote.c (compare_sections_command): Ditto.
11570 Fix PR gdb/328.
11571
11572 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11573
11574 * gdbtypes.c (append_composite_type_field): New function.
11575 (init_composite_type): New function.
11576 * gdbtypes.h (append_composite_type_field): Declare.
11577 (init_composite_type): Ditto.
11578
11579 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11580
11581 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11582 function.
11583 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11584 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11585 structure returning convention for SYSV ABI case, but not
11586 for GNU/Linux, FreeBSD, or NetBSD.
11587
11588 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11589
11590 * symtab.h (lookup_block_symbol): Add mangled_name argument
11591 to prototype.
11592
11593 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11594 with new mangled_name argument.
11595 * linespec.c (decode_line_1): Likewise.
11596 * valops (value_of_this): Likewise.
11597 * symtab.c (lookup_transparent_type): Likewise.
11598 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11599 (lookup_symbol): If we are given a mangled name, pass it down
11600 to lookup_symbol_aux.
11601 (lookup_block_symbol): If we are given a mangled name to check
11602 against, only return symbols which match it.
11603
11604 2002-03-22 Christopher Faylor <cgf@redhat.com>
11605
11606 * win32-nat.c (child_create_inferior): Check for proper shell to use
11607 here, in case the user changes it on the fly.
11608 (_initialize_inftarg): Remove shell path considerations.
11609
11610 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11611
11612 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11613 for gdbarch_max_register_raw_size and max_register_virtual_size.
11614 Adjust copyright year.
11615
11616 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11617
11618 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11619 in a function to cover the entire beginning of the function
11620 as well if it does not already.
11621
11622 2002-03-21 Tom Rix <trix@redhat.com>
11623
11624 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11625 (rs6000_ptrace64): Renamed from ptrace64.
11626
11627 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11628
11629 * gdbserver/remote-utils.c (remote_open): Don't call
11630 getprotobyname, we're all using TCP here so just use
11631 IPPROTO_TCP.
11632 * gdbserver/gdbreplay.c (remote_open): Ditto.
11633
11634 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11635
11636 * regcache.c (_initialize_regcache): No need to call
11637 build_regcache() at this time; it gets called whenever
11638 the gdbarch changes.
11639
11640 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11641
11642 * sparc-nat.c: Include sys/param.h where possible.
11643
11644 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11645
11646 Fix PR gdb/422.
11647 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11648 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11649 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11650 complex types.
11651 * stabsread.c (rs6000_builtin_type): Likewise.
11652 (read_sun_floating_type): Likewise.
11653
11654 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11655
11656 * stabsread.c (read_member_functions): Remove skip code for duplicate
11657 constructor/destructor methods. Use standard parsing for these
11658 methods and just do not chain them to the list of methods after
11659 parsing.
11660
11661 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11662
11663 * coffread.c: Remove redundant static declarations. Replace
11664 occurrences of `PTR' with `void *'.
11665 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11666 * top.h (quit_cover): Likewise.
11667 * defs.h (catch_errors): Likewise.
11668
11669 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11670
11671 * defs.h (XMALLOC): Define.
11672 * gdb-events.sh (XMALLOC): Delete macro.
11673 * gdb-events.c, gdb-events.h: Regenerate.
11674 * gdbarch.sh (XMALLOC): Delete macro.
11675 * gdbarch.c: Regenerate.
11676 * serial.c (XMALLOC): Delete macro.
11677 * ui-file.c (XMALLOC): Ditto.
11678 * ser-unix.h (XMALLOC): Ditto.
11679 * sh-tdep.c (XMALLOC): Ditto.
11680 * ui-out.c (XMALLOC): Ditto.
11681 * utils.c (XMALLOC): Ditto.
11682 * i386-tdep.c (XMALLOC): Ditto.
11683 * gdb-events.c (XMALLOC): Ditto.
11684 * d10v-tdep.c (XMALLOC): Ditto.
11685 * cli-out.c (XMALLOC): Ditto.
11686
11687 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11688 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11689 * ui-file.c, ui-out.c: Ditto.
11690
11691 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11692
11693 * command.h (struct cmd_list_element): Add field context.
11694 (set_cmd_context, get_cmd_context): Declare.
11695 * cli/cli-decode.h: Ditto.
11696 * cli/cli-decode.c (get_cmd_context): New function.
11697 (set_cmd_context): New function.
11698 (add_cmd): Initialize context.
11699 Part of fixing PR gdb/145 and PR gdb/146.
11700
11701 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11702
11703 * cli/cli-decode.c (cmd_type): New function.
11704 * command.h (cmd_type): Declare.
11705 * infrun.c (set_schedlock_func): Call function cmd_type.
11706 * kod.c (kod_set_os): Call cmd_type.
11707 * cris-tdep.c (cris_version_update): Use function cmd_type.
11708 (cris_mode_update, cris_abi_update): Ditto.
11709
11710 * command.h: (execute_cmd_post_hook): Declare.
11711 (execute_cmd_pre_hook): Declare.
11712 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11713 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11714 functions. Execute pre/post hook while ensuring that afterwords
11715 hook_in is cleared.
11716 * top.c (execute_command): Use execute_cmd_post_hook, and
11717 execute_cmd_pre_hook to execute pre/post commands.
11718 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11719 hook_stop_stub.
11720 (hook_stop_stub): Call execute_cmd_pre_hook.
11721
11722 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11723
11724 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11725 set'' and this leads to a core dump. Move xstrdup of
11726 operating_system to after check that it is not NULL.
11727
11728 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11729
11730 * kod.c (kod_set_os): Remove unnecessary check that
11731 ``command->type'' is set_cmd.
11732
11733 * valprint.c (set_input_radix): Use input_radix.
11734 (set_output_radix): Use output_radix.
11735 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11736 isn't reverted.
11737
11738 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11739
11740 * value.h (struct value): Delete field ``substring_addr''. Change
11741 aligner fields to force_doublest_align, force_longest_align,
11742 force_core_addr_align and force_pointer_aligh.
11743
11744 * value.h (struct value): Fix typo in above change.
11745
11746 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11747
11748 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11749 to fix internal_error from ``maintenance print architecture''.
11750
11751 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11752
11753 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11754 for gcc versions after gcc-2.8.1.
11755
11756 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11757
11758 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11759 for method resolution. Restore adjustment of ``this'' pointer after
11760 calling value_struct_elt, which was accidentally removed during the
11761 HP merge.
11762
11763 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11764
11765 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11766 value_of_register.
11767 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11768 get_saved_register.
11769 * value.h (value_of_register): Update.
11770
11771 2002-03-14 Richard Henderson <rth@redhat.com>
11772
11773 * configure.in: Detect declaration for canonicalize_file_name.
11774 * utils.c (canonicalize_file_name): Declare, if needed.
11775 (gdb_realpath): Prefer realpath if available and usable.
11776 * config.in, configure: Rebuild.
11777
11778 2002-03-14 Richard Henderson <rth@redhat.com>
11779
11780 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11781 a constant array bound.
11782
11783 * MAINTAINERS: Add myself to write-after-approval.
11784
11785 2002-03-14 Michael Snyder <msnyder@redhat.com>
11786
11787 * symfile.c (syms_from_objfile): Return immediately if no syms.
11788 (symbol_file_add): Return immediately if no syms.
11789 (find_sym_fns): Return immediately if no syms.
11790
11791 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11792
11793 * gdbserver/remote-util.c (remote_open): Print remote-side's
11794 IP address when remote debugging over the network.
11795
11796 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11797
11798 * config/sparc/fbsd.mh: Fix copyright.
11799 * config/sparc/fbsd.mt: Likewise.
11800
11801 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11802
11803 * MAINTAINERS: Fix typo in name of gdb warnings option.
11804 (x86-64): Fix formating so that this can be parsed by awk.
11805
11806 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11807
11808 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11809 * defs.h: Include "gdb/signals.h".
11810 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11811
11812 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11813
11814 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11815 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11816 from x86-64-tdep.h
11817
11818 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11819 Don Howard <dhoward@redhat.com>
11820
11821 * mips-tdep.c (ST0_FR): Define.
11822 (mips2_fp_compat): New function, temporarily disabled.
11823 (mips_read_fp_register_single): New function.
11824 (mips_read_fp_register_double): New function.
11825 (mips_print_register): Use them.
11826 (do_fp_register_row): Likewise.
11827
11828 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11829
11830 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11831 approval''.
11832
11833 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11834
11835 * stabsread.c (read_member_functions): Fix is_stub test for
11836 static member functions, improve comment.
11837
11838 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11839
11840 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11841 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11842 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11843 commands that set boolean values.
11844 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11845 (arm_rdi_resume): Always initialize PC.
11846 (arm_rdi_open): Don't use rslt as a boolean.
11847 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11848 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11849 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11850 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11851
11852 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11853
11854 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11855 * configure: Rebuilt.
11856
11857 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11858
11859 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11860 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11861
11862 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11863
11864 * cli/cli-decode.c (set_cmd_completer): New function.
11865 * command.h (set_cmd_completer): Declare.
11866 * cli/cli-decode.h (set_cmd_completer): Ditto.
11867
11868 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11869 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11870 * win32-nat.c (_initialize_inftarg): Ditto.
11871 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11872 * proc-api.c (_initialize_proc_api): Ditto.
11873 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11874 * source.c (_initialize_source): Ditto.
11875 * exec.c (_initialize_exec): Ditto.
11876 * solib.c (_initialize_solib): Ditto.
11877 * top.c (init_main): Ditto.
11878 * tracepoint.c (_initialize_tracepoint): Ditto.
11879 * symfile.c (_initialize_symfile): Ditto.
11880 * printcmd.c (_initialize_printcmd): Ditto.
11881 * infcmd.c (_initialize_infcmd): Ditto.
11882 * corefile.c (_initialize_core): Ditto.
11883
11884 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11885
11886 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11887
11888 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11889
11890 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11891
11892 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11893
11894 * NEWS: Update headings, 5.2 has branched.
11895
11896 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11897
11898 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11899 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11900 (register_addr, REGISTER_RAW_SIZE): Likewise.
11901 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11902 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11903
11904 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11905
11906 * MAINTAINERS (x86-64): Add myself.
11907 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11908 changed value_ptr -> struct value *
11909
11910 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11911
11912 * configure.host (sparc64-*-freebsd): Add.
11913 * configure.tgt: Likewise.
11914 * config/sparc/fbsd.mh: New file.
11915 * config/sparc/fbsd.mt: Likewise.
11916 * config/sparc/nm-fbsd.h: Likewise.
11917 * config/sparc/tm-fbsd.h: Likewise.
11918
11919 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11920
11921 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11922 regformats/reg-s390x.dat.
11923
11924 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11925
11926 * utils.c: Add FIXME explaining true/false problem.
11927
11928 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11929
11930 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11931
11932 2002-02-28 Michael Chastain <mec@shout.net>
11933
11934 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11935
11936 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11937
11938 * gdbserver/linux-s390-low.c: New file.
11939 * regformats/reg-s390.dat: New file.
11940 * regformats/reg-s390x.dat: New file.
11941 * gdbserver/configure.srv: Add S/390.
11942 * gdbserver/Makefile.in: Add S/390.
11943 * configure.tgt: Enable gdbserver for S/390.
11944
11945 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11946
11947 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11948 first line of the doc string for "info dos", except at the end of
11949 the sentence, since the short help stops at the first period.
11950
11951 2002-02-28 Jason Merrill <jason@redhat.com>
11952
11953 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11954
11955 2002-02-27 Fred Fish <fnf@redhat.com>
11956
11957 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11958 comment (dumy -> dummy).
11959
11960 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11961
11962 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11963
11964 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11965
11966 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11967
11968 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/acconfig.h: New file.
11971 * gdbserver/i387-fp.c: New file.
11972 * gdbserver/i387-fp.h: New file.
11973 * gdbserver/linux-x86-64.c: New file.
11974 * regformats/reg-x86-64.dat: New file.
11975 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11976 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11977 * gdbserver/configure.in: Add support for regsets.
11978 * gdbserver/config.in: Regenerate.
11979 * gdbserver/configure: Regenerate.
11980 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11981 * gdbserver/linux-low.h: New file.
11982 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11983 for regsets.
11984 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11985 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11986 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11987 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11988 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11989 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11990 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11991 "i387-fp.h". Add PTRACE_GETREGS and friends.
11992 * gdbserver/regcache.c (supply_register): New function.
11993 (supply_register_by_name): New function.
11994 (collect_register): New function.
11995 (collect_register_by_name): New function.
11996
11997 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12000 (config.status): Add configure.srv dependency.
12001 (server_h): Add config.h dependency.
12002
12003 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12004
12005 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12006 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12007 * gdbserver/configure.srv: Change i386-*-linux* to use
12008 reg-i386-linux.o.
12009
12010 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12011
12012 * x86-64-tdep.c: Re-indent. Update copyright date.
12013
12014 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12015
12016 From Michal Ludvig <mludvig@suse.cz>:
12017 * x86-64-tdep.c (value.h): Delete.
12018 (gdb_assert.h): Include.
12019 (x86_64_register_convert_to_virtual,
12020 x86_64_register_convert_to_raw ): Add check which lets only
12021 floating-point values to be converted.
12022 (value_push): Delete.
12023 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12024 (i386_gdbarch_init): Number of register_bytes fixed.
12025
12026 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12027
12028 * MAINTAINERS: Add x86-64 target.
12029
12030 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12031
12032 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12033 * osfsolib.c (solib_map_sections): Ditto.
12034 * irix5-nat.c (solib_map_sections): Ditto.
12035 * corelow.c (gdb_check_format): Ditto.
12036 * symfile.c (symfile_bfd_open): Ditto.
12037 * solib.c (solib_map_sections): Ditto.
12038 Fix PR gdb/354.
12039
12040 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12041
12042 * remote.c (_initialize_remote): By default, disable ``e'' and
12043 ``E'' step out-of-range packets.
12044
12045 2002-02-26 Andreas Schwab <schwab@suse.de>
12046
12047 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12048 m68k_linux_frame_saved_pc.
12049 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12050 in_sigtramp.
12051 (SIGCONTEXT_PC_OFFSET): Remove.
12052 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12053 m68k_linux_sigtramp_saved_pc): New functions.
12054 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12055 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12056 (UCONTEXT_PC_OFFSET): Define.
12057 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12058 non-RT and RT signal trampolines.
12059
12060 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12061
12062 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12063 (TARGET_NBPG, STACK_END_ADDR): Delete
12064 (VARIABLES_INSIDE_BLOCK): Delete.
12065
12066 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12067
12068 * utils.c (perror_with_name): Make string parameter constant.
12069 (print_sys_errmsg): Ditto.
12070 (query): Ditto.
12071 * defs.h (perror_with_name): Update.
12072 (print_sys_errmsg): Update.
12073 (query): Update.
12074
12075 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12076
12077 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12078 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12079
12080 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12081
12082 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12083 if it already matches the current architecture from the exec file.
12084 Include arch-utils.h for gdbarch_info_init prototype.
12085 * Makefile.in (rs6000-nat.o): Update dependencies.
12086
12087 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12088
12089 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12090 list of exported variables.
12091
12092 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * gdbserver/configure.srv: New file.
12095 * gdbserver/configure.in: Use configure.srv instead
12096 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12097 from it.
12098 * gdbserver/configure: Regenerated.
12099 * gdbserver/terminal.h: New file.
12100 * gdbserver/Makefile.in: Update for configure changes. Remove
12101 more unneeded include paths.
12102
12103 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12104
12105 From wiz at danbala:
12106 * config/sparc/tm-sp64.h: Fix grammar and typos.
12107 Fix PR gdb/287.
12108
12109 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12110
12111 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12112 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12113 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12114 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12115 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12116 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12117 * s390-tdep.c: Ditto.
12118 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12119 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12120 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12121 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12122 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12123 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12124 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12125 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12126 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12127 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12128 Fix PR gdb/378.
12129
12130 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12131
12132 * lin-thread.c: Delete file.
12133 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12134 to gdb_proc_service.h.
12135 * configure: Re-generate.
12136
12137 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12138 * serial.c (serial_open): Delete check for "ocd".
12139 Fix PR gdb/349.
12140
12141 * Makefile.in (linux-thread.o): Delete target.
12142 * linux-thread.c: Delete file.
12143
12144 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12145 renamed SH files to be consistent.
12146
12147 * symtab.c (sort_search_symbols): Use xfree.
12148
12149 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12150
12151 * arm-linux-tdep.c (arm_linux_init_abi): Register
12152 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12153 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12154 definition with undef, since we don't want the sysvr4 definition.
12155 (SKIP_TRAMPOLINE_CODE): Likewise.
12156
12157 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12158
12159 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12160
12161 * configure.in: (AC_CHECK_FUNCS) Added test for
12162 canonicalize_file_name Regenerated.
12163 * config.in, configure: Regenerated.
12164 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12165 defined use canonicalize_file_name.
12166
12167 2002-02-23 Michael Chastain <mec@shout.net>
12168
12169 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12170
12171 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12172
12173 * README: Remove references to cygnus.com.
12174 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12175 dot com'' form. Remove references to cygnus.com and sourceware.
12176
12177 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12178
12179 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12180 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12181 1003.1-2001 no longer allows "head -1".
12182 * gdb/Makefile.in (version.c): Likewise.
12183 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12184 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12185 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12186
12187 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12188
12189 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12190 * command.h (cmd_cfunc_eq): Declare.
12191 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12192
12193 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12194 ``struct cmd_list_element *''.
12195 * cli/cli-cmds.c (is_complete_command): Update. Use
12196 cmd_cfunc_eq.
12197 * top.c (execute_command): Pass the command to
12198 is_complete_command.
12199 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12200
12201 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12202
12203 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12204 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12205 architecture defines.
12206 * s390-tdep.c (s390_gdbarch_init): Likewise.
12207
12208 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12209
12210 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12211 (arm_linux_push_arguments): Likewise.
12212 (arm_linux_init_abi): Register them. Also register linux-specific
12213 call_dummy_words.
12214 (find_minsym_and_objfile): Use strcmp, not STREQ.
12215 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12216 (arm_linux_call_dummy_words): Delete declaration.
12217 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12218 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12219 declarations.
12220 (LOWEST_PC): Delete.
12221
12222 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12223
12224 * maint.c (print_section_info): Do not prepend `0x' to filepos
12225 output, it will be handled by local_hex_string_custom.
12226
12227 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12228
12229 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12230 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12231 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12232
12233 2002-02-22 Jim Blandy <jimb@redhat.com>
12234
12235 Indicate that the bcache functions don't change the strings
12236 they're passed.
12237 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12238 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12239
12240 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12241
12242 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12243
12244 2002-02-21 Christopher Faylor <cgf@redhat.com>
12245
12246 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12247 find the complete path to a loaded DLL.
12248
12249 2002-02-21 Fred Fish <fnf@redhat.com>
12250
12251 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12252 that marks the end of the range of a function, enter a line number
12253 entry that has a line number of zero and a PC offset that matches
12254 the end of the function. This starts a range of PC's for which no
12255 line number information is known.
12256 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12257 PC's for which no line number info is found (line number is zero)
12258 then we didn't find any valid line information.
12259 * symtab.h: Document use of zero line number entry.
12260
12261 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12262
12263 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12264 (have_ptrace_getvrregs): Define for run time checks.
12265 (gdb_vrregset_t): New type for Altivec register handling.
12266 (fetch_register, store_register): Fetch/store altivec register
12267 when needed.
12268 (fetch_altivec_register, store_altivec_register): New functions.
12269 (supply_vrregset, fill_vrregset): New functions.
12270 (fetch_altivec_registers, store_altivec_registers): New functions.
12271 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12272 registers as well.
12273
12274 2002-02-21 Jiri Smid <smid@suse.cz>
12275
12276 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12277
12278 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12279
12280 * Makefile.in (armnbsd-nat.o): Update dependencies.
12281 * armnbsd-nat.c (supply_gregset): New function. Common code to
12282 supply the integer register set.
12283 (supply_fparegset): New function. Similar for FPA registers.
12284 (fetch_regs, fetch_fp_regs): Use them.
12285 (fetch_core_registers): Likewise.
12286 (fetch_elfcore_registers): New function.
12287 (arm_netbsd_elfcore_fns): New core-file type specification.
12288 (_initialize_arm_netbsd_nat): Register it.
12289
12290 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12291
12292 * armnbsd-nat.c: Include gdbcore.h.
12293 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12294 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12295 'void' to declaration, to shut up ARI.
12296 (fetch_core_registers): Make static. Rewrite using supply_register.
12297 (arm_netbsd_core_fns): New core-file type specification.
12298 (_initialize_arm_netbsd_nat): New function.
12299
12300 2002-02-21 Christopher Faylor <cgf@redhat.com>
12301
12302 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12303 value.
12304
12305 2002-02-20 Christopher Faylor <cgf@redhat.com>
12306
12307 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12308 fails.
12309
12310 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12311
12312 * jv-exp.y (parse_number): Change type of implicit longs
12313 to builtin_type_uint64.
12314
12315 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12316
12317 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12318 to be an integer instead of a `union wait'.
12319
12320 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12321
12322 * mips-linux-nat.c: Call the operating system GNU/Linux.
12323 * mips-linux-tdep.c: Likewise.
12324 * mips-tdep.c: Likewise.
12325
12326 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12327
12328 Fix PR gdb/265.
12329 * jv-exp.y (parse_number): Handle 64-bit integers.
12330
12331 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12332
12333 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12334 AC_STDC_HEADERS to AC_HEADER_STDC.
12335 * gdbserver/configure: Regenerated.
12336
12337 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12338
12339 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12340 is defined.
12341 * sparc-tdep.c (get_longjmp_target): Likewise.
12342
12343 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12344
12345 * News: Add news about ARM and Multi-arch. Mention the new target
12346 arm*-*-netbsd*.
12347
12348 2002-02-19 Jim Blandy <jimb@redhat.com>
12349
12350 * stabsread.c (error_type_complaint): Improve error message.
12351
12352 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12353
12354 * gdbserver/README: Update documentation.
12355 * gdbserver/configure.in: Update configury to match documentation.
12356 * gdbserver/Makefile.in: Likewise.
12357 * gdbserver/configure: Regenerated.
12358 * gdbserver/aclocal.m4: New file, generated by aclocal.
12359 * gdbserver/config.in: New file, generated by autoheader.
12360
12361 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12362
12363 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12364 armnbsd-nat.c.
12365
12366 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12367
12368 * arm-tdep.h (enum arm_float_model): New enum.
12369 (struct gdbarch_tdep): Add fp_model.
12370 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12371 up floating-point conversions until we know the floating-point model
12372 in use by the inferior. Don't complain about being unable to
12373 determine the ABI of the inferior when we don't have one.
12374 (arm_extract_return_value): Support different floating-point models.
12375 (arm_store_return_value): Likewise.
12376 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12377 ARM_FLOAT_SOFT.
12378 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12379
12380 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12381
12382 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12383 of ``current_gdbarch''.
12384
12385 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12386
12387 * armnbsd-nat.c : ANSIfy all function declarations.
12388 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12389 (fetch_inferior_registers): Re-implement in terms of above.
12390 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12391 (store_inferior_registers): Re-implement in terms of above.
12392
12393 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12394
12395 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12396 kernel.
12397 * arm-linux-tdep.c: Likewise.
12398 * config/arm/tm-linux.h: Likewise.
12399
12400 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12401
12402 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12403 * config/arm/nbsd.mt (TM_FILE): Delete.
12404 * config/arm/tm-nbsd.h: Delete.
12405
12406 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12407
12408 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12409 Initialize CALL_DUMMY_LENGTH.
12410
12411 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12412
12413 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12414 function.
12415 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12416 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12417 defines one thing and that is incorrect for this port.
12418 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12419
12420 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12421
12422 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12423
12424 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12425
12426 * win32-nat.c (display_selector): New function. Displays information
12427 about the information returned by GetThreadSelectorEntry API function.
12428 (display_selectors): New function. Displays the infomation of
12429 the selector given as argument, or of CS, DS ans FS selectors
12430 if no argument is given.
12431 ( _initialize_inftarg): Add "w32" as info prefix command.
12432 Add "info w32 selector" as command calling display_selectors.
12433
12434 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12435
12436 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12437 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12438 if not defined.
12439
12440 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12441
12442 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12443
12444 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12445
12446 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12447 (arm_fix_call_dummy): Call it.
12448 (arm_call_dummy_breakpoint_offset): Delete.
12449 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12450 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12451
12452 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12453
12454 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12455 Default to func_frame_chain_valid.
12456 * gdbarch.h, gdbarch.c: Re-generate.
12457 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12458
12459 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12460
12461 * ppc-linux-nat.c: Update copyright.
12462 (fetch_register, store_register): Add tid parameter, don't compute
12463 tid here.
12464 (fetch_ppc_registers, store_ppc_registers): Add tid
12465 parameter. Pass it along to callees.
12466 (fetch_inferior_registers, store_inferior_registers): Compute tid
12467 here, and pass it to calleed functions.
12468 (fill_gregset, supply_fpregset): Clean up formatting.
12469
12470 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12471
12472 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12473 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12474
12475 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12476
12477 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12478 * gdbarch.c gdbarch.h: Regenerate.
12479 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12480 function.
12481 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12482 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12483 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12484
12485 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12486 * arm-tdep.c (arm_get_longjmp_target): New function.
12487 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12488 this to a positive value register arm_get_longjmp_target as the
12489 longjmp handler.
12490 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12491 (arm_linux_init_abi): Set up longjmp description in tdep.
12492 * armnbsd-nat.c (get_longjmp_target): Delete.
12493 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12494 description in tdep.
12495 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12496 (get_longjmp_target): Delete declaration.
12497 (GET_LONGJMP_TARGET): Delete.
12498 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12499 (GET_LONGJMP_TARGET): Delete.
12500
12501 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12502
12503 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12504 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12505 of ``current_gdbarch''.
12506
12507 2002-02-17 Tom Tromey <tromey@redhat.com>
12508
12509 * cli/cli-cmds.c (compare_strings): New function.
12510 (complete_command): Only print each unique item once.
12511 * completer.h (complete_line): Declare.
12512 * completer.c (complete_line): New function.
12513 (line_completion_function): Use it.
12514
12515 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12516
12517 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12518 * gdbarch.h, gdbarch.c: Re-generate.
12519
12520 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12521
12522 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12523
12524 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12525
12526 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12527 * valops.c (value_arg_coerce): Don't take the address of a reference
12528 to convert an argument to a reference.
12529
12530 2002-02-15 Christopher Faylor <cgf@redhat.com>
12531
12532 * win32-nat.c (get_image_name): New function.
12533 (handle_load_dll): Use get_image_name function.
12534 (get_child_debug_event): Avoid registering debug events until possibly
12535 execed process is started.
12536 (child_create_inferior): Allow invocation via shell so that command
12537 line redirection, etc. works ok.
12538 (_initialize_inftarg): Add new command: "set shell" to control whether
12539 a shell is used to start a process.
12540
12541 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12542
12543 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12544 instead of find_register_by_number.
12545 (cannot_store_register): Likewise.
12546
12547 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12548
12549 * dwarf2read.c: Replace fprintf (stderr, ...) by
12550 fprintf_unfiltered (gdb_stderr, ...).
12551
12552 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12553
12554 * gdbserver/gdbserver.1: Document --attach.
12555
12556 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12557
12558 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12559 descriptions.
12560 * arm-tdep.c (arm_default_arm_le_breakpoint)
12561 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12562 (arm_default_thumb_be_breakpoint): New. Initialize them from
12563 traditional breakpoint defines.
12564 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12565 (arm_gdbarch_init): Initialize new breakpoint variables.
12566 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12567 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12568 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12569 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12570 code out to ...
12571 (arm_netbsd_init_abi_common): ... here; new function.
12572 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12573 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12574 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12575 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12576
12577 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12578
12579 * arm-tdep.h (enum arm_abi): New enum.
12580 (struct gdbarch_tdep): New structure.
12581 (LOWEST_PC): Provide a default.
12582 (arm_gdbarch_register_os_abi): Declare new function.
12583 * arm-tdep.c (arm_abi_names): New array.
12584 (process_note_abi_tag_sections): New function.
12585 (get_elfosabi): New function.
12586 (arm_gdbarch_register_os_abi): New function.
12587 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12588 support for that ABI has been built in, then call the appropriate
12589 configuration routine. Use gdbarch_num_regs() to get the number
12590 of registers.
12591 (arm_dump_tdep): New function.
12592 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12593 place-holder functions.
12594 (_initialize_arm_tdep): Register them.
12595 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12596
12597 * armnbsd-tdep.c: New file.
12598 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12599 * config/arm/nbsd.mt (TDEPFILES): Add it.
12600 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12601
12602 * armnbsd-nat.c: Include regcache.h.
12603 * Makefile.in (armnbsd-nat.o): Update dependency list.
12604
12605 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12606
12607 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12608
12609 * gdbserver/Makefile.in: Fix typos in target rules.
12610
12611 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12612
12613 Fix part of PR gdb/267.
12614 * linespec.c (find_methods): Handle constructors specially for now.
12615
12616 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12617
12618 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12619 handling.
12620 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12621 standard_coerce_float_to_double().
12622
12623 2002-02-14 Christopher Faylor <cgf@redhat.com>
12624
12625 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12626 GDBINIT_FILENAME.
12627
12628 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12629
12630 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12631 find_variant_by_name, because it confuses the multiarch
12632 framework. Return NULL if there isn't an architecture with the
12633 user supplied name, instead of forcing a different one without
12634 recording the change with the multiarch machinery.
12635 (find_variant_by_name): Delete.
12636
12637 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12638
12639 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12640 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12641
12642 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12643
12644 * stack.c (print_frame_info_base): When calling
12645 print_frame_info_listing_hook, set current_source_symtab.
12646
12647 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12648
12649 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12650 and remove unused $(INCLUDE_DIR).
12651 Add regcache.c to OBS.
12652 Add generated register protocol files to clean target.
12653 Update dependencies for new objects, obsolete old target code.
12654
12655 * gdbserver/linux-low.c: Remove all platform-specific code to
12656 new files. Remove various dead code. Update to use regcache
12657 functionality.
12658 * gdbserver/remote-utils.c (fromhex): Add return statement
12659 to quiet warning.
12660 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12661 constant.
12662 (input_interrupt): Add integer parameter to match prototype
12663 of a signal handler.
12664 (outreg): Use register_data ().
12665 (prepare_resume_reply): Use gdbserver_expedite_regs.
12666 * gdbserver/server.c (main): Dynamically allocate own_buf because
12667 PBUFSIZ is no longer constant. Use registers_to_string () and
12668 registers_from_string ().
12669 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12670 for error (), fatal (), and warning (). Update definition of
12671 PBUFSIZ to use regcache functionality. Add include guard.
12672 * gdbserver/utils.c (fatal): Add missing ``const''.
12673 (warning): New function.
12674
12675 * regformats/regdat.sh: Include "regcache.h" in generated files.
12676 Provide init_registers () function.
12677 * regformats/regdef.h: Add prototype for set_register_cache ().
12678 Add include guard.
12679
12680 * gdbserver/linux-arm-low.c: New file.
12681 * gdbserver/linux-i386-low.c: New file.
12682 * gdbserver/linux-ia64-low.c: New file.
12683 * gdbserver/linux-m68k-low.c: New file.
12684 * gdbserver/linux-mips-low.c: New file.
12685 * gdbserver/linux-ppc-low.c: New file.
12686 * gdbserver/linux-sh-low.c: New file.
12687
12688 * gdbserver/regcache.c: New file.
12689 * gdbserver/regcache.h: New file.
12690
12691 * gdbserver/low-linux.c: Removed obsolete file.
12692
12693 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12694
12695 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12696 * config/i386/linux.mt: Likewise.
12697 * config/ia64/linux.mt: Likewise.
12698 * config/m68k/linux.mh: Likewise.
12699 * config/powerpc/linux.mh: Likewise.
12700 * config/mips/linux.mt: Likewise.
12701
12702 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12703
12704 * config/i386/i386lynx.mh: Mark gdbserver variables
12705 as (currently) obsolete for this target.
12706 * config/i386/nbsd.mt: Likewise.
12707 * config/i386/nbsdelf.mt: Likewise.
12708 * config/m32r/m32r.mt: Likewise.
12709 * config/m68k/m68klynx.mh: Likewise.
12710 * config/m68k/nbsd.mt: Likewise.
12711 * config/m68k/sun3os4.mh: Likewise.
12712 * config/mips/vr5000.mt: Likewise.
12713 * config/ns32k/nbsd.mt: Likewise.
12714 * config/pa/hppabsd.mh: Likewise.
12715 * config/pa/hppaosf.mh: Likewise.
12716 * config/powerpc/nbsd.mt: Likewise.
12717 * config/rs6000/rs6000lynx.mh: Likewise.
12718 * config/s390/s390.mt: Likewise.
12719 * config/s390/s390x.mt: Likewise.
12720 * config/sparc/sparclynx.mh: Likewise.
12721 * config/sparc/sun4os4.mh: Likewise.
12722 * config/i386/x86-64linux.mt: Likewise.
12723 * config/sparc/linux.mh: Likewise.
12724
12725 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12726
12727 * configure.tgt: Configure gdbserver only for known working
12728 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12729 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12730 SUBDIRS if it is configured. Update comment for ${nativefile}.
12731 * configure: Regenerated.
12732
12733 2002-02-13 Michael Snyder <msnyder@redhat.com>
12734
12735 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12736
12737 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12738 (default_gcore_mach): Just return 0, work around a problem in bfd.
12739 (default_gcore_target): OK to return NULL if exec_bfd is null.
12740 (make_mem_sec): Use a cast, avoid a warning.
12741
12742 * procfs.c (find_memory_regions_callback): Use a cast instead of
12743 calling host_pointer_to_address (which complains if
12744 sizeof (host pointer) != sizeof (target pointer)).
12745 (procfs_make_note_section): Avoid overflow in psargs string.
12746
12747 * procfs.c (procfs_make_note_section): Make the default
12748 implementation return an error.
12749
12750 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12751
12752 * procfs.c (procfs_make_note_section): Provide a default definition
12753 (for alpha-dec-osf4.0f). Fix typos.
12754
12755 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12756
12757 * linux-proc.c: Add include of regcache.h.
12758 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12759
12760 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12761
12762 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12763 * memattr.c (create_mem_region): Disallow useless empty region.
12764 Regions are half-open intervals, so allow [A..B) [B..C) as
12765 non-overlapping.
12766
12767 2002-02-13 Michael Chastain <mec@shout.net>
12768
12769 * defs.h: Kill CONST_PTR.
12770 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12771 * c-lang.c (c_builtin_types): Likewise.
12772 * ch-lang.c (ch_builtin_types): Likewise.
12773 * f-lang.c (f_builtin_types): Likewise.
12774 * language.c (unknown_builtin_types): Likewise.
12775 * m2-lang.c (m2_builtin_types): Likewise.
12776 * p-lang.c (pascal_builtin_types): Likewise.
12777 * scm-lang.c (c_builtin_types): Likewise.
12778
12779 2002-02-13 Keith Seitz <keiths@redhat.com>
12780
12781 * arm-tdep.h (arm_get_next_pc): Add declaration.
12782
12783 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12784
12785 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12786 with other related struct-returning functions.
12787 (arm_extract_struct_value_address): New function.
12788 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12789 initialize float_format, double_format and long_double_format as
12790 appropriate to the endianness of the target.
12791 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12792 (arm_use_struct_convention): Delete declaration.
12793 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12794
12795 2002-02-13 Keith Seitz <keiths@redhat.com>
12796
12797 * defs.h (core_addr_to_string_nz): New function.
12798
12799 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12800
12801 Apply missing bits of 2002-01-15 patch.
12802 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12803 (fill_fpregset): Use i387_fill_fsave.
12804
12805 2002-02-12 Keith Seitz <keiths@redhat.com>
12806
12807 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12808 (core_addr_to_string_nz): New function.
12809
12810 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12811
12812 * arm-linux-nat.c: Really include arm-tdep.h.
12813 * config/arm/tm-linux.h (struct type, struct value): Declare.
12814
12815 2002-02-11 Michael Snyder <msnyder@redhat.com>
12816
12817 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12818 (gcore section): Ifdef for Solaris and Unixware only.
12819 (procfs_do_thread_registers): Unixware needs one lwpstatus
12820 per thread (not one prstatus or pstatus).
12821 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12822 not over all gdb threads. For unixware, call elfcore_write_pstatus
12823 once before iterating over threads.
12824
12825 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12826
12827 * arm-tdep.h: New file.
12828 * arm-tdep.c: Include arm-tdep.h.
12829 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12830 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12831 (arm_print_float_info, arm_register_type, convert_to_extended)
12832 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12833 (arm_extract_return_value, arm_register_name): Make static.
12834 (arm_software_single_step): Similarly. Fix types in declaration.
12835 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12836 (arm_store_return_value, arm_store_struct_return): New functions.
12837 (arm_gdbarch_init): Register the above functions. Also register
12838 call_dummy_start_offset, sizeof_call_dummy_words,
12839 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12840 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12841 max_register_virtual_size, register_size. Set up
12842 prologue_cache.saved_regs here, rather than ...
12843 (_initialize_arm_tdep): ... here.
12844 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12845 declarations.
12846 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12847 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12848 (arm_print_float_info, arm_register_type, convert_to_extended)
12849 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12850 (arm_extract_return_value, arm_register_name): Delete declarations.
12851 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12852 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12853 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12854 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12855 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12856 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12857 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12858 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12859 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12860 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12861 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12862 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12863 interface.
12864 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12865 * remote-rdi.c remote-rdp.c: Likewise.
12866 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12867 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12868 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12869 definition.
12870
12871 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12872 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12873 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12874 from non-ARM_ prefixed definitions.
12875 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12876 all uses of above.
12877 * remote-rdi.c remote-rdp.c: Likewise.
12878 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12879
12880 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12881
12882 * arm-tdep.c (arm_frameless_function_invocation)
12883 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12884 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12885 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12886 (arm_pop_frame, arm_get_next_pc): Make static.
12887 (arm_gdbarch_init): Register above in gdbarch structure.
12888 (arm_read_fp): Renamed from arm_target_read_fp.
12889 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12890 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12891 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12892 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12893 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12894 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12895 (arm_pc_is_thumb_dummy): Delete declarations.
12896 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12897 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12898 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12899 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12900
12901 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12902
12903 * symtab.c (compare_search_syms): New function.
12904 (sort_search_symbols): New function.
12905 (search_symbols): Sort symbols after searching rather than
12906 before.
12907
12908 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12909
12910 * NEWS: Linux -> GNU/Linux.
12911
12912 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12913
12914 * gdbarch.sh: For for level one methods, disallow a definition
12915 when partially multi-arched. Add comments explaining rationale.
12916 * gdbarch.h: Re-generate.
12917
12918 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12919
12920 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12921 multi-arch partial.
12922
12923 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12924
12925 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12926 field. Use diff -u.
12927 * gdbarch.c: Re-generate.
12928
12929 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12930
12931 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12932 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12933 partial.
12934
12935 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12936
12937 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12938 multi-arch partial.
12939 (PUSH_ARGUMENTS): Switch to using predefault.
12940 * gdbarch.c: Regenerate.
12941
12942 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12943
12944 * valops.c (PUSH_ARGUMENTS): Delete definition.
12945 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12946 partial. Default to default_push_arguments.
12947 * gdbarch.h, gdbarch.c: Regenerate.
12948
12949 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12950
12951 * defs.h (throw_exception): Rename return_to_top_level. Update
12952 comments.
12953 * utils.c (error_stream, internal_verror, quit): Ditto.
12954 * top.c (throw_exception, catcher): Ditto.
12955 * sparclet-rom.c (sparclet_load): Ditto.
12956 * remote.c (interrupt_query, minitelnet): Ditto.
12957 * remote-sds.c (interrupt_query): Ditto.
12958 * remote-mips.c (mips_error, mips_kill): Ditto.
12959 * ocd.c (interrupt_query): Ditto.
12960 * monitor.c (monitor_interrupt_query): Ditto.
12961 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12962 * target.h: Update comment.
12963
12964 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12965
12966 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12967
12968 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12969 default_double_format.
12970 * gdbarch.h, gdbarch.c: Re-generate.
12971 * findvar.c (floatformat_unknown): Delete variable definition.
12972 * doublest.h (floatformat_unknown): Delete variable declaration.
12973
12974 2002-02-09 Jim Blandy <jimb@redhat.com>
12975
12976 * stabsread.c (read_type): Add code to parse Sun's syntax for
12977 prototyped function types.
12978
12979 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12980
12981 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12982 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12983
12984 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12985
12986 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12987 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12988 now _initialize_xcoffsolib gets called again and overrides the
12989 commands from solib.c in a native configuration.
12990
12991 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12992
12993 * doublest.c (store_typed_floating): Don't try to return a value.
12994 Fixes PR gdb/290.
12995
12996 2002-02-08 Jim Blandy <jimb@redhat.com>
12997
12998 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12999 is prototyped and has no arguments, print its argument list as
13000 `(void)'.
13001
13002 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13003
13004 * MAINTAINERS (write-after-approval): Add myself.
13005 (paper-trail): I've escaped!
13006
13007 2002-02-08 Christopher Faylor <cgf@redhat.com>
13008
13009 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13010 changes.
13011 (_initialize_check_for_gdb_ini): Ditto.
13012
13013 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13014
13015 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13016 xaprintf -> xasprintf.
13017
13018 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13019
13020 * win32-nat.c: Remove use of printf and sprintf functions.
13021
13022 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13023
13024 * arm-tdep.c (arm_frame_chain_valid): Make static.
13025 (arm_push_arguments): Likewise.
13026 (arm_gdbarch_init): New function.
13027 (_initialize_arm_tdep): Call it.
13028 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13029 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13030 (FRAME_CHAIN_VALID): Delete.
13031 (arm_frame_chain_valid): Delete declaration.
13032 (PUSH_ARGUMENTS): Delete.
13033 (arm_push_arguments): Delete declaration.
13034 (CALL_DUMMY_P): Delete.
13035
13036 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13037 Corinna Vinschen <vinschen@redhat.com>
13038
13039 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13040 on builtin float types.
13041
13042 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13043
13044 * utils.c: Include <curses.h> before "bfd.h".
13045 * tui/tui-hooks.c: Likewise.
13046 * tui/tui.c: Likewise.
13047 * tui/tuiCommand.c: Likewise.
13048 * tui/tuiData.c: Likewise.
13049 * tui/tuiDataWin.c: Likewise.
13050 * tui/tuiDisassem.c: Likewise.
13051 * tui/tuiGeneralWin.c: Likewise.
13052 * tui/tuiIO.c: Likewise.
13053 * tui/tuiLayout.c: Likewise.
13054 * tui/tuiRegs.c: Likewise.
13055 * tui/tuiSource.c: Likewise.
13056 * tui/tuiSourceWin.c: Likewise.
13057 * tui/tuiStack.c: Likewise.
13058 * tui/tuiWin.c: Likewise.
13059
13060 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13061
13062 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13063 to include space for pseudoregs as well. Update loops accordingly.
13064 (sh_fp_frame_init_saved_regs): Ditto.
13065 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13066
13067 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13068
13069 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13070 Add Richard Earnshaw to Arm maintainers.
13071
13072 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13073
13074 * defs.h (warning_begin): Delete declaration.
13075
13076 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13077 Delete macro.
13078
13079 2002-02-07 Michael Snyder <msnyder@redhat.com>
13080
13081 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13082 Logic bug, remove misplaced else.
13083
13084 2002-02-07 Klee Dienes <klee@apple.com>
13085
13086 * fork-inferior.c (fork_inferior): Add '!' to the list of
13087 characters that need to be quoted when building a string for the
13088 shell. Quote '!' specifically with a backslash, since CSH chokes
13089 when trying to evaluate "str!str".
13090
13091 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13092
13093 * rdi-share/host.h: Only provide a typedef for bool if it is not
13094 defined.
13095
13096 2002-02-04 Michael Snyder <msnyder@redhat.com>
13097
13098 * breakpoint.h (enum bptype): Add new overlay event bp type.
13099 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13100
13101 * breakpoint.c (create_internal_breakpoint): New function.
13102 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13103 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13104 (create_thread_event_breakpoint): Ditto.
13105 (create_solib_event_breakpoint): Ditto.
13106 (create_overlay_event_breakpoint): New function.
13107 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13108 (update_breakpoints_after_exec): Delete and re-initialize
13109 overlay event breakpoints after an exec. Add FIXME comment
13110 about longjmp breakpoint.
13111 (print_it_typical): Ignore overlay event breakpoints.
13112 (print_one_breakpoint): Ditto.
13113 (mention): Ditto.
13114 (bpstat_what): Do not stop for overlay event breakpoints.
13115 (delete_breakpoint): Don't delete overlay event breakpoints.
13116 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13117 (breakpoint_re_set): Re-create overlay event breakpoint.
13118
13119 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13120 (overlay_manual_command): Disable overlay breakpoints.
13121 (overlay_off_command): Disable overlay breakpoints.
13122
13123 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13124
13125 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13126 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13127 to here from config/tm-arm.h.
13128 (coff_sym_is_thumb): Make static.
13129 (arm_elf_make_msymbol_special): New function.
13130 (arm_coff_make_msymbol_special): New function.
13131 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13132 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13133 (coff_sym_is_thumb): Delete declaration.
13134 (arm_elf_make_msymbol_special): Declare.
13135 (arm_coff_make_msymbol_special): Declare.
13136 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13137 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13138
13139 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13140
13141 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13142
13143 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13144
13145 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13146 * gdbarch.c gdbarch.h: Regenerate.
13147 * arch-utils.c (default_print_float_info): New function.
13148 * arch-utils.h (default_print_float_info): Prototype it.
13149 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13150 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13151 (PRINT_FLOAT_INFO): Document it.
13152
13153 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13154 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13155 (PRINT_FLOAT_INFO): Define.
13156
13157 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13158
13159 * win32-nat.c (_initialize_check_for_gdb_ini):
13160 Add typecast to sprintf argument to suppress a warning.
13161
13162 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13163
13164 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13165 to allow easier handling of pass state.
13166 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13167 that gives exception name and address.
13168 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13169 and set last_sig value to ourstatus->value.sig. Some missing
13170 exceptions added.
13171 (child_continue): Correctly report continue_status.
13172 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13173 TARGET_SIGNAL_0 (new default value).
13174 (child_resume): consider sig argument passed to decide if
13175 the exception should be passed to debuggee or not.
13176
13177 2002-02-05 Michael Snyder <msnyder@redhat.com>
13178
13179 * regcache.c (fetch_register): Call target_fetch_register
13180 only if we don't call FETCH_PSEUDO_REGISTER.
13181 (store_register): Call target_store_register only if we
13182 don't call STORE_PSEUDO_REGISTER.
13183
13184 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13185
13186 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13187 ELF_MAKE_MSYMBOL_SPECIAL.
13188 * gdbarch.c, gdbarch.h: Regenerate.
13189 * arch-utils.c (default_make_msymbol_special): New function.
13190 * arch-utils.h (default_make_msymbol_special): Export.
13191 * elfread.c (elf_symtab_read): Compile use of
13192 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13193 multiarched.
13194 * coffread.c (coff_symtab_read): Ditto, for
13195 COFF_MAKE_MSYMBOL_SPECIAL.
13196
13197 2002-02-05 Jim Blandy <jimb@redhat.com>
13198
13199 * solib-svr4.c (svr4_truncate_ptr): New function.
13200 (svr4_relocate_section_addresses): Do the address arithmetic with
13201 the appropriate truncation for target addresses, even when
13202 CORE_ADDR is larger than a target address.
13203
13204 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13205
13206 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13207 to (int *).
13208
13209 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13212 code.
13213
13214 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13215
13216 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13217
13218 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13219
13220 * gdbserver/linux-low.c: Remove unused include files.
13221
13222 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13223
13224 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13225 (read_inferior_memory): Use it.
13226 (write_inferior_memory): Likewise.
13227
13228 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13229
13230 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13231 grubbing through sys_errlist.
13232
13233 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13234
13235 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13236
13237 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13238 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13239
13240 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13241
13242 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13243 (do_sfunc, set_cmd_sfunc): New functions.
13244
13245 * command.h (struct cmd_list_element): Add field func.
13246 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13247 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13248 * cli/cli-decode.h: Ditto.
13249
13250 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13251 (help_all, help_cmd_list): Ditto.
13252 (find_cmd, complete_on_cmdlist): Ditto.
13253 * top.c (execute_command): Ditto.
13254
13255 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13256 function.sfunc.
13257
13258 * infcmd.c (notice_args_read): Fix function signature.
13259
13260 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13261 * cli/cli-decode.c (add_set_cmd): Ditto.
13262 * utils.c (initialize_utils): Ditto.
13263 * maint.c (_initialize_maint_cmds): Ditto.
13264 * infrun.c (_initialize_infrun): Ditto.
13265 * demangle.c (_initialize_demangler): Ditto.
13266 * remote.c (add_packet_config_cmd): Ditto.
13267 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13268 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13269 * proc-api.c (_initialize_proc_api): Ditto.
13270 * kod.c (_initialize_kod): Ditto.
13271 * valprint.c (_initialize_valprint): Ditto.
13272 * top.c (init_main): Ditto.
13273 * infcmd.c (_initialize_infcmd): Ditto.
13274 * corefile.c (_initialize_core): Ditto.
13275 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13276 * arch-utils.c (initialize_current_architecture): Ditto.
13277 (_initialize_gdbarch_utils): Ditto.
13278 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13279
13280 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13281 * wince.c (_initialize_inftarg): Ditto.
13282 * symfile.c (_initialize_symfile): Ditto.
13283 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13284 * language.c (_initialize_language): Ditto.
13285 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13286
13287 2002-02-04 Michael Snyder <msnyder@redhat.com>
13288
13289 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13290
13291 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13292
13293 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13294 Add rules for building the register data files.
13295
13296 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13297
13298 * regformats/regdat.sh: Add braces to the definition of
13299 expedite_regs_${arch}.
13300
13301 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13302
13303 * regformats/regdef.h (struct reg): Add comment describing the
13304 requirements for offset and size fields.
13305
13306 2002-02-04 Andreas Schwab <schwab@suse.de>
13307
13308 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13309 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13310
13311 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13312
13313 * gdbarch.sh (copyright): Update years in generated header.
13314 (SMASH_TEXT_ADDRESS): Add rule.
13315 * gdbarch.h, gdbarch.c: Re-generate.
13316 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13317 * dbxread.c: Likewise.
13318 * dwarfread.c: Likewise.
13319 * elfread.c: Likewise.
13320 * somread.c: Likewise.
13321
13322 * arm-tdep.c (arm_smash_text_address): New function.
13323 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13324
13325 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13326
13327 Add support for hardware watchpoints on win32 native.
13328 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13329 CONTEXT_DEBUG_REGISTERS.
13330 (dr variable): New variable. Static array containing a local copy
13331 of debug registers.
13332 (debug_registers_changed): New variable. Reflects when debug registers
13333 are changed and need to be written to inferior.
13334 (debug_registers_used): New variable. Reflects when any debug register
13335 was set, used when new threads are created.
13336 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13337 i386-nat code.
13338 (thread_rec): Set dr array if id is the thread of current_event .
13339 (child_continue, child_resume): Change the debug registers for all
13340 threads if debug_registers_changed.
13341 (child_add_thread): Change the debug registers if debug_registers_used.
13342 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13343 Link nm.h to new nm-cygwin.h file.
13344 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13345 of hardware registers.
13346
13347 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13348
13349 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13350 Restore behavour broken by 2002-01-20 Andrew Cagney
13351 <ac131313@redhat.com> IEEE_FLOAT removal.
13352
13353 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13354
13355 * c-valprint.c (c_val_print): Pass a proper valaddr to
13356 cp_print_class_method.
13357 * valops.c (search_struct_method): If there is only one method
13358 and args is NULL, return that method.
13359
13360 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13361
13362 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13363 accessing tag_name directly.
13364
13365 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13366
13367 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13368 of accessing tag_name directly.
13369
13370 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13371
13372 PR gdb/280
13373 * gdbtypes.c (replace_type): New function.
13374 * gdbtypes.h (replace_type): Add prototype.
13375 * stabsread.c (read_type): Use replace_type.
13376
13377 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13378
13379 * Makefile.in (memattr.o): Add missing dependencies rule.
13380
13381 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13382
13383 * breakpoint.c (break_at_finish_command): Really export.
13384 (break_at_finish_at_depth_command): Ditto.
13385 (tbreak_at_finish_command): Ditto.
13386 * hppa-tdep.c: Include completer.h.
13387 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13388 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13389
13390 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13391
13392 * utils.c (do_write): New function.
13393 (error_stream): Rewrite combining the code from error_begin and
13394 verror.
13395 (verror): Rewrite using error_stream.
13396 (error_begin): Delete function.
13397
13398 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13399
13400 * utils.c (error_begin): Make static.
13401 * defs.h (error_begin): Delete declaration.
13402
13403 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13404 (decode_line_1): Use cplusplus_error instead of error_begin,
13405 cplusplus_hint and return_to_top_level.
13406 * coffread.c (coff_symfile_read): Use error instead of error_begin
13407 and return_to_top_level.
13408 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13409
13410 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13411
13412 * language.h (type_error, range_error): Make string parameter
13413 constant.
13414 * language.c (warning_pre_print): Delete extern declaration.
13415 * dwarfread.c (warning_pre_print): Ditto.
13416 * language.c (type_error, range_error): Rewrite to use verror and
13417 vwarning instead of warning_begin.
13418
13419 2002-02-01 Michael Snyder <msnyder@redhat.com>
13420
13421 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13422 (set_ignore_count): Move misplaced comment back where it belongs.
13423
13424 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13425
13426 * command.h (NO_FUNCTION): Delete macro.
13427 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13428 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13429 * tracepoint.c (_initialize_tracepoint): Ditto.
13430 * cli/cli-decode.c (add_set_cmd): Ditto.
13431 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13432
13433 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13434
13435 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13436 Update ``this'' pointer when calling virtual functions.
13437
13438 2002-02-01 Michael Snyder <msnyder@redhat.com>
13439
13440 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13441 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13442
13443 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13444
13445 * regformats/reg-arm.dat: New file.
13446 * regformats/reg-i386.dat: New file.
13447 * regformats/reg-ia64.dat: New file.
13448 * regformats/reg-m68k.dat: New file.
13449 * regformats/reg-mips.dat: New file.
13450 * regformats/reg-ppc.dat: New file.
13451 * regformats/reg-sh.dat: New file.
13452 * regformats/regdef.h: New file.
13453 * regformats/regdat.sh: New file.
13454
13455 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13456
13457 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13458 (arm_frame_args_address, arm_frame_locals_address): New functions.
13459 (arm_frame_num_args): New function.
13460 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13461 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13462 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13463
13464 2002-01-31 Michael Snyder <msnyder@redhat.com>
13465
13466 * breakpoint.c (break_at_finish_command): Export.
13467 (break_at_finish_at_depth_command): Export.
13468 (tbreak_at_finish_command): Export.
13469 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13470 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13471 "txbreak" commands, which are HPPA specific.
13472
13473 * printcmd.c (disassemble_command): Remove an ancient
13474 artifact of an old merge.
13475
13476 * symfile.h (enum overlay_debugging_state):
13477 Define enum constant values for overlay mode.
13478 * symfile.c (overlay_debugging): Use enums instead of literals.
13479 (overlay_is_mapped, overlay_auto_command,
13480 overlay_manual_command): Ditto.
13481
13482 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13483 breakpoint_here_p, breakpoint_inserted_here_p,
13484 breakpoint_thread_match, bpstat_stop_status,
13485 describe_other_breakpoints, check_duplicates, clear_command):
13486 Coding standard fixes.
13487
13488 * target.c (target_xfer_memory): Add spaces, coding standard.
13489 (do_xfer_memory): Add missing line to trust-readonly
13490 code: check bfd SEC_READONLY flag for section.
13491
13492 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13493
13494 * PROBLEMS: Fix typo, 5.1->5.1.1.
13495
13496 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13497
13498 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13499 data symbols, since we search based on textlow and texthigh.
13500 (find_pc_sect_symtab): Likewise.
13501
13502 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13503
13504 * defs.h (vwarning): Declare.
13505 * utils.c (vwarning): New function.
13506 (warning): Call vwarning.
13507 (warning_begin): Delete function.
13508
13509 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13510 the warning message.
13511 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13512 warning_begin.
13513
13514 2002-01-30 Michael Snyder <msnyder@redhat.com>
13515
13516 * NEWS: Mention "set trust-readonly-sections" command.
13517 Mention generate-core-file command.
13518
13519 2002-01-15 Michael Snyder <msnyder@redhat.com>
13520
13521 * target.c: New command, "set trust-readonly-sections on".
13522 (do_xfer_memory): Honor the suggestion to trust readonly sections
13523 by reading them from the object file instead of from the target.
13524 (initialize_targets): Register command "set trust-readonly-sections".
13525
13526 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13527
13528 * parse.c (target_map_name_to_register): Simplify, search regs and
13529 pseudo-regs using a single loop.
13530
13531 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13532
13533 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13534
13535 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13536
13537 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13538 * config/i386/i386v42mp.mh: Add i387-nat.o .
13539 * i386v4-nat.c: Include i387-nat.h.
13540 (supply_fpregset): Use i387_supply_fsave.
13541 (fill_fpregset): Use i387_fill_fsave.
13542
13543 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13544
13545 * arm-tdep.c (arm_call_dummy_words): Define.
13546 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13547 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13548 (CALL_DUMMY_WORDS): Define.
13549 (arm_call_dummy_words): Declare.
13550 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13551 (arm_linux_call_dummy_words): Declare.
13552
13553 2002-01-30 Andreas Schwab <schwab@suse.de>
13554
13555 * m68klinux-nat.c: Fix last change to use regcache_collect
13556 instead of referencing registers[] directly.
13557
13558 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13559
13560 * parse.c (target_map_name_to_register): Delete code wrapped in
13561 #ifdef REGISTER_NAME_ALIAS_HOOK.
13562
13563 2002-01-28 Michael Snyder <msnyder@redhat.com>
13564
13565 * regcache.c (legacy_read_register_gen): Need to be able to
13566 read pseudo-register as well as real register.
13567 (legacy_write_register_gen): Ditto.
13568
13569 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13570
13571 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13572 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13573 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13574 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13575 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13576 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13577 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13578 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13579 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13580 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13581 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13582 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13583 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13584 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13585 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13586 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13587 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13588 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13589 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13590 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13591
13592 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13593
13594 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13595 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13596 (initialize_current_architecture): Update target_byte_order using
13597 information from BFD.
13598 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13599 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13600
13601 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13602
13603 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13604 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13605
13606 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13607 #ifdef INVALID_FLOAT.
13608 * infcmd.c (do_registers_info): Ditto.
13609 * values.c (unpack_double): Ditto. Add comment.
13610
13611 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13612 already commented out.
13613
13614 2002-01-26 Andreas Schwab <schwab@suse.de>
13615
13616 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13617 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13618 registers and add support for PTRACE_GETREGS.
13619
13620 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13621
13622 GDB 5.1.1 released from 5.1 branch.
13623 * NEWS: Add 5.1.1 news.
13624 * README: Sync with 5.1 branch.
13625
13626 2002-01-23 Fred Fish <fnf@redhat.com>
13627
13628 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13629 stabstring on initial malloc. Reallocing will copy it for us,
13630 if necessary.
13631
13632 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13633
13634 * Makefile.in (hpread_h): Delete.
13635 (HFILES_NO_SRCDIR): Remove hpread.h.
13636 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13637 (hpread.o): Update dependencies.
13638 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13639
13640 * hp-psymtab-read.c: Remove file.
13641 * hp-symtab-read.c: Remove file.
13642 * hpread.h: Remove file.
13643
13644 * hpread.c: Merge all contents of hp-psymtab-read.c,
13645 hp-symtab-read.c and hpread.h into this file, as it was prior to
13646 January 1999.
13647
13648 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13649 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13650 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13651 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13652
13653 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13654
13655 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13656 fill_gregset): Call gdbarch_tdep() just once, assign result to
13657 variable and use that, instead of calling the function several
13658 times.
13659
13660 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13661
13662 * configure.host: Accept sparcv9 as alias for sparc64.
13663 * configure.tgt: Likewise.
13664
13665 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13666
13667 * solib-aix5.c (build_so_list_from_mapfile)
13668 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13669 arguments is not reversed.
13670 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13671 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13672
13673 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13674
13675 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13676 modified version of obsolete sh_fetch_pseudo_register.
13677 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13678 (sh4_register_read): New function.
13679 (sh_pseudo_register_write): New function. Renamed and modified
13680 version of obsolete sh_store_pseudo_register.
13681 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13682 (sh4_register_write): New function.
13683 (sh_gdbarch_init): Remove setting of gdbarch function
13684 fetch_pseudo_register and store_pseudo_register. Remove setting of
13685 register_convert_to_raw, register_convert_to_virtual,
13686 register_convertible.
13687 (sh_sh4_register_convertible): Delete. No longer needed. All is
13688 taken care by architecture specific functions
13689 register_read/register_write.
13690 (sh_sh4_register_convert_to_virtual): Make static.
13691 (sh_sh4_register_convert_to_raw): Ditto.
13692
13693 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13694
13695 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13696 (floatformat_is_nan, floatformat_mantissa): Ditto.
13697
13698 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13699 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13700 builtin_type_ieee_double_little,
13701 builtin_type_ieee_double_littlebyte_bigword,
13702 builtin_type_m68881_ext, builtin_type_i960_ext,
13703 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13704 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13705 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13706 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13707
13708 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13709
13710 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13711 parameter. Set frameless flag if it exists and depended of
13712 whether the scanned function is frameless or not.
13713 (xstormy16_skip_prologue): If function is frameless, return
13714 result of xstormy16_scan_prologue().
13715 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13716 call.
13717
13718 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13719
13720 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13721 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13722 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13723 sh_sh4_register_byte, sh_sh4_register_raw_size,
13724 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13725 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13726 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13727 sh_store_pseudo_register, sh_do_pseudo_register): Call
13728 gdbarch_tdep() just once, assign result to variable and use that,
13729 instead of calling the function several times.
13730
13731 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13732
13733 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13734 macros instead of LAST_FPU_CTRL_REGNUM.
13735 (store_register): Likewise.
13736
13737 2002-01-21 Jim Blandy <jimb@redhat.com>
13738
13739 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13740 is up-to-date before running the program, not just when a program
13741 exits.
13742
13743 2002-01-21 Fred Fish <fnf@redhat.com>
13744
13745 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13746 when we have found all instructions we are looking for.
13747
13748 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13749
13750 * arm-tdep.c (arm_register_name): New function.
13751 (arm_registers_names): Make static.
13752 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13753 (arm_register_name): Declare.
13754 (REGISTER_NAME): Use it.
13755
13756 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13757 Kevin Buettner <kevinb@redhat.com>
13758
13759 Convert arm targets to new FRAME interface.
13760 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13761 (arm_frame_find_save_regs): Delete.
13762 (arm_frame_init_saved_regs): New.
13763 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13764 Allocate extra_info as required. Convert all uses of fsr.regs
13765 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13766 to use extra_info.
13767 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13768 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13769 (check_prologue_cache, save_prologue_cache): Likewise.
13770 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13771 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13772 (FRAME_FIND_SAVED_REGS): Delete.
13773 (arm_frame_find_saved_regs): Delete prototype.
13774 (arm_frame_init_saved_regs): New prototype.
13775 (FRAME_INIT_SAVED_REGS): Define.
13776
13777 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13778
13779 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13780
13781 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13782
13783 From Jeff Law <law@redhat.com>:
13784 * infttrace.c: Include <sys/pstat.h>.
13785 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13786 exec file if the ttrace equivalent fails.
13787
13788 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13789
13790 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13791 (closeLogFile): Ditto.
13792
13793 2002-01-20 Michael Chastain <mec@shout.net>
13794
13795 * top.c (print_gdb_version): Bump copyright year to 2002.
13796
13797 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13798
13799 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13800 Zannoni and Eli Zaretskii.
13801
13802 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13803
13804 * buildsym.c: Update copyright years.
13805 * c-typeprint.c: Likewise.
13806 * dwarf2read.c: Likewise.
13807 * f-typeprint.c: Likewise.
13808 * gdbtypes.c: Likewise.
13809 * gdbtypes.h: Likewise.
13810 * hp-symtab-read.c: Likewise.
13811 * hpread.c: Likewise.
13812 * mdebugread.c: Likewise.
13813 * p-typeprint.c: Likewise.
13814
13815 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13816
13817 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13818 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13819 byte-order selectable.
13820 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13821 * arch-utils.c: Ditto.
13822 (set_endian): Ditto.
13823 (set_endian_from_file): Ditto.
13824 * gdbserver/low-sim.c (create_inferior): Ditto.
13825 * gdbarch.sh: Ditto.
13826 * gdbarch.h: Re-generate.
13827 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13828 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13829 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13830 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13831 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13832 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13833 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13834 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13835 macro definition.
13836 * config/mips/tm-wince.h: Remove #undef of macro
13837 TARGET_BYTE_ORDER_SELECTABLE.
13838 * config/sh/tm-wince.h: Ditto.
13839
13840 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13841
13842 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13843 member function fields. Add accessor macro
13844 TYPE_FN_FIELD_ARTIFICIAL.
13845 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13846 * c-typeprint.c (c_type_print_base): Skip artificial member
13847 functions.
13848
13849 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13850
13851 * f-typeprint.c: Delete unused function f_type_print_args.
13852 * p-typeprint.c: Delete unused function pascal_type_print_args.
13853
13854 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13855
13856 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13857 comment. Add ``artificial'' to ``union field_location''.
13858
13859 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13860
13861 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13862 * mdebugread.c (parse_symbol): Likewise.
13863 * stabsread.c (define_symbol): Likewise.
13864 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13865 initializing TYPE_FIELD_BITPOS to n (obsolete).
13866 (hpread_doc_function_type): Likewise.
13867 * hpread.c (hpread_function_type): Likewise.
13868
13869 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13870
13871 * configure.in (host_makefile_frag): Only require a host makefile
13872 fragment when a native build.
13873 * configure: Re-generate.
13874
13875 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13876
13877 * doublest.h (floatformat_from_type): Declare.
13878 * doublest.c (floatformat_from_type): New function.
13879 (convert_typed_floating): Use.
13880
13881 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13882 call to function floatformat_from_type.
13883
13884 * gdbarch.sh (IEEE_FLOAT): Delete.
13885 * gdbarch.h, gdbarch.c: Re-generate.
13886 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13887 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13888 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13889 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13890 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13891 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13892 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13893 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13894 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13895 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13896 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13897 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13898
13899 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13900 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13901 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13902 * sh-tdep.c (sh_gdbarch_init): Ditto.
13903 * mips-tdep.c (mips_gdbarch_init): Ditto.
13904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13905 * cris-tdep.c (cris_gdbarch_init): Ditto.
13906
13907 2002-01-20 Jiri Smid <smid@suse.cz>
13908
13909 * configure.host, configure.tgt: Support x86-64.
13910 * NEWS: Note new target x86-64.
13911
13912 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13913 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13914 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13915 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13916 x86-64-linux-nat.o): Fix dependencies.
13917
13918 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13919
13920 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13921 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13922 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13923 * config/sparc/xm-sun4os4.h: Delete file.
13924 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13925
13926 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13927
13928 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13929 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13930 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13931 * config/i386/i386lynx.mh (XM_FILE): Delete.
13932 * config/rs6000/xm-rs6000ly.h: Delete file.
13933 * config/sparc/xm-sparclynx.h: Delete file.
13934 * config/m68k/xm-m68klynx.h: Delete file.
13935 * config/i386/xm-i386lynx.h: Delete file.
13936 * config/xm-lynx.h: Delete file.
13937 * config/djgpp/fnchange.lst: Update.
13938
13939 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13940
13941 * alpha-tdep.c (alpha_register_byte): New function.
13942 (alpha_register_raw_size): Ditto.
13943 (alpha_register_virtual_size): Ditto.
13944 (alpha_skip_prologue_internal): Renamed from
13945 alpha_skip_prologue.
13946 (alpha_skip_prologue): New version that calls
13947 alpha_skip_prologue_internal.
13948 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13949 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13950 second argument from alpha_skip_prologue.
13951 (REGISTER_BYTE): Use alpha_register_byte.
13952 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13953 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13954 (FRAMELESS_FUNCTION_INVOCATION): Use
13955 generic_frameless_function_invocation_not.
13956 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13957 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13958
13959 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13960
13961 * config/mips/xm-news-mips.h: Delete file.
13962 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13963
13964 * config/m88k/xm-m88k.h: Delete file.
13965 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13966 * config/m88k/xm-delta88v4.h: Ditto.
13967 * config/m88k/xm-delta88.h: Ditto.
13968
13969 * config/alpha/xm-fbsd.h: Delete file.
13970 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13971
13972 * config/sparc/xm-sparc.h: Delete file.
13973 * Makefile.in (xm-sun4os4.h): Delete dependency.
13974 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13975 * config/sparc/xm-sun4os4.h: Ditto.
13976 * config/sparc/xm-linux.h: Ditto.
13977
13978 * config/i386/xm-windows.h: Delete file.
13979
13980 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13981
13982 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13983 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13984
13985 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13986
13987 * alpha-tdep.c (alpha_call_dummy_words): New.
13988 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13989 (CALL_DUMMY_P): Define.
13990 (CALL_DUMMY_WORDS): Define.
13991 (SIZEOF_CALL_DUMMY_WORDS): Define.
13992
13993 2002-01-19 Per Bothner <per@bothner.com>
13994
13995 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13996 isn't NULL, which can happen with some gcj-3.x-produced code.
13997
13998 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13999
14000 * alpha-tdep.c (alpha_register_virtual_type): New function.
14001 (alpha_init_frame_pc_first): Ditto.
14002 (alpha_fix_call_dummy): Ditto.
14003 (alpha_store_struct_return): Ditto.
14004 (alpha_extract_struct_value_address): Ditto.
14005 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14006 alpha_register_virtual_type.
14007 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14008 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14009 alpha_extract_struct_value_address.
14010 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14011 (INIT_FRAME_PC): Use init_frame_pc_noop.
14012 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14013
14014 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14015
14016 * i386gnu-nat.c: Include "i386-tdep.h".
14017 (fetch_fpregs): Simplify code dealing with uninitialized floating
14018 point states such that it doesn't require FP7_REGNUM.
14019
14020 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14021
14022 * alpha-tdep.c (frame_extra_info): New.
14023 (alpha_find_saved_regs): Make static. Use
14024 frame->extra_info.
14025 (alpha_frame_init_saved_regs): New function.
14026 (alpha_frame_saved_pc): Use frame->extra_info.
14027 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14028 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14029 (init_extra_frame_info): Rename to...
14030 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14031 (alpha_print_extra_frame_info): New function.
14032 (alpha_frame_locals_address): Ditto.
14033 (alpha_frame_args_address): Ditto.
14034 (alpha_pop_frame): Use frame->extra_info.
14035 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14036 alpha_frame_args_address.
14037 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14038 (alpha_find_saved_regs): Remove prototype.
14039 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14040 (EXTRA_FRAME_INFO): Remove.
14041 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14042 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14043
14044 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14045
14046 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14047 (alpha_cannot_fetch_register): Ditto.
14048 (alpha_cannot_store_register): Ditto.
14049 (alpha_register_convertible): Ditto.
14050 (alpha_use_struct_convention): Ditto.
14051 * config/alpha/tm-alpha.h: Update copyright years.
14052 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14053 (INNER_THAN): Use core_addr_lessthan.
14054 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14055 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14056 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14057 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14058 (FRAME_CHAIN): Remove unnecessary cast.
14059
14060 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14061
14062 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14063 obsolete.
14064
14065 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14066
14067 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14068 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14069 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14070 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14071 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14072 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14073 * x86-64-linux-nat.c: Ditto.
14074
14075 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14076
14077 * alpha-tdep.c (alpha_register_name): New function.
14078 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14079 (REGISTER_NAME): Define.
14080
14081 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14082
14083 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14084
14085 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14086
14087 * alpha-tdep.c: Update copyright years.
14088 (alpha_next_pc): New function.
14089 (alpha_software_single_step): Ditto.
14090 * config/alpha/tm-alpha.h: Add prototype for
14091 alpha_software_single_step.
14092
14093 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14094
14095 * alphabsd-nat.c: Update copyright years.
14096 (fill_gregset): Use regcache_collect.
14097 (fill_fpregset): Likewise.
14098 (fetch_inferior_registers): Only fetch integer registers
14099 if requested to do so.
14100 (store_inferior_registers): Only store integer registers
14101 if requested to do so.
14102
14103 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14104
14105 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14106 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14107 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14108 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14109 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14110 * config/arm/linux.mh (XDEPFILES): Delete.
14111 * config/arm/nbsd.mh (XDEPFILES): Delete.
14112 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14113 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14114 * config/i386/i386m3.mh (XDEPFILES): Delete.
14115 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14116 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14117 * config/i386/fbsd.mh (XDEPFILES): Delete.
14118 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14119 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14120 * config/i386/i386v4.mh (XDEPFILES): Delete.
14121 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14122 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14123 * config/i386/i386aix.mh (XDEPFILES): Delete.
14124 * config/i386/go32.mh (XDEPFILES): Delete.
14125 * config/i386/cygwin.mh (XDEPFILES): Delete.
14126 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14127 * config/i386/i386mach.mh (XDEPFILES): Delete.
14128 * config/i386/i386v32.mh (XDEPFILES): Delete.
14129 * config/i386/linux.mh (XDEPFILES): Delete.
14130 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14131 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14132 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14133 * config/i386/i386sco.mh (XDEPFILES): Delete.
14134 * config/i386/i386v.mh (XDEPFILES): Delete.
14135 * config/i386/nbsd.mh (XDEPFILES): Delete.
14136 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14137 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14138 * config/i386/symmetry.mh (XDEPFILES): Delete.
14139 * config/i386/obsd.mh (XDEPFILES): Delete.
14140 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14141 * config/ia64/linux.mh (XDEPFILES): Delete.
14142 * config/ia64/aix.mh (XDEPFILES): Delete.
14143 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14144 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14145 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14146 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14147 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14148 * config/m68k/linux.mh (XDEPFILES): Delete.
14149 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14150 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14151 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14152 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14153 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14154 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14155 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14156 * config/m88k/delta88.mh (XDEPFILES): Delete.
14157 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14158 * config/m88k/m88k.mh (XDEPFILES): Delete.
14159 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14160 * config/mips/linux.mh (XDEPFILES): Delete.
14161 * config/mips/irix6.mh (XDEPFILES): Delete.
14162 * config/mips/irix5.mh (XDEPFILES): Delete.
14163 * config/mips/irix4.mh (XDEPFILES): Delete.
14164 * config/mips/irix3.mh (XDEPFILES): Delete.
14165 * config/mips/decstation.mh (XDEPFILES): Delete.
14166 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14167 (NATDEPFILES): Move core-aout.o to here.
14168 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14169 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14170 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14171 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14172 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14173 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14174 * config/pa/hpux11.mh (XDEPFILES): Delete.
14175 * config/powerpc/aix.mh (XDEPFILES): Delete.
14176 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14177 * config/powerpc/linux.mh (XDEPFILES): Delete.
14178 * config/romp/rtbsd.mh: Rename XDEPFILES.
14179 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14180 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14181 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14182 * config/s390/s390.mh (XDEPFILES): Delete.
14183 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14184 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14185 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14186 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14187 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14188 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14189 * config/sparc/linux.mh (XDEPFILES): Delete.
14190 * config/vax/vaxult.mh (XDEPFILES): Delete.
14191 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14192 * Makefile.in (DEPFILES): Remove XDEPFILES.
14193
14194 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14195
14196 * utils.c (internal_verror): Fix comments, default is yes not no.
14197 Update queries to match. Default to quit and dump core.
14198
14199 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14200
14201 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14202 copyright.
14203 * defs.h, event-top.c, gdbcmd.h: Ditto.
14204 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14205 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14206 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14207 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14208 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14209 * mi/mi-main.c:Ditto.
14210
14211 * stack.c, symfile.c: Update copyright.
14212
14213 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14214
14215 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14216 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14217 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14218 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14219
14220 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14221
14222 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14223 * gdbserver/low-lynx.c (myattach): Likewise.
14224 * gdbserver/low-nbsd.c (myattach): Likewise.
14225 * gdbserver/low-sim.c (myattach): Likewise.
14226 * gdbserver/low-sparc.c (myattach): Likewise.
14227 * gdbserver/low-sun3.c (myattach): Likewise.
14228
14229 * gdbserver/low-linux.c (myattach): New function.
14230
14231 * gdbserver/server.c (attach_inferior): New function.
14232 (main): Handle "--attach".
14233
14234 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14235
14236 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14237 maintainer.
14238
14239 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14240
14241 * c-typeprint.c (is_type_conversion_operator): Add additional
14242 check for non-conversion operators.
14243
14244 2002-01-15 Michael Snyder <msnyder@redhat.com>
14245
14246 * linux-proc.c: Add "info proc" command, a la procfs.c.
14247 (read_mapping): New function, abstract and re-use code.
14248 (linux_find_memory_regions): Use new func read_mapping.
14249 (linux_info_proc_cmd): New function, implement "info proc".
14250 (_initialize_linux_proc): Add new command "info proc".
14251
14252 2002-01-15 Michael Snyder <msnyder@redhat.com>
14253
14254 * symfile.c (generic_load): Use bfd_map_over_sections method
14255 instead of manipulating bfd structure members directly.
14256 (add_section_size_callback): New function, bfd sections callback
14257 used by generic_load.
14258 (load_sections_callback): New function, bfd sections callback
14259 used by generic_load.
14260
14261 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14262
14263 [Based on work by Jim Blandy]
14264 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14265 (builtin_type_vec128): Export.
14266 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14267 types.
14268 (builtin_type_vec128): New builtin type for 128 bit vector
14269 registers.
14270 (build_gdbtypes): Initialize builtin_type_v16qi and
14271 builtin_type_v8hi. Create the vec128 register builtin type
14272 structure.
14273 (build_builtin_type_vec128): New function.
14274 (_initialize_gdbtypes): Register builtin_type_v16qi and
14275 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14276 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14277 AltiVec register to new builtin type.
14278
14279 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14280
14281 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14282 to make_cv_type.
14283
14284 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14285
14286 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14287 CLEAN_UP_REGISTER_VALUE.
14288 * regcache.c (supply_register): Update only call.
14289
14290 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14291
14292 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14293 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14294 a29k-*-vxworks* targets as obsolete.
14295
14296 2002-01-14 Michael Snyder <msnyder@redhat.com>
14297
14298 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14299 until we can resolve portability issues.
14300 * gregset.h: Remove references to fpxregs.
14301 * gcore.c (gcore_command): Initialize note_sec to NULL.
14302
14303 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14304
14305 * signals.c (target_signal_to_name): Rewrite. Only use
14306 signals[].name when in bounds and non-NULL.
14307
14308 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14309
14310 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14311 * signals.c (target_signal_to_name): Verify that SIG is within the
14312 bounds of the signals array.
14313
14314 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14315
14316 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14317
14318 2002-01-13 Keith Seitz <keiths@redhat.com>
14319
14320 * stack.c (print_frame_info_base): Print the frame's pc
14321 only if when print_frame_info_listing_hook is not defined.
14322
14323 2002-01-13 Keith Seitz <keiths@redhat.com>
14324
14325 * varobj.c (varobj_set_value): Make sure that there were no
14326 errors evaluating the object before attempting to set its
14327 value.
14328 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14329 so this offset adjustment is no longer necessary.
14330 (create_child): Don't set the error flag if the child is
14331 a CPLUS_FAKE_CHILD.
14332 (value_of_child): If value_fetch_lazy fails, return NULL
14333 so that callers will be notified that an error occurred.
14334 (c_value_of_variable): Delay check of variable's validity
14335 until later. We actually want all structs and unions to have
14336 the value "{...}".
14337 Do not return "???" for variables which could not be evaluated.
14338 This error condition must be returned to the caller so that it
14339 can get the error condition from gdb.
14340 (cplus_name_of_child): Adjust index for vptr before figuring
14341 out the name of the child.
14342 (cplus_value_of_child): If a child's (real) parent is not valid,
14343 don't even bother trying to give a value for it. Just return
14344 an error. Change all instances in this function.
14345 (cplus_type_of_child): If our parent is one of the "fake"
14346 parents, we need to get at the type of the real parent, and
14347 derive the child's true type using this information.
14348
14349 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14350
14351 From 2002-01-09 John Marshall <johnm@falch.net>:
14352 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14353 sources.redhat.com, and tweak some related URLs which had
14354 suffered from linkrot.
14355
14356 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14357
14358 From Jeff law:
14359 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14360 structures passed in registers.
14361
14362 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14363
14364 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14365 white space which prevented compilation. Reported by DSK
14366 <dsk@student.unsw.edu.au>.
14367
14368 2002-01-11 Michael Snyder <msnyder@redhat.com>
14369
14370 * symfile.c (build_section_addr_info_from_section_tab):
14371 Use bfd access method instead of manipulating bfd directly.
14372 (syms_from_objfile): Ditto.
14373 (simple_overlay_update_1): Ditto.
14374 (simple_overlay_update): Ditto.
14375 (generic_load): Ditto.
14376 (overlay_unmapped_address): FIXME comment, bfd access methods.
14377 (sections_overlap): FIXME comment, bfd access methods.
14378 (pc_in_mapped_range): FIXME comment, bfd access methods.
14379 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14380 (section_is_mapped): FIXME comment, bfd access methods.
14381 (section_is_overlay): FIXME comment, bfd access methods.
14382
14383 * symfile.c (generic_load): Whitespace and long line cleanups.
14384 Remove duplicate variable, change several local variables to
14385 more appropriate data types.
14386 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14387
14388 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14389
14390 From Peter Schauer:
14391 * language.c (longest_local_hex_string_custom): Use phex_nz to
14392 convert NUM to a hex string.
14393
14394 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14395
14396 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14397 the function.
14398 Update Copyright year.
14399
14400 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14401
14402 * language.c (longest_raw_hex_string): Delete unused function.
14403
14404 2002-01-11 Petr Sorfa <petrs@caldera.com>
14405
14406 * MAINTAINERS (write-after-approval): Add myself.
14407 * dwarf2read.c (read_tag_string_type): Handling of
14408 DW_AT_byte_size.
14409 (read_tag_string_type): FORTRAN fix to prevent propagation of
14410 first string size.
14411 (set_cu_language): Handling of DW_LANG_Fortran95
14412
14413 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14414
14415 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14416 GETPID(inferior_ptid).
14417 (store_inferior_registers): Likewise.
14418
14419 2002-01-10 Jason Merrill <jason@redhat.com>
14420
14421 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14422 Fix DW_OP_minus.
14423
14424 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14425
14426 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14427 and bfd/elf32-sh-nbsd.c.
14428
14429 2002-01-10 Michael Snyder <msnyder@redhat.com>
14430
14431 * NEWS: Mention --pid and corefile/proc-id behavior change.
14432
14433 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14434 * gcore.c: Include cli/cli-decode.h instead of command.h.
14435
14436 * main.c (captured_main): Add new command line option "--pid".
14437 If the second command line argument (following the symbol-file)
14438 begins with a digit, try to attach to it before trying to open
14439 it as a corefile.
14440 (print_gdb_help): Document the "--pid" argument.
14441
14442 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14443
14444 * completer.c (command_completer): New function.
14445
14446 * completer.h <command_completer>: Add prototype.
14447
14448 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14449 completer for the "help" command.
14450
14451 2002-01-09 Jason Merrill <jason@redhat.com>
14452
14453 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14454
14455 2002-01-09 Michael Snyder <msnyder@redhat.com>
14456
14457 * i386-linux-nat.c (fill_fpxregset): Make global.
14458 (store_fpxregset): Ditto.
14459
14460 * gregset.h (gdb_fpxregset_t): Define.
14461 (supply_fpxregset): Prototype.
14462 (fill_fpxregset): Prototype.
14463
14464 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14465
14466 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14467
14468 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14469 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14470 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14471
14472 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14473
14474 * MAINTAINERS: Update target maintainer rules so that any
14475 Maintainer can approve a tested patch for a maintenance-only
14476 target.
14477
14478 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14479
14480 * MAINTAINERS (write-after-approval): Add myself.
14481
14482 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14483 IN_SIGTRAMP.
14484
14485 2002-01-08 Michael Snyder <msnyder@redhat.com>
14486
14487 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14488 real name of the executable, rather than the /proc name.
14489
14490 2002-01-03 Michael Snyder <msnyder@redhat.com>
14491
14492 Implement a "generate-core-file" command in gdb, save target state.
14493 * gcore.c: New file. Implement new command 'generate-core-file'.
14494 Save a corefile image of the current state of the inferior.
14495 * linux-proc.c: Add linux-specific code for saving corefiles.
14496 * target.h (struct target_ops): Add new target vectors for saving
14497 corefiles; to_find_memory_regions and to_make_corefile_notes.
14498 (target_find_memory_regions): New macro.
14499 (target_make_corefile_notes): New macro.
14500 * target.c (update_current_target): Inherit new target methods.
14501 (dummy_find_memory_regions): New place-holder method.
14502 (dummy_make_corefile_notes): New place-holder method.
14503 (init_dummy_target): Initialize new dummy target vectors.
14504 * exec.c (exec_set_find_memory_regions): New function.
14505 Allow the exec_ops vector for memory regions to be taken over.
14506 (exec_make_note_section): New function, target vector method.
14507 * defs.h (exec_set_find_memory_regions): Export prototype.
14508 * procfs.c (proc_find_memory_regions): New function, corefile method.
14509 (procfs_make_note_section): New function, corefile method.
14510 (init_procfs_ops): Set new target vector pointers.
14511 (find_memory_regions_callback): New function.
14512 (procfs_do_thread_registers): New function.
14513 (procfs_corefile_thread_callback): New function.
14514 * sol-thread.c (sol_find_memory_regions): New function.
14515 (sol_make_note_section): New function.
14516 (init_sol_thread_ops): Initialize new target vectors.
14517 * inftarg.c (inftarg_set_find_memory_regions): New function.
14518 Allow to_find_memory_regions vector to be taken over.
14519 (inftarg_set_make_corefile_notes): New function.
14520 Allow to_make_corefile_notes vector to be taken over.
14521 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14522 interface layer if not target_has_execution (may be a corefile).
14523 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14524 * config/sparc/sun4sol2.mh: Ditto.
14525 * config/alpha/alpha-linux.mh: Ditto.
14526 * config/arm/linux.mh: Ditto.
14527 * config/i386/x86-64linux.mh: Ditto.
14528 * config/ia64/linux.mh: Ditto.
14529 * config/m68k/linux.mh: Ditto.
14530 * config/mips/linux.mh: Ditto.
14531 * config/powerpc/linux.mh: Ditto.
14532 * config/sparc/linux.mh: Ditto.
14533
14534 2002-01-07 Michael Snyder <msnyder@redhat.com>
14535
14536 * arm-linux-nat.c: Remove references to regcache.c internal data
14537 (registers[] and register_valid[]).
14538
14539 2002-01-07 Michael Snyder <msnyder@redhat.com>
14540
14541 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14542 so that attaching to a pid will automatically read the process's
14543 symbol file and shlibs.
14544 * Makefile.in: Add rule for linux-proc.o.
14545 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14546 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14547 * config/arm/linux.mh: Ditto.
14548 * config/i386/linux.mh: Ditto.
14549 * config/i386/x86-64linux.mh: Ditto.
14550 * config/ia64/linux.mh: Ditto.
14551 * config/m68k/linux.mh: Ditto.
14552 * config/mips/linux.mh: Ditto.
14553 * config/powerpc/linux.mh: Ditto.
14554 * config/sparc/linux.mh: Ditto.
14555
14556 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14557
14558 * win32-nat.c: Add i386-tdep.h dependency.
14559
14560 2002-01-07 Michael Snyder <msnyder@redhat.com>
14561
14562 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14563 instead of bfd_get_arch_size. Don't bail out just because
14564 there's no exec_bfd.
14565
14566 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14567 * p-valprint.c (pascal_object_print_value): Ditto.
14568 * somread.c (som_symtab_read): Ditto.
14569 * symfile.c (simple_free_overlay_region_table): Ditto.
14570 * valops.c (value_assign): Ditto.
14571
14572 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14573 use tilde_expand and strerror for opening save-tracepoints file.
14574
14575 * thread-db.c (thread_db_new_objfile): Indendation fix.
14576
14577 * infptrace.c (GDB_MAX_ALLOCA): New define.
14578 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14579 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14580 can be overridden with whatever value is appropriate to the host).
14581 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14582 alloca to allocate potentially large buffer.
14583 * rs6000-nat.c (child_xfer_memory): Ditto.
14584 * symm-nat.c (child_xfer_memory): Ditto.
14585 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14586
14587 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14588
14589 From Nick Clifton <nickc@redhat.com>
14590 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14591
14592 2002-01-07 Michael Snyder <msnyder@redhat.com>
14593
14594 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14595 Don't use exec_bfd if it's NULL.
14596
14597 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14598
14599 * valops.c (value_arg_coerce): Fix formatting.
14600
14601 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14602
14603 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14604 * gnu-nat.c: Ditto.
14605
14606 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14607
14608 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14609 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14610 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14611 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14612 z8k-coff have not been multi-arched. Update z8k-coff build
14613 status.
14614
14615 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14616
14617 * MAINTAINERS: Mark a29k target as obsolete.
14618 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14619 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14620 comments.
14621 * NEWS: Note that a29k targets are obsolete.
14622 * a29k-tdep.c: Mark as obsolete.
14623 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14624 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14625 a29k-*-vxworks* targets as obsolete.
14626 * remote-adapt.c: Obsolete.
14627 * remote-eb.c: Obsolete.
14628 * remote-mm.c: Obsolete.
14629 * remote-udi.c: Obsolete.
14630 * config/a29k/a29k-udi.mt: Obsolete.
14631 * config/a29k/a29k.mt: Obsolete.
14632 * config/a29k/tm-a29k.h: Obsolete.
14633 * config/a29k/tm-vx29k.h: Obsolete.
14634 * config/a29k/vx29k.mt: Obsolete.
14635
14636 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14637
14638 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14639 with BFD_ENDIAN_BIG.
14640
14641 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14642
14643 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14644 * configure, config.in: Re-generate.
14645 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14646 * defs.h: Do not include <endian.h>.
14647
14648 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14649
14650 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14651 * config.in: Regenerate.
14652 * configure.in: Update copyright years.
14653 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14654 * configure: Regenerate.
14655 * i386bsd-nat.c: Update copyright years.
14656 (fill_gregset): Use regcache_collect.
14657 (fetch_inferior_registers): Only fetch integer registers
14658 if requested to do so. Add support for XMM registers
14659 using PT_GETXMMREGS.
14660 (store_inferior_registers): Only store integer registers
14661 if requested to do so. Add support for XMM registers
14662 using PT_SETXMMREGS.
14663 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14664 (store_inferior_registers): Remove.
14665 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14666 (fetch_elfcore_registers): New function.
14667 (i386nbsd_elfcore_fns): New.
14668 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14669 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14670 i386bsd-nat.o.
14671 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14672 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14673 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14674 * config/i386/tm-nbsd.h: Update copyright years.
14675 (HAVE_SSE_REGS): Define.
14676 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14677 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14678 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14679 (SIGCONTEXT_PC_OFFSET): Remove.
14680 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14681
14682 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14683
14684 * configure.tgt: Remove powerpc-*-macos* target.
14685 * config/m68k/xm-mpw.h: Delete file.
14686 * config/xm-mpw.h: Delete file.
14687 * ser-mac.c: Delete file.
14688 * mpw-make.sed: Delete file.
14689 * mpw-config.in: Delete file.
14690 * mac-xdep.c: Delete file.
14691 * mac-gdb.r: Delete file.
14692 * mac-defs.h: Delete file.
14693 * mac-nat.c: Delete file.
14694 * config/powerpc/macos.mh: Delete file.
14695 * config/powerpc/macos.mt: Delete file.
14696 * config/powerpc/nm-macos.h: Delete file.
14697 * config/powerpc/tm-macos.h: Delete file.
14698 * source.c (openp, open_source_file): Remove obsolete code.
14699 * top.c (gdb_readline): Ditto.
14700 * utils.c (query): Ditto.
14701 * event-top.c (display_gdb_prompt): Ditto.
14702 * Makefile.in (ser-mac.o): Delete obsolete target.
14703 * NEWS: Update.
14704
14705 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14706
14707 * defs.h (BIG_ENDIAN): Delete macro definition.
14708 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14709 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14710 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14711 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14712 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14713 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14714 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14715 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14716 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14717 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14718 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14719 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14720 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14721 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14722 * gdbarch.c: Re-generate.
14723
14724 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14725
14726 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14727 for core files.
14728
14729 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14730
14731 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14732
14733 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14734
14735 * value.h (value_ptr): Delete typedef.
14736
14737 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14738
14739 * i386nbsd-nat.c: Update copyright years.
14740 Include i386-tdep.h.
14741
14742 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14743
14744 * stabsread.c: Update copyright years.
14745
14746 From Debashis Mahata <debashis.mahata@wipro.com>:
14747 (read_struct_fields): Deal with Sun C compiler erroneous stab
14748 output for structs and unions.
14749 Fix PR gdb/269.
14750
14751 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14752
14753 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14754 prototype.
14755
14756 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14757
14758 * cp-abi.c: Fix whitespace.
14759 (baseclass_offset): New wrapper function.
14760 * cp-abi.h (baseclass_offset): Add prototype.
14761 (struct cp_abi_ops): Add baseclass_offset pointer.
14762
14763 * valops.c (vb_match): Move to...
14764 * gnu-v2-abi.c (vb_match): here.
14765 * valops.c (baseclass_offset): Move to...
14766 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14767
14768 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14769
14770 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14771 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14772 * hpacc-abi.c (init_hpacc_ops): Likewise.
14773
14774 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14775
14776 * valops.c (find_overload_match): Accept obj as a
14777 reference parameter. Update it before returning.
14778 * value.h (find_overload_match): Update prototype.
14779 * eval.c (evaluate_subexp_standard): Pass object to
14780 find_overload_match by reference.
14781
14782 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14783
14784 * valarith.c: Replace value_ptr with struct value pointer. Remove
14785 register attribute from value declarations.
14786 * valops.c: Ditto.
14787 * value.h: Ditto.
14788 * scm-lang.c (scm_lookup_name): Ditto.
14789
14790 2002-01-03 Michael Snyder <msnyder@redhat.com>
14791
14792 Abstract the functionality of iterating over mapped memory
14793 regions into a general purpose iterator function.
14794 * procfs.c (iterate_over_mappings): New function, general purpose
14795 iterator for memory sections.
14796 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14797 (solib_mappings_callback): New function, callback for above.
14798 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14799 (info_mappings_callback): New function, callback for above.
14800
14801 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14802
14803 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14804
14805 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14806 * i386-tdep.c: Include "elf-bfd.h".
14807 (process_note_abi_tag_sections): New function.
14808 (i386_gdbarch_init): Add code to recognize various OS/ABI
14809 combinations.
14810
14811 * maint.c (_initialize_maint_cmds): Add missing \ in
14812 string-literal.
14813
14814 For older changes see ChangeLog-2001
14815 \f
14816 Local Variables:
14817 mode: change-log
14818 left-margin: 8
14819 fill-column: 74
14820 version-control: never
14821 End:
This page took 0.513432 seconds and 4 git commands to generate.