2002-12-18 Andrew Cagney <ac131313@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-12-18 Andrew Cagney <ac131313@redhat.com>
2
3 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
4 frame_extra_info_zalloc.
5 (rs6000_frame_args_address): Use get_frame_extra_info.
6 (frame_get_saved_regs): Use get_frame_saved_regs.
7 (frame_initial_stack_address): Use get_frame_saved_regs and
8 get_frame_extra_info.
9 (frame_initial_stack_address): Use get_frame_extra_info.
10
11 2002-12-17 Kevin Buettner <kevinb@redhat.com>
12
13 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
14 array size.
15 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
16 checks for r3900_regnames[].
17
18 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
19
20 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
21 All uses changed
22 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
23
24 2002-12-17 David Carlton <carlton@math.stanford.edu>
25
26 * symtab.c (lookup_partial_symbol): Don't search past the end of
27 the partial symbols.
28
29 2002-12-17 Andrew Cagney <ac131313@redhat.com>
30
31 * stack.c (frame_info): Use get_frame_saved_regs.
32 * breakpoint.c (until_break_command): Use get_frame_pc.
33
34 2002-12-16 Kevin Buettner <kevinb@redhat.com>
35
36 * buildsym.c (block_end_complaint, anon_block_end_complaint)
37 (innerblock_complaint, innerblock_anon_complaint)
38 (blockvector_complaint): Delete deprecated complaint structs.
39 (finish_block, make_blockvector, end_symtab): Replace calls
40 to complain() with calls to complaint().
41 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
42 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
43 (unexpected_type_complaint, bad_sclass_complaint)
44 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
45 Delete deprecated complaint structs.
46 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
47 Replace calls to complain() with calls to complaint().
48 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
49 (unknown_symtype_complaint, unknown_symchar_complaint)
50 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
51 (lbrac_mismatch_complaint, repeated_header_complaint)
52 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
53 Delete deprecated complaint structs.
54 (unknown_symtype_complaint, lbrac_mismatch_complaint)
55 (repeated_header_complaint)
56 (function_outside_compiliation_unit_complaint): New functions.
57 (add_old_header_file, find_corresponding_bincl_psymtab)
58 (set_namestring, find_stab_function_addr, read_dbx_symtab)
59 (process_one_symbol): Replace calls to complain() with, possibly
60 indirect, calls to complaint().
61 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
62 (unknown_attribute_form, unknown_attribute_length)
63 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
64 (const_ignored, botched_modified_type, op_deref2, op_deref4)
65 (basereg_not_handled, dup_user_type_allocation)
66 (dup_user_type_definition, missing_tag, bad_array_element_type)
67 (subscript_data_items, unhandled_array_subscript_format)
68 (unknown_array_subscript_format, not_row_major)
69 (missing_at_name): Delete deprecated complaint structs.
70 (bad_die_ref_complaint, unknown_attribute_form_complaint)
71 (dup_user_type_definition_complaint)
72 (bad_array_element_type_complaint): New functions.
73 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
74 (decode_subscript_data_item, dwarf_read_array_type)
75 (read_tag_string_type, read_subroutine_type, read_func_scope)
76 (locval, scan_partial_symbols, decode_modified_type)
77 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
78 (attribute_size): Replace calls to complain() with, possibly
79 indirect, calls to complaint().
80 * elfread.c (section_info_complaint, section_info_dup_complaint)
81 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
82 Delete deprecated complaint structs.
83 (elf_symtab_read, elfstab_offset_sections): Replace calls to
84 complain() with calls to complaint().
85 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
86 struct.
87 (stub_noname_complaint): New function.
88 (check_typedef, add_mangled_type): Replace calls to complain()
89 with calls to complaint().
90 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
91 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
92 (hpread_unhandled_type_complaint, hpread_struct_complaint)
93 (hpread_array_complaint, hpread_type_lookup_complaint)
94 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
95 (hpread_unhandled_common_complaint)
96 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
97 struct definitions and declarations.
98 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
99 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
100 Replace calls to complain() with, possibly indirect, calls to
101 complaint().
102 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
103 Likewise.
104 * mdebugread.c (bad_file_number_complaint, index_complaint)
105 (aux_index_complaint, block_index_complaint)
106 (unknown_ext_complaint, unknown_sym_complaint)
107 (unknown_st_complaint, block_overflow_complaint)
108 (basic_type_complaint, unknown_type_qual_complaint)
109 (array_index_type_complaint, bad_tag_guess_complaint)
110 (block_member_complaint, stEnd_complaint)
111 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
112 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
113 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
114 (bad_continued_complaint, bad_rfd_entry_complaint)
115 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
116 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
117 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
118 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
119 complaint structs.
120 (index_complaint, unknown_ext_complaint, basic_type_complaint)
121 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
122 (unexpected_type_code_complaint)
123 (function_outside_compilation_unit_complaint): New functions.
124 (parse_symbol, parse_type, upgrade_type, parse_procedure)
125 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
126 Replace calls to complain() with, possibly indirect calls to
127 complaint().
128 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
129 Delete deprecated complaint structs.
130 (lookup__objc_class, lookup_child_selector): Replace complain()
131 with complaint().
132 * remote-vx.c (cant_contact_target): Delete deprecated complaint
133 struct.
134 (vx_lookup_symbol): Replace complain() with complaint().
135 * stabsread.c (invalid_cpp_abbrev_complaint)
136 (invalid_cpp_type_complaint, member_fn_complaint)
137 (const_vol_complaint, error_type_complaint)
138 (invalid_member_complaint, range_type_base_complaint)
139 (reg_value_complaint, vtbl_notfound_complaint)
140 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
141 (unresolved_sym_chain_complaint, stabs_general_complaint)
142 (lrs_general_complaint, multiply_defined_struct): Delete
143 deprecated complaint structs.
144 (invalid_cpp_abbrev_complaint, ref_value_complaint)
145 (stabs_general_complaint, lrs_general_complaint)
146 (msg_unknown_complaint): New functions.
147 (dbx_lookup_type, read_cfront_baseclasses)
148 (read_cfront_member_functions, resolve_symbol_reference)
149 (define_symbol, resolve_live_range, add_live_range, read_type)
150 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
151 (read_one_struct_field, read_baseclasses, read_tilde_fields)
152 (read_cfront_static_fields, attach_fields_to_type)
153 (complain_about_struct_wipeout, read_range_type)
154 (common_block_start, common_block_end, cleanup_undefined_types)
155 (scan_file_globals): Replace complain() with complaint().
156 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
157 Delete deprecated complaint struct declarations.
158 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
159 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
160 (bf_not_found_complaint, ef_complaint, eb_complaint)
161 (function_outside_compilation_unit_complaint): New functions.
162 (record_include_begin, record_include_end, enter_line_range)
163 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
164 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
165 complain() with complaint().
166
167 2002-12-16 Andrew Cagney <ac131313@redhat.com>
168
169 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
170 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
171 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
172 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
173 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
174 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
175 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
176 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
177 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
178 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
179 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
180 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
181 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
182 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
183 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
184 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
185 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
186 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
187 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
188 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
189 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
190 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
191 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
192 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
193 * config/m88k/xm-dgux.h: Delete.
194 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
195 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
196 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
197 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
198 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
199 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
200 * ch-valprint.c: Delete.
201
202 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
203
204 * infrun.c (handle_inferior_event): Rearrange code to resume if
205 no catchpoint triggers for an event.
206
207 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
208
209 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
210 and TARGET_WAITKIND_VFORKED cases.
211
212 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
213
214 * infrun.c (handle_inferior_event): Assume that catchpoints
215 are not affected by DECR_PC_AFTER_BREAK.
216
217 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
218
219 * target.c (update_current_target): Don't inherit DONT_USE.
220 * target.h (struct target_ops): Remove DONT_USE.
221 (target_next): Remove macro.
222
223 2002-12-15 Mark Kettenis <kettenis@gnu.org>
224
225 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
226
227 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
228
229 * arm-tdep.c (convert_from_extended): New argument to hold the
230 type of floating point result we want to convert to. Make input
231 argument const. Fix all callers.
232 (convert_to_extended): Similarly.
233 (arm_extract_return_value): Now takes a regcache argument. Change
234 code to use regcache accessor functions. Correctly extract
235 smaller-than-word results on big-endian machines.
236 (arm_store_return_value): Now takes a regcache argument. Change
237 code to use regcache accessor functions. Correctly zero/sign extend
238 smaller than word results before storing into r0.
239 (arm_gdbarch_init): Register new-style extract_return_value and
240 store_return_value functions.
241
242 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
243
244 * thread-db.c (thread_from_lwp): Uniquify error msg.
245 (lwp_from_thread): Ditto.
246 (check_event): Ditto.
247 (find_new_threads_callback): Ditto.
248 (thread_db_pid_to_str): Ditto.
249
250 2002-12-13 Andrew Cagney <ac131313@redhat.com>
251
252 * frame.h (get_frame_saved_regs): Declare.
253 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
254 pointer.
255 * frame.c (get_frame_saved_regs): New function.
256 (frame_saved_regs_zalloc): Return the allocated saved_regs.
257
258 2002-12-13 Andrew Cagney <ac131313@redhat.com>
259
260 * frame.c (deprecated_update_current_frame_pc_hack): New
261 function.
262 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
263 * infrun.c (normal_stop): Use said function instead of directly
264 modifying the frame's PC.
265
266 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
267
268 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
269
270 2002-12-13 Kevin Buettner <kevinb@redhat.com>
271
272 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
273 config/mips/tm-irix6.h (NUM_REGS): Delete.
274 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
275 (temp_saved_regs): Declare as a pointer rather than an array.
276 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
277 that ``temp_saved_regs'' has storage allocated to it and that
278 it's the correct size.
279
280 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
281
282 * defs.h (init_last_source_visited): New prototype.
283 (add_path): Ditto.
284 * source.c (add_path): New function that adds to a specified path.
285 (mod_path): Change to call add_path.
286 (init_last_source_visited): New function to allow interfaces to
287 initialize static variable: last_source_visited. Part of fix
288 for PR gdb/741.
289 * Makefile.in: Add support for mi/mi-cmd-env.c.
290
291 2002-12-13 Andrew Cagney <ac131313@redhat.com>
292
293 * frame.h (frame_id_unwind): Declare.
294 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
295 id_unwind_cache.
296 (frame_id_unwind_ftype): Declare.
297 * frame.c (frame_id_unwind): New function.
298 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
299 (create_new_frame, get_prev_frame): Pass id_unwind to
300 set_unwind_by_pc.
301 (frame_saved_regs_id_unwind): New function.
302 (frame_saved_regs_id_unwind): New function.
303 * dummy-frame.c (dummy_frame_id_unwind): New function.
304 (struct dummy_frame): Add field id.
305 (generic_push_dummy_frame): Initialize `id'.
306 * dummy-frame.h (dummy_frame_id_unwind): Declare.
307
308 2002-12-13 Andrew Cagney <ac131313@redhat.com>
309
310 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
311 pass that to set_momentary_breakpoint. Move comments to where they
312 belong.
313 * frame.h (set_current_frame): Delete declaration.
314 * frame.c (set_current_frame): Delete function.
315
316 2002-12-13 Andrew Cagney <ac131313@redhat.com>
317
318 * frame.c (frame_extra_info_zalloc): New function.
319 * frame.h (frame_extra_info_zalloc): Declare.
320
321 2002-12-13 Joel Brobecker <brobecker@gnat.com>
322
323 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
324 in the previous prototype change to set_momentary_breakpoint.
325
326 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
327
328 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
329 and saw_child_exec.
330 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
331 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
332 (stop_stepping): Remove outdated check for child vfork events.
333
334 2002-12-12 Andrew Cagney <ac131313@redhat.com>
335
336 * GDB 5.3 released from gdb_5_3-branch.
337
338 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
339
340 * corelow.c (init_core_ops): Delete references to to_require_attach
341 and to_require_detach.
342 * exec.c (init_exec_ops): Likewise.
343 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
344 hppa_require_detach directly.
345 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
346 * inftarg.c (child_detach): Remove.
347 (child_detach_from_process): Rename to child_detach, remove
348 after_fork argument.
349 (child_attach): Remove.
350 (child_attach_to_process): Rename to child_attach, remove after_fork
351 argument.
352 (init_child_ops): Delete references to to_require_attach
353 and to_require_detach.
354 * infttrace.c (hppa_require_attach): Update comment.
355 * target.c (cleanup_target, update_current_target)
356 (init_dummy_target, setup_target_debug): Delete references to
357 to_require_attach and to_require_detach.
358 (find_default_require_detach, find_default_require_attach)
359 (debug_to_require_attach, debug_to_require_detach): Remove
360 functions.
361 * target.h (struct target_ops): Remove to_require_attach
362 and to_require_detach.
363 (target_require_attach, target_require_detach): Delete macros.
364 (find_default_require_detach, find_default_require_attach): Delete
365 prototypes.
366 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
367
368 2002-12-11 Andrew Cagney <ac131313@redhat.com>
369
370 * frame.c (get_frame_extra_info): New function.
371 * frame.h (get_frame_extra_info): Declare.
372
373 2002-12-11 Andrew Cagney <ac131313@redhat.com>
374
375 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
376 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
377 with `struct frame_id'.
378 (set_longjmp_resume_breakpoint): Ditto.
379 * infrun.c (handle_inferior_event): Update.
380 * breakpoint.c (watch_command_1, until_break_command): Update.
381 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
382 (handle_inferior_event, step_over_function): Update.
383 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
384 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
385 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
386 * infcmd.c (finish_command, run_stack_dummy): Update.
387
388 2002-12-11 Kevin Buettner <kevinb@redhat.com>
389
390 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
391 (dwarf2_non_const_array_bound_ignored)
392 (dwarf2_missing_line_number_section)
393 (dwarf2_statement_list_fits_in_line_number_section)
394 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
395 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
396 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
397 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
398 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
399 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
400 (dwarf2_missing_member_fn_type_complaint)
401 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
402 (dwarf2_const_value_length_mismatch)
403 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
404 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
405 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
406 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
407 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
408 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
409 complaints using deprecated struct..
410 (dwarf2_non_const_array_bound_ignored_complaint)
411 (dwarf2_complex_location_expr_complaint)
412 (dwarf2_unsupported_at_frame_base_complaint)
413 (dwarf2_const_value_length_mismatch_complaint)
414 (dwarf2_macros_too_long_complaint)
415 (dwarf2_macro_malformed_definition_complaint)
416 (dwarf2_invalid_attrib_class_complaint): New functions.
417 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
418 (read_structure_scope, read_array_type, read_common_block)
419 (read_tag_pointer_type, read_base_type, read_partial_die)
420 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
421 (new_symbol, dwarf2_const_value, read_type_die)
422 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
423 (parse_macro_definition, dwarf_decode_macros): Replace calls to
424 complain() with, possibly indirect, calls to complaint().
425
426 2002-12-11 Andrew Cagney <cagney@redhat.com>
427
428 * frame.c (deprecated_get_frame_saved_regs): Rename
429 get_frame_saved_regs.
430 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
431 * sparc-tdep.c: Update.
432 * hppa-tdep.c: Update.
433 * h8500-tdep.c: Update.
434
435 2002-12-11 Kevin Buettner <kevinb@redhat.com>
436
437 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
438 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
439 ``char *'' for return and parameter types.
440 * gdbarch.h, gdbarch.c: Regenerate.
441 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
442 return type from ``char *'' to ``const char *''.
443 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
444 const.
445
446 2002-12-11 Mark Kettenis <kettenis@gnu.org>
447
448 * i386-tdep.c: Include "dummy-frame.h".
449 (i386_frame_chain, i386_frame_saved_pc): Replace
450 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
451 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
452
453 2002-12-10 Andrew Cagney <cagney@redhat.com>
454
455 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
456 Change to a function with predicate.
457 * gdbarch.h, gdbarch.c: Re-generate.
458 * frame.c (get_prev_frame): Update. Test
459 DEPRECATED_INIT_FRAME_PC_P.
460 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
461 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
462 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
463 * alpha-tdep.c (alpha_gdbarch_init): Update.
464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
465 * mips-tdep.c (mips_gdbarch_init): Update.
466 * i386-interix-tdep.c (i386_interix_init_abi): Update.
467 * arm-tdep.c: Update comments.
468 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
469 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
470 * frv-tdep.c (frv_gdbarch_init): Ditto.
471 * x86-64-tdep.c (x86_64_init_abi): Ditto.
472 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
473 * s390-tdep.c (s390_gdbarch_init): Ditto.
474 * v850-tdep.c (v850_gdbarch_init): Ditto.
475 * vax-tdep.c (vax_gdbarch_init): Ditto.
476 * sh-tdep.c (sh_gdbarch_init): Ditto.
477 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
481 * i386-tdep.c (i386_gdbarch_init): Ditto.
482 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
483 * cris-tdep.c (cris_gdbarch_init): Ditto.
484 * avr-tdep.c (avr_gdbarch_init): Ditto.
485 * arm-tdep.c (arm_gdbarch_init): Ditto.
486 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
487 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
488
489 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
490
491 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
492 CHILD_FOLLOW_FORK.
493 * hppah-nat.c (saved_vfork_pid): Add.
494 (child_post_follow_vfork): Remove.
495 (child_follow_fork): New function.
496 (child_wait): Call detach_breakpoints after receiving the child vfork.
497 Call child_resume directly instead of going through resume ().
498 Make sure we have the exec before reporting the vfork.
499 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
500 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
501 (follow_fork): New function. Call target_follow_fork.
502 (follow_inferior_reset_breakpoints): New function broken out from
503 old follow_inferior_fork.
504 (resume): Remove hack to follow exec after vfork.
505 * inftarg.c (child_post_follow_vfork): Remove.
506 (child_follow_fork): New function.
507 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
508 * target.c (cleanup_target): Replace to_post_follow_vfork with
509 to_follow_fork.
510 (update_current_target): Likewise.
511 (setup_target_debug): Likewise.
512 (debug_to_post_follow_vfork): Remove.
513 (debug_to_follow_fork): New function.
514 * target.h (struct target_ops): Replace to_post_folow_vfork with
515 to_follow_fork.
516 (child_post_follow_vfork): Remove prototype.
517 (child_follow_fork): Add prototype.
518 (target_post_follow_vfork): Remove macro.
519 (target_follow_fork): Add macro.
520
521 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
522
523 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
524 (child_post_follow_vfork): Cancel pending exec event if we follow
525 the parent.
526 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
527 events have been processed. Return a fake TARGET_WAITKIND_EXECD
528 event at the following wait call if necessary.
529 * infrun.c (follow_vfork): Don't follow_exec here.
530 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
531 case about HP/UX 10.20. Remove code pushed down to
532 hppah-nat.c:child_wait.
533 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
534 vfork_in_flight is set.
535
536 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
537
538 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
539 for the parent's fork event.
540 * infrun.c (handle_inferior_event): Only expect one fork event.
541 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
542 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
543
544 2002-12-10 Andrew Cagney <ac131313@redhat.com>
545
546 * PROBLEMS: Delete reference to PR gdb/725.
547
548 * MAINTAINERS (gdb.c++): Add David Carlton.
549
550 2002-12-09 David Carlton <carlton@math.stanford.edu>
551
552 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
553 * cli/cli-cmds.c: Ditto.
554
555 2002-12-09 Andrew Cagney <cagney@redhat.com>
556
557 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
558 function address in <>.
559 * gdbarch.c: Re-generate.
560
561 2002-12-09 David Carlton <carlton@math.stanford.edu>
562
563 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
564
565 2002-12-09 David Carlton <carlton@math.stanford.edu>
566
567 * linespec.c (symtab_from_filename): New function.
568 (decode_line_1): Move code into symtab_from_filename.
569
570 2002-12-09 Kevin Buettner <kevinb@redhat.com>
571
572 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
573
574 2002-12-07 Andrew Cagney <ac131313@redhat.com>
575
576 * f-valprint.c (info_common_command): Use get_frame_pc.
577 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
578 * ax-gdb.c (agent_command): Ditto.
579 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
580 (rs6000_pop_frame): Ditto.
581 (rs6000_frameless_function_invocation): Ditto.
582 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
583 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
584 * macroscope.c (default_macro_scope): Ditto.
585 * stack.c (print_frame_info_base): Ditto.
586 (print_frame, frame_info, print_frame_label_vars): Ditto.
587 (return_command, func_command, get_frame_language): Ditto.
588 * infcmd.c (finish_command): Ditto.
589 * dummy-frame.c (cached_find_dummy_frame): Ditto.
590 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
591 (break_at_finish_at_depth_command_1): Ditto.
592 (break_at_finish_command_1): Ditto.
593 (until_break_command, get_catch_sals): Ditto.
594 * blockframe.c (func_frame_chain_valid): Ditto.
595 (frameless_look_for_prologue): Ditto.
596 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
597
598 2002-12-08 Andrew Cagney <ac131313@redhat.com>
599
600 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
601 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
602
603 2002-12-08 Andrew Cagney <ac131313@redhat.com>
604
605 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
606 to pure functions.
607 * gdbarch.h, gdbarch.c: Re-generate.
608 * frame.c (get_prev_frame): Explictly assign prev's pc with value
609 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
610
611 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
612 declaration to a function returning a CORE_ADDR.
613 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
614 * arch-utils.c (init_frame_pc_noop): Return the PC value.
615 (init_frame_pc_default): Ditto.
616 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
617 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
618 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
619 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
620 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
621 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
622
623 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
624 to init_frame_pc_noop.
625 (i386_interix_init_frame_pc): Delete function.
626 * z8k-tdep.c (init_frame_pc): Delete function.
627 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
628 (INIT_FRAME_PC_FIRST): Ditto.
629 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
630 (INIT_FRAME_PC_FIRST): Ditto.
631 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
632 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
633 init_frame_pc_noop.
634 (INIT_FRAME_PC_FIRST): Convert to an expression.
635 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
636
637 2002-12-08 Andrew Cagney <ac131313@redhat.com>
638
639 * blockframe.c: Use get_frame_base instead of directly accessing
640 the `struct frame_info' member frame.
641 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
642 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
643
644 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
645
646 * Makefile.in (readline_h): Define.
647 (completer.o): Depend on readline_h.
648 (corelow.o): Ditto.
649 (event-top.o): Ditto.
650 (exec.o): Ditto.
651 (solib.o): Ditto.
652 (source.o): Ditto.
653 (symfile.o): Ditto.
654 (symmisc.o): Ditto.
655 (top.o): Ditto.
656 (tracepoint.o): Ditto.
657 (utils.o): Ditto.
658 (cli-dump.o): Ditto.
659 (tui-hooks.o): Ditto.
660 (tuiWin.o): Ditto.
661
662 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
663
664 More cleanup from import of readline 4.3.
665 * completer.h (complete_line, readline_line_completion_function):
666 Update prototypes.
667 (line_completion_function): Removed, not used outside of completer.c.
668 * completer.c (readline_line_completion_function,
669 complete_function, line_completion_function): Use const for first
670 parameter.
671 (line_completion_function): Make static.
672 (filename_completer): filename_completion_function is now called
673 rl_filename_completion_function
674 * corelow.c: Include <readline/readline.h>.
675 * exec.c: Ditto.
676 * solib.c: Ditto.
677 * source.c: Ditto.
678 * symfile.c: Ditto.
679 * symmisc.c: Ditto.
680 * top.c (init_main): No need to coerce
681 readline_line_completion_function anymore.
682 * cli/cli-dump.c: Include <readline/readline.h>.
683
684 2002-12-08 Andrew Cagney <ac131313@redhat.com>
685
686 * stack.c (frame_info): Use get_prev_frame.
687 * blockframe.c (frame_address_in_block): Ditto.
688 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
689 (rs6000_frameless_function_invocation): Ditto.
690 (rs6000_frame_saved_pc): Ditto.
691 (rs6000_frame_chain): Ditto.
692 * arch-utils.c (init_frame_pc_default): Ditto.
693
694 2002-12-08 Andrew Cagney <ac131313@redhat.com>
695
696 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
697 Delete redundant definition.
698
699 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
700
701 Import of readline 4.3:
702 * cli/cli-cmds.c: Include readline/tilde.h.
703 * cli/cli-setshow.c: Ditto.
704 * defs.h: Don't declare tilde_expand anymore, since readline
705 exports it.
706
707 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
708
709 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
710 -Werror on this file.
711
712 2002-12-07 Andrew Cagney <ac131313@redhat.com>
713
714 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
715 the format name.
716 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
717 * gdbarch.c: Regenerate.
718
719 2002-12-06 Andrew Cagney <ac131313@redhat.com>
720
721 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
722 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
723 provide a default value.
724 * gdbarch.h, gdbarch.c: Regenerate.
725 * frame.c (get_prev_frame): Update. Check
726 DEPRECATED_INIT_FRAME_PC_FIRST_P.
727 * s390-tdep.c (s390_gdbarch_init): Update.
728 * mips-tdep.c (mips_gdbarch_init): Update.
729 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
730 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
731 * alpha-tdep.c (alpha_gdbarch_init): Update.
732
733 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
734
735 * ia64-linux-nat.c: Include gdb_string.h.
736 * alpha-nat.c: Ditto.
737 * ppc-linux-nat.c: Ditto.
738 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
739 Update dependencies.
740
741 2002-12-05 Andrew Cagney <ac131313@redhat.com>
742
743 * gdbthread.h: Include "frame.h".
744 (struct thread_info): Replace step_frame_address with
745 step_frame_id.
746 * inferior.h: Include "frame.h".
747 (step_frame_id): Replace external variable step_frame_address.
748 * gdbthread.h (save_infrun_state): Replace step_frame_address
749 parameter with step_frame_id parameter.
750 (load_infrun_state): Ditto.
751 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
752 * infcmd.c (step_frame_id, step_1, step_once): Update.
753 * thread.c (load_infrun_state, save_infrun_state): Update.
754 * infrun.c (clear_proceed_status, save_inferior_status): Update.
755 (handle_inferior_event, step_over_function): Update.
756 (normal_stop, context_switch, restore_inferior_status): Update.
757 (struct inferior_status): Replace step_frame_address with
758 step_frame_id.
759
760 2002-12-05 David Carlton <carlton@math.stanford.edu>
761
762 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
763 DW_TAG_member as well as a declaration as being a C++ static data
764 member.
765 (read_structure_scope): Combine tests for DW_TAG_member and
766 DW_TAG_variable.
767
768 2002-12-05 David Carlton <carlton@math.stanford.edu>
769
770 * linespec.c (decode_compound): New function.
771 (decode_line_1): Move code into decode_compound.
772
773 2002-12-05 David Carlton <carlton@math.stanford.edu>
774
775 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
776 argument.
777 (lookup_symbol_aux): Do the 'field_of_this' check before checking
778 the static block. See PR gdb/804.
779
780 2002-12-05 David Carlton <carlton@math.stanford.edu>
781
782 * symtab.c (lookup_symbol_aux_block): New function.
783 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
784
785 2002-12-05 Andrew Cagney <ac131313@redhat.com>
786
787 * gdbarch.sh: Dump the predicate function and macro values.
788 (read): Print error on standard error.
789 * gdbarch.c: Regenerate.
790
791 2002-12-04 Kevin Buettner <kevinb@redhat.com>
792
793 * Makefile.in (mips_tdep_h): Define.
794 (mips-tdep.o): Add mips_tdep_h to dependency list.
795 * mips-tdep.h: New file.
796 * mips-tdep.c (mips-tdep.h): Include.
797 (enum mips_abi): Move to mips-tdep.h.
798 (mips_abi): New function.
799
800 2002-12-04 David Carlton <carlton@math.stanford.edu>
801
802 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
803
804 2002-12-04 David Carlton <carlton@math.stanford.edu>
805
806 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
807 function.
808 (lookup_symbol_aux_minsyms): New function.
809
810 2002-12-04 J. Brobecker <brobecker@gnat.com>
811
812 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
813
814 2002-12-04 J. Brobecker <brobecker@gnat.com>
815
816 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
817 which is an obsolete macro name.
818
819 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
820
821 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
822 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
823
824 2002-12-03 H.J. Lu (hjl@gnu.org)
825
826 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
827 (create_breakpoints): Make sure the addr_string field is not
828 NULL.
829
830 2002-12-03 Andrew Cagney <ac131313@redhat.com>
831
832 * sparc-nat.c (fetch_inferior_registers)
833 (store_inferior_registers): Add comment on problem of LWP vs
834 threads.
835
836 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
837 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
838 (lin_lwp_store_registers): Remove.
839 (init_lin_lwp_ops): Use fetch_inferior_registers
840 and store_inferior_registers directly.
841 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
842 (store_inferior_registers): Likewise.
843 Fix PR gdb/725.
844
845 2002-12-03 Andrew Cagney <ac131313@redhat.com>
846
847 * frame.h (get_frame_id): Convert to a function.
848 (null_frame_id, frame_id_p): Declare.
849 (frame_id_eq, frame_id_inner): Declare.
850 (frame_id_build): New function.
851 * frame.c (get_frame_id): Update. Use null_frame_id.
852 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
853 frame_id_inner.
854 (null_frame_id, frame_id_p): Define.
855 (frame_id_eq, frame_id_inner): Define.
856 (frame_id_build): New function.
857 * varobj.c (varobj_create): Update.
858 (varobj_update): Update.
859 * valops.c (value_assign): Update.
860 (new_root_variable): Update.
861 * infrun.c (save_inferior_status): Update.
862 * breakpoint.c (watch_command_1): Update.
863
864 2002-12-03 J. Brobecker <brobecker@gnat.com>
865
866 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
867 (SNAP2): Likewise.
868
869 2002-12-03 Andrew Cagney <cagney@redhat.com>
870
871 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
872 patch.
873
874 * PROBLEMS: Mention PR gdb/725.
875
876 2002-12-03 Andreas Schwab <schwab@suse.de>
877
878 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
879
880 2002-12-02 Adam Fedor <fedor@gnu.org>
881 Klee Dienes <kdienes@apple.com>
882
883 * objc-lang.c (objc_printstr): Add width arg to match
884 printstr prototype.
885 (compare_selectors): Add 'const' to arg types.
886 (compare_classes): Likewise.
887 (find_imps): Cast msym pointer to avoid compiler warning.
888 (print_object_command): Validate the address before
889 passing it to the print routine.
890 (find_objc_msgcall_submethod): Change function argument to
891 return an int.
892 * objc-lang.h: Add 'extern' to all function declarations.
893 (value_nsstring): Add declaration.
894
895 2002-12-02 J. Brobecker <brobecker@gnat.com>
896
897 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
898 Fixes a build failure on HP/UX.
899
900 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
901 failure on HP/UX.
902 (hpread_has_name): Advance declaration to avoid a compilation warning.
903 (pst_syms_count): Add missing variable type. By change, the compiler
904 was defaulting to int, which seems a good choice. Fixes a compilation
905 warning.
906 (pst_syms_size): Likewise.
907
908 2002-12-02 J. Brobecker <brobecker@gnat.com>
909
910 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
911 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
912 later to set the proper gdbarch methods depending on the osabi.
913 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
914
915 2002-12-02 J. Brobecker <brobecker@gnat.com>
916
917 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
918 * osabi.c (gdb_osabi_name): Add strings images for the two new
919 enum values.
920 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
921
922 2002-12-02 Andrew Cagney <ac131313@redhat.com>
923
924 * MAINTAINERS (Java): Global maintainers are responible for Java.
925 (Past Maintainers): Mention both Anthony Green and Per Bothner as
926 part Java maintainers.
927
928 2002-12-02 J. Brobecker <brobecker@gnat.com>
929
930 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
931 Fixes a compilation failure on AiX.
932
933 2002-12-02 J. Brobecker <brobecker@gnat.com>
934
935 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
936 why aix-thread.o is not listed.
937
938 2002-12-01 Andrew Cagney <ac131313@redhat.com>
939
940 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
941 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
942 * gdbarch.h, gdbarch.c: Re-generate.
943 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
944 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
945 * config/pa/tm-hppa.h, frame.h: Update.
946 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
947 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
948 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
949 * cris-tdep.c, alpha-tdep.c: Update.
950 * frame.c (set_unwind_by_pc, create_new_frame): Use either
951 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
952 (get_prev_frame): Ditto.
953
954 2002-11-30 Andrew Cagney <cagney@redhat.com>
955
956 * exec.c (xfer_memory): Replace boolean with int.
957 * p-exp.y: Use 0 instead of false.
958 * corelow.c (gdb_check_format): Change return type to int from
959 boolean.
960 * utils.c: Don't include <curses.h> or <term.h> first.
961
962 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
963
964 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
965 (m68hc11_register_byte): Remove.
966 (m68hc11_gdbarch_init): Don't set the above.
967
968 2002-11-29 Andrew Cagney <cagney@redhat.com>
969
970 * remote-mips.c (mips_initialize): Force a selected frame rebuild
971 by calling get_selected_frame.
972 * ocd.c (ocd_start_remote): Use get_selected frame instead of
973 set_current_frame, create_new_frame, select_frame and
974 get_current_frame.
975 * remote-e7000.c (e7000_start_remote): Ditto.
976 * remote-mips.c (common_open): Ditto
977 * remote-rdp.c (remote_rdp_open): Ditto.
978
979 2002-11-29 Andreas Schwab <schwab@suse.de>
980
981 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
982 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
983 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
984 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
985 read_memory_unsigned_integer instead of read_memory_integer when
986 dealing with addresses and instruction opcodes.
987 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
988 (m68k_linux_frame_saved_pc): Likewise.
989
990 2002-11-29 Andrew Cagney <ac131313@redhat.com>
991
992 * stack.c (selected_frame, select_frame): Move from here ...
993 * frame.c (selected_frame, select_frame): ... to here. Include
994 "language.h".
995 * Makefile.in (frame.o): Update dependencies.
996 * frame.c (get_selected_frame): New function.
997 * frame.h (get_selected_frame): Declare.
998 (deprecated_selected_frame): Rename selected_frame.
999 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1000 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1001 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1002 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1003 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1004 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1005 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1006 * z8k-tdep.c, cli/cli-cmds.c: Update.
1007
1008 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1009
1010 * frame.h (get_selected_block): Add comments.
1011
1012 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1013
1014 * frame.c (pc_notcurrent): New function.
1015 (find_frame_sal): New function.
1016 * frame.h (find_frame_sal): Declare.
1017 (struct symtab_and_line): Add opaque declaration.
1018 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1019 find_pc_line.
1020 (frame_info): Ditto.
1021 * ada-lang.c (find_printable_frame): Ditto.
1022
1023 2002-11-28 J. Brobecker <brobecker@gnat.com>
1024
1025 * configure.in: Check that the pthdebug library is recent enough
1026 before enabling thread support on native AiX.
1027 * configure: Regenerate.
1028
1029 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1030 from the list of object files as it is now appended by configure
1031 if thread support is enabled.
1032 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1033 if thread support is enabled.
1034
1035 2002-11-28 Andrew Cagney <cagney@redhat.com>
1036
1037 * stack.c (get_selected_block): In-line get_current_block.
1038 * frame.h (get_current_block): Delete declaration.
1039 * blockframe.c (get_current_block): Delete function.
1040
1041 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1042
1043 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1044 USE_GENERIC_DUMMY_FRAMES.
1045 * gdbarch.h, gdbarch.c: Regenerate.
1046 * valops.c, frame.c: Update.
1047 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1048 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1049 * config/pa/tm-hppa.h, blockframe.c: Update.
1050 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1051 * m68k-tdep.c, alpha-tdep.c: Ditto.
1052
1053 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1054 * mips-tdep.c: Ditto.
1055
1056 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1057
1058 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1059 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1060 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1061 * gdbarch.c, gdbarch.h: Re-generate.
1062 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1063 (CALL_DUMMY_LOCATION): Delete macro definition.
1064 (PC_IN_CALL_DUMMY): Delete macro definitions.
1065
1066 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1067 default is already generic_pc_in_call_dummy.
1068 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1069 * v850-tdep.c (v850_gdbarch_init): Ditto.
1070 * sh-tdep.c (sh_gdbarch_init): Ditto.
1071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1072 * mips-tdep.c (mips_gdbarch_init): Ditto.
1073 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1075 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1076 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1077 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1078 * avr-tdep.c (avr_gdbarch_init): Ditto.
1079
1080 * arm-tdep.c (arm_gdbarch_init): Do not set
1081 use_generic_dummy_frames, default is already 1.
1082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1083 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1084 * v850-tdep.c (v850_gdbarch_init): Ditto.
1085 * sh-tdep.c (sh_gdbarch_init): Ditto.
1086 * s390-tdep.c (s390_gdbarch_init): Ditto.
1087 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1088 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1089 * mips-tdep.c (mips_gdbarch_init): Ditto.
1090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1091 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1093 * i386-tdep.c (i386_gdbarch_init): Ditto.
1094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1095 * frv-tdep.c (frv_gdbarch_init): Ditto.
1096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1097 * cris-tdep.c (cris_gdbarch_init): Ditto.
1098 * avr-tdep.c (avr_gdbarch_init): Ditto.
1099
1100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1101 call_dummy_location, default is already AT_ENTRY_POINT.
1102 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1103 * v850-tdep.c (v850_gdbarch_init): Ditto.
1104 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1105 * sh-tdep.c (sh_gdbarch_init): Ditto.
1106 * s390-tdep.c (s390_gdbarch_init): Ditto.
1107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1109 * mips-tdep.c (mips_gdbarch_init): Ditto.
1110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1112 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1113 * i386-tdep.c (i386_gdbarch_init): Ditto.
1114 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1115 * frv-tdep.c (frv_gdbarch_init): Ditto.
1116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1117 * cris-tdep.c (cris_gdbarch_init): Ditto.
1118 * avr-tdep.c (avr_gdbarch_init): Ditto.
1119 * arm-tdep.c (arm_gdbarch_init): Ditto.
1120 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1121
1122 2002-11-28 Andrew Cagney <cagney@redhat.com>
1123
1124 * frame.h: Update comments on set_current_frame, create_new_frame,
1125 flush_cached_frames, reinit_frame_cache, select_frame and
1126 selected_frame.
1127
1128 2002-11-27 Andrew Cagney <cagney@redhat.com>
1129
1130 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1131 deprecated pc_in_call_dummy function.
1132 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1133 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1134 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1135 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1136 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1137
1138 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1139
1140 * Makefile.in: Remove Tix dependencies.
1141 * acinclude.m4: Ditto.
1142 * aclocal.m4: Ditto.
1143 * configure.in: Ditto.
1144 * configure: Regenerated.
1145
1146 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1147
1148 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1149 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1150 * gdbarch.c: Re-generate.
1151
1152 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1153
1154 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1155 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1156 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1157 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1158 pc_in_call_dummy_at_entry_point.
1159 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1160 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1161 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1162 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1163 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1164 pc_in_call_dummy_on_stack.
1165 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1166 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1167 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1168 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1169 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1170
1171 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1172
1173 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1174 pc_in_call_dummy_before_text_end
1175 (deprecated_pc_in_call_dummy_after_text_end): Rename
1176 pc_in_call_dummy_after_text_end.
1177 (deprecated_pc_in_call_dummy_on_stack): Rename
1178 pc_in_call_dummy_on_stack.
1179 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1180 pc_in_call_dummy_at_entry_point.
1181 * m68k-tdep.c (m68k_gdbarch_init): Update.
1182 * s390-tdep.c (s390_gdbarch_init): Update.
1183 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1184 * vax-tdep.c (vax_gdbarch_init): Update.
1185 * sparc-tdep.c (sparc_gdbarch_init): Update.
1186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1188 * i386-tdep.c (i386_gdbarch_init): Update.
1189 * frv-tdep.c (frv_gdbarch_init): Update.
1190 * cris-tdep.c (cris_gdbarch_init): Update.
1191 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1192 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1193 (deprecated_pc_in_call_dummy_after_text_end)
1194 (deprecated_pc_in_call_dummy_on_stack)
1195 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1196 * alpha-tdep.c (alpha_gdbarch_init): Update.
1197
1198 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1199
1200 * acconfig.h (HAVE_PREAD64): Add.
1201 * configure.in: Check for pread64.
1202 * config.in: Regenerated.
1203 * configure: Regenerated.
1204 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1205 * linux-proc.c (linux_proc_xfer_memory): New function.
1206 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1207
1208 2002-11-25 David Carlton <carlton@math.stanford.edu>
1209
1210 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1211 pdi's with no name.
1212
1213 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1214
1215 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1216 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1217
1218 2002-11-25 Jim Blandy <jimb@redhat.com>
1219
1220 * symfile.c (init_objfile_sect_indices): New function.
1221 (default_symfile_offsets): Move the section-index-initializing
1222 stuff into init_objfile_sect_indices, and call that.
1223
1224 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1225 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1226
1227 * symfile.c (syms_from_objfile): Adjust indentation.
1228
1229 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1230 || info_verbose isn't true.
1231
1232 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1233
1234 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1235 default to get_frame_base.
1236 * gdbarch.h, gdbarch.c: Regenerate.
1237 * arch-utils.c (default_frame_address): Delete function.
1238 * arch-utils.h (default_frame_address): Delete declaration
1239
1240 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1241
1242 * varobj.c (find_frame_addr_in_frame_chain):
1243 Use get_frame_base instead of FRAME_FP,
1244 obvious fix.
1245
1246 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1247
1248 * frame.h (FRAME_FP): Delete macro.
1249 (get_frame_base): New function declaration.
1250 * frame.c (get_frame_base): New function.
1251 (get_frame_id): Use ->frame.
1252 (frame_find_by_id): Rewrite to use get_frame_id.
1253 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1254 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1255 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1256 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1257 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1258 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1259 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1260
1261 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1262
1263 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1264
1265 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1266
1267 * frame.c (set_unwind_by_pc): Revert change below, use
1268 PC_IN_CALL_DUMMY.
1269 (get_prev_frame): Ditto.
1270
1271 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1272
1273 * dummy-frame.c (pc_in_dummy_frame): New function.
1274 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1275 (find_dummy_frame): Update comment.
1276 (generic_pop_current_frame): Use get_frame_type.
1277 * dummy-frame.h (pc_in_dummy_frame): Declare.
1278 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1279 (create_new_frame): Use pc_in_dummy_frame.
1280 (get_prev_frame): Use pc_in_dummy_frame.
1281 (frame_saved_regs_register_unwind): Use get_prev_frame.
1282 (deprecated_generic_get_saved_register): Use get_prev_frame.
1283
1284 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1285
1286 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1287 from here ...
1288 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1289 (varobj_create): Note that frame ID should be used.
1290 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1291
1292 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1293
1294 * breakpoint.c: Include "gdb_assert.h".
1295 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1296 not being used.
1297 * Makefile.in (breakpoint.o): Update dependencies.
1298 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1299 deprecated_frame_in_dummy.
1300 * stack.c (print_frame_info_base): Ditto.
1301 (frame_info): Ditto.
1302 (print_frame_info_base): Ditto. Delete dead code.
1303
1304 2002-11-23 Andreas Schwab <schwab@suse.de>
1305
1306 * Makefile.in (m68k_tdep_h): Define.
1307 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1308 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1309 * m68k-tdep.c: Move register number enum ...
1310 * m68k-tdep.h: ... to this new file and rename the constants from
1311 E_* to M68K_*. All uses changed.
1312 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1313 * abug-rom.c: Include "m68k-tdep.h". Use
1314 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1315 * cpu32bug-rom.c: Likewise.
1316 * dbug-rom.c: Likewise.
1317 * m68k-tdep.c: Likewise.
1318 * m68klinux-nat.c: Likewise.
1319 * remote-est.c: Likewise.
1320 * rom68k-rom.c: Likewise.
1321 * config/m68k/tm-linux.h: Likewise.
1322
1323 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1324
1325 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1326 dummy frame initialization code.
1327 * mips-tdep.c (mips_gdbarch_init): Ditto.
1328
1329 2002-11-22 Christopher Faylor <cgf@redhat.com>
1330
1331 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1332 attach will hang.
1333
1334 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1335
1336 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1337 to default_frame_address.
1338 * gdbarch.h, gdbarch.c: Re-generate.
1339
1340 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1341 or frame_locals_address to default_frame_address.
1342 * m68k-tdep.c (m68k_gdbarch_init): Update.
1343 * i386-tdep.c (i386_gdbarch_init): Update.
1344 * frv-tdep.c (frv_gdbarch_init): Update.
1345 * sh-tdep.c (sh_gdbarch_init): Update.
1346 * v850-tdep.c (v850_gdbarch_init): Update.
1347 * sparc-tdep.c (sparc_gdbarch_init): Update.
1348 * mips-tdep.c (mips_gdbarch_init): Update.
1349 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1350 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1352
1353 * cris-tdep.c (cris_frame_args_address): Delete function.
1354 (cris_frame_locals_address): Delete function.
1355 (cris_gdbarch_init): Do not set frame_args_address or
1356 frame_locals_address.
1357
1358 2002-11-22 Michael Snyder <msnyder@redhat.com>
1359
1360 * thread-db.c (thread_db_load): Tell the user what's going on
1361 if dlopen fails on libthread_db.
1362
1363 2002-11-23 Andreas Schwab <schwab@suse.de>
1364
1365 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1366 invariant return values.
1367
1368 2002-11-22 Andreas Schwab <schwab@suse.de>
1369
1370 * valops.c (value_slice): Move declaration of `offset' to avoid
1371 warning.
1372
1373 2002-11-22 Christopher Faylor <cgf@redhat.com>
1374
1375 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1376 (struct so_stuff): Add end_addr field.
1377 (register_loaded_dll): Calculate and store end address of loaded dll.
1378 (solib_address): New function.
1379 (child_solib_loaded_library_pathname): Pass carefully constructed
1380 section info to safe_symbol_file_add rather than ignoring it.
1381 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1382 DLL is loaded.
1383 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1384 (child_create_inferior): Fix a compiler warning.
1385 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1386 (solib_address): Declare new function.
1387
1388 2002-11-22 Andreas Schwab <schwab@suse.de>
1389
1390 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1391 and FPS registers.
1392
1393 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1394
1395 * maint.c (_initialize_maint_cmds): Fix typo. From
1396 Francesco Potorti` <pot@gnu.org>.
1397
1398 2002-11-21 Andrew Cagney <cagney@redhat.com>
1399
1400 * mips-tdep.c (mips_dump_tdep): Delete references to
1401 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1402 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1403 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1404 * printcmd.c (build_address_symbolic): Delete calls to
1405 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1406 (address_info): Ditto.
1407 Fix PR gdb/773.
1408
1409 2002-11-19 Klee Dienes <kdienes@apple.com>
1410 Adam Fedor <fedor@gnu.org>
1411
1412 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1413 the ability to explicitly specify the quote characters and word
1414 break characters; if NULL is specified for either, use the old
1415 behavior of using the characters used by the completer.
1416 (skip_chars): New function. Convenience wrapper around
1417 skip_quoted_chars to provide the original skip_chars behavior.
1418 * completer.h (skip_quoted_chars): Add prototype.
1419
1420 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1421
1422 Problems reported by Paul Eggert.
1423 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1424
1425 2002-11-19 Andreas Schwab <schwab@suse.de>
1426
1427 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1428 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1429 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1430 (m68k_linux_frame_saved_pc): Move to ...
1431 * m68klinux-tdep.c: ... here. New file.
1432 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1433 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1434
1435 2002-11-19 Adam Fedor <fedor@gnu.org>
1436
1437 * objc-exp.y: Revert to old skip_quoted usage.
1438
1439 2002-11-19 Adam Fedor <fedor@gnu.org>
1440
1441 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1442 (objc_lang_h): Define.
1443 (YYFILES): Add objc-exp.tab.c.
1444 (local-maintainer-clean): Remove objc-exp.tab.c.
1445 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1446
1447 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1448
1449 * p-exp.y (typecast rule): Add automatic dereference of
1450 pascal classes if needed.
1451 (THIS): Set current_type.
1452 Automatically dereference pascal classes.
1453 (typebase rule): Add ^typebase recognition.
1454
1455 2002-11-18 Adam Fedor <fedor@gnu.org>
1456
1457 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1458 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1459 (op_name): Handle OP_OBJC_SELF.
1460 * Makefile.in (expprint.o): Add additional depends.
1461
1462 2002-11-18 Adam Fedor <fedor@gnu.org>
1463
1464 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1465 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1466 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1467 * objc-exp.y: Likewise.
1468
1469 2002-11-18 Adam Fedor <fedor@gnu.org>
1470
1471 * gdb/parser-defs.h: (struct objc_class_str): New structure
1472 for parsing ObjC classes.
1473
1474 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1475
1476 * stack.c (frame_relative_level): Copy function from here ...
1477 * frame.c (frame_relative_level): ...to here.
1478
1479 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1480
1481 * frame.h (enum frame_type): Define.
1482 (get_frame_type): Declare.
1483 (struct frame_info): Add field `type'. Delete field
1484 signal_handler_caller.
1485 (deprecated_set_frame_signal_handler_caller): Declare.
1486 * frame.c (get_frame_type): New function.
1487 (deprecated_set_frame_type): New function.
1488 (create_new_frame): Set the frame's type.
1489 (get_prev_frame): Similar.
1490 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1491 * s390-tdep.c: Ditto.
1492 * m68klinux-nat.c: Ditto.
1493 * ns32k-tdep.c: Ditto.
1494 * x86-64-linux-tdep.c: Ditto.
1495 * vax-tdep.c: Ditto.
1496 * rs6000-tdep.c: Ditto.
1497 * ppc-linux-tdep.c: Ditto.
1498 * i386-interix-tdep.c: Ditto.
1499 * mips-tdep.c: Ditto.
1500 * m68k-tdep.c: Ditto.
1501 * hppa-tdep.c: Ditto.
1502 * ia64-tdep.c: Ditto.
1503 * cris-tdep.c: Ditto.
1504 * arm-tdep.c: Ditto.
1505 * alpha-tdep.c: Ditto.
1506 * i386-tdep.c: Ditto.
1507 * stack.c: Ditto.
1508 * ada-lang.c: Ditto.
1509 * blockframe.c: Update.
1510 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1511 deprecated_set_frame_type instead of signal_handler_caller.
1512 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1513 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1514 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1515
1516 2002-11-18 Klee Dienes <kdienes@apple.com>
1517
1518 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1519
1520 2002-11-18 Klee Dienes <kdienes@apple.com>
1521
1522 * buildsym.c (pop_context): Add comment.
1523
1524 2002-11-18 Klee Dienes <kdienes@apple.com>
1525
1526 * buildsym.h (pop_context): Convert to function, defined in
1527 buildsym.c.
1528 * buildsym.c: Include gdb_assert.h.
1529 (pop_context): Implement as C function. Add check for stack
1530 underflow.
1531 * dbxread.c (process_one_symbol): Complain and stop processing
1532 that symbol if we are already at the top of the context stack for
1533 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1534 when processing N_RBRAC.
1535
1536 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1537
1538 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1539 define.
1540 (struct target_waitstatus): Add opaque definition.
1541 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1542 * exec.c (init_exec_ops): Likewise.
1543 * fork-child.c (clone_and_follow_inferior): Remove.
1544 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1545 * inferior.h (clone_and_follow_inferior): Remove prototype.
1546 * infrun.c (follow_fork_mode_both): Remove.
1547 (follow_fork_mode_kind_names): Remove commented out "both".
1548 (follow_inferior_fork): Remove follow_fork_mode_both support.
1549 * inftarg.c (child_clone_and_follow_inferior): Remove.
1550 (child_post_follow_inferior_by_clone): Remove.
1551 (init_child_ops): Don't set to_clone_and_follow_inferior
1552 or to_post_follow_inferior_by_clone.
1553 * target.c (default_clone_and_follow_inferior): Remove.
1554 (cleanup_target): Don't set to_clone_and_follow_inferior
1555 or to_post_follow_inferior_by_clone.
1556 (find_default_clone_and_follow_inferior): Remove.
1557 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1558 (debug_to_clone_and_follow_inferior): Remove.
1559 (debug_to_post_follow_inferior_by_clone): Remove.
1560 (setup_target_debug): Don't set to_clone_and_follow_inferior
1561 or to_post_follow_inferior_by_clone.
1562 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1563 and to_post_follow_inferior_by_clone.
1564 (child_clone_and_follow_inferior): Remove prototype.
1565 (child_post_follow_inferior_by_clone): Remove prototype.
1566 (target_clone_and_follow_inferior): Remove macro.
1567 (target_post_follow_inferior_by_clone): Remove macro.
1568 (find_default_clone_and_follow_inferior): Remove prototype.
1569
1570 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1573 inferior_has_vforked, and inferior_has_execd instead of
1574 target_has_forked, target_has_vforked, and target_has_execd.
1575 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1576 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1577 (CHILD_WAIT): Define.
1578 (child_wait): Add prototype.
1579 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1580 Add prototype.
1581 (hpux_has_vforked): Likewise, from child_has_vforked.
1582 (hpux_has_execd): Likewise, from child_has_execd.
1583 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1584 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1585 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1586 and hpux_has_syscall_event instead of the target hooks.
1587 * infrun.c (inferior_has_forked, inferior_has_vforked)
1588 (inferior_has_execd): New functions.
1589 * inftarg.c (not_same_real_pid): Remove.
1590 (child_wait): Remove references to not_same_real_pid,
1591 target_has_forked, target_has_vforked, target_has_execd,
1592 and target_has_syscall_event.
1593 (child_has_forked, child_has_vforked, child_has_execd)
1594 (child_has_syscall_event): Remove.
1595 (init_child_ops): Remove references to child_has_forked,
1596 child_has_vforked, child_has_execd, and child_has_syscall_event.
1597 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1598 (hpux_has_vforked): Likewise, from child_has_vforked.
1599 (hpux_has_execd): Likewise, from child_has_execd.
1600 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1601 * target.c (cleanup_target): Remove references to
1602 to_has_forked, to_has_vforked, to_has_execd, and
1603 to_has_syscall_event.
1604 (update_current_target): Likewise.
1605 (setup_target_debug): Likewise.
1606 (debug_to_has_forked): Remove.
1607 (debug_to_has_vforked): Remove.
1608 (debug_to_has_execd): Remove.
1609 (debug_to_has_syscall_event): Remove.
1610 * target.h (struct target_ops): Remove to_has_forked.
1611 to_has_vforked, to_has_execd, and to_has_syscall_event.
1612 (child_has_forked, child_has_vforked, child_has_execd)
1613 (child_has_syscall_event): Remove prototypes.
1614 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1615 prototypes.
1616 (target_has_forked, target_has_vforked, target_has_execd)
1617 (target_has_syscall_event): Remove macros.
1618
1619 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1620
1621 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1622 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1623 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1624 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1625 * target.c (cleanup_target): Remove reference to
1626 to_can_follow_vfork_prior_to_exec.
1627 (update_current_target): Likewise.
1628 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1629 (setup_target_debug): Remove reference to
1630 to_can_follow_vfork_prior_to_exec.
1631 * target.h (struct target_ops): Remove
1632 to_can_follow_vfork_prior_to_exec.
1633 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1634 (target_can_follow_vfork_prior_to_exec): Remove definition.
1635 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1636 define.
1637 * infrun.c (follow_vfork_when_exec): Remove.
1638 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1639 (follow_exec): Likewise.
1640 (handle_inferior_event): Likewise.
1641 (keep_going): Likewise.
1642
1643 2002-11-15 Andrew Cagney <cagney@redhat.com>
1644
1645 * frame.c (generic_unwind_get_saved_register): Make static.
1646 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1647 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1648 defaults to generic_unwind_get_saved_register.
1649 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1650 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1651 * frv-tdep.c (frv_gdbarch_init): Ditto.
1652 * i386-tdep.c (i386_gdbarch_init): Ditto.
1653 * s390-tdep.c (s390_gdbarch_init): Ditto.
1654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1655 * v850-tdep.c (v850_gdbarch_init): Ditto.
1656 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1657 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1658 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1659
1660 2002-11-15 Andrew Cagney <cagney@redhat.com>
1661
1662 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1663 i386-tdep.c.
1664
1665 2002-11-15 Andrew Cagney <cagney@redhat.com>
1666
1667 * frame.h (sigtramp_saved_pc): Delete declaration.
1668 * blockframe.c (sigtramp_saved_pc): Delete function.
1669 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1670 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1671 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1672 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1673
1674 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1675
1676 * frame.c (frame_pc_unwind): New function.
1677 (frame_saved_regs_pc_unwind): New function.
1678 (frame_register_unwind): Pass unwind_cache instead of
1679 register_unwind_cache.
1680 (set_unwind_by_pc): Add unwind_pc parameter, set.
1681 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1682 (get_prev_frame): Ditto.
1683 * frame.h (frame_pc_unwind_ftype): Declare.
1684 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1685 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1686 (frame_pc_unwind): Declare.
1687 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1688 (struct dummy_frame): Add comment mentioning that values are for
1689 previous frame.
1690 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1691 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1692 (generic_file_frame_chain_valid): Ditto.
1693 * stack.c (frame_info): Ditto.
1694
1695 2002-11-15 David Carlton <carlton@math.stanford.edu>
1696
1697 * linespec.c (locate_first_half): New function.
1698 (decode_line_1): Move code into locate_first_half.
1699
1700 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1701
1702 * complaints.h: Add comment explaining how to eliminate a
1703 deprecated_complain call.
1704 * complaints.h: Fix spelling errors.
1705
1706 2002-11-15 David Carlton <carlton@math.stanford.edu>
1707
1708 * printcmd.c: Remove #include "disasm.h".
1709
1710 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1711
1712 * frame.h: Move the most relevant interface functions to the start
1713 of the file.
1714
1715 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1716
1717 * regcache.h (deprecated_registers): Rename registers.
1718 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1719 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1720 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1721 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1722 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1723 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1724 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1725 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1726 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1727 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1728 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1729 * v850ice.c: Update.
1730
1731 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1732
1733 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1734 NULL buffer.
1735
1736 2002-11-13 Andrew Cagney <cagney@redhat.com>
1737
1738 * regcache.h (deprecated_read_register_bytes): Rename
1739 read_register_bytes.
1740 (deprecated_write_register_bytes): Rename write_register_bytes.
1741 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1742 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1743 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1744 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1745 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1746 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1747 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1748 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1749 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1750 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1751 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1752 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1753 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1754 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1755
1756 2002-11-13 Jim Blandy <jimb@redhat.com>
1757
1758 * findvar.c (read_var_value): Doc fix.
1759
1760 2002-11-13 Andrew Cagney <cagney@redhat.com>
1761
1762 * regcache.c (struct regcache): Replace passthough_p with
1763 readonly_p.
1764 (regcache_xmalloc): Initialize readonly_p.
1765 (build_regcache): Initialize readonly_p.
1766 (regcache_save): New function.
1767 (regcache_restore): New function.
1768 (regcache_cpy): Re-implement using regcache_save and
1769 regcache_restore.
1770 (regcache_raw_read): Update.
1771 (regcache_cooked_read): When a read-only cache, checked for cached
1772 pseudo register values.
1773 (regcache_raw_write): Assert that the cache is not read-only.
1774 Remove code handling a non-passthrough cache.
1775 * regcache.h (regcache_save): Declare.
1776 (regcache_restore): Declare.
1777
1778 2002-11-13 Andrew Cagney <cagney@redhat.com>
1779
1780 * regcache.c (struct regcache_descr): Add fields
1781 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1782 (init_legacy_regcache_descr): Compute the size of a cooked
1783 register cache and then assign that to sizeof_raw_registers. Set
1784 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1785 (init_legacy_regcache_descr): Ditto.
1786
1787 2002-11-13 Andrew Cagney <cagney@redhat.com>
1788
1789 * regcache.c (register_buffer): Move to near start of file, update
1790 description.
1791 (regcache_raw_read): Use.
1792 (regcache_raw_write): Use.
1793 (struct regcache): Rename raw_registers to registers and
1794 raw_register_valid_p to register_valid_p.
1795 (regcache_xmalloc): Update.
1796 (regcache_xfree): Update.
1797 (register_buffer): Update.
1798 (regcache_cpy): Update.
1799 (regcache_cpy_no_passthrough): Update.
1800 (regcache_valid_p): Update.
1801 (deprecated_grub_regcache_for_registers): Update.
1802 (deprecated_grub_regcache_for_register_valid): Update.
1803 (set_register_cached): Update.
1804 (regcache_raw_write): Update.
1805
1806 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1807
1808 * p-exp.y (name_not_typename): Use copy_name to
1809 set current_type variable for fields of THIS.
1810
1811 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1814 * monitor.c (init_base_monitor_ops): Likewise.
1815 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1816 * remote-array.c (init_array_ops): Likewise.
1817 * remote-e7000.c (init_e7000_ops): Likewise.
1818 * remote-es.c (init_es1800_ops): Likewise.
1819 (init_es1800_child_ops): Likewise.
1820 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1821 * remote-sim.c (init_gdbsim_ops): Likewise.
1822 * remote-st.c (init_st2000_ops): Likewise.
1823 * sol-thread.c (init_sol_core_ops): Likewise.
1824 (init_sol_thread_ops): Likewise.
1825 * v850ice.c (init_850ice_ops): Likewise.
1826 * win32-nat.c (init_child_ops): Likewise.
1827 * wince.c (init_child_ops): Likewise.
1828
1829 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1830
1831 * utils.c (gdb_realpath): Make rp a constant pointer.
1832
1833 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1834
1835 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1836 a constant buffer; cannonicalize_file_name(); realpath() with a
1837 pathconf() defined buffer, xstrdup().
1838
1839 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1840
1841 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1842 to hang2.C; hang3.c to hang3.C.
1843
1844 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1845
1846 * findvar.c (read_var_value): Reenable TLS code.
1847
1848 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1849 Jim Blandy <jimb@redhat.com>
1850
1851 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1852 * target.c (update_current_target): Add
1853 to_get_thread_local_address.
1854 * target.h (to_get_thread_local_address): Export.
1855 (target_get_thread_local_address): Define.
1856 (target_get_thread_local_address_p): Define.
1857 * thread-db.c: Include solib-svr4.h.
1858 (td_thr_tls_get_addr_p): Define.
1859 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1860 (thread_db_get_thread_local_address): New function.
1861 (init_thread_db_ops): Initialize to_get_thread_local_address.
1862 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1863 * configure: Regenerate.
1864 * config.in: Regenerate.
1865
1866 2002-11-11 David Carlton <carlton@math.stanford.edu>
1867
1868 * linespec.c (set_flags): New function.
1869 (decode_line_1): Move code into set_flags.
1870
1871 2002-11-11 David Carlton <carlton@math.stanford.edu>
1872
1873 * linespec.c (decode_line_1): Move chunks of code to separate
1874 functions.
1875 (initialize_defaults): New function.
1876 (decode_indirect): New function.
1877
1878 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1879
1880 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1881 instead of void_code_ptr.
1882 (sigtramp_saved_pc): Ditto.
1883
1884 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1885 i386_fp_regnum_p.
1886
1887 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1888
1889 * gdbtypes.h (struct main_type): Move artificial flag out of
1890 loc. New member of ``struct field'' named static_kind. Reduce
1891 overloaded meaning of bitsize.
1892 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1893 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1894 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1895
1896 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1897 new fields.
1898 (template_to_fixed_record_type, template_to_static_fixed_type)
1899 (to_record_with_fixed_variant_part): Likewise.
1900 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1901 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1902 * dwarfread.c (struct_type, enum_type): Likewise.
1903 * hpread.c (hpread_read_enum_type)
1904 (hpread_read_function_type, hpread_read_doc_function_type)
1905 (hpread_read_struct_type): Likewise.
1906 * mdebugread.c (parse_symbol): Likewise.
1907
1908 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1909
1910 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1911 * stack.c (print_frame_info_base): Update.
1912 (print_frame_info_base, frame_info): Update.
1913 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1914 (sparc_frame_saved_pc): Update.
1915 * ada-lang.c (find_printable_frame): Update.
1916 * breakpoint.c (deprecated_frame_in_dummy): Update.
1917
1918 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1919
1920 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1921 defined.
1922 (regmap): Extend to cover all registers.
1923 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1924 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1925 definitions.
1926 (fetch_register, sore_register): Simplify.
1927 (old_fetch_inferior_registers, old_store_inferior_registers):
1928 Remove functions.
1929 (cannot_fetch_register, cannot_store_register): Change
1930 implementation to use regmap array to decide which registers
1931 cannot be fetched/stored. This removes $orig_eax from the
1932 registers that cannot be fetched/stored.
1933 (fetch_inferior_registers): Call fetch_register directly instead
1934 of calling old_fetch_inferior_registers.
1935 (store_inferior_registers): Call store_register directly instead
1936 of calling old_store_inferior_registers.
1937 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1938 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1939 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1940
1941 2002-11-09 Klee Dienes <kdienes@apple.com>
1942
1943 * i387-tdep.c (i387_supply_register): When called with NULL as a
1944 buffer, mark the register as not provided (to mirror the behavior
1945 of supply_register).
1946 (i387_supply_fxsave): Ditto.
1947 (i387_supply_fsave): Ditto (inherits the behavior from
1948 i387_supply_register).
1949
1950 2002-11-09 Klee Dienes <kdienes@apple.com>
1951
1952 * blockframe.c (sigtramp_saved_pc): Use
1953 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1954 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1955 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1956
1957 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1958
1959 * frame.c (get_prev_frame): Test prev_p to identify a previously
1960 unwound frame. Initialize prev_p.
1961 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1962 comment.
1963
1964 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1965
1966 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1967 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1968 more comments. Zap dead code.
1969
1970 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1971
1972 * infcmd.c (print_vector_info, print_float_info): Move code that
1973 checks whether the target has any registers and whether there is a
1974 selected frame up, such that it is also used if a target provides
1975 multi-arch definitions of these functions.
1976
1977 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1978
1979 * Makefile.in (DESTDIR): Define.
1980 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1981 prefix.
1982
1983 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1984 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1985
1986 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1987
1988 * i386-linux-tdep.c: Include "reggroups.h".
1989 (i386_linux_register_reggroup_p): New function.
1990 (i386_linux_init_abi): Set register_reggroup_p to
1991 i386_linux_register_reggroup_p.
1992 * i386-tdep.h (i386_register_reggroup_p): Declare.
1993 * i386-tdep.c: Include "reggroups.h".
1994 (i386_init_reggroups): New function.
1995 (i386_add_reggroups): New function.
1996 (i386_register_reggroup_p): New function.
1997 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1998 (_initialize_i386_tdep): Call i386_init_reggroups.
1999 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2000 specific reggroups.
2001
2002 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2003
2004 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2005 request that's available in *BSD.
2006
2007 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2008
2009 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2010 FDOFF_REGNUM.
2011
2012 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2013
2014 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2015 * dummy-frame.c (find_dummy_frame): Rename
2016 generic_find_dummy_frame, make static. Return the dummy frame
2017 instead of the regcache.
2018 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2019 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2020 (dummy_frame_register_unwind): Rename
2021 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2022 * dummy-frame.h (dummy_frame_register_unwind): Rename
2023 generic_call_dummy_register_unwind.
2024
2025 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2026
2027 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2028 except the inclusion of "i386/tm-i386.h", to...
2029 * config/i386/nm-i386v42mp.h: ...here.
2030 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2031
2032 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2033
2034 * Makefile.in (frame.o): Update dependencies.
2035 * blockframe.c (current_frame, frame_obstack_alloc)
2036 (frame_saved_regs_zalloc, get_current_frame)
2037 (set_current_frame, create_new_frame)
2038 (set_unwind_by_pc, get_next_frame)
2039 (flush_cached_frames, reinit_frame_cache)
2040 (frame_saved_regs_register_unwind)
2041 (deprecated_generic_get_saved_register)
2042 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2043 (_initialize_blockframe): Move frame code from here...
2044 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2045 "annotate.h" and "dummy-frame.h".
2046 (_initialize_frame): New function.
2047
2048 2002-11-08 Jim Blandy <jimb@redhat.com>
2049
2050 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2051 when we finish a function a context.
2052 * buildsym.h (outermost_context_p): New macro.
2053 (Bug analyzed by David Edelsohn.)
2054
2055 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2056
2057 * blockframe.c: Include "dummy-frame.h".
2058 (struct dummy_frame, dummy_frame_stack)
2059 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2060 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2061 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2062 (generic_save_call_dummy_addr, generic_pop_current_frame)
2063 (generic_pop_dummy_frame, generic_fix_call_dummy)
2064 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2065 dummy frame code from here...
2066 * dummy-frame.c: ...to here. New file.
2067 * dummy-frame.h: New file.
2068 (generic_call_dummy_register_unwind): Declare.
2069 (generic_find_dummy_frame): Declare.
2070 * Makefile.in (SFILES): Add dummy-frame.c.
2071 (dummy-frame.o): Specify dependencies.
2072 (dummy_frame_h): Define.
2073 (COMMON_OBS): Add dummy-frame.o.
2074 (blockframe.o): Update dependencies.
2075
2076 2002-11-08 Jim Blandy <jimb@redhat.com>
2077
2078 * dwarf2read.c (read_func_scope): Restore local_symbols and
2079 param_symbols after we finish the function context. (Based on a
2080 patch from David Edelsohn.)
2081
2082 2002-11-08 David Carlton <carlton@math.stanford.edu>
2083
2084 * linespec.c (symbol_found): New function.
2085 (minsym_found): New function.
2086 (decode_line_1): Separate out some code into separate functions.
2087
2088 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2089
2090 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2091 the benefit of the interix target.
2092 * i386-tdep.h (i386_frameless_signal_p): Declare.
2093
2094 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2095
2096 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2097 declaration that snuck in from change below.
2098
2099 2002-11-06 Andrew Cagney <cagney@redhat.com>
2100
2101 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2102 all callers.
2103 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2104 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2105 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2106 (i386_mxcsr_regnum_p): new function. Use instead of
2107 MXCSR_REGNUM_P.
2108 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2109 (i386_sse_regnum_p): Declare.
2110 (i386_mxcsr_regnum_p): Declare.
2111 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2112 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2113 (IS_FP_REGNUM): Update definition.
2114 (IS_FPU_CTRL_REGNUM): Update definition..
2115 (IS_SSE_REGNUM): Update definition..
2116 * i386v-nat.c (register_u_addr): Update.
2117 * go32-nat.c (fetch_register): Update.
2118 (store_register): Update.
2119
2120 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2121
2122 Preparation work to convert the hppa targets to multiarch partial.
2123
2124 * hppa-tdep.c: Add new functions replacing macro bodies from
2125 config/pa/tm-hppa.h. These function will be used to initialize
2126 the gdbarch structure. Import some comments from tm-hppa.h,
2127 and place them where appropriate, to avoid loosing them when
2128 we cleanup this file.
2129 (hppa_reg_struct_has_addr): New function.
2130 (hppa_inner_than): New function.
2131 (hppa_stack_align): New function.
2132 (hppa_pc_requires_run_before_use): New function.
2133 (hppa_instruction_nullified): New function.
2134 (hppa_register_byte): New function.
2135 (hppa_register_virtual_type): New function.
2136 (hppa_store_struct_return): New function.
2137 (hppa_cannot_store_register): New function.
2138 (hppa_frame_args_address): New function.
2139 (hppa_frame_locals_address): New function.
2140 (hppa_smash_text_address): New function.
2141 (hppa_coerce_float_to_double): New function. Requires the inclusion
2142 of "language.h".
2143
2144 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2145
2146 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2147 gdbarch-eligible macro to a call to the new associated function
2148 created in hppa-tdep.c.
2149 (INNER_THAN): Likewise.
2150 (STACK_ALIGN): Likewise.
2151 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2152 (INSTRUCTION_NULLIFIED): Likewise.
2153 (REGISTER_BYTE): Likewise.
2154 (REGISTER_VIRTUAL_TYPE): Likewise.
2155 (STORE_STRUCT_RETURN): Likewise.
2156 (CANNOT_STORE_REGISTER): Likewise.
2157 (FRAME_ARGS_ADDRESS): Likewise.
2158 (FRAME_LOCALS_ADDRESS): Likewise.
2159 (SMASH_TEXT_ADDRESS): Likewise.
2160 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2161 (ABOUT_TO_RETURN): Delete, as no longer used.
2162
2163 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2164
2165 * printcmd.c (disassemble_command): Remove obsolete function.
2166 (_initialize_printcmd): Do not create disassemble command here.
2167 * cli/cli-cmds.c (disassemble_command): New function. Implements
2168 disassemble command.
2169 (init_cli_cmds): Create disassemble command here instead.
2170
2171 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2172
2173 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2174
2175 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2176
2177 * regcache.h (regcache_cooked_read_using_offset_hack)
2178 (regcache_cooked_write_using_offset_hack): Delete declarations.
2179 (register_changed): Delete declaration.
2180 * regcache.c (regcache_cooked_read_using_offset_hack)
2181 (regcache_cooked_write_using_offset_hack): Delete functions.
2182 (cooked_xfer_using_offset_hack): Delete function.
2183 (register_changed): Delete function.
2184
2185 2002-11-07 Jim Blandy <jimb@redhat.com>
2186
2187 * macroscope.c: #include "complaints.h".
2188 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2189 but not in the macro table.
2190 * Makefile.in (macroscope.o): Record dependency.
2191
2192 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2193
2194 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2195
2196 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2197
2198 * regcache.c (deprecated_registers_fetched): Update.
2199 * regcache.h (deprecated_registers_fetched): Rename
2200 registers_fetched.
2201 * remote-vxsparc.c (vx_read_register): Update.
2202 * remote-vxmips.c (vx_read_register): Update.
2203 * remote-vx68.c (vx_read_register): Update.
2204 * irix5-nat.c (fetch_core_registers): Update.
2205 * mipsm3-nat.c (fetch_inferior_registers): Update.
2206 * sun3-nat.c (fetch_inferior_registers): Update.
2207 * symm-nat.c (fetch_inferior_registers): Update.
2208 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2209 (fetch_core_registers): Update.
2210 (fetch_kcore_registers): Update.
2211 * mips-nat.c (fetch_inferior_registers): Update.
2212 * corelow.c (get_core_registers): Update.
2213 * a68v-nat.c (fetch_inferior_registers): Update.
2214
2215 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2216
2217 Put in place the framework necessary for multiarching the hppa targets.
2218 * hppa-tdep.c (hppa_gdbarch_init): New function.
2219 (hppa_dump_tdep): New function.
2220 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2221 tdep structure dumper.
2222 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2223 until the multi-arching conversion has partially been completed.
2224
2225 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2226
2227 * valops.c (value_assign): Merge lval_register case into
2228 lval_reg_frame_relative. Use frame_register and
2229 regcache_cooked_write instead of get_saved_register and
2230 write_register_bytes. After flushing the register cache, try to
2231 re-select the selected frame.
2232
2233 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2234
2235 * regcache.h (deprecated_register_valid): Rename register_valid.
2236 * regcache.c: Update.
2237 * ia64-aix-nat.c: Update.
2238 * i386gnu-nat.c: Update.
2239 * alpha-nat.c: Update.
2240 * sparc-nat.c: Update.
2241 * lynx-nat.c: Update.
2242 * remote-mips.c: Update.
2243
2244 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2245
2246 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2247 to end of file, to be more consistent with the pratice followed
2248 by other targets.
2249
2250 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2251
2252 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2253 (print_float_info): Print registers in float_reggroup.
2254 (print_vector_info): Print registers in vector_reggroup.
2255 (default_print_registers_info): When all, print registers in
2256 all_reggroup. Otherwize, print registers in general_reggroup.
2257 (registers_info): Rewrite. Add support for register groups.
2258 Eliminate a goto.
2259
2260 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2261
2262 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2263 ages.
2264 (symtab_symbol_info): Remove eons old ifdeffed out code.
2265 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2266 command.
2267
2268 2002-11-06 Theodore A. Roth <troth@openavr.org>
2269
2270 * c-exp.y: Add missing semi-colons.
2271 * f-exp.y: Add missing semi-colons.
2272 * m2-exp.y: Add missing semi-colons.
2273 * p-exp.y: Add missing semi-colons.
2274 Add empty action to start rule to avoid a type clash error when
2275 building with bison >= 1.50.
2276
2277 2002-11-06 Jim Blandy <jimb@redhat.com>
2278
2279 * macrotab.h (struct macro_source_file): Doc fix.
2280
2281 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2282
2283 * varobj.c (child_exists, cplus_number_of_children): Change
2284 STREQ macro references to strcmp.
2285 (cplus_name_of_child): Change code to handle the fact that
2286 fields are not necessarily contiguous with regards to their
2287 access control. This is a fix for PR gdb/792.
2288
2289 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2290
2291 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2292 * gdbarch.h, gdbarch.c: Regnerate.
2293 * frame.h (frame_register): Declare.
2294 * frame.c (frame_register): New function.
2295 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2296 GET_SAVED_REGISTER, otherwize call
2297 generic_unwind_get_saved_register.
2298 (frame_register_read): Use frame_register instead of
2299 get_saved_register.
2300
2301 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2302
2303 From Jim Ingham <jingham@apple.com>:
2304 * event-top.c (gdb_disable_readline): New function.
2305 (_initialize_event_loop): Move comment.
2306
2307 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2308
2309 * event-loop.c (start_event_loop): Add comment.
2310 Update copyright.
2311
2312 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2313
2314 * infcmd.c (default_print_registers_info): Do not call
2315 PRINT_REGISTER_HOOK.
2316
2317 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2318
2319 * sparc-tdep.c (sparc_print_register_hook): Make static.
2320 (sparc_print_registers_info): New function.
2321 (sparc_do_registers_info): New function.
2322 (sparclet_print_registers_info): New function.
2323 (sparclet_do_registers_info): New function.
2324 (do_sparc_print_registers_info): New function.
2325 (sparc_print_registers): New static function, clone of infcmd.c's
2326 default_print_registers_info.
2327 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2328 (sparclet_do_registers_info): Declare.
2329 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2330 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2331 Re-define.
2332 (sparc_do_registers_info): Declare.
2333 (PRINT_REGISTER_HOOK): Delete macro.
2334 (sparc_print_register_hook): Delete declaration.
2335
2336 2002-11-05 David Carlton <carlton@math.stanford.edu>
2337
2338 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2339 functions.
2340 (lookup_symbol_aux_local): New function.
2341 (lookup_symbol_aux_symtabs): New function.
2342 (lookup_symbol_aux_psymtabs): New function.
2343
2344 2002-11-05 David Carlton <carlton@math.stanford.edu>
2345
2346 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2347 previous values of 'objfile' and 'block'.
2348
2349 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2350
2351 * values.c (value_change_enclosing_type): Set
2352 enclosing_type field correctly also for the case where
2353 more memory needs to be allocated.
2354
2355 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2356
2357 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2358 of puts_filtered.
2359
2360 * i387-tdep.c (i387_print_float_info): Replace calls to
2361 register_read and deprecated_read_register_gen with calls to
2362 frame_register_read, and make the necessary adjustments to the
2363 surrounding code.
2364
2365 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2366
2367 * gdbarch.sh (register_reggroup_p): Allow default value.
2368 * gdbarch.h, gdbarch.c: Regenerate.
2369
2370 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2371
2372 * regcache.h: Add coment indicating replacements for deprecated
2373 functions.
2374
2375 2002-11-02 Andrew Cagney <cagney@redhat.com>
2376
2377 * reggroups.h, reggroups.c: New files.
2378 * regcache.c: Include "reggroups.h".
2379 (enum regcache_dump_what): Add `regcache_dump_groups'.
2380 (regcache_dump): Contract size of the "Type" column. When
2381 specified, dump the register's groups.
2382 (maintenance_print_register_groups): New function.
2383 (_initialize_regcache): Add command `maint print register-groups'.
2384 * Makefile.in (COMMON_OBS): Add reggroups.o
2385 (SFILES): Add reggroups.c.
2386 (reggroups_h): Define.
2387 (regcache.o, gdbarch.o): Update dependencies.
2388 (reggroups.o): Specify dependencies.
2389 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2390 Add opaque declaration for `struct reggroup' in generated .h file.
2391 Include "reggroups.h" in generated .c file.
2392 gdbarch.h, gdbarch.c: Re-generate.
2393
2394 2002-11-02 Andrew Cagney <cagney@redhat.com>
2395
2396 * regcache.h (deprecated_read_register_gen): Rename
2397 read_register_gen.
2398 (deprecated_write_register_gen): Rename write_register_gen.
2399 * i387-tdep.c: Update.
2400 * x86-64-linux-nat.c: Update
2401 * wince.c: Update.
2402 * thread-db.c: Update.
2403 * win32-nat.c: Update.
2404 * mips-tdep.c: Update.
2405 * d10v-tdep.c: Update.
2406 * cris-tdep.c: Update.
2407 * remote-sim.c: Update.
2408 * remote-rdi.c: Update.
2409 * remote-rdp.c: Update.
2410 * frame.c: Update.
2411 * target.c: Update.
2412 * blockframe.c: Update.
2413 * x86-64-tdep.c: Update.
2414 * xstormy16-tdep.c: Update.
2415 * sh-tdep.c: Update.
2416 * s390-tdep.c: Update.
2417 * rs6000-tdep.c: Update.
2418 * sparc-tdep.c: Update.
2419 * i386-tdep.c: Update.
2420 * dwarf2cfi.c: Update.
2421 * regcache.c: Update.
2422
2423 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2424
2425 New interix-specific files:
2426 * config/i386/nm-interix.h: New file.
2427 * config/i386/interix.mh: New file.
2428 * config/i386/interix.mt: New file.
2429 * i386-interix-nat.c: New file.
2430 * i386-interix-tdep.c: New file.
2431
2432 2002-11-01 Andrew Cagney <cagney@redhat.com>
2433
2434 * frame.h (deprecated_generic_get_saved_register): Rename
2435 generic_get_saved_register.
2436 * blockframe.c (deprecated_generic_get_saved_register): Update.
2437 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2438 (xstormy16_frame_saved_register): Update.
2439 * sh-tdep.c (sh_gdbarch_init): Update.
2440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2441 * ia64-tdep.c (ia64_get_saved_register): Update.
2442 * cris-tdep.c (cris_gdbarch_init): Update.
2443 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2444 * arm-tdep.c (arm_gdbarch_init): Update.
2445
2446 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2447
2448 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2449
2450 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2451
2452 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2453 trampolines in sigaction.
2454
2455 2002-10-31 Andrew Cagney <cagney@redhat.com>
2456
2457 * h8300-tdep.c: Include "gdb_assert.h".
2458 (h8300_print_register): Add gdbarch, file and frame parameters.
2459 Use frame_read_unsigned_register to read the register's value.
2460 Use fprintf_filtered to display output.
2461 (h8300_print_registers_info): Replace h8300_do_registers_info.
2462 (h8300_gdbarch_init): Set print_registers_info.
2463
2464 2002-10-31 Andrew Cagney <cagney@redhat.com>
2465
2466 * frame.c (frame_read_unsigned_register): New function.
2467 (frame_read_signed_register): New function.
2468 * frame.h (frame_read_unsigned_register): Declare.
2469 (frame_read_signed_register): Declare.
2470
2471 2002-10-31 Andrew Cagney <cagney@redhat.com>
2472
2473 * h8500-tdep.c (h8500_print_registers_info): New static function,
2474 clone of infcmd.c's default_print_registers_info.
2475 (h8500_do_registers_info): New funtion.
2476 (h8500_print_register_hook): Rename print_register_hook, make
2477 static.
2478
2479 * config/h8500/tm-h8500.h: Update copyright.
2480 (DEPRECATED_DO_REGISTERS_INFO): Define.
2481 (h8500_do_registers_info: Declare.
2482 (PRINT_REGISTER_HOOK): Delete macro.
2483 (print_register_hook): Delete function.
2484
2485 2002-10-31 Andrew Cagney <cagney@redhat.com>
2486
2487 * z8k-tdep.c (z8k_print_register_hook): Make static.
2488 (z8k_print_registers_info): New static function, clone of
2489 infcmd.c's default_print_registers_info.
2490 (z8k_do_registers_info): New function. Wrap
2491 z8k_print_registers_info.
2492 * config/z8k/tm-z8k.h: Update copyright.
2493 (PRINT_REGISTER_HOOK): Delete macro.
2494 (z8k_print_register_hook): Delete declaration.
2495 (DEPRECATED_DO_REGISTERS_INFO): Define.
2496 (z8k_do_registers_info): Declare.
2497
2498 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2499
2500 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2501 as this is already provided by value.h, and was actually causing
2502 a compilation error because of a conflict in parameter type
2503 declaration due to a missing const keyword.
2504 (low_text_segment_addres): Fix a compilation warning.
2505
2506 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2507
2508 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2509 registers without a name.
2510 (mips_linux_cannot_store_register): Don't store registers without
2511 a name.
2512
2513 2002-10-28 David Carlton <carlton@math.stanford.edu>
2514
2515 * symtab.c (find_addr_symbol): Delete. (It was already commented
2516 out.)
2517 * symtab.h: Delete prototype for find_addr_symbol.
2518
2519 2002-10-26 Andrew Cagney <cagney@redhat.com>
2520
2521 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2522 DO_REGISTERS_INFO.
2523 gdbarch.h, gdbarch.c: Re-generate.
2524 * infcmd.c (default_print_registers_info): Update reference.
2525 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2526 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2527 * sh-tdep.c (sh_gdbarch_init): Ditto.
2528 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2529 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2530
2531 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2532
2533 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2534 cfi_init_extra_frame_info.
2535 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2536 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2537
2538 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2539 target where necessary. Add more comments and remove the ones
2540 that don't provide any useful information.
2541
2542 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2543 deprecated_read_register_dummy with
2544 frame_unwind_unsigned_register.
2545
2546 * i386-tdep.c (i386_extract_struct_value_address): Use
2547 regcache_raw_read_unsigned instead of
2548 regcache_cooked_read_unsigned since we know that the register
2549 we're reading isn't a pseudo register. Rename variable 'val' into
2550 the more descriptive 'addr'.
2551
2552 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2553 (x86_64_push_return_address): Add comment.
2554 (x86_64_pop_frame): Make static.
2555 (examine_argument): Clarify comment.
2556 (x86_64_skip_prologue): Make prolog_expact variable static.
2557
2558 * dwarf2cfi.c: Fix some formatting problems.
2559 (context_cpy, read_encoded_pointer): Clarify comments.
2560
2561 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2562 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2563 i386 target back into x86_64_gdbarch_init. Add some comments and
2564 remove meaningless ones.
2565
2566 2002-10-25 Andrew Cagney <cagney@redhat.com>
2567
2568 * complaints.h (struct deprecated_complaint): Rename `struct
2569 complaint'.
2570 * complaints.c (complain): Update.
2571 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2572 incorrect comment indicating that "symfile.h" was being included
2573 for the `struct complaint' definition.
2574 * remote-vx.c: Update.
2575 * objc-lang.c: Update.
2576 * xcoffread.c: Update.
2577 * hpread.c: Update.
2578 * mdebugread.c: Update.
2579 * stabsread.c: Update.
2580 * dwarf2read.c: Update.
2581 * dwarfread.c: Update.
2582 * elfread.c: Update.
2583 * coffread.c: Update.
2584 * stabsread.h: Update.
2585 * dbxread.c: Update.
2586 * buildsym.c: Update.
2587 * gdbtypes.c: Update.
2588 * macrotab.c: Update.
2589
2590 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2591
2592 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2593 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2594 (x86_64_init_abi): ...new function.
2595
2596 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2597 * i386v-nat.c: Include "i386-tdep.h".
2598
2599 2002-10-25 Andrew Cagney <cagney@redhat.com>
2600
2601 * gdbtypes.c (address_space_name_to_int): Update.
2602 (address_space_int_to_name): Update.
2603 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2604 multi-arch predicate.
2605 (address_class_name_to_type_flags): Ditto.
2606 * gdbarch.h, gdbarch.c: Re-generate.
2607
2608 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2609
2610 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2611
2612 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2613
2614 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2615
2616 * symtab.h (INIT_SAL): Delete macro.
2617 (init_sal): Export.
2618 * symtab.c (init_sal): New function.
2619
2620 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2621 to init_sal function call.
2622 (find_sal_from_funcs_and_line): Ditto.
2623 (all_sals_for_line): Ditto.
2624 * breakpoint.c (create_internal_breakpoint): Ditto.
2625 (create_fork_vfork_event_catchpoint): Ditto.
2626 (create_exec_event_catchpoint): Ditto.
2627 (parse_breakpoint_sals): Ditto.
2628 (watch_command_1): Ditto.
2629 (handle_gnu_4_16_catch_command): Ditto.
2630 (clear_command): Ditto.
2631 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2632 * infcmd.c (run_stack_dummy): Ditto.
2633 * infrun.c (process_event_stop_test): Ditto.
2634 (check_sigtramp2): Ditto.
2635 (step_over_function): Ditto.
2636 * linespec.c (decode_line_2): Ditto.
2637 (decode_line_1): Ditto.
2638 * source.c (line_info): Ditto.
2639 * symtab.c (find_pc_sect_line): Ditto.
2640
2641 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2642
2643 * dwarf2cfi.c (struct context)
2644 (struct context_reg): Moved to dwarf2cfi.h
2645 (context_alloc, frame_state_alloc, context_cpy):
2646 Made extern instead of static, removed prototypes.
2647 * dwarf2cfi.h (struct context)
2648 (struct context_reg): New, moved from dwarf2cfi.c
2649 (context_alloc, frame_state_alloc, context_cpy):
2650 New prototypes.
2651 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2652 Changed from static to extern.
2653 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2654 (LINUX_SIGCONTEXT_FP_OFFSET)
2655 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2656 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2657 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2658 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2659 set_gdbarch_*() calls now use x86-64 specific functions
2660 instead of DWARF2 CFI ones.
2661 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2662 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2663 (x86_64_init_extra_frame_info): New prototypes.
2664
2665 2002-10-23 David Carlton <carlton@math.stanford.edu>
2666
2667 * linespec.c: #include "parser-defs.h".
2668 Delete prototype for find_template_name_end.
2669 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2670
2671 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2672
2673 * NEWS: add recent mi fixes.
2674 * varobj.c (struct varobj): Add new "updated" flag.
2675 (new_variable): Default "updated" flag to 0.
2676 (varobj_set_value): Set "updated" flag to 1 if value
2677 changes.
2678 (varobj_update): Check varobj "updated" flag before
2679 comparing old and refreshed values. Fix for
2680 PR gdb/702.
2681
2682 2002-10-23 David Carlton <carlton@math.stanford.edu>
2683
2684 * parse.c (parse_exp_1): Use BLOCK_START.
2685 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2686 SYMBOL_BLOCK_VALUE.
2687 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2688
2689 2002-10-23 David Carlton <carlton@math.stanford.edu>
2690
2691 * symtab.c: Delete cplusplus_hint.
2692 Delete prototype for find_template_name_end.
2693
2694 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2695
2696 * symtab.h: Update comment.
2697
2698 2002-10-23 Michael Snyder <msnyder@redhat.com>
2699
2700 * printcmd.c (address_info): Restore quotes in output.
2701 * valops.c (value_of_local): Restore quotes in error message.
2702
2703 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2704
2705 * symtab.c (symbol_demangled_name): New function.
2706 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2707 turning most of it into a function.
2708 (symbol_demangled_name): Export.
2709
2710 2002-10-23 Michael Snyder <msnyder@redhat.com>
2711
2712 * valops.c (value_of_local): Restore quotes in error message.
2713
2714 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2715
2716 * symtab.c (symbol_init_language_specific): New function.
2717 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2718 turning most of it into a function.
2719 (symbol_init_language_specific): Export.
2720
2721 2002-10-23 David Carlton <carlton@math.stanford.edu>
2722
2723 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2724 (dwarf_attr_name): Ditto.
2725 (dwarf_type_encoding_name): Ditto.
2726 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2727 (process_die): Handle DW_TAG_namespace,
2728 DW_TAG_imported_declaration, DW_TAG_imported_module.
2729 (read_namespace): New function.
2730
2731 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2732
2733 * configure.in: Define NEW_PROC_API on Interix too.
2734 * configure: Regenerate.
2735
2736 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2737
2738 * configure: Regenerate using the proper version of autoconf.
2739
2740 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2741
2742 * findvar.c (read_var_value): Temporarily disable TLS code, until
2743 complete TLS support is added.
2744
2745 2002-10-21 Jim Blandy <jimb@redhat.com>
2746 Elena Zannoni <ezannoni@redhat.com>
2747
2748 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2749 for thread local storage locations.
2750 (struct symbol): Add objfile field.
2751 (SYMBOL_OBJFILE): Define.
2752 * dwarf2read.c (is_thread_local): New static variable.
2753 (new_symbol): If variable is in thread local fill in address class
2754 and objfile appropriately.
2755 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2756 stack operation.
2757 * printcmd.c (address_info): Print the information for thread
2758 local storage variable.
2759 * findvar.c (read_var_value): In case of thread local variable,
2760 defer to the target vector code to compute address.
2761
2762 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2763
2764 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2765 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2766
2767 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2768
2769 * symtab.h (address_class): Rename
2770 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2771 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2772 * printcmd.c (address_info): Ditto.
2773 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2774
2775 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2776
2777 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2778 DBREG_DRX macro to acces debug registers.
2779
2780 * Makefile.in (i386obsd-tdep.o): New target.
2781
2782 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2783 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2784
2785 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2786 * config/i386/obsd.mt: New file.
2787 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2788 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2789 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2790 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2791 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2792 * i386obsd-tdep.c: New file.
2793
2794 2002-10-19 Adam Fedor <fedor@gnu.org>
2795
2796 * objc-exp.y (name_not_typename): Fix invalid comment.
2797
2798 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2799
2800 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2801 to allocate partial syms and macro byte caches.
2802
2803 2002-10-18 David Carlton <carlton@math.stanford.edu>
2804
2805 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2806
2807 2002-10-18 Adam Fedor <fedor@gnu.org>
2808
2809 * stabsread.c (find_name_end): New function.
2810 (define_symbol): Use it.
2811
2812 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2813
2814 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2815 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2816 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2817 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2818
2819 2002-10-17 David Carlton <carlton@math.stanford.edu>
2820
2821 * symfile.h: Add opaque declaration for struct obstack.
2822 Declare obsavestring to take a const char *.
2823 * symfile.c (obsavestring): Make first argument a const char *.
2824
2825 2002-10-16 Adam Fedor <fedor@gnu.org>
2826
2827 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2828 names when matching breakpoints in current file.
2829
2830 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2831
2832 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2833 (read_tag_pointer_type): Add address class support.
2834 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2835 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2836 New methods.
2837 * gdbarch.h, gdbarch.c: Regenerate.
2838 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2839 (make_type_with_address_space, recursive_type_dump): Add address
2840 class support.
2841 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2842 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2843 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2844
2845 2002-10-16 Klee Dienes <kdienes@apple.com>
2846
2847 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2848 to get the last character of a char[] buffer, not
2849 name[sizeof(vptr_name)-1].
2850
2851 2002-10-14 Adam Fedor <fedor@gnu.org>
2852
2853 * symtab.h: New objc_specific struct.
2854 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2855 (SYMBOL_DEMANGLED_NAME): Likewise.
2856
2857 2002-10-14 Adam Fedor <fedor@gnu.org>
2858
2859 * symfile.c (init_filename_language_table): Add ObjC file extension.
2860
2861 2002-10-14 Adam Fedor <fedor@gnu.org>
2862
2863 * utils.c (puts_filtered_tabular): New function.
2864 (fprintf_symbol_filtered): Get ObjC demangled name.
2865 * defs.h (puts_filtered_tabular): Declared.
2866
2867 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2868
2869 * c-lang.h (c_type_print_varspec_prefix): Delete.
2870 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2871 ``need_post_space'' parameter. Adjust all callers.
2872
2873 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2874
2875 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2876 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2877 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2878 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2879
2880 2002-10-13 Adam Fedor <fedor@gnu.org>
2881
2882 * source.c (print_source_lines): Update comments.
2883
2884 2002-10-13 Adam Fedor <fedor@gnu.org>
2885
2886 * valops.c (value_of_local): New function.
2887 (value_of_this): Use it.
2888 * value.h (value_of_local): Declared.
2889
2890 2002-10-13 Adam Fedor <fedor@gnu.org>
2891
2892 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2893 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2894
2895 2002-10-12 Adam Fedor <fedor@gnu.org>
2896
2897 * language.c (binop_result_type): Add language_objc to case.
2898 (integral_type): Likewise.
2899 (character_type): Likewise.
2900 (string_type): Likewise.
2901 (boolean_type): Likewise.
2902 (structured_type): Likewise.
2903 (binop_type_check): Likewise.
2904
2905 2002-10-11 Adam Fedor <fedor@gnu.org>
2906
2907 * printcmd.c (address_info): Print 'self' for ObjC.
2908
2909 2002-10-11 Adam Fedor <fedor@gnu.org>
2910
2911 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2912 OP_SELF.
2913
2914 2002-10-11 Adam Fedor <fedor@gnu.org>
2915
2916 * language.h (CAST_IS_CONVERSION): Add language_objc.
2917
2918 2002-10-11 Adam Fedor <fedor@gnu.org>
2919
2920 * defs.h (enum language): Add language_objc.
2921
2922 2002-10-11 Klee Dienes <kdienes@apple.com>
2923
2924 * corefile.c (read_memory_typed_address): New function.
2925 * gdbcore.h (read_memory_typed_address): Add prototype.
2926 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2927 to read a value destined for a CORE_ADDR, not read_memory_integer.
2928 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2929 (f77_get_dynamic_lowerbound): Ditto.
2930
2931 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2932
2933 * utils.c (string_to_core_addr): After turning string into
2934 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2935 which will do necessary sign-extension, etc.
2936
2937 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2938
2939 * c-exp.y (THIS): Delete token and grammar rule.
2940 (yylex): Don't return THIS.
2941 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2942 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2943 * demangle.c (cplus_markers): Update comment. Put '$'
2944 first. Remove CPLUS_MARKER.
2945 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2946 * jv-exp.y (THIS): Delete token and grammar rule.
2947 (yylex): Don't return THIS.
2948 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2949 * objc-exp.y (THIS): Delete token and grammar rule.
2950 (yylex): Don't return THIS.
2951 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2952 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2953 (read_member_functions): Likewise for opname.
2954 (read_tilde_fields): Use is_cplus_marker.
2955
2956 * defs.h (CPLUS_MARKER): Don't define.
2957 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2958 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2959 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2960 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2961 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2962
2963 * config/i386/tm-i386v4.h: Delete file.
2964 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2965 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2966 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2967 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2968 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2969 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2970 * config/i386/i386v4.mt (TM_FILE): Likewise.
2971 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2972
2973 2002-10-10 Marko Mlinar <markom@opencores.org>
2974
2975 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2976 accidentially not commited 2002-10-09
2977 * gdbarch.h, gdbarch.c: Re-generate.
2978
2979 2002-10-09 Marko Mlinar <markom@opencores.org>
2980
2981 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2982 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2983 * gdbarch.h, gdbarch.c: Re-generate.
2984
2985 2002-10-08 Petr Sorfa <petrs@caldera.com>
2986
2987 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2988
2989 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2990 so we can work on more than one compilation unit at a time. This
2991 helps prepare GDB to handle inter-CU die references.
2992 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2993 the code to be defined before struct comp_unit_head.
2994 (comp_unit_head): Added new members - offset, cu_head,
2995 begin_die, next and dwarf2_abbrevs.
2996 (dwarf2_abbrevs): Removed single static var; now member of
2997 struct comp_unit_head.
2998 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2999 members.
3000 (psymtab_to_symtab_1): Changed to work with the new
3001 struct comp_unit_head.
3002 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3003 constructs the dwarf2_abbrevs[] inside the cu_header.
3004 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3005 dwarf2_abbrev table to clean up.
3006 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3007 handling of dwarf2_abbrevs inside the cu_header.
3008 (read_partial_die): Now supports the call to the new
3009 dwarf2_lookup_abbrev.
3010 (read_full_die): Now supports the call to the new
3011 dwarf2_lookup_abbrev.
3012
3013 2002-10-06 Christopher Faylor <cgf@redhat.com>
3014
3015 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3016 insure that shell variables, such as "transformed_name" are propagated
3017 to later shell statements in rule.
3018
3019 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3020
3021 * config/i386/nm-i386sco.h: Add protection against
3022 multiple-inclusion. Include "i386/nm-i386v.h".
3023 (REGISTER_U_ADDR): Remove define.
3024 (i386_register_u_addr): Remove prototype.
3025
3026 2002-10-04 Michael Snyder <msnyder@redhat.com>
3027
3028 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3029 before treating it as a single-step event.
3030
3031 2002-10-03 Adam Fedor <fedor@gnu.org>
3032
3033 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3034 (objc_demangle): Remove assignment in if statements, Replace
3035 free with xfree.
3036 (add_msglist): Likewise.
3037 (end_msglist): Likewise.
3038 (complare_selectors): Likewise.
3039 (selectors_info): Likewise.
3040 (compare_classes): Likewise.
3041 (classes_info): Likewise.
3042 (print_object_command): Likewise.
3043 (find_objc_msgcall_submethod): Replace PTR with void *.
3044 * objc-lang.h: Remove check for __STDC__.
3045
3046 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3047
3048 * ui-out.h (ui_out_field_fmt_int): New prototype.
3049 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3050 of field width and alignment.
3051 * stack.c (print_frame_info_base): When printing frame level, use
3052 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3053 PR gdb/192
3054
3055 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3056
3057 * MAINTAINERS: Add self to Write After Approval list.
3058
3059 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3060
3061 * infcmd.c (interrupt_target_command_wrapper): Delete.
3062 (interrupt_target_command): Make non static.
3063 (nofp_registers_info): Make static.
3064 * stack.c (return_command_wrapper): Delete.
3065 (return_command): Make non static.
3066
3067 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3068
3069 * event-top.c (gdb_setup_readline): New function. Code moved from
3070 _initialize_event_loop().
3071 (_initialize_event_loop): Call gdb_setup_readline().
3072
3073 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3074
3075 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3076 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3077 * gdbarch.h, gdbarch.c: Re-generate.
3078
3079 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3080
3081 Fix PR gdb/778
3082 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3083 before recursing.
3084 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3085 of fill_in_vptr_fieldno.
3086
3087 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3088
3089 * inferior.h (registers_info, stepi_command, nexti_command,
3090 continue_command, interrupt_target_command): Export from infcmd.c.
3091 * frame.h (args_info, selected_frame_level_changed_hook,
3092 return_command): Export from stack.c.
3093 * v850ice.c (stepi_command, nexti_command, continue_command): use
3094 prototypes from inferior.h.
3095 * tracepoint.c (registers_info, args_info, locals_info): Use
3096 prototypes from frame.h and inferior.h.
3097 * Makefile.in (mi-main.o): Add dependency on frame.h.
3098
3099 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3100
3101 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3102 value in register 3 adjusted by ppc_gp0_regnum.
3103
3104 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3105
3106 2002-10-02 Marko Mlinar <markom@opencores.org>
3107
3108 * MAINTAINERS: Add myself to the Write After Approval list.
3109
3110 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3111
3112 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3113 of the section for the N64 ABI, fixed.
3114
3115 * config/mips/tm-irix6.h: Include solib.h.
3116
3117 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3118
3119 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3120 GNU operators.
3121
3122 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3123
3124 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3125 and that "mi0" syntax has been removed.
3126
3127 2002-09-30 David Carlton <carlton@math.stanford.edu>
3128
3129 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3130 * ppc-sysv-tdep.c: #include "gdb_string.h".
3131 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3132 pacify GCC.
3133
3134 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3135
3136 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3137 "vrsave"'s register number.
3138
3139 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3140
3141 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3142 use frame_unwind_signed_register to obtain the PC.
3143 (mips_frame_chain): Handle a generic dummy frame.
3144 (mips_init_extra_frame_info): When a generic dummy frame, don't
3145 re-compute the frame base.
3146 (mips_pop_frame): Handle generic dummy frames.
3147 (mips_gdbarch_init): When generic dummy frames, set
3148 use_generic_dummy_frames, push_dummy_frame to
3149 generic_push_dummy_frame, pc_in_call_dummy to
3150 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3151 generic_save_dummy_frame_tos.
3152
3153 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3154
3155 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3156 against TOP when TOP was explictly set.
3157 (generic_push_dummy_frame): Set TOP to zero.
3158
3159 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3160
3161 * event-loop.c (start_event_loop): Rename variable 'result' to
3162 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3163
3164 2002-09-30 Keith Seitz <keiths@redhat.com>
3165
3166 * gdb-events.sh (selected_thread_changed): New event.
3167 * gdb-events.c: Regenerated.
3168 * gdb-events.h: Regenerated.
3169
3170 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3171
3172 * MAINTAINERS: Add self to Write After Approval list.
3173
3174 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3175
3176 * disasm.c: New file.
3177 * disasm.h: New file.
3178 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3179 (compare_lines): Ditto.
3180 (dump_insns): Ditto.
3181 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3182 argument.
3183 (do_assembly_only): Ditto.
3184 (do_disassembly): Renamed to gdb_disassembly and moved to
3185 disasm.c. Sdded uiout argument.
3186 * Makefile.in: Add new files. Reorder SFILES list. Update
3187 dependencies. Include libgdb.a later in the insight executable.
3188
3189 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3190
3191 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3192 bfd/elf64-alpha-fbsd.c.
3193
3194 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3195
3196 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3197 i386gnu-tdep.c.
3198
3199 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3200
3201 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3202 __FUNCTION__.
3203 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3204 function name.
3205 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3206 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3207 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3208 (S_msg_sig_post_reply): Ditto.
3209
3210 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3211
3212 * sh-tdep.c (sh_use_struct_convention): Use definition according
3213 to ABI.
3214 (sh_push_arguments): Store in register with correct endianess.
3215 (sh_default_store_return_value): Ditto.
3216 (sh_gdbarch_init): Set sizeof long double to 8.
3217
3218 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3219
3220 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3221 Fix some whitespace problems.
3222
3223 2002-09-27 David Carlton <carlton@math.stanford.edu>
3224
3225 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3226 (mcore-tdep.o): Ditto.
3227 (ns32k-tdep.o): Ditto.
3228 (ns32knbsd-tdep.o): Ditto.
3229 (sh3-rom.o): Ditto.
3230 (vax-tdep.o): Ditto.
3231 * cris-tdep.c: #include "gdb_string.h"
3232 * mcore-tdep.c: Ditto.
3233 * ns32k-tdep.c: Ditto.
3234 * ns32knbsd-tdep.c: Ditto.
3235 * sh3-rom.c: Ditto.
3236 * vax-tdep.c: Ditto.
3237
3238 2002-09-27 David Carlton <carlton@math.stanford.edu>
3239
3240 * config/djgpp/fnchange.lst: Add entries for
3241 gdb/testsuite/gdb.c++/m-static files.
3242
3243 2002-09-27 Jim Wilson <wilson@redhat.com>
3244
3245 * MAINTAINERS: Add myself to the Write After Approval list.
3246
3247 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3248
3249 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3250
3251
3252 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3253
3254 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3255 frame.
3256
3257 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3258
3259 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3260 (rs6000_struct_return_address): Delete variable.
3261 (rs6000_store_struct_return): Update.
3262 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3263 deprecated_extract_struct_value_address.
3264 (rs6000_frame_align): New function.
3265 (rs6000_gdbarch_init): Set frame_align.
3266
3267 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3268
3269 From Grace Sainsbury <graces@redhat.com>:
3270 * Makefile.in (gdbtk-main.o): New target.
3271 (gdb.o): New target.
3272 (main_h): Define.
3273 (main.o): Update dependencies.
3274 (gdb$(EXEEXT)): Add gdb.o.
3275 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3276 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3277 (SUBDIR_GDBTK_CLEAN): Set.
3278 (install-gdbtk): Install the insight binary.
3279 (uninstall-gdbtk): New target.
3280 (all-gdbtk, clean-gdbtk): New rule.
3281 * top.c (use_windows): Default to zero.
3282 * main.c: Include "main.h".
3283 (main): Delete.
3284 (struct captured_main_args): Delete.
3285 (gdb_main): New function.
3286 * main.h: New file.
3287 * gdb.c: New File.
3288
3289 2002-09-25 Andrew Cagney <cagney@redhat.com>
3290
3291 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3292 (frame_map_regnum_to_name): New function.
3293 (frame_map_name_to_regnum): New function.
3294 * frame.h (frame_map_name_to_regnum): Declare.
3295 (frame_map_regnum_to_name): Declare.
3296 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3297 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3298 * parse.c: Do not include "builtin-regs.h".
3299 (target_map_name_to_register): Delete function.
3300 (write_dollar_variable): Use frame_map_name_to_regnum.
3301 * parser-defs.h (target_map_name_to_register): Delete declaration.
3302 * expprint.c: Include "frame.h".
3303 (print_subexp): Use frame_map_regnum_to_name.
3304 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3305 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3306
3307 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3308
3309 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3310 wasn't saved, and the next innermost frame is a dummy, return the
3311 dummy frame's link register.
3312
3313 2002-09-24 Jim Blandy <jimb@redhat.com>
3314
3315 Fix from Paul Breed:
3316 * main.c (captured_main): Add a `break' after the case for 'b'.
3317
3318 2002-09-24 Keith Seitz <keiths@redhat.com>
3319
3320 * varobj.c (c_type_of_child): Use get_target_type instead
3321 of TYPE_TARGET_TYPE.
3322
3323 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3324
3325 * source.c (get_current_or_default_source_symtab_and_line): Remove
3326 function.
3327 (set_default_source_symtab_and_line): New function. Attempts to
3328 determine a source file to list lines from if one is not currently
3329 defined.
3330 (get_current_source_symtab_and_line): Initialize sal.pc and
3331 sal.end fields.
3332 (set_current_source_symtab_and_line): Mark argument as const.
3333 * source.h: Update declarations and comments.
3334 * linespec.c (decode_line_1): Replace call to removed routine above.
3335 * stack.c (print_frame_info_base): Ditto.
3336 * cli/cli-cmds.c (edit_command): Ditto.
3337 (list_command): Ditto.
3338
3339 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3340
3341 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3342 sal.pc and sal.end fields.
3343 (get_current_or_default_source_symtab_and_line): Ditto.
3344 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3345 so we do not cause a new source symtab to be searched for (reverting an
3346 unintentional change from the 2002-09-20 patch).
3347 * scm-lang.c (scm_unpac): Ditto.
3348
3349 2002-09-21 Andrew Cagney <cagney@redhat.com>
3350
3351 * complaints.c (symfile_explanations): Remove new-line from
3352 ``isolated_message''.
3353 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3354 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3355
3356 2002-09-20 Nick Clifton <nickc@redhat.com>
3357
3358 * NEWS: Announce that V850EA ISA is no longer supported.
3359 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3360
3361 2002-09-20 David Carlton <carlton@math.stanford.edu>
3362
3363 * Makefile.in (c-lang.o): Correct dependencies.
3364 (utils.o): Gather dependencies.
3365 (charset.o): Move.
3366 * c-lang.c: #include "gdb_string.h"
3367
3368 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3369
3370 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3371 * cli/cli-cmds.c (list_command): New function. Implements the new
3372 cli edit command.
3373 (_init_cli_cmds): Add new command definition.
3374 * gdb.1: Document edit command.
3375 * doc/gdb.texinfo: Document edit command.
3376
3377 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3378
3379 * source.c: Make global variables current_source_symtab and
3380 current_source_line static.
3381 (list_command): Moved to cli/cli-cmds.c.
3382 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3383 (get_first_line_listed): New accessor function.
3384 (get_lines_to_list): New accessor function.
3385 (get_current_source_symtab_and_line): New function. Retrieves the
3386 position in the source code that we consider current.
3387 (get_current_or_default_source_symtab_and_line): New function.
3388 Like the above but attempts to determine a default position if one
3389 is not currently defined.
3390 (set_current_source_symtab_and_line): New function. Sets the source
3391 code position considered current and returns the previously set one.
3392 (clear_current_source_symtab_and_line): Reset stored information about
3393 a current source line.
3394 (_initialize_source): Remove registration for the "list" command and
3395 its alias.
3396 * source.h: Add declarations for the new functions above.
3397 * symtab.h: Remove declarations for the global variables mentioned
3398 above.
3399 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3400 obtain current source line.
3401 * linespec.c (decode_line_1): Ditto.
3402 * macroscope.c (default_macro_scope): Ditto.
3403 * scm-lang.c (scm_unpac): Ditto.
3404 * stack.c (print_frame_info_base): Ditto.
3405 * symfile.c (clear_symtab_users): Ditto.
3406 * symtab.c (decode_line_spec): Ditto.
3407 * cli/cli-cmds.c (list_command): Moved here from source.c.
3408 (ambiguous_line_spec): Moved here from source.c.
3409 (_init_cli_cmds): Add definition for "list" and its alias.
3410 * Makefile.in: Update dependencies.
3411
3412 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3413
3414 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3415 with what gcc thinks is correct.
3416
3417 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3418
3419 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3420 multiple register push instruction.
3421
3422 2002-09-19 Jim Blandy <jimb@redhat.com>
3423
3424 Add support for distinct host and target character sets.
3425 * charset.c, charset.h: New files.
3426 * c-exp.y: #include "charset.h".
3427 (yylex): Convert character and string literals to the target
3428 character set, before returning them as the semantic value of the
3429 token.
3430 * c-lang.c: #include "charset.h".
3431 (c_emit_char): Use charset-specific methods to recognize
3432 characters with backslash escape forms, to decide which characters
3433 to print literally and which to print using numeric escape
3434 sequences, and to convert target characters to host characters
3435 before printing.
3436 * utils.c: #include "charset.h".
3437 (no_control_char_error): New function.
3438 (parse_escape): Use charset-specific methods to recognize
3439 backslash escapes, parse `control character' notation, and convert
3440 characters from the host character set to the target character set.
3441 * configure.in: Set the default host character set.
3442 Check where to find iconv, and what its argument types might be.
3443 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3444 * Makefile.in (SFILES): List charset.c.
3445 (COMMON_OBS): List charset.o.
3446 (charset.o): New rule.
3447 (charset_h): New header dependency variable.
3448 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3449 (LIBICONV): New variable, set by configure.
3450 (CLIBS): Include $(LIBICONV) here.
3451 * aclocal.m4, config.in, configure: Regenerated.
3452
3453 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3454
3455 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3456 bison 1.35 warning.
3457
3458 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3459
3460 * gdb_mbuild.sh: New file.
3461
3462 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3463
3464 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3465
3466 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3467
3468 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3469 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3470 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3471 valops.c, value.h: Revert previous change.
3472
3473 2002-09-18 Michael Snyder <msnyder@redhat.com>
3474
3475 Preliminary support for Objective-C:
3476 * defs.h (language_objc): New enum value.
3477 (puts_filtered_tabular): Declaration only, exported from utils.c.
3478 (skip_quoted): Delete, declared in completer.h.
3479 * c-exp.y: Include completer.h.
3480 * p-exp.y: Ditto.
3481 * jv-exp.y: Ditto.
3482 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3483 New operator enum values.
3484 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3485 * language.c (binop_result_type): Handle language_objc case.
3486 (integral_type, character_type, string_type, boolean_type,
3487 structured_type, binop_type_check): Ditto.
3488 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3489 (struct objc_specific): Add to general_symbol_info.
3490 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3491 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3492 * parser-defs.h (struct objc_class_str): New struct type.
3493 (start_msglist, end_msglist, add_msglist): Declaration only,
3494 exported from objc-lang.c.
3495 * value.h (value_of_local, value_nsstring,
3496 call_function_by_hand_expecting_type): Exported from valops.c.
3497 * valops.c (find_function_addr): Export.
3498 (call_function_by_hand_expecting_type): New function.
3499 (value_of_local): New function.
3500 * symfile.c (init_filename_language_table): Add ".m" extension
3501 for Objective-C.
3502 * utils.c (puts_filtered_tabular): New function.
3503 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3504 (set/show demangle): Extend help-string to refer to ObjC.
3505 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3506 * stabsread.c (symbol_reference_defined): Objective-C symbols
3507 may contain colons: make allowances when scanning stabs strings
3508 for colons.
3509 (objc_find_colon): New function.
3510 * printcmd.c (address_info): If language == objc then print
3511 "self" instead of "this".
3512 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3513 OP_NSSTRING, and OP_SELF.
3514 (prefixify_subexp): Ditto.
3515 * source.c (print_source_lines): Mention objc in comment.
3516 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3517 method names.
3518
3519 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3520
3521 * complaints.h: Update copyright.
3522 (struct complaints): Declare.
3523 (struct complaint): Make `message' constant.
3524 (internal_complaint): Declare.
3525 (complaint): Declare.
3526 (complaint_root): Delete declaration.
3527 (symfile_complaints): Delete declaration.
3528 (struct complaints): Add opaque declaration.
3529 (clear_complaints): Add a complaints parameter.
3530 * complaints.c: Update copyright.
3531 (enum complaint_series): Define.
3532 (complaint_root): Delete.
3533 (struct complaints): Define.
3534 (complaint_sentinel, symfile_complaint_book): New variables.
3535 (symfile_explanations, symfile_complaints): New variables.
3536 New variables.
3537 (get_complaints): New function.
3538 (vcomplaint): New function.
3539 (complaint): New function.
3540 (internal_complaint): New function.
3541 (complain): Call vcomplain with symfile_complaint.
3542 (clear_complaints): Rewrite.
3543 (_initialize_complaints): Use add_setshow_command.
3544 * Makefile.in (complaints.o): Update dependencies.
3545 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3546 to call to clear_complaints.
3547 (new_symfile_objfile, reread_symbols): Ditto.
3548 (oldsyms_complaint): Delete.
3549 (empty_symtab_complaint, unknown_option_complaint): Delete.
3550 (free_named_symtabs): Use complaint instead of complain.
3551
3552 2002-09-18 Michael Snyder <msnyder@redhat.com>
3553
3554 Contributed by Apple Computer, Inc. Merged with current sources
3555 by Adam Fedor <fedor@doc.com> [cagney].
3556
3557 * objc-lang.c: First clean-up round: comments, indentation.
3558 * objc-lang.h: Ditto.
3559 * objc-lang.y: Ditto.
3560
3561 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3562
3563 * maint.c (maintenance_internal_error): Print the parameter as the
3564 error message.
3565 (maintenance_internal_warning): New function.
3566 (_initialize_maint_cmds): Add command `maint internal-warning'.
3567
3568 * defs.h (internal_warning, internal_vwarning): Declare.
3569 * utils.c (struct internal_problem): Define.
3570 (internal_vproblem): New function.
3571 (internal_warning): New function.
3572 (internal_vwarning): New function.
3573 (internal_warning_problem, internal_error_problem): New variables.
3574 (internal_verror): Just call internal_vproblem.
3575
3576 2002-09-18 Michael Snyder <msnyder@redhat.com>
3577
3578 * objc-lang.c: New file, support for Objective-C.
3579 Preliminary check-in, not yet integrated into gdb.
3580 * objc-lang.h: New file.
3581 * objc-exp.y: New file.
3582
3583 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3584
3585 * infrun.c (signal_stop_update): Convert definition to ISO C.
3586 (signal_print_update): Ditto.
3587 (signal_pass_update): Ditto.
3588 * inflow.c (terminal_save_ours): Ditto.
3589
3590 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3591 comments.
3592
3593 * config/djgpp/fnchange.lst: Handle name clashes between
3594 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3595 bfd/coff-tic80.c.
3596
3597 * i386-linux-tdep.h: Fix tipo.
3598
3599 2002-09-18 Adam Fedor <fedor@gnu.org>
3600
3601 * MAINTAINERS: Add myself to the Write After Approval list.
3602
3603 2002-09-18 Jim Blandy <jimb@redhat.com>
3604
3605 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3606 texthigh and textlow to reader-specific structs caused
3607 objfile_relocate to miss them. This is fixable, but the work that
3608 the change was supposed to prepare GDB for never got done anyway.
3609
3610 2002-09-18 David Carlton <carlton@math.stanford.edu>
3611
3612 * MAINTAINERS: Alphabetize Write After Approval list.
3613
3614 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3615
3616 Fix PR gdb/709
3617 * values.c (value_static_field): Call read_var_value.
3618
3619 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3620
3621 * valops.c (hand_function_call): Align the initial stack pointer
3622 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3623 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3624 return value.
3625 * mips-tdep.c (mips_frame_align): New function.
3626 (mips_gdbarch_init): Set frame_align.
3627 * gdbarch.sh (FRAME_ALIGN): New method.
3628 * gdbarch.h, gdbarch.c: Re-generate.
3629
3630 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3631
3632 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3633 registers.
3634
3635 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3636
3637 * NEWS: Mention that MIPS $fp behavior changed.
3638 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3639 reference to FP_REGNUM.
3640 (mipsnbsd_cannot_store_register): Ditto.
3641 * mips-linux-nat.c: Update copyright.
3642 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3643 (mips_linux_cannot_store_register): Ditto.
3644 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3645 * config/mips/tm-mips.h: Update copyright.
3646 (FP_REGNUM): Delete macro.
3647 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3648 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3649 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3650 (mips_r3041_reg_names, mips_r3051_reg_names)
3651 (mips_r3081_reg_names): Replace "fp" with "".
3652 Fix PR gdb/480.
3653
3654 2002-09-17 Theodore A. Roth <troth@verinet.com>
3655
3656 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3657 generic_read_register_dummy() (PR gdb/703).
3658 (avr_push_return_address): #if 0 out unused vars.
3659 (avr_gdbarch_init): Enable use of avr_push_return_address().
3660
3661 2002-09-17 Michael Snyder <msnyder@redhat.com>
3662
3663 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3664 RTE will take care of it.
3665
3666 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3667
3668 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3669 invalid, return SP_REGNUM.
3670
3671 2002-09-17 Michael Snyder <msnyder@redhat.com>
3672
3673 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3674 point registers without sign extension.
3675
3676 2002-09-17 Andrew Cagney <cagney@redhat.com>
3677
3678 * blockframe.c (deprecated_read_register_dummy): Rename
3679 generic_read_register_dummy.
3680 * frame.c (frame_unwind_signed_register): New function.
3681 (frame_unwind_unsigned_register): New function.
3682 * frame.h (frame_unwind_signed_register): Declare.
3683 (frame_unwind_unsigned_register): Declare.
3684 (deprecated_read_register_dummy): Rename
3685 generic_read_register_dummy.
3686
3687 * h8300-tdep.c (h8300_frame_chain): Update.
3688 (h8300_frame_saved_pc): Update.
3689 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3690 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3691 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3692 (s390_frame_chain): Update.
3693 * v850-tdep.c (v850_find_callers_reg): Update.
3694 (v850_frame_saved_pc): Update.
3695 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3696 (m32r_find_callers_reg): Update.
3697 (m32r_frame_saved_pc): Update.
3698 * sh-tdep.c (sh_find_callers_reg): Update.
3699 (sh64_get_saved_pr): Update.
3700 (sh_init_extra_frame_info): Update.
3701 (sh_init_extra_frame_info): Update.
3702 (sh64_init_extra_frame_info): Update.
3703 (sh64_init_extra_frame_info): Update.
3704 * mcore-tdep.c (mcore_find_callers_reg): Update.
3705 (mcore_frame_saved_pc): Update.
3706 (mcore_init_extra_frame_info): Update.
3707 * i386-tdep.c (i386_frame_saved_pc): Update.
3708 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3709 (ia64_init_extra_frame_info): Update.
3710 (ia64_init_extra_frame_info): Update.
3711 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3712 * cris-tdep.c (cris_init_extra_frame_info): Update.
3713 * avr-tdep.c (avr_frame_chain): Update.
3714 (avr_init_extra_frame_info): Update.
3715 (avr_frame_saved_pc): Update.
3716 * arm-tdep.c (arm_find_callers_reg): Update.
3717 (arm_init_extra_frame_info): Update.
3718 (arm_frame_saved_pc): Update.
3719
3720 2002-09-17 Tom Tromey <tromey@redhat.com>
3721
3722 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3723 is "'".
3724
3725 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3726
3727 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3728 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3729 NEXT_PROLOGUE_INSN.
3730 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3731 NEXT_PROLOGUE_INSN.
3732
3733 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3734
3735 * osfsolib.c: Remove file, replaced by solib-osf.c.
3736 * Makefile.in: Remove compilation rules for osfsolib.c.
3737
3738 2002-09-16 David Carlton <carlton@math.stanford.edu>
3739
3740 * cp-valprint.c (cp_print_class_method): Correct args to
3741 check_stub_method_group.
3742
3743 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3744
3745 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3746 `set architecture'. Unify naming convention of functions.
3747 (h8300_skip_prologue): Improve prologue analysis.
3748 (h8300_push_arguments): Rewritten to more closely match GCC's
3749 bizarre argument-passing behavior, along with the comment describing
3750 said behavior.
3751 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3752 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3753 sim, remote-e7000.c, remote-hms.c and remote.c
3754
3755 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3756
3757 * i386-tdep.c (gdb_print_insn_i386): Removed.
3758 (i386_print_insn): New function.
3759 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3760 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3761 tm_print_insn_info.
3762
3763 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3764
3765 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3766 zero.
3767
3768 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3769
3770 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3771 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3772 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3773
3774 2002-09-13 Christopher Faylor <cgf@redhat.com>
3775
3776 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3777
3778 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3779
3780 * gdbtypes.c (check_stub_method): Make static.
3781 (check_stub_method_group): New function.
3782 * gdbtypes.h: Update prototypes.
3783 * cp-support.c: New file.
3784 * cp-support.h: New file.
3785
3786 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3787 (update_method_name_from_physname): New function.
3788 (read_member_functions): Correct method names for operators
3789 and v3 constructors/destructors. Separate v2 constructors and
3790 destructors.
3791 * Makefile.in (stabsread.o): Update dependencies.
3792 (SFILES): Add cp-support.c.
3793 (COMMON_OBS): Add cp-support.o.
3794 (cp_support_h, cp-support.o): Add.
3795
3796 * cp-valprint.c (cp_print_class_method): Call
3797 check_stub_method_group instead of check_stub_method. Remove
3798 extraneous QUITs.
3799 * p-valprint.c (pascal_object_print_class_method): Likewise.
3800 * valops.c (search_struct_method): Likewise.
3801 (find_method_list, value_struct_elt_for_reference): Likewise.
3802
3803 2002-09-13 Andrew Cagney <cagney@redhat.com>
3804
3805 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3806 * gdbarch.h, gdbarch.c: Regenerate.
3807
3808 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3809
3810 * frame.c (find_saved_register): Delete function.
3811 * frame.h (find_saved_register): Delete declaration.
3812 Fix PR gdb/631.
3813
3814 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3815
3816 * mips-tdep.c (read_next_frame_reg): Re-hack using
3817 frame_register_unwind.
3818
3819 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3820
3821 * mips-tdep.c (mips_get_saved_register): Re-hack using
3822 frame_register_unwind.
3823
3824 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3825
3826 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3827 vector. Will be useful for Interix.
3828 * gdbarch.h, gdbarch.c: Regenerate.
3829
3830 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3831 name of the malloc function by NAME_OF_MALLOC.
3832
3833 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3834
3835 * value.h (find_function_in_inferior): Add const keyword to
3836 one of the parameters. Allows us to invoke this function with
3837 a const char *.
3838 * valops.c (find_function_in_inferior): Likewise.
3839
3840 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3841
3842 * exec.c (xfer_memory): Fix compilation warning with old versions
3843 of GCC.
3844 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3845
3846 2002-09-12 David Carlton <carlton@math.stanford.edu>
3847
3848 * symtab.h: Run through gdb_indent.h.
3849 Add 2002 to Copyright year list.
3850
3851 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3852
3853 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3854 mach constants.
3855 * MAINTAINERS: Add myself to write after approval list.
3856
3857 2002-09-11 J. Brobecker <brobecker@gnat.com>
3858
3859 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3860
3861 2002-09-11 J. Brobecker <brobecker@gnat.com>
3862
3863 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3864 Interix.
3865
3866 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3867
3868 * procfs.c (do_detach): Clear current signal, not just fault.
3869 Corrects problem with breakpoint trap signal leaking to detached
3870 process on Tru64.
3871
3872 2002-09-10 Michael Snyder <msnyder@redhat.com>
3873
3874 * buildsym.c (finish_block): Protect against null pointer.
3875
3876 2002-09-10 Andrew Cagney <cagney@redhat.com>
3877
3878 * infcmd.c (default_print_registers_info): Send all output to
3879 ``file'' instead of ``gdb_stdout''.
3880
3881 2002-09-10 Michael Snyder <msnyder@redhat.com>
3882
3883 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3884 LONGEST, and use signed register read (addresses are sign-
3885 extended for mips).
3886
3887 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3888
3889 * event-loop.c (gdb_do_one_event): Make public.
3890 * event-loop.h (gdb_do_one_event): Declare.
3891
3892 2002-09-10 Jeff Law <law@redhat.com>
3893
3894 * infttrace.c (child_resume): Simplify and rework to avoid
3895 TT_PROC_CONTINUE.
3896
3897 2002-09-09 Fred Fish <fnf@intrinsity.com>
3898
3899 * printcmd.c (print_scalar_formatted): "len" is the number of
3900 target bytes, NOT the number of target bits.
3901
3902 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3903
3904 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3905 * top.c (init_main): Set rl_terminal_name.
3906
3907 2002-09-08 Aidan Skinner <aidan@velvet.net>
3908
3909 * ada-lang.c (ada_array_bound, ada_type_match,
3910 _initialize_ada_language): Fix K&R definitions.
3911 * ada-tasks.c (get_current_task): Fix K&R definitions.
3912 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3913
3914 2002-09-07 Christopher Faylor <cgf@redhat.com>
3915
3916 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3917 Add XP.
3918
3919 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3920
3921 * i386-tdep.c (i386_register_virtual_type,
3922 i386_register_convertible, i386_register_convert_to_virtual,
3923 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3924 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3925 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3926 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3927 Don't set push_arguments twice.
3928
3929 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3930 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3931 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3932 sigtramp_end to NULL.
3933 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3934 defines.
3935 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3936
3937 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3938 whitespace.
3939
3940 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3941 * gdbarch.h, gdbarch.c: Re-generate.
3942 * blockframe.c (find_pc_sect_partial_function): Convert to use
3943 SIGTRAMP_START_P predicate.
3944
3945 2002-09-05 Michael Snyder <msnyder@redhat.com>
3946
3947 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3948 generic_dummy_frame method and old method. Also distinguish
3949 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3950 (arm_extract_return_value): Use new regcache method.
3951
3952 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3953 adjustment that doesn't conform to the ABI.
3954 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3955 saved regcache, not from current regcache.
3956
3957 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3958
3959 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3960 * README: Update.
3961
3962 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3963
3964 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3965 if arm_apcs_32 is false.
3966
3967 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3968
3969 GDB 5.3 branch created.
3970
3971 2002-09-03 Theodore A. Roth <troth@verinet.com>
3972
3973 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3974 generic_unwind_get_saved_register.
3975
3976 2002-09-03 David Carlton <carlton@math.stanford.edu>
3977
3978 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3979 argument (PR gdb/653). Update call to smash_to_method_type.
3980 (read_structure_scope): Update call to dwarf2_add_member_fn.
3981
3982 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3983
3984 * x86-64-linux-tdep.c: Include gdb_string.h
3985 * x86-64-linux-nat.c: Ditto.
3986
3987 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3988
3989 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3990 when YYDEBUG is set to 1.
3991 * c-exp.y: Likewise.
3992 * f-exp.y: Likewise.
3993 * jv-exp.y: Likewise.
3994 * m2-exp.y: Likewise.
3995 * p-exp.y: Likewise.
3996
3997 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3998
3999 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4000 dependency list.
4001 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4002 solib_svr4_fetch_link_map_offsets to
4003 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4004 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4005 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4006 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4007 solib-svr4.o, and solib-legacy.o.
4008 * config/i386/tm-nbsd.h: Include solib.h.
4009
4010 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4011
4012 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4013 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4014 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4015 comment noting that this needs its own target configuration.
4016 * config/i386/nbsd.mt: New file.
4017 * config/i386/nbsdaout.mt: Remove.
4018 * config/i386/nbsdelf.mt: Ditto.
4019 * config/i386/tm-nbsdaout.h: Ditto.
4020
4021 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4022
4023 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4024 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4025 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4026 tdep->sigtramp_end.
4027 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4028 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4029 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4030
4031 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4032
4033 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4034 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4035 * i386-tdep.h (i386bsd_init_abi): New prototype.
4036 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4037 function declaration.
4038 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4039 for NetBSD-a.out or NetBSD-ELF.
4040 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4041 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4042 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4043 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4044 and nbsd-tdep.h.
4045 (i386nbsd_pc_in_sigtramp): New function.
4046 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4047 i386nbsd_pc_in_sigtramp.
4048 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4049 and i386nbsdelf_init_abi OS ABI handlers.
4050 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4051 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4052
4053 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4054
4055 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4056 registers if the target really has them.
4057
4058 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4059
4060 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4061 than nbsd-tdep.h.
4062
4063 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4064
4065 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4066 list.
4067 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4068 (alphanbsd_skip_sigtramp_frame): New functions.
4069 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4070 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4071 to alphanbsd_sigcontext_addr.
4072
4073 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4074
4075 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4076 list.
4077 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4078 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4079 nbsd_pc_in_sigtramp.
4080 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4081 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4082 * nbsd-tdep.c: Include gdb_string.h.
4083 (nbsd_pc_in_sigtramp): New function.
4084 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4085 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4086 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4087 ppcnbsd_pc_in_sigtramp.
4088 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4089 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4090 shnbsd_pc_in_sigtramp.
4091 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4092 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4093 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4094
4095 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4096
4097 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4098 watchpoints to NULL.
4099 (insert_breakpoints): set val field of watchpoints if NULL.
4100
4101
4102 2002-08-29 Jim Blandy <jimb@redhat.com>
4103
4104 * symtab.c (lookup_symbol_aux): In the cases where we find a
4105 minimal symbol of an appropriate name and use its address to
4106 select a symtab to read and search, use `name' (as passed to us)
4107 as the demangled name when searching the symtab's global and
4108 static blocks, not the minsym's name.
4109
4110 2002-08-29 Keith Seitz <keiths@redhat.com>
4111
4112 * stack.c (print_frame_info_base): Always set current_source_symtab
4113 and current_source_line.
4114
4115 2002-08-29 Donn Terry <donnte@microsoft.com>
4116
4117 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4118
4119 2002-08-28 Keith Seitz <keiths@redhat.com>
4120
4121 * stack.c (select_frame): Add FIXME concerning selected-frame
4122 events.
4123 (select_frame_command): Send selected-frame-level-changed
4124 event notification, but only if the level actually changed.
4125 (up_silently_base): Add selected-frame-level-changed event
4126 notification.
4127 (down_silently_base): Likewise.
4128
4129 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4130
4131 * Makefile.in: Update dependencies for all gdb/*.c files.
4132
4133 2002-08-27 Tom Tromey <tromey@redhat.com>
4134
4135 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4136 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4137 Update dependencies.
4138 * i387-tdep.c: Include gdb_string.h.
4139 * osabi.c: Likewise.
4140 * i386-linux-nat.c: Likewise.
4141 * lin-lwp.c: Likewise.
4142 * ax-gdb.c: Likewise.
4143 * signals/signals.c: Likewise.
4144 * jv-valprint.c: Likewise.
4145 * p-lang.c: Likewise.
4146 * c-valprint.c: Likewise.
4147 * cp-abi.c: Likewise.
4148
4149 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4150
4151 * cli/cli-script.h (copy_command_lines): Export.
4152 * breakpoint.c: Include cli/cli-script.h.
4153 * Makefile.in (breakpoint.o): Update dependencies.
4154
4155 2002-08-26 Michael Snyder <msnyder@redhat.com>
4156
4157 * breakpoint.c (insert_breakpoints): Protect all references
4158 to 'process_warning'. Shorten long lines.
4159
4160 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4161
4162 * cli/cli-script.c (copy_command_lines): New function.
4163 * defs.h (copy_command_lines): Export.
4164 * testsuite/gdb.base/commands.exp: New tests for commands
4165 attached to a temporary breakpoint, and for commands that
4166 delete the breakpoint they are attached to.
4167
4168 2002-08-26 Michael Snyder <msnyder@redhat.com>
4169
4170 * breakpoint.c (bpstat_stop_status): Instead of copying the
4171 pointer to the breakpoint commands struct, make a new copy
4172 of the struct and point to that.
4173 (bpstat_clear): Free the commands struct.
4174 (bpstat_clear_actions): Free the commands struct.
4175 (bpstat_do_actions): Free the command actions. Also execute
4176 the local cleanups, instead of deleting them.
4177 (delete_breakpoint): Leave the commands field of the bpstat
4178 chain alone -- it will be freed later.
4179
4180 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4181
4182 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4183 deleted in 2002-08-20 commit. This function is still used by
4184 ppc-linux-nat.c.
4185
4186 2002-08-26 Keith Seitz <keiths@redhat.com>
4187
4188 * gdb-events.sh: Add selected-frame-level-changed event.
4189 * gdb-events.c: Regenerated.
4190 * gdb-events.h: Regenerated.
4191
4192 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4193
4194 Fix PR gdb/393:
4195 * inflow.c (terminal_save_ours): New function to save terminal
4196 settings.
4197 * inferior.h (terminal_save_ours): Declare.
4198 * target.c (debug_to_terminal_save_ours): New function.
4199 (cleanup_target): Defaults to_terminal_save_ours.
4200 (update_current_target): Inherit to_terminal_save_ours.
4201 (setup_target_debug): Set to_terminal_save_ours.
4202 * target.h (target_terminal_save_ours): New to save terminal settings.
4203 (target_ops): New member to_terminal_save_ours.
4204 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4205 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4206 * inftarg.c (init_child_ops): Likewise.
4207 * m3-nat.c (init_m3_ops): Likewise.
4208 * procfs.c (init_procfs_ops): Likewise.
4209 * wince.c (init_child_ops): Likewise.
4210 * win32-nat.c (init_child_ops): Likewise.
4211 * sol-thread.c (init_sol_thread_ops): Likewise.
4212
4213 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4214
4215 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4216 use regcache_* functions.
4217 (i386_gdbarch_init): Set store_return_value instead of
4218 deprecated_store_return_value.
4219
4220 * regcache.c (regcache_raw_write_signed,
4221 regcache_raw_write_unsigned): New functions.
4222 * regcache.h (regcache_raw_write_signed,
4223 regcache_raw_write_unsigned): New prototypes.
4224
4225 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4226
4227 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4228 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4229 source file dependencies. Cleanup corresponding generator rules.
4230
4231 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4232
4233 * regcache.h (register_offset_hack): Declare.
4234 (regcache_cooked_read_using_offset_hack): Declare.
4235 (regcache_cooked_write_using_offset_hack): Declare.
4236
4237 * regcache.c (register_offset_hack): New function.
4238 (regcache_cooked_read_using_offset_hack): New function.
4239 (regcache_cooked_write_using_offset_hack): New function.
4240 (regcache_dump): Check that the registers, according to their
4241 offset, are packed hard against each other.
4242 (cooked_xfer_using_offset_hack): New function.
4243
4244 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4245
4246 * regcache.c (struct regcache_descr): Add field register_type.
4247 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4248 in as a parameter
4249 (init_regcache_descr): Initialize register_type. Pass the descr
4250 to init_legacy_regcache_descr. Use register_type instead of
4251 REGISTER_VIRTUAL_TYPE.
4252 (register_type): New function.
4253 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4254 * regcache.h (register_type): Declare.
4255
4256 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4257
4258 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4259 instead of deprecated_store_return_value. Fix fallout from
4260 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4261
4262 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4263
4264 * regcache.c (max_register_size): New function.
4265 (init_legacy_regcache_descr): Ensure that max_register_size is
4266 large enough for REGISTER_VIRTUAL_SIZE.
4267 * regcache.h (max_register_size): Declare.
4268
4269 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4270
4271 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4272 store_return_value.
4273 (e500_extract_return_value): Change type of valbuf pointer to
4274 void.
4275
4276 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4277
4278 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4279 workaround.
4280
4281 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4282 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4283 long long) to prevent compiler warning on 64-bit systems.
4284
4285 2002-08-23 Andrew Cagney <cagney@redhat.com>
4286
4287 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4288 (DEPRECATED_STORE_RETURN_VALUE): New method.
4289 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4290 * gdbarch.h, gdbarch.c: Re-generate.
4291
4292 * values.c (set_return_value): Pass current_regcache to
4293 STORE_RETURN_VALUE.
4294 * arch-utils.h (legacy_store_return_value): Declare.
4295 * arch-utils.c (legacy_store_return_value): New function.
4296 (legacy_extract_return_value): Update parameters.
4297
4298 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4299 STORE_RETURN_VALUE.
4300 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4301 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4302 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4303 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4304 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4305 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4306 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4307 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4308 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4309 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4310
4311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4312 * i386-tdep.c (i386_extract_return_value): Update.
4313 * arch-utils.c (legacy_extract_return_value): Update.
4314 * frv-tdep.c (frv_gdbarch_init): Update.
4315 * cris-tdep.c (cris_gdbarch_init): Update.
4316 * d10v-tdep.c (d10v_gdbarch_init): Update.
4317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4318 * m68k-tdep.c (m68k_gdbarch_init): Update.
4319 * mcore-tdep.c (mcore_gdbarch_init): Update.
4320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4321 * s390-tdep.c (s390_gdbarch_init): Update.
4322 * sparc-tdep.c (sparc_gdbarch_init): Update.
4323 * sh-tdep.c (sh_gdbarch_init): Update.
4324 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4325 * v850-tdep.c (v850_gdbarch_init): Update.
4326 * avr-tdep.c (avr_gdbarch_init): Update.
4327 * ia64-tdep.c (ia64_gdbarch_init): Update.
4328 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4329 * vax-tdep.c (vax_gdbarch_init): Update.
4330 * alpha-tdep.c (alpha_gdbarch_init): Update.
4331 * arm-tdep.c (arm_gdbarch_init): Update.
4332 * mips-tdep.c (mips_gdbarch_init): Update.
4333 * i386-tdep.c (i386_gdbarch_init): Update.
4334
4335 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4336
4337 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4338 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4339
4340 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4341
4342 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4343 problems.
4344
4345 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4346
4347 * infrun.c (handle_inferior_event): Move a comment outside of a
4348 function call, in order to avoid indent reformatting this part
4349 of the code in an unreadable way.
4350
4351 2002-08-23 Grace Sainsbury <graces@redhat.com>
4352
4353 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4354 when breakpoints fail. Move general breakpoint error messages to
4355 insert_breakpoints.
4356 * breakpoint.c (insert_breakpoints): Change warnings when
4357 breakpoints are nto inserted to specify the type. Remove call to
4358 memory_error when hardware breakpoints can't be inserted. Remove
4359 multiple calls to warning so all messages are sent to the user at
4360 once.
4361 (delete_breakpoints): Make insert error messsages more explicit.
4362
4363 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4364
4365 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4366 gdbserver/ChangeLog.
4367
4368 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4369
4370 * i386-tdep.c: Include "objfiles.h".
4371 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4372 skip_trampoline_code.
4373 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4374 (CPLUS_MARKER): Define to '.'.
4375
4376 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4377 member.
4378 (linux_corefile_thread_callback): Increase args->num_notes.
4379 (linux_make_note_section): Initialize thread_args.num_notes, and
4380 use it to determine whether notes for any threads were created.
4381
4382 2002-08-23 Donn Terry <donnte@microsoft.com>
4383
4384 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4385 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4386 and PCUNKILL.
4387 (write_with_trace): Conditionalize out the switch branch handling
4388 PCSHOLD if the corresponding macro is not defined. Likewise for
4389 PRSABORT and PRSTOP.
4390 This change will be needed by the Interix port.
4391
4392 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4393
4394 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4395 write_register wherever possible instead of manipulating the
4396 register bytes directly.
4397 Assign VALUE_CONTENTS to a variable and use that.
4398 The GPR numbers are now dependent on the architecture.
4399
4400 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4401
4402 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4403 ev_offset fields.
4404 (skip_prologue): Add support for BookE/e500 instructions.
4405 (e500_extract_return_value): New function.
4406 (frame_get_saved_regs): Add support for saving ev registers and
4407 pseudo gpr's.
4408 (e500_store_return_value): New function.
4409 (rs6000_gdbarch_init): Move up default intializations of
4410 deprecated_extract_return_value and store_return_value. Overwrite
4411 init of store_return_value with e500 specific version.
4412 Set extract_return_value for e500.
4413
4414 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4415
4416 * blockframe.c (generic_call_dummy_register_unwind): Use
4417 regcache_cooked_read to catch cases in which the variable is
4418 stored in a pseudo register.
4419
4420 2002-08-22 Andrew Cagney <cagney@redhat.com>
4421
4422 * NEWS: Mention that the i960 has been made obsolete.
4423 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4424 i960-tdep.c
4425 (remote-nrom.o): Obsolete target.
4426 (remote-nindy.o, i960-tdep.o): Ditto.
4427 * remote-nrom.c: Make file obsolete.
4428 * remote-nindy.c, remote-vx960.c: Ditto.
4429 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4430 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4431 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4432 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4433 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4434 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4435 i960-*-vxworks* obsolete.
4436 * MAINTAINERS: Note that the i960 is obsolete.
4437
4438 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4439
4440 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4441 detach to allow reinitialization.
4442
4443 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4444
4445 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4446 attempt).
4447
4448 2002-08-22 Jim Blandy <jimb@redhat.com>
4449
4450 * coffread.c (coff_symfile_read): Don't try to read the line
4451 number table from disk if the image file doesn't have a symbol
4452 table; we'll never actually look at the info anyway, and Windows
4453 ships DLL's with bogus file offsets for the line number data.
4454
4455 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4456
4457 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4458 an e500 executable.
4459
4460 2002-08-21 Michael Snyder <msnyder@redhat.com>
4461
4462 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4463 (MSYMBOL_SIZE): Replace macro with function.
4464 (DEFAULT_MIPS_TYPE): Delete unused macro.
4465 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4466 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4467
4468 2002-08-21 Jim Blandy <jimb@redhat.com>
4469
4470 * valops.c (value_cast): Simplify and correct logic for doing a
4471 static cast from a pointer to a base class to a pointer to a
4472 derived class.
4473
4474 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4475
4476 * infcmd.c (default_print_registers_info): Replace
4477 do_registers_info.
4478 (registers_info): Use gdbarch_print_registers_info instead of
4479 DO_REGISTERS_INFO.
4480 * inferior.h (default_print_registers_info): Replace
4481 do_registers_info.
4482 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4483 (DO_REGISTERS_INFO): Change to a predicate function.
4484 * gdbarch.h, gdbarch.c: Regenerate.
4485
4486 2002-08-21 Keith Seitz <keiths@redhat.com>
4487
4488 * gdb-events.sh: Add target-changed event.
4489 * gdb-events.c: Regenerated.
4490 * gdb-events.c: Regenerated.
4491 * valops.c (value_assign): Add target-changed event notification
4492 to inlval_register, lval_memory, and lval_reg_frame_relative.
4493
4494 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4495
4496 * NEWS: Add an entry regarding the improvement of the next/step
4497 operation on Alpha Tru64 multi-processor machines.
4498
4499 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4500
4501 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4502 directores.
4503 * Makefile.in: Update all _h macro definitions.
4504 * Makefile.in (install-gdbtk): Move to install section.
4505 (rdi-share/libangsd.a): Move to end of file.
4506
4507 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4508
4509 * frame.c (frame_register_unwind): When a register, set addrp to
4510 the register's byte.
4511
4512 2002-08-20 Michael Snyder <msnyder@redhat.com>
4513
4514 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4515 used locally, so move them from the target machine header to here.
4516 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4517 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4518 Make static.
4519 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4520
4521 2002-08-20 Andrew Cagney <cagney@redhat.com>
4522
4523 * NEWS: Mention that the Apollo line was made obsolete.
4524 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4525 m68*-hp-hpux* obsolete.
4526 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4527 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4528 * buildsym.c (make_blockvector): Make static.
4529 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4530 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4531 (ALLDEPFILES): Remove dstread.c.
4532 (dstread.o): Obsolete make rule.
4533 * dstread.c: Makefile obsolete.
4534 * dst.h: Ditto.
4535 * config/m68k/hp300hpux.mt: Ditto.
4536 * config/m68k/hp300hpux.mh: Ditto.
4537 * config/m68k/hp300bsd.mt: Ditto.
4538 * config/m68k/hp300bsd.mh: Ditto.
4539 * config/m68k/apollo68b.mt: Ditto.
4540 * config/m68k/apollo68v.mh: Ditto.
4541 * config/m68k/apollo68b.mh: Ditto.
4542
4543 2002-08-20 Michael Snyder <msnyder@redhat.com>
4544
4545 * mips-tdep.c (mips_in_return_stub): Make static.
4546 (mips_gdbarch_init): Set in_solib_return_trampoline.
4547 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4548
4549 2002-08-20 Michael Snyder <msnyder@redhat.com>
4550
4551 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4552 * gdbarch.c, gdbarch.h: Regenerate.
4553 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4554 Add.
4555 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4556
4557 2002-08-20 Michael Snyder <msnyder@redhat.com>
4558
4559 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4560 (mips_gdbarch_init): Set skip_trampoline_code,
4561 in_solib_call_trampoline.
4562 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4563 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4564
4565 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4566
4567 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4568
4569 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4570 vector type for ev registers.
4571 (e500_pseudo_register_read): New function.
4572 (e500_pseudo_register_write): New function.
4573 (e500_dwarf2_reg_to_regnum): New function.
4574 (PPC_UISA_NOFP_SPRS): New macro.
4575 (PPC_EV_REGS): New macro.
4576 (PPC_GPRS_PSEUDO_REGS): New macro.
4577 (registers_e500): New register set for e500.
4578 (variants): Add e500 variant.
4579 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4580 before setting architectural dependent variations. Initialize ev
4581 registers numbers. Add case for e500 architecture. Set the
4582 number of pseudo registers.
4583
4584 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * rs6000-tdep.c: Clean up comments.
4587
4588 2002-08-20 Andrew Cagney <cagney@redhat.com>
4589
4590 * h8300-tdep.c: Re-indent file.
4591
4592 2002-08-20 Jim Blandy <jimb@redhat.com>
4593
4594 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4595 default for this.
4596
4597 2002-08-20 Keith Seitz <keiths@redhat.com>
4598
4599 * breakpoints.c (watch_command_1): Use internal breakpoint
4600 when setting a watchpoint_scope breakpoint.
4601
4602 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4603
4604 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4605 (build_builtin_type_vec64i): Ditto.
4606 (build_builtin_type_vec128): Ditto.
4607 (build_builtin_type_vec128i): Ditto.
4608
4609 2002-08-19 Michael Snyder <msnyder@redhat.com>
4610
4611 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4612 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4613 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4614 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4615 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4616 CALL_DUMMY_ADDRESS): Delete.
4617 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4618 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4619 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4620 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4621 push_return_address.
4622 (mips_register_raw_size, mips_eabi_use_struct_convention,
4623 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4624 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4625 mips_init_extra_frame_info, mips_eabi_push_arguments,
4626 mips_n32n64_push_arguments, mips_push_return_address,
4627 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4628 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4629
4630 2002-08-19 Michael Snyder <msnyder@redhat.com>
4631
4632 * mips-tdep.c (mips_frame_num_args): New function.
4633 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4634 frame_saved_pc, frame_args_address, frame_locals_address,
4635 frame_num_args, and frame_args_skip.
4636 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4637 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4638 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4639 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4640
4641 2002-08-20 Michael Snyder <msnyder@redhat.com>
4642
4643 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4644 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4645 * mips-tdep.c (mips_store_struct_return): New function.
4646 (mips_extract_struct_value_address): New function.
4647 (mips_gdbarch_init): Set store_struct_return and
4648 extract_struct_value_address.
4649
4650 2002-08-20 David Carlton <carlton@math.stanford.edu>
4651
4652 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4653 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4654 (read_file_scope): Check that line_header is nonzero before
4655 decoding macro information.
4656
4657 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4658
4659 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4660 flag the general-purpose registers as floating-point on targets
4661 that don't support the floating-point registers.
4662
4663 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4664
4665 * rs6000-tdep.c (altivec_register_p): Delete.
4666 (rs6000_do_altivec_registers): Delete.
4667 (rs6000_altivec_registers_info): Delete.
4668 (rs6000_do_registers_info): Delete.
4669 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4670 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4671
4672 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4673
4674 * infcmd.c (do_registers_info): Print vector registers in hex
4675 format only.
4676 (print_vector_info): Check that printing registers
4677 makes sense.
4678 (print_float_info): Ditto.
4679
4680 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4681
4682 * mips-tdep.c (mips_gdbarch_init): Update.
4683 (mips_o32_extract_return_value): Rewrite.
4684 (mips_o32_store_return_value): Rewrite.
4685 (mips_o32_xfer_return_value): New function.
4686 (mips_xfer_register): Tweak debug print message. Allow for
4687 buf_offset when dumping the value transfered.
4688
4689 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4690
4691 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4692 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4693 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4694 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4695 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4696
4697 2002-08-14 Michael Snyder <msnyder@redhat.com>
4698
4699 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4700
4701 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4702
4703 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4704 register.
4705 (P): New macro to define a register as a pseudo register.
4706 (R, R4, R8, R16, FR32, R64, R0): Updated.
4707 (struct variant): Add new fields for number of pseudo registers
4708 and number of total registers.
4709 (tot_num_registers): New macro replacing....
4710 (num_registers): ...deleted macro.
4711 (num_registers): New function.
4712 (num_pseudo_registers): New function.
4713 (variants): Update all variants to intialize new fields correctly.
4714 Postpone initialization of number of pseudo regs and real regs.
4715 (init_variants): New function.
4716 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4717 registers offsets.
4718
4719 2002-08-19 David Carlton <carlton@math.stanford.edu>
4720
4721 * valops.c (search_struct_field): Change error message to treat
4722 return value of 0 from value_static_field as meaning that field is
4723 optimized out.
4724 (value_struct_elt_for_reference): Ditto.
4725 * values.c (value_static_field): Treat an unresolved location the
4726 same as a nonexistent symbol. Fix PR gdb/635.
4727 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4728 enclosed. Fix PR gdb/574.
4729 * MAINTAINERS: Add self to Write After Approval list.
4730
4731 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4732
4733 * mips-tdep.c (mips_xfer_register): New function.
4734 (mips_n32n64_extract_return_value): Rewrite.
4735 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4736 instead of deprecated_extract_return_value.
4737
4738 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4739
4740 * rs6000-tdep.c (TDEP): Delete macro.
4741 (branch_dest): Replace use of TDEP macro with its body.
4742 (rs6000_pop_frame): Ditto.
4743 (rs6000_push_arguments): Ditto.
4744 (rs6000_skip_trampoline_code): Ditto.
4745 (rs6000_frame_saved_pc): Ditto.
4746 (rs6000_frame_chain): Ditto.
4747 (rs6000_register_name): Ditto.
4748 (rs6000_register_byte): Ditto.
4749 (rs6000_register_raw_size): Ditto.
4750 (rs6000_register_virtual_type): Ditto.
4751 (rs6000_register_convertible): Ditto.
4752 (rs6000_convert_from_func_ptr_addr): Ditto.
4753
4754 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4755
4756 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4757 conditionally.
4758 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4759 MIPS_LINUX_JB_ELEMENT_SIZE.
4760 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4761 for MAX_REGISTER_RAW_SIZE arrays.
4762 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4763 MIPS_LINUX_JB_ELEMENT_SIZE.
4764
4765 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4766
4767 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4768
4769 2002-08-19 Aidan Skinner <aidan@velvet.net>
4770
4771 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4772 ada-valprint.c ada-tasks.c.
4773 (YYFILES): Add ada-exp.y.
4774 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4775 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4776 (ada-exp.tab.o): New target.
4777
4778 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4779
4780 * regcache.c (regcache_xfer_part): New function.
4781 (regcache_raw_read_part): New function.
4782 (regcache_raw_write_part): New function.
4783 (regcache_cooked_read_part): New function.
4784 (regcache_cooked_write_part): New function.
4785 * regcache.h (regcache_raw_read_part): Declare.
4786 (regcache_raw_write_part): Declare.
4787 (regcache_cooked_read_part): Declare.
4788 (regcache_cooked_write_part): Declare.
4789
4790 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4791
4792 * remote.c (remote_open_1): Add async_p.
4793 (remote_async_open_1): Delete.
4794 (open_remote_target): Delete.
4795 (remote_open, extended_remote_open): Update calls to remote_open_1.
4796 (remote_async_open, extended_remote_async_open): Call
4797 remote_open_1 instead of remote_async_open_1.
4798
4799 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4800
4801 * blockframe.c: Fix a few coding standard violations.
4802
4803 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4804
4805 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4806 here from ...
4807 * config/i386/tm-i386sco5.h: ... here. File removed.
4808 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4809
4810 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4811 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4812 (TM_FILE): Set to tm-i386.h.
4813 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4814 * config/i386/tm-i386v.h: Remove file.
4815 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4816 instead of "i386/tm-i386v.h".
4817 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4818 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4819 "i386/tm-i386v.h".
4820 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4821 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4822 "i386/tm-i386.h".
4823
4824 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4825
4826 * config/i386/nm-i386v.h: Add protection against
4827 multiple-inclusion.
4828 (i386_register_u_addr): Remove prototype.
4829 (register_u_addr): New prototype.
4830 (REGISTER_U_ADDR): Redefine accordingly.
4831 * i386v-nat.c: Improve several comments.
4832 (i386_register_u_addr): Change signature and rename to
4833 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4834 ubase variable.
4835
4836 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4837
4838 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4839 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4840 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4841 deprecated_extract_return_value.
4842 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4843 rename mips_o32o64_push_arguments.
4844 (mips_gdbarch_init): Update.
4845 (mips_extract_return_value): Delete.
4846 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4847 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4848 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4849 (mips_n32n64_extract_return_value): Clone
4850 mips_extract_return_value.
4851 (mips_store_return_value): Delete.
4852 (mips_o32_store_return_value): Clone mips_store_return_value.
4853 (mips_o64_store_return_value): Clone mips_store_return_value.
4854 (mips_eabi_store_return_value): Clone mips_store_return_value.
4855 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4856
4857 2002-08-18 Aidan Skinner <aidan@velvet.net>
4858
4859 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4860 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4861
4862 2002-08-18 Aidan Skinner <aidan@velvet.net>
4863
4864 * ada-lang.c: Run through gdb_indent.sh.
4865 * ada-lang.h: Run through gdb_indent.sh.
4866 * ada-tasks.c: Run through gdb_indent.sh.
4867 * ada-typeprint.c: Run through gdb_indent.sh.
4868 * ada-valprint.c: Run through gdb_indent.sh.
4869
4870 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4871
4872 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4873 ABI.
4874
4875 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4876
4877 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4878
4879 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4880 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4881
4882 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4883 write_register_gen instead of write_register_bytes.
4884
4885 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4886 i[3456]-*-osf1mk* configurations have been made obsolete.
4887 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4888 i[3456]86-*-osf1mk* hosts obsolete.
4889 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4890 targets obsolete.
4891 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4892 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4893 config/i386/i386m3.mt, config/i386/nm-m3.h,
4894 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4895 config/i386/i386mk.mh, config/i386/i386mk.mt,
4896 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4897 obsolete.
4898 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4899 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4900 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4901
4902 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4903
4904 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4905 (hppa_value_returned_from_stack): Declare.
4906 (hppa_extract_return_value): Declare.
4907 * config/pa/hppa.mt: New file.
4908 * configure.tgt: Recognize hppa*-*-*.
4909 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4910
4911 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4912
4913 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4914 comment.
4915
4916 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4917
4918 * top.c (gdb_rl_operate_and_get_next): Make sure
4919 operate-and-get-next functions correctly even when the history
4920 list is completely filled.
4921
4922 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4923
4924 * MAINTAINERS (Target Instruction Set Architectures): Rename
4925 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4926 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4927 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4928 already listed under Host/Native.
4929
4930 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4931 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4932 mips*-*-*.
4933
4934 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4935
4936 * config/ia64/ia64.mt: New file.
4937 * config/alpha/alpha.mt: New file.
4938 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4939 ia64-linux-gnu. Mention that ia64-elf is broken.
4940 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4941
4942 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4943
4944 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4945 generic_func_frame_valid instead of func_frame_valid.
4946
4947 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4948
4949 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4950 procfs appears to be broken when debugging on multi-processor
4951 machines. So enable software single stepping in order to avoid
4952 using the procfs interface to do next/step operations, using
4953 internal breakpoints instead.
4954
4955 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4956 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4957 make this pc address equal to the value it would have if the
4958 system stepping capability was used. Also set a new flag used
4959 to ensure that we don't readjust the PC one more time later.
4960
4961 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4962 address by DECR_PC_AFTER_BREAK when software single step is
4963 in use for this architecture, as this has already been taken
4964 care of in handle_inferior_event().
4965
4966 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4967
4968 * infrun.c (handle_inferior_event): Minor reformatting, to make
4969 a rather long condition expression easier to read.
4970
4971 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4972
4973 * Makefile.in (gdbtk.o): Move to end of file.
4974 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4975 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4976 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4977 (gdbtk-wrapper.o, gdbres.o): Ditto.
4978
4979 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4980
4981 * Makefile.in (copying.o): Separate out compile rule.
4982 (hpux-thread.o, procfs.o, signals.o): Ditto.
4983 (v850ice.o, z8k-tdep.o): Ditto.
4984 (tui-file.o): Move to TUI section.
4985 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4986 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4987
4988 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4989
4990 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4991 skip_trampoline_code, for better namespace-proofing.
4992
4993 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4994
4995 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4996
4997 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4998
4999 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5000
5001 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5002 signal, check whether we hit a breakpoint before checking for a
5003 single step breakpoint. Otherwise, GDB fails to notice that a
5004 breakpoint has been hit when stepping onto a breakpoint.
5005
5006 2002-08-16 Keith Seitz <keiths@redhat.com>
5007
5008 * gdb-events.sh (clear_gdb_event_hooks): New function.
5009 * gdb-events.c: Regenerate.
5010 * gdb-events.h: Regenerate.
5011
5012 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5013
5014 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5015 not_a_sw_breakpoint.
5016 * breakpoint.h (bpstat_stop_status): Add parameter names.
5017
5018 2002-08-16 Grace Sainsbury <graces@redhat.com>
5019
5020 * remote.c (remote_insert_hw_breakpoint)
5021 (remote_remove_hw_breakpoint): Fix calculation of length field
5022 for Z-packet.
5023
5024 2002-08-15 Michael Snyder <msnyder@redhat.com>
5025
5026 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5027 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5028 (supply_fpregset): Ditto.
5029
5030 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5031 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5032 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5033 (TARGET_READ_SP): Delete.
5034 (DO_REGISTERS_INFO): Delete.
5035 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5036 Delete.
5037 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5038 from macros to functions.
5039
5040 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5041 (mips_register_convertible, mips_register_convert_to_virtual,
5042 mips_register_convert_to_raw): Make static.
5043 (mips_read_sp): New function.
5044 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5045 (mips_do_registers_info): Make static.
5046 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5047 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5048 (mips_register_convert_from_type, mips_register_convert_to_type):
5049 New functions.
5050 (mips_gdbarch_init): Set up function_start_offset,
5051 register_virtual_size, pc_in_sigtramp.
5052
5053 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5054
5055 * infcmd.c (vector_info): New function.
5056 (_initialize_infcmd): Add command "info vector".
5057 (print_vector_info): New function.
5058
5059 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5060 * gdbarch.h, gdbarch.c: Regenerate.
5061
5062 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5063
5064 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5065 ``print_all''. Only print vector registers when ``print_all''.
5066
5067 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5068
5069 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5070 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5071
5072 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5073 Add `args' parameter.
5074 * gdbarch.h, gdbarch.c: Regenerate.
5075
5076 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5077
5078 * infcmd.c (float_info): Call print_float_info.
5079 (print_float_info): New function. By default, print the
5080 floating-point registers.
5081
5082 * arch-utils.h (default_print_float_info): Delete declaration.
5083 * arch-utils.c (default_print_float_info): Delete function.
5084
5085 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5086
5087 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5088 out define.
5089
5090 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5091 FRAME.
5092
5093 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5094 * configure.host: Make i[3456]86-*-aix host obsolete.
5095 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5096 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5097 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5098 config/i386/xm-i386aix.h: Make files obsolete.
5099 * i386aix-nat.c: Make file obsolete.
5100 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5101 (i386aix-nat.o): Make target obsolete.
5102
5103 * config/i386/nm-gnu.h: Removed.
5104 * config/i386/nm-i386gnu.h: New file.
5105 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5106 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5107 Moved here from ...
5108 * config/i386/tm-i386gnu.h: ... here. Removed.
5109 * config/i386/xm-i386gnu.h: Removed.
5110 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5111 (NAT_FILE): Set to nm-i386gnu.h.
5112 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5113 * i386-tdep.c: New file.
5114 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5115 (i386gnu-tdep.o): Specify dependencies.
5116
5117 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5118
5119 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5120 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5121 Adjust a few comments to reflect reality a bit closer.
5122 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5123 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5124 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5125 target_insert_watchpoint, target_remove_watchpoint):
5126 Move defines to ...
5127 * config/i386/nm-i386sco5.h: ... here.
5128 (kernel_u_size): Add prototype. Improve a few comments and add
5129 protection against multiple inclusion.
5130
5131 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5132 out define.
5133
5134 * uw-thread.c (SP_ARG0): Define if not already defined.
5135 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5136
5137 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5138
5139 * config/i386/tm-i386.h: Don't include "regcache.h".
5140
5141 * i387-tdep.h (i387_print_float_info): New prototype.
5142 * i387-tdep.c (print_i387_value, print_i387_ext,
5143 print_i387_status_word, print_i387_control_word): Add `struct
5144 ui_file *' argument and use it for output.
5145 (i387_print_float_info): Renamed from i387_float_info. Add
5146 `struct gdbarch *' and `struct ui_file *' arguments and use the
5147 latter for output.
5148 * i386-tdep.c: Include "i387-tdep.h".
5149 (i386_gdbarch_init): Set print_float_info.
5150 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5151 (FLOAT_INFO): Remove define.
5152
5153 2002-08-13 Michael Snyder <msnyder@redhat.com>
5154
5155 * mips-tdep.c (mips_push_arguments): Rename to
5156 mips_eabi_push_arguments, and tune for EABI.
5157 (MIPS_REGS_HAVE_HOME_P): Delete.
5158 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5159 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5160 Delete references to mips_regs_have_home_p.
5161
5162 2002-08-14 Keith Seitz <keiths@redhat.com>
5163
5164 * Makefile.in (install-gdbtk): Create insight plugin directory.
5165 Install plugins.tcl file.
5166
5167 2002-08-14 Keith Seitz <keiths@redhat.com>
5168
5169 * configure.in: Move SUBDIRS to near top of the file so that
5170 --enable options may add things to it.
5171 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5172 * configure: Regenerate.
5173
5174 2002-08-13 Michael Snyder <msnyder@redhat.com>
5175
5176 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5177 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5178 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5179
5180 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5181
5182 * vax-tdep.c (vax_get_saved_register): Delete function.
5183 (vax_gdbarch_init): Update.
5184 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5185 (ns32k_gdbarch_init): Update.
5186 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5187 (alpha_gdbarch_init): Update.
5188
5189 2002-08-13 Andrew Cagney <cagney@redhat.com>
5190
5191 * regcache.c (init_regcache_descr): Overallocate the
5192 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5193 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5194 nr_raw_registers.
5195 (set_register_cached): Add range checking assertions. Use
5196 current_regcache.
5197
5198 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5199
5200 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5201 numbers for MMX registers.
5202
5203 2002-08-13 Andrew Cagney <cagney@redhat.com>
5204
5205 * i386-tdep.c (i386_gdbarch_init): Use
5206 generic_unwind_get_saved_register.
5207
5208 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5209
5210 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5211 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5212 target vector.
5213 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5214 Delete. Add comment regarding this now-deleted target method.
5215
5216 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5217
5218 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5219 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5220 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5221 real PC and the page number (if it's within the memory bank window).
5222 (m68hc11_pseudo_register_write): Likewise when saving.
5223 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5224 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5225 (m68hc11_register_raw_size): And use 32-bit for it.
5226 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5227 16K memory bank is used by the prog; also use the virtual pc.
5228
5229 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5230
5231 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5232 (m68hc11_gdbarch_init): Install it in gdbarch.
5233 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5234 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5235 (MSYMBOL_SIZE): New for documentation.
5236 (insn_return_kind): Enum to specify how a function returns.
5237 (frame_extra_info): Cleanup and record the return mode.
5238 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5239 register in address computation.
5240 (m68hc11_get_return_insn): New to obtain the return instruction used
5241 by the function.
5242 (m68hc11_frame_init_saved_regs): Take into account the return
5243 instruction used by the function for far and interrupt functions.
5244 (m68hc11_init_extra_frame_info): Take into account page register.
5245 (m68hc11_frame_args_address): Adjust according to the return mode.
5246 (show_regs): Print page register only when it's used.
5247
5248 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5249
5250 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5251 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5252 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5253 registers.
5254 (m68hc11_register_raw_size): Likewise.
5255
5256 2002-08-13 Andrew Cagney <cagney@redhat.com>
5257
5258 * i386-tdep.c (i386_register_name): Handle mmx registers.
5259 (mmx_regnum_p): New function.
5260 (i386_mmx_names): New array.
5261 (mmx_num_regs): New variable.
5262 (i386_pseudo_register_read): New function.
5263 (i386_pseudo_register_write): New function.
5264 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5265
5266 * regcache.c (regcache_raw_read_unsigned): New function.
5267 (regcache_raw_read_signed): New function.
5268 * regcache.h (regcache_raw_read_unsigned): Declare.
5269 (regcache_raw_read_signed): Declare.
5270
5271 2002-08-13 Andrew Cagney <cagney@redhat.com>
5272
5273 * regcache.c (regcache_raw_read_as_address): Delete function.
5274 (regcache_cooked_read_signed): New function.
5275 (regcache_cooked_read_unsigned): New function.
5276 * regcache.h (regcache_cooked_read_signed): Declare.
5277 (regcache_cooked_read_unsigned): Declare.
5278 (regcache_raw_read_as_address): Delete declaration.
5279
5280 * blockframe.c (generic_read_register_dummy): Use
5281 regcache_cooked_read_unsigned.
5282 * i386-tdep.c (i386_extract_struct_value_address): Use
5283 regcache_cooked_read_unsigned.
5284
5285 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5286
5287 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5288 double sizes according to ELF ABI flags.
5289 (gdbarch_tdep): Record elf_flags.
5290
5291 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5292
5293 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5294 (m6812_prolog): They can appear in 68HC12 function prologue.
5295 (m68hc11_frame_chain): Cleanup.
5296
5297 2002-08-12 Andrew Cagney <cagney@redhat.com>
5298
5299 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5300 declarations.
5301 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5302 (i386_linux_register_raw_size): Delete function.
5303 (i386_linux_init_abi): Update.
5304 * i386-tdep.c (i386_register_raw_size): Delete function.
5305 (i386_register_byte): Delete function.
5306 (i386_gdbarch_init): Update.
5307 (i386_register_size): Delete array.
5308 (i386_register_offset): Delete array.
5309
5310 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5311 (REGISTER_RAW_SIZE): Delete macro.
5312 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5313 (REGISTER_BYTE): Delete macro.
5314
5315 2002-08-11 Aidan Skinner <aidan@velvet.net>
5316
5317 * ada-lang.c (ada_lookup_partial_symbol)
5318 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5319 prototype names so that grep ^func works properly.
5320
5321 * ada-lang.c (ada_array_element_type)
5322 (ada_lookup_partial_symbol): Fix typos in parameter list.
5323
5324 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5325 Fix prototype names so that grep ^func works properly.
5326
5327 2002-08-10 Andrew Cagney <cagney@redhat.com>
5328 Elena Zannoni <ezannoni@redhat.com>
5329 Martin M. Hunt <hunt@redhat.com>
5330
5331 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5332 (build_builtin_type_vec128i): Set the vector bit.
5333 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5334 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5335 (build_builtin_type_vec64): New function.
5336 (build_builtin_type_vec64i): New function.
5337 (build_gdbtypes): Initialize builtin_type_vec64 and
5338 builtin_type_vec64i.
5339
5340 2002-08-09 Andrew Cagney <cagney@redhat.com>
5341
5342 * regcache.c (regcache_dump): Compare the register offset
5343 with REGISTER_BYTE.
5344 * arch-utils.c (generic_register_byte): New function.
5345 * arch-utils.h (generic_register_byte): Declare.
5346 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5347 * gdbarch.h, gdbarch.c: Regenerate.
5348
5349 2002-08-09 Andrew Cagney <cagney@redhat.com>
5350
5351 * regcache.c: Include "gdbcmd.h"
5352 (_initialize_regcache): Add commands "maintenance print
5353 registers", "maintenance print raw-registers" and "maintenance
5354 print cooked-registers".
5355 (enum regcache_dump_what): Define.
5356 (dump_endian_bytes): New function.
5357 (regcache_dump): New function.
5358 (regcache_print): New function.
5359 (maintenance_print_registers): New function.
5360 (maintenance_print_raw_registers): New function.
5361 (maintenance_print_cooked_registers): New function.
5362 * Makefile.in (regcache.o): Update dependencies.
5363
5364 2002-08-09 Michael Snyder <msnyder@redhat.com>
5365
5366 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5367 (mips_push_arguments): Correct some comments. Use paddr_nz
5368 for printing addresses in debug output. Replace static
5369 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5370 (mips_n32n64_push_arguments): New function, cloned from
5371 mips_push_arguments and tuned for the n32/n64 ABI.
5372 (mips_push_register): Buffer needs dynamic allocation.
5373 (mips_print_register): Ditto.
5374 (do_gp_register_row): Ditto.
5375 (mips_store_return_value): Ditto.
5376 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5377
5378 2002-08-09 Don Howard <dhoward@redhat.com>
5379
5380 * memattr.c (mem_info_command): Print special case of upper bound
5381 as max CORE_ADDR + 1.
5382
5383 2002-08-08 Michael Snyder <msnyder@redhat.com>
5384
5385 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5386 returns structs by ref if they're too big to fit in two registers.
5387
5388 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5389
5390 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5391 saved regs value.
5392 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5393 mips_find_saved_regs().
5394 (mips_pop_frame): Likewise.
5395
5396 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5397
5398 * blockframe.c (frame_saved_regs_register_unwind): Revise
5399 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5400 frames are in use.
5401
5402 2002-08-09 Grace Sainsbury <graces@redhat.com>
5403
5404 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5405 T-packets; the 'a' is not taken as a register number.
5406 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5407 (remote_stopped_data_address): New functions; add to target
5408 vector.
5409 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5410 prototypes to match other implementations of this
5411 function. replace integer argument with pointer -- the length
5412 field in the Z-packet is the length of what is pointed to or 1 if
5413 pointer is null. Add to target vector.
5414 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5415 target vector.
5416
5417 From Mark Salter:
5418 * remote.c (remote_wait): Add support to extract optional
5419 watchpoint information from T-packet. Ignore unrecognized
5420 optional info in T-packet.
5421 (remote_async_wait): Ditto.
5422
5423 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5424
5425 * cli/cli-dump.c: Change fopen modes to use binary open modes
5426 as defined in include/fopen-bin.h throughout.
5427
5428 2002-08-08 Michael Snyder <msnyder@redhat.com>
5429
5430 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5431
5432 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5433
5434 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5435 assertion failure by returning early after a warning.
5436
5437 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5438
5439 * mips-tdep.c (mips_find_saved_regs): Make static.
5440 (mips_frame_init_saved_regs): New function.
5441 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5442 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5443 (mips_find_saved_regs): Delete declaration.
5444
5445 2002-08-08 Grace Sainsbury <graces@redhat.com>
5446
5447 * remote.c (remote_wait, remote_async_wait): Change
5448 thread_num from int to ULONGEST.
5449 (unpack_varlen_hex): Change result parameter from
5450 int * to ULONGEST *.
5451
5452 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5453
5454 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5455 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5456 powerpc*-*-*.
5457 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5458
5459 2002-08-08 Andrew Cagney <cagney@redhat.com>
5460
5461 * gcore.c (override_derive_stack_segment): Delete variable.
5462 (preempt_derive_stack_segment): Delete function.
5463 (derive_stack_segment): Delete function.
5464 (default_derive_stack_segment): Renamed to derive_stack_segment.
5465 (override_derive_heap_segment): Delete variable.
5466 (preempt_derive_heap_segment): Delete function.
5467 (derive_heap_segment): Delete function.
5468 (default_derive_heap_segment): Rename to derive_heap_segment.
5469
5470 2002-08-06 Michael Snyder <msnyder@redhat.com>
5471
5472 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5473 * mips-tdep.c (mips_EABI_use_struct_convention,
5474 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5475 New functions. (mips_use_struct_convention): Delete.
5476 (mips_gdbarch_init): set use_gdbarch_convention.
5477
5478 2002-08-06 Michael Snyder <msnyder@redhat.com>
5479
5480 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5481 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5482 mips_o32_reg_struct_has_addr): New functions.
5483 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5484
5485 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5486
5487 * regcache.c (pseudo_register): Delete function.
5488 (fetch_register): Delete function.
5489 (store_register): Delete function.
5490 (regcache_raw_read, legacy_read_register_gen): Use
5491 target_fetch_registers instead of fetch_register.
5492 (legacy_write_register_gen, regcache_raw_write): Use
5493 target_store_register instead of store_register.
5494 (write_register_bytes): Ditto.
5495
5496 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5497 (STORE_PSEUDO_REGISTER): Delete.
5498 * gdbarch.h, gdbarch.c: Regenerate.
5499
5500 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5501
5502 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5503 write dump file binary.
5504
5505 2002-08-05 Michael Snyder <msnyder@redhat.com>
5506
5507 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5508 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5509 (mips_gdbarch_init): Set N32 target to be mips64.
5510
5511 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5512
5513 * frame.c (find_saved_register): Break out of loop once saved
5514 register address is found. Don't mention sparc in loop comment
5515 anymore.
5516
5517 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5518
5519 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5520 mips_default_saved_regsize to 8.
5521
5522 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5523
5524 * gcore.c: Do not include <sys/procfs.h>.
5525 * Makefile.in (gcore.o): Update dependencies.
5526
5527 2002-08-06 Andrew Cagney <cagney@redhat.com>
5528
5529 * configure.tgt: Make arc-*-* obsolete.
5530 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5531 * MAINTAINERS: Make arc-elf obsolete.
5532 * arc-tdep.c: Make file obsolete.
5533 * config/arc/arc.mt: Ditto.
5534 * config/arc/tm-arc.h: Ditto.
5535
5536 2002-08-05 Theodore A. Roth <troth@verinet.com>
5537
5538 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5539
5540 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5541
5542 * mcore-tdep.c (mcore_gdbarch_init): Use
5543 generic_unwind_get_saved_register instead of
5544 generic_get_saved_register.
5545 * v850-tdep.c (v850_gdbarch_init): Ditto.
5546 * frv-tdep.c (frv_gdbarch_init): Ditto.
5547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5548 * s390-tdep.c (s390_gdbarch_init): Ditto.
5549 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5550 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5551 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5552
5553 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5554
5555 * objfiles.h: Add missing #include "symfile.h"
5556
5557 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5558
5559 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5560
5561 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5562 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5563 of FIELD_BITSIZE.
5564
5565 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5566
5567 * NEWS: Cleanup and nitpick.
5568
5569 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5570
5571 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5572
5573 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5574
5575 * Makefile.in (gdbtk-bp.o): Update dependencies.
5576 (gdbtk-register.o): Ditto.
5577 (gdbtk-varobj.o): Ditto.
5578
5579 2002-08-03 Andrew Cagney <cagney@redhat.com>
5580
5581 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5582 m68hc11_fetch_pseudo_register.
5583 (m68hc11_pseudo_register_write): Replace
5584 m68hc11_store_pseudo_register.
5585 (m68hc11_gdbarch_init): Update.
5586
5587 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5588
5589 * gdbarch.sh: Include "gdb_string.h".
5590 * gdbarch.c: Regenerate.
5591
5592 * regcache.c: Include "gdb_string.h".
5593 * ax-general.c: Ditto.
5594 * varobj.c: Ditto.
5595 * std-regs.c: Ditto.
5596 * fbsd-proc.c: Ditto.
5597 * thread.c: Ditto.
5598
5599 * Makefile.in (regcache.o): Update dependencies.
5600 (thread.o, gdbarch.o): Ditto.
5601 (ax-general.o, gdbarch.o): Ditto.
5602 (varobj.o, std-regs.o): Ditto.
5603 (fbsd-proc.o): Specify dependencies.
5604
5605 2002-08-02 Andrew Cagney <cagney@redhat.com>
5606
5607 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5608 regnum.
5609 (regcache_cooked_write): Ditto.
5610
5611 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5612
5613 * regcache.c (regcache_cooked_read): New function.
5614 (regcache_cooked_write): New function.
5615 (read_register_gen): Rewrite using regcache_cooked_read.
5616 (write_register_gen): Rewrite using regcache_cooked_write.
5617
5618 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5619 Declare.
5620
5621 2002-08-02 Andrew Cagney <cagney@redhat.com>
5622
5623 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5624 Replace the architecture methods register_read and register_write.
5625 * gdbarch.h, gdbarch.c: Regenerate.
5626 * regcache.c (init_regcache_descr): Update.
5627 (read_register_gen): Update.
5628 (write_register_gen): Update.
5629 (supply_register): Update comment.
5630
5631 * sh-tdep.c (sh_gdbarch_init): Update.
5632 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5633 `regcache' and `gdbarch' parameters. Make `buffer' a void
5634 pointer. Update code.
5635 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5636 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5637 void pointer. Update code.
5638 (sh64_register_write): Delete.
5639 (sh4_register_read): Delete.
5640 (sh64_register_read): Delete.
5641 (sh4_register_write): Delete.
5642 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5643 void pointer, `to' parameter a void pointer.
5644 (sh_sh64_register_convert_to_raw): Ditto.
5645
5646 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5647
5648 * mips-tdep.c (mips_register_virtual_type): Use architecture
5649 invariant return values.
5650
5651 2002-08-01 Andrew Cagney <cagney@redhat.com>
5652
5653 * linux-proc.c: Include "gdb_string.h".
5654 * Makefile.in (linux-proc.o): Update dependency list.
5655
5656 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5657
5658 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5659 comment.
5660
5661 2002-08-01 Grace Sainsbury <graces@redhat.com>
5662
5663 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5664 to_insert_watchpoint, to_remove_watchpoint,
5665 to_stopped_by_watchpoint, to_stopped_data_address,
5666 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5667 target vecctor. Define their corresponding macros so they call
5668 them.
5669
5670 * target.c: Add default and debug versions of for
5671 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5672 to_insert_watchpoint, to_remove_watchpoint,
5673 to_stopped_by_watchpoint, to_stopped_data_address,
5674 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5675
5676 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5677
5678 * mips-tdep.c (mips_register_virtual_type): New function.
5679 (mips_gdbarch_init): Register mips_register_virtual_type()
5680 with gdbarch machinery.
5681 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5682 this file instead of tm-bigmips.h.
5683 (MIPS_REGSIZE): Delete this macro.
5684 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5685 multiarch version in mips-tdep.c will be found.
5686
5687 2002-08-01 Andrew Cagney <cagney@redhat.com>
5688
5689 * NEWS: Menion that CHILL has been made obsolete.
5690
5691 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5692 * stabsread.c (read_range_type): Ditto.
5693 * gdbtypes.h: Ditto.
5694 * language.c (binop_type_check): Ditto.
5695 (binop_result_type): Ditto.
5696 (integral_type): Ditto.
5697 (character_type): Ditto.
5698 (string_type): Ditto.
5699 (boolean_type): Ditto.
5700 (structured_type): Ditto.
5701 (lang_bool_type): Ditto.
5702 (binop_type_check): Ditto.
5703 * language.h (_LANG_chill): Ditto.
5704 * dwarfread.c (set_cu_language): Ditto.
5705 * dwarfread.c (CHILL_PRODUCER): Ditto.
5706 * dwarfread.c (handle_producer): Ditto.
5707 * expression.h (enum exp_opcode): Ditto.
5708 * eval.c: Ditto for comments.
5709 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5710 * expprint.c (print_subexp): Ditto.
5711 (print_subexp): Ditto.
5712 * valops.c (value_cast): Ditto.
5713 (search_struct_field): Ditto.
5714 * value.h (COERCE_VARYING_ARRAY): Ditto.
5715 * symfile.c (init_filename_language_table): Ditto.
5716 (add_psymbol_with_dem_name_to_list): Ditto.
5717 * valarith.c (value_binop): Ditto.
5718 (value_neg): Ditto.
5719 * valops.c (value_slice): Ditto.
5720 * symtab.h (union language_specific): Ditto.
5721 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5722 (SYMBOL_DEMANGLED_NAME): Ditto.
5723 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5724 * defs.h (enum language): Ditto.
5725 * symtab.c (got_symtab): Ditto.
5726 * utils.c (fprintf_symbol_filtered): Ditto.
5727
5728 * ch-typeprint.c: Make file obsolete.
5729 * ch-valprint.c: Make file obsolete.
5730 * ch-lang.h: Make file obsolete.
5731 * ch-exp.c: Make file obsolete.
5732 * ch-lang.c: Make file obsolete.
5733
5734 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5735 CHILL_LIB.
5736 (TARGET_FLAGS_TO_PASS): Ditto.
5737 (CHILLFLAGS): Obsolete.
5738 (CHILL): Obsolete.
5739 (CHILL_FOR_TARGET): Obsolete.
5740 (CHILL_LIB): Obsolete.
5741 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5742 ch-valprint.c.
5743 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5744 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5745 ch-lang.o.
5746 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5747 targets.
5748
5749 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5750
5751 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5752 This does not change anything at the moment, but will be helpful
5753 later when full Ada support is integrated.
5754
5755 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5756
5757 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5758 help message.
5759
5760 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5761
5762 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5763 and save it in a local variable. Use variable in later test.
5764
5765 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5766
5767 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5768 test. (Thanks to Daniel Jacobowitz.)
5769
5770 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5771
5772 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5773 (mips_abi_strings): Add "n64".
5774 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5775
5776 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5777
5778 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5779 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5780
5781 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5782
5783 * utils.c (host_pointer_to_address, address_to_host_pointer):
5784 Use gdb_assert() instead of explicit call to internal_error().
5785
5786 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5787
5788 * Makefile.in (rs6000-nat.o): Update dependencies.
5789
5790 From Nicholas Duffek:
5791 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5792 (aix-thread.o): New rule.
5793 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5794 * config/powerpc/aix432.mh: New file.
5795
5796 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5797
5798 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5799 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5800 (fetch_core_registers, ppc_linux_supply_gregset)
5801 (ppc_linux_supply_fpregset): New functions.
5802 (ppc_linux_regset_core_fns): New.
5803 (_initialize_ppc_linux_tdep): Call add_core_fns.
5804 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5805 and ppc_linux_supply_gregset.
5806 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5807 (supply_fpregset): Call ppc_linux_supply_fpregset.
5808 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5809 corelow.o.
5810 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5811
5812 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5813
5814 * symtab.c (lookup_symbol): Demangle before lowercasing.
5815
5816 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5817
5818 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5819 declaration.
5820 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5821 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5822 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5823 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5824 "gdb_string.h".
5825 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5826 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5827 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5828 (avr-tdep.o, mon960-rom.o): Ditto.
5829 (aout_stabs_gnu_h): Define.
5830 (symtab_h): Remove $(gdb_obstack_h).
5831
5832 2002-07-30 Jim Blandy <jimb@redhat.com>
5833
5834 Patch from David Carlton <carlton@math.stanford.edu>:
5835 * gdbinit.in: Move the `dir' commands that add GDB's own source
5836 directory to the search path to the end, so that the `gdb' source
5837 directory will be searched first.
5838
5839 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5840
5841 * gdb_obstack.h: New file.
5842 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5843 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5844 * objfiles.h: Include "gdb_obstack.h".
5845 * Makefile.in (gdb_obstack_h): Define.
5846 (symtab_h): Add $(gdb_obstack_h).
5847 (objfiles_h): Add $(gdb_obstack_h).
5848
5849 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5850 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5851 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5852 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5853 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5854 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5855 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5856 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5857
5858 * Makefile.in (bcache.o): Update dependencies.
5859 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5860 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5861 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5862 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5863 (stabsread.o, symfile.o, symmisc.o): Ditto.
5864 (symtab.o, typeprint.o, macroexp.o): Ditto.
5865 (macrotab.o, mdebugread.o): Ditto.
5866 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5867 (coff_ecoff_h, aout_aout64_h): Define.
5868 (aout_stabs_gnu_h, libaout_h): Define.
5869
5870 2002-07-29 Andrew Cagney <cagney@redhat.com>
5871
5872 * regcache.c (struct regcache_descr): Rename nr_registers to
5873 nr_cooked_registers. Revise comments describing the structure
5874 member fields.
5875 (init_regcache_descr): Update.
5876 (init_legacy_regcache_descr): Update.
5877 (read_register_gen, write_register_gen): When a cooked register in
5878 the raw register range, directly access the value from the raw
5879 register cache.
5880
5881 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5882
5883 * z8k-tdep.c: Do not include "obstack.h".
5884 * h8300-tdep.c, h8500-tdep.c: Ditto.
5885 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5886 * valprint.c, v850-tdep.c: Ditto.
5887 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5888 * mn10200-tdep.c: Ditto.
5889
5890 * Makefile.in (z8k-tdep.o): Update dependencies.
5891 (m68hc11-tdep.o, valprint.o): Ditto.
5892 (v850-tdep.o, d10v-tdep.o): Ditto.
5893 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5894 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5895 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5896 (sh_opc_h, gdb_sim_sh_h): Define.
5897 (elf_sh_h, elf_bfd_h): Define.
5898 (opcode_m68hc11_h): Define.
5899 (OPCODES_SRC, OPCODES_DIR): define.
5900 (OPCODES): Use $(OPCODES_DIR).
5901 (gdb_sim_d10v_h): Rename sim_d10v_h.
5902 (gdb_sim_arm_h): Rename sim_arm_h.
5903
5904 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5905
5906 * utils.c (host_pointer_to_address, address_to_host_pointer):
5907 Change internal_error() message to indicate function responsible
5908 for the error.
5909
5910 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5911
5912 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5913 calls to local_hex_string_custom().
5914
5915 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5916
5917 * irix5-nat.c: Move IRIX shared library support from here...
5918 * solib-irix.c: ...to here. Revised substantially to work with
5919 generic solib framework.
5920
5921 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5922 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5923 * mips-irix-tdep.c: New file.
5924
5925 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5926 (mips-irix-tdep.o, solib-irix.o): New rules.
5927 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5928 solib-irix.o.
5929 * config/mips/irix6.mt (TDEPFILES): Likewise.
5930 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5931
5932 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5933
5934 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5935 disabled (via ``#if 0'') includes.
5936
5937 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5938
5939 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5940 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5941 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5942 Add support for the fpscr register.
5943 * rs6000-nat.c (regmap, fetch_inferior_registers)
5944 (store_inferior_registers, fetch_core_registers): Likewise.
5945
5946 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5947
5948 * rs6000-nat.c (language.h): Include.
5949 (special_regs): Delete this array.
5950 (regmap): New function.
5951 (fetch_register, store_register): Use regmap() to map gdb
5952 register numbers to ptrace register numbers. Also, use
5953 outputs from regmap() to make decisions regarding type of
5954 ptrace() call to make. In particular, don't compare against
5955 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5956 (fetch_inferior_registers, store_inferior_registers): Where
5957 possible, obtain register numbers from tdep struct. Don't
5958 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5959 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5960 (LAST_UISA_SP_REGNUM): Delete.
5961
5962 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5963
5964 * rs6000-nat.c (ppc-tdep.h): Include.
5965 (fetch_registers, store_register, fetch_core_registers): Don't
5966 access registers[] directly. Instead, use supply_register() or
5967 regcache_collect() as appropriate.
5968 (find_toc_address): Format hex address with local_hex_string().
5969
5970 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5971
5972 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5973 bfd/elf32-frv.c.
5974
5975 2002-07-24 Tom Tromey <tromey@redhat.com>
5976
5977 * jv-exp.y: Marked all strings with _().
5978 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5979 internal_error.
5980 (MethodInvocation, CastExpression, parse_number, yyerror,
5981 java_type_from_name, push_expression_name, yylex): Typo fixes.
5982
5983 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5984
5985 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5986 (tee_file_flush, tee_file_write, tee_file_fputs)
5987 (tee_file_isatty): New.
5988 * ui-file.h (tee_file_new): Add prototype.
5989
5990 2002-07-24 Aidan Skinner <aidan@velvet.net>
5991
5992 * ada-lang.c: Change k&r style function definitions to prototyped
5993 form.
5994 * ada-typeprint.c: Change k&r style function definitions to prototyped
5995 form.
5996 * ada-valprint.c: Change k&r style function definitions to prototyped
5997 form.
5998
5999 2002-07-24 Andrew Cagney <cagney@redhat.com>
6000
6001 * README: Remove reference to remote-bug.
6002 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6003 remote-bug.c.
6004 (m88k-nat.o): Delete rule.
6005 (m88k-tdep.o): Delete rule.
6006 (remote-bug.o): Delete rule.
6007 * MAINTAINERS: Mark as obsolete.
6008 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6009 * m88k-tdep.c: Make file obsolete.
6010 * config/m88k/m88k.mh: Ditto.
6011 * config/m88k/delta88v4.mh: Ditto.
6012 * config/m88k/delta88v4.mt: Ditto.
6013 * config/m88k/delta88.mt: Ditto.
6014 * config/m88k/delta88.mh: Ditto.
6015 * remote-bug.c: Ditto.
6016 * config/m88k/tm-delta88.h: Ditto.
6017 * config/m88k/nm-delta88v4.h: Ditto.
6018 * config/m88k/xm-delta88.h: Ditto.
6019 * config/m88k/xm-dgux.h: Ditto.
6020 * config/m88k/tm-m88k.h: Ditto.
6021 * config/m88k/nm-m88k.h: Ditto.
6022 * config/m88k/tm-delta88v4.h: Ditto.
6023 * m88k-nat.c: Ditto.
6024 * cxux-nat.c: Ditto.
6025 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6026 and m88*-*-* obsolete.
6027 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6028 m88*-*-* obsolete.
6029
6030 2002-07-24 Andrew Cagney <cagney@redhat.com>
6031
6032 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6033 constant. Same for local pointer variables.
6034 (extract_signed_integer): Ditto.
6035 * defs.h (extract_unsigned_integer): Update.
6036 (extract_signed_integer): Update.
6037
6038 2002-07-24 Andrew Cagney <cagney@redhat.com>
6039
6040 * regcache.c (regcache_raw_write): Change buf parameter to a
6041 constant void pointer.
6042 (regcache_raw_read): Change buf parameter to a void pointer.
6043 (legacy_write_register_gen): Change myaddr parameter a constant
6044 void pointer.
6045 (supply_register): Change val parameter to a const void pointer.
6046 * regcache.h (regcache_raw_write): Update declaration.
6047 (regcache_raw_read): Update declaration.
6048 (supply_register): Update declaration.
6049
6050 2002-07-24 Tom Tromey <tromey@redhat.com>
6051
6052 * defs.h (gdb_readline_wrapper): Declare.
6053 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6054 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6055 * top.c (gdb_readline_wrapper): New function.
6056 (command_line_input): Use it.
6057
6058 2002-07-24 Andrew Cagney <cagney@redhat.com>
6059
6060 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6061 regcache_read and regcache_write.
6062 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6063 * regcache.c: Update.
6064 * sh-tdep.c (sh64_push_arguments): Update comment.
6065 (sh_pseudo_register_read): Update.
6066 (sh_pseudo_register_write): Update.
6067 (sh4_register_read): Update.
6068 (sh4_register_write): Update.
6069 (sh64_pseudo_register_read): Update.
6070 (sh64_pseudo_register_write): Update.
6071 (sh64_register_read): Update.
6072 (sh64_register_write): Update.
6073 * i386-tdep.c (i386_extract_return_value): Update.
6074 (i386_extract_struct_value_address): Update.
6075 (i386_extract_return_value): Update.
6076 * blockframe.c (generic_read_register_dummy): Update.
6077 (generic_call_dummy_register_unwind): Update
6078 * infrun.c (write_inferior_status_register): Update.
6079
6080 2002-07-23 Jim Blandy <jimb@redhat.com>
6081
6082 * parser-defs.h (expression_context_pc): Make this extern.
6083 (Thanks to Michael Snyder.)
6084
6085 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6086
6087 GDB 5.2.1 released from 5.2 branch.
6088 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6089 * README: Update to mention 5.2.1.
6090
6091 2002-07-23 Mark Salter <msalter@redhat.com>
6092
6093 * remote.c (remote_read_bytes): Fix check for error.
6094
6095 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6096
6097 * aix-thread.c (language.h): Include.
6098 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6099 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6100 Print newlines at end of debug messages.
6101 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6102 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6103
6104 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6105
6106 * aix-thread.c (ppc-tdep.h): Include.
6107 (special_register_p): New function.
6108 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6109 (store_regs_user_thread): Use register number information from
6110 gdbarch_tdep struct instead of hardcoded offsets relative to
6111 FIRST_UISA_SP_REGNUM.
6112 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6113 special_register_p() instead of using FPLAST_REGNUM and
6114 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6115 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6116 will be MQ's register number.
6117
6118 2002-07-22 Michael Snyder <msnyder@redhat.com>
6119
6120 * aix-thread.c (ops): Rename to aix_thread_ops.
6121 (base_ops): Rename to base_target.
6122 (ops_attach): Rename to aix_thread_attach.
6123 (ops_detach): Rename to aix_thread_detach.
6124 (ops_resume): Rename to aix_thread_detach.
6125 (ops_wait): Rename to aix_thread_wait.
6126 (ops_kill): Rename to aix_thread_kill.
6127 (init_ops): Rename to init_aix_thread_ops.
6128 (ops_fetch_register): Rename to aix_thread_fetch_register.
6129 (ops_store_register): Rename to aix_thread_store_register.
6130 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6131 (ops_thread_alive): Rename to aix_thread_thread_alive.
6132 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6133 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6134 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6135 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6136 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6137 (store_regs_lib): Rename to store_regs_user_thread.
6138 (store_regs_kern): Rename to store_regs_kernel_thread.
6139
6140 2002-07-22 Michael Snyder <msnyder@redhat.com>
6141
6142 * aix-thread.c (ops_prepare_to_store): Eliminate.
6143 (init_ops): Don't initialize ops.prepare_to_store.
6144 (store_regs_kern): Pre-fetch register buffers from child,
6145 because some registers may not be in the cache. Copy
6146 regs from register cache only if they are cached.
6147 (store_regs_lib): Copy regs from register cache only
6148 if they are cached.
6149 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6150 fill_gprs64): Ditto.
6151
6152 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6153
6154 * aix-thread.c (gdb_assert.h): Include.
6155 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6156 register sizes (from register cache) match size of buffer holding
6157 register data.
6158 (fill_sprs32): Change parameter types to match those in the ptrace()
6159 buffer.
6160 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6161 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6162
6163 2002-07-22 Michael Snyder <msnyder@redhat.com>
6164
6165 * aix-thread.c (supply_sprs64): Cosmetic change.
6166 (supply_sprs32): Cosmetic change.
6167 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6168 (fill_sprs64): Use regcache_collect instead of read_register.
6169 (store_regs_lib): Use regcache_collect instead of
6170 read_register. Use fill_sprs32 instead of fill_sprs64,
6171 if debugging a 32-bit architecture.
6172 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6173 out of the register cache, instead of passing a pointer into
6174 the register cache directly to ptrace. Use regcache_collect
6175 insteaad of read_register.
6176 (ops_prepare_to_store): Use target_read_registers instead
6177 of read_register_bytes.
6178
6179 2002-07-20 Aidan Skinner <aidan@velvet.net>
6180
6181 * MAINTAINERS: Add self under write after approval.
6182
6183 2002-07-20 Aidan Skinner <aidan@velvet.net>
6184
6185 * ada-tasks.c: Change k&r style function definitions to prototyped
6186 form.
6187
6188 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6189
6190 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6191 * x86-64-tdep.c: Include "objfiles.h".
6192 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6193 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6194
6195 2002-07-17 Michal Ludvig <michal@suse.cz>
6196
6197 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6198 (update_context): Initialise cfa variable.
6199
6200 2002-07-17 Michael Snyder <msnyder@redhat.com>
6201
6202 * aix-thread.c: Shorten some long lines.
6203 Bring comments into line with code spec.
6204
6205 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6206
6207 * infrun.c: Re-indent using gdb_indent.sh.
6208
6209 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6210
6211 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6212 Leave the indentation temporarily untouched, to minimize the diffs.
6213
6214 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6215
6216 * stabsread.c: Make os9k sections of the code obsolete,
6217 for real this time.
6218 * stabsread.h: Make os9k sections of the code obsolete.
6219
6220 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6221
6222 * linux-low.c (regsets_store_inferior_registers): Add free()
6223 at the end of a loop to prevent memory leak.
6224 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6225 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6226 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6227 line a comment.
6228 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6229
6230 2002-07-17 Jim Blandy <jimb@redhat.com>
6231
6232 * macrocmd.c (info_macro_command): Remove newline from error
6233 message.
6234
6235 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6236
6237 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6238 (sh_gdbarch_init): Use it for sh-dsp.
6239
6240 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6241
6242 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6243 64-bit DWARF2 format.
6244
6245 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6246
6247 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6248 <sys/proc.h> when not available.
6249
6250 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6251
6252 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6253 * stabsread.c: Make os9k sections of the code obsolete.
6254 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6255 * config/i386/i386os9k.mt: Make file obsolete.
6256 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6257 (COMMON_OBS): Remove os9kread.o
6258 (SFILES): Remove os9kread.c.
6259 (os9kread.o, remote-os9k.o): Make target obsolete.
6260 * remote-os9k.c: Make file obsolete.
6261 * os9kread.c: Make file obsolete.
6262 * Makefile.in
6263
6264 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6265
6266 * NEWS: Mention that the FR30 has been made obsolete.
6267 * fr30-tdep.c: Make file obsolete.
6268 * config/fr30/tm-fr30.h: Ditto.
6269 * config/fr30/fr30.mt: Ditto.
6270 * configure.tgt: Make fr30-*-elf obsolete.
6271 * MAINTAINERS: Make fr30-elf obsolete.
6272
6273 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6274
6275 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6276 found is not inside a section.
6277
6278 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6279
6280 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6281 strerror().
6282 (pdc_realloc): Use xrealloc() instead of realloc().
6283
6284 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6285
6286 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6287 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6288 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6289 macros.
6290
6291 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6292
6293 * aix-thread.c (ptrace_check): Eliminate goto.
6294 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6295 problem.
6296
6297 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6298
6299 * aix-thread.c (gdbcmd.h): Include.
6300 (DEBUG, DBG, DBG2, dbg): Eliminate.
6301 (debug_aix_thread): New static global.
6302 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6303 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6304 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6305 invocations to DBG and DBG2 macros to test against
6306 ``debug_aix_thread'' and call fprintf_unfiltered().
6307 (_initialize_aix_thread): Add new command "set debug aix-thread".
6308
6309 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6310
6311 From Gerhard Tonn <TON@de.ibm.com>:
6312 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6313 instead of supply_register.
6314
6315 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6316
6317 * dwarf2cfi.c: Include "gdb_assert.h".
6318 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6319 non-NULL.
6320 (update_context): Do not use __func__. Add missing ``break''.
6321 (update_context): Do not use __func__.
6322
6323 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6324
6325 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6326 and its setting. Set gdbarch instruction printing functions
6327 directly. For non-rs6000 case use new function
6328 gdb_print_insn_powerpc.
6329 (gdb_print_insn_powerpc): New function.
6330
6331 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6332
6333 * NEWS: Mention that the d30v has been marked obsolete.
6334 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6335 * configure.tgt: Mark d30v-*-* as obsolete.
6336 * d30v-tdep.c: Mark file as obsolete.
6337 * config/d30v/d30v.mt: Ditto.
6338 * config/d30v/tm-d30v.h: Ditto.
6339
6340 2002-07-13 Aidan Skinner <aidan@velvet.net>
6341
6342 * ada-tasks.c (add_task_entry): replace calls to
6343 malloc() with xmalloc
6344 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6345
6346 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6347 ada_finish_decode_line_1, all_sals_for_line
6348 ada_breakpoint_rewrite): replace calls to free() with xfree()
6349
6350 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6351
6352 From Nicholas Duffek (with minor changes by Martin Hunt,
6353 Louis Hamilton, and Kevin Buettner):
6354 * aix-thread.c: New file.
6355
6356 2002-07-12 Petr Sorfa <petrs@caldera.com>
6357
6358 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6359 complaint for invalid attribute class or form.
6360 (read_func_scope): DW_AT_frame_base
6361 better handling of DW_AT_block*.
6362 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6363 better handling of DW_AT_block*.
6364 (read_common_block): DW_AT_location
6365 better handling of DW_AT_block*.
6366 (read_partial_die): DW_AT_location better handling
6367 of DW_AT_block*.
6368 (new_symbol): DW_AT_external better handling of
6369 DW_AT_block*. Proper initialization of variable
6370 "addr".
6371 (attr_form_is_block): New function that returns true
6372 if the attribute's form is of DW_FORM_block*.
6373
6374 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6375
6376 * valops.c (find_method_list): Remove comment about
6377 removed STATIC_MEMFUNCP argument.
6378 (value_find_oload_method_list): Likewise.
6379
6380 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6381
6382 From Nicholas Duffek:
6383 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6384 target_new_objfile_hook.
6385
6386 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6387
6388 From Nicholas Duffek:
6389 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6390 csect.
6391
6392 2002-07-12 Andrew Cagney <cagney@redhat.com>
6393
6394 * MAINTAINERS: Mention --enable-sim-build-warnings.
6395 (m68hc11-elf): Disable sim build warnings.
6396 (m32r-elf): Mark as broken obsolete candidate.
6397 (x86_64-linux-gnu): Mark as buildable with -Werror.
6398 (arm-elf): Change -w to ``,'' which enables warnings but not
6399 -Werror.
6400
6401 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6402
6403 * bcache.h: Update copyright.
6404 (struct bstring, struct bcache): Move definition to "bcache.c".
6405 Replaced by opaque declaration.
6406 (bcache_xfree): Replace free_bcache.
6407 (bcache_xmalloc, bcache_memory_used): Declare.
6408
6409 * bcache.c: Update copyright.
6410 (struct bstring, struct bcache): Moved to here from "bcache.h".
6411 Update comments.
6412 (bcache_xmalloc, bcache_memory_used): New functions.
6413 (bcache_xfree): Replace function free_bcache.
6414
6415 * Makefile.in (objfiles.o): Add $(bcache_h).
6416 (objfiles_h): Remove $(bcache_h).
6417 (symfile.o): Add $(bcache_h).
6418
6419 * symmisc.c: Update copyright.
6420 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6421 (print_objfile_statistics): Use bcache_memory_used.
6422
6423 * symfile.c: Include "bcache.h".
6424 (reread_symbols): Use bcache_xfree.
6425 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6426 (add_psymbol_to_list): Pass psymbol_cache by value.
6427 (add_psymbol_with_dem_name_to_list): Ditto.
6428
6429 * objfiles.h: Update copyright.
6430 (struct bcache): Declare opaque. Do not include "bcache.h".
6431 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6432 bcache'' pointers.
6433 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6434
6435 * objfiles.c: Include "bcache.h". Update copyright.
6436 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6437 macro_cache.
6438 (free_objfile): Use bcache_xfree.
6439
6440 2002-07-11 Grace Sainsbury <graces@redhat.com>
6441
6442 * monitor.c (monitor_fetch_register): Make name a constant.
6443 (monitor_store_register): Same.
6444
6445 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6446
6447 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6448 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6449 (finish_block) For non-function blocks, hash the symbol table. For
6450 function blocks, mark the symbol table as unhashed.
6451 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6452 (msymbol_hash_iw): Likewise.
6453 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6454 value.
6455 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6456 (lookup_minimal_symbol): Likewise for both.
6457 * symtab.h (struct block): Add `hashtable' flag. Comment the
6458 hashtable.
6459 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6460 (ALL_BLOCK_SYMBOLS): Update.
6461 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6462 (struct symbol): Add `hash_next' pointer.
6463 * symtab.c (lookup_block_symbol): Search using the hash table when
6464 possible.
6465 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6466 (search_symbols, find_addr_symbol): Likewise.
6467
6468 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6469 (read_dst_symtab): Likewise.
6470 * jv-lang.c (get_java_class_symtab): Likewise.
6471 * mdebugread.c: Include "gdb_assert.h".
6472 (shrink_block): Assert that the block being modified is not hashed.
6473 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6474 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6475 symbols.
6476 (dump_symtab): Recognize hashed blocks.
6477 * printcmd.c (print_frame_args): Assert that function blocks do not
6478 have hashed symbol tables.
6479 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6480 (fill_in_ada_prototype, debug_print_block): Likewise.
6481 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6482
6483 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6484
6485 * stack.c (print_frame): Use result of frame_address_in_block()
6486 instead of fi->pc when evaluating symbols.
6487 (backtrace_command_1): Ditto.
6488
6489 2002-07-11 Andrew Cagney <cagney@redhat.com>
6490
6491 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6492 Make static.
6493
6494 * arm-tdep.c (arm_register_name): Make return type constant.
6495
6496 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6497
6498 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6499 prototype.
6500 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6501 * s390-tdep.c (s390_fp_regnum): Ditto.
6502 (s390_read_fp): Ditto.
6503 (s390_pop_frame): Ditto.
6504 (_initialize_s390_tdep): Ditto.
6505 * remote.c (get_remote_state): Ditto.
6506 * procfs.c (mappingflags): Ditto.
6507 * memattr.c (_initialize_mem): Ditto.
6508 * mcore-tdep.c (mcore_pop_frame): Ditto.
6509 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6510 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6511 * language.c (set_case_str): Ditto.
6512 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6513 * frv-tdep.c (new_variant): Ditto.
6514 (frv_stopped_data_address): Ditto.
6515 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6516 (context_alloc): Ditto.
6517 (frame_state_alloc): Ditto.
6518 (unwind_tmp_obstack_init): Ditto.
6519 (unwind_tmp_obstack_free): Ditto.
6520 (cfi_read_fp): Ditto.
6521 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6522 (cris_pop_frame): Ditto.
6523 * c-lang.c (scanning_macro_expansion): Ditto.
6524 (finished_macro_expansion): Ditto.
6525 (c_preprocess_and_parse): Ditto.
6526 * gdbarch.sh: Ditto.
6527 * gdbarch.h, gdbarch.c: Regenerate.
6528 * config/mn10200/tm-mn10200.h: Adjust indentation.
6529 * target.c: Adjust indentation.
6530 * symtab.h: Adjust indentation.
6531 * stabsread.h: Adjust indentation.
6532 * remote-es.c: Adjust indentation.
6533 * os9kread.c: Adjust indentation.
6534
6535 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6536
6537 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6538 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6539
6540 2002-07-10 Grace Sainsbury <graces@redhat.com>
6541
6542 * NEWS: Mention m68k, mcore multi-arching.
6543 * MAINTAINERS: Change status of m68k, mcore to reflect
6544 multi-arching.
6545
6546 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6547
6548 * valops.c (find_overload_match): Free oload_syms.
6549
6550 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6551
6552 Define HAVE_SYS_PROC_H if sys/proc.h exists
6553 * configure.in: Add check for sys/proc.h
6554 * config.in: Regenerate.
6555 * configure: Regenerate.
6556
6557 2002-07-09 Grace Sainsbury <graces@redhat.com>
6558
6559 * config/m68k/tm-m68k.h: Remove macros wrapped in
6560 #if !GDB_MULTI_ARCH.
6561
6562 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6563
6564 * config.in, configure: Regenerate.
6565
6566 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6567
6568 * dwarf2cfi.c: Include "gcore.h".
6569 (execute_stack_op): Fix implementation of the
6570 DW_OP_deref and DW_OP_deref_size operators by letting do their
6571 lookup in the target.
6572
6573 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6574
6575 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6576 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6577 tdep->sc_sp_offset.
6578
6579 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6580
6581 Fix PR gdb/595, gdb/602
6582 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6583 Don't call value_cast, just read the vtable pointer; update comments
6584 to match.
6585
6586 2002-07-05 Grace Sainsbury <graces@redhat.com>
6587
6588 * config/mcore/tm-mcore.h: Remove file.
6589 * config/mcore/mcore.mt: Remove definition of TM_FILE
6590 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6591
6592 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6593
6594 * i386bsd-tdep.c: Include "gdb_string.h".
6595
6596 2002-07-04 Grace Sainsbury <graces@redhat.com>
6597
6598 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6599 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6600 mcore-tdep.
6601 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6602 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6603 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6604 (RETVAL_REGNUM): Move macros from tm-mcore.h
6605 (mcore_reg_struct_has_addr): New function.
6606 (mcore_gdbarch_init): Added initializations for the macros removed
6607 from tm-mcore.h.
6608
6609 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6610
6611 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6612 traditonal string branding within the ELF header.
6613
6614 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6615
6616 * symtab.c (remove_params): New function.
6617 (make_symbol_overload_list): Use it instead of cplus_demangle.
6618 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6619
6620 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6621
6622 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6623
6624 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6625 New variables.
6626 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6627 and tdep->sigtramp_end.
6628 * i386obsd-nat.c: New file.
6629 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6630
6631 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6632 Don't call get_current_frame().
6633
6634 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6635
6636 * i386-nat.c (child_post_startup_inferior): New function
6637 calling i386_cleanup_dregs if
6638 I386_USE_GENERIC_WATCHPOINTS is defined.
6639 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6640 conditional to acknowledge that i386-nat.c has its
6641 own child_post_startup_inferior function.
6642
6643 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6644
6645 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6646 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6647 instead of MAX_REGISTER_RAW_SIZE.
6648 (i386_extract_return_value, i386_extract_struct_value_address):
6649 Convert to use regcache.
6650 (i386_gdbarch_init): Set max_register_raw_size and
6651 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6652 Set extract_return_value and extract_struct_value_address instead
6653 of their deprecated variants.
6654
6655 Convert i386 target to generic dummy frames.
6656 * i386-tdep.c: Include "symfile.h".
6657 (i386_frameless_signal_p): Consider a function to be frameless if
6658 the pc points at the first instruction of the function.
6659 (i386_frame_chain): Handle (generic) call dummies.
6660 (i386_frame_saved_pc): Likewise.
6661 (i386_frame_init_saved_regs): Remove code dealing with call
6662 dummies on the stack.
6663 (i386_push_dummy_frame): Removed.
6664 (i386_call_dummy_words): Removed.
6665 (i386_fix_call_dummy): Removed.
6666 (i386_push_return_address): New function.
6667 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6668 parameter, and don't call get_current_frame.
6669 (i386_pop_frame): New function.
6670 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6671 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6672 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6673 call_dummy_length to 0, set call_dummy_words to NULL, set
6674 sizeof_call_dummy_words to 0, set fix_call_dummy to
6675 generic_fix_call_dummy, set pc_in_call_dummy to
6676 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6677 generic_push_dummy_frame, set push_return_address to
6678 i386_push_return_address and set frame_chain_valid to
6679 generic_file_frame_chain_valid.
6680
6681 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6682
6683 * gdbarch.sh (struct regcache): Add opaque declaration.
6684 (EXTRACT_RETURN_VALUE): New architecture method.
6685 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6686 * gdbarch.h, gdbarch.c: Regenerate.
6687 * arch-utils.c (legacy_extract_return_value): New function.
6688 * arch-utils.h (legacy_extract_return_value): Declare.
6689 * values.c (value_being_returned): Re-enable code handling
6690 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6691 deprecated_grub_regcache_for_registers call to block handling
6692 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6693 (EXTRACT_RETURN_VALUE): Do not define.
6694
6695 2002-07-03 Grace Sainsbury <graces@redhat.com>
6696
6697 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6698 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6699 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6700 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6701 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6702 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6703 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6704 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6705 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6706 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6707 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6708 argument so the function fits the prototype in the architecture
6709 vector.
6710 (mcore_pop_frame): Remove argument so the function fits the
6711 prototype. Use get_current_frame instead of the argument.
6712 (mcore_push_arguments): Change type of struct_return so the
6713 function can be used in the architecture vector.
6714 (mcore_store_struct_return): Add.
6715 (mcore_frame_init_saved_regs): Add.
6716 (mcore_gdbarch_init): Add function calls to replace the macros
6717 removed from tm-mcore.h
6718
6719 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6720
6721 * infcmd.c (print_return_value): Remove compatibility code calling
6722 deprecated_grub_regcache_for_registers.
6723
6724 * values.c: Include "regcache.h".
6725 (value_being_returned): Update. Use
6726 deprecated_grub_regcache_for_registers to extract the register
6727 buffer address.
6728 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6729 ``struct regcache''.
6730 * Makefile.in (values.o): Add dependency on $(regcache_h).
6731
6732 * inferior.h (run_stack_dummy): Change type of second parameter to
6733 a ``struct regcache''.
6734 * valops.c (hand_function_call): Change type of retbuf to ``struct
6735 regcache''. Allocate using regcache_xmalloc, clean using
6736 make_cleanup_regcache_xfree.
6737 * infcmd.c (run_stack_dummy): Update. Use
6738 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6739
6740 * regcache.c (do_regcache_xfree): New function.
6741 (make_cleanup_regcache_xfree): New function.
6742 * regcache.h (make_cleanup_regcache_xfree): Declare.
6743
6744 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6745
6746 * event-top.c (command_line_handler): Don't read past
6747 beginning of buffer.
6748
6749 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6750
6751 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6752 struct frame_id.
6753 (varobj_create): Store frame_id for root.
6754 (varobj_gen_name): Use xasprintf.
6755 (varobj_update): Save and restore frame using get_frame_id() and
6756 frame_find_by_id().
6757 (create_child): Use xasprintf.
6758 (new_root_variable): Initialize frame_id.
6759 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6760 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6761 to prevent memory leak.
6762
6763 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6764
6765 * valops.c (hand_function_call): Move declaration of retbuf to
6766 start of function, allocate using malloc, add a cleanup but before
6767 the inf_status cleanup, cleanup the buffer. Rename local variable
6768 old_chain to inf_status_cleanup.
6769
6770 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6771
6772 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6773
6774 * cli/cli-decode.c (cmd_func_p): New function.
6775 (cmd_func): New function.
6776
6777 * command.h: Add cmd_func() and cmd_func_p().
6778
6779 2002-07-03 Grace Sainsbury <graces@redhat.com>
6780
6781 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6782 (REGISTER_SIZE): Remove.
6783 (MAX_REGISTER_RAW_SIZE): Remove.
6784 (REGISTER_VIRTUAL_TYPE): Remove.
6785 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6786 (REGISTER_NAME): Remove.
6787 (USE_GENERIC_DUMMY_FRAMES): Remove.
6788 (CALL_DUMMY): Remove.
6789 (CALL_DUMMY_START_OFFSET): Remove.
6790 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6791 (CALL_DUMMY_LOCATION): Remove.
6792 (FIX_CALL_DUMMY): Remove.
6793 (CALL_DUMMY_ADDRESS): Remove.
6794 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6795 (SAVE_DUMMY_FRAME_TOS): Remove.
6796 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6797 (mcore_register_virtual_type): New function.
6798 (mcore_register_byte): New function.
6799 (mcore_register_size): New function.
6800 (mcore_register_name): New function.
6801 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6802 macros removed from tm-mcore.h.
6803 (mcore_dump_tdep): Add.
6804 (_initialize_mcore_tdep): Add gdbarch_register call.
6805
6806 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6807
6808 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6809 frameless_look_for_prologue, such that we actually call this
6810 function.
6811
6812 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6813
6814 * frame.h (frame_address_in_block): New function.
6815
6816 * blockframe.c (frame_address_in_block): New function extracted
6817 from get_frame_block().
6818 (get_frame_block): Use frame_address_in_block().
6819 (block_innermost_frame): Use frame_address_in_block() to match
6820 the frame pc address against the block boundaries rather than
6821 the frame pc directly. This prevents a failure when a frame pc
6822 is actually a return-address pointing immediately after the end
6823 of the given block.
6824
6825 2002-07-02 Grace Sainsbury <graces@redhat.com>
6826
6827 * MAINTAINERS: Add self under write after approval.
6828
6829 2002-07-02 Grace Sainsbury <graces@redhat.com>
6830
6831 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6832 used in architecture vector. The default is
6833 m68k_local_breakpoint_from_pc.
6834 (m68k_local_breakpoint_from_pc): Add.
6835 (enum): Add register numbers from tm-m68k.h.
6836 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6837 vector.
6838 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6839 GDB_MULTI_ARCH_PARTIAL.
6840 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6841 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6842 m68k-tdep.c.
6843 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6844 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6845 to enum in m68k-tdep.c
6846
6847 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6848
6849 * solib-osf.c (open_map): Compute the list of shared libraries
6850 loaded by the inferior, rather than the list of libraries loaded
6851 by GDB itself. Otherwise, GDB ends up reading the symbols from
6852 the wrong shared libraries...
6853
6854 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6855
6856 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6857 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6858 macros.
6859 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6860 Remove functions.
6861 (FRAMELESS_SIGNAL): Remove function.
6862 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6863 i386_linux_saved_pc_after_call): Removed.
6864 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6865 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6866 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6867
6868 * i386-tdep.c (i386_frameless_signal_p): New function.
6869 (i386_frame_chain): Deal with frameless signals.
6870 (i386_sigtramp_saved_sp): New function.
6871 (i386_frame_saved_pc): Deal with frameless signals.
6872 (i386_saved_pc_after_call): Make sure the correct value is
6873 returned just after entry into a sigtramp.
6874 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6875 i386fbsd4_sc_sp_offset): New variables.
6876 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6877 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6878 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6879 similiar to what we already did for sc_pc_offset.
6880 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6881 tdep->sc_sp_offset.
6882
6883 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6884
6885 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6886
6887 * config/i386/tm-x86-64linux.h: New.
6888 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6889 definitions.
6890 * config/i386/nm-x86-64.h: Rename to ...
6891 * config/i386/nm-x86-64linux.h: ... this one.
6892 * config/i386/x86-64linux.mh: Reflect the above change.
6893
6894 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6895
6896 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6897 with sigcontext_addr. Add sc_sp_offset.
6898 (i386bsd_sigtramp_saved_pc): Remove prototype.
6899 (i386bsd_sicontext_addr): Add prototype.
6900 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6901 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6902 (i386_svr4_sigtramp_saved_pc): Removed.
6903 (i386_svr4_sigcontext_addr): New function.
6904 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6905 Initialize tdep->sigcontext_addr instead. Initialize
6906 tdep->sc_pc_offset and tdep->sc_sp_offset.
6907 (i386_gdbarch_init): Likewise.
6908 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6909 any more.
6910 (i386bsd_sigtramp_saved_pc): Remove function.
6911 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6912 Initialize tdep->sigcontext_addr instead. Initialize
6913 tdep->sc_pc_offset.
6914 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6915 of tdep->sigtramp_saved_pc.
6916 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6917 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6918 instead.
6919
6920 * i386-tdep.c (i386_frameless_function_invocation,
6921 i386_frame_num_args, i386_frame_init_saved_regs,
6922 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6923 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6924 i386_extract_return_value, i386_store_return_value,
6925 i386_extract_struct_value_address, i386_register_virtual_type,
6926 i386_register_convertible, i386_register_convert_to_virtual,
6927 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6928 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6929 static.
6930
6931 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6932
6933 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6934
6935 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6936 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6937 this macro. Include "value.h".
6938
6939 2002-06-30 Aidan Skinner <aidan@velvet.net>
6940
6941 * ada-exp.tab.c: remove as it's a generated file
6942 * ada-lex.c: remove as it's a generated file
6943
6944 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6945
6946 * config/i386/tm-i386.h (struct frame_info, struct
6947 frame_saved_regs, struct value, struct type): Remove forward
6948 declarations.
6949
6950 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6951 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6952 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6953 (FILL_FPXREGSET): Define.
6954
6955 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6956
6957 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6958 i[3456]86-*-netbsd* case.
6959 * config/i386/tm-obsd.h: Removed.
6960 * config/i386/obsd.mt: Removed.
6961 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6962 core-aout.o.
6963 (MH_CFLAGS): Add -DYYDEBUG=0.
6964
6965 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6966 i386nbsd_sc_pc_offset on OpenBSD too.
6967
6968 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6969 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6970 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6971 define.
6972 * i386bsd-tdep.c: Include "arch-utils.h".
6973 (i386bsd_aout_in_solib_call_trampoline): New function.
6974 (i386bsd_init_abi): Set in_solib_call_trampoline to
6975 i386bsd_aout_in_solib_call_trampoline.
6976 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6977 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6978
6979 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6980
6981 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6982 (struct obstack, struct bcache): Add opaque declarations.
6983 * Makefile.in (macrotab_h): Update
6984
6985 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6986
6987 * blockframe.c (generic_find_dummy_frame): Change return type to
6988 ``struct regcache''.
6989 (struct dummy_frame): Replace field ``registers'' with regcache, a
6990 struct regcache object.
6991 (generic_find_dummy_frame): Update.
6992 (generic_push_dummy_frame): Update. Use regcache_xfree,
6993 regcache_xmalloc and regcache_cpy.
6994 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6995 regcache_xfree.
6996 (deprecated_generic_find_dummy_frame): Update.
6997 (generic_read_register_dummy): Update. Use
6998 regcache_read_as_address.
6999 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7000 (generic_get_saved_register): Update. Use regcache_read.
7001
7002 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7003
7004 * Makefile.in (objfiles_h): Add $(bcache_h).
7005 * objfiles.h: Include "bcache.h".
7006
7007 * Makefile.in (symtab_h): Remove $(bcache_h).
7008 * symtab.h: Do not include "bcache.h".
7009
7010 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7011
7012 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7013 generic_func_frame_chain_valid.
7014
7015 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7016
7017 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7018 * config/i386/tm-fbsd.h: Likewise.
7019
7020 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7021
7022 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7023 generic_unwind_get_saved_register.
7024
7025 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7026
7027 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7028 * regcache.c (supply_register): Add missing argument to
7029 register_buffer call.
7030
7031 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7032
7033 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7034 Solaris /bin/grep does not not like it. From Peter Schauer.
7035
7036 2002-06-26 Tom Tromey <tromey@redhat.com>
7037
7038 * command.h (add_setshow_cmd): Declare.
7039 (add_setshow_cmd_full): Declare.
7040 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7041 returns void. Use add_setshow_cmd_full.
7042 (add_setshow_cmd_full): New function.
7043 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7044 (add_setshow_boolean_cmd): Likewise.
7045
7046 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7047
7048 * config/vax/tm-vax.h: Protect from multiple inclusion.
7049 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7050 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7051 * config/vax/tm-vaxbsd.h: ...here. New file.
7052 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7053
7054 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7055
7056 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7057 (BELIEVE_PCC_PROMOTION): Remove.
7058 (AP_REGNUM): Move to...
7059 * config/vax/nm-vax.h: ...here.
7060 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7061 (vax_breakpoint_from_pc): New function.
7062 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7063 and gdbarch_believe_pcc_promotion.
7064
7065 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7066
7067 * Makefile.in (vax_tdep_h): Define.
7068 (vax-tdep.o): Use $(vax_tdep_h).
7069 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7070 (vax_dump_tdep): New function.
7071 (_initialize_vax_tdep): Register vax_dump_tdep.
7072 * vax-tdep.h: Include osabi.h.
7073 (struct gdbarch_tdep): New.
7074
7075 2002-06-26 Andrew Cagney <cagney@redhat.com>
7076
7077 * frame.h (deprecated_generic_find_dummy_frame): Rename
7078 generic_find_dummy_frame.
7079 * blockframe.c (generic_find_dummy_frame): Make static.
7080 (deprecated_generic_find_dummy_frame): New function.
7081 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7082 generic_find_dummy_frame with deprecated_find_dummy_frame.
7083 (sh64_nofp_frame_init_saved_regs): Ditto.
7084 (sh_fp_frame_init_saved_regs): Ditto.
7085 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7086 (s390_frame_chain): Ditto.
7087 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7088
7089 2002-06-26 Grace Sainsbury <graces@redhat.com>
7090
7091 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7092 gdbarch vector are at the top.
7093 (NUM_REGS): Remove.
7094 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7095 (FRAME_ARGS_ADDRESS): Remove.
7096 (FRAME_LOCALS_ADDRESS): Remove.
7097 (FRAME_NUM_ARGS): Remove.
7098 (FRAME_ARGS_SKIP): Remove.
7099 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7100 (m68k_gdbarch_init): Add gdbarch initializations for macros
7101 undefined in tm-m68k.h
7102
7103 2002-06-26 Grace Sainsbury <graces@redhat.com>
7104
7105 * monitor.h: Add the function regname to monitor_ops
7106 structure. This way NUM_REGS does not have to be a constant.
7107 * monitor.c (monitor_fetch_register): Added support for regname
7108 function. The function is called if the array regnames is NULL.
7109 (monitor_store_register): Same.
7110 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7111 regnames array.
7112 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7113 cpu32bug_cmds.regname to point to new function.
7114 * abug-rom.c (abug_regname): Same as above.
7115 (init_abug_cmds): Same.
7116 * dbug-rom.c (dbug_regname): Same as above.
7117 (init_dbug_cmds): Same.
7118 * remote-est.c (est_regname): Same.
7119 (init_est_cmds): Same.
7120 * rom68k-rom.c (rom68k_regname): Same.
7121 (init_rom68k_cmds): Same.
7122
7123 2002-06-25 Tom Tromey <tromey@redhat.com>
7124
7125 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7126
7127 2002-06-25 Andrew Cagney <cagney@redhat.com>
7128
7129 * infrun.c (stop_registers): Change variable's type to ``struct
7130 regcache'''.
7131 (xmalloc_inferior_status): Delete function.
7132 (free_inferior_status): Delete function.
7133 (normal_stop): Use regcache_cpy.
7134 (struct inferior_status): Change type of fields ``stop_registers''
7135 and ``registers'' to ``struct regcache''.
7136 (write_inferior_status_register): Use regcache_write.
7137 (save_inferior_status): Instead of calling
7138 xmalloc_inferior_status, allocate the inf_status buffer directly.
7139 Use regcache_dup_no_passthrough and regcache_dup to save the
7140 buffers.
7141 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7142 Replace the stop_registers regcache instead of overriding it. Use
7143 regcache_xfree. Instead of calling free_inferior_status, xfree
7144 the buffer directly.
7145 (discard_inferior_status): Use regcache_xfree. Instead of calling
7146 free_inferior_status, xfree the buffer directly.
7147 (build_infrun): Use regcache_xmalloc.
7148 (_initialize_infrun): Delete redundant call to build_infrun.
7149
7150 * Makefile.in (infcmd.o): Add $(regcache_h).
7151
7152 * infcmd.c: Include "regcache.h".
7153 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7154 obtain the address of `stop_registers' register buffer.
7155 (print_return_value): Ditto.
7156
7157 * inferior.h (struct regcache): Add opaque declaration.
7158 (stop_registers): Change variable's declared type to ``struct
7159 regcache''.
7160
7161 2002-06-24 Tom Tromey <tromey@redhat.com>
7162
7163 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7164 * target.c (initialize_targets): Fixed typo in
7165 trust-readonly-sections `show' documentation.
7166
7167 * main.c: Marked all strings with _().
7168
7169 2002-06-24 Don Howard <dhoward@redhat.com>
7170
7171 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7172 that means max CORE_ADDR+1.
7173 (lookup_mem_region): Ditto.
7174 (mem_info_command): Ditto.
7175
7176 2002-06-24 Grace Sainsbury <graces@redhat.com>
7177
7178 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7179 (REGISTER_BYTES_OK): Remove.
7180 (REGISTER_BYTES): Remove.
7181 (STORE_STRUCT_RETURN): Remove.
7182 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7183 (STORE_RETURN_VALUE): Remove.
7184 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7185 (FRAME_CHAIN): Remove.
7186 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7187 (FRAME_SAVED_PC): Remove.
7188 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7189 (m68k_store_struct_return): Add.
7190 (m68k_deprecated_extract_return_value): Add.
7191 (m68k_deprecated_extract_struct_value_address): Add.
7192 (m68k_store_return_value): Add.
7193 (m68k_frame_chain): Add.
7194 (m68k_frameless_function_invocation): Add.
7195 (m68k_frame_saved_pc): Add.
7196 (m68k_gdbarch_init): added set_gdbarch calls for new
7197 functions and deleted macros.
7198
7199 2002-06-23 Tom Tromey <tromey@redhat.com>
7200
7201 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7202 (ALLDEPFILES): Likewise.
7203 (udiheaders): Removed.
7204 (udip2soc.o): Likewise.
7205 (udi2go32.o): Likewise.
7206 (udr.o): Likewise.
7207 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7208
7209 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7210
7211 * infrun.c (_initialize_infrun): Delete unnecessary call to
7212 build_infrun.
7213
7214 * regcache.h: Update comments describing the regcache_cpy family
7215 of functions.
7216 (regcache_save, regcache_restore): Delete declaration.
7217 (regcache_save_no_passthrough): Delete declaration.
7218 (regcache_restore_no_passthrough): Delete declaration.
7219 * regcache.c (regcache_save): Delete function.
7220 (regcache_save_no_passthrough): Delete function.
7221 (regcache_restore): Delete function.
7222 (regcache_restore_no_passthrough): Delete function.
7223
7224 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7225
7226 * config/m68k/tm-m68k.h: Fix typo.
7227 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7228 (m68k_frame_init_saved_regs): Declare.
7229
7230 2002-06-21 Jim Blandy <jimb@redhat.com>
7231
7232 Remove some vestiges of Harris 88k support.
7233 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7234 register numbering quirk.
7235 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7236 odd symbols occurring in Harris 88k ELF targets.
7237
7238 2002-06-21 Tom Tromey <tromey@redhat.com>
7239
7240 * gdb_locale.h: New file.
7241 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7242 (defs_h): Added gdb_locale.h.
7243 * configure, config.in: Rebuilt.
7244 * configure.in (PACKAGE): Define.
7245 * defs.h: Include gdb_locale.h.
7246 * main.c (captured_main): Call setlocale, bindtextdomain,
7247 textdomain.
7248
7249 2002-06-21 Dave Brolley <brolley@redhat.com>
7250
7251 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7252 * config/frv/frv.mt: New file.
7253 * config/frv/tm-frv.h: New file.
7254 * configure.tgt: Support frv-*-*.
7255 * Makefile.in (frv-tdep.o): New target.
7256 * frv-tdep.c: New file.
7257 * NEWS: Mention frv.
7258
7259 2002-06-21 Dave Brolley <brolley@redhat.com>
7260
7261 * MAINTAINERS: Add self to "Write After Approval" list.
7262
7263 2002-06-21 Grace Sainsbury <graces@redhat.com>
7264
7265 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7266 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7267 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7268 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7269 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7270
7271 * m68k-tdep.c: Include arch-utils.h
7272 (m68k_register_raw_size): Add.
7273 (m68k_register_virtual_size): Add.
7274 (m68k_register_virtual_type): Add.
7275 (m68k_register_name): Add.
7276 (m68k_stack_align): Add.
7277 (m68k_register_byte): Add.
7278 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7279 tm-m68k.h.
7280
7281 2002-06-21 Grace Sainsbury <graces@redhat.com>
7282
7283 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7284 m68k_find_saved_regs.
7285 (m68k_pop_frame): Removed saved_regs structure, and replaced
7286 references to it with frame->saved_regs.
7287 (m68k_gdbarch_init): Added function calls to initialize the
7288 gdbarch structure.
7289 (m68k_fix_call_dummy): Add.
7290 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7291 (CALL_DUMMY): Remove.
7292 (CALL_DUMMY_LENGTH): Remove.
7293 (CALL_DUMMY_START_OFFSET): Remove.
7294 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7295 (FIX_CALL_DUMMY): Remove.
7296 (PUSH_DUMMY_FRAME): Remove.
7297 (POP_FRAME): Remove.
7298
7299 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7300
7301 * parse.c (parse_fprintf): New function used to avoid calls to
7302 fprintf in bison parser generated debug code.
7303 * parser-defs.h: Declaration of new parse_fprintf function.
7304 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7305 Set YYDEBUG to 1 by default.
7306 Set YYFPRINTF as parse_fprintf.
7307
7308 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7309
7310 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7311 encoding anymore.
7312 (pointer_encoding, enum ptr_encoding): New.
7313 (execute_cfa_program): Take care about pointer encoding.
7314 (dwarf2_build_frame_info): Only call parse_frame_info for
7315 .debug_frame and .eh_frame.
7316 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7317 fixed augmentation handling, added relative addressing,
7318 ignore duplicate FDEs. Added comments.
7319 * dwarf2cfi.c: Reindented.
7320
7321 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7322
7323 * event-top.c (command_handler): Don't use space_at_cmd_start
7324 unless there is sbrk() on the host. Assign time and space data
7325 to union fields of the appropriate length.
7326
7327 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7328
7329 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7330 x86_64_register_name. Return type changed to 'const char *'.
7331 (x86_64_register_name2nr): Rename to x86_64_register_number.
7332 (x86_64_gdbarch_init): Update to reflect the change.
7333 * x86-64-tdep.h: Ditto.
7334 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7335 (supply_fpregset): Ditto.
7336
7337 2002-06-19 Andrew Cagney <cagney@redhat.com>
7338
7339 * regcache.h: Update copyright.
7340 (struct regcache, struct gdbarch): Add opaque declarations.
7341 (current_regcache): Declare global variable.
7342 (regcache_read, regcache_write): Add gdbarch parameter.
7343 (regcache_save, regcache_save_no_passthrough)
7344 (regcache_restore, regcache_restore_no_passthrough)
7345 (regcache_dup, regcache_dup_no_passthrough)
7346 (regcache_cpy, regcache_cpy_no_passthrough)
7347 (deprecated_grub_regcache_for_registers)
7348 (deprecated_grub_regcache_for_register_valid)
7349 (regcache_valid_p): Add function declarations.
7350
7351 * regcache.c: Update copyright.
7352 (regcache_descr_handle): New global variable.
7353 (struct regcache_descr): Define.
7354 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7355 (regcache_descr, xfree_regcache_descr): New functions.
7356 (struct regcache): Define.
7357 (regcache_xmalloc, regcache_xfree): New functions.
7358 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7359 (regcache_dup, regcache_dup_no_passthrough): New functions.
7360 (regcache_valid_p, regcache_read_as_address): New functions.
7361 (deprecated_grub_regcache_for_registers): New function.
7362 (deprecated_grub_regcache_for_register_valid): New function.
7363 (current_regcache): New global variable.
7364 (register_buffer): Add regcache parameter. Update calls.
7365 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7366 (read_register_gen, write_register_gen): Update register_buffer
7367 call. Test for legacy_p instead of gdbarch_register_read_p or
7368 gdbarch_register_write_p.
7369 (regcache_collect): Update register_buffer call.
7370 (build_regcache): Rewrite. Use deprecated grub functions.
7371 (regcache_save, regcache_save_no_passthrough): New functions.
7372 (regcache_restore, regcache_restore_no_passthrough): New
7373 functions.
7374 (_initialize_regcache): Create the regcache_data_handle. Swap
7375 current_regcache global variable.
7376
7377 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7378 parameter to regcache_read and regcache_write calls.
7379 (sh4_register_read): Ditto.
7380 (sh64_pseudo_register_read): Ditto.
7381 (sh64_register_read): Ditto.
7382 (sh_pseudo_register_write): Ditto.
7383 (sh4_register_write): Ditto.
7384 (sh64_pseudo_register_write): Ditto.
7385 (sh64_register_write): Ditto.
7386
7387 * defs.h (XCALLOC): Define.
7388
7389 2002-06-19 Grace Sainsbury <graces@redhat.com>
7390
7391 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7392 * m68k-tdep.c (m68k_gdbarch_init): Added.
7393 (m68k_dump_tdep): Added.
7394
7395 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7396
7397 * ada-lang.c (fill_in_ada_prototype): Update comment.
7398
7399 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7400
7401 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7402 MIPS_ABI_LAST.
7403 (mips_abi_string, mips_abi_strings): New.
7404 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7405 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7406 tdep->mips_abi_string. Honor mips_abi_string. Default to
7407 O32 if no ABI is found.
7408 (mips_dump_tdep): Use mips_abi_strings.
7409 (mips_abi_update): New function.
7410 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7411 ``set mips abi'' and ``show mips abi''. Check the size of
7412 mips_abi_strings.
7413
7414 2002-06-19 Andrew Cagney <cagney@redhat.com>
7415
7416 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7417 constant.
7418
7419 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7420
7421 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7422 current frame using only the first stack size adjustment. All
7423 subsequent size adjustments are not considered to be part of
7424 the "static" part of the current frame.
7425 Compute the address of the saved registers relative to the
7426 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7427 in use in this frame.
7428
7429 2002-06-18 Don Howard <dhoward@redhat.com>
7430
7431 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7432 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7433 suggesting this solution.
7434
7435 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7436
7437 * config/romp/xm-rtbsd.h: Delete file.
7438 * config/romp/rtbsd.mh: Delete file.
7439
7440 2002-06-18 Keith Seitz <keiths@redhat.com>
7441
7442 * breakpoint.c (condition_command): Post breakpoint_modify
7443 when a condition is added to an existing breakpoint.
7444 (commands_command): Likewise for commands.
7445 (set_ignore_count): Likewise for ignore counts.
7446 If no tty, do not simply return, still need to send event
7447 notification.
7448 (ignore_command): Only print a newline if the command came
7449 from a tty.
7450 Don't call breakpoints_changed, since this is now properly
7451 handled by set_ignore_count.
7452
7453 2002-06-18 Andrew Cagney <cagney@redhat.com>
7454
7455 * MAINTAINERS: Note that cris-elf target can be compiled with
7456 -Werror.
7457 * cris-tdep.c (cris_register_name): Make return type constant.
7458 (cris_breakpoint_from_pc): Ditto.
7459
7460 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7461
7462 * frame.h (struct frame_info): Change type of context to
7463 'struct context'.
7464
7465 2002-06-17 Andrew Cagney <cagney@redhat.com>
7466
7467 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7468 pointer.
7469 * gdbarch.h, gdbarch.c: Regenerate.
7470 * config/mips/tm-mips.h (mips_register_name): Update.
7471 * i386-tdep.h (i386_register_name): Update.
7472 * mips-tdep.c (mips_register_name): Update
7473 * alpha-tdep.c (alpha_register_name): Update.
7474 * arch-utils.c (legacy_register_name): Update.
7475 * arch-utils.h (legacy_register_name): Update.
7476 * avr-tdep.c (avr_register_name): Update.
7477 * ia64-tdep.c (ia64_register_name): Update.
7478 * i386-tdep.c (i386_register_name): Update.
7479 * sparc-tdep.c (sparc32_register_name): Update.
7480 (sparc64_register_name): Update.
7481 (sparclite_register_name): Update.
7482 (sparclet_register_name): Update.
7483 * sh-tdep.c (sh_generic_register_name): Update.
7484 (sh_sh_register_name): Update.
7485 (sh_sh3_register_name): Update.
7486 (sh_sh3e_register_name): Update.
7487 (sh_sh_dsp_register_name): Update.
7488 (sh_sh3_dsp_register_name): Update.
7489 (sh_sh4_register_name): Update.
7490 (sh_sh64_register_name): Update.
7491 * s390-tdep.c (s390_register_name): Update.
7492 * rs6000-tdep.c (rs6000_register_name): Update.
7493 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7494 (ns32k_register_name_32382): Update.
7495 * d10v-tdep.c (d10v_ts2_register_name): Update.
7496 (d10v_ts3_register_name): Update.
7497 * xstormy16-tdep.c (xstormy16_register_name): Update.
7498 * vax-tdep.c (vax_register_name): Update.
7499 * v850-tdep.c (v850_register_name): Update.
7500 * m68hc11-tdep.c (m68hc11_register_name): Update.
7501 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7502 (am33_register_name): Update.
7503
7504 2002-06-17 Grace Sainsbury <graces@redhat.com>
7505
7506 * m68k-tdep.c: Reindented.
7507
7508 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7509
7510 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7511 list of predefined types.
7512
7513 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7514
7515 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7516 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7517 REGISTER_CONVERT_TO_RAW): Remove defines.
7518 (i386_register_virtual_type, i386_register_convertible,
7519 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7520 Remove prototypes.
7521 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7522 macros mentioned above.
7523
7524 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7525 (i386lynx_saved_pc_after_call): Remove prototype.
7526 * i386ly-tdep.c: Include "i386-tdep.h".
7527 (i386lynx_saved_pc_after_call): Make static. Use
7528 read_memory_nobpt instead of read_memory. Use
7529 read_memory_unsigned_integer instead of read_memory_integer.
7530 (i386lynx_init_abi): New function.
7531 (i386lynx_coff_osabi_sniffer): New function.
7532 (_initialize_i386bsd_tdep): New function.
7533
7534 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7535 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7536 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7537 (i386_fix_call_dummy): Remove prototype.
7538 * i386-tdep.c (i386_call_dummy_words): New variable.
7539 (i386_gdbarch_init): Adjust for removal of the
7540 macros mentioned above.
7541
7542 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7543
7544 * command.h (add_setshow_auto_boolean_cmd): Replace
7545 add_set_auto_boolean_cmd.
7546 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7547 add_set_auto_boolean_cmd.
7548 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7549 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7550 mask-address'' command.
7551 (show_mask_address): Add cmd parameter.
7552 * remote.c (add_packet_config_cmd): Update. Change type of
7553 set_func and show_func to cmd_sfunc_ftype.
7554 (_initialize_remote): Update `set remote Z-packet'
7555 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7556 (show_remote_protocol_e_packet_cmd): Ditto.
7557 (show_remote_protocol_E_packet_cmd): Ditto.
7558 (show_remote_protocol_P_packet_cmd): Ditto.
7559 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7560 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7561 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7562 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7563 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7564 (show_remote_protocol_Z_packet_cmd): Ditto.
7565 (show_remote_protocol_binary_download_cmd): Ditto.
7566 (show_remote_cmd): Pass NULL to all of above.
7567
7568 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7569
7570 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7571 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7572 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7573 POP_FRAME): Remove defines.
7574 (i386_push_arguments, i386_store_struct_return,
7575 i386_extract_return_value, i386_store_return_value,
7576 i386_extract_struct_value_address, i386_push_dummy_frame,
7577 i386_pop_frame): Renove prototypes.
7578 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7579 macros mentioned above.
7580
7581 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7582
7583 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7584 add_set_boolean_cmd.
7585 (add_setshow_cmd): New function.
7586 * command.h (add_setshow_boolean_cmd): Replace
7587 add_set_boolean_cmd.
7588 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7589 and ``set rdiromatzero''.
7590 * maint.c (_initialize_maint_cmds): Update commented out code.
7591 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7592 * target.c (initialize_targets): Update `set
7593 trust-readonly-sections'.
7594 * remote.c (_initialize_remote): Update `set remotebreak'.
7595
7596 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7597
7598 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7599 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7600 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7601 fit into multi-arch framework.
7602 (i386_breakpoint_from_pc): New function.
7603 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7604 above.
7605
7606 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7607 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7608 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7609 (i386_frameless_function_invocation, i386_frame_num_args,
7610 i386_frame_init_saved_regs): Remove prototypes.
7611 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7612 macros mentioned above.
7613
7614 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7615
7616 * cli/cli-decode.c (set_cmd_cfunc): Update.
7617 (set_cmd_sfunc): Update.
7618 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7619 (set_cmd_sfunc, set_cmd_cfunc): Update.
7620 * cli/cli-decode.h: Update.
7621
7622 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7623
7624 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7625 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7626
7627 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7628
7629 * defs.h (auto_boolean): Declare enum.
7630 * command.h (cmd_auto_boolean): Delete enum.
7631 * mips-tdep.c (mask_address_var): Update.
7632 (mips_mask_address_p): Update.
7633 (show_mask_address): Update.
7634 * remote.c (struct packet_config): Update.
7635 (update_packet_config): Update.
7636 (show_packet_config_cmd): Update.
7637 (packet_ok): Update.
7638 (add_packet_config_cmd): Update.
7639 (_initialize_remote):
7640 * command.h: Update.
7641 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7642 (do_setshow_command): Update.
7643 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7644 * cli/cli-decode.h: Update.
7645
7646 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7647
7648 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7649 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7650 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7651 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7652 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7653 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7654
7655 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7656 list of DJGPP COFF targets.
7657
7658 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7659 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7660 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7661 (FP0_REGNUM): Remove define.
7662 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7663 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7664 (i386_register_virtual_size): Remove protoype.
7665 * i386-tdep.c (i386_register_virtual_size): Removed.
7666 (i386_extract_return_value, i386_store_return_value): Use
7667 FP0_REGNUM instead of NUM_FREGS to determine whether the
7668 floating-point registers are available.
7669 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7670 Adjust for removal of macros mentioned above.
7671
7672 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7673
7674 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7675 comments.
7676 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7677 Remove prototypes.
7678 (supply_gregset, fill_gregset): Remove use of register keyword and
7679 remove declaration for regmap. Use I386_NUM_GREGS instead of
7680 NUM_REGS and NUM_FREGS.
7681 (FPREGSET_FSAVE_OFFSET): Remove.
7682 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7683 NUM_FREGS to determine whether the floating-point registers are
7684 available.
7685
7686 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7687 gnu_store_registers): Replace usage of NUM_GREGS with
7688 I386_NUM_GREGS.
7689
7690 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7691 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7692 usage of NUM_GREGS with I386_NUM_GREGS.
7693
7694 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7695
7696 * i386bsd-nat.c: Include "i386-tdep.h".
7697 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7698 I386_NUM_GREGS.
7699
7700 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7701 and associated comment. They no longer make any sense, since we
7702 don't use this file anymore on Linux.
7703
7704 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7705 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7706 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7707 elements in these arrays.
7708 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7709 MAX_NUM_REGS.
7710
7711 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7712
7713 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7714 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7715
7716 2002-06-14 Andrew Cagney <cagney@redhat.com>
7717
7718 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7719 EXTRACT_RETURN_VALUE.
7720 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7721 EXTRACT_STRUCT_VALUE_ADDRESS.
7722 * gdbarch.h, gdbarch.c: Regenerate.
7723
7724 * values.c (value_being_returned): Handle
7725 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7726 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7727
7728 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7729 * arm-tdep.c (arm_gdbarch_init): Update.
7730 * avr-tdep.c (avr_gdbarch_init): Update.
7731 * cris-tdep.c (cris_gdbarch_init): Update.
7732 * d10v-tdep.c (d10v_gdbarch_init): Update.
7733 * ia64-tdep.c (ia64_gdbarch_init): Update.
7734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7735 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7736 * s390-tdep.c (s390_gdbarch_init): Update.
7737 * sh-tdep.c (sh_gdbarch_init): Update.
7738 * s390-tdep.c (s390_gdbarch_init): Update.
7739 * sparc-tdep.c (sparc_gdbarch_init): Update.
7740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7741 * v850-tdep.c (v850_gdbarch_init): Update.
7742 * vax-tdep.c (vax_gdbarch_init): Update.
7743 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7744 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7745
7746 * config/arc/tm-arc.h: Update.
7747 * config/d30v/tm-d30v.h: Update.
7748 * config/fr30/tm-fr30.h: Update.
7749 * config/h8300/tm-h8300.h: Update.
7750 * config/h8500/tm-h8500.h: Update.
7751 * config/i386/tm-i386.h: Update.
7752 * config/i386/tm-ptx.h: Update.
7753 * config/i386/tm-symmetry.h: Update.
7754 * config/i960/tm-i960.h: Update.
7755 * config/m32r/tm-m32r.h: Update.
7756 * config/m68k/tm-delta68.h: Update.
7757 * config/m68k/tm-linux.h: Update.
7758 * config/m68k/tm-m68k.h: Update.
7759 * config/m88k/tm-m88k.h: Update.
7760 * config/mcore/tm-mcore.h: Update.
7761 * config/mips/tm-mips.h: Update.
7762 * config/mn10200/tm-mn10200.h: Update.
7763 * config/pa/tm-hppa.h: Update.
7764 * config/pa/tm-hppa64.h: Update.
7765 * config/sparc/tm-sp64.h: Update.
7766 * config/sparc/tm-sparc.h: Update.
7767 * config/sparc/tm-sparclet.h: Update.
7768 * config/z8k/tm-z8k.h: Update.
7769
7770 2002-06-14 Andrew Cagney <cagney@redhat.com>
7771
7772 * Makefile.in (i386_linux_tdep_h): Define.
7773 (i386_tdep_h, i387_tdep_h): Define.
7774 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7775 $(i386_tdep_h) and $(i387_tdep_h).
7776 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7777
7778 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7779
7780 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7781 Already covered by the default.
7782
7783 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7784 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7785 (i386_gdbarch_init): Initialize long_double_format and long_double
7786 bit.
7787
7788 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7789 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7790 Move these to ...
7791 * config/i386/i386sol2.mh: ... here.
7792 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7793 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7794 (SIGCONTEXT_PC_OFFSET): Remove define.
7795 (IN_SIGTRAMP): Remove define.
7796 * i386-sol2-tdep.c: New file.
7797
7798 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7799 * config/i386/tm-i386nw.h: Removed.
7800
7801 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7802 USE_STRUCT_CONVENTION): Remove defines.
7803 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7804 (get_longjmp_target): Remove prototype.
7805 (IN_SIGTRAMP): Remove define.
7806 (i386bsd_in_sigtramp): Remove prototype.
7807 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7808 function. Update comment accordingly
7809 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7810 (FRAME_SAVED_PC): Remove define.
7811 (i386bsd_frame_saved_pc): Remove prototype.
7812 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7813 GET_LONGJMP_TARGET): Remove defines.
7814 (get_longjmp_target): Remove prototype.
7815 (IN_SIGTRAMP): Remove define.
7816 (i386bsd_in_sigtramp): Remove prototype.
7817 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7818 function. Update comment accordingly
7819 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7820 (FRAME_SAVED_PC): Remove define.
7821 (i386bsd_frame_saved_pc): Remove prototype.
7822 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7823 Remove prototype.
7824 (USE_STRUCT_CONVENTION): Remove prototype.
7825 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7826 declaration.
7827 (_initialize_i386bsd_nat): Revise logic to determine some
7828 constants at compile time when compiling a native GDB. Warn if
7829 things don't match up with what we expect.
7830 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7831 Remove variables.
7832 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7833 to use date stored in `struct gdbarch_tdep'.
7834 (i386bsd_sigcontext_offset): Remove varaible.
7835 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7836 stored in `struct gdbarch_tdep'.
7837 (i386bsd_frame_saved_pc): Make static.
7838 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7839 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7840 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7841 i386fbsd4_sc_pc_offset): New variables.
7842 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7843 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7844 functions.
7845 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7846 functions.
7847 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7848 Modify the value of i386fbsd_sigtramp_start and
7849 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7850 i386fbsd_sigtramp_end.
7851 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7852 function.
7853
7854 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7855 define to i386-linux-tdep.h.
7856 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7857 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7858 defines.
7859 (i386_linux_register_name, i386_linux_register_byte,
7860 i386_linux_register_raw_size): Remove prototypes.
7861 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7862 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7863 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7864 TARGET_WRITE_PC): Remove defines.
7865 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7866 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7867 i386_linux_write_pc): Remove prototypes.
7868 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7869 (get_longjmp_target): Remove prototype.
7870 * i386-linux-tdep.h: New file.
7871 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7872 * i386-linux-tdep.c: Include "i386-tdep.h" and
7873 "i386-linux-tdep.h".
7874 (i386_linux_register_name, i386_linux_register_byte,
7875 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7876 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7877 Make static.
7878 (i386_linux_init_abi): New function.
7879 (_initialize_i386_linux_tdep): New function.
7880
7881 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7882 (i386_saved_pc_after_call): Remove prototype.
7883 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7884 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7885 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7886 (i386_register_name, i386_stab_reg_to_regnum,
7887 i386_dwarf_reg_to_regnum): Remove prototypes.
7888 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7889 SIZEOF_SSE_REGS): Remove defines.
7890 (REGISTER_BYTES): Remove define.
7891 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7892 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7893 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7894 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7895 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7896 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7897 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7898 (get_longjmp_target): Remove prototype.
7899 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7900 (sigtramp_saved_pc): Remove define.
7901 (i386v4_sigtramp_saved_pc): Remove prototype.
7902 * config/i386/tm-go32.h (FRAME_CHAIN,
7903 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7904 (i386go32_frame_saved_pc): Remove prototype.
7905 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7906 (get_longjmp_target): Remove prototype.
7907 * i386-tdep.h: Include "osabi.h".
7908 (enum i386_abi): Removed.
7909 (enum struct_return): New enum.
7910 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7911 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7912 sc_pc_offset members.
7913 (i386_gdbarch_register_os_abi): Remove prototype.
7914 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7915 I386_SSE_NUM_REGS): New defines.
7916 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7917 I386_SSE_SIZEOF_REGS): New defines.
7918 (i386_register_name, i386_register_byte, i386_register_raw_size):
7919 New prototypes.
7920 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7921 (i386bsd_sigtramp_saved_pc): New prototype.
7922 * i386-tdep.c: Don't include "elf-bfd.h".
7923 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7924 i386_frame_chain, i386_saved_pc_after_call): Make static.
7925 (i386_frame_saved_pc): Rewrite to call architecture dependent
7926 function to deal with signal handlers. Make static.
7927 (i386go32_frame_saved_pc): Removed.
7928 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7929 Removed.
7930 (i386_get_longjmp_target): New function.
7931 (default_struct_convention, pcc_struct_convention,
7932 reg_struct_convention, valid_conventions, struct_convention): New
7933 variables.
7934 (i386_use_struct_convention): New function.
7935 (i386v4_sigtramp_saved_pc): Renamed to
7936 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7937 (i386_pc_in_sigtramp): New function.
7938 (i386_abi_names): Removed.
7939 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7940 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7941 Removed.
7942 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7943 i386_gdbarch_register_os_abi): Removed.
7944 (struct i386_abi_handler): Removed.
7945 (i386_abi_handler_list): Removed.
7946 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7947 functions.
7948 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7949 i386_nw_init_abi): New functions.
7950 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7951 Use set_gdbarch_xxx() calls instead of relying on macros for a
7952 number of calls.
7953 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7954 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7955 Register the various architecture variants defined in this file.
7956
7957 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7958
7959 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7960 (struct main_type): Remove arg_types member. Update comments for
7961 struct field.
7962 (TYPE_ARG_TYPES): Remove.
7963 (TYPE_FN_FIELD_ARGS): Update.
7964 (smash_to_method_type): Update prototype.
7965
7966 * c-typeprint.c (cp_type_print_method_args): Take method type
7967 instead of argument list. Use new argument layout. Simplify.
7968 (c_type_print_args): Use new argument layout. Simplify.
7969 (c_type_print_base): Update call to cp_type_print_method_args.
7970 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7971 argument; use die->type instead. Update call to
7972 smash_to_method_type.
7973 (read_structure_scope): Update call to dwarf2_add_member_fn.
7974 * gdbtypes.c (allocate_stub_method): Update comment.
7975 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7976 Use new argument layout.
7977 (check_stub_method): Use new argument layout. Don't count
7978 void as an argument.
7979 (print_arg_types): Update comments. Use new argument layout.
7980 (recursive_dump_type): Don't print arg_types member.
7981 * hpread.c (hpread_read_struct_type): Use new argument layout.
7982 (fixup_class_method_type): Likewise.
7983 (hpread_type_lookup): Likewise.
7984 * stabsread.c (read_type): Update calls to read_args and
7985 smash_to_method_type.
7986 (read_args): Use new argument layout. Simplify.
7987 * valops.c (typecmp): Use new argument layout. Update parameters
7988 and comments. Simplify.
7989 (hand_function_call): Use new argument layout.
7990 (search_struct_method): Update call to typecmp.
7991 (find_overload_match): Use new argument layout.
7992
7993 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7994
7995 * NEWS: Mention multithreaded debug support for gdbserver.
7996
7997 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7998
7999 * MAINTAINERS: Mention NEWS.
8000
8001 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8002
8003 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8004 (struct mips_objfile_private, compare_pdr_entries): New.
8005 (non_heuristic_proc_desc): Read the ".pdr" section if it
8006 is present.
8007
8008 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8009
8010 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8011 (arm_debug): New static variable.
8012 (_initialize_arm_tdep): Add ``set debug arm'' command.
8013
8014 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8015
8016 * Makefile.in (sim_arm_h): Define.
8017 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8018 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8019 (arm_register_sim_regno): New function, map an internal REGNUM
8020 onto a simulator register number.
8021 (arm_gdbarch_init): Set register_sim_regno.
8022
8023 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8024
8025 * MAINTAINERS: Add self.
8026
8027 2002-06-11 Jim Blandy <jimb@redhat.com>
8028
8029 * source.c (source_info): Mention whether the symtab has
8030 information about preprocessor macros.
8031
8032 Call the command `info macro', not `show macro'.
8033 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8034 Fix error message.
8035 (_initialize_macrocmd): Register `info_macro_command' in
8036 `infolist', not `showlist'.
8037
8038 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8039
8040 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8041 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8042 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8043 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8044 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8045 unconditionally.
8046 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8047 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8048 (_initialize_mips_tdep): Remove dead code.
8049 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8050 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8051 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8052 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8053 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8054 MIPS_LAST_FP_ARG_REGNUM): Remove.
8055
8056 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8057
8058 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8059 (unwind_tmp_obstack_free, parse_frame_info)
8060 (update_context, cfi_read_fp, cfi_write_fp)
8061 (cfi_frame_chain, cfi_init_extra_frame_info)
8062 (cfi_virtual_frame_pointer): Use the above function.
8063 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8064
8065 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8066
8067 * v850-tdep.c (v850_type_is_scalar): New function.
8068 (v850_use_struct_convention): Match current gcc implementation
8069 as close as possible.
8070 (v850_push_arguments): Fix stack_offset handling. Don't write
8071 struct_addr into register. This is done by v850_store_struct_return.
8072 (v850_extract_return_value): Care for structs.
8073 (v850_store_return_value): Ditto.
8074 (v850_store_struct_return): Actually write address.
8075
8076 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8077
8078 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8079 without debug information too.
8080
8081 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8082
8083 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8084 Make multi-arch pure.
8085 * gdbarch.h, gdbarch.c: Re-generate.
8086 * arm-tdep.c (arm_print_float_info): Update.
8087 * arch-utils.h (default_print_float_info): Update.
8088 * arch-utils.c (default_print_float_info): Update.
8089 * infcmd.c (float_info): Update call.
8090
8091 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8092
8093 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8094 the front of the initialize list.
8095
8096 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8097
8098 * infrun.c (struct inferior_status): Replace fields
8099 selected_frame_address and selected_level with field
8100 selected_frame_id.
8101 (save_inferior_status): Update. Use get_frame_id.
8102 (struct restore_selected_frame_args): Delete.
8103 (restore_selected_frame): Update. Use frame_find_by_id.
8104 (restore_inferior_status): Update.
8105
8106 * breakpoint.h (struct breakpoint): Change type of
8107 watchpoint_frame to frame_id.
8108 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8109 call to get_current_frame.
8110 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8111 get_current_frame.
8112 (watchpoint_check): Use frame_find_by_id.
8113
8114 * frame.h (record_selected_frame): Delete declaration.
8115 * stack.c (record_selected_frame): Delete function.
8116
8117 * frame.h (struct frame_id): Define.
8118 (get_frame_id): Declare.
8119 (frame_find_by_id): Declare.
8120 * frame.c (frame_find_by_id): New function.
8121 (get_frame_id): New function.
8122
8123 2002-06-10 Andrey Volkov <avolkov@transas.com>
8124
8125 * ser-e7kpc.c: Fix duplicated define and call of
8126 _initialize_ser_e7000pc
8127
8128 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8129
8130 * signals/signals.c (target_signal_from_host): Fix #ifdef
8131 SIGRTMIN case.
8132 (do_target_signal_to_host): Likewise.
8133
8134 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8135
8136 * mips-tdep.c (mips_find_abi_section): New function.
8137 (mips_gdbarch_init): Call it.
8138
8139 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8140
8141 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8142 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8143 after Andrew's 2002-06-08 gdbarch change.
8144
8145 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8146
8147 * i386-linux-nat.c (suppy_gregset): Don't supply
8148 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8149 register cache.
8150 (fill_gregset): Don't fetch it under the same circumstances.
8151
8152 2002-06-09 Andrew Cagney <cagney@redhat.com>
8153
8154 * Makefile.in (callback_h): Define.
8155 (remote_sim_h): Update path to remote-sim.h.
8156 (remote-rdp.o): Add $(callback_h).
8157 (remote-sim.o): Use $(callback_h).
8158 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8159 * remote-rdp.c: Include "gdb/callback.h".
8160
8161 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8162
8163 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8164 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8165
8166 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8167
8168 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8169 * rdi-share/serpardr.c: Ditto.
8170 * rdi-share/unixcomm.c: Ditto.
8171 * rdi-share/serdrv.c: Ditto.
8172 * rdi-share/hostchan.h: Ditto.
8173 * rdi-share/hostchan.c: Ditto.
8174 * rdi-share/host.h: Ditto.
8175 * rdi-share/devsw.c: Ditto.
8176
8177 * objfiles.h: Change type of obj_private to void pointer.
8178 * pa64solib.c: Update copyright. Don't include "assert.h", use
8179 strcmp instead of STREQ, use LONGEST, do not use PTR
8180 * somsolib.c: Ditto.
8181
8182 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8183 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8184 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8185
8186 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8187
8188 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8189 (default_get_saved_register): Delete function.
8190 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8191 generic_unwind_get_saved_register.
8192 * gdbarch.h, gdbarch.c: Re-generate.
8193
8194 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8195
8196 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8197 generic_func_frame_chain_valid.
8198 * gdbarch.h, gdbarch.c: Re-generate.
8199 * blockframe.c (generic_func_frame_chain_valid): Only check
8200 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8201 passing FP to PC_IN_CALL_DUMMY.
8202 Fix PR gdb/360.
8203
8204 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8205
8206 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8207 (register_gdbarch_data): Initialize init_p.
8208 (gdbarch_data): Initialize data pointer using the init function.
8209 (init_gdbarch_data): Delete function.
8210 (gdbarch_update_p): Update.
8211 (initialize_non_multiarch): Update.
8212 (struct gdbarch): Add field initialized_p.
8213 * gdbarch.h, gdbarch.c: Re-generate.
8214
8215 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8216
8217 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8218 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8219 better do the things actually here.
8220 * x86-64-tdep.c (x86_64_register_name2nr): New.
8221 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8222 (x86_64_gdbarch_init): Respect the above change.
8223 * x86-64-tdep.h (x86_64_register_name2nr)
8224 (x86_64_register_nr2name): Add prototypes.
8225 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8226
8227 2002-06-06 Michael Snyder <msnyder@redhat.com>
8228
8229 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8230 Delete extra braces and re-indent.
8231 (d10v_store_return_value): Char return values
8232 must be shifted over by one byte in R0.
8233 (d10v_extract_return_value): Delete extra braces, re-indent.
8234
8235 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8236
8237 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8238 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8239 (d10v_integer_to_address): Rewrite.
8240 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8241 the d10v specific functions which take care of converting to the
8242 correct space.
8243
8244 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8245
8246 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8247 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8248
8249 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8250
8251 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8252 includes.
8253 * config/tm-linux.h: Ditto.
8254 * config/alpha/tm-alphalinux.h: Ditto.
8255 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8256 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8257 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8258 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8259 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8260 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8261 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8262 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8263 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8264 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8265 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8266 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8267 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8268 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8269 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8270 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8271 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8272 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8273 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8274 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8275 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8276 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8277 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8278 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8279 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8280 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8281 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8282 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8283 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8284 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8285 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8286 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8287 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8288 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8289 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8290 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8291 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8292
8293 2002-05-04 Aidan Skinner <aidan@velvet.net>
8294
8295 * ada-exp.tab.c: New file
8296 * ada-exp.y: New file
8297 * ada-lang.c: New file
8298 * ada-lang.h: New file
8299 * ada-lex.c: New file
8300 * ada-lex.l: New file
8301 * ada-tasks.c: New file
8302 * ada-typeprint.c: New file
8303 * ada-valprint.c: New file
8304
8305 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8306
8307 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8308 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8309
8310 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8311
8312 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8313 insetead of ppc-linux-tdep.o.
8314 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8315 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8316
8317 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8318
8319 2002-05-07 Christian Groessler <chris@groessler.org>
8320 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8321 bit register contents for little endian hosts.
8322
8323 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8324
8325 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8326 any maintainer.
8327
8328 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8329
8330 * gdbarch.h: Regenerate.
8331
8332 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8333
8334 * MAINTAINERS: Add everyone to write-after-approval list.
8335
8336 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8337
8338 * stack.c (frame_info): Use frame_register_unwind instead of
8339 saved_regs. Mention when the SP is on the stack or in a register.
8340
8341 * frame.h (frame_register_unwind_ftype): Define. Document.
8342 (struct frame_info): Add field register_unwind and
8343 register_unwind_cache.
8344 (frame_register_unwind): Declare.
8345 (generic_unwind_get_saved_register): Declare.
8346
8347 * frame.c (frame_register_unwind): New function.
8348 (generic_unwind_get_saved_register): New function.
8349
8350 * blockframe.c (generic_call_dummy_register_unwind): New function.
8351 (frame_saved_regs_register_unwind): New function.
8352 (set_unwind_by_pc): New function.
8353 (create_new_frame): New function.
8354 (get_prev_frame): New function.
8355
8356 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8357
8358 * a29k-share/: Delete directory.
8359 * remote-vx29k.c: Delete file.
8360
8361 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8362
8363 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8364 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8365
8366 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8367
8368 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8369 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8370 (sparc64nbsd-nat.o)
8371 (sparcnbsd-nat.o)
8372 (sparcnbsd-tdep.o): New dependency lists.
8373 * NEWS: Note new UltraSPARC NetBSD native configuration.
8374 * configure.host (sparc64-*-netbsd*): New host.
8375 * configure.tgt (sparc-*-netbsdelf*)
8376 (sparc-*-netbsd*): Set gdb_target to nbsd.
8377 (sparc64-*-netbsd*): New target.
8378 * sparc64nbsd-nat.c: New file.
8379 * sparcnbsd-nat.c: New file.
8380 * sparcnbsd-tdep.c: New file.
8381 * sparcnbsd-tdep.h: New file.
8382 * config/sparc/nbsd.mt: New file.
8383 * config/sparc/nbsd64.mh: New file.
8384 * config/sparc/nbsd64.mt: New file.
8385 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8386 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8387 (HOST_IPC): Remove.
8388 * config/sparc/nbsdaout.mt: Remove.
8389 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8390 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8391 (HOST_IPC): Remove.
8392 * config/sparc/nbsdelf.mt: Remove.
8393 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8394 sparc-nat.c compatiblity defines.
8395 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8396 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8397 * config/sparc/tm-nbsd64.h: New file.
8398 * config/sparc/tm-nbsdaout.h: Remove.
8399 * config/sparc/xm-nbsd.h: Remove.
8400
8401 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8402
8403 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8404 * sparc-tdep.c: Include osabi.h.
8405 (gdbarch_tdep): Add osabi member.
8406 (_initialize_sparc_tdep): Use gdbarch_register.
8407 (sparc_gdbarch_init): Use generic OS ABI framework.
8408 (sparc_dump_tdep): New function.
8409
8410 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8411
8412 * corefile.c (do_captured_read_memory_integer): Return non-zero
8413 result.
8414 (safe_read_memory_integer): Copy result of memory read when
8415 status is non-zero. Also, add comments.
8416
8417 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8418
8419 * Makefile.in (ppc_tdep_h): Define.
8420 (ppc-linux-nat.o)
8421 (ppc-linux-tdep.o)
8422 (rs6000-tdep.o): Use $(ppc_tdep_h).
8423 (ppc-sysv-tdep.o)
8424 (ppcnbsd-nat.o)
8425 (ppcnbsd-tdep.o): New dependency lists.
8426 * ppc-tdep.h: Use generic OS ABI framework.
8427 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8428 (ppc_linux_init_abi): New functions.
8429 (ppc_sysv_abi_broken_use_struct_convention)
8430 (ppc_sysv_abi_use_struct_convention)
8431 (ppc_sysv_abi_push_arguments): Move to...
8432 * ppc-sysv-tdep.c: ...here.
8433 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8434 * rs6000-tdep.c (process_note_abi_tag_sections)
8435 (get_elfosabi): Remove.
8436 (rs6000_gdbarch_init): Use generic OS ABI framework.
8437 (rs6000_dump_tdep): New function.
8438 (_initialize_rs6000_tdep): Use gdbarch_register.
8439 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8440 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8441 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8442 of ppc-linux-tdep.o.
8443 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8444 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8445 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8446 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8447 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8448 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8449
8450 2002-05-29 Jim Blandy <jimb@redhat.com>
8451
8452 * macroscope.c (default_macro_scope): Put `void' in empty argument
8453 list.
8454
8455 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8456
8457 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8458 * arch-utils.c: Include "sim-regno.h".
8459 * gdbarch.sh: Don't include "sim-regno.h".
8460 * gdbarch.h, gdbarch.c: Regenerate.
8461 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8462 here.
8463 * arch-utils.h (legacy_register_sim_regno): To here.
8464 * remote-sim.c (legacy_register_sim_regno): Move function from
8465 here.
8466 * arch-utils.c (legacy_register_sim_regno): To here.
8467
8468 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8469
8470 * sim-regno.h: New file.
8471 * Makefile.in (sim_regno_h): Define.
8472 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8473 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8474 (legacy_register_sim_regno): New function.
8475 (one2one_register_sim_regno): New function.
8476 (gdbsim_fetch_register): Rewrite.
8477 (gdbsim_store_register): Only store a register when
8478 REGISTER_SIM_REGNO is valid.
8479 * d10v-tdep.c: Include "sim-regno.h".
8480 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8481 (d10v_ts3_register_sim_regno): Ditto.
8482 * gdbarch.sh: Include "sim-regno.h".
8483 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8484 * gdbarch.h, gdbarch.c: Regenerate.
8485 * arch-utils.h (default_register_sim_regno): Delete declaration.
8486 * arch-utils.c (default_register_sim_regno): Delete function.
8487
8488 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8489
8490 * ppcnbsd-nat.c: Rewrite.
8491 * ppcnbsd-tdep.c: New file.
8492 * ppcnbsd-tdep.h: New file.
8493 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8494 solib.o, and solib-svr4.o.
8495 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8496 nbsd-tdep.o, and corelow.o.
8497
8498 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8499
8500 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8501 `tr' and `sed'. Mention that `broken' targets are not expected to
8502 build.
8503
8504 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8505
8506 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8507 Let PC point right after the prologue before looking up symbols.
8508
8509 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8510
8511 * i386-tdep.c (i386_register_virtual_type): Return
8512 builtin_type_vec128i for SSE registers.
8513
8514 * gdbtypes.h (builtin_type_vec128i): Declare.
8515
8516 * gdbtypes.c (build_builtin_type_vec128i): New function.
8517 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8518 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8519 (build_gdbtypes): Initialize new builtin vector types.
8520 (_initialize_gdbtypes): Register new vector types with gdbarch.
8521
8522 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8523
8524 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8525 since it has been multi-arch'd.
8526 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8527 Move Alpha and VAX multi-arch news entries to same section
8528 as other multi-arch news.
8529
8530 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8531
8532 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8533 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8534 static. Rename some register numbers to put them in ns32k-tdep
8535 private namespace.
8536 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8537 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8538 functions.
8539 (_initialize_ns32k_tdep): Use gdbarch_register.
8540 * ns32k-tdep.h: New file.
8541 * ns32knbsd-tdep.c: New file.
8542 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8543 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8544 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8545 REGISTER_BYTES, REGISTER_BYTE): Remove.
8546 * config/ns32k/tm-ns32k.h: New file.
8547 * config/ns32k/tm-umax.h: Remove.
8548
8549 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8550
8551 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8552 ns32k_store_struct_return, ns32k_extract_return_value,
8553 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8554 functions.
8555 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8556 ns32k_saved_pc_after_call.
8557 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8558 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8559 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8560 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8561 ns32k_extract_struct_value_address.
8562
8563 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8564
8565 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8566 ns32k_fix_call_dummy): New.
8567 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8568 ns32k_call_dummy_words.
8569 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8570 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8571 CALL_DUMMY_NARGS): Remove.
8572 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8573
8574 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8575
8576 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8577 ns32k_frame_saved_pc, ns32k_frame_args_address,
8578 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8579 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8580 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8581 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8582 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8583 (BREAKPOINT): Remove..
8584 (FRAME_CHAIN): Define as ns32k_frame_chain.
8585 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8586 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8587 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8588 (FRAME_FIND_SAVED_REGS): Remove.
8589 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8590 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8591 (POP_FRAME): Define as ns32k_pop_frame.
8592
8593 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8594
8595 * ns32k-tdep.c (ns32k_register_byte_32082,
8596 ns32k_register_byte_32382, ns32k_register_raw_size,
8597 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8598 functions.
8599 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8600 ns32k_register_byte_32382.
8601 * config/ns32k/tm-umax.h: Update copyright years.
8602 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8603 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8604 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8605 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8606 (ns32k_get_enter_addr): Fix prototype.
8607
8608 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8609
8610 * ns32k-tdep.c: Update copyright years.
8611 (ns32k_register_name_32082): New function.
8612 (ns32k_register_name_32382): Ditto.
8613 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8614 (REGISTER_NAME): Define as ns32k_register_name_32382.
8615 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8616 (REGISTER_NAME): Define as ns32k_register_name_32082.
8617
8618 2002-05-24 Jim Blandy <jimb@redhat.com>
8619
8620 * dwarf2read.c (free_line_header): Use xfree, not free.
8621
8622 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8623
8624 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8625 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8626
8627 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8628
8629 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8630
8631 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8632
8633 From Ross Alexander at NEC Europe:
8634 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8635
8636 2002-05-23 Michael Snyder <msnyder@redhat.com>
8637
8638 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8639 for input, rather than parse_and_eval_address.
8640
8641 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8642
8643 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8644 * Makefile.in (sim_d10v_h): Update definition.
8645
8646 2002-05-24 Andrew Cagney <cagney@redhat.com>
8647
8648 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8649 change `2002-05-22 Michael Snyder' below.
8650 (d10v_push_arguments): Ditto.
8651 (d10v_extract_return_value): Ditto.
8652
8653 2002-05-23 Jim Blandy <jimb@redhat.com>
8654
8655 * macrotab.c (check_for_redefinition): Don't complain if the new
8656 definition is the same as the previous one. Take more arguments
8657 to allow the comparison.
8658 (macro_define_object, macro_define_function): Pass more arguments
8659 to check_for_redefinition.
8660
8661 2002-05-22 Michael Snyder <msnyder@redhat.com>
8662
8663 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8664 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8665 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8666 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8667 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8668 Add a temp variable to save a call (and a memory read).
8669 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8670 if possible (so that PC_IN_CALL_DUMMY will work).
8671
8672 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8673
8674 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8675
8676 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8677
8678 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8679 fde->cie_ptr.
8680 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8681 (dwarf2_build_frame_info): Add offset to fde->initial_location
8682 so that frames of shared libraries are mapped correctly.
8683 (execute_stack_op): Change type of 'result' from ULONGEST to
8684 CORE_ADDR.
8685
8686 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8687
8688 * config/alpha/tm-nbsd.h: Include solib.h.
8689
8690 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8691
8692 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8693 assumptions about the host's byte order.
8694
8695 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8696
8697 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8698 to dependency list.
8699 * alphanbsd-tdep.c: Include solib-svr4.h.
8700 * shnbsd-tdep.c: Ditto.
8701
8702 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8703
8704 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8705 nbsd-tdep.h to dependency list.
8706 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8707 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8708 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8709 nbsdaout.mh and nbsdelf.mh consistently.
8710 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8711 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8712 nbsdaout.mt and nbsdelf.mh consistently.
8713 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8714 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8715 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8716 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8717 a.out shared library stuff from here...
8718 * config/nm-nbsdaout.h: ...to here.
8719 * config/tm-nbsd.h: Remove.
8720 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8721 * config/arm/nbsd.mh: Remove.
8722 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8723 nbsd-tdep.o.
8724 * config/arm/nbsdaout.mh: New file.
8725 * config/arm/nbsdelf.mh: New file.
8726 * config/arm/nm-nbsdaout.h: New file.
8727 * config/i386/nbsd.mh: Remove.
8728 * config/i386/nbsd.mt: Remove.
8729 * config/i386/nbsdaout.mh: New file.
8730 * config/i386/nbsdaout.mt: New file.
8731 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8732 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8733 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8734 i386_register_u_addr): Remove.
8735 * config/i386/nm-nbsdaout.h: New file.
8736 * config/i386/nm-nbsdelf.h: Remove.
8737 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8738 (USE_STRUCT_CONVENTION): Remove.
8739 * config/i386/tm-nbsdaout.h: New file.
8740 * config/i386/tm-nbsdelf.h: Remove.
8741 * config/m68k/nbsd.mh: Remove.
8742 * config/m68k/nbsd.mt: Remove.
8743 * config/m68k/nbsdaout.mh: New file.
8744 * config/m68k/nbsdaout.mt: New file.
8745 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8746 * config/m68k/nm-nbsdaout.h: New file.
8747 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8748 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8749 * config/ns32k/nbsd.mh: Remove.
8750 * config/ns32k/nbsd.mt: Remove.
8751 * config/ns32k/nbsdaout.mh: New file.
8752 * config/ns32k/nbsdaout.mt: New file.
8753 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8754 * config/ns32k/nm-nbsdaout.h: New file.
8755 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8756 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8757 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8758 (SVR4_SHARED_LIBS): Remove.
8759 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8760 * config/sparc/nbsd.mh: Remove.
8761 * config/sparc/nbsd.mt: Remove.
8762 * config/sparc/nbsdaout.mh: New file.
8763 * config/sparc/nbsdaout.mt: New file.
8764 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8765 * config/sparc/nbsdelf.mt: New file.
8766 * config/sparc/nm-nbsdaout.h: New file.
8767 * config/sparc/nm-nbsdelf.h: Remove.
8768 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8769 * config/sparc/tm-nbsdaout.h: New file.
8770
8771 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8772
8773 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8774 mipsnbsd-tdep.c
8775 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8776
8777 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8778
8779 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8780 shnbsd-nat.c.
8781 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8782
8783 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8784
8785 * NEWS: Note new MIPS NetBSD native configuration.
8786 * configure.host (mips*-*-netbsd*): New host.
8787 * configure.tgt (mips*-*-netbsd*): New target.
8788 * mipsnbsd-nat.c: New file.
8789 * mipsnbsd-tdep.c: New file.
8790 * mipsnbsd-tdep.h: New file.
8791 * config/mips/nbsd.mh: New file.
8792 * config/mips/nbsd.mt: New file.
8793 * config/mips/nm-nbsd.h: New file.
8794 * config/mips/tm-nbsd.h: New file.
8795
8796 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * Makefile.in (SFILES): Add osabi.c.
8799 (COMMON_OBS): Add osabi.o.
8800 (osabi.o): New dependency list.
8801 * osabi.c: New file.
8802 * osabi.h: New file.
8803 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8804
8805 * Makefile.in (alpha_tdep_h): Define and use instead of
8806 alpha-tdep.h.
8807 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8808 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8809 Remove.
8810 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8811 * alpha-tdep.h: Include osabi.h.
8812 (alpha_abi): Remove.
8813 (gdbarch_tdep): Use generic OS ABI framework.
8814 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8815 gdbarch_register_osabi.
8816 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8817 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8818 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8819
8820 * Makefile.in (sh_tdep_h): Add osabi.h.
8821 * sh-tdep.h (sh_osabi): Remove.
8822 (gdbarch_tdep): Use generic OS ABI framework.
8823 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8824 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8825 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8826 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8827
8828 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8829 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8830 gdbarch_register_osabi.
8831 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8832 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8833 (get_elfosabi): Rename to...
8834 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8835 ABI framework support routines.
8836 (arm_gdbarch_init): Use generic OS ABI framework.
8837 (arm_dump_tdep): Likewise.
8838 (_initialize_arm_tdep): Likewise.
8839 * arm-tdep.h: Include osabi.h.
8840 (arm_abi): Remove.
8841 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8842 osabi member.
8843 (arm_gdbarch_register_os_abi): Remove prototype.
8844 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8845 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8846
8847 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8848 * mips-tdep.c: Include osabi.h.
8849 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8850 OS ABI framework.
8851
8852 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8853
8854 * h8300-tdep.c: Fix formatting.
8855
8856 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8857
8858 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8859 printing vector registers.
8860
8861 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8862
8863 From Fernando Nasser:
8864 * remote.c (remote_async_open_1): Re-throw the exception when the
8865 connection fails.
8866 (remote_cisco_open): Ditto.
8867 (remote_open_1): Ditto.
8868
8869 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8870
8871 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8872 (remote_start_remote): Add uiout parameter. Pass through to
8873 remote_start_remote_dummy.
8874 (remote_open_1): Use catch_exception instead of catch_errors.
8875 (remote_async_open_1): Ditto.
8876 (remote_cisco_open): Ditto.
8877
8878 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8879
8880 * remote.c (remote_start_remote): Replace PTR with void pointer.
8881 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8882 static.
8883
8884 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8885
8886 * gdb_indent.sh: Allow the script to be run in the sim directory.
8887
8888 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8889
8890 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8891 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8892
8893 * corelow.c (core_open): Only call set_gdbarch_from_file if
8894 exec_bfd is NULL.
8895
8896 2002-05-17 Andrey Volkov <avolkov@transas.com>
8897
8898 * h8300-tdep.c: Add support of EXR register
8899 * config/h8300/tm-h8300.h: Ditto.
8900
8901 2002-05-17 Andrey Volkov <avolkov@transas.com>
8902
8903 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8904
8905 2002-05-17 Andrey Volkov <avolkov@transas.com>
8906
8907 * h8300-tdep.c: Change literal regnums to REGNO.
8908
8909 2002-05-17 Jim Blandy <jimb@redhat.com>
8910
8911 * NEWS: Note addition of macro support.
8912
8913 Expand preprocessor macros in C expressions.
8914 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8915 (scan_macro_expansion, scanning_macro_expansion,
8916 finished_macro_expansion): New function declarations.
8917 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8918 variable declarations.
8919 * parser-defs.h (expression_context_pc): New declaration.
8920 * parse.c (expression_context_pc): New variable.
8921 (parse_exp_1): Set expression_context_pc, as well as
8922 expression_context_block.
8923 * c-exp.y (yylex): If we're not already reading the result of a
8924 macro expansion, try to macro-expand the next token. When we're
8925 done scanning a macro expansion, switch back to the mainline text.
8926 Commas and `if's in a macro's expansion don't terminate the input.
8927 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8928 (macro_original_text, macro_expanded_text,
8929 expression_macro_lookup_func, expression_macro_lookup_baton): New
8930 variables.
8931 (scan_macro_expansion, scanning_macro_expansion,
8932 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8933 c_preprocess_and_parse): New functions.
8934 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8935 c_preprocess_and_parse, instead of c_parse.
8936 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8937 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8938
8939 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8940
8941 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8942 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8943 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8944
8945 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8946
8947 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8948
8949 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8950
8951 * Makefile.in (sh_tdep_h): Define and use.
8952 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8953 register enum): Move to...
8954 * * sh-tdep.h: ...here.
8955 * sh-tdep.c: Include sh-tdep.h.
8956 * sh3-rom.c: Likewise.
8957 * shnbsd-tdep.c: Likewise.
8958
8959 2002-05-16 Michael Snyder <msnyder@redhat.com>
8960
8961 * arm-tdep.c: Spelling fix in comment.
8962
8963 2002-05-16 Jim Blandy <jimb@redhat.com>
8964
8965 Add commands for manually expanding macros and showing their
8966 definitions.
8967 * macrocmd.c, macroscope.c, macroscope.h: New files.
8968 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8969 (macroscope_h): New variable.
8970 (HFILES_NO_SRCDIR): Add macroscope.h.
8971 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8972 (macroscope.o, macrocmd.o): New rules.
8973
8974 Teach the Dwarf 2 reader to read macro information.
8975 * dwarf2read.c: #include "macrotab.h".
8976 (dwarf_macinfo_buffer): New variable.
8977 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8978 dwarf_macinfo_size.
8979 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8980 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8981 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8982 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8983 dwarf2_macro_spaces_in_definition): New complaints.
8984 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8985 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8986 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8987 the partial symbol table.
8988 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8989 from what's recorded in the partial symbol table.
8990 (read_file_scope): If the compilation unit has a
8991 `DW_AT_macro_info' attribute, read its macro information.
8992 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8993
8994 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8995
8996 Fix PR gdb/546
8997 * ser-tcp.c: Don't include <netinet/udp.h>.
8998
8999 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9000
9001 * MAINTAINERS: Update my email address.
9002
9003 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9004
9005 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9006 include file of the same name.
9007
9008 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9009
9010 * configure.tgt: Mark v850 as multi-arched.
9011 * config/v850/tm-v850.h: Remove file.
9012 * config/v850/v850.mt: Eliminate TM_FILE.
9013
9014 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9015
9016 * v850-tdep.c: Full multi-arch.
9017 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9018 Define GDB_MULTI_ARCH to 2.
9019
9020 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9021
9022 * p-exp.y (current_type): New static variable.
9023 Carries the type of the expression at the position that is parsed.
9024 (push_current_type, pop_current_type): Two new functions. Used
9025 to store/restore current_type in expression on specific tokens.
9026 (search_field): New static variable. Set to one after parsing a point
9027 as at that point only a FIELDNAME token should be searched.
9028 (FIELDNAME): New token. After a point only a token belonging to
9029 current_type type definition is allowed.
9030 (all over token rules): reset and change current_type according
9031 to rules.
9032 (exp '[' rule): insert implicit array index field if
9033 exp is a pascal string type.
9034
9035 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9036
9037 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9038 frame info. Use frame_info's saved_regs instead of matching member
9039 in extra_frame_info throughout.
9040 (v850_frame_init_saved_regs): New function.
9041 (v850_init_extra_frame_info): Move most functionality into
9042 v850_frame_init_saved_regs().
9043 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9044 (v850_frame_find_saved_regs): Remove declaration.
9045 (FRAME_FIND_SAVED_REGS): Remove definition.
9046 (v850_frame_init_saved_regs): Add declaration.
9047 (FRAME_INIT_SAVED_REGS): Add definition.
9048
9049 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9050
9051 * v850-tdep.c: Begin multi-arch'ing v850.
9052 (v850_target_architecture_hook): Remove function.
9053 (v850_gdbarch_init): New function. Add code previously in
9054 v850_target_architecture_hook().
9055 (_initialize_v850_tdep): Don't set target_architecture_hook.
9056 Call register_gdbarch_init() instead.
9057
9058 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9059
9060 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9061 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9062 (fixup_class_method_type): Likewise.
9063
9064 2002-05-15 Jim Blandy <jimb@redhat.com>
9065
9066 Add macro structures to GDB's symbol tables. Nobody puts anything
9067 in them yet.
9068 * symtab.h (struct symtab): New member: `macro_table'.
9069 * buildsym.h (pending_macros): New global variable.
9070 * buildsym.c: #include "macrotab.h".
9071 (buildsym_init): Initialize `pending_macros'.
9072 (end_symtab): If we found macro information while reading a CU's
9073 debugging info, do build a symtab structure for it. Make the
9074 symtab point to the macro information, and clear the
9075 `pending_macros' pointer which held it while we were reading the
9076 debug info.
9077 (really_free_pendings): Free any pending macro table.
9078 * objfiles.h (struct objfile): New member: `macro_cache'.
9079 * objfiles.c (allocate_objfile): Set allocate and free functions
9080 for the macro cache's objstack.
9081 (free_objfile): Empty the macro cache's obstack.
9082 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9083 set new allocate and free functions for it.
9084 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9085 free functions for the macro cache's objstack. (Why is this
9086 function building its own objfile?)
9087 * symmisc.c (print_objfile_statistics): Print statistics on the
9088 macro bcache.
9089 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9090
9091 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9092
9093 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9094 (REGISTER_U_ADDR): Delete definition.
9095 (arm_register_u_addr): Delete declaration.
9096
9097 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9098
9099 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9100 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9101
9102 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9103
9104 * regcache.c (register_valid): Revise comments refering to "Not
9105 available" and "unavailable".
9106 * frame.c (frame_register_read): Ditto.
9107 * findvar.c (value_of_register): Ditto.
9108
9109 2002-05-15 Andrew Cagney <cagney@redhat.com>
9110
9111 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9112 (remote-sim.o): Update dependencies.
9113 (d10v-tdep.o): Specify dependencies.
9114 (sim_d10v_h): Define.
9115
9116 2002-05-14 Jim Blandy <jimb@redhat.com>
9117
9118 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9119 * macrotab.c (macro_lookup_inclusion, find_definition,
9120 new_macro_table): Same.
9121
9122 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9123 not `! strcmp ()'. This is a dubious improvement.
9124 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9125
9126 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9127 although it's not necessary, to avoid a warning.
9128
9129 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9130
9131 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9132 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9133 TYPE_INSTANCE_FLAGS.
9134 (struct main_type): New.
9135 (struct type): Move most members to struct main_type. Change
9136 cv_type and as_type to new type_chain member. Add instance_flags.
9137 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9138 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9139 (finish_cv_type): Remove prototype.
9140 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9141 Set TYPE_CHAIN.
9142 (alloc_type_instance): New function.
9143 (smash_type): New function.
9144 (make_pointer_type, make_reference_type, make_function_type)
9145 (smash_to_member_type, smash_to_method_type): Call smash_type.
9146 (make_qualified_type): New function.
9147 (make_type_with_address_space): Call make_qualified_type.
9148 (make_cv_type): Likewise.
9149 (finish_cv_type): Remove unnecessary function.
9150 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9151 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9152 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9153 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9154 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9155 * hpread.c (hpread_read_struct_type): Likewise.
9156 * stabsread.c (read_struct_type): Likewise.
9157
9158 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9159
9160 * configure.tgt: Add a catch all sh* target, for cases like
9161 sh[2,3,4]-elf and sh-hms.
9162
9163 2002-05-14 Keith Seitz <keiths@redhat.com>
9164
9165 * event-loop.c (create_file_handler): Don't do anything but
9166 update data when we are given a fd which we are already
9167 monitoring.
9168
9169 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9170
9171 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9172 (update_context): Use __func__ in warnings.
9173
9174 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9177 and tcp_close to net_open and net_close.
9178 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9179 using UDP if requested. Don't try to disable Nagle on UDP
9180 sockets.
9181 * remote.c (remote_serial_open): New function. Warn about UDP.
9182 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9183
9184 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9185
9186 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9187
9188 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9189
9190 * configure.tgt: Remove sh-hms target.
9191 * MAINTAINERS: Don't list sh-hms as a separate target.
9192
9193 2002-05-13 Jim Blandy <jimb@redhat.com>
9194
9195 Add first preprocessor macro-expansion files.
9196 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9197 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9198 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9199 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9200 (COMMON_OBS): Add macrotab.o, macroexp.o.
9201 (macroexp.o, macrotab.o): New rules.
9202
9203 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9204
9205 * config/m88k/tm-m88k.h: Update copyright.
9206 (m88k_target_write_pc): Declare
9207 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9208 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9209 (SHIFT_INST_REGS): Update definition.
9210 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9211 using old definition of TARGET_WRITE_PC.
9212 * regcache.c (generic_target_write_pc): Delete code handling
9213 NNPC_REGNUM.
9214 * gdbarch.sh (NNPC_REGNUM): Delete.
9215 * gdbarch.h, gdbarch.c: Regenerate.
9216
9217 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9218
9219 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9220 builtin reg number.
9221
9222 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9223
9224 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9225 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9226 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9227 access macros.
9228 * c-typeprint.c (cp_type_print_method_args): Likewise.
9229 (c_type_print_args): Likewise.
9230 * d10v-tdep.c (d10v_push_arguments): Likewise.
9231 (d10v_extract_return_value): Likewise.
9232 * expprint.c (print_subexp): Likewise.
9233 * gdbtypes.c (lookup_primitive_typename): Likewise.
9234 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9235 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9236 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9237 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9238 (TYPE_VECTOR): Likewise.
9239 * hpread.c (hpread_read_struct_type)
9240 (fix_static_member_physnames, fixup_class_method_type)
9241 (hpread_type_lookup): Likewise.
9242 * mdebugread.c (parse_symbol, parse_type): Likewise.
9243 * p-lang.c (is_pascal_string_type): Likewise.
9244 * valops.c (hand_function_call): Likewise.
9245 * x86-64-tdep.c (classify_argument): Likewise.
9246
9247 * hpread.c (hpread_read_function_type)
9248 (hpread_read_doc_function_type): Call replace_type.
9249 * dstread.c (create_new_type): Delete.
9250 (decode_dst_structure, process_dst_function): Call alloc_type.
9251 Use type access macros.
9252
9253 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9254
9255 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9256 the're not supported by the current architecture.
9257 (i387_fill_fxsave): Likewise.
9258
9259 2002-05-12 Fred Fish <fnf@redhat.com>
9260
9261 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9262 sect_index_xxx members to index the first slot in section_offsets
9263 if all of the section_offsets are zero.
9264
9265 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9266
9267 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9268 checked in with last change.
9269
9270 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9271
9272 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9273 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9274 config.sub.
9275
9276 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9277
9278 * Makefile.in: Update dependencies.
9279
9280 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9281
9282 * language.c (local_hex_string_custom): Simplify. Do not depend
9283 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9284
9285 * memattr.c (mem_info_command): Replace calls to
9286 longest_local_hex_string and longest_local_hex_string_custom.
9287 * buildsym.c (make_blockvector): Ditto.
9288 * solib.c (info_sharedlibrary_command): Ditto.
9289 * tracepoint.c (tracepoints_info): Ditto.
9290 * symtab.c (print_msymbol_info): Ditto.
9291
9292 * language.c (local_hex_string): Delete.
9293 (local_hex_string_custom): Delete.
9294 (longest_local_hex_string): Rename to local_hex_string.
9295 (longest_local_hex_string_custom): Rename to
9296 local_hex_string_custom.
9297 * language.h (local_hex_string): Change parameter type to LONGEST.
9298 (local_hex_string_custom): Ditto.
9299 (longest_local_hex_string): Delete declaration.
9300 (longest_local_hex_string_custom): Ditto.
9301
9302 * solib.c: Update copyright.
9303 * memattr.c: Update copyright.
9304
9305 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9306
9307 * arch-utils.h (legacy_register_to_value): Declare.
9308 (legacy_value_to_register): Declare.
9309 (legacy_convert_register_p): Declare.
9310 * arch-utils.c (legacy_register_to_value): New function.
9311 (legacy_value_to_register): New function.
9312 (legacy_convert_register_p): New function.
9313
9314 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9315 (VALUE_TO_REGISTER): Define.
9316 (CONVERT_REGISTER_P): Define.
9317 * gdbarch.h, gdbarch.c: Regenerate.
9318
9319 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9320 VALUE_TO_REGISTER.
9321 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9322 CONVERT_REGISTER_P.
9323
9324 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9325 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9326
9327 * Makefile.in: Update dependencies for valops.c.
9328 * valops.c: Include "gdb_assert.h".
9329 (typecmp): Skip THIS parameter to methods.
9330 (find_method_list): Remove static_memfuncp argument,
9331 update callers. Check for stub methods.
9332 (find_value_oload_method_list): Don't set *static_memfuncp.
9333 (find_overload_match): Don't check for stub methods. Assert
9334 that methods are not stubbed. Handle static methods.
9335 (value_find_oload_method_list): Remove static_memfuncp argument.
9336 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9337 to the argument list for static stub methods.
9338 * value.h (value_find_oload_method_list): Update prototype.
9339
9340 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9341
9342 * arch-utils.h (generic_register_size): Declare.
9343 (generic_register_raw_size, generic_register_virtual_size): Delete
9344 declarations.
9345 * arch-utils.c (generic_register_raw_size): Delete.
9346 (generic_register_size): New function.
9347 (generic_register_virtual_size): Delete.
9348
9349 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9350 default generic_register_size.
9351 * gdbarch.h, gdbarch.c: Re-generate.
9352
9353 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9354 register_virtual_size.
9355 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9356 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9357
9358 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9359
9360 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9361 * gdbarch.h, gdbarch.c: Regenerate.
9362 * gnu-v3-abi.c: Update copyright.
9363 (vtable_address_point_offset): Update.
9364 (gnuv3_rtti_type): Update.
9365 (gnuv3_baseclass_offset): Update.
9366 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9367 (init_fetch_link_map_offsets): Update.
9368 * remote.c (get_remote_state): Update.
9369
9370 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9371
9372 * TODO: Remove value_headof/value_from_vtable_info comment.
9373 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9374 * values.c (value_headof, value_from_vtable_info): Delete.
9375 * value.h (value_from_vtable_info): Delete prototype.
9376
9377 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9378
9379 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9380 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9381 $(gdb_regex_h).
9382 (gdb_assert_h): Define.
9383 (gdb_wait_h): Define.
9384 (gdb_regex_h): Define.
9385
9386 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9387
9388 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9389 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9390
9391 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9392
9393 * nbsd-tdep.c: Fix comment.
9394
9395 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9396
9397 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9398 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9399 (nbsd-tdep.o): New dependency list.
9400 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9401 nbsd-tdep.h.
9402 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9403 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9404 * nbsd-tdep.c: New file.
9405 * nbsd-tdep.h: New file.
9406 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9407 nbsd-tdep.h.
9408 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9409 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9410 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9411 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9412
9413 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9414
9415 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9416 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9417 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9418 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9419 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9420 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9421
9422 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9423
9424 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9425 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9426 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9427 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9428 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9429 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9430 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9431
9432 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9433
9434 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9435 fetch_elfcore_registers to...
9436 * i386nbsd-tdep.c: ...here.
9437 (i386nbsd_use_struct_convention): Rename to...
9438 (i386nbsd_aout_use_struct_convention): ...this.
9439 (i386nbsd_supply_reg): New function.
9440 (i386nbsd_fill_reg): New function.
9441 (fetch_core_registers): Use i386nbsd_supply_reg.
9442 (fetch_elfcore_registers): Likewise.
9443 (_initialize_i386nbsd_tdep): New function.
9444 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9445 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9446 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9447 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9448 (i386nbsd_aout_use_struct_convention): ...this.
9449
9450 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9451
9452 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9453 (store_inferior_registers): Use shnbsd_fill_reg.
9454 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9455 sh_nbsd_supply_register): Collapse into...
9456 (shnbsd_supply_reg): ...this.
9457 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9458 (shnbsd_fill_reg): ...this.
9459 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9460 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9461 (fetch_core_registers): Use shnbsd_supply_reg.
9462 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9463 (sh_nbsd_core_fns): Rename to...
9464 (shnbsd_core_fns): ...this.
9465 (sh_nbsd_elfcore_fns): Rename to...
9466 (shnbsd_elfcore_fns): ...this.
9467 (sh_nbsd_init_abi): Rename to...
9468 (shnbsd_init_abi): ...this.
9469 (_initialize_sh_nbsd_tdep): Rename to...
9470 (_initialize_shnbsd_tdep): ...this.
9471 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9472 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9473 sh_nbsd_fill_register): Remove prototypes.
9474 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9475
9476 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9477
9478 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9479 (i387-nat.o): Delete dependency list.
9480 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9481 (x86-64-linux-nat.o): Likewise.
9482 * i387-nat.c: Delete file, moving contents to...
9483 * i387-tdep.c: ...here.
9484 * i387-nat.h: Rename...
9485 * i387-tdep.h: ...to this.
9486 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9487 * i386-linux-nat.c: Likewise.
9488 * i386bsd-nat.c: Likewise.
9489 * i386gnu-nat.c: Likewise.
9490 * i386nbsd-nat.c: Likewise.
9491 * i386v4-nat.c: Likewise.
9492 * x86-64-linux-nat.c: Likewise.
9493 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9494 * config/i386/go32.mh (NATDEPFILES): Likewise.
9495 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9496 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9497 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9498 * config/i386/linux.mh (NATDEPFILES): Likewise.
9499 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9500 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9501 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9502 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9503
9504 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9505
9506 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9507 (alphanbsd-nat.o): Remove dependency list.
9508 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9509 * alphanbsd-nat.c: Delete. Contents moved to...
9510 * alphanbsd-tdep.c: ...here.
9511 (_initialize_alphanbsd_tdep): Register core functions.
9512 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9513
9514 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9515
9516 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9517 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9518 (alphanbsd-nat.o): Likewise.
9519 (alphabsd-tdep.o): New dependency list.
9520 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9521 (fill_gregset): Use alphabsd_fill_reg.
9522 (supply_fpregset): Use alphabsd_supply_fpreg.
9523 (fill_fpregset): Use alphabsd_fill_fpreg.
9524 (fetch_inferior_registers): Use struct reg and struct fpreg
9525 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9526 and alphabsd_supply_fpreg.
9527 (store_inferior_registers): Use struct reg and struct fpreg
9528 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9529 and alphabsd_fill_fpreg.
9530 * alphabsd-tdep.c: New file.
9531 * alphabsd-tdep.h: New file.
9532 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9533 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9534 alphabsd_supply_fpreg.
9535 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9536 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9537
9538 2002-05-11 Eric Christopher <echristo@redhat.com>
9539
9540 * mips-tdep.c (mips_double_register_type): Fix thinko.
9541 (mips_single_register_type): Ditto.
9542 * MAINTAINERS: Add self.
9543
9544 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9545
9546 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9547 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9548 right thing on architectures with different endianness and/or
9549 integer sizes.
9550
9551 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9552
9553 From Christian Limpach <chris@Pin.LU>
9554 * configure.in: Change sed expression which comments out
9555 NATDEPFILES to also comment out continuation lines.
9556 * configure: Regenerate.
9557
9558 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9559
9560 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9561 big patch.
9562
9563 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9564
9565 * sh-tdep.c: Include correct file.
9566
9567 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9568
9569 New support for sh64-elf (sh5) target.
9570
9571 * configure.tgt: For sh64-elf target, default to sh-elf.
9572
9573 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9574 (struct gdbarch_tdep): Add new fields for new registers and ABI
9575 info.
9576
9577 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9578 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9579 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9580 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9581 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9582 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9583 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9584 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9585 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9586 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9587 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9588 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9589 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9590 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9591 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9592 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9593 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9594 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9595 sign_extend, sh64_nofp_frame_init_saved_regs,
9596 sh64_init_extra_frame_info, sh64_get_saved_register,
9597 sh64_extract_struct_value_address, sh64_pop_frame,
9598 sh64_push_arguments, sh64_extract_return_value,
9599 sh64_store_return_value, sh64_show_media_regs,
9600 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9601 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9602 sh_sh64_register_virtual_type,
9603 sh_sh64_register_convert_to_virtual,
9604 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9605 sh64_register_read, sh64_pseudo_register_write,
9606 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9607 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9608 sh64_do_pseudo_register, sh_compact_do_registers_info,
9609 sh64_do_registers_info, sh_gdbarch_init): New functions.
9610
9611 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9612
9613 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9614
9615 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9616
9617 * linespec.c (decode_line_1): Check for a double quote after
9618 a filename correctly.
9619
9620 2002-05-10 Jim Blandy <jimb@redhat.com>
9621
9622 Properly track the size of the current objfile's .debug_line section.
9623 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9624 (DWARF_LINE_SIZE): New macro.
9625 (dwarf2_build_psymtabs_hard): Record the line section's size in
9626 the partial symbol table.
9627 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9628 symbol table.
9629
9630 2002-05-10 Petr Sorfa <petrs@caldera.com>
9631
9632 * ia64-tdep.c: Handle breakpoints on L instruction type
9633 in MLX instruction bundle by moving the breakpoint to
9634 the third slot (X instruction type) as L holds only data.
9635
9636 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9637
9638 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9639 (process_one_symbol): Complain about discarding local symbols
9640 due to a misplaced N_LBRAC entry.
9641
9642 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9643
9644 From Daniel Berlin <dan@cgsoftware.com>
9645 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9646 decrease the depth we are at, in the case of templates.
9647
9648 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9649
9650 * mips-tdep.c (mips_float_register_type): New function.
9651 (mips_double_register_type): New function.
9652 (mips_print_register): Use them.
9653 (do_fp_register_row): Likewise.
9654
9655 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9656
9657 * signals/signals.c (signals): Remove conditional compilation around
9658 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9659 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9660
9661 2002-05-09 Michael Snyder <msnyder@redhat.com>
9662
9663 * remote-rdp.c (remote_rdp_can_run): Remove.
9664
9665 2002-05-09 Tom Tromey <tromey@redhat.com>
9666
9667 * jv-valprint.c (java_val_print): Handle `char' as a special case
9668 of TYPE_CODE_INT.
9669
9670 2002-05-09 Michael Snyder <msnyder@redhat.com>
9671
9672 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9673 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9674 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9675 str r(0123),[sp,#nn].
9676 (arm_skip_prologue): Ditto. Also make disassembly
9677 order-independent by placing it in a loop.
9678
9679 2002-05-06 Michael Snyder <msnyder@redhat.com>
9680
9681 * stabsread.c (read_type): Add recognition for new attribute:
9682 "@V;" means that an array type is actually a vector.
9683 This is analogous to the vector flag that's been added to dwarf2.
9684
9685 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9686
9687 * i386-tdep.h (i386_abi): New enum.
9688 (struct gdbarch_tdep): Replace os_ident member with abi.
9689 (i386_gdbarch_register_os_abi): New prototype.
9690 * i386-tdep.c (i386_abi_names): New array.
9691 (process_note_abi_tag_sections): Removed.
9692 (process_note_sections): New function.
9693 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9694 (struct i386_abi_handler): New struct.
9695 (i386_abi_handler_list): New variable.
9696 (i386_gdbarch_register_os_abi): New function.
9697 (i386_gdbarch_init): Adapt for the changes given above.
9698
9699 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9700
9701 * gregset.h: Say "GNU/Linux".
9702
9703 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9704
9705 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9706 (build_gdbtypes): Build builtin_type_v2_float.
9707 (_initialize_gdbtypes): Register new builtin type.
9708
9709 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9710
9711 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9712 (clear_gdbarch_swap): New function.
9713 (initialize_non_multiarch): Call.
9714 (gdbarch_update_p): Before calling init(), swap out and clear the
9715 existing architecture.
9716 * gdbarch.c: Regenerate.
9717
9718 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9719
9720 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9721 alphanbsd-tdep.c.
9722
9723 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9724
9725 * sh-nbsd-nat.c: Rename to...
9726 * shnbsd-nat.c: ...this.
9727 * sh-nbsd-tdep.c: Rename to...
9728 * shnbsd-tdep.c: ...this.
9729 * sh-nbsd-tdep.h: Rename to...
9730 * shnbsd-tdep.h: ...this.
9731 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9732 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9733
9734 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9735
9736 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9737 concatenation for command help messages.
9738
9739 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9740
9741 * NEWS: Note new sh*-*-netbsdelf* configuration.
9742 * configure.host: Set gdb_host_cpu to sh for all sh*.
9743 (sh*-*-netbsdelf*): New host.
9744 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9745 (sh*-*-netbsdelf*): New target.
9746 * sh-nbsd-nat.c: New file.
9747 * sh-nbsd-tdep.c: New file.
9748 * sh-nbsd-tdep.h: New file.
9749 * config/sh/nbsd.mh: New file.
9750 * config/sh/nbsd.mt: New file.
9751 * config/sh/nm-nbsd.h: New file.
9752 * config/sh/tm-nbsd.h: New file.
9753
9754 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9755
9756 * sh-tdep.c (sh_osabi_names): Declare.
9757 (process_note_abi_tag_sections): New function.
9758 (get_elfosabi): Ditto.
9759 (sh_gdbarch_register_os_abi): Ditto.
9760 (sh_dump_tdep): Ditto.
9761 _initialize_sh_tdep): Use gdbarch_register to register
9762 sh_gdbarch_init and sh_dump_tdep.
9763 * config/sh/tm-sh.h (sh_osabi): Declare.
9764 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9765
9766 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9767
9768 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9769 (thumb_scan_prologue): Ditto.
9770 (arm_find_callers_reg): Ditto.
9771 (arm_frame_chain): Ditto.
9772 (arm_init_extra_frame_info): Ditto.
9773 (arm_frame_saved_pc): Ditto.
9774 (arm_pop_frame): Ditto.
9775 (arm_push_return_address): New function.
9776 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9777 call_dummy_location, call_dummy_breakpoint_offset_p,
9778 call_dummy_breakpoint_offset, call_dummy_p,
9779 call_dummy_stack_adjust_p, call_dummy_words,
9780 sizeof_call_dummy_words, call_dummy_start_offset,
9781 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9782 call_dummy_address, push_return_address and push_dummy_frame for
9783 generic dummy frames.
9784
9785 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9788 size computation for alloca.
9789 (sh_fp_frame_init_saved_regs): Likewise.
9790
9791 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9792
9793 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9794 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9795 * arm-tdep.c (arm_store_return_value): Use them.
9796 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9797 * remote-rdp.c (remote_rdp_fetch_register): Use
9798 ARM_MAX_REGISTER_RAW_SIZE.
9799 (remote_rdp_store_register): Likewise.
9800
9801 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9802
9803 * dwarf2cfi.c: Code cleanup, removed unused variables,
9804 added default labels to switch {} statements.
9805 * x86-64-tdep.c: Ditto.
9806 * x86-64-linux-nat.c: Ditto.
9807
9808 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9809
9810 * solib.h: Protect against multiple inclusion.
9811
9812 2002-05-06 Jim Blandy <jimb@redhat.com>
9813
9814 Add first preprocessor macro-expansion files.
9815 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9816 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9817 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9818 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9819 (COMMON_OBS): Add macrotab.o, macroexp.o.
9820 (macroexp.o, macrotab.o): New rules.
9821
9822 Separate the job of reading the line number info statement program
9823 header (...expialidocious) out into its own function.
9824 * dwarf2read.c (struct line_head, struct filenames, struct
9825 directories): Replace with...
9826 (struct line_header): New structure, containing the full
9827 contents of the statement program header, including the
9828 include directory and file name tables.
9829 (read_file_scope): If we have line number info, instead of just
9830 calling dwarf_decode_lines to do all the work, call
9831 dwarf_decode_line_header first to get a `struct line_header'
9832 containing the data in the statement program header, and then
9833 pass that to dwarf_decode_lines, which will pick up where that
9834 left off. Be sure to clean up the `struct line_header' object.
9835 (dwarf_decode_line_header, free_line_header, add_include_dir,
9836 add_file_name): New functions.
9837 (dwarf_decode_lines): Move all the code to read the statement
9838 program header into dwarf_decode_line_header. Take the line
9839 header it built as the first argument, instead of the offset to
9840 the compilation unit's line number info. Use the new `struct
9841 line_header' type instead of the old structures. No need to do
9842 cleanups here now, since we don't allocate anything.
9843 (dwarf2_statement_list_fits_in_line_number_section,
9844 dwarf2_line_header_too_long): New complaints.
9845
9846 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9847
9848 * gdbtypes.c (init_vector_type): New function.
9849 (build_builtin_type_vec128): Simplify the representation of SIMD
9850 registers.
9851 (build_gdbtypes): Initialize new builtin vector types.
9852 (_initialize_gdbtypes): Register new vector types with gdbarch.
9853 (builtin_type_v4_float, builtin_type_v4_int32,
9854 builtin_type_v8_int16, builtin_type_v16_int8,
9855 builtin_type_v2_int32, builtin_type_v4_int16,
9856 builtin_type_v8_int8): New (renamed) SIMD types.
9857
9858 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9859
9860 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9861 (i387_fill_fxsave): Likewise.
9862
9863 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9864
9865 * alpha-tdep.c (alpha_extract_return_value): Don't use
9866 non-constant array size in prototype.
9867
9868 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9869
9870 From Brian Taylor <briant at model dot com>:
9871 * ui-out.c (ui_out_field_core_addr): Use the function
9872 longest_local_hex_string_custom'to format addresses > 32 bits
9873 wide.
9874
9875 * ui-out.c (ui_out_field_core_addr): Update comment.
9876
9877 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9878
9879 * stack.c (select_and_print_frame): Make static. Delete the
9880 parameter `level'.
9881 (func_command): Update call.
9882 (select_frame_command): Delete code computing the frame level.
9883 * frame.h (select_and_print_frame): Delete declaration.
9884
9885 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9886
9887 * sparc-tdep.c (sparc_get_saved_register): Comment why
9888 get_prev_frame call is safe.
9889
9890 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9891
9892 * frame.h (select_frame): Delete level parameter.
9893 * stack.c (select_frame): Update. Use frame_relative_level to
9894 obtain the frame's level.
9895 (select_and_print_frame): Update call.
9896 (select_frame_command): Ditto.
9897 (up_silently_base): Ditto.
9898 (down_silently_base): Ditto.
9899 * ocd.c (ocd_start_remote): Ditto.
9900 * remote-rdp.c (remote_rdp_open): Ditto.
9901 * remote-mips.c (mips_initialize): Ditto.
9902 (common_open): Ditto.
9903 * remote-e7000.c (e7000_start_remote): Ditto.
9904 * m3-nat.c (select_thread): Ditto.
9905 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9906 (child_get_current_exception_event): Ditto.
9907 * varobj.c (varobj_create): Ditto.
9908 (varobj_update): Ditto.
9909 (c_value_of_root): Ditto.
9910 * tracepoint.c (finish_tfind_command): Ditto.
9911 * corelow.c (core_open): Ditto.
9912 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9913 * thread.c (info_threads_command): Ditto.
9914 (switch_to_thread): Ditto.
9915 * infrun.c (normal_stop): Ditto.
9916 (restore_selected_frame): Ditto.
9917 (restore_inferior_status): Ditto.
9918 * breakpoint.c (insert_breakpoints): Ditto.
9919 (watchpoint_check): Ditto.
9920 (bpstat_stop_status): Ditto.
9921 (do_enable_breakpoint): Ditto.
9922 * blockframe.c (flush_cached_frames): Ditto.
9923 (reinit_frame_cache): Ditto.
9924
9925 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9926
9927 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9928 maintainer.
9929
9930 2002-05-04 Jim Blandy <jimb@redhat.com>
9931
9932 * gdbtypes.c (replace_type): Doc fix.
9933
9934 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9935
9936 * valprint.c (strcat_longest): Delete commented out function.
9937 Update copyright.
9938
9939 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9940
9941 * MAINTAINERS: Mark a29k as deleted.
9942 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9943 Move new configurations to the top.
9944 * configure.tgt: Remove a29k.
9945 * config/a29k/tm-vx29k.h: Delete.
9946 * config/a29k/vx29k.mt: Delete.
9947 * config/a29k/tm-a29k.h: Delete.
9948 * config/a29k/a29k-udi.mt: Delete.
9949 * config/a29k/a29k.mt: Delete.
9950 * a29k-tdep.c: Delete.
9951 * remote-udi.c: Delete.
9952 * remote-mm.c: Delete.
9953 * remote-eb.c: Delete.
9954 * remote-adapt.c: Delete.
9955 * Makefile.in: Remove obsolete code.
9956 * config/s390/s390x.mt: Ditto.
9957 * config/s390/s390.mt: Ditto.
9958 * config/sparc/sparclynx.mh: Ditto.
9959 * config/sparc/linux.mh: Ditto.
9960 * config/pa/hppaosf.mh: Ditto.
9961 * config/pa/hppabsd.mh: Ditto.
9962 * config/ns32k/nbsd.mt: Ditto.
9963 * config/mips/vr5000.mt: Ditto.
9964 * config/m68k/sun3os4.mh: Ditto.
9965 * config/m68k/nbsd.mt: Ditto.
9966 * config/m68k/m68klynx.mh: Ditto.
9967 * config/m32r/m32r.mt: Ditto.
9968 * config/i386/x86-64linux.mt: Ditto.
9969 * config/i386/nbsdelf.mt: Ditto.
9970 * config/i386/nbsd.mt: Ditto.
9971 * config/i386/i386lynx.mh: Ditto.
9972
9973 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9974
9975 * target.c (debug_print_register): New function. Handle oversize
9976 registers.
9977 (debug_to_fetch_registers): Call.
9978 (debug_to_store_registers): Call.
9979
9980 2002-05-03 Jim Blandy <jimb@redhat.com>
9981
9982 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9983 (read_type): Doc fix.
9984 * gdbtypes.c (replace_type): Doc fix.
9985
9986 * stabsread.c (multiply_defined_struct): New complaint.
9987 (read_struct_type): If the type we were passed isn't empty, or
9988 incomplete, don't read the new struct type into it; complain,
9989 and return the original type unchanged. Take a new `type_code'
9990 argument, which is the type code for the new type.
9991 (read_type): Rather than storing the type's type code here, pass
9992 it as an argument to read_struct_type, and let that take care of
9993 storing it. That way, we don't overwrite the original type code,
9994 so read_struct_type can use it to decide whether we're overwriting
9995 something we shouldn't.
9996 (complain_about_struct_wipeout): New function.
9997
9998 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9999
10000 * gdbarch.sh: Assert that gdbarch is non-NULL.
10001 * gdbarch.c: Regenerate.
10002
10003 2002-05-03 Jason Merrill <jason@redhat.com>
10004
10005 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10006 and return NULL.
10007
10008 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10009
10010 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10011 (x86_64_dwarf2gdb_regno_map_length),
10012 (x86_64_dwarf2_reg_to_regnum): Added.
10013 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10014 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10015 (_initialize_x86_64_tdep): Synced with the change above.
10016 (x86_64_skip_prologue): Reformulated message.
10017
10018 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10019
10020 * f-exp.y: Also use new prev_lexptr variable
10021 to improve error reporting. Based on Michael Snyder
10022 2002-04-24 dated patch to c-exp.y.
10023 * jv-exp.y: Likewise.
10024 * m2-exp.y: Likewise.
10025
10026 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10027
10028 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10029 we are dealing with vectors.
10030
10031 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10032
10033 * config/m68k/tm-nbsd.h: Obvious fix,
10034 correct machine name.
10035
10036 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10037
10038 * p-typeprint.c (pascal_type_print_base): Add support
10039 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10040
10041 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10042
10043 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10044 for fondamental pascal 'char' type.
10045
10046 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10047
10048 * p-lang.h (is_pascal_string_type): Declaration changed,
10049 new sixth argument of type char ** added.
10050 * p-lang.c (is_pascal_string_type): Implementation
10051 changed. Args length_pos, length_size, string_pos, char_size
10052 can now be NULL. New argument arrayname set to the field
10053 name of the char array. Return value set to char array
10054 field index plus one.
10055 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10056 is_pascal_string_type function.
10057
10058 2002-05-02 Andrew Cagney <cagney@redhat.com>
10059
10060 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10061 <cagney@redhat.com> change.
10062 * gdbarch.c: Regenerate.
10063
10064 2002-05-02 Andrew Cagney <cagney@redhat.com>
10065
10066 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10067 before probing for a new one. Detect errorenous gdbarch_init
10068 functions.
10069 * gdbarch.c: Regenerate.
10070
10071 2002-05-01 Andrew Cagney <cagney@redhat.com>
10072
10073 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10074 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10075 * config/v850/tm-v850.h: Ditto. Update copyright.
10076
10077 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10078
10079 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10080 current_gdbarch.
10081
10082 2002-04-30 Michael Snyder <msnyder@redhat.com>
10083
10084 * arm-tdep.c: Whitespace clean-ups.
10085 (arm_skip_prologue): Fix thinko; two lines
10086 should have been removed as part of 4/24 change.
10087
10088 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10089
10090 * rs6000-tdep.c: Added comment describing how fpscr register
10091 numbers were chosen.
10092
10093 2002-04-30 Michael Snyder <msnyder@redhat.com>
10094
10095 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10096
10097 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10098
10099 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10100 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10101 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10102
10103 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10104
10105 From Louis Hamilton <hamilton@redhat.com>:
10106 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10107 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10108 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10109 not bfd-private xcoff data, to determine wordsize.
10110 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10111
10112 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10113
10114 GDB 5.2 released from 5.2 branch.
10115
10116 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10117
10118 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10119 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10120 (x86_64_register_info_table): Added comments with register numbers.
10121
10122 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10123
10124 * rs6000-tdep.c (rs6000_extract_return_value,
10125 rs6000_store_return_value): Handle returning vectors.
10126 (rs6000_gdbarch_init): Use
10127 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10128 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10129 New function.
10130 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10131 vectors.
10132 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10133 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10134
10135 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10136
10137 * hpread.c (hpread_psymtab_to_symtab_1,
10138 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10139 with fprintf_unfiltered (gdb_stderr,...).
10140
10141 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10142
10143 * remote-array.c (printf_monitor, write_monitor,
10144 array_insert_breakpoint, array_remove_breakpoint ):
10145 Replace fprintf (stderr,...
10146 with fprintf_unfiltered (gdb_stderr,....
10147 * remote-es.c: Likewise.
10148 * remote-os9k.c: Likewise.
10149 * remote-st.c: Likewise.
10150
10151 2002-04-28 Andreas Schwab <schwab@suse.de>
10152
10153 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10154 linux-proc.o and gcore.o.
10155
10156 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10157
10158 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10159 code without frame pointers.
10160
10161 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10162
10163 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10164 ON_STACK is needed.
10165
10166 2002-04-26 Ben Elliston <bje@redhat.com>
10167
10168 * target.c (do_xfer_memory): Correct reference to the new option
10169 "trust-readonly-sections".
10170
10171 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10172
10173 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10174 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10175 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10176 vectors.
10177 (read_array_type): Record the fact that this array type is really a
10178 vector (i.e. are passed in by value).
10179
10180 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10181
10182 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10183 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10184 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10185 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10186 * alpha-linux-tdep.c: Include frame.h.
10187 (alpha_linux_sigcontext_addr): New function.
10188 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10189 alpha_linux_sigcontext_addr.
10190 * alpha-osf1-tdep.c: Include gdbcore.h.
10191 (alpha_osf1_sigcontext_addr): New function.
10192 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10193 alpha_osf1_sigcontext_addr.
10194 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10195 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10196
10197 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10198
10199 * stack.c (selected_frame_level):
10200 (select_frame): Do not set selected_frame_level.
10201 * frame.h (selected_frame_level): Delete declaration.
10202
10203 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10204
10205 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10206 convert_from_func_ptr-addr when AIX / PowerOpen.
10207
10208 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10209
10210 * valops.c (hand_function_call): Call
10211 generic_save_call_dummy_addr.
10212 * frame.h (generic_save_call_dummy_addr): Declare.
10213 * blockframe.c (struct dummy_frame): Add fields call_lo and
10214 call_hi.
10215 (generic_find_dummy_frame): Check for PC in range call_lo to
10216 call_hi instead of entry_point_address.
10217 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10218 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10219 (generic_save_call_dummy_addr): New function.
10220
10221 2002-04-24 David S. Miller <davem@redhat.com>
10222
10223 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10224 sparc_skip_prologue.
10225 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10226 information to find prologue when possible.
10227 (sparc_prologue_frameless_p): Call examine_prologue directly.
10228 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10229 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10230 second argument.
10231 (SKIP_PROLOGUE): Likewise.
10232
10233 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10234
10235 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10236 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10237 indicate that the condition it was testing is always true.
10238 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10239 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10240 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10241
10242 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10243
10244 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10245 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10246 tdep->jb_pc and tdep->jb_elt_size.
10247 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10248 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10249 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10250 * alpha-nat.c (get_longjmp_target): Remove.
10251 (JB_ELEMENT_SIZE): Ditto.
10252 (JB_PC): Ditto.
10253 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10254 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10255 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10256 to alpha_get_longjmp_target.
10257 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10258 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10259 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10260
10261 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10262
10263 * README: Update to GDB 5.2.
10264
10265 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10266
10267 * gdbarch.sh (LC_ALL): Set to `c'.
10268
10269 2002-04-25 Theodore A. Roth <troth@verinet.com>
10270
10271 * avr-tdep.c: Ran through gdb_indent.sh.
10272
10273 2002-04-25 Theodore A. Roth <troth@verinet.com>
10274
10275 * MAINTAINERS: Add myself as AVR maintainer.
10276 * NEWS: Note new target avr.
10277
10278 2002-04-25 Theodore A. Roth <troth@verinet.com>
10279
10280 * Makefile.in: Add support for AVR target.
10281 * configure.tgt: Add support for AVR target.
10282 * avr-tdep.c: New file
10283 * config/avr/avr.mt: New file.
10284
10285 2002-04-25 Theodore A. Roth <troth@verinet.com>
10286
10287 * MAINTAINERS: Add myself to write-after-approval.
10288
10289 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10290
10291 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10292 with fprintf_unfiltered (gdb_stderr,....
10293
10294 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10295
10296 Fix PR gdb/508.
10297 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10298
10299 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10300
10301 * p-exp.y: Also use new prev_lexptr variable
10302 to improve error reporting. Based on Michael Snyder
10303 2002-04-24 dated patch to c-exp.y.
10304
10305 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10306
10307 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10308 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10309 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10310 to 0.
10311 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10312 and struct value.
10313 (FUNCTION_START_OFFSET): Remove.
10314 (BREAKPOINT): Ditto.
10315
10316 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10317
10318 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10319 * NEWS: Ditto.
10320
10321 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10322
10323 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10324 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10325 alpha_linux_pc_in_sigtramp.
10326 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10327 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10328 alpha_osf1_pc_in_sigtramp.
10329 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10330 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10331 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10332 alphafbsd_pc_in_sigtramp.
10333 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10334 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10335 alphanbsd_pc_in_sigtramp.
10336 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10337 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10338
10339 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10340
10341 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10342
10343 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10344
10345 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10346 alphanbsd-tdep.c.
10347 (alphanbsd-nat.o): New dependency list.
10348 (alphanbsd-tdep.o): Ditto.
10349 * NEWS: Note new native NetBSD/alpha configuration.
10350 * alphanbsd-nat.c: New file.
10351 * alphanbsd-tdep.c: Ditto.
10352 * configure.host (alpha*-*-netbsd*): New host.
10353 * configure.tgt (alpha*-*-netbsd*): New target.
10354 * config/alpha/nbsd.mh: New file.
10355 * config/alpha/nbsd.mt: Ditto.
10356 * config/alpha/nm-nbsd.h: Ditto.
10357 * config/alpha/tm-nbsd.h: Ditto.
10358
10359 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10360
10361 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10362 (alpha-osf1-tdep.o): New dependency list.
10363 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10364 and skip_sigtramp_frame members.
10365 * alpha-linux-tdep.c: Include gdbcore.h.
10366 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10367 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10368 * alpha-osf1-tdep.c: New file.
10369 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10370 alpha-osf1-dep.c.
10371 (alpha_frame_past_sigtramp_frame): New function.
10372 (alpha_dynamic_sigtramp_offset): Ditto.
10373 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10374 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10375 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10376 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10377 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10378 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10379 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10380 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10381 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10382 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10383 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10384 to find_solib_trampoline_target.
10385 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10386 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10387 (SKIP_TRAMPOLINE_CODE): Remove.
10388 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10389 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10390 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10391 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10392 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10393 (PROC_SIGTRAMP_MAGIC): Ditto.
10394 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10395 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10396 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10397 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10398 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10399
10400 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10401
10402 * NEWS: Note that Alpha targets are now multi-arch.
10403
10404 2002-04-24 Michael Snyder <msnyder@redhat.com>
10405
10406 * parser-defs.h (prev_lexptr): New external variable.
10407 * parse.c (parse_exp_1): Set prev_lexptr to null before
10408 calling the language-specific parser.
10409 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10410 (yyerror): Use prev_lexptr in error reporting.
10411
10412 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10413
10414 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10415 * gregset.h: If FILL_FPXREGSET is defined, provide
10416 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10417 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10418 is defined, call fill_fpxregset.
10419
10420 2002-04-24 Roland McGrath <roland@frob.com>
10421
10422 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10423 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10424 (supply_gregset, supply_fpregset): New functions.
10425
10426 * gnu-nat.c (gnu_find_memory_regions): New function.
10427 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10428 (gnu_xfer_memory): Add a cast.
10429
10430 2002-04-24 Michael Snyder <msnyder@redhat.com>
10431
10432 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10433 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10434 of argument regs ("str r(0123), [r11, #-nn"]).
10435 (arm_skip_prologue): Better handling for frameless functions.
10436 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10437 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10438
10439 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10440
10441 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10442 NUM_PSEUDO_REGS can be used.
10443
10444 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10445
10446 * arch-utils.h: Update copyright.
10447
10448 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10449 * gdbarch.h, gdbarch.c: Re-generate.
10450
10451 * inferior.h (IN_SIGTRAMP): Delete definition.
10452 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10453 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10454
10455 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10456 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10457 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10458 (find_proc_framesize): Ditto.
10459 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10460 (alpha_init_extra_frame_info): Ditto.
10461 * infrun.c (handle_inferior_event): Ditto.
10462 (handle_inferior_event): Ditto.
10463 (check_sigtramp2): Ditto.
10464 * blockframe.c (create_new_frame): Ditto.
10465 (get_prev_frame): Ditto.
10466 * ppc-linux-tdep.c: Update comments.
10467 * i386-linux-tdep.c: Update comments.
10468 * breakpoint.c (bpstat_what): Update comment.
10469
10470 2002-04-24 David S. Miller <davem@redhat.com>
10471
10472 * i960-tdep.c (register_in_window_p): New function.
10473 (i960_find_saved_register): Use it instead of
10474 REGISTER_IN_WINDOW_P.
10475 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10476
10477 * symtab.h (find_stab_function_addr): Kill extern.
10478 * minsyms.c (find_stab_function_addr): Remove from here...
10479 * dbxread.c: ... to here, and mark it static.
10480
10481 2002-04-20 David S. Miller <davem@redhat.com>
10482
10483 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10484 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10485
10486 2002-04-21 David S. Miller <davem@redhat.com>
10487
10488 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10489 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10490 (vx_write_register): Likewise.
10491
10492 2002-04-23 J. Brobecker <brobecker@gnat.com>
10493
10494 * source.c (is_regular_file): New function.
10495 (openp): Check wether file to open is a regular file
10496 to avoid opening directories.
10497
10498 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10499
10500 * findvar.c (extract_signed_integer): Cast printf argument
10501 to suppress format warning.
10502 (extract_unsigned_integer): Likewise.
10503 * infcmd.c (registers_info): Likewise.
10504 * top.c (get_prompt_1): Likewise.
10505 * valops.c (value_assign): Likewise.
10506 * valprint.c (print_decimal): Likewise.
10507
10508 2002-04-22 H.J. Lu (hjl@gnu.org)
10509
10510 * c-exp.y (typebase): Support
10511
10512 [long|long long|short] [signed|unsigned] [int|]
10513
10514 and
10515
10516 signed [long|long long|short] int
10517
10518 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10519
10520 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10521 and vax-tdep.h.
10522 * vax-tdep.h: New file.
10523 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10524 Make several routines static.
10525 (vax_get_saved_register): New function.
10526 (vax_gdbarch_init): New function.
10527 (_initialize_vax_tdep): Register vax_gdbarch_init.
10528 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10529 Remove macros now under the control of gdbarch.
10530
10531 2002-04-22 Michael Snyder <msnyder@redhat.com>
10532
10533 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10534 Some whitespace and coding standards tweaks.
10535
10536 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10537
10538 * vax-tdep.c: Include regcache.h.
10539 (vax_call_dummy_words): New.
10540 (sizeof_vax_call_dummy_words): New.
10541 (vax_fix_call_dummy): New function.
10542 (vax_saved_pc_after_call): Ditto.
10543 * config/vax/tm-vax.h: Don't include regcache.h.
10544 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10545 (CALL_DUMMY): Remove.
10546 (CALL_DUMMY_WORDS): Define.
10547 (SIZEOF_CALL_DUMMY_WORDS): Define.
10548 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10549
10550 2002-04-18 Michael Snyder <msnyder@redhat.com>
10551
10552 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10553
10554 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10555
10556 * vax-tdep.c (vax_frame_chain): New function.
10557 (vax_push_dummy_frame): Ditto.
10558 (vax_pop_frame): Ditto.
10559 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10560 (FRAMELESS_FUNCTION_INVOCATION): Use
10561 generic_frameless_function_invocation_not.
10562 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10563 (POP_FRAME): Use vax_pop_frame.
10564
10565 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10566
10567 * vax-tdep.c (vax_store_struct_return): New function.
10568 (vax_extract_return_value): Ditto.
10569 (vax_store_return_value): Ditto.
10570 (vax_extract_struct_value_address): Ditto.
10571 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10572 vax_store_struct_return.
10573 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10574 (STORE_RETURN_VALUE): Use vax_store_return_value.
10575 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10576
10577 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10578
10579 * vax-tdep.c (vax_frame_saved_pc): New function.
10580 (vax_frame_args_address_correct): Ditto.
10581 (vax_frame_args_address): Ditto.
10582 (vax_frame_locals_address): Ditto.
10583 (vax_frame_num_args): Move code to be in proximity to
10584 other frame-related functions.
10585 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10586 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10587 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10588 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10589 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10590
10591 2002-04-22 H.J. Lu (hjl@gnu.org)
10592
10593 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10594 includedir.
10595
10596 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10597
10598 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10599 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10600 (FRAME_INIT_SAVED_REGS): New macro.
10601
10602 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10603
10604 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10605
10606 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10607
10608 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10609 where needed.
10610 (fetch_osf_core_registers): Likewise.
10611 (supply_gregset): Likewise.
10612
10613 2002-04-22 J. Brobecker <brobecker@gnat.com>
10614
10615 * symfile.h (get_section_index): Define.
10616 * symfile.c (get_section_index): New function.
10617 * mdebugread.c (SC_IS_SBSS): New macro.
10618 (SC_IS_BSS): Return true for the scBss storage class only, as
10619 the scSBss storage class refers to the .sbss section.
10620 (parse_partial_symbols): Discard the symbols which associated
10621 section does not exist.
10622 Make sure to use the .sbss section index for symbols which
10623 storage class is scBss, rather than using the .bss section index.
10624
10625 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10626
10627 * vax-tdep.c: Update copyright years.
10628 (vax_register_name): New function.
10629 (vax_register_byte): Ditto.
10630 (vax_register_raw_size): Ditto.
10631 (vax_register_virtual_size): Ditto.
10632 (vax_register_virtual_type): Ditto.
10633 * config/vax/tm-vax.h: Update copyright years.
10634 (REGISTER_NAMES): Remove.
10635 (REGISTER_NAME): Define.
10636 (REGISTER_BYTE): Use vax_register_byte.
10637 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10638 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10639 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10640
10641 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10642
10643 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10644 declaration
10645 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10646
10647 2002-04-21 David S. Miller <davem@redhat.com>
10648
10649 * arch-utils.c (generic_prologue_frameless_p): Kill
10650 SKIP_PROLOGUE_FRAMELESS_P code.
10651 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10652 references.
10653 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10654 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10655 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10656 references.
10657 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10658 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10659 (sparc_gdbarch_init): Pass it to
10660 set_gdbarch_prologue_frameless_p.
10661
10662 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10663
10664 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10665 (alphabsd-nat.o): New dependency list.
10666
10667 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10668
10669 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10670 alphafbsd-tdep.c.
10671 (alpha-linux-tdep.o): New dependency list.
10672 (alphafbsd-tdep.o): Likewise.
10673
10674 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10675
10676 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10677 to here...
10678 * alpha-tdep.c: ...from here.
10679 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10680
10681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10682
10683 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10684 prototype from here...
10685 * alpha-tdep.h: ...to here.
10686
10687 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10688
10689 * frame.h (selected_frame_level): Document as deprecated.
10690 (frame_relative_level): Declare.
10691 * stack.c (frame_relative_level): New function.
10692 (selected_frame_level): Document as deprecated.
10693 (select_frame): Do not set the selected_frame_level.
10694
10695 * stack.c (frame_info, record_selected_frame): Update.
10696 (frame_command, current_frame_command): Update.
10697 (up_silently_base, up_command, down_silently_base): Update.
10698 (down_command): Update.
10699 * inflow.c (kill_command): Update.
10700 * tracepoint.c (finish_tfind_command): Update.
10701 * corelow.c (core_open): Update.
10702 * thread.c (info_threads_command): Update.
10703 (do_captured_thread_select): Update.
10704 * infcmd.c (finish_command): Update.
10705 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10706
10707 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10708
10709 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10710
10711 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10712
10713 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10714 type const.
10715
10716 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10717
10718 * alphafbsd-tdep.c: Update copyright years. Include
10719 alpha-tdep.h.
10720 (alphafbsd_use_struct_convention): Make static.
10721 (alphafbsd_init_abi): New function.
10722 (_initialize_alphafbsd_tdep): New function.
10723 * config/alpha/tm-fbsd.h: Update copyright years.
10724 (USE_STRUCT_CONVENTION): Remove.
10725
10726 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10727
10728 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10729 an Alpha ABI variant.
10730 (alpha_abi_handler_list): Declare.
10731 (alpha_gdbarch_register_os_abi): New function.
10732 (alpha_gdbarch_init): Give registered ABI variant handlers a
10733 chance to tweak the gdbarch once we have set up defaults.
10734 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10735
10736 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10737
10738 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10739 to standard_coerce_float_to_double.
10740 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10741
10742 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10743
10744 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10745 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10746 from gdbarch_tdep rather than a constant.
10747 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10748 the default text address for all Alpha Unix ABIs.
10749 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10750 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10751
10752 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10753
10754 * alpha-tdep.h: New file. Includes several Alpha target constants
10755 taken from...
10756 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10757 let gdbarch deal with.
10758 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10759 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10760 to dependency list.
10761 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10762 Alpha target register names.
10763 * alphabsd-nat.c: Likewise.
10764 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10765 Alpha target register names. Make serveral routines static.
10766 (alpha_get_saved_register): New function.
10767 (alpha_abi_names): New.
10768 (process_note_abi_tag_sections): New function.
10769 (get_elfosabi): New function.
10770 (alpha_gdbarch_init): New function.
10771 (alpha_dump_tdep): New function.
10772 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10773
10774 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10775
10776 * frame.c (find_saved_register): Delete #ifdef
10777 HAVE_REGISTER_WINDOWS code.
10778 * config/sparc/tm-sparc.h: Update comments.
10779 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10780
10781 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10782
10783 * i960-tdep.c (i960_find_saved_register): New function.
10784 (i960_get_saved_register): New function.
10785 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10786 (i960_get_saved_register): Declare.
10787 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10788
10789 2002-04-20 David S. Miller <davem@redhat.com>
10790
10791 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10792
10793 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10794
10795 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10796 instead of NUM_PSEUDO_REGS.
10797
10798 2002-04-20 David S. Miller <davem@redhat.com>
10799
10800 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10801 GDB_MULTI_ARCH_PARTIAL
10802 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10803 define, let tm-sp64.h do it.
10804
10805 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10806
10807 * frame.c (find_saved_register): Avoid a NULL pointer
10808 dereference and actually walk the frame list.
10809
10810 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10811
10812 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10813 sorted in most most-recent-used order. Document.
10814 * gdbarch.h, gdbarch.c: Regenerate.
10815
10816 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10817
10818 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10819 instead of ->prev.
10820 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10821 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10822 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10823 instead of ->prev.
10824
10825 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10826
10827 Fix PR gdb/471.
10828 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10829 (build_builtin_type_vec128): Ditto.
10830 (append_composite_type_field): Fix calculation of type length in
10831 union case.
10832
10833 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10834
10835 * config/djgpp/README: Update.
10836
10837 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10838 compiler warnings.
10839
10840 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10841
10842 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10843 (alpha_setup_arbitrary_frame): ...to this.
10844 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10845 for alpha_setup_arbitrary_frame.
10846
10847 2002-04-18 Andrew Cagney <cagney@redhat.com>
10848
10849 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10850 * gdbarch.h, gdbarch.c: Regenerate.
10851
10852 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10853 * target.h (memory_breakpoint_from_pc): Update declaration.
10854 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10855
10856 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10857 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10858 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10859 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10860 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10861 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10862 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10863 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10864 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10865 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10866 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10867 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10868
10869 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10870 const pointer.
10871 * monitor.c (monitor_insert_breakpoint): Ditto.
10872 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10873
10874 * config/mcore/tm-mcore.h: Update copyright.
10875 * mem-break.c: Ditto.
10876 * xstormy16-tdep.c: Ditto.
10877
10878 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10879
10880 * p-exp.y: Add precedence rule for '^' token.
10881 This removes the shift/reduce conflicts.
10882 Remove the comment concerning these shift/reduce conflicts.
10883
10884 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10885
10886 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10887 (registers_powerpc_nofp): New register set for processors
10888 without floating point unit.
10889
10890 2002-04-18 David S. Miller <davem@redhat.com>
10891
10892 * MAINTAINERS: Add myself to write-after-approval.
10893
10894 2002-04-17 Michael Snyder <msnyder@redhat.com>
10895
10896 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10897
10898 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10899
10900 * rs6000-tdep.c (frame_initial_stack_address): Use
10901 frame_register_read to read the alloca_reg.
10902
10903 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10904
10905 * frame.c (find_saved_register): Find saved registers in the next
10906 not prev frame.
10907 Fix PR gdb/365.
10908
10909 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10910
10911 * gdbarch.sh (LANG): Set to ``c''.
10912
10913 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10914
10915 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10916
10917 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10918
10919 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10920 Update copyright.
10921
10922 * hpread.c (hpread_get_lntt): Add declaration.
10923 Also fix PR gdb/391.
10924
10925 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10926
10927 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10928 * aclocal.m4, configure: Re-generate.
10929 Fix PR gdb/391.
10930
10931 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10932
10933 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10934 instead of tm_print_insn.
10935
10936 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10937
10938 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10939
10940 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10941
10942 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10943 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10944 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10945
10946 2002-04-12 Don Howard <dhoward@redhat.com>
10947
10948 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10949 max_user_call_depth.
10950 (init_cmd_lists): Initialize the new value;
10951 * cli/cli-script.c (execute_user_command): Limit the call depth of
10952 user defined commands. This avoids a core-dump when user commands
10953 are infinitly recursive.
10954
10955 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10956
10957 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10958 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10959 from tdep struct instead of DEFAULT_LR_SAVE.
10960 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10961 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10962 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10963
10964 2002-04-12 Michael Snyder <msnyder@redhat.com>
10965
10966 * Remote.c: Spelling fix.
10967 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10968 If no symbol found for "sbrk", try "_sbrk".
10969 (make_output_phdrs): Use bfd_section_name.
10970 (gcore_copy_callback): Use bfd_section_name.
10971 * eval.c: Indentation fix-ups.
10972 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10973 in case it gets applied to an address that is already
10974 in the instruction space.
10975 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10976 * symfile.c: Fix indentation, long lines.
10977 * source.c: White space fix-up.
10978
10979 2002-04-12 Andrew Cagney <cagney@redhat.com>
10980
10981 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10982 * frame.c (frame_register_read): New function. Return non-zero on
10983 success.
10984 (read_relative_register_raw_bytes_for_frame): Delete.
10985 (read_relative_register_raw_bytes): Delete.
10986 * frame.h (frame_register_read): Declare.
10987 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10988 * sh-tdep.c: Ditto.
10989 * infcmd.c (do_registers_info): Ditto.
10990 * hppa-tdep.c: Ditto.
10991 * rs6000-tdep.c: Ditto.
10992 * h8500-tdep.c: Ditto.
10993 * mips-tdep.c: Ditto.
10994 * h8300-tdep.c: Ditto.
10995 * z8k-tdep.c: Ditto.
10996
10997 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10998
10999 From Jimi X <jimix@watson.ibm.com>:
11000 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11001 64-bit SysV ABI.
11002
11003 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11004
11005 From Jimi X <jimix@watson.ibm.com>:
11006 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11007 bfd info.
11008
11009 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11010
11011 From Jimi X <jimix@watson.ibm.com>:
11012 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11013 register sets for these processor variants.
11014
11015 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11016
11017 * regformats/reg-ppc.dat: Support FPSCR.
11018
11019 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11020
11021 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11022 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11023 Add fpscr as an invalid/unfetchable register.
11024 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11025 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11026 (fill_fpregset): Add support for register fpscr.
11027 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11028 (fill_gregset): Account for the fact that register ``mq'' might
11029 not exist.
11030 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11031 (registers_power): Add fpscr to register set at slot 71.
11032 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11033 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11034
11035 2002-04-11 Michael Snyder <msnyder@redhat.com>
11036
11037 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11038 * configure: Regenerate.
11039 * config.in: Regenerate.
11040 * acconfig.h: Add define for _SYSCALL32.
11041 * core-sol2.c: Remove #define _SYSCALL32.
11042 * solib-legacy.c: Remove #define _SYSCALL32.
11043
11044 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11045
11046 * stack.c (select_frame): Cleanup internal error message, do not
11047 use %p.
11048
11049 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11050
11051 * stack.c (select_frame): Check that selected_frame and the
11052 specified level are as expected.
11053 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11054 Update copyright.
11055 * frame.h (struct frame_info): Add field `level'. Update
11056 copyright.
11057 Work-in-progress PR gdb/464.
11058
11059 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11060
11061 * maint.c (maint_print_section_info): Rename print_section_info.
11062 (print_bfd_section_info, print_objfile_section_info): Update.
11063 * inferior.h (struct gdbarch): Add opaque declaration.
11064 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11065 * gdbarch.h: Regenerate.
11066
11067 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11068
11069 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11070 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11071 (kernel_u_size): Added.
11072 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11073 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11074
11075 2002-04-04 Jim Ingham <jingham@apple.com>
11076
11077 * valarith.c (find_size_for_pointer_math): New function, either returns
11078 the size for a pointer's target, returns 1 for void *, or errors for
11079 incomplete types.
11080 (value_add, value_sub): use find_size_for_pointer_math.
11081
11082 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11083
11084 * linux-low.c (linux_look_up_symbols): New hook.
11085 (linux_target_ops): Add linux_look_up_symbols.
11086 * remote-utils.c (decode_address): New function.
11087 (look_up_one_symbol): New function.
11088 * server.c (handle_query): Call target look_up_symbols hook.
11089 * server.h (look_up_one_symbol): Add prototype.
11090 * target.h (struct target_ops): Add look_up_symbols hook.
11091
11092 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11093
11094 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11095 override FP_REGNUM with frame->fp. Update copyright.
11096 * parse.c (num_std_regs, std_regs): Delete.
11097 (target_map_name_to_register): Do not search std_regs. Update
11098 function description.
11099 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11100 declarations. Update copyright.
11101 Fix PR gdb/251.
11102
11103 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11106 after the last symbol in a block.
11107
11108 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11109
11110 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11111 is non zero as a found symbol.
11112
11113 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11114
11115 * findvar.c: Include "builtin-regs.h".
11116 (value_of_register): Call value_of_builtin_reg when applicable.
11117 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11118 (target_map_name_to_register): Call
11119 builtin_reg_map_name_to_regnum.
11120 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11121 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11122 (builtin_regs_h): Define.
11123 (builtin-regs.o): New target.
11124 (findvar.o): Add $(builtin_regs_h).
11125 * builtin-regs.c, builtin-regs.h: New files.
11126 * std-regs.c: New file.
11127 Partial fix for PR gdb/251.
11128
11129 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11130
11131 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11132 it's no longer required.
11133
11134 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11135
11136 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11137
11138 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11139
11140 From Jimi X <jimix@watson.ibm.com>:
11141 * rs6000-tdep.c (rs6000_software_single_step): Use
11142 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11143 and size. Use target_insert_breakpoint() and
11144 target_remove_breakpoint() to insert and remove breakpoints
11145 instead of explicit memory reads and writes.
11146
11147 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11148
11149 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11150 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11151 ELF_OBJECT_FORMAT ifdef.
11152
11153 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11154
11155 From Jimi X <jimix@watson.ibm.com>:
11156 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11157
11158 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11159
11160 From Jimi X <jimix@watson.ibm.com>:
11161 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11162 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11163
11164 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11165
11166 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11167 s/asprintf/xasprintf/.
11168 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11169
11170 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11171
11172 I believe Jeff Law denies responsability for this one:
11173 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11174 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11175 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11176 Work-around for PR gdb/366.
11177
11178 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11179
11180 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11181 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11182 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11183
11184 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11185
11186 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11187 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11188 information.
11189
11190 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11191
11192 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11193 maintainer.
11194
11195 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11196
11197 * README (Reporting Bugs in GDB): Document the bug web page as the
11198 prefered way of submitting bugs.
11199 Fix PR gdb/402.
11200
11201 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11202
11203 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11204 -1. Update comment.
11205 * gdbarch.h, gdbarch.c: Re-generate.
11206
11207 2002-04-07 Andreas Schwab <schwab@suse.de>
11208
11209 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11210 buffer to regcache_collect.
11211
11212 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11213
11214 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11215 * gdbarch.c, gdbarch.h: Re-generate.
11216
11217 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11218
11219 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11220 declaration. Fix -Werror.
11221
11222 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11225 * gdbarch.c: Regenerate.
11226
11227 2002-04-05 Michael Snyder <msnyder@redhat.com>
11228
11229 * breakpoint.c (clear_command): Rewrite middle section to
11230 combine two loops with identical control conditions.
11231 Add a cleanup to eliminate a memory leak.
11232 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11233
11234 2002-04-05 H.J. Lu (hjl@gnu.org)
11235
11236 * solib-svr4.c (bkpt_names): Add "__start".
11237
11238 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11239
11240 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11241 as test for 64 bit target.
11242
11243 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11244
11245 * h8500-tdep.c (h8500_write_fp): Delete function.
11246 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11247 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11248 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11250 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11251 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11252 (s390_write_fp):
11253 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11254 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11255 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11256 (d10v_write_fp): Delete function.
11257 * inferior.h (write_fp, generic_target_write_fp): Delete
11258 declarations.
11259 * regcache.c (generic_target_write_fp): Delete function.
11260 (write_fp): Delete function.
11261 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11262 * gdbarch.h, gdbarch.c: Regenerate.
11263 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11264 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11265 (sparc64_write_fp): Delete declaration.
11266 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11267 (h8500_write_fp): Delete declaration.
11268
11269 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11270
11271 * sparc-tdep.c (sparc64_write_fp): Delete.
11272 (sparc_push_dummy_frame): Replace write_fp call with code to store
11273 the FP directly.
11274 (sparc_gdbarch_init): Do not initialize write_fp.
11275
11276 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11277
11278 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11279 clause.
11280
11281 2002-03-29 Jim Blandy <jimb@redhat.com>
11282
11283 * stack.c (get_selected_block): Add new argument `addr_in_block',
11284 used to return the exact code address we used to select the block,
11285 not just the block.
11286 * blockframe.c (get_frame_block, get_current_block): Same.
11287 * frame.h (get_frame_block, get_current_block,
11288 get_selected_block): Update declarations.
11289 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11290 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11291
11292 2002-04-05 Michael Snyder <msnyder@redhat.com>
11293
11294 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11295 warning message.
11296
11297 2002-04-05 J. Brobecker <brobecker@gnat.com>
11298
11299 * utils.c (xfullpath): New function.
11300 * defs.h (xfullpath): Add declaration.
11301 * source.c (openp): Use xfullpath in place of gdb_realpath to
11302 avoid resolving the basename part of filenames when the
11303 associated file is a symbolic link. This fixes a potential
11304 inconsistency between the filenames known to GDB and the
11305 filenames it prints in the annotations.
11306 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11307 to be able to match a filename with either the real filename, or
11308 the name of any symbolic link to this file.
11309 (lookup_partial_symtab): Ditto.
11310
11311 2002-04-04 Michael Snyder <msnyder@redhat.com>
11312
11313 * breakpoint.c: Add support for hardware breakpoints in overlays.
11314 (overlay_events_enabled): New state variable.
11315 (insert_breakpoints): Use overlay_events_enabled to decide
11316 whether to attempt to set a breakpoint at the overlay load addr.
11317 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11318 (remove_breakpoint): Use overlay_events_enabled to decide
11319 whether breakpoints need to be removed from overlay load addr.
11320 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11321 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11322 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11323 disable_overlay_breakpoints): Update overlay_events_enabled.
11324
11325 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11326
11327 * dwarf2read.c (struct function_range): New.
11328 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11329 (check_cu_functions): New.
11330 (read_file_scope): Initialize global function lists.
11331 Call dwarf_decode_line after processing children.
11332 (read_func_scope): Add to global function list.
11333 (dwarf_decode_lines): Call check_cu_functions everywhere
11334 record_line is called. Call record_line with a linenumber
11335 of 0 to mark sequence ends.
11336
11337 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11338
11339 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11340 change sync with glibc.
11341
11342 2002-04-03 Jim Blandy <jimb@redhat.com>
11343
11344 * configure.in: Call AC_C_INLINE.
11345 * configure: Regenerated.
11346
11347 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11350 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11351
11352 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11353
11354 * NEWS: Mention gcore support on FreeBSD/i386.
11355
11356 * fbsd-proc.c: New file.
11357 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11358 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11359
11360 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11361 while statement.
11362
11363 2002-03-29 Jim Blandy <jimb@redhat.com>
11364
11365 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11366 unescaped newlines in string literals, but newer ones don't. So
11367 escape them.
11368
11369 2002-03-26 Michael Snyder <msnyder@redhat.com>
11370 Andrew Cagney <cagney@redhat.com>
11371
11372 * cli/cli-dump.c: New file. Dump memory to file,
11373 restore file to memory.
11374 * cli/cli-dump.h: New file.
11375 * Makefile.in: Add rules, dependencies for cli-dump.o.
11376 * NEWS: Mention new commands.
11377
11378 2002-03-28 Michael Snyder <msnyder@redhat.com>
11379
11380 * symfile.c (symbol_file_add): Move test for null symbols to later.
11381
11382 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11383
11384 From veksler at il.ibm.com:
11385 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11386 the xstrduped original path.
11387 Fix PR gdb/417.
11388
11389 2002-03-27 Michael Snyder <msnyder@redhat.com>
11390
11391 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11392 * infcmd.c (_initialize_infcmd): Ditto.
11393 * language.c (_initialize_language): Ditto.
11394 * symfile.c (_initialize_symfile): Ditto.
11395 * top.c (_init_main): Ditto.
11396 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11397
11398 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11399
11400 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11401 vector registers handling.
11402 (skip_prologue): Handle new AltiVec instructions. Fill in new
11403 fields of frame data.
11404 (frame_get_saved_regs): Fill in information for AltiVec registers.
11405
11406 2002-03-27 Jim Blandy <jimb@redhat.com>
11407
11408 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11409 a function; leave this macro here to invoke that function.
11410 (symbol_init_mangled_name): Declaration for that function.
11411 * symtab.c (symbol_init_mangled_name): New function.
11412
11413 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11414
11415 * valarith.c: Replace strerror with safe_strerror.
11416 * tracepoint.c: Ditto.
11417 * lin-lwp.c: Ditto.
11418 * go32-nat.c: Ditto.
11419 * inflow.c: Ditto.
11420 * gnu-nat.c: Ditto.
11421
11422 2002-03-27 Andreas Schwab <schwab@suse.de>
11423
11424 * event-top.c (command_line_handler): Remove useless if.
11425
11426 2002-03-27 Andreas Jaeger <aj@suse.de>
11427
11428 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11429 comment.
11430
11431 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11432
11433 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11434 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11435 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11436 (x86_64_linux_dr_get_status, supply_gregset),
11437 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11438 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11439 (x86_64_register_info_table): Add.
11440 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11441 (x86_64_register_raw_size, x86_64_register_virtual_type),
11442 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11443 general x86_64_register_info_table.
11444 (i386_gdbarch_init): gdbarch_register_bytes is now set
11445 dynamicaly during initialization.
11446 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11447 * gdbserver/linux-x86-64-low.c: Ditto.
11448
11449 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11450
11451 * gdbserver/server.c (main): Call target_signal_to_host_p
11452 and target_signal_to_host on signals received from the remote.
11453 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11454 target_signal_from_host on signals sent to the remote.
11455 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11456 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11457
11458 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11459
11460 * signals/signals.c: Include "server.h" in gdbserver build.
11461 (target_signal_from_name): Don't use STREQ.
11462 (_initialize_signals): Likewise. Don't include function in
11463 gdbserver build.
11464
11465 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11466
11467 * signals.c: Moved to...
11468 * signals/signals.c: Here.
11469 * Makefile (signals.o): Update.
11470
11471 2002-03-26 Jeff Law (law@redhat.com)
11472
11473 * somread.c (som_symtab_read): Remove some commented out code and
11474 updated related comments. Do not set the minimal symbol table to
11475 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11476 in a dynamic executable.
11477 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11478 where we are unable to find the minimal symbol for the given
11479 PC value.
11480
11481 2002-03-25 Jeff Law (law@redhat.com)
11482
11483 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11484
11485 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11486
11487 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11488
11489 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11490
11491 * command.h: Update copyright.
11492 (struct cmd_list_element): Replace definition with opaque
11493 declaration.
11494 (enum cmd_types): Document that it will eventually be moved to
11495 cli/cli-decode.h
11496 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11497 (MALLOCED_REPLACEMENT): Delete macro.
11498 * Makefile.in (cli_decode_h): Add $(command_h).
11499 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11500 * top.c: Include "cli/cli-decode.h".
11501 * completer.c: Include "cli/cli-decode.h".
11502 * maint.c: Include "cli/cli-decode.h".
11503 * cli/cli-decode.h: Include "command.h".
11504 (enum command_class): Delete.
11505 (enum cmd_types): Comment out.
11506 (enum cmd_auto_boolean): Delete.
11507 (enum var_types): Delete.
11508
11509 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11510
11511 * cli/cli-decode.c: Include "gdb_assert.h".
11512 (add_set_or_show_cmd): New static function.
11513 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11514 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11515 all fields, such as func, from the set command.
11516
11517 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11518
11519 * MAINTAINERS (sh-elf): Change warning flag to -w.
11520
11521 2002-03-23 Andrew Cagney <cagney@redhat.com>
11522
11523 * defs.h (error): Add printf format attribute.
11524 * thread-db.c (thread_from_lwp): Fix error format string.
11525 * stack.c (parse_frame_specification): Ditto.
11526 * cli/cli-decode.c (undef_cmd_error): Ditto.
11527 * scm-lang.c (scm_lookup_name): Ditto.
11528 * tracepoint.c (trace_error): Ditto.
11529 * remote-utils.c (usage): Ditto.
11530 * remote.c (compare_sections_command): Ditto.
11531 Fix PR gdb/328.
11532
11533 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11534
11535 * gdbtypes.c (append_composite_type_field): New function.
11536 (init_composite_type): New function.
11537 * gdbtypes.h (append_composite_type_field): Declare.
11538 (init_composite_type): Ditto.
11539
11540 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11541
11542 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11543 function.
11544 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11545 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11546 structure returning convention for SYSV ABI case, but not
11547 for GNU/Linux, FreeBSD, or NetBSD.
11548
11549 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * symtab.h (lookup_block_symbol): Add mangled_name argument
11552 to prototype.
11553
11554 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11555 with new mangled_name argument.
11556 * linespec.c (decode_line_1): Likewise.
11557 * valops (value_of_this): Likewise.
11558 * symtab.c (lookup_transparent_type): Likewise.
11559 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11560 (lookup_symbol): If we are given a mangled name, pass it down
11561 to lookup_symbol_aux.
11562 (lookup_block_symbol): If we are given a mangled name to check
11563 against, only return symbols which match it.
11564
11565 2002-03-22 Christopher Faylor <cgf@redhat.com>
11566
11567 * win32-nat.c (child_create_inferior): Check for proper shell to use
11568 here, in case the user changes it on the fly.
11569 (_initialize_inftarg): Remove shell path considerations.
11570
11571 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11572
11573 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11574 for gdbarch_max_register_raw_size and max_register_virtual_size.
11575 Adjust copyright year.
11576
11577 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11578
11579 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11580 in a function to cover the entire beginning of the function
11581 as well if it does not already.
11582
11583 2002-03-21 Tom Rix <trix@redhat.com>
11584
11585 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11586 (rs6000_ptrace64): Renamed from ptrace64.
11587
11588 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11589
11590 * gdbserver/remote-utils.c (remote_open): Don't call
11591 getprotobyname, we're all using TCP here so just use
11592 IPPROTO_TCP.
11593 * gdbserver/gdbreplay.c (remote_open): Ditto.
11594
11595 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11596
11597 * regcache.c (_initialize_regcache): No need to call
11598 build_regcache() at this time; it gets called whenever
11599 the gdbarch changes.
11600
11601 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11602
11603 * sparc-nat.c: Include sys/param.h where possible.
11604
11605 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11606
11607 Fix PR gdb/422.
11608 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11609 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11610 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11611 complex types.
11612 * stabsread.c (rs6000_builtin_type): Likewise.
11613 (read_sun_floating_type): Likewise.
11614
11615 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11616
11617 * stabsread.c (read_member_functions): Remove skip code for duplicate
11618 constructor/destructor methods. Use standard parsing for these
11619 methods and just do not chain them to the list of methods after
11620 parsing.
11621
11622 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11623
11624 * coffread.c: Remove redundant static declarations. Replace
11625 occurrences of `PTR' with `void *'.
11626 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11627 * top.h (quit_cover): Likewise.
11628 * defs.h (catch_errors): Likewise.
11629
11630 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11631
11632 * defs.h (XMALLOC): Define.
11633 * gdb-events.sh (XMALLOC): Delete macro.
11634 * gdb-events.c, gdb-events.h: Regenerate.
11635 * gdbarch.sh (XMALLOC): Delete macro.
11636 * gdbarch.c: Regenerate.
11637 * serial.c (XMALLOC): Delete macro.
11638 * ui-file.c (XMALLOC): Ditto.
11639 * ser-unix.h (XMALLOC): Ditto.
11640 * sh-tdep.c (XMALLOC): Ditto.
11641 * ui-out.c (XMALLOC): Ditto.
11642 * utils.c (XMALLOC): Ditto.
11643 * i386-tdep.c (XMALLOC): Ditto.
11644 * gdb-events.c (XMALLOC): Ditto.
11645 * d10v-tdep.c (XMALLOC): Ditto.
11646 * cli-out.c (XMALLOC): Ditto.
11647
11648 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11649 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11650 * ui-file.c, ui-out.c: Ditto.
11651
11652 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11653
11654 * command.h (struct cmd_list_element): Add field context.
11655 (set_cmd_context, get_cmd_context): Declare.
11656 * cli/cli-decode.h: Ditto.
11657 * cli/cli-decode.c (get_cmd_context): New function.
11658 (set_cmd_context): New function.
11659 (add_cmd): Initialize context.
11660 Part of fixing PR gdb/145 and PR gdb/146.
11661
11662 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11663
11664 * cli/cli-decode.c (cmd_type): New function.
11665 * command.h (cmd_type): Declare.
11666 * infrun.c (set_schedlock_func): Call function cmd_type.
11667 * kod.c (kod_set_os): Call cmd_type.
11668 * cris-tdep.c (cris_version_update): Use function cmd_type.
11669 (cris_mode_update, cris_abi_update): Ditto.
11670
11671 * command.h: (execute_cmd_post_hook): Declare.
11672 (execute_cmd_pre_hook): Declare.
11673 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11674 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11675 functions. Execute pre/post hook while ensuring that afterwords
11676 hook_in is cleared.
11677 * top.c (execute_command): Use execute_cmd_post_hook, and
11678 execute_cmd_pre_hook to execute pre/post commands.
11679 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11680 hook_stop_stub.
11681 (hook_stop_stub): Call execute_cmd_pre_hook.
11682
11683 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11684
11685 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11686 set'' and this leads to a core dump. Move xstrdup of
11687 operating_system to after check that it is not NULL.
11688
11689 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11690
11691 * kod.c (kod_set_os): Remove unnecessary check that
11692 ``command->type'' is set_cmd.
11693
11694 * valprint.c (set_input_radix): Use input_radix.
11695 (set_output_radix): Use output_radix.
11696 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11697 isn't reverted.
11698
11699 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11700
11701 * value.h (struct value): Delete field ``substring_addr''. Change
11702 aligner fields to force_doublest_align, force_longest_align,
11703 force_core_addr_align and force_pointer_aligh.
11704
11705 * value.h (struct value): Fix typo in above change.
11706
11707 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11708
11709 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11710 to fix internal_error from ``maintenance print architecture''.
11711
11712 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11713
11714 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11715 for gcc versions after gcc-2.8.1.
11716
11717 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11718
11719 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11720 for method resolution. Restore adjustment of ``this'' pointer after
11721 calling value_struct_elt, which was accidentally removed during the
11722 HP merge.
11723
11724 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11725
11726 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11727 value_of_register.
11728 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11729 get_saved_register.
11730 * value.h (value_of_register): Update.
11731
11732 2002-03-14 Richard Henderson <rth@redhat.com>
11733
11734 * configure.in: Detect declaration for canonicalize_file_name.
11735 * utils.c (canonicalize_file_name): Declare, if needed.
11736 (gdb_realpath): Prefer realpath if available and usable.
11737 * config.in, configure: Rebuild.
11738
11739 2002-03-14 Richard Henderson <rth@redhat.com>
11740
11741 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11742 a constant array bound.
11743
11744 * MAINTAINERS: Add myself to write-after-approval.
11745
11746 2002-03-14 Michael Snyder <msnyder@redhat.com>
11747
11748 * symfile.c (syms_from_objfile): Return immediately if no syms.
11749 (symbol_file_add): Return immediately if no syms.
11750 (find_sym_fns): Return immediately if no syms.
11751
11752 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11753
11754 * gdbserver/remote-util.c (remote_open): Print remote-side's
11755 IP address when remote debugging over the network.
11756
11757 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11758
11759 * config/sparc/fbsd.mh: Fix copyright.
11760 * config/sparc/fbsd.mt: Likewise.
11761
11762 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11763
11764 * MAINTAINERS: Fix typo in name of gdb warnings option.
11765 (x86-64): Fix formating so that this can be parsed by awk.
11766
11767 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11768
11769 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11770 * defs.h: Include "gdb/signals.h".
11771 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11772
11773 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11774
11775 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11776 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11777 from x86-64-tdep.h
11778
11779 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11780 Don Howard <dhoward@redhat.com>
11781
11782 * mips-tdep.c (ST0_FR): Define.
11783 (mips2_fp_compat): New function, temporarily disabled.
11784 (mips_read_fp_register_single): New function.
11785 (mips_read_fp_register_double): New function.
11786 (mips_print_register): Use them.
11787 (do_fp_register_row): Likewise.
11788
11789 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11790
11791 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11792 approval''.
11793
11794 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11795
11796 * stabsread.c (read_member_functions): Fix is_stub test for
11797 static member functions, improve comment.
11798
11799 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11800
11801 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11802 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11803 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11804 commands that set boolean values.
11805 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11806 (arm_rdi_resume): Always initialize PC.
11807 (arm_rdi_open): Don't use rslt as a boolean.
11808 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11809 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11810 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11811 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11812
11813 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11814
11815 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11816 * configure: Rebuilt.
11817
11818 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11819
11820 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11821 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11822
11823 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11824
11825 * cli/cli-decode.c (set_cmd_completer): New function.
11826 * command.h (set_cmd_completer): Declare.
11827 * cli/cli-decode.h (set_cmd_completer): Ditto.
11828
11829 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11830 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11831 * win32-nat.c (_initialize_inftarg): Ditto.
11832 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11833 * proc-api.c (_initialize_proc_api): Ditto.
11834 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11835 * source.c (_initialize_source): Ditto.
11836 * exec.c (_initialize_exec): Ditto.
11837 * solib.c (_initialize_solib): Ditto.
11838 * top.c (init_main): Ditto.
11839 * tracepoint.c (_initialize_tracepoint): Ditto.
11840 * symfile.c (_initialize_symfile): Ditto.
11841 * printcmd.c (_initialize_printcmd): Ditto.
11842 * infcmd.c (_initialize_infcmd): Ditto.
11843 * corefile.c (_initialize_core): Ditto.
11844
11845 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11846
11847 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11848
11849 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11850
11851 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11852
11853 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11854
11855 * NEWS: Update headings, 5.2 has branched.
11856
11857 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11858
11859 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11860 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11861 (register_addr, REGISTER_RAW_SIZE): Likewise.
11862 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11863 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11864
11865 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11866
11867 * MAINTAINERS (x86-64): Add myself.
11868 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11869 changed value_ptr -> struct value *
11870
11871 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11872
11873 * configure.host (sparc64-*-freebsd): Add.
11874 * configure.tgt: Likewise.
11875 * config/sparc/fbsd.mh: New file.
11876 * config/sparc/fbsd.mt: Likewise.
11877 * config/sparc/nm-fbsd.h: Likewise.
11878 * config/sparc/tm-fbsd.h: Likewise.
11879
11880 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11881
11882 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11883 regformats/reg-s390x.dat.
11884
11885 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11886
11887 * utils.c: Add FIXME explaining true/false problem.
11888
11889 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11890
11891 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11892
11893 2002-02-28 Michael Chastain <mec@shout.net>
11894
11895 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11896
11897 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11898
11899 * gdbserver/linux-s390-low.c: New file.
11900 * regformats/reg-s390.dat: New file.
11901 * regformats/reg-s390x.dat: New file.
11902 * gdbserver/configure.srv: Add S/390.
11903 * gdbserver/Makefile.in: Add S/390.
11904 * configure.tgt: Enable gdbserver for S/390.
11905
11906 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11907
11908 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11909 first line of the doc string for "info dos", except at the end of
11910 the sentence, since the short help stops at the first period.
11911
11912 2002-02-28 Jason Merrill <jason@redhat.com>
11913
11914 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11915
11916 2002-02-27 Fred Fish <fnf@redhat.com>
11917
11918 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11919 comment (dumy -> dummy).
11920
11921 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11922
11923 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11924
11925 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11926
11927 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11928
11929 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11930
11931 * gdbserver/acconfig.h: New file.
11932 * gdbserver/i387-fp.c: New file.
11933 * gdbserver/i387-fp.h: New file.
11934 * gdbserver/linux-x86-64.c: New file.
11935 * regformats/reg-x86-64.dat: New file.
11936 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11937 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11938 * gdbserver/configure.in: Add support for regsets.
11939 * gdbserver/config.in: Regenerate.
11940 * gdbserver/configure: Regenerate.
11941 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11942 * gdbserver/linux-low.h: New file.
11943 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11944 for regsets.
11945 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11946 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11947 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11948 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11949 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11950 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11951 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11952 "i387-fp.h". Add PTRACE_GETREGS and friends.
11953 * gdbserver/regcache.c (supply_register): New function.
11954 (supply_register_by_name): New function.
11955 (collect_register): New function.
11956 (collect_register_by_name): New function.
11957
11958 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11961 (config.status): Add configure.srv dependency.
11962 (server_h): Add config.h dependency.
11963
11964 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11965
11966 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11967 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11968 * gdbserver/configure.srv: Change i386-*-linux* to use
11969 reg-i386-linux.o.
11970
11971 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11972
11973 * x86-64-tdep.c: Re-indent. Update copyright date.
11974
11975 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11976
11977 From Michal Ludvig <mludvig@suse.cz>:
11978 * x86-64-tdep.c (value.h): Delete.
11979 (gdb_assert.h): Include.
11980 (x86_64_register_convert_to_virtual,
11981 x86_64_register_convert_to_raw ): Add check which lets only
11982 floating-point values to be converted.
11983 (value_push): Delete.
11984 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11985 (i386_gdbarch_init): Number of register_bytes fixed.
11986
11987 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11988
11989 * MAINTAINERS: Add x86-64 target.
11990
11991 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11992
11993 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11994 * osfsolib.c (solib_map_sections): Ditto.
11995 * irix5-nat.c (solib_map_sections): Ditto.
11996 * corelow.c (gdb_check_format): Ditto.
11997 * symfile.c (symfile_bfd_open): Ditto.
11998 * solib.c (solib_map_sections): Ditto.
11999 Fix PR gdb/354.
12000
12001 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12002
12003 * remote.c (_initialize_remote): By default, disable ``e'' and
12004 ``E'' step out-of-range packets.
12005
12006 2002-02-26 Andreas Schwab <schwab@suse.de>
12007
12008 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12009 m68k_linux_frame_saved_pc.
12010 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12011 in_sigtramp.
12012 (SIGCONTEXT_PC_OFFSET): Remove.
12013 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12014 m68k_linux_sigtramp_saved_pc): New functions.
12015 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12016 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12017 (UCONTEXT_PC_OFFSET): Define.
12018 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12019 non-RT and RT signal trampolines.
12020
12021 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12022
12023 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12024 (TARGET_NBPG, STACK_END_ADDR): Delete
12025 (VARIABLES_INSIDE_BLOCK): Delete.
12026
12027 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12028
12029 * utils.c (perror_with_name): Make string parameter constant.
12030 (print_sys_errmsg): Ditto.
12031 (query): Ditto.
12032 * defs.h (perror_with_name): Update.
12033 (print_sys_errmsg): Update.
12034 (query): Update.
12035
12036 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12037
12038 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12039 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12040
12041 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12042
12043 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12044 if it already matches the current architecture from the exec file.
12045 Include arch-utils.h for gdbarch_info_init prototype.
12046 * Makefile.in (rs6000-nat.o): Update dependencies.
12047
12048 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12049
12050 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12051 list of exported variables.
12052
12053 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12054
12055 * gdbserver/configure.srv: New file.
12056 * gdbserver/configure.in: Use configure.srv instead
12057 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12058 from it.
12059 * gdbserver/configure: Regenerated.
12060 * gdbserver/terminal.h: New file.
12061 * gdbserver/Makefile.in: Update for configure changes. Remove
12062 more unneeded include paths.
12063
12064 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12065
12066 From wiz at danbala:
12067 * config/sparc/tm-sp64.h: Fix grammar and typos.
12068 Fix PR gdb/287.
12069
12070 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12071
12072 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12073 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12074 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12075 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12076 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12077 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12078 * s390-tdep.c: Ditto.
12079 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12080 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12081 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12082 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12083 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12084 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12085 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12086 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12087 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12088 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12089 Fix PR gdb/378.
12090
12091 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12092
12093 * lin-thread.c: Delete file.
12094 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12095 to gdb_proc_service.h.
12096 * configure: Re-generate.
12097
12098 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12099 * serial.c (serial_open): Delete check for "ocd".
12100 Fix PR gdb/349.
12101
12102 * Makefile.in (linux-thread.o): Delete target.
12103 * linux-thread.c: Delete file.
12104
12105 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12106 renamed SH files to be consistent.
12107
12108 * symtab.c (sort_search_symbols): Use xfree.
12109
12110 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12111
12112 * arm-linux-tdep.c (arm_linux_init_abi): Register
12113 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12114 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12115 definition with undef, since we don't want the sysvr4 definition.
12116 (SKIP_TRAMPOLINE_CODE): Likewise.
12117
12118 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12119
12120 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12121
12122 * configure.in: (AC_CHECK_FUNCS) Added test for
12123 canonicalize_file_name Regenerated.
12124 * config.in, configure: Regenerated.
12125 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12126 defined use canonicalize_file_name.
12127
12128 2002-02-23 Michael Chastain <mec@shout.net>
12129
12130 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12131
12132 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12133
12134 * README: Remove references to cygnus.com.
12135 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12136 dot com'' form. Remove references to cygnus.com and sourceware.
12137
12138 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12139
12140 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12141 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12142 1003.1-2001 no longer allows "head -1".
12143 * gdb/Makefile.in (version.c): Likewise.
12144 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12145 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12146 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12147
12148 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12149
12150 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12151 * command.h (cmd_cfunc_eq): Declare.
12152 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12153
12154 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12155 ``struct cmd_list_element *''.
12156 * cli/cli-cmds.c (is_complete_command): Update. Use
12157 cmd_cfunc_eq.
12158 * top.c (execute_command): Pass the command to
12159 is_complete_command.
12160 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12161
12162 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12163
12164 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12165 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12166 architecture defines.
12167 * s390-tdep.c (s390_gdbarch_init): Likewise.
12168
12169 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12170
12171 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12172 (arm_linux_push_arguments): Likewise.
12173 (arm_linux_init_abi): Register them. Also register linux-specific
12174 call_dummy_words.
12175 (find_minsym_and_objfile): Use strcmp, not STREQ.
12176 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12177 (arm_linux_call_dummy_words): Delete declaration.
12178 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12179 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12180 declarations.
12181 (LOWEST_PC): Delete.
12182
12183 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12184
12185 * maint.c (print_section_info): Do not prepend `0x' to filepos
12186 output, it will be handled by local_hex_string_custom.
12187
12188 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12189
12190 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12191 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12192 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12193
12194 2002-02-22 Jim Blandy <jimb@redhat.com>
12195
12196 Indicate that the bcache functions don't change the strings
12197 they're passed.
12198 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12199 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12200
12201 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12202
12203 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12204
12205 2002-02-21 Christopher Faylor <cgf@redhat.com>
12206
12207 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12208 find the complete path to a loaded DLL.
12209
12210 2002-02-21 Fred Fish <fnf@redhat.com>
12211
12212 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12213 that marks the end of the range of a function, enter a line number
12214 entry that has a line number of zero and a PC offset that matches
12215 the end of the function. This starts a range of PC's for which no
12216 line number information is known.
12217 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12218 PC's for which no line number info is found (line number is zero)
12219 then we didn't find any valid line information.
12220 * symtab.h: Document use of zero line number entry.
12221
12222 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12223
12224 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12225 (have_ptrace_getvrregs): Define for run time checks.
12226 (gdb_vrregset_t): New type for Altivec register handling.
12227 (fetch_register, store_register): Fetch/store altivec register
12228 when needed.
12229 (fetch_altivec_register, store_altivec_register): New functions.
12230 (supply_vrregset, fill_vrregset): New functions.
12231 (fetch_altivec_registers, store_altivec_registers): New functions.
12232 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12233 registers as well.
12234
12235 2002-02-21 Jiri Smid <smid@suse.cz>
12236
12237 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12238
12239 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12240
12241 * Makefile.in (armnbsd-nat.o): Update dependencies.
12242 * armnbsd-nat.c (supply_gregset): New function. Common code to
12243 supply the integer register set.
12244 (supply_fparegset): New function. Similar for FPA registers.
12245 (fetch_regs, fetch_fp_regs): Use them.
12246 (fetch_core_registers): Likewise.
12247 (fetch_elfcore_registers): New function.
12248 (arm_netbsd_elfcore_fns): New core-file type specification.
12249 (_initialize_arm_netbsd_nat): Register it.
12250
12251 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12252
12253 * armnbsd-nat.c: Include gdbcore.h.
12254 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12255 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12256 'void' to declaration, to shut up ARI.
12257 (fetch_core_registers): Make static. Rewrite using supply_register.
12258 (arm_netbsd_core_fns): New core-file type specification.
12259 (_initialize_arm_netbsd_nat): New function.
12260
12261 2002-02-21 Christopher Faylor <cgf@redhat.com>
12262
12263 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12264 value.
12265
12266 2002-02-20 Christopher Faylor <cgf@redhat.com>
12267
12268 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12269 fails.
12270
12271 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12272
12273 * jv-exp.y (parse_number): Change type of implicit longs
12274 to builtin_type_uint64.
12275
12276 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12277
12278 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12279 to be an integer instead of a `union wait'.
12280
12281 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12282
12283 * mips-linux-nat.c: Call the operating system GNU/Linux.
12284 * mips-linux-tdep.c: Likewise.
12285 * mips-tdep.c: Likewise.
12286
12287 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12288
12289 Fix PR gdb/265.
12290 * jv-exp.y (parse_number): Handle 64-bit integers.
12291
12292 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12293
12294 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12295 AC_STDC_HEADERS to AC_HEADER_STDC.
12296 * gdbserver/configure: Regenerated.
12297
12298 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12299
12300 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12301 is defined.
12302 * sparc-tdep.c (get_longjmp_target): Likewise.
12303
12304 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12305
12306 * News: Add news about ARM and Multi-arch. Mention the new target
12307 arm*-*-netbsd*.
12308
12309 2002-02-19 Jim Blandy <jimb@redhat.com>
12310
12311 * stabsread.c (error_type_complaint): Improve error message.
12312
12313 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12314
12315 * gdbserver/README: Update documentation.
12316 * gdbserver/configure.in: Update configury to match documentation.
12317 * gdbserver/Makefile.in: Likewise.
12318 * gdbserver/configure: Regenerated.
12319 * gdbserver/aclocal.m4: New file, generated by aclocal.
12320 * gdbserver/config.in: New file, generated by autoheader.
12321
12322 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12323
12324 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12325 armnbsd-nat.c.
12326
12327 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12328
12329 * arm-tdep.h (enum arm_float_model): New enum.
12330 (struct gdbarch_tdep): Add fp_model.
12331 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12332 up floating-point conversions until we know the floating-point model
12333 in use by the inferior. Don't complain about being unable to
12334 determine the ABI of the inferior when we don't have one.
12335 (arm_extract_return_value): Support different floating-point models.
12336 (arm_store_return_value): Likewise.
12337 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12338 ARM_FLOAT_SOFT.
12339 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12340
12341 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12342
12343 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12344 of ``current_gdbarch''.
12345
12346 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12347
12348 * armnbsd-nat.c : ANSIfy all function declarations.
12349 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12350 (fetch_inferior_registers): Re-implement in terms of above.
12351 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12352 (store_inferior_registers): Re-implement in terms of above.
12353
12354 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12355
12356 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12357 kernel.
12358 * arm-linux-tdep.c: Likewise.
12359 * config/arm/tm-linux.h: Likewise.
12360
12361 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12362
12363 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12364 * config/arm/nbsd.mt (TM_FILE): Delete.
12365 * config/arm/tm-nbsd.h: Delete.
12366
12367 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12368
12369 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12370 Initialize CALL_DUMMY_LENGTH.
12371
12372 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12373
12374 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12375 function.
12376 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12377 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12378 defines one thing and that is incorrect for this port.
12379 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12380
12381 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12382
12383 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12384
12385 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12386
12387 * win32-nat.c (display_selector): New function. Displays information
12388 about the information returned by GetThreadSelectorEntry API function.
12389 (display_selectors): New function. Displays the infomation of
12390 the selector given as argument, or of CS, DS ans FS selectors
12391 if no argument is given.
12392 ( _initialize_inftarg): Add "w32" as info prefix command.
12393 Add "info w32 selector" as command calling display_selectors.
12394
12395 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12396
12397 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12398 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12399 if not defined.
12400
12401 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12402
12403 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12404
12405 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12406
12407 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12408 (arm_fix_call_dummy): Call it.
12409 (arm_call_dummy_breakpoint_offset): Delete.
12410 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12411 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12412
12413 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12414
12415 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12416 Default to func_frame_chain_valid.
12417 * gdbarch.h, gdbarch.c: Re-generate.
12418 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12419
12420 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12421
12422 * ppc-linux-nat.c: Update copyright.
12423 (fetch_register, store_register): Add tid parameter, don't compute
12424 tid here.
12425 (fetch_ppc_registers, store_ppc_registers): Add tid
12426 parameter. Pass it along to callees.
12427 (fetch_inferior_registers, store_inferior_registers): Compute tid
12428 here, and pass it to calleed functions.
12429 (fill_gregset, supply_fpregset): Clean up formatting.
12430
12431 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12432
12433 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12434 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12435
12436 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12437
12438 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12439 * gdbarch.c gdbarch.h: Regenerate.
12440 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12441 function.
12442 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12443 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12444 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12445
12446 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12447 * arm-tdep.c (arm_get_longjmp_target): New function.
12448 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12449 this to a positive value register arm_get_longjmp_target as the
12450 longjmp handler.
12451 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12452 (arm_linux_init_abi): Set up longjmp description in tdep.
12453 * armnbsd-nat.c (get_longjmp_target): Delete.
12454 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12455 description in tdep.
12456 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12457 (get_longjmp_target): Delete declaration.
12458 (GET_LONGJMP_TARGET): Delete.
12459 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12460 (GET_LONGJMP_TARGET): Delete.
12461
12462 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12463
12464 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12465 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12466 of ``current_gdbarch''.
12467
12468 2002-02-17 Tom Tromey <tromey@redhat.com>
12469
12470 * cli/cli-cmds.c (compare_strings): New function.
12471 (complete_command): Only print each unique item once.
12472 * completer.h (complete_line): Declare.
12473 * completer.c (complete_line): New function.
12474 (line_completion_function): Use it.
12475
12476 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12477
12478 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12479 * gdbarch.h, gdbarch.c: Re-generate.
12480
12481 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12482
12483 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12484
12485 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12486
12487 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12488 * valops.c (value_arg_coerce): Don't take the address of a reference
12489 to convert an argument to a reference.
12490
12491 2002-02-15 Christopher Faylor <cgf@redhat.com>
12492
12493 * win32-nat.c (get_image_name): New function.
12494 (handle_load_dll): Use get_image_name function.
12495 (get_child_debug_event): Avoid registering debug events until possibly
12496 execed process is started.
12497 (child_create_inferior): Allow invocation via shell so that command
12498 line redirection, etc. works ok.
12499 (_initialize_inftarg): Add new command: "set shell" to control whether
12500 a shell is used to start a process.
12501
12502 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12503
12504 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12505 instead of find_register_by_number.
12506 (cannot_store_register): Likewise.
12507
12508 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12509
12510 * dwarf2read.c: Replace fprintf (stderr, ...) by
12511 fprintf_unfiltered (gdb_stderr, ...).
12512
12513 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12514
12515 * gdbserver/gdbserver.1: Document --attach.
12516
12517 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12518
12519 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12520 descriptions.
12521 * arm-tdep.c (arm_default_arm_le_breakpoint)
12522 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12523 (arm_default_thumb_be_breakpoint): New. Initialize them from
12524 traditional breakpoint defines.
12525 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12526 (arm_gdbarch_init): Initialize new breakpoint variables.
12527 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12528 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12529 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12530 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12531 code out to ...
12532 (arm_netbsd_init_abi_common): ... here; new function.
12533 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12534 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12535 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12536 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12537
12538 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12539
12540 * arm-tdep.h (enum arm_abi): New enum.
12541 (struct gdbarch_tdep): New structure.
12542 (LOWEST_PC): Provide a default.
12543 (arm_gdbarch_register_os_abi): Declare new function.
12544 * arm-tdep.c (arm_abi_names): New array.
12545 (process_note_abi_tag_sections): New function.
12546 (get_elfosabi): New function.
12547 (arm_gdbarch_register_os_abi): New function.
12548 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12549 support for that ABI has been built in, then call the appropriate
12550 configuration routine. Use gdbarch_num_regs() to get the number
12551 of registers.
12552 (arm_dump_tdep): New function.
12553 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12554 place-holder functions.
12555 (_initialize_arm_tdep): Register them.
12556 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12557
12558 * armnbsd-tdep.c: New file.
12559 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12560 * config/arm/nbsd.mt (TDEPFILES): Add it.
12561 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12562
12563 * armnbsd-nat.c: Include regcache.h.
12564 * Makefile.in (armnbsd-nat.o): Update dependency list.
12565
12566 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12567
12568 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12569
12570 * gdbserver/Makefile.in: Fix typos in target rules.
12571
12572 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12573
12574 Fix part of PR gdb/267.
12575 * linespec.c (find_methods): Handle constructors specially for now.
12576
12577 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12578
12579 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12580 handling.
12581 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12582 standard_coerce_float_to_double().
12583
12584 2002-02-14 Christopher Faylor <cgf@redhat.com>
12585
12586 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12587 GDBINIT_FILENAME.
12588
12589 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12590
12591 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12592 find_variant_by_name, because it confuses the multiarch
12593 framework. Return NULL if there isn't an architecture with the
12594 user supplied name, instead of forcing a different one without
12595 recording the change with the multiarch machinery.
12596 (find_variant_by_name): Delete.
12597
12598 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12599
12600 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12601 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12602
12603 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12604
12605 * stack.c (print_frame_info_base): When calling
12606 print_frame_info_listing_hook, set current_source_symtab.
12607
12608 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12609
12610 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12611 and remove unused $(INCLUDE_DIR).
12612 Add regcache.c to OBS.
12613 Add generated register protocol files to clean target.
12614 Update dependencies for new objects, obsolete old target code.
12615
12616 * gdbserver/linux-low.c: Remove all platform-specific code to
12617 new files. Remove various dead code. Update to use regcache
12618 functionality.
12619 * gdbserver/remote-utils.c (fromhex): Add return statement
12620 to quiet warning.
12621 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12622 constant.
12623 (input_interrupt): Add integer parameter to match prototype
12624 of a signal handler.
12625 (outreg): Use register_data ().
12626 (prepare_resume_reply): Use gdbserver_expedite_regs.
12627 * gdbserver/server.c (main): Dynamically allocate own_buf because
12628 PBUFSIZ is no longer constant. Use registers_to_string () and
12629 registers_from_string ().
12630 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12631 for error (), fatal (), and warning (). Update definition of
12632 PBUFSIZ to use regcache functionality. Add include guard.
12633 * gdbserver/utils.c (fatal): Add missing ``const''.
12634 (warning): New function.
12635
12636 * regformats/regdat.sh: Include "regcache.h" in generated files.
12637 Provide init_registers () function.
12638 * regformats/regdef.h: Add prototype for set_register_cache ().
12639 Add include guard.
12640
12641 * gdbserver/linux-arm-low.c: New file.
12642 * gdbserver/linux-i386-low.c: New file.
12643 * gdbserver/linux-ia64-low.c: New file.
12644 * gdbserver/linux-m68k-low.c: New file.
12645 * gdbserver/linux-mips-low.c: New file.
12646 * gdbserver/linux-ppc-low.c: New file.
12647 * gdbserver/linux-sh-low.c: New file.
12648
12649 * gdbserver/regcache.c: New file.
12650 * gdbserver/regcache.h: New file.
12651
12652 * gdbserver/low-linux.c: Removed obsolete file.
12653
12654 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12655
12656 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12657 * config/i386/linux.mt: Likewise.
12658 * config/ia64/linux.mt: Likewise.
12659 * config/m68k/linux.mh: Likewise.
12660 * config/powerpc/linux.mh: Likewise.
12661 * config/mips/linux.mt: Likewise.
12662
12663 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12664
12665 * config/i386/i386lynx.mh: Mark gdbserver variables
12666 as (currently) obsolete for this target.
12667 * config/i386/nbsd.mt: Likewise.
12668 * config/i386/nbsdelf.mt: Likewise.
12669 * config/m32r/m32r.mt: Likewise.
12670 * config/m68k/m68klynx.mh: Likewise.
12671 * config/m68k/nbsd.mt: Likewise.
12672 * config/m68k/sun3os4.mh: Likewise.
12673 * config/mips/vr5000.mt: Likewise.
12674 * config/ns32k/nbsd.mt: Likewise.
12675 * config/pa/hppabsd.mh: Likewise.
12676 * config/pa/hppaosf.mh: Likewise.
12677 * config/powerpc/nbsd.mt: Likewise.
12678 * config/rs6000/rs6000lynx.mh: Likewise.
12679 * config/s390/s390.mt: Likewise.
12680 * config/s390/s390x.mt: Likewise.
12681 * config/sparc/sparclynx.mh: Likewise.
12682 * config/sparc/sun4os4.mh: Likewise.
12683 * config/i386/x86-64linux.mt: Likewise.
12684 * config/sparc/linux.mh: Likewise.
12685
12686 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12687
12688 * configure.tgt: Configure gdbserver only for known working
12689 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12690 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12691 SUBDIRS if it is configured. Update comment for ${nativefile}.
12692 * configure: Regenerated.
12693
12694 2002-02-13 Michael Snyder <msnyder@redhat.com>
12695
12696 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12697
12698 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12699 (default_gcore_mach): Just return 0, work around a problem in bfd.
12700 (default_gcore_target): OK to return NULL if exec_bfd is null.
12701 (make_mem_sec): Use a cast, avoid a warning.
12702
12703 * procfs.c (find_memory_regions_callback): Use a cast instead of
12704 calling host_pointer_to_address (which complains if
12705 sizeof (host pointer) != sizeof (target pointer)).
12706 (procfs_make_note_section): Avoid overflow in psargs string.
12707
12708 * procfs.c (procfs_make_note_section): Make the default
12709 implementation return an error.
12710
12711 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12712
12713 * procfs.c (procfs_make_note_section): Provide a default definition
12714 (for alpha-dec-osf4.0f). Fix typos.
12715
12716 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12717
12718 * linux-proc.c: Add include of regcache.h.
12719 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12720
12721 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12722
12723 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12724 * memattr.c (create_mem_region): Disallow useless empty region.
12725 Regions are half-open intervals, so allow [A..B) [B..C) as
12726 non-overlapping.
12727
12728 2002-02-13 Michael Chastain <mec@shout.net>
12729
12730 * defs.h: Kill CONST_PTR.
12731 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12732 * c-lang.c (c_builtin_types): Likewise.
12733 * ch-lang.c (ch_builtin_types): Likewise.
12734 * f-lang.c (f_builtin_types): Likewise.
12735 * language.c (unknown_builtin_types): Likewise.
12736 * m2-lang.c (m2_builtin_types): Likewise.
12737 * p-lang.c (pascal_builtin_types): Likewise.
12738 * scm-lang.c (c_builtin_types): Likewise.
12739
12740 2002-02-13 Keith Seitz <keiths@redhat.com>
12741
12742 * arm-tdep.h (arm_get_next_pc): Add declaration.
12743
12744 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12745
12746 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12747 with other related struct-returning functions.
12748 (arm_extract_struct_value_address): New function.
12749 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12750 initialize float_format, double_format and long_double_format as
12751 appropriate to the endianness of the target.
12752 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12753 (arm_use_struct_convention): Delete declaration.
12754 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12755
12756 2002-02-13 Keith Seitz <keiths@redhat.com>
12757
12758 * defs.h (core_addr_to_string_nz): New function.
12759
12760 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12761
12762 Apply missing bits of 2002-01-15 patch.
12763 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12764 (fill_fpregset): Use i387_fill_fsave.
12765
12766 2002-02-12 Keith Seitz <keiths@redhat.com>
12767
12768 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12769 (core_addr_to_string_nz): New function.
12770
12771 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12772
12773 * arm-linux-nat.c: Really include arm-tdep.h.
12774 * config/arm/tm-linux.h (struct type, struct value): Declare.
12775
12776 2002-02-11 Michael Snyder <msnyder@redhat.com>
12777
12778 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12779 (gcore section): Ifdef for Solaris and Unixware only.
12780 (procfs_do_thread_registers): Unixware needs one lwpstatus
12781 per thread (not one prstatus or pstatus).
12782 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12783 not over all gdb threads. For unixware, call elfcore_write_pstatus
12784 once before iterating over threads.
12785
12786 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12787
12788 * arm-tdep.h: New file.
12789 * arm-tdep.c: Include arm-tdep.h.
12790 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12791 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12792 (arm_print_float_info, arm_register_type, convert_to_extended)
12793 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12794 (arm_extract_return_value, arm_register_name): Make static.
12795 (arm_software_single_step): Similarly. Fix types in declaration.
12796 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12797 (arm_store_return_value, arm_store_struct_return): New functions.
12798 (arm_gdbarch_init): Register the above functions. Also register
12799 call_dummy_start_offset, sizeof_call_dummy_words,
12800 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12801 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12802 max_register_virtual_size, register_size. Set up
12803 prologue_cache.saved_regs here, rather than ...
12804 (_initialize_arm_tdep): ... here.
12805 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12806 declarations.
12807 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12808 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12809 (arm_print_float_info, arm_register_type, convert_to_extended)
12810 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12811 (arm_extract_return_value, arm_register_name): Delete declarations.
12812 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12813 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12814 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12815 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12816 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12817 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12818 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12819 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12820 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12821 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12822 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12823 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12824 interface.
12825 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12826 * remote-rdi.c remote-rdp.c: Likewise.
12827 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12828 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12829 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12830 definition.
12831
12832 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12833 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12834 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12835 from non-ARM_ prefixed definitions.
12836 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12837 all uses of above.
12838 * remote-rdi.c remote-rdp.c: Likewise.
12839 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12840
12841 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12842
12843 * arm-tdep.c (arm_frameless_function_invocation)
12844 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12845 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12846 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12847 (arm_pop_frame, arm_get_next_pc): Make static.
12848 (arm_gdbarch_init): Register above in gdbarch structure.
12849 (arm_read_fp): Renamed from arm_target_read_fp.
12850 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12851 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12852 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12853 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12854 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12855 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12856 (arm_pc_is_thumb_dummy): Delete declarations.
12857 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12858 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12859 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12860 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12861
12862 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12863
12864 * symtab.c (compare_search_syms): New function.
12865 (sort_search_symbols): New function.
12866 (search_symbols): Sort symbols after searching rather than
12867 before.
12868
12869 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12870
12871 * NEWS: Linux -> GNU/Linux.
12872
12873 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12874
12875 * gdbarch.sh: For for level one methods, disallow a definition
12876 when partially multi-arched. Add comments explaining rationale.
12877 * gdbarch.h: Re-generate.
12878
12879 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12880
12881 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12882 multi-arch partial.
12883
12884 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12885
12886 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12887 field. Use diff -u.
12888 * gdbarch.c: Re-generate.
12889
12890 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12891
12892 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12893 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12894 partial.
12895
12896 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12897
12898 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12899 multi-arch partial.
12900 (PUSH_ARGUMENTS): Switch to using predefault.
12901 * gdbarch.c: Regenerate.
12902
12903 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12904
12905 * valops.c (PUSH_ARGUMENTS): Delete definition.
12906 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12907 partial. Default to default_push_arguments.
12908 * gdbarch.h, gdbarch.c: Regenerate.
12909
12910 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12911
12912 * defs.h (throw_exception): Rename return_to_top_level. Update
12913 comments.
12914 * utils.c (error_stream, internal_verror, quit): Ditto.
12915 * top.c (throw_exception, catcher): Ditto.
12916 * sparclet-rom.c (sparclet_load): Ditto.
12917 * remote.c (interrupt_query, minitelnet): Ditto.
12918 * remote-sds.c (interrupt_query): Ditto.
12919 * remote-mips.c (mips_error, mips_kill): Ditto.
12920 * ocd.c (interrupt_query): Ditto.
12921 * monitor.c (monitor_interrupt_query): Ditto.
12922 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12923 * target.h: Update comment.
12924
12925 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12926
12927 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12928
12929 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12930 default_double_format.
12931 * gdbarch.h, gdbarch.c: Re-generate.
12932 * findvar.c (floatformat_unknown): Delete variable definition.
12933 * doublest.h (floatformat_unknown): Delete variable declaration.
12934
12935 2002-02-09 Jim Blandy <jimb@redhat.com>
12936
12937 * stabsread.c (read_type): Add code to parse Sun's syntax for
12938 prototyped function types.
12939
12940 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12941
12942 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12943 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12944
12945 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12946
12947 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12948 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12949 now _initialize_xcoffsolib gets called again and overrides the
12950 commands from solib.c in a native configuration.
12951
12952 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12953
12954 * doublest.c (store_typed_floating): Don't try to return a value.
12955 Fixes PR gdb/290.
12956
12957 2002-02-08 Jim Blandy <jimb@redhat.com>
12958
12959 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12960 is prototyped and has no arguments, print its argument list as
12961 `(void)'.
12962
12963 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12964
12965 * MAINTAINERS (write-after-approval): Add myself.
12966 (paper-trail): I've escaped!
12967
12968 2002-02-08 Christopher Faylor <cgf@redhat.com>
12969
12970 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12971 changes.
12972 (_initialize_check_for_gdb_ini): Ditto.
12973
12974 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12975
12976 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12977 xaprintf -> xasprintf.
12978
12979 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12980
12981 * win32-nat.c: Remove use of printf and sprintf functions.
12982
12983 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12984
12985 * arm-tdep.c (arm_frame_chain_valid): Make static.
12986 (arm_push_arguments): Likewise.
12987 (arm_gdbarch_init): New function.
12988 (_initialize_arm_tdep): Call it.
12989 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12990 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12991 (FRAME_CHAIN_VALID): Delete.
12992 (arm_frame_chain_valid): Delete declaration.
12993 (PUSH_ARGUMENTS): Delete.
12994 (arm_push_arguments): Delete declaration.
12995 (CALL_DUMMY_P): Delete.
12996
12997 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12998 Corinna Vinschen <vinschen@redhat.com>
12999
13000 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13001 on builtin float types.
13002
13003 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13004
13005 * utils.c: Include <curses.h> before "bfd.h".
13006 * tui/tui-hooks.c: Likewise.
13007 * tui/tui.c: Likewise.
13008 * tui/tuiCommand.c: Likewise.
13009 * tui/tuiData.c: Likewise.
13010 * tui/tuiDataWin.c: Likewise.
13011 * tui/tuiDisassem.c: Likewise.
13012 * tui/tuiGeneralWin.c: Likewise.
13013 * tui/tuiIO.c: Likewise.
13014 * tui/tuiLayout.c: Likewise.
13015 * tui/tuiRegs.c: Likewise.
13016 * tui/tuiSource.c: Likewise.
13017 * tui/tuiSourceWin.c: Likewise.
13018 * tui/tuiStack.c: Likewise.
13019 * tui/tuiWin.c: Likewise.
13020
13021 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13022
13023 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13024 to include space for pseudoregs as well. Update loops accordingly.
13025 (sh_fp_frame_init_saved_regs): Ditto.
13026 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13027
13028 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13029
13030 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13031 Add Richard Earnshaw to Arm maintainers.
13032
13033 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13034
13035 * defs.h (warning_begin): Delete declaration.
13036
13037 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13038 Delete macro.
13039
13040 2002-02-07 Michael Snyder <msnyder@redhat.com>
13041
13042 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13043 Logic bug, remove misplaced else.
13044
13045 2002-02-07 Klee Dienes <klee@apple.com>
13046
13047 * fork-inferior.c (fork_inferior): Add '!' to the list of
13048 characters that need to be quoted when building a string for the
13049 shell. Quote '!' specifically with a backslash, since CSH chokes
13050 when trying to evaluate "str!str".
13051
13052 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13053
13054 * rdi-share/host.h: Only provide a typedef for bool if it is not
13055 defined.
13056
13057 2002-02-04 Michael Snyder <msnyder@redhat.com>
13058
13059 * breakpoint.h (enum bptype): Add new overlay event bp type.
13060 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13061
13062 * breakpoint.c (create_internal_breakpoint): New function.
13063 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13064 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13065 (create_thread_event_breakpoint): Ditto.
13066 (create_solib_event_breakpoint): Ditto.
13067 (create_overlay_event_breakpoint): New function.
13068 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13069 (update_breakpoints_after_exec): Delete and re-initialize
13070 overlay event breakpoints after an exec. Add FIXME comment
13071 about longjmp breakpoint.
13072 (print_it_typical): Ignore overlay event breakpoints.
13073 (print_one_breakpoint): Ditto.
13074 (mention): Ditto.
13075 (bpstat_what): Do not stop for overlay event breakpoints.
13076 (delete_breakpoint): Don't delete overlay event breakpoints.
13077 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13078 (breakpoint_re_set): Re-create overlay event breakpoint.
13079
13080 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13081 (overlay_manual_command): Disable overlay breakpoints.
13082 (overlay_off_command): Disable overlay breakpoints.
13083
13084 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13085
13086 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13087 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13088 to here from config/tm-arm.h.
13089 (coff_sym_is_thumb): Make static.
13090 (arm_elf_make_msymbol_special): New function.
13091 (arm_coff_make_msymbol_special): New function.
13092 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13093 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13094 (coff_sym_is_thumb): Delete declaration.
13095 (arm_elf_make_msymbol_special): Declare.
13096 (arm_coff_make_msymbol_special): Declare.
13097 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13098 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13099
13100 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13101
13102 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13103
13104 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13105
13106 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13107 * gdbarch.c gdbarch.h: Regenerate.
13108 * arch-utils.c (default_print_float_info): New function.
13109 * arch-utils.h (default_print_float_info): Prototype it.
13110 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13111 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13112 (PRINT_FLOAT_INFO): Document it.
13113
13114 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13115 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13116 (PRINT_FLOAT_INFO): Define.
13117
13118 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13119
13120 * win32-nat.c (_initialize_check_for_gdb_ini):
13121 Add typecast to sprintf argument to suppress a warning.
13122
13123 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13124
13125 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13126 to allow easier handling of pass state.
13127 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13128 that gives exception name and address.
13129 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13130 and set last_sig value to ourstatus->value.sig. Some missing
13131 exceptions added.
13132 (child_continue): Correctly report continue_status.
13133 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13134 TARGET_SIGNAL_0 (new default value).
13135 (child_resume): consider sig argument passed to decide if
13136 the exception should be passed to debuggee or not.
13137
13138 2002-02-05 Michael Snyder <msnyder@redhat.com>
13139
13140 * regcache.c (fetch_register): Call target_fetch_register
13141 only if we don't call FETCH_PSEUDO_REGISTER.
13142 (store_register): Call target_store_register only if we
13143 don't call STORE_PSEUDO_REGISTER.
13144
13145 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13146
13147 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13148 ELF_MAKE_MSYMBOL_SPECIAL.
13149 * gdbarch.c, gdbarch.h: Regenerate.
13150 * arch-utils.c (default_make_msymbol_special): New function.
13151 * arch-utils.h (default_make_msymbol_special): Export.
13152 * elfread.c (elf_symtab_read): Compile use of
13153 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13154 multiarched.
13155 * coffread.c (coff_symtab_read): Ditto, for
13156 COFF_MAKE_MSYMBOL_SPECIAL.
13157
13158 2002-02-05 Jim Blandy <jimb@redhat.com>
13159
13160 * solib-svr4.c (svr4_truncate_ptr): New function.
13161 (svr4_relocate_section_addresses): Do the address arithmetic with
13162 the appropriate truncation for target addresses, even when
13163 CORE_ADDR is larger than a target address.
13164
13165 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13166
13167 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13168 to (int *).
13169
13170 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13171
13172 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13173 code.
13174
13175 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13176
13177 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13178
13179 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13180
13181 * gdbserver/linux-low.c: Remove unused include files.
13182
13183 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13184
13185 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13186 (read_inferior_memory): Use it.
13187 (write_inferior_memory): Likewise.
13188
13189 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13190
13191 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13192 grubbing through sys_errlist.
13193
13194 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13195
13196 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13197
13198 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13199 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13200
13201 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13202
13203 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13204 (do_sfunc, set_cmd_sfunc): New functions.
13205
13206 * command.h (struct cmd_list_element): Add field func.
13207 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13208 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13209 * cli/cli-decode.h: Ditto.
13210
13211 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13212 (help_all, help_cmd_list): Ditto.
13213 (find_cmd, complete_on_cmdlist): Ditto.
13214 * top.c (execute_command): Ditto.
13215
13216 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13217 function.sfunc.
13218
13219 * infcmd.c (notice_args_read): Fix function signature.
13220
13221 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13222 * cli/cli-decode.c (add_set_cmd): Ditto.
13223 * utils.c (initialize_utils): Ditto.
13224 * maint.c (_initialize_maint_cmds): Ditto.
13225 * infrun.c (_initialize_infrun): Ditto.
13226 * demangle.c (_initialize_demangler): Ditto.
13227 * remote.c (add_packet_config_cmd): Ditto.
13228 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13229 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13230 * proc-api.c (_initialize_proc_api): Ditto.
13231 * kod.c (_initialize_kod): Ditto.
13232 * valprint.c (_initialize_valprint): Ditto.
13233 * top.c (init_main): Ditto.
13234 * infcmd.c (_initialize_infcmd): Ditto.
13235 * corefile.c (_initialize_core): Ditto.
13236 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13237 * arch-utils.c (initialize_current_architecture): Ditto.
13238 (_initialize_gdbarch_utils): Ditto.
13239 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13240
13241 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13242 * wince.c (_initialize_inftarg): Ditto.
13243 * symfile.c (_initialize_symfile): Ditto.
13244 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13245 * language.c (_initialize_language): Ditto.
13246 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13247
13248 2002-02-04 Michael Snyder <msnyder@redhat.com>
13249
13250 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13251
13252 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13255 Add rules for building the register data files.
13256
13257 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13258
13259 * regformats/regdat.sh: Add braces to the definition of
13260 expedite_regs_${arch}.
13261
13262 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13263
13264 * regformats/regdef.h (struct reg): Add comment describing the
13265 requirements for offset and size fields.
13266
13267 2002-02-04 Andreas Schwab <schwab@suse.de>
13268
13269 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13270 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13271
13272 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13273
13274 * gdbarch.sh (copyright): Update years in generated header.
13275 (SMASH_TEXT_ADDRESS): Add rule.
13276 * gdbarch.h, gdbarch.c: Re-generate.
13277 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13278 * dbxread.c: Likewise.
13279 * dwarfread.c: Likewise.
13280 * elfread.c: Likewise.
13281 * somread.c: Likewise.
13282
13283 * arm-tdep.c (arm_smash_text_address): New function.
13284 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13285
13286 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13287
13288 Add support for hardware watchpoints on win32 native.
13289 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13290 CONTEXT_DEBUG_REGISTERS.
13291 (dr variable): New variable. Static array containing a local copy
13292 of debug registers.
13293 (debug_registers_changed): New variable. Reflects when debug registers
13294 are changed and need to be written to inferior.
13295 (debug_registers_used): New variable. Reflects when any debug register
13296 was set, used when new threads are created.
13297 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13298 i386-nat code.
13299 (thread_rec): Set dr array if id is the thread of current_event .
13300 (child_continue, child_resume): Change the debug registers for all
13301 threads if debug_registers_changed.
13302 (child_add_thread): Change the debug registers if debug_registers_used.
13303 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13304 Link nm.h to new nm-cygwin.h file.
13305 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13306 of hardware registers.
13307
13308 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13309
13310 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13311 Restore behavour broken by 2002-01-20 Andrew Cagney
13312 <ac131313@redhat.com> IEEE_FLOAT removal.
13313
13314 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13315
13316 * c-valprint.c (c_val_print): Pass a proper valaddr to
13317 cp_print_class_method.
13318 * valops.c (search_struct_method): If there is only one method
13319 and args is NULL, return that method.
13320
13321 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13322
13323 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13324 accessing tag_name directly.
13325
13326 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13327
13328 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13329 of accessing tag_name directly.
13330
13331 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13332
13333 PR gdb/280
13334 * gdbtypes.c (replace_type): New function.
13335 * gdbtypes.h (replace_type): Add prototype.
13336 * stabsread.c (read_type): Use replace_type.
13337
13338 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13339
13340 * Makefile.in (memattr.o): Add missing dependencies rule.
13341
13342 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13343
13344 * breakpoint.c (break_at_finish_command): Really export.
13345 (break_at_finish_at_depth_command): Ditto.
13346 (tbreak_at_finish_command): Ditto.
13347 * hppa-tdep.c: Include completer.h.
13348 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13349 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13350
13351 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13352
13353 * utils.c (do_write): New function.
13354 (error_stream): Rewrite combining the code from error_begin and
13355 verror.
13356 (verror): Rewrite using error_stream.
13357 (error_begin): Delete function.
13358
13359 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13360
13361 * utils.c (error_begin): Make static.
13362 * defs.h (error_begin): Delete declaration.
13363
13364 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13365 (decode_line_1): Use cplusplus_error instead of error_begin,
13366 cplusplus_hint and return_to_top_level.
13367 * coffread.c (coff_symfile_read): Use error instead of error_begin
13368 and return_to_top_level.
13369 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13370
13371 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13372
13373 * language.h (type_error, range_error): Make string parameter
13374 constant.
13375 * language.c (warning_pre_print): Delete extern declaration.
13376 * dwarfread.c (warning_pre_print): Ditto.
13377 * language.c (type_error, range_error): Rewrite to use verror and
13378 vwarning instead of warning_begin.
13379
13380 2002-02-01 Michael Snyder <msnyder@redhat.com>
13381
13382 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13383 (set_ignore_count): Move misplaced comment back where it belongs.
13384
13385 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13386
13387 * command.h (NO_FUNCTION): Delete macro.
13388 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13389 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13390 * tracepoint.c (_initialize_tracepoint): Ditto.
13391 * cli/cli-decode.c (add_set_cmd): Ditto.
13392 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13393
13394 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13395
13396 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13397 Update ``this'' pointer when calling virtual functions.
13398
13399 2002-02-01 Michael Snyder <msnyder@redhat.com>
13400
13401 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13402 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13403
13404 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13405
13406 * regformats/reg-arm.dat: New file.
13407 * regformats/reg-i386.dat: New file.
13408 * regformats/reg-ia64.dat: New file.
13409 * regformats/reg-m68k.dat: New file.
13410 * regformats/reg-mips.dat: New file.
13411 * regformats/reg-ppc.dat: New file.
13412 * regformats/reg-sh.dat: New file.
13413 * regformats/regdef.h: New file.
13414 * regformats/regdat.sh: New file.
13415
13416 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13417
13418 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13419 (arm_frame_args_address, arm_frame_locals_address): New functions.
13420 (arm_frame_num_args): New function.
13421 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13422 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13423 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13424
13425 2002-01-31 Michael Snyder <msnyder@redhat.com>
13426
13427 * breakpoint.c (break_at_finish_command): Export.
13428 (break_at_finish_at_depth_command): Export.
13429 (tbreak_at_finish_command): Export.
13430 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13431 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13432 "txbreak" commands, which are HPPA specific.
13433
13434 * printcmd.c (disassemble_command): Remove an ancient
13435 artifact of an old merge.
13436
13437 * symfile.h (enum overlay_debugging_state):
13438 Define enum constant values for overlay mode.
13439 * symfile.c (overlay_debugging): Use enums instead of literals.
13440 (overlay_is_mapped, overlay_auto_command,
13441 overlay_manual_command): Ditto.
13442
13443 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13444 breakpoint_here_p, breakpoint_inserted_here_p,
13445 breakpoint_thread_match, bpstat_stop_status,
13446 describe_other_breakpoints, check_duplicates, clear_command):
13447 Coding standard fixes.
13448
13449 * target.c (target_xfer_memory): Add spaces, coding standard.
13450 (do_xfer_memory): Add missing line to trust-readonly
13451 code: check bfd SEC_READONLY flag for section.
13452
13453 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13454
13455 * PROBLEMS: Fix typo, 5.1->5.1.1.
13456
13457 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13458
13459 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13460 data symbols, since we search based on textlow and texthigh.
13461 (find_pc_sect_symtab): Likewise.
13462
13463 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13464
13465 * defs.h (vwarning): Declare.
13466 * utils.c (vwarning): New function.
13467 (warning): Call vwarning.
13468 (warning_begin): Delete function.
13469
13470 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13471 the warning message.
13472 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13473 warning_begin.
13474
13475 2002-01-30 Michael Snyder <msnyder@redhat.com>
13476
13477 * NEWS: Mention "set trust-readonly-sections" command.
13478 Mention generate-core-file command.
13479
13480 2002-01-15 Michael Snyder <msnyder@redhat.com>
13481
13482 * target.c: New command, "set trust-readonly-sections on".
13483 (do_xfer_memory): Honor the suggestion to trust readonly sections
13484 by reading them from the object file instead of from the target.
13485 (initialize_targets): Register command "set trust-readonly-sections".
13486
13487 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13488
13489 * parse.c (target_map_name_to_register): Simplify, search regs and
13490 pseudo-regs using a single loop.
13491
13492 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13493
13494 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13495
13496 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13497
13498 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13499 * config/i386/i386v42mp.mh: Add i387-nat.o .
13500 * i386v4-nat.c: Include i387-nat.h.
13501 (supply_fpregset): Use i387_supply_fsave.
13502 (fill_fpregset): Use i387_fill_fsave.
13503
13504 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13505
13506 * arm-tdep.c (arm_call_dummy_words): Define.
13507 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13508 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13509 (CALL_DUMMY_WORDS): Define.
13510 (arm_call_dummy_words): Declare.
13511 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13512 (arm_linux_call_dummy_words): Declare.
13513
13514 2002-01-30 Andreas Schwab <schwab@suse.de>
13515
13516 * m68klinux-nat.c: Fix last change to use regcache_collect
13517 instead of referencing registers[] directly.
13518
13519 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13520
13521 * parse.c (target_map_name_to_register): Delete code wrapped in
13522 #ifdef REGISTER_NAME_ALIAS_HOOK.
13523
13524 2002-01-28 Michael Snyder <msnyder@redhat.com>
13525
13526 * regcache.c (legacy_read_register_gen): Need to be able to
13527 read pseudo-register as well as real register.
13528 (legacy_write_register_gen): Ditto.
13529
13530 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13531
13532 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13533 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13534 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13535 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13536 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13537 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13538 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13539 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13540 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13541 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13542 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13543 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13544 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13545 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13546 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13547 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13548 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13549 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13550 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13551 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13552
13553 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13554
13555 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13556 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13557 (initialize_current_architecture): Update target_byte_order using
13558 information from BFD.
13559 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13560 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13561
13562 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13563
13564 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13565 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13566
13567 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13568 #ifdef INVALID_FLOAT.
13569 * infcmd.c (do_registers_info): Ditto.
13570 * values.c (unpack_double): Ditto. Add comment.
13571
13572 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13573 already commented out.
13574
13575 2002-01-26 Andreas Schwab <schwab@suse.de>
13576
13577 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13578 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13579 registers and add support for PTRACE_GETREGS.
13580
13581 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13582
13583 GDB 5.1.1 released from 5.1 branch.
13584 * NEWS: Add 5.1.1 news.
13585 * README: Sync with 5.1 branch.
13586
13587 2002-01-23 Fred Fish <fnf@redhat.com>
13588
13589 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13590 stabstring on initial malloc. Reallocing will copy it for us,
13591 if necessary.
13592
13593 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13594
13595 * Makefile.in (hpread_h): Delete.
13596 (HFILES_NO_SRCDIR): Remove hpread.h.
13597 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13598 (hpread.o): Update dependencies.
13599 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13600
13601 * hp-psymtab-read.c: Remove file.
13602 * hp-symtab-read.c: Remove file.
13603 * hpread.h: Remove file.
13604
13605 * hpread.c: Merge all contents of hp-psymtab-read.c,
13606 hp-symtab-read.c and hpread.h into this file, as it was prior to
13607 January 1999.
13608
13609 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13610 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13611 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13612 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13613
13614 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13615
13616 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13617 fill_gregset): Call gdbarch_tdep() just once, assign result to
13618 variable and use that, instead of calling the function several
13619 times.
13620
13621 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13622
13623 * configure.host: Accept sparcv9 as alias for sparc64.
13624 * configure.tgt: Likewise.
13625
13626 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13627
13628 * solib-aix5.c (build_so_list_from_mapfile)
13629 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13630 arguments is not reversed.
13631 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13632 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13633
13634 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13635
13636 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13637 modified version of obsolete sh_fetch_pseudo_register.
13638 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13639 (sh4_register_read): New function.
13640 (sh_pseudo_register_write): New function. Renamed and modified
13641 version of obsolete sh_store_pseudo_register.
13642 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13643 (sh4_register_write): New function.
13644 (sh_gdbarch_init): Remove setting of gdbarch function
13645 fetch_pseudo_register and store_pseudo_register. Remove setting of
13646 register_convert_to_raw, register_convert_to_virtual,
13647 register_convertible.
13648 (sh_sh4_register_convertible): Delete. No longer needed. All is
13649 taken care by architecture specific functions
13650 register_read/register_write.
13651 (sh_sh4_register_convert_to_virtual): Make static.
13652 (sh_sh4_register_convert_to_raw): Ditto.
13653
13654 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13655
13656 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13657 (floatformat_is_nan, floatformat_mantissa): Ditto.
13658
13659 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13660 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13661 builtin_type_ieee_double_little,
13662 builtin_type_ieee_double_littlebyte_bigword,
13663 builtin_type_m68881_ext, builtin_type_i960_ext,
13664 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13665 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13666 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13667 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13668
13669 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13670
13671 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13672 parameter. Set frameless flag if it exists and depended of
13673 whether the scanned function is frameless or not.
13674 (xstormy16_skip_prologue): If function is frameless, return
13675 result of xstormy16_scan_prologue().
13676 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13677 call.
13678
13679 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13680
13681 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13682 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13683 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13684 sh_sh4_register_byte, sh_sh4_register_raw_size,
13685 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13686 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13687 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13688 sh_store_pseudo_register, sh_do_pseudo_register): Call
13689 gdbarch_tdep() just once, assign result to variable and use that,
13690 instead of calling the function several times.
13691
13692 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13693
13694 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13695 macros instead of LAST_FPU_CTRL_REGNUM.
13696 (store_register): Likewise.
13697
13698 2002-01-21 Jim Blandy <jimb@redhat.com>
13699
13700 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13701 is up-to-date before running the program, not just when a program
13702 exits.
13703
13704 2002-01-21 Fred Fish <fnf@redhat.com>
13705
13706 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13707 when we have found all instructions we are looking for.
13708
13709 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13710
13711 * arm-tdep.c (arm_register_name): New function.
13712 (arm_registers_names): Make static.
13713 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13714 (arm_register_name): Declare.
13715 (REGISTER_NAME): Use it.
13716
13717 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13718 Kevin Buettner <kevinb@redhat.com>
13719
13720 Convert arm targets to new FRAME interface.
13721 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13722 (arm_frame_find_save_regs): Delete.
13723 (arm_frame_init_saved_regs): New.
13724 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13725 Allocate extra_info as required. Convert all uses of fsr.regs
13726 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13727 to use extra_info.
13728 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13729 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13730 (check_prologue_cache, save_prologue_cache): Likewise.
13731 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13732 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13733 (FRAME_FIND_SAVED_REGS): Delete.
13734 (arm_frame_find_saved_regs): Delete prototype.
13735 (arm_frame_init_saved_regs): New prototype.
13736 (FRAME_INIT_SAVED_REGS): Define.
13737
13738 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13739
13740 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13741
13742 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13743
13744 From Jeff Law <law@redhat.com>:
13745 * infttrace.c: Include <sys/pstat.h>.
13746 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13747 exec file if the ttrace equivalent fails.
13748
13749 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13750
13751 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13752 (closeLogFile): Ditto.
13753
13754 2002-01-20 Michael Chastain <mec@shout.net>
13755
13756 * top.c (print_gdb_version): Bump copyright year to 2002.
13757
13758 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13759
13760 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13761 Zannoni and Eli Zaretskii.
13762
13763 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13764
13765 * buildsym.c: Update copyright years.
13766 * c-typeprint.c: Likewise.
13767 * dwarf2read.c: Likewise.
13768 * f-typeprint.c: Likewise.
13769 * gdbtypes.c: Likewise.
13770 * gdbtypes.h: Likewise.
13771 * hp-symtab-read.c: Likewise.
13772 * hpread.c: Likewise.
13773 * mdebugread.c: Likewise.
13774 * p-typeprint.c: Likewise.
13775
13776 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13777
13778 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13779 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13780 byte-order selectable.
13781 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13782 * arch-utils.c: Ditto.
13783 (set_endian): Ditto.
13784 (set_endian_from_file): Ditto.
13785 * gdbserver/low-sim.c (create_inferior): Ditto.
13786 * gdbarch.sh: Ditto.
13787 * gdbarch.h: Re-generate.
13788 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13789 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13790 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13791 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13792 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13793 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13794 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13795 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13796 macro definition.
13797 * config/mips/tm-wince.h: Remove #undef of macro
13798 TARGET_BYTE_ORDER_SELECTABLE.
13799 * config/sh/tm-wince.h: Ditto.
13800
13801 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13802
13803 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13804 member function fields. Add accessor macro
13805 TYPE_FN_FIELD_ARTIFICIAL.
13806 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13807 * c-typeprint.c (c_type_print_base): Skip artificial member
13808 functions.
13809
13810 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13811
13812 * f-typeprint.c: Delete unused function f_type_print_args.
13813 * p-typeprint.c: Delete unused function pascal_type_print_args.
13814
13815 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13816
13817 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13818 comment. Add ``artificial'' to ``union field_location''.
13819
13820 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13821
13822 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13823 * mdebugread.c (parse_symbol): Likewise.
13824 * stabsread.c (define_symbol): Likewise.
13825 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13826 initializing TYPE_FIELD_BITPOS to n (obsolete).
13827 (hpread_doc_function_type): Likewise.
13828 * hpread.c (hpread_function_type): Likewise.
13829
13830 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13831
13832 * configure.in (host_makefile_frag): Only require a host makefile
13833 fragment when a native build.
13834 * configure: Re-generate.
13835
13836 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13837
13838 * doublest.h (floatformat_from_type): Declare.
13839 * doublest.c (floatformat_from_type): New function.
13840 (convert_typed_floating): Use.
13841
13842 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13843 call to function floatformat_from_type.
13844
13845 * gdbarch.sh (IEEE_FLOAT): Delete.
13846 * gdbarch.h, gdbarch.c: Re-generate.
13847 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13848 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13849 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13850 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13851 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13852 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13853 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13854 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13855 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13856 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13857 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13858 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13859
13860 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13861 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13862 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13863 * sh-tdep.c (sh_gdbarch_init): Ditto.
13864 * mips-tdep.c (mips_gdbarch_init): Ditto.
13865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13866 * cris-tdep.c (cris_gdbarch_init): Ditto.
13867
13868 2002-01-20 Jiri Smid <smid@suse.cz>
13869
13870 * configure.host, configure.tgt: Support x86-64.
13871 * NEWS: Note new target x86-64.
13872
13873 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13874 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13875 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13876 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13877 x86-64-linux-nat.o): Fix dependencies.
13878
13879 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13880
13881 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13882 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13883 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13884 * config/sparc/xm-sun4os4.h: Delete file.
13885 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13886
13887 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13888
13889 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13890 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13891 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13892 * config/i386/i386lynx.mh (XM_FILE): Delete.
13893 * config/rs6000/xm-rs6000ly.h: Delete file.
13894 * config/sparc/xm-sparclynx.h: Delete file.
13895 * config/m68k/xm-m68klynx.h: Delete file.
13896 * config/i386/xm-i386lynx.h: Delete file.
13897 * config/xm-lynx.h: Delete file.
13898 * config/djgpp/fnchange.lst: Update.
13899
13900 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13901
13902 * alpha-tdep.c (alpha_register_byte): New function.
13903 (alpha_register_raw_size): Ditto.
13904 (alpha_register_virtual_size): Ditto.
13905 (alpha_skip_prologue_internal): Renamed from
13906 alpha_skip_prologue.
13907 (alpha_skip_prologue): New version that calls
13908 alpha_skip_prologue_internal.
13909 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13910 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13911 second argument from alpha_skip_prologue.
13912 (REGISTER_BYTE): Use alpha_register_byte.
13913 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13914 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13915 (FRAMELESS_FUNCTION_INVOCATION): Use
13916 generic_frameless_function_invocation_not.
13917 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13918 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13919
13920 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13921
13922 * config/mips/xm-news-mips.h: Delete file.
13923 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13924
13925 * config/m88k/xm-m88k.h: Delete file.
13926 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13927 * config/m88k/xm-delta88v4.h: Ditto.
13928 * config/m88k/xm-delta88.h: Ditto.
13929
13930 * config/alpha/xm-fbsd.h: Delete file.
13931 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13932
13933 * config/sparc/xm-sparc.h: Delete file.
13934 * Makefile.in (xm-sun4os4.h): Delete dependency.
13935 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13936 * config/sparc/xm-sun4os4.h: Ditto.
13937 * config/sparc/xm-linux.h: Ditto.
13938
13939 * config/i386/xm-windows.h: Delete file.
13940
13941 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13942
13943 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13944 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13945
13946 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13947
13948 * alpha-tdep.c (alpha_call_dummy_words): New.
13949 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13950 (CALL_DUMMY_P): Define.
13951 (CALL_DUMMY_WORDS): Define.
13952 (SIZEOF_CALL_DUMMY_WORDS): Define.
13953
13954 2002-01-19 Per Bothner <per@bothner.com>
13955
13956 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13957 isn't NULL, which can happen with some gcj-3.x-produced code.
13958
13959 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13960
13961 * alpha-tdep.c (alpha_register_virtual_type): New function.
13962 (alpha_init_frame_pc_first): Ditto.
13963 (alpha_fix_call_dummy): Ditto.
13964 (alpha_store_struct_return): Ditto.
13965 (alpha_extract_struct_value_address): Ditto.
13966 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13967 alpha_register_virtual_type.
13968 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13969 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13970 alpha_extract_struct_value_address.
13971 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13972 (INIT_FRAME_PC): Use init_frame_pc_noop.
13973 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13974
13975 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13976
13977 * i386gnu-nat.c: Include "i386-tdep.h".
13978 (fetch_fpregs): Simplify code dealing with uninitialized floating
13979 point states such that it doesn't require FP7_REGNUM.
13980
13981 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13982
13983 * alpha-tdep.c (frame_extra_info): New.
13984 (alpha_find_saved_regs): Make static. Use
13985 frame->extra_info.
13986 (alpha_frame_init_saved_regs): New function.
13987 (alpha_frame_saved_pc): Use frame->extra_info.
13988 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13989 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13990 (init_extra_frame_info): Rename to...
13991 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13992 (alpha_print_extra_frame_info): New function.
13993 (alpha_frame_locals_address): Ditto.
13994 (alpha_frame_args_address): Ditto.
13995 (alpha_pop_frame): Use frame->extra_info.
13996 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13997 alpha_frame_args_address.
13998 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13999 (alpha_find_saved_regs): Remove prototype.
14000 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14001 (EXTRA_FRAME_INFO): Remove.
14002 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14003 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14004
14005 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14006
14007 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14008 (alpha_cannot_fetch_register): Ditto.
14009 (alpha_cannot_store_register): Ditto.
14010 (alpha_register_convertible): Ditto.
14011 (alpha_use_struct_convention): Ditto.
14012 * config/alpha/tm-alpha.h: Update copyright years.
14013 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14014 (INNER_THAN): Use core_addr_lessthan.
14015 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14016 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14017 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14018 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14019 (FRAME_CHAIN): Remove unnecessary cast.
14020
14021 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14022
14023 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14024 obsolete.
14025
14026 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14027
14028 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14029 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14030 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14031 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14032 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14033 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14034 * x86-64-linux-nat.c: Ditto.
14035
14036 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14037
14038 * alpha-tdep.c (alpha_register_name): New function.
14039 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14040 (REGISTER_NAME): Define.
14041
14042 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14043
14044 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14045
14046 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14047
14048 * alpha-tdep.c: Update copyright years.
14049 (alpha_next_pc): New function.
14050 (alpha_software_single_step): Ditto.
14051 * config/alpha/tm-alpha.h: Add prototype for
14052 alpha_software_single_step.
14053
14054 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14055
14056 * alphabsd-nat.c: Update copyright years.
14057 (fill_gregset): Use regcache_collect.
14058 (fill_fpregset): Likewise.
14059 (fetch_inferior_registers): Only fetch integer registers
14060 if requested to do so.
14061 (store_inferior_registers): Only store integer registers
14062 if requested to do so.
14063
14064 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14065
14066 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14067 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14068 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14069 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14070 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14071 * config/arm/linux.mh (XDEPFILES): Delete.
14072 * config/arm/nbsd.mh (XDEPFILES): Delete.
14073 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14074 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14075 * config/i386/i386m3.mh (XDEPFILES): Delete.
14076 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14077 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14078 * config/i386/fbsd.mh (XDEPFILES): Delete.
14079 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14080 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14081 * config/i386/i386v4.mh (XDEPFILES): Delete.
14082 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14083 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14084 * config/i386/i386aix.mh (XDEPFILES): Delete.
14085 * config/i386/go32.mh (XDEPFILES): Delete.
14086 * config/i386/cygwin.mh (XDEPFILES): Delete.
14087 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14088 * config/i386/i386mach.mh (XDEPFILES): Delete.
14089 * config/i386/i386v32.mh (XDEPFILES): Delete.
14090 * config/i386/linux.mh (XDEPFILES): Delete.
14091 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14092 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14093 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14094 * config/i386/i386sco.mh (XDEPFILES): Delete.
14095 * config/i386/i386v.mh (XDEPFILES): Delete.
14096 * config/i386/nbsd.mh (XDEPFILES): Delete.
14097 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14098 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14099 * config/i386/symmetry.mh (XDEPFILES): Delete.
14100 * config/i386/obsd.mh (XDEPFILES): Delete.
14101 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14102 * config/ia64/linux.mh (XDEPFILES): Delete.
14103 * config/ia64/aix.mh (XDEPFILES): Delete.
14104 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14105 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14106 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14107 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14108 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14109 * config/m68k/linux.mh (XDEPFILES): Delete.
14110 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14111 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14112 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14113 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14114 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14115 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14116 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14117 * config/m88k/delta88.mh (XDEPFILES): Delete.
14118 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14119 * config/m88k/m88k.mh (XDEPFILES): Delete.
14120 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14121 * config/mips/linux.mh (XDEPFILES): Delete.
14122 * config/mips/irix6.mh (XDEPFILES): Delete.
14123 * config/mips/irix5.mh (XDEPFILES): Delete.
14124 * config/mips/irix4.mh (XDEPFILES): Delete.
14125 * config/mips/irix3.mh (XDEPFILES): Delete.
14126 * config/mips/decstation.mh (XDEPFILES): Delete.
14127 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14128 (NATDEPFILES): Move core-aout.o to here.
14129 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14130 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14131 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14132 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14133 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14134 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14135 * config/pa/hpux11.mh (XDEPFILES): Delete.
14136 * config/powerpc/aix.mh (XDEPFILES): Delete.
14137 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14138 * config/powerpc/linux.mh (XDEPFILES): Delete.
14139 * config/romp/rtbsd.mh: Rename XDEPFILES.
14140 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14141 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14142 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14143 * config/s390/s390.mh (XDEPFILES): Delete.
14144 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14145 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14146 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14147 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14148 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14149 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14150 * config/sparc/linux.mh (XDEPFILES): Delete.
14151 * config/vax/vaxult.mh (XDEPFILES): Delete.
14152 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14153 * Makefile.in (DEPFILES): Remove XDEPFILES.
14154
14155 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14156
14157 * utils.c (internal_verror): Fix comments, default is yes not no.
14158 Update queries to match. Default to quit and dump core.
14159
14160 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14161
14162 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14163 copyright.
14164 * defs.h, event-top.c, gdbcmd.h: Ditto.
14165 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14166 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14167 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14168 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14169 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14170 * mi/mi-main.c:Ditto.
14171
14172 * stack.c, symfile.c: Update copyright.
14173
14174 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14175
14176 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14177 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14178 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14179 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14180
14181 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14182
14183 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14184 * gdbserver/low-lynx.c (myattach): Likewise.
14185 * gdbserver/low-nbsd.c (myattach): Likewise.
14186 * gdbserver/low-sim.c (myattach): Likewise.
14187 * gdbserver/low-sparc.c (myattach): Likewise.
14188 * gdbserver/low-sun3.c (myattach): Likewise.
14189
14190 * gdbserver/low-linux.c (myattach): New function.
14191
14192 * gdbserver/server.c (attach_inferior): New function.
14193 (main): Handle "--attach".
14194
14195 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14196
14197 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14198 maintainer.
14199
14200 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14201
14202 * c-typeprint.c (is_type_conversion_operator): Add additional
14203 check for non-conversion operators.
14204
14205 2002-01-15 Michael Snyder <msnyder@redhat.com>
14206
14207 * linux-proc.c: Add "info proc" command, a la procfs.c.
14208 (read_mapping): New function, abstract and re-use code.
14209 (linux_find_memory_regions): Use new func read_mapping.
14210 (linux_info_proc_cmd): New function, implement "info proc".
14211 (_initialize_linux_proc): Add new command "info proc".
14212
14213 2002-01-15 Michael Snyder <msnyder@redhat.com>
14214
14215 * symfile.c (generic_load): Use bfd_map_over_sections method
14216 instead of manipulating bfd structure members directly.
14217 (add_section_size_callback): New function, bfd sections callback
14218 used by generic_load.
14219 (load_sections_callback): New function, bfd sections callback
14220 used by generic_load.
14221
14222 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14223
14224 [Based on work by Jim Blandy]
14225 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14226 (builtin_type_vec128): Export.
14227 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14228 types.
14229 (builtin_type_vec128): New builtin type for 128 bit vector
14230 registers.
14231 (build_gdbtypes): Initialize builtin_type_v16qi and
14232 builtin_type_v8hi. Create the vec128 register builtin type
14233 structure.
14234 (build_builtin_type_vec128): New function.
14235 (_initialize_gdbtypes): Register builtin_type_v16qi and
14236 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14237 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14238 AltiVec register to new builtin type.
14239
14240 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14241
14242 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14243 to make_cv_type.
14244
14245 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14246
14247 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14248 CLEAN_UP_REGISTER_VALUE.
14249 * regcache.c (supply_register): Update only call.
14250
14251 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14252
14253 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14254 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14255 a29k-*-vxworks* targets as obsolete.
14256
14257 2002-01-14 Michael Snyder <msnyder@redhat.com>
14258
14259 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14260 until we can resolve portability issues.
14261 * gregset.h: Remove references to fpxregs.
14262 * gcore.c (gcore_command): Initialize note_sec to NULL.
14263
14264 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14265
14266 * signals.c (target_signal_to_name): Rewrite. Only use
14267 signals[].name when in bounds and non-NULL.
14268
14269 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14270
14271 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14272 * signals.c (target_signal_to_name): Verify that SIG is within the
14273 bounds of the signals array.
14274
14275 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14276
14277 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14278
14279 2002-01-13 Keith Seitz <keiths@redhat.com>
14280
14281 * stack.c (print_frame_info_base): Print the frame's pc
14282 only if when print_frame_info_listing_hook is not defined.
14283
14284 2002-01-13 Keith Seitz <keiths@redhat.com>
14285
14286 * varobj.c (varobj_set_value): Make sure that there were no
14287 errors evaluating the object before attempting to set its
14288 value.
14289 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14290 so this offset adjustment is no longer necessary.
14291 (create_child): Don't set the error flag if the child is
14292 a CPLUS_FAKE_CHILD.
14293 (value_of_child): If value_fetch_lazy fails, return NULL
14294 so that callers will be notified that an error occurred.
14295 (c_value_of_variable): Delay check of variable's validity
14296 until later. We actually want all structs and unions to have
14297 the value "{...}".
14298 Do not return "???" for variables which could not be evaluated.
14299 This error condition must be returned to the caller so that it
14300 can get the error condition from gdb.
14301 (cplus_name_of_child): Adjust index for vptr before figuring
14302 out the name of the child.
14303 (cplus_value_of_child): If a child's (real) parent is not valid,
14304 don't even bother trying to give a value for it. Just return
14305 an error. Change all instances in this function.
14306 (cplus_type_of_child): If our parent is one of the "fake"
14307 parents, we need to get at the type of the real parent, and
14308 derive the child's true type using this information.
14309
14310 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14311
14312 From 2002-01-09 John Marshall <johnm@falch.net>:
14313 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14314 sources.redhat.com, and tweak some related URLs which had
14315 suffered from linkrot.
14316
14317 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14318
14319 From Jeff law:
14320 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14321 structures passed in registers.
14322
14323 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14324
14325 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14326 white space which prevented compilation. Reported by DSK
14327 <dsk@student.unsw.edu.au>.
14328
14329 2002-01-11 Michael Snyder <msnyder@redhat.com>
14330
14331 * symfile.c (build_section_addr_info_from_section_tab):
14332 Use bfd access method instead of manipulating bfd directly.
14333 (syms_from_objfile): Ditto.
14334 (simple_overlay_update_1): Ditto.
14335 (simple_overlay_update): Ditto.
14336 (generic_load): Ditto.
14337 (overlay_unmapped_address): FIXME comment, bfd access methods.
14338 (sections_overlap): FIXME comment, bfd access methods.
14339 (pc_in_mapped_range): FIXME comment, bfd access methods.
14340 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14341 (section_is_mapped): FIXME comment, bfd access methods.
14342 (section_is_overlay): FIXME comment, bfd access methods.
14343
14344 * symfile.c (generic_load): Whitespace and long line cleanups.
14345 Remove duplicate variable, change several local variables to
14346 more appropriate data types.
14347 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14348
14349 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14350
14351 From Peter Schauer:
14352 * language.c (longest_local_hex_string_custom): Use phex_nz to
14353 convert NUM to a hex string.
14354
14355 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14356
14357 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14358 the function.
14359 Update Copyright year.
14360
14361 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14362
14363 * language.c (longest_raw_hex_string): Delete unused function.
14364
14365 2002-01-11 Petr Sorfa <petrs@caldera.com>
14366
14367 * MAINTAINERS (write-after-approval): Add myself.
14368 * dwarf2read.c (read_tag_string_type): Handling of
14369 DW_AT_byte_size.
14370 (read_tag_string_type): FORTRAN fix to prevent propagation of
14371 first string size.
14372 (set_cu_language): Handling of DW_LANG_Fortran95
14373
14374 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14375
14376 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14377 GETPID(inferior_ptid).
14378 (store_inferior_registers): Likewise.
14379
14380 2002-01-10 Jason Merrill <jason@redhat.com>
14381
14382 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14383 Fix DW_OP_minus.
14384
14385 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14386
14387 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14388 and bfd/elf32-sh-nbsd.c.
14389
14390 2002-01-10 Michael Snyder <msnyder@redhat.com>
14391
14392 * NEWS: Mention --pid and corefile/proc-id behavior change.
14393
14394 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14395 * gcore.c: Include cli/cli-decode.h instead of command.h.
14396
14397 * main.c (captured_main): Add new command line option "--pid".
14398 If the second command line argument (following the symbol-file)
14399 begins with a digit, try to attach to it before trying to open
14400 it as a corefile.
14401 (print_gdb_help): Document the "--pid" argument.
14402
14403 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14404
14405 * completer.c (command_completer): New function.
14406
14407 * completer.h <command_completer>: Add prototype.
14408
14409 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14410 completer for the "help" command.
14411
14412 2002-01-09 Jason Merrill <jason@redhat.com>
14413
14414 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14415
14416 2002-01-09 Michael Snyder <msnyder@redhat.com>
14417
14418 * i386-linux-nat.c (fill_fpxregset): Make global.
14419 (store_fpxregset): Ditto.
14420
14421 * gregset.h (gdb_fpxregset_t): Define.
14422 (supply_fpxregset): Prototype.
14423 (fill_fpxregset): Prototype.
14424
14425 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14426
14427 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14428
14429 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14430 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14431 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14432
14433 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14434
14435 * MAINTAINERS: Update target maintainer rules so that any
14436 Maintainer can approve a tested patch for a maintenance-only
14437 target.
14438
14439 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14440
14441 * MAINTAINERS (write-after-approval): Add myself.
14442
14443 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14444 IN_SIGTRAMP.
14445
14446 2002-01-08 Michael Snyder <msnyder@redhat.com>
14447
14448 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14449 real name of the executable, rather than the /proc name.
14450
14451 2002-01-03 Michael Snyder <msnyder@redhat.com>
14452
14453 Implement a "generate-core-file" command in gdb, save target state.
14454 * gcore.c: New file. Implement new command 'generate-core-file'.
14455 Save a corefile image of the current state of the inferior.
14456 * linux-proc.c: Add linux-specific code for saving corefiles.
14457 * target.h (struct target_ops): Add new target vectors for saving
14458 corefiles; to_find_memory_regions and to_make_corefile_notes.
14459 (target_find_memory_regions): New macro.
14460 (target_make_corefile_notes): New macro.
14461 * target.c (update_current_target): Inherit new target methods.
14462 (dummy_find_memory_regions): New place-holder method.
14463 (dummy_make_corefile_notes): New place-holder method.
14464 (init_dummy_target): Initialize new dummy target vectors.
14465 * exec.c (exec_set_find_memory_regions): New function.
14466 Allow the exec_ops vector for memory regions to be taken over.
14467 (exec_make_note_section): New function, target vector method.
14468 * defs.h (exec_set_find_memory_regions): Export prototype.
14469 * procfs.c (proc_find_memory_regions): New function, corefile method.
14470 (procfs_make_note_section): New function, corefile method.
14471 (init_procfs_ops): Set new target vector pointers.
14472 (find_memory_regions_callback): New function.
14473 (procfs_do_thread_registers): New function.
14474 (procfs_corefile_thread_callback): New function.
14475 * sol-thread.c (sol_find_memory_regions): New function.
14476 (sol_make_note_section): New function.
14477 (init_sol_thread_ops): Initialize new target vectors.
14478 * inftarg.c (inftarg_set_find_memory_regions): New function.
14479 Allow to_find_memory_regions vector to be taken over.
14480 (inftarg_set_make_corefile_notes): New function.
14481 Allow to_make_corefile_notes vector to be taken over.
14482 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14483 interface layer if not target_has_execution (may be a corefile).
14484 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14485 * config/sparc/sun4sol2.mh: Ditto.
14486 * config/alpha/alpha-linux.mh: Ditto.
14487 * config/arm/linux.mh: Ditto.
14488 * config/i386/x86-64linux.mh: Ditto.
14489 * config/ia64/linux.mh: Ditto.
14490 * config/m68k/linux.mh: Ditto.
14491 * config/mips/linux.mh: Ditto.
14492 * config/powerpc/linux.mh: Ditto.
14493 * config/sparc/linux.mh: Ditto.
14494
14495 2002-01-07 Michael Snyder <msnyder@redhat.com>
14496
14497 * arm-linux-nat.c: Remove references to regcache.c internal data
14498 (registers[] and register_valid[]).
14499
14500 2002-01-07 Michael Snyder <msnyder@redhat.com>
14501
14502 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14503 so that attaching to a pid will automatically read the process's
14504 symbol file and shlibs.
14505 * Makefile.in: Add rule for linux-proc.o.
14506 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14507 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14508 * config/arm/linux.mh: Ditto.
14509 * config/i386/linux.mh: Ditto.
14510 * config/i386/x86-64linux.mh: Ditto.
14511 * config/ia64/linux.mh: Ditto.
14512 * config/m68k/linux.mh: Ditto.
14513 * config/mips/linux.mh: Ditto.
14514 * config/powerpc/linux.mh: Ditto.
14515 * config/sparc/linux.mh: Ditto.
14516
14517 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14518
14519 * win32-nat.c: Add i386-tdep.h dependency.
14520
14521 2002-01-07 Michael Snyder <msnyder@redhat.com>
14522
14523 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14524 instead of bfd_get_arch_size. Don't bail out just because
14525 there's no exec_bfd.
14526
14527 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14528 * p-valprint.c (pascal_object_print_value): Ditto.
14529 * somread.c (som_symtab_read): Ditto.
14530 * symfile.c (simple_free_overlay_region_table): Ditto.
14531 * valops.c (value_assign): Ditto.
14532
14533 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14534 use tilde_expand and strerror for opening save-tracepoints file.
14535
14536 * thread-db.c (thread_db_new_objfile): Indendation fix.
14537
14538 * infptrace.c (GDB_MAX_ALLOCA): New define.
14539 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14540 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14541 can be overridden with whatever value is appropriate to the host).
14542 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14543 alloca to allocate potentially large buffer.
14544 * rs6000-nat.c (child_xfer_memory): Ditto.
14545 * symm-nat.c (child_xfer_memory): Ditto.
14546 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14547
14548 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14549
14550 From Nick Clifton <nickc@redhat.com>
14551 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14552
14553 2002-01-07 Michael Snyder <msnyder@redhat.com>
14554
14555 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14556 Don't use exec_bfd if it's NULL.
14557
14558 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14559
14560 * valops.c (value_arg_coerce): Fix formatting.
14561
14562 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14563
14564 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14565 * gnu-nat.c: Ditto.
14566
14567 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14568
14569 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14570 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14571 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14572 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14573 z8k-coff have not been multi-arched. Update z8k-coff build
14574 status.
14575
14576 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14577
14578 * MAINTAINERS: Mark a29k target as obsolete.
14579 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14580 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14581 comments.
14582 * NEWS: Note that a29k targets are obsolete.
14583 * a29k-tdep.c: Mark as obsolete.
14584 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14585 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14586 a29k-*-vxworks* targets as obsolete.
14587 * remote-adapt.c: Obsolete.
14588 * remote-eb.c: Obsolete.
14589 * remote-mm.c: Obsolete.
14590 * remote-udi.c: Obsolete.
14591 * config/a29k/a29k-udi.mt: Obsolete.
14592 * config/a29k/a29k.mt: Obsolete.
14593 * config/a29k/tm-a29k.h: Obsolete.
14594 * config/a29k/tm-vx29k.h: Obsolete.
14595 * config/a29k/vx29k.mt: Obsolete.
14596
14597 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14598
14599 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14600 with BFD_ENDIAN_BIG.
14601
14602 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14603
14604 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14605 * configure, config.in: Re-generate.
14606 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14607 * defs.h: Do not include <endian.h>.
14608
14609 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14610
14611 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14612 * config.in: Regenerate.
14613 * configure.in: Update copyright years.
14614 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14615 * configure: Regenerate.
14616 * i386bsd-nat.c: Update copyright years.
14617 (fill_gregset): Use regcache_collect.
14618 (fetch_inferior_registers): Only fetch integer registers
14619 if requested to do so. Add support for XMM registers
14620 using PT_GETXMMREGS.
14621 (store_inferior_registers): Only store integer registers
14622 if requested to do so. Add support for XMM registers
14623 using PT_SETXMMREGS.
14624 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14625 (store_inferior_registers): Remove.
14626 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14627 (fetch_elfcore_registers): New function.
14628 (i386nbsd_elfcore_fns): New.
14629 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14630 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14631 i386bsd-nat.o.
14632 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14633 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14634 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14635 * config/i386/tm-nbsd.h: Update copyright years.
14636 (HAVE_SSE_REGS): Define.
14637 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14638 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14639 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14640 (SIGCONTEXT_PC_OFFSET): Remove.
14641 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14642
14643 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14644
14645 * configure.tgt: Remove powerpc-*-macos* target.
14646 * config/m68k/xm-mpw.h: Delete file.
14647 * config/xm-mpw.h: Delete file.
14648 * ser-mac.c: Delete file.
14649 * mpw-make.sed: Delete file.
14650 * mpw-config.in: Delete file.
14651 * mac-xdep.c: Delete file.
14652 * mac-gdb.r: Delete file.
14653 * mac-defs.h: Delete file.
14654 * mac-nat.c: Delete file.
14655 * config/powerpc/macos.mh: Delete file.
14656 * config/powerpc/macos.mt: Delete file.
14657 * config/powerpc/nm-macos.h: Delete file.
14658 * config/powerpc/tm-macos.h: Delete file.
14659 * source.c (openp, open_source_file): Remove obsolete code.
14660 * top.c (gdb_readline): Ditto.
14661 * utils.c (query): Ditto.
14662 * event-top.c (display_gdb_prompt): Ditto.
14663 * Makefile.in (ser-mac.o): Delete obsolete target.
14664 * NEWS: Update.
14665
14666 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14667
14668 * defs.h (BIG_ENDIAN): Delete macro definition.
14669 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14670 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14671 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14672 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14673 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14674 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14675 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14676 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14677 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14678 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14679 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14680 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14681 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14682 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14683 * gdbarch.c: Re-generate.
14684
14685 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14686
14687 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14688 for core files.
14689
14690 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14691
14692 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14693
14694 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14695
14696 * value.h (value_ptr): Delete typedef.
14697
14698 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14699
14700 * i386nbsd-nat.c: Update copyright years.
14701 Include i386-tdep.h.
14702
14703 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14704
14705 * stabsread.c: Update copyright years.
14706
14707 From Debashis Mahata <debashis.mahata@wipro.com>:
14708 (read_struct_fields): Deal with Sun C compiler erroneous stab
14709 output for structs and unions.
14710 Fix PR gdb/269.
14711
14712 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14713
14714 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14715 prototype.
14716
14717 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14718
14719 * cp-abi.c: Fix whitespace.
14720 (baseclass_offset): New wrapper function.
14721 * cp-abi.h (baseclass_offset): Add prototype.
14722 (struct cp_abi_ops): Add baseclass_offset pointer.
14723
14724 * valops.c (vb_match): Move to...
14725 * gnu-v2-abi.c (vb_match): here.
14726 * valops.c (baseclass_offset): Move to...
14727 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14728
14729 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14730
14731 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14732 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14733 * hpacc-abi.c (init_hpacc_ops): Likewise.
14734
14735 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14736
14737 * valops.c (find_overload_match): Accept obj as a
14738 reference parameter. Update it before returning.
14739 * value.h (find_overload_match): Update prototype.
14740 * eval.c (evaluate_subexp_standard): Pass object to
14741 find_overload_match by reference.
14742
14743 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14744
14745 * valarith.c: Replace value_ptr with struct value pointer. Remove
14746 register attribute from value declarations.
14747 * valops.c: Ditto.
14748 * value.h: Ditto.
14749 * scm-lang.c (scm_lookup_name): Ditto.
14750
14751 2002-01-03 Michael Snyder <msnyder@redhat.com>
14752
14753 Abstract the functionality of iterating over mapped memory
14754 regions into a general purpose iterator function.
14755 * procfs.c (iterate_over_mappings): New function, general purpose
14756 iterator for memory sections.
14757 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14758 (solib_mappings_callback): New function, callback for above.
14759 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14760 (info_mappings_callback): New function, callback for above.
14761
14762 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14763
14764 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14765
14766 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14767 * i386-tdep.c: Include "elf-bfd.h".
14768 (process_note_abi_tag_sections): New function.
14769 (i386_gdbarch_init): Add code to recognize various OS/ABI
14770 combinations.
14771
14772 * maint.c (_initialize_maint_cmds): Add missing \ in
14773 string-literal.
14774
14775 For older changes see ChangeLog-2001
14776 \f
14777 Local Variables:
14778 mode: change-log
14779 left-margin: 8
14780 fill-column: 74
14781 version-control: never
14782 End: