2002-12-19 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-19 David Carlton <carlton@math.stanford.edu>
2
3 * linespec.c (decode_line_1): Move code into decode_all_digits.
4 (decode_all_digits): New function.
5
6 2002-12-19 Kevin Buettner <kevinb@redhat.com>
7
8 * exec.c (print_section_info): Select a format string to use with
9 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
10
11 2002-12-18 Andrew Cagney <ac131313@redhat.com>
12
13 * frame.c (deprecated_update_current_frame_pc_hack): Replace
14 deprecated_update_current_frame_pc_hack.
15 (deprecated_update_frame_base_hack): New function.
16 * frame.h (deprecated_update_frame_pc_hack): Replace
17 (deprecated_update_frame_base_hack): Declare.
18 * infrun.c (normal_stop): Update.
19
20 2002-12-18 Andrew Cagney <ac131313@redhat.com>
21
22 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
23 frame_extra_info_zalloc.
24 (rs6000_frame_args_address): Use get_frame_extra_info.
25 (frame_get_saved_regs): Use get_frame_saved_regs.
26 (frame_initial_stack_address): Use get_frame_saved_regs and
27 get_frame_extra_info.
28 (frame_initial_stack_address): Use get_frame_extra_info.
29
30 2002-12-17 Kevin Buettner <kevinb@redhat.com>
31
32 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
33 array size.
34 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
35 checks for r3900_regnames[].
36
37 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
38
39 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
40 All uses changed
41 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
42
43 2002-12-17 David Carlton <carlton@math.stanford.edu>
44
45 * symtab.c (lookup_partial_symbol): Don't search past the end of
46 the partial symbols.
47
48 2002-12-17 Andrew Cagney <ac131313@redhat.com>
49
50 * stack.c (frame_info): Use get_frame_saved_regs.
51 * breakpoint.c (until_break_command): Use get_frame_pc.
52
53 2002-12-16 Kevin Buettner <kevinb@redhat.com>
54
55 * buildsym.c (block_end_complaint, anon_block_end_complaint)
56 (innerblock_complaint, innerblock_anon_complaint)
57 (blockvector_complaint): Delete deprecated complaint structs.
58 (finish_block, make_blockvector, end_symtab): Replace calls
59 to complain() with calls to complaint().
60 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
61 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
62 (unexpected_type_complaint, bad_sclass_complaint)
63 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
64 Delete deprecated complaint structs.
65 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
66 Replace calls to complain() with calls to complaint().
67 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
68 (unknown_symtype_complaint, unknown_symchar_complaint)
69 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
70 (lbrac_mismatch_complaint, repeated_header_complaint)
71 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
72 Delete deprecated complaint structs.
73 (unknown_symtype_complaint, lbrac_mismatch_complaint)
74 (repeated_header_complaint)
75 (function_outside_compiliation_unit_complaint): New functions.
76 (add_old_header_file, find_corresponding_bincl_psymtab)
77 (set_namestring, find_stab_function_addr, read_dbx_symtab)
78 (process_one_symbol): Replace calls to complain() with, possibly
79 indirect, calls to complaint().
80 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
81 (unknown_attribute_form, unknown_attribute_length)
82 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
83 (const_ignored, botched_modified_type, op_deref2, op_deref4)
84 (basereg_not_handled, dup_user_type_allocation)
85 (dup_user_type_definition, missing_tag, bad_array_element_type)
86 (subscript_data_items, unhandled_array_subscript_format)
87 (unknown_array_subscript_format, not_row_major)
88 (missing_at_name): Delete deprecated complaint structs.
89 (bad_die_ref_complaint, unknown_attribute_form_complaint)
90 (dup_user_type_definition_complaint)
91 (bad_array_element_type_complaint): New functions.
92 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
93 (decode_subscript_data_item, dwarf_read_array_type)
94 (read_tag_string_type, read_subroutine_type, read_func_scope)
95 (locval, scan_partial_symbols, decode_modified_type)
96 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
97 (attribute_size): Replace calls to complain() with, possibly
98 indirect, calls to complaint().
99 * elfread.c (section_info_complaint, section_info_dup_complaint)
100 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
101 Delete deprecated complaint structs.
102 (elf_symtab_read, elfstab_offset_sections): Replace calls to
103 complain() with calls to complaint().
104 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
105 struct.
106 (stub_noname_complaint): New function.
107 (check_typedef, add_mangled_type): Replace calls to complain()
108 with calls to complaint().
109 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
110 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
111 (hpread_unhandled_type_complaint, hpread_struct_complaint)
112 (hpread_array_complaint, hpread_type_lookup_complaint)
113 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
114 (hpread_unhandled_common_complaint)
115 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
116 struct definitions and declarations.
117 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
118 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
119 Replace calls to complain() with, possibly indirect, calls to
120 complaint().
121 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
122 Likewise.
123 * mdebugread.c (bad_file_number_complaint, index_complaint)
124 (aux_index_complaint, block_index_complaint)
125 (unknown_ext_complaint, unknown_sym_complaint)
126 (unknown_st_complaint, block_overflow_complaint)
127 (basic_type_complaint, unknown_type_qual_complaint)
128 (array_index_type_complaint, bad_tag_guess_complaint)
129 (block_member_complaint, stEnd_complaint)
130 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
131 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
132 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
133 (bad_continued_complaint, bad_rfd_entry_complaint)
134 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
135 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
136 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
137 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
138 complaint structs.
139 (index_complaint, unknown_ext_complaint, basic_type_complaint)
140 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
141 (unexpected_type_code_complaint)
142 (function_outside_compilation_unit_complaint): New functions.
143 (parse_symbol, parse_type, upgrade_type, parse_procedure)
144 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
145 Replace calls to complain() with, possibly indirect calls to
146 complaint().
147 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
148 Delete deprecated complaint structs.
149 (lookup__objc_class, lookup_child_selector): Replace complain()
150 with complaint().
151 * remote-vx.c (cant_contact_target): Delete deprecated complaint
152 struct.
153 (vx_lookup_symbol): Replace complain() with complaint().
154 * stabsread.c (invalid_cpp_abbrev_complaint)
155 (invalid_cpp_type_complaint, member_fn_complaint)
156 (const_vol_complaint, error_type_complaint)
157 (invalid_member_complaint, range_type_base_complaint)
158 (reg_value_complaint, vtbl_notfound_complaint)
159 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
160 (unresolved_sym_chain_complaint, stabs_general_complaint)
161 (lrs_general_complaint, multiply_defined_struct): Delete
162 deprecated complaint structs.
163 (invalid_cpp_abbrev_complaint, ref_value_complaint)
164 (stabs_general_complaint, lrs_general_complaint)
165 (msg_unknown_complaint): New functions.
166 (dbx_lookup_type, read_cfront_baseclasses)
167 (read_cfront_member_functions, resolve_symbol_reference)
168 (define_symbol, resolve_live_range, add_live_range, read_type)
169 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
170 (read_one_struct_field, read_baseclasses, read_tilde_fields)
171 (read_cfront_static_fields, attach_fields_to_type)
172 (complain_about_struct_wipeout, read_range_type)
173 (common_block_start, common_block_end, cleanup_undefined_types)
174 (scan_file_globals): Replace complain() with complaint().
175 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
176 Delete deprecated complaint struct declarations.
177 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
178 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
179 (bf_not_found_complaint, ef_complaint, eb_complaint)
180 (function_outside_compilation_unit_complaint): New functions.
181 (record_include_begin, record_include_end, enter_line_range)
182 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
183 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
184 complain() with complaint().
185
186 2002-12-16 Andrew Cagney <ac131313@redhat.com>
187
188 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
189 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
190 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
191 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
192 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
193 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
194 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
195 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
196 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
197 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
198 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
199 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
200 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
201 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
202 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
203 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
204 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
205 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
206 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
207 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
208 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
209 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
210 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
211 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
212 * config/m88k/xm-dgux.h: Delete.
213 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
214 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
215 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
216 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
217 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
218 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
219 * ch-valprint.c: Delete.
220
221 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
222
223 * infrun.c (handle_inferior_event): Rearrange code to resume if
224 no catchpoint triggers for an event.
225
226 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
227
228 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
229 and TARGET_WAITKIND_VFORKED cases.
230
231 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
232
233 * infrun.c (handle_inferior_event): Assume that catchpoints
234 are not affected by DECR_PC_AFTER_BREAK.
235
236 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
237
238 * target.c (update_current_target): Don't inherit DONT_USE.
239 * target.h (struct target_ops): Remove DONT_USE.
240 (target_next): Remove macro.
241
242 2002-12-15 Mark Kettenis <kettenis@gnu.org>
243
244 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
245
246 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
247
248 * arm-tdep.c (convert_from_extended): New argument to hold the
249 type of floating point result we want to convert to. Make input
250 argument const. Fix all callers.
251 (convert_to_extended): Similarly.
252 (arm_extract_return_value): Now takes a regcache argument. Change
253 code to use regcache accessor functions. Correctly extract
254 smaller-than-word results on big-endian machines.
255 (arm_store_return_value): Now takes a regcache argument. Change
256 code to use regcache accessor functions. Correctly zero/sign extend
257 smaller than word results before storing into r0.
258 (arm_gdbarch_init): Register new-style extract_return_value and
259 store_return_value functions.
260
261 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
262
263 * thread-db.c (thread_from_lwp): Uniquify error msg.
264 (lwp_from_thread): Ditto.
265 (check_event): Ditto.
266 (find_new_threads_callback): Ditto.
267 (thread_db_pid_to_str): Ditto.
268
269 2002-12-13 Andrew Cagney <ac131313@redhat.com>
270
271 * frame.h (get_frame_saved_regs): Declare.
272 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
273 pointer.
274 * frame.c (get_frame_saved_regs): New function.
275 (frame_saved_regs_zalloc): Return the allocated saved_regs.
276
277 2002-12-13 Andrew Cagney <ac131313@redhat.com>
278
279 * frame.c (deprecated_update_current_frame_pc_hack): New
280 function.
281 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
282 * infrun.c (normal_stop): Use said function instead of directly
283 modifying the frame's PC.
284
285 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
286
287 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
288
289 2002-12-13 Kevin Buettner <kevinb@redhat.com>
290
291 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
292 config/mips/tm-irix6.h (NUM_REGS): Delete.
293 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
294 (temp_saved_regs): Declare as a pointer rather than an array.
295 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
296 that ``temp_saved_regs'' has storage allocated to it and that
297 it's the correct size.
298
299 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
300
301 * defs.h (init_last_source_visited): New prototype.
302 (add_path): Ditto.
303 * source.c (add_path): New function that adds to a specified path.
304 (mod_path): Change to call add_path.
305 (init_last_source_visited): New function to allow interfaces to
306 initialize static variable: last_source_visited. Part of fix
307 for PR gdb/741.
308 * Makefile.in: Add support for mi/mi-cmd-env.c.
309
310 2002-12-13 Andrew Cagney <ac131313@redhat.com>
311
312 * frame.h (frame_id_unwind): Declare.
313 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
314 id_unwind_cache.
315 (frame_id_unwind_ftype): Declare.
316 * frame.c (frame_id_unwind): New function.
317 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
318 (create_new_frame, get_prev_frame): Pass id_unwind to
319 set_unwind_by_pc.
320 (frame_saved_regs_id_unwind): New function.
321 (frame_saved_regs_id_unwind): New function.
322 * dummy-frame.c (dummy_frame_id_unwind): New function.
323 (struct dummy_frame): Add field id.
324 (generic_push_dummy_frame): Initialize `id'.
325 * dummy-frame.h (dummy_frame_id_unwind): Declare.
326
327 2002-12-13 Andrew Cagney <ac131313@redhat.com>
328
329 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
330 pass that to set_momentary_breakpoint. Move comments to where they
331 belong.
332 * frame.h (set_current_frame): Delete declaration.
333 * frame.c (set_current_frame): Delete function.
334
335 2002-12-13 Andrew Cagney <ac131313@redhat.com>
336
337 * frame.c (frame_extra_info_zalloc): New function.
338 * frame.h (frame_extra_info_zalloc): Declare.
339
340 2002-12-13 Joel Brobecker <brobecker@gnat.com>
341
342 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
343 in the previous prototype change to set_momentary_breakpoint.
344
345 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
346
347 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
348 and saw_child_exec.
349 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
350 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
351 (stop_stepping): Remove outdated check for child vfork events.
352
353 2002-12-12 Andrew Cagney <ac131313@redhat.com>
354
355 * GDB 5.3 released from gdb_5_3-branch.
356
357 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
358
359 * corelow.c (init_core_ops): Delete references to to_require_attach
360 and to_require_detach.
361 * exec.c (init_exec_ops): Likewise.
362 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
363 hppa_require_detach directly.
364 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
365 * inftarg.c (child_detach): Remove.
366 (child_detach_from_process): Rename to child_detach, remove
367 after_fork argument.
368 (child_attach): Remove.
369 (child_attach_to_process): Rename to child_attach, remove after_fork
370 argument.
371 (init_child_ops): Delete references to to_require_attach
372 and to_require_detach.
373 * infttrace.c (hppa_require_attach): Update comment.
374 * target.c (cleanup_target, update_current_target)
375 (init_dummy_target, setup_target_debug): Delete references to
376 to_require_attach and to_require_detach.
377 (find_default_require_detach, find_default_require_attach)
378 (debug_to_require_attach, debug_to_require_detach): Remove
379 functions.
380 * target.h (struct target_ops): Remove to_require_attach
381 and to_require_detach.
382 (target_require_attach, target_require_detach): Delete macros.
383 (find_default_require_detach, find_default_require_attach): Delete
384 prototypes.
385 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
386
387 2002-12-11 Andrew Cagney <ac131313@redhat.com>
388
389 * frame.c (get_frame_extra_info): New function.
390 * frame.h (get_frame_extra_info): Declare.
391
392 2002-12-11 Andrew Cagney <ac131313@redhat.com>
393
394 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
395 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
396 with `struct frame_id'.
397 (set_longjmp_resume_breakpoint): Ditto.
398 * infrun.c (handle_inferior_event): Update.
399 * breakpoint.c (watch_command_1, until_break_command): Update.
400 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
401 (handle_inferior_event, step_over_function): Update.
402 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
403 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
404 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
405 * infcmd.c (finish_command, run_stack_dummy): Update.
406
407 2002-12-11 Kevin Buettner <kevinb@redhat.com>
408
409 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
410 (dwarf2_non_const_array_bound_ignored)
411 (dwarf2_missing_line_number_section)
412 (dwarf2_statement_list_fits_in_line_number_section)
413 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
414 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
415 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
416 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
417 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
418 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
419 (dwarf2_missing_member_fn_type_complaint)
420 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
421 (dwarf2_const_value_length_mismatch)
422 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
423 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
424 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
425 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
426 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
427 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
428 complaints using deprecated struct..
429 (dwarf2_non_const_array_bound_ignored_complaint)
430 (dwarf2_complex_location_expr_complaint)
431 (dwarf2_unsupported_at_frame_base_complaint)
432 (dwarf2_const_value_length_mismatch_complaint)
433 (dwarf2_macros_too_long_complaint)
434 (dwarf2_macro_malformed_definition_complaint)
435 (dwarf2_invalid_attrib_class_complaint): New functions.
436 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
437 (read_structure_scope, read_array_type, read_common_block)
438 (read_tag_pointer_type, read_base_type, read_partial_die)
439 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
440 (new_symbol, dwarf2_const_value, read_type_die)
441 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
442 (parse_macro_definition, dwarf_decode_macros): Replace calls to
443 complain() with, possibly indirect, calls to complaint().
444
445 2002-12-11 Andrew Cagney <cagney@redhat.com>
446
447 * frame.c (deprecated_get_frame_saved_regs): Rename
448 get_frame_saved_regs.
449 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
450 * sparc-tdep.c: Update.
451 * hppa-tdep.c: Update.
452 * h8500-tdep.c: Update.
453
454 2002-12-11 Kevin Buettner <kevinb@redhat.com>
455
456 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
457 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
458 ``char *'' for return and parameter types.
459 * gdbarch.h, gdbarch.c: Regenerate.
460 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
461 return type from ``char *'' to ``const char *''.
462 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
463 const.
464
465 2002-12-11 Mark Kettenis <kettenis@gnu.org>
466
467 * i386-tdep.c: Include "dummy-frame.h".
468 (i386_frame_chain, i386_frame_saved_pc): Replace
469 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
470 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
471
472 2002-12-10 Andrew Cagney <cagney@redhat.com>
473
474 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
475 Change to a function with predicate.
476 * gdbarch.h, gdbarch.c: Re-generate.
477 * frame.c (get_prev_frame): Update. Test
478 DEPRECATED_INIT_FRAME_PC_P.
479 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
480 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
481 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
482 * alpha-tdep.c (alpha_gdbarch_init): Update.
483 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
484 * mips-tdep.c (mips_gdbarch_init): Update.
485 * i386-interix-tdep.c (i386_interix_init_abi): Update.
486 * arm-tdep.c: Update comments.
487 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
488 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
489 * frv-tdep.c (frv_gdbarch_init): Ditto.
490 * x86-64-tdep.c (x86_64_init_abi): Ditto.
491 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
492 * s390-tdep.c (s390_gdbarch_init): Ditto.
493 * v850-tdep.c (v850_gdbarch_init): Ditto.
494 * vax-tdep.c (vax_gdbarch_init): Ditto.
495 * sh-tdep.c (sh_gdbarch_init): Ditto.
496 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
498 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
499 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
500 * i386-tdep.c (i386_gdbarch_init): Ditto.
501 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
502 * cris-tdep.c (cris_gdbarch_init): Ditto.
503 * avr-tdep.c (avr_gdbarch_init): Ditto.
504 * arm-tdep.c (arm_gdbarch_init): Ditto.
505 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
506 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
507
508 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
509
510 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
511 CHILD_FOLLOW_FORK.
512 * hppah-nat.c (saved_vfork_pid): Add.
513 (child_post_follow_vfork): Remove.
514 (child_follow_fork): New function.
515 (child_wait): Call detach_breakpoints after receiving the child vfork.
516 Call child_resume directly instead of going through resume ().
517 Make sure we have the exec before reporting the vfork.
518 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
519 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
520 (follow_fork): New function. Call target_follow_fork.
521 (follow_inferior_reset_breakpoints): New function broken out from
522 old follow_inferior_fork.
523 (resume): Remove hack to follow exec after vfork.
524 * inftarg.c (child_post_follow_vfork): Remove.
525 (child_follow_fork): New function.
526 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
527 * target.c (cleanup_target): Replace to_post_follow_vfork with
528 to_follow_fork.
529 (update_current_target): Likewise.
530 (setup_target_debug): Likewise.
531 (debug_to_post_follow_vfork): Remove.
532 (debug_to_follow_fork): New function.
533 * target.h (struct target_ops): Replace to_post_folow_vfork with
534 to_follow_fork.
535 (child_post_follow_vfork): Remove prototype.
536 (child_follow_fork): Add prototype.
537 (target_post_follow_vfork): Remove macro.
538 (target_follow_fork): Add macro.
539
540 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
541
542 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
543 (child_post_follow_vfork): Cancel pending exec event if we follow
544 the parent.
545 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
546 events have been processed. Return a fake TARGET_WAITKIND_EXECD
547 event at the following wait call if necessary.
548 * infrun.c (follow_vfork): Don't follow_exec here.
549 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
550 case about HP/UX 10.20. Remove code pushed down to
551 hppah-nat.c:child_wait.
552 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
553 vfork_in_flight is set.
554
555 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
556
557 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
558 for the parent's fork event.
559 * infrun.c (handle_inferior_event): Only expect one fork event.
560 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
561 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
562
563 2002-12-10 Andrew Cagney <ac131313@redhat.com>
564
565 * PROBLEMS: Delete reference to PR gdb/725.
566
567 * MAINTAINERS (gdb.c++): Add David Carlton.
568
569 2002-12-09 David Carlton <carlton@math.stanford.edu>
570
571 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
572 * cli/cli-cmds.c: Ditto.
573
574 2002-12-09 Andrew Cagney <cagney@redhat.com>
575
576 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
577 function address in <>.
578 * gdbarch.c: Re-generate.
579
580 2002-12-09 David Carlton <carlton@math.stanford.edu>
581
582 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
583
584 2002-12-09 David Carlton <carlton@math.stanford.edu>
585
586 * linespec.c (symtab_from_filename): New function.
587 (decode_line_1): Move code into symtab_from_filename.
588
589 2002-12-09 Kevin Buettner <kevinb@redhat.com>
590
591 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
592
593 2002-12-07 Andrew Cagney <ac131313@redhat.com>
594
595 * f-valprint.c (info_common_command): Use get_frame_pc.
596 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
597 * ax-gdb.c (agent_command): Ditto.
598 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
599 (rs6000_pop_frame): Ditto.
600 (rs6000_frameless_function_invocation): Ditto.
601 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
602 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
603 * macroscope.c (default_macro_scope): Ditto.
604 * stack.c (print_frame_info_base): Ditto.
605 (print_frame, frame_info, print_frame_label_vars): Ditto.
606 (return_command, func_command, get_frame_language): Ditto.
607 * infcmd.c (finish_command): Ditto.
608 * dummy-frame.c (cached_find_dummy_frame): Ditto.
609 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
610 (break_at_finish_at_depth_command_1): Ditto.
611 (break_at_finish_command_1): Ditto.
612 (until_break_command, get_catch_sals): Ditto.
613 * blockframe.c (func_frame_chain_valid): Ditto.
614 (frameless_look_for_prologue): Ditto.
615 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
616
617 2002-12-08 Andrew Cagney <ac131313@redhat.com>
618
619 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
620 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
621
622 2002-12-08 Andrew Cagney <ac131313@redhat.com>
623
624 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
625 to pure functions.
626 * gdbarch.h, gdbarch.c: Re-generate.
627 * frame.c (get_prev_frame): Explictly assign prev's pc with value
628 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
629
630 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
631 declaration to a function returning a CORE_ADDR.
632 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
633 * arch-utils.c (init_frame_pc_noop): Return the PC value.
634 (init_frame_pc_default): Ditto.
635 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
636 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
637 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
638 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
639 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
640 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
641
642 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
643 to init_frame_pc_noop.
644 (i386_interix_init_frame_pc): Delete function.
645 * z8k-tdep.c (init_frame_pc): Delete function.
646 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
647 (INIT_FRAME_PC_FIRST): Ditto.
648 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
649 (INIT_FRAME_PC_FIRST): Ditto.
650 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
651 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
652 init_frame_pc_noop.
653 (INIT_FRAME_PC_FIRST): Convert to an expression.
654 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
655
656 2002-12-08 Andrew Cagney <ac131313@redhat.com>
657
658 * blockframe.c: Use get_frame_base instead of directly accessing
659 the `struct frame_info' member frame.
660 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
661 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
662
663 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
664
665 * Makefile.in (readline_h): Define.
666 (completer.o): Depend on readline_h.
667 (corelow.o): Ditto.
668 (event-top.o): Ditto.
669 (exec.o): Ditto.
670 (solib.o): Ditto.
671 (source.o): Ditto.
672 (symfile.o): Ditto.
673 (symmisc.o): Ditto.
674 (top.o): Ditto.
675 (tracepoint.o): Ditto.
676 (utils.o): Ditto.
677 (cli-dump.o): Ditto.
678 (tui-hooks.o): Ditto.
679 (tuiWin.o): Ditto.
680
681 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
682
683 More cleanup from import of readline 4.3.
684 * completer.h (complete_line, readline_line_completion_function):
685 Update prototypes.
686 (line_completion_function): Removed, not used outside of completer.c.
687 * completer.c (readline_line_completion_function,
688 complete_function, line_completion_function): Use const for first
689 parameter.
690 (line_completion_function): Make static.
691 (filename_completer): filename_completion_function is now called
692 rl_filename_completion_function
693 * corelow.c: Include <readline/readline.h>.
694 * exec.c: Ditto.
695 * solib.c: Ditto.
696 * source.c: Ditto.
697 * symfile.c: Ditto.
698 * symmisc.c: Ditto.
699 * top.c (init_main): No need to coerce
700 readline_line_completion_function anymore.
701 * cli/cli-dump.c: Include <readline/readline.h>.
702
703 2002-12-08 Andrew Cagney <ac131313@redhat.com>
704
705 * stack.c (frame_info): Use get_prev_frame.
706 * blockframe.c (frame_address_in_block): Ditto.
707 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
708 (rs6000_frameless_function_invocation): Ditto.
709 (rs6000_frame_saved_pc): Ditto.
710 (rs6000_frame_chain): Ditto.
711 * arch-utils.c (init_frame_pc_default): Ditto.
712
713 2002-12-08 Andrew Cagney <ac131313@redhat.com>
714
715 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
716 Delete redundant definition.
717
718 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
719
720 Import of readline 4.3:
721 * cli/cli-cmds.c: Include readline/tilde.h.
722 * cli/cli-setshow.c: Ditto.
723 * defs.h: Don't declare tilde_expand anymore, since readline
724 exports it.
725
726 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
727
728 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
729 -Werror on this file.
730
731 2002-12-07 Andrew Cagney <ac131313@redhat.com>
732
733 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
734 the format name.
735 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
736 * gdbarch.c: Regenerate.
737
738 2002-12-06 Andrew Cagney <ac131313@redhat.com>
739
740 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
741 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
742 provide a default value.
743 * gdbarch.h, gdbarch.c: Regenerate.
744 * frame.c (get_prev_frame): Update. Check
745 DEPRECATED_INIT_FRAME_PC_FIRST_P.
746 * s390-tdep.c (s390_gdbarch_init): Update.
747 * mips-tdep.c (mips_gdbarch_init): Update.
748 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
749 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
750 * alpha-tdep.c (alpha_gdbarch_init): Update.
751
752 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
753
754 * ia64-linux-nat.c: Include gdb_string.h.
755 * alpha-nat.c: Ditto.
756 * ppc-linux-nat.c: Ditto.
757 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
758 Update dependencies.
759
760 2002-12-05 Andrew Cagney <ac131313@redhat.com>
761
762 * gdbthread.h: Include "frame.h".
763 (struct thread_info): Replace step_frame_address with
764 step_frame_id.
765 * inferior.h: Include "frame.h".
766 (step_frame_id): Replace external variable step_frame_address.
767 * gdbthread.h (save_infrun_state): Replace step_frame_address
768 parameter with step_frame_id parameter.
769 (load_infrun_state): Ditto.
770 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
771 * infcmd.c (step_frame_id, step_1, step_once): Update.
772 * thread.c (load_infrun_state, save_infrun_state): Update.
773 * infrun.c (clear_proceed_status, save_inferior_status): Update.
774 (handle_inferior_event, step_over_function): Update.
775 (normal_stop, context_switch, restore_inferior_status): Update.
776 (struct inferior_status): Replace step_frame_address with
777 step_frame_id.
778
779 2002-12-05 David Carlton <carlton@math.stanford.edu>
780
781 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
782 DW_TAG_member as well as a declaration as being a C++ static data
783 member.
784 (read_structure_scope): Combine tests for DW_TAG_member and
785 DW_TAG_variable.
786
787 2002-12-05 David Carlton <carlton@math.stanford.edu>
788
789 * linespec.c (decode_compound): New function.
790 (decode_line_1): Move code into decode_compound.
791
792 2002-12-05 David Carlton <carlton@math.stanford.edu>
793
794 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
795 argument.
796 (lookup_symbol_aux): Do the 'field_of_this' check before checking
797 the static block. See PR gdb/804.
798
799 2002-12-05 David Carlton <carlton@math.stanford.edu>
800
801 * symtab.c (lookup_symbol_aux_block): New function.
802 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
803
804 2002-12-05 Andrew Cagney <ac131313@redhat.com>
805
806 * gdbarch.sh: Dump the predicate function and macro values.
807 (read): Print error on standard error.
808 * gdbarch.c: Regenerate.
809
810 2002-12-04 Kevin Buettner <kevinb@redhat.com>
811
812 * Makefile.in (mips_tdep_h): Define.
813 (mips-tdep.o): Add mips_tdep_h to dependency list.
814 * mips-tdep.h: New file.
815 * mips-tdep.c (mips-tdep.h): Include.
816 (enum mips_abi): Move to mips-tdep.h.
817 (mips_abi): New function.
818
819 2002-12-04 David Carlton <carlton@math.stanford.edu>
820
821 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
822
823 2002-12-04 David Carlton <carlton@math.stanford.edu>
824
825 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
826 function.
827 (lookup_symbol_aux_minsyms): New function.
828
829 2002-12-04 J. Brobecker <brobecker@gnat.com>
830
831 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
832
833 2002-12-04 J. Brobecker <brobecker@gnat.com>
834
835 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
836 which is an obsolete macro name.
837
838 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
839
840 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
841 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
842
843 2002-12-03 H.J. Lu (hjl@gnu.org)
844
845 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
846 (create_breakpoints): Make sure the addr_string field is not
847 NULL.
848
849 2002-12-03 Andrew Cagney <ac131313@redhat.com>
850
851 * sparc-nat.c (fetch_inferior_registers)
852 (store_inferior_registers): Add comment on problem of LWP vs
853 threads.
854
855 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
856 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
857 (lin_lwp_store_registers): Remove.
858 (init_lin_lwp_ops): Use fetch_inferior_registers
859 and store_inferior_registers directly.
860 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
861 (store_inferior_registers): Likewise.
862 Fix PR gdb/725.
863
864 2002-12-03 Andrew Cagney <ac131313@redhat.com>
865
866 * frame.h (get_frame_id): Convert to a function.
867 (null_frame_id, frame_id_p): Declare.
868 (frame_id_eq, frame_id_inner): Declare.
869 (frame_id_build): New function.
870 * frame.c (get_frame_id): Update. Use null_frame_id.
871 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
872 frame_id_inner.
873 (null_frame_id, frame_id_p): Define.
874 (frame_id_eq, frame_id_inner): Define.
875 (frame_id_build): New function.
876 * varobj.c (varobj_create): Update.
877 (varobj_update): Update.
878 * valops.c (value_assign): Update.
879 (new_root_variable): Update.
880 * infrun.c (save_inferior_status): Update.
881 * breakpoint.c (watch_command_1): Update.
882
883 2002-12-03 J. Brobecker <brobecker@gnat.com>
884
885 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
886 (SNAP2): Likewise.
887
888 2002-12-03 Andrew Cagney <cagney@redhat.com>
889
890 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
891 patch.
892
893 * PROBLEMS: Mention PR gdb/725.
894
895 2002-12-03 Andreas Schwab <schwab@suse.de>
896
897 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
898
899 2002-12-02 Adam Fedor <fedor@gnu.org>
900 Klee Dienes <kdienes@apple.com>
901
902 * objc-lang.c (objc_printstr): Add width arg to match
903 printstr prototype.
904 (compare_selectors): Add 'const' to arg types.
905 (compare_classes): Likewise.
906 (find_imps): Cast msym pointer to avoid compiler warning.
907 (print_object_command): Validate the address before
908 passing it to the print routine.
909 (find_objc_msgcall_submethod): Change function argument to
910 return an int.
911 * objc-lang.h: Add 'extern' to all function declarations.
912 (value_nsstring): Add declaration.
913
914 2002-12-02 J. Brobecker <brobecker@gnat.com>
915
916 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
917 Fixes a build failure on HP/UX.
918
919 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
920 failure on HP/UX.
921 (hpread_has_name): Advance declaration to avoid a compilation warning.
922 (pst_syms_count): Add missing variable type. By change, the compiler
923 was defaulting to int, which seems a good choice. Fixes a compilation
924 warning.
925 (pst_syms_size): Likewise.
926
927 2002-12-02 J. Brobecker <brobecker@gnat.com>
928
929 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
930 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
931 later to set the proper gdbarch methods depending on the osabi.
932 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
933
934 2002-12-02 J. Brobecker <brobecker@gnat.com>
935
936 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
937 * osabi.c (gdb_osabi_name): Add strings images for the two new
938 enum values.
939 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
940
941 2002-12-02 Andrew Cagney <ac131313@redhat.com>
942
943 * MAINTAINERS (Java): Global maintainers are responible for Java.
944 (Past Maintainers): Mention both Anthony Green and Per Bothner as
945 part Java maintainers.
946
947 2002-12-02 J. Brobecker <brobecker@gnat.com>
948
949 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
950 Fixes a compilation failure on AiX.
951
952 2002-12-02 J. Brobecker <brobecker@gnat.com>
953
954 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
955 why aix-thread.o is not listed.
956
957 2002-12-01 Andrew Cagney <ac131313@redhat.com>
958
959 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
960 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
961 * gdbarch.h, gdbarch.c: Re-generate.
962 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
963 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
964 * config/pa/tm-hppa.h, frame.h: Update.
965 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
966 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
967 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
968 * cris-tdep.c, alpha-tdep.c: Update.
969 * frame.c (set_unwind_by_pc, create_new_frame): Use either
970 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
971 (get_prev_frame): Ditto.
972
973 2002-11-30 Andrew Cagney <cagney@redhat.com>
974
975 * exec.c (xfer_memory): Replace boolean with int.
976 * p-exp.y: Use 0 instead of false.
977 * corelow.c (gdb_check_format): Change return type to int from
978 boolean.
979 * utils.c: Don't include <curses.h> or <term.h> first.
980
981 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
982
983 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
984 (m68hc11_register_byte): Remove.
985 (m68hc11_gdbarch_init): Don't set the above.
986
987 2002-11-29 Andrew Cagney <cagney@redhat.com>
988
989 * remote-mips.c (mips_initialize): Force a selected frame rebuild
990 by calling get_selected_frame.
991 * ocd.c (ocd_start_remote): Use get_selected frame instead of
992 set_current_frame, create_new_frame, select_frame and
993 get_current_frame.
994 * remote-e7000.c (e7000_start_remote): Ditto.
995 * remote-mips.c (common_open): Ditto
996 * remote-rdp.c (remote_rdp_open): Ditto.
997
998 2002-11-29 Andreas Schwab <schwab@suse.de>
999
1000 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1001 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1002 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1003 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1004 read_memory_unsigned_integer instead of read_memory_integer when
1005 dealing with addresses and instruction opcodes.
1006 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1007 (m68k_linux_frame_saved_pc): Likewise.
1008
1009 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1010
1011 * stack.c (selected_frame, select_frame): Move from here ...
1012 * frame.c (selected_frame, select_frame): ... to here. Include
1013 "language.h".
1014 * Makefile.in (frame.o): Update dependencies.
1015 * frame.c (get_selected_frame): New function.
1016 * frame.h (get_selected_frame): Declare.
1017 (deprecated_selected_frame): Rename selected_frame.
1018 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1019 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1020 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1021 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1022 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1023 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1024 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1025 * z8k-tdep.c, cli/cli-cmds.c: Update.
1026
1027 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1028
1029 * frame.h (get_selected_block): Add comments.
1030
1031 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1032
1033 * frame.c (pc_notcurrent): New function.
1034 (find_frame_sal): New function.
1035 * frame.h (find_frame_sal): Declare.
1036 (struct symtab_and_line): Add opaque declaration.
1037 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1038 find_pc_line.
1039 (frame_info): Ditto.
1040 * ada-lang.c (find_printable_frame): Ditto.
1041
1042 2002-11-28 J. Brobecker <brobecker@gnat.com>
1043
1044 * configure.in: Check that the pthdebug library is recent enough
1045 before enabling thread support on native AiX.
1046 * configure: Regenerate.
1047
1048 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1049 from the list of object files as it is now appended by configure
1050 if thread support is enabled.
1051 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1052 if thread support is enabled.
1053
1054 2002-11-28 Andrew Cagney <cagney@redhat.com>
1055
1056 * stack.c (get_selected_block): In-line get_current_block.
1057 * frame.h (get_current_block): Delete declaration.
1058 * blockframe.c (get_current_block): Delete function.
1059
1060 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1061
1062 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1063 USE_GENERIC_DUMMY_FRAMES.
1064 * gdbarch.h, gdbarch.c: Regenerate.
1065 * valops.c, frame.c: Update.
1066 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1067 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1068 * config/pa/tm-hppa.h, blockframe.c: Update.
1069 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1070 * m68k-tdep.c, alpha-tdep.c: Ditto.
1071
1072 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1073 * mips-tdep.c: Ditto.
1074
1075 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1076
1077 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1078 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1079 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1080 * gdbarch.c, gdbarch.h: Re-generate.
1081 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1082 (CALL_DUMMY_LOCATION): Delete macro definition.
1083 (PC_IN_CALL_DUMMY): Delete macro definitions.
1084
1085 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1086 default is already generic_pc_in_call_dummy.
1087 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1088 * v850-tdep.c (v850_gdbarch_init): Ditto.
1089 * sh-tdep.c (sh_gdbarch_init): Ditto.
1090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1091 * mips-tdep.c (mips_gdbarch_init): Ditto.
1092 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1093 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1094 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1095 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1097 * avr-tdep.c (avr_gdbarch_init): Ditto.
1098
1099 * arm-tdep.c (arm_gdbarch_init): Do not set
1100 use_generic_dummy_frames, default is already 1.
1101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1102 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1103 * v850-tdep.c (v850_gdbarch_init): Ditto.
1104 * sh-tdep.c (sh_gdbarch_init): Ditto.
1105 * s390-tdep.c (s390_gdbarch_init): Ditto.
1106 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1107 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1108 * mips-tdep.c (mips_gdbarch_init): Ditto.
1109 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1112 * i386-tdep.c (i386_gdbarch_init): Ditto.
1113 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1114 * frv-tdep.c (frv_gdbarch_init): Ditto.
1115 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1116 * cris-tdep.c (cris_gdbarch_init): Ditto.
1117 * avr-tdep.c (avr_gdbarch_init): Ditto.
1118
1119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1120 call_dummy_location, default is already AT_ENTRY_POINT.
1121 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1122 * v850-tdep.c (v850_gdbarch_init): Ditto.
1123 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1124 * sh-tdep.c (sh_gdbarch_init): Ditto.
1125 * s390-tdep.c (s390_gdbarch_init): Ditto.
1126 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1127 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1128 * mips-tdep.c (mips_gdbarch_init): Ditto.
1129 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1131 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1132 * i386-tdep.c (i386_gdbarch_init): Ditto.
1133 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1134 * frv-tdep.c (frv_gdbarch_init): Ditto.
1135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1136 * cris-tdep.c (cris_gdbarch_init): Ditto.
1137 * avr-tdep.c (avr_gdbarch_init): Ditto.
1138 * arm-tdep.c (arm_gdbarch_init): Ditto.
1139 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1140
1141 2002-11-28 Andrew Cagney <cagney@redhat.com>
1142
1143 * frame.h: Update comments on set_current_frame, create_new_frame,
1144 flush_cached_frames, reinit_frame_cache, select_frame and
1145 selected_frame.
1146
1147 2002-11-27 Andrew Cagney <cagney@redhat.com>
1148
1149 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1150 deprecated pc_in_call_dummy function.
1151 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1152 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1153 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1154 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1155 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1156
1157 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1158
1159 * Makefile.in: Remove Tix dependencies.
1160 * acinclude.m4: Ditto.
1161 * aclocal.m4: Ditto.
1162 * configure.in: Ditto.
1163 * configure: Regenerated.
1164
1165 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1166
1167 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1168 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1169 * gdbarch.c: Re-generate.
1170
1171 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1172
1173 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1174 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1175 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1176 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1177 pc_in_call_dummy_at_entry_point.
1178 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1179 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1180 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1181 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1182 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1183 pc_in_call_dummy_on_stack.
1184 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1185 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1186 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1187 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1188 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1189
1190 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1191
1192 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1193 pc_in_call_dummy_before_text_end
1194 (deprecated_pc_in_call_dummy_after_text_end): Rename
1195 pc_in_call_dummy_after_text_end.
1196 (deprecated_pc_in_call_dummy_on_stack): Rename
1197 pc_in_call_dummy_on_stack.
1198 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1199 pc_in_call_dummy_at_entry_point.
1200 * m68k-tdep.c (m68k_gdbarch_init): Update.
1201 * s390-tdep.c (s390_gdbarch_init): Update.
1202 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1203 * vax-tdep.c (vax_gdbarch_init): Update.
1204 * sparc-tdep.c (sparc_gdbarch_init): Update.
1205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1207 * i386-tdep.c (i386_gdbarch_init): Update.
1208 * frv-tdep.c (frv_gdbarch_init): Update.
1209 * cris-tdep.c (cris_gdbarch_init): Update.
1210 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1211 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1212 (deprecated_pc_in_call_dummy_after_text_end)
1213 (deprecated_pc_in_call_dummy_on_stack)
1214 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1215 * alpha-tdep.c (alpha_gdbarch_init): Update.
1216
1217 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1218
1219 * acconfig.h (HAVE_PREAD64): Add.
1220 * configure.in: Check for pread64.
1221 * config.in: Regenerated.
1222 * configure: Regenerated.
1223 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1224 * linux-proc.c (linux_proc_xfer_memory): New function.
1225 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1226
1227 2002-11-25 David Carlton <carlton@math.stanford.edu>
1228
1229 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1230 pdi's with no name.
1231
1232 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1233
1234 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1235 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1236
1237 2002-11-25 Jim Blandy <jimb@redhat.com>
1238
1239 * symfile.c (init_objfile_sect_indices): New function.
1240 (default_symfile_offsets): Move the section-index-initializing
1241 stuff into init_objfile_sect_indices, and call that.
1242
1243 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1244 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1245
1246 * symfile.c (syms_from_objfile): Adjust indentation.
1247
1248 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1249 || info_verbose isn't true.
1250
1251 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1252
1253 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1254 default to get_frame_base.
1255 * gdbarch.h, gdbarch.c: Regenerate.
1256 * arch-utils.c (default_frame_address): Delete function.
1257 * arch-utils.h (default_frame_address): Delete declaration
1258
1259 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1260
1261 * varobj.c (find_frame_addr_in_frame_chain):
1262 Use get_frame_base instead of FRAME_FP,
1263 obvious fix.
1264
1265 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1266
1267 * frame.h (FRAME_FP): Delete macro.
1268 (get_frame_base): New function declaration.
1269 * frame.c (get_frame_base): New function.
1270 (get_frame_id): Use ->frame.
1271 (frame_find_by_id): Rewrite to use get_frame_id.
1272 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1273 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1274 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1275 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1276 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1277 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1278 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1279
1280 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1281
1282 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1283
1284 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1285
1286 * frame.c (set_unwind_by_pc): Revert change below, use
1287 PC_IN_CALL_DUMMY.
1288 (get_prev_frame): Ditto.
1289
1290 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1291
1292 * dummy-frame.c (pc_in_dummy_frame): New function.
1293 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1294 (find_dummy_frame): Update comment.
1295 (generic_pop_current_frame): Use get_frame_type.
1296 * dummy-frame.h (pc_in_dummy_frame): Declare.
1297 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1298 (create_new_frame): Use pc_in_dummy_frame.
1299 (get_prev_frame): Use pc_in_dummy_frame.
1300 (frame_saved_regs_register_unwind): Use get_prev_frame.
1301 (deprecated_generic_get_saved_register): Use get_prev_frame.
1302
1303 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1304
1305 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1306 from here ...
1307 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1308 (varobj_create): Note that frame ID should be used.
1309 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1310
1311 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1312
1313 * breakpoint.c: Include "gdb_assert.h".
1314 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1315 not being used.
1316 * Makefile.in (breakpoint.o): Update dependencies.
1317 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1318 deprecated_frame_in_dummy.
1319 * stack.c (print_frame_info_base): Ditto.
1320 (frame_info): Ditto.
1321 (print_frame_info_base): Ditto. Delete dead code.
1322
1323 2002-11-23 Andreas Schwab <schwab@suse.de>
1324
1325 * Makefile.in (m68k_tdep_h): Define.
1326 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1327 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1328 * m68k-tdep.c: Move register number enum ...
1329 * m68k-tdep.h: ... to this new file and rename the constants from
1330 E_* to M68K_*. All uses changed.
1331 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1332 * abug-rom.c: Include "m68k-tdep.h". Use
1333 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1334 * cpu32bug-rom.c: Likewise.
1335 * dbug-rom.c: Likewise.
1336 * m68k-tdep.c: Likewise.
1337 * m68klinux-nat.c: Likewise.
1338 * remote-est.c: Likewise.
1339 * rom68k-rom.c: Likewise.
1340 * config/m68k/tm-linux.h: Likewise.
1341
1342 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1343
1344 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1345 dummy frame initialization code.
1346 * mips-tdep.c (mips_gdbarch_init): Ditto.
1347
1348 2002-11-22 Christopher Faylor <cgf@redhat.com>
1349
1350 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1351 attach will hang.
1352
1353 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1354
1355 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1356 to default_frame_address.
1357 * gdbarch.h, gdbarch.c: Re-generate.
1358
1359 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1360 or frame_locals_address to default_frame_address.
1361 * m68k-tdep.c (m68k_gdbarch_init): Update.
1362 * i386-tdep.c (i386_gdbarch_init): Update.
1363 * frv-tdep.c (frv_gdbarch_init): Update.
1364 * sh-tdep.c (sh_gdbarch_init): Update.
1365 * v850-tdep.c (v850_gdbarch_init): Update.
1366 * sparc-tdep.c (sparc_gdbarch_init): Update.
1367 * mips-tdep.c (mips_gdbarch_init): Update.
1368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1369 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1371
1372 * cris-tdep.c (cris_frame_args_address): Delete function.
1373 (cris_frame_locals_address): Delete function.
1374 (cris_gdbarch_init): Do not set frame_args_address or
1375 frame_locals_address.
1376
1377 2002-11-22 Michael Snyder <msnyder@redhat.com>
1378
1379 * thread-db.c (thread_db_load): Tell the user what's going on
1380 if dlopen fails on libthread_db.
1381
1382 2002-11-23 Andreas Schwab <schwab@suse.de>
1383
1384 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1385 invariant return values.
1386
1387 2002-11-22 Andreas Schwab <schwab@suse.de>
1388
1389 * valops.c (value_slice): Move declaration of `offset' to avoid
1390 warning.
1391
1392 2002-11-22 Christopher Faylor <cgf@redhat.com>
1393
1394 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1395 (struct so_stuff): Add end_addr field.
1396 (register_loaded_dll): Calculate and store end address of loaded dll.
1397 (solib_address): New function.
1398 (child_solib_loaded_library_pathname): Pass carefully constructed
1399 section info to safe_symbol_file_add rather than ignoring it.
1400 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1401 DLL is loaded.
1402 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1403 (child_create_inferior): Fix a compiler warning.
1404 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1405 (solib_address): Declare new function.
1406
1407 2002-11-22 Andreas Schwab <schwab@suse.de>
1408
1409 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1410 and FPS registers.
1411
1412 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1413
1414 * maint.c (_initialize_maint_cmds): Fix typo. From
1415 Francesco Potorti` <pot@gnu.org>.
1416
1417 2002-11-21 Andrew Cagney <cagney@redhat.com>
1418
1419 * mips-tdep.c (mips_dump_tdep): Delete references to
1420 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1421 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1422 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1423 * printcmd.c (build_address_symbolic): Delete calls to
1424 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1425 (address_info): Ditto.
1426 Fix PR gdb/773.
1427
1428 2002-11-19 Klee Dienes <kdienes@apple.com>
1429 Adam Fedor <fedor@gnu.org>
1430
1431 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1432 the ability to explicitly specify the quote characters and word
1433 break characters; if NULL is specified for either, use the old
1434 behavior of using the characters used by the completer.
1435 (skip_chars): New function. Convenience wrapper around
1436 skip_quoted_chars to provide the original skip_chars behavior.
1437 * completer.h (skip_quoted_chars): Add prototype.
1438
1439 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1440
1441 Problems reported by Paul Eggert.
1442 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1443
1444 2002-11-19 Andreas Schwab <schwab@suse.de>
1445
1446 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1447 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1448 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1449 (m68k_linux_frame_saved_pc): Move to ...
1450 * m68klinux-tdep.c: ... here. New file.
1451 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1452 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1453
1454 2002-11-19 Adam Fedor <fedor@gnu.org>
1455
1456 * objc-exp.y: Revert to old skip_quoted usage.
1457
1458 2002-11-19 Adam Fedor <fedor@gnu.org>
1459
1460 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1461 (objc_lang_h): Define.
1462 (YYFILES): Add objc-exp.tab.c.
1463 (local-maintainer-clean): Remove objc-exp.tab.c.
1464 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1465
1466 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1467
1468 * p-exp.y (typecast rule): Add automatic dereference of
1469 pascal classes if needed.
1470 (THIS): Set current_type.
1471 Automatically dereference pascal classes.
1472 (typebase rule): Add ^typebase recognition.
1473
1474 2002-11-18 Adam Fedor <fedor@gnu.org>
1475
1476 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1477 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1478 (op_name): Handle OP_OBJC_SELF.
1479 * Makefile.in (expprint.o): Add additional depends.
1480
1481 2002-11-18 Adam Fedor <fedor@gnu.org>
1482
1483 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1484 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1485 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1486 * objc-exp.y: Likewise.
1487
1488 2002-11-18 Adam Fedor <fedor@gnu.org>
1489
1490 * gdb/parser-defs.h: (struct objc_class_str): New structure
1491 for parsing ObjC classes.
1492
1493 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1494
1495 * stack.c (frame_relative_level): Copy function from here ...
1496 * frame.c (frame_relative_level): ...to here.
1497
1498 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1499
1500 * frame.h (enum frame_type): Define.
1501 (get_frame_type): Declare.
1502 (struct frame_info): Add field `type'. Delete field
1503 signal_handler_caller.
1504 (deprecated_set_frame_signal_handler_caller): Declare.
1505 * frame.c (get_frame_type): New function.
1506 (deprecated_set_frame_type): New function.
1507 (create_new_frame): Set the frame's type.
1508 (get_prev_frame): Similar.
1509 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1510 * s390-tdep.c: Ditto.
1511 * m68klinux-nat.c: Ditto.
1512 * ns32k-tdep.c: Ditto.
1513 * x86-64-linux-tdep.c: Ditto.
1514 * vax-tdep.c: Ditto.
1515 * rs6000-tdep.c: Ditto.
1516 * ppc-linux-tdep.c: Ditto.
1517 * i386-interix-tdep.c: Ditto.
1518 * mips-tdep.c: Ditto.
1519 * m68k-tdep.c: Ditto.
1520 * hppa-tdep.c: Ditto.
1521 * ia64-tdep.c: Ditto.
1522 * cris-tdep.c: Ditto.
1523 * arm-tdep.c: Ditto.
1524 * alpha-tdep.c: Ditto.
1525 * i386-tdep.c: Ditto.
1526 * stack.c: Ditto.
1527 * ada-lang.c: Ditto.
1528 * blockframe.c: Update.
1529 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1530 deprecated_set_frame_type instead of signal_handler_caller.
1531 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1532 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1533 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1534
1535 2002-11-18 Klee Dienes <kdienes@apple.com>
1536
1537 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1538
1539 2002-11-18 Klee Dienes <kdienes@apple.com>
1540
1541 * buildsym.c (pop_context): Add comment.
1542
1543 2002-11-18 Klee Dienes <kdienes@apple.com>
1544
1545 * buildsym.h (pop_context): Convert to function, defined in
1546 buildsym.c.
1547 * buildsym.c: Include gdb_assert.h.
1548 (pop_context): Implement as C function. Add check for stack
1549 underflow.
1550 * dbxread.c (process_one_symbol): Complain and stop processing
1551 that symbol if we are already at the top of the context stack for
1552 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1553 when processing N_RBRAC.
1554
1555 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1556
1557 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1558 define.
1559 (struct target_waitstatus): Add opaque definition.
1560 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1561 * exec.c (init_exec_ops): Likewise.
1562 * fork-child.c (clone_and_follow_inferior): Remove.
1563 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1564 * inferior.h (clone_and_follow_inferior): Remove prototype.
1565 * infrun.c (follow_fork_mode_both): Remove.
1566 (follow_fork_mode_kind_names): Remove commented out "both".
1567 (follow_inferior_fork): Remove follow_fork_mode_both support.
1568 * inftarg.c (child_clone_and_follow_inferior): Remove.
1569 (child_post_follow_inferior_by_clone): Remove.
1570 (init_child_ops): Don't set to_clone_and_follow_inferior
1571 or to_post_follow_inferior_by_clone.
1572 * target.c (default_clone_and_follow_inferior): Remove.
1573 (cleanup_target): Don't set to_clone_and_follow_inferior
1574 or to_post_follow_inferior_by_clone.
1575 (find_default_clone_and_follow_inferior): Remove.
1576 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1577 (debug_to_clone_and_follow_inferior): Remove.
1578 (debug_to_post_follow_inferior_by_clone): Remove.
1579 (setup_target_debug): Don't set to_clone_and_follow_inferior
1580 or to_post_follow_inferior_by_clone.
1581 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1582 and to_post_follow_inferior_by_clone.
1583 (child_clone_and_follow_inferior): Remove prototype.
1584 (child_post_follow_inferior_by_clone): Remove prototype.
1585 (target_clone_and_follow_inferior): Remove macro.
1586 (target_post_follow_inferior_by_clone): Remove macro.
1587 (find_default_clone_and_follow_inferior): Remove prototype.
1588
1589 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1590
1591 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1592 inferior_has_vforked, and inferior_has_execd instead of
1593 target_has_forked, target_has_vforked, and target_has_execd.
1594 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1595 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1596 (CHILD_WAIT): Define.
1597 (child_wait): Add prototype.
1598 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1599 Add prototype.
1600 (hpux_has_vforked): Likewise, from child_has_vforked.
1601 (hpux_has_execd): Likewise, from child_has_execd.
1602 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1603 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1604 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1605 and hpux_has_syscall_event instead of the target hooks.
1606 * infrun.c (inferior_has_forked, inferior_has_vforked)
1607 (inferior_has_execd): New functions.
1608 * inftarg.c (not_same_real_pid): Remove.
1609 (child_wait): Remove references to not_same_real_pid,
1610 target_has_forked, target_has_vforked, target_has_execd,
1611 and target_has_syscall_event.
1612 (child_has_forked, child_has_vforked, child_has_execd)
1613 (child_has_syscall_event): Remove.
1614 (init_child_ops): Remove references to child_has_forked,
1615 child_has_vforked, child_has_execd, and child_has_syscall_event.
1616 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1617 (hpux_has_vforked): Likewise, from child_has_vforked.
1618 (hpux_has_execd): Likewise, from child_has_execd.
1619 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1620 * target.c (cleanup_target): Remove references to
1621 to_has_forked, to_has_vforked, to_has_execd, and
1622 to_has_syscall_event.
1623 (update_current_target): Likewise.
1624 (setup_target_debug): Likewise.
1625 (debug_to_has_forked): Remove.
1626 (debug_to_has_vforked): Remove.
1627 (debug_to_has_execd): Remove.
1628 (debug_to_has_syscall_event): Remove.
1629 * target.h (struct target_ops): Remove to_has_forked.
1630 to_has_vforked, to_has_execd, and to_has_syscall_event.
1631 (child_has_forked, child_has_vforked, child_has_execd)
1632 (child_has_syscall_event): Remove prototypes.
1633 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1634 prototypes.
1635 (target_has_forked, target_has_vforked, target_has_execd)
1636 (target_has_syscall_event): Remove macros.
1637
1638 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1641 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1642 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1643 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1644 * target.c (cleanup_target): Remove reference to
1645 to_can_follow_vfork_prior_to_exec.
1646 (update_current_target): Likewise.
1647 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1648 (setup_target_debug): Remove reference to
1649 to_can_follow_vfork_prior_to_exec.
1650 * target.h (struct target_ops): Remove
1651 to_can_follow_vfork_prior_to_exec.
1652 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1653 (target_can_follow_vfork_prior_to_exec): Remove definition.
1654 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1655 define.
1656 * infrun.c (follow_vfork_when_exec): Remove.
1657 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1658 (follow_exec): Likewise.
1659 (handle_inferior_event): Likewise.
1660 (keep_going): Likewise.
1661
1662 2002-11-15 Andrew Cagney <cagney@redhat.com>
1663
1664 * frame.c (generic_unwind_get_saved_register): Make static.
1665 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1666 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1667 defaults to generic_unwind_get_saved_register.
1668 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1669 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1670 * frv-tdep.c (frv_gdbarch_init): Ditto.
1671 * i386-tdep.c (i386_gdbarch_init): Ditto.
1672 * s390-tdep.c (s390_gdbarch_init): Ditto.
1673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1674 * v850-tdep.c (v850_gdbarch_init): Ditto.
1675 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1676 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1677 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1678
1679 2002-11-15 Andrew Cagney <cagney@redhat.com>
1680
1681 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1682 i386-tdep.c.
1683
1684 2002-11-15 Andrew Cagney <cagney@redhat.com>
1685
1686 * frame.h (sigtramp_saved_pc): Delete declaration.
1687 * blockframe.c (sigtramp_saved_pc): Delete function.
1688 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1689 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1690 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1691 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1692
1693 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1694
1695 * frame.c (frame_pc_unwind): New function.
1696 (frame_saved_regs_pc_unwind): New function.
1697 (frame_register_unwind): Pass unwind_cache instead of
1698 register_unwind_cache.
1699 (set_unwind_by_pc): Add unwind_pc parameter, set.
1700 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1701 (get_prev_frame): Ditto.
1702 * frame.h (frame_pc_unwind_ftype): Declare.
1703 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1704 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1705 (frame_pc_unwind): Declare.
1706 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1707 (struct dummy_frame): Add comment mentioning that values are for
1708 previous frame.
1709 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1710 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1711 (generic_file_frame_chain_valid): Ditto.
1712 * stack.c (frame_info): Ditto.
1713
1714 2002-11-15 David Carlton <carlton@math.stanford.edu>
1715
1716 * linespec.c (locate_first_half): New function.
1717 (decode_line_1): Move code into locate_first_half.
1718
1719 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1720
1721 * complaints.h: Add comment explaining how to eliminate a
1722 deprecated_complain call.
1723 * complaints.h: Fix spelling errors.
1724
1725 2002-11-15 David Carlton <carlton@math.stanford.edu>
1726
1727 * printcmd.c: Remove #include "disasm.h".
1728
1729 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1730
1731 * frame.h: Move the most relevant interface functions to the start
1732 of the file.
1733
1734 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1735
1736 * regcache.h (deprecated_registers): Rename registers.
1737 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1738 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1739 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1740 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1741 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1742 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1743 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1744 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1745 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1746 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1747 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1748 * v850ice.c: Update.
1749
1750 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1751
1752 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1753 NULL buffer.
1754
1755 2002-11-13 Andrew Cagney <cagney@redhat.com>
1756
1757 * regcache.h (deprecated_read_register_bytes): Rename
1758 read_register_bytes.
1759 (deprecated_write_register_bytes): Rename write_register_bytes.
1760 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1761 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1762 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1763 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1764 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1765 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1766 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1767 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1768 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1769 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1770 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1771 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1772 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1773 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1774
1775 2002-11-13 Jim Blandy <jimb@redhat.com>
1776
1777 * findvar.c (read_var_value): Doc fix.
1778
1779 2002-11-13 Andrew Cagney <cagney@redhat.com>
1780
1781 * regcache.c (struct regcache): Replace passthough_p with
1782 readonly_p.
1783 (regcache_xmalloc): Initialize readonly_p.
1784 (build_regcache): Initialize readonly_p.
1785 (regcache_save): New function.
1786 (regcache_restore): New function.
1787 (regcache_cpy): Re-implement using regcache_save and
1788 regcache_restore.
1789 (regcache_raw_read): Update.
1790 (regcache_cooked_read): When a read-only cache, checked for cached
1791 pseudo register values.
1792 (regcache_raw_write): Assert that the cache is not read-only.
1793 Remove code handling a non-passthrough cache.
1794 * regcache.h (regcache_save): Declare.
1795 (regcache_restore): Declare.
1796
1797 2002-11-13 Andrew Cagney <cagney@redhat.com>
1798
1799 * regcache.c (struct regcache_descr): Add fields
1800 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1801 (init_legacy_regcache_descr): Compute the size of a cooked
1802 register cache and then assign that to sizeof_raw_registers. Set
1803 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1804 (init_legacy_regcache_descr): Ditto.
1805
1806 2002-11-13 Andrew Cagney <cagney@redhat.com>
1807
1808 * regcache.c (register_buffer): Move to near start of file, update
1809 description.
1810 (regcache_raw_read): Use.
1811 (regcache_raw_write): Use.
1812 (struct regcache): Rename raw_registers to registers and
1813 raw_register_valid_p to register_valid_p.
1814 (regcache_xmalloc): Update.
1815 (regcache_xfree): Update.
1816 (register_buffer): Update.
1817 (regcache_cpy): Update.
1818 (regcache_cpy_no_passthrough): Update.
1819 (regcache_valid_p): Update.
1820 (deprecated_grub_regcache_for_registers): Update.
1821 (deprecated_grub_regcache_for_register_valid): Update.
1822 (set_register_cached): Update.
1823 (regcache_raw_write): Update.
1824
1825 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1826
1827 * p-exp.y (name_not_typename): Use copy_name to
1828 set current_type variable for fields of THIS.
1829
1830 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1831
1832 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1833 * monitor.c (init_base_monitor_ops): Likewise.
1834 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1835 * remote-array.c (init_array_ops): Likewise.
1836 * remote-e7000.c (init_e7000_ops): Likewise.
1837 * remote-es.c (init_es1800_ops): Likewise.
1838 (init_es1800_child_ops): Likewise.
1839 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1840 * remote-sim.c (init_gdbsim_ops): Likewise.
1841 * remote-st.c (init_st2000_ops): Likewise.
1842 * sol-thread.c (init_sol_core_ops): Likewise.
1843 (init_sol_thread_ops): Likewise.
1844 * v850ice.c (init_850ice_ops): Likewise.
1845 * win32-nat.c (init_child_ops): Likewise.
1846 * wince.c (init_child_ops): Likewise.
1847
1848 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1849
1850 * utils.c (gdb_realpath): Make rp a constant pointer.
1851
1852 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1853
1854 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1855 a constant buffer; cannonicalize_file_name(); realpath() with a
1856 pathconf() defined buffer, xstrdup().
1857
1858 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1859
1860 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1861 to hang2.C; hang3.c to hang3.C.
1862
1863 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * findvar.c (read_var_value): Reenable TLS code.
1866
1867 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1868 Jim Blandy <jimb@redhat.com>
1869
1870 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1871 * target.c (update_current_target): Add
1872 to_get_thread_local_address.
1873 * target.h (to_get_thread_local_address): Export.
1874 (target_get_thread_local_address): Define.
1875 (target_get_thread_local_address_p): Define.
1876 * thread-db.c: Include solib-svr4.h.
1877 (td_thr_tls_get_addr_p): Define.
1878 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1879 (thread_db_get_thread_local_address): New function.
1880 (init_thread_db_ops): Initialize to_get_thread_local_address.
1881 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1882 * configure: Regenerate.
1883 * config.in: Regenerate.
1884
1885 2002-11-11 David Carlton <carlton@math.stanford.edu>
1886
1887 * linespec.c (set_flags): New function.
1888 (decode_line_1): Move code into set_flags.
1889
1890 2002-11-11 David Carlton <carlton@math.stanford.edu>
1891
1892 * linespec.c (decode_line_1): Move chunks of code to separate
1893 functions.
1894 (initialize_defaults): New function.
1895 (decode_indirect): New function.
1896
1897 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1898
1899 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1900 instead of void_code_ptr.
1901 (sigtramp_saved_pc): Ditto.
1902
1903 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1904 i386_fp_regnum_p.
1905
1906 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1907
1908 * gdbtypes.h (struct main_type): Move artificial flag out of
1909 loc. New member of ``struct field'' named static_kind. Reduce
1910 overloaded meaning of bitsize.
1911 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1912 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1913 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1914
1915 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1916 new fields.
1917 (template_to_fixed_record_type, template_to_static_fixed_type)
1918 (to_record_with_fixed_variant_part): Likewise.
1919 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1920 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1921 * dwarfread.c (struct_type, enum_type): Likewise.
1922 * hpread.c (hpread_read_enum_type)
1923 (hpread_read_function_type, hpread_read_doc_function_type)
1924 (hpread_read_struct_type): Likewise.
1925 * mdebugread.c (parse_symbol): Likewise.
1926
1927 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1928
1929 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1930 * stack.c (print_frame_info_base): Update.
1931 (print_frame_info_base, frame_info): Update.
1932 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1933 (sparc_frame_saved_pc): Update.
1934 * ada-lang.c (find_printable_frame): Update.
1935 * breakpoint.c (deprecated_frame_in_dummy): Update.
1936
1937 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1938
1939 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1940 defined.
1941 (regmap): Extend to cover all registers.
1942 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1943 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1944 definitions.
1945 (fetch_register, sore_register): Simplify.
1946 (old_fetch_inferior_registers, old_store_inferior_registers):
1947 Remove functions.
1948 (cannot_fetch_register, cannot_store_register): Change
1949 implementation to use regmap array to decide which registers
1950 cannot be fetched/stored. This removes $orig_eax from the
1951 registers that cannot be fetched/stored.
1952 (fetch_inferior_registers): Call fetch_register directly instead
1953 of calling old_fetch_inferior_registers.
1954 (store_inferior_registers): Call store_register directly instead
1955 of calling old_store_inferior_registers.
1956 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1957 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1958 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1959
1960 2002-11-09 Klee Dienes <kdienes@apple.com>
1961
1962 * i387-tdep.c (i387_supply_register): When called with NULL as a
1963 buffer, mark the register as not provided (to mirror the behavior
1964 of supply_register).
1965 (i387_supply_fxsave): Ditto.
1966 (i387_supply_fsave): Ditto (inherits the behavior from
1967 i387_supply_register).
1968
1969 2002-11-09 Klee Dienes <kdienes@apple.com>
1970
1971 * blockframe.c (sigtramp_saved_pc): Use
1972 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1973 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1974 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1975
1976 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1977
1978 * frame.c (get_prev_frame): Test prev_p to identify a previously
1979 unwound frame. Initialize prev_p.
1980 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1981 comment.
1982
1983 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1984
1985 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1986 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1987 more comments. Zap dead code.
1988
1989 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1990
1991 * infcmd.c (print_vector_info, print_float_info): Move code that
1992 checks whether the target has any registers and whether there is a
1993 selected frame up, such that it is also used if a target provides
1994 multi-arch definitions of these functions.
1995
1996 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1997
1998 * Makefile.in (DESTDIR): Define.
1999 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2000 prefix.
2001
2002 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2003 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2004
2005 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2006
2007 * i386-linux-tdep.c: Include "reggroups.h".
2008 (i386_linux_register_reggroup_p): New function.
2009 (i386_linux_init_abi): Set register_reggroup_p to
2010 i386_linux_register_reggroup_p.
2011 * i386-tdep.h (i386_register_reggroup_p): Declare.
2012 * i386-tdep.c: Include "reggroups.h".
2013 (i386_init_reggroups): New function.
2014 (i386_add_reggroups): New function.
2015 (i386_register_reggroup_p): New function.
2016 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2017 (_initialize_i386_tdep): Call i386_init_reggroups.
2018 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2019 specific reggroups.
2020
2021 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2022
2023 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2024 request that's available in *BSD.
2025
2026 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2027
2028 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2029 FDOFF_REGNUM.
2030
2031 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2032
2033 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2034 * dummy-frame.c (find_dummy_frame): Rename
2035 generic_find_dummy_frame, make static. Return the dummy frame
2036 instead of the regcache.
2037 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2038 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2039 (dummy_frame_register_unwind): Rename
2040 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2041 * dummy-frame.h (dummy_frame_register_unwind): Rename
2042 generic_call_dummy_register_unwind.
2043
2044 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2045
2046 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2047 except the inclusion of "i386/tm-i386.h", to...
2048 * config/i386/nm-i386v42mp.h: ...here.
2049 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2050
2051 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2052
2053 * Makefile.in (frame.o): Update dependencies.
2054 * blockframe.c (current_frame, frame_obstack_alloc)
2055 (frame_saved_regs_zalloc, get_current_frame)
2056 (set_current_frame, create_new_frame)
2057 (set_unwind_by_pc, get_next_frame)
2058 (flush_cached_frames, reinit_frame_cache)
2059 (frame_saved_regs_register_unwind)
2060 (deprecated_generic_get_saved_register)
2061 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2062 (_initialize_blockframe): Move frame code from here...
2063 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2064 "annotate.h" and "dummy-frame.h".
2065 (_initialize_frame): New function.
2066
2067 2002-11-08 Jim Blandy <jimb@redhat.com>
2068
2069 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2070 when we finish a function a context.
2071 * buildsym.h (outermost_context_p): New macro.
2072 (Bug analyzed by David Edelsohn.)
2073
2074 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2075
2076 * blockframe.c: Include "dummy-frame.h".
2077 (struct dummy_frame, dummy_frame_stack)
2078 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2079 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2080 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2081 (generic_save_call_dummy_addr, generic_pop_current_frame)
2082 (generic_pop_dummy_frame, generic_fix_call_dummy)
2083 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2084 dummy frame code from here...
2085 * dummy-frame.c: ...to here. New file.
2086 * dummy-frame.h: New file.
2087 (generic_call_dummy_register_unwind): Declare.
2088 (generic_find_dummy_frame): Declare.
2089 * Makefile.in (SFILES): Add dummy-frame.c.
2090 (dummy-frame.o): Specify dependencies.
2091 (dummy_frame_h): Define.
2092 (COMMON_OBS): Add dummy-frame.o.
2093 (blockframe.o): Update dependencies.
2094
2095 2002-11-08 Jim Blandy <jimb@redhat.com>
2096
2097 * dwarf2read.c (read_func_scope): Restore local_symbols and
2098 param_symbols after we finish the function context. (Based on a
2099 patch from David Edelsohn.)
2100
2101 2002-11-08 David Carlton <carlton@math.stanford.edu>
2102
2103 * linespec.c (symbol_found): New function.
2104 (minsym_found): New function.
2105 (decode_line_1): Separate out some code into separate functions.
2106
2107 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2108
2109 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2110 the benefit of the interix target.
2111 * i386-tdep.h (i386_frameless_signal_p): Declare.
2112
2113 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2114
2115 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2116 declaration that snuck in from change below.
2117
2118 2002-11-06 Andrew Cagney <cagney@redhat.com>
2119
2120 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2121 all callers.
2122 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2123 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2124 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2125 (i386_mxcsr_regnum_p): new function. Use instead of
2126 MXCSR_REGNUM_P.
2127 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2128 (i386_sse_regnum_p): Declare.
2129 (i386_mxcsr_regnum_p): Declare.
2130 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2131 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2132 (IS_FP_REGNUM): Update definition.
2133 (IS_FPU_CTRL_REGNUM): Update definition..
2134 (IS_SSE_REGNUM): Update definition..
2135 * i386v-nat.c (register_u_addr): Update.
2136 * go32-nat.c (fetch_register): Update.
2137 (store_register): Update.
2138
2139 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2140
2141 Preparation work to convert the hppa targets to multiarch partial.
2142
2143 * hppa-tdep.c: Add new functions replacing macro bodies from
2144 config/pa/tm-hppa.h. These function will be used to initialize
2145 the gdbarch structure. Import some comments from tm-hppa.h,
2146 and place them where appropriate, to avoid loosing them when
2147 we cleanup this file.
2148 (hppa_reg_struct_has_addr): New function.
2149 (hppa_inner_than): New function.
2150 (hppa_stack_align): New function.
2151 (hppa_pc_requires_run_before_use): New function.
2152 (hppa_instruction_nullified): New function.
2153 (hppa_register_byte): New function.
2154 (hppa_register_virtual_type): New function.
2155 (hppa_store_struct_return): New function.
2156 (hppa_cannot_store_register): New function.
2157 (hppa_frame_args_address): New function.
2158 (hppa_frame_locals_address): New function.
2159 (hppa_smash_text_address): New function.
2160 (hppa_coerce_float_to_double): New function. Requires the inclusion
2161 of "language.h".
2162
2163 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2164
2165 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2166 gdbarch-eligible macro to a call to the new associated function
2167 created in hppa-tdep.c.
2168 (INNER_THAN): Likewise.
2169 (STACK_ALIGN): Likewise.
2170 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2171 (INSTRUCTION_NULLIFIED): Likewise.
2172 (REGISTER_BYTE): Likewise.
2173 (REGISTER_VIRTUAL_TYPE): Likewise.
2174 (STORE_STRUCT_RETURN): Likewise.
2175 (CANNOT_STORE_REGISTER): Likewise.
2176 (FRAME_ARGS_ADDRESS): Likewise.
2177 (FRAME_LOCALS_ADDRESS): Likewise.
2178 (SMASH_TEXT_ADDRESS): Likewise.
2179 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2180 (ABOUT_TO_RETURN): Delete, as no longer used.
2181
2182 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2183
2184 * printcmd.c (disassemble_command): Remove obsolete function.
2185 (_initialize_printcmd): Do not create disassemble command here.
2186 * cli/cli-cmds.c (disassemble_command): New function. Implements
2187 disassemble command.
2188 (init_cli_cmds): Create disassemble command here instead.
2189
2190 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2191
2192 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2193
2194 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2195
2196 * regcache.h (regcache_cooked_read_using_offset_hack)
2197 (regcache_cooked_write_using_offset_hack): Delete declarations.
2198 (register_changed): Delete declaration.
2199 * regcache.c (regcache_cooked_read_using_offset_hack)
2200 (regcache_cooked_write_using_offset_hack): Delete functions.
2201 (cooked_xfer_using_offset_hack): Delete function.
2202 (register_changed): Delete function.
2203
2204 2002-11-07 Jim Blandy <jimb@redhat.com>
2205
2206 * macroscope.c: #include "complaints.h".
2207 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2208 but not in the macro table.
2209 * Makefile.in (macroscope.o): Record dependency.
2210
2211 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2212
2213 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2214
2215 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2216
2217 * regcache.c (deprecated_registers_fetched): Update.
2218 * regcache.h (deprecated_registers_fetched): Rename
2219 registers_fetched.
2220 * remote-vxsparc.c (vx_read_register): Update.
2221 * remote-vxmips.c (vx_read_register): Update.
2222 * remote-vx68.c (vx_read_register): Update.
2223 * irix5-nat.c (fetch_core_registers): Update.
2224 * mipsm3-nat.c (fetch_inferior_registers): Update.
2225 * sun3-nat.c (fetch_inferior_registers): Update.
2226 * symm-nat.c (fetch_inferior_registers): Update.
2227 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2228 (fetch_core_registers): Update.
2229 (fetch_kcore_registers): Update.
2230 * mips-nat.c (fetch_inferior_registers): Update.
2231 * corelow.c (get_core_registers): Update.
2232 * a68v-nat.c (fetch_inferior_registers): Update.
2233
2234 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2235
2236 Put in place the framework necessary for multiarching the hppa targets.
2237 * hppa-tdep.c (hppa_gdbarch_init): New function.
2238 (hppa_dump_tdep): New function.
2239 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2240 tdep structure dumper.
2241 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2242 until the multi-arching conversion has partially been completed.
2243
2244 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2245
2246 * valops.c (value_assign): Merge lval_register case into
2247 lval_reg_frame_relative. Use frame_register and
2248 regcache_cooked_write instead of get_saved_register and
2249 write_register_bytes. After flushing the register cache, try to
2250 re-select the selected frame.
2251
2252 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2253
2254 * regcache.h (deprecated_register_valid): Rename register_valid.
2255 * regcache.c: Update.
2256 * ia64-aix-nat.c: Update.
2257 * i386gnu-nat.c: Update.
2258 * alpha-nat.c: Update.
2259 * sparc-nat.c: Update.
2260 * lynx-nat.c: Update.
2261 * remote-mips.c: Update.
2262
2263 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2264
2265 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2266 to end of file, to be more consistent with the pratice followed
2267 by other targets.
2268
2269 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2270
2271 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2272 (print_float_info): Print registers in float_reggroup.
2273 (print_vector_info): Print registers in vector_reggroup.
2274 (default_print_registers_info): When all, print registers in
2275 all_reggroup. Otherwize, print registers in general_reggroup.
2276 (registers_info): Rewrite. Add support for register groups.
2277 Eliminate a goto.
2278
2279 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2280
2281 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2282 ages.
2283 (symtab_symbol_info): Remove eons old ifdeffed out code.
2284 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2285 command.
2286
2287 2002-11-06 Theodore A. Roth <troth@openavr.org>
2288
2289 * c-exp.y: Add missing semi-colons.
2290 * f-exp.y: Add missing semi-colons.
2291 * m2-exp.y: Add missing semi-colons.
2292 * p-exp.y: Add missing semi-colons.
2293 Add empty action to start rule to avoid a type clash error when
2294 building with bison >= 1.50.
2295
2296 2002-11-06 Jim Blandy <jimb@redhat.com>
2297
2298 * macrotab.h (struct macro_source_file): Doc fix.
2299
2300 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2301
2302 * varobj.c (child_exists, cplus_number_of_children): Change
2303 STREQ macro references to strcmp.
2304 (cplus_name_of_child): Change code to handle the fact that
2305 fields are not necessarily contiguous with regards to their
2306 access control. This is a fix for PR gdb/792.
2307
2308 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2309
2310 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2311 * gdbarch.h, gdbarch.c: Regnerate.
2312 * frame.h (frame_register): Declare.
2313 * frame.c (frame_register): New function.
2314 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2315 GET_SAVED_REGISTER, otherwize call
2316 generic_unwind_get_saved_register.
2317 (frame_register_read): Use frame_register instead of
2318 get_saved_register.
2319
2320 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2321
2322 From Jim Ingham <jingham@apple.com>:
2323 * event-top.c (gdb_disable_readline): New function.
2324 (_initialize_event_loop): Move comment.
2325
2326 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2327
2328 * event-loop.c (start_event_loop): Add comment.
2329 Update copyright.
2330
2331 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2332
2333 * infcmd.c (default_print_registers_info): Do not call
2334 PRINT_REGISTER_HOOK.
2335
2336 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2337
2338 * sparc-tdep.c (sparc_print_register_hook): Make static.
2339 (sparc_print_registers_info): New function.
2340 (sparc_do_registers_info): New function.
2341 (sparclet_print_registers_info): New function.
2342 (sparclet_do_registers_info): New function.
2343 (do_sparc_print_registers_info): New function.
2344 (sparc_print_registers): New static function, clone of infcmd.c's
2345 default_print_registers_info.
2346 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2347 (sparclet_do_registers_info): Declare.
2348 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2349 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2350 Re-define.
2351 (sparc_do_registers_info): Declare.
2352 (PRINT_REGISTER_HOOK): Delete macro.
2353 (sparc_print_register_hook): Delete declaration.
2354
2355 2002-11-05 David Carlton <carlton@math.stanford.edu>
2356
2357 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2358 functions.
2359 (lookup_symbol_aux_local): New function.
2360 (lookup_symbol_aux_symtabs): New function.
2361 (lookup_symbol_aux_psymtabs): New function.
2362
2363 2002-11-05 David Carlton <carlton@math.stanford.edu>
2364
2365 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2366 previous values of 'objfile' and 'block'.
2367
2368 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2369
2370 * values.c (value_change_enclosing_type): Set
2371 enclosing_type field correctly also for the case where
2372 more memory needs to be allocated.
2373
2374 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2375
2376 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2377 of puts_filtered.
2378
2379 * i387-tdep.c (i387_print_float_info): Replace calls to
2380 register_read and deprecated_read_register_gen with calls to
2381 frame_register_read, and make the necessary adjustments to the
2382 surrounding code.
2383
2384 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2385
2386 * gdbarch.sh (register_reggroup_p): Allow default value.
2387 * gdbarch.h, gdbarch.c: Regenerate.
2388
2389 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2390
2391 * regcache.h: Add coment indicating replacements for deprecated
2392 functions.
2393
2394 2002-11-02 Andrew Cagney <cagney@redhat.com>
2395
2396 * reggroups.h, reggroups.c: New files.
2397 * regcache.c: Include "reggroups.h".
2398 (enum regcache_dump_what): Add `regcache_dump_groups'.
2399 (regcache_dump): Contract size of the "Type" column. When
2400 specified, dump the register's groups.
2401 (maintenance_print_register_groups): New function.
2402 (_initialize_regcache): Add command `maint print register-groups'.
2403 * Makefile.in (COMMON_OBS): Add reggroups.o
2404 (SFILES): Add reggroups.c.
2405 (reggroups_h): Define.
2406 (regcache.o, gdbarch.o): Update dependencies.
2407 (reggroups.o): Specify dependencies.
2408 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2409 Add opaque declaration for `struct reggroup' in generated .h file.
2410 Include "reggroups.h" in generated .c file.
2411 gdbarch.h, gdbarch.c: Re-generate.
2412
2413 2002-11-02 Andrew Cagney <cagney@redhat.com>
2414
2415 * regcache.h (deprecated_read_register_gen): Rename
2416 read_register_gen.
2417 (deprecated_write_register_gen): Rename write_register_gen.
2418 * i387-tdep.c: Update.
2419 * x86-64-linux-nat.c: Update
2420 * wince.c: Update.
2421 * thread-db.c: Update.
2422 * win32-nat.c: Update.
2423 * mips-tdep.c: Update.
2424 * d10v-tdep.c: Update.
2425 * cris-tdep.c: Update.
2426 * remote-sim.c: Update.
2427 * remote-rdi.c: Update.
2428 * remote-rdp.c: Update.
2429 * frame.c: Update.
2430 * target.c: Update.
2431 * blockframe.c: Update.
2432 * x86-64-tdep.c: Update.
2433 * xstormy16-tdep.c: Update.
2434 * sh-tdep.c: Update.
2435 * s390-tdep.c: Update.
2436 * rs6000-tdep.c: Update.
2437 * sparc-tdep.c: Update.
2438 * i386-tdep.c: Update.
2439 * dwarf2cfi.c: Update.
2440 * regcache.c: Update.
2441
2442 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2443
2444 New interix-specific files:
2445 * config/i386/nm-interix.h: New file.
2446 * config/i386/interix.mh: New file.
2447 * config/i386/interix.mt: New file.
2448 * i386-interix-nat.c: New file.
2449 * i386-interix-tdep.c: New file.
2450
2451 2002-11-01 Andrew Cagney <cagney@redhat.com>
2452
2453 * frame.h (deprecated_generic_get_saved_register): Rename
2454 generic_get_saved_register.
2455 * blockframe.c (deprecated_generic_get_saved_register): Update.
2456 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2457 (xstormy16_frame_saved_register): Update.
2458 * sh-tdep.c (sh_gdbarch_init): Update.
2459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2460 * ia64-tdep.c (ia64_get_saved_register): Update.
2461 * cris-tdep.c (cris_gdbarch_init): Update.
2462 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2463 * arm-tdep.c (arm_gdbarch_init): Update.
2464
2465 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2466
2467 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2468
2469 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2472 trampolines in sigaction.
2473
2474 2002-10-31 Andrew Cagney <cagney@redhat.com>
2475
2476 * h8300-tdep.c: Include "gdb_assert.h".
2477 (h8300_print_register): Add gdbarch, file and frame parameters.
2478 Use frame_read_unsigned_register to read the register's value.
2479 Use fprintf_filtered to display output.
2480 (h8300_print_registers_info): Replace h8300_do_registers_info.
2481 (h8300_gdbarch_init): Set print_registers_info.
2482
2483 2002-10-31 Andrew Cagney <cagney@redhat.com>
2484
2485 * frame.c (frame_read_unsigned_register): New function.
2486 (frame_read_signed_register): New function.
2487 * frame.h (frame_read_unsigned_register): Declare.
2488 (frame_read_signed_register): Declare.
2489
2490 2002-10-31 Andrew Cagney <cagney@redhat.com>
2491
2492 * h8500-tdep.c (h8500_print_registers_info): New static function,
2493 clone of infcmd.c's default_print_registers_info.
2494 (h8500_do_registers_info): New funtion.
2495 (h8500_print_register_hook): Rename print_register_hook, make
2496 static.
2497
2498 * config/h8500/tm-h8500.h: Update copyright.
2499 (DEPRECATED_DO_REGISTERS_INFO): Define.
2500 (h8500_do_registers_info: Declare.
2501 (PRINT_REGISTER_HOOK): Delete macro.
2502 (print_register_hook): Delete function.
2503
2504 2002-10-31 Andrew Cagney <cagney@redhat.com>
2505
2506 * z8k-tdep.c (z8k_print_register_hook): Make static.
2507 (z8k_print_registers_info): New static function, clone of
2508 infcmd.c's default_print_registers_info.
2509 (z8k_do_registers_info): New function. Wrap
2510 z8k_print_registers_info.
2511 * config/z8k/tm-z8k.h: Update copyright.
2512 (PRINT_REGISTER_HOOK): Delete macro.
2513 (z8k_print_register_hook): Delete declaration.
2514 (DEPRECATED_DO_REGISTERS_INFO): Define.
2515 (z8k_do_registers_info): Declare.
2516
2517 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2518
2519 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2520 as this is already provided by value.h, and was actually causing
2521 a compilation error because of a conflict in parameter type
2522 declaration due to a missing const keyword.
2523 (low_text_segment_addres): Fix a compilation warning.
2524
2525 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2526
2527 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2528 registers without a name.
2529 (mips_linux_cannot_store_register): Don't store registers without
2530 a name.
2531
2532 2002-10-28 David Carlton <carlton@math.stanford.edu>
2533
2534 * symtab.c (find_addr_symbol): Delete. (It was already commented
2535 out.)
2536 * symtab.h: Delete prototype for find_addr_symbol.
2537
2538 2002-10-26 Andrew Cagney <cagney@redhat.com>
2539
2540 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2541 DO_REGISTERS_INFO.
2542 gdbarch.h, gdbarch.c: Re-generate.
2543 * infcmd.c (default_print_registers_info): Update reference.
2544 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2545 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2546 * sh-tdep.c (sh_gdbarch_init): Ditto.
2547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2548 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2549
2550 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2551
2552 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2553 cfi_init_extra_frame_info.
2554 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2555 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2556
2557 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2558 target where necessary. Add more comments and remove the ones
2559 that don't provide any useful information.
2560
2561 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2562 deprecated_read_register_dummy with
2563 frame_unwind_unsigned_register.
2564
2565 * i386-tdep.c (i386_extract_struct_value_address): Use
2566 regcache_raw_read_unsigned instead of
2567 regcache_cooked_read_unsigned since we know that the register
2568 we're reading isn't a pseudo register. Rename variable 'val' into
2569 the more descriptive 'addr'.
2570
2571 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2572 (x86_64_push_return_address): Add comment.
2573 (x86_64_pop_frame): Make static.
2574 (examine_argument): Clarify comment.
2575 (x86_64_skip_prologue): Make prolog_expact variable static.
2576
2577 * dwarf2cfi.c: Fix some formatting problems.
2578 (context_cpy, read_encoded_pointer): Clarify comments.
2579
2580 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2581 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2582 i386 target back into x86_64_gdbarch_init. Add some comments and
2583 remove meaningless ones.
2584
2585 2002-10-25 Andrew Cagney <cagney@redhat.com>
2586
2587 * complaints.h (struct deprecated_complaint): Rename `struct
2588 complaint'.
2589 * complaints.c (complain): Update.
2590 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2591 incorrect comment indicating that "symfile.h" was being included
2592 for the `struct complaint' definition.
2593 * remote-vx.c: Update.
2594 * objc-lang.c: Update.
2595 * xcoffread.c: Update.
2596 * hpread.c: Update.
2597 * mdebugread.c: Update.
2598 * stabsread.c: Update.
2599 * dwarf2read.c: Update.
2600 * dwarfread.c: Update.
2601 * elfread.c: Update.
2602 * coffread.c: Update.
2603 * stabsread.h: Update.
2604 * dbxread.c: Update.
2605 * buildsym.c: Update.
2606 * gdbtypes.c: Update.
2607 * macrotab.c: Update.
2608
2609 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2610
2611 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2612 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2613 (x86_64_init_abi): ...new function.
2614
2615 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2616 * i386v-nat.c: Include "i386-tdep.h".
2617
2618 2002-10-25 Andrew Cagney <cagney@redhat.com>
2619
2620 * gdbtypes.c (address_space_name_to_int): Update.
2621 (address_space_int_to_name): Update.
2622 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2623 multi-arch predicate.
2624 (address_class_name_to_type_flags): Ditto.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2626
2627 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2628
2629 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2630
2631 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2632
2633 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2634
2635 * symtab.h (INIT_SAL): Delete macro.
2636 (init_sal): Export.
2637 * symtab.c (init_sal): New function.
2638
2639 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2640 to init_sal function call.
2641 (find_sal_from_funcs_and_line): Ditto.
2642 (all_sals_for_line): Ditto.
2643 * breakpoint.c (create_internal_breakpoint): Ditto.
2644 (create_fork_vfork_event_catchpoint): Ditto.
2645 (create_exec_event_catchpoint): Ditto.
2646 (parse_breakpoint_sals): Ditto.
2647 (watch_command_1): Ditto.
2648 (handle_gnu_4_16_catch_command): Ditto.
2649 (clear_command): Ditto.
2650 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2651 * infcmd.c (run_stack_dummy): Ditto.
2652 * infrun.c (process_event_stop_test): Ditto.
2653 (check_sigtramp2): Ditto.
2654 (step_over_function): Ditto.
2655 * linespec.c (decode_line_2): Ditto.
2656 (decode_line_1): Ditto.
2657 * source.c (line_info): Ditto.
2658 * symtab.c (find_pc_sect_line): Ditto.
2659
2660 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2661
2662 * dwarf2cfi.c (struct context)
2663 (struct context_reg): Moved to dwarf2cfi.h
2664 (context_alloc, frame_state_alloc, context_cpy):
2665 Made extern instead of static, removed prototypes.
2666 * dwarf2cfi.h (struct context)
2667 (struct context_reg): New, moved from dwarf2cfi.c
2668 (context_alloc, frame_state_alloc, context_cpy):
2669 New prototypes.
2670 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2671 Changed from static to extern.
2672 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2673 (LINUX_SIGCONTEXT_FP_OFFSET)
2674 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2675 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2676 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2677 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2678 set_gdbarch_*() calls now use x86-64 specific functions
2679 instead of DWARF2 CFI ones.
2680 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2681 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2682 (x86_64_init_extra_frame_info): New prototypes.
2683
2684 2002-10-23 David Carlton <carlton@math.stanford.edu>
2685
2686 * linespec.c: #include "parser-defs.h".
2687 Delete prototype for find_template_name_end.
2688 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2689
2690 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2691
2692 * NEWS: add recent mi fixes.
2693 * varobj.c (struct varobj): Add new "updated" flag.
2694 (new_variable): Default "updated" flag to 0.
2695 (varobj_set_value): Set "updated" flag to 1 if value
2696 changes.
2697 (varobj_update): Check varobj "updated" flag before
2698 comparing old and refreshed values. Fix for
2699 PR gdb/702.
2700
2701 2002-10-23 David Carlton <carlton@math.stanford.edu>
2702
2703 * parse.c (parse_exp_1): Use BLOCK_START.
2704 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2705 SYMBOL_BLOCK_VALUE.
2706 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2707
2708 2002-10-23 David Carlton <carlton@math.stanford.edu>
2709
2710 * symtab.c: Delete cplusplus_hint.
2711 Delete prototype for find_template_name_end.
2712
2713 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2714
2715 * symtab.h: Update comment.
2716
2717 2002-10-23 Michael Snyder <msnyder@redhat.com>
2718
2719 * printcmd.c (address_info): Restore quotes in output.
2720 * valops.c (value_of_local): Restore quotes in error message.
2721
2722 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2723
2724 * symtab.c (symbol_demangled_name): New function.
2725 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2726 turning most of it into a function.
2727 (symbol_demangled_name): Export.
2728
2729 2002-10-23 Michael Snyder <msnyder@redhat.com>
2730
2731 * valops.c (value_of_local): Restore quotes in error message.
2732
2733 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2734
2735 * symtab.c (symbol_init_language_specific): New function.
2736 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2737 turning most of it into a function.
2738 (symbol_init_language_specific): Export.
2739
2740 2002-10-23 David Carlton <carlton@math.stanford.edu>
2741
2742 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2743 (dwarf_attr_name): Ditto.
2744 (dwarf_type_encoding_name): Ditto.
2745 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2746 (process_die): Handle DW_TAG_namespace,
2747 DW_TAG_imported_declaration, DW_TAG_imported_module.
2748 (read_namespace): New function.
2749
2750 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2751
2752 * configure.in: Define NEW_PROC_API on Interix too.
2753 * configure: Regenerate.
2754
2755 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2756
2757 * configure: Regenerate using the proper version of autoconf.
2758
2759 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2760
2761 * findvar.c (read_var_value): Temporarily disable TLS code, until
2762 complete TLS support is added.
2763
2764 2002-10-21 Jim Blandy <jimb@redhat.com>
2765 Elena Zannoni <ezannoni@redhat.com>
2766
2767 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2768 for thread local storage locations.
2769 (struct symbol): Add objfile field.
2770 (SYMBOL_OBJFILE): Define.
2771 * dwarf2read.c (is_thread_local): New static variable.
2772 (new_symbol): If variable is in thread local fill in address class
2773 and objfile appropriately.
2774 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2775 stack operation.
2776 * printcmd.c (address_info): Print the information for thread
2777 local storage variable.
2778 * findvar.c (read_var_value): In case of thread local variable,
2779 defer to the target vector code to compute address.
2780
2781 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2782
2783 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2784 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2785
2786 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2787
2788 * symtab.h (address_class): Rename
2789 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2790 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2791 * printcmd.c (address_info): Ditto.
2792 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2793
2794 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2795
2796 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2797 DBREG_DRX macro to acces debug registers.
2798
2799 * Makefile.in (i386obsd-tdep.o): New target.
2800
2801 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2802 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2803
2804 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2805 * config/i386/obsd.mt: New file.
2806 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2807 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2808 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2809 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2810 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2811 * i386obsd-tdep.c: New file.
2812
2813 2002-10-19 Adam Fedor <fedor@gnu.org>
2814
2815 * objc-exp.y (name_not_typename): Fix invalid comment.
2816
2817 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2818
2819 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2820 to allocate partial syms and macro byte caches.
2821
2822 2002-10-18 David Carlton <carlton@math.stanford.edu>
2823
2824 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2825
2826 2002-10-18 Adam Fedor <fedor@gnu.org>
2827
2828 * stabsread.c (find_name_end): New function.
2829 (define_symbol): Use it.
2830
2831 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2832
2833 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2834 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2835 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2836 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2837
2838 2002-10-17 David Carlton <carlton@math.stanford.edu>
2839
2840 * symfile.h: Add opaque declaration for struct obstack.
2841 Declare obsavestring to take a const char *.
2842 * symfile.c (obsavestring): Make first argument a const char *.
2843
2844 2002-10-16 Adam Fedor <fedor@gnu.org>
2845
2846 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2847 names when matching breakpoints in current file.
2848
2849 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2850
2851 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2852 (read_tag_pointer_type): Add address class support.
2853 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2854 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2855 New methods.
2856 * gdbarch.h, gdbarch.c: Regenerate.
2857 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2858 (make_type_with_address_space, recursive_type_dump): Add address
2859 class support.
2860 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2861 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2862 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2863
2864 2002-10-16 Klee Dienes <kdienes@apple.com>
2865
2866 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2867 to get the last character of a char[] buffer, not
2868 name[sizeof(vptr_name)-1].
2869
2870 2002-10-14 Adam Fedor <fedor@gnu.org>
2871
2872 * symtab.h: New objc_specific struct.
2873 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2874 (SYMBOL_DEMANGLED_NAME): Likewise.
2875
2876 2002-10-14 Adam Fedor <fedor@gnu.org>
2877
2878 * symfile.c (init_filename_language_table): Add ObjC file extension.
2879
2880 2002-10-14 Adam Fedor <fedor@gnu.org>
2881
2882 * utils.c (puts_filtered_tabular): New function.
2883 (fprintf_symbol_filtered): Get ObjC demangled name.
2884 * defs.h (puts_filtered_tabular): Declared.
2885
2886 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2887
2888 * c-lang.h (c_type_print_varspec_prefix): Delete.
2889 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2890 ``need_post_space'' parameter. Adjust all callers.
2891
2892 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2893
2894 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2895 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2896 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2897 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2898
2899 2002-10-13 Adam Fedor <fedor@gnu.org>
2900
2901 * source.c (print_source_lines): Update comments.
2902
2903 2002-10-13 Adam Fedor <fedor@gnu.org>
2904
2905 * valops.c (value_of_local): New function.
2906 (value_of_this): Use it.
2907 * value.h (value_of_local): Declared.
2908
2909 2002-10-13 Adam Fedor <fedor@gnu.org>
2910
2911 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2912 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2913
2914 2002-10-12 Adam Fedor <fedor@gnu.org>
2915
2916 * language.c (binop_result_type): Add language_objc to case.
2917 (integral_type): Likewise.
2918 (character_type): Likewise.
2919 (string_type): Likewise.
2920 (boolean_type): Likewise.
2921 (structured_type): Likewise.
2922 (binop_type_check): Likewise.
2923
2924 2002-10-11 Adam Fedor <fedor@gnu.org>
2925
2926 * printcmd.c (address_info): Print 'self' for ObjC.
2927
2928 2002-10-11 Adam Fedor <fedor@gnu.org>
2929
2930 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2931 OP_SELF.
2932
2933 2002-10-11 Adam Fedor <fedor@gnu.org>
2934
2935 * language.h (CAST_IS_CONVERSION): Add language_objc.
2936
2937 2002-10-11 Adam Fedor <fedor@gnu.org>
2938
2939 * defs.h (enum language): Add language_objc.
2940
2941 2002-10-11 Klee Dienes <kdienes@apple.com>
2942
2943 * corefile.c (read_memory_typed_address): New function.
2944 * gdbcore.h (read_memory_typed_address): Add prototype.
2945 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2946 to read a value destined for a CORE_ADDR, not read_memory_integer.
2947 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2948 (f77_get_dynamic_lowerbound): Ditto.
2949
2950 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2951
2952 * utils.c (string_to_core_addr): After turning string into
2953 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2954 which will do necessary sign-extension, etc.
2955
2956 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2957
2958 * c-exp.y (THIS): Delete token and grammar rule.
2959 (yylex): Don't return THIS.
2960 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2961 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2962 * demangle.c (cplus_markers): Update comment. Put '$'
2963 first. Remove CPLUS_MARKER.
2964 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2965 * jv-exp.y (THIS): Delete token and grammar rule.
2966 (yylex): Don't return THIS.
2967 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2968 * objc-exp.y (THIS): Delete token and grammar rule.
2969 (yylex): Don't return THIS.
2970 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2971 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2972 (read_member_functions): Likewise for opname.
2973 (read_tilde_fields): Use is_cplus_marker.
2974
2975 * defs.h (CPLUS_MARKER): Don't define.
2976 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2977 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2978 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2979 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2980 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2981
2982 * config/i386/tm-i386v4.h: Delete file.
2983 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2984 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2985 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2986 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2987 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2988 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2989 * config/i386/i386v4.mt (TM_FILE): Likewise.
2990 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2991
2992 2002-10-10 Marko Mlinar <markom@opencores.org>
2993
2994 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2995 accidentially not commited 2002-10-09
2996 * gdbarch.h, gdbarch.c: Re-generate.
2997
2998 2002-10-09 Marko Mlinar <markom@opencores.org>
2999
3000 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3001 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3002 * gdbarch.h, gdbarch.c: Re-generate.
3003
3004 2002-10-08 Petr Sorfa <petrs@caldera.com>
3005
3006 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3007
3008 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3009 so we can work on more than one compilation unit at a time. This
3010 helps prepare GDB to handle inter-CU die references.
3011 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3012 the code to be defined before struct comp_unit_head.
3013 (comp_unit_head): Added new members - offset, cu_head,
3014 begin_die, next and dwarf2_abbrevs.
3015 (dwarf2_abbrevs): Removed single static var; now member of
3016 struct comp_unit_head.
3017 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3018 members.
3019 (psymtab_to_symtab_1): Changed to work with the new
3020 struct comp_unit_head.
3021 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3022 constructs the dwarf2_abbrevs[] inside the cu_header.
3023 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3024 dwarf2_abbrev table to clean up.
3025 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3026 handling of dwarf2_abbrevs inside the cu_header.
3027 (read_partial_die): Now supports the call to the new
3028 dwarf2_lookup_abbrev.
3029 (read_full_die): Now supports the call to the new
3030 dwarf2_lookup_abbrev.
3031
3032 2002-10-06 Christopher Faylor <cgf@redhat.com>
3033
3034 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3035 insure that shell variables, such as "transformed_name" are propagated
3036 to later shell statements in rule.
3037
3038 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3039
3040 * config/i386/nm-i386sco.h: Add protection against
3041 multiple-inclusion. Include "i386/nm-i386v.h".
3042 (REGISTER_U_ADDR): Remove define.
3043 (i386_register_u_addr): Remove prototype.
3044
3045 2002-10-04 Michael Snyder <msnyder@redhat.com>
3046
3047 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3048 before treating it as a single-step event.
3049
3050 2002-10-03 Adam Fedor <fedor@gnu.org>
3051
3052 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3053 (objc_demangle): Remove assignment in if statements, Replace
3054 free with xfree.
3055 (add_msglist): Likewise.
3056 (end_msglist): Likewise.
3057 (complare_selectors): Likewise.
3058 (selectors_info): Likewise.
3059 (compare_classes): Likewise.
3060 (classes_info): Likewise.
3061 (print_object_command): Likewise.
3062 (find_objc_msgcall_submethod): Replace PTR with void *.
3063 * objc-lang.h: Remove check for __STDC__.
3064
3065 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3066
3067 * ui-out.h (ui_out_field_fmt_int): New prototype.
3068 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3069 of field width and alignment.
3070 * stack.c (print_frame_info_base): When printing frame level, use
3071 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3072 PR gdb/192
3073
3074 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3075
3076 * MAINTAINERS: Add self to Write After Approval list.
3077
3078 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3079
3080 * infcmd.c (interrupt_target_command_wrapper): Delete.
3081 (interrupt_target_command): Make non static.
3082 (nofp_registers_info): Make static.
3083 * stack.c (return_command_wrapper): Delete.
3084 (return_command): Make non static.
3085
3086 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3087
3088 * event-top.c (gdb_setup_readline): New function. Code moved from
3089 _initialize_event_loop().
3090 (_initialize_event_loop): Call gdb_setup_readline().
3091
3092 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3093
3094 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3095 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3096 * gdbarch.h, gdbarch.c: Re-generate.
3097
3098 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3099
3100 Fix PR gdb/778
3101 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3102 before recursing.
3103 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3104 of fill_in_vptr_fieldno.
3105
3106 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3107
3108 * inferior.h (registers_info, stepi_command, nexti_command,
3109 continue_command, interrupt_target_command): Export from infcmd.c.
3110 * frame.h (args_info, selected_frame_level_changed_hook,
3111 return_command): Export from stack.c.
3112 * v850ice.c (stepi_command, nexti_command, continue_command): use
3113 prototypes from inferior.h.
3114 * tracepoint.c (registers_info, args_info, locals_info): Use
3115 prototypes from frame.h and inferior.h.
3116 * Makefile.in (mi-main.o): Add dependency on frame.h.
3117
3118 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3119
3120 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3121 value in register 3 adjusted by ppc_gp0_regnum.
3122
3123 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3124
3125 2002-10-02 Marko Mlinar <markom@opencores.org>
3126
3127 * MAINTAINERS: Add myself to the Write After Approval list.
3128
3129 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3130
3131 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3132 of the section for the N64 ABI, fixed.
3133
3134 * config/mips/tm-irix6.h: Include solib.h.
3135
3136 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3137
3138 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3139 GNU operators.
3140
3141 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3142
3143 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3144 and that "mi0" syntax has been removed.
3145
3146 2002-09-30 David Carlton <carlton@math.stanford.edu>
3147
3148 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3149 * ppc-sysv-tdep.c: #include "gdb_string.h".
3150 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3151 pacify GCC.
3152
3153 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3154
3155 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3156 "vrsave"'s register number.
3157
3158 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3159
3160 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3161 use frame_unwind_signed_register to obtain the PC.
3162 (mips_frame_chain): Handle a generic dummy frame.
3163 (mips_init_extra_frame_info): When a generic dummy frame, don't
3164 re-compute the frame base.
3165 (mips_pop_frame): Handle generic dummy frames.
3166 (mips_gdbarch_init): When generic dummy frames, set
3167 use_generic_dummy_frames, push_dummy_frame to
3168 generic_push_dummy_frame, pc_in_call_dummy to
3169 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3170 generic_save_dummy_frame_tos.
3171
3172 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3173
3174 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3175 against TOP when TOP was explictly set.
3176 (generic_push_dummy_frame): Set TOP to zero.
3177
3178 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3179
3180 * event-loop.c (start_event_loop): Rename variable 'result' to
3181 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3182
3183 2002-09-30 Keith Seitz <keiths@redhat.com>
3184
3185 * gdb-events.sh (selected_thread_changed): New event.
3186 * gdb-events.c: Regenerated.
3187 * gdb-events.h: Regenerated.
3188
3189 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3190
3191 * MAINTAINERS: Add self to Write After Approval list.
3192
3193 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3194
3195 * disasm.c: New file.
3196 * disasm.h: New file.
3197 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3198 (compare_lines): Ditto.
3199 (dump_insns): Ditto.
3200 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3201 argument.
3202 (do_assembly_only): Ditto.
3203 (do_disassembly): Renamed to gdb_disassembly and moved to
3204 disasm.c. Sdded uiout argument.
3205 * Makefile.in: Add new files. Reorder SFILES list. Update
3206 dependencies. Include libgdb.a later in the insight executable.
3207
3208 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3209
3210 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3211 bfd/elf64-alpha-fbsd.c.
3212
3213 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3214
3215 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3216 i386gnu-tdep.c.
3217
3218 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3219
3220 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3221 __FUNCTION__.
3222 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3223 function name.
3224 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3225 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3226 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3227 (S_msg_sig_post_reply): Ditto.
3228
3229 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3230
3231 * sh-tdep.c (sh_use_struct_convention): Use definition according
3232 to ABI.
3233 (sh_push_arguments): Store in register with correct endianess.
3234 (sh_default_store_return_value): Ditto.
3235 (sh_gdbarch_init): Set sizeof long double to 8.
3236
3237 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3238
3239 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3240 Fix some whitespace problems.
3241
3242 2002-09-27 David Carlton <carlton@math.stanford.edu>
3243
3244 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3245 (mcore-tdep.o): Ditto.
3246 (ns32k-tdep.o): Ditto.
3247 (ns32knbsd-tdep.o): Ditto.
3248 (sh3-rom.o): Ditto.
3249 (vax-tdep.o): Ditto.
3250 * cris-tdep.c: #include "gdb_string.h"
3251 * mcore-tdep.c: Ditto.
3252 * ns32k-tdep.c: Ditto.
3253 * ns32knbsd-tdep.c: Ditto.
3254 * sh3-rom.c: Ditto.
3255 * vax-tdep.c: Ditto.
3256
3257 2002-09-27 David Carlton <carlton@math.stanford.edu>
3258
3259 * config/djgpp/fnchange.lst: Add entries for
3260 gdb/testsuite/gdb.c++/m-static files.
3261
3262 2002-09-27 Jim Wilson <wilson@redhat.com>
3263
3264 * MAINTAINERS: Add myself to the Write After Approval list.
3265
3266 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3267
3268 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3269
3270
3271 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3272
3273 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3274 frame.
3275
3276 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3277
3278 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3279 (rs6000_struct_return_address): Delete variable.
3280 (rs6000_store_struct_return): Update.
3281 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3282 deprecated_extract_struct_value_address.
3283 (rs6000_frame_align): New function.
3284 (rs6000_gdbarch_init): Set frame_align.
3285
3286 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3287
3288 From Grace Sainsbury <graces@redhat.com>:
3289 * Makefile.in (gdbtk-main.o): New target.
3290 (gdb.o): New target.
3291 (main_h): Define.
3292 (main.o): Update dependencies.
3293 (gdb$(EXEEXT)): Add gdb.o.
3294 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3295 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3296 (SUBDIR_GDBTK_CLEAN): Set.
3297 (install-gdbtk): Install the insight binary.
3298 (uninstall-gdbtk): New target.
3299 (all-gdbtk, clean-gdbtk): New rule.
3300 * top.c (use_windows): Default to zero.
3301 * main.c: Include "main.h".
3302 (main): Delete.
3303 (struct captured_main_args): Delete.
3304 (gdb_main): New function.
3305 * main.h: New file.
3306 * gdb.c: New File.
3307
3308 2002-09-25 Andrew Cagney <cagney@redhat.com>
3309
3310 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3311 (frame_map_regnum_to_name): New function.
3312 (frame_map_name_to_regnum): New function.
3313 * frame.h (frame_map_name_to_regnum): Declare.
3314 (frame_map_regnum_to_name): Declare.
3315 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3316 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3317 * parse.c: Do not include "builtin-regs.h".
3318 (target_map_name_to_register): Delete function.
3319 (write_dollar_variable): Use frame_map_name_to_regnum.
3320 * parser-defs.h (target_map_name_to_register): Delete declaration.
3321 * expprint.c: Include "frame.h".
3322 (print_subexp): Use frame_map_regnum_to_name.
3323 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3324 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3325
3326 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3327
3328 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3329 wasn't saved, and the next innermost frame is a dummy, return the
3330 dummy frame's link register.
3331
3332 2002-09-24 Jim Blandy <jimb@redhat.com>
3333
3334 Fix from Paul Breed:
3335 * main.c (captured_main): Add a `break' after the case for 'b'.
3336
3337 2002-09-24 Keith Seitz <keiths@redhat.com>
3338
3339 * varobj.c (c_type_of_child): Use get_target_type instead
3340 of TYPE_TARGET_TYPE.
3341
3342 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3343
3344 * source.c (get_current_or_default_source_symtab_and_line): Remove
3345 function.
3346 (set_default_source_symtab_and_line): New function. Attempts to
3347 determine a source file to list lines from if one is not currently
3348 defined.
3349 (get_current_source_symtab_and_line): Initialize sal.pc and
3350 sal.end fields.
3351 (set_current_source_symtab_and_line): Mark argument as const.
3352 * source.h: Update declarations and comments.
3353 * linespec.c (decode_line_1): Replace call to removed routine above.
3354 * stack.c (print_frame_info_base): Ditto.
3355 * cli/cli-cmds.c (edit_command): Ditto.
3356 (list_command): Ditto.
3357
3358 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3359
3360 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3361 sal.pc and sal.end fields.
3362 (get_current_or_default_source_symtab_and_line): Ditto.
3363 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3364 so we do not cause a new source symtab to be searched for (reverting an
3365 unintentional change from the 2002-09-20 patch).
3366 * scm-lang.c (scm_unpac): Ditto.
3367
3368 2002-09-21 Andrew Cagney <cagney@redhat.com>
3369
3370 * complaints.c (symfile_explanations): Remove new-line from
3371 ``isolated_message''.
3372 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3373 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3374
3375 2002-09-20 Nick Clifton <nickc@redhat.com>
3376
3377 * NEWS: Announce that V850EA ISA is no longer supported.
3378 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3379
3380 2002-09-20 David Carlton <carlton@math.stanford.edu>
3381
3382 * Makefile.in (c-lang.o): Correct dependencies.
3383 (utils.o): Gather dependencies.
3384 (charset.o): Move.
3385 * c-lang.c: #include "gdb_string.h"
3386
3387 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3388
3389 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3390 * cli/cli-cmds.c (list_command): New function. Implements the new
3391 cli edit command.
3392 (_init_cli_cmds): Add new command definition.
3393 * gdb.1: Document edit command.
3394 * doc/gdb.texinfo: Document edit command.
3395
3396 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3397
3398 * source.c: Make global variables current_source_symtab and
3399 current_source_line static.
3400 (list_command): Moved to cli/cli-cmds.c.
3401 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3402 (get_first_line_listed): New accessor function.
3403 (get_lines_to_list): New accessor function.
3404 (get_current_source_symtab_and_line): New function. Retrieves the
3405 position in the source code that we consider current.
3406 (get_current_or_default_source_symtab_and_line): New function.
3407 Like the above but attempts to determine a default position if one
3408 is not currently defined.
3409 (set_current_source_symtab_and_line): New function. Sets the source
3410 code position considered current and returns the previously set one.
3411 (clear_current_source_symtab_and_line): Reset stored information about
3412 a current source line.
3413 (_initialize_source): Remove registration for the "list" command and
3414 its alias.
3415 * source.h: Add declarations for the new functions above.
3416 * symtab.h: Remove declarations for the global variables mentioned
3417 above.
3418 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3419 obtain current source line.
3420 * linespec.c (decode_line_1): Ditto.
3421 * macroscope.c (default_macro_scope): Ditto.
3422 * scm-lang.c (scm_unpac): Ditto.
3423 * stack.c (print_frame_info_base): Ditto.
3424 * symfile.c (clear_symtab_users): Ditto.
3425 * symtab.c (decode_line_spec): Ditto.
3426 * cli/cli-cmds.c (list_command): Moved here from source.c.
3427 (ambiguous_line_spec): Moved here from source.c.
3428 (_init_cli_cmds): Add definition for "list" and its alias.
3429 * Makefile.in: Update dependencies.
3430
3431 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3432
3433 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3434 with what gcc thinks is correct.
3435
3436 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3437
3438 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3439 multiple register push instruction.
3440
3441 2002-09-19 Jim Blandy <jimb@redhat.com>
3442
3443 Add support for distinct host and target character sets.
3444 * charset.c, charset.h: New files.
3445 * c-exp.y: #include "charset.h".
3446 (yylex): Convert character and string literals to the target
3447 character set, before returning them as the semantic value of the
3448 token.
3449 * c-lang.c: #include "charset.h".
3450 (c_emit_char): Use charset-specific methods to recognize
3451 characters with backslash escape forms, to decide which characters
3452 to print literally and which to print using numeric escape
3453 sequences, and to convert target characters to host characters
3454 before printing.
3455 * utils.c: #include "charset.h".
3456 (no_control_char_error): New function.
3457 (parse_escape): Use charset-specific methods to recognize
3458 backslash escapes, parse `control character' notation, and convert
3459 characters from the host character set to the target character set.
3460 * configure.in: Set the default host character set.
3461 Check where to find iconv, and what its argument types might be.
3462 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3463 * Makefile.in (SFILES): List charset.c.
3464 (COMMON_OBS): List charset.o.
3465 (charset.o): New rule.
3466 (charset_h): New header dependency variable.
3467 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3468 (LIBICONV): New variable, set by configure.
3469 (CLIBS): Include $(LIBICONV) here.
3470 * aclocal.m4, config.in, configure: Regenerated.
3471
3472 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3473
3474 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3475 bison 1.35 warning.
3476
3477 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3478
3479 * gdb_mbuild.sh: New file.
3480
3481 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3482
3483 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3484
3485 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3486
3487 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3488 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3489 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3490 valops.c, value.h: Revert previous change.
3491
3492 2002-09-18 Michael Snyder <msnyder@redhat.com>
3493
3494 Preliminary support for Objective-C:
3495 * defs.h (language_objc): New enum value.
3496 (puts_filtered_tabular): Declaration only, exported from utils.c.
3497 (skip_quoted): Delete, declared in completer.h.
3498 * c-exp.y: Include completer.h.
3499 * p-exp.y: Ditto.
3500 * jv-exp.y: Ditto.
3501 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3502 New operator enum values.
3503 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3504 * language.c (binop_result_type): Handle language_objc case.
3505 (integral_type, character_type, string_type, boolean_type,
3506 structured_type, binop_type_check): Ditto.
3507 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3508 (struct objc_specific): Add to general_symbol_info.
3509 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3510 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3511 * parser-defs.h (struct objc_class_str): New struct type.
3512 (start_msglist, end_msglist, add_msglist): Declaration only,
3513 exported from objc-lang.c.
3514 * value.h (value_of_local, value_nsstring,
3515 call_function_by_hand_expecting_type): Exported from valops.c.
3516 * valops.c (find_function_addr): Export.
3517 (call_function_by_hand_expecting_type): New function.
3518 (value_of_local): New function.
3519 * symfile.c (init_filename_language_table): Add ".m" extension
3520 for Objective-C.
3521 * utils.c (puts_filtered_tabular): New function.
3522 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3523 (set/show demangle): Extend help-string to refer to ObjC.
3524 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3525 * stabsread.c (symbol_reference_defined): Objective-C symbols
3526 may contain colons: make allowances when scanning stabs strings
3527 for colons.
3528 (objc_find_colon): New function.
3529 * printcmd.c (address_info): If language == objc then print
3530 "self" instead of "this".
3531 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3532 OP_NSSTRING, and OP_SELF.
3533 (prefixify_subexp): Ditto.
3534 * source.c (print_source_lines): Mention objc in comment.
3535 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3536 method names.
3537
3538 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3539
3540 * complaints.h: Update copyright.
3541 (struct complaints): Declare.
3542 (struct complaint): Make `message' constant.
3543 (internal_complaint): Declare.
3544 (complaint): Declare.
3545 (complaint_root): Delete declaration.
3546 (symfile_complaints): Delete declaration.
3547 (struct complaints): Add opaque declaration.
3548 (clear_complaints): Add a complaints parameter.
3549 * complaints.c: Update copyright.
3550 (enum complaint_series): Define.
3551 (complaint_root): Delete.
3552 (struct complaints): Define.
3553 (complaint_sentinel, symfile_complaint_book): New variables.
3554 (symfile_explanations, symfile_complaints): New variables.
3555 New variables.
3556 (get_complaints): New function.
3557 (vcomplaint): New function.
3558 (complaint): New function.
3559 (internal_complaint): New function.
3560 (complain): Call vcomplain with symfile_complaint.
3561 (clear_complaints): Rewrite.
3562 (_initialize_complaints): Use add_setshow_command.
3563 * Makefile.in (complaints.o): Update dependencies.
3564 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3565 to call to clear_complaints.
3566 (new_symfile_objfile, reread_symbols): Ditto.
3567 (oldsyms_complaint): Delete.
3568 (empty_symtab_complaint, unknown_option_complaint): Delete.
3569 (free_named_symtabs): Use complaint instead of complain.
3570
3571 2002-09-18 Michael Snyder <msnyder@redhat.com>
3572
3573 Contributed by Apple Computer, Inc. Merged with current sources
3574 by Adam Fedor <fedor@doc.com> [cagney].
3575
3576 * objc-lang.c: First clean-up round: comments, indentation.
3577 * objc-lang.h: Ditto.
3578 * objc-lang.y: Ditto.
3579
3580 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3581
3582 * maint.c (maintenance_internal_error): Print the parameter as the
3583 error message.
3584 (maintenance_internal_warning): New function.
3585 (_initialize_maint_cmds): Add command `maint internal-warning'.
3586
3587 * defs.h (internal_warning, internal_vwarning): Declare.
3588 * utils.c (struct internal_problem): Define.
3589 (internal_vproblem): New function.
3590 (internal_warning): New function.
3591 (internal_vwarning): New function.
3592 (internal_warning_problem, internal_error_problem): New variables.
3593 (internal_verror): Just call internal_vproblem.
3594
3595 2002-09-18 Michael Snyder <msnyder@redhat.com>
3596
3597 * objc-lang.c: New file, support for Objective-C.
3598 Preliminary check-in, not yet integrated into gdb.
3599 * objc-lang.h: New file.
3600 * objc-exp.y: New file.
3601
3602 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3603
3604 * infrun.c (signal_stop_update): Convert definition to ISO C.
3605 (signal_print_update): Ditto.
3606 (signal_pass_update): Ditto.
3607 * inflow.c (terminal_save_ours): Ditto.
3608
3609 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3610 comments.
3611
3612 * config/djgpp/fnchange.lst: Handle name clashes between
3613 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3614 bfd/coff-tic80.c.
3615
3616 * i386-linux-tdep.h: Fix tipo.
3617
3618 2002-09-18 Adam Fedor <fedor@gnu.org>
3619
3620 * MAINTAINERS: Add myself to the Write After Approval list.
3621
3622 2002-09-18 Jim Blandy <jimb@redhat.com>
3623
3624 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3625 texthigh and textlow to reader-specific structs caused
3626 objfile_relocate to miss them. This is fixable, but the work that
3627 the change was supposed to prepare GDB for never got done anyway.
3628
3629 2002-09-18 David Carlton <carlton@math.stanford.edu>
3630
3631 * MAINTAINERS: Alphabetize Write After Approval list.
3632
3633 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3634
3635 Fix PR gdb/709
3636 * values.c (value_static_field): Call read_var_value.
3637
3638 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3639
3640 * valops.c (hand_function_call): Align the initial stack pointer
3641 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3642 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3643 return value.
3644 * mips-tdep.c (mips_frame_align): New function.
3645 (mips_gdbarch_init): Set frame_align.
3646 * gdbarch.sh (FRAME_ALIGN): New method.
3647 * gdbarch.h, gdbarch.c: Re-generate.
3648
3649 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3650
3651 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3652 registers.
3653
3654 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3655
3656 * NEWS: Mention that MIPS $fp behavior changed.
3657 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3658 reference to FP_REGNUM.
3659 (mipsnbsd_cannot_store_register): Ditto.
3660 * mips-linux-nat.c: Update copyright.
3661 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3662 (mips_linux_cannot_store_register): Ditto.
3663 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3664 * config/mips/tm-mips.h: Update copyright.
3665 (FP_REGNUM): Delete macro.
3666 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3667 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3668 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3669 (mips_r3041_reg_names, mips_r3051_reg_names)
3670 (mips_r3081_reg_names): Replace "fp" with "".
3671 Fix PR gdb/480.
3672
3673 2002-09-17 Theodore A. Roth <troth@verinet.com>
3674
3675 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3676 generic_read_register_dummy() (PR gdb/703).
3677 (avr_push_return_address): #if 0 out unused vars.
3678 (avr_gdbarch_init): Enable use of avr_push_return_address().
3679
3680 2002-09-17 Michael Snyder <msnyder@redhat.com>
3681
3682 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3683 RTE will take care of it.
3684
3685 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3686
3687 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3688 invalid, return SP_REGNUM.
3689
3690 2002-09-17 Michael Snyder <msnyder@redhat.com>
3691
3692 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3693 point registers without sign extension.
3694
3695 2002-09-17 Andrew Cagney <cagney@redhat.com>
3696
3697 * blockframe.c (deprecated_read_register_dummy): Rename
3698 generic_read_register_dummy.
3699 * frame.c (frame_unwind_signed_register): New function.
3700 (frame_unwind_unsigned_register): New function.
3701 * frame.h (frame_unwind_signed_register): Declare.
3702 (frame_unwind_unsigned_register): Declare.
3703 (deprecated_read_register_dummy): Rename
3704 generic_read_register_dummy.
3705
3706 * h8300-tdep.c (h8300_frame_chain): Update.
3707 (h8300_frame_saved_pc): Update.
3708 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3709 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3710 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3711 (s390_frame_chain): Update.
3712 * v850-tdep.c (v850_find_callers_reg): Update.
3713 (v850_frame_saved_pc): Update.
3714 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3715 (m32r_find_callers_reg): Update.
3716 (m32r_frame_saved_pc): Update.
3717 * sh-tdep.c (sh_find_callers_reg): Update.
3718 (sh64_get_saved_pr): Update.
3719 (sh_init_extra_frame_info): Update.
3720 (sh_init_extra_frame_info): Update.
3721 (sh64_init_extra_frame_info): Update.
3722 (sh64_init_extra_frame_info): Update.
3723 * mcore-tdep.c (mcore_find_callers_reg): Update.
3724 (mcore_frame_saved_pc): Update.
3725 (mcore_init_extra_frame_info): Update.
3726 * i386-tdep.c (i386_frame_saved_pc): Update.
3727 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3728 (ia64_init_extra_frame_info): Update.
3729 (ia64_init_extra_frame_info): Update.
3730 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3731 * cris-tdep.c (cris_init_extra_frame_info): Update.
3732 * avr-tdep.c (avr_frame_chain): Update.
3733 (avr_init_extra_frame_info): Update.
3734 (avr_frame_saved_pc): Update.
3735 * arm-tdep.c (arm_find_callers_reg): Update.
3736 (arm_init_extra_frame_info): Update.
3737 (arm_frame_saved_pc): Update.
3738
3739 2002-09-17 Tom Tromey <tromey@redhat.com>
3740
3741 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3742 is "'".
3743
3744 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3745
3746 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3747 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3748 NEXT_PROLOGUE_INSN.
3749 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3750 NEXT_PROLOGUE_INSN.
3751
3752 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3753
3754 * osfsolib.c: Remove file, replaced by solib-osf.c.
3755 * Makefile.in: Remove compilation rules for osfsolib.c.
3756
3757 2002-09-16 David Carlton <carlton@math.stanford.edu>
3758
3759 * cp-valprint.c (cp_print_class_method): Correct args to
3760 check_stub_method_group.
3761
3762 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3763
3764 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3765 `set architecture'. Unify naming convention of functions.
3766 (h8300_skip_prologue): Improve prologue analysis.
3767 (h8300_push_arguments): Rewritten to more closely match GCC's
3768 bizarre argument-passing behavior, along with the comment describing
3769 said behavior.
3770 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3771 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3772 sim, remote-e7000.c, remote-hms.c and remote.c
3773
3774 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3775
3776 * i386-tdep.c (gdb_print_insn_i386): Removed.
3777 (i386_print_insn): New function.
3778 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3779 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3780 tm_print_insn_info.
3781
3782 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3783
3784 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3785 zero.
3786
3787 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3788
3789 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3790 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3791 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3792
3793 2002-09-13 Christopher Faylor <cgf@redhat.com>
3794
3795 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3796
3797 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3798
3799 * gdbtypes.c (check_stub_method): Make static.
3800 (check_stub_method_group): New function.
3801 * gdbtypes.h: Update prototypes.
3802 * cp-support.c: New file.
3803 * cp-support.h: New file.
3804
3805 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3806 (update_method_name_from_physname): New function.
3807 (read_member_functions): Correct method names for operators
3808 and v3 constructors/destructors. Separate v2 constructors and
3809 destructors.
3810 * Makefile.in (stabsread.o): Update dependencies.
3811 (SFILES): Add cp-support.c.
3812 (COMMON_OBS): Add cp-support.o.
3813 (cp_support_h, cp-support.o): Add.
3814
3815 * cp-valprint.c (cp_print_class_method): Call
3816 check_stub_method_group instead of check_stub_method. Remove
3817 extraneous QUITs.
3818 * p-valprint.c (pascal_object_print_class_method): Likewise.
3819 * valops.c (search_struct_method): Likewise.
3820 (find_method_list, value_struct_elt_for_reference): Likewise.
3821
3822 2002-09-13 Andrew Cagney <cagney@redhat.com>
3823
3824 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3825 * gdbarch.h, gdbarch.c: Regenerate.
3826
3827 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3828
3829 * frame.c (find_saved_register): Delete function.
3830 * frame.h (find_saved_register): Delete declaration.
3831 Fix PR gdb/631.
3832
3833 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3834
3835 * mips-tdep.c (read_next_frame_reg): Re-hack using
3836 frame_register_unwind.
3837
3838 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3839
3840 * mips-tdep.c (mips_get_saved_register): Re-hack using
3841 frame_register_unwind.
3842
3843 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3844
3845 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3846 vector. Will be useful for Interix.
3847 * gdbarch.h, gdbarch.c: Regenerate.
3848
3849 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3850 name of the malloc function by NAME_OF_MALLOC.
3851
3852 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3853
3854 * value.h (find_function_in_inferior): Add const keyword to
3855 one of the parameters. Allows us to invoke this function with
3856 a const char *.
3857 * valops.c (find_function_in_inferior): Likewise.
3858
3859 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3860
3861 * exec.c (xfer_memory): Fix compilation warning with old versions
3862 of GCC.
3863 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3864
3865 2002-09-12 David Carlton <carlton@math.stanford.edu>
3866
3867 * symtab.h: Run through gdb_indent.h.
3868 Add 2002 to Copyright year list.
3869
3870 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3871
3872 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3873 mach constants.
3874 * MAINTAINERS: Add myself to write after approval list.
3875
3876 2002-09-11 J. Brobecker <brobecker@gnat.com>
3877
3878 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3879
3880 2002-09-11 J. Brobecker <brobecker@gnat.com>
3881
3882 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3883 Interix.
3884
3885 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3886
3887 * procfs.c (do_detach): Clear current signal, not just fault.
3888 Corrects problem with breakpoint trap signal leaking to detached
3889 process on Tru64.
3890
3891 2002-09-10 Michael Snyder <msnyder@redhat.com>
3892
3893 * buildsym.c (finish_block): Protect against null pointer.
3894
3895 2002-09-10 Andrew Cagney <cagney@redhat.com>
3896
3897 * infcmd.c (default_print_registers_info): Send all output to
3898 ``file'' instead of ``gdb_stdout''.
3899
3900 2002-09-10 Michael Snyder <msnyder@redhat.com>
3901
3902 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3903 LONGEST, and use signed register read (addresses are sign-
3904 extended for mips).
3905
3906 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3907
3908 * event-loop.c (gdb_do_one_event): Make public.
3909 * event-loop.h (gdb_do_one_event): Declare.
3910
3911 2002-09-10 Jeff Law <law@redhat.com>
3912
3913 * infttrace.c (child_resume): Simplify and rework to avoid
3914 TT_PROC_CONTINUE.
3915
3916 2002-09-09 Fred Fish <fnf@intrinsity.com>
3917
3918 * printcmd.c (print_scalar_formatted): "len" is the number of
3919 target bytes, NOT the number of target bits.
3920
3921 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3922
3923 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3924 * top.c (init_main): Set rl_terminal_name.
3925
3926 2002-09-08 Aidan Skinner <aidan@velvet.net>
3927
3928 * ada-lang.c (ada_array_bound, ada_type_match,
3929 _initialize_ada_language): Fix K&R definitions.
3930 * ada-tasks.c (get_current_task): Fix K&R definitions.
3931 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3932
3933 2002-09-07 Christopher Faylor <cgf@redhat.com>
3934
3935 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3936 Add XP.
3937
3938 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3939
3940 * i386-tdep.c (i386_register_virtual_type,
3941 i386_register_convertible, i386_register_convert_to_virtual,
3942 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3943 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3944 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3945 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3946 Don't set push_arguments twice.
3947
3948 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3949 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3950 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3951 sigtramp_end to NULL.
3952 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3953 defines.
3954 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3955
3956 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3957 whitespace.
3958
3959 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3960 * gdbarch.h, gdbarch.c: Re-generate.
3961 * blockframe.c (find_pc_sect_partial_function): Convert to use
3962 SIGTRAMP_START_P predicate.
3963
3964 2002-09-05 Michael Snyder <msnyder@redhat.com>
3965
3966 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3967 generic_dummy_frame method and old method. Also distinguish
3968 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3969 (arm_extract_return_value): Use new regcache method.
3970
3971 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3972 adjustment that doesn't conform to the ABI.
3973 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3974 saved regcache, not from current regcache.
3975
3976 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3977
3978 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3979 * README: Update.
3980
3981 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3982
3983 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3984 if arm_apcs_32 is false.
3985
3986 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3987
3988 GDB 5.3 branch created.
3989
3990 2002-09-03 Theodore A. Roth <troth@verinet.com>
3991
3992 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3993 generic_unwind_get_saved_register.
3994
3995 2002-09-03 David Carlton <carlton@math.stanford.edu>
3996
3997 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3998 argument (PR gdb/653). Update call to smash_to_method_type.
3999 (read_structure_scope): Update call to dwarf2_add_member_fn.
4000
4001 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4002
4003 * x86-64-linux-tdep.c: Include gdb_string.h
4004 * x86-64-linux-nat.c: Ditto.
4005
4006 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4007
4008 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4009 when YYDEBUG is set to 1.
4010 * c-exp.y: Likewise.
4011 * f-exp.y: Likewise.
4012 * jv-exp.y: Likewise.
4013 * m2-exp.y: Likewise.
4014 * p-exp.y: Likewise.
4015
4016 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4017
4018 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4019 dependency list.
4020 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4021 solib_svr4_fetch_link_map_offsets to
4022 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4023 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4024 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4025 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4026 solib-svr4.o, and solib-legacy.o.
4027 * config/i386/tm-nbsd.h: Include solib.h.
4028
4029 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4030
4031 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4032 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4033 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4034 comment noting that this needs its own target configuration.
4035 * config/i386/nbsd.mt: New file.
4036 * config/i386/nbsdaout.mt: Remove.
4037 * config/i386/nbsdelf.mt: Ditto.
4038 * config/i386/tm-nbsdaout.h: Ditto.
4039
4040 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4043 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4044 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4045 tdep->sigtramp_end.
4046 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4047 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4048 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4049
4050 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4051
4052 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4053 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4054 * i386-tdep.h (i386bsd_init_abi): New prototype.
4055 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4056 function declaration.
4057 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4058 for NetBSD-a.out or NetBSD-ELF.
4059 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4060 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4061 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4062 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4063 and nbsd-tdep.h.
4064 (i386nbsd_pc_in_sigtramp): New function.
4065 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4066 i386nbsd_pc_in_sigtramp.
4067 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4068 and i386nbsdelf_init_abi OS ABI handlers.
4069 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4070 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4071
4072 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4073
4074 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4075 registers if the target really has them.
4076
4077 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4078
4079 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4080 than nbsd-tdep.h.
4081
4082 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4083
4084 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4085 list.
4086 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4087 (alphanbsd_skip_sigtramp_frame): New functions.
4088 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4089 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4090 to alphanbsd_sigcontext_addr.
4091
4092 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4093
4094 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4095 list.
4096 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4097 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4098 nbsd_pc_in_sigtramp.
4099 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4100 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4101 * nbsd-tdep.c: Include gdb_string.h.
4102 (nbsd_pc_in_sigtramp): New function.
4103 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4104 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4105 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4106 ppcnbsd_pc_in_sigtramp.
4107 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4108 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4109 shnbsd_pc_in_sigtramp.
4110 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4111 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4112 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4113
4114 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4115
4116 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4117 watchpoints to NULL.
4118 (insert_breakpoints): set val field of watchpoints if NULL.
4119
4120
4121 2002-08-29 Jim Blandy <jimb@redhat.com>
4122
4123 * symtab.c (lookup_symbol_aux): In the cases where we find a
4124 minimal symbol of an appropriate name and use its address to
4125 select a symtab to read and search, use `name' (as passed to us)
4126 as the demangled name when searching the symtab's global and
4127 static blocks, not the minsym's name.
4128
4129 2002-08-29 Keith Seitz <keiths@redhat.com>
4130
4131 * stack.c (print_frame_info_base): Always set current_source_symtab
4132 and current_source_line.
4133
4134 2002-08-29 Donn Terry <donnte@microsoft.com>
4135
4136 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4137
4138 2002-08-28 Keith Seitz <keiths@redhat.com>
4139
4140 * stack.c (select_frame): Add FIXME concerning selected-frame
4141 events.
4142 (select_frame_command): Send selected-frame-level-changed
4143 event notification, but only if the level actually changed.
4144 (up_silently_base): Add selected-frame-level-changed event
4145 notification.
4146 (down_silently_base): Likewise.
4147
4148 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4149
4150 * Makefile.in: Update dependencies for all gdb/*.c files.
4151
4152 2002-08-27 Tom Tromey <tromey@redhat.com>
4153
4154 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4155 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4156 Update dependencies.
4157 * i387-tdep.c: Include gdb_string.h.
4158 * osabi.c: Likewise.
4159 * i386-linux-nat.c: Likewise.
4160 * lin-lwp.c: Likewise.
4161 * ax-gdb.c: Likewise.
4162 * signals/signals.c: Likewise.
4163 * jv-valprint.c: Likewise.
4164 * p-lang.c: Likewise.
4165 * c-valprint.c: Likewise.
4166 * cp-abi.c: Likewise.
4167
4168 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4169
4170 * cli/cli-script.h (copy_command_lines): Export.
4171 * breakpoint.c: Include cli/cli-script.h.
4172 * Makefile.in (breakpoint.o): Update dependencies.
4173
4174 2002-08-26 Michael Snyder <msnyder@redhat.com>
4175
4176 * breakpoint.c (insert_breakpoints): Protect all references
4177 to 'process_warning'. Shorten long lines.
4178
4179 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4180
4181 * cli/cli-script.c (copy_command_lines): New function.
4182 * defs.h (copy_command_lines): Export.
4183 * testsuite/gdb.base/commands.exp: New tests for commands
4184 attached to a temporary breakpoint, and for commands that
4185 delete the breakpoint they are attached to.
4186
4187 2002-08-26 Michael Snyder <msnyder@redhat.com>
4188
4189 * breakpoint.c (bpstat_stop_status): Instead of copying the
4190 pointer to the breakpoint commands struct, make a new copy
4191 of the struct and point to that.
4192 (bpstat_clear): Free the commands struct.
4193 (bpstat_clear_actions): Free the commands struct.
4194 (bpstat_do_actions): Free the command actions. Also execute
4195 the local cleanups, instead of deleting them.
4196 (delete_breakpoint): Leave the commands field of the bpstat
4197 chain alone -- it will be freed later.
4198
4199 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4200
4201 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4202 deleted in 2002-08-20 commit. This function is still used by
4203 ppc-linux-nat.c.
4204
4205 2002-08-26 Keith Seitz <keiths@redhat.com>
4206
4207 * gdb-events.sh: Add selected-frame-level-changed event.
4208 * gdb-events.c: Regenerated.
4209 * gdb-events.h: Regenerated.
4210
4211 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4212
4213 Fix PR gdb/393:
4214 * inflow.c (terminal_save_ours): New function to save terminal
4215 settings.
4216 * inferior.h (terminal_save_ours): Declare.
4217 * target.c (debug_to_terminal_save_ours): New function.
4218 (cleanup_target): Defaults to_terminal_save_ours.
4219 (update_current_target): Inherit to_terminal_save_ours.
4220 (setup_target_debug): Set to_terminal_save_ours.
4221 * target.h (target_terminal_save_ours): New to save terminal settings.
4222 (target_ops): New member to_terminal_save_ours.
4223 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4224 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4225 * inftarg.c (init_child_ops): Likewise.
4226 * m3-nat.c (init_m3_ops): Likewise.
4227 * procfs.c (init_procfs_ops): Likewise.
4228 * wince.c (init_child_ops): Likewise.
4229 * win32-nat.c (init_child_ops): Likewise.
4230 * sol-thread.c (init_sol_thread_ops): Likewise.
4231
4232 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4233
4234 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4235 use regcache_* functions.
4236 (i386_gdbarch_init): Set store_return_value instead of
4237 deprecated_store_return_value.
4238
4239 * regcache.c (regcache_raw_write_signed,
4240 regcache_raw_write_unsigned): New functions.
4241 * regcache.h (regcache_raw_write_signed,
4242 regcache_raw_write_unsigned): New prototypes.
4243
4244 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4245
4246 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4247 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4248 source file dependencies. Cleanup corresponding generator rules.
4249
4250 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4251
4252 * regcache.h (register_offset_hack): Declare.
4253 (regcache_cooked_read_using_offset_hack): Declare.
4254 (regcache_cooked_write_using_offset_hack): Declare.
4255
4256 * regcache.c (register_offset_hack): New function.
4257 (regcache_cooked_read_using_offset_hack): New function.
4258 (regcache_cooked_write_using_offset_hack): New function.
4259 (regcache_dump): Check that the registers, according to their
4260 offset, are packed hard against each other.
4261 (cooked_xfer_using_offset_hack): New function.
4262
4263 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4264
4265 * regcache.c (struct regcache_descr): Add field register_type.
4266 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4267 in as a parameter
4268 (init_regcache_descr): Initialize register_type. Pass the descr
4269 to init_legacy_regcache_descr. Use register_type instead of
4270 REGISTER_VIRTUAL_TYPE.
4271 (register_type): New function.
4272 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4273 * regcache.h (register_type): Declare.
4274
4275 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4276
4277 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4278 instead of deprecated_store_return_value. Fix fallout from
4279 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4280
4281 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4282
4283 * regcache.c (max_register_size): New function.
4284 (init_legacy_regcache_descr): Ensure that max_register_size is
4285 large enough for REGISTER_VIRTUAL_SIZE.
4286 * regcache.h (max_register_size): Declare.
4287
4288 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4289
4290 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4291 store_return_value.
4292 (e500_extract_return_value): Change type of valbuf pointer to
4293 void.
4294
4295 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4296
4297 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4298 workaround.
4299
4300 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4301 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4302 long long) to prevent compiler warning on 64-bit systems.
4303
4304 2002-08-23 Andrew Cagney <cagney@redhat.com>
4305
4306 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4307 (DEPRECATED_STORE_RETURN_VALUE): New method.
4308 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4309 * gdbarch.h, gdbarch.c: Re-generate.
4310
4311 * values.c (set_return_value): Pass current_regcache to
4312 STORE_RETURN_VALUE.
4313 * arch-utils.h (legacy_store_return_value): Declare.
4314 * arch-utils.c (legacy_store_return_value): New function.
4315 (legacy_extract_return_value): Update parameters.
4316
4317 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4318 STORE_RETURN_VALUE.
4319 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4320 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4321 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4322 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4323 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4324 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4325 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4326 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4327 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4328 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4329
4330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4331 * i386-tdep.c (i386_extract_return_value): Update.
4332 * arch-utils.c (legacy_extract_return_value): Update.
4333 * frv-tdep.c (frv_gdbarch_init): Update.
4334 * cris-tdep.c (cris_gdbarch_init): Update.
4335 * d10v-tdep.c (d10v_gdbarch_init): Update.
4336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4337 * m68k-tdep.c (m68k_gdbarch_init): Update.
4338 * mcore-tdep.c (mcore_gdbarch_init): Update.
4339 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4340 * s390-tdep.c (s390_gdbarch_init): Update.
4341 * sparc-tdep.c (sparc_gdbarch_init): Update.
4342 * sh-tdep.c (sh_gdbarch_init): Update.
4343 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4344 * v850-tdep.c (v850_gdbarch_init): Update.
4345 * avr-tdep.c (avr_gdbarch_init): Update.
4346 * ia64-tdep.c (ia64_gdbarch_init): Update.
4347 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4348 * vax-tdep.c (vax_gdbarch_init): Update.
4349 * alpha-tdep.c (alpha_gdbarch_init): Update.
4350 * arm-tdep.c (arm_gdbarch_init): Update.
4351 * mips-tdep.c (mips_gdbarch_init): Update.
4352 * i386-tdep.c (i386_gdbarch_init): Update.
4353
4354 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4355
4356 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4357 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4358
4359 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4360
4361 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4362 problems.
4363
4364 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4365
4366 * infrun.c (handle_inferior_event): Move a comment outside of a
4367 function call, in order to avoid indent reformatting this part
4368 of the code in an unreadable way.
4369
4370 2002-08-23 Grace Sainsbury <graces@redhat.com>
4371
4372 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4373 when breakpoints fail. Move general breakpoint error messages to
4374 insert_breakpoints.
4375 * breakpoint.c (insert_breakpoints): Change warnings when
4376 breakpoints are nto inserted to specify the type. Remove call to
4377 memory_error when hardware breakpoints can't be inserted. Remove
4378 multiple calls to warning so all messages are sent to the user at
4379 once.
4380 (delete_breakpoints): Make insert error messsages more explicit.
4381
4382 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4383
4384 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4385 gdbserver/ChangeLog.
4386
4387 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4388
4389 * i386-tdep.c: Include "objfiles.h".
4390 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4391 skip_trampoline_code.
4392 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4393 (CPLUS_MARKER): Define to '.'.
4394
4395 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4396 member.
4397 (linux_corefile_thread_callback): Increase args->num_notes.
4398 (linux_make_note_section): Initialize thread_args.num_notes, and
4399 use it to determine whether notes for any threads were created.
4400
4401 2002-08-23 Donn Terry <donnte@microsoft.com>
4402
4403 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4404 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4405 and PCUNKILL.
4406 (write_with_trace): Conditionalize out the switch branch handling
4407 PCSHOLD if the corresponding macro is not defined. Likewise for
4408 PRSABORT and PRSTOP.
4409 This change will be needed by the Interix port.
4410
4411 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4412
4413 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4414 write_register wherever possible instead of manipulating the
4415 register bytes directly.
4416 Assign VALUE_CONTENTS to a variable and use that.
4417 The GPR numbers are now dependent on the architecture.
4418
4419 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4420
4421 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4422 ev_offset fields.
4423 (skip_prologue): Add support for BookE/e500 instructions.
4424 (e500_extract_return_value): New function.
4425 (frame_get_saved_regs): Add support for saving ev registers and
4426 pseudo gpr's.
4427 (e500_store_return_value): New function.
4428 (rs6000_gdbarch_init): Move up default intializations of
4429 deprecated_extract_return_value and store_return_value. Overwrite
4430 init of store_return_value with e500 specific version.
4431 Set extract_return_value for e500.
4432
4433 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4434
4435 * blockframe.c (generic_call_dummy_register_unwind): Use
4436 regcache_cooked_read to catch cases in which the variable is
4437 stored in a pseudo register.
4438
4439 2002-08-22 Andrew Cagney <cagney@redhat.com>
4440
4441 * NEWS: Mention that the i960 has been made obsolete.
4442 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4443 i960-tdep.c
4444 (remote-nrom.o): Obsolete target.
4445 (remote-nindy.o, i960-tdep.o): Ditto.
4446 * remote-nrom.c: Make file obsolete.
4447 * remote-nindy.c, remote-vx960.c: Ditto.
4448 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4449 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4450 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4451 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4452 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4453 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4454 i960-*-vxworks* obsolete.
4455 * MAINTAINERS: Note that the i960 is obsolete.
4456
4457 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4458
4459 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4460 detach to allow reinitialization.
4461
4462 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4463
4464 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4465 attempt).
4466
4467 2002-08-22 Jim Blandy <jimb@redhat.com>
4468
4469 * coffread.c (coff_symfile_read): Don't try to read the line
4470 number table from disk if the image file doesn't have a symbol
4471 table; we'll never actually look at the info anyway, and Windows
4472 ships DLL's with bogus file offsets for the line number data.
4473
4474 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4475
4476 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4477 an e500 executable.
4478
4479 2002-08-21 Michael Snyder <msnyder@redhat.com>
4480
4481 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4482 (MSYMBOL_SIZE): Replace macro with function.
4483 (DEFAULT_MIPS_TYPE): Delete unused macro.
4484 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4485 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4486
4487 2002-08-21 Jim Blandy <jimb@redhat.com>
4488
4489 * valops.c (value_cast): Simplify and correct logic for doing a
4490 static cast from a pointer to a base class to a pointer to a
4491 derived class.
4492
4493 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4494
4495 * infcmd.c (default_print_registers_info): Replace
4496 do_registers_info.
4497 (registers_info): Use gdbarch_print_registers_info instead of
4498 DO_REGISTERS_INFO.
4499 * inferior.h (default_print_registers_info): Replace
4500 do_registers_info.
4501 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4502 (DO_REGISTERS_INFO): Change to a predicate function.
4503 * gdbarch.h, gdbarch.c: Regenerate.
4504
4505 2002-08-21 Keith Seitz <keiths@redhat.com>
4506
4507 * gdb-events.sh: Add target-changed event.
4508 * gdb-events.c: Regenerated.
4509 * gdb-events.c: Regenerated.
4510 * valops.c (value_assign): Add target-changed event notification
4511 to inlval_register, lval_memory, and lval_reg_frame_relative.
4512
4513 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4514
4515 * NEWS: Add an entry regarding the improvement of the next/step
4516 operation on Alpha Tru64 multi-processor machines.
4517
4518 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4519
4520 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4521 directores.
4522 * Makefile.in: Update all _h macro definitions.
4523 * Makefile.in (install-gdbtk): Move to install section.
4524 (rdi-share/libangsd.a): Move to end of file.
4525
4526 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4527
4528 * frame.c (frame_register_unwind): When a register, set addrp to
4529 the register's byte.
4530
4531 2002-08-20 Michael Snyder <msnyder@redhat.com>
4532
4533 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4534 used locally, so move them from the target machine header to here.
4535 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4536 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4537 Make static.
4538 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4539
4540 2002-08-20 Andrew Cagney <cagney@redhat.com>
4541
4542 * NEWS: Mention that the Apollo line was made obsolete.
4543 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4544 m68*-hp-hpux* obsolete.
4545 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4546 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4547 * buildsym.c (make_blockvector): Make static.
4548 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4549 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4550 (ALLDEPFILES): Remove dstread.c.
4551 (dstread.o): Obsolete make rule.
4552 * dstread.c: Makefile obsolete.
4553 * dst.h: Ditto.
4554 * config/m68k/hp300hpux.mt: Ditto.
4555 * config/m68k/hp300hpux.mh: Ditto.
4556 * config/m68k/hp300bsd.mt: Ditto.
4557 * config/m68k/hp300bsd.mh: Ditto.
4558 * config/m68k/apollo68b.mt: Ditto.
4559 * config/m68k/apollo68v.mh: Ditto.
4560 * config/m68k/apollo68b.mh: Ditto.
4561
4562 2002-08-20 Michael Snyder <msnyder@redhat.com>
4563
4564 * mips-tdep.c (mips_in_return_stub): Make static.
4565 (mips_gdbarch_init): Set in_solib_return_trampoline.
4566 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4567
4568 2002-08-20 Michael Snyder <msnyder@redhat.com>
4569
4570 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4571 * gdbarch.c, gdbarch.h: Regenerate.
4572 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4573 Add.
4574 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4575
4576 2002-08-20 Michael Snyder <msnyder@redhat.com>
4577
4578 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4579 (mips_gdbarch_init): Set skip_trampoline_code,
4580 in_solib_call_trampoline.
4581 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4582 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4583
4584 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4587
4588 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4589 vector type for ev registers.
4590 (e500_pseudo_register_read): New function.
4591 (e500_pseudo_register_write): New function.
4592 (e500_dwarf2_reg_to_regnum): New function.
4593 (PPC_UISA_NOFP_SPRS): New macro.
4594 (PPC_EV_REGS): New macro.
4595 (PPC_GPRS_PSEUDO_REGS): New macro.
4596 (registers_e500): New register set for e500.
4597 (variants): Add e500 variant.
4598 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4599 before setting architectural dependent variations. Initialize ev
4600 registers numbers. Add case for e500 architecture. Set the
4601 number of pseudo registers.
4602
4603 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4604
4605 * rs6000-tdep.c: Clean up comments.
4606
4607 2002-08-20 Andrew Cagney <cagney@redhat.com>
4608
4609 * h8300-tdep.c: Re-indent file.
4610
4611 2002-08-20 Jim Blandy <jimb@redhat.com>
4612
4613 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4614 default for this.
4615
4616 2002-08-20 Keith Seitz <keiths@redhat.com>
4617
4618 * breakpoints.c (watch_command_1): Use internal breakpoint
4619 when setting a watchpoint_scope breakpoint.
4620
4621 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4622
4623 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4624 (build_builtin_type_vec64i): Ditto.
4625 (build_builtin_type_vec128): Ditto.
4626 (build_builtin_type_vec128i): Ditto.
4627
4628 2002-08-19 Michael Snyder <msnyder@redhat.com>
4629
4630 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4631 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4632 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4633 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4634 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4635 CALL_DUMMY_ADDRESS): Delete.
4636 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4637 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4638 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4639 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4640 push_return_address.
4641 (mips_register_raw_size, mips_eabi_use_struct_convention,
4642 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4643 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4644 mips_init_extra_frame_info, mips_eabi_push_arguments,
4645 mips_n32n64_push_arguments, mips_push_return_address,
4646 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4647 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4648
4649 2002-08-19 Michael Snyder <msnyder@redhat.com>
4650
4651 * mips-tdep.c (mips_frame_num_args): New function.
4652 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4653 frame_saved_pc, frame_args_address, frame_locals_address,
4654 frame_num_args, and frame_args_skip.
4655 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4656 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4657 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4658 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4659
4660 2002-08-20 Michael Snyder <msnyder@redhat.com>
4661
4662 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4663 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4664 * mips-tdep.c (mips_store_struct_return): New function.
4665 (mips_extract_struct_value_address): New function.
4666 (mips_gdbarch_init): Set store_struct_return and
4667 extract_struct_value_address.
4668
4669 2002-08-20 David Carlton <carlton@math.stanford.edu>
4670
4671 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4672 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4673 (read_file_scope): Check that line_header is nonzero before
4674 decoding macro information.
4675
4676 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4677
4678 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4679 flag the general-purpose registers as floating-point on targets
4680 that don't support the floating-point registers.
4681
4682 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4683
4684 * rs6000-tdep.c (altivec_register_p): Delete.
4685 (rs6000_do_altivec_registers): Delete.
4686 (rs6000_altivec_registers_info): Delete.
4687 (rs6000_do_registers_info): Delete.
4688 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4689 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4690
4691 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4692
4693 * infcmd.c (do_registers_info): Print vector registers in hex
4694 format only.
4695 (print_vector_info): Check that printing registers
4696 makes sense.
4697 (print_float_info): Ditto.
4698
4699 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4700
4701 * mips-tdep.c (mips_gdbarch_init): Update.
4702 (mips_o32_extract_return_value): Rewrite.
4703 (mips_o32_store_return_value): Rewrite.
4704 (mips_o32_xfer_return_value): New function.
4705 (mips_xfer_register): Tweak debug print message. Allow for
4706 buf_offset when dumping the value transfered.
4707
4708 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4709
4710 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4711 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4712 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4713 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4714 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4715
4716 2002-08-14 Michael Snyder <msnyder@redhat.com>
4717
4718 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4719
4720 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4721
4722 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4723 register.
4724 (P): New macro to define a register as a pseudo register.
4725 (R, R4, R8, R16, FR32, R64, R0): Updated.
4726 (struct variant): Add new fields for number of pseudo registers
4727 and number of total registers.
4728 (tot_num_registers): New macro replacing....
4729 (num_registers): ...deleted macro.
4730 (num_registers): New function.
4731 (num_pseudo_registers): New function.
4732 (variants): Update all variants to intialize new fields correctly.
4733 Postpone initialization of number of pseudo regs and real regs.
4734 (init_variants): New function.
4735 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4736 registers offsets.
4737
4738 2002-08-19 David Carlton <carlton@math.stanford.edu>
4739
4740 * valops.c (search_struct_field): Change error message to treat
4741 return value of 0 from value_static_field as meaning that field is
4742 optimized out.
4743 (value_struct_elt_for_reference): Ditto.
4744 * values.c (value_static_field): Treat an unresolved location the
4745 same as a nonexistent symbol. Fix PR gdb/635.
4746 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4747 enclosed. Fix PR gdb/574.
4748 * MAINTAINERS: Add self to Write After Approval list.
4749
4750 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4751
4752 * mips-tdep.c (mips_xfer_register): New function.
4753 (mips_n32n64_extract_return_value): Rewrite.
4754 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4755 instead of deprecated_extract_return_value.
4756
4757 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4758
4759 * rs6000-tdep.c (TDEP): Delete macro.
4760 (branch_dest): Replace use of TDEP macro with its body.
4761 (rs6000_pop_frame): Ditto.
4762 (rs6000_push_arguments): Ditto.
4763 (rs6000_skip_trampoline_code): Ditto.
4764 (rs6000_frame_saved_pc): Ditto.
4765 (rs6000_frame_chain): Ditto.
4766 (rs6000_register_name): Ditto.
4767 (rs6000_register_byte): Ditto.
4768 (rs6000_register_raw_size): Ditto.
4769 (rs6000_register_virtual_type): Ditto.
4770 (rs6000_register_convertible): Ditto.
4771 (rs6000_convert_from_func_ptr_addr): Ditto.
4772
4773 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4774
4775 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4776 conditionally.
4777 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4778 MIPS_LINUX_JB_ELEMENT_SIZE.
4779 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4780 for MAX_REGISTER_RAW_SIZE arrays.
4781 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4782 MIPS_LINUX_JB_ELEMENT_SIZE.
4783
4784 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4785
4786 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4787
4788 2002-08-19 Aidan Skinner <aidan@velvet.net>
4789
4790 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4791 ada-valprint.c ada-tasks.c.
4792 (YYFILES): Add ada-exp.y.
4793 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4794 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4795 (ada-exp.tab.o): New target.
4796
4797 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4798
4799 * regcache.c (regcache_xfer_part): New function.
4800 (regcache_raw_read_part): New function.
4801 (regcache_raw_write_part): New function.
4802 (regcache_cooked_read_part): New function.
4803 (regcache_cooked_write_part): New function.
4804 * regcache.h (regcache_raw_read_part): Declare.
4805 (regcache_raw_write_part): Declare.
4806 (regcache_cooked_read_part): Declare.
4807 (regcache_cooked_write_part): Declare.
4808
4809 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4810
4811 * remote.c (remote_open_1): Add async_p.
4812 (remote_async_open_1): Delete.
4813 (open_remote_target): Delete.
4814 (remote_open, extended_remote_open): Update calls to remote_open_1.
4815 (remote_async_open, extended_remote_async_open): Call
4816 remote_open_1 instead of remote_async_open_1.
4817
4818 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4819
4820 * blockframe.c: Fix a few coding standard violations.
4821
4822 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4823
4824 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4825 here from ...
4826 * config/i386/tm-i386sco5.h: ... here. File removed.
4827 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4828
4829 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4830 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4831 (TM_FILE): Set to tm-i386.h.
4832 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4833 * config/i386/tm-i386v.h: Remove file.
4834 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4835 instead of "i386/tm-i386v.h".
4836 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4837 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4838 "i386/tm-i386v.h".
4839 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4840 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4841 "i386/tm-i386.h".
4842
4843 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4844
4845 * config/i386/nm-i386v.h: Add protection against
4846 multiple-inclusion.
4847 (i386_register_u_addr): Remove prototype.
4848 (register_u_addr): New prototype.
4849 (REGISTER_U_ADDR): Redefine accordingly.
4850 * i386v-nat.c: Improve several comments.
4851 (i386_register_u_addr): Change signature and rename to
4852 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4853 ubase variable.
4854
4855 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4856
4857 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4858 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4859 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4860 deprecated_extract_return_value.
4861 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4862 rename mips_o32o64_push_arguments.
4863 (mips_gdbarch_init): Update.
4864 (mips_extract_return_value): Delete.
4865 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4866 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4867 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4868 (mips_n32n64_extract_return_value): Clone
4869 mips_extract_return_value.
4870 (mips_store_return_value): Delete.
4871 (mips_o32_store_return_value): Clone mips_store_return_value.
4872 (mips_o64_store_return_value): Clone mips_store_return_value.
4873 (mips_eabi_store_return_value): Clone mips_store_return_value.
4874 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4875
4876 2002-08-18 Aidan Skinner <aidan@velvet.net>
4877
4878 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4879 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4880
4881 2002-08-18 Aidan Skinner <aidan@velvet.net>
4882
4883 * ada-lang.c: Run through gdb_indent.sh.
4884 * ada-lang.h: Run through gdb_indent.sh.
4885 * ada-tasks.c: Run through gdb_indent.sh.
4886 * ada-typeprint.c: Run through gdb_indent.sh.
4887 * ada-valprint.c: Run through gdb_indent.sh.
4888
4889 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4890
4891 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4892 ABI.
4893
4894 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4895
4896 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4897
4898 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4899 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4900
4901 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4902 write_register_gen instead of write_register_bytes.
4903
4904 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4905 i[3456]-*-osf1mk* configurations have been made obsolete.
4906 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4907 i[3456]86-*-osf1mk* hosts obsolete.
4908 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4909 targets obsolete.
4910 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4911 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4912 config/i386/i386m3.mt, config/i386/nm-m3.h,
4913 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4914 config/i386/i386mk.mh, config/i386/i386mk.mt,
4915 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4916 obsolete.
4917 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4918 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4919 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4920
4921 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4922
4923 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4924 (hppa_value_returned_from_stack): Declare.
4925 (hppa_extract_return_value): Declare.
4926 * config/pa/hppa.mt: New file.
4927 * configure.tgt: Recognize hppa*-*-*.
4928 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4929
4930 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4931
4932 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4933 comment.
4934
4935 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4936
4937 * top.c (gdb_rl_operate_and_get_next): Make sure
4938 operate-and-get-next functions correctly even when the history
4939 list is completely filled.
4940
4941 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4942
4943 * MAINTAINERS (Target Instruction Set Architectures): Rename
4944 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4945 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4946 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4947 already listed under Host/Native.
4948
4949 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4950 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4951 mips*-*-*.
4952
4953 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4954
4955 * config/ia64/ia64.mt: New file.
4956 * config/alpha/alpha.mt: New file.
4957 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4958 ia64-linux-gnu. Mention that ia64-elf is broken.
4959 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4960
4961 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4962
4963 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4964 generic_func_frame_valid instead of func_frame_valid.
4965
4966 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4967
4968 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4969 procfs appears to be broken when debugging on multi-processor
4970 machines. So enable software single stepping in order to avoid
4971 using the procfs interface to do next/step operations, using
4972 internal breakpoints instead.
4973
4974 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4975 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4976 make this pc address equal to the value it would have if the
4977 system stepping capability was used. Also set a new flag used
4978 to ensure that we don't readjust the PC one more time later.
4979
4980 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4981 address by DECR_PC_AFTER_BREAK when software single step is
4982 in use for this architecture, as this has already been taken
4983 care of in handle_inferior_event().
4984
4985 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4986
4987 * infrun.c (handle_inferior_event): Minor reformatting, to make
4988 a rather long condition expression easier to read.
4989
4990 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4991
4992 * Makefile.in (gdbtk.o): Move to end of file.
4993 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4994 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4995 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4996 (gdbtk-wrapper.o, gdbres.o): Ditto.
4997
4998 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4999
5000 * Makefile.in (copying.o): Separate out compile rule.
5001 (hpux-thread.o, procfs.o, signals.o): Ditto.
5002 (v850ice.o, z8k-tdep.o): Ditto.
5003 (tui-file.o): Move to TUI section.
5004 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5005 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5006
5007 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5008
5009 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5010 skip_trampoline_code, for better namespace-proofing.
5011
5012 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5013
5014 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5015
5016 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5017
5018 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5019
5020 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5021 signal, check whether we hit a breakpoint before checking for a
5022 single step breakpoint. Otherwise, GDB fails to notice that a
5023 breakpoint has been hit when stepping onto a breakpoint.
5024
5025 2002-08-16 Keith Seitz <keiths@redhat.com>
5026
5027 * gdb-events.sh (clear_gdb_event_hooks): New function.
5028 * gdb-events.c: Regenerate.
5029 * gdb-events.h: Regenerate.
5030
5031 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5032
5033 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5034 not_a_sw_breakpoint.
5035 * breakpoint.h (bpstat_stop_status): Add parameter names.
5036
5037 2002-08-16 Grace Sainsbury <graces@redhat.com>
5038
5039 * remote.c (remote_insert_hw_breakpoint)
5040 (remote_remove_hw_breakpoint): Fix calculation of length field
5041 for Z-packet.
5042
5043 2002-08-15 Michael Snyder <msnyder@redhat.com>
5044
5045 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5046 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5047 (supply_fpregset): Ditto.
5048
5049 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5050 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5051 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5052 (TARGET_READ_SP): Delete.
5053 (DO_REGISTERS_INFO): Delete.
5054 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5055 Delete.
5056 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5057 from macros to functions.
5058
5059 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5060 (mips_register_convertible, mips_register_convert_to_virtual,
5061 mips_register_convert_to_raw): Make static.
5062 (mips_read_sp): New function.
5063 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5064 (mips_do_registers_info): Make static.
5065 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5066 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5067 (mips_register_convert_from_type, mips_register_convert_to_type):
5068 New functions.
5069 (mips_gdbarch_init): Set up function_start_offset,
5070 register_virtual_size, pc_in_sigtramp.
5071
5072 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5073
5074 * infcmd.c (vector_info): New function.
5075 (_initialize_infcmd): Add command "info vector".
5076 (print_vector_info): New function.
5077
5078 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5079 * gdbarch.h, gdbarch.c: Regenerate.
5080
5081 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5082
5083 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5084 ``print_all''. Only print vector registers when ``print_all''.
5085
5086 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5087
5088 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5089 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5090
5091 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5092 Add `args' parameter.
5093 * gdbarch.h, gdbarch.c: Regenerate.
5094
5095 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5096
5097 * infcmd.c (float_info): Call print_float_info.
5098 (print_float_info): New function. By default, print the
5099 floating-point registers.
5100
5101 * arch-utils.h (default_print_float_info): Delete declaration.
5102 * arch-utils.c (default_print_float_info): Delete function.
5103
5104 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5105
5106 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5107 out define.
5108
5109 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5110 FRAME.
5111
5112 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5113 * configure.host: Make i[3456]86-*-aix host obsolete.
5114 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5115 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5116 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5117 config/i386/xm-i386aix.h: Make files obsolete.
5118 * i386aix-nat.c: Make file obsolete.
5119 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5120 (i386aix-nat.o): Make target obsolete.
5121
5122 * config/i386/nm-gnu.h: Removed.
5123 * config/i386/nm-i386gnu.h: New file.
5124 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5125 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5126 Moved here from ...
5127 * config/i386/tm-i386gnu.h: ... here. Removed.
5128 * config/i386/xm-i386gnu.h: Removed.
5129 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5130 (NAT_FILE): Set to nm-i386gnu.h.
5131 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5132 * i386-tdep.c: New file.
5133 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5134 (i386gnu-tdep.o): Specify dependencies.
5135
5136 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5137
5138 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5139 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5140 Adjust a few comments to reflect reality a bit closer.
5141 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5142 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5143 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5144 target_insert_watchpoint, target_remove_watchpoint):
5145 Move defines to ...
5146 * config/i386/nm-i386sco5.h: ... here.
5147 (kernel_u_size): Add prototype. Improve a few comments and add
5148 protection against multiple inclusion.
5149
5150 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5151 out define.
5152
5153 * uw-thread.c (SP_ARG0): Define if not already defined.
5154 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5155
5156 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5157
5158 * config/i386/tm-i386.h: Don't include "regcache.h".
5159
5160 * i387-tdep.h (i387_print_float_info): New prototype.
5161 * i387-tdep.c (print_i387_value, print_i387_ext,
5162 print_i387_status_word, print_i387_control_word): Add `struct
5163 ui_file *' argument and use it for output.
5164 (i387_print_float_info): Renamed from i387_float_info. Add
5165 `struct gdbarch *' and `struct ui_file *' arguments and use the
5166 latter for output.
5167 * i386-tdep.c: Include "i387-tdep.h".
5168 (i386_gdbarch_init): Set print_float_info.
5169 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5170 (FLOAT_INFO): Remove define.
5171
5172 2002-08-13 Michael Snyder <msnyder@redhat.com>
5173
5174 * mips-tdep.c (mips_push_arguments): Rename to
5175 mips_eabi_push_arguments, and tune for EABI.
5176 (MIPS_REGS_HAVE_HOME_P): Delete.
5177 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5178 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5179 Delete references to mips_regs_have_home_p.
5180
5181 2002-08-14 Keith Seitz <keiths@redhat.com>
5182
5183 * Makefile.in (install-gdbtk): Create insight plugin directory.
5184 Install plugins.tcl file.
5185
5186 2002-08-14 Keith Seitz <keiths@redhat.com>
5187
5188 * configure.in: Move SUBDIRS to near top of the file so that
5189 --enable options may add things to it.
5190 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5191 * configure: Regenerate.
5192
5193 2002-08-13 Michael Snyder <msnyder@redhat.com>
5194
5195 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5196 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5197 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5198
5199 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5200
5201 * vax-tdep.c (vax_get_saved_register): Delete function.
5202 (vax_gdbarch_init): Update.
5203 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5204 (ns32k_gdbarch_init): Update.
5205 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5206 (alpha_gdbarch_init): Update.
5207
5208 2002-08-13 Andrew Cagney <cagney@redhat.com>
5209
5210 * regcache.c (init_regcache_descr): Overallocate the
5211 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5212 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5213 nr_raw_registers.
5214 (set_register_cached): Add range checking assertions. Use
5215 current_regcache.
5216
5217 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5218
5219 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5220 numbers for MMX registers.
5221
5222 2002-08-13 Andrew Cagney <cagney@redhat.com>
5223
5224 * i386-tdep.c (i386_gdbarch_init): Use
5225 generic_unwind_get_saved_register.
5226
5227 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5228
5229 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5230 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5231 target vector.
5232 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5233 Delete. Add comment regarding this now-deleted target method.
5234
5235 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5236
5237 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5238 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5239 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5240 real PC and the page number (if it's within the memory bank window).
5241 (m68hc11_pseudo_register_write): Likewise when saving.
5242 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5243 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5244 (m68hc11_register_raw_size): And use 32-bit for it.
5245 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5246 16K memory bank is used by the prog; also use the virtual pc.
5247
5248 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5249
5250 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5251 (m68hc11_gdbarch_init): Install it in gdbarch.
5252 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5253 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5254 (MSYMBOL_SIZE): New for documentation.
5255 (insn_return_kind): Enum to specify how a function returns.
5256 (frame_extra_info): Cleanup and record the return mode.
5257 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5258 register in address computation.
5259 (m68hc11_get_return_insn): New to obtain the return instruction used
5260 by the function.
5261 (m68hc11_frame_init_saved_regs): Take into account the return
5262 instruction used by the function for far and interrupt functions.
5263 (m68hc11_init_extra_frame_info): Take into account page register.
5264 (m68hc11_frame_args_address): Adjust according to the return mode.
5265 (show_regs): Print page register only when it's used.
5266
5267 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5268
5269 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5270 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5271 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5272 registers.
5273 (m68hc11_register_raw_size): Likewise.
5274
5275 2002-08-13 Andrew Cagney <cagney@redhat.com>
5276
5277 * i386-tdep.c (i386_register_name): Handle mmx registers.
5278 (mmx_regnum_p): New function.
5279 (i386_mmx_names): New array.
5280 (mmx_num_regs): New variable.
5281 (i386_pseudo_register_read): New function.
5282 (i386_pseudo_register_write): New function.
5283 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5284
5285 * regcache.c (regcache_raw_read_unsigned): New function.
5286 (regcache_raw_read_signed): New function.
5287 * regcache.h (regcache_raw_read_unsigned): Declare.
5288 (regcache_raw_read_signed): Declare.
5289
5290 2002-08-13 Andrew Cagney <cagney@redhat.com>
5291
5292 * regcache.c (regcache_raw_read_as_address): Delete function.
5293 (regcache_cooked_read_signed): New function.
5294 (regcache_cooked_read_unsigned): New function.
5295 * regcache.h (regcache_cooked_read_signed): Declare.
5296 (regcache_cooked_read_unsigned): Declare.
5297 (regcache_raw_read_as_address): Delete declaration.
5298
5299 * blockframe.c (generic_read_register_dummy): Use
5300 regcache_cooked_read_unsigned.
5301 * i386-tdep.c (i386_extract_struct_value_address): Use
5302 regcache_cooked_read_unsigned.
5303
5304 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5305
5306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5307 double sizes according to ELF ABI flags.
5308 (gdbarch_tdep): Record elf_flags.
5309
5310 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5311
5312 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5313 (m6812_prolog): They can appear in 68HC12 function prologue.
5314 (m68hc11_frame_chain): Cleanup.
5315
5316 2002-08-12 Andrew Cagney <cagney@redhat.com>
5317
5318 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5319 declarations.
5320 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5321 (i386_linux_register_raw_size): Delete function.
5322 (i386_linux_init_abi): Update.
5323 * i386-tdep.c (i386_register_raw_size): Delete function.
5324 (i386_register_byte): Delete function.
5325 (i386_gdbarch_init): Update.
5326 (i386_register_size): Delete array.
5327 (i386_register_offset): Delete array.
5328
5329 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5330 (REGISTER_RAW_SIZE): Delete macro.
5331 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5332 (REGISTER_BYTE): Delete macro.
5333
5334 2002-08-11 Aidan Skinner <aidan@velvet.net>
5335
5336 * ada-lang.c (ada_lookup_partial_symbol)
5337 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5338 prototype names so that grep ^func works properly.
5339
5340 * ada-lang.c (ada_array_element_type)
5341 (ada_lookup_partial_symbol): Fix typos in parameter list.
5342
5343 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5344 Fix prototype names so that grep ^func works properly.
5345
5346 2002-08-10 Andrew Cagney <cagney@redhat.com>
5347 Elena Zannoni <ezannoni@redhat.com>
5348 Martin M. Hunt <hunt@redhat.com>
5349
5350 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5351 (build_builtin_type_vec128i): Set the vector bit.
5352 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5353 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5354 (build_builtin_type_vec64): New function.
5355 (build_builtin_type_vec64i): New function.
5356 (build_gdbtypes): Initialize builtin_type_vec64 and
5357 builtin_type_vec64i.
5358
5359 2002-08-09 Andrew Cagney <cagney@redhat.com>
5360
5361 * regcache.c (regcache_dump): Compare the register offset
5362 with REGISTER_BYTE.
5363 * arch-utils.c (generic_register_byte): New function.
5364 * arch-utils.h (generic_register_byte): Declare.
5365 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5366 * gdbarch.h, gdbarch.c: Regenerate.
5367
5368 2002-08-09 Andrew Cagney <cagney@redhat.com>
5369
5370 * regcache.c: Include "gdbcmd.h"
5371 (_initialize_regcache): Add commands "maintenance print
5372 registers", "maintenance print raw-registers" and "maintenance
5373 print cooked-registers".
5374 (enum regcache_dump_what): Define.
5375 (dump_endian_bytes): New function.
5376 (regcache_dump): New function.
5377 (regcache_print): New function.
5378 (maintenance_print_registers): New function.
5379 (maintenance_print_raw_registers): New function.
5380 (maintenance_print_cooked_registers): New function.
5381 * Makefile.in (regcache.o): Update dependencies.
5382
5383 2002-08-09 Michael Snyder <msnyder@redhat.com>
5384
5385 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5386 (mips_push_arguments): Correct some comments. Use paddr_nz
5387 for printing addresses in debug output. Replace static
5388 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5389 (mips_n32n64_push_arguments): New function, cloned from
5390 mips_push_arguments and tuned for the n32/n64 ABI.
5391 (mips_push_register): Buffer needs dynamic allocation.
5392 (mips_print_register): Ditto.
5393 (do_gp_register_row): Ditto.
5394 (mips_store_return_value): Ditto.
5395 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5396
5397 2002-08-09 Don Howard <dhoward@redhat.com>
5398
5399 * memattr.c (mem_info_command): Print special case of upper bound
5400 as max CORE_ADDR + 1.
5401
5402 2002-08-08 Michael Snyder <msnyder@redhat.com>
5403
5404 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5405 returns structs by ref if they're too big to fit in two registers.
5406
5407 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5408
5409 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5410 saved regs value.
5411 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5412 mips_find_saved_regs().
5413 (mips_pop_frame): Likewise.
5414
5415 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5416
5417 * blockframe.c (frame_saved_regs_register_unwind): Revise
5418 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5419 frames are in use.
5420
5421 2002-08-09 Grace Sainsbury <graces@redhat.com>
5422
5423 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5424 T-packets; the 'a' is not taken as a register number.
5425 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5426 (remote_stopped_data_address): New functions; add to target
5427 vector.
5428 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5429 prototypes to match other implementations of this
5430 function. replace integer argument with pointer -- the length
5431 field in the Z-packet is the length of what is pointed to or 1 if
5432 pointer is null. Add to target vector.
5433 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5434 target vector.
5435
5436 From Mark Salter:
5437 * remote.c (remote_wait): Add support to extract optional
5438 watchpoint information from T-packet. Ignore unrecognized
5439 optional info in T-packet.
5440 (remote_async_wait): Ditto.
5441
5442 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5443
5444 * cli/cli-dump.c: Change fopen modes to use binary open modes
5445 as defined in include/fopen-bin.h throughout.
5446
5447 2002-08-08 Michael Snyder <msnyder@redhat.com>
5448
5449 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5450
5451 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5452
5453 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5454 assertion failure by returning early after a warning.
5455
5456 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5457
5458 * mips-tdep.c (mips_find_saved_regs): Make static.
5459 (mips_frame_init_saved_regs): New function.
5460 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5461 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5462 (mips_find_saved_regs): Delete declaration.
5463
5464 2002-08-08 Grace Sainsbury <graces@redhat.com>
5465
5466 * remote.c (remote_wait, remote_async_wait): Change
5467 thread_num from int to ULONGEST.
5468 (unpack_varlen_hex): Change result parameter from
5469 int * to ULONGEST *.
5470
5471 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5472
5473 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5474 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5475 powerpc*-*-*.
5476 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5477
5478 2002-08-08 Andrew Cagney <cagney@redhat.com>
5479
5480 * gcore.c (override_derive_stack_segment): Delete variable.
5481 (preempt_derive_stack_segment): Delete function.
5482 (derive_stack_segment): Delete function.
5483 (default_derive_stack_segment): Renamed to derive_stack_segment.
5484 (override_derive_heap_segment): Delete variable.
5485 (preempt_derive_heap_segment): Delete function.
5486 (derive_heap_segment): Delete function.
5487 (default_derive_heap_segment): Rename to derive_heap_segment.
5488
5489 2002-08-06 Michael Snyder <msnyder@redhat.com>
5490
5491 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5492 * mips-tdep.c (mips_EABI_use_struct_convention,
5493 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5494 New functions. (mips_use_struct_convention): Delete.
5495 (mips_gdbarch_init): set use_gdbarch_convention.
5496
5497 2002-08-06 Michael Snyder <msnyder@redhat.com>
5498
5499 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5500 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5501 mips_o32_reg_struct_has_addr): New functions.
5502 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5503
5504 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5505
5506 * regcache.c (pseudo_register): Delete function.
5507 (fetch_register): Delete function.
5508 (store_register): Delete function.
5509 (regcache_raw_read, legacy_read_register_gen): Use
5510 target_fetch_registers instead of fetch_register.
5511 (legacy_write_register_gen, regcache_raw_write): Use
5512 target_store_register instead of store_register.
5513 (write_register_bytes): Ditto.
5514
5515 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5516 (STORE_PSEUDO_REGISTER): Delete.
5517 * gdbarch.h, gdbarch.c: Regenerate.
5518
5519 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5520
5521 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5522 write dump file binary.
5523
5524 2002-08-05 Michael Snyder <msnyder@redhat.com>
5525
5526 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5527 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5528 (mips_gdbarch_init): Set N32 target to be mips64.
5529
5530 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5531
5532 * frame.c (find_saved_register): Break out of loop once saved
5533 register address is found. Don't mention sparc in loop comment
5534 anymore.
5535
5536 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5537
5538 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5539 mips_default_saved_regsize to 8.
5540
5541 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5542
5543 * gcore.c: Do not include <sys/procfs.h>.
5544 * Makefile.in (gcore.o): Update dependencies.
5545
5546 2002-08-06 Andrew Cagney <cagney@redhat.com>
5547
5548 * configure.tgt: Make arc-*-* obsolete.
5549 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5550 * MAINTAINERS: Make arc-elf obsolete.
5551 * arc-tdep.c: Make file obsolete.
5552 * config/arc/arc.mt: Ditto.
5553 * config/arc/tm-arc.h: Ditto.
5554
5555 2002-08-05 Theodore A. Roth <troth@verinet.com>
5556
5557 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5558
5559 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5560
5561 * mcore-tdep.c (mcore_gdbarch_init): Use
5562 generic_unwind_get_saved_register instead of
5563 generic_get_saved_register.
5564 * v850-tdep.c (v850_gdbarch_init): Ditto.
5565 * frv-tdep.c (frv_gdbarch_init): Ditto.
5566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5567 * s390-tdep.c (s390_gdbarch_init): Ditto.
5568 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5569 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5570 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5571
5572 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5573
5574 * objfiles.h: Add missing #include "symfile.h"
5575
5576 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5577
5578 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5579
5580 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5581 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5582 of FIELD_BITSIZE.
5583
5584 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5585
5586 * NEWS: Cleanup and nitpick.
5587
5588 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5589
5590 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5591
5592 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5593
5594 * Makefile.in (gdbtk-bp.o): Update dependencies.
5595 (gdbtk-register.o): Ditto.
5596 (gdbtk-varobj.o): Ditto.
5597
5598 2002-08-03 Andrew Cagney <cagney@redhat.com>
5599
5600 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5601 m68hc11_fetch_pseudo_register.
5602 (m68hc11_pseudo_register_write): Replace
5603 m68hc11_store_pseudo_register.
5604 (m68hc11_gdbarch_init): Update.
5605
5606 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5607
5608 * gdbarch.sh: Include "gdb_string.h".
5609 * gdbarch.c: Regenerate.
5610
5611 * regcache.c: Include "gdb_string.h".
5612 * ax-general.c: Ditto.
5613 * varobj.c: Ditto.
5614 * std-regs.c: Ditto.
5615 * fbsd-proc.c: Ditto.
5616 * thread.c: Ditto.
5617
5618 * Makefile.in (regcache.o): Update dependencies.
5619 (thread.o, gdbarch.o): Ditto.
5620 (ax-general.o, gdbarch.o): Ditto.
5621 (varobj.o, std-regs.o): Ditto.
5622 (fbsd-proc.o): Specify dependencies.
5623
5624 2002-08-02 Andrew Cagney <cagney@redhat.com>
5625
5626 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5627 regnum.
5628 (regcache_cooked_write): Ditto.
5629
5630 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5631
5632 * regcache.c (regcache_cooked_read): New function.
5633 (regcache_cooked_write): New function.
5634 (read_register_gen): Rewrite using regcache_cooked_read.
5635 (write_register_gen): Rewrite using regcache_cooked_write.
5636
5637 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5638 Declare.
5639
5640 2002-08-02 Andrew Cagney <cagney@redhat.com>
5641
5642 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5643 Replace the architecture methods register_read and register_write.
5644 * gdbarch.h, gdbarch.c: Regenerate.
5645 * regcache.c (init_regcache_descr): Update.
5646 (read_register_gen): Update.
5647 (write_register_gen): Update.
5648 (supply_register): Update comment.
5649
5650 * sh-tdep.c (sh_gdbarch_init): Update.
5651 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5652 `regcache' and `gdbarch' parameters. Make `buffer' a void
5653 pointer. Update code.
5654 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5655 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5656 void pointer. Update code.
5657 (sh64_register_write): Delete.
5658 (sh4_register_read): Delete.
5659 (sh64_register_read): Delete.
5660 (sh4_register_write): Delete.
5661 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5662 void pointer, `to' parameter a void pointer.
5663 (sh_sh64_register_convert_to_raw): Ditto.
5664
5665 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5666
5667 * mips-tdep.c (mips_register_virtual_type): Use architecture
5668 invariant return values.
5669
5670 2002-08-01 Andrew Cagney <cagney@redhat.com>
5671
5672 * linux-proc.c: Include "gdb_string.h".
5673 * Makefile.in (linux-proc.o): Update dependency list.
5674
5675 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5676
5677 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5678 comment.
5679
5680 2002-08-01 Grace Sainsbury <graces@redhat.com>
5681
5682 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5683 to_insert_watchpoint, to_remove_watchpoint,
5684 to_stopped_by_watchpoint, to_stopped_data_address,
5685 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5686 target vecctor. Define their corresponding macros so they call
5687 them.
5688
5689 * target.c: Add default and debug versions of for
5690 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5691 to_insert_watchpoint, to_remove_watchpoint,
5692 to_stopped_by_watchpoint, to_stopped_data_address,
5693 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5694
5695 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5696
5697 * mips-tdep.c (mips_register_virtual_type): New function.
5698 (mips_gdbarch_init): Register mips_register_virtual_type()
5699 with gdbarch machinery.
5700 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5701 this file instead of tm-bigmips.h.
5702 (MIPS_REGSIZE): Delete this macro.
5703 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5704 multiarch version in mips-tdep.c will be found.
5705
5706 2002-08-01 Andrew Cagney <cagney@redhat.com>
5707
5708 * NEWS: Menion that CHILL has been made obsolete.
5709
5710 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5711 * stabsread.c (read_range_type): Ditto.
5712 * gdbtypes.h: Ditto.
5713 * language.c (binop_type_check): Ditto.
5714 (binop_result_type): Ditto.
5715 (integral_type): Ditto.
5716 (character_type): Ditto.
5717 (string_type): Ditto.
5718 (boolean_type): Ditto.
5719 (structured_type): Ditto.
5720 (lang_bool_type): Ditto.
5721 (binop_type_check): Ditto.
5722 * language.h (_LANG_chill): Ditto.
5723 * dwarfread.c (set_cu_language): Ditto.
5724 * dwarfread.c (CHILL_PRODUCER): Ditto.
5725 * dwarfread.c (handle_producer): Ditto.
5726 * expression.h (enum exp_opcode): Ditto.
5727 * eval.c: Ditto for comments.
5728 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5729 * expprint.c (print_subexp): Ditto.
5730 (print_subexp): Ditto.
5731 * valops.c (value_cast): Ditto.
5732 (search_struct_field): Ditto.
5733 * value.h (COERCE_VARYING_ARRAY): Ditto.
5734 * symfile.c (init_filename_language_table): Ditto.
5735 (add_psymbol_with_dem_name_to_list): Ditto.
5736 * valarith.c (value_binop): Ditto.
5737 (value_neg): Ditto.
5738 * valops.c (value_slice): Ditto.
5739 * symtab.h (union language_specific): Ditto.
5740 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5741 (SYMBOL_DEMANGLED_NAME): Ditto.
5742 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5743 * defs.h (enum language): Ditto.
5744 * symtab.c (got_symtab): Ditto.
5745 * utils.c (fprintf_symbol_filtered): Ditto.
5746
5747 * ch-typeprint.c: Make file obsolete.
5748 * ch-valprint.c: Make file obsolete.
5749 * ch-lang.h: Make file obsolete.
5750 * ch-exp.c: Make file obsolete.
5751 * ch-lang.c: Make file obsolete.
5752
5753 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5754 CHILL_LIB.
5755 (TARGET_FLAGS_TO_PASS): Ditto.
5756 (CHILLFLAGS): Obsolete.
5757 (CHILL): Obsolete.
5758 (CHILL_FOR_TARGET): Obsolete.
5759 (CHILL_LIB): Obsolete.
5760 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5761 ch-valprint.c.
5762 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5763 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5764 ch-lang.o.
5765 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5766 targets.
5767
5768 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5769
5770 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5771 This does not change anything at the moment, but will be helpful
5772 later when full Ada support is integrated.
5773
5774 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5775
5776 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5777 help message.
5778
5779 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5780
5781 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5782 and save it in a local variable. Use variable in later test.
5783
5784 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5785
5786 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5787 test. (Thanks to Daniel Jacobowitz.)
5788
5789 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5790
5791 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5792 (mips_abi_strings): Add "n64".
5793 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5794
5795 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5796
5797 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5798 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5799
5800 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5801
5802 * utils.c (host_pointer_to_address, address_to_host_pointer):
5803 Use gdb_assert() instead of explicit call to internal_error().
5804
5805 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5806
5807 * Makefile.in (rs6000-nat.o): Update dependencies.
5808
5809 From Nicholas Duffek:
5810 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5811 (aix-thread.o): New rule.
5812 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5813 * config/powerpc/aix432.mh: New file.
5814
5815 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5816
5817 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5818 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5819 (fetch_core_registers, ppc_linux_supply_gregset)
5820 (ppc_linux_supply_fpregset): New functions.
5821 (ppc_linux_regset_core_fns): New.
5822 (_initialize_ppc_linux_tdep): Call add_core_fns.
5823 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5824 and ppc_linux_supply_gregset.
5825 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5826 (supply_fpregset): Call ppc_linux_supply_fpregset.
5827 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5828 corelow.o.
5829 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5830
5831 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5832
5833 * symtab.c (lookup_symbol): Demangle before lowercasing.
5834
5835 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5836
5837 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5838 declaration.
5839 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5840 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5841 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5842 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5843 "gdb_string.h".
5844 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5845 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5846 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5847 (avr-tdep.o, mon960-rom.o): Ditto.
5848 (aout_stabs_gnu_h): Define.
5849 (symtab_h): Remove $(gdb_obstack_h).
5850
5851 2002-07-30 Jim Blandy <jimb@redhat.com>
5852
5853 Patch from David Carlton <carlton@math.stanford.edu>:
5854 * gdbinit.in: Move the `dir' commands that add GDB's own source
5855 directory to the search path to the end, so that the `gdb' source
5856 directory will be searched first.
5857
5858 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5859
5860 * gdb_obstack.h: New file.
5861 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5862 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5863 * objfiles.h: Include "gdb_obstack.h".
5864 * Makefile.in (gdb_obstack_h): Define.
5865 (symtab_h): Add $(gdb_obstack_h).
5866 (objfiles_h): Add $(gdb_obstack_h).
5867
5868 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5869 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5870 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5871 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5872 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5873 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5874 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5875 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5876
5877 * Makefile.in (bcache.o): Update dependencies.
5878 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5879 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5880 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5881 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5882 (stabsread.o, symfile.o, symmisc.o): Ditto.
5883 (symtab.o, typeprint.o, macroexp.o): Ditto.
5884 (macrotab.o, mdebugread.o): Ditto.
5885 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5886 (coff_ecoff_h, aout_aout64_h): Define.
5887 (aout_stabs_gnu_h, libaout_h): Define.
5888
5889 2002-07-29 Andrew Cagney <cagney@redhat.com>
5890
5891 * regcache.c (struct regcache_descr): Rename nr_registers to
5892 nr_cooked_registers. Revise comments describing the structure
5893 member fields.
5894 (init_regcache_descr): Update.
5895 (init_legacy_regcache_descr): Update.
5896 (read_register_gen, write_register_gen): When a cooked register in
5897 the raw register range, directly access the value from the raw
5898 register cache.
5899
5900 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5901
5902 * z8k-tdep.c: Do not include "obstack.h".
5903 * h8300-tdep.c, h8500-tdep.c: Ditto.
5904 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5905 * valprint.c, v850-tdep.c: Ditto.
5906 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5907 * mn10200-tdep.c: Ditto.
5908
5909 * Makefile.in (z8k-tdep.o): Update dependencies.
5910 (m68hc11-tdep.o, valprint.o): Ditto.
5911 (v850-tdep.o, d10v-tdep.o): Ditto.
5912 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5913 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5914 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5915 (sh_opc_h, gdb_sim_sh_h): Define.
5916 (elf_sh_h, elf_bfd_h): Define.
5917 (opcode_m68hc11_h): Define.
5918 (OPCODES_SRC, OPCODES_DIR): define.
5919 (OPCODES): Use $(OPCODES_DIR).
5920 (gdb_sim_d10v_h): Rename sim_d10v_h.
5921 (gdb_sim_arm_h): Rename sim_arm_h.
5922
5923 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5924
5925 * utils.c (host_pointer_to_address, address_to_host_pointer):
5926 Change internal_error() message to indicate function responsible
5927 for the error.
5928
5929 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5930
5931 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5932 calls to local_hex_string_custom().
5933
5934 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5935
5936 * irix5-nat.c: Move IRIX shared library support from here...
5937 * solib-irix.c: ...to here. Revised substantially to work with
5938 generic solib framework.
5939
5940 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5941 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5942 * mips-irix-tdep.c: New file.
5943
5944 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5945 (mips-irix-tdep.o, solib-irix.o): New rules.
5946 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5947 solib-irix.o.
5948 * config/mips/irix6.mt (TDEPFILES): Likewise.
5949 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5950
5951 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5952
5953 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5954 disabled (via ``#if 0'') includes.
5955
5956 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5957
5958 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5959 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5960 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5961 Add support for the fpscr register.
5962 * rs6000-nat.c (regmap, fetch_inferior_registers)
5963 (store_inferior_registers, fetch_core_registers): Likewise.
5964
5965 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5966
5967 * rs6000-nat.c (language.h): Include.
5968 (special_regs): Delete this array.
5969 (regmap): New function.
5970 (fetch_register, store_register): Use regmap() to map gdb
5971 register numbers to ptrace register numbers. Also, use
5972 outputs from regmap() to make decisions regarding type of
5973 ptrace() call to make. In particular, don't compare against
5974 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5975 (fetch_inferior_registers, store_inferior_registers): Where
5976 possible, obtain register numbers from tdep struct. Don't
5977 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5978 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5979 (LAST_UISA_SP_REGNUM): Delete.
5980
5981 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5982
5983 * rs6000-nat.c (ppc-tdep.h): Include.
5984 (fetch_registers, store_register, fetch_core_registers): Don't
5985 access registers[] directly. Instead, use supply_register() or
5986 regcache_collect() as appropriate.
5987 (find_toc_address): Format hex address with local_hex_string().
5988
5989 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5990
5991 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5992 bfd/elf32-frv.c.
5993
5994 2002-07-24 Tom Tromey <tromey@redhat.com>
5995
5996 * jv-exp.y: Marked all strings with _().
5997 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5998 internal_error.
5999 (MethodInvocation, CastExpression, parse_number, yyerror,
6000 java_type_from_name, push_expression_name, yylex): Typo fixes.
6001
6002 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6003
6004 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6005 (tee_file_flush, tee_file_write, tee_file_fputs)
6006 (tee_file_isatty): New.
6007 * ui-file.h (tee_file_new): Add prototype.
6008
6009 2002-07-24 Aidan Skinner <aidan@velvet.net>
6010
6011 * ada-lang.c: Change k&r style function definitions to prototyped
6012 form.
6013 * ada-typeprint.c: Change k&r style function definitions to prototyped
6014 form.
6015 * ada-valprint.c: Change k&r style function definitions to prototyped
6016 form.
6017
6018 2002-07-24 Andrew Cagney <cagney@redhat.com>
6019
6020 * README: Remove reference to remote-bug.
6021 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6022 remote-bug.c.
6023 (m88k-nat.o): Delete rule.
6024 (m88k-tdep.o): Delete rule.
6025 (remote-bug.o): Delete rule.
6026 * MAINTAINERS: Mark as obsolete.
6027 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6028 * m88k-tdep.c: Make file obsolete.
6029 * config/m88k/m88k.mh: Ditto.
6030 * config/m88k/delta88v4.mh: Ditto.
6031 * config/m88k/delta88v4.mt: Ditto.
6032 * config/m88k/delta88.mt: Ditto.
6033 * config/m88k/delta88.mh: Ditto.
6034 * remote-bug.c: Ditto.
6035 * config/m88k/tm-delta88.h: Ditto.
6036 * config/m88k/nm-delta88v4.h: Ditto.
6037 * config/m88k/xm-delta88.h: Ditto.
6038 * config/m88k/xm-dgux.h: Ditto.
6039 * config/m88k/tm-m88k.h: Ditto.
6040 * config/m88k/nm-m88k.h: Ditto.
6041 * config/m88k/tm-delta88v4.h: Ditto.
6042 * m88k-nat.c: Ditto.
6043 * cxux-nat.c: Ditto.
6044 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6045 and m88*-*-* obsolete.
6046 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6047 m88*-*-* obsolete.
6048
6049 2002-07-24 Andrew Cagney <cagney@redhat.com>
6050
6051 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6052 constant. Same for local pointer variables.
6053 (extract_signed_integer): Ditto.
6054 * defs.h (extract_unsigned_integer): Update.
6055 (extract_signed_integer): Update.
6056
6057 2002-07-24 Andrew Cagney <cagney@redhat.com>
6058
6059 * regcache.c (regcache_raw_write): Change buf parameter to a
6060 constant void pointer.
6061 (regcache_raw_read): Change buf parameter to a void pointer.
6062 (legacy_write_register_gen): Change myaddr parameter a constant
6063 void pointer.
6064 (supply_register): Change val parameter to a const void pointer.
6065 * regcache.h (regcache_raw_write): Update declaration.
6066 (regcache_raw_read): Update declaration.
6067 (supply_register): Update declaration.
6068
6069 2002-07-24 Tom Tromey <tromey@redhat.com>
6070
6071 * defs.h (gdb_readline_wrapper): Declare.
6072 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6073 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6074 * top.c (gdb_readline_wrapper): New function.
6075 (command_line_input): Use it.
6076
6077 2002-07-24 Andrew Cagney <cagney@redhat.com>
6078
6079 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6080 regcache_read and regcache_write.
6081 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6082 * regcache.c: Update.
6083 * sh-tdep.c (sh64_push_arguments): Update comment.
6084 (sh_pseudo_register_read): Update.
6085 (sh_pseudo_register_write): Update.
6086 (sh4_register_read): Update.
6087 (sh4_register_write): Update.
6088 (sh64_pseudo_register_read): Update.
6089 (sh64_pseudo_register_write): Update.
6090 (sh64_register_read): Update.
6091 (sh64_register_write): Update.
6092 * i386-tdep.c (i386_extract_return_value): Update.
6093 (i386_extract_struct_value_address): Update.
6094 (i386_extract_return_value): Update.
6095 * blockframe.c (generic_read_register_dummy): Update.
6096 (generic_call_dummy_register_unwind): Update
6097 * infrun.c (write_inferior_status_register): Update.
6098
6099 2002-07-23 Jim Blandy <jimb@redhat.com>
6100
6101 * parser-defs.h (expression_context_pc): Make this extern.
6102 (Thanks to Michael Snyder.)
6103
6104 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6105
6106 GDB 5.2.1 released from 5.2 branch.
6107 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6108 * README: Update to mention 5.2.1.
6109
6110 2002-07-23 Mark Salter <msalter@redhat.com>
6111
6112 * remote.c (remote_read_bytes): Fix check for error.
6113
6114 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6115
6116 * aix-thread.c (language.h): Include.
6117 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6118 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6119 Print newlines at end of debug messages.
6120 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6121 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6122
6123 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6124
6125 * aix-thread.c (ppc-tdep.h): Include.
6126 (special_register_p): New function.
6127 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6128 (store_regs_user_thread): Use register number information from
6129 gdbarch_tdep struct instead of hardcoded offsets relative to
6130 FIRST_UISA_SP_REGNUM.
6131 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6132 special_register_p() instead of using FPLAST_REGNUM and
6133 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6134 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6135 will be MQ's register number.
6136
6137 2002-07-22 Michael Snyder <msnyder@redhat.com>
6138
6139 * aix-thread.c (ops): Rename to aix_thread_ops.
6140 (base_ops): Rename to base_target.
6141 (ops_attach): Rename to aix_thread_attach.
6142 (ops_detach): Rename to aix_thread_detach.
6143 (ops_resume): Rename to aix_thread_detach.
6144 (ops_wait): Rename to aix_thread_wait.
6145 (ops_kill): Rename to aix_thread_kill.
6146 (init_ops): Rename to init_aix_thread_ops.
6147 (ops_fetch_register): Rename to aix_thread_fetch_register.
6148 (ops_store_register): Rename to aix_thread_store_register.
6149 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6150 (ops_thread_alive): Rename to aix_thread_thread_alive.
6151 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6152 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6153 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6154 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6155 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6156 (store_regs_lib): Rename to store_regs_user_thread.
6157 (store_regs_kern): Rename to store_regs_kernel_thread.
6158
6159 2002-07-22 Michael Snyder <msnyder@redhat.com>
6160
6161 * aix-thread.c (ops_prepare_to_store): Eliminate.
6162 (init_ops): Don't initialize ops.prepare_to_store.
6163 (store_regs_kern): Pre-fetch register buffers from child,
6164 because some registers may not be in the cache. Copy
6165 regs from register cache only if they are cached.
6166 (store_regs_lib): Copy regs from register cache only
6167 if they are cached.
6168 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6169 fill_gprs64): Ditto.
6170
6171 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6172
6173 * aix-thread.c (gdb_assert.h): Include.
6174 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6175 register sizes (from register cache) match size of buffer holding
6176 register data.
6177 (fill_sprs32): Change parameter types to match those in the ptrace()
6178 buffer.
6179 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6180 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6181
6182 2002-07-22 Michael Snyder <msnyder@redhat.com>
6183
6184 * aix-thread.c (supply_sprs64): Cosmetic change.
6185 (supply_sprs32): Cosmetic change.
6186 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6187 (fill_sprs64): Use regcache_collect instead of read_register.
6188 (store_regs_lib): Use regcache_collect instead of
6189 read_register. Use fill_sprs32 instead of fill_sprs64,
6190 if debugging a 32-bit architecture.
6191 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6192 out of the register cache, instead of passing a pointer into
6193 the register cache directly to ptrace. Use regcache_collect
6194 insteaad of read_register.
6195 (ops_prepare_to_store): Use target_read_registers instead
6196 of read_register_bytes.
6197
6198 2002-07-20 Aidan Skinner <aidan@velvet.net>
6199
6200 * MAINTAINERS: Add self under write after approval.
6201
6202 2002-07-20 Aidan Skinner <aidan@velvet.net>
6203
6204 * ada-tasks.c: Change k&r style function definitions to prototyped
6205 form.
6206
6207 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6208
6209 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6210 * x86-64-tdep.c: Include "objfiles.h".
6211 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6212 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6213
6214 2002-07-17 Michal Ludvig <michal@suse.cz>
6215
6216 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6217 (update_context): Initialise cfa variable.
6218
6219 2002-07-17 Michael Snyder <msnyder@redhat.com>
6220
6221 * aix-thread.c: Shorten some long lines.
6222 Bring comments into line with code spec.
6223
6224 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6225
6226 * infrun.c: Re-indent using gdb_indent.sh.
6227
6228 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6229
6230 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6231 Leave the indentation temporarily untouched, to minimize the diffs.
6232
6233 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6234
6235 * stabsread.c: Make os9k sections of the code obsolete,
6236 for real this time.
6237 * stabsread.h: Make os9k sections of the code obsolete.
6238
6239 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6240
6241 * linux-low.c (regsets_store_inferior_registers): Add free()
6242 at the end of a loop to prevent memory leak.
6243 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6244 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6245 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6246 line a comment.
6247 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6248
6249 2002-07-17 Jim Blandy <jimb@redhat.com>
6250
6251 * macrocmd.c (info_macro_command): Remove newline from error
6252 message.
6253
6254 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6255
6256 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6257 (sh_gdbarch_init): Use it for sh-dsp.
6258
6259 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6260
6261 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6262 64-bit DWARF2 format.
6263
6264 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6265
6266 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6267 <sys/proc.h> when not available.
6268
6269 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6270
6271 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6272 * stabsread.c: Make os9k sections of the code obsolete.
6273 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6274 * config/i386/i386os9k.mt: Make file obsolete.
6275 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6276 (COMMON_OBS): Remove os9kread.o
6277 (SFILES): Remove os9kread.c.
6278 (os9kread.o, remote-os9k.o): Make target obsolete.
6279 * remote-os9k.c: Make file obsolete.
6280 * os9kread.c: Make file obsolete.
6281 * Makefile.in
6282
6283 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6284
6285 * NEWS: Mention that the FR30 has been made obsolete.
6286 * fr30-tdep.c: Make file obsolete.
6287 * config/fr30/tm-fr30.h: Ditto.
6288 * config/fr30/fr30.mt: Ditto.
6289 * configure.tgt: Make fr30-*-elf obsolete.
6290 * MAINTAINERS: Make fr30-elf obsolete.
6291
6292 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6293
6294 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6295 found is not inside a section.
6296
6297 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6298
6299 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6300 strerror().
6301 (pdc_realloc): Use xrealloc() instead of realloc().
6302
6303 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6304
6305 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6306 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6307 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6308 macros.
6309
6310 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6311
6312 * aix-thread.c (ptrace_check): Eliminate goto.
6313 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6314 problem.
6315
6316 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6317
6318 * aix-thread.c (gdbcmd.h): Include.
6319 (DEBUG, DBG, DBG2, dbg): Eliminate.
6320 (debug_aix_thread): New static global.
6321 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6322 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6323 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6324 invocations to DBG and DBG2 macros to test against
6325 ``debug_aix_thread'' and call fprintf_unfiltered().
6326 (_initialize_aix_thread): Add new command "set debug aix-thread".
6327
6328 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6329
6330 From Gerhard Tonn <TON@de.ibm.com>:
6331 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6332 instead of supply_register.
6333
6334 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6335
6336 * dwarf2cfi.c: Include "gdb_assert.h".
6337 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6338 non-NULL.
6339 (update_context): Do not use __func__. Add missing ``break''.
6340 (update_context): Do not use __func__.
6341
6342 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6343
6344 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6345 and its setting. Set gdbarch instruction printing functions
6346 directly. For non-rs6000 case use new function
6347 gdb_print_insn_powerpc.
6348 (gdb_print_insn_powerpc): New function.
6349
6350 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6351
6352 * NEWS: Mention that the d30v has been marked obsolete.
6353 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6354 * configure.tgt: Mark d30v-*-* as obsolete.
6355 * d30v-tdep.c: Mark file as obsolete.
6356 * config/d30v/d30v.mt: Ditto.
6357 * config/d30v/tm-d30v.h: Ditto.
6358
6359 2002-07-13 Aidan Skinner <aidan@velvet.net>
6360
6361 * ada-tasks.c (add_task_entry): replace calls to
6362 malloc() with xmalloc
6363 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6364
6365 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6366 ada_finish_decode_line_1, all_sals_for_line
6367 ada_breakpoint_rewrite): replace calls to free() with xfree()
6368
6369 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6370
6371 From Nicholas Duffek (with minor changes by Martin Hunt,
6372 Louis Hamilton, and Kevin Buettner):
6373 * aix-thread.c: New file.
6374
6375 2002-07-12 Petr Sorfa <petrs@caldera.com>
6376
6377 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6378 complaint for invalid attribute class or form.
6379 (read_func_scope): DW_AT_frame_base
6380 better handling of DW_AT_block*.
6381 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6382 better handling of DW_AT_block*.
6383 (read_common_block): DW_AT_location
6384 better handling of DW_AT_block*.
6385 (read_partial_die): DW_AT_location better handling
6386 of DW_AT_block*.
6387 (new_symbol): DW_AT_external better handling of
6388 DW_AT_block*. Proper initialization of variable
6389 "addr".
6390 (attr_form_is_block): New function that returns true
6391 if the attribute's form is of DW_FORM_block*.
6392
6393 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6394
6395 * valops.c (find_method_list): Remove comment about
6396 removed STATIC_MEMFUNCP argument.
6397 (value_find_oload_method_list): Likewise.
6398
6399 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6400
6401 From Nicholas Duffek:
6402 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6403 target_new_objfile_hook.
6404
6405 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6406
6407 From Nicholas Duffek:
6408 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6409 csect.
6410
6411 2002-07-12 Andrew Cagney <cagney@redhat.com>
6412
6413 * MAINTAINERS: Mention --enable-sim-build-warnings.
6414 (m68hc11-elf): Disable sim build warnings.
6415 (m32r-elf): Mark as broken obsolete candidate.
6416 (x86_64-linux-gnu): Mark as buildable with -Werror.
6417 (arm-elf): Change -w to ``,'' which enables warnings but not
6418 -Werror.
6419
6420 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6421
6422 * bcache.h: Update copyright.
6423 (struct bstring, struct bcache): Move definition to "bcache.c".
6424 Replaced by opaque declaration.
6425 (bcache_xfree): Replace free_bcache.
6426 (bcache_xmalloc, bcache_memory_used): Declare.
6427
6428 * bcache.c: Update copyright.
6429 (struct bstring, struct bcache): Moved to here from "bcache.h".
6430 Update comments.
6431 (bcache_xmalloc, bcache_memory_used): New functions.
6432 (bcache_xfree): Replace function free_bcache.
6433
6434 * Makefile.in (objfiles.o): Add $(bcache_h).
6435 (objfiles_h): Remove $(bcache_h).
6436 (symfile.o): Add $(bcache_h).
6437
6438 * symmisc.c: Update copyright.
6439 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6440 (print_objfile_statistics): Use bcache_memory_used.
6441
6442 * symfile.c: Include "bcache.h".
6443 (reread_symbols): Use bcache_xfree.
6444 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6445 (add_psymbol_to_list): Pass psymbol_cache by value.
6446 (add_psymbol_with_dem_name_to_list): Ditto.
6447
6448 * objfiles.h: Update copyright.
6449 (struct bcache): Declare opaque. Do not include "bcache.h".
6450 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6451 bcache'' pointers.
6452 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6453
6454 * objfiles.c: Include "bcache.h". Update copyright.
6455 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6456 macro_cache.
6457 (free_objfile): Use bcache_xfree.
6458
6459 2002-07-11 Grace Sainsbury <graces@redhat.com>
6460
6461 * monitor.c (monitor_fetch_register): Make name a constant.
6462 (monitor_store_register): Same.
6463
6464 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6465
6466 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6467 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6468 (finish_block) For non-function blocks, hash the symbol table. For
6469 function blocks, mark the symbol table as unhashed.
6470 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6471 (msymbol_hash_iw): Likewise.
6472 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6473 value.
6474 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6475 (lookup_minimal_symbol): Likewise for both.
6476 * symtab.h (struct block): Add `hashtable' flag. Comment the
6477 hashtable.
6478 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6479 (ALL_BLOCK_SYMBOLS): Update.
6480 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6481 (struct symbol): Add `hash_next' pointer.
6482 * symtab.c (lookup_block_symbol): Search using the hash table when
6483 possible.
6484 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6485 (search_symbols, find_addr_symbol): Likewise.
6486
6487 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6488 (read_dst_symtab): Likewise.
6489 * jv-lang.c (get_java_class_symtab): Likewise.
6490 * mdebugread.c: Include "gdb_assert.h".
6491 (shrink_block): Assert that the block being modified is not hashed.
6492 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6493 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6494 symbols.
6495 (dump_symtab): Recognize hashed blocks.
6496 * printcmd.c (print_frame_args): Assert that function blocks do not
6497 have hashed symbol tables.
6498 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6499 (fill_in_ada_prototype, debug_print_block): Likewise.
6500 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6501
6502 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6503
6504 * stack.c (print_frame): Use result of frame_address_in_block()
6505 instead of fi->pc when evaluating symbols.
6506 (backtrace_command_1): Ditto.
6507
6508 2002-07-11 Andrew Cagney <cagney@redhat.com>
6509
6510 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6511 Make static.
6512
6513 * arm-tdep.c (arm_register_name): Make return type constant.
6514
6515 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6516
6517 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6518 prototype.
6519 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6520 * s390-tdep.c (s390_fp_regnum): Ditto.
6521 (s390_read_fp): Ditto.
6522 (s390_pop_frame): Ditto.
6523 (_initialize_s390_tdep): Ditto.
6524 * remote.c (get_remote_state): Ditto.
6525 * procfs.c (mappingflags): Ditto.
6526 * memattr.c (_initialize_mem): Ditto.
6527 * mcore-tdep.c (mcore_pop_frame): Ditto.
6528 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6529 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6530 * language.c (set_case_str): Ditto.
6531 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6532 * frv-tdep.c (new_variant): Ditto.
6533 (frv_stopped_data_address): Ditto.
6534 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6535 (context_alloc): Ditto.
6536 (frame_state_alloc): Ditto.
6537 (unwind_tmp_obstack_init): Ditto.
6538 (unwind_tmp_obstack_free): Ditto.
6539 (cfi_read_fp): Ditto.
6540 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6541 (cris_pop_frame): Ditto.
6542 * c-lang.c (scanning_macro_expansion): Ditto.
6543 (finished_macro_expansion): Ditto.
6544 (c_preprocess_and_parse): Ditto.
6545 * gdbarch.sh: Ditto.
6546 * gdbarch.h, gdbarch.c: Regenerate.
6547 * config/mn10200/tm-mn10200.h: Adjust indentation.
6548 * target.c: Adjust indentation.
6549 * symtab.h: Adjust indentation.
6550 * stabsread.h: Adjust indentation.
6551 * remote-es.c: Adjust indentation.
6552 * os9kread.c: Adjust indentation.
6553
6554 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6555
6556 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6557 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6558
6559 2002-07-10 Grace Sainsbury <graces@redhat.com>
6560
6561 * NEWS: Mention m68k, mcore multi-arching.
6562 * MAINTAINERS: Change status of m68k, mcore to reflect
6563 multi-arching.
6564
6565 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6566
6567 * valops.c (find_overload_match): Free oload_syms.
6568
6569 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6570
6571 Define HAVE_SYS_PROC_H if sys/proc.h exists
6572 * configure.in: Add check for sys/proc.h
6573 * config.in: Regenerate.
6574 * configure: Regenerate.
6575
6576 2002-07-09 Grace Sainsbury <graces@redhat.com>
6577
6578 * config/m68k/tm-m68k.h: Remove macros wrapped in
6579 #if !GDB_MULTI_ARCH.
6580
6581 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6582
6583 * config.in, configure: Regenerate.
6584
6585 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6586
6587 * dwarf2cfi.c: Include "gcore.h".
6588 (execute_stack_op): Fix implementation of the
6589 DW_OP_deref and DW_OP_deref_size operators by letting do their
6590 lookup in the target.
6591
6592 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6593
6594 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6595 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6596 tdep->sc_sp_offset.
6597
6598 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6599
6600 Fix PR gdb/595, gdb/602
6601 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6602 Don't call value_cast, just read the vtable pointer; update comments
6603 to match.
6604
6605 2002-07-05 Grace Sainsbury <graces@redhat.com>
6606
6607 * config/mcore/tm-mcore.h: Remove file.
6608 * config/mcore/mcore.mt: Remove definition of TM_FILE
6609 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6610
6611 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6612
6613 * i386bsd-tdep.c: Include "gdb_string.h".
6614
6615 2002-07-04 Grace Sainsbury <graces@redhat.com>
6616
6617 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6618 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6619 mcore-tdep.
6620 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6621 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6622 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6623 (RETVAL_REGNUM): Move macros from tm-mcore.h
6624 (mcore_reg_struct_has_addr): New function.
6625 (mcore_gdbarch_init): Added initializations for the macros removed
6626 from tm-mcore.h.
6627
6628 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6629
6630 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6631 traditonal string branding within the ELF header.
6632
6633 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6634
6635 * symtab.c (remove_params): New function.
6636 (make_symbol_overload_list): Use it instead of cplus_demangle.
6637 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6638
6639 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6640
6641 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6642
6643 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6644 New variables.
6645 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6646 and tdep->sigtramp_end.
6647 * i386obsd-nat.c: New file.
6648 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6649
6650 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6651 Don't call get_current_frame().
6652
6653 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6654
6655 * i386-nat.c (child_post_startup_inferior): New function
6656 calling i386_cleanup_dregs if
6657 I386_USE_GENERIC_WATCHPOINTS is defined.
6658 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6659 conditional to acknowledge that i386-nat.c has its
6660 own child_post_startup_inferior function.
6661
6662 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6663
6664 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6665 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6666 instead of MAX_REGISTER_RAW_SIZE.
6667 (i386_extract_return_value, i386_extract_struct_value_address):
6668 Convert to use regcache.
6669 (i386_gdbarch_init): Set max_register_raw_size and
6670 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6671 Set extract_return_value and extract_struct_value_address instead
6672 of their deprecated variants.
6673
6674 Convert i386 target to generic dummy frames.
6675 * i386-tdep.c: Include "symfile.h".
6676 (i386_frameless_signal_p): Consider a function to be frameless if
6677 the pc points at the first instruction of the function.
6678 (i386_frame_chain): Handle (generic) call dummies.
6679 (i386_frame_saved_pc): Likewise.
6680 (i386_frame_init_saved_regs): Remove code dealing with call
6681 dummies on the stack.
6682 (i386_push_dummy_frame): Removed.
6683 (i386_call_dummy_words): Removed.
6684 (i386_fix_call_dummy): Removed.
6685 (i386_push_return_address): New function.
6686 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6687 parameter, and don't call get_current_frame.
6688 (i386_pop_frame): New function.
6689 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6690 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6691 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6692 call_dummy_length to 0, set call_dummy_words to NULL, set
6693 sizeof_call_dummy_words to 0, set fix_call_dummy to
6694 generic_fix_call_dummy, set pc_in_call_dummy to
6695 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6696 generic_push_dummy_frame, set push_return_address to
6697 i386_push_return_address and set frame_chain_valid to
6698 generic_file_frame_chain_valid.
6699
6700 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6701
6702 * gdbarch.sh (struct regcache): Add opaque declaration.
6703 (EXTRACT_RETURN_VALUE): New architecture method.
6704 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6705 * gdbarch.h, gdbarch.c: Regenerate.
6706 * arch-utils.c (legacy_extract_return_value): New function.
6707 * arch-utils.h (legacy_extract_return_value): Declare.
6708 * values.c (value_being_returned): Re-enable code handling
6709 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6710 deprecated_grub_regcache_for_registers call to block handling
6711 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6712 (EXTRACT_RETURN_VALUE): Do not define.
6713
6714 2002-07-03 Grace Sainsbury <graces@redhat.com>
6715
6716 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6717 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6718 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6719 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6720 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6721 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6722 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6723 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6724 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6725 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6726 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6727 argument so the function fits the prototype in the architecture
6728 vector.
6729 (mcore_pop_frame): Remove argument so the function fits the
6730 prototype. Use get_current_frame instead of the argument.
6731 (mcore_push_arguments): Change type of struct_return so the
6732 function can be used in the architecture vector.
6733 (mcore_store_struct_return): Add.
6734 (mcore_frame_init_saved_regs): Add.
6735 (mcore_gdbarch_init): Add function calls to replace the macros
6736 removed from tm-mcore.h
6737
6738 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6739
6740 * infcmd.c (print_return_value): Remove compatibility code calling
6741 deprecated_grub_regcache_for_registers.
6742
6743 * values.c: Include "regcache.h".
6744 (value_being_returned): Update. Use
6745 deprecated_grub_regcache_for_registers to extract the register
6746 buffer address.
6747 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6748 ``struct regcache''.
6749 * Makefile.in (values.o): Add dependency on $(regcache_h).
6750
6751 * inferior.h (run_stack_dummy): Change type of second parameter to
6752 a ``struct regcache''.
6753 * valops.c (hand_function_call): Change type of retbuf to ``struct
6754 regcache''. Allocate using regcache_xmalloc, clean using
6755 make_cleanup_regcache_xfree.
6756 * infcmd.c (run_stack_dummy): Update. Use
6757 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6758
6759 * regcache.c (do_regcache_xfree): New function.
6760 (make_cleanup_regcache_xfree): New function.
6761 * regcache.h (make_cleanup_regcache_xfree): Declare.
6762
6763 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6764
6765 * event-top.c (command_line_handler): Don't read past
6766 beginning of buffer.
6767
6768 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6769
6770 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6771 struct frame_id.
6772 (varobj_create): Store frame_id for root.
6773 (varobj_gen_name): Use xasprintf.
6774 (varobj_update): Save and restore frame using get_frame_id() and
6775 frame_find_by_id().
6776 (create_child): Use xasprintf.
6777 (new_root_variable): Initialize frame_id.
6778 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6779 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6780 to prevent memory leak.
6781
6782 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6783
6784 * valops.c (hand_function_call): Move declaration of retbuf to
6785 start of function, allocate using malloc, add a cleanup but before
6786 the inf_status cleanup, cleanup the buffer. Rename local variable
6787 old_chain to inf_status_cleanup.
6788
6789 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6790
6791 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6792
6793 * cli/cli-decode.c (cmd_func_p): New function.
6794 (cmd_func): New function.
6795
6796 * command.h: Add cmd_func() and cmd_func_p().
6797
6798 2002-07-03 Grace Sainsbury <graces@redhat.com>
6799
6800 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6801 (REGISTER_SIZE): Remove.
6802 (MAX_REGISTER_RAW_SIZE): Remove.
6803 (REGISTER_VIRTUAL_TYPE): Remove.
6804 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6805 (REGISTER_NAME): Remove.
6806 (USE_GENERIC_DUMMY_FRAMES): Remove.
6807 (CALL_DUMMY): Remove.
6808 (CALL_DUMMY_START_OFFSET): Remove.
6809 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6810 (CALL_DUMMY_LOCATION): Remove.
6811 (FIX_CALL_DUMMY): Remove.
6812 (CALL_DUMMY_ADDRESS): Remove.
6813 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6814 (SAVE_DUMMY_FRAME_TOS): Remove.
6815 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6816 (mcore_register_virtual_type): New function.
6817 (mcore_register_byte): New function.
6818 (mcore_register_size): New function.
6819 (mcore_register_name): New function.
6820 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6821 macros removed from tm-mcore.h.
6822 (mcore_dump_tdep): Add.
6823 (_initialize_mcore_tdep): Add gdbarch_register call.
6824
6825 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6826
6827 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6828 frameless_look_for_prologue, such that we actually call this
6829 function.
6830
6831 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6832
6833 * frame.h (frame_address_in_block): New function.
6834
6835 * blockframe.c (frame_address_in_block): New function extracted
6836 from get_frame_block().
6837 (get_frame_block): Use frame_address_in_block().
6838 (block_innermost_frame): Use frame_address_in_block() to match
6839 the frame pc address against the block boundaries rather than
6840 the frame pc directly. This prevents a failure when a frame pc
6841 is actually a return-address pointing immediately after the end
6842 of the given block.
6843
6844 2002-07-02 Grace Sainsbury <graces@redhat.com>
6845
6846 * MAINTAINERS: Add self under write after approval.
6847
6848 2002-07-02 Grace Sainsbury <graces@redhat.com>
6849
6850 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6851 used in architecture vector. The default is
6852 m68k_local_breakpoint_from_pc.
6853 (m68k_local_breakpoint_from_pc): Add.
6854 (enum): Add register numbers from tm-m68k.h.
6855 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6856 vector.
6857 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6858 GDB_MULTI_ARCH_PARTIAL.
6859 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6860 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6861 m68k-tdep.c.
6862 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6863 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6864 to enum in m68k-tdep.c
6865
6866 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6867
6868 * solib-osf.c (open_map): Compute the list of shared libraries
6869 loaded by the inferior, rather than the list of libraries loaded
6870 by GDB itself. Otherwise, GDB ends up reading the symbols from
6871 the wrong shared libraries...
6872
6873 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6874
6875 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6876 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6877 macros.
6878 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6879 Remove functions.
6880 (FRAMELESS_SIGNAL): Remove function.
6881 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6882 i386_linux_saved_pc_after_call): Removed.
6883 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6884 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6885 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6886
6887 * i386-tdep.c (i386_frameless_signal_p): New function.
6888 (i386_frame_chain): Deal with frameless signals.
6889 (i386_sigtramp_saved_sp): New function.
6890 (i386_frame_saved_pc): Deal with frameless signals.
6891 (i386_saved_pc_after_call): Make sure the correct value is
6892 returned just after entry into a sigtramp.
6893 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6894 i386fbsd4_sc_sp_offset): New variables.
6895 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6896 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6897 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6898 similiar to what we already did for sc_pc_offset.
6899 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6900 tdep->sc_sp_offset.
6901
6902 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6903
6904 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6905
6906 * config/i386/tm-x86-64linux.h: New.
6907 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6908 definitions.
6909 * config/i386/nm-x86-64.h: Rename to ...
6910 * config/i386/nm-x86-64linux.h: ... this one.
6911 * config/i386/x86-64linux.mh: Reflect the above change.
6912
6913 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6914
6915 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6916 with sigcontext_addr. Add sc_sp_offset.
6917 (i386bsd_sigtramp_saved_pc): Remove prototype.
6918 (i386bsd_sicontext_addr): Add prototype.
6919 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6920 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6921 (i386_svr4_sigtramp_saved_pc): Removed.
6922 (i386_svr4_sigcontext_addr): New function.
6923 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6924 Initialize tdep->sigcontext_addr instead. Initialize
6925 tdep->sc_pc_offset and tdep->sc_sp_offset.
6926 (i386_gdbarch_init): Likewise.
6927 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6928 any more.
6929 (i386bsd_sigtramp_saved_pc): Remove function.
6930 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6931 Initialize tdep->sigcontext_addr instead. Initialize
6932 tdep->sc_pc_offset.
6933 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6934 of tdep->sigtramp_saved_pc.
6935 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6936 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6937 instead.
6938
6939 * i386-tdep.c (i386_frameless_function_invocation,
6940 i386_frame_num_args, i386_frame_init_saved_regs,
6941 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6942 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6943 i386_extract_return_value, i386_store_return_value,
6944 i386_extract_struct_value_address, i386_register_virtual_type,
6945 i386_register_convertible, i386_register_convert_to_virtual,
6946 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6947 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6948 static.
6949
6950 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6951
6952 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6953
6954 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6955 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6956 this macro. Include "value.h".
6957
6958 2002-06-30 Aidan Skinner <aidan@velvet.net>
6959
6960 * ada-exp.tab.c: remove as it's a generated file
6961 * ada-lex.c: remove as it's a generated file
6962
6963 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6964
6965 * config/i386/tm-i386.h (struct frame_info, struct
6966 frame_saved_regs, struct value, struct type): Remove forward
6967 declarations.
6968
6969 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6970 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6971 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6972 (FILL_FPXREGSET): Define.
6973
6974 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6975
6976 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6977 i[3456]86-*-netbsd* case.
6978 * config/i386/tm-obsd.h: Removed.
6979 * config/i386/obsd.mt: Removed.
6980 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6981 core-aout.o.
6982 (MH_CFLAGS): Add -DYYDEBUG=0.
6983
6984 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6985 i386nbsd_sc_pc_offset on OpenBSD too.
6986
6987 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6988 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6989 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6990 define.
6991 * i386bsd-tdep.c: Include "arch-utils.h".
6992 (i386bsd_aout_in_solib_call_trampoline): New function.
6993 (i386bsd_init_abi): Set in_solib_call_trampoline to
6994 i386bsd_aout_in_solib_call_trampoline.
6995 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6996 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6997
6998 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6999
7000 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7001 (struct obstack, struct bcache): Add opaque declarations.
7002 * Makefile.in (macrotab_h): Update
7003
7004 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7005
7006 * blockframe.c (generic_find_dummy_frame): Change return type to
7007 ``struct regcache''.
7008 (struct dummy_frame): Replace field ``registers'' with regcache, a
7009 struct regcache object.
7010 (generic_find_dummy_frame): Update.
7011 (generic_push_dummy_frame): Update. Use regcache_xfree,
7012 regcache_xmalloc and regcache_cpy.
7013 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7014 regcache_xfree.
7015 (deprecated_generic_find_dummy_frame): Update.
7016 (generic_read_register_dummy): Update. Use
7017 regcache_read_as_address.
7018 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7019 (generic_get_saved_register): Update. Use regcache_read.
7020
7021 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7022
7023 * Makefile.in (objfiles_h): Add $(bcache_h).
7024 * objfiles.h: Include "bcache.h".
7025
7026 * Makefile.in (symtab_h): Remove $(bcache_h).
7027 * symtab.h: Do not include "bcache.h".
7028
7029 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7030
7031 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7032 generic_func_frame_chain_valid.
7033
7034 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7035
7036 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7037 * config/i386/tm-fbsd.h: Likewise.
7038
7039 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7040
7041 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7042 generic_unwind_get_saved_register.
7043
7044 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7045
7046 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7047 * regcache.c (supply_register): Add missing argument to
7048 register_buffer call.
7049
7050 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7051
7052 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7053 Solaris /bin/grep does not not like it. From Peter Schauer.
7054
7055 2002-06-26 Tom Tromey <tromey@redhat.com>
7056
7057 * command.h (add_setshow_cmd): Declare.
7058 (add_setshow_cmd_full): Declare.
7059 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7060 returns void. Use add_setshow_cmd_full.
7061 (add_setshow_cmd_full): New function.
7062 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7063 (add_setshow_boolean_cmd): Likewise.
7064
7065 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7066
7067 * config/vax/tm-vax.h: Protect from multiple inclusion.
7068 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7069 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7070 * config/vax/tm-vaxbsd.h: ...here. New file.
7071 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7072
7073 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7074
7075 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7076 (BELIEVE_PCC_PROMOTION): Remove.
7077 (AP_REGNUM): Move to...
7078 * config/vax/nm-vax.h: ...here.
7079 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7080 (vax_breakpoint_from_pc): New function.
7081 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7082 and gdbarch_believe_pcc_promotion.
7083
7084 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7085
7086 * Makefile.in (vax_tdep_h): Define.
7087 (vax-tdep.o): Use $(vax_tdep_h).
7088 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7089 (vax_dump_tdep): New function.
7090 (_initialize_vax_tdep): Register vax_dump_tdep.
7091 * vax-tdep.h: Include osabi.h.
7092 (struct gdbarch_tdep): New.
7093
7094 2002-06-26 Andrew Cagney <cagney@redhat.com>
7095
7096 * frame.h (deprecated_generic_find_dummy_frame): Rename
7097 generic_find_dummy_frame.
7098 * blockframe.c (generic_find_dummy_frame): Make static.
7099 (deprecated_generic_find_dummy_frame): New function.
7100 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7101 generic_find_dummy_frame with deprecated_find_dummy_frame.
7102 (sh64_nofp_frame_init_saved_regs): Ditto.
7103 (sh_fp_frame_init_saved_regs): Ditto.
7104 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7105 (s390_frame_chain): Ditto.
7106 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7107
7108 2002-06-26 Grace Sainsbury <graces@redhat.com>
7109
7110 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7111 gdbarch vector are at the top.
7112 (NUM_REGS): Remove.
7113 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7114 (FRAME_ARGS_ADDRESS): Remove.
7115 (FRAME_LOCALS_ADDRESS): Remove.
7116 (FRAME_NUM_ARGS): Remove.
7117 (FRAME_ARGS_SKIP): Remove.
7118 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7119 (m68k_gdbarch_init): Add gdbarch initializations for macros
7120 undefined in tm-m68k.h
7121
7122 2002-06-26 Grace Sainsbury <graces@redhat.com>
7123
7124 * monitor.h: Add the function regname to monitor_ops
7125 structure. This way NUM_REGS does not have to be a constant.
7126 * monitor.c (monitor_fetch_register): Added support for regname
7127 function. The function is called if the array regnames is NULL.
7128 (monitor_store_register): Same.
7129 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7130 regnames array.
7131 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7132 cpu32bug_cmds.regname to point to new function.
7133 * abug-rom.c (abug_regname): Same as above.
7134 (init_abug_cmds): Same.
7135 * dbug-rom.c (dbug_regname): Same as above.
7136 (init_dbug_cmds): Same.
7137 * remote-est.c (est_regname): Same.
7138 (init_est_cmds): Same.
7139 * rom68k-rom.c (rom68k_regname): Same.
7140 (init_rom68k_cmds): Same.
7141
7142 2002-06-25 Tom Tromey <tromey@redhat.com>
7143
7144 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7145
7146 2002-06-25 Andrew Cagney <cagney@redhat.com>
7147
7148 * infrun.c (stop_registers): Change variable's type to ``struct
7149 regcache'''.
7150 (xmalloc_inferior_status): Delete function.
7151 (free_inferior_status): Delete function.
7152 (normal_stop): Use regcache_cpy.
7153 (struct inferior_status): Change type of fields ``stop_registers''
7154 and ``registers'' to ``struct regcache''.
7155 (write_inferior_status_register): Use regcache_write.
7156 (save_inferior_status): Instead of calling
7157 xmalloc_inferior_status, allocate the inf_status buffer directly.
7158 Use regcache_dup_no_passthrough and regcache_dup to save the
7159 buffers.
7160 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7161 Replace the stop_registers regcache instead of overriding it. Use
7162 regcache_xfree. Instead of calling free_inferior_status, xfree
7163 the buffer directly.
7164 (discard_inferior_status): Use regcache_xfree. Instead of calling
7165 free_inferior_status, xfree the buffer directly.
7166 (build_infrun): Use regcache_xmalloc.
7167 (_initialize_infrun): Delete redundant call to build_infrun.
7168
7169 * Makefile.in (infcmd.o): Add $(regcache_h).
7170
7171 * infcmd.c: Include "regcache.h".
7172 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7173 obtain the address of `stop_registers' register buffer.
7174 (print_return_value): Ditto.
7175
7176 * inferior.h (struct regcache): Add opaque declaration.
7177 (stop_registers): Change variable's declared type to ``struct
7178 regcache''.
7179
7180 2002-06-24 Tom Tromey <tromey@redhat.com>
7181
7182 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7183 * target.c (initialize_targets): Fixed typo in
7184 trust-readonly-sections `show' documentation.
7185
7186 * main.c: Marked all strings with _().
7187
7188 2002-06-24 Don Howard <dhoward@redhat.com>
7189
7190 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7191 that means max CORE_ADDR+1.
7192 (lookup_mem_region): Ditto.
7193 (mem_info_command): Ditto.
7194
7195 2002-06-24 Grace Sainsbury <graces@redhat.com>
7196
7197 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7198 (REGISTER_BYTES_OK): Remove.
7199 (REGISTER_BYTES): Remove.
7200 (STORE_STRUCT_RETURN): Remove.
7201 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7202 (STORE_RETURN_VALUE): Remove.
7203 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7204 (FRAME_CHAIN): Remove.
7205 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7206 (FRAME_SAVED_PC): Remove.
7207 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7208 (m68k_store_struct_return): Add.
7209 (m68k_deprecated_extract_return_value): Add.
7210 (m68k_deprecated_extract_struct_value_address): Add.
7211 (m68k_store_return_value): Add.
7212 (m68k_frame_chain): Add.
7213 (m68k_frameless_function_invocation): Add.
7214 (m68k_frame_saved_pc): Add.
7215 (m68k_gdbarch_init): added set_gdbarch calls for new
7216 functions and deleted macros.
7217
7218 2002-06-23 Tom Tromey <tromey@redhat.com>
7219
7220 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7221 (ALLDEPFILES): Likewise.
7222 (udiheaders): Removed.
7223 (udip2soc.o): Likewise.
7224 (udi2go32.o): Likewise.
7225 (udr.o): Likewise.
7226 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7227
7228 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7229
7230 * infrun.c (_initialize_infrun): Delete unnecessary call to
7231 build_infrun.
7232
7233 * regcache.h: Update comments describing the regcache_cpy family
7234 of functions.
7235 (regcache_save, regcache_restore): Delete declaration.
7236 (regcache_save_no_passthrough): Delete declaration.
7237 (regcache_restore_no_passthrough): Delete declaration.
7238 * regcache.c (regcache_save): Delete function.
7239 (regcache_save_no_passthrough): Delete function.
7240 (regcache_restore): Delete function.
7241 (regcache_restore_no_passthrough): Delete function.
7242
7243 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7244
7245 * config/m68k/tm-m68k.h: Fix typo.
7246 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7247 (m68k_frame_init_saved_regs): Declare.
7248
7249 2002-06-21 Jim Blandy <jimb@redhat.com>
7250
7251 Remove some vestiges of Harris 88k support.
7252 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7253 register numbering quirk.
7254 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7255 odd symbols occurring in Harris 88k ELF targets.
7256
7257 2002-06-21 Tom Tromey <tromey@redhat.com>
7258
7259 * gdb_locale.h: New file.
7260 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7261 (defs_h): Added gdb_locale.h.
7262 * configure, config.in: Rebuilt.
7263 * configure.in (PACKAGE): Define.
7264 * defs.h: Include gdb_locale.h.
7265 * main.c (captured_main): Call setlocale, bindtextdomain,
7266 textdomain.
7267
7268 2002-06-21 Dave Brolley <brolley@redhat.com>
7269
7270 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7271 * config/frv/frv.mt: New file.
7272 * config/frv/tm-frv.h: New file.
7273 * configure.tgt: Support frv-*-*.
7274 * Makefile.in (frv-tdep.o): New target.
7275 * frv-tdep.c: New file.
7276 * NEWS: Mention frv.
7277
7278 2002-06-21 Dave Brolley <brolley@redhat.com>
7279
7280 * MAINTAINERS: Add self to "Write After Approval" list.
7281
7282 2002-06-21 Grace Sainsbury <graces@redhat.com>
7283
7284 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7285 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7286 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7287 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7288 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7289
7290 * m68k-tdep.c: Include arch-utils.h
7291 (m68k_register_raw_size): Add.
7292 (m68k_register_virtual_size): Add.
7293 (m68k_register_virtual_type): Add.
7294 (m68k_register_name): Add.
7295 (m68k_stack_align): Add.
7296 (m68k_register_byte): Add.
7297 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7298 tm-m68k.h.
7299
7300 2002-06-21 Grace Sainsbury <graces@redhat.com>
7301
7302 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7303 m68k_find_saved_regs.
7304 (m68k_pop_frame): Removed saved_regs structure, and replaced
7305 references to it with frame->saved_regs.
7306 (m68k_gdbarch_init): Added function calls to initialize the
7307 gdbarch structure.
7308 (m68k_fix_call_dummy): Add.
7309 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7310 (CALL_DUMMY): Remove.
7311 (CALL_DUMMY_LENGTH): Remove.
7312 (CALL_DUMMY_START_OFFSET): Remove.
7313 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7314 (FIX_CALL_DUMMY): Remove.
7315 (PUSH_DUMMY_FRAME): Remove.
7316 (POP_FRAME): Remove.
7317
7318 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7319
7320 * parse.c (parse_fprintf): New function used to avoid calls to
7321 fprintf in bison parser generated debug code.
7322 * parser-defs.h: Declaration of new parse_fprintf function.
7323 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7324 Set YYDEBUG to 1 by default.
7325 Set YYFPRINTF as parse_fprintf.
7326
7327 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7328
7329 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7330 encoding anymore.
7331 (pointer_encoding, enum ptr_encoding): New.
7332 (execute_cfa_program): Take care about pointer encoding.
7333 (dwarf2_build_frame_info): Only call parse_frame_info for
7334 .debug_frame and .eh_frame.
7335 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7336 fixed augmentation handling, added relative addressing,
7337 ignore duplicate FDEs. Added comments.
7338 * dwarf2cfi.c: Reindented.
7339
7340 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7341
7342 * event-top.c (command_handler): Don't use space_at_cmd_start
7343 unless there is sbrk() on the host. Assign time and space data
7344 to union fields of the appropriate length.
7345
7346 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7347
7348 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7349 x86_64_register_name. Return type changed to 'const char *'.
7350 (x86_64_register_name2nr): Rename to x86_64_register_number.
7351 (x86_64_gdbarch_init): Update to reflect the change.
7352 * x86-64-tdep.h: Ditto.
7353 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7354 (supply_fpregset): Ditto.
7355
7356 2002-06-19 Andrew Cagney <cagney@redhat.com>
7357
7358 * regcache.h: Update copyright.
7359 (struct regcache, struct gdbarch): Add opaque declarations.
7360 (current_regcache): Declare global variable.
7361 (regcache_read, regcache_write): Add gdbarch parameter.
7362 (regcache_save, regcache_save_no_passthrough)
7363 (regcache_restore, regcache_restore_no_passthrough)
7364 (regcache_dup, regcache_dup_no_passthrough)
7365 (regcache_cpy, regcache_cpy_no_passthrough)
7366 (deprecated_grub_regcache_for_registers)
7367 (deprecated_grub_regcache_for_register_valid)
7368 (regcache_valid_p): Add function declarations.
7369
7370 * regcache.c: Update copyright.
7371 (regcache_descr_handle): New global variable.
7372 (struct regcache_descr): Define.
7373 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7374 (regcache_descr, xfree_regcache_descr): New functions.
7375 (struct regcache): Define.
7376 (regcache_xmalloc, regcache_xfree): New functions.
7377 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7378 (regcache_dup, regcache_dup_no_passthrough): New functions.
7379 (regcache_valid_p, regcache_read_as_address): New functions.
7380 (deprecated_grub_regcache_for_registers): New function.
7381 (deprecated_grub_regcache_for_register_valid): New function.
7382 (current_regcache): New global variable.
7383 (register_buffer): Add regcache parameter. Update calls.
7384 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7385 (read_register_gen, write_register_gen): Update register_buffer
7386 call. Test for legacy_p instead of gdbarch_register_read_p or
7387 gdbarch_register_write_p.
7388 (regcache_collect): Update register_buffer call.
7389 (build_regcache): Rewrite. Use deprecated grub functions.
7390 (regcache_save, regcache_save_no_passthrough): New functions.
7391 (regcache_restore, regcache_restore_no_passthrough): New
7392 functions.
7393 (_initialize_regcache): Create the regcache_data_handle. Swap
7394 current_regcache global variable.
7395
7396 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7397 parameter to regcache_read and regcache_write calls.
7398 (sh4_register_read): Ditto.
7399 (sh64_pseudo_register_read): Ditto.
7400 (sh64_register_read): Ditto.
7401 (sh_pseudo_register_write): Ditto.
7402 (sh4_register_write): Ditto.
7403 (sh64_pseudo_register_write): Ditto.
7404 (sh64_register_write): Ditto.
7405
7406 * defs.h (XCALLOC): Define.
7407
7408 2002-06-19 Grace Sainsbury <graces@redhat.com>
7409
7410 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7411 * m68k-tdep.c (m68k_gdbarch_init): Added.
7412 (m68k_dump_tdep): Added.
7413
7414 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7415
7416 * ada-lang.c (fill_in_ada_prototype): Update comment.
7417
7418 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7419
7420 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7421 MIPS_ABI_LAST.
7422 (mips_abi_string, mips_abi_strings): New.
7423 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7424 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7425 tdep->mips_abi_string. Honor mips_abi_string. Default to
7426 O32 if no ABI is found.
7427 (mips_dump_tdep): Use mips_abi_strings.
7428 (mips_abi_update): New function.
7429 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7430 ``set mips abi'' and ``show mips abi''. Check the size of
7431 mips_abi_strings.
7432
7433 2002-06-19 Andrew Cagney <cagney@redhat.com>
7434
7435 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7436 constant.
7437
7438 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7439
7440 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7441 current frame using only the first stack size adjustment. All
7442 subsequent size adjustments are not considered to be part of
7443 the "static" part of the current frame.
7444 Compute the address of the saved registers relative to the
7445 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7446 in use in this frame.
7447
7448 2002-06-18 Don Howard <dhoward@redhat.com>
7449
7450 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7451 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7452 suggesting this solution.
7453
7454 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7455
7456 * config/romp/xm-rtbsd.h: Delete file.
7457 * config/romp/rtbsd.mh: Delete file.
7458
7459 2002-06-18 Keith Seitz <keiths@redhat.com>
7460
7461 * breakpoint.c (condition_command): Post breakpoint_modify
7462 when a condition is added to an existing breakpoint.
7463 (commands_command): Likewise for commands.
7464 (set_ignore_count): Likewise for ignore counts.
7465 If no tty, do not simply return, still need to send event
7466 notification.
7467 (ignore_command): Only print a newline if the command came
7468 from a tty.
7469 Don't call breakpoints_changed, since this is now properly
7470 handled by set_ignore_count.
7471
7472 2002-06-18 Andrew Cagney <cagney@redhat.com>
7473
7474 * MAINTAINERS: Note that cris-elf target can be compiled with
7475 -Werror.
7476 * cris-tdep.c (cris_register_name): Make return type constant.
7477 (cris_breakpoint_from_pc): Ditto.
7478
7479 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7480
7481 * frame.h (struct frame_info): Change type of context to
7482 'struct context'.
7483
7484 2002-06-17 Andrew Cagney <cagney@redhat.com>
7485
7486 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7487 pointer.
7488 * gdbarch.h, gdbarch.c: Regenerate.
7489 * config/mips/tm-mips.h (mips_register_name): Update.
7490 * i386-tdep.h (i386_register_name): Update.
7491 * mips-tdep.c (mips_register_name): Update
7492 * alpha-tdep.c (alpha_register_name): Update.
7493 * arch-utils.c (legacy_register_name): Update.
7494 * arch-utils.h (legacy_register_name): Update.
7495 * avr-tdep.c (avr_register_name): Update.
7496 * ia64-tdep.c (ia64_register_name): Update.
7497 * i386-tdep.c (i386_register_name): Update.
7498 * sparc-tdep.c (sparc32_register_name): Update.
7499 (sparc64_register_name): Update.
7500 (sparclite_register_name): Update.
7501 (sparclet_register_name): Update.
7502 * sh-tdep.c (sh_generic_register_name): Update.
7503 (sh_sh_register_name): Update.
7504 (sh_sh3_register_name): Update.
7505 (sh_sh3e_register_name): Update.
7506 (sh_sh_dsp_register_name): Update.
7507 (sh_sh3_dsp_register_name): Update.
7508 (sh_sh4_register_name): Update.
7509 (sh_sh64_register_name): Update.
7510 * s390-tdep.c (s390_register_name): Update.
7511 * rs6000-tdep.c (rs6000_register_name): Update.
7512 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7513 (ns32k_register_name_32382): Update.
7514 * d10v-tdep.c (d10v_ts2_register_name): Update.
7515 (d10v_ts3_register_name): Update.
7516 * xstormy16-tdep.c (xstormy16_register_name): Update.
7517 * vax-tdep.c (vax_register_name): Update.
7518 * v850-tdep.c (v850_register_name): Update.
7519 * m68hc11-tdep.c (m68hc11_register_name): Update.
7520 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7521 (am33_register_name): Update.
7522
7523 2002-06-17 Grace Sainsbury <graces@redhat.com>
7524
7525 * m68k-tdep.c: Reindented.
7526
7527 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7528
7529 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7530 list of predefined types.
7531
7532 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7533
7534 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7535 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7536 REGISTER_CONVERT_TO_RAW): Remove defines.
7537 (i386_register_virtual_type, i386_register_convertible,
7538 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7539 Remove prototypes.
7540 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7541 macros mentioned above.
7542
7543 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7544 (i386lynx_saved_pc_after_call): Remove prototype.
7545 * i386ly-tdep.c: Include "i386-tdep.h".
7546 (i386lynx_saved_pc_after_call): Make static. Use
7547 read_memory_nobpt instead of read_memory. Use
7548 read_memory_unsigned_integer instead of read_memory_integer.
7549 (i386lynx_init_abi): New function.
7550 (i386lynx_coff_osabi_sniffer): New function.
7551 (_initialize_i386bsd_tdep): New function.
7552
7553 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7554 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7555 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7556 (i386_fix_call_dummy): Remove prototype.
7557 * i386-tdep.c (i386_call_dummy_words): New variable.
7558 (i386_gdbarch_init): Adjust for removal of the
7559 macros mentioned above.
7560
7561 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7562
7563 * command.h (add_setshow_auto_boolean_cmd): Replace
7564 add_set_auto_boolean_cmd.
7565 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7566 add_set_auto_boolean_cmd.
7567 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7568 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7569 mask-address'' command.
7570 (show_mask_address): Add cmd parameter.
7571 * remote.c (add_packet_config_cmd): Update. Change type of
7572 set_func and show_func to cmd_sfunc_ftype.
7573 (_initialize_remote): Update `set remote Z-packet'
7574 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7575 (show_remote_protocol_e_packet_cmd): Ditto.
7576 (show_remote_protocol_E_packet_cmd): Ditto.
7577 (show_remote_protocol_P_packet_cmd): Ditto.
7578 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7579 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7580 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7581 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7582 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7583 (show_remote_protocol_Z_packet_cmd): Ditto.
7584 (show_remote_protocol_binary_download_cmd): Ditto.
7585 (show_remote_cmd): Pass NULL to all of above.
7586
7587 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7588
7589 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7590 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7591 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7592 POP_FRAME): Remove defines.
7593 (i386_push_arguments, i386_store_struct_return,
7594 i386_extract_return_value, i386_store_return_value,
7595 i386_extract_struct_value_address, i386_push_dummy_frame,
7596 i386_pop_frame): Renove prototypes.
7597 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7598 macros mentioned above.
7599
7600 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7601
7602 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7603 add_set_boolean_cmd.
7604 (add_setshow_cmd): New function.
7605 * command.h (add_setshow_boolean_cmd): Replace
7606 add_set_boolean_cmd.
7607 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7608 and ``set rdiromatzero''.
7609 * maint.c (_initialize_maint_cmds): Update commented out code.
7610 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7611 * target.c (initialize_targets): Update `set
7612 trust-readonly-sections'.
7613 * remote.c (_initialize_remote): Update `set remotebreak'.
7614
7615 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7616
7617 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7618 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7619 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7620 fit into multi-arch framework.
7621 (i386_breakpoint_from_pc): New function.
7622 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7623 above.
7624
7625 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7626 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7627 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7628 (i386_frameless_function_invocation, i386_frame_num_args,
7629 i386_frame_init_saved_regs): Remove prototypes.
7630 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7631 macros mentioned above.
7632
7633 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7634
7635 * cli/cli-decode.c (set_cmd_cfunc): Update.
7636 (set_cmd_sfunc): Update.
7637 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7638 (set_cmd_sfunc, set_cmd_cfunc): Update.
7639 * cli/cli-decode.h: Update.
7640
7641 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7642
7643 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7644 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7645
7646 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7647
7648 * defs.h (auto_boolean): Declare enum.
7649 * command.h (cmd_auto_boolean): Delete enum.
7650 * mips-tdep.c (mask_address_var): Update.
7651 (mips_mask_address_p): Update.
7652 (show_mask_address): Update.
7653 * remote.c (struct packet_config): Update.
7654 (update_packet_config): Update.
7655 (show_packet_config_cmd): Update.
7656 (packet_ok): Update.
7657 (add_packet_config_cmd): Update.
7658 (_initialize_remote):
7659 * command.h: Update.
7660 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7661 (do_setshow_command): Update.
7662 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7663 * cli/cli-decode.h: Update.
7664
7665 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7666
7667 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7668 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7669 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7670 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7671 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7672 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7673
7674 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7675 list of DJGPP COFF targets.
7676
7677 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7678 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7679 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7680 (FP0_REGNUM): Remove define.
7681 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7682 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7683 (i386_register_virtual_size): Remove protoype.
7684 * i386-tdep.c (i386_register_virtual_size): Removed.
7685 (i386_extract_return_value, i386_store_return_value): Use
7686 FP0_REGNUM instead of NUM_FREGS to determine whether the
7687 floating-point registers are available.
7688 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7689 Adjust for removal of macros mentioned above.
7690
7691 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7692
7693 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7694 comments.
7695 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7696 Remove prototypes.
7697 (supply_gregset, fill_gregset): Remove use of register keyword and
7698 remove declaration for regmap. Use I386_NUM_GREGS instead of
7699 NUM_REGS and NUM_FREGS.
7700 (FPREGSET_FSAVE_OFFSET): Remove.
7701 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7702 NUM_FREGS to determine whether the floating-point registers are
7703 available.
7704
7705 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7706 gnu_store_registers): Replace usage of NUM_GREGS with
7707 I386_NUM_GREGS.
7708
7709 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7710 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7711 usage of NUM_GREGS with I386_NUM_GREGS.
7712
7713 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7714
7715 * i386bsd-nat.c: Include "i386-tdep.h".
7716 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7717 I386_NUM_GREGS.
7718
7719 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7720 and associated comment. They no longer make any sense, since we
7721 don't use this file anymore on Linux.
7722
7723 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7724 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7725 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7726 elements in these arrays.
7727 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7728 MAX_NUM_REGS.
7729
7730 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7731
7732 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7733 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7734
7735 2002-06-14 Andrew Cagney <cagney@redhat.com>
7736
7737 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7738 EXTRACT_RETURN_VALUE.
7739 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7740 EXTRACT_STRUCT_VALUE_ADDRESS.
7741 * gdbarch.h, gdbarch.c: Regenerate.
7742
7743 * values.c (value_being_returned): Handle
7744 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7745 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7746
7747 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7748 * arm-tdep.c (arm_gdbarch_init): Update.
7749 * avr-tdep.c (avr_gdbarch_init): Update.
7750 * cris-tdep.c (cris_gdbarch_init): Update.
7751 * d10v-tdep.c (d10v_gdbarch_init): Update.
7752 * ia64-tdep.c (ia64_gdbarch_init): Update.
7753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7754 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7755 * s390-tdep.c (s390_gdbarch_init): Update.
7756 * sh-tdep.c (sh_gdbarch_init): Update.
7757 * s390-tdep.c (s390_gdbarch_init): Update.
7758 * sparc-tdep.c (sparc_gdbarch_init): Update.
7759 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7760 * v850-tdep.c (v850_gdbarch_init): Update.
7761 * vax-tdep.c (vax_gdbarch_init): Update.
7762 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7764
7765 * config/arc/tm-arc.h: Update.
7766 * config/d30v/tm-d30v.h: Update.
7767 * config/fr30/tm-fr30.h: Update.
7768 * config/h8300/tm-h8300.h: Update.
7769 * config/h8500/tm-h8500.h: Update.
7770 * config/i386/tm-i386.h: Update.
7771 * config/i386/tm-ptx.h: Update.
7772 * config/i386/tm-symmetry.h: Update.
7773 * config/i960/tm-i960.h: Update.
7774 * config/m32r/tm-m32r.h: Update.
7775 * config/m68k/tm-delta68.h: Update.
7776 * config/m68k/tm-linux.h: Update.
7777 * config/m68k/tm-m68k.h: Update.
7778 * config/m88k/tm-m88k.h: Update.
7779 * config/mcore/tm-mcore.h: Update.
7780 * config/mips/tm-mips.h: Update.
7781 * config/mn10200/tm-mn10200.h: Update.
7782 * config/pa/tm-hppa.h: Update.
7783 * config/pa/tm-hppa64.h: Update.
7784 * config/sparc/tm-sp64.h: Update.
7785 * config/sparc/tm-sparc.h: Update.
7786 * config/sparc/tm-sparclet.h: Update.
7787 * config/z8k/tm-z8k.h: Update.
7788
7789 2002-06-14 Andrew Cagney <cagney@redhat.com>
7790
7791 * Makefile.in (i386_linux_tdep_h): Define.
7792 (i386_tdep_h, i387_tdep_h): Define.
7793 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7794 $(i386_tdep_h) and $(i387_tdep_h).
7795 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7796
7797 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7798
7799 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7800 Already covered by the default.
7801
7802 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7803 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7804 (i386_gdbarch_init): Initialize long_double_format and long_double
7805 bit.
7806
7807 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7808 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7809 Move these to ...
7810 * config/i386/i386sol2.mh: ... here.
7811 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7812 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7813 (SIGCONTEXT_PC_OFFSET): Remove define.
7814 (IN_SIGTRAMP): Remove define.
7815 * i386-sol2-tdep.c: New file.
7816
7817 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7818 * config/i386/tm-i386nw.h: Removed.
7819
7820 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7821 USE_STRUCT_CONVENTION): Remove defines.
7822 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7823 (get_longjmp_target): Remove prototype.
7824 (IN_SIGTRAMP): Remove define.
7825 (i386bsd_in_sigtramp): Remove prototype.
7826 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7827 function. Update comment accordingly
7828 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7829 (FRAME_SAVED_PC): Remove define.
7830 (i386bsd_frame_saved_pc): Remove prototype.
7831 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7832 GET_LONGJMP_TARGET): Remove defines.
7833 (get_longjmp_target): Remove prototype.
7834 (IN_SIGTRAMP): Remove define.
7835 (i386bsd_in_sigtramp): Remove prototype.
7836 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7837 function. Update comment accordingly
7838 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7839 (FRAME_SAVED_PC): Remove define.
7840 (i386bsd_frame_saved_pc): Remove prototype.
7841 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7842 Remove prototype.
7843 (USE_STRUCT_CONVENTION): Remove prototype.
7844 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7845 declaration.
7846 (_initialize_i386bsd_nat): Revise logic to determine some
7847 constants at compile time when compiling a native GDB. Warn if
7848 things don't match up with what we expect.
7849 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7850 Remove variables.
7851 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7852 to use date stored in `struct gdbarch_tdep'.
7853 (i386bsd_sigcontext_offset): Remove varaible.
7854 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7855 stored in `struct gdbarch_tdep'.
7856 (i386bsd_frame_saved_pc): Make static.
7857 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7858 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7859 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7860 i386fbsd4_sc_pc_offset): New variables.
7861 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7862 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7863 functions.
7864 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7865 functions.
7866 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7867 Modify the value of i386fbsd_sigtramp_start and
7868 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7869 i386fbsd_sigtramp_end.
7870 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7871 function.
7872
7873 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7874 define to i386-linux-tdep.h.
7875 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7876 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7877 defines.
7878 (i386_linux_register_name, i386_linux_register_byte,
7879 i386_linux_register_raw_size): Remove prototypes.
7880 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7881 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7882 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7883 TARGET_WRITE_PC): Remove defines.
7884 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7885 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7886 i386_linux_write_pc): Remove prototypes.
7887 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7888 (get_longjmp_target): Remove prototype.
7889 * i386-linux-tdep.h: New file.
7890 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7891 * i386-linux-tdep.c: Include "i386-tdep.h" and
7892 "i386-linux-tdep.h".
7893 (i386_linux_register_name, i386_linux_register_byte,
7894 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7895 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7896 Make static.
7897 (i386_linux_init_abi): New function.
7898 (_initialize_i386_linux_tdep): New function.
7899
7900 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7901 (i386_saved_pc_after_call): Remove prototype.
7902 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7903 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7904 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7905 (i386_register_name, i386_stab_reg_to_regnum,
7906 i386_dwarf_reg_to_regnum): Remove prototypes.
7907 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7908 SIZEOF_SSE_REGS): Remove defines.
7909 (REGISTER_BYTES): Remove define.
7910 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7911 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7912 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7913 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7914 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7915 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7916 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7917 (get_longjmp_target): Remove prototype.
7918 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7919 (sigtramp_saved_pc): Remove define.
7920 (i386v4_sigtramp_saved_pc): Remove prototype.
7921 * config/i386/tm-go32.h (FRAME_CHAIN,
7922 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7923 (i386go32_frame_saved_pc): Remove prototype.
7924 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7925 (get_longjmp_target): Remove prototype.
7926 * i386-tdep.h: Include "osabi.h".
7927 (enum i386_abi): Removed.
7928 (enum struct_return): New enum.
7929 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7930 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7931 sc_pc_offset members.
7932 (i386_gdbarch_register_os_abi): Remove prototype.
7933 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7934 I386_SSE_NUM_REGS): New defines.
7935 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7936 I386_SSE_SIZEOF_REGS): New defines.
7937 (i386_register_name, i386_register_byte, i386_register_raw_size):
7938 New prototypes.
7939 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7940 (i386bsd_sigtramp_saved_pc): New prototype.
7941 * i386-tdep.c: Don't include "elf-bfd.h".
7942 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7943 i386_frame_chain, i386_saved_pc_after_call): Make static.
7944 (i386_frame_saved_pc): Rewrite to call architecture dependent
7945 function to deal with signal handlers. Make static.
7946 (i386go32_frame_saved_pc): Removed.
7947 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7948 Removed.
7949 (i386_get_longjmp_target): New function.
7950 (default_struct_convention, pcc_struct_convention,
7951 reg_struct_convention, valid_conventions, struct_convention): New
7952 variables.
7953 (i386_use_struct_convention): New function.
7954 (i386v4_sigtramp_saved_pc): Renamed to
7955 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7956 (i386_pc_in_sigtramp): New function.
7957 (i386_abi_names): Removed.
7958 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7959 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7960 Removed.
7961 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7962 i386_gdbarch_register_os_abi): Removed.
7963 (struct i386_abi_handler): Removed.
7964 (i386_abi_handler_list): Removed.
7965 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7966 functions.
7967 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7968 i386_nw_init_abi): New functions.
7969 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7970 Use set_gdbarch_xxx() calls instead of relying on macros for a
7971 number of calls.
7972 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7973 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7974 Register the various architecture variants defined in this file.
7975
7976 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7977
7978 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7979 (struct main_type): Remove arg_types member. Update comments for
7980 struct field.
7981 (TYPE_ARG_TYPES): Remove.
7982 (TYPE_FN_FIELD_ARGS): Update.
7983 (smash_to_method_type): Update prototype.
7984
7985 * c-typeprint.c (cp_type_print_method_args): Take method type
7986 instead of argument list. Use new argument layout. Simplify.
7987 (c_type_print_args): Use new argument layout. Simplify.
7988 (c_type_print_base): Update call to cp_type_print_method_args.
7989 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7990 argument; use die->type instead. Update call to
7991 smash_to_method_type.
7992 (read_structure_scope): Update call to dwarf2_add_member_fn.
7993 * gdbtypes.c (allocate_stub_method): Update comment.
7994 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7995 Use new argument layout.
7996 (check_stub_method): Use new argument layout. Don't count
7997 void as an argument.
7998 (print_arg_types): Update comments. Use new argument layout.
7999 (recursive_dump_type): Don't print arg_types member.
8000 * hpread.c (hpread_read_struct_type): Use new argument layout.
8001 (fixup_class_method_type): Likewise.
8002 (hpread_type_lookup): Likewise.
8003 * stabsread.c (read_type): Update calls to read_args and
8004 smash_to_method_type.
8005 (read_args): Use new argument layout. Simplify.
8006 * valops.c (typecmp): Use new argument layout. Update parameters
8007 and comments. Simplify.
8008 (hand_function_call): Use new argument layout.
8009 (search_struct_method): Update call to typecmp.
8010 (find_overload_match): Use new argument layout.
8011
8012 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8013
8014 * NEWS: Mention multithreaded debug support for gdbserver.
8015
8016 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8017
8018 * MAINTAINERS: Mention NEWS.
8019
8020 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8021
8022 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8023 (struct mips_objfile_private, compare_pdr_entries): New.
8024 (non_heuristic_proc_desc): Read the ".pdr" section if it
8025 is present.
8026
8027 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8028
8029 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8030 (arm_debug): New static variable.
8031 (_initialize_arm_tdep): Add ``set debug arm'' command.
8032
8033 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8034
8035 * Makefile.in (sim_arm_h): Define.
8036 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8037 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8038 (arm_register_sim_regno): New function, map an internal REGNUM
8039 onto a simulator register number.
8040 (arm_gdbarch_init): Set register_sim_regno.
8041
8042 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8043
8044 * MAINTAINERS: Add self.
8045
8046 2002-06-11 Jim Blandy <jimb@redhat.com>
8047
8048 * source.c (source_info): Mention whether the symtab has
8049 information about preprocessor macros.
8050
8051 Call the command `info macro', not `show macro'.
8052 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8053 Fix error message.
8054 (_initialize_macrocmd): Register `info_macro_command' in
8055 `infolist', not `showlist'.
8056
8057 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8058
8059 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8060 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8061 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8062 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8063 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8064 unconditionally.
8065 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8066 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8067 (_initialize_mips_tdep): Remove dead code.
8068 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8069 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8070 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8071 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8072 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8073 MIPS_LAST_FP_ARG_REGNUM): Remove.
8074
8075 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8076
8077 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8078 (unwind_tmp_obstack_free, parse_frame_info)
8079 (update_context, cfi_read_fp, cfi_write_fp)
8080 (cfi_frame_chain, cfi_init_extra_frame_info)
8081 (cfi_virtual_frame_pointer): Use the above function.
8082 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8083
8084 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8085
8086 * v850-tdep.c (v850_type_is_scalar): New function.
8087 (v850_use_struct_convention): Match current gcc implementation
8088 as close as possible.
8089 (v850_push_arguments): Fix stack_offset handling. Don't write
8090 struct_addr into register. This is done by v850_store_struct_return.
8091 (v850_extract_return_value): Care for structs.
8092 (v850_store_return_value): Ditto.
8093 (v850_store_struct_return): Actually write address.
8094
8095 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8096
8097 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8098 without debug information too.
8099
8100 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8101
8102 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8103 Make multi-arch pure.
8104 * gdbarch.h, gdbarch.c: Re-generate.
8105 * arm-tdep.c (arm_print_float_info): Update.
8106 * arch-utils.h (default_print_float_info): Update.
8107 * arch-utils.c (default_print_float_info): Update.
8108 * infcmd.c (float_info): Update call.
8109
8110 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8111
8112 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8113 the front of the initialize list.
8114
8115 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8116
8117 * infrun.c (struct inferior_status): Replace fields
8118 selected_frame_address and selected_level with field
8119 selected_frame_id.
8120 (save_inferior_status): Update. Use get_frame_id.
8121 (struct restore_selected_frame_args): Delete.
8122 (restore_selected_frame): Update. Use frame_find_by_id.
8123 (restore_inferior_status): Update.
8124
8125 * breakpoint.h (struct breakpoint): Change type of
8126 watchpoint_frame to frame_id.
8127 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8128 call to get_current_frame.
8129 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8130 get_current_frame.
8131 (watchpoint_check): Use frame_find_by_id.
8132
8133 * frame.h (record_selected_frame): Delete declaration.
8134 * stack.c (record_selected_frame): Delete function.
8135
8136 * frame.h (struct frame_id): Define.
8137 (get_frame_id): Declare.
8138 (frame_find_by_id): Declare.
8139 * frame.c (frame_find_by_id): New function.
8140 (get_frame_id): New function.
8141
8142 2002-06-10 Andrey Volkov <avolkov@transas.com>
8143
8144 * ser-e7kpc.c: Fix duplicated define and call of
8145 _initialize_ser_e7000pc
8146
8147 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8148
8149 * signals/signals.c (target_signal_from_host): Fix #ifdef
8150 SIGRTMIN case.
8151 (do_target_signal_to_host): Likewise.
8152
8153 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8154
8155 * mips-tdep.c (mips_find_abi_section): New function.
8156 (mips_gdbarch_init): Call it.
8157
8158 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8159
8160 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8161 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8162 after Andrew's 2002-06-08 gdbarch change.
8163
8164 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8165
8166 * i386-linux-nat.c (suppy_gregset): Don't supply
8167 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8168 register cache.
8169 (fill_gregset): Don't fetch it under the same circumstances.
8170
8171 2002-06-09 Andrew Cagney <cagney@redhat.com>
8172
8173 * Makefile.in (callback_h): Define.
8174 (remote_sim_h): Update path to remote-sim.h.
8175 (remote-rdp.o): Add $(callback_h).
8176 (remote-sim.o): Use $(callback_h).
8177 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8178 * remote-rdp.c: Include "gdb/callback.h".
8179
8180 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8181
8182 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8183 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8184
8185 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8186
8187 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8188 * rdi-share/serpardr.c: Ditto.
8189 * rdi-share/unixcomm.c: Ditto.
8190 * rdi-share/serdrv.c: Ditto.
8191 * rdi-share/hostchan.h: Ditto.
8192 * rdi-share/hostchan.c: Ditto.
8193 * rdi-share/host.h: Ditto.
8194 * rdi-share/devsw.c: Ditto.
8195
8196 * objfiles.h: Change type of obj_private to void pointer.
8197 * pa64solib.c: Update copyright. Don't include "assert.h", use
8198 strcmp instead of STREQ, use LONGEST, do not use PTR
8199 * somsolib.c: Ditto.
8200
8201 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8202 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8203 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8204
8205 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8206
8207 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8208 (default_get_saved_register): Delete function.
8209 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8210 generic_unwind_get_saved_register.
8211 * gdbarch.h, gdbarch.c: Re-generate.
8212
8213 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8214
8215 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8216 generic_func_frame_chain_valid.
8217 * gdbarch.h, gdbarch.c: Re-generate.
8218 * blockframe.c (generic_func_frame_chain_valid): Only check
8219 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8220 passing FP to PC_IN_CALL_DUMMY.
8221 Fix PR gdb/360.
8222
8223 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8224
8225 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8226 (register_gdbarch_data): Initialize init_p.
8227 (gdbarch_data): Initialize data pointer using the init function.
8228 (init_gdbarch_data): Delete function.
8229 (gdbarch_update_p): Update.
8230 (initialize_non_multiarch): Update.
8231 (struct gdbarch): Add field initialized_p.
8232 * gdbarch.h, gdbarch.c: Re-generate.
8233
8234 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8235
8236 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8237 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8238 better do the things actually here.
8239 * x86-64-tdep.c (x86_64_register_name2nr): New.
8240 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8241 (x86_64_gdbarch_init): Respect the above change.
8242 * x86-64-tdep.h (x86_64_register_name2nr)
8243 (x86_64_register_nr2name): Add prototypes.
8244 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8245
8246 2002-06-06 Michael Snyder <msnyder@redhat.com>
8247
8248 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8249 Delete extra braces and re-indent.
8250 (d10v_store_return_value): Char return values
8251 must be shifted over by one byte in R0.
8252 (d10v_extract_return_value): Delete extra braces, re-indent.
8253
8254 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8255
8256 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8257 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8258 (d10v_integer_to_address): Rewrite.
8259 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8260 the d10v specific functions which take care of converting to the
8261 correct space.
8262
8263 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8264
8265 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8266 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8267
8268 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8269
8270 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8271 includes.
8272 * config/tm-linux.h: Ditto.
8273 * config/alpha/tm-alphalinux.h: Ditto.
8274 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8275 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8276 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8277 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8278 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8279 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8280 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8281 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8282 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8283 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8284 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8285 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8286 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8287 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8288 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8289 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8290 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8291 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8292 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8293 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8294 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8295 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8296 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8297 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8298 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8299 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8300 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8301 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8302 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8303 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8304 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8305 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8306 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8307 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8308 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8309 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8310 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8311
8312 2002-05-04 Aidan Skinner <aidan@velvet.net>
8313
8314 * ada-exp.tab.c: New file
8315 * ada-exp.y: New file
8316 * ada-lang.c: New file
8317 * ada-lang.h: New file
8318 * ada-lex.c: New file
8319 * ada-lex.l: New file
8320 * ada-tasks.c: New file
8321 * ada-typeprint.c: New file
8322 * ada-valprint.c: New file
8323
8324 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8325
8326 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8327 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8328
8329 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8330
8331 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8332 insetead of ppc-linux-tdep.o.
8333 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8334 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8335
8336 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8337
8338 2002-05-07 Christian Groessler <chris@groessler.org>
8339 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8340 bit register contents for little endian hosts.
8341
8342 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8343
8344 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8345 any maintainer.
8346
8347 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8348
8349 * gdbarch.h: Regenerate.
8350
8351 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8352
8353 * MAINTAINERS: Add everyone to write-after-approval list.
8354
8355 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8356
8357 * stack.c (frame_info): Use frame_register_unwind instead of
8358 saved_regs. Mention when the SP is on the stack or in a register.
8359
8360 * frame.h (frame_register_unwind_ftype): Define. Document.
8361 (struct frame_info): Add field register_unwind and
8362 register_unwind_cache.
8363 (frame_register_unwind): Declare.
8364 (generic_unwind_get_saved_register): Declare.
8365
8366 * frame.c (frame_register_unwind): New function.
8367 (generic_unwind_get_saved_register): New function.
8368
8369 * blockframe.c (generic_call_dummy_register_unwind): New function.
8370 (frame_saved_regs_register_unwind): New function.
8371 (set_unwind_by_pc): New function.
8372 (create_new_frame): New function.
8373 (get_prev_frame): New function.
8374
8375 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8376
8377 * a29k-share/: Delete directory.
8378 * remote-vx29k.c: Delete file.
8379
8380 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8381
8382 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8383 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8384
8385 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8386
8387 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8388 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8389 (sparc64nbsd-nat.o)
8390 (sparcnbsd-nat.o)
8391 (sparcnbsd-tdep.o): New dependency lists.
8392 * NEWS: Note new UltraSPARC NetBSD native configuration.
8393 * configure.host (sparc64-*-netbsd*): New host.
8394 * configure.tgt (sparc-*-netbsdelf*)
8395 (sparc-*-netbsd*): Set gdb_target to nbsd.
8396 (sparc64-*-netbsd*): New target.
8397 * sparc64nbsd-nat.c: New file.
8398 * sparcnbsd-nat.c: New file.
8399 * sparcnbsd-tdep.c: New file.
8400 * sparcnbsd-tdep.h: New file.
8401 * config/sparc/nbsd.mt: New file.
8402 * config/sparc/nbsd64.mh: New file.
8403 * config/sparc/nbsd64.mt: New file.
8404 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8405 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8406 (HOST_IPC): Remove.
8407 * config/sparc/nbsdaout.mt: Remove.
8408 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8409 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8410 (HOST_IPC): Remove.
8411 * config/sparc/nbsdelf.mt: Remove.
8412 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8413 sparc-nat.c compatiblity defines.
8414 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8415 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8416 * config/sparc/tm-nbsd64.h: New file.
8417 * config/sparc/tm-nbsdaout.h: Remove.
8418 * config/sparc/xm-nbsd.h: Remove.
8419
8420 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8421
8422 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8423 * sparc-tdep.c: Include osabi.h.
8424 (gdbarch_tdep): Add osabi member.
8425 (_initialize_sparc_tdep): Use gdbarch_register.
8426 (sparc_gdbarch_init): Use generic OS ABI framework.
8427 (sparc_dump_tdep): New function.
8428
8429 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8430
8431 * corefile.c (do_captured_read_memory_integer): Return non-zero
8432 result.
8433 (safe_read_memory_integer): Copy result of memory read when
8434 status is non-zero. Also, add comments.
8435
8436 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8437
8438 * Makefile.in (ppc_tdep_h): Define.
8439 (ppc-linux-nat.o)
8440 (ppc-linux-tdep.o)
8441 (rs6000-tdep.o): Use $(ppc_tdep_h).
8442 (ppc-sysv-tdep.o)
8443 (ppcnbsd-nat.o)
8444 (ppcnbsd-tdep.o): New dependency lists.
8445 * ppc-tdep.h: Use generic OS ABI framework.
8446 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8447 (ppc_linux_init_abi): New functions.
8448 (ppc_sysv_abi_broken_use_struct_convention)
8449 (ppc_sysv_abi_use_struct_convention)
8450 (ppc_sysv_abi_push_arguments): Move to...
8451 * ppc-sysv-tdep.c: ...here.
8452 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8453 * rs6000-tdep.c (process_note_abi_tag_sections)
8454 (get_elfosabi): Remove.
8455 (rs6000_gdbarch_init): Use generic OS ABI framework.
8456 (rs6000_dump_tdep): New function.
8457 (_initialize_rs6000_tdep): Use gdbarch_register.
8458 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8459 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8460 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8461 of ppc-linux-tdep.o.
8462 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8463 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8464 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8465 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8466 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8467 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8468
8469 2002-05-29 Jim Blandy <jimb@redhat.com>
8470
8471 * macroscope.c (default_macro_scope): Put `void' in empty argument
8472 list.
8473
8474 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8475
8476 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8477 * arch-utils.c: Include "sim-regno.h".
8478 * gdbarch.sh: Don't include "sim-regno.h".
8479 * gdbarch.h, gdbarch.c: Regenerate.
8480 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8481 here.
8482 * arch-utils.h (legacy_register_sim_regno): To here.
8483 * remote-sim.c (legacy_register_sim_regno): Move function from
8484 here.
8485 * arch-utils.c (legacy_register_sim_regno): To here.
8486
8487 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8488
8489 * sim-regno.h: New file.
8490 * Makefile.in (sim_regno_h): Define.
8491 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8492 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8493 (legacy_register_sim_regno): New function.
8494 (one2one_register_sim_regno): New function.
8495 (gdbsim_fetch_register): Rewrite.
8496 (gdbsim_store_register): Only store a register when
8497 REGISTER_SIM_REGNO is valid.
8498 * d10v-tdep.c: Include "sim-regno.h".
8499 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8500 (d10v_ts3_register_sim_regno): Ditto.
8501 * gdbarch.sh: Include "sim-regno.h".
8502 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8503 * gdbarch.h, gdbarch.c: Regenerate.
8504 * arch-utils.h (default_register_sim_regno): Delete declaration.
8505 * arch-utils.c (default_register_sim_regno): Delete function.
8506
8507 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8508
8509 * ppcnbsd-nat.c: Rewrite.
8510 * ppcnbsd-tdep.c: New file.
8511 * ppcnbsd-tdep.h: New file.
8512 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8513 solib.o, and solib-svr4.o.
8514 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8515 nbsd-tdep.o, and corelow.o.
8516
8517 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8518
8519 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8520 `tr' and `sed'. Mention that `broken' targets are not expected to
8521 build.
8522
8523 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8524
8525 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8526 Let PC point right after the prologue before looking up symbols.
8527
8528 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8529
8530 * i386-tdep.c (i386_register_virtual_type): Return
8531 builtin_type_vec128i for SSE registers.
8532
8533 * gdbtypes.h (builtin_type_vec128i): Declare.
8534
8535 * gdbtypes.c (build_builtin_type_vec128i): New function.
8536 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8537 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8538 (build_gdbtypes): Initialize new builtin vector types.
8539 (_initialize_gdbtypes): Register new vector types with gdbarch.
8540
8541 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8542
8543 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8544 since it has been multi-arch'd.
8545 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8546 Move Alpha and VAX multi-arch news entries to same section
8547 as other multi-arch news.
8548
8549 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8552 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8553 static. Rename some register numbers to put them in ns32k-tdep
8554 private namespace.
8555 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8556 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8557 functions.
8558 (_initialize_ns32k_tdep): Use gdbarch_register.
8559 * ns32k-tdep.h: New file.
8560 * ns32knbsd-tdep.c: New file.
8561 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8562 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8563 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8564 REGISTER_BYTES, REGISTER_BYTE): Remove.
8565 * config/ns32k/tm-ns32k.h: New file.
8566 * config/ns32k/tm-umax.h: Remove.
8567
8568 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8569
8570 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8571 ns32k_store_struct_return, ns32k_extract_return_value,
8572 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8573 functions.
8574 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8575 ns32k_saved_pc_after_call.
8576 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8577 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8578 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8579 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8580 ns32k_extract_struct_value_address.
8581
8582 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8583
8584 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8585 ns32k_fix_call_dummy): New.
8586 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8587 ns32k_call_dummy_words.
8588 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8589 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8590 CALL_DUMMY_NARGS): Remove.
8591 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8592
8593 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8594
8595 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8596 ns32k_frame_saved_pc, ns32k_frame_args_address,
8597 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8598 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8599 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8600 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8601 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8602 (BREAKPOINT): Remove..
8603 (FRAME_CHAIN): Define as ns32k_frame_chain.
8604 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8605 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8606 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8607 (FRAME_FIND_SAVED_REGS): Remove.
8608 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8609 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8610 (POP_FRAME): Define as ns32k_pop_frame.
8611
8612 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8613
8614 * ns32k-tdep.c (ns32k_register_byte_32082,
8615 ns32k_register_byte_32382, ns32k_register_raw_size,
8616 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8617 functions.
8618 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8619 ns32k_register_byte_32382.
8620 * config/ns32k/tm-umax.h: Update copyright years.
8621 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8622 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8623 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8624 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8625 (ns32k_get_enter_addr): Fix prototype.
8626
8627 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8628
8629 * ns32k-tdep.c: Update copyright years.
8630 (ns32k_register_name_32082): New function.
8631 (ns32k_register_name_32382): Ditto.
8632 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8633 (REGISTER_NAME): Define as ns32k_register_name_32382.
8634 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8635 (REGISTER_NAME): Define as ns32k_register_name_32082.
8636
8637 2002-05-24 Jim Blandy <jimb@redhat.com>
8638
8639 * dwarf2read.c (free_line_header): Use xfree, not free.
8640
8641 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8642
8643 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8644 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8645
8646 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8647
8648 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8649
8650 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8651
8652 From Ross Alexander at NEC Europe:
8653 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8654
8655 2002-05-23 Michael Snyder <msnyder@redhat.com>
8656
8657 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8658 for input, rather than parse_and_eval_address.
8659
8660 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8661
8662 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8663 * Makefile.in (sim_d10v_h): Update definition.
8664
8665 2002-05-24 Andrew Cagney <cagney@redhat.com>
8666
8667 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8668 change `2002-05-22 Michael Snyder' below.
8669 (d10v_push_arguments): Ditto.
8670 (d10v_extract_return_value): Ditto.
8671
8672 2002-05-23 Jim Blandy <jimb@redhat.com>
8673
8674 * macrotab.c (check_for_redefinition): Don't complain if the new
8675 definition is the same as the previous one. Take more arguments
8676 to allow the comparison.
8677 (macro_define_object, macro_define_function): Pass more arguments
8678 to check_for_redefinition.
8679
8680 2002-05-22 Michael Snyder <msnyder@redhat.com>
8681
8682 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8683 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8684 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8685 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8686 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8687 Add a temp variable to save a call (and a memory read).
8688 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8689 if possible (so that PC_IN_CALL_DUMMY will work).
8690
8691 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8692
8693 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8694
8695 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8696
8697 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8698 fde->cie_ptr.
8699 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8700 (dwarf2_build_frame_info): Add offset to fde->initial_location
8701 so that frames of shared libraries are mapped correctly.
8702 (execute_stack_op): Change type of 'result' from ULONGEST to
8703 CORE_ADDR.
8704
8705 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8706
8707 * config/alpha/tm-nbsd.h: Include solib.h.
8708
8709 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8710
8711 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8712 assumptions about the host's byte order.
8713
8714 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8715
8716 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8717 to dependency list.
8718 * alphanbsd-tdep.c: Include solib-svr4.h.
8719 * shnbsd-tdep.c: Ditto.
8720
8721 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8722
8723 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8724 nbsd-tdep.h to dependency list.
8725 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8726 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8727 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8728 nbsdaout.mh and nbsdelf.mh consistently.
8729 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8730 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8731 nbsdaout.mt and nbsdelf.mh consistently.
8732 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8733 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8734 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8735 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8736 a.out shared library stuff from here...
8737 * config/nm-nbsdaout.h: ...to here.
8738 * config/tm-nbsd.h: Remove.
8739 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8740 * config/arm/nbsd.mh: Remove.
8741 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8742 nbsd-tdep.o.
8743 * config/arm/nbsdaout.mh: New file.
8744 * config/arm/nbsdelf.mh: New file.
8745 * config/arm/nm-nbsdaout.h: New file.
8746 * config/i386/nbsd.mh: Remove.
8747 * config/i386/nbsd.mt: Remove.
8748 * config/i386/nbsdaout.mh: New file.
8749 * config/i386/nbsdaout.mt: New file.
8750 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8751 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8752 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8753 i386_register_u_addr): Remove.
8754 * config/i386/nm-nbsdaout.h: New file.
8755 * config/i386/nm-nbsdelf.h: Remove.
8756 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8757 (USE_STRUCT_CONVENTION): Remove.
8758 * config/i386/tm-nbsdaout.h: New file.
8759 * config/i386/tm-nbsdelf.h: Remove.
8760 * config/m68k/nbsd.mh: Remove.
8761 * config/m68k/nbsd.mt: Remove.
8762 * config/m68k/nbsdaout.mh: New file.
8763 * config/m68k/nbsdaout.mt: New file.
8764 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8765 * config/m68k/nm-nbsdaout.h: New file.
8766 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8767 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8768 * config/ns32k/nbsd.mh: Remove.
8769 * config/ns32k/nbsd.mt: Remove.
8770 * config/ns32k/nbsdaout.mh: New file.
8771 * config/ns32k/nbsdaout.mt: New file.
8772 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8773 * config/ns32k/nm-nbsdaout.h: New file.
8774 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8775 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8776 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8777 (SVR4_SHARED_LIBS): Remove.
8778 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8779 * config/sparc/nbsd.mh: Remove.
8780 * config/sparc/nbsd.mt: Remove.
8781 * config/sparc/nbsdaout.mh: New file.
8782 * config/sparc/nbsdaout.mt: New file.
8783 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8784 * config/sparc/nbsdelf.mt: New file.
8785 * config/sparc/nm-nbsdaout.h: New file.
8786 * config/sparc/nm-nbsdelf.h: Remove.
8787 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8788 * config/sparc/tm-nbsdaout.h: New file.
8789
8790 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8791
8792 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8793 mipsnbsd-tdep.c
8794 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8795
8796 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8799 shnbsd-nat.c.
8800 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8801
8802 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8803
8804 * NEWS: Note new MIPS NetBSD native configuration.
8805 * configure.host (mips*-*-netbsd*): New host.
8806 * configure.tgt (mips*-*-netbsd*): New target.
8807 * mipsnbsd-nat.c: New file.
8808 * mipsnbsd-tdep.c: New file.
8809 * mipsnbsd-tdep.h: New file.
8810 * config/mips/nbsd.mh: New file.
8811 * config/mips/nbsd.mt: New file.
8812 * config/mips/nm-nbsd.h: New file.
8813 * config/mips/tm-nbsd.h: New file.
8814
8815 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8816
8817 * Makefile.in (SFILES): Add osabi.c.
8818 (COMMON_OBS): Add osabi.o.
8819 (osabi.o): New dependency list.
8820 * osabi.c: New file.
8821 * osabi.h: New file.
8822 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8823
8824 * Makefile.in (alpha_tdep_h): Define and use instead of
8825 alpha-tdep.h.
8826 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8827 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8828 Remove.
8829 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8830 * alpha-tdep.h: Include osabi.h.
8831 (alpha_abi): Remove.
8832 (gdbarch_tdep): Use generic OS ABI framework.
8833 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8834 gdbarch_register_osabi.
8835 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8836 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8837 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8838
8839 * Makefile.in (sh_tdep_h): Add osabi.h.
8840 * sh-tdep.h (sh_osabi): Remove.
8841 (gdbarch_tdep): Use generic OS ABI framework.
8842 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8843 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8844 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8845 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8846
8847 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8848 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8849 gdbarch_register_osabi.
8850 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8851 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8852 (get_elfosabi): Rename to...
8853 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8854 ABI framework support routines.
8855 (arm_gdbarch_init): Use generic OS ABI framework.
8856 (arm_dump_tdep): Likewise.
8857 (_initialize_arm_tdep): Likewise.
8858 * arm-tdep.h: Include osabi.h.
8859 (arm_abi): Remove.
8860 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8861 osabi member.
8862 (arm_gdbarch_register_os_abi): Remove prototype.
8863 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8864 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8865
8866 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8867 * mips-tdep.c: Include osabi.h.
8868 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8869 OS ABI framework.
8870
8871 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8872
8873 * h8300-tdep.c: Fix formatting.
8874
8875 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8876
8877 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8878 printing vector registers.
8879
8880 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8881
8882 From Fernando Nasser:
8883 * remote.c (remote_async_open_1): Re-throw the exception when the
8884 connection fails.
8885 (remote_cisco_open): Ditto.
8886 (remote_open_1): Ditto.
8887
8888 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8889
8890 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8891 (remote_start_remote): Add uiout parameter. Pass through to
8892 remote_start_remote_dummy.
8893 (remote_open_1): Use catch_exception instead of catch_errors.
8894 (remote_async_open_1): Ditto.
8895 (remote_cisco_open): Ditto.
8896
8897 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8898
8899 * remote.c (remote_start_remote): Replace PTR with void pointer.
8900 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8901 static.
8902
8903 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8904
8905 * gdb_indent.sh: Allow the script to be run in the sim directory.
8906
8907 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8908
8909 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8910 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8911
8912 * corelow.c (core_open): Only call set_gdbarch_from_file if
8913 exec_bfd is NULL.
8914
8915 2002-05-17 Andrey Volkov <avolkov@transas.com>
8916
8917 * h8300-tdep.c: Add support of EXR register
8918 * config/h8300/tm-h8300.h: Ditto.
8919
8920 2002-05-17 Andrey Volkov <avolkov@transas.com>
8921
8922 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8923
8924 2002-05-17 Andrey Volkov <avolkov@transas.com>
8925
8926 * h8300-tdep.c: Change literal regnums to REGNO.
8927
8928 2002-05-17 Jim Blandy <jimb@redhat.com>
8929
8930 * NEWS: Note addition of macro support.
8931
8932 Expand preprocessor macros in C expressions.
8933 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8934 (scan_macro_expansion, scanning_macro_expansion,
8935 finished_macro_expansion): New function declarations.
8936 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8937 variable declarations.
8938 * parser-defs.h (expression_context_pc): New declaration.
8939 * parse.c (expression_context_pc): New variable.
8940 (parse_exp_1): Set expression_context_pc, as well as
8941 expression_context_block.
8942 * c-exp.y (yylex): If we're not already reading the result of a
8943 macro expansion, try to macro-expand the next token. When we're
8944 done scanning a macro expansion, switch back to the mainline text.
8945 Commas and `if's in a macro's expansion don't terminate the input.
8946 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8947 (macro_original_text, macro_expanded_text,
8948 expression_macro_lookup_func, expression_macro_lookup_baton): New
8949 variables.
8950 (scan_macro_expansion, scanning_macro_expansion,
8951 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8952 c_preprocess_and_parse): New functions.
8953 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8954 c_preprocess_and_parse, instead of c_parse.
8955 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8956 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8957
8958 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8959
8960 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8961 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8962 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8963
8964 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8965
8966 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8967
8968 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8969
8970 * Makefile.in (sh_tdep_h): Define and use.
8971 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8972 register enum): Move to...
8973 * * sh-tdep.h: ...here.
8974 * sh-tdep.c: Include sh-tdep.h.
8975 * sh3-rom.c: Likewise.
8976 * shnbsd-tdep.c: Likewise.
8977
8978 2002-05-16 Michael Snyder <msnyder@redhat.com>
8979
8980 * arm-tdep.c: Spelling fix in comment.
8981
8982 2002-05-16 Jim Blandy <jimb@redhat.com>
8983
8984 Add commands for manually expanding macros and showing their
8985 definitions.
8986 * macrocmd.c, macroscope.c, macroscope.h: New files.
8987 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8988 (macroscope_h): New variable.
8989 (HFILES_NO_SRCDIR): Add macroscope.h.
8990 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8991 (macroscope.o, macrocmd.o): New rules.
8992
8993 Teach the Dwarf 2 reader to read macro information.
8994 * dwarf2read.c: #include "macrotab.h".
8995 (dwarf_macinfo_buffer): New variable.
8996 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8997 dwarf_macinfo_size.
8998 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8999 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9000 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9001 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9002 dwarf2_macro_spaces_in_definition): New complaints.
9003 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9004 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9005 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9006 the partial symbol table.
9007 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9008 from what's recorded in the partial symbol table.
9009 (read_file_scope): If the compilation unit has a
9010 `DW_AT_macro_info' attribute, read its macro information.
9011 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9012
9013 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9014
9015 Fix PR gdb/546
9016 * ser-tcp.c: Don't include <netinet/udp.h>.
9017
9018 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9019
9020 * MAINTAINERS: Update my email address.
9021
9022 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9023
9024 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9025 include file of the same name.
9026
9027 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9028
9029 * configure.tgt: Mark v850 as multi-arched.
9030 * config/v850/tm-v850.h: Remove file.
9031 * config/v850/v850.mt: Eliminate TM_FILE.
9032
9033 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9034
9035 * v850-tdep.c: Full multi-arch.
9036 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9037 Define GDB_MULTI_ARCH to 2.
9038
9039 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9040
9041 * p-exp.y (current_type): New static variable.
9042 Carries the type of the expression at the position that is parsed.
9043 (push_current_type, pop_current_type): Two new functions. Used
9044 to store/restore current_type in expression on specific tokens.
9045 (search_field): New static variable. Set to one after parsing a point
9046 as at that point only a FIELDNAME token should be searched.
9047 (FIELDNAME): New token. After a point only a token belonging to
9048 current_type type definition is allowed.
9049 (all over token rules): reset and change current_type according
9050 to rules.
9051 (exp '[' rule): insert implicit array index field if
9052 exp is a pascal string type.
9053
9054 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9055
9056 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9057 frame info. Use frame_info's saved_regs instead of matching member
9058 in extra_frame_info throughout.
9059 (v850_frame_init_saved_regs): New function.
9060 (v850_init_extra_frame_info): Move most functionality into
9061 v850_frame_init_saved_regs().
9062 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9063 (v850_frame_find_saved_regs): Remove declaration.
9064 (FRAME_FIND_SAVED_REGS): Remove definition.
9065 (v850_frame_init_saved_regs): Add declaration.
9066 (FRAME_INIT_SAVED_REGS): Add definition.
9067
9068 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9069
9070 * v850-tdep.c: Begin multi-arch'ing v850.
9071 (v850_target_architecture_hook): Remove function.
9072 (v850_gdbarch_init): New function. Add code previously in
9073 v850_target_architecture_hook().
9074 (_initialize_v850_tdep): Don't set target_architecture_hook.
9075 Call register_gdbarch_init() instead.
9076
9077 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9078
9079 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9080 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9081 (fixup_class_method_type): Likewise.
9082
9083 2002-05-15 Jim Blandy <jimb@redhat.com>
9084
9085 Add macro structures to GDB's symbol tables. Nobody puts anything
9086 in them yet.
9087 * symtab.h (struct symtab): New member: `macro_table'.
9088 * buildsym.h (pending_macros): New global variable.
9089 * buildsym.c: #include "macrotab.h".
9090 (buildsym_init): Initialize `pending_macros'.
9091 (end_symtab): If we found macro information while reading a CU's
9092 debugging info, do build a symtab structure for it. Make the
9093 symtab point to the macro information, and clear the
9094 `pending_macros' pointer which held it while we were reading the
9095 debug info.
9096 (really_free_pendings): Free any pending macro table.
9097 * objfiles.h (struct objfile): New member: `macro_cache'.
9098 * objfiles.c (allocate_objfile): Set allocate and free functions
9099 for the macro cache's objstack.
9100 (free_objfile): Empty the macro cache's obstack.
9101 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9102 set new allocate and free functions for it.
9103 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9104 free functions for the macro cache's objstack. (Why is this
9105 function building its own objfile?)
9106 * symmisc.c (print_objfile_statistics): Print statistics on the
9107 macro bcache.
9108 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9109
9110 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9111
9112 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9113 (REGISTER_U_ADDR): Delete definition.
9114 (arm_register_u_addr): Delete declaration.
9115
9116 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9117
9118 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9119 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9120
9121 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9122
9123 * regcache.c (register_valid): Revise comments refering to "Not
9124 available" and "unavailable".
9125 * frame.c (frame_register_read): Ditto.
9126 * findvar.c (value_of_register): Ditto.
9127
9128 2002-05-15 Andrew Cagney <cagney@redhat.com>
9129
9130 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9131 (remote-sim.o): Update dependencies.
9132 (d10v-tdep.o): Specify dependencies.
9133 (sim_d10v_h): Define.
9134
9135 2002-05-14 Jim Blandy <jimb@redhat.com>
9136
9137 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9138 * macrotab.c (macro_lookup_inclusion, find_definition,
9139 new_macro_table): Same.
9140
9141 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9142 not `! strcmp ()'. This is a dubious improvement.
9143 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9144
9145 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9146 although it's not necessary, to avoid a warning.
9147
9148 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9149
9150 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9151 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9152 TYPE_INSTANCE_FLAGS.
9153 (struct main_type): New.
9154 (struct type): Move most members to struct main_type. Change
9155 cv_type and as_type to new type_chain member. Add instance_flags.
9156 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9157 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9158 (finish_cv_type): Remove prototype.
9159 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9160 Set TYPE_CHAIN.
9161 (alloc_type_instance): New function.
9162 (smash_type): New function.
9163 (make_pointer_type, make_reference_type, make_function_type)
9164 (smash_to_member_type, smash_to_method_type): Call smash_type.
9165 (make_qualified_type): New function.
9166 (make_type_with_address_space): Call make_qualified_type.
9167 (make_cv_type): Likewise.
9168 (finish_cv_type): Remove unnecessary function.
9169 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9170 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9171 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9172 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9173 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9174 * hpread.c (hpread_read_struct_type): Likewise.
9175 * stabsread.c (read_struct_type): Likewise.
9176
9177 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9178
9179 * configure.tgt: Add a catch all sh* target, for cases like
9180 sh[2,3,4]-elf and sh-hms.
9181
9182 2002-05-14 Keith Seitz <keiths@redhat.com>
9183
9184 * event-loop.c (create_file_handler): Don't do anything but
9185 update data when we are given a fd which we are already
9186 monitoring.
9187
9188 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9189
9190 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9191 (update_context): Use __func__ in warnings.
9192
9193 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9196 and tcp_close to net_open and net_close.
9197 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9198 using UDP if requested. Don't try to disable Nagle on UDP
9199 sockets.
9200 * remote.c (remote_serial_open): New function. Warn about UDP.
9201 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9202
9203 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9204
9205 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9206
9207 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9208
9209 * configure.tgt: Remove sh-hms target.
9210 * MAINTAINERS: Don't list sh-hms as a separate target.
9211
9212 2002-05-13 Jim Blandy <jimb@redhat.com>
9213
9214 Add first preprocessor macro-expansion files.
9215 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9216 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9217 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9218 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9219 (COMMON_OBS): Add macrotab.o, macroexp.o.
9220 (macroexp.o, macrotab.o): New rules.
9221
9222 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9223
9224 * config/m88k/tm-m88k.h: Update copyright.
9225 (m88k_target_write_pc): Declare
9226 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9227 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9228 (SHIFT_INST_REGS): Update definition.
9229 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9230 using old definition of TARGET_WRITE_PC.
9231 * regcache.c (generic_target_write_pc): Delete code handling
9232 NNPC_REGNUM.
9233 * gdbarch.sh (NNPC_REGNUM): Delete.
9234 * gdbarch.h, gdbarch.c: Regenerate.
9235
9236 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9237
9238 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9239 builtin reg number.
9240
9241 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9244 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9245 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9246 access macros.
9247 * c-typeprint.c (cp_type_print_method_args): Likewise.
9248 (c_type_print_args): Likewise.
9249 * d10v-tdep.c (d10v_push_arguments): Likewise.
9250 (d10v_extract_return_value): Likewise.
9251 * expprint.c (print_subexp): Likewise.
9252 * gdbtypes.c (lookup_primitive_typename): Likewise.
9253 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9254 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9255 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9256 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9257 (TYPE_VECTOR): Likewise.
9258 * hpread.c (hpread_read_struct_type)
9259 (fix_static_member_physnames, fixup_class_method_type)
9260 (hpread_type_lookup): Likewise.
9261 * mdebugread.c (parse_symbol, parse_type): Likewise.
9262 * p-lang.c (is_pascal_string_type): Likewise.
9263 * valops.c (hand_function_call): Likewise.
9264 * x86-64-tdep.c (classify_argument): Likewise.
9265
9266 * hpread.c (hpread_read_function_type)
9267 (hpread_read_doc_function_type): Call replace_type.
9268 * dstread.c (create_new_type): Delete.
9269 (decode_dst_structure, process_dst_function): Call alloc_type.
9270 Use type access macros.
9271
9272 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9273
9274 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9275 the're not supported by the current architecture.
9276 (i387_fill_fxsave): Likewise.
9277
9278 2002-05-12 Fred Fish <fnf@redhat.com>
9279
9280 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9281 sect_index_xxx members to index the first slot in section_offsets
9282 if all of the section_offsets are zero.
9283
9284 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9285
9286 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9287 checked in with last change.
9288
9289 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9290
9291 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9292 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9293 config.sub.
9294
9295 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9296
9297 * Makefile.in: Update dependencies.
9298
9299 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9300
9301 * language.c (local_hex_string_custom): Simplify. Do not depend
9302 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9303
9304 * memattr.c (mem_info_command): Replace calls to
9305 longest_local_hex_string and longest_local_hex_string_custom.
9306 * buildsym.c (make_blockvector): Ditto.
9307 * solib.c (info_sharedlibrary_command): Ditto.
9308 * tracepoint.c (tracepoints_info): Ditto.
9309 * symtab.c (print_msymbol_info): Ditto.
9310
9311 * language.c (local_hex_string): Delete.
9312 (local_hex_string_custom): Delete.
9313 (longest_local_hex_string): Rename to local_hex_string.
9314 (longest_local_hex_string_custom): Rename to
9315 local_hex_string_custom.
9316 * language.h (local_hex_string): Change parameter type to LONGEST.
9317 (local_hex_string_custom): Ditto.
9318 (longest_local_hex_string): Delete declaration.
9319 (longest_local_hex_string_custom): Ditto.
9320
9321 * solib.c: Update copyright.
9322 * memattr.c: Update copyright.
9323
9324 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9325
9326 * arch-utils.h (legacy_register_to_value): Declare.
9327 (legacy_value_to_register): Declare.
9328 (legacy_convert_register_p): Declare.
9329 * arch-utils.c (legacy_register_to_value): New function.
9330 (legacy_value_to_register): New function.
9331 (legacy_convert_register_p): New function.
9332
9333 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9334 (VALUE_TO_REGISTER): Define.
9335 (CONVERT_REGISTER_P): Define.
9336 * gdbarch.h, gdbarch.c: Regenerate.
9337
9338 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9339 VALUE_TO_REGISTER.
9340 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9341 CONVERT_REGISTER_P.
9342
9343 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9344 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9345
9346 * Makefile.in: Update dependencies for valops.c.
9347 * valops.c: Include "gdb_assert.h".
9348 (typecmp): Skip THIS parameter to methods.
9349 (find_method_list): Remove static_memfuncp argument,
9350 update callers. Check for stub methods.
9351 (find_value_oload_method_list): Don't set *static_memfuncp.
9352 (find_overload_match): Don't check for stub methods. Assert
9353 that methods are not stubbed. Handle static methods.
9354 (value_find_oload_method_list): Remove static_memfuncp argument.
9355 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9356 to the argument list for static stub methods.
9357 * value.h (value_find_oload_method_list): Update prototype.
9358
9359 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9360
9361 * arch-utils.h (generic_register_size): Declare.
9362 (generic_register_raw_size, generic_register_virtual_size): Delete
9363 declarations.
9364 * arch-utils.c (generic_register_raw_size): Delete.
9365 (generic_register_size): New function.
9366 (generic_register_virtual_size): Delete.
9367
9368 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9369 default generic_register_size.
9370 * gdbarch.h, gdbarch.c: Re-generate.
9371
9372 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9373 register_virtual_size.
9374 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9375 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9376
9377 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9378
9379 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9380 * gdbarch.h, gdbarch.c: Regenerate.
9381 * gnu-v3-abi.c: Update copyright.
9382 (vtable_address_point_offset): Update.
9383 (gnuv3_rtti_type): Update.
9384 (gnuv3_baseclass_offset): Update.
9385 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9386 (init_fetch_link_map_offsets): Update.
9387 * remote.c (get_remote_state): Update.
9388
9389 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9390
9391 * TODO: Remove value_headof/value_from_vtable_info comment.
9392 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9393 * values.c (value_headof, value_from_vtable_info): Delete.
9394 * value.h (value_from_vtable_info): Delete prototype.
9395
9396 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9397
9398 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9399 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9400 $(gdb_regex_h).
9401 (gdb_assert_h): Define.
9402 (gdb_wait_h): Define.
9403 (gdb_regex_h): Define.
9404
9405 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9406
9407 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9408 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9409
9410 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9411
9412 * nbsd-tdep.c: Fix comment.
9413
9414 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9415
9416 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9417 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9418 (nbsd-tdep.o): New dependency list.
9419 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9420 nbsd-tdep.h.
9421 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9422 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9423 * nbsd-tdep.c: New file.
9424 * nbsd-tdep.h: New file.
9425 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9426 nbsd-tdep.h.
9427 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9428 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9429 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9430 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9431
9432 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9435 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9436 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9437 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9438 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9439 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9440
9441 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9442
9443 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9444 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9445 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9446 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9447 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9448 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9449 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9450
9451 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9452
9453 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9454 fetch_elfcore_registers to...
9455 * i386nbsd-tdep.c: ...here.
9456 (i386nbsd_use_struct_convention): Rename to...
9457 (i386nbsd_aout_use_struct_convention): ...this.
9458 (i386nbsd_supply_reg): New function.
9459 (i386nbsd_fill_reg): New function.
9460 (fetch_core_registers): Use i386nbsd_supply_reg.
9461 (fetch_elfcore_registers): Likewise.
9462 (_initialize_i386nbsd_tdep): New function.
9463 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9464 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9465 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9466 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9467 (i386nbsd_aout_use_struct_convention): ...this.
9468
9469 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9470
9471 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9472 (store_inferior_registers): Use shnbsd_fill_reg.
9473 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9474 sh_nbsd_supply_register): Collapse into...
9475 (shnbsd_supply_reg): ...this.
9476 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9477 (shnbsd_fill_reg): ...this.
9478 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9479 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9480 (fetch_core_registers): Use shnbsd_supply_reg.
9481 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9482 (sh_nbsd_core_fns): Rename to...
9483 (shnbsd_core_fns): ...this.
9484 (sh_nbsd_elfcore_fns): Rename to...
9485 (shnbsd_elfcore_fns): ...this.
9486 (sh_nbsd_init_abi): Rename to...
9487 (shnbsd_init_abi): ...this.
9488 (_initialize_sh_nbsd_tdep): Rename to...
9489 (_initialize_shnbsd_tdep): ...this.
9490 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9491 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9492 sh_nbsd_fill_register): Remove prototypes.
9493 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9494
9495 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9496
9497 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9498 (i387-nat.o): Delete dependency list.
9499 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9500 (x86-64-linux-nat.o): Likewise.
9501 * i387-nat.c: Delete file, moving contents to...
9502 * i387-tdep.c: ...here.
9503 * i387-nat.h: Rename...
9504 * i387-tdep.h: ...to this.
9505 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9506 * i386-linux-nat.c: Likewise.
9507 * i386bsd-nat.c: Likewise.
9508 * i386gnu-nat.c: Likewise.
9509 * i386nbsd-nat.c: Likewise.
9510 * i386v4-nat.c: Likewise.
9511 * x86-64-linux-nat.c: Likewise.
9512 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9513 * config/i386/go32.mh (NATDEPFILES): Likewise.
9514 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9515 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9516 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9517 * config/i386/linux.mh (NATDEPFILES): Likewise.
9518 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9519 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9520 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9521 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9522
9523 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9524
9525 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9526 (alphanbsd-nat.o): Remove dependency list.
9527 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9528 * alphanbsd-nat.c: Delete. Contents moved to...
9529 * alphanbsd-tdep.c: ...here.
9530 (_initialize_alphanbsd_tdep): Register core functions.
9531 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9532
9533 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9534
9535 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9536 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9537 (alphanbsd-nat.o): Likewise.
9538 (alphabsd-tdep.o): New dependency list.
9539 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9540 (fill_gregset): Use alphabsd_fill_reg.
9541 (supply_fpregset): Use alphabsd_supply_fpreg.
9542 (fill_fpregset): Use alphabsd_fill_fpreg.
9543 (fetch_inferior_registers): Use struct reg and struct fpreg
9544 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9545 and alphabsd_supply_fpreg.
9546 (store_inferior_registers): Use struct reg and struct fpreg
9547 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9548 and alphabsd_fill_fpreg.
9549 * alphabsd-tdep.c: New file.
9550 * alphabsd-tdep.h: New file.
9551 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9552 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9553 alphabsd_supply_fpreg.
9554 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9555 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9556
9557 2002-05-11 Eric Christopher <echristo@redhat.com>
9558
9559 * mips-tdep.c (mips_double_register_type): Fix thinko.
9560 (mips_single_register_type): Ditto.
9561 * MAINTAINERS: Add self.
9562
9563 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9564
9565 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9566 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9567 right thing on architectures with different endianness and/or
9568 integer sizes.
9569
9570 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9571
9572 From Christian Limpach <chris@Pin.LU>
9573 * configure.in: Change sed expression which comments out
9574 NATDEPFILES to also comment out continuation lines.
9575 * configure: Regenerate.
9576
9577 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9580 big patch.
9581
9582 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9583
9584 * sh-tdep.c: Include correct file.
9585
9586 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9587
9588 New support for sh64-elf (sh5) target.
9589
9590 * configure.tgt: For sh64-elf target, default to sh-elf.
9591
9592 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9593 (struct gdbarch_tdep): Add new fields for new registers and ABI
9594 info.
9595
9596 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9597 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9598 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9599 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9600 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9601 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9602 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9603 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9604 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9605 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9606 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9607 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9608 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9609 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9610 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9611 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9612 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9613 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9614 sign_extend, sh64_nofp_frame_init_saved_regs,
9615 sh64_init_extra_frame_info, sh64_get_saved_register,
9616 sh64_extract_struct_value_address, sh64_pop_frame,
9617 sh64_push_arguments, sh64_extract_return_value,
9618 sh64_store_return_value, sh64_show_media_regs,
9619 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9620 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9621 sh_sh64_register_virtual_type,
9622 sh_sh64_register_convert_to_virtual,
9623 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9624 sh64_register_read, sh64_pseudo_register_write,
9625 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9626 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9627 sh64_do_pseudo_register, sh_compact_do_registers_info,
9628 sh64_do_registers_info, sh_gdbarch_init): New functions.
9629
9630 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9631
9632 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9633
9634 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9635
9636 * linespec.c (decode_line_1): Check for a double quote after
9637 a filename correctly.
9638
9639 2002-05-10 Jim Blandy <jimb@redhat.com>
9640
9641 Properly track the size of the current objfile's .debug_line section.
9642 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9643 (DWARF_LINE_SIZE): New macro.
9644 (dwarf2_build_psymtabs_hard): Record the line section's size in
9645 the partial symbol table.
9646 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9647 symbol table.
9648
9649 2002-05-10 Petr Sorfa <petrs@caldera.com>
9650
9651 * ia64-tdep.c: Handle breakpoints on L instruction type
9652 in MLX instruction bundle by moving the breakpoint to
9653 the third slot (X instruction type) as L holds only data.
9654
9655 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9656
9657 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9658 (process_one_symbol): Complain about discarding local symbols
9659 due to a misplaced N_LBRAC entry.
9660
9661 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9662
9663 From Daniel Berlin <dan@cgsoftware.com>
9664 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9665 decrease the depth we are at, in the case of templates.
9666
9667 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9668
9669 * mips-tdep.c (mips_float_register_type): New function.
9670 (mips_double_register_type): New function.
9671 (mips_print_register): Use them.
9672 (do_fp_register_row): Likewise.
9673
9674 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9675
9676 * signals/signals.c (signals): Remove conditional compilation around
9677 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9678 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9679
9680 2002-05-09 Michael Snyder <msnyder@redhat.com>
9681
9682 * remote-rdp.c (remote_rdp_can_run): Remove.
9683
9684 2002-05-09 Tom Tromey <tromey@redhat.com>
9685
9686 * jv-valprint.c (java_val_print): Handle `char' as a special case
9687 of TYPE_CODE_INT.
9688
9689 2002-05-09 Michael Snyder <msnyder@redhat.com>
9690
9691 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9692 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9693 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9694 str r(0123),[sp,#nn].
9695 (arm_skip_prologue): Ditto. Also make disassembly
9696 order-independent by placing it in a loop.
9697
9698 2002-05-06 Michael Snyder <msnyder@redhat.com>
9699
9700 * stabsread.c (read_type): Add recognition for new attribute:
9701 "@V;" means that an array type is actually a vector.
9702 This is analogous to the vector flag that's been added to dwarf2.
9703
9704 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9705
9706 * i386-tdep.h (i386_abi): New enum.
9707 (struct gdbarch_tdep): Replace os_ident member with abi.
9708 (i386_gdbarch_register_os_abi): New prototype.
9709 * i386-tdep.c (i386_abi_names): New array.
9710 (process_note_abi_tag_sections): Removed.
9711 (process_note_sections): New function.
9712 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9713 (struct i386_abi_handler): New struct.
9714 (i386_abi_handler_list): New variable.
9715 (i386_gdbarch_register_os_abi): New function.
9716 (i386_gdbarch_init): Adapt for the changes given above.
9717
9718 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9719
9720 * gregset.h: Say "GNU/Linux".
9721
9722 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9723
9724 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9725 (build_gdbtypes): Build builtin_type_v2_float.
9726 (_initialize_gdbtypes): Register new builtin type.
9727
9728 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9729
9730 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9731 (clear_gdbarch_swap): New function.
9732 (initialize_non_multiarch): Call.
9733 (gdbarch_update_p): Before calling init(), swap out and clear the
9734 existing architecture.
9735 * gdbarch.c: Regenerate.
9736
9737 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9738
9739 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9740 alphanbsd-tdep.c.
9741
9742 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9743
9744 * sh-nbsd-nat.c: Rename to...
9745 * shnbsd-nat.c: ...this.
9746 * sh-nbsd-tdep.c: Rename to...
9747 * shnbsd-tdep.c: ...this.
9748 * sh-nbsd-tdep.h: Rename to...
9749 * shnbsd-tdep.h: ...this.
9750 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9751 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9752
9753 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9754
9755 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9756 concatenation for command help messages.
9757
9758 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9759
9760 * NEWS: Note new sh*-*-netbsdelf* configuration.
9761 * configure.host: Set gdb_host_cpu to sh for all sh*.
9762 (sh*-*-netbsdelf*): New host.
9763 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9764 (sh*-*-netbsdelf*): New target.
9765 * sh-nbsd-nat.c: New file.
9766 * sh-nbsd-tdep.c: New file.
9767 * sh-nbsd-tdep.h: New file.
9768 * config/sh/nbsd.mh: New file.
9769 * config/sh/nbsd.mt: New file.
9770 * config/sh/nm-nbsd.h: New file.
9771 * config/sh/tm-nbsd.h: New file.
9772
9773 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9774
9775 * sh-tdep.c (sh_osabi_names): Declare.
9776 (process_note_abi_tag_sections): New function.
9777 (get_elfosabi): Ditto.
9778 (sh_gdbarch_register_os_abi): Ditto.
9779 (sh_dump_tdep): Ditto.
9780 _initialize_sh_tdep): Use gdbarch_register to register
9781 sh_gdbarch_init and sh_dump_tdep.
9782 * config/sh/tm-sh.h (sh_osabi): Declare.
9783 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9784
9785 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9786
9787 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9788 (thumb_scan_prologue): Ditto.
9789 (arm_find_callers_reg): Ditto.
9790 (arm_frame_chain): Ditto.
9791 (arm_init_extra_frame_info): Ditto.
9792 (arm_frame_saved_pc): Ditto.
9793 (arm_pop_frame): Ditto.
9794 (arm_push_return_address): New function.
9795 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9796 call_dummy_location, call_dummy_breakpoint_offset_p,
9797 call_dummy_breakpoint_offset, call_dummy_p,
9798 call_dummy_stack_adjust_p, call_dummy_words,
9799 sizeof_call_dummy_words, call_dummy_start_offset,
9800 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9801 call_dummy_address, push_return_address and push_dummy_frame for
9802 generic dummy frames.
9803
9804 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9805
9806 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9807 size computation for alloca.
9808 (sh_fp_frame_init_saved_regs): Likewise.
9809
9810 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9811
9812 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9813 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9814 * arm-tdep.c (arm_store_return_value): Use them.
9815 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9816 * remote-rdp.c (remote_rdp_fetch_register): Use
9817 ARM_MAX_REGISTER_RAW_SIZE.
9818 (remote_rdp_store_register): Likewise.
9819
9820 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9821
9822 * dwarf2cfi.c: Code cleanup, removed unused variables,
9823 added default labels to switch {} statements.
9824 * x86-64-tdep.c: Ditto.
9825 * x86-64-linux-nat.c: Ditto.
9826
9827 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9828
9829 * solib.h: Protect against multiple inclusion.
9830
9831 2002-05-06 Jim Blandy <jimb@redhat.com>
9832
9833 Add first preprocessor macro-expansion files.
9834 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9835 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9836 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9837 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9838 (COMMON_OBS): Add macrotab.o, macroexp.o.
9839 (macroexp.o, macrotab.o): New rules.
9840
9841 Separate the job of reading the line number info statement program
9842 header (...expialidocious) out into its own function.
9843 * dwarf2read.c (struct line_head, struct filenames, struct
9844 directories): Replace with...
9845 (struct line_header): New structure, containing the full
9846 contents of the statement program header, including the
9847 include directory and file name tables.
9848 (read_file_scope): If we have line number info, instead of just
9849 calling dwarf_decode_lines to do all the work, call
9850 dwarf_decode_line_header first to get a `struct line_header'
9851 containing the data in the statement program header, and then
9852 pass that to dwarf_decode_lines, which will pick up where that
9853 left off. Be sure to clean up the `struct line_header' object.
9854 (dwarf_decode_line_header, free_line_header, add_include_dir,
9855 add_file_name): New functions.
9856 (dwarf_decode_lines): Move all the code to read the statement
9857 program header into dwarf_decode_line_header. Take the line
9858 header it built as the first argument, instead of the offset to
9859 the compilation unit's line number info. Use the new `struct
9860 line_header' type instead of the old structures. No need to do
9861 cleanups here now, since we don't allocate anything.
9862 (dwarf2_statement_list_fits_in_line_number_section,
9863 dwarf2_line_header_too_long): New complaints.
9864
9865 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9866
9867 * gdbtypes.c (init_vector_type): New function.
9868 (build_builtin_type_vec128): Simplify the representation of SIMD
9869 registers.
9870 (build_gdbtypes): Initialize new builtin vector types.
9871 (_initialize_gdbtypes): Register new vector types with gdbarch.
9872 (builtin_type_v4_float, builtin_type_v4_int32,
9873 builtin_type_v8_int16, builtin_type_v16_int8,
9874 builtin_type_v2_int32, builtin_type_v4_int16,
9875 builtin_type_v8_int8): New (renamed) SIMD types.
9876
9877 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9878
9879 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9880 (i387_fill_fxsave): Likewise.
9881
9882 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9883
9884 * alpha-tdep.c (alpha_extract_return_value): Don't use
9885 non-constant array size in prototype.
9886
9887 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9888
9889 From Brian Taylor <briant at model dot com>:
9890 * ui-out.c (ui_out_field_core_addr): Use the function
9891 longest_local_hex_string_custom'to format addresses > 32 bits
9892 wide.
9893
9894 * ui-out.c (ui_out_field_core_addr): Update comment.
9895
9896 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9897
9898 * stack.c (select_and_print_frame): Make static. Delete the
9899 parameter `level'.
9900 (func_command): Update call.
9901 (select_frame_command): Delete code computing the frame level.
9902 * frame.h (select_and_print_frame): Delete declaration.
9903
9904 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9905
9906 * sparc-tdep.c (sparc_get_saved_register): Comment why
9907 get_prev_frame call is safe.
9908
9909 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9910
9911 * frame.h (select_frame): Delete level parameter.
9912 * stack.c (select_frame): Update. Use frame_relative_level to
9913 obtain the frame's level.
9914 (select_and_print_frame): Update call.
9915 (select_frame_command): Ditto.
9916 (up_silently_base): Ditto.
9917 (down_silently_base): Ditto.
9918 * ocd.c (ocd_start_remote): Ditto.
9919 * remote-rdp.c (remote_rdp_open): Ditto.
9920 * remote-mips.c (mips_initialize): Ditto.
9921 (common_open): Ditto.
9922 * remote-e7000.c (e7000_start_remote): Ditto.
9923 * m3-nat.c (select_thread): Ditto.
9924 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9925 (child_get_current_exception_event): Ditto.
9926 * varobj.c (varobj_create): Ditto.
9927 (varobj_update): Ditto.
9928 (c_value_of_root): Ditto.
9929 * tracepoint.c (finish_tfind_command): Ditto.
9930 * corelow.c (core_open): Ditto.
9931 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9932 * thread.c (info_threads_command): Ditto.
9933 (switch_to_thread): Ditto.
9934 * infrun.c (normal_stop): Ditto.
9935 (restore_selected_frame): Ditto.
9936 (restore_inferior_status): Ditto.
9937 * breakpoint.c (insert_breakpoints): Ditto.
9938 (watchpoint_check): Ditto.
9939 (bpstat_stop_status): Ditto.
9940 (do_enable_breakpoint): Ditto.
9941 * blockframe.c (flush_cached_frames): Ditto.
9942 (reinit_frame_cache): Ditto.
9943
9944 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9945
9946 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9947 maintainer.
9948
9949 2002-05-04 Jim Blandy <jimb@redhat.com>
9950
9951 * gdbtypes.c (replace_type): Doc fix.
9952
9953 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9954
9955 * valprint.c (strcat_longest): Delete commented out function.
9956 Update copyright.
9957
9958 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9959
9960 * MAINTAINERS: Mark a29k as deleted.
9961 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9962 Move new configurations to the top.
9963 * configure.tgt: Remove a29k.
9964 * config/a29k/tm-vx29k.h: Delete.
9965 * config/a29k/vx29k.mt: Delete.
9966 * config/a29k/tm-a29k.h: Delete.
9967 * config/a29k/a29k-udi.mt: Delete.
9968 * config/a29k/a29k.mt: Delete.
9969 * a29k-tdep.c: Delete.
9970 * remote-udi.c: Delete.
9971 * remote-mm.c: Delete.
9972 * remote-eb.c: Delete.
9973 * remote-adapt.c: Delete.
9974 * Makefile.in: Remove obsolete code.
9975 * config/s390/s390x.mt: Ditto.
9976 * config/s390/s390.mt: Ditto.
9977 * config/sparc/sparclynx.mh: Ditto.
9978 * config/sparc/linux.mh: Ditto.
9979 * config/pa/hppaosf.mh: Ditto.
9980 * config/pa/hppabsd.mh: Ditto.
9981 * config/ns32k/nbsd.mt: Ditto.
9982 * config/mips/vr5000.mt: Ditto.
9983 * config/m68k/sun3os4.mh: Ditto.
9984 * config/m68k/nbsd.mt: Ditto.
9985 * config/m68k/m68klynx.mh: Ditto.
9986 * config/m32r/m32r.mt: Ditto.
9987 * config/i386/x86-64linux.mt: Ditto.
9988 * config/i386/nbsdelf.mt: Ditto.
9989 * config/i386/nbsd.mt: Ditto.
9990 * config/i386/i386lynx.mh: Ditto.
9991
9992 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9993
9994 * target.c (debug_print_register): New function. Handle oversize
9995 registers.
9996 (debug_to_fetch_registers): Call.
9997 (debug_to_store_registers): Call.
9998
9999 2002-05-03 Jim Blandy <jimb@redhat.com>
10000
10001 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10002 (read_type): Doc fix.
10003 * gdbtypes.c (replace_type): Doc fix.
10004
10005 * stabsread.c (multiply_defined_struct): New complaint.
10006 (read_struct_type): If the type we were passed isn't empty, or
10007 incomplete, don't read the new struct type into it; complain,
10008 and return the original type unchanged. Take a new `type_code'
10009 argument, which is the type code for the new type.
10010 (read_type): Rather than storing the type's type code here, pass
10011 it as an argument to read_struct_type, and let that take care of
10012 storing it. That way, we don't overwrite the original type code,
10013 so read_struct_type can use it to decide whether we're overwriting
10014 something we shouldn't.
10015 (complain_about_struct_wipeout): New function.
10016
10017 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10018
10019 * gdbarch.sh: Assert that gdbarch is non-NULL.
10020 * gdbarch.c: Regenerate.
10021
10022 2002-05-03 Jason Merrill <jason@redhat.com>
10023
10024 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10025 and return NULL.
10026
10027 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10028
10029 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10030 (x86_64_dwarf2gdb_regno_map_length),
10031 (x86_64_dwarf2_reg_to_regnum): Added.
10032 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10033 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10034 (_initialize_x86_64_tdep): Synced with the change above.
10035 (x86_64_skip_prologue): Reformulated message.
10036
10037 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10038
10039 * f-exp.y: Also use new prev_lexptr variable
10040 to improve error reporting. Based on Michael Snyder
10041 2002-04-24 dated patch to c-exp.y.
10042 * jv-exp.y: Likewise.
10043 * m2-exp.y: Likewise.
10044
10045 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10046
10047 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10048 we are dealing with vectors.
10049
10050 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10051
10052 * config/m68k/tm-nbsd.h: Obvious fix,
10053 correct machine name.
10054
10055 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10056
10057 * p-typeprint.c (pascal_type_print_base): Add support
10058 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10059
10060 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10061
10062 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10063 for fondamental pascal 'char' type.
10064
10065 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10066
10067 * p-lang.h (is_pascal_string_type): Declaration changed,
10068 new sixth argument of type char ** added.
10069 * p-lang.c (is_pascal_string_type): Implementation
10070 changed. Args length_pos, length_size, string_pos, char_size
10071 can now be NULL. New argument arrayname set to the field
10072 name of the char array. Return value set to char array
10073 field index plus one.
10074 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10075 is_pascal_string_type function.
10076
10077 2002-05-02 Andrew Cagney <cagney@redhat.com>
10078
10079 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10080 <cagney@redhat.com> change.
10081 * gdbarch.c: Regenerate.
10082
10083 2002-05-02 Andrew Cagney <cagney@redhat.com>
10084
10085 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10086 before probing for a new one. Detect errorenous gdbarch_init
10087 functions.
10088 * gdbarch.c: Regenerate.
10089
10090 2002-05-01 Andrew Cagney <cagney@redhat.com>
10091
10092 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10093 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10094 * config/v850/tm-v850.h: Ditto. Update copyright.
10095
10096 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10097
10098 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10099 current_gdbarch.
10100
10101 2002-04-30 Michael Snyder <msnyder@redhat.com>
10102
10103 * arm-tdep.c: Whitespace clean-ups.
10104 (arm_skip_prologue): Fix thinko; two lines
10105 should have been removed as part of 4/24 change.
10106
10107 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10108
10109 * rs6000-tdep.c: Added comment describing how fpscr register
10110 numbers were chosen.
10111
10112 2002-04-30 Michael Snyder <msnyder@redhat.com>
10113
10114 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10115
10116 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10117
10118 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10119 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10120 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10121
10122 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10123
10124 From Louis Hamilton <hamilton@redhat.com>:
10125 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10126 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10127 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10128 not bfd-private xcoff data, to determine wordsize.
10129 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10130
10131 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10132
10133 GDB 5.2 released from 5.2 branch.
10134
10135 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10136
10137 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10138 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10139 (x86_64_register_info_table): Added comments with register numbers.
10140
10141 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10142
10143 * rs6000-tdep.c (rs6000_extract_return_value,
10144 rs6000_store_return_value): Handle returning vectors.
10145 (rs6000_gdbarch_init): Use
10146 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10147 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10148 New function.
10149 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10150 vectors.
10151 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10152 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10153
10154 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10155
10156 * hpread.c (hpread_psymtab_to_symtab_1,
10157 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10158 with fprintf_unfiltered (gdb_stderr,...).
10159
10160 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10161
10162 * remote-array.c (printf_monitor, write_monitor,
10163 array_insert_breakpoint, array_remove_breakpoint ):
10164 Replace fprintf (stderr,...
10165 with fprintf_unfiltered (gdb_stderr,....
10166 * remote-es.c: Likewise.
10167 * remote-os9k.c: Likewise.
10168 * remote-st.c: Likewise.
10169
10170 2002-04-28 Andreas Schwab <schwab@suse.de>
10171
10172 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10173 linux-proc.o and gcore.o.
10174
10175 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10176
10177 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10178 code without frame pointers.
10179
10180 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10181
10182 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10183 ON_STACK is needed.
10184
10185 2002-04-26 Ben Elliston <bje@redhat.com>
10186
10187 * target.c (do_xfer_memory): Correct reference to the new option
10188 "trust-readonly-sections".
10189
10190 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10191
10192 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10193 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10194 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10195 vectors.
10196 (read_array_type): Record the fact that this array type is really a
10197 vector (i.e. are passed in by value).
10198
10199 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10200
10201 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10202 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10203 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10204 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10205 * alpha-linux-tdep.c: Include frame.h.
10206 (alpha_linux_sigcontext_addr): New function.
10207 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10208 alpha_linux_sigcontext_addr.
10209 * alpha-osf1-tdep.c: Include gdbcore.h.
10210 (alpha_osf1_sigcontext_addr): New function.
10211 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10212 alpha_osf1_sigcontext_addr.
10213 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10214 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10215
10216 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10217
10218 * stack.c (selected_frame_level):
10219 (select_frame): Do not set selected_frame_level.
10220 * frame.h (selected_frame_level): Delete declaration.
10221
10222 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10223
10224 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10225 convert_from_func_ptr-addr when AIX / PowerOpen.
10226
10227 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10228
10229 * valops.c (hand_function_call): Call
10230 generic_save_call_dummy_addr.
10231 * frame.h (generic_save_call_dummy_addr): Declare.
10232 * blockframe.c (struct dummy_frame): Add fields call_lo and
10233 call_hi.
10234 (generic_find_dummy_frame): Check for PC in range call_lo to
10235 call_hi instead of entry_point_address.
10236 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10237 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10238 (generic_save_call_dummy_addr): New function.
10239
10240 2002-04-24 David S. Miller <davem@redhat.com>
10241
10242 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10243 sparc_skip_prologue.
10244 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10245 information to find prologue when possible.
10246 (sparc_prologue_frameless_p): Call examine_prologue directly.
10247 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10248 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10249 second argument.
10250 (SKIP_PROLOGUE): Likewise.
10251
10252 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10253
10254 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10255 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10256 indicate that the condition it was testing is always true.
10257 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10258 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10259 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10260
10261 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10262
10263 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10264 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10265 tdep->jb_pc and tdep->jb_elt_size.
10266 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10267 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10268 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10269 * alpha-nat.c (get_longjmp_target): Remove.
10270 (JB_ELEMENT_SIZE): Ditto.
10271 (JB_PC): Ditto.
10272 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10273 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10274 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10275 to alpha_get_longjmp_target.
10276 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10277 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10278 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10279
10280 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10281
10282 * README: Update to GDB 5.2.
10283
10284 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10285
10286 * gdbarch.sh (LC_ALL): Set to `c'.
10287
10288 2002-04-25 Theodore A. Roth <troth@verinet.com>
10289
10290 * avr-tdep.c: Ran through gdb_indent.sh.
10291
10292 2002-04-25 Theodore A. Roth <troth@verinet.com>
10293
10294 * MAINTAINERS: Add myself as AVR maintainer.
10295 * NEWS: Note new target avr.
10296
10297 2002-04-25 Theodore A. Roth <troth@verinet.com>
10298
10299 * Makefile.in: Add support for AVR target.
10300 * configure.tgt: Add support for AVR target.
10301 * avr-tdep.c: New file
10302 * config/avr/avr.mt: New file.
10303
10304 2002-04-25 Theodore A. Roth <troth@verinet.com>
10305
10306 * MAINTAINERS: Add myself to write-after-approval.
10307
10308 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10309
10310 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10311 with fprintf_unfiltered (gdb_stderr,....
10312
10313 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10314
10315 Fix PR gdb/508.
10316 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10317
10318 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10319
10320 * p-exp.y: Also use new prev_lexptr variable
10321 to improve error reporting. Based on Michael Snyder
10322 2002-04-24 dated patch to c-exp.y.
10323
10324 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10325
10326 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10327 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10328 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10329 to 0.
10330 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10331 and struct value.
10332 (FUNCTION_START_OFFSET): Remove.
10333 (BREAKPOINT): Ditto.
10334
10335 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10336
10337 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10338 * NEWS: Ditto.
10339
10340 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10341
10342 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10343 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10344 alpha_linux_pc_in_sigtramp.
10345 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10346 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10347 alpha_osf1_pc_in_sigtramp.
10348 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10349 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10350 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10351 alphafbsd_pc_in_sigtramp.
10352 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10353 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10354 alphanbsd_pc_in_sigtramp.
10355 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10356 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10357
10358 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10359
10360 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10361
10362 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10363
10364 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10365 alphanbsd-tdep.c.
10366 (alphanbsd-nat.o): New dependency list.
10367 (alphanbsd-tdep.o): Ditto.
10368 * NEWS: Note new native NetBSD/alpha configuration.
10369 * alphanbsd-nat.c: New file.
10370 * alphanbsd-tdep.c: Ditto.
10371 * configure.host (alpha*-*-netbsd*): New host.
10372 * configure.tgt (alpha*-*-netbsd*): New target.
10373 * config/alpha/nbsd.mh: New file.
10374 * config/alpha/nbsd.mt: Ditto.
10375 * config/alpha/nm-nbsd.h: Ditto.
10376 * config/alpha/tm-nbsd.h: Ditto.
10377
10378 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10379
10380 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10381 (alpha-osf1-tdep.o): New dependency list.
10382 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10383 and skip_sigtramp_frame members.
10384 * alpha-linux-tdep.c: Include gdbcore.h.
10385 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10386 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10387 * alpha-osf1-tdep.c: New file.
10388 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10389 alpha-osf1-dep.c.
10390 (alpha_frame_past_sigtramp_frame): New function.
10391 (alpha_dynamic_sigtramp_offset): Ditto.
10392 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10393 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10394 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10395 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10396 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10397 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10398 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10399 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10400 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10401 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10402 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10403 to find_solib_trampoline_target.
10404 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10405 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10406 (SKIP_TRAMPOLINE_CODE): Remove.
10407 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10408 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10409 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10410 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10411 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10412 (PROC_SIGTRAMP_MAGIC): Ditto.
10413 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10414 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10415 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10416 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10417 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10418
10419 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10420
10421 * NEWS: Note that Alpha targets are now multi-arch.
10422
10423 2002-04-24 Michael Snyder <msnyder@redhat.com>
10424
10425 * parser-defs.h (prev_lexptr): New external variable.
10426 * parse.c (parse_exp_1): Set prev_lexptr to null before
10427 calling the language-specific parser.
10428 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10429 (yyerror): Use prev_lexptr in error reporting.
10430
10431 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10432
10433 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10434 * gregset.h: If FILL_FPXREGSET is defined, provide
10435 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10436 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10437 is defined, call fill_fpxregset.
10438
10439 2002-04-24 Roland McGrath <roland@frob.com>
10440
10441 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10442 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10443 (supply_gregset, supply_fpregset): New functions.
10444
10445 * gnu-nat.c (gnu_find_memory_regions): New function.
10446 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10447 (gnu_xfer_memory): Add a cast.
10448
10449 2002-04-24 Michael Snyder <msnyder@redhat.com>
10450
10451 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10452 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10453 of argument regs ("str r(0123), [r11, #-nn"]).
10454 (arm_skip_prologue): Better handling for frameless functions.
10455 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10456 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10457
10458 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10459
10460 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10461 NUM_PSEUDO_REGS can be used.
10462
10463 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10464
10465 * arch-utils.h: Update copyright.
10466
10467 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10468 * gdbarch.h, gdbarch.c: Re-generate.
10469
10470 * inferior.h (IN_SIGTRAMP): Delete definition.
10471 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10472 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10473
10474 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10475 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10476 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10477 (find_proc_framesize): Ditto.
10478 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10479 (alpha_init_extra_frame_info): Ditto.
10480 * infrun.c (handle_inferior_event): Ditto.
10481 (handle_inferior_event): Ditto.
10482 (check_sigtramp2): Ditto.
10483 * blockframe.c (create_new_frame): Ditto.
10484 (get_prev_frame): Ditto.
10485 * ppc-linux-tdep.c: Update comments.
10486 * i386-linux-tdep.c: Update comments.
10487 * breakpoint.c (bpstat_what): Update comment.
10488
10489 2002-04-24 David S. Miller <davem@redhat.com>
10490
10491 * i960-tdep.c (register_in_window_p): New function.
10492 (i960_find_saved_register): Use it instead of
10493 REGISTER_IN_WINDOW_P.
10494 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10495
10496 * symtab.h (find_stab_function_addr): Kill extern.
10497 * minsyms.c (find_stab_function_addr): Remove from here...
10498 * dbxread.c: ... to here, and mark it static.
10499
10500 2002-04-20 David S. Miller <davem@redhat.com>
10501
10502 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10503 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10504
10505 2002-04-21 David S. Miller <davem@redhat.com>
10506
10507 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10508 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10509 (vx_write_register): Likewise.
10510
10511 2002-04-23 J. Brobecker <brobecker@gnat.com>
10512
10513 * source.c (is_regular_file): New function.
10514 (openp): Check wether file to open is a regular file
10515 to avoid opening directories.
10516
10517 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10518
10519 * findvar.c (extract_signed_integer): Cast printf argument
10520 to suppress format warning.
10521 (extract_unsigned_integer): Likewise.
10522 * infcmd.c (registers_info): Likewise.
10523 * top.c (get_prompt_1): Likewise.
10524 * valops.c (value_assign): Likewise.
10525 * valprint.c (print_decimal): Likewise.
10526
10527 2002-04-22 H.J. Lu (hjl@gnu.org)
10528
10529 * c-exp.y (typebase): Support
10530
10531 [long|long long|short] [signed|unsigned] [int|]
10532
10533 and
10534
10535 signed [long|long long|short] int
10536
10537 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10538
10539 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10540 and vax-tdep.h.
10541 * vax-tdep.h: New file.
10542 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10543 Make several routines static.
10544 (vax_get_saved_register): New function.
10545 (vax_gdbarch_init): New function.
10546 (_initialize_vax_tdep): Register vax_gdbarch_init.
10547 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10548 Remove macros now under the control of gdbarch.
10549
10550 2002-04-22 Michael Snyder <msnyder@redhat.com>
10551
10552 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10553 Some whitespace and coding standards tweaks.
10554
10555 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10556
10557 * vax-tdep.c: Include regcache.h.
10558 (vax_call_dummy_words): New.
10559 (sizeof_vax_call_dummy_words): New.
10560 (vax_fix_call_dummy): New function.
10561 (vax_saved_pc_after_call): Ditto.
10562 * config/vax/tm-vax.h: Don't include regcache.h.
10563 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10564 (CALL_DUMMY): Remove.
10565 (CALL_DUMMY_WORDS): Define.
10566 (SIZEOF_CALL_DUMMY_WORDS): Define.
10567 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10568
10569 2002-04-18 Michael Snyder <msnyder@redhat.com>
10570
10571 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10572
10573 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10574
10575 * vax-tdep.c (vax_frame_chain): New function.
10576 (vax_push_dummy_frame): Ditto.
10577 (vax_pop_frame): Ditto.
10578 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10579 (FRAMELESS_FUNCTION_INVOCATION): Use
10580 generic_frameless_function_invocation_not.
10581 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10582 (POP_FRAME): Use vax_pop_frame.
10583
10584 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10585
10586 * vax-tdep.c (vax_store_struct_return): New function.
10587 (vax_extract_return_value): Ditto.
10588 (vax_store_return_value): Ditto.
10589 (vax_extract_struct_value_address): Ditto.
10590 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10591 vax_store_struct_return.
10592 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10593 (STORE_RETURN_VALUE): Use vax_store_return_value.
10594 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10595
10596 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10597
10598 * vax-tdep.c (vax_frame_saved_pc): New function.
10599 (vax_frame_args_address_correct): Ditto.
10600 (vax_frame_args_address): Ditto.
10601 (vax_frame_locals_address): Ditto.
10602 (vax_frame_num_args): Move code to be in proximity to
10603 other frame-related functions.
10604 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10605 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10606 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10607 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10608 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10609
10610 2002-04-22 H.J. Lu (hjl@gnu.org)
10611
10612 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10613 includedir.
10614
10615 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10616
10617 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10618 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10619 (FRAME_INIT_SAVED_REGS): New macro.
10620
10621 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10622
10623 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10624
10625 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10626
10627 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10628 where needed.
10629 (fetch_osf_core_registers): Likewise.
10630 (supply_gregset): Likewise.
10631
10632 2002-04-22 J. Brobecker <brobecker@gnat.com>
10633
10634 * symfile.h (get_section_index): Define.
10635 * symfile.c (get_section_index): New function.
10636 * mdebugread.c (SC_IS_SBSS): New macro.
10637 (SC_IS_BSS): Return true for the scBss storage class only, as
10638 the scSBss storage class refers to the .sbss section.
10639 (parse_partial_symbols): Discard the symbols which associated
10640 section does not exist.
10641 Make sure to use the .sbss section index for symbols which
10642 storage class is scBss, rather than using the .bss section index.
10643
10644 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10645
10646 * vax-tdep.c: Update copyright years.
10647 (vax_register_name): New function.
10648 (vax_register_byte): Ditto.
10649 (vax_register_raw_size): Ditto.
10650 (vax_register_virtual_size): Ditto.
10651 (vax_register_virtual_type): Ditto.
10652 * config/vax/tm-vax.h: Update copyright years.
10653 (REGISTER_NAMES): Remove.
10654 (REGISTER_NAME): Define.
10655 (REGISTER_BYTE): Use vax_register_byte.
10656 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10657 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10658 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10659
10660 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10661
10662 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10663 declaration
10664 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10665
10666 2002-04-21 David S. Miller <davem@redhat.com>
10667
10668 * arch-utils.c (generic_prologue_frameless_p): Kill
10669 SKIP_PROLOGUE_FRAMELESS_P code.
10670 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10671 references.
10672 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10673 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10674 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10675 references.
10676 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10677 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10678 (sparc_gdbarch_init): Pass it to
10679 set_gdbarch_prologue_frameless_p.
10680
10681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10682
10683 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10684 (alphabsd-nat.o): New dependency list.
10685
10686 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10687
10688 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10689 alphafbsd-tdep.c.
10690 (alpha-linux-tdep.o): New dependency list.
10691 (alphafbsd-tdep.o): Likewise.
10692
10693 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10696 to here...
10697 * alpha-tdep.c: ...from here.
10698 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10699
10700 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10701
10702 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10703 prototype from here...
10704 * alpha-tdep.h: ...to here.
10705
10706 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10707
10708 * frame.h (selected_frame_level): Document as deprecated.
10709 (frame_relative_level): Declare.
10710 * stack.c (frame_relative_level): New function.
10711 (selected_frame_level): Document as deprecated.
10712 (select_frame): Do not set the selected_frame_level.
10713
10714 * stack.c (frame_info, record_selected_frame): Update.
10715 (frame_command, current_frame_command): Update.
10716 (up_silently_base, up_command, down_silently_base): Update.
10717 (down_command): Update.
10718 * inflow.c (kill_command): Update.
10719 * tracepoint.c (finish_tfind_command): Update.
10720 * corelow.c (core_open): Update.
10721 * thread.c (info_threads_command): Update.
10722 (do_captured_thread_select): Update.
10723 * infcmd.c (finish_command): Update.
10724 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10725
10726 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10727
10728 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10729
10730 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10731
10732 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10733 type const.
10734
10735 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10736
10737 * alphafbsd-tdep.c: Update copyright years. Include
10738 alpha-tdep.h.
10739 (alphafbsd_use_struct_convention): Make static.
10740 (alphafbsd_init_abi): New function.
10741 (_initialize_alphafbsd_tdep): New function.
10742 * config/alpha/tm-fbsd.h: Update copyright years.
10743 (USE_STRUCT_CONVENTION): Remove.
10744
10745 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10746
10747 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10748 an Alpha ABI variant.
10749 (alpha_abi_handler_list): Declare.
10750 (alpha_gdbarch_register_os_abi): New function.
10751 (alpha_gdbarch_init): Give registered ABI variant handlers a
10752 chance to tweak the gdbarch once we have set up defaults.
10753 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10754
10755 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10756
10757 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10758 to standard_coerce_float_to_double.
10759 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10760
10761 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10762
10763 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10764 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10765 from gdbarch_tdep rather than a constant.
10766 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10767 the default text address for all Alpha Unix ABIs.
10768 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10769 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10770
10771 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10772
10773 * alpha-tdep.h: New file. Includes several Alpha target constants
10774 taken from...
10775 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10776 let gdbarch deal with.
10777 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10778 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10779 to dependency list.
10780 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10781 Alpha target register names.
10782 * alphabsd-nat.c: Likewise.
10783 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10784 Alpha target register names. Make serveral routines static.
10785 (alpha_get_saved_register): New function.
10786 (alpha_abi_names): New.
10787 (process_note_abi_tag_sections): New function.
10788 (get_elfosabi): New function.
10789 (alpha_gdbarch_init): New function.
10790 (alpha_dump_tdep): New function.
10791 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10792
10793 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10794
10795 * frame.c (find_saved_register): Delete #ifdef
10796 HAVE_REGISTER_WINDOWS code.
10797 * config/sparc/tm-sparc.h: Update comments.
10798 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10799
10800 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10801
10802 * i960-tdep.c (i960_find_saved_register): New function.
10803 (i960_get_saved_register): New function.
10804 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10805 (i960_get_saved_register): Declare.
10806 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10807
10808 2002-04-20 David S. Miller <davem@redhat.com>
10809
10810 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10811
10812 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10813
10814 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10815 instead of NUM_PSEUDO_REGS.
10816
10817 2002-04-20 David S. Miller <davem@redhat.com>
10818
10819 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10820 GDB_MULTI_ARCH_PARTIAL
10821 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10822 define, let tm-sp64.h do it.
10823
10824 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10825
10826 * frame.c (find_saved_register): Avoid a NULL pointer
10827 dereference and actually walk the frame list.
10828
10829 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10830
10831 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10832 sorted in most most-recent-used order. Document.
10833 * gdbarch.h, gdbarch.c: Regenerate.
10834
10835 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10836
10837 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10838 instead of ->prev.
10839 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10840 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10841 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10842 instead of ->prev.
10843
10844 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10845
10846 Fix PR gdb/471.
10847 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10848 (build_builtin_type_vec128): Ditto.
10849 (append_composite_type_field): Fix calculation of type length in
10850 union case.
10851
10852 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10853
10854 * config/djgpp/README: Update.
10855
10856 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10857 compiler warnings.
10858
10859 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10860
10861 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10862 (alpha_setup_arbitrary_frame): ...to this.
10863 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10864 for alpha_setup_arbitrary_frame.
10865
10866 2002-04-18 Andrew Cagney <cagney@redhat.com>
10867
10868 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10869 * gdbarch.h, gdbarch.c: Regenerate.
10870
10871 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10872 * target.h (memory_breakpoint_from_pc): Update declaration.
10873 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10874
10875 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10876 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10877 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10878 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10879 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10880 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10881 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10882 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10883 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10884 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10885 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10886 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10887
10888 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10889 const pointer.
10890 * monitor.c (monitor_insert_breakpoint): Ditto.
10891 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10892
10893 * config/mcore/tm-mcore.h: Update copyright.
10894 * mem-break.c: Ditto.
10895 * xstormy16-tdep.c: Ditto.
10896
10897 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10898
10899 * p-exp.y: Add precedence rule for '^' token.
10900 This removes the shift/reduce conflicts.
10901 Remove the comment concerning these shift/reduce conflicts.
10902
10903 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10904
10905 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10906 (registers_powerpc_nofp): New register set for processors
10907 without floating point unit.
10908
10909 2002-04-18 David S. Miller <davem@redhat.com>
10910
10911 * MAINTAINERS: Add myself to write-after-approval.
10912
10913 2002-04-17 Michael Snyder <msnyder@redhat.com>
10914
10915 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10916
10917 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10918
10919 * rs6000-tdep.c (frame_initial_stack_address): Use
10920 frame_register_read to read the alloca_reg.
10921
10922 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10923
10924 * frame.c (find_saved_register): Find saved registers in the next
10925 not prev frame.
10926 Fix PR gdb/365.
10927
10928 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10929
10930 * gdbarch.sh (LANG): Set to ``c''.
10931
10932 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10933
10934 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10935
10936 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10937
10938 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10939 Update copyright.
10940
10941 * hpread.c (hpread_get_lntt): Add declaration.
10942 Also fix PR gdb/391.
10943
10944 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10945
10946 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10947 * aclocal.m4, configure: Re-generate.
10948 Fix PR gdb/391.
10949
10950 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10951
10952 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10953 instead of tm_print_insn.
10954
10955 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10956
10957 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10958
10959 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10960
10961 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10962 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10963 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10964
10965 2002-04-12 Don Howard <dhoward@redhat.com>
10966
10967 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10968 max_user_call_depth.
10969 (init_cmd_lists): Initialize the new value;
10970 * cli/cli-script.c (execute_user_command): Limit the call depth of
10971 user defined commands. This avoids a core-dump when user commands
10972 are infinitly recursive.
10973
10974 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10975
10976 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10977 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10978 from tdep struct instead of DEFAULT_LR_SAVE.
10979 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10980 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10981 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10982
10983 2002-04-12 Michael Snyder <msnyder@redhat.com>
10984
10985 * Remote.c: Spelling fix.
10986 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10987 If no symbol found for "sbrk", try "_sbrk".
10988 (make_output_phdrs): Use bfd_section_name.
10989 (gcore_copy_callback): Use bfd_section_name.
10990 * eval.c: Indentation fix-ups.
10991 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10992 in case it gets applied to an address that is already
10993 in the instruction space.
10994 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10995 * symfile.c: Fix indentation, long lines.
10996 * source.c: White space fix-up.
10997
10998 2002-04-12 Andrew Cagney <cagney@redhat.com>
10999
11000 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11001 * frame.c (frame_register_read): New function. Return non-zero on
11002 success.
11003 (read_relative_register_raw_bytes_for_frame): Delete.
11004 (read_relative_register_raw_bytes): Delete.
11005 * frame.h (frame_register_read): Declare.
11006 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11007 * sh-tdep.c: Ditto.
11008 * infcmd.c (do_registers_info): Ditto.
11009 * hppa-tdep.c: Ditto.
11010 * rs6000-tdep.c: Ditto.
11011 * h8500-tdep.c: Ditto.
11012 * mips-tdep.c: Ditto.
11013 * h8300-tdep.c: Ditto.
11014 * z8k-tdep.c: Ditto.
11015
11016 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11017
11018 From Jimi X <jimix@watson.ibm.com>:
11019 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11020 64-bit SysV ABI.
11021
11022 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11023
11024 From Jimi X <jimix@watson.ibm.com>:
11025 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11026 bfd info.
11027
11028 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11029
11030 From Jimi X <jimix@watson.ibm.com>:
11031 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11032 register sets for these processor variants.
11033
11034 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11035
11036 * regformats/reg-ppc.dat: Support FPSCR.
11037
11038 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11039
11040 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11041 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11042 Add fpscr as an invalid/unfetchable register.
11043 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11044 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11045 (fill_fpregset): Add support for register fpscr.
11046 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11047 (fill_gregset): Account for the fact that register ``mq'' might
11048 not exist.
11049 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11050 (registers_power): Add fpscr to register set at slot 71.
11051 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11052 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11053
11054 2002-04-11 Michael Snyder <msnyder@redhat.com>
11055
11056 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11057 * configure: Regenerate.
11058 * config.in: Regenerate.
11059 * acconfig.h: Add define for _SYSCALL32.
11060 * core-sol2.c: Remove #define _SYSCALL32.
11061 * solib-legacy.c: Remove #define _SYSCALL32.
11062
11063 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11064
11065 * stack.c (select_frame): Cleanup internal error message, do not
11066 use %p.
11067
11068 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11069
11070 * stack.c (select_frame): Check that selected_frame and the
11071 specified level are as expected.
11072 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11073 Update copyright.
11074 * frame.h (struct frame_info): Add field `level'. Update
11075 copyright.
11076 Work-in-progress PR gdb/464.
11077
11078 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11079
11080 * maint.c (maint_print_section_info): Rename print_section_info.
11081 (print_bfd_section_info, print_objfile_section_info): Update.
11082 * inferior.h (struct gdbarch): Add opaque declaration.
11083 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11084 * gdbarch.h: Regenerate.
11085
11086 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11087
11088 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11089 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11090 (kernel_u_size): Added.
11091 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11092 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11093
11094 2002-04-04 Jim Ingham <jingham@apple.com>
11095
11096 * valarith.c (find_size_for_pointer_math): New function, either returns
11097 the size for a pointer's target, returns 1 for void *, or errors for
11098 incomplete types.
11099 (value_add, value_sub): use find_size_for_pointer_math.
11100
11101 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * linux-low.c (linux_look_up_symbols): New hook.
11104 (linux_target_ops): Add linux_look_up_symbols.
11105 * remote-utils.c (decode_address): New function.
11106 (look_up_one_symbol): New function.
11107 * server.c (handle_query): Call target look_up_symbols hook.
11108 * server.h (look_up_one_symbol): Add prototype.
11109 * target.h (struct target_ops): Add look_up_symbols hook.
11110
11111 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11112
11113 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11114 override FP_REGNUM with frame->fp. Update copyright.
11115 * parse.c (num_std_regs, std_regs): Delete.
11116 (target_map_name_to_register): Do not search std_regs. Update
11117 function description.
11118 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11119 declarations. Update copyright.
11120 Fix PR gdb/251.
11121
11122 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11125 after the last symbol in a block.
11126
11127 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11128
11129 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11130 is non zero as a found symbol.
11131
11132 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11133
11134 * findvar.c: Include "builtin-regs.h".
11135 (value_of_register): Call value_of_builtin_reg when applicable.
11136 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11137 (target_map_name_to_register): Call
11138 builtin_reg_map_name_to_regnum.
11139 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11140 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11141 (builtin_regs_h): Define.
11142 (builtin-regs.o): New target.
11143 (findvar.o): Add $(builtin_regs_h).
11144 * builtin-regs.c, builtin-regs.h: New files.
11145 * std-regs.c: New file.
11146 Partial fix for PR gdb/251.
11147
11148 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11149
11150 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11151 it's no longer required.
11152
11153 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11154
11155 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11156
11157 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11158
11159 From Jimi X <jimix@watson.ibm.com>:
11160 * rs6000-tdep.c (rs6000_software_single_step): Use
11161 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11162 and size. Use target_insert_breakpoint() and
11163 target_remove_breakpoint() to insert and remove breakpoints
11164 instead of explicit memory reads and writes.
11165
11166 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11167
11168 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11169 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11170 ELF_OBJECT_FORMAT ifdef.
11171
11172 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11173
11174 From Jimi X <jimix@watson.ibm.com>:
11175 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11176
11177 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11178
11179 From Jimi X <jimix@watson.ibm.com>:
11180 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11181 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11182
11183 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11184
11185 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11186 s/asprintf/xasprintf/.
11187 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11188
11189 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11190
11191 I believe Jeff Law denies responsability for this one:
11192 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11193 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11194 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11195 Work-around for PR gdb/366.
11196
11197 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11198
11199 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11200 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11201 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11202
11203 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11204
11205 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11206 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11207 information.
11208
11209 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11210
11211 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11212 maintainer.
11213
11214 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11215
11216 * README (Reporting Bugs in GDB): Document the bug web page as the
11217 prefered way of submitting bugs.
11218 Fix PR gdb/402.
11219
11220 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11221
11222 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11223 -1. Update comment.
11224 * gdbarch.h, gdbarch.c: Re-generate.
11225
11226 2002-04-07 Andreas Schwab <schwab@suse.de>
11227
11228 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11229 buffer to regcache_collect.
11230
11231 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11232
11233 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11234 * gdbarch.c, gdbarch.h: Re-generate.
11235
11236 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11237
11238 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11239 declaration. Fix -Werror.
11240
11241 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11242
11243 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11244 * gdbarch.c: Regenerate.
11245
11246 2002-04-05 Michael Snyder <msnyder@redhat.com>
11247
11248 * breakpoint.c (clear_command): Rewrite middle section to
11249 combine two loops with identical control conditions.
11250 Add a cleanup to eliminate a memory leak.
11251 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11252
11253 2002-04-05 H.J. Lu (hjl@gnu.org)
11254
11255 * solib-svr4.c (bkpt_names): Add "__start".
11256
11257 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11258
11259 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11260 as test for 64 bit target.
11261
11262 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11263
11264 * h8500-tdep.c (h8500_write_fp): Delete function.
11265 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11266 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11267 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11269 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11270 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11271 (s390_write_fp):
11272 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11273 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11274 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11275 (d10v_write_fp): Delete function.
11276 * inferior.h (write_fp, generic_target_write_fp): Delete
11277 declarations.
11278 * regcache.c (generic_target_write_fp): Delete function.
11279 (write_fp): Delete function.
11280 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11281 * gdbarch.h, gdbarch.c: Regenerate.
11282 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11283 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11284 (sparc64_write_fp): Delete declaration.
11285 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11286 (h8500_write_fp): Delete declaration.
11287
11288 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11289
11290 * sparc-tdep.c (sparc64_write_fp): Delete.
11291 (sparc_push_dummy_frame): Replace write_fp call with code to store
11292 the FP directly.
11293 (sparc_gdbarch_init): Do not initialize write_fp.
11294
11295 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11296
11297 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11298 clause.
11299
11300 2002-03-29 Jim Blandy <jimb@redhat.com>
11301
11302 * stack.c (get_selected_block): Add new argument `addr_in_block',
11303 used to return the exact code address we used to select the block,
11304 not just the block.
11305 * blockframe.c (get_frame_block, get_current_block): Same.
11306 * frame.h (get_frame_block, get_current_block,
11307 get_selected_block): Update declarations.
11308 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11309 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11310
11311 2002-04-05 Michael Snyder <msnyder@redhat.com>
11312
11313 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11314 warning message.
11315
11316 2002-04-05 J. Brobecker <brobecker@gnat.com>
11317
11318 * utils.c (xfullpath): New function.
11319 * defs.h (xfullpath): Add declaration.
11320 * source.c (openp): Use xfullpath in place of gdb_realpath to
11321 avoid resolving the basename part of filenames when the
11322 associated file is a symbolic link. This fixes a potential
11323 inconsistency between the filenames known to GDB and the
11324 filenames it prints in the annotations.
11325 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11326 to be able to match a filename with either the real filename, or
11327 the name of any symbolic link to this file.
11328 (lookup_partial_symtab): Ditto.
11329
11330 2002-04-04 Michael Snyder <msnyder@redhat.com>
11331
11332 * breakpoint.c: Add support for hardware breakpoints in overlays.
11333 (overlay_events_enabled): New state variable.
11334 (insert_breakpoints): Use overlay_events_enabled to decide
11335 whether to attempt to set a breakpoint at the overlay load addr.
11336 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11337 (remove_breakpoint): Use overlay_events_enabled to decide
11338 whether breakpoints need to be removed from overlay load addr.
11339 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11340 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11341 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11342 disable_overlay_breakpoints): Update overlay_events_enabled.
11343
11344 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11345
11346 * dwarf2read.c (struct function_range): New.
11347 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11348 (check_cu_functions): New.
11349 (read_file_scope): Initialize global function lists.
11350 Call dwarf_decode_line after processing children.
11351 (read_func_scope): Add to global function list.
11352 (dwarf_decode_lines): Call check_cu_functions everywhere
11353 record_line is called. Call record_line with a linenumber
11354 of 0 to mark sequence ends.
11355
11356 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11357
11358 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11359 change sync with glibc.
11360
11361 2002-04-03 Jim Blandy <jimb@redhat.com>
11362
11363 * configure.in: Call AC_C_INLINE.
11364 * configure: Regenerated.
11365
11366 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11367
11368 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11369 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11370
11371 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11372
11373 * NEWS: Mention gcore support on FreeBSD/i386.
11374
11375 * fbsd-proc.c: New file.
11376 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11377 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11378
11379 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11380 while statement.
11381
11382 2002-03-29 Jim Blandy <jimb@redhat.com>
11383
11384 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11385 unescaped newlines in string literals, but newer ones don't. So
11386 escape them.
11387
11388 2002-03-26 Michael Snyder <msnyder@redhat.com>
11389 Andrew Cagney <cagney@redhat.com>
11390
11391 * cli/cli-dump.c: New file. Dump memory to file,
11392 restore file to memory.
11393 * cli/cli-dump.h: New file.
11394 * Makefile.in: Add rules, dependencies for cli-dump.o.
11395 * NEWS: Mention new commands.
11396
11397 2002-03-28 Michael Snyder <msnyder@redhat.com>
11398
11399 * symfile.c (symbol_file_add): Move test for null symbols to later.
11400
11401 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11402
11403 From veksler at il.ibm.com:
11404 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11405 the xstrduped original path.
11406 Fix PR gdb/417.
11407
11408 2002-03-27 Michael Snyder <msnyder@redhat.com>
11409
11410 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11411 * infcmd.c (_initialize_infcmd): Ditto.
11412 * language.c (_initialize_language): Ditto.
11413 * symfile.c (_initialize_symfile): Ditto.
11414 * top.c (_init_main): Ditto.
11415 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11416
11417 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11418
11419 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11420 vector registers handling.
11421 (skip_prologue): Handle new AltiVec instructions. Fill in new
11422 fields of frame data.
11423 (frame_get_saved_regs): Fill in information for AltiVec registers.
11424
11425 2002-03-27 Jim Blandy <jimb@redhat.com>
11426
11427 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11428 a function; leave this macro here to invoke that function.
11429 (symbol_init_mangled_name): Declaration for that function.
11430 * symtab.c (symbol_init_mangled_name): New function.
11431
11432 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11433
11434 * valarith.c: Replace strerror with safe_strerror.
11435 * tracepoint.c: Ditto.
11436 * lin-lwp.c: Ditto.
11437 * go32-nat.c: Ditto.
11438 * inflow.c: Ditto.
11439 * gnu-nat.c: Ditto.
11440
11441 2002-03-27 Andreas Schwab <schwab@suse.de>
11442
11443 * event-top.c (command_line_handler): Remove useless if.
11444
11445 2002-03-27 Andreas Jaeger <aj@suse.de>
11446
11447 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11448 comment.
11449
11450 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11451
11452 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11453 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11454 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11455 (x86_64_linux_dr_get_status, supply_gregset),
11456 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11457 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11458 (x86_64_register_info_table): Add.
11459 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11460 (x86_64_register_raw_size, x86_64_register_virtual_type),
11461 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11462 general x86_64_register_info_table.
11463 (i386_gdbarch_init): gdbarch_register_bytes is now set
11464 dynamicaly during initialization.
11465 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11466 * gdbserver/linux-x86-64-low.c: Ditto.
11467
11468 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11469
11470 * gdbserver/server.c (main): Call target_signal_to_host_p
11471 and target_signal_to_host on signals received from the remote.
11472 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11473 target_signal_from_host on signals sent to the remote.
11474 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11475 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11476
11477 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11478
11479 * signals/signals.c: Include "server.h" in gdbserver build.
11480 (target_signal_from_name): Don't use STREQ.
11481 (_initialize_signals): Likewise. Don't include function in
11482 gdbserver build.
11483
11484 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11485
11486 * signals.c: Moved to...
11487 * signals/signals.c: Here.
11488 * Makefile (signals.o): Update.
11489
11490 2002-03-26 Jeff Law (law@redhat.com)
11491
11492 * somread.c (som_symtab_read): Remove some commented out code and
11493 updated related comments. Do not set the minimal symbol table to
11494 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11495 in a dynamic executable.
11496 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11497 where we are unable to find the minimal symbol for the given
11498 PC value.
11499
11500 2002-03-25 Jeff Law (law@redhat.com)
11501
11502 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11503
11504 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11505
11506 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11507
11508 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11509
11510 * command.h: Update copyright.
11511 (struct cmd_list_element): Replace definition with opaque
11512 declaration.
11513 (enum cmd_types): Document that it will eventually be moved to
11514 cli/cli-decode.h
11515 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11516 (MALLOCED_REPLACEMENT): Delete macro.
11517 * Makefile.in (cli_decode_h): Add $(command_h).
11518 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11519 * top.c: Include "cli/cli-decode.h".
11520 * completer.c: Include "cli/cli-decode.h".
11521 * maint.c: Include "cli/cli-decode.h".
11522 * cli/cli-decode.h: Include "command.h".
11523 (enum command_class): Delete.
11524 (enum cmd_types): Comment out.
11525 (enum cmd_auto_boolean): Delete.
11526 (enum var_types): Delete.
11527
11528 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11529
11530 * cli/cli-decode.c: Include "gdb_assert.h".
11531 (add_set_or_show_cmd): New static function.
11532 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11533 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11534 all fields, such as func, from the set command.
11535
11536 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11537
11538 * MAINTAINERS (sh-elf): Change warning flag to -w.
11539
11540 2002-03-23 Andrew Cagney <cagney@redhat.com>
11541
11542 * defs.h (error): Add printf format attribute.
11543 * thread-db.c (thread_from_lwp): Fix error format string.
11544 * stack.c (parse_frame_specification): Ditto.
11545 * cli/cli-decode.c (undef_cmd_error): Ditto.
11546 * scm-lang.c (scm_lookup_name): Ditto.
11547 * tracepoint.c (trace_error): Ditto.
11548 * remote-utils.c (usage): Ditto.
11549 * remote.c (compare_sections_command): Ditto.
11550 Fix PR gdb/328.
11551
11552 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11553
11554 * gdbtypes.c (append_composite_type_field): New function.
11555 (init_composite_type): New function.
11556 * gdbtypes.h (append_composite_type_field): Declare.
11557 (init_composite_type): Ditto.
11558
11559 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11560
11561 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11562 function.
11563 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11564 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11565 structure returning convention for SYSV ABI case, but not
11566 for GNU/Linux, FreeBSD, or NetBSD.
11567
11568 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11569
11570 * symtab.h (lookup_block_symbol): Add mangled_name argument
11571 to prototype.
11572
11573 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11574 with new mangled_name argument.
11575 * linespec.c (decode_line_1): Likewise.
11576 * valops (value_of_this): Likewise.
11577 * symtab.c (lookup_transparent_type): Likewise.
11578 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11579 (lookup_symbol): If we are given a mangled name, pass it down
11580 to lookup_symbol_aux.
11581 (lookup_block_symbol): If we are given a mangled name to check
11582 against, only return symbols which match it.
11583
11584 2002-03-22 Christopher Faylor <cgf@redhat.com>
11585
11586 * win32-nat.c (child_create_inferior): Check for proper shell to use
11587 here, in case the user changes it on the fly.
11588 (_initialize_inftarg): Remove shell path considerations.
11589
11590 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11591
11592 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11593 for gdbarch_max_register_raw_size and max_register_virtual_size.
11594 Adjust copyright year.
11595
11596 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11597
11598 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11599 in a function to cover the entire beginning of the function
11600 as well if it does not already.
11601
11602 2002-03-21 Tom Rix <trix@redhat.com>
11603
11604 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11605 (rs6000_ptrace64): Renamed from ptrace64.
11606
11607 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11608
11609 * gdbserver/remote-utils.c (remote_open): Don't call
11610 getprotobyname, we're all using TCP here so just use
11611 IPPROTO_TCP.
11612 * gdbserver/gdbreplay.c (remote_open): Ditto.
11613
11614 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11615
11616 * regcache.c (_initialize_regcache): No need to call
11617 build_regcache() at this time; it gets called whenever
11618 the gdbarch changes.
11619
11620 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11621
11622 * sparc-nat.c: Include sys/param.h where possible.
11623
11624 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11625
11626 Fix PR gdb/422.
11627 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11628 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11629 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11630 complex types.
11631 * stabsread.c (rs6000_builtin_type): Likewise.
11632 (read_sun_floating_type): Likewise.
11633
11634 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11635
11636 * stabsread.c (read_member_functions): Remove skip code for duplicate
11637 constructor/destructor methods. Use standard parsing for these
11638 methods and just do not chain them to the list of methods after
11639 parsing.
11640
11641 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11642
11643 * coffread.c: Remove redundant static declarations. Replace
11644 occurrences of `PTR' with `void *'.
11645 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11646 * top.h (quit_cover): Likewise.
11647 * defs.h (catch_errors): Likewise.
11648
11649 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11650
11651 * defs.h (XMALLOC): Define.
11652 * gdb-events.sh (XMALLOC): Delete macro.
11653 * gdb-events.c, gdb-events.h: Regenerate.
11654 * gdbarch.sh (XMALLOC): Delete macro.
11655 * gdbarch.c: Regenerate.
11656 * serial.c (XMALLOC): Delete macro.
11657 * ui-file.c (XMALLOC): Ditto.
11658 * ser-unix.h (XMALLOC): Ditto.
11659 * sh-tdep.c (XMALLOC): Ditto.
11660 * ui-out.c (XMALLOC): Ditto.
11661 * utils.c (XMALLOC): Ditto.
11662 * i386-tdep.c (XMALLOC): Ditto.
11663 * gdb-events.c (XMALLOC): Ditto.
11664 * d10v-tdep.c (XMALLOC): Ditto.
11665 * cli-out.c (XMALLOC): Ditto.
11666
11667 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11668 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11669 * ui-file.c, ui-out.c: Ditto.
11670
11671 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11672
11673 * command.h (struct cmd_list_element): Add field context.
11674 (set_cmd_context, get_cmd_context): Declare.
11675 * cli/cli-decode.h: Ditto.
11676 * cli/cli-decode.c (get_cmd_context): New function.
11677 (set_cmd_context): New function.
11678 (add_cmd): Initialize context.
11679 Part of fixing PR gdb/145 and PR gdb/146.
11680
11681 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11682
11683 * cli/cli-decode.c (cmd_type): New function.
11684 * command.h (cmd_type): Declare.
11685 * infrun.c (set_schedlock_func): Call function cmd_type.
11686 * kod.c (kod_set_os): Call cmd_type.
11687 * cris-tdep.c (cris_version_update): Use function cmd_type.
11688 (cris_mode_update, cris_abi_update): Ditto.
11689
11690 * command.h: (execute_cmd_post_hook): Declare.
11691 (execute_cmd_pre_hook): Declare.
11692 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11693 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11694 functions. Execute pre/post hook while ensuring that afterwords
11695 hook_in is cleared.
11696 * top.c (execute_command): Use execute_cmd_post_hook, and
11697 execute_cmd_pre_hook to execute pre/post commands.
11698 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11699 hook_stop_stub.
11700 (hook_stop_stub): Call execute_cmd_pre_hook.
11701
11702 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11703
11704 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11705 set'' and this leads to a core dump. Move xstrdup of
11706 operating_system to after check that it is not NULL.
11707
11708 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11709
11710 * kod.c (kod_set_os): Remove unnecessary check that
11711 ``command->type'' is set_cmd.
11712
11713 * valprint.c (set_input_radix): Use input_radix.
11714 (set_output_radix): Use output_radix.
11715 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11716 isn't reverted.
11717
11718 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11719
11720 * value.h (struct value): Delete field ``substring_addr''. Change
11721 aligner fields to force_doublest_align, force_longest_align,
11722 force_core_addr_align and force_pointer_aligh.
11723
11724 * value.h (struct value): Fix typo in above change.
11725
11726 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11727
11728 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11729 to fix internal_error from ``maintenance print architecture''.
11730
11731 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11732
11733 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11734 for gcc versions after gcc-2.8.1.
11735
11736 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11737
11738 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11739 for method resolution. Restore adjustment of ``this'' pointer after
11740 calling value_struct_elt, which was accidentally removed during the
11741 HP merge.
11742
11743 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11744
11745 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11746 value_of_register.
11747 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11748 get_saved_register.
11749 * value.h (value_of_register): Update.
11750
11751 2002-03-14 Richard Henderson <rth@redhat.com>
11752
11753 * configure.in: Detect declaration for canonicalize_file_name.
11754 * utils.c (canonicalize_file_name): Declare, if needed.
11755 (gdb_realpath): Prefer realpath if available and usable.
11756 * config.in, configure: Rebuild.
11757
11758 2002-03-14 Richard Henderson <rth@redhat.com>
11759
11760 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11761 a constant array bound.
11762
11763 * MAINTAINERS: Add myself to write-after-approval.
11764
11765 2002-03-14 Michael Snyder <msnyder@redhat.com>
11766
11767 * symfile.c (syms_from_objfile): Return immediately if no syms.
11768 (symbol_file_add): Return immediately if no syms.
11769 (find_sym_fns): Return immediately if no syms.
11770
11771 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11772
11773 * gdbserver/remote-util.c (remote_open): Print remote-side's
11774 IP address when remote debugging over the network.
11775
11776 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11777
11778 * config/sparc/fbsd.mh: Fix copyright.
11779 * config/sparc/fbsd.mt: Likewise.
11780
11781 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11782
11783 * MAINTAINERS: Fix typo in name of gdb warnings option.
11784 (x86-64): Fix formating so that this can be parsed by awk.
11785
11786 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11787
11788 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11789 * defs.h: Include "gdb/signals.h".
11790 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11791
11792 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11793
11794 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11795 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11796 from x86-64-tdep.h
11797
11798 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11799 Don Howard <dhoward@redhat.com>
11800
11801 * mips-tdep.c (ST0_FR): Define.
11802 (mips2_fp_compat): New function, temporarily disabled.
11803 (mips_read_fp_register_single): New function.
11804 (mips_read_fp_register_double): New function.
11805 (mips_print_register): Use them.
11806 (do_fp_register_row): Likewise.
11807
11808 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11809
11810 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11811 approval''.
11812
11813 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11814
11815 * stabsread.c (read_member_functions): Fix is_stub test for
11816 static member functions, improve comment.
11817
11818 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11819
11820 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11821 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11822 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11823 commands that set boolean values.
11824 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11825 (arm_rdi_resume): Always initialize PC.
11826 (arm_rdi_open): Don't use rslt as a boolean.
11827 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11828 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11829 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11830 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11831
11832 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11833
11834 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11835 * configure: Rebuilt.
11836
11837 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11838
11839 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11840 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11841
11842 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11843
11844 * cli/cli-decode.c (set_cmd_completer): New function.
11845 * command.h (set_cmd_completer): Declare.
11846 * cli/cli-decode.h (set_cmd_completer): Ditto.
11847
11848 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11849 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11850 * win32-nat.c (_initialize_inftarg): Ditto.
11851 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11852 * proc-api.c (_initialize_proc_api): Ditto.
11853 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11854 * source.c (_initialize_source): Ditto.
11855 * exec.c (_initialize_exec): Ditto.
11856 * solib.c (_initialize_solib): Ditto.
11857 * top.c (init_main): Ditto.
11858 * tracepoint.c (_initialize_tracepoint): Ditto.
11859 * symfile.c (_initialize_symfile): Ditto.
11860 * printcmd.c (_initialize_printcmd): Ditto.
11861 * infcmd.c (_initialize_infcmd): Ditto.
11862 * corefile.c (_initialize_core): Ditto.
11863
11864 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11865
11866 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11867
11868 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11869
11870 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11871
11872 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11873
11874 * NEWS: Update headings, 5.2 has branched.
11875
11876 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11879 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11880 (register_addr, REGISTER_RAW_SIZE): Likewise.
11881 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11882 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11883
11884 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11885
11886 * MAINTAINERS (x86-64): Add myself.
11887 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11888 changed value_ptr -> struct value *
11889
11890 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11891
11892 * configure.host (sparc64-*-freebsd): Add.
11893 * configure.tgt: Likewise.
11894 * config/sparc/fbsd.mh: New file.
11895 * config/sparc/fbsd.mt: Likewise.
11896 * config/sparc/nm-fbsd.h: Likewise.
11897 * config/sparc/tm-fbsd.h: Likewise.
11898
11899 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11900
11901 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11902 regformats/reg-s390x.dat.
11903
11904 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11905
11906 * utils.c: Add FIXME explaining true/false problem.
11907
11908 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11909
11910 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11911
11912 2002-02-28 Michael Chastain <mec@shout.net>
11913
11914 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11915
11916 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11917
11918 * gdbserver/linux-s390-low.c: New file.
11919 * regformats/reg-s390.dat: New file.
11920 * regformats/reg-s390x.dat: New file.
11921 * gdbserver/configure.srv: Add S/390.
11922 * gdbserver/Makefile.in: Add S/390.
11923 * configure.tgt: Enable gdbserver for S/390.
11924
11925 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11926
11927 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11928 first line of the doc string for "info dos", except at the end of
11929 the sentence, since the short help stops at the first period.
11930
11931 2002-02-28 Jason Merrill <jason@redhat.com>
11932
11933 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11934
11935 2002-02-27 Fred Fish <fnf@redhat.com>
11936
11937 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11938 comment (dumy -> dummy).
11939
11940 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11941
11942 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11943
11944 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11945
11946 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11947
11948 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * gdbserver/acconfig.h: New file.
11951 * gdbserver/i387-fp.c: New file.
11952 * gdbserver/i387-fp.h: New file.
11953 * gdbserver/linux-x86-64.c: New file.
11954 * regformats/reg-x86-64.dat: New file.
11955 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11956 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11957 * gdbserver/configure.in: Add support for regsets.
11958 * gdbserver/config.in: Regenerate.
11959 * gdbserver/configure: Regenerate.
11960 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11961 * gdbserver/linux-low.h: New file.
11962 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11963 for regsets.
11964 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11965 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11966 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11967 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11968 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11969 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11970 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11971 "i387-fp.h". Add PTRACE_GETREGS and friends.
11972 * gdbserver/regcache.c (supply_register): New function.
11973 (supply_register_by_name): New function.
11974 (collect_register): New function.
11975 (collect_register_by_name): New function.
11976
11977 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11978
11979 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11980 (config.status): Add configure.srv dependency.
11981 (server_h): Add config.h dependency.
11982
11983 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11986 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11987 * gdbserver/configure.srv: Change i386-*-linux* to use
11988 reg-i386-linux.o.
11989
11990 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11991
11992 * x86-64-tdep.c: Re-indent. Update copyright date.
11993
11994 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11995
11996 From Michal Ludvig <mludvig@suse.cz>:
11997 * x86-64-tdep.c (value.h): Delete.
11998 (gdb_assert.h): Include.
11999 (x86_64_register_convert_to_virtual,
12000 x86_64_register_convert_to_raw ): Add check which lets only
12001 floating-point values to be converted.
12002 (value_push): Delete.
12003 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12004 (i386_gdbarch_init): Number of register_bytes fixed.
12005
12006 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12007
12008 * MAINTAINERS: Add x86-64 target.
12009
12010 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12011
12012 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12013 * osfsolib.c (solib_map_sections): Ditto.
12014 * irix5-nat.c (solib_map_sections): Ditto.
12015 * corelow.c (gdb_check_format): Ditto.
12016 * symfile.c (symfile_bfd_open): Ditto.
12017 * solib.c (solib_map_sections): Ditto.
12018 Fix PR gdb/354.
12019
12020 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12021
12022 * remote.c (_initialize_remote): By default, disable ``e'' and
12023 ``E'' step out-of-range packets.
12024
12025 2002-02-26 Andreas Schwab <schwab@suse.de>
12026
12027 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12028 m68k_linux_frame_saved_pc.
12029 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12030 in_sigtramp.
12031 (SIGCONTEXT_PC_OFFSET): Remove.
12032 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12033 m68k_linux_sigtramp_saved_pc): New functions.
12034 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12035 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12036 (UCONTEXT_PC_OFFSET): Define.
12037 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12038 non-RT and RT signal trampolines.
12039
12040 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12041
12042 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12043 (TARGET_NBPG, STACK_END_ADDR): Delete
12044 (VARIABLES_INSIDE_BLOCK): Delete.
12045
12046 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12047
12048 * utils.c (perror_with_name): Make string parameter constant.
12049 (print_sys_errmsg): Ditto.
12050 (query): Ditto.
12051 * defs.h (perror_with_name): Update.
12052 (print_sys_errmsg): Update.
12053 (query): Update.
12054
12055 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12056
12057 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12058 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12059
12060 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12061
12062 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12063 if it already matches the current architecture from the exec file.
12064 Include arch-utils.h for gdbarch_info_init prototype.
12065 * Makefile.in (rs6000-nat.o): Update dependencies.
12066
12067 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12068
12069 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12070 list of exported variables.
12071
12072 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12073
12074 * gdbserver/configure.srv: New file.
12075 * gdbserver/configure.in: Use configure.srv instead
12076 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12077 from it.
12078 * gdbserver/configure: Regenerated.
12079 * gdbserver/terminal.h: New file.
12080 * gdbserver/Makefile.in: Update for configure changes. Remove
12081 more unneeded include paths.
12082
12083 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12084
12085 From wiz at danbala:
12086 * config/sparc/tm-sp64.h: Fix grammar and typos.
12087 Fix PR gdb/287.
12088
12089 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12090
12091 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12092 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12093 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12094 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12095 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12096 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12097 * s390-tdep.c: Ditto.
12098 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12099 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12100 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12101 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12102 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12103 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12104 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12105 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12106 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12107 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12108 Fix PR gdb/378.
12109
12110 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12111
12112 * lin-thread.c: Delete file.
12113 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12114 to gdb_proc_service.h.
12115 * configure: Re-generate.
12116
12117 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12118 * serial.c (serial_open): Delete check for "ocd".
12119 Fix PR gdb/349.
12120
12121 * Makefile.in (linux-thread.o): Delete target.
12122 * linux-thread.c: Delete file.
12123
12124 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12125 renamed SH files to be consistent.
12126
12127 * symtab.c (sort_search_symbols): Use xfree.
12128
12129 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12130
12131 * arm-linux-tdep.c (arm_linux_init_abi): Register
12132 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12133 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12134 definition with undef, since we don't want the sysvr4 definition.
12135 (SKIP_TRAMPOLINE_CODE): Likewise.
12136
12137 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12138
12139 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12140
12141 * configure.in: (AC_CHECK_FUNCS) Added test for
12142 canonicalize_file_name Regenerated.
12143 * config.in, configure: Regenerated.
12144 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12145 defined use canonicalize_file_name.
12146
12147 2002-02-23 Michael Chastain <mec@shout.net>
12148
12149 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12150
12151 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12152
12153 * README: Remove references to cygnus.com.
12154 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12155 dot com'' form. Remove references to cygnus.com and sourceware.
12156
12157 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12158
12159 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12160 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12161 1003.1-2001 no longer allows "head -1".
12162 * gdb/Makefile.in (version.c): Likewise.
12163 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12164 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12165 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12166
12167 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12168
12169 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12170 * command.h (cmd_cfunc_eq): Declare.
12171 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12172
12173 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12174 ``struct cmd_list_element *''.
12175 * cli/cli-cmds.c (is_complete_command): Update. Use
12176 cmd_cfunc_eq.
12177 * top.c (execute_command): Pass the command to
12178 is_complete_command.
12179 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12180
12181 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12182
12183 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12184 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12185 architecture defines.
12186 * s390-tdep.c (s390_gdbarch_init): Likewise.
12187
12188 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12189
12190 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12191 (arm_linux_push_arguments): Likewise.
12192 (arm_linux_init_abi): Register them. Also register linux-specific
12193 call_dummy_words.
12194 (find_minsym_and_objfile): Use strcmp, not STREQ.
12195 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12196 (arm_linux_call_dummy_words): Delete declaration.
12197 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12198 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12199 declarations.
12200 (LOWEST_PC): Delete.
12201
12202 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12203
12204 * maint.c (print_section_info): Do not prepend `0x' to filepos
12205 output, it will be handled by local_hex_string_custom.
12206
12207 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12208
12209 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12210 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12211 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12212
12213 2002-02-22 Jim Blandy <jimb@redhat.com>
12214
12215 Indicate that the bcache functions don't change the strings
12216 they're passed.
12217 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12218 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12219
12220 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12221
12222 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12223
12224 2002-02-21 Christopher Faylor <cgf@redhat.com>
12225
12226 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12227 find the complete path to a loaded DLL.
12228
12229 2002-02-21 Fred Fish <fnf@redhat.com>
12230
12231 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12232 that marks the end of the range of a function, enter a line number
12233 entry that has a line number of zero and a PC offset that matches
12234 the end of the function. This starts a range of PC's for which no
12235 line number information is known.
12236 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12237 PC's for which no line number info is found (line number is zero)
12238 then we didn't find any valid line information.
12239 * symtab.h: Document use of zero line number entry.
12240
12241 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12242
12243 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12244 (have_ptrace_getvrregs): Define for run time checks.
12245 (gdb_vrregset_t): New type for Altivec register handling.
12246 (fetch_register, store_register): Fetch/store altivec register
12247 when needed.
12248 (fetch_altivec_register, store_altivec_register): New functions.
12249 (supply_vrregset, fill_vrregset): New functions.
12250 (fetch_altivec_registers, store_altivec_registers): New functions.
12251 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12252 registers as well.
12253
12254 2002-02-21 Jiri Smid <smid@suse.cz>
12255
12256 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12257
12258 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12259
12260 * Makefile.in (armnbsd-nat.o): Update dependencies.
12261 * armnbsd-nat.c (supply_gregset): New function. Common code to
12262 supply the integer register set.
12263 (supply_fparegset): New function. Similar for FPA registers.
12264 (fetch_regs, fetch_fp_regs): Use them.
12265 (fetch_core_registers): Likewise.
12266 (fetch_elfcore_registers): New function.
12267 (arm_netbsd_elfcore_fns): New core-file type specification.
12268 (_initialize_arm_netbsd_nat): Register it.
12269
12270 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12271
12272 * armnbsd-nat.c: Include gdbcore.h.
12273 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12274 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12275 'void' to declaration, to shut up ARI.
12276 (fetch_core_registers): Make static. Rewrite using supply_register.
12277 (arm_netbsd_core_fns): New core-file type specification.
12278 (_initialize_arm_netbsd_nat): New function.
12279
12280 2002-02-21 Christopher Faylor <cgf@redhat.com>
12281
12282 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12283 value.
12284
12285 2002-02-20 Christopher Faylor <cgf@redhat.com>
12286
12287 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12288 fails.
12289
12290 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12291
12292 * jv-exp.y (parse_number): Change type of implicit longs
12293 to builtin_type_uint64.
12294
12295 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12296
12297 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12298 to be an integer instead of a `union wait'.
12299
12300 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * mips-linux-nat.c: Call the operating system GNU/Linux.
12303 * mips-linux-tdep.c: Likewise.
12304 * mips-tdep.c: Likewise.
12305
12306 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12307
12308 Fix PR gdb/265.
12309 * jv-exp.y (parse_number): Handle 64-bit integers.
12310
12311 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12312
12313 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12314 AC_STDC_HEADERS to AC_HEADER_STDC.
12315 * gdbserver/configure: Regenerated.
12316
12317 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12318
12319 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12320 is defined.
12321 * sparc-tdep.c (get_longjmp_target): Likewise.
12322
12323 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12324
12325 * News: Add news about ARM and Multi-arch. Mention the new target
12326 arm*-*-netbsd*.
12327
12328 2002-02-19 Jim Blandy <jimb@redhat.com>
12329
12330 * stabsread.c (error_type_complaint): Improve error message.
12331
12332 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12333
12334 * gdbserver/README: Update documentation.
12335 * gdbserver/configure.in: Update configury to match documentation.
12336 * gdbserver/Makefile.in: Likewise.
12337 * gdbserver/configure: Regenerated.
12338 * gdbserver/aclocal.m4: New file, generated by aclocal.
12339 * gdbserver/config.in: New file, generated by autoheader.
12340
12341 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12342
12343 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12344 armnbsd-nat.c.
12345
12346 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12347
12348 * arm-tdep.h (enum arm_float_model): New enum.
12349 (struct gdbarch_tdep): Add fp_model.
12350 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12351 up floating-point conversions until we know the floating-point model
12352 in use by the inferior. Don't complain about being unable to
12353 determine the ABI of the inferior when we don't have one.
12354 (arm_extract_return_value): Support different floating-point models.
12355 (arm_store_return_value): Likewise.
12356 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12357 ARM_FLOAT_SOFT.
12358 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12359
12360 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12361
12362 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12363 of ``current_gdbarch''.
12364
12365 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12366
12367 * armnbsd-nat.c : ANSIfy all function declarations.
12368 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12369 (fetch_inferior_registers): Re-implement in terms of above.
12370 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12371 (store_inferior_registers): Re-implement in terms of above.
12372
12373 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12374
12375 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12376 kernel.
12377 * arm-linux-tdep.c: Likewise.
12378 * config/arm/tm-linux.h: Likewise.
12379
12380 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12381
12382 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12383 * config/arm/nbsd.mt (TM_FILE): Delete.
12384 * config/arm/tm-nbsd.h: Delete.
12385
12386 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12387
12388 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12389 Initialize CALL_DUMMY_LENGTH.
12390
12391 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12392
12393 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12394 function.
12395 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12396 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12397 defines one thing and that is incorrect for this port.
12398 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12399
12400 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12401
12402 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12403
12404 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12405
12406 * win32-nat.c (display_selector): New function. Displays information
12407 about the information returned by GetThreadSelectorEntry API function.
12408 (display_selectors): New function. Displays the infomation of
12409 the selector given as argument, or of CS, DS ans FS selectors
12410 if no argument is given.
12411 ( _initialize_inftarg): Add "w32" as info prefix command.
12412 Add "info w32 selector" as command calling display_selectors.
12413
12414 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12415
12416 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12417 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12418 if not defined.
12419
12420 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12421
12422 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12423
12424 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12425
12426 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12427 (arm_fix_call_dummy): Call it.
12428 (arm_call_dummy_breakpoint_offset): Delete.
12429 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12430 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12431
12432 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12433
12434 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12435 Default to func_frame_chain_valid.
12436 * gdbarch.h, gdbarch.c: Re-generate.
12437 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12438
12439 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12440
12441 * ppc-linux-nat.c: Update copyright.
12442 (fetch_register, store_register): Add tid parameter, don't compute
12443 tid here.
12444 (fetch_ppc_registers, store_ppc_registers): Add tid
12445 parameter. Pass it along to callees.
12446 (fetch_inferior_registers, store_inferior_registers): Compute tid
12447 here, and pass it to calleed functions.
12448 (fill_gregset, supply_fpregset): Clean up formatting.
12449
12450 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12451
12452 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12453 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12454
12455 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12456
12457 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12458 * gdbarch.c gdbarch.h: Regenerate.
12459 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12460 function.
12461 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12462 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12463 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12464
12465 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12466 * arm-tdep.c (arm_get_longjmp_target): New function.
12467 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12468 this to a positive value register arm_get_longjmp_target as the
12469 longjmp handler.
12470 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12471 (arm_linux_init_abi): Set up longjmp description in tdep.
12472 * armnbsd-nat.c (get_longjmp_target): Delete.
12473 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12474 description in tdep.
12475 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12476 (get_longjmp_target): Delete declaration.
12477 (GET_LONGJMP_TARGET): Delete.
12478 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12479 (GET_LONGJMP_TARGET): Delete.
12480
12481 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12482
12483 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12484 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12485 of ``current_gdbarch''.
12486
12487 2002-02-17 Tom Tromey <tromey@redhat.com>
12488
12489 * cli/cli-cmds.c (compare_strings): New function.
12490 (complete_command): Only print each unique item once.
12491 * completer.h (complete_line): Declare.
12492 * completer.c (complete_line): New function.
12493 (line_completion_function): Use it.
12494
12495 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12496
12497 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12498 * gdbarch.h, gdbarch.c: Re-generate.
12499
12500 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12501
12502 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12503
12504 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12505
12506 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12507 * valops.c (value_arg_coerce): Don't take the address of a reference
12508 to convert an argument to a reference.
12509
12510 2002-02-15 Christopher Faylor <cgf@redhat.com>
12511
12512 * win32-nat.c (get_image_name): New function.
12513 (handle_load_dll): Use get_image_name function.
12514 (get_child_debug_event): Avoid registering debug events until possibly
12515 execed process is started.
12516 (child_create_inferior): Allow invocation via shell so that command
12517 line redirection, etc. works ok.
12518 (_initialize_inftarg): Add new command: "set shell" to control whether
12519 a shell is used to start a process.
12520
12521 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12522
12523 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12524 instead of find_register_by_number.
12525 (cannot_store_register): Likewise.
12526
12527 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12528
12529 * dwarf2read.c: Replace fprintf (stderr, ...) by
12530 fprintf_unfiltered (gdb_stderr, ...).
12531
12532 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12533
12534 * gdbserver/gdbserver.1: Document --attach.
12535
12536 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12537
12538 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12539 descriptions.
12540 * arm-tdep.c (arm_default_arm_le_breakpoint)
12541 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12542 (arm_default_thumb_be_breakpoint): New. Initialize them from
12543 traditional breakpoint defines.
12544 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12545 (arm_gdbarch_init): Initialize new breakpoint variables.
12546 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12547 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12548 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12549 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12550 code out to ...
12551 (arm_netbsd_init_abi_common): ... here; new function.
12552 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12553 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12554 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12555 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12556
12557 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12558
12559 * arm-tdep.h (enum arm_abi): New enum.
12560 (struct gdbarch_tdep): New structure.
12561 (LOWEST_PC): Provide a default.
12562 (arm_gdbarch_register_os_abi): Declare new function.
12563 * arm-tdep.c (arm_abi_names): New array.
12564 (process_note_abi_tag_sections): New function.
12565 (get_elfosabi): New function.
12566 (arm_gdbarch_register_os_abi): New function.
12567 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12568 support for that ABI has been built in, then call the appropriate
12569 configuration routine. Use gdbarch_num_regs() to get the number
12570 of registers.
12571 (arm_dump_tdep): New function.
12572 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12573 place-holder functions.
12574 (_initialize_arm_tdep): Register them.
12575 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12576
12577 * armnbsd-tdep.c: New file.
12578 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12579 * config/arm/nbsd.mt (TDEPFILES): Add it.
12580 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12581
12582 * armnbsd-nat.c: Include regcache.h.
12583 * Makefile.in (armnbsd-nat.o): Update dependency list.
12584
12585 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12586
12587 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12588
12589 * gdbserver/Makefile.in: Fix typos in target rules.
12590
12591 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12592
12593 Fix part of PR gdb/267.
12594 * linespec.c (find_methods): Handle constructors specially for now.
12595
12596 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12597
12598 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12599 handling.
12600 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12601 standard_coerce_float_to_double().
12602
12603 2002-02-14 Christopher Faylor <cgf@redhat.com>
12604
12605 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12606 GDBINIT_FILENAME.
12607
12608 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12609
12610 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12611 find_variant_by_name, because it confuses the multiarch
12612 framework. Return NULL if there isn't an architecture with the
12613 user supplied name, instead of forcing a different one without
12614 recording the change with the multiarch machinery.
12615 (find_variant_by_name): Delete.
12616
12617 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12618
12619 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12620 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12621
12622 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12623
12624 * stack.c (print_frame_info_base): When calling
12625 print_frame_info_listing_hook, set current_source_symtab.
12626
12627 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12628
12629 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12630 and remove unused $(INCLUDE_DIR).
12631 Add regcache.c to OBS.
12632 Add generated register protocol files to clean target.
12633 Update dependencies for new objects, obsolete old target code.
12634
12635 * gdbserver/linux-low.c: Remove all platform-specific code to
12636 new files. Remove various dead code. Update to use regcache
12637 functionality.
12638 * gdbserver/remote-utils.c (fromhex): Add return statement
12639 to quiet warning.
12640 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12641 constant.
12642 (input_interrupt): Add integer parameter to match prototype
12643 of a signal handler.
12644 (outreg): Use register_data ().
12645 (prepare_resume_reply): Use gdbserver_expedite_regs.
12646 * gdbserver/server.c (main): Dynamically allocate own_buf because
12647 PBUFSIZ is no longer constant. Use registers_to_string () and
12648 registers_from_string ().
12649 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12650 for error (), fatal (), and warning (). Update definition of
12651 PBUFSIZ to use regcache functionality. Add include guard.
12652 * gdbserver/utils.c (fatal): Add missing ``const''.
12653 (warning): New function.
12654
12655 * regformats/regdat.sh: Include "regcache.h" in generated files.
12656 Provide init_registers () function.
12657 * regformats/regdef.h: Add prototype for set_register_cache ().
12658 Add include guard.
12659
12660 * gdbserver/linux-arm-low.c: New file.
12661 * gdbserver/linux-i386-low.c: New file.
12662 * gdbserver/linux-ia64-low.c: New file.
12663 * gdbserver/linux-m68k-low.c: New file.
12664 * gdbserver/linux-mips-low.c: New file.
12665 * gdbserver/linux-ppc-low.c: New file.
12666 * gdbserver/linux-sh-low.c: New file.
12667
12668 * gdbserver/regcache.c: New file.
12669 * gdbserver/regcache.h: New file.
12670
12671 * gdbserver/low-linux.c: Removed obsolete file.
12672
12673 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12674
12675 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12676 * config/i386/linux.mt: Likewise.
12677 * config/ia64/linux.mt: Likewise.
12678 * config/m68k/linux.mh: Likewise.
12679 * config/powerpc/linux.mh: Likewise.
12680 * config/mips/linux.mt: Likewise.
12681
12682 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12683
12684 * config/i386/i386lynx.mh: Mark gdbserver variables
12685 as (currently) obsolete for this target.
12686 * config/i386/nbsd.mt: Likewise.
12687 * config/i386/nbsdelf.mt: Likewise.
12688 * config/m32r/m32r.mt: Likewise.
12689 * config/m68k/m68klynx.mh: Likewise.
12690 * config/m68k/nbsd.mt: Likewise.
12691 * config/m68k/sun3os4.mh: Likewise.
12692 * config/mips/vr5000.mt: Likewise.
12693 * config/ns32k/nbsd.mt: Likewise.
12694 * config/pa/hppabsd.mh: Likewise.
12695 * config/pa/hppaosf.mh: Likewise.
12696 * config/powerpc/nbsd.mt: Likewise.
12697 * config/rs6000/rs6000lynx.mh: Likewise.
12698 * config/s390/s390.mt: Likewise.
12699 * config/s390/s390x.mt: Likewise.
12700 * config/sparc/sparclynx.mh: Likewise.
12701 * config/sparc/sun4os4.mh: Likewise.
12702 * config/i386/x86-64linux.mt: Likewise.
12703 * config/sparc/linux.mh: Likewise.
12704
12705 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12706
12707 * configure.tgt: Configure gdbserver only for known working
12708 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12709 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12710 SUBDIRS if it is configured. Update comment for ${nativefile}.
12711 * configure: Regenerated.
12712
12713 2002-02-13 Michael Snyder <msnyder@redhat.com>
12714
12715 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12716
12717 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12718 (default_gcore_mach): Just return 0, work around a problem in bfd.
12719 (default_gcore_target): OK to return NULL if exec_bfd is null.
12720 (make_mem_sec): Use a cast, avoid a warning.
12721
12722 * procfs.c (find_memory_regions_callback): Use a cast instead of
12723 calling host_pointer_to_address (which complains if
12724 sizeof (host pointer) != sizeof (target pointer)).
12725 (procfs_make_note_section): Avoid overflow in psargs string.
12726
12727 * procfs.c (procfs_make_note_section): Make the default
12728 implementation return an error.
12729
12730 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12731
12732 * procfs.c (procfs_make_note_section): Provide a default definition
12733 (for alpha-dec-osf4.0f). Fix typos.
12734
12735 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12736
12737 * linux-proc.c: Add include of regcache.h.
12738 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12739
12740 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12741
12742 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12743 * memattr.c (create_mem_region): Disallow useless empty region.
12744 Regions are half-open intervals, so allow [A..B) [B..C) as
12745 non-overlapping.
12746
12747 2002-02-13 Michael Chastain <mec@shout.net>
12748
12749 * defs.h: Kill CONST_PTR.
12750 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12751 * c-lang.c (c_builtin_types): Likewise.
12752 * ch-lang.c (ch_builtin_types): Likewise.
12753 * f-lang.c (f_builtin_types): Likewise.
12754 * language.c (unknown_builtin_types): Likewise.
12755 * m2-lang.c (m2_builtin_types): Likewise.
12756 * p-lang.c (pascal_builtin_types): Likewise.
12757 * scm-lang.c (c_builtin_types): Likewise.
12758
12759 2002-02-13 Keith Seitz <keiths@redhat.com>
12760
12761 * arm-tdep.h (arm_get_next_pc): Add declaration.
12762
12763 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12764
12765 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12766 with other related struct-returning functions.
12767 (arm_extract_struct_value_address): New function.
12768 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12769 initialize float_format, double_format and long_double_format as
12770 appropriate to the endianness of the target.
12771 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12772 (arm_use_struct_convention): Delete declaration.
12773 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12774
12775 2002-02-13 Keith Seitz <keiths@redhat.com>
12776
12777 * defs.h (core_addr_to_string_nz): New function.
12778
12779 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12780
12781 Apply missing bits of 2002-01-15 patch.
12782 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12783 (fill_fpregset): Use i387_fill_fsave.
12784
12785 2002-02-12 Keith Seitz <keiths@redhat.com>
12786
12787 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12788 (core_addr_to_string_nz): New function.
12789
12790 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12791
12792 * arm-linux-nat.c: Really include arm-tdep.h.
12793 * config/arm/tm-linux.h (struct type, struct value): Declare.
12794
12795 2002-02-11 Michael Snyder <msnyder@redhat.com>
12796
12797 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12798 (gcore section): Ifdef for Solaris and Unixware only.
12799 (procfs_do_thread_registers): Unixware needs one lwpstatus
12800 per thread (not one prstatus or pstatus).
12801 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12802 not over all gdb threads. For unixware, call elfcore_write_pstatus
12803 once before iterating over threads.
12804
12805 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12806
12807 * arm-tdep.h: New file.
12808 * arm-tdep.c: Include arm-tdep.h.
12809 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12810 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12811 (arm_print_float_info, arm_register_type, convert_to_extended)
12812 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12813 (arm_extract_return_value, arm_register_name): Make static.
12814 (arm_software_single_step): Similarly. Fix types in declaration.
12815 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12816 (arm_store_return_value, arm_store_struct_return): New functions.
12817 (arm_gdbarch_init): Register the above functions. Also register
12818 call_dummy_start_offset, sizeof_call_dummy_words,
12819 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12820 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12821 max_register_virtual_size, register_size. Set up
12822 prologue_cache.saved_regs here, rather than ...
12823 (_initialize_arm_tdep): ... here.
12824 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12825 declarations.
12826 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12827 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12828 (arm_print_float_info, arm_register_type, convert_to_extended)
12829 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12830 (arm_extract_return_value, arm_register_name): Delete declarations.
12831 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12832 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12833 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12834 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12835 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12836 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12837 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12838 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12839 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12840 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12841 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12842 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12843 interface.
12844 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12845 * remote-rdi.c remote-rdp.c: Likewise.
12846 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12847 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12848 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12849 definition.
12850
12851 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12852 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12853 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12854 from non-ARM_ prefixed definitions.
12855 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12856 all uses of above.
12857 * remote-rdi.c remote-rdp.c: Likewise.
12858 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12859
12860 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12861
12862 * arm-tdep.c (arm_frameless_function_invocation)
12863 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12864 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12865 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12866 (arm_pop_frame, arm_get_next_pc): Make static.
12867 (arm_gdbarch_init): Register above in gdbarch structure.
12868 (arm_read_fp): Renamed from arm_target_read_fp.
12869 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12870 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12871 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12872 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12873 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12874 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12875 (arm_pc_is_thumb_dummy): Delete declarations.
12876 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12877 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12878 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12879 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12880
12881 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12882
12883 * symtab.c (compare_search_syms): New function.
12884 (sort_search_symbols): New function.
12885 (search_symbols): Sort symbols after searching rather than
12886 before.
12887
12888 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12889
12890 * NEWS: Linux -> GNU/Linux.
12891
12892 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12893
12894 * gdbarch.sh: For for level one methods, disallow a definition
12895 when partially multi-arched. Add comments explaining rationale.
12896 * gdbarch.h: Re-generate.
12897
12898 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12899
12900 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12901 multi-arch partial.
12902
12903 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12904
12905 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12906 field. Use diff -u.
12907 * gdbarch.c: Re-generate.
12908
12909 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12910
12911 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12912 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12913 partial.
12914
12915 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12916
12917 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12918 multi-arch partial.
12919 (PUSH_ARGUMENTS): Switch to using predefault.
12920 * gdbarch.c: Regenerate.
12921
12922 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12923
12924 * valops.c (PUSH_ARGUMENTS): Delete definition.
12925 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12926 partial. Default to default_push_arguments.
12927 * gdbarch.h, gdbarch.c: Regenerate.
12928
12929 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12930
12931 * defs.h (throw_exception): Rename return_to_top_level. Update
12932 comments.
12933 * utils.c (error_stream, internal_verror, quit): Ditto.
12934 * top.c (throw_exception, catcher): Ditto.
12935 * sparclet-rom.c (sparclet_load): Ditto.
12936 * remote.c (interrupt_query, minitelnet): Ditto.
12937 * remote-sds.c (interrupt_query): Ditto.
12938 * remote-mips.c (mips_error, mips_kill): Ditto.
12939 * ocd.c (interrupt_query): Ditto.
12940 * monitor.c (monitor_interrupt_query): Ditto.
12941 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12942 * target.h: Update comment.
12943
12944 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12945
12946 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12947
12948 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12949 default_double_format.
12950 * gdbarch.h, gdbarch.c: Re-generate.
12951 * findvar.c (floatformat_unknown): Delete variable definition.
12952 * doublest.h (floatformat_unknown): Delete variable declaration.
12953
12954 2002-02-09 Jim Blandy <jimb@redhat.com>
12955
12956 * stabsread.c (read_type): Add code to parse Sun's syntax for
12957 prototyped function types.
12958
12959 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12960
12961 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12962 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12963
12964 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12965
12966 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12967 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12968 now _initialize_xcoffsolib gets called again and overrides the
12969 commands from solib.c in a native configuration.
12970
12971 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12972
12973 * doublest.c (store_typed_floating): Don't try to return a value.
12974 Fixes PR gdb/290.
12975
12976 2002-02-08 Jim Blandy <jimb@redhat.com>
12977
12978 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12979 is prototyped and has no arguments, print its argument list as
12980 `(void)'.
12981
12982 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12983
12984 * MAINTAINERS (write-after-approval): Add myself.
12985 (paper-trail): I've escaped!
12986
12987 2002-02-08 Christopher Faylor <cgf@redhat.com>
12988
12989 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12990 changes.
12991 (_initialize_check_for_gdb_ini): Ditto.
12992
12993 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12994
12995 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12996 xaprintf -> xasprintf.
12997
12998 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12999
13000 * win32-nat.c: Remove use of printf and sprintf functions.
13001
13002 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13003
13004 * arm-tdep.c (arm_frame_chain_valid): Make static.
13005 (arm_push_arguments): Likewise.
13006 (arm_gdbarch_init): New function.
13007 (_initialize_arm_tdep): Call it.
13008 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13009 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13010 (FRAME_CHAIN_VALID): Delete.
13011 (arm_frame_chain_valid): Delete declaration.
13012 (PUSH_ARGUMENTS): Delete.
13013 (arm_push_arguments): Delete declaration.
13014 (CALL_DUMMY_P): Delete.
13015
13016 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13017 Corinna Vinschen <vinschen@redhat.com>
13018
13019 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13020 on builtin float types.
13021
13022 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13023
13024 * utils.c: Include <curses.h> before "bfd.h".
13025 * tui/tui-hooks.c: Likewise.
13026 * tui/tui.c: Likewise.
13027 * tui/tuiCommand.c: Likewise.
13028 * tui/tuiData.c: Likewise.
13029 * tui/tuiDataWin.c: Likewise.
13030 * tui/tuiDisassem.c: Likewise.
13031 * tui/tuiGeneralWin.c: Likewise.
13032 * tui/tuiIO.c: Likewise.
13033 * tui/tuiLayout.c: Likewise.
13034 * tui/tuiRegs.c: Likewise.
13035 * tui/tuiSource.c: Likewise.
13036 * tui/tuiSourceWin.c: Likewise.
13037 * tui/tuiStack.c: Likewise.
13038 * tui/tuiWin.c: Likewise.
13039
13040 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13041
13042 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13043 to include space for pseudoregs as well. Update loops accordingly.
13044 (sh_fp_frame_init_saved_regs): Ditto.
13045 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13046
13047 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13048
13049 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13050 Add Richard Earnshaw to Arm maintainers.
13051
13052 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13053
13054 * defs.h (warning_begin): Delete declaration.
13055
13056 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13057 Delete macro.
13058
13059 2002-02-07 Michael Snyder <msnyder@redhat.com>
13060
13061 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13062 Logic bug, remove misplaced else.
13063
13064 2002-02-07 Klee Dienes <klee@apple.com>
13065
13066 * fork-inferior.c (fork_inferior): Add '!' to the list of
13067 characters that need to be quoted when building a string for the
13068 shell. Quote '!' specifically with a backslash, since CSH chokes
13069 when trying to evaluate "str!str".
13070
13071 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13072
13073 * rdi-share/host.h: Only provide a typedef for bool if it is not
13074 defined.
13075
13076 2002-02-04 Michael Snyder <msnyder@redhat.com>
13077
13078 * breakpoint.h (enum bptype): Add new overlay event bp type.
13079 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13080
13081 * breakpoint.c (create_internal_breakpoint): New function.
13082 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13083 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13084 (create_thread_event_breakpoint): Ditto.
13085 (create_solib_event_breakpoint): Ditto.
13086 (create_overlay_event_breakpoint): New function.
13087 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13088 (update_breakpoints_after_exec): Delete and re-initialize
13089 overlay event breakpoints after an exec. Add FIXME comment
13090 about longjmp breakpoint.
13091 (print_it_typical): Ignore overlay event breakpoints.
13092 (print_one_breakpoint): Ditto.
13093 (mention): Ditto.
13094 (bpstat_what): Do not stop for overlay event breakpoints.
13095 (delete_breakpoint): Don't delete overlay event breakpoints.
13096 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13097 (breakpoint_re_set): Re-create overlay event breakpoint.
13098
13099 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13100 (overlay_manual_command): Disable overlay breakpoints.
13101 (overlay_off_command): Disable overlay breakpoints.
13102
13103 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13104
13105 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13106 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13107 to here from config/tm-arm.h.
13108 (coff_sym_is_thumb): Make static.
13109 (arm_elf_make_msymbol_special): New function.
13110 (arm_coff_make_msymbol_special): New function.
13111 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13112 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13113 (coff_sym_is_thumb): Delete declaration.
13114 (arm_elf_make_msymbol_special): Declare.
13115 (arm_coff_make_msymbol_special): Declare.
13116 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13117 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13118
13119 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13120
13121 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13122
13123 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13124
13125 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13126 * gdbarch.c gdbarch.h: Regenerate.
13127 * arch-utils.c (default_print_float_info): New function.
13128 * arch-utils.h (default_print_float_info): Prototype it.
13129 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13130 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13131 (PRINT_FLOAT_INFO): Document it.
13132
13133 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13134 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13135 (PRINT_FLOAT_INFO): Define.
13136
13137 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13138
13139 * win32-nat.c (_initialize_check_for_gdb_ini):
13140 Add typecast to sprintf argument to suppress a warning.
13141
13142 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13143
13144 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13145 to allow easier handling of pass state.
13146 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13147 that gives exception name and address.
13148 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13149 and set last_sig value to ourstatus->value.sig. Some missing
13150 exceptions added.
13151 (child_continue): Correctly report continue_status.
13152 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13153 TARGET_SIGNAL_0 (new default value).
13154 (child_resume): consider sig argument passed to decide if
13155 the exception should be passed to debuggee or not.
13156
13157 2002-02-05 Michael Snyder <msnyder@redhat.com>
13158
13159 * regcache.c (fetch_register): Call target_fetch_register
13160 only if we don't call FETCH_PSEUDO_REGISTER.
13161 (store_register): Call target_store_register only if we
13162 don't call STORE_PSEUDO_REGISTER.
13163
13164 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13165
13166 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13167 ELF_MAKE_MSYMBOL_SPECIAL.
13168 * gdbarch.c, gdbarch.h: Regenerate.
13169 * arch-utils.c (default_make_msymbol_special): New function.
13170 * arch-utils.h (default_make_msymbol_special): Export.
13171 * elfread.c (elf_symtab_read): Compile use of
13172 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13173 multiarched.
13174 * coffread.c (coff_symtab_read): Ditto, for
13175 COFF_MAKE_MSYMBOL_SPECIAL.
13176
13177 2002-02-05 Jim Blandy <jimb@redhat.com>
13178
13179 * solib-svr4.c (svr4_truncate_ptr): New function.
13180 (svr4_relocate_section_addresses): Do the address arithmetic with
13181 the appropriate truncation for target addresses, even when
13182 CORE_ADDR is larger than a target address.
13183
13184 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13185
13186 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13187 to (int *).
13188
13189 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13190
13191 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13192 code.
13193
13194 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13195
13196 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13197
13198 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13199
13200 * gdbserver/linux-low.c: Remove unused include files.
13201
13202 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13203
13204 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13205 (read_inferior_memory): Use it.
13206 (write_inferior_memory): Likewise.
13207
13208 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13209
13210 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13211 grubbing through sys_errlist.
13212
13213 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13214
13215 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13216
13217 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13218 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13219
13220 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13221
13222 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13223 (do_sfunc, set_cmd_sfunc): New functions.
13224
13225 * command.h (struct cmd_list_element): Add field func.
13226 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13227 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13228 * cli/cli-decode.h: Ditto.
13229
13230 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13231 (help_all, help_cmd_list): Ditto.
13232 (find_cmd, complete_on_cmdlist): Ditto.
13233 * top.c (execute_command): Ditto.
13234
13235 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13236 function.sfunc.
13237
13238 * infcmd.c (notice_args_read): Fix function signature.
13239
13240 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13241 * cli/cli-decode.c (add_set_cmd): Ditto.
13242 * utils.c (initialize_utils): Ditto.
13243 * maint.c (_initialize_maint_cmds): Ditto.
13244 * infrun.c (_initialize_infrun): Ditto.
13245 * demangle.c (_initialize_demangler): Ditto.
13246 * remote.c (add_packet_config_cmd): Ditto.
13247 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13248 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13249 * proc-api.c (_initialize_proc_api): Ditto.
13250 * kod.c (_initialize_kod): Ditto.
13251 * valprint.c (_initialize_valprint): Ditto.
13252 * top.c (init_main): Ditto.
13253 * infcmd.c (_initialize_infcmd): Ditto.
13254 * corefile.c (_initialize_core): Ditto.
13255 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13256 * arch-utils.c (initialize_current_architecture): Ditto.
13257 (_initialize_gdbarch_utils): Ditto.
13258 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13259
13260 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13261 * wince.c (_initialize_inftarg): Ditto.
13262 * symfile.c (_initialize_symfile): Ditto.
13263 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13264 * language.c (_initialize_language): Ditto.
13265 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13266
13267 2002-02-04 Michael Snyder <msnyder@redhat.com>
13268
13269 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13270
13271 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13272
13273 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13274 Add rules for building the register data files.
13275
13276 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13277
13278 * regformats/regdat.sh: Add braces to the definition of
13279 expedite_regs_${arch}.
13280
13281 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * regformats/regdef.h (struct reg): Add comment describing the
13284 requirements for offset and size fields.
13285
13286 2002-02-04 Andreas Schwab <schwab@suse.de>
13287
13288 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13289 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13290
13291 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13292
13293 * gdbarch.sh (copyright): Update years in generated header.
13294 (SMASH_TEXT_ADDRESS): Add rule.
13295 * gdbarch.h, gdbarch.c: Re-generate.
13296 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13297 * dbxread.c: Likewise.
13298 * dwarfread.c: Likewise.
13299 * elfread.c: Likewise.
13300 * somread.c: Likewise.
13301
13302 * arm-tdep.c (arm_smash_text_address): New function.
13303 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13304
13305 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13306
13307 Add support for hardware watchpoints on win32 native.
13308 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13309 CONTEXT_DEBUG_REGISTERS.
13310 (dr variable): New variable. Static array containing a local copy
13311 of debug registers.
13312 (debug_registers_changed): New variable. Reflects when debug registers
13313 are changed and need to be written to inferior.
13314 (debug_registers_used): New variable. Reflects when any debug register
13315 was set, used when new threads are created.
13316 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13317 i386-nat code.
13318 (thread_rec): Set dr array if id is the thread of current_event .
13319 (child_continue, child_resume): Change the debug registers for all
13320 threads if debug_registers_changed.
13321 (child_add_thread): Change the debug registers if debug_registers_used.
13322 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13323 Link nm.h to new nm-cygwin.h file.
13324 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13325 of hardware registers.
13326
13327 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13328
13329 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13330 Restore behavour broken by 2002-01-20 Andrew Cagney
13331 <ac131313@redhat.com> IEEE_FLOAT removal.
13332
13333 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13334
13335 * c-valprint.c (c_val_print): Pass a proper valaddr to
13336 cp_print_class_method.
13337 * valops.c (search_struct_method): If there is only one method
13338 and args is NULL, return that method.
13339
13340 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13341
13342 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13343 accessing tag_name directly.
13344
13345 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13346
13347 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13348 of accessing tag_name directly.
13349
13350 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13351
13352 PR gdb/280
13353 * gdbtypes.c (replace_type): New function.
13354 * gdbtypes.h (replace_type): Add prototype.
13355 * stabsread.c (read_type): Use replace_type.
13356
13357 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13358
13359 * Makefile.in (memattr.o): Add missing dependencies rule.
13360
13361 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13362
13363 * breakpoint.c (break_at_finish_command): Really export.
13364 (break_at_finish_at_depth_command): Ditto.
13365 (tbreak_at_finish_command): Ditto.
13366 * hppa-tdep.c: Include completer.h.
13367 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13368 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13369
13370 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13371
13372 * utils.c (do_write): New function.
13373 (error_stream): Rewrite combining the code from error_begin and
13374 verror.
13375 (verror): Rewrite using error_stream.
13376 (error_begin): Delete function.
13377
13378 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13379
13380 * utils.c (error_begin): Make static.
13381 * defs.h (error_begin): Delete declaration.
13382
13383 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13384 (decode_line_1): Use cplusplus_error instead of error_begin,
13385 cplusplus_hint and return_to_top_level.
13386 * coffread.c (coff_symfile_read): Use error instead of error_begin
13387 and return_to_top_level.
13388 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13389
13390 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13391
13392 * language.h (type_error, range_error): Make string parameter
13393 constant.
13394 * language.c (warning_pre_print): Delete extern declaration.
13395 * dwarfread.c (warning_pre_print): Ditto.
13396 * language.c (type_error, range_error): Rewrite to use verror and
13397 vwarning instead of warning_begin.
13398
13399 2002-02-01 Michael Snyder <msnyder@redhat.com>
13400
13401 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13402 (set_ignore_count): Move misplaced comment back where it belongs.
13403
13404 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13405
13406 * command.h (NO_FUNCTION): Delete macro.
13407 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13408 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13409 * tracepoint.c (_initialize_tracepoint): Ditto.
13410 * cli/cli-decode.c (add_set_cmd): Ditto.
13411 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13412
13413 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13414
13415 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13416 Update ``this'' pointer when calling virtual functions.
13417
13418 2002-02-01 Michael Snyder <msnyder@redhat.com>
13419
13420 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13421 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13422
13423 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13424
13425 * regformats/reg-arm.dat: New file.
13426 * regformats/reg-i386.dat: New file.
13427 * regformats/reg-ia64.dat: New file.
13428 * regformats/reg-m68k.dat: New file.
13429 * regformats/reg-mips.dat: New file.
13430 * regformats/reg-ppc.dat: New file.
13431 * regformats/reg-sh.dat: New file.
13432 * regformats/regdef.h: New file.
13433 * regformats/regdat.sh: New file.
13434
13435 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13436
13437 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13438 (arm_frame_args_address, arm_frame_locals_address): New functions.
13439 (arm_frame_num_args): New function.
13440 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13441 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13442 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13443
13444 2002-01-31 Michael Snyder <msnyder@redhat.com>
13445
13446 * breakpoint.c (break_at_finish_command): Export.
13447 (break_at_finish_at_depth_command): Export.
13448 (tbreak_at_finish_command): Export.
13449 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13450 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13451 "txbreak" commands, which are HPPA specific.
13452
13453 * printcmd.c (disassemble_command): Remove an ancient
13454 artifact of an old merge.
13455
13456 * symfile.h (enum overlay_debugging_state):
13457 Define enum constant values for overlay mode.
13458 * symfile.c (overlay_debugging): Use enums instead of literals.
13459 (overlay_is_mapped, overlay_auto_command,
13460 overlay_manual_command): Ditto.
13461
13462 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13463 breakpoint_here_p, breakpoint_inserted_here_p,
13464 breakpoint_thread_match, bpstat_stop_status,
13465 describe_other_breakpoints, check_duplicates, clear_command):
13466 Coding standard fixes.
13467
13468 * target.c (target_xfer_memory): Add spaces, coding standard.
13469 (do_xfer_memory): Add missing line to trust-readonly
13470 code: check bfd SEC_READONLY flag for section.
13471
13472 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13473
13474 * PROBLEMS: Fix typo, 5.1->5.1.1.
13475
13476 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13477
13478 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13479 data symbols, since we search based on textlow and texthigh.
13480 (find_pc_sect_symtab): Likewise.
13481
13482 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13483
13484 * defs.h (vwarning): Declare.
13485 * utils.c (vwarning): New function.
13486 (warning): Call vwarning.
13487 (warning_begin): Delete function.
13488
13489 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13490 the warning message.
13491 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13492 warning_begin.
13493
13494 2002-01-30 Michael Snyder <msnyder@redhat.com>
13495
13496 * NEWS: Mention "set trust-readonly-sections" command.
13497 Mention generate-core-file command.
13498
13499 2002-01-15 Michael Snyder <msnyder@redhat.com>
13500
13501 * target.c: New command, "set trust-readonly-sections on".
13502 (do_xfer_memory): Honor the suggestion to trust readonly sections
13503 by reading them from the object file instead of from the target.
13504 (initialize_targets): Register command "set trust-readonly-sections".
13505
13506 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13507
13508 * parse.c (target_map_name_to_register): Simplify, search regs and
13509 pseudo-regs using a single loop.
13510
13511 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13512
13513 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13514
13515 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13516
13517 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13518 * config/i386/i386v42mp.mh: Add i387-nat.o .
13519 * i386v4-nat.c: Include i387-nat.h.
13520 (supply_fpregset): Use i387_supply_fsave.
13521 (fill_fpregset): Use i387_fill_fsave.
13522
13523 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13524
13525 * arm-tdep.c (arm_call_dummy_words): Define.
13526 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13527 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13528 (CALL_DUMMY_WORDS): Define.
13529 (arm_call_dummy_words): Declare.
13530 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13531 (arm_linux_call_dummy_words): Declare.
13532
13533 2002-01-30 Andreas Schwab <schwab@suse.de>
13534
13535 * m68klinux-nat.c: Fix last change to use regcache_collect
13536 instead of referencing registers[] directly.
13537
13538 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13539
13540 * parse.c (target_map_name_to_register): Delete code wrapped in
13541 #ifdef REGISTER_NAME_ALIAS_HOOK.
13542
13543 2002-01-28 Michael Snyder <msnyder@redhat.com>
13544
13545 * regcache.c (legacy_read_register_gen): Need to be able to
13546 read pseudo-register as well as real register.
13547 (legacy_write_register_gen): Ditto.
13548
13549 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13550
13551 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13552 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13553 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13554 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13555 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13556 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13557 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13558 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13559 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13560 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13561 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13562 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13563 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13564 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13565 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13566 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13567 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13568 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13569 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13570 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13571
13572 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13573
13574 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13575 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13576 (initialize_current_architecture): Update target_byte_order using
13577 information from BFD.
13578 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13579 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13580
13581 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13582
13583 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13584 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13585
13586 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13587 #ifdef INVALID_FLOAT.
13588 * infcmd.c (do_registers_info): Ditto.
13589 * values.c (unpack_double): Ditto. Add comment.
13590
13591 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13592 already commented out.
13593
13594 2002-01-26 Andreas Schwab <schwab@suse.de>
13595
13596 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13597 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13598 registers and add support for PTRACE_GETREGS.
13599
13600 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13601
13602 GDB 5.1.1 released from 5.1 branch.
13603 * NEWS: Add 5.1.1 news.
13604 * README: Sync with 5.1 branch.
13605
13606 2002-01-23 Fred Fish <fnf@redhat.com>
13607
13608 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13609 stabstring on initial malloc. Reallocing will copy it for us,
13610 if necessary.
13611
13612 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13613
13614 * Makefile.in (hpread_h): Delete.
13615 (HFILES_NO_SRCDIR): Remove hpread.h.
13616 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13617 (hpread.o): Update dependencies.
13618 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13619
13620 * hp-psymtab-read.c: Remove file.
13621 * hp-symtab-read.c: Remove file.
13622 * hpread.h: Remove file.
13623
13624 * hpread.c: Merge all contents of hp-psymtab-read.c,
13625 hp-symtab-read.c and hpread.h into this file, as it was prior to
13626 January 1999.
13627
13628 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13629 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13630 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13631 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13632
13633 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13634
13635 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13636 fill_gregset): Call gdbarch_tdep() just once, assign result to
13637 variable and use that, instead of calling the function several
13638 times.
13639
13640 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13641
13642 * configure.host: Accept sparcv9 as alias for sparc64.
13643 * configure.tgt: Likewise.
13644
13645 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13646
13647 * solib-aix5.c (build_so_list_from_mapfile)
13648 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13649 arguments is not reversed.
13650 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13651 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13652
13653 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13654
13655 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13656 modified version of obsolete sh_fetch_pseudo_register.
13657 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13658 (sh4_register_read): New function.
13659 (sh_pseudo_register_write): New function. Renamed and modified
13660 version of obsolete sh_store_pseudo_register.
13661 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13662 (sh4_register_write): New function.
13663 (sh_gdbarch_init): Remove setting of gdbarch function
13664 fetch_pseudo_register and store_pseudo_register. Remove setting of
13665 register_convert_to_raw, register_convert_to_virtual,
13666 register_convertible.
13667 (sh_sh4_register_convertible): Delete. No longer needed. All is
13668 taken care by architecture specific functions
13669 register_read/register_write.
13670 (sh_sh4_register_convert_to_virtual): Make static.
13671 (sh_sh4_register_convert_to_raw): Ditto.
13672
13673 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13674
13675 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13676 (floatformat_is_nan, floatformat_mantissa): Ditto.
13677
13678 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13679 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13680 builtin_type_ieee_double_little,
13681 builtin_type_ieee_double_littlebyte_bigword,
13682 builtin_type_m68881_ext, builtin_type_i960_ext,
13683 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13684 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13685 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13686 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13687
13688 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13689
13690 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13691 parameter. Set frameless flag if it exists and depended of
13692 whether the scanned function is frameless or not.
13693 (xstormy16_skip_prologue): If function is frameless, return
13694 result of xstormy16_scan_prologue().
13695 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13696 call.
13697
13698 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13699
13700 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13701 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13702 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13703 sh_sh4_register_byte, sh_sh4_register_raw_size,
13704 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13705 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13706 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13707 sh_store_pseudo_register, sh_do_pseudo_register): Call
13708 gdbarch_tdep() just once, assign result to variable and use that,
13709 instead of calling the function several times.
13710
13711 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13712
13713 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13714 macros instead of LAST_FPU_CTRL_REGNUM.
13715 (store_register): Likewise.
13716
13717 2002-01-21 Jim Blandy <jimb@redhat.com>
13718
13719 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13720 is up-to-date before running the program, not just when a program
13721 exits.
13722
13723 2002-01-21 Fred Fish <fnf@redhat.com>
13724
13725 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13726 when we have found all instructions we are looking for.
13727
13728 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13729
13730 * arm-tdep.c (arm_register_name): New function.
13731 (arm_registers_names): Make static.
13732 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13733 (arm_register_name): Declare.
13734 (REGISTER_NAME): Use it.
13735
13736 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13737 Kevin Buettner <kevinb@redhat.com>
13738
13739 Convert arm targets to new FRAME interface.
13740 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13741 (arm_frame_find_save_regs): Delete.
13742 (arm_frame_init_saved_regs): New.
13743 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13744 Allocate extra_info as required. Convert all uses of fsr.regs
13745 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13746 to use extra_info.
13747 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13748 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13749 (check_prologue_cache, save_prologue_cache): Likewise.
13750 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13751 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13752 (FRAME_FIND_SAVED_REGS): Delete.
13753 (arm_frame_find_saved_regs): Delete prototype.
13754 (arm_frame_init_saved_regs): New prototype.
13755 (FRAME_INIT_SAVED_REGS): Define.
13756
13757 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13758
13759 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13760
13761 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13762
13763 From Jeff Law <law@redhat.com>:
13764 * infttrace.c: Include <sys/pstat.h>.
13765 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13766 exec file if the ttrace equivalent fails.
13767
13768 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13769
13770 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13771 (closeLogFile): Ditto.
13772
13773 2002-01-20 Michael Chastain <mec@shout.net>
13774
13775 * top.c (print_gdb_version): Bump copyright year to 2002.
13776
13777 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13778
13779 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13780 Zannoni and Eli Zaretskii.
13781
13782 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * buildsym.c: Update copyright years.
13785 * c-typeprint.c: Likewise.
13786 * dwarf2read.c: Likewise.
13787 * f-typeprint.c: Likewise.
13788 * gdbtypes.c: Likewise.
13789 * gdbtypes.h: Likewise.
13790 * hp-symtab-read.c: Likewise.
13791 * hpread.c: Likewise.
13792 * mdebugread.c: Likewise.
13793 * p-typeprint.c: Likewise.
13794
13795 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13796
13797 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13798 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13799 byte-order selectable.
13800 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13801 * arch-utils.c: Ditto.
13802 (set_endian): Ditto.
13803 (set_endian_from_file): Ditto.
13804 * gdbserver/low-sim.c (create_inferior): Ditto.
13805 * gdbarch.sh: Ditto.
13806 * gdbarch.h: Re-generate.
13807 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13808 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13809 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13810 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13811 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13812 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13813 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13814 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13815 macro definition.
13816 * config/mips/tm-wince.h: Remove #undef of macro
13817 TARGET_BYTE_ORDER_SELECTABLE.
13818 * config/sh/tm-wince.h: Ditto.
13819
13820 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13821
13822 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13823 member function fields. Add accessor macro
13824 TYPE_FN_FIELD_ARTIFICIAL.
13825 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13826 * c-typeprint.c (c_type_print_base): Skip artificial member
13827 functions.
13828
13829 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13830
13831 * f-typeprint.c: Delete unused function f_type_print_args.
13832 * p-typeprint.c: Delete unused function pascal_type_print_args.
13833
13834 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13835
13836 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13837 comment. Add ``artificial'' to ``union field_location''.
13838
13839 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13840
13841 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13842 * mdebugread.c (parse_symbol): Likewise.
13843 * stabsread.c (define_symbol): Likewise.
13844 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13845 initializing TYPE_FIELD_BITPOS to n (obsolete).
13846 (hpread_doc_function_type): Likewise.
13847 * hpread.c (hpread_function_type): Likewise.
13848
13849 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13850
13851 * configure.in (host_makefile_frag): Only require a host makefile
13852 fragment when a native build.
13853 * configure: Re-generate.
13854
13855 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13856
13857 * doublest.h (floatformat_from_type): Declare.
13858 * doublest.c (floatformat_from_type): New function.
13859 (convert_typed_floating): Use.
13860
13861 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13862 call to function floatformat_from_type.
13863
13864 * gdbarch.sh (IEEE_FLOAT): Delete.
13865 * gdbarch.h, gdbarch.c: Re-generate.
13866 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13867 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13868 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13869 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13870 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13871 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13872 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13873 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13874 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13875 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13876 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13877 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13878
13879 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13880 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13881 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13882 * sh-tdep.c (sh_gdbarch_init): Ditto.
13883 * mips-tdep.c (mips_gdbarch_init): Ditto.
13884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13885 * cris-tdep.c (cris_gdbarch_init): Ditto.
13886
13887 2002-01-20 Jiri Smid <smid@suse.cz>
13888
13889 * configure.host, configure.tgt: Support x86-64.
13890 * NEWS: Note new target x86-64.
13891
13892 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13893 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13894 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13895 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13896 x86-64-linux-nat.o): Fix dependencies.
13897
13898 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13899
13900 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13901 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13902 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13903 * config/sparc/xm-sun4os4.h: Delete file.
13904 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13905
13906 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13907
13908 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13909 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13910 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13911 * config/i386/i386lynx.mh (XM_FILE): Delete.
13912 * config/rs6000/xm-rs6000ly.h: Delete file.
13913 * config/sparc/xm-sparclynx.h: Delete file.
13914 * config/m68k/xm-m68klynx.h: Delete file.
13915 * config/i386/xm-i386lynx.h: Delete file.
13916 * config/xm-lynx.h: Delete file.
13917 * config/djgpp/fnchange.lst: Update.
13918
13919 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13920
13921 * alpha-tdep.c (alpha_register_byte): New function.
13922 (alpha_register_raw_size): Ditto.
13923 (alpha_register_virtual_size): Ditto.
13924 (alpha_skip_prologue_internal): Renamed from
13925 alpha_skip_prologue.
13926 (alpha_skip_prologue): New version that calls
13927 alpha_skip_prologue_internal.
13928 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13929 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13930 second argument from alpha_skip_prologue.
13931 (REGISTER_BYTE): Use alpha_register_byte.
13932 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13933 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13934 (FRAMELESS_FUNCTION_INVOCATION): Use
13935 generic_frameless_function_invocation_not.
13936 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13937 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13938
13939 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13940
13941 * config/mips/xm-news-mips.h: Delete file.
13942 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13943
13944 * config/m88k/xm-m88k.h: Delete file.
13945 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13946 * config/m88k/xm-delta88v4.h: Ditto.
13947 * config/m88k/xm-delta88.h: Ditto.
13948
13949 * config/alpha/xm-fbsd.h: Delete file.
13950 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13951
13952 * config/sparc/xm-sparc.h: Delete file.
13953 * Makefile.in (xm-sun4os4.h): Delete dependency.
13954 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13955 * config/sparc/xm-sun4os4.h: Ditto.
13956 * config/sparc/xm-linux.h: Ditto.
13957
13958 * config/i386/xm-windows.h: Delete file.
13959
13960 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13961
13962 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13963 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13964
13965 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13966
13967 * alpha-tdep.c (alpha_call_dummy_words): New.
13968 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13969 (CALL_DUMMY_P): Define.
13970 (CALL_DUMMY_WORDS): Define.
13971 (SIZEOF_CALL_DUMMY_WORDS): Define.
13972
13973 2002-01-19 Per Bothner <per@bothner.com>
13974
13975 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13976 isn't NULL, which can happen with some gcj-3.x-produced code.
13977
13978 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13979
13980 * alpha-tdep.c (alpha_register_virtual_type): New function.
13981 (alpha_init_frame_pc_first): Ditto.
13982 (alpha_fix_call_dummy): Ditto.
13983 (alpha_store_struct_return): Ditto.
13984 (alpha_extract_struct_value_address): Ditto.
13985 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13986 alpha_register_virtual_type.
13987 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13988 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13989 alpha_extract_struct_value_address.
13990 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13991 (INIT_FRAME_PC): Use init_frame_pc_noop.
13992 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13993
13994 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13995
13996 * i386gnu-nat.c: Include "i386-tdep.h".
13997 (fetch_fpregs): Simplify code dealing with uninitialized floating
13998 point states such that it doesn't require FP7_REGNUM.
13999
14000 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14001
14002 * alpha-tdep.c (frame_extra_info): New.
14003 (alpha_find_saved_regs): Make static. Use
14004 frame->extra_info.
14005 (alpha_frame_init_saved_regs): New function.
14006 (alpha_frame_saved_pc): Use frame->extra_info.
14007 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14008 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14009 (init_extra_frame_info): Rename to...
14010 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14011 (alpha_print_extra_frame_info): New function.
14012 (alpha_frame_locals_address): Ditto.
14013 (alpha_frame_args_address): Ditto.
14014 (alpha_pop_frame): Use frame->extra_info.
14015 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14016 alpha_frame_args_address.
14017 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14018 (alpha_find_saved_regs): Remove prototype.
14019 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14020 (EXTRA_FRAME_INFO): Remove.
14021 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14022 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14023
14024 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14025
14026 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14027 (alpha_cannot_fetch_register): Ditto.
14028 (alpha_cannot_store_register): Ditto.
14029 (alpha_register_convertible): Ditto.
14030 (alpha_use_struct_convention): Ditto.
14031 * config/alpha/tm-alpha.h: Update copyright years.
14032 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14033 (INNER_THAN): Use core_addr_lessthan.
14034 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14035 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14036 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14037 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14038 (FRAME_CHAIN): Remove unnecessary cast.
14039
14040 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14041
14042 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14043 obsolete.
14044
14045 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14046
14047 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14048 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14049 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14050 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14051 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14052 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14053 * x86-64-linux-nat.c: Ditto.
14054
14055 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14056
14057 * alpha-tdep.c (alpha_register_name): New function.
14058 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14059 (REGISTER_NAME): Define.
14060
14061 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14062
14063 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14064
14065 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14066
14067 * alpha-tdep.c: Update copyright years.
14068 (alpha_next_pc): New function.
14069 (alpha_software_single_step): Ditto.
14070 * config/alpha/tm-alpha.h: Add prototype for
14071 alpha_software_single_step.
14072
14073 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14074
14075 * alphabsd-nat.c: Update copyright years.
14076 (fill_gregset): Use regcache_collect.
14077 (fill_fpregset): Likewise.
14078 (fetch_inferior_registers): Only fetch integer registers
14079 if requested to do so.
14080 (store_inferior_registers): Only store integer registers
14081 if requested to do so.
14082
14083 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14084
14085 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14086 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14087 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14088 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14089 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14090 * config/arm/linux.mh (XDEPFILES): Delete.
14091 * config/arm/nbsd.mh (XDEPFILES): Delete.
14092 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14093 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14094 * config/i386/i386m3.mh (XDEPFILES): Delete.
14095 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14096 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14097 * config/i386/fbsd.mh (XDEPFILES): Delete.
14098 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14099 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14100 * config/i386/i386v4.mh (XDEPFILES): Delete.
14101 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14102 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14103 * config/i386/i386aix.mh (XDEPFILES): Delete.
14104 * config/i386/go32.mh (XDEPFILES): Delete.
14105 * config/i386/cygwin.mh (XDEPFILES): Delete.
14106 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14107 * config/i386/i386mach.mh (XDEPFILES): Delete.
14108 * config/i386/i386v32.mh (XDEPFILES): Delete.
14109 * config/i386/linux.mh (XDEPFILES): Delete.
14110 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14111 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14112 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14113 * config/i386/i386sco.mh (XDEPFILES): Delete.
14114 * config/i386/i386v.mh (XDEPFILES): Delete.
14115 * config/i386/nbsd.mh (XDEPFILES): Delete.
14116 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14117 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14118 * config/i386/symmetry.mh (XDEPFILES): Delete.
14119 * config/i386/obsd.mh (XDEPFILES): Delete.
14120 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14121 * config/ia64/linux.mh (XDEPFILES): Delete.
14122 * config/ia64/aix.mh (XDEPFILES): Delete.
14123 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14124 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14125 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14126 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14127 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14128 * config/m68k/linux.mh (XDEPFILES): Delete.
14129 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14130 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14131 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14132 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14133 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14134 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14135 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14136 * config/m88k/delta88.mh (XDEPFILES): Delete.
14137 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14138 * config/m88k/m88k.mh (XDEPFILES): Delete.
14139 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14140 * config/mips/linux.mh (XDEPFILES): Delete.
14141 * config/mips/irix6.mh (XDEPFILES): Delete.
14142 * config/mips/irix5.mh (XDEPFILES): Delete.
14143 * config/mips/irix4.mh (XDEPFILES): Delete.
14144 * config/mips/irix3.mh (XDEPFILES): Delete.
14145 * config/mips/decstation.mh (XDEPFILES): Delete.
14146 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14147 (NATDEPFILES): Move core-aout.o to here.
14148 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14149 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14150 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14151 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14152 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14153 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14154 * config/pa/hpux11.mh (XDEPFILES): Delete.
14155 * config/powerpc/aix.mh (XDEPFILES): Delete.
14156 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14157 * config/powerpc/linux.mh (XDEPFILES): Delete.
14158 * config/romp/rtbsd.mh: Rename XDEPFILES.
14159 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14160 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14161 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14162 * config/s390/s390.mh (XDEPFILES): Delete.
14163 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14164 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14165 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14166 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14167 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14168 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14169 * config/sparc/linux.mh (XDEPFILES): Delete.
14170 * config/vax/vaxult.mh (XDEPFILES): Delete.
14171 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14172 * Makefile.in (DEPFILES): Remove XDEPFILES.
14173
14174 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14175
14176 * utils.c (internal_verror): Fix comments, default is yes not no.
14177 Update queries to match. Default to quit and dump core.
14178
14179 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14180
14181 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14182 copyright.
14183 * defs.h, event-top.c, gdbcmd.h: Ditto.
14184 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14185 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14186 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14187 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14188 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14189 * mi/mi-main.c:Ditto.
14190
14191 * stack.c, symfile.c: Update copyright.
14192
14193 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14194
14195 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14196 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14197 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14198 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14199
14200 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14201
14202 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14203 * gdbserver/low-lynx.c (myattach): Likewise.
14204 * gdbserver/low-nbsd.c (myattach): Likewise.
14205 * gdbserver/low-sim.c (myattach): Likewise.
14206 * gdbserver/low-sparc.c (myattach): Likewise.
14207 * gdbserver/low-sun3.c (myattach): Likewise.
14208
14209 * gdbserver/low-linux.c (myattach): New function.
14210
14211 * gdbserver/server.c (attach_inferior): New function.
14212 (main): Handle "--attach".
14213
14214 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14215
14216 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14217 maintainer.
14218
14219 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14220
14221 * c-typeprint.c (is_type_conversion_operator): Add additional
14222 check for non-conversion operators.
14223
14224 2002-01-15 Michael Snyder <msnyder@redhat.com>
14225
14226 * linux-proc.c: Add "info proc" command, a la procfs.c.
14227 (read_mapping): New function, abstract and re-use code.
14228 (linux_find_memory_regions): Use new func read_mapping.
14229 (linux_info_proc_cmd): New function, implement "info proc".
14230 (_initialize_linux_proc): Add new command "info proc".
14231
14232 2002-01-15 Michael Snyder <msnyder@redhat.com>
14233
14234 * symfile.c (generic_load): Use bfd_map_over_sections method
14235 instead of manipulating bfd structure members directly.
14236 (add_section_size_callback): New function, bfd sections callback
14237 used by generic_load.
14238 (load_sections_callback): New function, bfd sections callback
14239 used by generic_load.
14240
14241 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14242
14243 [Based on work by Jim Blandy]
14244 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14245 (builtin_type_vec128): Export.
14246 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14247 types.
14248 (builtin_type_vec128): New builtin type for 128 bit vector
14249 registers.
14250 (build_gdbtypes): Initialize builtin_type_v16qi and
14251 builtin_type_v8hi. Create the vec128 register builtin type
14252 structure.
14253 (build_builtin_type_vec128): New function.
14254 (_initialize_gdbtypes): Register builtin_type_v16qi and
14255 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14256 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14257 AltiVec register to new builtin type.
14258
14259 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14260
14261 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14262 to make_cv_type.
14263
14264 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14265
14266 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14267 CLEAN_UP_REGISTER_VALUE.
14268 * regcache.c (supply_register): Update only call.
14269
14270 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14271
14272 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14273 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14274 a29k-*-vxworks* targets as obsolete.
14275
14276 2002-01-14 Michael Snyder <msnyder@redhat.com>
14277
14278 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14279 until we can resolve portability issues.
14280 * gregset.h: Remove references to fpxregs.
14281 * gcore.c (gcore_command): Initialize note_sec to NULL.
14282
14283 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14284
14285 * signals.c (target_signal_to_name): Rewrite. Only use
14286 signals[].name when in bounds and non-NULL.
14287
14288 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14289
14290 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14291 * signals.c (target_signal_to_name): Verify that SIG is within the
14292 bounds of the signals array.
14293
14294 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14295
14296 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14297
14298 2002-01-13 Keith Seitz <keiths@redhat.com>
14299
14300 * stack.c (print_frame_info_base): Print the frame's pc
14301 only if when print_frame_info_listing_hook is not defined.
14302
14303 2002-01-13 Keith Seitz <keiths@redhat.com>
14304
14305 * varobj.c (varobj_set_value): Make sure that there were no
14306 errors evaluating the object before attempting to set its
14307 value.
14308 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14309 so this offset adjustment is no longer necessary.
14310 (create_child): Don't set the error flag if the child is
14311 a CPLUS_FAKE_CHILD.
14312 (value_of_child): If value_fetch_lazy fails, return NULL
14313 so that callers will be notified that an error occurred.
14314 (c_value_of_variable): Delay check of variable's validity
14315 until later. We actually want all structs and unions to have
14316 the value "{...}".
14317 Do not return "???" for variables which could not be evaluated.
14318 This error condition must be returned to the caller so that it
14319 can get the error condition from gdb.
14320 (cplus_name_of_child): Adjust index for vptr before figuring
14321 out the name of the child.
14322 (cplus_value_of_child): If a child's (real) parent is not valid,
14323 don't even bother trying to give a value for it. Just return
14324 an error. Change all instances in this function.
14325 (cplus_type_of_child): If our parent is one of the "fake"
14326 parents, we need to get at the type of the real parent, and
14327 derive the child's true type using this information.
14328
14329 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14330
14331 From 2002-01-09 John Marshall <johnm@falch.net>:
14332 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14333 sources.redhat.com, and tweak some related URLs which had
14334 suffered from linkrot.
14335
14336 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14337
14338 From Jeff law:
14339 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14340 structures passed in registers.
14341
14342 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14343
14344 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14345 white space which prevented compilation. Reported by DSK
14346 <dsk@student.unsw.edu.au>.
14347
14348 2002-01-11 Michael Snyder <msnyder@redhat.com>
14349
14350 * symfile.c (build_section_addr_info_from_section_tab):
14351 Use bfd access method instead of manipulating bfd directly.
14352 (syms_from_objfile): Ditto.
14353 (simple_overlay_update_1): Ditto.
14354 (simple_overlay_update): Ditto.
14355 (generic_load): Ditto.
14356 (overlay_unmapped_address): FIXME comment, bfd access methods.
14357 (sections_overlap): FIXME comment, bfd access methods.
14358 (pc_in_mapped_range): FIXME comment, bfd access methods.
14359 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14360 (section_is_mapped): FIXME comment, bfd access methods.
14361 (section_is_overlay): FIXME comment, bfd access methods.
14362
14363 * symfile.c (generic_load): Whitespace and long line cleanups.
14364 Remove duplicate variable, change several local variables to
14365 more appropriate data types.
14366 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14367
14368 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14369
14370 From Peter Schauer:
14371 * language.c (longest_local_hex_string_custom): Use phex_nz to
14372 convert NUM to a hex string.
14373
14374 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14375
14376 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14377 the function.
14378 Update Copyright year.
14379
14380 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14381
14382 * language.c (longest_raw_hex_string): Delete unused function.
14383
14384 2002-01-11 Petr Sorfa <petrs@caldera.com>
14385
14386 * MAINTAINERS (write-after-approval): Add myself.
14387 * dwarf2read.c (read_tag_string_type): Handling of
14388 DW_AT_byte_size.
14389 (read_tag_string_type): FORTRAN fix to prevent propagation of
14390 first string size.
14391 (set_cu_language): Handling of DW_LANG_Fortran95
14392
14393 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14394
14395 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14396 GETPID(inferior_ptid).
14397 (store_inferior_registers): Likewise.
14398
14399 2002-01-10 Jason Merrill <jason@redhat.com>
14400
14401 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14402 Fix DW_OP_minus.
14403
14404 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14405
14406 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14407 and bfd/elf32-sh-nbsd.c.
14408
14409 2002-01-10 Michael Snyder <msnyder@redhat.com>
14410
14411 * NEWS: Mention --pid and corefile/proc-id behavior change.
14412
14413 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14414 * gcore.c: Include cli/cli-decode.h instead of command.h.
14415
14416 * main.c (captured_main): Add new command line option "--pid".
14417 If the second command line argument (following the symbol-file)
14418 begins with a digit, try to attach to it before trying to open
14419 it as a corefile.
14420 (print_gdb_help): Document the "--pid" argument.
14421
14422 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14423
14424 * completer.c (command_completer): New function.
14425
14426 * completer.h <command_completer>: Add prototype.
14427
14428 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14429 completer for the "help" command.
14430
14431 2002-01-09 Jason Merrill <jason@redhat.com>
14432
14433 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14434
14435 2002-01-09 Michael Snyder <msnyder@redhat.com>
14436
14437 * i386-linux-nat.c (fill_fpxregset): Make global.
14438 (store_fpxregset): Ditto.
14439
14440 * gregset.h (gdb_fpxregset_t): Define.
14441 (supply_fpxregset): Prototype.
14442 (fill_fpxregset): Prototype.
14443
14444 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14445
14446 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14447
14448 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14449 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14450 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14451
14452 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14453
14454 * MAINTAINERS: Update target maintainer rules so that any
14455 Maintainer can approve a tested patch for a maintenance-only
14456 target.
14457
14458 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14459
14460 * MAINTAINERS (write-after-approval): Add myself.
14461
14462 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14463 IN_SIGTRAMP.
14464
14465 2002-01-08 Michael Snyder <msnyder@redhat.com>
14466
14467 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14468 real name of the executable, rather than the /proc name.
14469
14470 2002-01-03 Michael Snyder <msnyder@redhat.com>
14471
14472 Implement a "generate-core-file" command in gdb, save target state.
14473 * gcore.c: New file. Implement new command 'generate-core-file'.
14474 Save a corefile image of the current state of the inferior.
14475 * linux-proc.c: Add linux-specific code for saving corefiles.
14476 * target.h (struct target_ops): Add new target vectors for saving
14477 corefiles; to_find_memory_regions and to_make_corefile_notes.
14478 (target_find_memory_regions): New macro.
14479 (target_make_corefile_notes): New macro.
14480 * target.c (update_current_target): Inherit new target methods.
14481 (dummy_find_memory_regions): New place-holder method.
14482 (dummy_make_corefile_notes): New place-holder method.
14483 (init_dummy_target): Initialize new dummy target vectors.
14484 * exec.c (exec_set_find_memory_regions): New function.
14485 Allow the exec_ops vector for memory regions to be taken over.
14486 (exec_make_note_section): New function, target vector method.
14487 * defs.h (exec_set_find_memory_regions): Export prototype.
14488 * procfs.c (proc_find_memory_regions): New function, corefile method.
14489 (procfs_make_note_section): New function, corefile method.
14490 (init_procfs_ops): Set new target vector pointers.
14491 (find_memory_regions_callback): New function.
14492 (procfs_do_thread_registers): New function.
14493 (procfs_corefile_thread_callback): New function.
14494 * sol-thread.c (sol_find_memory_regions): New function.
14495 (sol_make_note_section): New function.
14496 (init_sol_thread_ops): Initialize new target vectors.
14497 * inftarg.c (inftarg_set_find_memory_regions): New function.
14498 Allow to_find_memory_regions vector to be taken over.
14499 (inftarg_set_make_corefile_notes): New function.
14500 Allow to_make_corefile_notes vector to be taken over.
14501 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14502 interface layer if not target_has_execution (may be a corefile).
14503 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14504 * config/sparc/sun4sol2.mh: Ditto.
14505 * config/alpha/alpha-linux.mh: Ditto.
14506 * config/arm/linux.mh: Ditto.
14507 * config/i386/x86-64linux.mh: Ditto.
14508 * config/ia64/linux.mh: Ditto.
14509 * config/m68k/linux.mh: Ditto.
14510 * config/mips/linux.mh: Ditto.
14511 * config/powerpc/linux.mh: Ditto.
14512 * config/sparc/linux.mh: Ditto.
14513
14514 2002-01-07 Michael Snyder <msnyder@redhat.com>
14515
14516 * arm-linux-nat.c: Remove references to regcache.c internal data
14517 (registers[] and register_valid[]).
14518
14519 2002-01-07 Michael Snyder <msnyder@redhat.com>
14520
14521 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14522 so that attaching to a pid will automatically read the process's
14523 symbol file and shlibs.
14524 * Makefile.in: Add rule for linux-proc.o.
14525 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14526 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14527 * config/arm/linux.mh: Ditto.
14528 * config/i386/linux.mh: Ditto.
14529 * config/i386/x86-64linux.mh: Ditto.
14530 * config/ia64/linux.mh: Ditto.
14531 * config/m68k/linux.mh: Ditto.
14532 * config/mips/linux.mh: Ditto.
14533 * config/powerpc/linux.mh: Ditto.
14534 * config/sparc/linux.mh: Ditto.
14535
14536 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14537
14538 * win32-nat.c: Add i386-tdep.h dependency.
14539
14540 2002-01-07 Michael Snyder <msnyder@redhat.com>
14541
14542 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14543 instead of bfd_get_arch_size. Don't bail out just because
14544 there's no exec_bfd.
14545
14546 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14547 * p-valprint.c (pascal_object_print_value): Ditto.
14548 * somread.c (som_symtab_read): Ditto.
14549 * symfile.c (simple_free_overlay_region_table): Ditto.
14550 * valops.c (value_assign): Ditto.
14551
14552 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14553 use tilde_expand and strerror for opening save-tracepoints file.
14554
14555 * thread-db.c (thread_db_new_objfile): Indendation fix.
14556
14557 * infptrace.c (GDB_MAX_ALLOCA): New define.
14558 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14559 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14560 can be overridden with whatever value is appropriate to the host).
14561 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14562 alloca to allocate potentially large buffer.
14563 * rs6000-nat.c (child_xfer_memory): Ditto.
14564 * symm-nat.c (child_xfer_memory): Ditto.
14565 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14566
14567 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14568
14569 From Nick Clifton <nickc@redhat.com>
14570 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14571
14572 2002-01-07 Michael Snyder <msnyder@redhat.com>
14573
14574 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14575 Don't use exec_bfd if it's NULL.
14576
14577 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14578
14579 * valops.c (value_arg_coerce): Fix formatting.
14580
14581 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14582
14583 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14584 * gnu-nat.c: Ditto.
14585
14586 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14587
14588 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14589 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14590 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14591 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14592 z8k-coff have not been multi-arched. Update z8k-coff build
14593 status.
14594
14595 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14596
14597 * MAINTAINERS: Mark a29k target as obsolete.
14598 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14599 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14600 comments.
14601 * NEWS: Note that a29k targets are obsolete.
14602 * a29k-tdep.c: Mark as obsolete.
14603 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14604 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14605 a29k-*-vxworks* targets as obsolete.
14606 * remote-adapt.c: Obsolete.
14607 * remote-eb.c: Obsolete.
14608 * remote-mm.c: Obsolete.
14609 * remote-udi.c: Obsolete.
14610 * config/a29k/a29k-udi.mt: Obsolete.
14611 * config/a29k/a29k.mt: Obsolete.
14612 * config/a29k/tm-a29k.h: Obsolete.
14613 * config/a29k/tm-vx29k.h: Obsolete.
14614 * config/a29k/vx29k.mt: Obsolete.
14615
14616 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14617
14618 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14619 with BFD_ENDIAN_BIG.
14620
14621 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14622
14623 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14624 * configure, config.in: Re-generate.
14625 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14626 * defs.h: Do not include <endian.h>.
14627
14628 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14629
14630 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14631 * config.in: Regenerate.
14632 * configure.in: Update copyright years.
14633 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14634 * configure: Regenerate.
14635 * i386bsd-nat.c: Update copyright years.
14636 (fill_gregset): Use regcache_collect.
14637 (fetch_inferior_registers): Only fetch integer registers
14638 if requested to do so. Add support for XMM registers
14639 using PT_GETXMMREGS.
14640 (store_inferior_registers): Only store integer registers
14641 if requested to do so. Add support for XMM registers
14642 using PT_SETXMMREGS.
14643 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14644 (store_inferior_registers): Remove.
14645 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14646 (fetch_elfcore_registers): New function.
14647 (i386nbsd_elfcore_fns): New.
14648 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14649 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14650 i386bsd-nat.o.
14651 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14652 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14653 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14654 * config/i386/tm-nbsd.h: Update copyright years.
14655 (HAVE_SSE_REGS): Define.
14656 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14657 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14658 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14659 (SIGCONTEXT_PC_OFFSET): Remove.
14660 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14661
14662 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14663
14664 * configure.tgt: Remove powerpc-*-macos* target.
14665 * config/m68k/xm-mpw.h: Delete file.
14666 * config/xm-mpw.h: Delete file.
14667 * ser-mac.c: Delete file.
14668 * mpw-make.sed: Delete file.
14669 * mpw-config.in: Delete file.
14670 * mac-xdep.c: Delete file.
14671 * mac-gdb.r: Delete file.
14672 * mac-defs.h: Delete file.
14673 * mac-nat.c: Delete file.
14674 * config/powerpc/macos.mh: Delete file.
14675 * config/powerpc/macos.mt: Delete file.
14676 * config/powerpc/nm-macos.h: Delete file.
14677 * config/powerpc/tm-macos.h: Delete file.
14678 * source.c (openp, open_source_file): Remove obsolete code.
14679 * top.c (gdb_readline): Ditto.
14680 * utils.c (query): Ditto.
14681 * event-top.c (display_gdb_prompt): Ditto.
14682 * Makefile.in (ser-mac.o): Delete obsolete target.
14683 * NEWS: Update.
14684
14685 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14686
14687 * defs.h (BIG_ENDIAN): Delete macro definition.
14688 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14689 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14690 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14691 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14692 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14693 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14694 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14695 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14696 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14697 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14698 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14699 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14700 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14701 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14702 * gdbarch.c: Re-generate.
14703
14704 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14705
14706 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14707 for core files.
14708
14709 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14710
14711 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14712
14713 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14714
14715 * value.h (value_ptr): Delete typedef.
14716
14717 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14718
14719 * i386nbsd-nat.c: Update copyright years.
14720 Include i386-tdep.h.
14721
14722 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14723
14724 * stabsread.c: Update copyright years.
14725
14726 From Debashis Mahata <debashis.mahata@wipro.com>:
14727 (read_struct_fields): Deal with Sun C compiler erroneous stab
14728 output for structs and unions.
14729 Fix PR gdb/269.
14730
14731 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14732
14733 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14734 prototype.
14735
14736 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14737
14738 * cp-abi.c: Fix whitespace.
14739 (baseclass_offset): New wrapper function.
14740 * cp-abi.h (baseclass_offset): Add prototype.
14741 (struct cp_abi_ops): Add baseclass_offset pointer.
14742
14743 * valops.c (vb_match): Move to...
14744 * gnu-v2-abi.c (vb_match): here.
14745 * valops.c (baseclass_offset): Move to...
14746 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14747
14748 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14749
14750 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14751 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14752 * hpacc-abi.c (init_hpacc_ops): Likewise.
14753
14754 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14755
14756 * valops.c (find_overload_match): Accept obj as a
14757 reference parameter. Update it before returning.
14758 * value.h (find_overload_match): Update prototype.
14759 * eval.c (evaluate_subexp_standard): Pass object to
14760 find_overload_match by reference.
14761
14762 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14763
14764 * valarith.c: Replace value_ptr with struct value pointer. Remove
14765 register attribute from value declarations.
14766 * valops.c: Ditto.
14767 * value.h: Ditto.
14768 * scm-lang.c (scm_lookup_name): Ditto.
14769
14770 2002-01-03 Michael Snyder <msnyder@redhat.com>
14771
14772 Abstract the functionality of iterating over mapped memory
14773 regions into a general purpose iterator function.
14774 * procfs.c (iterate_over_mappings): New function, general purpose
14775 iterator for memory sections.
14776 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14777 (solib_mappings_callback): New function, callback for above.
14778 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14779 (info_mappings_callback): New function, callback for above.
14780
14781 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14782
14783 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14784
14785 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14786 * i386-tdep.c: Include "elf-bfd.h".
14787 (process_note_abi_tag_sections): New function.
14788 (i386_gdbarch_init): Add code to recognize various OS/ABI
14789 combinations.
14790
14791 * maint.c (_initialize_maint_cmds): Add missing \ in
14792 string-literal.
14793
14794 For older changes see ChangeLog-2001
14795 \f
14796 Local Variables:
14797 mode: change-log
14798 left-margin: 8
14799 fill-column: 74
14800 version-control: never
14801 End:
This page took 0.314409 seconds and 5 git commands to generate.