Fix bug introduced when multiarching NUM_REGS.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-20 Kevin Buettner <kevinb@redhat.com>
2
3 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
4 ``temp_saved_regs'', not the pointer or other storage contiguous
5 to this pointer.
6
7 2002-12-20 Kevin Buettner <kevinb@redhat.com>
8
9 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
10 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
11 (mips_linux_get_longjmp_target): Delete declarations.
12 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
13 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
14 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
15 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
16 (mips_linux_get_longjmp_target)
17 (mips_linux_svr4_fetch_link_map_offsets): Make static.
18 (mips_linux_init_abi): New function.
19 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
20
21 2002-12-19 Keith Seitz <keiths@redhat.com>
22
23 patch committed by Elena Zannoni <ezannoni@redhat.com>
24 * thread.c (do_captured_list_thread_ids): Call prune_threads and
25 target_find_new_threads. Fix for PR mi/669.
26
27 2002-12-19 David Carlton <carlton@math.stanford.edu>
28
29 * linespec.c (decode_line_1): Move code into decode_all_digits.
30 (decode_all_digits): New function.
31
32 2002-12-19 Kevin Buettner <kevinb@redhat.com>
33
34 * exec.c (print_section_info): Select a format string to use with
35 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
36
37 2002-12-18 Andrew Cagney <ac131313@redhat.com>
38
39 * frame.c (deprecated_update_current_frame_pc_hack): Replace
40 deprecated_update_current_frame_pc_hack.
41 (deprecated_update_frame_base_hack): New function.
42 * frame.h (deprecated_update_frame_pc_hack): Replace
43 (deprecated_update_frame_base_hack): Declare.
44 * infrun.c (normal_stop): Update.
45
46 2002-12-18 Andrew Cagney <ac131313@redhat.com>
47
48 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
49 frame_extra_info_zalloc.
50 (rs6000_frame_args_address): Use get_frame_extra_info.
51 (frame_get_saved_regs): Use get_frame_saved_regs.
52 (frame_initial_stack_address): Use get_frame_saved_regs and
53 get_frame_extra_info.
54 (frame_initial_stack_address): Use get_frame_extra_info.
55
56 2002-12-17 Kevin Buettner <kevinb@redhat.com>
57
58 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
59 array size.
60 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
61 checks for r3900_regnames[].
62
63 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
64
65 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
66 All uses changed
67 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
68
69 2002-12-17 David Carlton <carlton@math.stanford.edu>
70
71 * symtab.c (lookup_partial_symbol): Don't search past the end of
72 the partial symbols.
73
74 2002-12-17 Andrew Cagney <ac131313@redhat.com>
75
76 * stack.c (frame_info): Use get_frame_saved_regs.
77 * breakpoint.c (until_break_command): Use get_frame_pc.
78
79 2002-12-16 Kevin Buettner <kevinb@redhat.com>
80
81 * buildsym.c (block_end_complaint, anon_block_end_complaint)
82 (innerblock_complaint, innerblock_anon_complaint)
83 (blockvector_complaint): Delete deprecated complaint structs.
84 (finish_block, make_blockvector, end_symtab): Replace calls
85 to complain() with calls to complaint().
86 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
87 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
88 (unexpected_type_complaint, bad_sclass_complaint)
89 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
90 Delete deprecated complaint structs.
91 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
92 Replace calls to complain() with calls to complaint().
93 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
94 (unknown_symtype_complaint, unknown_symchar_complaint)
95 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
96 (lbrac_mismatch_complaint, repeated_header_complaint)
97 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
98 Delete deprecated complaint structs.
99 (unknown_symtype_complaint, lbrac_mismatch_complaint)
100 (repeated_header_complaint)
101 (function_outside_compiliation_unit_complaint): New functions.
102 (add_old_header_file, find_corresponding_bincl_psymtab)
103 (set_namestring, find_stab_function_addr, read_dbx_symtab)
104 (process_one_symbol): Replace calls to complain() with, possibly
105 indirect, calls to complaint().
106 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
107 (unknown_attribute_form, unknown_attribute_length)
108 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
109 (const_ignored, botched_modified_type, op_deref2, op_deref4)
110 (basereg_not_handled, dup_user_type_allocation)
111 (dup_user_type_definition, missing_tag, bad_array_element_type)
112 (subscript_data_items, unhandled_array_subscript_format)
113 (unknown_array_subscript_format, not_row_major)
114 (missing_at_name): Delete deprecated complaint structs.
115 (bad_die_ref_complaint, unknown_attribute_form_complaint)
116 (dup_user_type_definition_complaint)
117 (bad_array_element_type_complaint): New functions.
118 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
119 (decode_subscript_data_item, dwarf_read_array_type)
120 (read_tag_string_type, read_subroutine_type, read_func_scope)
121 (locval, scan_partial_symbols, decode_modified_type)
122 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
123 (attribute_size): Replace calls to complain() with, possibly
124 indirect, calls to complaint().
125 * elfread.c (section_info_complaint, section_info_dup_complaint)
126 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
127 Delete deprecated complaint structs.
128 (elf_symtab_read, elfstab_offset_sections): Replace calls to
129 complain() with calls to complaint().
130 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
131 struct.
132 (stub_noname_complaint): New function.
133 (check_typedef, add_mangled_type): Replace calls to complain()
134 with calls to complaint().
135 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
136 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
137 (hpread_unhandled_type_complaint, hpread_struct_complaint)
138 (hpread_array_complaint, hpread_type_lookup_complaint)
139 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
140 (hpread_unhandled_common_complaint)
141 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
142 struct definitions and declarations.
143 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
144 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
145 Replace calls to complain() with, possibly indirect, calls to
146 complaint().
147 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
148 Likewise.
149 * mdebugread.c (bad_file_number_complaint, index_complaint)
150 (aux_index_complaint, block_index_complaint)
151 (unknown_ext_complaint, unknown_sym_complaint)
152 (unknown_st_complaint, block_overflow_complaint)
153 (basic_type_complaint, unknown_type_qual_complaint)
154 (array_index_type_complaint, bad_tag_guess_complaint)
155 (block_member_complaint, stEnd_complaint)
156 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
157 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
158 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
159 (bad_continued_complaint, bad_rfd_entry_complaint)
160 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
161 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
162 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
163 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
164 complaint structs.
165 (index_complaint, unknown_ext_complaint, basic_type_complaint)
166 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
167 (unexpected_type_code_complaint)
168 (function_outside_compilation_unit_complaint): New functions.
169 (parse_symbol, parse_type, upgrade_type, parse_procedure)
170 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
171 Replace calls to complain() with, possibly indirect calls to
172 complaint().
173 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
174 Delete deprecated complaint structs.
175 (lookup__objc_class, lookup_child_selector): Replace complain()
176 with complaint().
177 * remote-vx.c (cant_contact_target): Delete deprecated complaint
178 struct.
179 (vx_lookup_symbol): Replace complain() with complaint().
180 * stabsread.c (invalid_cpp_abbrev_complaint)
181 (invalid_cpp_type_complaint, member_fn_complaint)
182 (const_vol_complaint, error_type_complaint)
183 (invalid_member_complaint, range_type_base_complaint)
184 (reg_value_complaint, vtbl_notfound_complaint)
185 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
186 (unresolved_sym_chain_complaint, stabs_general_complaint)
187 (lrs_general_complaint, multiply_defined_struct): Delete
188 deprecated complaint structs.
189 (invalid_cpp_abbrev_complaint, ref_value_complaint)
190 (stabs_general_complaint, lrs_general_complaint)
191 (msg_unknown_complaint): New functions.
192 (dbx_lookup_type, read_cfront_baseclasses)
193 (read_cfront_member_functions, resolve_symbol_reference)
194 (define_symbol, resolve_live_range, add_live_range, read_type)
195 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
196 (read_one_struct_field, read_baseclasses, read_tilde_fields)
197 (read_cfront_static_fields, attach_fields_to_type)
198 (complain_about_struct_wipeout, read_range_type)
199 (common_block_start, common_block_end, cleanup_undefined_types)
200 (scan_file_globals): Replace complain() with complaint().
201 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
202 Delete deprecated complaint struct declarations.
203 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
204 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
205 (bf_not_found_complaint, ef_complaint, eb_complaint)
206 (function_outside_compilation_unit_complaint): New functions.
207 (record_include_begin, record_include_end, enter_line_range)
208 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
209 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
210 complain() with complaint().
211
212 2002-12-16 Andrew Cagney <ac131313@redhat.com>
213
214 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
215 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
216 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
217 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
218 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
219 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
220 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
221 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
222 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
223 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
224 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
225 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
226 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
227 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
228 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
229 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
230 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
231 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
232 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
233 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
234 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
235 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
236 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
237 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
238 * config/m88k/xm-dgux.h: Delete.
239 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
240 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
241 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
242 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
243 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
244 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
245 * ch-valprint.c: Delete.
246
247 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
248
249 * infrun.c (handle_inferior_event): Rearrange code to resume if
250 no catchpoint triggers for an event.
251
252 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
253
254 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
255 and TARGET_WAITKIND_VFORKED cases.
256
257 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
258
259 * infrun.c (handle_inferior_event): Assume that catchpoints
260 are not affected by DECR_PC_AFTER_BREAK.
261
262 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
263
264 * target.c (update_current_target): Don't inherit DONT_USE.
265 * target.h (struct target_ops): Remove DONT_USE.
266 (target_next): Remove macro.
267
268 2002-12-15 Mark Kettenis <kettenis@gnu.org>
269
270 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
271
272 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
273
274 * arm-tdep.c (convert_from_extended): New argument to hold the
275 type of floating point result we want to convert to. Make input
276 argument const. Fix all callers.
277 (convert_to_extended): Similarly.
278 (arm_extract_return_value): Now takes a regcache argument. Change
279 code to use regcache accessor functions. Correctly extract
280 smaller-than-word results on big-endian machines.
281 (arm_store_return_value): Now takes a regcache argument. Change
282 code to use regcache accessor functions. Correctly zero/sign extend
283 smaller than word results before storing into r0.
284 (arm_gdbarch_init): Register new-style extract_return_value and
285 store_return_value functions.
286
287 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
288
289 * thread-db.c (thread_from_lwp): Uniquify error msg.
290 (lwp_from_thread): Ditto.
291 (check_event): Ditto.
292 (find_new_threads_callback): Ditto.
293 (thread_db_pid_to_str): Ditto.
294
295 2002-12-13 Andrew Cagney <ac131313@redhat.com>
296
297 * frame.h (get_frame_saved_regs): Declare.
298 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
299 pointer.
300 * frame.c (get_frame_saved_regs): New function.
301 (frame_saved_regs_zalloc): Return the allocated saved_regs.
302
303 2002-12-13 Andrew Cagney <ac131313@redhat.com>
304
305 * frame.c (deprecated_update_current_frame_pc_hack): New
306 function.
307 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
308 * infrun.c (normal_stop): Use said function instead of directly
309 modifying the frame's PC.
310
311 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
312
313 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
314
315 2002-12-13 Kevin Buettner <kevinb@redhat.com>
316
317 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
318 config/mips/tm-irix6.h (NUM_REGS): Delete.
319 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
320 (temp_saved_regs): Declare as a pointer rather than an array.
321 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
322 that ``temp_saved_regs'' has storage allocated to it and that
323 it's the correct size.
324
325 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
326
327 * defs.h (init_last_source_visited): New prototype.
328 (add_path): Ditto.
329 * source.c (add_path): New function that adds to a specified path.
330 (mod_path): Change to call add_path.
331 (init_last_source_visited): New function to allow interfaces to
332 initialize static variable: last_source_visited. Part of fix
333 for PR gdb/741.
334 * Makefile.in: Add support for mi/mi-cmd-env.c.
335
336 2002-12-13 Andrew Cagney <ac131313@redhat.com>
337
338 * frame.h (frame_id_unwind): Declare.
339 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
340 id_unwind_cache.
341 (frame_id_unwind_ftype): Declare.
342 * frame.c (frame_id_unwind): New function.
343 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
344 (create_new_frame, get_prev_frame): Pass id_unwind to
345 set_unwind_by_pc.
346 (frame_saved_regs_id_unwind): New function.
347 (frame_saved_regs_id_unwind): New function.
348 * dummy-frame.c (dummy_frame_id_unwind): New function.
349 (struct dummy_frame): Add field id.
350 (generic_push_dummy_frame): Initialize `id'.
351 * dummy-frame.h (dummy_frame_id_unwind): Declare.
352
353 2002-12-13 Andrew Cagney <ac131313@redhat.com>
354
355 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
356 pass that to set_momentary_breakpoint. Move comments to where they
357 belong.
358 * frame.h (set_current_frame): Delete declaration.
359 * frame.c (set_current_frame): Delete function.
360
361 2002-12-13 Andrew Cagney <ac131313@redhat.com>
362
363 * frame.c (frame_extra_info_zalloc): New function.
364 * frame.h (frame_extra_info_zalloc): Declare.
365
366 2002-12-13 Joel Brobecker <brobecker@gnat.com>
367
368 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
369 in the previous prototype change to set_momentary_breakpoint.
370
371 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
372
373 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
374 and saw_child_exec.
375 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
376 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
377 (stop_stepping): Remove outdated check for child vfork events.
378
379 2002-12-12 Andrew Cagney <ac131313@redhat.com>
380
381 * GDB 5.3 released from gdb_5_3-branch.
382
383 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
384
385 * corelow.c (init_core_ops): Delete references to to_require_attach
386 and to_require_detach.
387 * exec.c (init_exec_ops): Likewise.
388 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
389 hppa_require_detach directly.
390 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
391 * inftarg.c (child_detach): Remove.
392 (child_detach_from_process): Rename to child_detach, remove
393 after_fork argument.
394 (child_attach): Remove.
395 (child_attach_to_process): Rename to child_attach, remove after_fork
396 argument.
397 (init_child_ops): Delete references to to_require_attach
398 and to_require_detach.
399 * infttrace.c (hppa_require_attach): Update comment.
400 * target.c (cleanup_target, update_current_target)
401 (init_dummy_target, setup_target_debug): Delete references to
402 to_require_attach and to_require_detach.
403 (find_default_require_detach, find_default_require_attach)
404 (debug_to_require_attach, debug_to_require_detach): Remove
405 functions.
406 * target.h (struct target_ops): Remove to_require_attach
407 and to_require_detach.
408 (target_require_attach, target_require_detach): Delete macros.
409 (find_default_require_detach, find_default_require_attach): Delete
410 prototypes.
411 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
412
413 2002-12-11 Andrew Cagney <ac131313@redhat.com>
414
415 * frame.c (get_frame_extra_info): New function.
416 * frame.h (get_frame_extra_info): Declare.
417
418 2002-12-11 Andrew Cagney <ac131313@redhat.com>
419
420 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
421 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
422 with `struct frame_id'.
423 (set_longjmp_resume_breakpoint): Ditto.
424 * infrun.c (handle_inferior_event): Update.
425 * breakpoint.c (watch_command_1, until_break_command): Update.
426 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
427 (handle_inferior_event, step_over_function): Update.
428 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
429 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
430 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
431 * infcmd.c (finish_command, run_stack_dummy): Update.
432
433 2002-12-11 Kevin Buettner <kevinb@redhat.com>
434
435 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
436 (dwarf2_non_const_array_bound_ignored)
437 (dwarf2_missing_line_number_section)
438 (dwarf2_statement_list_fits_in_line_number_section)
439 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
440 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
441 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
442 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
443 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
444 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
445 (dwarf2_missing_member_fn_type_complaint)
446 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
447 (dwarf2_const_value_length_mismatch)
448 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
449 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
450 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
451 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
452 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
453 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
454 complaints using deprecated struct..
455 (dwarf2_non_const_array_bound_ignored_complaint)
456 (dwarf2_complex_location_expr_complaint)
457 (dwarf2_unsupported_at_frame_base_complaint)
458 (dwarf2_const_value_length_mismatch_complaint)
459 (dwarf2_macros_too_long_complaint)
460 (dwarf2_macro_malformed_definition_complaint)
461 (dwarf2_invalid_attrib_class_complaint): New functions.
462 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
463 (read_structure_scope, read_array_type, read_common_block)
464 (read_tag_pointer_type, read_base_type, read_partial_die)
465 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
466 (new_symbol, dwarf2_const_value, read_type_die)
467 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
468 (parse_macro_definition, dwarf_decode_macros): Replace calls to
469 complain() with, possibly indirect, calls to complaint().
470
471 2002-12-11 Andrew Cagney <cagney@redhat.com>
472
473 * frame.c (deprecated_get_frame_saved_regs): Rename
474 get_frame_saved_regs.
475 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
476 * sparc-tdep.c: Update.
477 * hppa-tdep.c: Update.
478 * h8500-tdep.c: Update.
479
480 2002-12-11 Kevin Buettner <kevinb@redhat.com>
481
482 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
483 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
484 ``char *'' for return and parameter types.
485 * gdbarch.h, gdbarch.c: Regenerate.
486 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
487 return type from ``char *'' to ``const char *''.
488 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
489 const.
490
491 2002-12-11 Mark Kettenis <kettenis@gnu.org>
492
493 * i386-tdep.c: Include "dummy-frame.h".
494 (i386_frame_chain, i386_frame_saved_pc): Replace
495 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
496 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
497
498 2002-12-10 Andrew Cagney <cagney@redhat.com>
499
500 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
501 Change to a function with predicate.
502 * gdbarch.h, gdbarch.c: Re-generate.
503 * frame.c (get_prev_frame): Update. Test
504 DEPRECATED_INIT_FRAME_PC_P.
505 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
506 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
507 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
508 * alpha-tdep.c (alpha_gdbarch_init): Update.
509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
510 * mips-tdep.c (mips_gdbarch_init): Update.
511 * i386-interix-tdep.c (i386_interix_init_abi): Update.
512 * arm-tdep.c: Update comments.
513 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
514 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
515 * frv-tdep.c (frv_gdbarch_init): Ditto.
516 * x86-64-tdep.c (x86_64_init_abi): Ditto.
517 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
518 * s390-tdep.c (s390_gdbarch_init): Ditto.
519 * v850-tdep.c (v850_gdbarch_init): Ditto.
520 * vax-tdep.c (vax_gdbarch_init): Ditto.
521 * sh-tdep.c (sh_gdbarch_init): Ditto.
522 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
526 * i386-tdep.c (i386_gdbarch_init): Ditto.
527 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
528 * cris-tdep.c (cris_gdbarch_init): Ditto.
529 * avr-tdep.c (avr_gdbarch_init): Ditto.
530 * arm-tdep.c (arm_gdbarch_init): Ditto.
531 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
532 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
533
534 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
535
536 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
537 CHILD_FOLLOW_FORK.
538 * hppah-nat.c (saved_vfork_pid): Add.
539 (child_post_follow_vfork): Remove.
540 (child_follow_fork): New function.
541 (child_wait): Call detach_breakpoints after receiving the child vfork.
542 Call child_resume directly instead of going through resume ().
543 Make sure we have the exec before reporting the vfork.
544 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
545 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
546 (follow_fork): New function. Call target_follow_fork.
547 (follow_inferior_reset_breakpoints): New function broken out from
548 old follow_inferior_fork.
549 (resume): Remove hack to follow exec after vfork.
550 * inftarg.c (child_post_follow_vfork): Remove.
551 (child_follow_fork): New function.
552 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
553 * target.c (cleanup_target): Replace to_post_follow_vfork with
554 to_follow_fork.
555 (update_current_target): Likewise.
556 (setup_target_debug): Likewise.
557 (debug_to_post_follow_vfork): Remove.
558 (debug_to_follow_fork): New function.
559 * target.h (struct target_ops): Replace to_post_folow_vfork with
560 to_follow_fork.
561 (child_post_follow_vfork): Remove prototype.
562 (child_follow_fork): Add prototype.
563 (target_post_follow_vfork): Remove macro.
564 (target_follow_fork): Add macro.
565
566 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
567
568 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
569 (child_post_follow_vfork): Cancel pending exec event if we follow
570 the parent.
571 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
572 events have been processed. Return a fake TARGET_WAITKIND_EXECD
573 event at the following wait call if necessary.
574 * infrun.c (follow_vfork): Don't follow_exec here.
575 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
576 case about HP/UX 10.20. Remove code pushed down to
577 hppah-nat.c:child_wait.
578 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
579 vfork_in_flight is set.
580
581 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
582
583 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
584 for the parent's fork event.
585 * infrun.c (handle_inferior_event): Only expect one fork event.
586 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
587 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
588
589 2002-12-10 Andrew Cagney <ac131313@redhat.com>
590
591 * PROBLEMS: Delete reference to PR gdb/725.
592
593 * MAINTAINERS (gdb.c++): Add David Carlton.
594
595 2002-12-09 David Carlton <carlton@math.stanford.edu>
596
597 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
598 * cli/cli-cmds.c: Ditto.
599
600 2002-12-09 Andrew Cagney <cagney@redhat.com>
601
602 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
603 function address in <>.
604 * gdbarch.c: Re-generate.
605
606 2002-12-09 David Carlton <carlton@math.stanford.edu>
607
608 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
609
610 2002-12-09 David Carlton <carlton@math.stanford.edu>
611
612 * linespec.c (symtab_from_filename): New function.
613 (decode_line_1): Move code into symtab_from_filename.
614
615 2002-12-09 Kevin Buettner <kevinb@redhat.com>
616
617 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
618
619 2002-12-07 Andrew Cagney <ac131313@redhat.com>
620
621 * f-valprint.c (info_common_command): Use get_frame_pc.
622 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
623 * ax-gdb.c (agent_command): Ditto.
624 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
625 (rs6000_pop_frame): Ditto.
626 (rs6000_frameless_function_invocation): Ditto.
627 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
628 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
629 * macroscope.c (default_macro_scope): Ditto.
630 * stack.c (print_frame_info_base): Ditto.
631 (print_frame, frame_info, print_frame_label_vars): Ditto.
632 (return_command, func_command, get_frame_language): Ditto.
633 * infcmd.c (finish_command): Ditto.
634 * dummy-frame.c (cached_find_dummy_frame): Ditto.
635 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
636 (break_at_finish_at_depth_command_1): Ditto.
637 (break_at_finish_command_1): Ditto.
638 (until_break_command, get_catch_sals): Ditto.
639 * blockframe.c (func_frame_chain_valid): Ditto.
640 (frameless_look_for_prologue): Ditto.
641 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
642
643 2002-12-08 Andrew Cagney <ac131313@redhat.com>
644
645 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
646 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
647
648 2002-12-08 Andrew Cagney <ac131313@redhat.com>
649
650 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
651 to pure functions.
652 * gdbarch.h, gdbarch.c: Re-generate.
653 * frame.c (get_prev_frame): Explictly assign prev's pc with value
654 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
655
656 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
657 declaration to a function returning a CORE_ADDR.
658 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
659 * arch-utils.c (init_frame_pc_noop): Return the PC value.
660 (init_frame_pc_default): Ditto.
661 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
662 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
663 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
664 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
665 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
666 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
667
668 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
669 to init_frame_pc_noop.
670 (i386_interix_init_frame_pc): Delete function.
671 * z8k-tdep.c (init_frame_pc): Delete function.
672 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
673 (INIT_FRAME_PC_FIRST): Ditto.
674 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
675 (INIT_FRAME_PC_FIRST): Ditto.
676 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
677 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
678 init_frame_pc_noop.
679 (INIT_FRAME_PC_FIRST): Convert to an expression.
680 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
681
682 2002-12-08 Andrew Cagney <ac131313@redhat.com>
683
684 * blockframe.c: Use get_frame_base instead of directly accessing
685 the `struct frame_info' member frame.
686 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
687 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
688
689 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
690
691 * Makefile.in (readline_h): Define.
692 (completer.o): Depend on readline_h.
693 (corelow.o): Ditto.
694 (event-top.o): Ditto.
695 (exec.o): Ditto.
696 (solib.o): Ditto.
697 (source.o): Ditto.
698 (symfile.o): Ditto.
699 (symmisc.o): Ditto.
700 (top.o): Ditto.
701 (tracepoint.o): Ditto.
702 (utils.o): Ditto.
703 (cli-dump.o): Ditto.
704 (tui-hooks.o): Ditto.
705 (tuiWin.o): Ditto.
706
707 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
708
709 More cleanup from import of readline 4.3.
710 * completer.h (complete_line, readline_line_completion_function):
711 Update prototypes.
712 (line_completion_function): Removed, not used outside of completer.c.
713 * completer.c (readline_line_completion_function,
714 complete_function, line_completion_function): Use const for first
715 parameter.
716 (line_completion_function): Make static.
717 (filename_completer): filename_completion_function is now called
718 rl_filename_completion_function
719 * corelow.c: Include <readline/readline.h>.
720 * exec.c: Ditto.
721 * solib.c: Ditto.
722 * source.c: Ditto.
723 * symfile.c: Ditto.
724 * symmisc.c: Ditto.
725 * top.c (init_main): No need to coerce
726 readline_line_completion_function anymore.
727 * cli/cli-dump.c: Include <readline/readline.h>.
728
729 2002-12-08 Andrew Cagney <ac131313@redhat.com>
730
731 * stack.c (frame_info): Use get_prev_frame.
732 * blockframe.c (frame_address_in_block): Ditto.
733 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
734 (rs6000_frameless_function_invocation): Ditto.
735 (rs6000_frame_saved_pc): Ditto.
736 (rs6000_frame_chain): Ditto.
737 * arch-utils.c (init_frame_pc_default): Ditto.
738
739 2002-12-08 Andrew Cagney <ac131313@redhat.com>
740
741 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
742 Delete redundant definition.
743
744 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
745
746 Import of readline 4.3:
747 * cli/cli-cmds.c: Include readline/tilde.h.
748 * cli/cli-setshow.c: Ditto.
749 * defs.h: Don't declare tilde_expand anymore, since readline
750 exports it.
751
752 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
753
754 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
755 -Werror on this file.
756
757 2002-12-07 Andrew Cagney <ac131313@redhat.com>
758
759 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
760 the format name.
761 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
762 * gdbarch.c: Regenerate.
763
764 2002-12-06 Andrew Cagney <ac131313@redhat.com>
765
766 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
767 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
768 provide a default value.
769 * gdbarch.h, gdbarch.c: Regenerate.
770 * frame.c (get_prev_frame): Update. Check
771 DEPRECATED_INIT_FRAME_PC_FIRST_P.
772 * s390-tdep.c (s390_gdbarch_init): Update.
773 * mips-tdep.c (mips_gdbarch_init): Update.
774 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
775 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
776 * alpha-tdep.c (alpha_gdbarch_init): Update.
777
778 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
779
780 * ia64-linux-nat.c: Include gdb_string.h.
781 * alpha-nat.c: Ditto.
782 * ppc-linux-nat.c: Ditto.
783 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
784 Update dependencies.
785
786 2002-12-05 Andrew Cagney <ac131313@redhat.com>
787
788 * gdbthread.h: Include "frame.h".
789 (struct thread_info): Replace step_frame_address with
790 step_frame_id.
791 * inferior.h: Include "frame.h".
792 (step_frame_id): Replace external variable step_frame_address.
793 * gdbthread.h (save_infrun_state): Replace step_frame_address
794 parameter with step_frame_id parameter.
795 (load_infrun_state): Ditto.
796 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
797 * infcmd.c (step_frame_id, step_1, step_once): Update.
798 * thread.c (load_infrun_state, save_infrun_state): Update.
799 * infrun.c (clear_proceed_status, save_inferior_status): Update.
800 (handle_inferior_event, step_over_function): Update.
801 (normal_stop, context_switch, restore_inferior_status): Update.
802 (struct inferior_status): Replace step_frame_address with
803 step_frame_id.
804
805 2002-12-05 David Carlton <carlton@math.stanford.edu>
806
807 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
808 DW_TAG_member as well as a declaration as being a C++ static data
809 member.
810 (read_structure_scope): Combine tests for DW_TAG_member and
811 DW_TAG_variable.
812
813 2002-12-05 David Carlton <carlton@math.stanford.edu>
814
815 * linespec.c (decode_compound): New function.
816 (decode_line_1): Move code into decode_compound.
817
818 2002-12-05 David Carlton <carlton@math.stanford.edu>
819
820 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
821 argument.
822 (lookup_symbol_aux): Do the 'field_of_this' check before checking
823 the static block. See PR gdb/804.
824
825 2002-12-05 David Carlton <carlton@math.stanford.edu>
826
827 * symtab.c (lookup_symbol_aux_block): New function.
828 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
829
830 2002-12-05 Andrew Cagney <ac131313@redhat.com>
831
832 * gdbarch.sh: Dump the predicate function and macro values.
833 (read): Print error on standard error.
834 * gdbarch.c: Regenerate.
835
836 2002-12-04 Kevin Buettner <kevinb@redhat.com>
837
838 * Makefile.in (mips_tdep_h): Define.
839 (mips-tdep.o): Add mips_tdep_h to dependency list.
840 * mips-tdep.h: New file.
841 * mips-tdep.c (mips-tdep.h): Include.
842 (enum mips_abi): Move to mips-tdep.h.
843 (mips_abi): New function.
844
845 2002-12-04 David Carlton <carlton@math.stanford.edu>
846
847 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
848
849 2002-12-04 David Carlton <carlton@math.stanford.edu>
850
851 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
852 function.
853 (lookup_symbol_aux_minsyms): New function.
854
855 2002-12-04 J. Brobecker <brobecker@gnat.com>
856
857 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
858
859 2002-12-04 J. Brobecker <brobecker@gnat.com>
860
861 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
862 which is an obsolete macro name.
863
864 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
865
866 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
867 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
868
869 2002-12-03 H.J. Lu (hjl@gnu.org)
870
871 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
872 (create_breakpoints): Make sure the addr_string field is not
873 NULL.
874
875 2002-12-03 Andrew Cagney <ac131313@redhat.com>
876
877 * sparc-nat.c (fetch_inferior_registers)
878 (store_inferior_registers): Add comment on problem of LWP vs
879 threads.
880
881 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
882 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
883 (lin_lwp_store_registers): Remove.
884 (init_lin_lwp_ops): Use fetch_inferior_registers
885 and store_inferior_registers directly.
886 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
887 (store_inferior_registers): Likewise.
888 Fix PR gdb/725.
889
890 2002-12-03 Andrew Cagney <ac131313@redhat.com>
891
892 * frame.h (get_frame_id): Convert to a function.
893 (null_frame_id, frame_id_p): Declare.
894 (frame_id_eq, frame_id_inner): Declare.
895 (frame_id_build): New function.
896 * frame.c (get_frame_id): Update. Use null_frame_id.
897 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
898 frame_id_inner.
899 (null_frame_id, frame_id_p): Define.
900 (frame_id_eq, frame_id_inner): Define.
901 (frame_id_build): New function.
902 * varobj.c (varobj_create): Update.
903 (varobj_update): Update.
904 * valops.c (value_assign): Update.
905 (new_root_variable): Update.
906 * infrun.c (save_inferior_status): Update.
907 * breakpoint.c (watch_command_1): Update.
908
909 2002-12-03 J. Brobecker <brobecker@gnat.com>
910
911 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
912 (SNAP2): Likewise.
913
914 2002-12-03 Andrew Cagney <cagney@redhat.com>
915
916 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
917 patch.
918
919 * PROBLEMS: Mention PR gdb/725.
920
921 2002-12-03 Andreas Schwab <schwab@suse.de>
922
923 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
924
925 2002-12-02 Adam Fedor <fedor@gnu.org>
926 Klee Dienes <kdienes@apple.com>
927
928 * objc-lang.c (objc_printstr): Add width arg to match
929 printstr prototype.
930 (compare_selectors): Add 'const' to arg types.
931 (compare_classes): Likewise.
932 (find_imps): Cast msym pointer to avoid compiler warning.
933 (print_object_command): Validate the address before
934 passing it to the print routine.
935 (find_objc_msgcall_submethod): Change function argument to
936 return an int.
937 * objc-lang.h: Add 'extern' to all function declarations.
938 (value_nsstring): Add declaration.
939
940 2002-12-02 J. Brobecker <brobecker@gnat.com>
941
942 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
943 Fixes a build failure on HP/UX.
944
945 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
946 failure on HP/UX.
947 (hpread_has_name): Advance declaration to avoid a compilation warning.
948 (pst_syms_count): Add missing variable type. By change, the compiler
949 was defaulting to int, which seems a good choice. Fixes a compilation
950 warning.
951 (pst_syms_size): Likewise.
952
953 2002-12-02 J. Brobecker <brobecker@gnat.com>
954
955 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
956 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
957 later to set the proper gdbarch methods depending on the osabi.
958 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
959
960 2002-12-02 J. Brobecker <brobecker@gnat.com>
961
962 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
963 * osabi.c (gdb_osabi_name): Add strings images for the two new
964 enum values.
965 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
966
967 2002-12-02 Andrew Cagney <ac131313@redhat.com>
968
969 * MAINTAINERS (Java): Global maintainers are responible for Java.
970 (Past Maintainers): Mention both Anthony Green and Per Bothner as
971 part Java maintainers.
972
973 2002-12-02 J. Brobecker <brobecker@gnat.com>
974
975 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
976 Fixes a compilation failure on AiX.
977
978 2002-12-02 J. Brobecker <brobecker@gnat.com>
979
980 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
981 why aix-thread.o is not listed.
982
983 2002-12-01 Andrew Cagney <ac131313@redhat.com>
984
985 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
986 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
987 * gdbarch.h, gdbarch.c: Re-generate.
988 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
989 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
990 * config/pa/tm-hppa.h, frame.h: Update.
991 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
992 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
993 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
994 * cris-tdep.c, alpha-tdep.c: Update.
995 * frame.c (set_unwind_by_pc, create_new_frame): Use either
996 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
997 (get_prev_frame): Ditto.
998
999 2002-11-30 Andrew Cagney <cagney@redhat.com>
1000
1001 * exec.c (xfer_memory): Replace boolean with int.
1002 * p-exp.y: Use 0 instead of false.
1003 * corelow.c (gdb_check_format): Change return type to int from
1004 boolean.
1005 * utils.c: Don't include <curses.h> or <term.h> first.
1006
1007 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1008
1009 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1010 (m68hc11_register_byte): Remove.
1011 (m68hc11_gdbarch_init): Don't set the above.
1012
1013 2002-11-29 Andrew Cagney <cagney@redhat.com>
1014
1015 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1016 by calling get_selected_frame.
1017 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1018 set_current_frame, create_new_frame, select_frame and
1019 get_current_frame.
1020 * remote-e7000.c (e7000_start_remote): Ditto.
1021 * remote-mips.c (common_open): Ditto
1022 * remote-rdp.c (remote_rdp_open): Ditto.
1023
1024 2002-11-29 Andreas Schwab <schwab@suse.de>
1025
1026 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1027 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1028 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1029 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1030 read_memory_unsigned_integer instead of read_memory_integer when
1031 dealing with addresses and instruction opcodes.
1032 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1033 (m68k_linux_frame_saved_pc): Likewise.
1034
1035 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1036
1037 * stack.c (selected_frame, select_frame): Move from here ...
1038 * frame.c (selected_frame, select_frame): ... to here. Include
1039 "language.h".
1040 * Makefile.in (frame.o): Update dependencies.
1041 * frame.c (get_selected_frame): New function.
1042 * frame.h (get_selected_frame): Declare.
1043 (deprecated_selected_frame): Rename selected_frame.
1044 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1045 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1046 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1047 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1048 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1049 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1050 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1051 * z8k-tdep.c, cli/cli-cmds.c: Update.
1052
1053 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1054
1055 * frame.h (get_selected_block): Add comments.
1056
1057 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1058
1059 * frame.c (pc_notcurrent): New function.
1060 (find_frame_sal): New function.
1061 * frame.h (find_frame_sal): Declare.
1062 (struct symtab_and_line): Add opaque declaration.
1063 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1064 find_pc_line.
1065 (frame_info): Ditto.
1066 * ada-lang.c (find_printable_frame): Ditto.
1067
1068 2002-11-28 J. Brobecker <brobecker@gnat.com>
1069
1070 * configure.in: Check that the pthdebug library is recent enough
1071 before enabling thread support on native AiX.
1072 * configure: Regenerate.
1073
1074 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1075 from the list of object files as it is now appended by configure
1076 if thread support is enabled.
1077 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1078 if thread support is enabled.
1079
1080 2002-11-28 Andrew Cagney <cagney@redhat.com>
1081
1082 * stack.c (get_selected_block): In-line get_current_block.
1083 * frame.h (get_current_block): Delete declaration.
1084 * blockframe.c (get_current_block): Delete function.
1085
1086 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1087
1088 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1089 USE_GENERIC_DUMMY_FRAMES.
1090 * gdbarch.h, gdbarch.c: Regenerate.
1091 * valops.c, frame.c: Update.
1092 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1093 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1094 * config/pa/tm-hppa.h, blockframe.c: Update.
1095 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1096 * m68k-tdep.c, alpha-tdep.c: Ditto.
1097
1098 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1099 * mips-tdep.c: Ditto.
1100
1101 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1102
1103 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1104 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1105 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1106 * gdbarch.c, gdbarch.h: Re-generate.
1107 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1108 (CALL_DUMMY_LOCATION): Delete macro definition.
1109 (PC_IN_CALL_DUMMY): Delete macro definitions.
1110
1111 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1112 default is already generic_pc_in_call_dummy.
1113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1114 * v850-tdep.c (v850_gdbarch_init): Ditto.
1115 * sh-tdep.c (sh_gdbarch_init): Ditto.
1116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1117 * mips-tdep.c (mips_gdbarch_init): Ditto.
1118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1120 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1121 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1122 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1123 * avr-tdep.c (avr_gdbarch_init): Ditto.
1124
1125 * arm-tdep.c (arm_gdbarch_init): Do not set
1126 use_generic_dummy_frames, default is already 1.
1127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1128 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1129 * v850-tdep.c (v850_gdbarch_init): Ditto.
1130 * sh-tdep.c (sh_gdbarch_init): Ditto.
1131 * s390-tdep.c (s390_gdbarch_init): Ditto.
1132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1133 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1134 * mips-tdep.c (mips_gdbarch_init): Ditto.
1135 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1137 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1138 * i386-tdep.c (i386_gdbarch_init): Ditto.
1139 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1140 * frv-tdep.c (frv_gdbarch_init): Ditto.
1141 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1142 * cris-tdep.c (cris_gdbarch_init): Ditto.
1143 * avr-tdep.c (avr_gdbarch_init): Ditto.
1144
1145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1146 call_dummy_location, default is already AT_ENTRY_POINT.
1147 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1148 * v850-tdep.c (v850_gdbarch_init): Ditto.
1149 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1150 * sh-tdep.c (sh_gdbarch_init): Ditto.
1151 * s390-tdep.c (s390_gdbarch_init): Ditto.
1152 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1153 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1154 * mips-tdep.c (mips_gdbarch_init): Ditto.
1155 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1157 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1158 * i386-tdep.c (i386_gdbarch_init): Ditto.
1159 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1160 * frv-tdep.c (frv_gdbarch_init): Ditto.
1161 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1162 * cris-tdep.c (cris_gdbarch_init): Ditto.
1163 * avr-tdep.c (avr_gdbarch_init): Ditto.
1164 * arm-tdep.c (arm_gdbarch_init): Ditto.
1165 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1166
1167 2002-11-28 Andrew Cagney <cagney@redhat.com>
1168
1169 * frame.h: Update comments on set_current_frame, create_new_frame,
1170 flush_cached_frames, reinit_frame_cache, select_frame and
1171 selected_frame.
1172
1173 2002-11-27 Andrew Cagney <cagney@redhat.com>
1174
1175 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1176 deprecated pc_in_call_dummy function.
1177 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1178 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1179 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1180 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1181 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1182
1183 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1184
1185 * Makefile.in: Remove Tix dependencies.
1186 * acinclude.m4: Ditto.
1187 * aclocal.m4: Ditto.
1188 * configure.in: Ditto.
1189 * configure: Regenerated.
1190
1191 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1192
1193 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1194 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1195 * gdbarch.c: Re-generate.
1196
1197 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1198
1199 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1200 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1201 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1202 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1203 pc_in_call_dummy_at_entry_point.
1204 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1205 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1206 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1207 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1208 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1209 pc_in_call_dummy_on_stack.
1210 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1211 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1212 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1213 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1214 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1215
1216 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1217
1218 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1219 pc_in_call_dummy_before_text_end
1220 (deprecated_pc_in_call_dummy_after_text_end): Rename
1221 pc_in_call_dummy_after_text_end.
1222 (deprecated_pc_in_call_dummy_on_stack): Rename
1223 pc_in_call_dummy_on_stack.
1224 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1225 pc_in_call_dummy_at_entry_point.
1226 * m68k-tdep.c (m68k_gdbarch_init): Update.
1227 * s390-tdep.c (s390_gdbarch_init): Update.
1228 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1229 * vax-tdep.c (vax_gdbarch_init): Update.
1230 * sparc-tdep.c (sparc_gdbarch_init): Update.
1231 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1232 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1233 * i386-tdep.c (i386_gdbarch_init): Update.
1234 * frv-tdep.c (frv_gdbarch_init): Update.
1235 * cris-tdep.c (cris_gdbarch_init): Update.
1236 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1237 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1238 (deprecated_pc_in_call_dummy_after_text_end)
1239 (deprecated_pc_in_call_dummy_on_stack)
1240 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1241 * alpha-tdep.c (alpha_gdbarch_init): Update.
1242
1243 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1244
1245 * acconfig.h (HAVE_PREAD64): Add.
1246 * configure.in: Check for pread64.
1247 * config.in: Regenerated.
1248 * configure: Regenerated.
1249 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1250 * linux-proc.c (linux_proc_xfer_memory): New function.
1251 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1252
1253 2002-11-25 David Carlton <carlton@math.stanford.edu>
1254
1255 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1256 pdi's with no name.
1257
1258 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1259
1260 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1261 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1262
1263 2002-11-25 Jim Blandy <jimb@redhat.com>
1264
1265 * symfile.c (init_objfile_sect_indices): New function.
1266 (default_symfile_offsets): Move the section-index-initializing
1267 stuff into init_objfile_sect_indices, and call that.
1268
1269 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1270 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1271
1272 * symfile.c (syms_from_objfile): Adjust indentation.
1273
1274 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1275 || info_verbose isn't true.
1276
1277 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1278
1279 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1280 default to get_frame_base.
1281 * gdbarch.h, gdbarch.c: Regenerate.
1282 * arch-utils.c (default_frame_address): Delete function.
1283 * arch-utils.h (default_frame_address): Delete declaration
1284
1285 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1286
1287 * varobj.c (find_frame_addr_in_frame_chain):
1288 Use get_frame_base instead of FRAME_FP,
1289 obvious fix.
1290
1291 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1292
1293 * frame.h (FRAME_FP): Delete macro.
1294 (get_frame_base): New function declaration.
1295 * frame.c (get_frame_base): New function.
1296 (get_frame_id): Use ->frame.
1297 (frame_find_by_id): Rewrite to use get_frame_id.
1298 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1299 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1300 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1301 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1302 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1303 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1304 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1305
1306 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1307
1308 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1309
1310 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1311
1312 * frame.c (set_unwind_by_pc): Revert change below, use
1313 PC_IN_CALL_DUMMY.
1314 (get_prev_frame): Ditto.
1315
1316 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1317
1318 * dummy-frame.c (pc_in_dummy_frame): New function.
1319 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1320 (find_dummy_frame): Update comment.
1321 (generic_pop_current_frame): Use get_frame_type.
1322 * dummy-frame.h (pc_in_dummy_frame): Declare.
1323 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1324 (create_new_frame): Use pc_in_dummy_frame.
1325 (get_prev_frame): Use pc_in_dummy_frame.
1326 (frame_saved_regs_register_unwind): Use get_prev_frame.
1327 (deprecated_generic_get_saved_register): Use get_prev_frame.
1328
1329 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1330
1331 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1332 from here ...
1333 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1334 (varobj_create): Note that frame ID should be used.
1335 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1336
1337 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1338
1339 * breakpoint.c: Include "gdb_assert.h".
1340 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1341 not being used.
1342 * Makefile.in (breakpoint.o): Update dependencies.
1343 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1344 deprecated_frame_in_dummy.
1345 * stack.c (print_frame_info_base): Ditto.
1346 (frame_info): Ditto.
1347 (print_frame_info_base): Ditto. Delete dead code.
1348
1349 2002-11-23 Andreas Schwab <schwab@suse.de>
1350
1351 * Makefile.in (m68k_tdep_h): Define.
1352 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1353 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1354 * m68k-tdep.c: Move register number enum ...
1355 * m68k-tdep.h: ... to this new file and rename the constants from
1356 E_* to M68K_*. All uses changed.
1357 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1358 * abug-rom.c: Include "m68k-tdep.h". Use
1359 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1360 * cpu32bug-rom.c: Likewise.
1361 * dbug-rom.c: Likewise.
1362 * m68k-tdep.c: Likewise.
1363 * m68klinux-nat.c: Likewise.
1364 * remote-est.c: Likewise.
1365 * rom68k-rom.c: Likewise.
1366 * config/m68k/tm-linux.h: Likewise.
1367
1368 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1369
1370 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1371 dummy frame initialization code.
1372 * mips-tdep.c (mips_gdbarch_init): Ditto.
1373
1374 2002-11-22 Christopher Faylor <cgf@redhat.com>
1375
1376 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1377 attach will hang.
1378
1379 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1380
1381 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1382 to default_frame_address.
1383 * gdbarch.h, gdbarch.c: Re-generate.
1384
1385 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1386 or frame_locals_address to default_frame_address.
1387 * m68k-tdep.c (m68k_gdbarch_init): Update.
1388 * i386-tdep.c (i386_gdbarch_init): Update.
1389 * frv-tdep.c (frv_gdbarch_init): Update.
1390 * sh-tdep.c (sh_gdbarch_init): Update.
1391 * v850-tdep.c (v850_gdbarch_init): Update.
1392 * sparc-tdep.c (sparc_gdbarch_init): Update.
1393 * mips-tdep.c (mips_gdbarch_init): Update.
1394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1395 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1396 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1397
1398 * cris-tdep.c (cris_frame_args_address): Delete function.
1399 (cris_frame_locals_address): Delete function.
1400 (cris_gdbarch_init): Do not set frame_args_address or
1401 frame_locals_address.
1402
1403 2002-11-22 Michael Snyder <msnyder@redhat.com>
1404
1405 * thread-db.c (thread_db_load): Tell the user what's going on
1406 if dlopen fails on libthread_db.
1407
1408 2002-11-23 Andreas Schwab <schwab@suse.de>
1409
1410 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1411 invariant return values.
1412
1413 2002-11-22 Andreas Schwab <schwab@suse.de>
1414
1415 * valops.c (value_slice): Move declaration of `offset' to avoid
1416 warning.
1417
1418 2002-11-22 Christopher Faylor <cgf@redhat.com>
1419
1420 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1421 (struct so_stuff): Add end_addr field.
1422 (register_loaded_dll): Calculate and store end address of loaded dll.
1423 (solib_address): New function.
1424 (child_solib_loaded_library_pathname): Pass carefully constructed
1425 section info to safe_symbol_file_add rather than ignoring it.
1426 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1427 DLL is loaded.
1428 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1429 (child_create_inferior): Fix a compiler warning.
1430 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1431 (solib_address): Declare new function.
1432
1433 2002-11-22 Andreas Schwab <schwab@suse.de>
1434
1435 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1436 and FPS registers.
1437
1438 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1439
1440 * maint.c (_initialize_maint_cmds): Fix typo. From
1441 Francesco Potorti` <pot@gnu.org>.
1442
1443 2002-11-21 Andrew Cagney <cagney@redhat.com>
1444
1445 * mips-tdep.c (mips_dump_tdep): Delete references to
1446 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1447 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1448 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1449 * printcmd.c (build_address_symbolic): Delete calls to
1450 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1451 (address_info): Ditto.
1452 Fix PR gdb/773.
1453
1454 2002-11-19 Klee Dienes <kdienes@apple.com>
1455 Adam Fedor <fedor@gnu.org>
1456
1457 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1458 the ability to explicitly specify the quote characters and word
1459 break characters; if NULL is specified for either, use the old
1460 behavior of using the characters used by the completer.
1461 (skip_chars): New function. Convenience wrapper around
1462 skip_quoted_chars to provide the original skip_chars behavior.
1463 * completer.h (skip_quoted_chars): Add prototype.
1464
1465 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1466
1467 Problems reported by Paul Eggert.
1468 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1469
1470 2002-11-19 Andreas Schwab <schwab@suse.de>
1471
1472 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1473 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1474 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1475 (m68k_linux_frame_saved_pc): Move to ...
1476 * m68klinux-tdep.c: ... here. New file.
1477 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1478 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1479
1480 2002-11-19 Adam Fedor <fedor@gnu.org>
1481
1482 * objc-exp.y: Revert to old skip_quoted usage.
1483
1484 2002-11-19 Adam Fedor <fedor@gnu.org>
1485
1486 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1487 (objc_lang_h): Define.
1488 (YYFILES): Add objc-exp.tab.c.
1489 (local-maintainer-clean): Remove objc-exp.tab.c.
1490 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1491
1492 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1493
1494 * p-exp.y (typecast rule): Add automatic dereference of
1495 pascal classes if needed.
1496 (THIS): Set current_type.
1497 Automatically dereference pascal classes.
1498 (typebase rule): Add ^typebase recognition.
1499
1500 2002-11-18 Adam Fedor <fedor@gnu.org>
1501
1502 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1503 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1504 (op_name): Handle OP_OBJC_SELF.
1505 * Makefile.in (expprint.o): Add additional depends.
1506
1507 2002-11-18 Adam Fedor <fedor@gnu.org>
1508
1509 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1510 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1511 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1512 * objc-exp.y: Likewise.
1513
1514 2002-11-18 Adam Fedor <fedor@gnu.org>
1515
1516 * gdb/parser-defs.h: (struct objc_class_str): New structure
1517 for parsing ObjC classes.
1518
1519 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1520
1521 * stack.c (frame_relative_level): Copy function from here ...
1522 * frame.c (frame_relative_level): ...to here.
1523
1524 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1525
1526 * frame.h (enum frame_type): Define.
1527 (get_frame_type): Declare.
1528 (struct frame_info): Add field `type'. Delete field
1529 signal_handler_caller.
1530 (deprecated_set_frame_signal_handler_caller): Declare.
1531 * frame.c (get_frame_type): New function.
1532 (deprecated_set_frame_type): New function.
1533 (create_new_frame): Set the frame's type.
1534 (get_prev_frame): Similar.
1535 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1536 * s390-tdep.c: Ditto.
1537 * m68klinux-nat.c: Ditto.
1538 * ns32k-tdep.c: Ditto.
1539 * x86-64-linux-tdep.c: Ditto.
1540 * vax-tdep.c: Ditto.
1541 * rs6000-tdep.c: Ditto.
1542 * ppc-linux-tdep.c: Ditto.
1543 * i386-interix-tdep.c: Ditto.
1544 * mips-tdep.c: Ditto.
1545 * m68k-tdep.c: Ditto.
1546 * hppa-tdep.c: Ditto.
1547 * ia64-tdep.c: Ditto.
1548 * cris-tdep.c: Ditto.
1549 * arm-tdep.c: Ditto.
1550 * alpha-tdep.c: Ditto.
1551 * i386-tdep.c: Ditto.
1552 * stack.c: Ditto.
1553 * ada-lang.c: Ditto.
1554 * blockframe.c: Update.
1555 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1556 deprecated_set_frame_type instead of signal_handler_caller.
1557 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1558 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1559 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1560
1561 2002-11-18 Klee Dienes <kdienes@apple.com>
1562
1563 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1564
1565 2002-11-18 Klee Dienes <kdienes@apple.com>
1566
1567 * buildsym.c (pop_context): Add comment.
1568
1569 2002-11-18 Klee Dienes <kdienes@apple.com>
1570
1571 * buildsym.h (pop_context): Convert to function, defined in
1572 buildsym.c.
1573 * buildsym.c: Include gdb_assert.h.
1574 (pop_context): Implement as C function. Add check for stack
1575 underflow.
1576 * dbxread.c (process_one_symbol): Complain and stop processing
1577 that symbol if we are already at the top of the context stack for
1578 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1579 when processing N_RBRAC.
1580
1581 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1582
1583 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1584 define.
1585 (struct target_waitstatus): Add opaque definition.
1586 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1587 * exec.c (init_exec_ops): Likewise.
1588 * fork-child.c (clone_and_follow_inferior): Remove.
1589 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1590 * inferior.h (clone_and_follow_inferior): Remove prototype.
1591 * infrun.c (follow_fork_mode_both): Remove.
1592 (follow_fork_mode_kind_names): Remove commented out "both".
1593 (follow_inferior_fork): Remove follow_fork_mode_both support.
1594 * inftarg.c (child_clone_and_follow_inferior): Remove.
1595 (child_post_follow_inferior_by_clone): Remove.
1596 (init_child_ops): Don't set to_clone_and_follow_inferior
1597 or to_post_follow_inferior_by_clone.
1598 * target.c (default_clone_and_follow_inferior): Remove.
1599 (cleanup_target): Don't set to_clone_and_follow_inferior
1600 or to_post_follow_inferior_by_clone.
1601 (find_default_clone_and_follow_inferior): Remove.
1602 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1603 (debug_to_clone_and_follow_inferior): Remove.
1604 (debug_to_post_follow_inferior_by_clone): Remove.
1605 (setup_target_debug): Don't set to_clone_and_follow_inferior
1606 or to_post_follow_inferior_by_clone.
1607 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1608 and to_post_follow_inferior_by_clone.
1609 (child_clone_and_follow_inferior): Remove prototype.
1610 (child_post_follow_inferior_by_clone): Remove prototype.
1611 (target_clone_and_follow_inferior): Remove macro.
1612 (target_post_follow_inferior_by_clone): Remove macro.
1613 (find_default_clone_and_follow_inferior): Remove prototype.
1614
1615 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1618 inferior_has_vforked, and inferior_has_execd instead of
1619 target_has_forked, target_has_vforked, and target_has_execd.
1620 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1621 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1622 (CHILD_WAIT): Define.
1623 (child_wait): Add prototype.
1624 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1625 Add prototype.
1626 (hpux_has_vforked): Likewise, from child_has_vforked.
1627 (hpux_has_execd): Likewise, from child_has_execd.
1628 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1629 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1630 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1631 and hpux_has_syscall_event instead of the target hooks.
1632 * infrun.c (inferior_has_forked, inferior_has_vforked)
1633 (inferior_has_execd): New functions.
1634 * inftarg.c (not_same_real_pid): Remove.
1635 (child_wait): Remove references to not_same_real_pid,
1636 target_has_forked, target_has_vforked, target_has_execd,
1637 and target_has_syscall_event.
1638 (child_has_forked, child_has_vforked, child_has_execd)
1639 (child_has_syscall_event): Remove.
1640 (init_child_ops): Remove references to child_has_forked,
1641 child_has_vforked, child_has_execd, and child_has_syscall_event.
1642 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1643 (hpux_has_vforked): Likewise, from child_has_vforked.
1644 (hpux_has_execd): Likewise, from child_has_execd.
1645 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1646 * target.c (cleanup_target): Remove references to
1647 to_has_forked, to_has_vforked, to_has_execd, and
1648 to_has_syscall_event.
1649 (update_current_target): Likewise.
1650 (setup_target_debug): Likewise.
1651 (debug_to_has_forked): Remove.
1652 (debug_to_has_vforked): Remove.
1653 (debug_to_has_execd): Remove.
1654 (debug_to_has_syscall_event): Remove.
1655 * target.h (struct target_ops): Remove to_has_forked.
1656 to_has_vforked, to_has_execd, and to_has_syscall_event.
1657 (child_has_forked, child_has_vforked, child_has_execd)
1658 (child_has_syscall_event): Remove prototypes.
1659 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1660 prototypes.
1661 (target_has_forked, target_has_vforked, target_has_execd)
1662 (target_has_syscall_event): Remove macros.
1663
1664 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1665
1666 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1667 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1668 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1669 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1670 * target.c (cleanup_target): Remove reference to
1671 to_can_follow_vfork_prior_to_exec.
1672 (update_current_target): Likewise.
1673 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1674 (setup_target_debug): Remove reference to
1675 to_can_follow_vfork_prior_to_exec.
1676 * target.h (struct target_ops): Remove
1677 to_can_follow_vfork_prior_to_exec.
1678 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1679 (target_can_follow_vfork_prior_to_exec): Remove definition.
1680 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1681 define.
1682 * infrun.c (follow_vfork_when_exec): Remove.
1683 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1684 (follow_exec): Likewise.
1685 (handle_inferior_event): Likewise.
1686 (keep_going): Likewise.
1687
1688 2002-11-15 Andrew Cagney <cagney@redhat.com>
1689
1690 * frame.c (generic_unwind_get_saved_register): Make static.
1691 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1692 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1693 defaults to generic_unwind_get_saved_register.
1694 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1695 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1696 * frv-tdep.c (frv_gdbarch_init): Ditto.
1697 * i386-tdep.c (i386_gdbarch_init): Ditto.
1698 * s390-tdep.c (s390_gdbarch_init): Ditto.
1699 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1700 * v850-tdep.c (v850_gdbarch_init): Ditto.
1701 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1702 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1703 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1704
1705 2002-11-15 Andrew Cagney <cagney@redhat.com>
1706
1707 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1708 i386-tdep.c.
1709
1710 2002-11-15 Andrew Cagney <cagney@redhat.com>
1711
1712 * frame.h (sigtramp_saved_pc): Delete declaration.
1713 * blockframe.c (sigtramp_saved_pc): Delete function.
1714 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1715 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1716 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1717 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1718
1719 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1720
1721 * frame.c (frame_pc_unwind): New function.
1722 (frame_saved_regs_pc_unwind): New function.
1723 (frame_register_unwind): Pass unwind_cache instead of
1724 register_unwind_cache.
1725 (set_unwind_by_pc): Add unwind_pc parameter, set.
1726 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1727 (get_prev_frame): Ditto.
1728 * frame.h (frame_pc_unwind_ftype): Declare.
1729 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1730 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1731 (frame_pc_unwind): Declare.
1732 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1733 (struct dummy_frame): Add comment mentioning that values are for
1734 previous frame.
1735 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1736 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1737 (generic_file_frame_chain_valid): Ditto.
1738 * stack.c (frame_info): Ditto.
1739
1740 2002-11-15 David Carlton <carlton@math.stanford.edu>
1741
1742 * linespec.c (locate_first_half): New function.
1743 (decode_line_1): Move code into locate_first_half.
1744
1745 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1746
1747 * complaints.h: Add comment explaining how to eliminate a
1748 deprecated_complain call.
1749 * complaints.h: Fix spelling errors.
1750
1751 2002-11-15 David Carlton <carlton@math.stanford.edu>
1752
1753 * printcmd.c: Remove #include "disasm.h".
1754
1755 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1756
1757 * frame.h: Move the most relevant interface functions to the start
1758 of the file.
1759
1760 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1761
1762 * regcache.h (deprecated_registers): Rename registers.
1763 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1764 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1765 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1766 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1767 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1768 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1769 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1770 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1771 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1772 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1773 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1774 * v850ice.c: Update.
1775
1776 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1777
1778 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1779 NULL buffer.
1780
1781 2002-11-13 Andrew Cagney <cagney@redhat.com>
1782
1783 * regcache.h (deprecated_read_register_bytes): Rename
1784 read_register_bytes.
1785 (deprecated_write_register_bytes): Rename write_register_bytes.
1786 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1787 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1788 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1789 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1790 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1791 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1792 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1793 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1794 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1795 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1796 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1797 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1798 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1799 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1800
1801 2002-11-13 Jim Blandy <jimb@redhat.com>
1802
1803 * findvar.c (read_var_value): Doc fix.
1804
1805 2002-11-13 Andrew Cagney <cagney@redhat.com>
1806
1807 * regcache.c (struct regcache): Replace passthough_p with
1808 readonly_p.
1809 (regcache_xmalloc): Initialize readonly_p.
1810 (build_regcache): Initialize readonly_p.
1811 (regcache_save): New function.
1812 (regcache_restore): New function.
1813 (regcache_cpy): Re-implement using regcache_save and
1814 regcache_restore.
1815 (regcache_raw_read): Update.
1816 (regcache_cooked_read): When a read-only cache, checked for cached
1817 pseudo register values.
1818 (regcache_raw_write): Assert that the cache is not read-only.
1819 Remove code handling a non-passthrough cache.
1820 * regcache.h (regcache_save): Declare.
1821 (regcache_restore): Declare.
1822
1823 2002-11-13 Andrew Cagney <cagney@redhat.com>
1824
1825 * regcache.c (struct regcache_descr): Add fields
1826 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1827 (init_legacy_regcache_descr): Compute the size of a cooked
1828 register cache and then assign that to sizeof_raw_registers. Set
1829 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1830 (init_legacy_regcache_descr): Ditto.
1831
1832 2002-11-13 Andrew Cagney <cagney@redhat.com>
1833
1834 * regcache.c (register_buffer): Move to near start of file, update
1835 description.
1836 (regcache_raw_read): Use.
1837 (regcache_raw_write): Use.
1838 (struct regcache): Rename raw_registers to registers and
1839 raw_register_valid_p to register_valid_p.
1840 (regcache_xmalloc): Update.
1841 (regcache_xfree): Update.
1842 (register_buffer): Update.
1843 (regcache_cpy): Update.
1844 (regcache_cpy_no_passthrough): Update.
1845 (regcache_valid_p): Update.
1846 (deprecated_grub_regcache_for_registers): Update.
1847 (deprecated_grub_regcache_for_register_valid): Update.
1848 (set_register_cached): Update.
1849 (regcache_raw_write): Update.
1850
1851 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1852
1853 * p-exp.y (name_not_typename): Use copy_name to
1854 set current_type variable for fields of THIS.
1855
1856 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1857
1858 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1859 * monitor.c (init_base_monitor_ops): Likewise.
1860 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1861 * remote-array.c (init_array_ops): Likewise.
1862 * remote-e7000.c (init_e7000_ops): Likewise.
1863 * remote-es.c (init_es1800_ops): Likewise.
1864 (init_es1800_child_ops): Likewise.
1865 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1866 * remote-sim.c (init_gdbsim_ops): Likewise.
1867 * remote-st.c (init_st2000_ops): Likewise.
1868 * sol-thread.c (init_sol_core_ops): Likewise.
1869 (init_sol_thread_ops): Likewise.
1870 * v850ice.c (init_850ice_ops): Likewise.
1871 * win32-nat.c (init_child_ops): Likewise.
1872 * wince.c (init_child_ops): Likewise.
1873
1874 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1875
1876 * utils.c (gdb_realpath): Make rp a constant pointer.
1877
1878 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1879
1880 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1881 a constant buffer; cannonicalize_file_name(); realpath() with a
1882 pathconf() defined buffer, xstrdup().
1883
1884 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1885
1886 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1887 to hang2.C; hang3.c to hang3.C.
1888
1889 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1890
1891 * findvar.c (read_var_value): Reenable TLS code.
1892
1893 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1894 Jim Blandy <jimb@redhat.com>
1895
1896 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1897 * target.c (update_current_target): Add
1898 to_get_thread_local_address.
1899 * target.h (to_get_thread_local_address): Export.
1900 (target_get_thread_local_address): Define.
1901 (target_get_thread_local_address_p): Define.
1902 * thread-db.c: Include solib-svr4.h.
1903 (td_thr_tls_get_addr_p): Define.
1904 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1905 (thread_db_get_thread_local_address): New function.
1906 (init_thread_db_ops): Initialize to_get_thread_local_address.
1907 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1908 * configure: Regenerate.
1909 * config.in: Regenerate.
1910
1911 2002-11-11 David Carlton <carlton@math.stanford.edu>
1912
1913 * linespec.c (set_flags): New function.
1914 (decode_line_1): Move code into set_flags.
1915
1916 2002-11-11 David Carlton <carlton@math.stanford.edu>
1917
1918 * linespec.c (decode_line_1): Move chunks of code to separate
1919 functions.
1920 (initialize_defaults): New function.
1921 (decode_indirect): New function.
1922
1923 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1924
1925 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1926 instead of void_code_ptr.
1927 (sigtramp_saved_pc): Ditto.
1928
1929 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1930 i386_fp_regnum_p.
1931
1932 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1933
1934 * gdbtypes.h (struct main_type): Move artificial flag out of
1935 loc. New member of ``struct field'' named static_kind. Reduce
1936 overloaded meaning of bitsize.
1937 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1938 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1939 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1940
1941 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1942 new fields.
1943 (template_to_fixed_record_type, template_to_static_fixed_type)
1944 (to_record_with_fixed_variant_part): Likewise.
1945 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1946 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1947 * dwarfread.c (struct_type, enum_type): Likewise.
1948 * hpread.c (hpread_read_enum_type)
1949 (hpread_read_function_type, hpread_read_doc_function_type)
1950 (hpread_read_struct_type): Likewise.
1951 * mdebugread.c (parse_symbol): Likewise.
1952
1953 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1954
1955 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1956 * stack.c (print_frame_info_base): Update.
1957 (print_frame_info_base, frame_info): Update.
1958 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1959 (sparc_frame_saved_pc): Update.
1960 * ada-lang.c (find_printable_frame): Update.
1961 * breakpoint.c (deprecated_frame_in_dummy): Update.
1962
1963 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1964
1965 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1966 defined.
1967 (regmap): Extend to cover all registers.
1968 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1969 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1970 definitions.
1971 (fetch_register, sore_register): Simplify.
1972 (old_fetch_inferior_registers, old_store_inferior_registers):
1973 Remove functions.
1974 (cannot_fetch_register, cannot_store_register): Change
1975 implementation to use regmap array to decide which registers
1976 cannot be fetched/stored. This removes $orig_eax from the
1977 registers that cannot be fetched/stored.
1978 (fetch_inferior_registers): Call fetch_register directly instead
1979 of calling old_fetch_inferior_registers.
1980 (store_inferior_registers): Call store_register directly instead
1981 of calling old_store_inferior_registers.
1982 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1983 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1984 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1985
1986 2002-11-09 Klee Dienes <kdienes@apple.com>
1987
1988 * i387-tdep.c (i387_supply_register): When called with NULL as a
1989 buffer, mark the register as not provided (to mirror the behavior
1990 of supply_register).
1991 (i387_supply_fxsave): Ditto.
1992 (i387_supply_fsave): Ditto (inherits the behavior from
1993 i387_supply_register).
1994
1995 2002-11-09 Klee Dienes <kdienes@apple.com>
1996
1997 * blockframe.c (sigtramp_saved_pc): Use
1998 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1999 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2000 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2001
2002 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2003
2004 * frame.c (get_prev_frame): Test prev_p to identify a previously
2005 unwound frame. Initialize prev_p.
2006 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2007 comment.
2008
2009 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2010
2011 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2012 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2013 more comments. Zap dead code.
2014
2015 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2016
2017 * infcmd.c (print_vector_info, print_float_info): Move code that
2018 checks whether the target has any registers and whether there is a
2019 selected frame up, such that it is also used if a target provides
2020 multi-arch definitions of these functions.
2021
2022 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2023
2024 * Makefile.in (DESTDIR): Define.
2025 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2026 prefix.
2027
2028 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2029 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2030
2031 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2032
2033 * i386-linux-tdep.c: Include "reggroups.h".
2034 (i386_linux_register_reggroup_p): New function.
2035 (i386_linux_init_abi): Set register_reggroup_p to
2036 i386_linux_register_reggroup_p.
2037 * i386-tdep.h (i386_register_reggroup_p): Declare.
2038 * i386-tdep.c: Include "reggroups.h".
2039 (i386_init_reggroups): New function.
2040 (i386_add_reggroups): New function.
2041 (i386_register_reggroup_p): New function.
2042 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2043 (_initialize_i386_tdep): Call i386_init_reggroups.
2044 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2045 specific reggroups.
2046
2047 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2048
2049 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2050 request that's available in *BSD.
2051
2052 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2053
2054 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2055 FDOFF_REGNUM.
2056
2057 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2058
2059 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2060 * dummy-frame.c (find_dummy_frame): Rename
2061 generic_find_dummy_frame, make static. Return the dummy frame
2062 instead of the regcache.
2063 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2064 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2065 (dummy_frame_register_unwind): Rename
2066 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2067 * dummy-frame.h (dummy_frame_register_unwind): Rename
2068 generic_call_dummy_register_unwind.
2069
2070 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2071
2072 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2073 except the inclusion of "i386/tm-i386.h", to...
2074 * config/i386/nm-i386v42mp.h: ...here.
2075 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2076
2077 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2078
2079 * Makefile.in (frame.o): Update dependencies.
2080 * blockframe.c (current_frame, frame_obstack_alloc)
2081 (frame_saved_regs_zalloc, get_current_frame)
2082 (set_current_frame, create_new_frame)
2083 (set_unwind_by_pc, get_next_frame)
2084 (flush_cached_frames, reinit_frame_cache)
2085 (frame_saved_regs_register_unwind)
2086 (deprecated_generic_get_saved_register)
2087 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2088 (_initialize_blockframe): Move frame code from here...
2089 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2090 "annotate.h" and "dummy-frame.h".
2091 (_initialize_frame): New function.
2092
2093 2002-11-08 Jim Blandy <jimb@redhat.com>
2094
2095 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2096 when we finish a function a context.
2097 * buildsym.h (outermost_context_p): New macro.
2098 (Bug analyzed by David Edelsohn.)
2099
2100 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2101
2102 * blockframe.c: Include "dummy-frame.h".
2103 (struct dummy_frame, dummy_frame_stack)
2104 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2105 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2106 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2107 (generic_save_call_dummy_addr, generic_pop_current_frame)
2108 (generic_pop_dummy_frame, generic_fix_call_dummy)
2109 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2110 dummy frame code from here...
2111 * dummy-frame.c: ...to here. New file.
2112 * dummy-frame.h: New file.
2113 (generic_call_dummy_register_unwind): Declare.
2114 (generic_find_dummy_frame): Declare.
2115 * Makefile.in (SFILES): Add dummy-frame.c.
2116 (dummy-frame.o): Specify dependencies.
2117 (dummy_frame_h): Define.
2118 (COMMON_OBS): Add dummy-frame.o.
2119 (blockframe.o): Update dependencies.
2120
2121 2002-11-08 Jim Blandy <jimb@redhat.com>
2122
2123 * dwarf2read.c (read_func_scope): Restore local_symbols and
2124 param_symbols after we finish the function context. (Based on a
2125 patch from David Edelsohn.)
2126
2127 2002-11-08 David Carlton <carlton@math.stanford.edu>
2128
2129 * linespec.c (symbol_found): New function.
2130 (minsym_found): New function.
2131 (decode_line_1): Separate out some code into separate functions.
2132
2133 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2134
2135 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2136 the benefit of the interix target.
2137 * i386-tdep.h (i386_frameless_signal_p): Declare.
2138
2139 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2140
2141 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2142 declaration that snuck in from change below.
2143
2144 2002-11-06 Andrew Cagney <cagney@redhat.com>
2145
2146 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2147 all callers.
2148 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2149 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2150 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2151 (i386_mxcsr_regnum_p): new function. Use instead of
2152 MXCSR_REGNUM_P.
2153 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2154 (i386_sse_regnum_p): Declare.
2155 (i386_mxcsr_regnum_p): Declare.
2156 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2157 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2158 (IS_FP_REGNUM): Update definition.
2159 (IS_FPU_CTRL_REGNUM): Update definition..
2160 (IS_SSE_REGNUM): Update definition..
2161 * i386v-nat.c (register_u_addr): Update.
2162 * go32-nat.c (fetch_register): Update.
2163 (store_register): Update.
2164
2165 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2166
2167 Preparation work to convert the hppa targets to multiarch partial.
2168
2169 * hppa-tdep.c: Add new functions replacing macro bodies from
2170 config/pa/tm-hppa.h. These function will be used to initialize
2171 the gdbarch structure. Import some comments from tm-hppa.h,
2172 and place them where appropriate, to avoid loosing them when
2173 we cleanup this file.
2174 (hppa_reg_struct_has_addr): New function.
2175 (hppa_inner_than): New function.
2176 (hppa_stack_align): New function.
2177 (hppa_pc_requires_run_before_use): New function.
2178 (hppa_instruction_nullified): New function.
2179 (hppa_register_byte): New function.
2180 (hppa_register_virtual_type): New function.
2181 (hppa_store_struct_return): New function.
2182 (hppa_cannot_store_register): New function.
2183 (hppa_frame_args_address): New function.
2184 (hppa_frame_locals_address): New function.
2185 (hppa_smash_text_address): New function.
2186 (hppa_coerce_float_to_double): New function. Requires the inclusion
2187 of "language.h".
2188
2189 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2190
2191 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2192 gdbarch-eligible macro to a call to the new associated function
2193 created in hppa-tdep.c.
2194 (INNER_THAN): Likewise.
2195 (STACK_ALIGN): Likewise.
2196 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2197 (INSTRUCTION_NULLIFIED): Likewise.
2198 (REGISTER_BYTE): Likewise.
2199 (REGISTER_VIRTUAL_TYPE): Likewise.
2200 (STORE_STRUCT_RETURN): Likewise.
2201 (CANNOT_STORE_REGISTER): Likewise.
2202 (FRAME_ARGS_ADDRESS): Likewise.
2203 (FRAME_LOCALS_ADDRESS): Likewise.
2204 (SMASH_TEXT_ADDRESS): Likewise.
2205 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2206 (ABOUT_TO_RETURN): Delete, as no longer used.
2207
2208 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2209
2210 * printcmd.c (disassemble_command): Remove obsolete function.
2211 (_initialize_printcmd): Do not create disassemble command here.
2212 * cli/cli-cmds.c (disassemble_command): New function. Implements
2213 disassemble command.
2214 (init_cli_cmds): Create disassemble command here instead.
2215
2216 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2217
2218 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2219
2220 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2221
2222 * regcache.h (regcache_cooked_read_using_offset_hack)
2223 (regcache_cooked_write_using_offset_hack): Delete declarations.
2224 (register_changed): Delete declaration.
2225 * regcache.c (regcache_cooked_read_using_offset_hack)
2226 (regcache_cooked_write_using_offset_hack): Delete functions.
2227 (cooked_xfer_using_offset_hack): Delete function.
2228 (register_changed): Delete function.
2229
2230 2002-11-07 Jim Blandy <jimb@redhat.com>
2231
2232 * macroscope.c: #include "complaints.h".
2233 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2234 but not in the macro table.
2235 * Makefile.in (macroscope.o): Record dependency.
2236
2237 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2238
2239 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2240
2241 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2242
2243 * regcache.c (deprecated_registers_fetched): Update.
2244 * regcache.h (deprecated_registers_fetched): Rename
2245 registers_fetched.
2246 * remote-vxsparc.c (vx_read_register): Update.
2247 * remote-vxmips.c (vx_read_register): Update.
2248 * remote-vx68.c (vx_read_register): Update.
2249 * irix5-nat.c (fetch_core_registers): Update.
2250 * mipsm3-nat.c (fetch_inferior_registers): Update.
2251 * sun3-nat.c (fetch_inferior_registers): Update.
2252 * symm-nat.c (fetch_inferior_registers): Update.
2253 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2254 (fetch_core_registers): Update.
2255 (fetch_kcore_registers): Update.
2256 * mips-nat.c (fetch_inferior_registers): Update.
2257 * corelow.c (get_core_registers): Update.
2258 * a68v-nat.c (fetch_inferior_registers): Update.
2259
2260 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2261
2262 Put in place the framework necessary for multiarching the hppa targets.
2263 * hppa-tdep.c (hppa_gdbarch_init): New function.
2264 (hppa_dump_tdep): New function.
2265 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2266 tdep structure dumper.
2267 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2268 until the multi-arching conversion has partially been completed.
2269
2270 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2271
2272 * valops.c (value_assign): Merge lval_register case into
2273 lval_reg_frame_relative. Use frame_register and
2274 regcache_cooked_write instead of get_saved_register and
2275 write_register_bytes. After flushing the register cache, try to
2276 re-select the selected frame.
2277
2278 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2279
2280 * regcache.h (deprecated_register_valid): Rename register_valid.
2281 * regcache.c: Update.
2282 * ia64-aix-nat.c: Update.
2283 * i386gnu-nat.c: Update.
2284 * alpha-nat.c: Update.
2285 * sparc-nat.c: Update.
2286 * lynx-nat.c: Update.
2287 * remote-mips.c: Update.
2288
2289 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2290
2291 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2292 to end of file, to be more consistent with the pratice followed
2293 by other targets.
2294
2295 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2296
2297 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2298 (print_float_info): Print registers in float_reggroup.
2299 (print_vector_info): Print registers in vector_reggroup.
2300 (default_print_registers_info): When all, print registers in
2301 all_reggroup. Otherwize, print registers in general_reggroup.
2302 (registers_info): Rewrite. Add support for register groups.
2303 Eliminate a goto.
2304
2305 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2306
2307 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2308 ages.
2309 (symtab_symbol_info): Remove eons old ifdeffed out code.
2310 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2311 command.
2312
2313 2002-11-06 Theodore A. Roth <troth@openavr.org>
2314
2315 * c-exp.y: Add missing semi-colons.
2316 * f-exp.y: Add missing semi-colons.
2317 * m2-exp.y: Add missing semi-colons.
2318 * p-exp.y: Add missing semi-colons.
2319 Add empty action to start rule to avoid a type clash error when
2320 building with bison >= 1.50.
2321
2322 2002-11-06 Jim Blandy <jimb@redhat.com>
2323
2324 * macrotab.h (struct macro_source_file): Doc fix.
2325
2326 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2327
2328 * varobj.c (child_exists, cplus_number_of_children): Change
2329 STREQ macro references to strcmp.
2330 (cplus_name_of_child): Change code to handle the fact that
2331 fields are not necessarily contiguous with regards to their
2332 access control. This is a fix for PR gdb/792.
2333
2334 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2335
2336 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2337 * gdbarch.h, gdbarch.c: Regnerate.
2338 * frame.h (frame_register): Declare.
2339 * frame.c (frame_register): New function.
2340 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2341 GET_SAVED_REGISTER, otherwize call
2342 generic_unwind_get_saved_register.
2343 (frame_register_read): Use frame_register instead of
2344 get_saved_register.
2345
2346 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2347
2348 From Jim Ingham <jingham@apple.com>:
2349 * event-top.c (gdb_disable_readline): New function.
2350 (_initialize_event_loop): Move comment.
2351
2352 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2353
2354 * event-loop.c (start_event_loop): Add comment.
2355 Update copyright.
2356
2357 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2358
2359 * infcmd.c (default_print_registers_info): Do not call
2360 PRINT_REGISTER_HOOK.
2361
2362 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2363
2364 * sparc-tdep.c (sparc_print_register_hook): Make static.
2365 (sparc_print_registers_info): New function.
2366 (sparc_do_registers_info): New function.
2367 (sparclet_print_registers_info): New function.
2368 (sparclet_do_registers_info): New function.
2369 (do_sparc_print_registers_info): New function.
2370 (sparc_print_registers): New static function, clone of infcmd.c's
2371 default_print_registers_info.
2372 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2373 (sparclet_do_registers_info): Declare.
2374 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2375 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2376 Re-define.
2377 (sparc_do_registers_info): Declare.
2378 (PRINT_REGISTER_HOOK): Delete macro.
2379 (sparc_print_register_hook): Delete declaration.
2380
2381 2002-11-05 David Carlton <carlton@math.stanford.edu>
2382
2383 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2384 functions.
2385 (lookup_symbol_aux_local): New function.
2386 (lookup_symbol_aux_symtabs): New function.
2387 (lookup_symbol_aux_psymtabs): New function.
2388
2389 2002-11-05 David Carlton <carlton@math.stanford.edu>
2390
2391 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2392 previous values of 'objfile' and 'block'.
2393
2394 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2395
2396 * values.c (value_change_enclosing_type): Set
2397 enclosing_type field correctly also for the case where
2398 more memory needs to be allocated.
2399
2400 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2401
2402 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2403 of puts_filtered.
2404
2405 * i387-tdep.c (i387_print_float_info): Replace calls to
2406 register_read and deprecated_read_register_gen with calls to
2407 frame_register_read, and make the necessary adjustments to the
2408 surrounding code.
2409
2410 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2411
2412 * gdbarch.sh (register_reggroup_p): Allow default value.
2413 * gdbarch.h, gdbarch.c: Regenerate.
2414
2415 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2416
2417 * regcache.h: Add coment indicating replacements for deprecated
2418 functions.
2419
2420 2002-11-02 Andrew Cagney <cagney@redhat.com>
2421
2422 * reggroups.h, reggroups.c: New files.
2423 * regcache.c: Include "reggroups.h".
2424 (enum regcache_dump_what): Add `regcache_dump_groups'.
2425 (regcache_dump): Contract size of the "Type" column. When
2426 specified, dump the register's groups.
2427 (maintenance_print_register_groups): New function.
2428 (_initialize_regcache): Add command `maint print register-groups'.
2429 * Makefile.in (COMMON_OBS): Add reggroups.o
2430 (SFILES): Add reggroups.c.
2431 (reggroups_h): Define.
2432 (regcache.o, gdbarch.o): Update dependencies.
2433 (reggroups.o): Specify dependencies.
2434 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2435 Add opaque declaration for `struct reggroup' in generated .h file.
2436 Include "reggroups.h" in generated .c file.
2437 gdbarch.h, gdbarch.c: Re-generate.
2438
2439 2002-11-02 Andrew Cagney <cagney@redhat.com>
2440
2441 * regcache.h (deprecated_read_register_gen): Rename
2442 read_register_gen.
2443 (deprecated_write_register_gen): Rename write_register_gen.
2444 * i387-tdep.c: Update.
2445 * x86-64-linux-nat.c: Update
2446 * wince.c: Update.
2447 * thread-db.c: Update.
2448 * win32-nat.c: Update.
2449 * mips-tdep.c: Update.
2450 * d10v-tdep.c: Update.
2451 * cris-tdep.c: Update.
2452 * remote-sim.c: Update.
2453 * remote-rdi.c: Update.
2454 * remote-rdp.c: Update.
2455 * frame.c: Update.
2456 * target.c: Update.
2457 * blockframe.c: Update.
2458 * x86-64-tdep.c: Update.
2459 * xstormy16-tdep.c: Update.
2460 * sh-tdep.c: Update.
2461 * s390-tdep.c: Update.
2462 * rs6000-tdep.c: Update.
2463 * sparc-tdep.c: Update.
2464 * i386-tdep.c: Update.
2465 * dwarf2cfi.c: Update.
2466 * regcache.c: Update.
2467
2468 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2469
2470 New interix-specific files:
2471 * config/i386/nm-interix.h: New file.
2472 * config/i386/interix.mh: New file.
2473 * config/i386/interix.mt: New file.
2474 * i386-interix-nat.c: New file.
2475 * i386-interix-tdep.c: New file.
2476
2477 2002-11-01 Andrew Cagney <cagney@redhat.com>
2478
2479 * frame.h (deprecated_generic_get_saved_register): Rename
2480 generic_get_saved_register.
2481 * blockframe.c (deprecated_generic_get_saved_register): Update.
2482 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2483 (xstormy16_frame_saved_register): Update.
2484 * sh-tdep.c (sh_gdbarch_init): Update.
2485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2486 * ia64-tdep.c (ia64_get_saved_register): Update.
2487 * cris-tdep.c (cris_gdbarch_init): Update.
2488 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2489 * arm-tdep.c (arm_gdbarch_init): Update.
2490
2491 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2492
2493 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2494
2495 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2496
2497 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2498 trampolines in sigaction.
2499
2500 2002-10-31 Andrew Cagney <cagney@redhat.com>
2501
2502 * h8300-tdep.c: Include "gdb_assert.h".
2503 (h8300_print_register): Add gdbarch, file and frame parameters.
2504 Use frame_read_unsigned_register to read the register's value.
2505 Use fprintf_filtered to display output.
2506 (h8300_print_registers_info): Replace h8300_do_registers_info.
2507 (h8300_gdbarch_init): Set print_registers_info.
2508
2509 2002-10-31 Andrew Cagney <cagney@redhat.com>
2510
2511 * frame.c (frame_read_unsigned_register): New function.
2512 (frame_read_signed_register): New function.
2513 * frame.h (frame_read_unsigned_register): Declare.
2514 (frame_read_signed_register): Declare.
2515
2516 2002-10-31 Andrew Cagney <cagney@redhat.com>
2517
2518 * h8500-tdep.c (h8500_print_registers_info): New static function,
2519 clone of infcmd.c's default_print_registers_info.
2520 (h8500_do_registers_info): New funtion.
2521 (h8500_print_register_hook): Rename print_register_hook, make
2522 static.
2523
2524 * config/h8500/tm-h8500.h: Update copyright.
2525 (DEPRECATED_DO_REGISTERS_INFO): Define.
2526 (h8500_do_registers_info: Declare.
2527 (PRINT_REGISTER_HOOK): Delete macro.
2528 (print_register_hook): Delete function.
2529
2530 2002-10-31 Andrew Cagney <cagney@redhat.com>
2531
2532 * z8k-tdep.c (z8k_print_register_hook): Make static.
2533 (z8k_print_registers_info): New static function, clone of
2534 infcmd.c's default_print_registers_info.
2535 (z8k_do_registers_info): New function. Wrap
2536 z8k_print_registers_info.
2537 * config/z8k/tm-z8k.h: Update copyright.
2538 (PRINT_REGISTER_HOOK): Delete macro.
2539 (z8k_print_register_hook): Delete declaration.
2540 (DEPRECATED_DO_REGISTERS_INFO): Define.
2541 (z8k_do_registers_info): Declare.
2542
2543 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2544
2545 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2546 as this is already provided by value.h, and was actually causing
2547 a compilation error because of a conflict in parameter type
2548 declaration due to a missing const keyword.
2549 (low_text_segment_addres): Fix a compilation warning.
2550
2551 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2552
2553 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2554 registers without a name.
2555 (mips_linux_cannot_store_register): Don't store registers without
2556 a name.
2557
2558 2002-10-28 David Carlton <carlton@math.stanford.edu>
2559
2560 * symtab.c (find_addr_symbol): Delete. (It was already commented
2561 out.)
2562 * symtab.h: Delete prototype for find_addr_symbol.
2563
2564 2002-10-26 Andrew Cagney <cagney@redhat.com>
2565
2566 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2567 DO_REGISTERS_INFO.
2568 gdbarch.h, gdbarch.c: Re-generate.
2569 * infcmd.c (default_print_registers_info): Update reference.
2570 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2571 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2572 * sh-tdep.c (sh_gdbarch_init): Ditto.
2573 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2574 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2575
2576 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2577
2578 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2579 cfi_init_extra_frame_info.
2580 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2581 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2582
2583 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2584 target where necessary. Add more comments and remove the ones
2585 that don't provide any useful information.
2586
2587 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2588 deprecated_read_register_dummy with
2589 frame_unwind_unsigned_register.
2590
2591 * i386-tdep.c (i386_extract_struct_value_address): Use
2592 regcache_raw_read_unsigned instead of
2593 regcache_cooked_read_unsigned since we know that the register
2594 we're reading isn't a pseudo register. Rename variable 'val' into
2595 the more descriptive 'addr'.
2596
2597 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2598 (x86_64_push_return_address): Add comment.
2599 (x86_64_pop_frame): Make static.
2600 (examine_argument): Clarify comment.
2601 (x86_64_skip_prologue): Make prolog_expact variable static.
2602
2603 * dwarf2cfi.c: Fix some formatting problems.
2604 (context_cpy, read_encoded_pointer): Clarify comments.
2605
2606 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2607 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2608 i386 target back into x86_64_gdbarch_init. Add some comments and
2609 remove meaningless ones.
2610
2611 2002-10-25 Andrew Cagney <cagney@redhat.com>
2612
2613 * complaints.h (struct deprecated_complaint): Rename `struct
2614 complaint'.
2615 * complaints.c (complain): Update.
2616 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2617 incorrect comment indicating that "symfile.h" was being included
2618 for the `struct complaint' definition.
2619 * remote-vx.c: Update.
2620 * objc-lang.c: Update.
2621 * xcoffread.c: Update.
2622 * hpread.c: Update.
2623 * mdebugread.c: Update.
2624 * stabsread.c: Update.
2625 * dwarf2read.c: Update.
2626 * dwarfread.c: Update.
2627 * elfread.c: Update.
2628 * coffread.c: Update.
2629 * stabsread.h: Update.
2630 * dbxread.c: Update.
2631 * buildsym.c: Update.
2632 * gdbtypes.c: Update.
2633 * macrotab.c: Update.
2634
2635 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2636
2637 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2638 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2639 (x86_64_init_abi): ...new function.
2640
2641 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2642 * i386v-nat.c: Include "i386-tdep.h".
2643
2644 2002-10-25 Andrew Cagney <cagney@redhat.com>
2645
2646 * gdbtypes.c (address_space_name_to_int): Update.
2647 (address_space_int_to_name): Update.
2648 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2649 multi-arch predicate.
2650 (address_class_name_to_type_flags): Ditto.
2651 * gdbarch.h, gdbarch.c: Re-generate.
2652
2653 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2654
2655 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2656
2657 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2658
2659 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2660
2661 * symtab.h (INIT_SAL): Delete macro.
2662 (init_sal): Export.
2663 * symtab.c (init_sal): New function.
2664
2665 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2666 to init_sal function call.
2667 (find_sal_from_funcs_and_line): Ditto.
2668 (all_sals_for_line): Ditto.
2669 * breakpoint.c (create_internal_breakpoint): Ditto.
2670 (create_fork_vfork_event_catchpoint): Ditto.
2671 (create_exec_event_catchpoint): Ditto.
2672 (parse_breakpoint_sals): Ditto.
2673 (watch_command_1): Ditto.
2674 (handle_gnu_4_16_catch_command): Ditto.
2675 (clear_command): Ditto.
2676 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2677 * infcmd.c (run_stack_dummy): Ditto.
2678 * infrun.c (process_event_stop_test): Ditto.
2679 (check_sigtramp2): Ditto.
2680 (step_over_function): Ditto.
2681 * linespec.c (decode_line_2): Ditto.
2682 (decode_line_1): Ditto.
2683 * source.c (line_info): Ditto.
2684 * symtab.c (find_pc_sect_line): Ditto.
2685
2686 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2687
2688 * dwarf2cfi.c (struct context)
2689 (struct context_reg): Moved to dwarf2cfi.h
2690 (context_alloc, frame_state_alloc, context_cpy):
2691 Made extern instead of static, removed prototypes.
2692 * dwarf2cfi.h (struct context)
2693 (struct context_reg): New, moved from dwarf2cfi.c
2694 (context_alloc, frame_state_alloc, context_cpy):
2695 New prototypes.
2696 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2697 Changed from static to extern.
2698 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2699 (LINUX_SIGCONTEXT_FP_OFFSET)
2700 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2701 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2702 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2703 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2704 set_gdbarch_*() calls now use x86-64 specific functions
2705 instead of DWARF2 CFI ones.
2706 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2707 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2708 (x86_64_init_extra_frame_info): New prototypes.
2709
2710 2002-10-23 David Carlton <carlton@math.stanford.edu>
2711
2712 * linespec.c: #include "parser-defs.h".
2713 Delete prototype for find_template_name_end.
2714 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2715
2716 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2717
2718 * NEWS: add recent mi fixes.
2719 * varobj.c (struct varobj): Add new "updated" flag.
2720 (new_variable): Default "updated" flag to 0.
2721 (varobj_set_value): Set "updated" flag to 1 if value
2722 changes.
2723 (varobj_update): Check varobj "updated" flag before
2724 comparing old and refreshed values. Fix for
2725 PR gdb/702.
2726
2727 2002-10-23 David Carlton <carlton@math.stanford.edu>
2728
2729 * parse.c (parse_exp_1): Use BLOCK_START.
2730 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2731 SYMBOL_BLOCK_VALUE.
2732 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2733
2734 2002-10-23 David Carlton <carlton@math.stanford.edu>
2735
2736 * symtab.c: Delete cplusplus_hint.
2737 Delete prototype for find_template_name_end.
2738
2739 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2740
2741 * symtab.h: Update comment.
2742
2743 2002-10-23 Michael Snyder <msnyder@redhat.com>
2744
2745 * printcmd.c (address_info): Restore quotes in output.
2746 * valops.c (value_of_local): Restore quotes in error message.
2747
2748 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2749
2750 * symtab.c (symbol_demangled_name): New function.
2751 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2752 turning most of it into a function.
2753 (symbol_demangled_name): Export.
2754
2755 2002-10-23 Michael Snyder <msnyder@redhat.com>
2756
2757 * valops.c (value_of_local): Restore quotes in error message.
2758
2759 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2760
2761 * symtab.c (symbol_init_language_specific): New function.
2762 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2763 turning most of it into a function.
2764 (symbol_init_language_specific): Export.
2765
2766 2002-10-23 David Carlton <carlton@math.stanford.edu>
2767
2768 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2769 (dwarf_attr_name): Ditto.
2770 (dwarf_type_encoding_name): Ditto.
2771 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2772 (process_die): Handle DW_TAG_namespace,
2773 DW_TAG_imported_declaration, DW_TAG_imported_module.
2774 (read_namespace): New function.
2775
2776 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2777
2778 * configure.in: Define NEW_PROC_API on Interix too.
2779 * configure: Regenerate.
2780
2781 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2782
2783 * configure: Regenerate using the proper version of autoconf.
2784
2785 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2786
2787 * findvar.c (read_var_value): Temporarily disable TLS code, until
2788 complete TLS support is added.
2789
2790 2002-10-21 Jim Blandy <jimb@redhat.com>
2791 Elena Zannoni <ezannoni@redhat.com>
2792
2793 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2794 for thread local storage locations.
2795 (struct symbol): Add objfile field.
2796 (SYMBOL_OBJFILE): Define.
2797 * dwarf2read.c (is_thread_local): New static variable.
2798 (new_symbol): If variable is in thread local fill in address class
2799 and objfile appropriately.
2800 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2801 stack operation.
2802 * printcmd.c (address_info): Print the information for thread
2803 local storage variable.
2804 * findvar.c (read_var_value): In case of thread local variable,
2805 defer to the target vector code to compute address.
2806
2807 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2808
2809 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2810 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2811
2812 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2813
2814 * symtab.h (address_class): Rename
2815 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2816 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2817 * printcmd.c (address_info): Ditto.
2818 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2819
2820 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2821
2822 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2823 DBREG_DRX macro to acces debug registers.
2824
2825 * Makefile.in (i386obsd-tdep.o): New target.
2826
2827 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2828 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2829
2830 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2831 * config/i386/obsd.mt: New file.
2832 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2833 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2834 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2835 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2836 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2837 * i386obsd-tdep.c: New file.
2838
2839 2002-10-19 Adam Fedor <fedor@gnu.org>
2840
2841 * objc-exp.y (name_not_typename): Fix invalid comment.
2842
2843 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2844
2845 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2846 to allocate partial syms and macro byte caches.
2847
2848 2002-10-18 David Carlton <carlton@math.stanford.edu>
2849
2850 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2851
2852 2002-10-18 Adam Fedor <fedor@gnu.org>
2853
2854 * stabsread.c (find_name_end): New function.
2855 (define_symbol): Use it.
2856
2857 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2858
2859 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2860 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2861 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2862 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2863
2864 2002-10-17 David Carlton <carlton@math.stanford.edu>
2865
2866 * symfile.h: Add opaque declaration for struct obstack.
2867 Declare obsavestring to take a const char *.
2868 * symfile.c (obsavestring): Make first argument a const char *.
2869
2870 2002-10-16 Adam Fedor <fedor@gnu.org>
2871
2872 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2873 names when matching breakpoints in current file.
2874
2875 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2876
2877 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2878 (read_tag_pointer_type): Add address class support.
2879 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2880 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2881 New methods.
2882 * gdbarch.h, gdbarch.c: Regenerate.
2883 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2884 (make_type_with_address_space, recursive_type_dump): Add address
2885 class support.
2886 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2887 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2888 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2889
2890 2002-10-16 Klee Dienes <kdienes@apple.com>
2891
2892 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2893 to get the last character of a char[] buffer, not
2894 name[sizeof(vptr_name)-1].
2895
2896 2002-10-14 Adam Fedor <fedor@gnu.org>
2897
2898 * symtab.h: New objc_specific struct.
2899 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2900 (SYMBOL_DEMANGLED_NAME): Likewise.
2901
2902 2002-10-14 Adam Fedor <fedor@gnu.org>
2903
2904 * symfile.c (init_filename_language_table): Add ObjC file extension.
2905
2906 2002-10-14 Adam Fedor <fedor@gnu.org>
2907
2908 * utils.c (puts_filtered_tabular): New function.
2909 (fprintf_symbol_filtered): Get ObjC demangled name.
2910 * defs.h (puts_filtered_tabular): Declared.
2911
2912 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2913
2914 * c-lang.h (c_type_print_varspec_prefix): Delete.
2915 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2916 ``need_post_space'' parameter. Adjust all callers.
2917
2918 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2919
2920 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2921 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2922 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2923 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2924
2925 2002-10-13 Adam Fedor <fedor@gnu.org>
2926
2927 * source.c (print_source_lines): Update comments.
2928
2929 2002-10-13 Adam Fedor <fedor@gnu.org>
2930
2931 * valops.c (value_of_local): New function.
2932 (value_of_this): Use it.
2933 * value.h (value_of_local): Declared.
2934
2935 2002-10-13 Adam Fedor <fedor@gnu.org>
2936
2937 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2938 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2939
2940 2002-10-12 Adam Fedor <fedor@gnu.org>
2941
2942 * language.c (binop_result_type): Add language_objc to case.
2943 (integral_type): Likewise.
2944 (character_type): Likewise.
2945 (string_type): Likewise.
2946 (boolean_type): Likewise.
2947 (structured_type): Likewise.
2948 (binop_type_check): Likewise.
2949
2950 2002-10-11 Adam Fedor <fedor@gnu.org>
2951
2952 * printcmd.c (address_info): Print 'self' for ObjC.
2953
2954 2002-10-11 Adam Fedor <fedor@gnu.org>
2955
2956 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2957 OP_SELF.
2958
2959 2002-10-11 Adam Fedor <fedor@gnu.org>
2960
2961 * language.h (CAST_IS_CONVERSION): Add language_objc.
2962
2963 2002-10-11 Adam Fedor <fedor@gnu.org>
2964
2965 * defs.h (enum language): Add language_objc.
2966
2967 2002-10-11 Klee Dienes <kdienes@apple.com>
2968
2969 * corefile.c (read_memory_typed_address): New function.
2970 * gdbcore.h (read_memory_typed_address): Add prototype.
2971 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2972 to read a value destined for a CORE_ADDR, not read_memory_integer.
2973 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2974 (f77_get_dynamic_lowerbound): Ditto.
2975
2976 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2977
2978 * utils.c (string_to_core_addr): After turning string into
2979 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2980 which will do necessary sign-extension, etc.
2981
2982 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2983
2984 * c-exp.y (THIS): Delete token and grammar rule.
2985 (yylex): Don't return THIS.
2986 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2987 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2988 * demangle.c (cplus_markers): Update comment. Put '$'
2989 first. Remove CPLUS_MARKER.
2990 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2991 * jv-exp.y (THIS): Delete token and grammar rule.
2992 (yylex): Don't return THIS.
2993 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2994 * objc-exp.y (THIS): Delete token and grammar rule.
2995 (yylex): Don't return THIS.
2996 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2997 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2998 (read_member_functions): Likewise for opname.
2999 (read_tilde_fields): Use is_cplus_marker.
3000
3001 * defs.h (CPLUS_MARKER): Don't define.
3002 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3003 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3004 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3005 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3006 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3007
3008 * config/i386/tm-i386v4.h: Delete file.
3009 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3010 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3011 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3012 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3013 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3014 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3015 * config/i386/i386v4.mt (TM_FILE): Likewise.
3016 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3017
3018 2002-10-10 Marko Mlinar <markom@opencores.org>
3019
3020 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3021 accidentially not commited 2002-10-09
3022 * gdbarch.h, gdbarch.c: Re-generate.
3023
3024 2002-10-09 Marko Mlinar <markom@opencores.org>
3025
3026 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3027 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3028 * gdbarch.h, gdbarch.c: Re-generate.
3029
3030 2002-10-08 Petr Sorfa <petrs@caldera.com>
3031
3032 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3033
3034 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3035 so we can work on more than one compilation unit at a time. This
3036 helps prepare GDB to handle inter-CU die references.
3037 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3038 the code to be defined before struct comp_unit_head.
3039 (comp_unit_head): Added new members - offset, cu_head,
3040 begin_die, next and dwarf2_abbrevs.
3041 (dwarf2_abbrevs): Removed single static var; now member of
3042 struct comp_unit_head.
3043 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3044 members.
3045 (psymtab_to_symtab_1): Changed to work with the new
3046 struct comp_unit_head.
3047 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3048 constructs the dwarf2_abbrevs[] inside the cu_header.
3049 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3050 dwarf2_abbrev table to clean up.
3051 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3052 handling of dwarf2_abbrevs inside the cu_header.
3053 (read_partial_die): Now supports the call to the new
3054 dwarf2_lookup_abbrev.
3055 (read_full_die): Now supports the call to the new
3056 dwarf2_lookup_abbrev.
3057
3058 2002-10-06 Christopher Faylor <cgf@redhat.com>
3059
3060 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3061 insure that shell variables, such as "transformed_name" are propagated
3062 to later shell statements in rule.
3063
3064 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3065
3066 * config/i386/nm-i386sco.h: Add protection against
3067 multiple-inclusion. Include "i386/nm-i386v.h".
3068 (REGISTER_U_ADDR): Remove define.
3069 (i386_register_u_addr): Remove prototype.
3070
3071 2002-10-04 Michael Snyder <msnyder@redhat.com>
3072
3073 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3074 before treating it as a single-step event.
3075
3076 2002-10-03 Adam Fedor <fedor@gnu.org>
3077
3078 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3079 (objc_demangle): Remove assignment in if statements, Replace
3080 free with xfree.
3081 (add_msglist): Likewise.
3082 (end_msglist): Likewise.
3083 (complare_selectors): Likewise.
3084 (selectors_info): Likewise.
3085 (compare_classes): Likewise.
3086 (classes_info): Likewise.
3087 (print_object_command): Likewise.
3088 (find_objc_msgcall_submethod): Replace PTR with void *.
3089 * objc-lang.h: Remove check for __STDC__.
3090
3091 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3092
3093 * ui-out.h (ui_out_field_fmt_int): New prototype.
3094 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3095 of field width and alignment.
3096 * stack.c (print_frame_info_base): When printing frame level, use
3097 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3098 PR gdb/192
3099
3100 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3101
3102 * MAINTAINERS: Add self to Write After Approval list.
3103
3104 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3105
3106 * infcmd.c (interrupt_target_command_wrapper): Delete.
3107 (interrupt_target_command): Make non static.
3108 (nofp_registers_info): Make static.
3109 * stack.c (return_command_wrapper): Delete.
3110 (return_command): Make non static.
3111
3112 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3113
3114 * event-top.c (gdb_setup_readline): New function. Code moved from
3115 _initialize_event_loop().
3116 (_initialize_event_loop): Call gdb_setup_readline().
3117
3118 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3119
3120 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3121 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3122 * gdbarch.h, gdbarch.c: Re-generate.
3123
3124 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3125
3126 Fix PR gdb/778
3127 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3128 before recursing.
3129 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3130 of fill_in_vptr_fieldno.
3131
3132 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3133
3134 * inferior.h (registers_info, stepi_command, nexti_command,
3135 continue_command, interrupt_target_command): Export from infcmd.c.
3136 * frame.h (args_info, selected_frame_level_changed_hook,
3137 return_command): Export from stack.c.
3138 * v850ice.c (stepi_command, nexti_command, continue_command): use
3139 prototypes from inferior.h.
3140 * tracepoint.c (registers_info, args_info, locals_info): Use
3141 prototypes from frame.h and inferior.h.
3142 * Makefile.in (mi-main.o): Add dependency on frame.h.
3143
3144 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3145
3146 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3147 value in register 3 adjusted by ppc_gp0_regnum.
3148
3149 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3150
3151 2002-10-02 Marko Mlinar <markom@opencores.org>
3152
3153 * MAINTAINERS: Add myself to the Write After Approval list.
3154
3155 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3156
3157 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3158 of the section for the N64 ABI, fixed.
3159
3160 * config/mips/tm-irix6.h: Include solib.h.
3161
3162 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3163
3164 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3165 GNU operators.
3166
3167 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3168
3169 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3170 and that "mi0" syntax has been removed.
3171
3172 2002-09-30 David Carlton <carlton@math.stanford.edu>
3173
3174 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3175 * ppc-sysv-tdep.c: #include "gdb_string.h".
3176 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3177 pacify GCC.
3178
3179 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3180
3181 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3182 "vrsave"'s register number.
3183
3184 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3185
3186 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3187 use frame_unwind_signed_register to obtain the PC.
3188 (mips_frame_chain): Handle a generic dummy frame.
3189 (mips_init_extra_frame_info): When a generic dummy frame, don't
3190 re-compute the frame base.
3191 (mips_pop_frame): Handle generic dummy frames.
3192 (mips_gdbarch_init): When generic dummy frames, set
3193 use_generic_dummy_frames, push_dummy_frame to
3194 generic_push_dummy_frame, pc_in_call_dummy to
3195 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3196 generic_save_dummy_frame_tos.
3197
3198 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3199
3200 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3201 against TOP when TOP was explictly set.
3202 (generic_push_dummy_frame): Set TOP to zero.
3203
3204 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3205
3206 * event-loop.c (start_event_loop): Rename variable 'result' to
3207 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3208
3209 2002-09-30 Keith Seitz <keiths@redhat.com>
3210
3211 * gdb-events.sh (selected_thread_changed): New event.
3212 * gdb-events.c: Regenerated.
3213 * gdb-events.h: Regenerated.
3214
3215 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3216
3217 * MAINTAINERS: Add self to Write After Approval list.
3218
3219 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3220
3221 * disasm.c: New file.
3222 * disasm.h: New file.
3223 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3224 (compare_lines): Ditto.
3225 (dump_insns): Ditto.
3226 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3227 argument.
3228 (do_assembly_only): Ditto.
3229 (do_disassembly): Renamed to gdb_disassembly and moved to
3230 disasm.c. Sdded uiout argument.
3231 * Makefile.in: Add new files. Reorder SFILES list. Update
3232 dependencies. Include libgdb.a later in the insight executable.
3233
3234 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3235
3236 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3237 bfd/elf64-alpha-fbsd.c.
3238
3239 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3240
3241 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3242 i386gnu-tdep.c.
3243
3244 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3245
3246 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3247 __FUNCTION__.
3248 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3249 function name.
3250 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3251 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3252 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3253 (S_msg_sig_post_reply): Ditto.
3254
3255 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3256
3257 * sh-tdep.c (sh_use_struct_convention): Use definition according
3258 to ABI.
3259 (sh_push_arguments): Store in register with correct endianess.
3260 (sh_default_store_return_value): Ditto.
3261 (sh_gdbarch_init): Set sizeof long double to 8.
3262
3263 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3264
3265 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3266 Fix some whitespace problems.
3267
3268 2002-09-27 David Carlton <carlton@math.stanford.edu>
3269
3270 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3271 (mcore-tdep.o): Ditto.
3272 (ns32k-tdep.o): Ditto.
3273 (ns32knbsd-tdep.o): Ditto.
3274 (sh3-rom.o): Ditto.
3275 (vax-tdep.o): Ditto.
3276 * cris-tdep.c: #include "gdb_string.h"
3277 * mcore-tdep.c: Ditto.
3278 * ns32k-tdep.c: Ditto.
3279 * ns32knbsd-tdep.c: Ditto.
3280 * sh3-rom.c: Ditto.
3281 * vax-tdep.c: Ditto.
3282
3283 2002-09-27 David Carlton <carlton@math.stanford.edu>
3284
3285 * config/djgpp/fnchange.lst: Add entries for
3286 gdb/testsuite/gdb.c++/m-static files.
3287
3288 2002-09-27 Jim Wilson <wilson@redhat.com>
3289
3290 * MAINTAINERS: Add myself to the Write After Approval list.
3291
3292 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3293
3294 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3295
3296
3297 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3298
3299 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3300 frame.
3301
3302 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3303
3304 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3305 (rs6000_struct_return_address): Delete variable.
3306 (rs6000_store_struct_return): Update.
3307 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3308 deprecated_extract_struct_value_address.
3309 (rs6000_frame_align): New function.
3310 (rs6000_gdbarch_init): Set frame_align.
3311
3312 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3313
3314 From Grace Sainsbury <graces@redhat.com>:
3315 * Makefile.in (gdbtk-main.o): New target.
3316 (gdb.o): New target.
3317 (main_h): Define.
3318 (main.o): Update dependencies.
3319 (gdb$(EXEEXT)): Add gdb.o.
3320 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3321 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3322 (SUBDIR_GDBTK_CLEAN): Set.
3323 (install-gdbtk): Install the insight binary.
3324 (uninstall-gdbtk): New target.
3325 (all-gdbtk, clean-gdbtk): New rule.
3326 * top.c (use_windows): Default to zero.
3327 * main.c: Include "main.h".
3328 (main): Delete.
3329 (struct captured_main_args): Delete.
3330 (gdb_main): New function.
3331 * main.h: New file.
3332 * gdb.c: New File.
3333
3334 2002-09-25 Andrew Cagney <cagney@redhat.com>
3335
3336 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3337 (frame_map_regnum_to_name): New function.
3338 (frame_map_name_to_regnum): New function.
3339 * frame.h (frame_map_name_to_regnum): Declare.
3340 (frame_map_regnum_to_name): Declare.
3341 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3342 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3343 * parse.c: Do not include "builtin-regs.h".
3344 (target_map_name_to_register): Delete function.
3345 (write_dollar_variable): Use frame_map_name_to_regnum.
3346 * parser-defs.h (target_map_name_to_register): Delete declaration.
3347 * expprint.c: Include "frame.h".
3348 (print_subexp): Use frame_map_regnum_to_name.
3349 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3350 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3351
3352 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3353
3354 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3355 wasn't saved, and the next innermost frame is a dummy, return the
3356 dummy frame's link register.
3357
3358 2002-09-24 Jim Blandy <jimb@redhat.com>
3359
3360 Fix from Paul Breed:
3361 * main.c (captured_main): Add a `break' after the case for 'b'.
3362
3363 2002-09-24 Keith Seitz <keiths@redhat.com>
3364
3365 * varobj.c (c_type_of_child): Use get_target_type instead
3366 of TYPE_TARGET_TYPE.
3367
3368 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3369
3370 * source.c (get_current_or_default_source_symtab_and_line): Remove
3371 function.
3372 (set_default_source_symtab_and_line): New function. Attempts to
3373 determine a source file to list lines from if one is not currently
3374 defined.
3375 (get_current_source_symtab_and_line): Initialize sal.pc and
3376 sal.end fields.
3377 (set_current_source_symtab_and_line): Mark argument as const.
3378 * source.h: Update declarations and comments.
3379 * linespec.c (decode_line_1): Replace call to removed routine above.
3380 * stack.c (print_frame_info_base): Ditto.
3381 * cli/cli-cmds.c (edit_command): Ditto.
3382 (list_command): Ditto.
3383
3384 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3385
3386 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3387 sal.pc and sal.end fields.
3388 (get_current_or_default_source_symtab_and_line): Ditto.
3389 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3390 so we do not cause a new source symtab to be searched for (reverting an
3391 unintentional change from the 2002-09-20 patch).
3392 * scm-lang.c (scm_unpac): Ditto.
3393
3394 2002-09-21 Andrew Cagney <cagney@redhat.com>
3395
3396 * complaints.c (symfile_explanations): Remove new-line from
3397 ``isolated_message''.
3398 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3399 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3400
3401 2002-09-20 Nick Clifton <nickc@redhat.com>
3402
3403 * NEWS: Announce that V850EA ISA is no longer supported.
3404 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3405
3406 2002-09-20 David Carlton <carlton@math.stanford.edu>
3407
3408 * Makefile.in (c-lang.o): Correct dependencies.
3409 (utils.o): Gather dependencies.
3410 (charset.o): Move.
3411 * c-lang.c: #include "gdb_string.h"
3412
3413 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3414
3415 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3416 * cli/cli-cmds.c (list_command): New function. Implements the new
3417 cli edit command.
3418 (_init_cli_cmds): Add new command definition.
3419 * gdb.1: Document edit command.
3420 * doc/gdb.texinfo: Document edit command.
3421
3422 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3423
3424 * source.c: Make global variables current_source_symtab and
3425 current_source_line static.
3426 (list_command): Moved to cli/cli-cmds.c.
3427 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3428 (get_first_line_listed): New accessor function.
3429 (get_lines_to_list): New accessor function.
3430 (get_current_source_symtab_and_line): New function. Retrieves the
3431 position in the source code that we consider current.
3432 (get_current_or_default_source_symtab_and_line): New function.
3433 Like the above but attempts to determine a default position if one
3434 is not currently defined.
3435 (set_current_source_symtab_and_line): New function. Sets the source
3436 code position considered current and returns the previously set one.
3437 (clear_current_source_symtab_and_line): Reset stored information about
3438 a current source line.
3439 (_initialize_source): Remove registration for the "list" command and
3440 its alias.
3441 * source.h: Add declarations for the new functions above.
3442 * symtab.h: Remove declarations for the global variables mentioned
3443 above.
3444 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3445 obtain current source line.
3446 * linespec.c (decode_line_1): Ditto.
3447 * macroscope.c (default_macro_scope): Ditto.
3448 * scm-lang.c (scm_unpac): Ditto.
3449 * stack.c (print_frame_info_base): Ditto.
3450 * symfile.c (clear_symtab_users): Ditto.
3451 * symtab.c (decode_line_spec): Ditto.
3452 * cli/cli-cmds.c (list_command): Moved here from source.c.
3453 (ambiguous_line_spec): Moved here from source.c.
3454 (_init_cli_cmds): Add definition for "list" and its alias.
3455 * Makefile.in: Update dependencies.
3456
3457 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3458
3459 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3460 with what gcc thinks is correct.
3461
3462 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3463
3464 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3465 multiple register push instruction.
3466
3467 2002-09-19 Jim Blandy <jimb@redhat.com>
3468
3469 Add support for distinct host and target character sets.
3470 * charset.c, charset.h: New files.
3471 * c-exp.y: #include "charset.h".
3472 (yylex): Convert character and string literals to the target
3473 character set, before returning them as the semantic value of the
3474 token.
3475 * c-lang.c: #include "charset.h".
3476 (c_emit_char): Use charset-specific methods to recognize
3477 characters with backslash escape forms, to decide which characters
3478 to print literally and which to print using numeric escape
3479 sequences, and to convert target characters to host characters
3480 before printing.
3481 * utils.c: #include "charset.h".
3482 (no_control_char_error): New function.
3483 (parse_escape): Use charset-specific methods to recognize
3484 backslash escapes, parse `control character' notation, and convert
3485 characters from the host character set to the target character set.
3486 * configure.in: Set the default host character set.
3487 Check where to find iconv, and what its argument types might be.
3488 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3489 * Makefile.in (SFILES): List charset.c.
3490 (COMMON_OBS): List charset.o.
3491 (charset.o): New rule.
3492 (charset_h): New header dependency variable.
3493 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3494 (LIBICONV): New variable, set by configure.
3495 (CLIBS): Include $(LIBICONV) here.
3496 * aclocal.m4, config.in, configure: Regenerated.
3497
3498 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3499
3500 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3501 bison 1.35 warning.
3502
3503 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3504
3505 * gdb_mbuild.sh: New file.
3506
3507 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3508
3509 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3510
3511 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3512
3513 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3514 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3515 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3516 valops.c, value.h: Revert previous change.
3517
3518 2002-09-18 Michael Snyder <msnyder@redhat.com>
3519
3520 Preliminary support for Objective-C:
3521 * defs.h (language_objc): New enum value.
3522 (puts_filtered_tabular): Declaration only, exported from utils.c.
3523 (skip_quoted): Delete, declared in completer.h.
3524 * c-exp.y: Include completer.h.
3525 * p-exp.y: Ditto.
3526 * jv-exp.y: Ditto.
3527 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3528 New operator enum values.
3529 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3530 * language.c (binop_result_type): Handle language_objc case.
3531 (integral_type, character_type, string_type, boolean_type,
3532 structured_type, binop_type_check): Ditto.
3533 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3534 (struct objc_specific): Add to general_symbol_info.
3535 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3536 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3537 * parser-defs.h (struct objc_class_str): New struct type.
3538 (start_msglist, end_msglist, add_msglist): Declaration only,
3539 exported from objc-lang.c.
3540 * value.h (value_of_local, value_nsstring,
3541 call_function_by_hand_expecting_type): Exported from valops.c.
3542 * valops.c (find_function_addr): Export.
3543 (call_function_by_hand_expecting_type): New function.
3544 (value_of_local): New function.
3545 * symfile.c (init_filename_language_table): Add ".m" extension
3546 for Objective-C.
3547 * utils.c (puts_filtered_tabular): New function.
3548 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3549 (set/show demangle): Extend help-string to refer to ObjC.
3550 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3551 * stabsread.c (symbol_reference_defined): Objective-C symbols
3552 may contain colons: make allowances when scanning stabs strings
3553 for colons.
3554 (objc_find_colon): New function.
3555 * printcmd.c (address_info): If language == objc then print
3556 "self" instead of "this".
3557 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3558 OP_NSSTRING, and OP_SELF.
3559 (prefixify_subexp): Ditto.
3560 * source.c (print_source_lines): Mention objc in comment.
3561 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3562 method names.
3563
3564 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3565
3566 * complaints.h: Update copyright.
3567 (struct complaints): Declare.
3568 (struct complaint): Make `message' constant.
3569 (internal_complaint): Declare.
3570 (complaint): Declare.
3571 (complaint_root): Delete declaration.
3572 (symfile_complaints): Delete declaration.
3573 (struct complaints): Add opaque declaration.
3574 (clear_complaints): Add a complaints parameter.
3575 * complaints.c: Update copyright.
3576 (enum complaint_series): Define.
3577 (complaint_root): Delete.
3578 (struct complaints): Define.
3579 (complaint_sentinel, symfile_complaint_book): New variables.
3580 (symfile_explanations, symfile_complaints): New variables.
3581 New variables.
3582 (get_complaints): New function.
3583 (vcomplaint): New function.
3584 (complaint): New function.
3585 (internal_complaint): New function.
3586 (complain): Call vcomplain with symfile_complaint.
3587 (clear_complaints): Rewrite.
3588 (_initialize_complaints): Use add_setshow_command.
3589 * Makefile.in (complaints.o): Update dependencies.
3590 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3591 to call to clear_complaints.
3592 (new_symfile_objfile, reread_symbols): Ditto.
3593 (oldsyms_complaint): Delete.
3594 (empty_symtab_complaint, unknown_option_complaint): Delete.
3595 (free_named_symtabs): Use complaint instead of complain.
3596
3597 2002-09-18 Michael Snyder <msnyder@redhat.com>
3598
3599 Contributed by Apple Computer, Inc. Merged with current sources
3600 by Adam Fedor <fedor@doc.com> [cagney].
3601
3602 * objc-lang.c: First clean-up round: comments, indentation.
3603 * objc-lang.h: Ditto.
3604 * objc-lang.y: Ditto.
3605
3606 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3607
3608 * maint.c (maintenance_internal_error): Print the parameter as the
3609 error message.
3610 (maintenance_internal_warning): New function.
3611 (_initialize_maint_cmds): Add command `maint internal-warning'.
3612
3613 * defs.h (internal_warning, internal_vwarning): Declare.
3614 * utils.c (struct internal_problem): Define.
3615 (internal_vproblem): New function.
3616 (internal_warning): New function.
3617 (internal_vwarning): New function.
3618 (internal_warning_problem, internal_error_problem): New variables.
3619 (internal_verror): Just call internal_vproblem.
3620
3621 2002-09-18 Michael Snyder <msnyder@redhat.com>
3622
3623 * objc-lang.c: New file, support for Objective-C.
3624 Preliminary check-in, not yet integrated into gdb.
3625 * objc-lang.h: New file.
3626 * objc-exp.y: New file.
3627
3628 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3629
3630 * infrun.c (signal_stop_update): Convert definition to ISO C.
3631 (signal_print_update): Ditto.
3632 (signal_pass_update): Ditto.
3633 * inflow.c (terminal_save_ours): Ditto.
3634
3635 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3636 comments.
3637
3638 * config/djgpp/fnchange.lst: Handle name clashes between
3639 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3640 bfd/coff-tic80.c.
3641
3642 * i386-linux-tdep.h: Fix tipo.
3643
3644 2002-09-18 Adam Fedor <fedor@gnu.org>
3645
3646 * MAINTAINERS: Add myself to the Write After Approval list.
3647
3648 2002-09-18 Jim Blandy <jimb@redhat.com>
3649
3650 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3651 texthigh and textlow to reader-specific structs caused
3652 objfile_relocate to miss them. This is fixable, but the work that
3653 the change was supposed to prepare GDB for never got done anyway.
3654
3655 2002-09-18 David Carlton <carlton@math.stanford.edu>
3656
3657 * MAINTAINERS: Alphabetize Write After Approval list.
3658
3659 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3660
3661 Fix PR gdb/709
3662 * values.c (value_static_field): Call read_var_value.
3663
3664 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3665
3666 * valops.c (hand_function_call): Align the initial stack pointer
3667 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3668 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3669 return value.
3670 * mips-tdep.c (mips_frame_align): New function.
3671 (mips_gdbarch_init): Set frame_align.
3672 * gdbarch.sh (FRAME_ALIGN): New method.
3673 * gdbarch.h, gdbarch.c: Re-generate.
3674
3675 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3676
3677 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3678 registers.
3679
3680 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3681
3682 * NEWS: Mention that MIPS $fp behavior changed.
3683 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3684 reference to FP_REGNUM.
3685 (mipsnbsd_cannot_store_register): Ditto.
3686 * mips-linux-nat.c: Update copyright.
3687 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3688 (mips_linux_cannot_store_register): Ditto.
3689 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3690 * config/mips/tm-mips.h: Update copyright.
3691 (FP_REGNUM): Delete macro.
3692 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3693 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3694 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3695 (mips_r3041_reg_names, mips_r3051_reg_names)
3696 (mips_r3081_reg_names): Replace "fp" with "".
3697 Fix PR gdb/480.
3698
3699 2002-09-17 Theodore A. Roth <troth@verinet.com>
3700
3701 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3702 generic_read_register_dummy() (PR gdb/703).
3703 (avr_push_return_address): #if 0 out unused vars.
3704 (avr_gdbarch_init): Enable use of avr_push_return_address().
3705
3706 2002-09-17 Michael Snyder <msnyder@redhat.com>
3707
3708 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3709 RTE will take care of it.
3710
3711 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3712
3713 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3714 invalid, return SP_REGNUM.
3715
3716 2002-09-17 Michael Snyder <msnyder@redhat.com>
3717
3718 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3719 point registers without sign extension.
3720
3721 2002-09-17 Andrew Cagney <cagney@redhat.com>
3722
3723 * blockframe.c (deprecated_read_register_dummy): Rename
3724 generic_read_register_dummy.
3725 * frame.c (frame_unwind_signed_register): New function.
3726 (frame_unwind_unsigned_register): New function.
3727 * frame.h (frame_unwind_signed_register): Declare.
3728 (frame_unwind_unsigned_register): Declare.
3729 (deprecated_read_register_dummy): Rename
3730 generic_read_register_dummy.
3731
3732 * h8300-tdep.c (h8300_frame_chain): Update.
3733 (h8300_frame_saved_pc): Update.
3734 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3735 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3736 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3737 (s390_frame_chain): Update.
3738 * v850-tdep.c (v850_find_callers_reg): Update.
3739 (v850_frame_saved_pc): Update.
3740 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3741 (m32r_find_callers_reg): Update.
3742 (m32r_frame_saved_pc): Update.
3743 * sh-tdep.c (sh_find_callers_reg): Update.
3744 (sh64_get_saved_pr): Update.
3745 (sh_init_extra_frame_info): Update.
3746 (sh_init_extra_frame_info): Update.
3747 (sh64_init_extra_frame_info): Update.
3748 (sh64_init_extra_frame_info): Update.
3749 * mcore-tdep.c (mcore_find_callers_reg): Update.
3750 (mcore_frame_saved_pc): Update.
3751 (mcore_init_extra_frame_info): Update.
3752 * i386-tdep.c (i386_frame_saved_pc): Update.
3753 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3754 (ia64_init_extra_frame_info): Update.
3755 (ia64_init_extra_frame_info): Update.
3756 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3757 * cris-tdep.c (cris_init_extra_frame_info): Update.
3758 * avr-tdep.c (avr_frame_chain): Update.
3759 (avr_init_extra_frame_info): Update.
3760 (avr_frame_saved_pc): Update.
3761 * arm-tdep.c (arm_find_callers_reg): Update.
3762 (arm_init_extra_frame_info): Update.
3763 (arm_frame_saved_pc): Update.
3764
3765 2002-09-17 Tom Tromey <tromey@redhat.com>
3766
3767 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3768 is "'".
3769
3770 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3771
3772 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3773 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3774 NEXT_PROLOGUE_INSN.
3775 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3776 NEXT_PROLOGUE_INSN.
3777
3778 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3779
3780 * osfsolib.c: Remove file, replaced by solib-osf.c.
3781 * Makefile.in: Remove compilation rules for osfsolib.c.
3782
3783 2002-09-16 David Carlton <carlton@math.stanford.edu>
3784
3785 * cp-valprint.c (cp_print_class_method): Correct args to
3786 check_stub_method_group.
3787
3788 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3789
3790 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3791 `set architecture'. Unify naming convention of functions.
3792 (h8300_skip_prologue): Improve prologue analysis.
3793 (h8300_push_arguments): Rewritten to more closely match GCC's
3794 bizarre argument-passing behavior, along with the comment describing
3795 said behavior.
3796 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3797 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3798 sim, remote-e7000.c, remote-hms.c and remote.c
3799
3800 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3801
3802 * i386-tdep.c (gdb_print_insn_i386): Removed.
3803 (i386_print_insn): New function.
3804 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3805 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3806 tm_print_insn_info.
3807
3808 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3809
3810 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3811 zero.
3812
3813 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3814
3815 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3816 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3817 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3818
3819 2002-09-13 Christopher Faylor <cgf@redhat.com>
3820
3821 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3822
3823 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3824
3825 * gdbtypes.c (check_stub_method): Make static.
3826 (check_stub_method_group): New function.
3827 * gdbtypes.h: Update prototypes.
3828 * cp-support.c: New file.
3829 * cp-support.h: New file.
3830
3831 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3832 (update_method_name_from_physname): New function.
3833 (read_member_functions): Correct method names for operators
3834 and v3 constructors/destructors. Separate v2 constructors and
3835 destructors.
3836 * Makefile.in (stabsread.o): Update dependencies.
3837 (SFILES): Add cp-support.c.
3838 (COMMON_OBS): Add cp-support.o.
3839 (cp_support_h, cp-support.o): Add.
3840
3841 * cp-valprint.c (cp_print_class_method): Call
3842 check_stub_method_group instead of check_stub_method. Remove
3843 extraneous QUITs.
3844 * p-valprint.c (pascal_object_print_class_method): Likewise.
3845 * valops.c (search_struct_method): Likewise.
3846 (find_method_list, value_struct_elt_for_reference): Likewise.
3847
3848 2002-09-13 Andrew Cagney <cagney@redhat.com>
3849
3850 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3851 * gdbarch.h, gdbarch.c: Regenerate.
3852
3853 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3854
3855 * frame.c (find_saved_register): Delete function.
3856 * frame.h (find_saved_register): Delete declaration.
3857 Fix PR gdb/631.
3858
3859 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3860
3861 * mips-tdep.c (read_next_frame_reg): Re-hack using
3862 frame_register_unwind.
3863
3864 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3865
3866 * mips-tdep.c (mips_get_saved_register): Re-hack using
3867 frame_register_unwind.
3868
3869 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3870
3871 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3872 vector. Will be useful for Interix.
3873 * gdbarch.h, gdbarch.c: Regenerate.
3874
3875 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3876 name of the malloc function by NAME_OF_MALLOC.
3877
3878 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3879
3880 * value.h (find_function_in_inferior): Add const keyword to
3881 one of the parameters. Allows us to invoke this function with
3882 a const char *.
3883 * valops.c (find_function_in_inferior): Likewise.
3884
3885 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3886
3887 * exec.c (xfer_memory): Fix compilation warning with old versions
3888 of GCC.
3889 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3890
3891 2002-09-12 David Carlton <carlton@math.stanford.edu>
3892
3893 * symtab.h: Run through gdb_indent.h.
3894 Add 2002 to Copyright year list.
3895
3896 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3897
3898 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3899 mach constants.
3900 * MAINTAINERS: Add myself to write after approval list.
3901
3902 2002-09-11 J. Brobecker <brobecker@gnat.com>
3903
3904 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3905
3906 2002-09-11 J. Brobecker <brobecker@gnat.com>
3907
3908 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3909 Interix.
3910
3911 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3912
3913 * procfs.c (do_detach): Clear current signal, not just fault.
3914 Corrects problem with breakpoint trap signal leaking to detached
3915 process on Tru64.
3916
3917 2002-09-10 Michael Snyder <msnyder@redhat.com>
3918
3919 * buildsym.c (finish_block): Protect against null pointer.
3920
3921 2002-09-10 Andrew Cagney <cagney@redhat.com>
3922
3923 * infcmd.c (default_print_registers_info): Send all output to
3924 ``file'' instead of ``gdb_stdout''.
3925
3926 2002-09-10 Michael Snyder <msnyder@redhat.com>
3927
3928 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3929 LONGEST, and use signed register read (addresses are sign-
3930 extended for mips).
3931
3932 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3933
3934 * event-loop.c (gdb_do_one_event): Make public.
3935 * event-loop.h (gdb_do_one_event): Declare.
3936
3937 2002-09-10 Jeff Law <law@redhat.com>
3938
3939 * infttrace.c (child_resume): Simplify and rework to avoid
3940 TT_PROC_CONTINUE.
3941
3942 2002-09-09 Fred Fish <fnf@intrinsity.com>
3943
3944 * printcmd.c (print_scalar_formatted): "len" is the number of
3945 target bytes, NOT the number of target bits.
3946
3947 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3948
3949 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3950 * top.c (init_main): Set rl_terminal_name.
3951
3952 2002-09-08 Aidan Skinner <aidan@velvet.net>
3953
3954 * ada-lang.c (ada_array_bound, ada_type_match,
3955 _initialize_ada_language): Fix K&R definitions.
3956 * ada-tasks.c (get_current_task): Fix K&R definitions.
3957 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3958
3959 2002-09-07 Christopher Faylor <cgf@redhat.com>
3960
3961 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3962 Add XP.
3963
3964 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3965
3966 * i386-tdep.c (i386_register_virtual_type,
3967 i386_register_convertible, i386_register_convert_to_virtual,
3968 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3969 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3970 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3971 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3972 Don't set push_arguments twice.
3973
3974 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3975 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3976 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3977 sigtramp_end to NULL.
3978 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3979 defines.
3980 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3981
3982 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3983 whitespace.
3984
3985 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3986 * gdbarch.h, gdbarch.c: Re-generate.
3987 * blockframe.c (find_pc_sect_partial_function): Convert to use
3988 SIGTRAMP_START_P predicate.
3989
3990 2002-09-05 Michael Snyder <msnyder@redhat.com>
3991
3992 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3993 generic_dummy_frame method and old method. Also distinguish
3994 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3995 (arm_extract_return_value): Use new regcache method.
3996
3997 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3998 adjustment that doesn't conform to the ABI.
3999 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4000 saved regcache, not from current regcache.
4001
4002 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4003
4004 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4005 * README: Update.
4006
4007 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4008
4009 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4010 if arm_apcs_32 is false.
4011
4012 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4013
4014 GDB 5.3 branch created.
4015
4016 2002-09-03 Theodore A. Roth <troth@verinet.com>
4017
4018 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4019 generic_unwind_get_saved_register.
4020
4021 2002-09-03 David Carlton <carlton@math.stanford.edu>
4022
4023 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4024 argument (PR gdb/653). Update call to smash_to_method_type.
4025 (read_structure_scope): Update call to dwarf2_add_member_fn.
4026
4027 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4028
4029 * x86-64-linux-tdep.c: Include gdb_string.h
4030 * x86-64-linux-nat.c: Ditto.
4031
4032 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4033
4034 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4035 when YYDEBUG is set to 1.
4036 * c-exp.y: Likewise.
4037 * f-exp.y: Likewise.
4038 * jv-exp.y: Likewise.
4039 * m2-exp.y: Likewise.
4040 * p-exp.y: Likewise.
4041
4042 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4043
4044 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4045 dependency list.
4046 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4047 solib_svr4_fetch_link_map_offsets to
4048 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4049 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4050 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4051 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4052 solib-svr4.o, and solib-legacy.o.
4053 * config/i386/tm-nbsd.h: Include solib.h.
4054
4055 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4056
4057 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4058 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4059 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4060 comment noting that this needs its own target configuration.
4061 * config/i386/nbsd.mt: New file.
4062 * config/i386/nbsdaout.mt: Remove.
4063 * config/i386/nbsdelf.mt: Ditto.
4064 * config/i386/tm-nbsdaout.h: Ditto.
4065
4066 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4067
4068 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4069 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4070 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4071 tdep->sigtramp_end.
4072 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4073 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4074 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4075
4076 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4077
4078 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4079 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4080 * i386-tdep.h (i386bsd_init_abi): New prototype.
4081 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4082 function declaration.
4083 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4084 for NetBSD-a.out or NetBSD-ELF.
4085 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4086 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4087 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4088 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4089 and nbsd-tdep.h.
4090 (i386nbsd_pc_in_sigtramp): New function.
4091 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4092 i386nbsd_pc_in_sigtramp.
4093 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4094 and i386nbsdelf_init_abi OS ABI handlers.
4095 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4096 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4097
4098 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4099
4100 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4101 registers if the target really has them.
4102
4103 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4104
4105 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4106 than nbsd-tdep.h.
4107
4108 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4109
4110 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4111 list.
4112 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4113 (alphanbsd_skip_sigtramp_frame): New functions.
4114 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4115 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4116 to alphanbsd_sigcontext_addr.
4117
4118 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4119
4120 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4121 list.
4122 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4123 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4124 nbsd_pc_in_sigtramp.
4125 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4126 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4127 * nbsd-tdep.c: Include gdb_string.h.
4128 (nbsd_pc_in_sigtramp): New function.
4129 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4130 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4131 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4132 ppcnbsd_pc_in_sigtramp.
4133 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4134 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4135 shnbsd_pc_in_sigtramp.
4136 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4137 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4138 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4139
4140 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4141
4142 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4143 watchpoints to NULL.
4144 (insert_breakpoints): set val field of watchpoints if NULL.
4145
4146
4147 2002-08-29 Jim Blandy <jimb@redhat.com>
4148
4149 * symtab.c (lookup_symbol_aux): In the cases where we find a
4150 minimal symbol of an appropriate name and use its address to
4151 select a symtab to read and search, use `name' (as passed to us)
4152 as the demangled name when searching the symtab's global and
4153 static blocks, not the minsym's name.
4154
4155 2002-08-29 Keith Seitz <keiths@redhat.com>
4156
4157 * stack.c (print_frame_info_base): Always set current_source_symtab
4158 and current_source_line.
4159
4160 2002-08-29 Donn Terry <donnte@microsoft.com>
4161
4162 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4163
4164 2002-08-28 Keith Seitz <keiths@redhat.com>
4165
4166 * stack.c (select_frame): Add FIXME concerning selected-frame
4167 events.
4168 (select_frame_command): Send selected-frame-level-changed
4169 event notification, but only if the level actually changed.
4170 (up_silently_base): Add selected-frame-level-changed event
4171 notification.
4172 (down_silently_base): Likewise.
4173
4174 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4175
4176 * Makefile.in: Update dependencies for all gdb/*.c files.
4177
4178 2002-08-27 Tom Tromey <tromey@redhat.com>
4179
4180 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4181 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4182 Update dependencies.
4183 * i387-tdep.c: Include gdb_string.h.
4184 * osabi.c: Likewise.
4185 * i386-linux-nat.c: Likewise.
4186 * lin-lwp.c: Likewise.
4187 * ax-gdb.c: Likewise.
4188 * signals/signals.c: Likewise.
4189 * jv-valprint.c: Likewise.
4190 * p-lang.c: Likewise.
4191 * c-valprint.c: Likewise.
4192 * cp-abi.c: Likewise.
4193
4194 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4195
4196 * cli/cli-script.h (copy_command_lines): Export.
4197 * breakpoint.c: Include cli/cli-script.h.
4198 * Makefile.in (breakpoint.o): Update dependencies.
4199
4200 2002-08-26 Michael Snyder <msnyder@redhat.com>
4201
4202 * breakpoint.c (insert_breakpoints): Protect all references
4203 to 'process_warning'. Shorten long lines.
4204
4205 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4206
4207 * cli/cli-script.c (copy_command_lines): New function.
4208 * defs.h (copy_command_lines): Export.
4209 * testsuite/gdb.base/commands.exp: New tests for commands
4210 attached to a temporary breakpoint, and for commands that
4211 delete the breakpoint they are attached to.
4212
4213 2002-08-26 Michael Snyder <msnyder@redhat.com>
4214
4215 * breakpoint.c (bpstat_stop_status): Instead of copying the
4216 pointer to the breakpoint commands struct, make a new copy
4217 of the struct and point to that.
4218 (bpstat_clear): Free the commands struct.
4219 (bpstat_clear_actions): Free the commands struct.
4220 (bpstat_do_actions): Free the command actions. Also execute
4221 the local cleanups, instead of deleting them.
4222 (delete_breakpoint): Leave the commands field of the bpstat
4223 chain alone -- it will be freed later.
4224
4225 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4226
4227 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4228 deleted in 2002-08-20 commit. This function is still used by
4229 ppc-linux-nat.c.
4230
4231 2002-08-26 Keith Seitz <keiths@redhat.com>
4232
4233 * gdb-events.sh: Add selected-frame-level-changed event.
4234 * gdb-events.c: Regenerated.
4235 * gdb-events.h: Regenerated.
4236
4237 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4238
4239 Fix PR gdb/393:
4240 * inflow.c (terminal_save_ours): New function to save terminal
4241 settings.
4242 * inferior.h (terminal_save_ours): Declare.
4243 * target.c (debug_to_terminal_save_ours): New function.
4244 (cleanup_target): Defaults to_terminal_save_ours.
4245 (update_current_target): Inherit to_terminal_save_ours.
4246 (setup_target_debug): Set to_terminal_save_ours.
4247 * target.h (target_terminal_save_ours): New to save terminal settings.
4248 (target_ops): New member to_terminal_save_ours.
4249 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4250 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4251 * inftarg.c (init_child_ops): Likewise.
4252 * m3-nat.c (init_m3_ops): Likewise.
4253 * procfs.c (init_procfs_ops): Likewise.
4254 * wince.c (init_child_ops): Likewise.
4255 * win32-nat.c (init_child_ops): Likewise.
4256 * sol-thread.c (init_sol_thread_ops): Likewise.
4257
4258 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4259
4260 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4261 use regcache_* functions.
4262 (i386_gdbarch_init): Set store_return_value instead of
4263 deprecated_store_return_value.
4264
4265 * regcache.c (regcache_raw_write_signed,
4266 regcache_raw_write_unsigned): New functions.
4267 * regcache.h (regcache_raw_write_signed,
4268 regcache_raw_write_unsigned): New prototypes.
4269
4270 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4271
4272 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4273 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4274 source file dependencies. Cleanup corresponding generator rules.
4275
4276 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4277
4278 * regcache.h (register_offset_hack): Declare.
4279 (regcache_cooked_read_using_offset_hack): Declare.
4280 (regcache_cooked_write_using_offset_hack): Declare.
4281
4282 * regcache.c (register_offset_hack): New function.
4283 (regcache_cooked_read_using_offset_hack): New function.
4284 (regcache_cooked_write_using_offset_hack): New function.
4285 (regcache_dump): Check that the registers, according to their
4286 offset, are packed hard against each other.
4287 (cooked_xfer_using_offset_hack): New function.
4288
4289 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4290
4291 * regcache.c (struct regcache_descr): Add field register_type.
4292 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4293 in as a parameter
4294 (init_regcache_descr): Initialize register_type. Pass the descr
4295 to init_legacy_regcache_descr. Use register_type instead of
4296 REGISTER_VIRTUAL_TYPE.
4297 (register_type): New function.
4298 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4299 * regcache.h (register_type): Declare.
4300
4301 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4302
4303 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4304 instead of deprecated_store_return_value. Fix fallout from
4305 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4306
4307 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4308
4309 * regcache.c (max_register_size): New function.
4310 (init_legacy_regcache_descr): Ensure that max_register_size is
4311 large enough for REGISTER_VIRTUAL_SIZE.
4312 * regcache.h (max_register_size): Declare.
4313
4314 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4315
4316 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4317 store_return_value.
4318 (e500_extract_return_value): Change type of valbuf pointer to
4319 void.
4320
4321 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4322
4323 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4324 workaround.
4325
4326 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4327 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4328 long long) to prevent compiler warning on 64-bit systems.
4329
4330 2002-08-23 Andrew Cagney <cagney@redhat.com>
4331
4332 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4333 (DEPRECATED_STORE_RETURN_VALUE): New method.
4334 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4335 * gdbarch.h, gdbarch.c: Re-generate.
4336
4337 * values.c (set_return_value): Pass current_regcache to
4338 STORE_RETURN_VALUE.
4339 * arch-utils.h (legacy_store_return_value): Declare.
4340 * arch-utils.c (legacy_store_return_value): New function.
4341 (legacy_extract_return_value): Update parameters.
4342
4343 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4344 STORE_RETURN_VALUE.
4345 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4346 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4347 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4348 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4349 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4350 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4351 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4352 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4353 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4354 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4355
4356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4357 * i386-tdep.c (i386_extract_return_value): Update.
4358 * arch-utils.c (legacy_extract_return_value): Update.
4359 * frv-tdep.c (frv_gdbarch_init): Update.
4360 * cris-tdep.c (cris_gdbarch_init): Update.
4361 * d10v-tdep.c (d10v_gdbarch_init): Update.
4362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4363 * m68k-tdep.c (m68k_gdbarch_init): Update.
4364 * mcore-tdep.c (mcore_gdbarch_init): Update.
4365 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4366 * s390-tdep.c (s390_gdbarch_init): Update.
4367 * sparc-tdep.c (sparc_gdbarch_init): Update.
4368 * sh-tdep.c (sh_gdbarch_init): Update.
4369 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4370 * v850-tdep.c (v850_gdbarch_init): Update.
4371 * avr-tdep.c (avr_gdbarch_init): Update.
4372 * ia64-tdep.c (ia64_gdbarch_init): Update.
4373 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4374 * vax-tdep.c (vax_gdbarch_init): Update.
4375 * alpha-tdep.c (alpha_gdbarch_init): Update.
4376 * arm-tdep.c (arm_gdbarch_init): Update.
4377 * mips-tdep.c (mips_gdbarch_init): Update.
4378 * i386-tdep.c (i386_gdbarch_init): Update.
4379
4380 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4381
4382 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4383 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4384
4385 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4386
4387 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4388 problems.
4389
4390 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4391
4392 * infrun.c (handle_inferior_event): Move a comment outside of a
4393 function call, in order to avoid indent reformatting this part
4394 of the code in an unreadable way.
4395
4396 2002-08-23 Grace Sainsbury <graces@redhat.com>
4397
4398 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4399 when breakpoints fail. Move general breakpoint error messages to
4400 insert_breakpoints.
4401 * breakpoint.c (insert_breakpoints): Change warnings when
4402 breakpoints are nto inserted to specify the type. Remove call to
4403 memory_error when hardware breakpoints can't be inserted. Remove
4404 multiple calls to warning so all messages are sent to the user at
4405 once.
4406 (delete_breakpoints): Make insert error messsages more explicit.
4407
4408 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4409
4410 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4411 gdbserver/ChangeLog.
4412
4413 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4414
4415 * i386-tdep.c: Include "objfiles.h".
4416 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4417 skip_trampoline_code.
4418 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4419 (CPLUS_MARKER): Define to '.'.
4420
4421 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4422 member.
4423 (linux_corefile_thread_callback): Increase args->num_notes.
4424 (linux_make_note_section): Initialize thread_args.num_notes, and
4425 use it to determine whether notes for any threads were created.
4426
4427 2002-08-23 Donn Terry <donnte@microsoft.com>
4428
4429 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4430 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4431 and PCUNKILL.
4432 (write_with_trace): Conditionalize out the switch branch handling
4433 PCSHOLD if the corresponding macro is not defined. Likewise for
4434 PRSABORT and PRSTOP.
4435 This change will be needed by the Interix port.
4436
4437 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4438
4439 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4440 write_register wherever possible instead of manipulating the
4441 register bytes directly.
4442 Assign VALUE_CONTENTS to a variable and use that.
4443 The GPR numbers are now dependent on the architecture.
4444
4445 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4446
4447 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4448 ev_offset fields.
4449 (skip_prologue): Add support for BookE/e500 instructions.
4450 (e500_extract_return_value): New function.
4451 (frame_get_saved_regs): Add support for saving ev registers and
4452 pseudo gpr's.
4453 (e500_store_return_value): New function.
4454 (rs6000_gdbarch_init): Move up default intializations of
4455 deprecated_extract_return_value and store_return_value. Overwrite
4456 init of store_return_value with e500 specific version.
4457 Set extract_return_value for e500.
4458
4459 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4460
4461 * blockframe.c (generic_call_dummy_register_unwind): Use
4462 regcache_cooked_read to catch cases in which the variable is
4463 stored in a pseudo register.
4464
4465 2002-08-22 Andrew Cagney <cagney@redhat.com>
4466
4467 * NEWS: Mention that the i960 has been made obsolete.
4468 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4469 i960-tdep.c
4470 (remote-nrom.o): Obsolete target.
4471 (remote-nindy.o, i960-tdep.o): Ditto.
4472 * remote-nrom.c: Make file obsolete.
4473 * remote-nindy.c, remote-vx960.c: Ditto.
4474 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4475 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4476 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4477 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4478 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4479 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4480 i960-*-vxworks* obsolete.
4481 * MAINTAINERS: Note that the i960 is obsolete.
4482
4483 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4484
4485 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4486 detach to allow reinitialization.
4487
4488 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4489
4490 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4491 attempt).
4492
4493 2002-08-22 Jim Blandy <jimb@redhat.com>
4494
4495 * coffread.c (coff_symfile_read): Don't try to read the line
4496 number table from disk if the image file doesn't have a symbol
4497 table; we'll never actually look at the info anyway, and Windows
4498 ships DLL's with bogus file offsets for the line number data.
4499
4500 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4501
4502 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4503 an e500 executable.
4504
4505 2002-08-21 Michael Snyder <msnyder@redhat.com>
4506
4507 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4508 (MSYMBOL_SIZE): Replace macro with function.
4509 (DEFAULT_MIPS_TYPE): Delete unused macro.
4510 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4511 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4512
4513 2002-08-21 Jim Blandy <jimb@redhat.com>
4514
4515 * valops.c (value_cast): Simplify and correct logic for doing a
4516 static cast from a pointer to a base class to a pointer to a
4517 derived class.
4518
4519 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4520
4521 * infcmd.c (default_print_registers_info): Replace
4522 do_registers_info.
4523 (registers_info): Use gdbarch_print_registers_info instead of
4524 DO_REGISTERS_INFO.
4525 * inferior.h (default_print_registers_info): Replace
4526 do_registers_info.
4527 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4528 (DO_REGISTERS_INFO): Change to a predicate function.
4529 * gdbarch.h, gdbarch.c: Regenerate.
4530
4531 2002-08-21 Keith Seitz <keiths@redhat.com>
4532
4533 * gdb-events.sh: Add target-changed event.
4534 * gdb-events.c: Regenerated.
4535 * gdb-events.c: Regenerated.
4536 * valops.c (value_assign): Add target-changed event notification
4537 to inlval_register, lval_memory, and lval_reg_frame_relative.
4538
4539 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4540
4541 * NEWS: Add an entry regarding the improvement of the next/step
4542 operation on Alpha Tru64 multi-processor machines.
4543
4544 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4545
4546 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4547 directores.
4548 * Makefile.in: Update all _h macro definitions.
4549 * Makefile.in (install-gdbtk): Move to install section.
4550 (rdi-share/libangsd.a): Move to end of file.
4551
4552 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4553
4554 * frame.c (frame_register_unwind): When a register, set addrp to
4555 the register's byte.
4556
4557 2002-08-20 Michael Snyder <msnyder@redhat.com>
4558
4559 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4560 used locally, so move them from the target machine header to here.
4561 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4562 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4563 Make static.
4564 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4565
4566 2002-08-20 Andrew Cagney <cagney@redhat.com>
4567
4568 * NEWS: Mention that the Apollo line was made obsolete.
4569 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4570 m68*-hp-hpux* obsolete.
4571 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4572 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4573 * buildsym.c (make_blockvector): Make static.
4574 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4575 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4576 (ALLDEPFILES): Remove dstread.c.
4577 (dstread.o): Obsolete make rule.
4578 * dstread.c: Makefile obsolete.
4579 * dst.h: Ditto.
4580 * config/m68k/hp300hpux.mt: Ditto.
4581 * config/m68k/hp300hpux.mh: Ditto.
4582 * config/m68k/hp300bsd.mt: Ditto.
4583 * config/m68k/hp300bsd.mh: Ditto.
4584 * config/m68k/apollo68b.mt: Ditto.
4585 * config/m68k/apollo68v.mh: Ditto.
4586 * config/m68k/apollo68b.mh: Ditto.
4587
4588 2002-08-20 Michael Snyder <msnyder@redhat.com>
4589
4590 * mips-tdep.c (mips_in_return_stub): Make static.
4591 (mips_gdbarch_init): Set in_solib_return_trampoline.
4592 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4593
4594 2002-08-20 Michael Snyder <msnyder@redhat.com>
4595
4596 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4597 * gdbarch.c, gdbarch.h: Regenerate.
4598 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4599 Add.
4600 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4601
4602 2002-08-20 Michael Snyder <msnyder@redhat.com>
4603
4604 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4605 (mips_gdbarch_init): Set skip_trampoline_code,
4606 in_solib_call_trampoline.
4607 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4608 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4609
4610 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4611
4612 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4613
4614 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4615 vector type for ev registers.
4616 (e500_pseudo_register_read): New function.
4617 (e500_pseudo_register_write): New function.
4618 (e500_dwarf2_reg_to_regnum): New function.
4619 (PPC_UISA_NOFP_SPRS): New macro.
4620 (PPC_EV_REGS): New macro.
4621 (PPC_GPRS_PSEUDO_REGS): New macro.
4622 (registers_e500): New register set for e500.
4623 (variants): Add e500 variant.
4624 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4625 before setting architectural dependent variations. Initialize ev
4626 registers numbers. Add case for e500 architecture. Set the
4627 number of pseudo registers.
4628
4629 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4630
4631 * rs6000-tdep.c: Clean up comments.
4632
4633 2002-08-20 Andrew Cagney <cagney@redhat.com>
4634
4635 * h8300-tdep.c: Re-indent file.
4636
4637 2002-08-20 Jim Blandy <jimb@redhat.com>
4638
4639 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4640 default for this.
4641
4642 2002-08-20 Keith Seitz <keiths@redhat.com>
4643
4644 * breakpoints.c (watch_command_1): Use internal breakpoint
4645 when setting a watchpoint_scope breakpoint.
4646
4647 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4648
4649 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4650 (build_builtin_type_vec64i): Ditto.
4651 (build_builtin_type_vec128): Ditto.
4652 (build_builtin_type_vec128i): Ditto.
4653
4654 2002-08-19 Michael Snyder <msnyder@redhat.com>
4655
4656 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4657 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4658 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4659 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4660 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4661 CALL_DUMMY_ADDRESS): Delete.
4662 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4663 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4664 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4665 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4666 push_return_address.
4667 (mips_register_raw_size, mips_eabi_use_struct_convention,
4668 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4669 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4670 mips_init_extra_frame_info, mips_eabi_push_arguments,
4671 mips_n32n64_push_arguments, mips_push_return_address,
4672 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4673 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4674
4675 2002-08-19 Michael Snyder <msnyder@redhat.com>
4676
4677 * mips-tdep.c (mips_frame_num_args): New function.
4678 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4679 frame_saved_pc, frame_args_address, frame_locals_address,
4680 frame_num_args, and frame_args_skip.
4681 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4682 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4683 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4684 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4685
4686 2002-08-20 Michael Snyder <msnyder@redhat.com>
4687
4688 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4689 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4690 * mips-tdep.c (mips_store_struct_return): New function.
4691 (mips_extract_struct_value_address): New function.
4692 (mips_gdbarch_init): Set store_struct_return and
4693 extract_struct_value_address.
4694
4695 2002-08-20 David Carlton <carlton@math.stanford.edu>
4696
4697 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4698 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4699 (read_file_scope): Check that line_header is nonzero before
4700 decoding macro information.
4701
4702 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4703
4704 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4705 flag the general-purpose registers as floating-point on targets
4706 that don't support the floating-point registers.
4707
4708 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4709
4710 * rs6000-tdep.c (altivec_register_p): Delete.
4711 (rs6000_do_altivec_registers): Delete.
4712 (rs6000_altivec_registers_info): Delete.
4713 (rs6000_do_registers_info): Delete.
4714 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4715 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4716
4717 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4718
4719 * infcmd.c (do_registers_info): Print vector registers in hex
4720 format only.
4721 (print_vector_info): Check that printing registers
4722 makes sense.
4723 (print_float_info): Ditto.
4724
4725 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4726
4727 * mips-tdep.c (mips_gdbarch_init): Update.
4728 (mips_o32_extract_return_value): Rewrite.
4729 (mips_o32_store_return_value): Rewrite.
4730 (mips_o32_xfer_return_value): New function.
4731 (mips_xfer_register): Tweak debug print message. Allow for
4732 buf_offset when dumping the value transfered.
4733
4734 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4735
4736 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4737 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4738 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4739 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4740 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4741
4742 2002-08-14 Michael Snyder <msnyder@redhat.com>
4743
4744 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4745
4746 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4747
4748 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4749 register.
4750 (P): New macro to define a register as a pseudo register.
4751 (R, R4, R8, R16, FR32, R64, R0): Updated.
4752 (struct variant): Add new fields for number of pseudo registers
4753 and number of total registers.
4754 (tot_num_registers): New macro replacing....
4755 (num_registers): ...deleted macro.
4756 (num_registers): New function.
4757 (num_pseudo_registers): New function.
4758 (variants): Update all variants to intialize new fields correctly.
4759 Postpone initialization of number of pseudo regs and real regs.
4760 (init_variants): New function.
4761 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4762 registers offsets.
4763
4764 2002-08-19 David Carlton <carlton@math.stanford.edu>
4765
4766 * valops.c (search_struct_field): Change error message to treat
4767 return value of 0 from value_static_field as meaning that field is
4768 optimized out.
4769 (value_struct_elt_for_reference): Ditto.
4770 * values.c (value_static_field): Treat an unresolved location the
4771 same as a nonexistent symbol. Fix PR gdb/635.
4772 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4773 enclosed. Fix PR gdb/574.
4774 * MAINTAINERS: Add self to Write After Approval list.
4775
4776 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4777
4778 * mips-tdep.c (mips_xfer_register): New function.
4779 (mips_n32n64_extract_return_value): Rewrite.
4780 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4781 instead of deprecated_extract_return_value.
4782
4783 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4784
4785 * rs6000-tdep.c (TDEP): Delete macro.
4786 (branch_dest): Replace use of TDEP macro with its body.
4787 (rs6000_pop_frame): Ditto.
4788 (rs6000_push_arguments): Ditto.
4789 (rs6000_skip_trampoline_code): Ditto.
4790 (rs6000_frame_saved_pc): Ditto.
4791 (rs6000_frame_chain): Ditto.
4792 (rs6000_register_name): Ditto.
4793 (rs6000_register_byte): Ditto.
4794 (rs6000_register_raw_size): Ditto.
4795 (rs6000_register_virtual_type): Ditto.
4796 (rs6000_register_convertible): Ditto.
4797 (rs6000_convert_from_func_ptr_addr): Ditto.
4798
4799 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4800
4801 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4802 conditionally.
4803 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4804 MIPS_LINUX_JB_ELEMENT_SIZE.
4805 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4806 for MAX_REGISTER_RAW_SIZE arrays.
4807 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4808 MIPS_LINUX_JB_ELEMENT_SIZE.
4809
4810 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4811
4812 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4813
4814 2002-08-19 Aidan Skinner <aidan@velvet.net>
4815
4816 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4817 ada-valprint.c ada-tasks.c.
4818 (YYFILES): Add ada-exp.y.
4819 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4820 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4821 (ada-exp.tab.o): New target.
4822
4823 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4824
4825 * regcache.c (regcache_xfer_part): New function.
4826 (regcache_raw_read_part): New function.
4827 (regcache_raw_write_part): New function.
4828 (regcache_cooked_read_part): New function.
4829 (regcache_cooked_write_part): New function.
4830 * regcache.h (regcache_raw_read_part): Declare.
4831 (regcache_raw_write_part): Declare.
4832 (regcache_cooked_read_part): Declare.
4833 (regcache_cooked_write_part): Declare.
4834
4835 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4836
4837 * remote.c (remote_open_1): Add async_p.
4838 (remote_async_open_1): Delete.
4839 (open_remote_target): Delete.
4840 (remote_open, extended_remote_open): Update calls to remote_open_1.
4841 (remote_async_open, extended_remote_async_open): Call
4842 remote_open_1 instead of remote_async_open_1.
4843
4844 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4845
4846 * blockframe.c: Fix a few coding standard violations.
4847
4848 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4849
4850 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4851 here from ...
4852 * config/i386/tm-i386sco5.h: ... here. File removed.
4853 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4854
4855 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4856 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4857 (TM_FILE): Set to tm-i386.h.
4858 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4859 * config/i386/tm-i386v.h: Remove file.
4860 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4861 instead of "i386/tm-i386v.h".
4862 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4863 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4864 "i386/tm-i386v.h".
4865 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4866 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4867 "i386/tm-i386.h".
4868
4869 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4870
4871 * config/i386/nm-i386v.h: Add protection against
4872 multiple-inclusion.
4873 (i386_register_u_addr): Remove prototype.
4874 (register_u_addr): New prototype.
4875 (REGISTER_U_ADDR): Redefine accordingly.
4876 * i386v-nat.c: Improve several comments.
4877 (i386_register_u_addr): Change signature and rename to
4878 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4879 ubase variable.
4880
4881 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4882
4883 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4884 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4885 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4886 deprecated_extract_return_value.
4887 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4888 rename mips_o32o64_push_arguments.
4889 (mips_gdbarch_init): Update.
4890 (mips_extract_return_value): Delete.
4891 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4892 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4893 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4894 (mips_n32n64_extract_return_value): Clone
4895 mips_extract_return_value.
4896 (mips_store_return_value): Delete.
4897 (mips_o32_store_return_value): Clone mips_store_return_value.
4898 (mips_o64_store_return_value): Clone mips_store_return_value.
4899 (mips_eabi_store_return_value): Clone mips_store_return_value.
4900 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4901
4902 2002-08-18 Aidan Skinner <aidan@velvet.net>
4903
4904 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4905 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4906
4907 2002-08-18 Aidan Skinner <aidan@velvet.net>
4908
4909 * ada-lang.c: Run through gdb_indent.sh.
4910 * ada-lang.h: Run through gdb_indent.sh.
4911 * ada-tasks.c: Run through gdb_indent.sh.
4912 * ada-typeprint.c: Run through gdb_indent.sh.
4913 * ada-valprint.c: Run through gdb_indent.sh.
4914
4915 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4916
4917 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4918 ABI.
4919
4920 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4921
4922 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4923
4924 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4925 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4926
4927 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4928 write_register_gen instead of write_register_bytes.
4929
4930 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4931 i[3456]-*-osf1mk* configurations have been made obsolete.
4932 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4933 i[3456]86-*-osf1mk* hosts obsolete.
4934 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4935 targets obsolete.
4936 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4937 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4938 config/i386/i386m3.mt, config/i386/nm-m3.h,
4939 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4940 config/i386/i386mk.mh, config/i386/i386mk.mt,
4941 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4942 obsolete.
4943 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4944 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4945 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4946
4947 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4948
4949 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4950 (hppa_value_returned_from_stack): Declare.
4951 (hppa_extract_return_value): Declare.
4952 * config/pa/hppa.mt: New file.
4953 * configure.tgt: Recognize hppa*-*-*.
4954 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4955
4956 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4957
4958 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4959 comment.
4960
4961 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4962
4963 * top.c (gdb_rl_operate_and_get_next): Make sure
4964 operate-and-get-next functions correctly even when the history
4965 list is completely filled.
4966
4967 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4968
4969 * MAINTAINERS (Target Instruction Set Architectures): Rename
4970 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4971 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4972 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4973 already listed under Host/Native.
4974
4975 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4976 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4977 mips*-*-*.
4978
4979 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4980
4981 * config/ia64/ia64.mt: New file.
4982 * config/alpha/alpha.mt: New file.
4983 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4984 ia64-linux-gnu. Mention that ia64-elf is broken.
4985 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4986
4987 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4988
4989 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4990 generic_func_frame_valid instead of func_frame_valid.
4991
4992 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4993
4994 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4995 procfs appears to be broken when debugging on multi-processor
4996 machines. So enable software single stepping in order to avoid
4997 using the procfs interface to do next/step operations, using
4998 internal breakpoints instead.
4999
5000 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5001 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5002 make this pc address equal to the value it would have if the
5003 system stepping capability was used. Also set a new flag used
5004 to ensure that we don't readjust the PC one more time later.
5005
5006 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5007 address by DECR_PC_AFTER_BREAK when software single step is
5008 in use for this architecture, as this has already been taken
5009 care of in handle_inferior_event().
5010
5011 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5012
5013 * infrun.c (handle_inferior_event): Minor reformatting, to make
5014 a rather long condition expression easier to read.
5015
5016 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5017
5018 * Makefile.in (gdbtk.o): Move to end of file.
5019 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5020 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5021 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5022 (gdbtk-wrapper.o, gdbres.o): Ditto.
5023
5024 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5025
5026 * Makefile.in (copying.o): Separate out compile rule.
5027 (hpux-thread.o, procfs.o, signals.o): Ditto.
5028 (v850ice.o, z8k-tdep.o): Ditto.
5029 (tui-file.o): Move to TUI section.
5030 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5031 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5032
5033 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5034
5035 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5036 skip_trampoline_code, for better namespace-proofing.
5037
5038 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5039
5040 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5041
5042 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5043
5044 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5045
5046 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5047 signal, check whether we hit a breakpoint before checking for a
5048 single step breakpoint. Otherwise, GDB fails to notice that a
5049 breakpoint has been hit when stepping onto a breakpoint.
5050
5051 2002-08-16 Keith Seitz <keiths@redhat.com>
5052
5053 * gdb-events.sh (clear_gdb_event_hooks): New function.
5054 * gdb-events.c: Regenerate.
5055 * gdb-events.h: Regenerate.
5056
5057 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5058
5059 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5060 not_a_sw_breakpoint.
5061 * breakpoint.h (bpstat_stop_status): Add parameter names.
5062
5063 2002-08-16 Grace Sainsbury <graces@redhat.com>
5064
5065 * remote.c (remote_insert_hw_breakpoint)
5066 (remote_remove_hw_breakpoint): Fix calculation of length field
5067 for Z-packet.
5068
5069 2002-08-15 Michael Snyder <msnyder@redhat.com>
5070
5071 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5072 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5073 (supply_fpregset): Ditto.
5074
5075 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5076 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5077 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5078 (TARGET_READ_SP): Delete.
5079 (DO_REGISTERS_INFO): Delete.
5080 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5081 Delete.
5082 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5083 from macros to functions.
5084
5085 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5086 (mips_register_convertible, mips_register_convert_to_virtual,
5087 mips_register_convert_to_raw): Make static.
5088 (mips_read_sp): New function.
5089 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5090 (mips_do_registers_info): Make static.
5091 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5092 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5093 (mips_register_convert_from_type, mips_register_convert_to_type):
5094 New functions.
5095 (mips_gdbarch_init): Set up function_start_offset,
5096 register_virtual_size, pc_in_sigtramp.
5097
5098 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5099
5100 * infcmd.c (vector_info): New function.
5101 (_initialize_infcmd): Add command "info vector".
5102 (print_vector_info): New function.
5103
5104 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5105 * gdbarch.h, gdbarch.c: Regenerate.
5106
5107 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5108
5109 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5110 ``print_all''. Only print vector registers when ``print_all''.
5111
5112 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5113
5114 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5115 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5116
5117 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5118 Add `args' parameter.
5119 * gdbarch.h, gdbarch.c: Regenerate.
5120
5121 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5122
5123 * infcmd.c (float_info): Call print_float_info.
5124 (print_float_info): New function. By default, print the
5125 floating-point registers.
5126
5127 * arch-utils.h (default_print_float_info): Delete declaration.
5128 * arch-utils.c (default_print_float_info): Delete function.
5129
5130 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5131
5132 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5133 out define.
5134
5135 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5136 FRAME.
5137
5138 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5139 * configure.host: Make i[3456]86-*-aix host obsolete.
5140 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5141 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5142 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5143 config/i386/xm-i386aix.h: Make files obsolete.
5144 * i386aix-nat.c: Make file obsolete.
5145 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5146 (i386aix-nat.o): Make target obsolete.
5147
5148 * config/i386/nm-gnu.h: Removed.
5149 * config/i386/nm-i386gnu.h: New file.
5150 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5151 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5152 Moved here from ...
5153 * config/i386/tm-i386gnu.h: ... here. Removed.
5154 * config/i386/xm-i386gnu.h: Removed.
5155 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5156 (NAT_FILE): Set to nm-i386gnu.h.
5157 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5158 * i386-tdep.c: New file.
5159 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5160 (i386gnu-tdep.o): Specify dependencies.
5161
5162 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5163
5164 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5165 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5166 Adjust a few comments to reflect reality a bit closer.
5167 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5168 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5169 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5170 target_insert_watchpoint, target_remove_watchpoint):
5171 Move defines to ...
5172 * config/i386/nm-i386sco5.h: ... here.
5173 (kernel_u_size): Add prototype. Improve a few comments and add
5174 protection against multiple inclusion.
5175
5176 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5177 out define.
5178
5179 * uw-thread.c (SP_ARG0): Define if not already defined.
5180 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5181
5182 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5183
5184 * config/i386/tm-i386.h: Don't include "regcache.h".
5185
5186 * i387-tdep.h (i387_print_float_info): New prototype.
5187 * i387-tdep.c (print_i387_value, print_i387_ext,
5188 print_i387_status_word, print_i387_control_word): Add `struct
5189 ui_file *' argument and use it for output.
5190 (i387_print_float_info): Renamed from i387_float_info. Add
5191 `struct gdbarch *' and `struct ui_file *' arguments and use the
5192 latter for output.
5193 * i386-tdep.c: Include "i387-tdep.h".
5194 (i386_gdbarch_init): Set print_float_info.
5195 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5196 (FLOAT_INFO): Remove define.
5197
5198 2002-08-13 Michael Snyder <msnyder@redhat.com>
5199
5200 * mips-tdep.c (mips_push_arguments): Rename to
5201 mips_eabi_push_arguments, and tune for EABI.
5202 (MIPS_REGS_HAVE_HOME_P): Delete.
5203 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5204 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5205 Delete references to mips_regs_have_home_p.
5206
5207 2002-08-14 Keith Seitz <keiths@redhat.com>
5208
5209 * Makefile.in (install-gdbtk): Create insight plugin directory.
5210 Install plugins.tcl file.
5211
5212 2002-08-14 Keith Seitz <keiths@redhat.com>
5213
5214 * configure.in: Move SUBDIRS to near top of the file so that
5215 --enable options may add things to it.
5216 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5217 * configure: Regenerate.
5218
5219 2002-08-13 Michael Snyder <msnyder@redhat.com>
5220
5221 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5222 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5223 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5224
5225 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5226
5227 * vax-tdep.c (vax_get_saved_register): Delete function.
5228 (vax_gdbarch_init): Update.
5229 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5230 (ns32k_gdbarch_init): Update.
5231 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5232 (alpha_gdbarch_init): Update.
5233
5234 2002-08-13 Andrew Cagney <cagney@redhat.com>
5235
5236 * regcache.c (init_regcache_descr): Overallocate the
5237 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5238 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5239 nr_raw_registers.
5240 (set_register_cached): Add range checking assertions. Use
5241 current_regcache.
5242
5243 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5244
5245 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5246 numbers for MMX registers.
5247
5248 2002-08-13 Andrew Cagney <cagney@redhat.com>
5249
5250 * i386-tdep.c (i386_gdbarch_init): Use
5251 generic_unwind_get_saved_register.
5252
5253 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5254
5255 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5256 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5257 target vector.
5258 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5259 Delete. Add comment regarding this now-deleted target method.
5260
5261 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5262
5263 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5264 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5265 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5266 real PC and the page number (if it's within the memory bank window).
5267 (m68hc11_pseudo_register_write): Likewise when saving.
5268 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5269 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5270 (m68hc11_register_raw_size): And use 32-bit for it.
5271 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5272 16K memory bank is used by the prog; also use the virtual pc.
5273
5274 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5275
5276 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5277 (m68hc11_gdbarch_init): Install it in gdbarch.
5278 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5279 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5280 (MSYMBOL_SIZE): New for documentation.
5281 (insn_return_kind): Enum to specify how a function returns.
5282 (frame_extra_info): Cleanup and record the return mode.
5283 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5284 register in address computation.
5285 (m68hc11_get_return_insn): New to obtain the return instruction used
5286 by the function.
5287 (m68hc11_frame_init_saved_regs): Take into account the return
5288 instruction used by the function for far and interrupt functions.
5289 (m68hc11_init_extra_frame_info): Take into account page register.
5290 (m68hc11_frame_args_address): Adjust according to the return mode.
5291 (show_regs): Print page register only when it's used.
5292
5293 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5294
5295 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5296 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5297 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5298 registers.
5299 (m68hc11_register_raw_size): Likewise.
5300
5301 2002-08-13 Andrew Cagney <cagney@redhat.com>
5302
5303 * i386-tdep.c (i386_register_name): Handle mmx registers.
5304 (mmx_regnum_p): New function.
5305 (i386_mmx_names): New array.
5306 (mmx_num_regs): New variable.
5307 (i386_pseudo_register_read): New function.
5308 (i386_pseudo_register_write): New function.
5309 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5310
5311 * regcache.c (regcache_raw_read_unsigned): New function.
5312 (regcache_raw_read_signed): New function.
5313 * regcache.h (regcache_raw_read_unsigned): Declare.
5314 (regcache_raw_read_signed): Declare.
5315
5316 2002-08-13 Andrew Cagney <cagney@redhat.com>
5317
5318 * regcache.c (regcache_raw_read_as_address): Delete function.
5319 (regcache_cooked_read_signed): New function.
5320 (regcache_cooked_read_unsigned): New function.
5321 * regcache.h (regcache_cooked_read_signed): Declare.
5322 (regcache_cooked_read_unsigned): Declare.
5323 (regcache_raw_read_as_address): Delete declaration.
5324
5325 * blockframe.c (generic_read_register_dummy): Use
5326 regcache_cooked_read_unsigned.
5327 * i386-tdep.c (i386_extract_struct_value_address): Use
5328 regcache_cooked_read_unsigned.
5329
5330 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5331
5332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5333 double sizes according to ELF ABI flags.
5334 (gdbarch_tdep): Record elf_flags.
5335
5336 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5337
5338 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5339 (m6812_prolog): They can appear in 68HC12 function prologue.
5340 (m68hc11_frame_chain): Cleanup.
5341
5342 2002-08-12 Andrew Cagney <cagney@redhat.com>
5343
5344 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5345 declarations.
5346 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5347 (i386_linux_register_raw_size): Delete function.
5348 (i386_linux_init_abi): Update.
5349 * i386-tdep.c (i386_register_raw_size): Delete function.
5350 (i386_register_byte): Delete function.
5351 (i386_gdbarch_init): Update.
5352 (i386_register_size): Delete array.
5353 (i386_register_offset): Delete array.
5354
5355 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5356 (REGISTER_RAW_SIZE): Delete macro.
5357 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5358 (REGISTER_BYTE): Delete macro.
5359
5360 2002-08-11 Aidan Skinner <aidan@velvet.net>
5361
5362 * ada-lang.c (ada_lookup_partial_symbol)
5363 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5364 prototype names so that grep ^func works properly.
5365
5366 * ada-lang.c (ada_array_element_type)
5367 (ada_lookup_partial_symbol): Fix typos in parameter list.
5368
5369 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5370 Fix prototype names so that grep ^func works properly.
5371
5372 2002-08-10 Andrew Cagney <cagney@redhat.com>
5373 Elena Zannoni <ezannoni@redhat.com>
5374 Martin M. Hunt <hunt@redhat.com>
5375
5376 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5377 (build_builtin_type_vec128i): Set the vector bit.
5378 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5379 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5380 (build_builtin_type_vec64): New function.
5381 (build_builtin_type_vec64i): New function.
5382 (build_gdbtypes): Initialize builtin_type_vec64 and
5383 builtin_type_vec64i.
5384
5385 2002-08-09 Andrew Cagney <cagney@redhat.com>
5386
5387 * regcache.c (regcache_dump): Compare the register offset
5388 with REGISTER_BYTE.
5389 * arch-utils.c (generic_register_byte): New function.
5390 * arch-utils.h (generic_register_byte): Declare.
5391 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5392 * gdbarch.h, gdbarch.c: Regenerate.
5393
5394 2002-08-09 Andrew Cagney <cagney@redhat.com>
5395
5396 * regcache.c: Include "gdbcmd.h"
5397 (_initialize_regcache): Add commands "maintenance print
5398 registers", "maintenance print raw-registers" and "maintenance
5399 print cooked-registers".
5400 (enum regcache_dump_what): Define.
5401 (dump_endian_bytes): New function.
5402 (regcache_dump): New function.
5403 (regcache_print): New function.
5404 (maintenance_print_registers): New function.
5405 (maintenance_print_raw_registers): New function.
5406 (maintenance_print_cooked_registers): New function.
5407 * Makefile.in (regcache.o): Update dependencies.
5408
5409 2002-08-09 Michael Snyder <msnyder@redhat.com>
5410
5411 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5412 (mips_push_arguments): Correct some comments. Use paddr_nz
5413 for printing addresses in debug output. Replace static
5414 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5415 (mips_n32n64_push_arguments): New function, cloned from
5416 mips_push_arguments and tuned for the n32/n64 ABI.
5417 (mips_push_register): Buffer needs dynamic allocation.
5418 (mips_print_register): Ditto.
5419 (do_gp_register_row): Ditto.
5420 (mips_store_return_value): Ditto.
5421 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5422
5423 2002-08-09 Don Howard <dhoward@redhat.com>
5424
5425 * memattr.c (mem_info_command): Print special case of upper bound
5426 as max CORE_ADDR + 1.
5427
5428 2002-08-08 Michael Snyder <msnyder@redhat.com>
5429
5430 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5431 returns structs by ref if they're too big to fit in two registers.
5432
5433 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5434
5435 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5436 saved regs value.
5437 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5438 mips_find_saved_regs().
5439 (mips_pop_frame): Likewise.
5440
5441 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5442
5443 * blockframe.c (frame_saved_regs_register_unwind): Revise
5444 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5445 frames are in use.
5446
5447 2002-08-09 Grace Sainsbury <graces@redhat.com>
5448
5449 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5450 T-packets; the 'a' is not taken as a register number.
5451 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5452 (remote_stopped_data_address): New functions; add to target
5453 vector.
5454 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5455 prototypes to match other implementations of this
5456 function. replace integer argument with pointer -- the length
5457 field in the Z-packet is the length of what is pointed to or 1 if
5458 pointer is null. Add to target vector.
5459 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5460 target vector.
5461
5462 From Mark Salter:
5463 * remote.c (remote_wait): Add support to extract optional
5464 watchpoint information from T-packet. Ignore unrecognized
5465 optional info in T-packet.
5466 (remote_async_wait): Ditto.
5467
5468 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5469
5470 * cli/cli-dump.c: Change fopen modes to use binary open modes
5471 as defined in include/fopen-bin.h throughout.
5472
5473 2002-08-08 Michael Snyder <msnyder@redhat.com>
5474
5475 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5476
5477 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5478
5479 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5480 assertion failure by returning early after a warning.
5481
5482 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5483
5484 * mips-tdep.c (mips_find_saved_regs): Make static.
5485 (mips_frame_init_saved_regs): New function.
5486 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5487 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5488 (mips_find_saved_regs): Delete declaration.
5489
5490 2002-08-08 Grace Sainsbury <graces@redhat.com>
5491
5492 * remote.c (remote_wait, remote_async_wait): Change
5493 thread_num from int to ULONGEST.
5494 (unpack_varlen_hex): Change result parameter from
5495 int * to ULONGEST *.
5496
5497 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5498
5499 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5500 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5501 powerpc*-*-*.
5502 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5503
5504 2002-08-08 Andrew Cagney <cagney@redhat.com>
5505
5506 * gcore.c (override_derive_stack_segment): Delete variable.
5507 (preempt_derive_stack_segment): Delete function.
5508 (derive_stack_segment): Delete function.
5509 (default_derive_stack_segment): Renamed to derive_stack_segment.
5510 (override_derive_heap_segment): Delete variable.
5511 (preempt_derive_heap_segment): Delete function.
5512 (derive_heap_segment): Delete function.
5513 (default_derive_heap_segment): Rename to derive_heap_segment.
5514
5515 2002-08-06 Michael Snyder <msnyder@redhat.com>
5516
5517 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5518 * mips-tdep.c (mips_EABI_use_struct_convention,
5519 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5520 New functions. (mips_use_struct_convention): Delete.
5521 (mips_gdbarch_init): set use_gdbarch_convention.
5522
5523 2002-08-06 Michael Snyder <msnyder@redhat.com>
5524
5525 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5526 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5527 mips_o32_reg_struct_has_addr): New functions.
5528 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5529
5530 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5531
5532 * regcache.c (pseudo_register): Delete function.
5533 (fetch_register): Delete function.
5534 (store_register): Delete function.
5535 (regcache_raw_read, legacy_read_register_gen): Use
5536 target_fetch_registers instead of fetch_register.
5537 (legacy_write_register_gen, regcache_raw_write): Use
5538 target_store_register instead of store_register.
5539 (write_register_bytes): Ditto.
5540
5541 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5542 (STORE_PSEUDO_REGISTER): Delete.
5543 * gdbarch.h, gdbarch.c: Regenerate.
5544
5545 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5546
5547 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5548 write dump file binary.
5549
5550 2002-08-05 Michael Snyder <msnyder@redhat.com>
5551
5552 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5553 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5554 (mips_gdbarch_init): Set N32 target to be mips64.
5555
5556 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5557
5558 * frame.c (find_saved_register): Break out of loop once saved
5559 register address is found. Don't mention sparc in loop comment
5560 anymore.
5561
5562 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5563
5564 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5565 mips_default_saved_regsize to 8.
5566
5567 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5568
5569 * gcore.c: Do not include <sys/procfs.h>.
5570 * Makefile.in (gcore.o): Update dependencies.
5571
5572 2002-08-06 Andrew Cagney <cagney@redhat.com>
5573
5574 * configure.tgt: Make arc-*-* obsolete.
5575 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5576 * MAINTAINERS: Make arc-elf obsolete.
5577 * arc-tdep.c: Make file obsolete.
5578 * config/arc/arc.mt: Ditto.
5579 * config/arc/tm-arc.h: Ditto.
5580
5581 2002-08-05 Theodore A. Roth <troth@verinet.com>
5582
5583 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5584
5585 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5586
5587 * mcore-tdep.c (mcore_gdbarch_init): Use
5588 generic_unwind_get_saved_register instead of
5589 generic_get_saved_register.
5590 * v850-tdep.c (v850_gdbarch_init): Ditto.
5591 * frv-tdep.c (frv_gdbarch_init): Ditto.
5592 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5593 * s390-tdep.c (s390_gdbarch_init): Ditto.
5594 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5595 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5596 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5597
5598 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5599
5600 * objfiles.h: Add missing #include "symfile.h"
5601
5602 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5603
5604 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5605
5606 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5607 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5608 of FIELD_BITSIZE.
5609
5610 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5611
5612 * NEWS: Cleanup and nitpick.
5613
5614 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5615
5616 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5617
5618 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5619
5620 * Makefile.in (gdbtk-bp.o): Update dependencies.
5621 (gdbtk-register.o): Ditto.
5622 (gdbtk-varobj.o): Ditto.
5623
5624 2002-08-03 Andrew Cagney <cagney@redhat.com>
5625
5626 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5627 m68hc11_fetch_pseudo_register.
5628 (m68hc11_pseudo_register_write): Replace
5629 m68hc11_store_pseudo_register.
5630 (m68hc11_gdbarch_init): Update.
5631
5632 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5633
5634 * gdbarch.sh: Include "gdb_string.h".
5635 * gdbarch.c: Regenerate.
5636
5637 * regcache.c: Include "gdb_string.h".
5638 * ax-general.c: Ditto.
5639 * varobj.c: Ditto.
5640 * std-regs.c: Ditto.
5641 * fbsd-proc.c: Ditto.
5642 * thread.c: Ditto.
5643
5644 * Makefile.in (regcache.o): Update dependencies.
5645 (thread.o, gdbarch.o): Ditto.
5646 (ax-general.o, gdbarch.o): Ditto.
5647 (varobj.o, std-regs.o): Ditto.
5648 (fbsd-proc.o): Specify dependencies.
5649
5650 2002-08-02 Andrew Cagney <cagney@redhat.com>
5651
5652 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5653 regnum.
5654 (regcache_cooked_write): Ditto.
5655
5656 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5657
5658 * regcache.c (regcache_cooked_read): New function.
5659 (regcache_cooked_write): New function.
5660 (read_register_gen): Rewrite using regcache_cooked_read.
5661 (write_register_gen): Rewrite using regcache_cooked_write.
5662
5663 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5664 Declare.
5665
5666 2002-08-02 Andrew Cagney <cagney@redhat.com>
5667
5668 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5669 Replace the architecture methods register_read and register_write.
5670 * gdbarch.h, gdbarch.c: Regenerate.
5671 * regcache.c (init_regcache_descr): Update.
5672 (read_register_gen): Update.
5673 (write_register_gen): Update.
5674 (supply_register): Update comment.
5675
5676 * sh-tdep.c (sh_gdbarch_init): Update.
5677 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5678 `regcache' and `gdbarch' parameters. Make `buffer' a void
5679 pointer. Update code.
5680 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5681 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5682 void pointer. Update code.
5683 (sh64_register_write): Delete.
5684 (sh4_register_read): Delete.
5685 (sh64_register_read): Delete.
5686 (sh4_register_write): Delete.
5687 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5688 void pointer, `to' parameter a void pointer.
5689 (sh_sh64_register_convert_to_raw): Ditto.
5690
5691 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5692
5693 * mips-tdep.c (mips_register_virtual_type): Use architecture
5694 invariant return values.
5695
5696 2002-08-01 Andrew Cagney <cagney@redhat.com>
5697
5698 * linux-proc.c: Include "gdb_string.h".
5699 * Makefile.in (linux-proc.o): Update dependency list.
5700
5701 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5702
5703 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5704 comment.
5705
5706 2002-08-01 Grace Sainsbury <graces@redhat.com>
5707
5708 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5709 to_insert_watchpoint, to_remove_watchpoint,
5710 to_stopped_by_watchpoint, to_stopped_data_address,
5711 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5712 target vecctor. Define their corresponding macros so they call
5713 them.
5714
5715 * target.c: Add default and debug versions of for
5716 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5717 to_insert_watchpoint, to_remove_watchpoint,
5718 to_stopped_by_watchpoint, to_stopped_data_address,
5719 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5720
5721 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5722
5723 * mips-tdep.c (mips_register_virtual_type): New function.
5724 (mips_gdbarch_init): Register mips_register_virtual_type()
5725 with gdbarch machinery.
5726 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5727 this file instead of tm-bigmips.h.
5728 (MIPS_REGSIZE): Delete this macro.
5729 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5730 multiarch version in mips-tdep.c will be found.
5731
5732 2002-08-01 Andrew Cagney <cagney@redhat.com>
5733
5734 * NEWS: Menion that CHILL has been made obsolete.
5735
5736 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5737 * stabsread.c (read_range_type): Ditto.
5738 * gdbtypes.h: Ditto.
5739 * language.c (binop_type_check): Ditto.
5740 (binop_result_type): Ditto.
5741 (integral_type): Ditto.
5742 (character_type): Ditto.
5743 (string_type): Ditto.
5744 (boolean_type): Ditto.
5745 (structured_type): Ditto.
5746 (lang_bool_type): Ditto.
5747 (binop_type_check): Ditto.
5748 * language.h (_LANG_chill): Ditto.
5749 * dwarfread.c (set_cu_language): Ditto.
5750 * dwarfread.c (CHILL_PRODUCER): Ditto.
5751 * dwarfread.c (handle_producer): Ditto.
5752 * expression.h (enum exp_opcode): Ditto.
5753 * eval.c: Ditto for comments.
5754 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5755 * expprint.c (print_subexp): Ditto.
5756 (print_subexp): Ditto.
5757 * valops.c (value_cast): Ditto.
5758 (search_struct_field): Ditto.
5759 * value.h (COERCE_VARYING_ARRAY): Ditto.
5760 * symfile.c (init_filename_language_table): Ditto.
5761 (add_psymbol_with_dem_name_to_list): Ditto.
5762 * valarith.c (value_binop): Ditto.
5763 (value_neg): Ditto.
5764 * valops.c (value_slice): Ditto.
5765 * symtab.h (union language_specific): Ditto.
5766 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5767 (SYMBOL_DEMANGLED_NAME): Ditto.
5768 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5769 * defs.h (enum language): Ditto.
5770 * symtab.c (got_symtab): Ditto.
5771 * utils.c (fprintf_symbol_filtered): Ditto.
5772
5773 * ch-typeprint.c: Make file obsolete.
5774 * ch-valprint.c: Make file obsolete.
5775 * ch-lang.h: Make file obsolete.
5776 * ch-exp.c: Make file obsolete.
5777 * ch-lang.c: Make file obsolete.
5778
5779 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5780 CHILL_LIB.
5781 (TARGET_FLAGS_TO_PASS): Ditto.
5782 (CHILLFLAGS): Obsolete.
5783 (CHILL): Obsolete.
5784 (CHILL_FOR_TARGET): Obsolete.
5785 (CHILL_LIB): Obsolete.
5786 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5787 ch-valprint.c.
5788 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5789 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5790 ch-lang.o.
5791 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5792 targets.
5793
5794 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5795
5796 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5797 This does not change anything at the moment, but will be helpful
5798 later when full Ada support is integrated.
5799
5800 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5801
5802 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5803 help message.
5804
5805 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5806
5807 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5808 and save it in a local variable. Use variable in later test.
5809
5810 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5811
5812 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5813 test. (Thanks to Daniel Jacobowitz.)
5814
5815 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5816
5817 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5818 (mips_abi_strings): Add "n64".
5819 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5820
5821 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5822
5823 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5824 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5825
5826 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5827
5828 * utils.c (host_pointer_to_address, address_to_host_pointer):
5829 Use gdb_assert() instead of explicit call to internal_error().
5830
5831 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5832
5833 * Makefile.in (rs6000-nat.o): Update dependencies.
5834
5835 From Nicholas Duffek:
5836 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5837 (aix-thread.o): New rule.
5838 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5839 * config/powerpc/aix432.mh: New file.
5840
5841 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5842
5843 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5844 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5845 (fetch_core_registers, ppc_linux_supply_gregset)
5846 (ppc_linux_supply_fpregset): New functions.
5847 (ppc_linux_regset_core_fns): New.
5848 (_initialize_ppc_linux_tdep): Call add_core_fns.
5849 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5850 and ppc_linux_supply_gregset.
5851 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5852 (supply_fpregset): Call ppc_linux_supply_fpregset.
5853 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5854 corelow.o.
5855 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5856
5857 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5858
5859 * symtab.c (lookup_symbol): Demangle before lowercasing.
5860
5861 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5862
5863 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5864 declaration.
5865 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5866 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5867 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5868 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5869 "gdb_string.h".
5870 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5871 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5872 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5873 (avr-tdep.o, mon960-rom.o): Ditto.
5874 (aout_stabs_gnu_h): Define.
5875 (symtab_h): Remove $(gdb_obstack_h).
5876
5877 2002-07-30 Jim Blandy <jimb@redhat.com>
5878
5879 Patch from David Carlton <carlton@math.stanford.edu>:
5880 * gdbinit.in: Move the `dir' commands that add GDB's own source
5881 directory to the search path to the end, so that the `gdb' source
5882 directory will be searched first.
5883
5884 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5885
5886 * gdb_obstack.h: New file.
5887 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5888 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5889 * objfiles.h: Include "gdb_obstack.h".
5890 * Makefile.in (gdb_obstack_h): Define.
5891 (symtab_h): Add $(gdb_obstack_h).
5892 (objfiles_h): Add $(gdb_obstack_h).
5893
5894 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5895 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5896 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5897 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5898 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5899 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5900 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5901 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5902
5903 * Makefile.in (bcache.o): Update dependencies.
5904 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5905 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5906 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5907 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5908 (stabsread.o, symfile.o, symmisc.o): Ditto.
5909 (symtab.o, typeprint.o, macroexp.o): Ditto.
5910 (macrotab.o, mdebugread.o): Ditto.
5911 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5912 (coff_ecoff_h, aout_aout64_h): Define.
5913 (aout_stabs_gnu_h, libaout_h): Define.
5914
5915 2002-07-29 Andrew Cagney <cagney@redhat.com>
5916
5917 * regcache.c (struct regcache_descr): Rename nr_registers to
5918 nr_cooked_registers. Revise comments describing the structure
5919 member fields.
5920 (init_regcache_descr): Update.
5921 (init_legacy_regcache_descr): Update.
5922 (read_register_gen, write_register_gen): When a cooked register in
5923 the raw register range, directly access the value from the raw
5924 register cache.
5925
5926 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5927
5928 * z8k-tdep.c: Do not include "obstack.h".
5929 * h8300-tdep.c, h8500-tdep.c: Ditto.
5930 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5931 * valprint.c, v850-tdep.c: Ditto.
5932 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5933 * mn10200-tdep.c: Ditto.
5934
5935 * Makefile.in (z8k-tdep.o): Update dependencies.
5936 (m68hc11-tdep.o, valprint.o): Ditto.
5937 (v850-tdep.o, d10v-tdep.o): Ditto.
5938 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5939 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5940 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5941 (sh_opc_h, gdb_sim_sh_h): Define.
5942 (elf_sh_h, elf_bfd_h): Define.
5943 (opcode_m68hc11_h): Define.
5944 (OPCODES_SRC, OPCODES_DIR): define.
5945 (OPCODES): Use $(OPCODES_DIR).
5946 (gdb_sim_d10v_h): Rename sim_d10v_h.
5947 (gdb_sim_arm_h): Rename sim_arm_h.
5948
5949 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5950
5951 * utils.c (host_pointer_to_address, address_to_host_pointer):
5952 Change internal_error() message to indicate function responsible
5953 for the error.
5954
5955 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5956
5957 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5958 calls to local_hex_string_custom().
5959
5960 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5961
5962 * irix5-nat.c: Move IRIX shared library support from here...
5963 * solib-irix.c: ...to here. Revised substantially to work with
5964 generic solib framework.
5965
5966 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5967 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5968 * mips-irix-tdep.c: New file.
5969
5970 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5971 (mips-irix-tdep.o, solib-irix.o): New rules.
5972 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5973 solib-irix.o.
5974 * config/mips/irix6.mt (TDEPFILES): Likewise.
5975 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5976
5977 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5978
5979 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5980 disabled (via ``#if 0'') includes.
5981
5982 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5983
5984 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5985 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5986 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5987 Add support for the fpscr register.
5988 * rs6000-nat.c (regmap, fetch_inferior_registers)
5989 (store_inferior_registers, fetch_core_registers): Likewise.
5990
5991 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5992
5993 * rs6000-nat.c (language.h): Include.
5994 (special_regs): Delete this array.
5995 (regmap): New function.
5996 (fetch_register, store_register): Use regmap() to map gdb
5997 register numbers to ptrace register numbers. Also, use
5998 outputs from regmap() to make decisions regarding type of
5999 ptrace() call to make. In particular, don't compare against
6000 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6001 (fetch_inferior_registers, store_inferior_registers): Where
6002 possible, obtain register numbers from tdep struct. Don't
6003 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6004 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6005 (LAST_UISA_SP_REGNUM): Delete.
6006
6007 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6008
6009 * rs6000-nat.c (ppc-tdep.h): Include.
6010 (fetch_registers, store_register, fetch_core_registers): Don't
6011 access registers[] directly. Instead, use supply_register() or
6012 regcache_collect() as appropriate.
6013 (find_toc_address): Format hex address with local_hex_string().
6014
6015 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6016
6017 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6018 bfd/elf32-frv.c.
6019
6020 2002-07-24 Tom Tromey <tromey@redhat.com>
6021
6022 * jv-exp.y: Marked all strings with _().
6023 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6024 internal_error.
6025 (MethodInvocation, CastExpression, parse_number, yyerror,
6026 java_type_from_name, push_expression_name, yylex): Typo fixes.
6027
6028 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6029
6030 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6031 (tee_file_flush, tee_file_write, tee_file_fputs)
6032 (tee_file_isatty): New.
6033 * ui-file.h (tee_file_new): Add prototype.
6034
6035 2002-07-24 Aidan Skinner <aidan@velvet.net>
6036
6037 * ada-lang.c: Change k&r style function definitions to prototyped
6038 form.
6039 * ada-typeprint.c: Change k&r style function definitions to prototyped
6040 form.
6041 * ada-valprint.c: Change k&r style function definitions to prototyped
6042 form.
6043
6044 2002-07-24 Andrew Cagney <cagney@redhat.com>
6045
6046 * README: Remove reference to remote-bug.
6047 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6048 remote-bug.c.
6049 (m88k-nat.o): Delete rule.
6050 (m88k-tdep.o): Delete rule.
6051 (remote-bug.o): Delete rule.
6052 * MAINTAINERS: Mark as obsolete.
6053 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6054 * m88k-tdep.c: Make file obsolete.
6055 * config/m88k/m88k.mh: Ditto.
6056 * config/m88k/delta88v4.mh: Ditto.
6057 * config/m88k/delta88v4.mt: Ditto.
6058 * config/m88k/delta88.mt: Ditto.
6059 * config/m88k/delta88.mh: Ditto.
6060 * remote-bug.c: Ditto.
6061 * config/m88k/tm-delta88.h: Ditto.
6062 * config/m88k/nm-delta88v4.h: Ditto.
6063 * config/m88k/xm-delta88.h: Ditto.
6064 * config/m88k/xm-dgux.h: Ditto.
6065 * config/m88k/tm-m88k.h: Ditto.
6066 * config/m88k/nm-m88k.h: Ditto.
6067 * config/m88k/tm-delta88v4.h: Ditto.
6068 * m88k-nat.c: Ditto.
6069 * cxux-nat.c: Ditto.
6070 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6071 and m88*-*-* obsolete.
6072 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6073 m88*-*-* obsolete.
6074
6075 2002-07-24 Andrew Cagney <cagney@redhat.com>
6076
6077 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6078 constant. Same for local pointer variables.
6079 (extract_signed_integer): Ditto.
6080 * defs.h (extract_unsigned_integer): Update.
6081 (extract_signed_integer): Update.
6082
6083 2002-07-24 Andrew Cagney <cagney@redhat.com>
6084
6085 * regcache.c (regcache_raw_write): Change buf parameter to a
6086 constant void pointer.
6087 (regcache_raw_read): Change buf parameter to a void pointer.
6088 (legacy_write_register_gen): Change myaddr parameter a constant
6089 void pointer.
6090 (supply_register): Change val parameter to a const void pointer.
6091 * regcache.h (regcache_raw_write): Update declaration.
6092 (regcache_raw_read): Update declaration.
6093 (supply_register): Update declaration.
6094
6095 2002-07-24 Tom Tromey <tromey@redhat.com>
6096
6097 * defs.h (gdb_readline_wrapper): Declare.
6098 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6099 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6100 * top.c (gdb_readline_wrapper): New function.
6101 (command_line_input): Use it.
6102
6103 2002-07-24 Andrew Cagney <cagney@redhat.com>
6104
6105 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6106 regcache_read and regcache_write.
6107 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6108 * regcache.c: Update.
6109 * sh-tdep.c (sh64_push_arguments): Update comment.
6110 (sh_pseudo_register_read): Update.
6111 (sh_pseudo_register_write): Update.
6112 (sh4_register_read): Update.
6113 (sh4_register_write): Update.
6114 (sh64_pseudo_register_read): Update.
6115 (sh64_pseudo_register_write): Update.
6116 (sh64_register_read): Update.
6117 (sh64_register_write): Update.
6118 * i386-tdep.c (i386_extract_return_value): Update.
6119 (i386_extract_struct_value_address): Update.
6120 (i386_extract_return_value): Update.
6121 * blockframe.c (generic_read_register_dummy): Update.
6122 (generic_call_dummy_register_unwind): Update
6123 * infrun.c (write_inferior_status_register): Update.
6124
6125 2002-07-23 Jim Blandy <jimb@redhat.com>
6126
6127 * parser-defs.h (expression_context_pc): Make this extern.
6128 (Thanks to Michael Snyder.)
6129
6130 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6131
6132 GDB 5.2.1 released from 5.2 branch.
6133 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6134 * README: Update to mention 5.2.1.
6135
6136 2002-07-23 Mark Salter <msalter@redhat.com>
6137
6138 * remote.c (remote_read_bytes): Fix check for error.
6139
6140 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6141
6142 * aix-thread.c (language.h): Include.
6143 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6144 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6145 Print newlines at end of debug messages.
6146 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6147 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6148
6149 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6150
6151 * aix-thread.c (ppc-tdep.h): Include.
6152 (special_register_p): New function.
6153 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6154 (store_regs_user_thread): Use register number information from
6155 gdbarch_tdep struct instead of hardcoded offsets relative to
6156 FIRST_UISA_SP_REGNUM.
6157 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6158 special_register_p() instead of using FPLAST_REGNUM and
6159 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6160 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6161 will be MQ's register number.
6162
6163 2002-07-22 Michael Snyder <msnyder@redhat.com>
6164
6165 * aix-thread.c (ops): Rename to aix_thread_ops.
6166 (base_ops): Rename to base_target.
6167 (ops_attach): Rename to aix_thread_attach.
6168 (ops_detach): Rename to aix_thread_detach.
6169 (ops_resume): Rename to aix_thread_detach.
6170 (ops_wait): Rename to aix_thread_wait.
6171 (ops_kill): Rename to aix_thread_kill.
6172 (init_ops): Rename to init_aix_thread_ops.
6173 (ops_fetch_register): Rename to aix_thread_fetch_register.
6174 (ops_store_register): Rename to aix_thread_store_register.
6175 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6176 (ops_thread_alive): Rename to aix_thread_thread_alive.
6177 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6178 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6179 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6180 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6181 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6182 (store_regs_lib): Rename to store_regs_user_thread.
6183 (store_regs_kern): Rename to store_regs_kernel_thread.
6184
6185 2002-07-22 Michael Snyder <msnyder@redhat.com>
6186
6187 * aix-thread.c (ops_prepare_to_store): Eliminate.
6188 (init_ops): Don't initialize ops.prepare_to_store.
6189 (store_regs_kern): Pre-fetch register buffers from child,
6190 because some registers may not be in the cache. Copy
6191 regs from register cache only if they are cached.
6192 (store_regs_lib): Copy regs from register cache only
6193 if they are cached.
6194 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6195 fill_gprs64): Ditto.
6196
6197 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6198
6199 * aix-thread.c (gdb_assert.h): Include.
6200 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6201 register sizes (from register cache) match size of buffer holding
6202 register data.
6203 (fill_sprs32): Change parameter types to match those in the ptrace()
6204 buffer.
6205 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6206 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6207
6208 2002-07-22 Michael Snyder <msnyder@redhat.com>
6209
6210 * aix-thread.c (supply_sprs64): Cosmetic change.
6211 (supply_sprs32): Cosmetic change.
6212 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6213 (fill_sprs64): Use regcache_collect instead of read_register.
6214 (store_regs_lib): Use regcache_collect instead of
6215 read_register. Use fill_sprs32 instead of fill_sprs64,
6216 if debugging a 32-bit architecture.
6217 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6218 out of the register cache, instead of passing a pointer into
6219 the register cache directly to ptrace. Use regcache_collect
6220 insteaad of read_register.
6221 (ops_prepare_to_store): Use target_read_registers instead
6222 of read_register_bytes.
6223
6224 2002-07-20 Aidan Skinner <aidan@velvet.net>
6225
6226 * MAINTAINERS: Add self under write after approval.
6227
6228 2002-07-20 Aidan Skinner <aidan@velvet.net>
6229
6230 * ada-tasks.c: Change k&r style function definitions to prototyped
6231 form.
6232
6233 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6234
6235 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6236 * x86-64-tdep.c: Include "objfiles.h".
6237 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6238 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6239
6240 2002-07-17 Michal Ludvig <michal@suse.cz>
6241
6242 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6243 (update_context): Initialise cfa variable.
6244
6245 2002-07-17 Michael Snyder <msnyder@redhat.com>
6246
6247 * aix-thread.c: Shorten some long lines.
6248 Bring comments into line with code spec.
6249
6250 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6251
6252 * infrun.c: Re-indent using gdb_indent.sh.
6253
6254 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6255
6256 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6257 Leave the indentation temporarily untouched, to minimize the diffs.
6258
6259 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6260
6261 * stabsread.c: Make os9k sections of the code obsolete,
6262 for real this time.
6263 * stabsread.h: Make os9k sections of the code obsolete.
6264
6265 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6266
6267 * linux-low.c (regsets_store_inferior_registers): Add free()
6268 at the end of a loop to prevent memory leak.
6269 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6270 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6271 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6272 line a comment.
6273 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6274
6275 2002-07-17 Jim Blandy <jimb@redhat.com>
6276
6277 * macrocmd.c (info_macro_command): Remove newline from error
6278 message.
6279
6280 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6281
6282 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6283 (sh_gdbarch_init): Use it for sh-dsp.
6284
6285 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6286
6287 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6288 64-bit DWARF2 format.
6289
6290 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6291
6292 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6293 <sys/proc.h> when not available.
6294
6295 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6296
6297 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6298 * stabsread.c: Make os9k sections of the code obsolete.
6299 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6300 * config/i386/i386os9k.mt: Make file obsolete.
6301 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6302 (COMMON_OBS): Remove os9kread.o
6303 (SFILES): Remove os9kread.c.
6304 (os9kread.o, remote-os9k.o): Make target obsolete.
6305 * remote-os9k.c: Make file obsolete.
6306 * os9kread.c: Make file obsolete.
6307 * Makefile.in
6308
6309 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6310
6311 * NEWS: Mention that the FR30 has been made obsolete.
6312 * fr30-tdep.c: Make file obsolete.
6313 * config/fr30/tm-fr30.h: Ditto.
6314 * config/fr30/fr30.mt: Ditto.
6315 * configure.tgt: Make fr30-*-elf obsolete.
6316 * MAINTAINERS: Make fr30-elf obsolete.
6317
6318 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6319
6320 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6321 found is not inside a section.
6322
6323 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6324
6325 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6326 strerror().
6327 (pdc_realloc): Use xrealloc() instead of realloc().
6328
6329 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6330
6331 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6332 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6333 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6334 macros.
6335
6336 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6337
6338 * aix-thread.c (ptrace_check): Eliminate goto.
6339 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6340 problem.
6341
6342 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6343
6344 * aix-thread.c (gdbcmd.h): Include.
6345 (DEBUG, DBG, DBG2, dbg): Eliminate.
6346 (debug_aix_thread): New static global.
6347 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6348 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6349 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6350 invocations to DBG and DBG2 macros to test against
6351 ``debug_aix_thread'' and call fprintf_unfiltered().
6352 (_initialize_aix_thread): Add new command "set debug aix-thread".
6353
6354 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6355
6356 From Gerhard Tonn <TON@de.ibm.com>:
6357 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6358 instead of supply_register.
6359
6360 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6361
6362 * dwarf2cfi.c: Include "gdb_assert.h".
6363 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6364 non-NULL.
6365 (update_context): Do not use __func__. Add missing ``break''.
6366 (update_context): Do not use __func__.
6367
6368 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6369
6370 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6371 and its setting. Set gdbarch instruction printing functions
6372 directly. For non-rs6000 case use new function
6373 gdb_print_insn_powerpc.
6374 (gdb_print_insn_powerpc): New function.
6375
6376 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6377
6378 * NEWS: Mention that the d30v has been marked obsolete.
6379 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6380 * configure.tgt: Mark d30v-*-* as obsolete.
6381 * d30v-tdep.c: Mark file as obsolete.
6382 * config/d30v/d30v.mt: Ditto.
6383 * config/d30v/tm-d30v.h: Ditto.
6384
6385 2002-07-13 Aidan Skinner <aidan@velvet.net>
6386
6387 * ada-tasks.c (add_task_entry): replace calls to
6388 malloc() with xmalloc
6389 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6390
6391 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6392 ada_finish_decode_line_1, all_sals_for_line
6393 ada_breakpoint_rewrite): replace calls to free() with xfree()
6394
6395 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6396
6397 From Nicholas Duffek (with minor changes by Martin Hunt,
6398 Louis Hamilton, and Kevin Buettner):
6399 * aix-thread.c: New file.
6400
6401 2002-07-12 Petr Sorfa <petrs@caldera.com>
6402
6403 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6404 complaint for invalid attribute class or form.
6405 (read_func_scope): DW_AT_frame_base
6406 better handling of DW_AT_block*.
6407 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6408 better handling of DW_AT_block*.
6409 (read_common_block): DW_AT_location
6410 better handling of DW_AT_block*.
6411 (read_partial_die): DW_AT_location better handling
6412 of DW_AT_block*.
6413 (new_symbol): DW_AT_external better handling of
6414 DW_AT_block*. Proper initialization of variable
6415 "addr".
6416 (attr_form_is_block): New function that returns true
6417 if the attribute's form is of DW_FORM_block*.
6418
6419 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6420
6421 * valops.c (find_method_list): Remove comment about
6422 removed STATIC_MEMFUNCP argument.
6423 (value_find_oload_method_list): Likewise.
6424
6425 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6426
6427 From Nicholas Duffek:
6428 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6429 target_new_objfile_hook.
6430
6431 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6432
6433 From Nicholas Duffek:
6434 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6435 csect.
6436
6437 2002-07-12 Andrew Cagney <cagney@redhat.com>
6438
6439 * MAINTAINERS: Mention --enable-sim-build-warnings.
6440 (m68hc11-elf): Disable sim build warnings.
6441 (m32r-elf): Mark as broken obsolete candidate.
6442 (x86_64-linux-gnu): Mark as buildable with -Werror.
6443 (arm-elf): Change -w to ``,'' which enables warnings but not
6444 -Werror.
6445
6446 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6447
6448 * bcache.h: Update copyright.
6449 (struct bstring, struct bcache): Move definition to "bcache.c".
6450 Replaced by opaque declaration.
6451 (bcache_xfree): Replace free_bcache.
6452 (bcache_xmalloc, bcache_memory_used): Declare.
6453
6454 * bcache.c: Update copyright.
6455 (struct bstring, struct bcache): Moved to here from "bcache.h".
6456 Update comments.
6457 (bcache_xmalloc, bcache_memory_used): New functions.
6458 (bcache_xfree): Replace function free_bcache.
6459
6460 * Makefile.in (objfiles.o): Add $(bcache_h).
6461 (objfiles_h): Remove $(bcache_h).
6462 (symfile.o): Add $(bcache_h).
6463
6464 * symmisc.c: Update copyright.
6465 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6466 (print_objfile_statistics): Use bcache_memory_used.
6467
6468 * symfile.c: Include "bcache.h".
6469 (reread_symbols): Use bcache_xfree.
6470 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6471 (add_psymbol_to_list): Pass psymbol_cache by value.
6472 (add_psymbol_with_dem_name_to_list): Ditto.
6473
6474 * objfiles.h: Update copyright.
6475 (struct bcache): Declare opaque. Do not include "bcache.h".
6476 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6477 bcache'' pointers.
6478 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6479
6480 * objfiles.c: Include "bcache.h". Update copyright.
6481 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6482 macro_cache.
6483 (free_objfile): Use bcache_xfree.
6484
6485 2002-07-11 Grace Sainsbury <graces@redhat.com>
6486
6487 * monitor.c (monitor_fetch_register): Make name a constant.
6488 (monitor_store_register): Same.
6489
6490 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6491
6492 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6493 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6494 (finish_block) For non-function blocks, hash the symbol table. For
6495 function blocks, mark the symbol table as unhashed.
6496 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6497 (msymbol_hash_iw): Likewise.
6498 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6499 value.
6500 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6501 (lookup_minimal_symbol): Likewise for both.
6502 * symtab.h (struct block): Add `hashtable' flag. Comment the
6503 hashtable.
6504 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6505 (ALL_BLOCK_SYMBOLS): Update.
6506 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6507 (struct symbol): Add `hash_next' pointer.
6508 * symtab.c (lookup_block_symbol): Search using the hash table when
6509 possible.
6510 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6511 (search_symbols, find_addr_symbol): Likewise.
6512
6513 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6514 (read_dst_symtab): Likewise.
6515 * jv-lang.c (get_java_class_symtab): Likewise.
6516 * mdebugread.c: Include "gdb_assert.h".
6517 (shrink_block): Assert that the block being modified is not hashed.
6518 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6519 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6520 symbols.
6521 (dump_symtab): Recognize hashed blocks.
6522 * printcmd.c (print_frame_args): Assert that function blocks do not
6523 have hashed symbol tables.
6524 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6525 (fill_in_ada_prototype, debug_print_block): Likewise.
6526 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6527
6528 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6529
6530 * stack.c (print_frame): Use result of frame_address_in_block()
6531 instead of fi->pc when evaluating symbols.
6532 (backtrace_command_1): Ditto.
6533
6534 2002-07-11 Andrew Cagney <cagney@redhat.com>
6535
6536 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6537 Make static.
6538
6539 * arm-tdep.c (arm_register_name): Make return type constant.
6540
6541 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6542
6543 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6544 prototype.
6545 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6546 * s390-tdep.c (s390_fp_regnum): Ditto.
6547 (s390_read_fp): Ditto.
6548 (s390_pop_frame): Ditto.
6549 (_initialize_s390_tdep): Ditto.
6550 * remote.c (get_remote_state): Ditto.
6551 * procfs.c (mappingflags): Ditto.
6552 * memattr.c (_initialize_mem): Ditto.
6553 * mcore-tdep.c (mcore_pop_frame): Ditto.
6554 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6555 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6556 * language.c (set_case_str): Ditto.
6557 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6558 * frv-tdep.c (new_variant): Ditto.
6559 (frv_stopped_data_address): Ditto.
6560 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6561 (context_alloc): Ditto.
6562 (frame_state_alloc): Ditto.
6563 (unwind_tmp_obstack_init): Ditto.
6564 (unwind_tmp_obstack_free): Ditto.
6565 (cfi_read_fp): Ditto.
6566 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6567 (cris_pop_frame): Ditto.
6568 * c-lang.c (scanning_macro_expansion): Ditto.
6569 (finished_macro_expansion): Ditto.
6570 (c_preprocess_and_parse): Ditto.
6571 * gdbarch.sh: Ditto.
6572 * gdbarch.h, gdbarch.c: Regenerate.
6573 * config/mn10200/tm-mn10200.h: Adjust indentation.
6574 * target.c: Adjust indentation.
6575 * symtab.h: Adjust indentation.
6576 * stabsread.h: Adjust indentation.
6577 * remote-es.c: Adjust indentation.
6578 * os9kread.c: Adjust indentation.
6579
6580 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6581
6582 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6583 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6584
6585 2002-07-10 Grace Sainsbury <graces@redhat.com>
6586
6587 * NEWS: Mention m68k, mcore multi-arching.
6588 * MAINTAINERS: Change status of m68k, mcore to reflect
6589 multi-arching.
6590
6591 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6592
6593 * valops.c (find_overload_match): Free oload_syms.
6594
6595 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6596
6597 Define HAVE_SYS_PROC_H if sys/proc.h exists
6598 * configure.in: Add check for sys/proc.h
6599 * config.in: Regenerate.
6600 * configure: Regenerate.
6601
6602 2002-07-09 Grace Sainsbury <graces@redhat.com>
6603
6604 * config/m68k/tm-m68k.h: Remove macros wrapped in
6605 #if !GDB_MULTI_ARCH.
6606
6607 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6608
6609 * config.in, configure: Regenerate.
6610
6611 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6612
6613 * dwarf2cfi.c: Include "gcore.h".
6614 (execute_stack_op): Fix implementation of the
6615 DW_OP_deref and DW_OP_deref_size operators by letting do their
6616 lookup in the target.
6617
6618 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6619
6620 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6621 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6622 tdep->sc_sp_offset.
6623
6624 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6625
6626 Fix PR gdb/595, gdb/602
6627 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6628 Don't call value_cast, just read the vtable pointer; update comments
6629 to match.
6630
6631 2002-07-05 Grace Sainsbury <graces@redhat.com>
6632
6633 * config/mcore/tm-mcore.h: Remove file.
6634 * config/mcore/mcore.mt: Remove definition of TM_FILE
6635 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6636
6637 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6638
6639 * i386bsd-tdep.c: Include "gdb_string.h".
6640
6641 2002-07-04 Grace Sainsbury <graces@redhat.com>
6642
6643 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6644 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6645 mcore-tdep.
6646 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6647 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6648 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6649 (RETVAL_REGNUM): Move macros from tm-mcore.h
6650 (mcore_reg_struct_has_addr): New function.
6651 (mcore_gdbarch_init): Added initializations for the macros removed
6652 from tm-mcore.h.
6653
6654 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6655
6656 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6657 traditonal string branding within the ELF header.
6658
6659 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6660
6661 * symtab.c (remove_params): New function.
6662 (make_symbol_overload_list): Use it instead of cplus_demangle.
6663 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6664
6665 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6666
6667 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6668
6669 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6670 New variables.
6671 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6672 and tdep->sigtramp_end.
6673 * i386obsd-nat.c: New file.
6674 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6675
6676 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6677 Don't call get_current_frame().
6678
6679 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6680
6681 * i386-nat.c (child_post_startup_inferior): New function
6682 calling i386_cleanup_dregs if
6683 I386_USE_GENERIC_WATCHPOINTS is defined.
6684 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6685 conditional to acknowledge that i386-nat.c has its
6686 own child_post_startup_inferior function.
6687
6688 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6689
6690 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6691 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6692 instead of MAX_REGISTER_RAW_SIZE.
6693 (i386_extract_return_value, i386_extract_struct_value_address):
6694 Convert to use regcache.
6695 (i386_gdbarch_init): Set max_register_raw_size and
6696 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6697 Set extract_return_value and extract_struct_value_address instead
6698 of their deprecated variants.
6699
6700 Convert i386 target to generic dummy frames.
6701 * i386-tdep.c: Include "symfile.h".
6702 (i386_frameless_signal_p): Consider a function to be frameless if
6703 the pc points at the first instruction of the function.
6704 (i386_frame_chain): Handle (generic) call dummies.
6705 (i386_frame_saved_pc): Likewise.
6706 (i386_frame_init_saved_regs): Remove code dealing with call
6707 dummies on the stack.
6708 (i386_push_dummy_frame): Removed.
6709 (i386_call_dummy_words): Removed.
6710 (i386_fix_call_dummy): Removed.
6711 (i386_push_return_address): New function.
6712 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6713 parameter, and don't call get_current_frame.
6714 (i386_pop_frame): New function.
6715 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6716 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6717 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6718 call_dummy_length to 0, set call_dummy_words to NULL, set
6719 sizeof_call_dummy_words to 0, set fix_call_dummy to
6720 generic_fix_call_dummy, set pc_in_call_dummy to
6721 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6722 generic_push_dummy_frame, set push_return_address to
6723 i386_push_return_address and set frame_chain_valid to
6724 generic_file_frame_chain_valid.
6725
6726 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6727
6728 * gdbarch.sh (struct regcache): Add opaque declaration.
6729 (EXTRACT_RETURN_VALUE): New architecture method.
6730 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6731 * gdbarch.h, gdbarch.c: Regenerate.
6732 * arch-utils.c (legacy_extract_return_value): New function.
6733 * arch-utils.h (legacy_extract_return_value): Declare.
6734 * values.c (value_being_returned): Re-enable code handling
6735 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6736 deprecated_grub_regcache_for_registers call to block handling
6737 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6738 (EXTRACT_RETURN_VALUE): Do not define.
6739
6740 2002-07-03 Grace Sainsbury <graces@redhat.com>
6741
6742 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6743 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6744 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6745 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6746 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6747 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6748 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6749 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6750 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6751 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6752 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6753 argument so the function fits the prototype in the architecture
6754 vector.
6755 (mcore_pop_frame): Remove argument so the function fits the
6756 prototype. Use get_current_frame instead of the argument.
6757 (mcore_push_arguments): Change type of struct_return so the
6758 function can be used in the architecture vector.
6759 (mcore_store_struct_return): Add.
6760 (mcore_frame_init_saved_regs): Add.
6761 (mcore_gdbarch_init): Add function calls to replace the macros
6762 removed from tm-mcore.h
6763
6764 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6765
6766 * infcmd.c (print_return_value): Remove compatibility code calling
6767 deprecated_grub_regcache_for_registers.
6768
6769 * values.c: Include "regcache.h".
6770 (value_being_returned): Update. Use
6771 deprecated_grub_regcache_for_registers to extract the register
6772 buffer address.
6773 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6774 ``struct regcache''.
6775 * Makefile.in (values.o): Add dependency on $(regcache_h).
6776
6777 * inferior.h (run_stack_dummy): Change type of second parameter to
6778 a ``struct regcache''.
6779 * valops.c (hand_function_call): Change type of retbuf to ``struct
6780 regcache''. Allocate using regcache_xmalloc, clean using
6781 make_cleanup_regcache_xfree.
6782 * infcmd.c (run_stack_dummy): Update. Use
6783 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6784
6785 * regcache.c (do_regcache_xfree): New function.
6786 (make_cleanup_regcache_xfree): New function.
6787 * regcache.h (make_cleanup_regcache_xfree): Declare.
6788
6789 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6790
6791 * event-top.c (command_line_handler): Don't read past
6792 beginning of buffer.
6793
6794 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6795
6796 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6797 struct frame_id.
6798 (varobj_create): Store frame_id for root.
6799 (varobj_gen_name): Use xasprintf.
6800 (varobj_update): Save and restore frame using get_frame_id() and
6801 frame_find_by_id().
6802 (create_child): Use xasprintf.
6803 (new_root_variable): Initialize frame_id.
6804 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6805 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6806 to prevent memory leak.
6807
6808 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6809
6810 * valops.c (hand_function_call): Move declaration of retbuf to
6811 start of function, allocate using malloc, add a cleanup but before
6812 the inf_status cleanup, cleanup the buffer. Rename local variable
6813 old_chain to inf_status_cleanup.
6814
6815 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6816
6817 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6818
6819 * cli/cli-decode.c (cmd_func_p): New function.
6820 (cmd_func): New function.
6821
6822 * command.h: Add cmd_func() and cmd_func_p().
6823
6824 2002-07-03 Grace Sainsbury <graces@redhat.com>
6825
6826 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6827 (REGISTER_SIZE): Remove.
6828 (MAX_REGISTER_RAW_SIZE): Remove.
6829 (REGISTER_VIRTUAL_TYPE): Remove.
6830 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6831 (REGISTER_NAME): Remove.
6832 (USE_GENERIC_DUMMY_FRAMES): Remove.
6833 (CALL_DUMMY): Remove.
6834 (CALL_DUMMY_START_OFFSET): Remove.
6835 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6836 (CALL_DUMMY_LOCATION): Remove.
6837 (FIX_CALL_DUMMY): Remove.
6838 (CALL_DUMMY_ADDRESS): Remove.
6839 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6840 (SAVE_DUMMY_FRAME_TOS): Remove.
6841 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6842 (mcore_register_virtual_type): New function.
6843 (mcore_register_byte): New function.
6844 (mcore_register_size): New function.
6845 (mcore_register_name): New function.
6846 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6847 macros removed from tm-mcore.h.
6848 (mcore_dump_tdep): Add.
6849 (_initialize_mcore_tdep): Add gdbarch_register call.
6850
6851 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6852
6853 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6854 frameless_look_for_prologue, such that we actually call this
6855 function.
6856
6857 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6858
6859 * frame.h (frame_address_in_block): New function.
6860
6861 * blockframe.c (frame_address_in_block): New function extracted
6862 from get_frame_block().
6863 (get_frame_block): Use frame_address_in_block().
6864 (block_innermost_frame): Use frame_address_in_block() to match
6865 the frame pc address against the block boundaries rather than
6866 the frame pc directly. This prevents a failure when a frame pc
6867 is actually a return-address pointing immediately after the end
6868 of the given block.
6869
6870 2002-07-02 Grace Sainsbury <graces@redhat.com>
6871
6872 * MAINTAINERS: Add self under write after approval.
6873
6874 2002-07-02 Grace Sainsbury <graces@redhat.com>
6875
6876 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6877 used in architecture vector. The default is
6878 m68k_local_breakpoint_from_pc.
6879 (m68k_local_breakpoint_from_pc): Add.
6880 (enum): Add register numbers from tm-m68k.h.
6881 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6882 vector.
6883 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6884 GDB_MULTI_ARCH_PARTIAL.
6885 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6886 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6887 m68k-tdep.c.
6888 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6889 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6890 to enum in m68k-tdep.c
6891
6892 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6893
6894 * solib-osf.c (open_map): Compute the list of shared libraries
6895 loaded by the inferior, rather than the list of libraries loaded
6896 by GDB itself. Otherwise, GDB ends up reading the symbols from
6897 the wrong shared libraries...
6898
6899 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6900
6901 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6902 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6903 macros.
6904 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6905 Remove functions.
6906 (FRAMELESS_SIGNAL): Remove function.
6907 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6908 i386_linux_saved_pc_after_call): Removed.
6909 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6910 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6911 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6912
6913 * i386-tdep.c (i386_frameless_signal_p): New function.
6914 (i386_frame_chain): Deal with frameless signals.
6915 (i386_sigtramp_saved_sp): New function.
6916 (i386_frame_saved_pc): Deal with frameless signals.
6917 (i386_saved_pc_after_call): Make sure the correct value is
6918 returned just after entry into a sigtramp.
6919 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6920 i386fbsd4_sc_sp_offset): New variables.
6921 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6922 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6923 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6924 similiar to what we already did for sc_pc_offset.
6925 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6926 tdep->sc_sp_offset.
6927
6928 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6929
6930 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6931
6932 * config/i386/tm-x86-64linux.h: New.
6933 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6934 definitions.
6935 * config/i386/nm-x86-64.h: Rename to ...
6936 * config/i386/nm-x86-64linux.h: ... this one.
6937 * config/i386/x86-64linux.mh: Reflect the above change.
6938
6939 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6940
6941 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6942 with sigcontext_addr. Add sc_sp_offset.
6943 (i386bsd_sigtramp_saved_pc): Remove prototype.
6944 (i386bsd_sicontext_addr): Add prototype.
6945 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6946 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6947 (i386_svr4_sigtramp_saved_pc): Removed.
6948 (i386_svr4_sigcontext_addr): New function.
6949 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6950 Initialize tdep->sigcontext_addr instead. Initialize
6951 tdep->sc_pc_offset and tdep->sc_sp_offset.
6952 (i386_gdbarch_init): Likewise.
6953 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6954 any more.
6955 (i386bsd_sigtramp_saved_pc): Remove function.
6956 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6957 Initialize tdep->sigcontext_addr instead. Initialize
6958 tdep->sc_pc_offset.
6959 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6960 of tdep->sigtramp_saved_pc.
6961 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6962 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6963 instead.
6964
6965 * i386-tdep.c (i386_frameless_function_invocation,
6966 i386_frame_num_args, i386_frame_init_saved_regs,
6967 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6968 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6969 i386_extract_return_value, i386_store_return_value,
6970 i386_extract_struct_value_address, i386_register_virtual_type,
6971 i386_register_convertible, i386_register_convert_to_virtual,
6972 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6973 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6974 static.
6975
6976 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6977
6978 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6979
6980 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6981 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6982 this macro. Include "value.h".
6983
6984 2002-06-30 Aidan Skinner <aidan@velvet.net>
6985
6986 * ada-exp.tab.c: remove as it's a generated file
6987 * ada-lex.c: remove as it's a generated file
6988
6989 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6990
6991 * config/i386/tm-i386.h (struct frame_info, struct
6992 frame_saved_regs, struct value, struct type): Remove forward
6993 declarations.
6994
6995 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6996 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6997 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6998 (FILL_FPXREGSET): Define.
6999
7000 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7001
7002 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7003 i[3456]86-*-netbsd* case.
7004 * config/i386/tm-obsd.h: Removed.
7005 * config/i386/obsd.mt: Removed.
7006 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7007 core-aout.o.
7008 (MH_CFLAGS): Add -DYYDEBUG=0.
7009
7010 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7011 i386nbsd_sc_pc_offset on OpenBSD too.
7012
7013 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7014 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7015 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7016 define.
7017 * i386bsd-tdep.c: Include "arch-utils.h".
7018 (i386bsd_aout_in_solib_call_trampoline): New function.
7019 (i386bsd_init_abi): Set in_solib_call_trampoline to
7020 i386bsd_aout_in_solib_call_trampoline.
7021 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7022 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7023
7024 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7025
7026 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7027 (struct obstack, struct bcache): Add opaque declarations.
7028 * Makefile.in (macrotab_h): Update
7029
7030 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7031
7032 * blockframe.c (generic_find_dummy_frame): Change return type to
7033 ``struct regcache''.
7034 (struct dummy_frame): Replace field ``registers'' with regcache, a
7035 struct regcache object.
7036 (generic_find_dummy_frame): Update.
7037 (generic_push_dummy_frame): Update. Use regcache_xfree,
7038 regcache_xmalloc and regcache_cpy.
7039 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7040 regcache_xfree.
7041 (deprecated_generic_find_dummy_frame): Update.
7042 (generic_read_register_dummy): Update. Use
7043 regcache_read_as_address.
7044 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7045 (generic_get_saved_register): Update. Use regcache_read.
7046
7047 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7048
7049 * Makefile.in (objfiles_h): Add $(bcache_h).
7050 * objfiles.h: Include "bcache.h".
7051
7052 * Makefile.in (symtab_h): Remove $(bcache_h).
7053 * symtab.h: Do not include "bcache.h".
7054
7055 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7056
7057 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7058 generic_func_frame_chain_valid.
7059
7060 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7061
7062 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7063 * config/i386/tm-fbsd.h: Likewise.
7064
7065 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7066
7067 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7068 generic_unwind_get_saved_register.
7069
7070 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7071
7072 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7073 * regcache.c (supply_register): Add missing argument to
7074 register_buffer call.
7075
7076 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7077
7078 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7079 Solaris /bin/grep does not not like it. From Peter Schauer.
7080
7081 2002-06-26 Tom Tromey <tromey@redhat.com>
7082
7083 * command.h (add_setshow_cmd): Declare.
7084 (add_setshow_cmd_full): Declare.
7085 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7086 returns void. Use add_setshow_cmd_full.
7087 (add_setshow_cmd_full): New function.
7088 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7089 (add_setshow_boolean_cmd): Likewise.
7090
7091 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7092
7093 * config/vax/tm-vax.h: Protect from multiple inclusion.
7094 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7095 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7096 * config/vax/tm-vaxbsd.h: ...here. New file.
7097 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7098
7099 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7100
7101 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7102 (BELIEVE_PCC_PROMOTION): Remove.
7103 (AP_REGNUM): Move to...
7104 * config/vax/nm-vax.h: ...here.
7105 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7106 (vax_breakpoint_from_pc): New function.
7107 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7108 and gdbarch_believe_pcc_promotion.
7109
7110 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7111
7112 * Makefile.in (vax_tdep_h): Define.
7113 (vax-tdep.o): Use $(vax_tdep_h).
7114 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7115 (vax_dump_tdep): New function.
7116 (_initialize_vax_tdep): Register vax_dump_tdep.
7117 * vax-tdep.h: Include osabi.h.
7118 (struct gdbarch_tdep): New.
7119
7120 2002-06-26 Andrew Cagney <cagney@redhat.com>
7121
7122 * frame.h (deprecated_generic_find_dummy_frame): Rename
7123 generic_find_dummy_frame.
7124 * blockframe.c (generic_find_dummy_frame): Make static.
7125 (deprecated_generic_find_dummy_frame): New function.
7126 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7127 generic_find_dummy_frame with deprecated_find_dummy_frame.
7128 (sh64_nofp_frame_init_saved_regs): Ditto.
7129 (sh_fp_frame_init_saved_regs): Ditto.
7130 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7131 (s390_frame_chain): Ditto.
7132 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7133
7134 2002-06-26 Grace Sainsbury <graces@redhat.com>
7135
7136 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7137 gdbarch vector are at the top.
7138 (NUM_REGS): Remove.
7139 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7140 (FRAME_ARGS_ADDRESS): Remove.
7141 (FRAME_LOCALS_ADDRESS): Remove.
7142 (FRAME_NUM_ARGS): Remove.
7143 (FRAME_ARGS_SKIP): Remove.
7144 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7145 (m68k_gdbarch_init): Add gdbarch initializations for macros
7146 undefined in tm-m68k.h
7147
7148 2002-06-26 Grace Sainsbury <graces@redhat.com>
7149
7150 * monitor.h: Add the function regname to monitor_ops
7151 structure. This way NUM_REGS does not have to be a constant.
7152 * monitor.c (monitor_fetch_register): Added support for regname
7153 function. The function is called if the array regnames is NULL.
7154 (monitor_store_register): Same.
7155 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7156 regnames array.
7157 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7158 cpu32bug_cmds.regname to point to new function.
7159 * abug-rom.c (abug_regname): Same as above.
7160 (init_abug_cmds): Same.
7161 * dbug-rom.c (dbug_regname): Same as above.
7162 (init_dbug_cmds): Same.
7163 * remote-est.c (est_regname): Same.
7164 (init_est_cmds): Same.
7165 * rom68k-rom.c (rom68k_regname): Same.
7166 (init_rom68k_cmds): Same.
7167
7168 2002-06-25 Tom Tromey <tromey@redhat.com>
7169
7170 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7171
7172 2002-06-25 Andrew Cagney <cagney@redhat.com>
7173
7174 * infrun.c (stop_registers): Change variable's type to ``struct
7175 regcache'''.
7176 (xmalloc_inferior_status): Delete function.
7177 (free_inferior_status): Delete function.
7178 (normal_stop): Use regcache_cpy.
7179 (struct inferior_status): Change type of fields ``stop_registers''
7180 and ``registers'' to ``struct regcache''.
7181 (write_inferior_status_register): Use regcache_write.
7182 (save_inferior_status): Instead of calling
7183 xmalloc_inferior_status, allocate the inf_status buffer directly.
7184 Use regcache_dup_no_passthrough and regcache_dup to save the
7185 buffers.
7186 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7187 Replace the stop_registers regcache instead of overriding it. Use
7188 regcache_xfree. Instead of calling free_inferior_status, xfree
7189 the buffer directly.
7190 (discard_inferior_status): Use regcache_xfree. Instead of calling
7191 free_inferior_status, xfree the buffer directly.
7192 (build_infrun): Use regcache_xmalloc.
7193 (_initialize_infrun): Delete redundant call to build_infrun.
7194
7195 * Makefile.in (infcmd.o): Add $(regcache_h).
7196
7197 * infcmd.c: Include "regcache.h".
7198 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7199 obtain the address of `stop_registers' register buffer.
7200 (print_return_value): Ditto.
7201
7202 * inferior.h (struct regcache): Add opaque declaration.
7203 (stop_registers): Change variable's declared type to ``struct
7204 regcache''.
7205
7206 2002-06-24 Tom Tromey <tromey@redhat.com>
7207
7208 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7209 * target.c (initialize_targets): Fixed typo in
7210 trust-readonly-sections `show' documentation.
7211
7212 * main.c: Marked all strings with _().
7213
7214 2002-06-24 Don Howard <dhoward@redhat.com>
7215
7216 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7217 that means max CORE_ADDR+1.
7218 (lookup_mem_region): Ditto.
7219 (mem_info_command): Ditto.
7220
7221 2002-06-24 Grace Sainsbury <graces@redhat.com>
7222
7223 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7224 (REGISTER_BYTES_OK): Remove.
7225 (REGISTER_BYTES): Remove.
7226 (STORE_STRUCT_RETURN): Remove.
7227 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7228 (STORE_RETURN_VALUE): Remove.
7229 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7230 (FRAME_CHAIN): Remove.
7231 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7232 (FRAME_SAVED_PC): Remove.
7233 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7234 (m68k_store_struct_return): Add.
7235 (m68k_deprecated_extract_return_value): Add.
7236 (m68k_deprecated_extract_struct_value_address): Add.
7237 (m68k_store_return_value): Add.
7238 (m68k_frame_chain): Add.
7239 (m68k_frameless_function_invocation): Add.
7240 (m68k_frame_saved_pc): Add.
7241 (m68k_gdbarch_init): added set_gdbarch calls for new
7242 functions and deleted macros.
7243
7244 2002-06-23 Tom Tromey <tromey@redhat.com>
7245
7246 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7247 (ALLDEPFILES): Likewise.
7248 (udiheaders): Removed.
7249 (udip2soc.o): Likewise.
7250 (udi2go32.o): Likewise.
7251 (udr.o): Likewise.
7252 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7253
7254 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7255
7256 * infrun.c (_initialize_infrun): Delete unnecessary call to
7257 build_infrun.
7258
7259 * regcache.h: Update comments describing the regcache_cpy family
7260 of functions.
7261 (regcache_save, regcache_restore): Delete declaration.
7262 (regcache_save_no_passthrough): Delete declaration.
7263 (regcache_restore_no_passthrough): Delete declaration.
7264 * regcache.c (regcache_save): Delete function.
7265 (regcache_save_no_passthrough): Delete function.
7266 (regcache_restore): Delete function.
7267 (regcache_restore_no_passthrough): Delete function.
7268
7269 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7270
7271 * config/m68k/tm-m68k.h: Fix typo.
7272 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7273 (m68k_frame_init_saved_regs): Declare.
7274
7275 2002-06-21 Jim Blandy <jimb@redhat.com>
7276
7277 Remove some vestiges of Harris 88k support.
7278 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7279 register numbering quirk.
7280 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7281 odd symbols occurring in Harris 88k ELF targets.
7282
7283 2002-06-21 Tom Tromey <tromey@redhat.com>
7284
7285 * gdb_locale.h: New file.
7286 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7287 (defs_h): Added gdb_locale.h.
7288 * configure, config.in: Rebuilt.
7289 * configure.in (PACKAGE): Define.
7290 * defs.h: Include gdb_locale.h.
7291 * main.c (captured_main): Call setlocale, bindtextdomain,
7292 textdomain.
7293
7294 2002-06-21 Dave Brolley <brolley@redhat.com>
7295
7296 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7297 * config/frv/frv.mt: New file.
7298 * config/frv/tm-frv.h: New file.
7299 * configure.tgt: Support frv-*-*.
7300 * Makefile.in (frv-tdep.o): New target.
7301 * frv-tdep.c: New file.
7302 * NEWS: Mention frv.
7303
7304 2002-06-21 Dave Brolley <brolley@redhat.com>
7305
7306 * MAINTAINERS: Add self to "Write After Approval" list.
7307
7308 2002-06-21 Grace Sainsbury <graces@redhat.com>
7309
7310 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7311 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7312 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7313 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7314 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7315
7316 * m68k-tdep.c: Include arch-utils.h
7317 (m68k_register_raw_size): Add.
7318 (m68k_register_virtual_size): Add.
7319 (m68k_register_virtual_type): Add.
7320 (m68k_register_name): Add.
7321 (m68k_stack_align): Add.
7322 (m68k_register_byte): Add.
7323 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7324 tm-m68k.h.
7325
7326 2002-06-21 Grace Sainsbury <graces@redhat.com>
7327
7328 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7329 m68k_find_saved_regs.
7330 (m68k_pop_frame): Removed saved_regs structure, and replaced
7331 references to it with frame->saved_regs.
7332 (m68k_gdbarch_init): Added function calls to initialize the
7333 gdbarch structure.
7334 (m68k_fix_call_dummy): Add.
7335 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7336 (CALL_DUMMY): Remove.
7337 (CALL_DUMMY_LENGTH): Remove.
7338 (CALL_DUMMY_START_OFFSET): Remove.
7339 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7340 (FIX_CALL_DUMMY): Remove.
7341 (PUSH_DUMMY_FRAME): Remove.
7342 (POP_FRAME): Remove.
7343
7344 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7345
7346 * parse.c (parse_fprintf): New function used to avoid calls to
7347 fprintf in bison parser generated debug code.
7348 * parser-defs.h: Declaration of new parse_fprintf function.
7349 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7350 Set YYDEBUG to 1 by default.
7351 Set YYFPRINTF as parse_fprintf.
7352
7353 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7354
7355 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7356 encoding anymore.
7357 (pointer_encoding, enum ptr_encoding): New.
7358 (execute_cfa_program): Take care about pointer encoding.
7359 (dwarf2_build_frame_info): Only call parse_frame_info for
7360 .debug_frame and .eh_frame.
7361 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7362 fixed augmentation handling, added relative addressing,
7363 ignore duplicate FDEs. Added comments.
7364 * dwarf2cfi.c: Reindented.
7365
7366 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7367
7368 * event-top.c (command_handler): Don't use space_at_cmd_start
7369 unless there is sbrk() on the host. Assign time and space data
7370 to union fields of the appropriate length.
7371
7372 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7373
7374 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7375 x86_64_register_name. Return type changed to 'const char *'.
7376 (x86_64_register_name2nr): Rename to x86_64_register_number.
7377 (x86_64_gdbarch_init): Update to reflect the change.
7378 * x86-64-tdep.h: Ditto.
7379 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7380 (supply_fpregset): Ditto.
7381
7382 2002-06-19 Andrew Cagney <cagney@redhat.com>
7383
7384 * regcache.h: Update copyright.
7385 (struct regcache, struct gdbarch): Add opaque declarations.
7386 (current_regcache): Declare global variable.
7387 (regcache_read, regcache_write): Add gdbarch parameter.
7388 (regcache_save, regcache_save_no_passthrough)
7389 (regcache_restore, regcache_restore_no_passthrough)
7390 (regcache_dup, regcache_dup_no_passthrough)
7391 (regcache_cpy, regcache_cpy_no_passthrough)
7392 (deprecated_grub_regcache_for_registers)
7393 (deprecated_grub_regcache_for_register_valid)
7394 (regcache_valid_p): Add function declarations.
7395
7396 * regcache.c: Update copyright.
7397 (regcache_descr_handle): New global variable.
7398 (struct regcache_descr): Define.
7399 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7400 (regcache_descr, xfree_regcache_descr): New functions.
7401 (struct regcache): Define.
7402 (regcache_xmalloc, regcache_xfree): New functions.
7403 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7404 (regcache_dup, regcache_dup_no_passthrough): New functions.
7405 (regcache_valid_p, regcache_read_as_address): New functions.
7406 (deprecated_grub_regcache_for_registers): New function.
7407 (deprecated_grub_regcache_for_register_valid): New function.
7408 (current_regcache): New global variable.
7409 (register_buffer): Add regcache parameter. Update calls.
7410 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7411 (read_register_gen, write_register_gen): Update register_buffer
7412 call. Test for legacy_p instead of gdbarch_register_read_p or
7413 gdbarch_register_write_p.
7414 (regcache_collect): Update register_buffer call.
7415 (build_regcache): Rewrite. Use deprecated grub functions.
7416 (regcache_save, regcache_save_no_passthrough): New functions.
7417 (regcache_restore, regcache_restore_no_passthrough): New
7418 functions.
7419 (_initialize_regcache): Create the regcache_data_handle. Swap
7420 current_regcache global variable.
7421
7422 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7423 parameter to regcache_read and regcache_write calls.
7424 (sh4_register_read): Ditto.
7425 (sh64_pseudo_register_read): Ditto.
7426 (sh64_register_read): Ditto.
7427 (sh_pseudo_register_write): Ditto.
7428 (sh4_register_write): Ditto.
7429 (sh64_pseudo_register_write): Ditto.
7430 (sh64_register_write): Ditto.
7431
7432 * defs.h (XCALLOC): Define.
7433
7434 2002-06-19 Grace Sainsbury <graces@redhat.com>
7435
7436 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7437 * m68k-tdep.c (m68k_gdbarch_init): Added.
7438 (m68k_dump_tdep): Added.
7439
7440 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7441
7442 * ada-lang.c (fill_in_ada_prototype): Update comment.
7443
7444 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7445
7446 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7447 MIPS_ABI_LAST.
7448 (mips_abi_string, mips_abi_strings): New.
7449 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7450 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7451 tdep->mips_abi_string. Honor mips_abi_string. Default to
7452 O32 if no ABI is found.
7453 (mips_dump_tdep): Use mips_abi_strings.
7454 (mips_abi_update): New function.
7455 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7456 ``set mips abi'' and ``show mips abi''. Check the size of
7457 mips_abi_strings.
7458
7459 2002-06-19 Andrew Cagney <cagney@redhat.com>
7460
7461 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7462 constant.
7463
7464 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7465
7466 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7467 current frame using only the first stack size adjustment. All
7468 subsequent size adjustments are not considered to be part of
7469 the "static" part of the current frame.
7470 Compute the address of the saved registers relative to the
7471 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7472 in use in this frame.
7473
7474 2002-06-18 Don Howard <dhoward@redhat.com>
7475
7476 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7477 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7478 suggesting this solution.
7479
7480 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7481
7482 * config/romp/xm-rtbsd.h: Delete file.
7483 * config/romp/rtbsd.mh: Delete file.
7484
7485 2002-06-18 Keith Seitz <keiths@redhat.com>
7486
7487 * breakpoint.c (condition_command): Post breakpoint_modify
7488 when a condition is added to an existing breakpoint.
7489 (commands_command): Likewise for commands.
7490 (set_ignore_count): Likewise for ignore counts.
7491 If no tty, do not simply return, still need to send event
7492 notification.
7493 (ignore_command): Only print a newline if the command came
7494 from a tty.
7495 Don't call breakpoints_changed, since this is now properly
7496 handled by set_ignore_count.
7497
7498 2002-06-18 Andrew Cagney <cagney@redhat.com>
7499
7500 * MAINTAINERS: Note that cris-elf target can be compiled with
7501 -Werror.
7502 * cris-tdep.c (cris_register_name): Make return type constant.
7503 (cris_breakpoint_from_pc): Ditto.
7504
7505 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7506
7507 * frame.h (struct frame_info): Change type of context to
7508 'struct context'.
7509
7510 2002-06-17 Andrew Cagney <cagney@redhat.com>
7511
7512 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7513 pointer.
7514 * gdbarch.h, gdbarch.c: Regenerate.
7515 * config/mips/tm-mips.h (mips_register_name): Update.
7516 * i386-tdep.h (i386_register_name): Update.
7517 * mips-tdep.c (mips_register_name): Update
7518 * alpha-tdep.c (alpha_register_name): Update.
7519 * arch-utils.c (legacy_register_name): Update.
7520 * arch-utils.h (legacy_register_name): Update.
7521 * avr-tdep.c (avr_register_name): Update.
7522 * ia64-tdep.c (ia64_register_name): Update.
7523 * i386-tdep.c (i386_register_name): Update.
7524 * sparc-tdep.c (sparc32_register_name): Update.
7525 (sparc64_register_name): Update.
7526 (sparclite_register_name): Update.
7527 (sparclet_register_name): Update.
7528 * sh-tdep.c (sh_generic_register_name): Update.
7529 (sh_sh_register_name): Update.
7530 (sh_sh3_register_name): Update.
7531 (sh_sh3e_register_name): Update.
7532 (sh_sh_dsp_register_name): Update.
7533 (sh_sh3_dsp_register_name): Update.
7534 (sh_sh4_register_name): Update.
7535 (sh_sh64_register_name): Update.
7536 * s390-tdep.c (s390_register_name): Update.
7537 * rs6000-tdep.c (rs6000_register_name): Update.
7538 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7539 (ns32k_register_name_32382): Update.
7540 * d10v-tdep.c (d10v_ts2_register_name): Update.
7541 (d10v_ts3_register_name): Update.
7542 * xstormy16-tdep.c (xstormy16_register_name): Update.
7543 * vax-tdep.c (vax_register_name): Update.
7544 * v850-tdep.c (v850_register_name): Update.
7545 * m68hc11-tdep.c (m68hc11_register_name): Update.
7546 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7547 (am33_register_name): Update.
7548
7549 2002-06-17 Grace Sainsbury <graces@redhat.com>
7550
7551 * m68k-tdep.c: Reindented.
7552
7553 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7554
7555 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7556 list of predefined types.
7557
7558 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7559
7560 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7561 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7562 REGISTER_CONVERT_TO_RAW): Remove defines.
7563 (i386_register_virtual_type, i386_register_convertible,
7564 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7565 Remove prototypes.
7566 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7567 macros mentioned above.
7568
7569 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7570 (i386lynx_saved_pc_after_call): Remove prototype.
7571 * i386ly-tdep.c: Include "i386-tdep.h".
7572 (i386lynx_saved_pc_after_call): Make static. Use
7573 read_memory_nobpt instead of read_memory. Use
7574 read_memory_unsigned_integer instead of read_memory_integer.
7575 (i386lynx_init_abi): New function.
7576 (i386lynx_coff_osabi_sniffer): New function.
7577 (_initialize_i386bsd_tdep): New function.
7578
7579 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7580 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7581 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7582 (i386_fix_call_dummy): Remove prototype.
7583 * i386-tdep.c (i386_call_dummy_words): New variable.
7584 (i386_gdbarch_init): Adjust for removal of the
7585 macros mentioned above.
7586
7587 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7588
7589 * command.h (add_setshow_auto_boolean_cmd): Replace
7590 add_set_auto_boolean_cmd.
7591 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7592 add_set_auto_boolean_cmd.
7593 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7594 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7595 mask-address'' command.
7596 (show_mask_address): Add cmd parameter.
7597 * remote.c (add_packet_config_cmd): Update. Change type of
7598 set_func and show_func to cmd_sfunc_ftype.
7599 (_initialize_remote): Update `set remote Z-packet'
7600 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7601 (show_remote_protocol_e_packet_cmd): Ditto.
7602 (show_remote_protocol_E_packet_cmd): Ditto.
7603 (show_remote_protocol_P_packet_cmd): Ditto.
7604 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7605 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7606 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7607 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7608 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7609 (show_remote_protocol_Z_packet_cmd): Ditto.
7610 (show_remote_protocol_binary_download_cmd): Ditto.
7611 (show_remote_cmd): Pass NULL to all of above.
7612
7613 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7614
7615 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7616 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7617 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7618 POP_FRAME): Remove defines.
7619 (i386_push_arguments, i386_store_struct_return,
7620 i386_extract_return_value, i386_store_return_value,
7621 i386_extract_struct_value_address, i386_push_dummy_frame,
7622 i386_pop_frame): Renove prototypes.
7623 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7624 macros mentioned above.
7625
7626 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7627
7628 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7629 add_set_boolean_cmd.
7630 (add_setshow_cmd): New function.
7631 * command.h (add_setshow_boolean_cmd): Replace
7632 add_set_boolean_cmd.
7633 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7634 and ``set rdiromatzero''.
7635 * maint.c (_initialize_maint_cmds): Update commented out code.
7636 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7637 * target.c (initialize_targets): Update `set
7638 trust-readonly-sections'.
7639 * remote.c (_initialize_remote): Update `set remotebreak'.
7640
7641 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7642
7643 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7644 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7645 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7646 fit into multi-arch framework.
7647 (i386_breakpoint_from_pc): New function.
7648 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7649 above.
7650
7651 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7652 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7653 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7654 (i386_frameless_function_invocation, i386_frame_num_args,
7655 i386_frame_init_saved_regs): Remove prototypes.
7656 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7657 macros mentioned above.
7658
7659 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7660
7661 * cli/cli-decode.c (set_cmd_cfunc): Update.
7662 (set_cmd_sfunc): Update.
7663 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7664 (set_cmd_sfunc, set_cmd_cfunc): Update.
7665 * cli/cli-decode.h: Update.
7666
7667 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7668
7669 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7670 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7671
7672 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7673
7674 * defs.h (auto_boolean): Declare enum.
7675 * command.h (cmd_auto_boolean): Delete enum.
7676 * mips-tdep.c (mask_address_var): Update.
7677 (mips_mask_address_p): Update.
7678 (show_mask_address): Update.
7679 * remote.c (struct packet_config): Update.
7680 (update_packet_config): Update.
7681 (show_packet_config_cmd): Update.
7682 (packet_ok): Update.
7683 (add_packet_config_cmd): Update.
7684 (_initialize_remote):
7685 * command.h: Update.
7686 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7687 (do_setshow_command): Update.
7688 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7689 * cli/cli-decode.h: Update.
7690
7691 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7692
7693 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7694 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7695 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7696 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7697 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7698 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7699
7700 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7701 list of DJGPP COFF targets.
7702
7703 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7704 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7705 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7706 (FP0_REGNUM): Remove define.
7707 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7708 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7709 (i386_register_virtual_size): Remove protoype.
7710 * i386-tdep.c (i386_register_virtual_size): Removed.
7711 (i386_extract_return_value, i386_store_return_value): Use
7712 FP0_REGNUM instead of NUM_FREGS to determine whether the
7713 floating-point registers are available.
7714 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7715 Adjust for removal of macros mentioned above.
7716
7717 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7718
7719 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7720 comments.
7721 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7722 Remove prototypes.
7723 (supply_gregset, fill_gregset): Remove use of register keyword and
7724 remove declaration for regmap. Use I386_NUM_GREGS instead of
7725 NUM_REGS and NUM_FREGS.
7726 (FPREGSET_FSAVE_OFFSET): Remove.
7727 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7728 NUM_FREGS to determine whether the floating-point registers are
7729 available.
7730
7731 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7732 gnu_store_registers): Replace usage of NUM_GREGS with
7733 I386_NUM_GREGS.
7734
7735 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7736 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7737 usage of NUM_GREGS with I386_NUM_GREGS.
7738
7739 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7740
7741 * i386bsd-nat.c: Include "i386-tdep.h".
7742 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7743 I386_NUM_GREGS.
7744
7745 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7746 and associated comment. They no longer make any sense, since we
7747 don't use this file anymore on Linux.
7748
7749 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7750 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7751 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7752 elements in these arrays.
7753 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7754 MAX_NUM_REGS.
7755
7756 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7757
7758 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7759 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7760
7761 2002-06-14 Andrew Cagney <cagney@redhat.com>
7762
7763 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7764 EXTRACT_RETURN_VALUE.
7765 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7766 EXTRACT_STRUCT_VALUE_ADDRESS.
7767 * gdbarch.h, gdbarch.c: Regenerate.
7768
7769 * values.c (value_being_returned): Handle
7770 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7771 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7772
7773 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7774 * arm-tdep.c (arm_gdbarch_init): Update.
7775 * avr-tdep.c (avr_gdbarch_init): Update.
7776 * cris-tdep.c (cris_gdbarch_init): Update.
7777 * d10v-tdep.c (d10v_gdbarch_init): Update.
7778 * ia64-tdep.c (ia64_gdbarch_init): Update.
7779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7780 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7781 * s390-tdep.c (s390_gdbarch_init): Update.
7782 * sh-tdep.c (sh_gdbarch_init): Update.
7783 * s390-tdep.c (s390_gdbarch_init): Update.
7784 * sparc-tdep.c (sparc_gdbarch_init): Update.
7785 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7786 * v850-tdep.c (v850_gdbarch_init): Update.
7787 * vax-tdep.c (vax_gdbarch_init): Update.
7788 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7789 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7790
7791 * config/arc/tm-arc.h: Update.
7792 * config/d30v/tm-d30v.h: Update.
7793 * config/fr30/tm-fr30.h: Update.
7794 * config/h8300/tm-h8300.h: Update.
7795 * config/h8500/tm-h8500.h: Update.
7796 * config/i386/tm-i386.h: Update.
7797 * config/i386/tm-ptx.h: Update.
7798 * config/i386/tm-symmetry.h: Update.
7799 * config/i960/tm-i960.h: Update.
7800 * config/m32r/tm-m32r.h: Update.
7801 * config/m68k/tm-delta68.h: Update.
7802 * config/m68k/tm-linux.h: Update.
7803 * config/m68k/tm-m68k.h: Update.
7804 * config/m88k/tm-m88k.h: Update.
7805 * config/mcore/tm-mcore.h: Update.
7806 * config/mips/tm-mips.h: Update.
7807 * config/mn10200/tm-mn10200.h: Update.
7808 * config/pa/tm-hppa.h: Update.
7809 * config/pa/tm-hppa64.h: Update.
7810 * config/sparc/tm-sp64.h: Update.
7811 * config/sparc/tm-sparc.h: Update.
7812 * config/sparc/tm-sparclet.h: Update.
7813 * config/z8k/tm-z8k.h: Update.
7814
7815 2002-06-14 Andrew Cagney <cagney@redhat.com>
7816
7817 * Makefile.in (i386_linux_tdep_h): Define.
7818 (i386_tdep_h, i387_tdep_h): Define.
7819 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7820 $(i386_tdep_h) and $(i387_tdep_h).
7821 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7822
7823 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7824
7825 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7826 Already covered by the default.
7827
7828 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7829 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7830 (i386_gdbarch_init): Initialize long_double_format and long_double
7831 bit.
7832
7833 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7834 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7835 Move these to ...
7836 * config/i386/i386sol2.mh: ... here.
7837 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7838 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7839 (SIGCONTEXT_PC_OFFSET): Remove define.
7840 (IN_SIGTRAMP): Remove define.
7841 * i386-sol2-tdep.c: New file.
7842
7843 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7844 * config/i386/tm-i386nw.h: Removed.
7845
7846 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7847 USE_STRUCT_CONVENTION): Remove defines.
7848 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7849 (get_longjmp_target): Remove prototype.
7850 (IN_SIGTRAMP): Remove define.
7851 (i386bsd_in_sigtramp): Remove prototype.
7852 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7853 function. Update comment accordingly
7854 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7855 (FRAME_SAVED_PC): Remove define.
7856 (i386bsd_frame_saved_pc): Remove prototype.
7857 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7858 GET_LONGJMP_TARGET): Remove defines.
7859 (get_longjmp_target): Remove prototype.
7860 (IN_SIGTRAMP): Remove define.
7861 (i386bsd_in_sigtramp): Remove prototype.
7862 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7863 function. Update comment accordingly
7864 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7865 (FRAME_SAVED_PC): Remove define.
7866 (i386bsd_frame_saved_pc): Remove prototype.
7867 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7868 Remove prototype.
7869 (USE_STRUCT_CONVENTION): Remove prototype.
7870 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7871 declaration.
7872 (_initialize_i386bsd_nat): Revise logic to determine some
7873 constants at compile time when compiling a native GDB. Warn if
7874 things don't match up with what we expect.
7875 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7876 Remove variables.
7877 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7878 to use date stored in `struct gdbarch_tdep'.
7879 (i386bsd_sigcontext_offset): Remove varaible.
7880 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7881 stored in `struct gdbarch_tdep'.
7882 (i386bsd_frame_saved_pc): Make static.
7883 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7884 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7885 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7886 i386fbsd4_sc_pc_offset): New variables.
7887 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7888 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7889 functions.
7890 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7891 functions.
7892 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7893 Modify the value of i386fbsd_sigtramp_start and
7894 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7895 i386fbsd_sigtramp_end.
7896 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7897 function.
7898
7899 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7900 define to i386-linux-tdep.h.
7901 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7902 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7903 defines.
7904 (i386_linux_register_name, i386_linux_register_byte,
7905 i386_linux_register_raw_size): Remove prototypes.
7906 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7907 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7908 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7909 TARGET_WRITE_PC): Remove defines.
7910 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7911 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7912 i386_linux_write_pc): Remove prototypes.
7913 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7914 (get_longjmp_target): Remove prototype.
7915 * i386-linux-tdep.h: New file.
7916 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7917 * i386-linux-tdep.c: Include "i386-tdep.h" and
7918 "i386-linux-tdep.h".
7919 (i386_linux_register_name, i386_linux_register_byte,
7920 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7921 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7922 Make static.
7923 (i386_linux_init_abi): New function.
7924 (_initialize_i386_linux_tdep): New function.
7925
7926 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7927 (i386_saved_pc_after_call): Remove prototype.
7928 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7929 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7930 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7931 (i386_register_name, i386_stab_reg_to_regnum,
7932 i386_dwarf_reg_to_regnum): Remove prototypes.
7933 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7934 SIZEOF_SSE_REGS): Remove defines.
7935 (REGISTER_BYTES): Remove define.
7936 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7937 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7938 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7939 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7940 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7941 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7942 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7943 (get_longjmp_target): Remove prototype.
7944 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7945 (sigtramp_saved_pc): Remove define.
7946 (i386v4_sigtramp_saved_pc): Remove prototype.
7947 * config/i386/tm-go32.h (FRAME_CHAIN,
7948 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7949 (i386go32_frame_saved_pc): Remove prototype.
7950 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7951 (get_longjmp_target): Remove prototype.
7952 * i386-tdep.h: Include "osabi.h".
7953 (enum i386_abi): Removed.
7954 (enum struct_return): New enum.
7955 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7956 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7957 sc_pc_offset members.
7958 (i386_gdbarch_register_os_abi): Remove prototype.
7959 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7960 I386_SSE_NUM_REGS): New defines.
7961 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7962 I386_SSE_SIZEOF_REGS): New defines.
7963 (i386_register_name, i386_register_byte, i386_register_raw_size):
7964 New prototypes.
7965 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7966 (i386bsd_sigtramp_saved_pc): New prototype.
7967 * i386-tdep.c: Don't include "elf-bfd.h".
7968 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7969 i386_frame_chain, i386_saved_pc_after_call): Make static.
7970 (i386_frame_saved_pc): Rewrite to call architecture dependent
7971 function to deal with signal handlers. Make static.
7972 (i386go32_frame_saved_pc): Removed.
7973 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7974 Removed.
7975 (i386_get_longjmp_target): New function.
7976 (default_struct_convention, pcc_struct_convention,
7977 reg_struct_convention, valid_conventions, struct_convention): New
7978 variables.
7979 (i386_use_struct_convention): New function.
7980 (i386v4_sigtramp_saved_pc): Renamed to
7981 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7982 (i386_pc_in_sigtramp): New function.
7983 (i386_abi_names): Removed.
7984 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7985 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7986 Removed.
7987 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7988 i386_gdbarch_register_os_abi): Removed.
7989 (struct i386_abi_handler): Removed.
7990 (i386_abi_handler_list): Removed.
7991 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7992 functions.
7993 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7994 i386_nw_init_abi): New functions.
7995 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7996 Use set_gdbarch_xxx() calls instead of relying on macros for a
7997 number of calls.
7998 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7999 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8000 Register the various architecture variants defined in this file.
8001
8002 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8003
8004 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8005 (struct main_type): Remove arg_types member. Update comments for
8006 struct field.
8007 (TYPE_ARG_TYPES): Remove.
8008 (TYPE_FN_FIELD_ARGS): Update.
8009 (smash_to_method_type): Update prototype.
8010
8011 * c-typeprint.c (cp_type_print_method_args): Take method type
8012 instead of argument list. Use new argument layout. Simplify.
8013 (c_type_print_args): Use new argument layout. Simplify.
8014 (c_type_print_base): Update call to cp_type_print_method_args.
8015 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8016 argument; use die->type instead. Update call to
8017 smash_to_method_type.
8018 (read_structure_scope): Update call to dwarf2_add_member_fn.
8019 * gdbtypes.c (allocate_stub_method): Update comment.
8020 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8021 Use new argument layout.
8022 (check_stub_method): Use new argument layout. Don't count
8023 void as an argument.
8024 (print_arg_types): Update comments. Use new argument layout.
8025 (recursive_dump_type): Don't print arg_types member.
8026 * hpread.c (hpread_read_struct_type): Use new argument layout.
8027 (fixup_class_method_type): Likewise.
8028 (hpread_type_lookup): Likewise.
8029 * stabsread.c (read_type): Update calls to read_args and
8030 smash_to_method_type.
8031 (read_args): Use new argument layout. Simplify.
8032 * valops.c (typecmp): Use new argument layout. Update parameters
8033 and comments. Simplify.
8034 (hand_function_call): Use new argument layout.
8035 (search_struct_method): Update call to typecmp.
8036 (find_overload_match): Use new argument layout.
8037
8038 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * NEWS: Mention multithreaded debug support for gdbserver.
8041
8042 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8043
8044 * MAINTAINERS: Mention NEWS.
8045
8046 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8049 (struct mips_objfile_private, compare_pdr_entries): New.
8050 (non_heuristic_proc_desc): Read the ".pdr" section if it
8051 is present.
8052
8053 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8054
8055 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8056 (arm_debug): New static variable.
8057 (_initialize_arm_tdep): Add ``set debug arm'' command.
8058
8059 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8060
8061 * Makefile.in (sim_arm_h): Define.
8062 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8063 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8064 (arm_register_sim_regno): New function, map an internal REGNUM
8065 onto a simulator register number.
8066 (arm_gdbarch_init): Set register_sim_regno.
8067
8068 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8069
8070 * MAINTAINERS: Add self.
8071
8072 2002-06-11 Jim Blandy <jimb@redhat.com>
8073
8074 * source.c (source_info): Mention whether the symtab has
8075 information about preprocessor macros.
8076
8077 Call the command `info macro', not `show macro'.
8078 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8079 Fix error message.
8080 (_initialize_macrocmd): Register `info_macro_command' in
8081 `infolist', not `showlist'.
8082
8083 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8086 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8087 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8088 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8089 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8090 unconditionally.
8091 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8092 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8093 (_initialize_mips_tdep): Remove dead code.
8094 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8095 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8096 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8097 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8098 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8099 MIPS_LAST_FP_ARG_REGNUM): Remove.
8100
8101 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8102
8103 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8104 (unwind_tmp_obstack_free, parse_frame_info)
8105 (update_context, cfi_read_fp, cfi_write_fp)
8106 (cfi_frame_chain, cfi_init_extra_frame_info)
8107 (cfi_virtual_frame_pointer): Use the above function.
8108 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8109
8110 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8111
8112 * v850-tdep.c (v850_type_is_scalar): New function.
8113 (v850_use_struct_convention): Match current gcc implementation
8114 as close as possible.
8115 (v850_push_arguments): Fix stack_offset handling. Don't write
8116 struct_addr into register. This is done by v850_store_struct_return.
8117 (v850_extract_return_value): Care for structs.
8118 (v850_store_return_value): Ditto.
8119 (v850_store_struct_return): Actually write address.
8120
8121 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8122
8123 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8124 without debug information too.
8125
8126 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8127
8128 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8129 Make multi-arch pure.
8130 * gdbarch.h, gdbarch.c: Re-generate.
8131 * arm-tdep.c (arm_print_float_info): Update.
8132 * arch-utils.h (default_print_float_info): Update.
8133 * arch-utils.c (default_print_float_info): Update.
8134 * infcmd.c (float_info): Update call.
8135
8136 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8137
8138 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8139 the front of the initialize list.
8140
8141 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8142
8143 * infrun.c (struct inferior_status): Replace fields
8144 selected_frame_address and selected_level with field
8145 selected_frame_id.
8146 (save_inferior_status): Update. Use get_frame_id.
8147 (struct restore_selected_frame_args): Delete.
8148 (restore_selected_frame): Update. Use frame_find_by_id.
8149 (restore_inferior_status): Update.
8150
8151 * breakpoint.h (struct breakpoint): Change type of
8152 watchpoint_frame to frame_id.
8153 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8154 call to get_current_frame.
8155 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8156 get_current_frame.
8157 (watchpoint_check): Use frame_find_by_id.
8158
8159 * frame.h (record_selected_frame): Delete declaration.
8160 * stack.c (record_selected_frame): Delete function.
8161
8162 * frame.h (struct frame_id): Define.
8163 (get_frame_id): Declare.
8164 (frame_find_by_id): Declare.
8165 * frame.c (frame_find_by_id): New function.
8166 (get_frame_id): New function.
8167
8168 2002-06-10 Andrey Volkov <avolkov@transas.com>
8169
8170 * ser-e7kpc.c: Fix duplicated define and call of
8171 _initialize_ser_e7000pc
8172
8173 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * signals/signals.c (target_signal_from_host): Fix #ifdef
8176 SIGRTMIN case.
8177 (do_target_signal_to_host): Likewise.
8178
8179 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8180
8181 * mips-tdep.c (mips_find_abi_section): New function.
8182 (mips_gdbarch_init): Call it.
8183
8184 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8185
8186 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8187 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8188 after Andrew's 2002-06-08 gdbarch change.
8189
8190 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8191
8192 * i386-linux-nat.c (suppy_gregset): Don't supply
8193 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8194 register cache.
8195 (fill_gregset): Don't fetch it under the same circumstances.
8196
8197 2002-06-09 Andrew Cagney <cagney@redhat.com>
8198
8199 * Makefile.in (callback_h): Define.
8200 (remote_sim_h): Update path to remote-sim.h.
8201 (remote-rdp.o): Add $(callback_h).
8202 (remote-sim.o): Use $(callback_h).
8203 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8204 * remote-rdp.c: Include "gdb/callback.h".
8205
8206 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8207
8208 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8209 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8210
8211 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8212
8213 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8214 * rdi-share/serpardr.c: Ditto.
8215 * rdi-share/unixcomm.c: Ditto.
8216 * rdi-share/serdrv.c: Ditto.
8217 * rdi-share/hostchan.h: Ditto.
8218 * rdi-share/hostchan.c: Ditto.
8219 * rdi-share/host.h: Ditto.
8220 * rdi-share/devsw.c: Ditto.
8221
8222 * objfiles.h: Change type of obj_private to void pointer.
8223 * pa64solib.c: Update copyright. Don't include "assert.h", use
8224 strcmp instead of STREQ, use LONGEST, do not use PTR
8225 * somsolib.c: Ditto.
8226
8227 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8228 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8229 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8230
8231 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8232
8233 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8234 (default_get_saved_register): Delete function.
8235 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8236 generic_unwind_get_saved_register.
8237 * gdbarch.h, gdbarch.c: Re-generate.
8238
8239 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8240
8241 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8242 generic_func_frame_chain_valid.
8243 * gdbarch.h, gdbarch.c: Re-generate.
8244 * blockframe.c (generic_func_frame_chain_valid): Only check
8245 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8246 passing FP to PC_IN_CALL_DUMMY.
8247 Fix PR gdb/360.
8248
8249 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8250
8251 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8252 (register_gdbarch_data): Initialize init_p.
8253 (gdbarch_data): Initialize data pointer using the init function.
8254 (init_gdbarch_data): Delete function.
8255 (gdbarch_update_p): Update.
8256 (initialize_non_multiarch): Update.
8257 (struct gdbarch): Add field initialized_p.
8258 * gdbarch.h, gdbarch.c: Re-generate.
8259
8260 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8261
8262 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8263 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8264 better do the things actually here.
8265 * x86-64-tdep.c (x86_64_register_name2nr): New.
8266 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8267 (x86_64_gdbarch_init): Respect the above change.
8268 * x86-64-tdep.h (x86_64_register_name2nr)
8269 (x86_64_register_nr2name): Add prototypes.
8270 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8271
8272 2002-06-06 Michael Snyder <msnyder@redhat.com>
8273
8274 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8275 Delete extra braces and re-indent.
8276 (d10v_store_return_value): Char return values
8277 must be shifted over by one byte in R0.
8278 (d10v_extract_return_value): Delete extra braces, re-indent.
8279
8280 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8281
8282 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8283 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8284 (d10v_integer_to_address): Rewrite.
8285 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8286 the d10v specific functions which take care of converting to the
8287 correct space.
8288
8289 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8290
8291 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8292 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8293
8294 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8295
8296 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8297 includes.
8298 * config/tm-linux.h: Ditto.
8299 * config/alpha/tm-alphalinux.h: Ditto.
8300 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8301 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8302 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8303 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8304 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8305 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8306 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8307 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8308 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8309 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8310 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8311 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8312 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8313 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8314 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8315 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8316 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8317 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8318 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8319 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8320 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8321 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8322 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8323 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8324 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8325 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8326 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8327 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8328 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8329 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8330 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8331 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8332 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8333 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8334 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8335 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8336 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8337
8338 2002-05-04 Aidan Skinner <aidan@velvet.net>
8339
8340 * ada-exp.tab.c: New file
8341 * ada-exp.y: New file
8342 * ada-lang.c: New file
8343 * ada-lang.h: New file
8344 * ada-lex.c: New file
8345 * ada-lex.l: New file
8346 * ada-tasks.c: New file
8347 * ada-typeprint.c: New file
8348 * ada-valprint.c: New file
8349
8350 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8351
8352 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8353 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8354
8355 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8356
8357 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8358 insetead of ppc-linux-tdep.o.
8359 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8360 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8361
8362 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8363
8364 2002-05-07 Christian Groessler <chris@groessler.org>
8365 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8366 bit register contents for little endian hosts.
8367
8368 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8369
8370 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8371 any maintainer.
8372
8373 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8374
8375 * gdbarch.h: Regenerate.
8376
8377 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8378
8379 * MAINTAINERS: Add everyone to write-after-approval list.
8380
8381 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8382
8383 * stack.c (frame_info): Use frame_register_unwind instead of
8384 saved_regs. Mention when the SP is on the stack or in a register.
8385
8386 * frame.h (frame_register_unwind_ftype): Define. Document.
8387 (struct frame_info): Add field register_unwind and
8388 register_unwind_cache.
8389 (frame_register_unwind): Declare.
8390 (generic_unwind_get_saved_register): Declare.
8391
8392 * frame.c (frame_register_unwind): New function.
8393 (generic_unwind_get_saved_register): New function.
8394
8395 * blockframe.c (generic_call_dummy_register_unwind): New function.
8396 (frame_saved_regs_register_unwind): New function.
8397 (set_unwind_by_pc): New function.
8398 (create_new_frame): New function.
8399 (get_prev_frame): New function.
8400
8401 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8402
8403 * a29k-share/: Delete directory.
8404 * remote-vx29k.c: Delete file.
8405
8406 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8407
8408 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8409 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8410
8411 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8412
8413 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8414 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8415 (sparc64nbsd-nat.o)
8416 (sparcnbsd-nat.o)
8417 (sparcnbsd-tdep.o): New dependency lists.
8418 * NEWS: Note new UltraSPARC NetBSD native configuration.
8419 * configure.host (sparc64-*-netbsd*): New host.
8420 * configure.tgt (sparc-*-netbsdelf*)
8421 (sparc-*-netbsd*): Set gdb_target to nbsd.
8422 (sparc64-*-netbsd*): New target.
8423 * sparc64nbsd-nat.c: New file.
8424 * sparcnbsd-nat.c: New file.
8425 * sparcnbsd-tdep.c: New file.
8426 * sparcnbsd-tdep.h: New file.
8427 * config/sparc/nbsd.mt: New file.
8428 * config/sparc/nbsd64.mh: New file.
8429 * config/sparc/nbsd64.mt: New file.
8430 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8431 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8432 (HOST_IPC): Remove.
8433 * config/sparc/nbsdaout.mt: Remove.
8434 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8435 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8436 (HOST_IPC): Remove.
8437 * config/sparc/nbsdelf.mt: Remove.
8438 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8439 sparc-nat.c compatiblity defines.
8440 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8441 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8442 * config/sparc/tm-nbsd64.h: New file.
8443 * config/sparc/tm-nbsdaout.h: Remove.
8444 * config/sparc/xm-nbsd.h: Remove.
8445
8446 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8447
8448 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8449 * sparc-tdep.c: Include osabi.h.
8450 (gdbarch_tdep): Add osabi member.
8451 (_initialize_sparc_tdep): Use gdbarch_register.
8452 (sparc_gdbarch_init): Use generic OS ABI framework.
8453 (sparc_dump_tdep): New function.
8454
8455 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8456
8457 * corefile.c (do_captured_read_memory_integer): Return non-zero
8458 result.
8459 (safe_read_memory_integer): Copy result of memory read when
8460 status is non-zero. Also, add comments.
8461
8462 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8463
8464 * Makefile.in (ppc_tdep_h): Define.
8465 (ppc-linux-nat.o)
8466 (ppc-linux-tdep.o)
8467 (rs6000-tdep.o): Use $(ppc_tdep_h).
8468 (ppc-sysv-tdep.o)
8469 (ppcnbsd-nat.o)
8470 (ppcnbsd-tdep.o): New dependency lists.
8471 * ppc-tdep.h: Use generic OS ABI framework.
8472 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8473 (ppc_linux_init_abi): New functions.
8474 (ppc_sysv_abi_broken_use_struct_convention)
8475 (ppc_sysv_abi_use_struct_convention)
8476 (ppc_sysv_abi_push_arguments): Move to...
8477 * ppc-sysv-tdep.c: ...here.
8478 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8479 * rs6000-tdep.c (process_note_abi_tag_sections)
8480 (get_elfosabi): Remove.
8481 (rs6000_gdbarch_init): Use generic OS ABI framework.
8482 (rs6000_dump_tdep): New function.
8483 (_initialize_rs6000_tdep): Use gdbarch_register.
8484 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8485 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8486 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8487 of ppc-linux-tdep.o.
8488 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8489 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8490 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8491 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8492 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8493 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8494
8495 2002-05-29 Jim Blandy <jimb@redhat.com>
8496
8497 * macroscope.c (default_macro_scope): Put `void' in empty argument
8498 list.
8499
8500 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8501
8502 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8503 * arch-utils.c: Include "sim-regno.h".
8504 * gdbarch.sh: Don't include "sim-regno.h".
8505 * gdbarch.h, gdbarch.c: Regenerate.
8506 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8507 here.
8508 * arch-utils.h (legacy_register_sim_regno): To here.
8509 * remote-sim.c (legacy_register_sim_regno): Move function from
8510 here.
8511 * arch-utils.c (legacy_register_sim_regno): To here.
8512
8513 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8514
8515 * sim-regno.h: New file.
8516 * Makefile.in (sim_regno_h): Define.
8517 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8518 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8519 (legacy_register_sim_regno): New function.
8520 (one2one_register_sim_regno): New function.
8521 (gdbsim_fetch_register): Rewrite.
8522 (gdbsim_store_register): Only store a register when
8523 REGISTER_SIM_REGNO is valid.
8524 * d10v-tdep.c: Include "sim-regno.h".
8525 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8526 (d10v_ts3_register_sim_regno): Ditto.
8527 * gdbarch.sh: Include "sim-regno.h".
8528 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8529 * gdbarch.h, gdbarch.c: Regenerate.
8530 * arch-utils.h (default_register_sim_regno): Delete declaration.
8531 * arch-utils.c (default_register_sim_regno): Delete function.
8532
8533 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8534
8535 * ppcnbsd-nat.c: Rewrite.
8536 * ppcnbsd-tdep.c: New file.
8537 * ppcnbsd-tdep.h: New file.
8538 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8539 solib.o, and solib-svr4.o.
8540 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8541 nbsd-tdep.o, and corelow.o.
8542
8543 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8544
8545 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8546 `tr' and `sed'. Mention that `broken' targets are not expected to
8547 build.
8548
8549 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8550
8551 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8552 Let PC point right after the prologue before looking up symbols.
8553
8554 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8555
8556 * i386-tdep.c (i386_register_virtual_type): Return
8557 builtin_type_vec128i for SSE registers.
8558
8559 * gdbtypes.h (builtin_type_vec128i): Declare.
8560
8561 * gdbtypes.c (build_builtin_type_vec128i): New function.
8562 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8563 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8564 (build_gdbtypes): Initialize new builtin vector types.
8565 (_initialize_gdbtypes): Register new vector types with gdbarch.
8566
8567 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8568
8569 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8570 since it has been multi-arch'd.
8571 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8572 Move Alpha and VAX multi-arch news entries to same section
8573 as other multi-arch news.
8574
8575 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8576
8577 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8578 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8579 static. Rename some register numbers to put them in ns32k-tdep
8580 private namespace.
8581 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8582 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8583 functions.
8584 (_initialize_ns32k_tdep): Use gdbarch_register.
8585 * ns32k-tdep.h: New file.
8586 * ns32knbsd-tdep.c: New file.
8587 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8588 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8589 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8590 REGISTER_BYTES, REGISTER_BYTE): Remove.
8591 * config/ns32k/tm-ns32k.h: New file.
8592 * config/ns32k/tm-umax.h: Remove.
8593
8594 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8595
8596 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8597 ns32k_store_struct_return, ns32k_extract_return_value,
8598 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8599 functions.
8600 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8601 ns32k_saved_pc_after_call.
8602 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8603 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8604 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8605 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8606 ns32k_extract_struct_value_address.
8607
8608 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8609
8610 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8611 ns32k_fix_call_dummy): New.
8612 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8613 ns32k_call_dummy_words.
8614 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8615 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8616 CALL_DUMMY_NARGS): Remove.
8617 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8618
8619 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8620
8621 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8622 ns32k_frame_saved_pc, ns32k_frame_args_address,
8623 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8624 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8625 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8626 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8627 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8628 (BREAKPOINT): Remove..
8629 (FRAME_CHAIN): Define as ns32k_frame_chain.
8630 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8631 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8632 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8633 (FRAME_FIND_SAVED_REGS): Remove.
8634 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8635 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8636 (POP_FRAME): Define as ns32k_pop_frame.
8637
8638 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8639
8640 * ns32k-tdep.c (ns32k_register_byte_32082,
8641 ns32k_register_byte_32382, ns32k_register_raw_size,
8642 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8643 functions.
8644 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8645 ns32k_register_byte_32382.
8646 * config/ns32k/tm-umax.h: Update copyright years.
8647 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8648 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8649 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8650 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8651 (ns32k_get_enter_addr): Fix prototype.
8652
8653 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8654
8655 * ns32k-tdep.c: Update copyright years.
8656 (ns32k_register_name_32082): New function.
8657 (ns32k_register_name_32382): Ditto.
8658 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8659 (REGISTER_NAME): Define as ns32k_register_name_32382.
8660 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8661 (REGISTER_NAME): Define as ns32k_register_name_32082.
8662
8663 2002-05-24 Jim Blandy <jimb@redhat.com>
8664
8665 * dwarf2read.c (free_line_header): Use xfree, not free.
8666
8667 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8668
8669 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8670 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8671
8672 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8673
8674 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8675
8676 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8677
8678 From Ross Alexander at NEC Europe:
8679 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8680
8681 2002-05-23 Michael Snyder <msnyder@redhat.com>
8682
8683 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8684 for input, rather than parse_and_eval_address.
8685
8686 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8687
8688 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8689 * Makefile.in (sim_d10v_h): Update definition.
8690
8691 2002-05-24 Andrew Cagney <cagney@redhat.com>
8692
8693 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8694 change `2002-05-22 Michael Snyder' below.
8695 (d10v_push_arguments): Ditto.
8696 (d10v_extract_return_value): Ditto.
8697
8698 2002-05-23 Jim Blandy <jimb@redhat.com>
8699
8700 * macrotab.c (check_for_redefinition): Don't complain if the new
8701 definition is the same as the previous one. Take more arguments
8702 to allow the comparison.
8703 (macro_define_object, macro_define_function): Pass more arguments
8704 to check_for_redefinition.
8705
8706 2002-05-22 Michael Snyder <msnyder@redhat.com>
8707
8708 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8709 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8710 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8711 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8712 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8713 Add a temp variable to save a call (and a memory read).
8714 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8715 if possible (so that PC_IN_CALL_DUMMY will work).
8716
8717 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8718
8719 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8720
8721 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8722
8723 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8724 fde->cie_ptr.
8725 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8726 (dwarf2_build_frame_info): Add offset to fde->initial_location
8727 so that frames of shared libraries are mapped correctly.
8728 (execute_stack_op): Change type of 'result' from ULONGEST to
8729 CORE_ADDR.
8730
8731 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8732
8733 * config/alpha/tm-nbsd.h: Include solib.h.
8734
8735 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8736
8737 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8738 assumptions about the host's byte order.
8739
8740 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8741
8742 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8743 to dependency list.
8744 * alphanbsd-tdep.c: Include solib-svr4.h.
8745 * shnbsd-tdep.c: Ditto.
8746
8747 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8748
8749 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8750 nbsd-tdep.h to dependency list.
8751 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8752 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8753 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8754 nbsdaout.mh and nbsdelf.mh consistently.
8755 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8756 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8757 nbsdaout.mt and nbsdelf.mh consistently.
8758 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8759 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8760 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8761 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8762 a.out shared library stuff from here...
8763 * config/nm-nbsdaout.h: ...to here.
8764 * config/tm-nbsd.h: Remove.
8765 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8766 * config/arm/nbsd.mh: Remove.
8767 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8768 nbsd-tdep.o.
8769 * config/arm/nbsdaout.mh: New file.
8770 * config/arm/nbsdelf.mh: New file.
8771 * config/arm/nm-nbsdaout.h: New file.
8772 * config/i386/nbsd.mh: Remove.
8773 * config/i386/nbsd.mt: Remove.
8774 * config/i386/nbsdaout.mh: New file.
8775 * config/i386/nbsdaout.mt: New file.
8776 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8777 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8778 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8779 i386_register_u_addr): Remove.
8780 * config/i386/nm-nbsdaout.h: New file.
8781 * config/i386/nm-nbsdelf.h: Remove.
8782 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8783 (USE_STRUCT_CONVENTION): Remove.
8784 * config/i386/tm-nbsdaout.h: New file.
8785 * config/i386/tm-nbsdelf.h: Remove.
8786 * config/m68k/nbsd.mh: Remove.
8787 * config/m68k/nbsd.mt: Remove.
8788 * config/m68k/nbsdaout.mh: New file.
8789 * config/m68k/nbsdaout.mt: New file.
8790 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8791 * config/m68k/nm-nbsdaout.h: New file.
8792 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8793 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8794 * config/ns32k/nbsd.mh: Remove.
8795 * config/ns32k/nbsd.mt: Remove.
8796 * config/ns32k/nbsdaout.mh: New file.
8797 * config/ns32k/nbsdaout.mt: New file.
8798 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8799 * config/ns32k/nm-nbsdaout.h: New file.
8800 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8801 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8802 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8803 (SVR4_SHARED_LIBS): Remove.
8804 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8805 * config/sparc/nbsd.mh: Remove.
8806 * config/sparc/nbsd.mt: Remove.
8807 * config/sparc/nbsdaout.mh: New file.
8808 * config/sparc/nbsdaout.mt: New file.
8809 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8810 * config/sparc/nbsdelf.mt: New file.
8811 * config/sparc/nm-nbsdaout.h: New file.
8812 * config/sparc/nm-nbsdelf.h: Remove.
8813 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8814 * config/sparc/tm-nbsdaout.h: New file.
8815
8816 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8817
8818 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8819 mipsnbsd-tdep.c
8820 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8821
8822 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8823
8824 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8825 shnbsd-nat.c.
8826 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8827
8828 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8829
8830 * NEWS: Note new MIPS NetBSD native configuration.
8831 * configure.host (mips*-*-netbsd*): New host.
8832 * configure.tgt (mips*-*-netbsd*): New target.
8833 * mipsnbsd-nat.c: New file.
8834 * mipsnbsd-tdep.c: New file.
8835 * mipsnbsd-tdep.h: New file.
8836 * config/mips/nbsd.mh: New file.
8837 * config/mips/nbsd.mt: New file.
8838 * config/mips/nm-nbsd.h: New file.
8839 * config/mips/tm-nbsd.h: New file.
8840
8841 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8842
8843 * Makefile.in (SFILES): Add osabi.c.
8844 (COMMON_OBS): Add osabi.o.
8845 (osabi.o): New dependency list.
8846 * osabi.c: New file.
8847 * osabi.h: New file.
8848 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8849
8850 * Makefile.in (alpha_tdep_h): Define and use instead of
8851 alpha-tdep.h.
8852 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8853 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8854 Remove.
8855 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8856 * alpha-tdep.h: Include osabi.h.
8857 (alpha_abi): Remove.
8858 (gdbarch_tdep): Use generic OS ABI framework.
8859 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8860 gdbarch_register_osabi.
8861 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8862 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8863 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8864
8865 * Makefile.in (sh_tdep_h): Add osabi.h.
8866 * sh-tdep.h (sh_osabi): Remove.
8867 (gdbarch_tdep): Use generic OS ABI framework.
8868 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8869 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8870 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8871 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8872
8873 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8874 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8875 gdbarch_register_osabi.
8876 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8877 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8878 (get_elfosabi): Rename to...
8879 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8880 ABI framework support routines.
8881 (arm_gdbarch_init): Use generic OS ABI framework.
8882 (arm_dump_tdep): Likewise.
8883 (_initialize_arm_tdep): Likewise.
8884 * arm-tdep.h: Include osabi.h.
8885 (arm_abi): Remove.
8886 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8887 osabi member.
8888 (arm_gdbarch_register_os_abi): Remove prototype.
8889 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8890 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8891
8892 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8893 * mips-tdep.c: Include osabi.h.
8894 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8895 OS ABI framework.
8896
8897 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8898
8899 * h8300-tdep.c: Fix formatting.
8900
8901 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8902
8903 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8904 printing vector registers.
8905
8906 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8907
8908 From Fernando Nasser:
8909 * remote.c (remote_async_open_1): Re-throw the exception when the
8910 connection fails.
8911 (remote_cisco_open): Ditto.
8912 (remote_open_1): Ditto.
8913
8914 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8915
8916 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8917 (remote_start_remote): Add uiout parameter. Pass through to
8918 remote_start_remote_dummy.
8919 (remote_open_1): Use catch_exception instead of catch_errors.
8920 (remote_async_open_1): Ditto.
8921 (remote_cisco_open): Ditto.
8922
8923 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8924
8925 * remote.c (remote_start_remote): Replace PTR with void pointer.
8926 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8927 static.
8928
8929 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8930
8931 * gdb_indent.sh: Allow the script to be run in the sim directory.
8932
8933 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8934
8935 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8936 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8937
8938 * corelow.c (core_open): Only call set_gdbarch_from_file if
8939 exec_bfd is NULL.
8940
8941 2002-05-17 Andrey Volkov <avolkov@transas.com>
8942
8943 * h8300-tdep.c: Add support of EXR register
8944 * config/h8300/tm-h8300.h: Ditto.
8945
8946 2002-05-17 Andrey Volkov <avolkov@transas.com>
8947
8948 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8949
8950 2002-05-17 Andrey Volkov <avolkov@transas.com>
8951
8952 * h8300-tdep.c: Change literal regnums to REGNO.
8953
8954 2002-05-17 Jim Blandy <jimb@redhat.com>
8955
8956 * NEWS: Note addition of macro support.
8957
8958 Expand preprocessor macros in C expressions.
8959 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8960 (scan_macro_expansion, scanning_macro_expansion,
8961 finished_macro_expansion): New function declarations.
8962 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8963 variable declarations.
8964 * parser-defs.h (expression_context_pc): New declaration.
8965 * parse.c (expression_context_pc): New variable.
8966 (parse_exp_1): Set expression_context_pc, as well as
8967 expression_context_block.
8968 * c-exp.y (yylex): If we're not already reading the result of a
8969 macro expansion, try to macro-expand the next token. When we're
8970 done scanning a macro expansion, switch back to the mainline text.
8971 Commas and `if's in a macro's expansion don't terminate the input.
8972 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8973 (macro_original_text, macro_expanded_text,
8974 expression_macro_lookup_func, expression_macro_lookup_baton): New
8975 variables.
8976 (scan_macro_expansion, scanning_macro_expansion,
8977 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8978 c_preprocess_and_parse): New functions.
8979 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8980 c_preprocess_and_parse, instead of c_parse.
8981 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8982 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8983
8984 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8985
8986 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8987 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8988 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8989
8990 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8991
8992 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8993
8994 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8995
8996 * Makefile.in (sh_tdep_h): Define and use.
8997 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8998 register enum): Move to...
8999 * * sh-tdep.h: ...here.
9000 * sh-tdep.c: Include sh-tdep.h.
9001 * sh3-rom.c: Likewise.
9002 * shnbsd-tdep.c: Likewise.
9003
9004 2002-05-16 Michael Snyder <msnyder@redhat.com>
9005
9006 * arm-tdep.c: Spelling fix in comment.
9007
9008 2002-05-16 Jim Blandy <jimb@redhat.com>
9009
9010 Add commands for manually expanding macros and showing their
9011 definitions.
9012 * macrocmd.c, macroscope.c, macroscope.h: New files.
9013 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9014 (macroscope_h): New variable.
9015 (HFILES_NO_SRCDIR): Add macroscope.h.
9016 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9017 (macroscope.o, macrocmd.o): New rules.
9018
9019 Teach the Dwarf 2 reader to read macro information.
9020 * dwarf2read.c: #include "macrotab.h".
9021 (dwarf_macinfo_buffer): New variable.
9022 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9023 dwarf_macinfo_size.
9024 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9025 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9026 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9027 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9028 dwarf2_macro_spaces_in_definition): New complaints.
9029 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9030 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9031 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9032 the partial symbol table.
9033 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9034 from what's recorded in the partial symbol table.
9035 (read_file_scope): If the compilation unit has a
9036 `DW_AT_macro_info' attribute, read its macro information.
9037 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9038
9039 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9040
9041 Fix PR gdb/546
9042 * ser-tcp.c: Don't include <netinet/udp.h>.
9043
9044 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9045
9046 * MAINTAINERS: Update my email address.
9047
9048 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9049
9050 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9051 include file of the same name.
9052
9053 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9054
9055 * configure.tgt: Mark v850 as multi-arched.
9056 * config/v850/tm-v850.h: Remove file.
9057 * config/v850/v850.mt: Eliminate TM_FILE.
9058
9059 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9060
9061 * v850-tdep.c: Full multi-arch.
9062 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9063 Define GDB_MULTI_ARCH to 2.
9064
9065 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9066
9067 * p-exp.y (current_type): New static variable.
9068 Carries the type of the expression at the position that is parsed.
9069 (push_current_type, pop_current_type): Two new functions. Used
9070 to store/restore current_type in expression on specific tokens.
9071 (search_field): New static variable. Set to one after parsing a point
9072 as at that point only a FIELDNAME token should be searched.
9073 (FIELDNAME): New token. After a point only a token belonging to
9074 current_type type definition is allowed.
9075 (all over token rules): reset and change current_type according
9076 to rules.
9077 (exp '[' rule): insert implicit array index field if
9078 exp is a pascal string type.
9079
9080 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9081
9082 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9083 frame info. Use frame_info's saved_regs instead of matching member
9084 in extra_frame_info throughout.
9085 (v850_frame_init_saved_regs): New function.
9086 (v850_init_extra_frame_info): Move most functionality into
9087 v850_frame_init_saved_regs().
9088 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9089 (v850_frame_find_saved_regs): Remove declaration.
9090 (FRAME_FIND_SAVED_REGS): Remove definition.
9091 (v850_frame_init_saved_regs): Add declaration.
9092 (FRAME_INIT_SAVED_REGS): Add definition.
9093
9094 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9095
9096 * v850-tdep.c: Begin multi-arch'ing v850.
9097 (v850_target_architecture_hook): Remove function.
9098 (v850_gdbarch_init): New function. Add code previously in
9099 v850_target_architecture_hook().
9100 (_initialize_v850_tdep): Don't set target_architecture_hook.
9101 Call register_gdbarch_init() instead.
9102
9103 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9106 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9107 (fixup_class_method_type): Likewise.
9108
9109 2002-05-15 Jim Blandy <jimb@redhat.com>
9110
9111 Add macro structures to GDB's symbol tables. Nobody puts anything
9112 in them yet.
9113 * symtab.h (struct symtab): New member: `macro_table'.
9114 * buildsym.h (pending_macros): New global variable.
9115 * buildsym.c: #include "macrotab.h".
9116 (buildsym_init): Initialize `pending_macros'.
9117 (end_symtab): If we found macro information while reading a CU's
9118 debugging info, do build a symtab structure for it. Make the
9119 symtab point to the macro information, and clear the
9120 `pending_macros' pointer which held it while we were reading the
9121 debug info.
9122 (really_free_pendings): Free any pending macro table.
9123 * objfiles.h (struct objfile): New member: `macro_cache'.
9124 * objfiles.c (allocate_objfile): Set allocate and free functions
9125 for the macro cache's objstack.
9126 (free_objfile): Empty the macro cache's obstack.
9127 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9128 set new allocate and free functions for it.
9129 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9130 free functions for the macro cache's objstack. (Why is this
9131 function building its own objfile?)
9132 * symmisc.c (print_objfile_statistics): Print statistics on the
9133 macro bcache.
9134 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9135
9136 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9137
9138 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9139 (REGISTER_U_ADDR): Delete definition.
9140 (arm_register_u_addr): Delete declaration.
9141
9142 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9143
9144 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9145 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9146
9147 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9148
9149 * regcache.c (register_valid): Revise comments refering to "Not
9150 available" and "unavailable".
9151 * frame.c (frame_register_read): Ditto.
9152 * findvar.c (value_of_register): Ditto.
9153
9154 2002-05-15 Andrew Cagney <cagney@redhat.com>
9155
9156 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9157 (remote-sim.o): Update dependencies.
9158 (d10v-tdep.o): Specify dependencies.
9159 (sim_d10v_h): Define.
9160
9161 2002-05-14 Jim Blandy <jimb@redhat.com>
9162
9163 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9164 * macrotab.c (macro_lookup_inclusion, find_definition,
9165 new_macro_table): Same.
9166
9167 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9168 not `! strcmp ()'. This is a dubious improvement.
9169 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9170
9171 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9172 although it's not necessary, to avoid a warning.
9173
9174 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9177 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9178 TYPE_INSTANCE_FLAGS.
9179 (struct main_type): New.
9180 (struct type): Move most members to struct main_type. Change
9181 cv_type and as_type to new type_chain member. Add instance_flags.
9182 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9183 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9184 (finish_cv_type): Remove prototype.
9185 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9186 Set TYPE_CHAIN.
9187 (alloc_type_instance): New function.
9188 (smash_type): New function.
9189 (make_pointer_type, make_reference_type, make_function_type)
9190 (smash_to_member_type, smash_to_method_type): Call smash_type.
9191 (make_qualified_type): New function.
9192 (make_type_with_address_space): Call make_qualified_type.
9193 (make_cv_type): Likewise.
9194 (finish_cv_type): Remove unnecessary function.
9195 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9196 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9197 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9198 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9199 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9200 * hpread.c (hpread_read_struct_type): Likewise.
9201 * stabsread.c (read_struct_type): Likewise.
9202
9203 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9204
9205 * configure.tgt: Add a catch all sh* target, for cases like
9206 sh[2,3,4]-elf and sh-hms.
9207
9208 2002-05-14 Keith Seitz <keiths@redhat.com>
9209
9210 * event-loop.c (create_file_handler): Don't do anything but
9211 update data when we are given a fd which we are already
9212 monitoring.
9213
9214 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9215
9216 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9217 (update_context): Use __func__ in warnings.
9218
9219 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9220
9221 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9222 and tcp_close to net_open and net_close.
9223 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9224 using UDP if requested. Don't try to disable Nagle on UDP
9225 sockets.
9226 * remote.c (remote_serial_open): New function. Warn about UDP.
9227 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9228
9229 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9230
9231 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9232
9233 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9234
9235 * configure.tgt: Remove sh-hms target.
9236 * MAINTAINERS: Don't list sh-hms as a separate target.
9237
9238 2002-05-13 Jim Blandy <jimb@redhat.com>
9239
9240 Add first preprocessor macro-expansion files.
9241 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9242 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9243 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9244 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9245 (COMMON_OBS): Add macrotab.o, macroexp.o.
9246 (macroexp.o, macrotab.o): New rules.
9247
9248 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9249
9250 * config/m88k/tm-m88k.h: Update copyright.
9251 (m88k_target_write_pc): Declare
9252 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9253 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9254 (SHIFT_INST_REGS): Update definition.
9255 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9256 using old definition of TARGET_WRITE_PC.
9257 * regcache.c (generic_target_write_pc): Delete code handling
9258 NNPC_REGNUM.
9259 * gdbarch.sh (NNPC_REGNUM): Delete.
9260 * gdbarch.h, gdbarch.c: Regenerate.
9261
9262 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9263
9264 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9265 builtin reg number.
9266
9267 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9270 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9271 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9272 access macros.
9273 * c-typeprint.c (cp_type_print_method_args): Likewise.
9274 (c_type_print_args): Likewise.
9275 * d10v-tdep.c (d10v_push_arguments): Likewise.
9276 (d10v_extract_return_value): Likewise.
9277 * expprint.c (print_subexp): Likewise.
9278 * gdbtypes.c (lookup_primitive_typename): Likewise.
9279 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9280 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9281 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9282 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9283 (TYPE_VECTOR): Likewise.
9284 * hpread.c (hpread_read_struct_type)
9285 (fix_static_member_physnames, fixup_class_method_type)
9286 (hpread_type_lookup): Likewise.
9287 * mdebugread.c (parse_symbol, parse_type): Likewise.
9288 * p-lang.c (is_pascal_string_type): Likewise.
9289 * valops.c (hand_function_call): Likewise.
9290 * x86-64-tdep.c (classify_argument): Likewise.
9291
9292 * hpread.c (hpread_read_function_type)
9293 (hpread_read_doc_function_type): Call replace_type.
9294 * dstread.c (create_new_type): Delete.
9295 (decode_dst_structure, process_dst_function): Call alloc_type.
9296 Use type access macros.
9297
9298 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9299
9300 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9301 the're not supported by the current architecture.
9302 (i387_fill_fxsave): Likewise.
9303
9304 2002-05-12 Fred Fish <fnf@redhat.com>
9305
9306 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9307 sect_index_xxx members to index the first slot in section_offsets
9308 if all of the section_offsets are zero.
9309
9310 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9311
9312 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9313 checked in with last change.
9314
9315 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9316
9317 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9318 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9319 config.sub.
9320
9321 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9322
9323 * Makefile.in: Update dependencies.
9324
9325 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9326
9327 * language.c (local_hex_string_custom): Simplify. Do not depend
9328 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9329
9330 * memattr.c (mem_info_command): Replace calls to
9331 longest_local_hex_string and longest_local_hex_string_custom.
9332 * buildsym.c (make_blockvector): Ditto.
9333 * solib.c (info_sharedlibrary_command): Ditto.
9334 * tracepoint.c (tracepoints_info): Ditto.
9335 * symtab.c (print_msymbol_info): Ditto.
9336
9337 * language.c (local_hex_string): Delete.
9338 (local_hex_string_custom): Delete.
9339 (longest_local_hex_string): Rename to local_hex_string.
9340 (longest_local_hex_string_custom): Rename to
9341 local_hex_string_custom.
9342 * language.h (local_hex_string): Change parameter type to LONGEST.
9343 (local_hex_string_custom): Ditto.
9344 (longest_local_hex_string): Delete declaration.
9345 (longest_local_hex_string_custom): Ditto.
9346
9347 * solib.c: Update copyright.
9348 * memattr.c: Update copyright.
9349
9350 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9351
9352 * arch-utils.h (legacy_register_to_value): Declare.
9353 (legacy_value_to_register): Declare.
9354 (legacy_convert_register_p): Declare.
9355 * arch-utils.c (legacy_register_to_value): New function.
9356 (legacy_value_to_register): New function.
9357 (legacy_convert_register_p): New function.
9358
9359 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9360 (VALUE_TO_REGISTER): Define.
9361 (CONVERT_REGISTER_P): Define.
9362 * gdbarch.h, gdbarch.c: Regenerate.
9363
9364 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9365 VALUE_TO_REGISTER.
9366 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9367 CONVERT_REGISTER_P.
9368
9369 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9370 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9371
9372 * Makefile.in: Update dependencies for valops.c.
9373 * valops.c: Include "gdb_assert.h".
9374 (typecmp): Skip THIS parameter to methods.
9375 (find_method_list): Remove static_memfuncp argument,
9376 update callers. Check for stub methods.
9377 (find_value_oload_method_list): Don't set *static_memfuncp.
9378 (find_overload_match): Don't check for stub methods. Assert
9379 that methods are not stubbed. Handle static methods.
9380 (value_find_oload_method_list): Remove static_memfuncp argument.
9381 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9382 to the argument list for static stub methods.
9383 * value.h (value_find_oload_method_list): Update prototype.
9384
9385 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9386
9387 * arch-utils.h (generic_register_size): Declare.
9388 (generic_register_raw_size, generic_register_virtual_size): Delete
9389 declarations.
9390 * arch-utils.c (generic_register_raw_size): Delete.
9391 (generic_register_size): New function.
9392 (generic_register_virtual_size): Delete.
9393
9394 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9395 default generic_register_size.
9396 * gdbarch.h, gdbarch.c: Re-generate.
9397
9398 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9399 register_virtual_size.
9400 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9401 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9402
9403 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9404
9405 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9406 * gdbarch.h, gdbarch.c: Regenerate.
9407 * gnu-v3-abi.c: Update copyright.
9408 (vtable_address_point_offset): Update.
9409 (gnuv3_rtti_type): Update.
9410 (gnuv3_baseclass_offset): Update.
9411 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9412 (init_fetch_link_map_offsets): Update.
9413 * remote.c (get_remote_state): Update.
9414
9415 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9416
9417 * TODO: Remove value_headof/value_from_vtable_info comment.
9418 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9419 * values.c (value_headof, value_from_vtable_info): Delete.
9420 * value.h (value_from_vtable_info): Delete prototype.
9421
9422 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9423
9424 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9425 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9426 $(gdb_regex_h).
9427 (gdb_assert_h): Define.
9428 (gdb_wait_h): Define.
9429 (gdb_regex_h): Define.
9430
9431 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9432
9433 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9434 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9435
9436 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9437
9438 * nbsd-tdep.c: Fix comment.
9439
9440 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9441
9442 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9443 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9444 (nbsd-tdep.o): New dependency list.
9445 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9446 nbsd-tdep.h.
9447 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9448 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9449 * nbsd-tdep.c: New file.
9450 * nbsd-tdep.h: New file.
9451 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9452 nbsd-tdep.h.
9453 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9454 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9455 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9456 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9457
9458 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9459
9460 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9461 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9462 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9463 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9464 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9465 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9466
9467 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9468
9469 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9470 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9471 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9472 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9473 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9474 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9475 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9476
9477 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9478
9479 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9480 fetch_elfcore_registers to...
9481 * i386nbsd-tdep.c: ...here.
9482 (i386nbsd_use_struct_convention): Rename to...
9483 (i386nbsd_aout_use_struct_convention): ...this.
9484 (i386nbsd_supply_reg): New function.
9485 (i386nbsd_fill_reg): New function.
9486 (fetch_core_registers): Use i386nbsd_supply_reg.
9487 (fetch_elfcore_registers): Likewise.
9488 (_initialize_i386nbsd_tdep): New function.
9489 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9490 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9491 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9492 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9493 (i386nbsd_aout_use_struct_convention): ...this.
9494
9495 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9498 (store_inferior_registers): Use shnbsd_fill_reg.
9499 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9500 sh_nbsd_supply_register): Collapse into...
9501 (shnbsd_supply_reg): ...this.
9502 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9503 (shnbsd_fill_reg): ...this.
9504 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9505 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9506 (fetch_core_registers): Use shnbsd_supply_reg.
9507 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9508 (sh_nbsd_core_fns): Rename to...
9509 (shnbsd_core_fns): ...this.
9510 (sh_nbsd_elfcore_fns): Rename to...
9511 (shnbsd_elfcore_fns): ...this.
9512 (sh_nbsd_init_abi): Rename to...
9513 (shnbsd_init_abi): ...this.
9514 (_initialize_sh_nbsd_tdep): Rename to...
9515 (_initialize_shnbsd_tdep): ...this.
9516 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9517 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9518 sh_nbsd_fill_register): Remove prototypes.
9519 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9520
9521 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9522
9523 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9524 (i387-nat.o): Delete dependency list.
9525 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9526 (x86-64-linux-nat.o): Likewise.
9527 * i387-nat.c: Delete file, moving contents to...
9528 * i387-tdep.c: ...here.
9529 * i387-nat.h: Rename...
9530 * i387-tdep.h: ...to this.
9531 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9532 * i386-linux-nat.c: Likewise.
9533 * i386bsd-nat.c: Likewise.
9534 * i386gnu-nat.c: Likewise.
9535 * i386nbsd-nat.c: Likewise.
9536 * i386v4-nat.c: Likewise.
9537 * x86-64-linux-nat.c: Likewise.
9538 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9539 * config/i386/go32.mh (NATDEPFILES): Likewise.
9540 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9541 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9542 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9543 * config/i386/linux.mh (NATDEPFILES): Likewise.
9544 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9545 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9546 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9547 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9548
9549 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9550
9551 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9552 (alphanbsd-nat.o): Remove dependency list.
9553 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9554 * alphanbsd-nat.c: Delete. Contents moved to...
9555 * alphanbsd-tdep.c: ...here.
9556 (_initialize_alphanbsd_tdep): Register core functions.
9557 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9558
9559 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9560
9561 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9562 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9563 (alphanbsd-nat.o): Likewise.
9564 (alphabsd-tdep.o): New dependency list.
9565 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9566 (fill_gregset): Use alphabsd_fill_reg.
9567 (supply_fpregset): Use alphabsd_supply_fpreg.
9568 (fill_fpregset): Use alphabsd_fill_fpreg.
9569 (fetch_inferior_registers): Use struct reg and struct fpreg
9570 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9571 and alphabsd_supply_fpreg.
9572 (store_inferior_registers): Use struct reg and struct fpreg
9573 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9574 and alphabsd_fill_fpreg.
9575 * alphabsd-tdep.c: New file.
9576 * alphabsd-tdep.h: New file.
9577 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9578 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9579 alphabsd_supply_fpreg.
9580 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9581 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9582
9583 2002-05-11 Eric Christopher <echristo@redhat.com>
9584
9585 * mips-tdep.c (mips_double_register_type): Fix thinko.
9586 (mips_single_register_type): Ditto.
9587 * MAINTAINERS: Add self.
9588
9589 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9590
9591 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9592 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9593 right thing on architectures with different endianness and/or
9594 integer sizes.
9595
9596 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9597
9598 From Christian Limpach <chris@Pin.LU>
9599 * configure.in: Change sed expression which comments out
9600 NATDEPFILES to also comment out continuation lines.
9601 * configure: Regenerate.
9602
9603 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9604
9605 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9606 big patch.
9607
9608 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9609
9610 * sh-tdep.c: Include correct file.
9611
9612 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9613
9614 New support for sh64-elf (sh5) target.
9615
9616 * configure.tgt: For sh64-elf target, default to sh-elf.
9617
9618 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9619 (struct gdbarch_tdep): Add new fields for new registers and ABI
9620 info.
9621
9622 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9623 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9624 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9625 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9626 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9627 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9628 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9629 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9630 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9631 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9632 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9633 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9634 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9635 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9636 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9637 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9638 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9639 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9640 sign_extend, sh64_nofp_frame_init_saved_regs,
9641 sh64_init_extra_frame_info, sh64_get_saved_register,
9642 sh64_extract_struct_value_address, sh64_pop_frame,
9643 sh64_push_arguments, sh64_extract_return_value,
9644 sh64_store_return_value, sh64_show_media_regs,
9645 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9646 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9647 sh_sh64_register_virtual_type,
9648 sh_sh64_register_convert_to_virtual,
9649 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9650 sh64_register_read, sh64_pseudo_register_write,
9651 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9652 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9653 sh64_do_pseudo_register, sh_compact_do_registers_info,
9654 sh64_do_registers_info, sh_gdbarch_init): New functions.
9655
9656 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9657
9658 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9659
9660 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9661
9662 * linespec.c (decode_line_1): Check for a double quote after
9663 a filename correctly.
9664
9665 2002-05-10 Jim Blandy <jimb@redhat.com>
9666
9667 Properly track the size of the current objfile's .debug_line section.
9668 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9669 (DWARF_LINE_SIZE): New macro.
9670 (dwarf2_build_psymtabs_hard): Record the line section's size in
9671 the partial symbol table.
9672 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9673 symbol table.
9674
9675 2002-05-10 Petr Sorfa <petrs@caldera.com>
9676
9677 * ia64-tdep.c: Handle breakpoints on L instruction type
9678 in MLX instruction bundle by moving the breakpoint to
9679 the third slot (X instruction type) as L holds only data.
9680
9681 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9682
9683 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9684 (process_one_symbol): Complain about discarding local symbols
9685 due to a misplaced N_LBRAC entry.
9686
9687 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9688
9689 From Daniel Berlin <dan@cgsoftware.com>
9690 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9691 decrease the depth we are at, in the case of templates.
9692
9693 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9694
9695 * mips-tdep.c (mips_float_register_type): New function.
9696 (mips_double_register_type): New function.
9697 (mips_print_register): Use them.
9698 (do_fp_register_row): Likewise.
9699
9700 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9701
9702 * signals/signals.c (signals): Remove conditional compilation around
9703 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9704 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9705
9706 2002-05-09 Michael Snyder <msnyder@redhat.com>
9707
9708 * remote-rdp.c (remote_rdp_can_run): Remove.
9709
9710 2002-05-09 Tom Tromey <tromey@redhat.com>
9711
9712 * jv-valprint.c (java_val_print): Handle `char' as a special case
9713 of TYPE_CODE_INT.
9714
9715 2002-05-09 Michael Snyder <msnyder@redhat.com>
9716
9717 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9718 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9719 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9720 str r(0123),[sp,#nn].
9721 (arm_skip_prologue): Ditto. Also make disassembly
9722 order-independent by placing it in a loop.
9723
9724 2002-05-06 Michael Snyder <msnyder@redhat.com>
9725
9726 * stabsread.c (read_type): Add recognition for new attribute:
9727 "@V;" means that an array type is actually a vector.
9728 This is analogous to the vector flag that's been added to dwarf2.
9729
9730 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9731
9732 * i386-tdep.h (i386_abi): New enum.
9733 (struct gdbarch_tdep): Replace os_ident member with abi.
9734 (i386_gdbarch_register_os_abi): New prototype.
9735 * i386-tdep.c (i386_abi_names): New array.
9736 (process_note_abi_tag_sections): Removed.
9737 (process_note_sections): New function.
9738 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9739 (struct i386_abi_handler): New struct.
9740 (i386_abi_handler_list): New variable.
9741 (i386_gdbarch_register_os_abi): New function.
9742 (i386_gdbarch_init): Adapt for the changes given above.
9743
9744 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9745
9746 * gregset.h: Say "GNU/Linux".
9747
9748 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9749
9750 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9751 (build_gdbtypes): Build builtin_type_v2_float.
9752 (_initialize_gdbtypes): Register new builtin type.
9753
9754 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9755
9756 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9757 (clear_gdbarch_swap): New function.
9758 (initialize_non_multiarch): Call.
9759 (gdbarch_update_p): Before calling init(), swap out and clear the
9760 existing architecture.
9761 * gdbarch.c: Regenerate.
9762
9763 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9766 alphanbsd-tdep.c.
9767
9768 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9769
9770 * sh-nbsd-nat.c: Rename to...
9771 * shnbsd-nat.c: ...this.
9772 * sh-nbsd-tdep.c: Rename to...
9773 * shnbsd-tdep.c: ...this.
9774 * sh-nbsd-tdep.h: Rename to...
9775 * shnbsd-tdep.h: ...this.
9776 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9777 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9778
9779 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9782 concatenation for command help messages.
9783
9784 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9785
9786 * NEWS: Note new sh*-*-netbsdelf* configuration.
9787 * configure.host: Set gdb_host_cpu to sh for all sh*.
9788 (sh*-*-netbsdelf*): New host.
9789 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9790 (sh*-*-netbsdelf*): New target.
9791 * sh-nbsd-nat.c: New file.
9792 * sh-nbsd-tdep.c: New file.
9793 * sh-nbsd-tdep.h: New file.
9794 * config/sh/nbsd.mh: New file.
9795 * config/sh/nbsd.mt: New file.
9796 * config/sh/nm-nbsd.h: New file.
9797 * config/sh/tm-nbsd.h: New file.
9798
9799 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9800
9801 * sh-tdep.c (sh_osabi_names): Declare.
9802 (process_note_abi_tag_sections): New function.
9803 (get_elfosabi): Ditto.
9804 (sh_gdbarch_register_os_abi): Ditto.
9805 (sh_dump_tdep): Ditto.
9806 _initialize_sh_tdep): Use gdbarch_register to register
9807 sh_gdbarch_init and sh_dump_tdep.
9808 * config/sh/tm-sh.h (sh_osabi): Declare.
9809 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9810
9811 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9812
9813 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9814 (thumb_scan_prologue): Ditto.
9815 (arm_find_callers_reg): Ditto.
9816 (arm_frame_chain): Ditto.
9817 (arm_init_extra_frame_info): Ditto.
9818 (arm_frame_saved_pc): Ditto.
9819 (arm_pop_frame): Ditto.
9820 (arm_push_return_address): New function.
9821 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9822 call_dummy_location, call_dummy_breakpoint_offset_p,
9823 call_dummy_breakpoint_offset, call_dummy_p,
9824 call_dummy_stack_adjust_p, call_dummy_words,
9825 sizeof_call_dummy_words, call_dummy_start_offset,
9826 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9827 call_dummy_address, push_return_address and push_dummy_frame for
9828 generic dummy frames.
9829
9830 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9831
9832 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9833 size computation for alloca.
9834 (sh_fp_frame_init_saved_regs): Likewise.
9835
9836 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9837
9838 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9839 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9840 * arm-tdep.c (arm_store_return_value): Use them.
9841 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9842 * remote-rdp.c (remote_rdp_fetch_register): Use
9843 ARM_MAX_REGISTER_RAW_SIZE.
9844 (remote_rdp_store_register): Likewise.
9845
9846 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9847
9848 * dwarf2cfi.c: Code cleanup, removed unused variables,
9849 added default labels to switch {} statements.
9850 * x86-64-tdep.c: Ditto.
9851 * x86-64-linux-nat.c: Ditto.
9852
9853 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9854
9855 * solib.h: Protect against multiple inclusion.
9856
9857 2002-05-06 Jim Blandy <jimb@redhat.com>
9858
9859 Add first preprocessor macro-expansion files.
9860 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9861 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9862 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9863 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9864 (COMMON_OBS): Add macrotab.o, macroexp.o.
9865 (macroexp.o, macrotab.o): New rules.
9866
9867 Separate the job of reading the line number info statement program
9868 header (...expialidocious) out into its own function.
9869 * dwarf2read.c (struct line_head, struct filenames, struct
9870 directories): Replace with...
9871 (struct line_header): New structure, containing the full
9872 contents of the statement program header, including the
9873 include directory and file name tables.
9874 (read_file_scope): If we have line number info, instead of just
9875 calling dwarf_decode_lines to do all the work, call
9876 dwarf_decode_line_header first to get a `struct line_header'
9877 containing the data in the statement program header, and then
9878 pass that to dwarf_decode_lines, which will pick up where that
9879 left off. Be sure to clean up the `struct line_header' object.
9880 (dwarf_decode_line_header, free_line_header, add_include_dir,
9881 add_file_name): New functions.
9882 (dwarf_decode_lines): Move all the code to read the statement
9883 program header into dwarf_decode_line_header. Take the line
9884 header it built as the first argument, instead of the offset to
9885 the compilation unit's line number info. Use the new `struct
9886 line_header' type instead of the old structures. No need to do
9887 cleanups here now, since we don't allocate anything.
9888 (dwarf2_statement_list_fits_in_line_number_section,
9889 dwarf2_line_header_too_long): New complaints.
9890
9891 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9892
9893 * gdbtypes.c (init_vector_type): New function.
9894 (build_builtin_type_vec128): Simplify the representation of SIMD
9895 registers.
9896 (build_gdbtypes): Initialize new builtin vector types.
9897 (_initialize_gdbtypes): Register new vector types with gdbarch.
9898 (builtin_type_v4_float, builtin_type_v4_int32,
9899 builtin_type_v8_int16, builtin_type_v16_int8,
9900 builtin_type_v2_int32, builtin_type_v4_int16,
9901 builtin_type_v8_int8): New (renamed) SIMD types.
9902
9903 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9904
9905 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9906 (i387_fill_fxsave): Likewise.
9907
9908 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9909
9910 * alpha-tdep.c (alpha_extract_return_value): Don't use
9911 non-constant array size in prototype.
9912
9913 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9914
9915 From Brian Taylor <briant at model dot com>:
9916 * ui-out.c (ui_out_field_core_addr): Use the function
9917 longest_local_hex_string_custom'to format addresses > 32 bits
9918 wide.
9919
9920 * ui-out.c (ui_out_field_core_addr): Update comment.
9921
9922 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9923
9924 * stack.c (select_and_print_frame): Make static. Delete the
9925 parameter `level'.
9926 (func_command): Update call.
9927 (select_frame_command): Delete code computing the frame level.
9928 * frame.h (select_and_print_frame): Delete declaration.
9929
9930 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9931
9932 * sparc-tdep.c (sparc_get_saved_register): Comment why
9933 get_prev_frame call is safe.
9934
9935 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9936
9937 * frame.h (select_frame): Delete level parameter.
9938 * stack.c (select_frame): Update. Use frame_relative_level to
9939 obtain the frame's level.
9940 (select_and_print_frame): Update call.
9941 (select_frame_command): Ditto.
9942 (up_silently_base): Ditto.
9943 (down_silently_base): Ditto.
9944 * ocd.c (ocd_start_remote): Ditto.
9945 * remote-rdp.c (remote_rdp_open): Ditto.
9946 * remote-mips.c (mips_initialize): Ditto.
9947 (common_open): Ditto.
9948 * remote-e7000.c (e7000_start_remote): Ditto.
9949 * m3-nat.c (select_thread): Ditto.
9950 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9951 (child_get_current_exception_event): Ditto.
9952 * varobj.c (varobj_create): Ditto.
9953 (varobj_update): Ditto.
9954 (c_value_of_root): Ditto.
9955 * tracepoint.c (finish_tfind_command): Ditto.
9956 * corelow.c (core_open): Ditto.
9957 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9958 * thread.c (info_threads_command): Ditto.
9959 (switch_to_thread): Ditto.
9960 * infrun.c (normal_stop): Ditto.
9961 (restore_selected_frame): Ditto.
9962 (restore_inferior_status): Ditto.
9963 * breakpoint.c (insert_breakpoints): Ditto.
9964 (watchpoint_check): Ditto.
9965 (bpstat_stop_status): Ditto.
9966 (do_enable_breakpoint): Ditto.
9967 * blockframe.c (flush_cached_frames): Ditto.
9968 (reinit_frame_cache): Ditto.
9969
9970 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9971
9972 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9973 maintainer.
9974
9975 2002-05-04 Jim Blandy <jimb@redhat.com>
9976
9977 * gdbtypes.c (replace_type): Doc fix.
9978
9979 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9980
9981 * valprint.c (strcat_longest): Delete commented out function.
9982 Update copyright.
9983
9984 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9985
9986 * MAINTAINERS: Mark a29k as deleted.
9987 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9988 Move new configurations to the top.
9989 * configure.tgt: Remove a29k.
9990 * config/a29k/tm-vx29k.h: Delete.
9991 * config/a29k/vx29k.mt: Delete.
9992 * config/a29k/tm-a29k.h: Delete.
9993 * config/a29k/a29k-udi.mt: Delete.
9994 * config/a29k/a29k.mt: Delete.
9995 * a29k-tdep.c: Delete.
9996 * remote-udi.c: Delete.
9997 * remote-mm.c: Delete.
9998 * remote-eb.c: Delete.
9999 * remote-adapt.c: Delete.
10000 * Makefile.in: Remove obsolete code.
10001 * config/s390/s390x.mt: Ditto.
10002 * config/s390/s390.mt: Ditto.
10003 * config/sparc/sparclynx.mh: Ditto.
10004 * config/sparc/linux.mh: Ditto.
10005 * config/pa/hppaosf.mh: Ditto.
10006 * config/pa/hppabsd.mh: Ditto.
10007 * config/ns32k/nbsd.mt: Ditto.
10008 * config/mips/vr5000.mt: Ditto.
10009 * config/m68k/sun3os4.mh: Ditto.
10010 * config/m68k/nbsd.mt: Ditto.
10011 * config/m68k/m68klynx.mh: Ditto.
10012 * config/m32r/m32r.mt: Ditto.
10013 * config/i386/x86-64linux.mt: Ditto.
10014 * config/i386/nbsdelf.mt: Ditto.
10015 * config/i386/nbsd.mt: Ditto.
10016 * config/i386/i386lynx.mh: Ditto.
10017
10018 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10019
10020 * target.c (debug_print_register): New function. Handle oversize
10021 registers.
10022 (debug_to_fetch_registers): Call.
10023 (debug_to_store_registers): Call.
10024
10025 2002-05-03 Jim Blandy <jimb@redhat.com>
10026
10027 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10028 (read_type): Doc fix.
10029 * gdbtypes.c (replace_type): Doc fix.
10030
10031 * stabsread.c (multiply_defined_struct): New complaint.
10032 (read_struct_type): If the type we were passed isn't empty, or
10033 incomplete, don't read the new struct type into it; complain,
10034 and return the original type unchanged. Take a new `type_code'
10035 argument, which is the type code for the new type.
10036 (read_type): Rather than storing the type's type code here, pass
10037 it as an argument to read_struct_type, and let that take care of
10038 storing it. That way, we don't overwrite the original type code,
10039 so read_struct_type can use it to decide whether we're overwriting
10040 something we shouldn't.
10041 (complain_about_struct_wipeout): New function.
10042
10043 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10044
10045 * gdbarch.sh: Assert that gdbarch is non-NULL.
10046 * gdbarch.c: Regenerate.
10047
10048 2002-05-03 Jason Merrill <jason@redhat.com>
10049
10050 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10051 and return NULL.
10052
10053 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10054
10055 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10056 (x86_64_dwarf2gdb_regno_map_length),
10057 (x86_64_dwarf2_reg_to_regnum): Added.
10058 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10059 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10060 (_initialize_x86_64_tdep): Synced with the change above.
10061 (x86_64_skip_prologue): Reformulated message.
10062
10063 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10064
10065 * f-exp.y: Also use new prev_lexptr variable
10066 to improve error reporting. Based on Michael Snyder
10067 2002-04-24 dated patch to c-exp.y.
10068 * jv-exp.y: Likewise.
10069 * m2-exp.y: Likewise.
10070
10071 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10072
10073 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10074 we are dealing with vectors.
10075
10076 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10077
10078 * config/m68k/tm-nbsd.h: Obvious fix,
10079 correct machine name.
10080
10081 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10082
10083 * p-typeprint.c (pascal_type_print_base): Add support
10084 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10085
10086 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10087
10088 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10089 for fondamental pascal 'char' type.
10090
10091 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10092
10093 * p-lang.h (is_pascal_string_type): Declaration changed,
10094 new sixth argument of type char ** added.
10095 * p-lang.c (is_pascal_string_type): Implementation
10096 changed. Args length_pos, length_size, string_pos, char_size
10097 can now be NULL. New argument arrayname set to the field
10098 name of the char array. Return value set to char array
10099 field index plus one.
10100 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10101 is_pascal_string_type function.
10102
10103 2002-05-02 Andrew Cagney <cagney@redhat.com>
10104
10105 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10106 <cagney@redhat.com> change.
10107 * gdbarch.c: Regenerate.
10108
10109 2002-05-02 Andrew Cagney <cagney@redhat.com>
10110
10111 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10112 before probing for a new one. Detect errorenous gdbarch_init
10113 functions.
10114 * gdbarch.c: Regenerate.
10115
10116 2002-05-01 Andrew Cagney <cagney@redhat.com>
10117
10118 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10119 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10120 * config/v850/tm-v850.h: Ditto. Update copyright.
10121
10122 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10123
10124 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10125 current_gdbarch.
10126
10127 2002-04-30 Michael Snyder <msnyder@redhat.com>
10128
10129 * arm-tdep.c: Whitespace clean-ups.
10130 (arm_skip_prologue): Fix thinko; two lines
10131 should have been removed as part of 4/24 change.
10132
10133 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10134
10135 * rs6000-tdep.c: Added comment describing how fpscr register
10136 numbers were chosen.
10137
10138 2002-04-30 Michael Snyder <msnyder@redhat.com>
10139
10140 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10141
10142 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10143
10144 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10145 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10146 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10147
10148 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10149
10150 From Louis Hamilton <hamilton@redhat.com>:
10151 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10152 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10153 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10154 not bfd-private xcoff data, to determine wordsize.
10155 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10156
10157 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10158
10159 GDB 5.2 released from 5.2 branch.
10160
10161 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10162
10163 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10164 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10165 (x86_64_register_info_table): Added comments with register numbers.
10166
10167 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10168
10169 * rs6000-tdep.c (rs6000_extract_return_value,
10170 rs6000_store_return_value): Handle returning vectors.
10171 (rs6000_gdbarch_init): Use
10172 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10173 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10174 New function.
10175 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10176 vectors.
10177 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10178 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10179
10180 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10181
10182 * hpread.c (hpread_psymtab_to_symtab_1,
10183 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10184 with fprintf_unfiltered (gdb_stderr,...).
10185
10186 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10187
10188 * remote-array.c (printf_monitor, write_monitor,
10189 array_insert_breakpoint, array_remove_breakpoint ):
10190 Replace fprintf (stderr,...
10191 with fprintf_unfiltered (gdb_stderr,....
10192 * remote-es.c: Likewise.
10193 * remote-os9k.c: Likewise.
10194 * remote-st.c: Likewise.
10195
10196 2002-04-28 Andreas Schwab <schwab@suse.de>
10197
10198 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10199 linux-proc.o and gcore.o.
10200
10201 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10202
10203 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10204 code without frame pointers.
10205
10206 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10207
10208 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10209 ON_STACK is needed.
10210
10211 2002-04-26 Ben Elliston <bje@redhat.com>
10212
10213 * target.c (do_xfer_memory): Correct reference to the new option
10214 "trust-readonly-sections".
10215
10216 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10217
10218 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10219 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10220 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10221 vectors.
10222 (read_array_type): Record the fact that this array type is really a
10223 vector (i.e. are passed in by value).
10224
10225 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10226
10227 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10228 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10229 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10230 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10231 * alpha-linux-tdep.c: Include frame.h.
10232 (alpha_linux_sigcontext_addr): New function.
10233 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10234 alpha_linux_sigcontext_addr.
10235 * alpha-osf1-tdep.c: Include gdbcore.h.
10236 (alpha_osf1_sigcontext_addr): New function.
10237 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10238 alpha_osf1_sigcontext_addr.
10239 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10240 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10241
10242 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10243
10244 * stack.c (selected_frame_level):
10245 (select_frame): Do not set selected_frame_level.
10246 * frame.h (selected_frame_level): Delete declaration.
10247
10248 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10249
10250 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10251 convert_from_func_ptr-addr when AIX / PowerOpen.
10252
10253 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10254
10255 * valops.c (hand_function_call): Call
10256 generic_save_call_dummy_addr.
10257 * frame.h (generic_save_call_dummy_addr): Declare.
10258 * blockframe.c (struct dummy_frame): Add fields call_lo and
10259 call_hi.
10260 (generic_find_dummy_frame): Check for PC in range call_lo to
10261 call_hi instead of entry_point_address.
10262 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10263 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10264 (generic_save_call_dummy_addr): New function.
10265
10266 2002-04-24 David S. Miller <davem@redhat.com>
10267
10268 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10269 sparc_skip_prologue.
10270 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10271 information to find prologue when possible.
10272 (sparc_prologue_frameless_p): Call examine_prologue directly.
10273 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10274 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10275 second argument.
10276 (SKIP_PROLOGUE): Likewise.
10277
10278 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10279
10280 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10281 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10282 indicate that the condition it was testing is always true.
10283 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10284 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10285 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10286
10287 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10288
10289 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10290 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10291 tdep->jb_pc and tdep->jb_elt_size.
10292 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10293 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10294 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10295 * alpha-nat.c (get_longjmp_target): Remove.
10296 (JB_ELEMENT_SIZE): Ditto.
10297 (JB_PC): Ditto.
10298 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10299 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10300 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10301 to alpha_get_longjmp_target.
10302 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10303 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10304 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10305
10306 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10307
10308 * README: Update to GDB 5.2.
10309
10310 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10311
10312 * gdbarch.sh (LC_ALL): Set to `c'.
10313
10314 2002-04-25 Theodore A. Roth <troth@verinet.com>
10315
10316 * avr-tdep.c: Ran through gdb_indent.sh.
10317
10318 2002-04-25 Theodore A. Roth <troth@verinet.com>
10319
10320 * MAINTAINERS: Add myself as AVR maintainer.
10321 * NEWS: Note new target avr.
10322
10323 2002-04-25 Theodore A. Roth <troth@verinet.com>
10324
10325 * Makefile.in: Add support for AVR target.
10326 * configure.tgt: Add support for AVR target.
10327 * avr-tdep.c: New file
10328 * config/avr/avr.mt: New file.
10329
10330 2002-04-25 Theodore A. Roth <troth@verinet.com>
10331
10332 * MAINTAINERS: Add myself to write-after-approval.
10333
10334 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10335
10336 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10337 with fprintf_unfiltered (gdb_stderr,....
10338
10339 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10340
10341 Fix PR gdb/508.
10342 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10343
10344 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10345
10346 * p-exp.y: Also use new prev_lexptr variable
10347 to improve error reporting. Based on Michael Snyder
10348 2002-04-24 dated patch to c-exp.y.
10349
10350 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10351
10352 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10353 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10354 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10355 to 0.
10356 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10357 and struct value.
10358 (FUNCTION_START_OFFSET): Remove.
10359 (BREAKPOINT): Ditto.
10360
10361 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10362
10363 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10364 * NEWS: Ditto.
10365
10366 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10367
10368 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10369 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10370 alpha_linux_pc_in_sigtramp.
10371 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10372 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10373 alpha_osf1_pc_in_sigtramp.
10374 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10375 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10376 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10377 alphafbsd_pc_in_sigtramp.
10378 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10379 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10380 alphanbsd_pc_in_sigtramp.
10381 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10382 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10383
10384 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10385
10386 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10387
10388 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10389
10390 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10391 alphanbsd-tdep.c.
10392 (alphanbsd-nat.o): New dependency list.
10393 (alphanbsd-tdep.o): Ditto.
10394 * NEWS: Note new native NetBSD/alpha configuration.
10395 * alphanbsd-nat.c: New file.
10396 * alphanbsd-tdep.c: Ditto.
10397 * configure.host (alpha*-*-netbsd*): New host.
10398 * configure.tgt (alpha*-*-netbsd*): New target.
10399 * config/alpha/nbsd.mh: New file.
10400 * config/alpha/nbsd.mt: Ditto.
10401 * config/alpha/nm-nbsd.h: Ditto.
10402 * config/alpha/tm-nbsd.h: Ditto.
10403
10404 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10405
10406 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10407 (alpha-osf1-tdep.o): New dependency list.
10408 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10409 and skip_sigtramp_frame members.
10410 * alpha-linux-tdep.c: Include gdbcore.h.
10411 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10412 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10413 * alpha-osf1-tdep.c: New file.
10414 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10415 alpha-osf1-dep.c.
10416 (alpha_frame_past_sigtramp_frame): New function.
10417 (alpha_dynamic_sigtramp_offset): Ditto.
10418 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10419 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10420 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10421 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10422 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10423 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10424 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10425 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10426 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10427 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10428 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10429 to find_solib_trampoline_target.
10430 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10431 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10432 (SKIP_TRAMPOLINE_CODE): Remove.
10433 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10434 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10435 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10436 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10437 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10438 (PROC_SIGTRAMP_MAGIC): Ditto.
10439 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10440 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10441 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10442 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10443 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10444
10445 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10446
10447 * NEWS: Note that Alpha targets are now multi-arch.
10448
10449 2002-04-24 Michael Snyder <msnyder@redhat.com>
10450
10451 * parser-defs.h (prev_lexptr): New external variable.
10452 * parse.c (parse_exp_1): Set prev_lexptr to null before
10453 calling the language-specific parser.
10454 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10455 (yyerror): Use prev_lexptr in error reporting.
10456
10457 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10458
10459 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10460 * gregset.h: If FILL_FPXREGSET is defined, provide
10461 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10462 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10463 is defined, call fill_fpxregset.
10464
10465 2002-04-24 Roland McGrath <roland@frob.com>
10466
10467 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10468 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10469 (supply_gregset, supply_fpregset): New functions.
10470
10471 * gnu-nat.c (gnu_find_memory_regions): New function.
10472 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10473 (gnu_xfer_memory): Add a cast.
10474
10475 2002-04-24 Michael Snyder <msnyder@redhat.com>
10476
10477 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10478 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10479 of argument regs ("str r(0123), [r11, #-nn"]).
10480 (arm_skip_prologue): Better handling for frameless functions.
10481 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10482 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10483
10484 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10485
10486 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10487 NUM_PSEUDO_REGS can be used.
10488
10489 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10490
10491 * arch-utils.h: Update copyright.
10492
10493 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10494 * gdbarch.h, gdbarch.c: Re-generate.
10495
10496 * inferior.h (IN_SIGTRAMP): Delete definition.
10497 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10498 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10499
10500 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10501 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10502 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10503 (find_proc_framesize): Ditto.
10504 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10505 (alpha_init_extra_frame_info): Ditto.
10506 * infrun.c (handle_inferior_event): Ditto.
10507 (handle_inferior_event): Ditto.
10508 (check_sigtramp2): Ditto.
10509 * blockframe.c (create_new_frame): Ditto.
10510 (get_prev_frame): Ditto.
10511 * ppc-linux-tdep.c: Update comments.
10512 * i386-linux-tdep.c: Update comments.
10513 * breakpoint.c (bpstat_what): Update comment.
10514
10515 2002-04-24 David S. Miller <davem@redhat.com>
10516
10517 * i960-tdep.c (register_in_window_p): New function.
10518 (i960_find_saved_register): Use it instead of
10519 REGISTER_IN_WINDOW_P.
10520 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10521
10522 * symtab.h (find_stab_function_addr): Kill extern.
10523 * minsyms.c (find_stab_function_addr): Remove from here...
10524 * dbxread.c: ... to here, and mark it static.
10525
10526 2002-04-20 David S. Miller <davem@redhat.com>
10527
10528 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10529 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10530
10531 2002-04-21 David S. Miller <davem@redhat.com>
10532
10533 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10534 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10535 (vx_write_register): Likewise.
10536
10537 2002-04-23 J. Brobecker <brobecker@gnat.com>
10538
10539 * source.c (is_regular_file): New function.
10540 (openp): Check wether file to open is a regular file
10541 to avoid opening directories.
10542
10543 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10544
10545 * findvar.c (extract_signed_integer): Cast printf argument
10546 to suppress format warning.
10547 (extract_unsigned_integer): Likewise.
10548 * infcmd.c (registers_info): Likewise.
10549 * top.c (get_prompt_1): Likewise.
10550 * valops.c (value_assign): Likewise.
10551 * valprint.c (print_decimal): Likewise.
10552
10553 2002-04-22 H.J. Lu (hjl@gnu.org)
10554
10555 * c-exp.y (typebase): Support
10556
10557 [long|long long|short] [signed|unsigned] [int|]
10558
10559 and
10560
10561 signed [long|long long|short] int
10562
10563 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10564
10565 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10566 and vax-tdep.h.
10567 * vax-tdep.h: New file.
10568 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10569 Make several routines static.
10570 (vax_get_saved_register): New function.
10571 (vax_gdbarch_init): New function.
10572 (_initialize_vax_tdep): Register vax_gdbarch_init.
10573 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10574 Remove macros now under the control of gdbarch.
10575
10576 2002-04-22 Michael Snyder <msnyder@redhat.com>
10577
10578 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10579 Some whitespace and coding standards tweaks.
10580
10581 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10582
10583 * vax-tdep.c: Include regcache.h.
10584 (vax_call_dummy_words): New.
10585 (sizeof_vax_call_dummy_words): New.
10586 (vax_fix_call_dummy): New function.
10587 (vax_saved_pc_after_call): Ditto.
10588 * config/vax/tm-vax.h: Don't include regcache.h.
10589 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10590 (CALL_DUMMY): Remove.
10591 (CALL_DUMMY_WORDS): Define.
10592 (SIZEOF_CALL_DUMMY_WORDS): Define.
10593 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10594
10595 2002-04-18 Michael Snyder <msnyder@redhat.com>
10596
10597 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10598
10599 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10600
10601 * vax-tdep.c (vax_frame_chain): New function.
10602 (vax_push_dummy_frame): Ditto.
10603 (vax_pop_frame): Ditto.
10604 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10605 (FRAMELESS_FUNCTION_INVOCATION): Use
10606 generic_frameless_function_invocation_not.
10607 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10608 (POP_FRAME): Use vax_pop_frame.
10609
10610 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10611
10612 * vax-tdep.c (vax_store_struct_return): New function.
10613 (vax_extract_return_value): Ditto.
10614 (vax_store_return_value): Ditto.
10615 (vax_extract_struct_value_address): Ditto.
10616 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10617 vax_store_struct_return.
10618 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10619 (STORE_RETURN_VALUE): Use vax_store_return_value.
10620 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10621
10622 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10623
10624 * vax-tdep.c (vax_frame_saved_pc): New function.
10625 (vax_frame_args_address_correct): Ditto.
10626 (vax_frame_args_address): Ditto.
10627 (vax_frame_locals_address): Ditto.
10628 (vax_frame_num_args): Move code to be in proximity to
10629 other frame-related functions.
10630 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10631 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10632 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10633 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10634 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10635
10636 2002-04-22 H.J. Lu (hjl@gnu.org)
10637
10638 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10639 includedir.
10640
10641 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10642
10643 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10644 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10645 (FRAME_INIT_SAVED_REGS): New macro.
10646
10647 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10648
10649 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10650
10651 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10652
10653 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10654 where needed.
10655 (fetch_osf_core_registers): Likewise.
10656 (supply_gregset): Likewise.
10657
10658 2002-04-22 J. Brobecker <brobecker@gnat.com>
10659
10660 * symfile.h (get_section_index): Define.
10661 * symfile.c (get_section_index): New function.
10662 * mdebugread.c (SC_IS_SBSS): New macro.
10663 (SC_IS_BSS): Return true for the scBss storage class only, as
10664 the scSBss storage class refers to the .sbss section.
10665 (parse_partial_symbols): Discard the symbols which associated
10666 section does not exist.
10667 Make sure to use the .sbss section index for symbols which
10668 storage class is scBss, rather than using the .bss section index.
10669
10670 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10671
10672 * vax-tdep.c: Update copyright years.
10673 (vax_register_name): New function.
10674 (vax_register_byte): Ditto.
10675 (vax_register_raw_size): Ditto.
10676 (vax_register_virtual_size): Ditto.
10677 (vax_register_virtual_type): Ditto.
10678 * config/vax/tm-vax.h: Update copyright years.
10679 (REGISTER_NAMES): Remove.
10680 (REGISTER_NAME): Define.
10681 (REGISTER_BYTE): Use vax_register_byte.
10682 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10683 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10684 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10685
10686 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10687
10688 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10689 declaration
10690 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10691
10692 2002-04-21 David S. Miller <davem@redhat.com>
10693
10694 * arch-utils.c (generic_prologue_frameless_p): Kill
10695 SKIP_PROLOGUE_FRAMELESS_P code.
10696 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10697 references.
10698 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10699 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10700 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10701 references.
10702 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10703 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10704 (sparc_gdbarch_init): Pass it to
10705 set_gdbarch_prologue_frameless_p.
10706
10707 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10708
10709 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10710 (alphabsd-nat.o): New dependency list.
10711
10712 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10713
10714 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10715 alphafbsd-tdep.c.
10716 (alpha-linux-tdep.o): New dependency list.
10717 (alphafbsd-tdep.o): Likewise.
10718
10719 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10720
10721 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10722 to here...
10723 * alpha-tdep.c: ...from here.
10724 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10725
10726 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10727
10728 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10729 prototype from here...
10730 * alpha-tdep.h: ...to here.
10731
10732 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10733
10734 * frame.h (selected_frame_level): Document as deprecated.
10735 (frame_relative_level): Declare.
10736 * stack.c (frame_relative_level): New function.
10737 (selected_frame_level): Document as deprecated.
10738 (select_frame): Do not set the selected_frame_level.
10739
10740 * stack.c (frame_info, record_selected_frame): Update.
10741 (frame_command, current_frame_command): Update.
10742 (up_silently_base, up_command, down_silently_base): Update.
10743 (down_command): Update.
10744 * inflow.c (kill_command): Update.
10745 * tracepoint.c (finish_tfind_command): Update.
10746 * corelow.c (core_open): Update.
10747 * thread.c (info_threads_command): Update.
10748 (do_captured_thread_select): Update.
10749 * infcmd.c (finish_command): Update.
10750 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10751
10752 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10753
10754 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10755
10756 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10757
10758 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10759 type const.
10760
10761 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10762
10763 * alphafbsd-tdep.c: Update copyright years. Include
10764 alpha-tdep.h.
10765 (alphafbsd_use_struct_convention): Make static.
10766 (alphafbsd_init_abi): New function.
10767 (_initialize_alphafbsd_tdep): New function.
10768 * config/alpha/tm-fbsd.h: Update copyright years.
10769 (USE_STRUCT_CONVENTION): Remove.
10770
10771 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10772
10773 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10774 an Alpha ABI variant.
10775 (alpha_abi_handler_list): Declare.
10776 (alpha_gdbarch_register_os_abi): New function.
10777 (alpha_gdbarch_init): Give registered ABI variant handlers a
10778 chance to tweak the gdbarch once we have set up defaults.
10779 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10780
10781 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10782
10783 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10784 to standard_coerce_float_to_double.
10785 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10786
10787 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10788
10789 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10790 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10791 from gdbarch_tdep rather than a constant.
10792 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10793 the default text address for all Alpha Unix ABIs.
10794 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10795 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10796
10797 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10798
10799 * alpha-tdep.h: New file. Includes several Alpha target constants
10800 taken from...
10801 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10802 let gdbarch deal with.
10803 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10804 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10805 to dependency list.
10806 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10807 Alpha target register names.
10808 * alphabsd-nat.c: Likewise.
10809 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10810 Alpha target register names. Make serveral routines static.
10811 (alpha_get_saved_register): New function.
10812 (alpha_abi_names): New.
10813 (process_note_abi_tag_sections): New function.
10814 (get_elfosabi): New function.
10815 (alpha_gdbarch_init): New function.
10816 (alpha_dump_tdep): New function.
10817 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10818
10819 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10820
10821 * frame.c (find_saved_register): Delete #ifdef
10822 HAVE_REGISTER_WINDOWS code.
10823 * config/sparc/tm-sparc.h: Update comments.
10824 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10825
10826 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10827
10828 * i960-tdep.c (i960_find_saved_register): New function.
10829 (i960_get_saved_register): New function.
10830 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10831 (i960_get_saved_register): Declare.
10832 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10833
10834 2002-04-20 David S. Miller <davem@redhat.com>
10835
10836 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10837
10838 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10839
10840 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10841 instead of NUM_PSEUDO_REGS.
10842
10843 2002-04-20 David S. Miller <davem@redhat.com>
10844
10845 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10846 GDB_MULTI_ARCH_PARTIAL
10847 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10848 define, let tm-sp64.h do it.
10849
10850 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10851
10852 * frame.c (find_saved_register): Avoid a NULL pointer
10853 dereference and actually walk the frame list.
10854
10855 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10856
10857 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10858 sorted in most most-recent-used order. Document.
10859 * gdbarch.h, gdbarch.c: Regenerate.
10860
10861 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10862
10863 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10864 instead of ->prev.
10865 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10866 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10867 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10868 instead of ->prev.
10869
10870 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10871
10872 Fix PR gdb/471.
10873 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10874 (build_builtin_type_vec128): Ditto.
10875 (append_composite_type_field): Fix calculation of type length in
10876 union case.
10877
10878 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10879
10880 * config/djgpp/README: Update.
10881
10882 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10883 compiler warnings.
10884
10885 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10886
10887 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10888 (alpha_setup_arbitrary_frame): ...to this.
10889 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10890 for alpha_setup_arbitrary_frame.
10891
10892 2002-04-18 Andrew Cagney <cagney@redhat.com>
10893
10894 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10895 * gdbarch.h, gdbarch.c: Regenerate.
10896
10897 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10898 * target.h (memory_breakpoint_from_pc): Update declaration.
10899 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10900
10901 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10902 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10903 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10904 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10905 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10906 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10907 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10908 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10909 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10910 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10911 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10912 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10913
10914 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10915 const pointer.
10916 * monitor.c (monitor_insert_breakpoint): Ditto.
10917 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10918
10919 * config/mcore/tm-mcore.h: Update copyright.
10920 * mem-break.c: Ditto.
10921 * xstormy16-tdep.c: Ditto.
10922
10923 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10924
10925 * p-exp.y: Add precedence rule for '^' token.
10926 This removes the shift/reduce conflicts.
10927 Remove the comment concerning these shift/reduce conflicts.
10928
10929 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10930
10931 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10932 (registers_powerpc_nofp): New register set for processors
10933 without floating point unit.
10934
10935 2002-04-18 David S. Miller <davem@redhat.com>
10936
10937 * MAINTAINERS: Add myself to write-after-approval.
10938
10939 2002-04-17 Michael Snyder <msnyder@redhat.com>
10940
10941 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10942
10943 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10944
10945 * rs6000-tdep.c (frame_initial_stack_address): Use
10946 frame_register_read to read the alloca_reg.
10947
10948 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10949
10950 * frame.c (find_saved_register): Find saved registers in the next
10951 not prev frame.
10952 Fix PR gdb/365.
10953
10954 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10955
10956 * gdbarch.sh (LANG): Set to ``c''.
10957
10958 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10959
10960 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10961
10962 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10963
10964 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10965 Update copyright.
10966
10967 * hpread.c (hpread_get_lntt): Add declaration.
10968 Also fix PR gdb/391.
10969
10970 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10971
10972 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10973 * aclocal.m4, configure: Re-generate.
10974 Fix PR gdb/391.
10975
10976 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10977
10978 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10979 instead of tm_print_insn.
10980
10981 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10982
10983 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10984
10985 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10986
10987 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10988 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10989 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10990
10991 2002-04-12 Don Howard <dhoward@redhat.com>
10992
10993 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10994 max_user_call_depth.
10995 (init_cmd_lists): Initialize the new value;
10996 * cli/cli-script.c (execute_user_command): Limit the call depth of
10997 user defined commands. This avoids a core-dump when user commands
10998 are infinitly recursive.
10999
11000 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11001
11002 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11003 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11004 from tdep struct instead of DEFAULT_LR_SAVE.
11005 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11006 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11007 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11008
11009 2002-04-12 Michael Snyder <msnyder@redhat.com>
11010
11011 * Remote.c: Spelling fix.
11012 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11013 If no symbol found for "sbrk", try "_sbrk".
11014 (make_output_phdrs): Use bfd_section_name.
11015 (gcore_copy_callback): Use bfd_section_name.
11016 * eval.c: Indentation fix-ups.
11017 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11018 in case it gets applied to an address that is already
11019 in the instruction space.
11020 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11021 * symfile.c: Fix indentation, long lines.
11022 * source.c: White space fix-up.
11023
11024 2002-04-12 Andrew Cagney <cagney@redhat.com>
11025
11026 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11027 * frame.c (frame_register_read): New function. Return non-zero on
11028 success.
11029 (read_relative_register_raw_bytes_for_frame): Delete.
11030 (read_relative_register_raw_bytes): Delete.
11031 * frame.h (frame_register_read): Declare.
11032 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11033 * sh-tdep.c: Ditto.
11034 * infcmd.c (do_registers_info): Ditto.
11035 * hppa-tdep.c: Ditto.
11036 * rs6000-tdep.c: Ditto.
11037 * h8500-tdep.c: Ditto.
11038 * mips-tdep.c: Ditto.
11039 * h8300-tdep.c: Ditto.
11040 * z8k-tdep.c: Ditto.
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): Use rs6000_* methods for
11046 64-bit SysV ABI.
11047
11048 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11049
11050 From Jimi X <jimix@watson.ibm.com>:
11051 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11052 bfd info.
11053
11054 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11055
11056 From Jimi X <jimix@watson.ibm.com>:
11057 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11058 register sets for these processor variants.
11059
11060 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * regformats/reg-ppc.dat: Support FPSCR.
11063
11064 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11065
11066 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11067 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11068 Add fpscr as an invalid/unfetchable register.
11069 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11070 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11071 (fill_fpregset): Add support for register fpscr.
11072 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11073 (fill_gregset): Account for the fact that register ``mq'' might
11074 not exist.
11075 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11076 (registers_power): Add fpscr to register set at slot 71.
11077 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11078 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11079
11080 2002-04-11 Michael Snyder <msnyder@redhat.com>
11081
11082 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11083 * configure: Regenerate.
11084 * config.in: Regenerate.
11085 * acconfig.h: Add define for _SYSCALL32.
11086 * core-sol2.c: Remove #define _SYSCALL32.
11087 * solib-legacy.c: Remove #define _SYSCALL32.
11088
11089 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11090
11091 * stack.c (select_frame): Cleanup internal error message, do not
11092 use %p.
11093
11094 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11095
11096 * stack.c (select_frame): Check that selected_frame and the
11097 specified level are as expected.
11098 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11099 Update copyright.
11100 * frame.h (struct frame_info): Add field `level'. Update
11101 copyright.
11102 Work-in-progress PR gdb/464.
11103
11104 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11105
11106 * maint.c (maint_print_section_info): Rename print_section_info.
11107 (print_bfd_section_info, print_objfile_section_info): Update.
11108 * inferior.h (struct gdbarch): Add opaque declaration.
11109 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11110 * gdbarch.h: Regenerate.
11111
11112 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11113
11114 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11115 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11116 (kernel_u_size): Added.
11117 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11118 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11119
11120 2002-04-04 Jim Ingham <jingham@apple.com>
11121
11122 * valarith.c (find_size_for_pointer_math): New function, either returns
11123 the size for a pointer's target, returns 1 for void *, or errors for
11124 incomplete types.
11125 (value_add, value_sub): use find_size_for_pointer_math.
11126
11127 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11128
11129 * linux-low.c (linux_look_up_symbols): New hook.
11130 (linux_target_ops): Add linux_look_up_symbols.
11131 * remote-utils.c (decode_address): New function.
11132 (look_up_one_symbol): New function.
11133 * server.c (handle_query): Call target look_up_symbols hook.
11134 * server.h (look_up_one_symbol): Add prototype.
11135 * target.h (struct target_ops): Add look_up_symbols hook.
11136
11137 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11138
11139 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11140 override FP_REGNUM with frame->fp. Update copyright.
11141 * parse.c (num_std_regs, std_regs): Delete.
11142 (target_map_name_to_register): Do not search std_regs. Update
11143 function description.
11144 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11145 declarations. Update copyright.
11146 Fix PR gdb/251.
11147
11148 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11149
11150 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11151 after the last symbol in a block.
11152
11153 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11154
11155 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11156 is non zero as a found symbol.
11157
11158 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11159
11160 * findvar.c: Include "builtin-regs.h".
11161 (value_of_register): Call value_of_builtin_reg when applicable.
11162 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11163 (target_map_name_to_register): Call
11164 builtin_reg_map_name_to_regnum.
11165 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11166 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11167 (builtin_regs_h): Define.
11168 (builtin-regs.o): New target.
11169 (findvar.o): Add $(builtin_regs_h).
11170 * builtin-regs.c, builtin-regs.h: New files.
11171 * std-regs.c: New file.
11172 Partial fix for PR gdb/251.
11173
11174 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11175
11176 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11177 it's no longer required.
11178
11179 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11180
11181 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11182
11183 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11184
11185 From Jimi X <jimix@watson.ibm.com>:
11186 * rs6000-tdep.c (rs6000_software_single_step): Use
11187 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11188 and size. Use target_insert_breakpoint() and
11189 target_remove_breakpoint() to insert and remove breakpoints
11190 instead of explicit memory reads and writes.
11191
11192 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11193
11194 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11195 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11196 ELF_OBJECT_FORMAT ifdef.
11197
11198 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11199
11200 From Jimi X <jimix@watson.ibm.com>:
11201 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11202
11203 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11204
11205 From Jimi X <jimix@watson.ibm.com>:
11206 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11207 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11208
11209 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11210
11211 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11212 s/asprintf/xasprintf/.
11213 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11214
11215 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11216
11217 I believe Jeff Law denies responsability for this one:
11218 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11219 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11220 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11221 Work-around for PR gdb/366.
11222
11223 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11224
11225 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11226 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11227 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11228
11229 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11230
11231 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11232 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11233 information.
11234
11235 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11236
11237 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11238 maintainer.
11239
11240 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11241
11242 * README (Reporting Bugs in GDB): Document the bug web page as the
11243 prefered way of submitting bugs.
11244 Fix PR gdb/402.
11245
11246 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11247
11248 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11249 -1. Update comment.
11250 * gdbarch.h, gdbarch.c: Re-generate.
11251
11252 2002-04-07 Andreas Schwab <schwab@suse.de>
11253
11254 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11255 buffer to regcache_collect.
11256
11257 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11258
11259 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11260 * gdbarch.c, gdbarch.h: Re-generate.
11261
11262 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11263
11264 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11265 declaration. Fix -Werror.
11266
11267 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11268
11269 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11270 * gdbarch.c: Regenerate.
11271
11272 2002-04-05 Michael Snyder <msnyder@redhat.com>
11273
11274 * breakpoint.c (clear_command): Rewrite middle section to
11275 combine two loops with identical control conditions.
11276 Add a cleanup to eliminate a memory leak.
11277 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11278
11279 2002-04-05 H.J. Lu (hjl@gnu.org)
11280
11281 * solib-svr4.c (bkpt_names): Add "__start".
11282
11283 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11284
11285 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11286 as test for 64 bit target.
11287
11288 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11289
11290 * h8500-tdep.c (h8500_write_fp): Delete function.
11291 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11292 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11293 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11295 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11296 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11297 (s390_write_fp):
11298 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11299 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11300 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11301 (d10v_write_fp): Delete function.
11302 * inferior.h (write_fp, generic_target_write_fp): Delete
11303 declarations.
11304 * regcache.c (generic_target_write_fp): Delete function.
11305 (write_fp): Delete function.
11306 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11307 * gdbarch.h, gdbarch.c: Regenerate.
11308 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11309 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11310 (sparc64_write_fp): Delete declaration.
11311 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11312 (h8500_write_fp): Delete declaration.
11313
11314 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11315
11316 * sparc-tdep.c (sparc64_write_fp): Delete.
11317 (sparc_push_dummy_frame): Replace write_fp call with code to store
11318 the FP directly.
11319 (sparc_gdbarch_init): Do not initialize write_fp.
11320
11321 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11322
11323 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11324 clause.
11325
11326 2002-03-29 Jim Blandy <jimb@redhat.com>
11327
11328 * stack.c (get_selected_block): Add new argument `addr_in_block',
11329 used to return the exact code address we used to select the block,
11330 not just the block.
11331 * blockframe.c (get_frame_block, get_current_block): Same.
11332 * frame.h (get_frame_block, get_current_block,
11333 get_selected_block): Update declarations.
11334 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11335 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11336
11337 2002-04-05 Michael Snyder <msnyder@redhat.com>
11338
11339 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11340 warning message.
11341
11342 2002-04-05 J. Brobecker <brobecker@gnat.com>
11343
11344 * utils.c (xfullpath): New function.
11345 * defs.h (xfullpath): Add declaration.
11346 * source.c (openp): Use xfullpath in place of gdb_realpath to
11347 avoid resolving the basename part of filenames when the
11348 associated file is a symbolic link. This fixes a potential
11349 inconsistency between the filenames known to GDB and the
11350 filenames it prints in the annotations.
11351 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11352 to be able to match a filename with either the real filename, or
11353 the name of any symbolic link to this file.
11354 (lookup_partial_symtab): Ditto.
11355
11356 2002-04-04 Michael Snyder <msnyder@redhat.com>
11357
11358 * breakpoint.c: Add support for hardware breakpoints in overlays.
11359 (overlay_events_enabled): New state variable.
11360 (insert_breakpoints): Use overlay_events_enabled to decide
11361 whether to attempt to set a breakpoint at the overlay load addr.
11362 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11363 (remove_breakpoint): Use overlay_events_enabled to decide
11364 whether breakpoints need to be removed from overlay load addr.
11365 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11366 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11367 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11368 disable_overlay_breakpoints): Update overlay_events_enabled.
11369
11370 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11371
11372 * dwarf2read.c (struct function_range): New.
11373 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11374 (check_cu_functions): New.
11375 (read_file_scope): Initialize global function lists.
11376 Call dwarf_decode_line after processing children.
11377 (read_func_scope): Add to global function list.
11378 (dwarf_decode_lines): Call check_cu_functions everywhere
11379 record_line is called. Call record_line with a linenumber
11380 of 0 to mark sequence ends.
11381
11382 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11383
11384 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11385 change sync with glibc.
11386
11387 2002-04-03 Jim Blandy <jimb@redhat.com>
11388
11389 * configure.in: Call AC_C_INLINE.
11390 * configure: Regenerated.
11391
11392 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11395 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11396
11397 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11398
11399 * NEWS: Mention gcore support on FreeBSD/i386.
11400
11401 * fbsd-proc.c: New file.
11402 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11403 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11404
11405 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11406 while statement.
11407
11408 2002-03-29 Jim Blandy <jimb@redhat.com>
11409
11410 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11411 unescaped newlines in string literals, but newer ones don't. So
11412 escape them.
11413
11414 2002-03-26 Michael Snyder <msnyder@redhat.com>
11415 Andrew Cagney <cagney@redhat.com>
11416
11417 * cli/cli-dump.c: New file. Dump memory to file,
11418 restore file to memory.
11419 * cli/cli-dump.h: New file.
11420 * Makefile.in: Add rules, dependencies for cli-dump.o.
11421 * NEWS: Mention new commands.
11422
11423 2002-03-28 Michael Snyder <msnyder@redhat.com>
11424
11425 * symfile.c (symbol_file_add): Move test for null symbols to later.
11426
11427 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11428
11429 From veksler at il.ibm.com:
11430 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11431 the xstrduped original path.
11432 Fix PR gdb/417.
11433
11434 2002-03-27 Michael Snyder <msnyder@redhat.com>
11435
11436 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11437 * infcmd.c (_initialize_infcmd): Ditto.
11438 * language.c (_initialize_language): Ditto.
11439 * symfile.c (_initialize_symfile): Ditto.
11440 * top.c (_init_main): Ditto.
11441 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11442
11443 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11444
11445 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11446 vector registers handling.
11447 (skip_prologue): Handle new AltiVec instructions. Fill in new
11448 fields of frame data.
11449 (frame_get_saved_regs): Fill in information for AltiVec registers.
11450
11451 2002-03-27 Jim Blandy <jimb@redhat.com>
11452
11453 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11454 a function; leave this macro here to invoke that function.
11455 (symbol_init_mangled_name): Declaration for that function.
11456 * symtab.c (symbol_init_mangled_name): New function.
11457
11458 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11459
11460 * valarith.c: Replace strerror with safe_strerror.
11461 * tracepoint.c: Ditto.
11462 * lin-lwp.c: Ditto.
11463 * go32-nat.c: Ditto.
11464 * inflow.c: Ditto.
11465 * gnu-nat.c: Ditto.
11466
11467 2002-03-27 Andreas Schwab <schwab@suse.de>
11468
11469 * event-top.c (command_line_handler): Remove useless if.
11470
11471 2002-03-27 Andreas Jaeger <aj@suse.de>
11472
11473 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11474 comment.
11475
11476 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11477
11478 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11479 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11480 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11481 (x86_64_linux_dr_get_status, supply_gregset),
11482 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11483 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11484 (x86_64_register_info_table): Add.
11485 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11486 (x86_64_register_raw_size, x86_64_register_virtual_type),
11487 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11488 general x86_64_register_info_table.
11489 (i386_gdbarch_init): gdbarch_register_bytes is now set
11490 dynamicaly during initialization.
11491 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11492 * gdbserver/linux-x86-64-low.c: Ditto.
11493
11494 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * gdbserver/server.c (main): Call target_signal_to_host_p
11497 and target_signal_to_host on signals received from the remote.
11498 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11499 target_signal_from_host on signals sent to the remote.
11500 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11501 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11502
11503 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * signals/signals.c: Include "server.h" in gdbserver build.
11506 (target_signal_from_name): Don't use STREQ.
11507 (_initialize_signals): Likewise. Don't include function in
11508 gdbserver build.
11509
11510 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11511
11512 * signals.c: Moved to...
11513 * signals/signals.c: Here.
11514 * Makefile (signals.o): Update.
11515
11516 2002-03-26 Jeff Law (law@redhat.com)
11517
11518 * somread.c (som_symtab_read): Remove some commented out code and
11519 updated related comments. Do not set the minimal symbol table to
11520 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11521 in a dynamic executable.
11522 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11523 where we are unable to find the minimal symbol for the given
11524 PC value.
11525
11526 2002-03-25 Jeff Law (law@redhat.com)
11527
11528 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11529
11530 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11531
11532 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11533
11534 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11535
11536 * command.h: Update copyright.
11537 (struct cmd_list_element): Replace definition with opaque
11538 declaration.
11539 (enum cmd_types): Document that it will eventually be moved to
11540 cli/cli-decode.h
11541 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11542 (MALLOCED_REPLACEMENT): Delete macro.
11543 * Makefile.in (cli_decode_h): Add $(command_h).
11544 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11545 * top.c: Include "cli/cli-decode.h".
11546 * completer.c: Include "cli/cli-decode.h".
11547 * maint.c: Include "cli/cli-decode.h".
11548 * cli/cli-decode.h: Include "command.h".
11549 (enum command_class): Delete.
11550 (enum cmd_types): Comment out.
11551 (enum cmd_auto_boolean): Delete.
11552 (enum var_types): Delete.
11553
11554 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11555
11556 * cli/cli-decode.c: Include "gdb_assert.h".
11557 (add_set_or_show_cmd): New static function.
11558 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11559 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11560 all fields, such as func, from the set command.
11561
11562 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11563
11564 * MAINTAINERS (sh-elf): Change warning flag to -w.
11565
11566 2002-03-23 Andrew Cagney <cagney@redhat.com>
11567
11568 * defs.h (error): Add printf format attribute.
11569 * thread-db.c (thread_from_lwp): Fix error format string.
11570 * stack.c (parse_frame_specification): Ditto.
11571 * cli/cli-decode.c (undef_cmd_error): Ditto.
11572 * scm-lang.c (scm_lookup_name): Ditto.
11573 * tracepoint.c (trace_error): Ditto.
11574 * remote-utils.c (usage): Ditto.
11575 * remote.c (compare_sections_command): Ditto.
11576 Fix PR gdb/328.
11577
11578 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11579
11580 * gdbtypes.c (append_composite_type_field): New function.
11581 (init_composite_type): New function.
11582 * gdbtypes.h (append_composite_type_field): Declare.
11583 (init_composite_type): Ditto.
11584
11585 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11586
11587 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11588 function.
11589 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11590 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11591 structure returning convention for SYSV ABI case, but not
11592 for GNU/Linux, FreeBSD, or NetBSD.
11593
11594 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11595
11596 * symtab.h (lookup_block_symbol): Add mangled_name argument
11597 to prototype.
11598
11599 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11600 with new mangled_name argument.
11601 * linespec.c (decode_line_1): Likewise.
11602 * valops (value_of_this): Likewise.
11603 * symtab.c (lookup_transparent_type): Likewise.
11604 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11605 (lookup_symbol): If we are given a mangled name, pass it down
11606 to lookup_symbol_aux.
11607 (lookup_block_symbol): If we are given a mangled name to check
11608 against, only return symbols which match it.
11609
11610 2002-03-22 Christopher Faylor <cgf@redhat.com>
11611
11612 * win32-nat.c (child_create_inferior): Check for proper shell to use
11613 here, in case the user changes it on the fly.
11614 (_initialize_inftarg): Remove shell path considerations.
11615
11616 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11617
11618 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11619 for gdbarch_max_register_raw_size and max_register_virtual_size.
11620 Adjust copyright year.
11621
11622 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11623
11624 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11625 in a function to cover the entire beginning of the function
11626 as well if it does not already.
11627
11628 2002-03-21 Tom Rix <trix@redhat.com>
11629
11630 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11631 (rs6000_ptrace64): Renamed from ptrace64.
11632
11633 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11634
11635 * gdbserver/remote-utils.c (remote_open): Don't call
11636 getprotobyname, we're all using TCP here so just use
11637 IPPROTO_TCP.
11638 * gdbserver/gdbreplay.c (remote_open): Ditto.
11639
11640 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11641
11642 * regcache.c (_initialize_regcache): No need to call
11643 build_regcache() at this time; it gets called whenever
11644 the gdbarch changes.
11645
11646 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11647
11648 * sparc-nat.c: Include sys/param.h where possible.
11649
11650 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11651
11652 Fix PR gdb/422.
11653 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11654 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11655 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11656 complex types.
11657 * stabsread.c (rs6000_builtin_type): Likewise.
11658 (read_sun_floating_type): Likewise.
11659
11660 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11661
11662 * stabsread.c (read_member_functions): Remove skip code for duplicate
11663 constructor/destructor methods. Use standard parsing for these
11664 methods and just do not chain them to the list of methods after
11665 parsing.
11666
11667 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11668
11669 * coffread.c: Remove redundant static declarations. Replace
11670 occurrences of `PTR' with `void *'.
11671 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11672 * top.h (quit_cover): Likewise.
11673 * defs.h (catch_errors): Likewise.
11674
11675 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11676
11677 * defs.h (XMALLOC): Define.
11678 * gdb-events.sh (XMALLOC): Delete macro.
11679 * gdb-events.c, gdb-events.h: Regenerate.
11680 * gdbarch.sh (XMALLOC): Delete macro.
11681 * gdbarch.c: Regenerate.
11682 * serial.c (XMALLOC): Delete macro.
11683 * ui-file.c (XMALLOC): Ditto.
11684 * ser-unix.h (XMALLOC): Ditto.
11685 * sh-tdep.c (XMALLOC): Ditto.
11686 * ui-out.c (XMALLOC): Ditto.
11687 * utils.c (XMALLOC): Ditto.
11688 * i386-tdep.c (XMALLOC): Ditto.
11689 * gdb-events.c (XMALLOC): Ditto.
11690 * d10v-tdep.c (XMALLOC): Ditto.
11691 * cli-out.c (XMALLOC): Ditto.
11692
11693 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11694 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11695 * ui-file.c, ui-out.c: Ditto.
11696
11697 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11698
11699 * command.h (struct cmd_list_element): Add field context.
11700 (set_cmd_context, get_cmd_context): Declare.
11701 * cli/cli-decode.h: Ditto.
11702 * cli/cli-decode.c (get_cmd_context): New function.
11703 (set_cmd_context): New function.
11704 (add_cmd): Initialize context.
11705 Part of fixing PR gdb/145 and PR gdb/146.
11706
11707 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11708
11709 * cli/cli-decode.c (cmd_type): New function.
11710 * command.h (cmd_type): Declare.
11711 * infrun.c (set_schedlock_func): Call function cmd_type.
11712 * kod.c (kod_set_os): Call cmd_type.
11713 * cris-tdep.c (cris_version_update): Use function cmd_type.
11714 (cris_mode_update, cris_abi_update): Ditto.
11715
11716 * command.h: (execute_cmd_post_hook): Declare.
11717 (execute_cmd_pre_hook): Declare.
11718 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11719 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11720 functions. Execute pre/post hook while ensuring that afterwords
11721 hook_in is cleared.
11722 * top.c (execute_command): Use execute_cmd_post_hook, and
11723 execute_cmd_pre_hook to execute pre/post commands.
11724 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11725 hook_stop_stub.
11726 (hook_stop_stub): Call execute_cmd_pre_hook.
11727
11728 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11729
11730 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11731 set'' and this leads to a core dump. Move xstrdup of
11732 operating_system to after check that it is not NULL.
11733
11734 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11735
11736 * kod.c (kod_set_os): Remove unnecessary check that
11737 ``command->type'' is set_cmd.
11738
11739 * valprint.c (set_input_radix): Use input_radix.
11740 (set_output_radix): Use output_radix.
11741 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11742 isn't reverted.
11743
11744 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11745
11746 * value.h (struct value): Delete field ``substring_addr''. Change
11747 aligner fields to force_doublest_align, force_longest_align,
11748 force_core_addr_align and force_pointer_aligh.
11749
11750 * value.h (struct value): Fix typo in above change.
11751
11752 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11753
11754 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11755 to fix internal_error from ``maintenance print architecture''.
11756
11757 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11758
11759 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11760 for gcc versions after gcc-2.8.1.
11761
11762 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11763
11764 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11765 for method resolution. Restore adjustment of ``this'' pointer after
11766 calling value_struct_elt, which was accidentally removed during the
11767 HP merge.
11768
11769 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11770
11771 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11772 value_of_register.
11773 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11774 get_saved_register.
11775 * value.h (value_of_register): Update.
11776
11777 2002-03-14 Richard Henderson <rth@redhat.com>
11778
11779 * configure.in: Detect declaration for canonicalize_file_name.
11780 * utils.c (canonicalize_file_name): Declare, if needed.
11781 (gdb_realpath): Prefer realpath if available and usable.
11782 * config.in, configure: Rebuild.
11783
11784 2002-03-14 Richard Henderson <rth@redhat.com>
11785
11786 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11787 a constant array bound.
11788
11789 * MAINTAINERS: Add myself to write-after-approval.
11790
11791 2002-03-14 Michael Snyder <msnyder@redhat.com>
11792
11793 * symfile.c (syms_from_objfile): Return immediately if no syms.
11794 (symbol_file_add): Return immediately if no syms.
11795 (find_sym_fns): Return immediately if no syms.
11796
11797 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11798
11799 * gdbserver/remote-util.c (remote_open): Print remote-side's
11800 IP address when remote debugging over the network.
11801
11802 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11803
11804 * config/sparc/fbsd.mh: Fix copyright.
11805 * config/sparc/fbsd.mt: Likewise.
11806
11807 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11808
11809 * MAINTAINERS: Fix typo in name of gdb warnings option.
11810 (x86-64): Fix formating so that this can be parsed by awk.
11811
11812 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11813
11814 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11815 * defs.h: Include "gdb/signals.h".
11816 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11817
11818 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11819
11820 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11821 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11822 from x86-64-tdep.h
11823
11824 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11825 Don Howard <dhoward@redhat.com>
11826
11827 * mips-tdep.c (ST0_FR): Define.
11828 (mips2_fp_compat): New function, temporarily disabled.
11829 (mips_read_fp_register_single): New function.
11830 (mips_read_fp_register_double): New function.
11831 (mips_print_register): Use them.
11832 (do_fp_register_row): Likewise.
11833
11834 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11835
11836 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11837 approval''.
11838
11839 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11840
11841 * stabsread.c (read_member_functions): Fix is_stub test for
11842 static member functions, improve comment.
11843
11844 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11845
11846 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11847 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11848 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11849 commands that set boolean values.
11850 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11851 (arm_rdi_resume): Always initialize PC.
11852 (arm_rdi_open): Don't use rslt as a boolean.
11853 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11854 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11855 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11856 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11857
11858 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11859
11860 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11861 * configure: Rebuilt.
11862
11863 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11864
11865 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11866 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11867
11868 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11869
11870 * cli/cli-decode.c (set_cmd_completer): New function.
11871 * command.h (set_cmd_completer): Declare.
11872 * cli/cli-decode.h (set_cmd_completer): Ditto.
11873
11874 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11875 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11876 * win32-nat.c (_initialize_inftarg): Ditto.
11877 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11878 * proc-api.c (_initialize_proc_api): Ditto.
11879 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11880 * source.c (_initialize_source): Ditto.
11881 * exec.c (_initialize_exec): Ditto.
11882 * solib.c (_initialize_solib): Ditto.
11883 * top.c (init_main): Ditto.
11884 * tracepoint.c (_initialize_tracepoint): Ditto.
11885 * symfile.c (_initialize_symfile): Ditto.
11886 * printcmd.c (_initialize_printcmd): Ditto.
11887 * infcmd.c (_initialize_infcmd): Ditto.
11888 * corefile.c (_initialize_core): Ditto.
11889
11890 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11891
11892 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11893
11894 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11895
11896 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11897
11898 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11899
11900 * NEWS: Update headings, 5.2 has branched.
11901
11902 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11903
11904 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11905 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11906 (register_addr, REGISTER_RAW_SIZE): Likewise.
11907 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11908 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11909
11910 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11911
11912 * MAINTAINERS (x86-64): Add myself.
11913 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11914 changed value_ptr -> struct value *
11915
11916 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11917
11918 * configure.host (sparc64-*-freebsd): Add.
11919 * configure.tgt: Likewise.
11920 * config/sparc/fbsd.mh: New file.
11921 * config/sparc/fbsd.mt: Likewise.
11922 * config/sparc/nm-fbsd.h: Likewise.
11923 * config/sparc/tm-fbsd.h: Likewise.
11924
11925 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11928 regformats/reg-s390x.dat.
11929
11930 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11931
11932 * utils.c: Add FIXME explaining true/false problem.
11933
11934 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11935
11936 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11937
11938 2002-02-28 Michael Chastain <mec@shout.net>
11939
11940 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11941
11942 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11943
11944 * gdbserver/linux-s390-low.c: New file.
11945 * regformats/reg-s390.dat: New file.
11946 * regformats/reg-s390x.dat: New file.
11947 * gdbserver/configure.srv: Add S/390.
11948 * gdbserver/Makefile.in: Add S/390.
11949 * configure.tgt: Enable gdbserver for S/390.
11950
11951 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11952
11953 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11954 first line of the doc string for "info dos", except at the end of
11955 the sentence, since the short help stops at the first period.
11956
11957 2002-02-28 Jason Merrill <jason@redhat.com>
11958
11959 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11960
11961 2002-02-27 Fred Fish <fnf@redhat.com>
11962
11963 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11964 comment (dumy -> dummy).
11965
11966 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11967
11968 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11969
11970 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11971
11972 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11973
11974 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11975
11976 * gdbserver/acconfig.h: New file.
11977 * gdbserver/i387-fp.c: New file.
11978 * gdbserver/i387-fp.h: New file.
11979 * gdbserver/linux-x86-64.c: New file.
11980 * regformats/reg-x86-64.dat: New file.
11981 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11982 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11983 * gdbserver/configure.in: Add support for regsets.
11984 * gdbserver/config.in: Regenerate.
11985 * gdbserver/configure: Regenerate.
11986 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11987 * gdbserver/linux-low.h: New file.
11988 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11989 for regsets.
11990 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11991 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11992 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11993 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11994 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11995 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11996 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11997 "i387-fp.h". Add PTRACE_GETREGS and friends.
11998 * gdbserver/regcache.c (supply_register): New function.
11999 (supply_register_by_name): New function.
12000 (collect_register): New function.
12001 (collect_register_by_name): New function.
12002
12003 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12004
12005 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12006 (config.status): Add configure.srv dependency.
12007 (server_h): Add config.h dependency.
12008
12009 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12010
12011 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12012 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12013 * gdbserver/configure.srv: Change i386-*-linux* to use
12014 reg-i386-linux.o.
12015
12016 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12017
12018 * x86-64-tdep.c: Re-indent. Update copyright date.
12019
12020 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12021
12022 From Michal Ludvig <mludvig@suse.cz>:
12023 * x86-64-tdep.c (value.h): Delete.
12024 (gdb_assert.h): Include.
12025 (x86_64_register_convert_to_virtual,
12026 x86_64_register_convert_to_raw ): Add check which lets only
12027 floating-point values to be converted.
12028 (value_push): Delete.
12029 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12030 (i386_gdbarch_init): Number of register_bytes fixed.
12031
12032 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12033
12034 * MAINTAINERS: Add x86-64 target.
12035
12036 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12037
12038 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12039 * osfsolib.c (solib_map_sections): Ditto.
12040 * irix5-nat.c (solib_map_sections): Ditto.
12041 * corelow.c (gdb_check_format): Ditto.
12042 * symfile.c (symfile_bfd_open): Ditto.
12043 * solib.c (solib_map_sections): Ditto.
12044 Fix PR gdb/354.
12045
12046 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12047
12048 * remote.c (_initialize_remote): By default, disable ``e'' and
12049 ``E'' step out-of-range packets.
12050
12051 2002-02-26 Andreas Schwab <schwab@suse.de>
12052
12053 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12054 m68k_linux_frame_saved_pc.
12055 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12056 in_sigtramp.
12057 (SIGCONTEXT_PC_OFFSET): Remove.
12058 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12059 m68k_linux_sigtramp_saved_pc): New functions.
12060 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12061 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12062 (UCONTEXT_PC_OFFSET): Define.
12063 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12064 non-RT and RT signal trampolines.
12065
12066 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12067
12068 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12069 (TARGET_NBPG, STACK_END_ADDR): Delete
12070 (VARIABLES_INSIDE_BLOCK): Delete.
12071
12072 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12073
12074 * utils.c (perror_with_name): Make string parameter constant.
12075 (print_sys_errmsg): Ditto.
12076 (query): Ditto.
12077 * defs.h (perror_with_name): Update.
12078 (print_sys_errmsg): Update.
12079 (query): Update.
12080
12081 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12082
12083 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12084 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12085
12086 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12087
12088 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12089 if it already matches the current architecture from the exec file.
12090 Include arch-utils.h for gdbarch_info_init prototype.
12091 * Makefile.in (rs6000-nat.o): Update dependencies.
12092
12093 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12094
12095 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12096 list of exported variables.
12097
12098 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12099
12100 * gdbserver/configure.srv: New file.
12101 * gdbserver/configure.in: Use configure.srv instead
12102 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12103 from it.
12104 * gdbserver/configure: Regenerated.
12105 * gdbserver/terminal.h: New file.
12106 * gdbserver/Makefile.in: Update for configure changes. Remove
12107 more unneeded include paths.
12108
12109 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12110
12111 From wiz at danbala:
12112 * config/sparc/tm-sp64.h: Fix grammar and typos.
12113 Fix PR gdb/287.
12114
12115 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12116
12117 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12118 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12119 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12120 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12121 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12122 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12123 * s390-tdep.c: Ditto.
12124 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12125 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12126 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12127 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12128 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12129 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12130 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12131 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12132 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12133 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12134 Fix PR gdb/378.
12135
12136 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12137
12138 * lin-thread.c: Delete file.
12139 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12140 to gdb_proc_service.h.
12141 * configure: Re-generate.
12142
12143 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12144 * serial.c (serial_open): Delete check for "ocd".
12145 Fix PR gdb/349.
12146
12147 * Makefile.in (linux-thread.o): Delete target.
12148 * linux-thread.c: Delete file.
12149
12150 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12151 renamed SH files to be consistent.
12152
12153 * symtab.c (sort_search_symbols): Use xfree.
12154
12155 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12156
12157 * arm-linux-tdep.c (arm_linux_init_abi): Register
12158 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12159 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12160 definition with undef, since we don't want the sysvr4 definition.
12161 (SKIP_TRAMPOLINE_CODE): Likewise.
12162
12163 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12164
12165 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12166
12167 * configure.in: (AC_CHECK_FUNCS) Added test for
12168 canonicalize_file_name Regenerated.
12169 * config.in, configure: Regenerated.
12170 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12171 defined use canonicalize_file_name.
12172
12173 2002-02-23 Michael Chastain <mec@shout.net>
12174
12175 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12176
12177 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12178
12179 * README: Remove references to cygnus.com.
12180 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12181 dot com'' form. Remove references to cygnus.com and sourceware.
12182
12183 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12184
12185 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12186 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12187 1003.1-2001 no longer allows "head -1".
12188 * gdb/Makefile.in (version.c): Likewise.
12189 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12190 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12191 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12192
12193 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12194
12195 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12196 * command.h (cmd_cfunc_eq): Declare.
12197 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12198
12199 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12200 ``struct cmd_list_element *''.
12201 * cli/cli-cmds.c (is_complete_command): Update. Use
12202 cmd_cfunc_eq.
12203 * top.c (execute_command): Pass the command to
12204 is_complete_command.
12205 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12206
12207 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12208
12209 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12210 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12211 architecture defines.
12212 * s390-tdep.c (s390_gdbarch_init): Likewise.
12213
12214 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12215
12216 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12217 (arm_linux_push_arguments): Likewise.
12218 (arm_linux_init_abi): Register them. Also register linux-specific
12219 call_dummy_words.
12220 (find_minsym_and_objfile): Use strcmp, not STREQ.
12221 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12222 (arm_linux_call_dummy_words): Delete declaration.
12223 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12224 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12225 declarations.
12226 (LOWEST_PC): Delete.
12227
12228 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12229
12230 * maint.c (print_section_info): Do not prepend `0x' to filepos
12231 output, it will be handled by local_hex_string_custom.
12232
12233 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12234
12235 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12236 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12237 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12238
12239 2002-02-22 Jim Blandy <jimb@redhat.com>
12240
12241 Indicate that the bcache functions don't change the strings
12242 they're passed.
12243 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12244 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12245
12246 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12247
12248 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12249
12250 2002-02-21 Christopher Faylor <cgf@redhat.com>
12251
12252 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12253 find the complete path to a loaded DLL.
12254
12255 2002-02-21 Fred Fish <fnf@redhat.com>
12256
12257 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12258 that marks the end of the range of a function, enter a line number
12259 entry that has a line number of zero and a PC offset that matches
12260 the end of the function. This starts a range of PC's for which no
12261 line number information is known.
12262 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12263 PC's for which no line number info is found (line number is zero)
12264 then we didn't find any valid line information.
12265 * symtab.h: Document use of zero line number entry.
12266
12267 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12268
12269 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12270 (have_ptrace_getvrregs): Define for run time checks.
12271 (gdb_vrregset_t): New type for Altivec register handling.
12272 (fetch_register, store_register): Fetch/store altivec register
12273 when needed.
12274 (fetch_altivec_register, store_altivec_register): New functions.
12275 (supply_vrregset, fill_vrregset): New functions.
12276 (fetch_altivec_registers, store_altivec_registers): New functions.
12277 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12278 registers as well.
12279
12280 2002-02-21 Jiri Smid <smid@suse.cz>
12281
12282 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12283
12284 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12285
12286 * Makefile.in (armnbsd-nat.o): Update dependencies.
12287 * armnbsd-nat.c (supply_gregset): New function. Common code to
12288 supply the integer register set.
12289 (supply_fparegset): New function. Similar for FPA registers.
12290 (fetch_regs, fetch_fp_regs): Use them.
12291 (fetch_core_registers): Likewise.
12292 (fetch_elfcore_registers): New function.
12293 (arm_netbsd_elfcore_fns): New core-file type specification.
12294 (_initialize_arm_netbsd_nat): Register it.
12295
12296 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12297
12298 * armnbsd-nat.c: Include gdbcore.h.
12299 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12300 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12301 'void' to declaration, to shut up ARI.
12302 (fetch_core_registers): Make static. Rewrite using supply_register.
12303 (arm_netbsd_core_fns): New core-file type specification.
12304 (_initialize_arm_netbsd_nat): New function.
12305
12306 2002-02-21 Christopher Faylor <cgf@redhat.com>
12307
12308 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12309 value.
12310
12311 2002-02-20 Christopher Faylor <cgf@redhat.com>
12312
12313 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12314 fails.
12315
12316 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * jv-exp.y (parse_number): Change type of implicit longs
12319 to builtin_type_uint64.
12320
12321 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12322
12323 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12324 to be an integer instead of a `union wait'.
12325
12326 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12327
12328 * mips-linux-nat.c: Call the operating system GNU/Linux.
12329 * mips-linux-tdep.c: Likewise.
12330 * mips-tdep.c: Likewise.
12331
12332 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12333
12334 Fix PR gdb/265.
12335 * jv-exp.y (parse_number): Handle 64-bit integers.
12336
12337 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12338
12339 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12340 AC_STDC_HEADERS to AC_HEADER_STDC.
12341 * gdbserver/configure: Regenerated.
12342
12343 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12344
12345 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12346 is defined.
12347 * sparc-tdep.c (get_longjmp_target): Likewise.
12348
12349 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12350
12351 * News: Add news about ARM and Multi-arch. Mention the new target
12352 arm*-*-netbsd*.
12353
12354 2002-02-19 Jim Blandy <jimb@redhat.com>
12355
12356 * stabsread.c (error_type_complaint): Improve error message.
12357
12358 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12359
12360 * gdbserver/README: Update documentation.
12361 * gdbserver/configure.in: Update configury to match documentation.
12362 * gdbserver/Makefile.in: Likewise.
12363 * gdbserver/configure: Regenerated.
12364 * gdbserver/aclocal.m4: New file, generated by aclocal.
12365 * gdbserver/config.in: New file, generated by autoheader.
12366
12367 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12368
12369 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12370 armnbsd-nat.c.
12371
12372 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12373
12374 * arm-tdep.h (enum arm_float_model): New enum.
12375 (struct gdbarch_tdep): Add fp_model.
12376 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12377 up floating-point conversions until we know the floating-point model
12378 in use by the inferior. Don't complain about being unable to
12379 determine the ABI of the inferior when we don't have one.
12380 (arm_extract_return_value): Support different floating-point models.
12381 (arm_store_return_value): Likewise.
12382 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12383 ARM_FLOAT_SOFT.
12384 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12385
12386 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12387
12388 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12389 of ``current_gdbarch''.
12390
12391 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12392
12393 * armnbsd-nat.c : ANSIfy all function declarations.
12394 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12395 (fetch_inferior_registers): Re-implement in terms of above.
12396 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12397 (store_inferior_registers): Re-implement in terms of above.
12398
12399 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12400
12401 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12402 kernel.
12403 * arm-linux-tdep.c: Likewise.
12404 * config/arm/tm-linux.h: Likewise.
12405
12406 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12407
12408 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12409 * config/arm/nbsd.mt (TM_FILE): Delete.
12410 * config/arm/tm-nbsd.h: Delete.
12411
12412 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12413
12414 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12415 Initialize CALL_DUMMY_LENGTH.
12416
12417 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12418
12419 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12420 function.
12421 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12422 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12423 defines one thing and that is incorrect for this port.
12424 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12425
12426 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12427
12428 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12429
12430 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12431
12432 * win32-nat.c (display_selector): New function. Displays information
12433 about the information returned by GetThreadSelectorEntry API function.
12434 (display_selectors): New function. Displays the infomation of
12435 the selector given as argument, or of CS, DS ans FS selectors
12436 if no argument is given.
12437 ( _initialize_inftarg): Add "w32" as info prefix command.
12438 Add "info w32 selector" as command calling display_selectors.
12439
12440 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12441
12442 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12443 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12444 if not defined.
12445
12446 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12447
12448 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12449
12450 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12451
12452 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12453 (arm_fix_call_dummy): Call it.
12454 (arm_call_dummy_breakpoint_offset): Delete.
12455 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12456 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12457
12458 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12459
12460 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12461 Default to func_frame_chain_valid.
12462 * gdbarch.h, gdbarch.c: Re-generate.
12463 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12464
12465 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12466
12467 * ppc-linux-nat.c: Update copyright.
12468 (fetch_register, store_register): Add tid parameter, don't compute
12469 tid here.
12470 (fetch_ppc_registers, store_ppc_registers): Add tid
12471 parameter. Pass it along to callees.
12472 (fetch_inferior_registers, store_inferior_registers): Compute tid
12473 here, and pass it to calleed functions.
12474 (fill_gregset, supply_fpregset): Clean up formatting.
12475
12476 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12477
12478 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12479 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12480
12481 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12482
12483 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12484 * gdbarch.c gdbarch.h: Regenerate.
12485 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12486 function.
12487 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12488 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12489 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12490
12491 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12492 * arm-tdep.c (arm_get_longjmp_target): New function.
12493 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12494 this to a positive value register arm_get_longjmp_target as the
12495 longjmp handler.
12496 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12497 (arm_linux_init_abi): Set up longjmp description in tdep.
12498 * armnbsd-nat.c (get_longjmp_target): Delete.
12499 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12500 description in tdep.
12501 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12502 (get_longjmp_target): Delete declaration.
12503 (GET_LONGJMP_TARGET): Delete.
12504 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12505 (GET_LONGJMP_TARGET): Delete.
12506
12507 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12508
12509 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12510 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12511 of ``current_gdbarch''.
12512
12513 2002-02-17 Tom Tromey <tromey@redhat.com>
12514
12515 * cli/cli-cmds.c (compare_strings): New function.
12516 (complete_command): Only print each unique item once.
12517 * completer.h (complete_line): Declare.
12518 * completer.c (complete_line): New function.
12519 (line_completion_function): Use it.
12520
12521 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12522
12523 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12524 * gdbarch.h, gdbarch.c: Re-generate.
12525
12526 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12529
12530 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12531
12532 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12533 * valops.c (value_arg_coerce): Don't take the address of a reference
12534 to convert an argument to a reference.
12535
12536 2002-02-15 Christopher Faylor <cgf@redhat.com>
12537
12538 * win32-nat.c (get_image_name): New function.
12539 (handle_load_dll): Use get_image_name function.
12540 (get_child_debug_event): Avoid registering debug events until possibly
12541 execed process is started.
12542 (child_create_inferior): Allow invocation via shell so that command
12543 line redirection, etc. works ok.
12544 (_initialize_inftarg): Add new command: "set shell" to control whether
12545 a shell is used to start a process.
12546
12547 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12548
12549 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12550 instead of find_register_by_number.
12551 (cannot_store_register): Likewise.
12552
12553 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12554
12555 * dwarf2read.c: Replace fprintf (stderr, ...) by
12556 fprintf_unfiltered (gdb_stderr, ...).
12557
12558 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12559
12560 * gdbserver/gdbserver.1: Document --attach.
12561
12562 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12563
12564 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12565 descriptions.
12566 * arm-tdep.c (arm_default_arm_le_breakpoint)
12567 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12568 (arm_default_thumb_be_breakpoint): New. Initialize them from
12569 traditional breakpoint defines.
12570 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12571 (arm_gdbarch_init): Initialize new breakpoint variables.
12572 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12573 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12574 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12575 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12576 code out to ...
12577 (arm_netbsd_init_abi_common): ... here; new function.
12578 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12579 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12580 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12581 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12582
12583 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12584
12585 * arm-tdep.h (enum arm_abi): New enum.
12586 (struct gdbarch_tdep): New structure.
12587 (LOWEST_PC): Provide a default.
12588 (arm_gdbarch_register_os_abi): Declare new function.
12589 * arm-tdep.c (arm_abi_names): New array.
12590 (process_note_abi_tag_sections): New function.
12591 (get_elfosabi): New function.
12592 (arm_gdbarch_register_os_abi): New function.
12593 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12594 support for that ABI has been built in, then call the appropriate
12595 configuration routine. Use gdbarch_num_regs() to get the number
12596 of registers.
12597 (arm_dump_tdep): New function.
12598 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12599 place-holder functions.
12600 (_initialize_arm_tdep): Register them.
12601 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12602
12603 * armnbsd-tdep.c: New file.
12604 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12605 * config/arm/nbsd.mt (TDEPFILES): Add it.
12606 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12607
12608 * armnbsd-nat.c: Include regcache.h.
12609 * Makefile.in (armnbsd-nat.o): Update dependency list.
12610
12611 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12612
12613 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12614
12615 * gdbserver/Makefile.in: Fix typos in target rules.
12616
12617 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12618
12619 Fix part of PR gdb/267.
12620 * linespec.c (find_methods): Handle constructors specially for now.
12621
12622 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12623
12624 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12625 handling.
12626 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12627 standard_coerce_float_to_double().
12628
12629 2002-02-14 Christopher Faylor <cgf@redhat.com>
12630
12631 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12632 GDBINIT_FILENAME.
12633
12634 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12635
12636 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12637 find_variant_by_name, because it confuses the multiarch
12638 framework. Return NULL if there isn't an architecture with the
12639 user supplied name, instead of forcing a different one without
12640 recording the change with the multiarch machinery.
12641 (find_variant_by_name): Delete.
12642
12643 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12644
12645 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12646 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12647
12648 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12649
12650 * stack.c (print_frame_info_base): When calling
12651 print_frame_info_listing_hook, set current_source_symtab.
12652
12653 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12654
12655 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12656 and remove unused $(INCLUDE_DIR).
12657 Add regcache.c to OBS.
12658 Add generated register protocol files to clean target.
12659 Update dependencies for new objects, obsolete old target code.
12660
12661 * gdbserver/linux-low.c: Remove all platform-specific code to
12662 new files. Remove various dead code. Update to use regcache
12663 functionality.
12664 * gdbserver/remote-utils.c (fromhex): Add return statement
12665 to quiet warning.
12666 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12667 constant.
12668 (input_interrupt): Add integer parameter to match prototype
12669 of a signal handler.
12670 (outreg): Use register_data ().
12671 (prepare_resume_reply): Use gdbserver_expedite_regs.
12672 * gdbserver/server.c (main): Dynamically allocate own_buf because
12673 PBUFSIZ is no longer constant. Use registers_to_string () and
12674 registers_from_string ().
12675 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12676 for error (), fatal (), and warning (). Update definition of
12677 PBUFSIZ to use regcache functionality. Add include guard.
12678 * gdbserver/utils.c (fatal): Add missing ``const''.
12679 (warning): New function.
12680
12681 * regformats/regdat.sh: Include "regcache.h" in generated files.
12682 Provide init_registers () function.
12683 * regformats/regdef.h: Add prototype for set_register_cache ().
12684 Add include guard.
12685
12686 * gdbserver/linux-arm-low.c: New file.
12687 * gdbserver/linux-i386-low.c: New file.
12688 * gdbserver/linux-ia64-low.c: New file.
12689 * gdbserver/linux-m68k-low.c: New file.
12690 * gdbserver/linux-mips-low.c: New file.
12691 * gdbserver/linux-ppc-low.c: New file.
12692 * gdbserver/linux-sh-low.c: New file.
12693
12694 * gdbserver/regcache.c: New file.
12695 * gdbserver/regcache.h: New file.
12696
12697 * gdbserver/low-linux.c: Removed obsolete file.
12698
12699 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12700
12701 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12702 * config/i386/linux.mt: Likewise.
12703 * config/ia64/linux.mt: Likewise.
12704 * config/m68k/linux.mh: Likewise.
12705 * config/powerpc/linux.mh: Likewise.
12706 * config/mips/linux.mt: Likewise.
12707
12708 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12709
12710 * config/i386/i386lynx.mh: Mark gdbserver variables
12711 as (currently) obsolete for this target.
12712 * config/i386/nbsd.mt: Likewise.
12713 * config/i386/nbsdelf.mt: Likewise.
12714 * config/m32r/m32r.mt: Likewise.
12715 * config/m68k/m68klynx.mh: Likewise.
12716 * config/m68k/nbsd.mt: Likewise.
12717 * config/m68k/sun3os4.mh: Likewise.
12718 * config/mips/vr5000.mt: Likewise.
12719 * config/ns32k/nbsd.mt: Likewise.
12720 * config/pa/hppabsd.mh: Likewise.
12721 * config/pa/hppaosf.mh: Likewise.
12722 * config/powerpc/nbsd.mt: Likewise.
12723 * config/rs6000/rs6000lynx.mh: Likewise.
12724 * config/s390/s390.mt: Likewise.
12725 * config/s390/s390x.mt: Likewise.
12726 * config/sparc/sparclynx.mh: Likewise.
12727 * config/sparc/sun4os4.mh: Likewise.
12728 * config/i386/x86-64linux.mt: Likewise.
12729 * config/sparc/linux.mh: Likewise.
12730
12731 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * configure.tgt: Configure gdbserver only for known working
12734 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12735 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12736 SUBDIRS if it is configured. Update comment for ${nativefile}.
12737 * configure: Regenerated.
12738
12739 2002-02-13 Michael Snyder <msnyder@redhat.com>
12740
12741 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12742
12743 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12744 (default_gcore_mach): Just return 0, work around a problem in bfd.
12745 (default_gcore_target): OK to return NULL if exec_bfd is null.
12746 (make_mem_sec): Use a cast, avoid a warning.
12747
12748 * procfs.c (find_memory_regions_callback): Use a cast instead of
12749 calling host_pointer_to_address (which complains if
12750 sizeof (host pointer) != sizeof (target pointer)).
12751 (procfs_make_note_section): Avoid overflow in psargs string.
12752
12753 * procfs.c (procfs_make_note_section): Make the default
12754 implementation return an error.
12755
12756 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12757
12758 * procfs.c (procfs_make_note_section): Provide a default definition
12759 (for alpha-dec-osf4.0f). Fix typos.
12760
12761 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12762
12763 * linux-proc.c: Add include of regcache.h.
12764 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12765
12766 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12767
12768 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12769 * memattr.c (create_mem_region): Disallow useless empty region.
12770 Regions are half-open intervals, so allow [A..B) [B..C) as
12771 non-overlapping.
12772
12773 2002-02-13 Michael Chastain <mec@shout.net>
12774
12775 * defs.h: Kill CONST_PTR.
12776 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12777 * c-lang.c (c_builtin_types): Likewise.
12778 * ch-lang.c (ch_builtin_types): Likewise.
12779 * f-lang.c (f_builtin_types): Likewise.
12780 * language.c (unknown_builtin_types): Likewise.
12781 * m2-lang.c (m2_builtin_types): Likewise.
12782 * p-lang.c (pascal_builtin_types): Likewise.
12783 * scm-lang.c (c_builtin_types): Likewise.
12784
12785 2002-02-13 Keith Seitz <keiths@redhat.com>
12786
12787 * arm-tdep.h (arm_get_next_pc): Add declaration.
12788
12789 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12790
12791 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12792 with other related struct-returning functions.
12793 (arm_extract_struct_value_address): New function.
12794 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12795 initialize float_format, double_format and long_double_format as
12796 appropriate to the endianness of the target.
12797 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12798 (arm_use_struct_convention): Delete declaration.
12799 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12800
12801 2002-02-13 Keith Seitz <keiths@redhat.com>
12802
12803 * defs.h (core_addr_to_string_nz): New function.
12804
12805 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12806
12807 Apply missing bits of 2002-01-15 patch.
12808 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12809 (fill_fpregset): Use i387_fill_fsave.
12810
12811 2002-02-12 Keith Seitz <keiths@redhat.com>
12812
12813 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12814 (core_addr_to_string_nz): New function.
12815
12816 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12817
12818 * arm-linux-nat.c: Really include arm-tdep.h.
12819 * config/arm/tm-linux.h (struct type, struct value): Declare.
12820
12821 2002-02-11 Michael Snyder <msnyder@redhat.com>
12822
12823 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12824 (gcore section): Ifdef for Solaris and Unixware only.
12825 (procfs_do_thread_registers): Unixware needs one lwpstatus
12826 per thread (not one prstatus or pstatus).
12827 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12828 not over all gdb threads. For unixware, call elfcore_write_pstatus
12829 once before iterating over threads.
12830
12831 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12832
12833 * arm-tdep.h: New file.
12834 * arm-tdep.c: Include arm-tdep.h.
12835 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12836 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12837 (arm_print_float_info, arm_register_type, convert_to_extended)
12838 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12839 (arm_extract_return_value, arm_register_name): Make static.
12840 (arm_software_single_step): Similarly. Fix types in declaration.
12841 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12842 (arm_store_return_value, arm_store_struct_return): New functions.
12843 (arm_gdbarch_init): Register the above functions. Also register
12844 call_dummy_start_offset, sizeof_call_dummy_words,
12845 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12846 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12847 max_register_virtual_size, register_size. Set up
12848 prologue_cache.saved_regs here, rather than ...
12849 (_initialize_arm_tdep): ... here.
12850 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12851 declarations.
12852 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12853 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12854 (arm_print_float_info, arm_register_type, convert_to_extended)
12855 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12856 (arm_extract_return_value, arm_register_name): Delete declarations.
12857 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12858 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12859 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12860 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12861 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12862 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12863 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12864 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12865 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12866 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12867 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12868 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12869 interface.
12870 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12871 * remote-rdi.c remote-rdp.c: Likewise.
12872 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12873 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12874 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12875 definition.
12876
12877 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12878 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12879 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12880 from non-ARM_ prefixed definitions.
12881 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12882 all uses of above.
12883 * remote-rdi.c remote-rdp.c: Likewise.
12884 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12885
12886 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12887
12888 * arm-tdep.c (arm_frameless_function_invocation)
12889 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12890 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12891 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12892 (arm_pop_frame, arm_get_next_pc): Make static.
12893 (arm_gdbarch_init): Register above in gdbarch structure.
12894 (arm_read_fp): Renamed from arm_target_read_fp.
12895 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12896 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12897 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12898 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12899 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12900 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12901 (arm_pc_is_thumb_dummy): Delete declarations.
12902 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12903 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12904 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12905 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12906
12907 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12908
12909 * symtab.c (compare_search_syms): New function.
12910 (sort_search_symbols): New function.
12911 (search_symbols): Sort symbols after searching rather than
12912 before.
12913
12914 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12915
12916 * NEWS: Linux -> GNU/Linux.
12917
12918 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12919
12920 * gdbarch.sh: For for level one methods, disallow a definition
12921 when partially multi-arched. Add comments explaining rationale.
12922 * gdbarch.h: Re-generate.
12923
12924 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12925
12926 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12927 multi-arch partial.
12928
12929 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12930
12931 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12932 field. Use diff -u.
12933 * gdbarch.c: Re-generate.
12934
12935 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12936
12937 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12938 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12939 partial.
12940
12941 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12942
12943 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12944 multi-arch partial.
12945 (PUSH_ARGUMENTS): Switch to using predefault.
12946 * gdbarch.c: Regenerate.
12947
12948 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12949
12950 * valops.c (PUSH_ARGUMENTS): Delete definition.
12951 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12952 partial. Default to default_push_arguments.
12953 * gdbarch.h, gdbarch.c: Regenerate.
12954
12955 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12956
12957 * defs.h (throw_exception): Rename return_to_top_level. Update
12958 comments.
12959 * utils.c (error_stream, internal_verror, quit): Ditto.
12960 * top.c (throw_exception, catcher): Ditto.
12961 * sparclet-rom.c (sparclet_load): Ditto.
12962 * remote.c (interrupt_query, minitelnet): Ditto.
12963 * remote-sds.c (interrupt_query): Ditto.
12964 * remote-mips.c (mips_error, mips_kill): Ditto.
12965 * ocd.c (interrupt_query): Ditto.
12966 * monitor.c (monitor_interrupt_query): Ditto.
12967 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12968 * target.h: Update comment.
12969
12970 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12971
12972 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12973
12974 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12975 default_double_format.
12976 * gdbarch.h, gdbarch.c: Re-generate.
12977 * findvar.c (floatformat_unknown): Delete variable definition.
12978 * doublest.h (floatformat_unknown): Delete variable declaration.
12979
12980 2002-02-09 Jim Blandy <jimb@redhat.com>
12981
12982 * stabsread.c (read_type): Add code to parse Sun's syntax for
12983 prototyped function types.
12984
12985 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12986
12987 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12988 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12989
12990 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12991
12992 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12993 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12994 now _initialize_xcoffsolib gets called again and overrides the
12995 commands from solib.c in a native configuration.
12996
12997 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12998
12999 * doublest.c (store_typed_floating): Don't try to return a value.
13000 Fixes PR gdb/290.
13001
13002 2002-02-08 Jim Blandy <jimb@redhat.com>
13003
13004 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13005 is prototyped and has no arguments, print its argument list as
13006 `(void)'.
13007
13008 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13009
13010 * MAINTAINERS (write-after-approval): Add myself.
13011 (paper-trail): I've escaped!
13012
13013 2002-02-08 Christopher Faylor <cgf@redhat.com>
13014
13015 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13016 changes.
13017 (_initialize_check_for_gdb_ini): Ditto.
13018
13019 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13020
13021 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13022 xaprintf -> xasprintf.
13023
13024 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13025
13026 * win32-nat.c: Remove use of printf and sprintf functions.
13027
13028 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13029
13030 * arm-tdep.c (arm_frame_chain_valid): Make static.
13031 (arm_push_arguments): Likewise.
13032 (arm_gdbarch_init): New function.
13033 (_initialize_arm_tdep): Call it.
13034 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13035 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13036 (FRAME_CHAIN_VALID): Delete.
13037 (arm_frame_chain_valid): Delete declaration.
13038 (PUSH_ARGUMENTS): Delete.
13039 (arm_push_arguments): Delete declaration.
13040 (CALL_DUMMY_P): Delete.
13041
13042 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13043 Corinna Vinschen <vinschen@redhat.com>
13044
13045 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13046 on builtin float types.
13047
13048 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13049
13050 * utils.c: Include <curses.h> before "bfd.h".
13051 * tui/tui-hooks.c: Likewise.
13052 * tui/tui.c: Likewise.
13053 * tui/tuiCommand.c: Likewise.
13054 * tui/tuiData.c: Likewise.
13055 * tui/tuiDataWin.c: Likewise.
13056 * tui/tuiDisassem.c: Likewise.
13057 * tui/tuiGeneralWin.c: Likewise.
13058 * tui/tuiIO.c: Likewise.
13059 * tui/tuiLayout.c: Likewise.
13060 * tui/tuiRegs.c: Likewise.
13061 * tui/tuiSource.c: Likewise.
13062 * tui/tuiSourceWin.c: Likewise.
13063 * tui/tuiStack.c: Likewise.
13064 * tui/tuiWin.c: Likewise.
13065
13066 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13067
13068 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13069 to include space for pseudoregs as well. Update loops accordingly.
13070 (sh_fp_frame_init_saved_regs): Ditto.
13071 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13072
13073 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13074
13075 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13076 Add Richard Earnshaw to Arm maintainers.
13077
13078 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13079
13080 * defs.h (warning_begin): Delete declaration.
13081
13082 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13083 Delete macro.
13084
13085 2002-02-07 Michael Snyder <msnyder@redhat.com>
13086
13087 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13088 Logic bug, remove misplaced else.
13089
13090 2002-02-07 Klee Dienes <klee@apple.com>
13091
13092 * fork-inferior.c (fork_inferior): Add '!' to the list of
13093 characters that need to be quoted when building a string for the
13094 shell. Quote '!' specifically with a backslash, since CSH chokes
13095 when trying to evaluate "str!str".
13096
13097 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13098
13099 * rdi-share/host.h: Only provide a typedef for bool if it is not
13100 defined.
13101
13102 2002-02-04 Michael Snyder <msnyder@redhat.com>
13103
13104 * breakpoint.h (enum bptype): Add new overlay event bp type.
13105 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13106
13107 * breakpoint.c (create_internal_breakpoint): New function.
13108 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13109 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13110 (create_thread_event_breakpoint): Ditto.
13111 (create_solib_event_breakpoint): Ditto.
13112 (create_overlay_event_breakpoint): New function.
13113 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13114 (update_breakpoints_after_exec): Delete and re-initialize
13115 overlay event breakpoints after an exec. Add FIXME comment
13116 about longjmp breakpoint.
13117 (print_it_typical): Ignore overlay event breakpoints.
13118 (print_one_breakpoint): Ditto.
13119 (mention): Ditto.
13120 (bpstat_what): Do not stop for overlay event breakpoints.
13121 (delete_breakpoint): Don't delete overlay event breakpoints.
13122 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13123 (breakpoint_re_set): Re-create overlay event breakpoint.
13124
13125 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13126 (overlay_manual_command): Disable overlay breakpoints.
13127 (overlay_off_command): Disable overlay breakpoints.
13128
13129 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13130
13131 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13132 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13133 to here from config/tm-arm.h.
13134 (coff_sym_is_thumb): Make static.
13135 (arm_elf_make_msymbol_special): New function.
13136 (arm_coff_make_msymbol_special): New function.
13137 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13138 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13139 (coff_sym_is_thumb): Delete declaration.
13140 (arm_elf_make_msymbol_special): Declare.
13141 (arm_coff_make_msymbol_special): Declare.
13142 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13143 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13144
13145 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13146
13147 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13148
13149 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13150
13151 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13152 * gdbarch.c gdbarch.h: Regenerate.
13153 * arch-utils.c (default_print_float_info): New function.
13154 * arch-utils.h (default_print_float_info): Prototype it.
13155 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13156 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13157 (PRINT_FLOAT_INFO): Document it.
13158
13159 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13160 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13161 (PRINT_FLOAT_INFO): Define.
13162
13163 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13164
13165 * win32-nat.c (_initialize_check_for_gdb_ini):
13166 Add typecast to sprintf argument to suppress a warning.
13167
13168 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13169
13170 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13171 to allow easier handling of pass state.
13172 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13173 that gives exception name and address.
13174 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13175 and set last_sig value to ourstatus->value.sig. Some missing
13176 exceptions added.
13177 (child_continue): Correctly report continue_status.
13178 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13179 TARGET_SIGNAL_0 (new default value).
13180 (child_resume): consider sig argument passed to decide if
13181 the exception should be passed to debuggee or not.
13182
13183 2002-02-05 Michael Snyder <msnyder@redhat.com>
13184
13185 * regcache.c (fetch_register): Call target_fetch_register
13186 only if we don't call FETCH_PSEUDO_REGISTER.
13187 (store_register): Call target_store_register only if we
13188 don't call STORE_PSEUDO_REGISTER.
13189
13190 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13191
13192 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13193 ELF_MAKE_MSYMBOL_SPECIAL.
13194 * gdbarch.c, gdbarch.h: Regenerate.
13195 * arch-utils.c (default_make_msymbol_special): New function.
13196 * arch-utils.h (default_make_msymbol_special): Export.
13197 * elfread.c (elf_symtab_read): Compile use of
13198 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13199 multiarched.
13200 * coffread.c (coff_symtab_read): Ditto, for
13201 COFF_MAKE_MSYMBOL_SPECIAL.
13202
13203 2002-02-05 Jim Blandy <jimb@redhat.com>
13204
13205 * solib-svr4.c (svr4_truncate_ptr): New function.
13206 (svr4_relocate_section_addresses): Do the address arithmetic with
13207 the appropriate truncation for target addresses, even when
13208 CORE_ADDR is larger than a target address.
13209
13210 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13211
13212 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13213 to (int *).
13214
13215 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13216
13217 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13218 code.
13219
13220 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13221
13222 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13223
13224 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13225
13226 * gdbserver/linux-low.c: Remove unused include files.
13227
13228 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13229
13230 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13231 (read_inferior_memory): Use it.
13232 (write_inferior_memory): Likewise.
13233
13234 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13235
13236 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13237 grubbing through sys_errlist.
13238
13239 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13240
13241 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13242
13243 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13244 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13245
13246 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13247
13248 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13249 (do_sfunc, set_cmd_sfunc): New functions.
13250
13251 * command.h (struct cmd_list_element): Add field func.
13252 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13253 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13254 * cli/cli-decode.h: Ditto.
13255
13256 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13257 (help_all, help_cmd_list): Ditto.
13258 (find_cmd, complete_on_cmdlist): Ditto.
13259 * top.c (execute_command): Ditto.
13260
13261 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13262 function.sfunc.
13263
13264 * infcmd.c (notice_args_read): Fix function signature.
13265
13266 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13267 * cli/cli-decode.c (add_set_cmd): Ditto.
13268 * utils.c (initialize_utils): Ditto.
13269 * maint.c (_initialize_maint_cmds): Ditto.
13270 * infrun.c (_initialize_infrun): Ditto.
13271 * demangle.c (_initialize_demangler): Ditto.
13272 * remote.c (add_packet_config_cmd): Ditto.
13273 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13274 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13275 * proc-api.c (_initialize_proc_api): Ditto.
13276 * kod.c (_initialize_kod): Ditto.
13277 * valprint.c (_initialize_valprint): Ditto.
13278 * top.c (init_main): Ditto.
13279 * infcmd.c (_initialize_infcmd): Ditto.
13280 * corefile.c (_initialize_core): Ditto.
13281 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13282 * arch-utils.c (initialize_current_architecture): Ditto.
13283 (_initialize_gdbarch_utils): Ditto.
13284 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13285
13286 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13287 * wince.c (_initialize_inftarg): Ditto.
13288 * symfile.c (_initialize_symfile): Ditto.
13289 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13290 * language.c (_initialize_language): Ditto.
13291 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13292
13293 2002-02-04 Michael Snyder <msnyder@redhat.com>
13294
13295 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13296
13297 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13298
13299 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13300 Add rules for building the register data files.
13301
13302 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13303
13304 * regformats/regdat.sh: Add braces to the definition of
13305 expedite_regs_${arch}.
13306
13307 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13308
13309 * regformats/regdef.h (struct reg): Add comment describing the
13310 requirements for offset and size fields.
13311
13312 2002-02-04 Andreas Schwab <schwab@suse.de>
13313
13314 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13315 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13316
13317 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13318
13319 * gdbarch.sh (copyright): Update years in generated header.
13320 (SMASH_TEXT_ADDRESS): Add rule.
13321 * gdbarch.h, gdbarch.c: Re-generate.
13322 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13323 * dbxread.c: Likewise.
13324 * dwarfread.c: Likewise.
13325 * elfread.c: Likewise.
13326 * somread.c: Likewise.
13327
13328 * arm-tdep.c (arm_smash_text_address): New function.
13329 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13330
13331 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13332
13333 Add support for hardware watchpoints on win32 native.
13334 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13335 CONTEXT_DEBUG_REGISTERS.
13336 (dr variable): New variable. Static array containing a local copy
13337 of debug registers.
13338 (debug_registers_changed): New variable. Reflects when debug registers
13339 are changed and need to be written to inferior.
13340 (debug_registers_used): New variable. Reflects when any debug register
13341 was set, used when new threads are created.
13342 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13343 i386-nat code.
13344 (thread_rec): Set dr array if id is the thread of current_event .
13345 (child_continue, child_resume): Change the debug registers for all
13346 threads if debug_registers_changed.
13347 (child_add_thread): Change the debug registers if debug_registers_used.
13348 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13349 Link nm.h to new nm-cygwin.h file.
13350 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13351 of hardware registers.
13352
13353 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13354
13355 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13356 Restore behavour broken by 2002-01-20 Andrew Cagney
13357 <ac131313@redhat.com> IEEE_FLOAT removal.
13358
13359 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13360
13361 * c-valprint.c (c_val_print): Pass a proper valaddr to
13362 cp_print_class_method.
13363 * valops.c (search_struct_method): If there is only one method
13364 and args is NULL, return that method.
13365
13366 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13367
13368 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13369 accessing tag_name directly.
13370
13371 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13372
13373 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13374 of accessing tag_name directly.
13375
13376 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13377
13378 PR gdb/280
13379 * gdbtypes.c (replace_type): New function.
13380 * gdbtypes.h (replace_type): Add prototype.
13381 * stabsread.c (read_type): Use replace_type.
13382
13383 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13384
13385 * Makefile.in (memattr.o): Add missing dependencies rule.
13386
13387 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13388
13389 * breakpoint.c (break_at_finish_command): Really export.
13390 (break_at_finish_at_depth_command): Ditto.
13391 (tbreak_at_finish_command): Ditto.
13392 * hppa-tdep.c: Include completer.h.
13393 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13394 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13395
13396 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13397
13398 * utils.c (do_write): New function.
13399 (error_stream): Rewrite combining the code from error_begin and
13400 verror.
13401 (verror): Rewrite using error_stream.
13402 (error_begin): Delete function.
13403
13404 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13405
13406 * utils.c (error_begin): Make static.
13407 * defs.h (error_begin): Delete declaration.
13408
13409 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13410 (decode_line_1): Use cplusplus_error instead of error_begin,
13411 cplusplus_hint and return_to_top_level.
13412 * coffread.c (coff_symfile_read): Use error instead of error_begin
13413 and return_to_top_level.
13414 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13415
13416 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13417
13418 * language.h (type_error, range_error): Make string parameter
13419 constant.
13420 * language.c (warning_pre_print): Delete extern declaration.
13421 * dwarfread.c (warning_pre_print): Ditto.
13422 * language.c (type_error, range_error): Rewrite to use verror and
13423 vwarning instead of warning_begin.
13424
13425 2002-02-01 Michael Snyder <msnyder@redhat.com>
13426
13427 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13428 (set_ignore_count): Move misplaced comment back where it belongs.
13429
13430 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13431
13432 * command.h (NO_FUNCTION): Delete macro.
13433 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13434 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13435 * tracepoint.c (_initialize_tracepoint): Ditto.
13436 * cli/cli-decode.c (add_set_cmd): Ditto.
13437 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13438
13439 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13440
13441 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13442 Update ``this'' pointer when calling virtual functions.
13443
13444 2002-02-01 Michael Snyder <msnyder@redhat.com>
13445
13446 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13447 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13448
13449 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13450
13451 * regformats/reg-arm.dat: New file.
13452 * regformats/reg-i386.dat: New file.
13453 * regformats/reg-ia64.dat: New file.
13454 * regformats/reg-m68k.dat: New file.
13455 * regformats/reg-mips.dat: New file.
13456 * regformats/reg-ppc.dat: New file.
13457 * regformats/reg-sh.dat: New file.
13458 * regformats/regdef.h: New file.
13459 * regformats/regdat.sh: New file.
13460
13461 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13462
13463 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13464 (arm_frame_args_address, arm_frame_locals_address): New functions.
13465 (arm_frame_num_args): New function.
13466 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13467 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13468 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13469
13470 2002-01-31 Michael Snyder <msnyder@redhat.com>
13471
13472 * breakpoint.c (break_at_finish_command): Export.
13473 (break_at_finish_at_depth_command): Export.
13474 (tbreak_at_finish_command): Export.
13475 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13476 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13477 "txbreak" commands, which are HPPA specific.
13478
13479 * printcmd.c (disassemble_command): Remove an ancient
13480 artifact of an old merge.
13481
13482 * symfile.h (enum overlay_debugging_state):
13483 Define enum constant values for overlay mode.
13484 * symfile.c (overlay_debugging): Use enums instead of literals.
13485 (overlay_is_mapped, overlay_auto_command,
13486 overlay_manual_command): Ditto.
13487
13488 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13489 breakpoint_here_p, breakpoint_inserted_here_p,
13490 breakpoint_thread_match, bpstat_stop_status,
13491 describe_other_breakpoints, check_duplicates, clear_command):
13492 Coding standard fixes.
13493
13494 * target.c (target_xfer_memory): Add spaces, coding standard.
13495 (do_xfer_memory): Add missing line to trust-readonly
13496 code: check bfd SEC_READONLY flag for section.
13497
13498 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13499
13500 * PROBLEMS: Fix typo, 5.1->5.1.1.
13501
13502 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13503
13504 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13505 data symbols, since we search based on textlow and texthigh.
13506 (find_pc_sect_symtab): Likewise.
13507
13508 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13509
13510 * defs.h (vwarning): Declare.
13511 * utils.c (vwarning): New function.
13512 (warning): Call vwarning.
13513 (warning_begin): Delete function.
13514
13515 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13516 the warning message.
13517 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13518 warning_begin.
13519
13520 2002-01-30 Michael Snyder <msnyder@redhat.com>
13521
13522 * NEWS: Mention "set trust-readonly-sections" command.
13523 Mention generate-core-file command.
13524
13525 2002-01-15 Michael Snyder <msnyder@redhat.com>
13526
13527 * target.c: New command, "set trust-readonly-sections on".
13528 (do_xfer_memory): Honor the suggestion to trust readonly sections
13529 by reading them from the object file instead of from the target.
13530 (initialize_targets): Register command "set trust-readonly-sections".
13531
13532 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13533
13534 * parse.c (target_map_name_to_register): Simplify, search regs and
13535 pseudo-regs using a single loop.
13536
13537 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13538
13539 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13540
13541 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13542
13543 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13544 * config/i386/i386v42mp.mh: Add i387-nat.o .
13545 * i386v4-nat.c: Include i387-nat.h.
13546 (supply_fpregset): Use i387_supply_fsave.
13547 (fill_fpregset): Use i387_fill_fsave.
13548
13549 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13550
13551 * arm-tdep.c (arm_call_dummy_words): Define.
13552 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13553 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13554 (CALL_DUMMY_WORDS): Define.
13555 (arm_call_dummy_words): Declare.
13556 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13557 (arm_linux_call_dummy_words): Declare.
13558
13559 2002-01-30 Andreas Schwab <schwab@suse.de>
13560
13561 * m68klinux-nat.c: Fix last change to use regcache_collect
13562 instead of referencing registers[] directly.
13563
13564 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13565
13566 * parse.c (target_map_name_to_register): Delete code wrapped in
13567 #ifdef REGISTER_NAME_ALIAS_HOOK.
13568
13569 2002-01-28 Michael Snyder <msnyder@redhat.com>
13570
13571 * regcache.c (legacy_read_register_gen): Need to be able to
13572 read pseudo-register as well as real register.
13573 (legacy_write_register_gen): Ditto.
13574
13575 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13576
13577 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13578 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13579 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13580 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13581 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13582 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13583 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13584 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13585 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13586 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13587 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13588 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13589 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13590 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13591 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13592 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13593 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13594 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13595 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13596 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13597
13598 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13599
13600 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13601 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13602 (initialize_current_architecture): Update target_byte_order using
13603 information from BFD.
13604 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13605 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13606
13607 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13608
13609 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13610 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13611
13612 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13613 #ifdef INVALID_FLOAT.
13614 * infcmd.c (do_registers_info): Ditto.
13615 * values.c (unpack_double): Ditto. Add comment.
13616
13617 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13618 already commented out.
13619
13620 2002-01-26 Andreas Schwab <schwab@suse.de>
13621
13622 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13623 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13624 registers and add support for PTRACE_GETREGS.
13625
13626 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13627
13628 GDB 5.1.1 released from 5.1 branch.
13629 * NEWS: Add 5.1.1 news.
13630 * README: Sync with 5.1 branch.
13631
13632 2002-01-23 Fred Fish <fnf@redhat.com>
13633
13634 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13635 stabstring on initial malloc. Reallocing will copy it for us,
13636 if necessary.
13637
13638 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13639
13640 * Makefile.in (hpread_h): Delete.
13641 (HFILES_NO_SRCDIR): Remove hpread.h.
13642 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13643 (hpread.o): Update dependencies.
13644 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13645
13646 * hp-psymtab-read.c: Remove file.
13647 * hp-symtab-read.c: Remove file.
13648 * hpread.h: Remove file.
13649
13650 * hpread.c: Merge all contents of hp-psymtab-read.c,
13651 hp-symtab-read.c and hpread.h into this file, as it was prior to
13652 January 1999.
13653
13654 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13655 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13656 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13657 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13658
13659 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13660
13661 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13662 fill_gregset): Call gdbarch_tdep() just once, assign result to
13663 variable and use that, instead of calling the function several
13664 times.
13665
13666 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13667
13668 * configure.host: Accept sparcv9 as alias for sparc64.
13669 * configure.tgt: Likewise.
13670
13671 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13672
13673 * solib-aix5.c (build_so_list_from_mapfile)
13674 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13675 arguments is not reversed.
13676 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13677 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13678
13679 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13680
13681 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13682 modified version of obsolete sh_fetch_pseudo_register.
13683 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13684 (sh4_register_read): New function.
13685 (sh_pseudo_register_write): New function. Renamed and modified
13686 version of obsolete sh_store_pseudo_register.
13687 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13688 (sh4_register_write): New function.
13689 (sh_gdbarch_init): Remove setting of gdbarch function
13690 fetch_pseudo_register and store_pseudo_register. Remove setting of
13691 register_convert_to_raw, register_convert_to_virtual,
13692 register_convertible.
13693 (sh_sh4_register_convertible): Delete. No longer needed. All is
13694 taken care by architecture specific functions
13695 register_read/register_write.
13696 (sh_sh4_register_convert_to_virtual): Make static.
13697 (sh_sh4_register_convert_to_raw): Ditto.
13698
13699 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13700
13701 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13702 (floatformat_is_nan, floatformat_mantissa): Ditto.
13703
13704 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13705 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13706 builtin_type_ieee_double_little,
13707 builtin_type_ieee_double_littlebyte_bigword,
13708 builtin_type_m68881_ext, builtin_type_i960_ext,
13709 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13710 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13711 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13712 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13713
13714 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13715
13716 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13717 parameter. Set frameless flag if it exists and depended of
13718 whether the scanned function is frameless or not.
13719 (xstormy16_skip_prologue): If function is frameless, return
13720 result of xstormy16_scan_prologue().
13721 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13722 call.
13723
13724 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13725
13726 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13727 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13728 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13729 sh_sh4_register_byte, sh_sh4_register_raw_size,
13730 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13731 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13732 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13733 sh_store_pseudo_register, sh_do_pseudo_register): Call
13734 gdbarch_tdep() just once, assign result to variable and use that,
13735 instead of calling the function several times.
13736
13737 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13738
13739 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13740 macros instead of LAST_FPU_CTRL_REGNUM.
13741 (store_register): Likewise.
13742
13743 2002-01-21 Jim Blandy <jimb@redhat.com>
13744
13745 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13746 is up-to-date before running the program, not just when a program
13747 exits.
13748
13749 2002-01-21 Fred Fish <fnf@redhat.com>
13750
13751 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13752 when we have found all instructions we are looking for.
13753
13754 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13755
13756 * arm-tdep.c (arm_register_name): New function.
13757 (arm_registers_names): Make static.
13758 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13759 (arm_register_name): Declare.
13760 (REGISTER_NAME): Use it.
13761
13762 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13763 Kevin Buettner <kevinb@redhat.com>
13764
13765 Convert arm targets to new FRAME interface.
13766 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13767 (arm_frame_find_save_regs): Delete.
13768 (arm_frame_init_saved_regs): New.
13769 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13770 Allocate extra_info as required. Convert all uses of fsr.regs
13771 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13772 to use extra_info.
13773 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13774 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13775 (check_prologue_cache, save_prologue_cache): Likewise.
13776 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13777 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13778 (FRAME_FIND_SAVED_REGS): Delete.
13779 (arm_frame_find_saved_regs): Delete prototype.
13780 (arm_frame_init_saved_regs): New prototype.
13781 (FRAME_INIT_SAVED_REGS): Define.
13782
13783 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13784
13785 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13786
13787 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13788
13789 From Jeff Law <law@redhat.com>:
13790 * infttrace.c: Include <sys/pstat.h>.
13791 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13792 exec file if the ttrace equivalent fails.
13793
13794 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13795
13796 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13797 (closeLogFile): Ditto.
13798
13799 2002-01-20 Michael Chastain <mec@shout.net>
13800
13801 * top.c (print_gdb_version): Bump copyright year to 2002.
13802
13803 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13804
13805 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13806 Zannoni and Eli Zaretskii.
13807
13808 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13809
13810 * buildsym.c: Update copyright years.
13811 * c-typeprint.c: Likewise.
13812 * dwarf2read.c: Likewise.
13813 * f-typeprint.c: Likewise.
13814 * gdbtypes.c: Likewise.
13815 * gdbtypes.h: Likewise.
13816 * hp-symtab-read.c: Likewise.
13817 * hpread.c: Likewise.
13818 * mdebugread.c: Likewise.
13819 * p-typeprint.c: Likewise.
13820
13821 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13822
13823 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13824 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13825 byte-order selectable.
13826 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13827 * arch-utils.c: Ditto.
13828 (set_endian): Ditto.
13829 (set_endian_from_file): Ditto.
13830 * gdbserver/low-sim.c (create_inferior): Ditto.
13831 * gdbarch.sh: Ditto.
13832 * gdbarch.h: Re-generate.
13833 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13834 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13835 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13836 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13837 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13838 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13839 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13840 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13841 macro definition.
13842 * config/mips/tm-wince.h: Remove #undef of macro
13843 TARGET_BYTE_ORDER_SELECTABLE.
13844 * config/sh/tm-wince.h: Ditto.
13845
13846 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13847
13848 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13849 member function fields. Add accessor macro
13850 TYPE_FN_FIELD_ARTIFICIAL.
13851 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13852 * c-typeprint.c (c_type_print_base): Skip artificial member
13853 functions.
13854
13855 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13856
13857 * f-typeprint.c: Delete unused function f_type_print_args.
13858 * p-typeprint.c: Delete unused function pascal_type_print_args.
13859
13860 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13861
13862 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13863 comment. Add ``artificial'' to ``union field_location''.
13864
13865 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13866
13867 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13868 * mdebugread.c (parse_symbol): Likewise.
13869 * stabsread.c (define_symbol): Likewise.
13870 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13871 initializing TYPE_FIELD_BITPOS to n (obsolete).
13872 (hpread_doc_function_type): Likewise.
13873 * hpread.c (hpread_function_type): Likewise.
13874
13875 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13876
13877 * configure.in (host_makefile_frag): Only require a host makefile
13878 fragment when a native build.
13879 * configure: Re-generate.
13880
13881 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13882
13883 * doublest.h (floatformat_from_type): Declare.
13884 * doublest.c (floatformat_from_type): New function.
13885 (convert_typed_floating): Use.
13886
13887 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13888 call to function floatformat_from_type.
13889
13890 * gdbarch.sh (IEEE_FLOAT): Delete.
13891 * gdbarch.h, gdbarch.c: Re-generate.
13892 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13893 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13894 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13895 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13896 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13897 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13898 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13899 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13900 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13901 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13902 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13903 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13904
13905 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13906 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13907 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13908 * sh-tdep.c (sh_gdbarch_init): Ditto.
13909 * mips-tdep.c (mips_gdbarch_init): Ditto.
13910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13911 * cris-tdep.c (cris_gdbarch_init): Ditto.
13912
13913 2002-01-20 Jiri Smid <smid@suse.cz>
13914
13915 * configure.host, configure.tgt: Support x86-64.
13916 * NEWS: Note new target x86-64.
13917
13918 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13919 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13920 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13921 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13922 x86-64-linux-nat.o): Fix dependencies.
13923
13924 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13925
13926 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13927 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13928 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13929 * config/sparc/xm-sun4os4.h: Delete file.
13930 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13931
13932 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13933
13934 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13935 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13936 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13937 * config/i386/i386lynx.mh (XM_FILE): Delete.
13938 * config/rs6000/xm-rs6000ly.h: Delete file.
13939 * config/sparc/xm-sparclynx.h: Delete file.
13940 * config/m68k/xm-m68klynx.h: Delete file.
13941 * config/i386/xm-i386lynx.h: Delete file.
13942 * config/xm-lynx.h: Delete file.
13943 * config/djgpp/fnchange.lst: Update.
13944
13945 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13946
13947 * alpha-tdep.c (alpha_register_byte): New function.
13948 (alpha_register_raw_size): Ditto.
13949 (alpha_register_virtual_size): Ditto.
13950 (alpha_skip_prologue_internal): Renamed from
13951 alpha_skip_prologue.
13952 (alpha_skip_prologue): New version that calls
13953 alpha_skip_prologue_internal.
13954 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13955 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13956 second argument from alpha_skip_prologue.
13957 (REGISTER_BYTE): Use alpha_register_byte.
13958 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13959 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13960 (FRAMELESS_FUNCTION_INVOCATION): Use
13961 generic_frameless_function_invocation_not.
13962 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13963 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13964
13965 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13966
13967 * config/mips/xm-news-mips.h: Delete file.
13968 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13969
13970 * config/m88k/xm-m88k.h: Delete file.
13971 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13972 * config/m88k/xm-delta88v4.h: Ditto.
13973 * config/m88k/xm-delta88.h: Ditto.
13974
13975 * config/alpha/xm-fbsd.h: Delete file.
13976 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13977
13978 * config/sparc/xm-sparc.h: Delete file.
13979 * Makefile.in (xm-sun4os4.h): Delete dependency.
13980 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13981 * config/sparc/xm-sun4os4.h: Ditto.
13982 * config/sparc/xm-linux.h: Ditto.
13983
13984 * config/i386/xm-windows.h: Delete file.
13985
13986 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13987
13988 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13989 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13990
13991 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13992
13993 * alpha-tdep.c (alpha_call_dummy_words): New.
13994 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13995 (CALL_DUMMY_P): Define.
13996 (CALL_DUMMY_WORDS): Define.
13997 (SIZEOF_CALL_DUMMY_WORDS): Define.
13998
13999 2002-01-19 Per Bothner <per@bothner.com>
14000
14001 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14002 isn't NULL, which can happen with some gcj-3.x-produced code.
14003
14004 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14005
14006 * alpha-tdep.c (alpha_register_virtual_type): New function.
14007 (alpha_init_frame_pc_first): Ditto.
14008 (alpha_fix_call_dummy): Ditto.
14009 (alpha_store_struct_return): Ditto.
14010 (alpha_extract_struct_value_address): Ditto.
14011 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14012 alpha_register_virtual_type.
14013 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14014 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14015 alpha_extract_struct_value_address.
14016 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14017 (INIT_FRAME_PC): Use init_frame_pc_noop.
14018 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14019
14020 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14021
14022 * i386gnu-nat.c: Include "i386-tdep.h".
14023 (fetch_fpregs): Simplify code dealing with uninitialized floating
14024 point states such that it doesn't require FP7_REGNUM.
14025
14026 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14027
14028 * alpha-tdep.c (frame_extra_info): New.
14029 (alpha_find_saved_regs): Make static. Use
14030 frame->extra_info.
14031 (alpha_frame_init_saved_regs): New function.
14032 (alpha_frame_saved_pc): Use frame->extra_info.
14033 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14034 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14035 (init_extra_frame_info): Rename to...
14036 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14037 (alpha_print_extra_frame_info): New function.
14038 (alpha_frame_locals_address): Ditto.
14039 (alpha_frame_args_address): Ditto.
14040 (alpha_pop_frame): Use frame->extra_info.
14041 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14042 alpha_frame_args_address.
14043 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14044 (alpha_find_saved_regs): Remove prototype.
14045 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14046 (EXTRA_FRAME_INFO): Remove.
14047 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14048 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14049
14050 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14051
14052 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14053 (alpha_cannot_fetch_register): Ditto.
14054 (alpha_cannot_store_register): Ditto.
14055 (alpha_register_convertible): Ditto.
14056 (alpha_use_struct_convention): Ditto.
14057 * config/alpha/tm-alpha.h: Update copyright years.
14058 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14059 (INNER_THAN): Use core_addr_lessthan.
14060 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14061 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14062 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14063 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14064 (FRAME_CHAIN): Remove unnecessary cast.
14065
14066 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14067
14068 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14069 obsolete.
14070
14071 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14072
14073 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14074 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14075 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14076 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14077 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14078 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14079 * x86-64-linux-nat.c: Ditto.
14080
14081 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14082
14083 * alpha-tdep.c (alpha_register_name): New function.
14084 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14085 (REGISTER_NAME): Define.
14086
14087 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14088
14089 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14090
14091 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14092
14093 * alpha-tdep.c: Update copyright years.
14094 (alpha_next_pc): New function.
14095 (alpha_software_single_step): Ditto.
14096 * config/alpha/tm-alpha.h: Add prototype for
14097 alpha_software_single_step.
14098
14099 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14100
14101 * alphabsd-nat.c: Update copyright years.
14102 (fill_gregset): Use regcache_collect.
14103 (fill_fpregset): Likewise.
14104 (fetch_inferior_registers): Only fetch integer registers
14105 if requested to do so.
14106 (store_inferior_registers): Only store integer registers
14107 if requested to do so.
14108
14109 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14110
14111 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14112 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14113 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14114 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14115 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14116 * config/arm/linux.mh (XDEPFILES): Delete.
14117 * config/arm/nbsd.mh (XDEPFILES): Delete.
14118 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14119 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14120 * config/i386/i386m3.mh (XDEPFILES): Delete.
14121 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14122 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14123 * config/i386/fbsd.mh (XDEPFILES): Delete.
14124 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14125 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14126 * config/i386/i386v4.mh (XDEPFILES): Delete.
14127 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14128 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14129 * config/i386/i386aix.mh (XDEPFILES): Delete.
14130 * config/i386/go32.mh (XDEPFILES): Delete.
14131 * config/i386/cygwin.mh (XDEPFILES): Delete.
14132 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14133 * config/i386/i386mach.mh (XDEPFILES): Delete.
14134 * config/i386/i386v32.mh (XDEPFILES): Delete.
14135 * config/i386/linux.mh (XDEPFILES): Delete.
14136 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14137 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14138 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14139 * config/i386/i386sco.mh (XDEPFILES): Delete.
14140 * config/i386/i386v.mh (XDEPFILES): Delete.
14141 * config/i386/nbsd.mh (XDEPFILES): Delete.
14142 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14143 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14144 * config/i386/symmetry.mh (XDEPFILES): Delete.
14145 * config/i386/obsd.mh (XDEPFILES): Delete.
14146 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14147 * config/ia64/linux.mh (XDEPFILES): Delete.
14148 * config/ia64/aix.mh (XDEPFILES): Delete.
14149 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14150 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14151 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14152 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14153 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14154 * config/m68k/linux.mh (XDEPFILES): Delete.
14155 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14156 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14157 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14158 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14159 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14160 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14161 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14162 * config/m88k/delta88.mh (XDEPFILES): Delete.
14163 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14164 * config/m88k/m88k.mh (XDEPFILES): Delete.
14165 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14166 * config/mips/linux.mh (XDEPFILES): Delete.
14167 * config/mips/irix6.mh (XDEPFILES): Delete.
14168 * config/mips/irix5.mh (XDEPFILES): Delete.
14169 * config/mips/irix4.mh (XDEPFILES): Delete.
14170 * config/mips/irix3.mh (XDEPFILES): Delete.
14171 * config/mips/decstation.mh (XDEPFILES): Delete.
14172 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14173 (NATDEPFILES): Move core-aout.o to here.
14174 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14175 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14176 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14177 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14178 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14179 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14180 * config/pa/hpux11.mh (XDEPFILES): Delete.
14181 * config/powerpc/aix.mh (XDEPFILES): Delete.
14182 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14183 * config/powerpc/linux.mh (XDEPFILES): Delete.
14184 * config/romp/rtbsd.mh: Rename XDEPFILES.
14185 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14186 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14187 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14188 * config/s390/s390.mh (XDEPFILES): Delete.
14189 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14190 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14191 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14192 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14193 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14194 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14195 * config/sparc/linux.mh (XDEPFILES): Delete.
14196 * config/vax/vaxult.mh (XDEPFILES): Delete.
14197 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14198 * Makefile.in (DEPFILES): Remove XDEPFILES.
14199
14200 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14201
14202 * utils.c (internal_verror): Fix comments, default is yes not no.
14203 Update queries to match. Default to quit and dump core.
14204
14205 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14206
14207 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14208 copyright.
14209 * defs.h, event-top.c, gdbcmd.h: Ditto.
14210 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14211 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14212 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14213 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14214 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14215 * mi/mi-main.c:Ditto.
14216
14217 * stack.c, symfile.c: Update copyright.
14218
14219 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14220
14221 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14222 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14223 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14224 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14225
14226 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14227
14228 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14229 * gdbserver/low-lynx.c (myattach): Likewise.
14230 * gdbserver/low-nbsd.c (myattach): Likewise.
14231 * gdbserver/low-sim.c (myattach): Likewise.
14232 * gdbserver/low-sparc.c (myattach): Likewise.
14233 * gdbserver/low-sun3.c (myattach): Likewise.
14234
14235 * gdbserver/low-linux.c (myattach): New function.
14236
14237 * gdbserver/server.c (attach_inferior): New function.
14238 (main): Handle "--attach".
14239
14240 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14241
14242 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14243 maintainer.
14244
14245 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14246
14247 * c-typeprint.c (is_type_conversion_operator): Add additional
14248 check for non-conversion operators.
14249
14250 2002-01-15 Michael Snyder <msnyder@redhat.com>
14251
14252 * linux-proc.c: Add "info proc" command, a la procfs.c.
14253 (read_mapping): New function, abstract and re-use code.
14254 (linux_find_memory_regions): Use new func read_mapping.
14255 (linux_info_proc_cmd): New function, implement "info proc".
14256 (_initialize_linux_proc): Add new command "info proc".
14257
14258 2002-01-15 Michael Snyder <msnyder@redhat.com>
14259
14260 * symfile.c (generic_load): Use bfd_map_over_sections method
14261 instead of manipulating bfd structure members directly.
14262 (add_section_size_callback): New function, bfd sections callback
14263 used by generic_load.
14264 (load_sections_callback): New function, bfd sections callback
14265 used by generic_load.
14266
14267 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14268
14269 [Based on work by Jim Blandy]
14270 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14271 (builtin_type_vec128): Export.
14272 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14273 types.
14274 (builtin_type_vec128): New builtin type for 128 bit vector
14275 registers.
14276 (build_gdbtypes): Initialize builtin_type_v16qi and
14277 builtin_type_v8hi. Create the vec128 register builtin type
14278 structure.
14279 (build_builtin_type_vec128): New function.
14280 (_initialize_gdbtypes): Register builtin_type_v16qi and
14281 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14282 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14283 AltiVec register to new builtin type.
14284
14285 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14286
14287 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14288 to make_cv_type.
14289
14290 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14291
14292 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14293 CLEAN_UP_REGISTER_VALUE.
14294 * regcache.c (supply_register): Update only call.
14295
14296 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14297
14298 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14299 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14300 a29k-*-vxworks* targets as obsolete.
14301
14302 2002-01-14 Michael Snyder <msnyder@redhat.com>
14303
14304 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14305 until we can resolve portability issues.
14306 * gregset.h: Remove references to fpxregs.
14307 * gcore.c (gcore_command): Initialize note_sec to NULL.
14308
14309 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14310
14311 * signals.c (target_signal_to_name): Rewrite. Only use
14312 signals[].name when in bounds and non-NULL.
14313
14314 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14315
14316 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14317 * signals.c (target_signal_to_name): Verify that SIG is within the
14318 bounds of the signals array.
14319
14320 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14321
14322 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14323
14324 2002-01-13 Keith Seitz <keiths@redhat.com>
14325
14326 * stack.c (print_frame_info_base): Print the frame's pc
14327 only if when print_frame_info_listing_hook is not defined.
14328
14329 2002-01-13 Keith Seitz <keiths@redhat.com>
14330
14331 * varobj.c (varobj_set_value): Make sure that there were no
14332 errors evaluating the object before attempting to set its
14333 value.
14334 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14335 so this offset adjustment is no longer necessary.
14336 (create_child): Don't set the error flag if the child is
14337 a CPLUS_FAKE_CHILD.
14338 (value_of_child): If value_fetch_lazy fails, return NULL
14339 so that callers will be notified that an error occurred.
14340 (c_value_of_variable): Delay check of variable's validity
14341 until later. We actually want all structs and unions to have
14342 the value "{...}".
14343 Do not return "???" for variables which could not be evaluated.
14344 This error condition must be returned to the caller so that it
14345 can get the error condition from gdb.
14346 (cplus_name_of_child): Adjust index for vptr before figuring
14347 out the name of the child.
14348 (cplus_value_of_child): If a child's (real) parent is not valid,
14349 don't even bother trying to give a value for it. Just return
14350 an error. Change all instances in this function.
14351 (cplus_type_of_child): If our parent is one of the "fake"
14352 parents, we need to get at the type of the real parent, and
14353 derive the child's true type using this information.
14354
14355 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14356
14357 From 2002-01-09 John Marshall <johnm@falch.net>:
14358 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14359 sources.redhat.com, and tweak some related URLs which had
14360 suffered from linkrot.
14361
14362 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14363
14364 From Jeff law:
14365 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14366 structures passed in registers.
14367
14368 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14369
14370 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14371 white space which prevented compilation. Reported by DSK
14372 <dsk@student.unsw.edu.au>.
14373
14374 2002-01-11 Michael Snyder <msnyder@redhat.com>
14375
14376 * symfile.c (build_section_addr_info_from_section_tab):
14377 Use bfd access method instead of manipulating bfd directly.
14378 (syms_from_objfile): Ditto.
14379 (simple_overlay_update_1): Ditto.
14380 (simple_overlay_update): Ditto.
14381 (generic_load): Ditto.
14382 (overlay_unmapped_address): FIXME comment, bfd access methods.
14383 (sections_overlap): FIXME comment, bfd access methods.
14384 (pc_in_mapped_range): FIXME comment, bfd access methods.
14385 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14386 (section_is_mapped): FIXME comment, bfd access methods.
14387 (section_is_overlay): FIXME comment, bfd access methods.
14388
14389 * symfile.c (generic_load): Whitespace and long line cleanups.
14390 Remove duplicate variable, change several local variables to
14391 more appropriate data types.
14392 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14393
14394 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14395
14396 From Peter Schauer:
14397 * language.c (longest_local_hex_string_custom): Use phex_nz to
14398 convert NUM to a hex string.
14399
14400 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14401
14402 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14403 the function.
14404 Update Copyright year.
14405
14406 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14407
14408 * language.c (longest_raw_hex_string): Delete unused function.
14409
14410 2002-01-11 Petr Sorfa <petrs@caldera.com>
14411
14412 * MAINTAINERS (write-after-approval): Add myself.
14413 * dwarf2read.c (read_tag_string_type): Handling of
14414 DW_AT_byte_size.
14415 (read_tag_string_type): FORTRAN fix to prevent propagation of
14416 first string size.
14417 (set_cu_language): Handling of DW_LANG_Fortran95
14418
14419 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14420
14421 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14422 GETPID(inferior_ptid).
14423 (store_inferior_registers): Likewise.
14424
14425 2002-01-10 Jason Merrill <jason@redhat.com>
14426
14427 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14428 Fix DW_OP_minus.
14429
14430 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14431
14432 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14433 and bfd/elf32-sh-nbsd.c.
14434
14435 2002-01-10 Michael Snyder <msnyder@redhat.com>
14436
14437 * NEWS: Mention --pid and corefile/proc-id behavior change.
14438
14439 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14440 * gcore.c: Include cli/cli-decode.h instead of command.h.
14441
14442 * main.c (captured_main): Add new command line option "--pid".
14443 If the second command line argument (following the symbol-file)
14444 begins with a digit, try to attach to it before trying to open
14445 it as a corefile.
14446 (print_gdb_help): Document the "--pid" argument.
14447
14448 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14449
14450 * completer.c (command_completer): New function.
14451
14452 * completer.h <command_completer>: Add prototype.
14453
14454 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14455 completer for the "help" command.
14456
14457 2002-01-09 Jason Merrill <jason@redhat.com>
14458
14459 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14460
14461 2002-01-09 Michael Snyder <msnyder@redhat.com>
14462
14463 * i386-linux-nat.c (fill_fpxregset): Make global.
14464 (store_fpxregset): Ditto.
14465
14466 * gregset.h (gdb_fpxregset_t): Define.
14467 (supply_fpxregset): Prototype.
14468 (fill_fpxregset): Prototype.
14469
14470 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14471
14472 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14473
14474 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14475 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14476 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14477
14478 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14479
14480 * MAINTAINERS: Update target maintainer rules so that any
14481 Maintainer can approve a tested patch for a maintenance-only
14482 target.
14483
14484 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14485
14486 * MAINTAINERS (write-after-approval): Add myself.
14487
14488 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14489 IN_SIGTRAMP.
14490
14491 2002-01-08 Michael Snyder <msnyder@redhat.com>
14492
14493 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14494 real name of the executable, rather than the /proc name.
14495
14496 2002-01-03 Michael Snyder <msnyder@redhat.com>
14497
14498 Implement a "generate-core-file" command in gdb, save target state.
14499 * gcore.c: New file. Implement new command 'generate-core-file'.
14500 Save a corefile image of the current state of the inferior.
14501 * linux-proc.c: Add linux-specific code for saving corefiles.
14502 * target.h (struct target_ops): Add new target vectors for saving
14503 corefiles; to_find_memory_regions and to_make_corefile_notes.
14504 (target_find_memory_regions): New macro.
14505 (target_make_corefile_notes): New macro.
14506 * target.c (update_current_target): Inherit new target methods.
14507 (dummy_find_memory_regions): New place-holder method.
14508 (dummy_make_corefile_notes): New place-holder method.
14509 (init_dummy_target): Initialize new dummy target vectors.
14510 * exec.c (exec_set_find_memory_regions): New function.
14511 Allow the exec_ops vector for memory regions to be taken over.
14512 (exec_make_note_section): New function, target vector method.
14513 * defs.h (exec_set_find_memory_regions): Export prototype.
14514 * procfs.c (proc_find_memory_regions): New function, corefile method.
14515 (procfs_make_note_section): New function, corefile method.
14516 (init_procfs_ops): Set new target vector pointers.
14517 (find_memory_regions_callback): New function.
14518 (procfs_do_thread_registers): New function.
14519 (procfs_corefile_thread_callback): New function.
14520 * sol-thread.c (sol_find_memory_regions): New function.
14521 (sol_make_note_section): New function.
14522 (init_sol_thread_ops): Initialize new target vectors.
14523 * inftarg.c (inftarg_set_find_memory_regions): New function.
14524 Allow to_find_memory_regions vector to be taken over.
14525 (inftarg_set_make_corefile_notes): New function.
14526 Allow to_make_corefile_notes vector to be taken over.
14527 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14528 interface layer if not target_has_execution (may be a corefile).
14529 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14530 * config/sparc/sun4sol2.mh: Ditto.
14531 * config/alpha/alpha-linux.mh: Ditto.
14532 * config/arm/linux.mh: Ditto.
14533 * config/i386/x86-64linux.mh: Ditto.
14534 * config/ia64/linux.mh: Ditto.
14535 * config/m68k/linux.mh: Ditto.
14536 * config/mips/linux.mh: Ditto.
14537 * config/powerpc/linux.mh: Ditto.
14538 * config/sparc/linux.mh: Ditto.
14539
14540 2002-01-07 Michael Snyder <msnyder@redhat.com>
14541
14542 * arm-linux-nat.c: Remove references to regcache.c internal data
14543 (registers[] and register_valid[]).
14544
14545 2002-01-07 Michael Snyder <msnyder@redhat.com>
14546
14547 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14548 so that attaching to a pid will automatically read the process's
14549 symbol file and shlibs.
14550 * Makefile.in: Add rule for linux-proc.o.
14551 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14552 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14553 * config/arm/linux.mh: Ditto.
14554 * config/i386/linux.mh: Ditto.
14555 * config/i386/x86-64linux.mh: Ditto.
14556 * config/ia64/linux.mh: Ditto.
14557 * config/m68k/linux.mh: Ditto.
14558 * config/mips/linux.mh: Ditto.
14559 * config/powerpc/linux.mh: Ditto.
14560 * config/sparc/linux.mh: Ditto.
14561
14562 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14563
14564 * win32-nat.c: Add i386-tdep.h dependency.
14565
14566 2002-01-07 Michael Snyder <msnyder@redhat.com>
14567
14568 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14569 instead of bfd_get_arch_size. Don't bail out just because
14570 there's no exec_bfd.
14571
14572 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14573 * p-valprint.c (pascal_object_print_value): Ditto.
14574 * somread.c (som_symtab_read): Ditto.
14575 * symfile.c (simple_free_overlay_region_table): Ditto.
14576 * valops.c (value_assign): Ditto.
14577
14578 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14579 use tilde_expand and strerror for opening save-tracepoints file.
14580
14581 * thread-db.c (thread_db_new_objfile): Indendation fix.
14582
14583 * infptrace.c (GDB_MAX_ALLOCA): New define.
14584 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14585 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14586 can be overridden with whatever value is appropriate to the host).
14587 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14588 alloca to allocate potentially large buffer.
14589 * rs6000-nat.c (child_xfer_memory): Ditto.
14590 * symm-nat.c (child_xfer_memory): Ditto.
14591 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14592
14593 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14594
14595 From Nick Clifton <nickc@redhat.com>
14596 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14597
14598 2002-01-07 Michael Snyder <msnyder@redhat.com>
14599
14600 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14601 Don't use exec_bfd if it's NULL.
14602
14603 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14604
14605 * valops.c (value_arg_coerce): Fix formatting.
14606
14607 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14608
14609 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14610 * gnu-nat.c: Ditto.
14611
14612 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14613
14614 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14615 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14616 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14617 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14618 z8k-coff have not been multi-arched. Update z8k-coff build
14619 status.
14620
14621 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14622
14623 * MAINTAINERS: Mark a29k target as obsolete.
14624 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14625 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14626 comments.
14627 * NEWS: Note that a29k targets are obsolete.
14628 * a29k-tdep.c: Mark as obsolete.
14629 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14630 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14631 a29k-*-vxworks* targets as obsolete.
14632 * remote-adapt.c: Obsolete.
14633 * remote-eb.c: Obsolete.
14634 * remote-mm.c: Obsolete.
14635 * remote-udi.c: Obsolete.
14636 * config/a29k/a29k-udi.mt: Obsolete.
14637 * config/a29k/a29k.mt: Obsolete.
14638 * config/a29k/tm-a29k.h: Obsolete.
14639 * config/a29k/tm-vx29k.h: Obsolete.
14640 * config/a29k/vx29k.mt: Obsolete.
14641
14642 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14643
14644 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14645 with BFD_ENDIAN_BIG.
14646
14647 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14648
14649 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14650 * configure, config.in: Re-generate.
14651 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14652 * defs.h: Do not include <endian.h>.
14653
14654 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14655
14656 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14657 * config.in: Regenerate.
14658 * configure.in: Update copyright years.
14659 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14660 * configure: Regenerate.
14661 * i386bsd-nat.c: Update copyright years.
14662 (fill_gregset): Use regcache_collect.
14663 (fetch_inferior_registers): Only fetch integer registers
14664 if requested to do so. Add support for XMM registers
14665 using PT_GETXMMREGS.
14666 (store_inferior_registers): Only store integer registers
14667 if requested to do so. Add support for XMM registers
14668 using PT_SETXMMREGS.
14669 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14670 (store_inferior_registers): Remove.
14671 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14672 (fetch_elfcore_registers): New function.
14673 (i386nbsd_elfcore_fns): New.
14674 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14675 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14676 i386bsd-nat.o.
14677 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14678 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14679 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14680 * config/i386/tm-nbsd.h: Update copyright years.
14681 (HAVE_SSE_REGS): Define.
14682 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14683 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14684 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14685 (SIGCONTEXT_PC_OFFSET): Remove.
14686 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14687
14688 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14689
14690 * configure.tgt: Remove powerpc-*-macos* target.
14691 * config/m68k/xm-mpw.h: Delete file.
14692 * config/xm-mpw.h: Delete file.
14693 * ser-mac.c: Delete file.
14694 * mpw-make.sed: Delete file.
14695 * mpw-config.in: Delete file.
14696 * mac-xdep.c: Delete file.
14697 * mac-gdb.r: Delete file.
14698 * mac-defs.h: Delete file.
14699 * mac-nat.c: Delete file.
14700 * config/powerpc/macos.mh: Delete file.
14701 * config/powerpc/macos.mt: Delete file.
14702 * config/powerpc/nm-macos.h: Delete file.
14703 * config/powerpc/tm-macos.h: Delete file.
14704 * source.c (openp, open_source_file): Remove obsolete code.
14705 * top.c (gdb_readline): Ditto.
14706 * utils.c (query): Ditto.
14707 * event-top.c (display_gdb_prompt): Ditto.
14708 * Makefile.in (ser-mac.o): Delete obsolete target.
14709 * NEWS: Update.
14710
14711 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14712
14713 * defs.h (BIG_ENDIAN): Delete macro definition.
14714 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14715 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14716 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14717 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14718 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14719 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14720 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14721 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14722 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14723 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14724 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14725 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14726 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14727 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14728 * gdbarch.c: Re-generate.
14729
14730 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14731
14732 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14733 for core files.
14734
14735 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14736
14737 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14738
14739 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14740
14741 * value.h (value_ptr): Delete typedef.
14742
14743 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14744
14745 * i386nbsd-nat.c: Update copyright years.
14746 Include i386-tdep.h.
14747
14748 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14749
14750 * stabsread.c: Update copyright years.
14751
14752 From Debashis Mahata <debashis.mahata@wipro.com>:
14753 (read_struct_fields): Deal with Sun C compiler erroneous stab
14754 output for structs and unions.
14755 Fix PR gdb/269.
14756
14757 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14758
14759 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14760 prototype.
14761
14762 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14763
14764 * cp-abi.c: Fix whitespace.
14765 (baseclass_offset): New wrapper function.
14766 * cp-abi.h (baseclass_offset): Add prototype.
14767 (struct cp_abi_ops): Add baseclass_offset pointer.
14768
14769 * valops.c (vb_match): Move to...
14770 * gnu-v2-abi.c (vb_match): here.
14771 * valops.c (baseclass_offset): Move to...
14772 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14773
14774 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14775
14776 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14777 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14778 * hpacc-abi.c (init_hpacc_ops): Likewise.
14779
14780 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14781
14782 * valops.c (find_overload_match): Accept obj as a
14783 reference parameter. Update it before returning.
14784 * value.h (find_overload_match): Update prototype.
14785 * eval.c (evaluate_subexp_standard): Pass object to
14786 find_overload_match by reference.
14787
14788 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14789
14790 * valarith.c: Replace value_ptr with struct value pointer. Remove
14791 register attribute from value declarations.
14792 * valops.c: Ditto.
14793 * value.h: Ditto.
14794 * scm-lang.c (scm_lookup_name): Ditto.
14795
14796 2002-01-03 Michael Snyder <msnyder@redhat.com>
14797
14798 Abstract the functionality of iterating over mapped memory
14799 regions into a general purpose iterator function.
14800 * procfs.c (iterate_over_mappings): New function, general purpose
14801 iterator for memory sections.
14802 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14803 (solib_mappings_callback): New function, callback for above.
14804 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14805 (info_mappings_callback): New function, callback for above.
14806
14807 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14808
14809 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14810
14811 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14812 * i386-tdep.c: Include "elf-bfd.h".
14813 (process_note_abi_tag_sections): New function.
14814 (i386_gdbarch_init): Add code to recognize various OS/ABI
14815 combinations.
14816
14817 * maint.c (_initialize_maint_cmds): Add missing \ in
14818 string-literal.
14819
14820 For older changes see ChangeLog-2001
14821 \f
14822 Local Variables:
14823 mode: change-log
14824 left-margin: 8
14825 fill-column: 74
14826 version-control: never
14827 End:
This page took 0.308957 seconds and 5 git commands to generate.