Replace complain() with complaint().
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
23136709
KB
12002-12-16 Kevin Buettner <kevinb@redhat.com>
2
3 * buildsym.c (block_end_complaint, anon_block_end_complaint)
4 (innerblock_complaint, innerblock_anon_complaint)
5 (blockvector_complaint): Delete deprecated complaint structs.
6 (finish_block, make_blockvector, end_symtab): Replace calls
7 to complain() with calls to complaint().
8 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
9 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
10 (unexpected_type_complaint, bad_sclass_complaint)
11 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
12 Delete deprecated complaint structs.
13 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
14 Replace calls to complain() with calls to complaint().
15 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
16 (unknown_symtype_complaint, unknown_symchar_complaint)
17 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
18 (lbrac_mismatch_complaint, repeated_header_complaint)
19 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
20 Delete deprecated complaint structs.
21 (unknown_symtype_complaint, lbrac_mismatch_complaint)
22 (repeated_header_complaint)
23 (function_outside_compiliation_unit_complaint): New functions.
24 (add_old_header_file, find_corresponding_bincl_psymtab)
25 (set_namestring, find_stab_function_addr, read_dbx_symtab)
26 (process_one_symbol): Replace calls to complain() with, possibly
27 indirect, calls to complaint().
28 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
29 (unknown_attribute_form, unknown_attribute_length)
30 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
31 (const_ignored, botched_modified_type, op_deref2, op_deref4)
32 (basereg_not_handled, dup_user_type_allocation)
33 (dup_user_type_definition, missing_tag, bad_array_element_type)
34 (subscript_data_items, unhandled_array_subscript_format)
35 (unknown_array_subscript_format, not_row_major)
36 (missing_at_name): Delete deprecated complaint structs.
37 (bad_die_ref_complaint, unknown_attribute_form_complaint)
38 (dup_user_type_definition_complaint)
39 (bad_array_element_type_complaint): New functions.
40 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
41 (decode_subscript_data_item, dwarf_read_array_type)
42 (read_tag_string_type, read_subroutine_type, read_func_scope)
43 (locval, scan_partial_symbols, decode_modified_type)
44 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
45 (attribute_size): Replace calls to complain() with, possibly
46 indirect, calls to complaint().
47 * elfread.c (section_info_complaint, section_info_dup_complaint)
48 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
49 Delete deprecated complaint structs.
50 (elf_symtab_read, elfstab_offset_sections): Replace calls to
51 complain() with calls to complaint().
52 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
53 struct.
54 (stub_noname_complaint): New function.
55 (check_typedef, add_mangled_type): Replace calls to complain()
56 with calls to complaint().
57 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
58 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
59 (hpread_unhandled_type_complaint, hpread_struct_complaint)
60 (hpread_array_complaint, hpread_type_lookup_complaint)
61 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
62 (hpread_unhandled_common_complaint)
63 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
64 struct definitions and declarations.
65 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
66 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
67 Replace calls to complain() with, possibly indirect, calls to
68 complaint().
69 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
70 Likewise.
71 * mdebugread.c (bad_file_number_complaint, index_complaint)
72 (aux_index_complaint, block_index_complaint)
73 (unknown_ext_complaint, unknown_sym_complaint)
74 (unknown_st_complaint, block_overflow_complaint)
75 (basic_type_complaint, unknown_type_qual_complaint)
76 (array_index_type_complaint, bad_tag_guess_complaint)
77 (block_member_complaint, stEnd_complaint)
78 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
79 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
80 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
81 (bad_continued_complaint, bad_rfd_entry_complaint)
82 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
83 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
84 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
85 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
86 complaint structs.
87 (index_complaint, unknown_ext_complaint, basic_type_complaint)
88 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
89 (unexpected_type_code_complaint)
90 (function_outside_compilation_unit_complaint): New functions.
91 (parse_symbol, parse_type, upgrade_type, parse_procedure)
92 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
93 Replace calls to complain() with, possibly indirect calls to
94 complaint().
95 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
96 Delete deprecated complaint structs.
97 (lookup__objc_class, lookup_child_selector): Replace complain()
98 with complaint().
99 * remote-vx.c (cant_contact_target): Delete deprecated complaint
100 struct.
101 (vx_lookup_symbol): Replace complain() with complaint().
102 * stabsread.c (invalid_cpp_abbrev_complaint)
103 (invalid_cpp_type_complaint, member_fn_complaint)
104 (const_vol_complaint, error_type_complaint)
105 (invalid_member_complaint, range_type_base_complaint)
106 (reg_value_complaint, vtbl_notfound_complaint)
107 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
108 (unresolved_sym_chain_complaint, stabs_general_complaint)
109 (lrs_general_complaint, multiply_defined_struct): Delete
110 deprecated complaint structs.
111 (invalid_cpp_abbrev_complaint, ref_value_complaint)
112 (stabs_general_complaint, lrs_general_complaint)
113 (msg_unknown_complaint): New functions.
114 (dbx_lookup_type, read_cfront_baseclasses)
115 (read_cfront_member_functions, resolve_symbol_reference)
116 (define_symbol, resolve_live_range, add_live_range, read_type)
117 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
118 (read_one_struct_field, read_baseclasses, read_tilde_fields)
119 (read_cfront_static_fields, attach_fields_to_type)
120 (complain_about_struct_wipeout, read_range_type)
121 (common_block_start, common_block_end, cleanup_undefined_types)
122 (scan_file_globals): Replace complain() with complaint().
123 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
124 Delete deprecated complaint struct declarations.
125 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
126 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
127 (bf_not_found_complaint, ef_complaint, eb_complaint)
128 (function_outside_compilation_unit_complaint): New functions.
129 (record_include_begin, record_include_end, enter_line_range)
130 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
131 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
132 complain() with complaint().
133
1a14e234
AC
1342002-12-16 Andrew Cagney <ac131313@redhat.com>
135
136 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
137 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
138 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
139 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
140 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
141 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
142 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
143 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
144 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
145 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
146 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
147 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
148 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
149 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
150 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
151 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
152 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
153 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
154 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
155 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
156 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
157 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
158 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
159 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
160 * config/m88k/xm-dgux.h: Delete.
161 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
162 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
163 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
164 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
165 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
166 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
167 * ch-valprint.c: Delete.
168
04e68871
DJ
1692002-12-15 Daniel Jacobowitz <drow@mvista.com>
170
171 * infrun.c (handle_inferior_event): Rearrange code to resume if
172 no catchpoint triggers for an event.
173
deb3b17b
DJ
1742002-12-15 Daniel Jacobowitz <drow@mvista.com>
175
176 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
177 and TARGET_WAITKIND_VFORKED cases.
178
675bf4cb
DJ
1792002-12-15 Daniel Jacobowitz <drow@mvista.com>
180
181 * infrun.c (handle_inferior_event): Assume that catchpoints
182 are not affected by DECR_PC_AFTER_BREAK.
183
81e56179
DJ
1842002-12-15 Daniel Jacobowitz <drow@mvista.com>
185
186 * target.c (update_current_target): Don't inherit DONT_USE.
187 * target.h (struct target_ops): Remove DONT_USE.
188 (target_next): Remove macro.
189
a3edc55b
MK
1902002-12-15 Mark Kettenis <kettenis@gnu.org>
191
192 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
193
b508a996
RE
1942002-12-14 Richard Earnshaw <rearnsha@arm.com>
195
196 * arm-tdep.c (convert_from_extended): New argument to hold the
197 type of floating point result we want to convert to. Make input
198 argument const. Fix all callers.
199 (convert_to_extended): Similarly.
200 (arm_extract_return_value): Now takes a regcache argument. Change
201 code to use regcache accessor functions. Correctly extract
202 smaller-than-word results on big-endian machines.
203 (arm_store_return_value): Now takes a regcache argument. Change
204 code to use regcache accessor functions. Correctly zero/sign extend
205 smaller than word results before storing into r0.
206 (arm_gdbarch_init): Register new-style extract_return_value and
207 store_return_value functions.
208
3197744f
MS
2092002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
210
211 * thread-db.c (thread_from_lwp): Uniquify error msg.
212 (lwp_from_thread): Ditto.
213 (check_event): Ditto.
214 (find_new_threads_callback): Ditto.
215 (thread_db_pid_to_str): Ditto.
216
6baff1d2
AC
2172002-12-13 Andrew Cagney <ac131313@redhat.com>
218
219 * frame.h (get_frame_saved_regs): Declare.
220 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
221 pointer.
222 * frame.c (get_frame_saved_regs): New function.
223 (frame_saved_regs_zalloc): Return the allocated saved_regs.
224
b87efeee
AC
2252002-12-13 Andrew Cagney <ac131313@redhat.com>
226
227 * frame.c (deprecated_update_current_frame_pc_hack): New
228 function.
229 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
230 * infrun.c (normal_stop): Use said function instead of directly
231 modifying the frame's PC.
232
3de2dc4f
AO
2332002-12-13 Alexandre Oliva <aoliva@redhat.com>
234
235 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
236
fe29b929
KB
2372002-12-13 Kevin Buettner <kevinb@redhat.com>
238
239 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
240 config/mips/tm-irix6.h (NUM_REGS): Delete.
241 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
242 (temp_saved_regs): Declare as a pointer rather than an array.
243 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
244 that ``temp_saved_regs'' has storage allocated to it and that
245 it's the correct size.
246
c04e0a08
JJ
2472002-12-13 Jeff Johnston <jjohnstn@redhat.com>
248
249 * defs.h (init_last_source_visited): New prototype.
250 (add_path): Ditto.
251 * source.c (add_path): New function that adds to a specified path.
252 (mod_path): Change to call add_path.
253 (init_last_source_visited): New function to allow interfaces to
254 initialize static variable: last_source_visited. Part of fix
255 for PR gdb/741.
256 * Makefile.in: Add support for mi/mi-cmd-env.c.
257
c689142b
AC
2582002-12-13 Andrew Cagney <ac131313@redhat.com>
259
260 * frame.h (frame_id_unwind): Declare.
261 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
262 id_unwind_cache.
263 (frame_id_unwind_ftype): Declare.
264 * frame.c (frame_id_unwind): New function.
265 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
266 (create_new_frame, get_prev_frame): Pass id_unwind to
267 set_unwind_by_pc.
268 (frame_saved_regs_id_unwind): New function.
269 (frame_saved_regs_id_unwind): New function.
270 * dummy-frame.c (dummy_frame_id_unwind): New function.
271 (struct dummy_frame): Add field id.
272 (generic_push_dummy_frame): Initialize `id'.
273 * dummy-frame.h (dummy_frame_id_unwind): Declare.
274
18ea5ba4
AC
2752002-12-13 Andrew Cagney <ac131313@redhat.com>
276
277 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
278 pass that to set_momentary_breakpoint. Move comments to where they
279 belong.
280 * frame.h (set_current_frame): Delete declaration.
281 * frame.c (set_current_frame): Delete function.
282
2c517d0e
AC
2832002-12-13 Andrew Cagney <ac131313@redhat.com>
284
285 * frame.c (frame_extra_info_zalloc): New function.
286 * frame.h (frame_extra_info_zalloc): Declare.
287
516b1f28
JB
2882002-12-13 Joel Brobecker <brobecker@gnat.com>
289
290 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
291 in the previous prototype change to set_momentary_breakpoint.
292
fbb265fc
DJ
2932002-12-12 Daniel Jacobowitz <drow@mvista.com>
294
295 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
296 and saw_child_exec.
297 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
298 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
299 (stop_stepping): Remove outdated check for child vfork events.
300
4fd7f624
AC
3012002-12-12 Andrew Cagney <ac131313@redhat.com>
302
303 * GDB 5.3 released from gdb_5_3-branch.
304
4c9ba7e0
DJ
3052002-12-11 Daniel Jacobowitz <drow@mvista.com>
306
307 * corelow.c (init_core_ops): Delete references to to_require_attach
308 and to_require_detach.
309 * exec.c (init_exec_ops): Likewise.
310 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
311 hppa_require_detach directly.
312 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
313 * inftarg.c (child_detach): Remove.
314 (child_detach_from_process): Rename to child_detach, remove
315 after_fork argument.
316 (child_attach): Remove.
317 (child_attach_to_process): Rename to child_attach, remove after_fork
318 argument.
319 (init_child_ops): Delete references to to_require_attach
320 and to_require_detach.
321 * infttrace.c (hppa_require_attach): Update comment.
322 * target.c (cleanup_target, update_current_target)
323 (init_dummy_target, setup_target_debug): Delete references to
324 to_require_attach and to_require_detach.
325 (find_default_require_detach, find_default_require_attach)
326 (debug_to_require_attach, debug_to_require_detach): Remove
327 functions.
328 * target.h (struct target_ops): Remove to_require_attach
329 and to_require_detach.
330 (target_require_attach, target_require_detach): Delete macros.
331 (find_default_require_detach, find_default_require_attach): Delete
332 prototypes.
333 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
334
0394eb2a
AC
3352002-12-11 Andrew Cagney <ac131313@redhat.com>
336
337 * frame.c (get_frame_extra_info): New function.
338 * frame.h (get_frame_extra_info): Declare.
339
818dd999
AC
3402002-12-11 Andrew Cagney <ac131313@redhat.com>
341
342 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
343 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
344 with `struct frame_id'.
345 (set_longjmp_resume_breakpoint): Ditto.
346 * infrun.c (handle_inferior_event): Update.
347 * breakpoint.c (watch_command_1, until_break_command): Update.
348 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
349 (handle_inferior_event, step_over_function): Update.
350 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
351 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
352 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
353 * infcmd.c (finish_command, run_stack_dummy): Update.
354
4d3c2250
KB
3552002-12-11 Kevin Buettner <kevinb@redhat.com>
356
357 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
358 (dwarf2_non_const_array_bound_ignored)
359 (dwarf2_missing_line_number_section)
360 (dwarf2_statement_list_fits_in_line_number_section)
361 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
362 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
363 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
364 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
365 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
366 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
367 (dwarf2_missing_member_fn_type_complaint)
368 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
369 (dwarf2_const_value_length_mismatch)
370 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
371 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
372 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
373 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
374 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
375 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
376 complaints using deprecated struct..
377 (dwarf2_non_const_array_bound_ignored_complaint)
378 (dwarf2_complex_location_expr_complaint)
379 (dwarf2_unsupported_at_frame_base_complaint)
380 (dwarf2_const_value_length_mismatch_complaint)
381 (dwarf2_macros_too_long_complaint)
382 (dwarf2_macro_malformed_definition_complaint)
383 (dwarf2_invalid_attrib_class_complaint): New functions.
384 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
385 (read_structure_scope, read_array_type, read_common_block)
386 (read_tag_pointer_type, read_base_type, read_partial_die)
387 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
388 (new_symbol, dwarf2_const_value, read_type_die)
389 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
390 (parse_macro_definition, dwarf_decode_macros): Replace calls to
391 complain() with, possibly indirect, calls to complaint().
392
95486978
AC
3932002-12-11 Andrew Cagney <cagney@redhat.com>
394
395 * frame.c (deprecated_get_frame_saved_regs): Rename
396 get_frame_saved_regs.
397 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
398 * sparc-tdep.c: Update.
399 * hppa-tdep.c: Update.
400 * h8500-tdep.c: Update.
401
321432c0
KB
4022002-12-11 Kevin Buettner <kevinb@redhat.com>
403
404 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
405 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
406 ``char *'' for return and parameter types.
407 * gdbarch.h, gdbarch.c: Regenerate.
408 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
409 return type from ``char *'' to ``const char *''.
410 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
411 const.
412
5a4d6ff4
MK
4132002-12-11 Mark Kettenis <kettenis@gnu.org>
414
415 * i386-tdep.c: Include "dummy-frame.h".
416 (i386_frame_chain, i386_frame_saved_pc): Replace
417 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
418 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
419
a5afb99f
AC
4202002-12-10 Andrew Cagney <cagney@redhat.com>
421
422 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
423 Change to a function with predicate.
424 * gdbarch.h, gdbarch.c: Re-generate.
425 * frame.c (get_prev_frame): Update. Test
426 DEPRECATED_INIT_FRAME_PC_P.
427 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
428 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
429 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
430 * alpha-tdep.c (alpha_gdbarch_init): Update.
431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
432 * mips-tdep.c (mips_gdbarch_init): Update.
433 * i386-interix-tdep.c (i386_interix_init_abi): Update.
434 * arm-tdep.c: Update comments.
435 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
436 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
437 * frv-tdep.c (frv_gdbarch_init): Ditto.
438 * x86-64-tdep.c (x86_64_init_abi): Ditto.
439 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
440 * s390-tdep.c (s390_gdbarch_init): Ditto.
441 * v850-tdep.c (v850_gdbarch_init): Ditto.
442 * vax-tdep.c (vax_gdbarch_init): Ditto.
443 * sh-tdep.c (sh_gdbarch_init): Ditto.
444 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
446 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
448 * i386-tdep.c (i386_gdbarch_init): Ditto.
449 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
450 * cris-tdep.c (cris_gdbarch_init): Ditto.
451 * avr-tdep.c (avr_gdbarch_init): Ditto.
452 * arm-tdep.c (arm_gdbarch_init): Ditto.
453 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
454 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
455
6604731b
DJ
4562002-12-10 Daniel Jacobowitz <drow@mvista.com>
457
458 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
459 CHILD_FOLLOW_FORK.
460 * hppah-nat.c (saved_vfork_pid): Add.
461 (child_post_follow_vfork): Remove.
462 (child_follow_fork): New function.
463 (child_wait): Call detach_breakpoints after receiving the child vfork.
464 Call child_resume directly instead of going through resume ().
465 Make sure we have the exec before reporting the vfork.
466 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
467 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
468 (follow_fork): New function. Call target_follow_fork.
469 (follow_inferior_reset_breakpoints): New function broken out from
470 old follow_inferior_fork.
471 (resume): Remove hack to follow exec after vfork.
472 * inftarg.c (child_post_follow_vfork): Remove.
473 (child_follow_fork): New function.
474 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
475 * target.c (cleanup_target): Replace to_post_follow_vfork with
476 to_follow_fork.
477 (update_current_target): Likewise.
478 (setup_target_debug): Likewise.
479 (debug_to_post_follow_vfork): Remove.
480 (debug_to_follow_fork): New function.
481 * target.h (struct target_ops): Replace to_post_folow_vfork with
482 to_follow_fork.
483 (child_post_follow_vfork): Remove prototype.
484 (child_follow_fork): Add prototype.
485 (target_post_follow_vfork): Remove macro.
486 (target_follow_fork): Add macro.
487
7d2830a3
DJ
4882002-12-10 Daniel Jacobowitz <drow@mvista.com>
489
490 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
491 (child_post_follow_vfork): Cancel pending exec event if we follow
492 the parent.
493 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
494 events have been processed. Return a fake TARGET_WAITKIND_EXECD
495 event at the following wait call if necessary.
496 * infrun.c (follow_vfork): Don't follow_exec here.
497 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
498 case about HP/UX 10.20. Remove code pushed down to
499 hppah-nat.c:child_wait.
500 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
501 vfork_in_flight is set.
502
5032002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
504
505 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
506 for the parent's fork event.
507 * infrun.c (handle_inferior_event): Only expect one fork event.
508 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
509 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
510
50631d4f
AC
5112002-12-10 Andrew Cagney <ac131313@redhat.com>
512
bc124bd3
AC
513 * PROBLEMS: Delete reference to PR gdb/725.
514
50631d4f
AC
515 * MAINTAINERS (gdb.c++): Add David Carlton.
516
808013d1
DC
5172002-12-09 David Carlton <carlton@math.stanford.edu>
518
519 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
520 * cli/cli-cmds.c: Ditto.
521
31deffe5
AC
5222002-12-09 Andrew Cagney <cagney@redhat.com>
523
6cbda714
AC
524 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
525 function address in <>.
31deffe5
AC
526 * gdbarch.c: Re-generate.
527
2692ddb3
DC
5282002-12-09 David Carlton <carlton@math.stanford.edu>
529
530 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
531
f3c39e76
DC
5322002-12-09 David Carlton <carlton@math.stanford.edu>
533
534 * linespec.c (symtab_from_filename): New function.
535 (decode_line_1): Move code into symtab_from_filename.
536
1b84163e
KB
5372002-12-09 Kevin Buettner <kevinb@redhat.com>
538
539 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
540
bdd78e62
AC
5412002-12-07 Andrew Cagney <ac131313@redhat.com>
542
543 * f-valprint.c (info_common_command): Use get_frame_pc.
544 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
545 * ax-gdb.c (agent_command): Ditto.
546 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
547 (rs6000_pop_frame): Ditto.
548 (rs6000_frameless_function_invocation): Ditto.
549 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
550 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
551 * macroscope.c (default_macro_scope): Ditto.
552 * stack.c (print_frame_info_base): Ditto.
553 (print_frame, frame_info, print_frame_label_vars): Ditto.
554 (return_command, func_command, get_frame_language): Ditto.
555 * infcmd.c (finish_command): Ditto.
556 * dummy-frame.c (cached_find_dummy_frame): Ditto.
557 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
558 (break_at_finish_at_depth_command_1): Ditto.
559 (break_at_finish_command_1): Ditto.
560 (until_break_command, get_catch_sals): Ditto.
561 * blockframe.c (func_frame_chain_valid): Ditto.
562 (frameless_look_for_prologue): Ditto.
563 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
564
408400e7
AC
5652002-12-08 Andrew Cagney <ac131313@redhat.com>
566
567 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
568 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
569
97f46953
AC
5702002-12-08 Andrew Cagney <ac131313@redhat.com>
571
572 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
573 to pure functions.
574 * gdbarch.h, gdbarch.c: Re-generate.
575 * frame.c (get_prev_frame): Explictly assign prev's pc with value
576 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
577
578 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
579 declaration to a function returning a CORE_ADDR.
580 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
581 * arch-utils.c (init_frame_pc_noop): Return the PC value.
582 (init_frame_pc_default): Ditto.
583 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
584 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
585 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
586 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
587 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
588 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
589
590 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
591 to init_frame_pc_noop.
592 (i386_interix_init_frame_pc): Delete function.
593 * z8k-tdep.c (init_frame_pc): Delete function.
594 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
595 (INIT_FRAME_PC_FIRST): Ditto.
596 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
597 (INIT_FRAME_PC_FIRST): Ditto.
598 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
599 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
600 init_frame_pc_noop.
601 (INIT_FRAME_PC_FIRST): Convert to an expression.
602 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
603
8b36eed8
AC
6042002-12-08 Andrew Cagney <ac131313@redhat.com>
605
606 * blockframe.c: Use get_frame_base instead of directly accessing
607 the `struct frame_info' member frame.
608 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
609 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
610
aeeccc89
EZ
6112002-12-08 Elena Zannoni <ezannoni@redhat.com>
612
613 * Makefile.in (readline_h): Define.
614 (completer.o): Depend on readline_h.
615 (corelow.o): Ditto.
616 (event-top.o): Ditto.
617 (exec.o): Ditto.
618 (solib.o): Ditto.
619 (source.o): Ditto.
620 (symfile.o): Ditto.
621 (symmisc.o): Ditto.
622 (top.o): Ditto.
623 (tracepoint.o): Ditto.
624 (utils.o): Ditto.
625 (cli-dump.o): Ditto.
626 (tui-hooks.o): Ditto.
627 (tuiWin.o): Ditto.
628
38017ce8
EZ
6292002-12-08 Elena Zannoni <ezannoni@redhat.com>
630
631 More cleanup from import of readline 4.3.
632 * completer.h (complete_line, readline_line_completion_function):
633 Update prototypes.
634 (line_completion_function): Removed, not used outside of completer.c.
635 * completer.c (readline_line_completion_function,
636 complete_function, line_completion_function): Use const for first
637 parameter.
638 (line_completion_function): Make static.
639 (filename_completer): filename_completion_function is now called
640 rl_filename_completion_function
641 * corelow.c: Include <readline/readline.h>.
642 * exec.c: Ditto.
643 * solib.c: Ditto.
644 * source.c: Ditto.
645 * symfile.c: Ditto.
646 * symmisc.c: Ditto.
647 * top.c (init_main): No need to coerce
648 readline_line_completion_function anymore.
649 * cli/cli-dump.c: Include <readline/readline.h>.
650
75e3c1f9
AC
6512002-12-08 Andrew Cagney <ac131313@redhat.com>
652
653 * stack.c (frame_info): Use get_prev_frame.
654 * blockframe.c (frame_address_in_block): Ditto.
655 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
656 (rs6000_frameless_function_invocation): Ditto.
657 (rs6000_frame_saved_pc): Ditto.
658 (rs6000_frame_chain): Ditto.
659 * arch-utils.c (init_frame_pc_default): Ditto.
660
0d2b8049
AC
6612002-12-08 Andrew Cagney <ac131313@redhat.com>
662
663 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
664 Delete redundant definition.
665
9255ee31
EZ
6662002-12-08 Elena Zannoni <ezannoni@redhat.com>
667
668 Import of readline 4.3:
669 * cli/cli-cmds.c: Include readline/tilde.h.
670 * cli/cli-setshow.c: Ditto.
671 * defs.h: Don't declare tilde_expand anymore, since readline
672 exports it.
673
3442dad6 6742002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
675
676 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
677 -Werror on this file.
678
52f87c51
AC
6792002-12-07 Andrew Cagney <ac131313@redhat.com>
680
681 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
682 the format name.
683 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
684 * gdbarch.c: Regenerate.
685
2ca6c561
AC
6862002-12-06 Andrew Cagney <ac131313@redhat.com>
687
688 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
689 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
690 provide a default value.
691 * gdbarch.h, gdbarch.c: Regenerate.
692 * frame.c (get_prev_frame): Update. Check
693 DEPRECATED_INIT_FRAME_PC_FIRST_P.
694 * s390-tdep.c (s390_gdbarch_init): Update.
695 * mips-tdep.c (mips_gdbarch_init): Update.
696 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
697 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
698 * alpha-tdep.c (alpha_gdbarch_init): Update.
699
e162d11b
EZ
7002002-12-06 Elena Zannoni <ezannoni@redhat.com>
701
702 * ia64-linux-nat.c: Include gdb_string.h.
703 * alpha-nat.c: Ditto.
2b298b5d
EZ
704 * ppc-linux-nat.c: Ditto.
705 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
706 Update dependencies.
e162d11b 707
aa0cd9c1
AC
7082002-12-05 Andrew Cagney <ac131313@redhat.com>
709
710 * gdbthread.h: Include "frame.h".
711 (struct thread_info): Replace step_frame_address with
712 step_frame_id.
713 * inferior.h: Include "frame.h".
714 (step_frame_id): Replace external variable step_frame_address.
715 * gdbthread.h (save_infrun_state): Replace step_frame_address
716 parameter with step_frame_id parameter.
717 (load_infrun_state): Ditto.
718 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
719 * infcmd.c (step_frame_id, step_1, step_once): Update.
720 * thread.c (load_infrun_state, save_infrun_state): Update.
721 * infrun.c (clear_proceed_status, save_inferior_status): Update.
722 (handle_inferior_event, step_over_function): Update.
723 (normal_stop, context_switch, restore_inferior_status): Update.
724 (struct inferior_status): Replace step_frame_address with
725 step_frame_id.
726
a9a9bd0f
DC
7272002-12-05 David Carlton <carlton@math.stanford.edu>
728
729 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
730 DW_TAG_member as well as a declaration as being a C++ static data
731 member.
732 (read_structure_scope): Combine tests for DW_TAG_member and
733 DW_TAG_variable.
734
614b3b14
DC
7352002-12-05 David Carlton <carlton@math.stanford.edu>
736
737 * linespec.c (decode_compound): New function.
738 (decode_line_1): Move code into decode_compound.
739
e4051eeb
DC
7402002-12-05 David Carlton <carlton@math.stanford.edu>
741
742 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
743 argument.
744 (lookup_symbol_aux): Do the 'field_of_this' check before checking
745 the static block. See PR gdb/804.
746
f61e8913
DC
7472002-12-05 David Carlton <carlton@math.stanford.edu>
748
749 * symtab.c (lookup_symbol_aux_block): New function.
750 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
751
1e9f55d0
AC
7522002-12-05 Andrew Cagney <ac131313@redhat.com>
753
754 * gdbarch.sh: Dump the predicate function and macro values.
755 (read): Print error on standard error.
756 * gdbarch.c: Regenerate.
757
d1973055
KB
7582002-12-04 Kevin Buettner <kevinb@redhat.com>
759
760 * Makefile.in (mips_tdep_h): Define.
761 (mips-tdep.o): Add mips_tdep_h to dependency list.
762 * mips-tdep.h: New file.
763 * mips-tdep.c (mips-tdep.h): Include.
764 (enum mips_abi): Move to mips-tdep.h.
765 (mips_abi): New function.
766
f1253c7b
DC
7672002-12-04 David Carlton <carlton@math.stanford.edu>
768
769 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
770
406bc4de
DC
7712002-12-04 David Carlton <carlton@math.stanford.edu>
772
773 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
774 function.
775 (lookup_symbol_aux_minsyms): New function.
776
2a3750c5
JB
7772002-12-04 J. Brobecker <brobecker@gnat.com>
778
779 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
780
961d8652
JB
7812002-12-04 J. Brobecker <brobecker@gnat.com>
782
783 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
784 which is an obsolete macro name.
785
38c52d5a
DJ
7862002-12-04 Daniel Jacobowitz <drow@mvista.com>
787
788 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
789 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
790
d8ef46f5
DJ
7912002-12-03 H.J. Lu (hjl@gnu.org)
792
793 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
794 (create_breakpoints): Make sure the addr_string field is not
795 NULL.
796
02ae7771
AC
7972002-12-03 Andrew Cagney <ac131313@redhat.com>
798
799 * sparc-nat.c (fetch_inferior_registers)
800 (store_inferior_registers): Add comment on problem of LWP vs
801 threads.
802
803 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
804 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
805 (lin_lwp_store_registers): Remove.
806 (init_lin_lwp_ops): Use fetch_inferior_registers
807 and store_inferior_registers directly.
808 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
809 (store_inferior_registers): Likewise.
810 Fix PR gdb/725.
811
7a424e99
AC
8122002-12-03 Andrew Cagney <ac131313@redhat.com>
813
814 * frame.h (get_frame_id): Convert to a function.
815 (null_frame_id, frame_id_p): Declare.
816 (frame_id_eq, frame_id_inner): Declare.
817 (frame_id_build): New function.
818 * frame.c (get_frame_id): Update. Use null_frame_id.
819 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
820 frame_id_inner.
821 (null_frame_id, frame_id_p): Define.
822 (frame_id_eq, frame_id_inner): Define.
823 (frame_id_build): New function.
824 * varobj.c (varobj_create): Update.
825 (varobj_update): Update.
826 * valops.c (value_assign): Update.
827 (new_root_variable): Update.
828 * infrun.c (save_inferior_status): Update.
829 * breakpoint.c (watch_command_1): Update.
830
891c7f5f
JB
8312002-12-03 J. Brobecker <brobecker@gnat.com>
832
833 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
834 (SNAP2): Likewise.
835
144da3c1
AC
8362002-12-03 Andrew Cagney <cagney@redhat.com>
837
46248966
AC
838 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
839 patch.
840
144da3c1
AC
841 * PROBLEMS: Mention PR gdb/725.
842
03c6228e
AS
8432002-12-03 Andreas Schwab <schwab@suse.de>
844
845 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
846
36e53c63
AF
8472002-12-02 Adam Fedor <fedor@gnu.org>
848 Klee Dienes <kdienes@apple.com>
849
850 * objc-lang.c (objc_printstr): Add width arg to match
851 printstr prototype.
852 (compare_selectors): Add 'const' to arg types.
853 (compare_classes): Likewise.
854 (find_imps): Cast msym pointer to avoid compiler warning.
855 (print_object_command): Validate the address before
856 passing it to the print routine.
857 (find_objc_msgcall_submethod): Change function argument to
858 return an int.
859 * objc-lang.h: Add 'extern' to all function declarations.
860 (value_nsstring): Add declaration.
861
504d5c7e
JB
8622002-12-02 J. Brobecker <brobecker@gnat.com>
863
864 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
865 Fixes a build failure on HP/UX.
866
867 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
868 failure on HP/UX.
869 (hpread_has_name): Advance declaration to avoid a compilation warning.
870 (pst_syms_count): Add missing variable type. By change, the compiler
871 was defaulting to int, which seems a good choice. Fixes a compilation
872 warning.
873 (pst_syms_size): Likewise.
874
59623e27
JB
8752002-12-02 J. Brobecker <brobecker@gnat.com>
876
877 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
878 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
879 later to set the proper gdbarch methods depending on the osabi.
880 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
881
a09a320d
JB
8822002-12-02 J. Brobecker <brobecker@gnat.com>
883
884 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
885 * osabi.c (gdb_osabi_name): Add strings images for the two new
886 enum values.
887 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
888
8a81a99e
AC
8892002-12-02 Andrew Cagney <ac131313@redhat.com>
890
891 * MAINTAINERS (Java): Global maintainers are responible for Java.
892 (Past Maintainers): Mention both Anthony Green and Per Bothner as
893 part Java maintainers.
894
7af35dad
JB
8952002-12-02 J. Brobecker <brobecker@gnat.com>
896
897 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
898 Fixes a compilation failure on AiX.
899
f4ede9bc
JB
9002002-12-02 J. Brobecker <brobecker@gnat.com>
901
902 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
903 why aix-thread.o is not listed.
904
ae45cd16
AC
9052002-12-01 Andrew Cagney <ac131313@redhat.com>
906
907 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
908 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
909 * gdbarch.h, gdbarch.c: Re-generate.
910 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
911 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
912 * config/pa/tm-hppa.h, frame.h: Update.
913 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
914 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
915 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
916 * cris-tdep.c, alpha-tdep.c: Update.
917 * frame.c (set_unwind_by_pc, create_new_frame): Use either
918 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
919 (get_prev_frame): Ditto.
920
020cc13c
AC
9212002-11-30 Andrew Cagney <cagney@redhat.com>
922
923 * exec.c (xfer_memory): Replace boolean with int.
924 * p-exp.y: Use 0 instead of false.
925 * corelow.c (gdb_check_format): Change return type to int from
926 boolean.
927 * utils.c: Don't include <curses.h> or <term.h> first.
928
1d9b2aa8
SC
9292002-11-29 Stephane Carrez <stcarrez@nerim.fr>
930
931 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
932 (m68hc11_register_byte): Remove.
933 (m68hc11_gdbarch_init): Don't set the above.
934
a193e397
AC
9352002-11-29 Andrew Cagney <cagney@redhat.com>
936
937 * remote-mips.c (mips_initialize): Force a selected frame rebuild
938 by calling get_selected_frame.
939 * ocd.c (ocd_start_remote): Use get_selected frame instead of
940 set_current_frame, create_new_frame, select_frame and
941 get_current_frame.
942 * remote-e7000.c (e7000_start_remote): Ditto.
943 * remote-mips.c (common_open): Ditto
944 * remote-rdp.c (remote_rdp_open): Ditto.
945
b5fc49aa
AS
9462002-11-29 Andreas Schwab <schwab@suse.de>
947
948 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
949 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
950 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
951 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
952 read_memory_unsigned_integer instead of read_memory_integer when
953 dealing with addresses and instruction opcodes.
954 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
955 (m68k_linux_frame_saved_pc): Likewise.
956
6e7f8b9c
AC
9572002-11-29 Andrew Cagney <ac131313@redhat.com>
958
959 * stack.c (selected_frame, select_frame): Move from here ...
960 * frame.c (selected_frame, select_frame): ... to here. Include
961 "language.h".
962 * Makefile.in (frame.o): Update dependencies.
963 * frame.c (get_selected_frame): New function.
964 * frame.h (get_selected_frame): Declare.
965 (deprecated_selected_frame): Rename selected_frame.
966 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
967 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
968 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
969 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
970 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
971 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
972 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
973 * z8k-tdep.c, cli/cli-cmds.c: Update.
974
805e2818
AC
9752002-11-29 Andrew Cagney <ac131313@redhat.com>
976
977 * frame.h (get_selected_block): Add comments.
978
1058bca7
AC
9792002-11-28 Andrew Cagney <ac131313@redhat.com>
980
981 * frame.c (pc_notcurrent): New function.
982 (find_frame_sal): New function.
983 * frame.h (find_frame_sal): Declare.
984 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
985 * stack.c (print_frame_info_base): Use find_frame_sal instead of
986 find_pc_line.
1058bca7
AC
987 (frame_info): Ditto.
988 * ada-lang.c (find_printable_frame): Ditto.
989
d92419e5
JB
9902002-11-28 J. Brobecker <brobecker@gnat.com>
991
992 * configure.in: Check that the pthdebug library is recent enough
993 before enabling thread support on native AiX.
994 * configure: Regenerate.
995
996 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
997 from the list of object files as it is now appended by configure
998 if thread support is enabled.
999 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1000 if thread support is enabled.
1001
8c69fc49
AC
10022002-11-28 Andrew Cagney <cagney@redhat.com>
1003
1004 * stack.c (get_selected_block): In-line get_current_block.
1005 * frame.h (get_current_block): Delete declaration.
1006 * blockframe.c (get_current_block): Delete function.
1007
07555a72
AC
10082002-11-28 Andrew Cagney <ac131313@redhat.com>
1009
1010 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1011 USE_GENERIC_DUMMY_FRAMES.
1012 * gdbarch.h, gdbarch.c: Regenerate.
1013 * valops.c, frame.c: Update.
1014 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1015 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1016 * config/pa/tm-hppa.h, blockframe.c: Update.
1017 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1018 * m68k-tdep.c, alpha-tdep.c: Ditto.
1019
1020 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1021 * mips-tdep.c: Ditto.
1022
b99fa2d2
AC
10232002-11-27 Andrew Cagney <ac131313@redhat.com>
1024
1025 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1026 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1027 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1028 * gdbarch.c, gdbarch.h: Re-generate.
1029 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1030 (CALL_DUMMY_LOCATION): Delete macro definition.
1031 (PC_IN_CALL_DUMMY): Delete macro definitions.
1032
1033 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1034 default is already generic_pc_in_call_dummy.
1035 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1036 * v850-tdep.c (v850_gdbarch_init): Ditto.
1037 * sh-tdep.c (sh_gdbarch_init): Ditto.
1038 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1039 * mips-tdep.c (mips_gdbarch_init): Ditto.
1040 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1042 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1043 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1044 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1045 * avr-tdep.c (avr_gdbarch_init): Ditto.
1046
1047 * arm-tdep.c (arm_gdbarch_init): Do not set
1048 use_generic_dummy_frames, default is already 1.
1049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1050 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1051 * v850-tdep.c (v850_gdbarch_init): Ditto.
1052 * sh-tdep.c (sh_gdbarch_init): Ditto.
1053 * s390-tdep.c (s390_gdbarch_init): Ditto.
1054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1056 * mips-tdep.c (mips_gdbarch_init): Ditto.
1057 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1059 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1060 * i386-tdep.c (i386_gdbarch_init): Ditto.
1061 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1062 * frv-tdep.c (frv_gdbarch_init): Ditto.
1063 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1064 * cris-tdep.c (cris_gdbarch_init): Ditto.
1065 * avr-tdep.c (avr_gdbarch_init): Ditto.
1066
1067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1068 call_dummy_location, default is already AT_ENTRY_POINT.
1069 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1070 * v850-tdep.c (v850_gdbarch_init): Ditto.
1071 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1072 * sh-tdep.c (sh_gdbarch_init): Ditto.
1073 * s390-tdep.c (s390_gdbarch_init): Ditto.
1074 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1075 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1076 * mips-tdep.c (mips_gdbarch_init): Ditto.
1077 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1078 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1079 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1080 * i386-tdep.c (i386_gdbarch_init): Ditto.
1081 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1082 * frv-tdep.c (frv_gdbarch_init): Ditto.
1083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1084 * cris-tdep.c (cris_gdbarch_init): Ditto.
1085 * avr-tdep.c (avr_gdbarch_init): Ditto.
1086 * arm-tdep.c (arm_gdbarch_init): Ditto.
1087 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1088
abc0af47
AC
10892002-11-28 Andrew Cagney <cagney@redhat.com>
1090
1091 * frame.h: Update comments on set_current_frame, create_new_frame,
1092 flush_cached_frames, reinit_frame_cache, select_frame and
1093 selected_frame.
1094
ed5cedc5
AC
10952002-11-27 Andrew Cagney <cagney@redhat.com>
1096
1097 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1098 deprecated pc_in_call_dummy function.
1099 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1100 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1101 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1102 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1103 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1104
b2a1bd4f
MH
11052002-11-26 Martin M. Hunt <hunt@redhat.com>
1106
1107 * Makefile.in: Remove Tix dependencies.
1108 * acinclude.m4: Ditto.
1109 * aclocal.m4: Ditto.
1110 * configure.in: Ditto.
1111 * configure: Regenerated.
1112
f09cffaa
AC
11132002-11-26 Andrew Cagney <ac131313@redhat.com>
1114
1115 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1116 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1117 * gdbarch.c: Re-generate.
1118
e92b0cc9
AC
11192002-11-26 Andrew Cagney <ac131313@redhat.com>
1120
1121 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1122 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1123 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1124 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1125 pc_in_call_dummy_at_entry_point.
1126 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1127 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1128 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1129 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1130 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1131 pc_in_call_dummy_on_stack.
1132 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1133 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1134 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1135 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1136 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1137
b4b88177
AC
11382002-11-26 Andrew Cagney <ac131313@redhat.com>
1139
1140 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1141 pc_in_call_dummy_before_text_end
1142 (deprecated_pc_in_call_dummy_after_text_end): Rename
1143 pc_in_call_dummy_after_text_end.
1144 (deprecated_pc_in_call_dummy_on_stack): Rename
1145 pc_in_call_dummy_on_stack.
1146 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1147 pc_in_call_dummy_at_entry_point.
1148 * m68k-tdep.c (m68k_gdbarch_init): Update.
1149 * s390-tdep.c (s390_gdbarch_init): Update.
1150 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1151 * vax-tdep.c (vax_gdbarch_init): Update.
1152 * sparc-tdep.c (sparc_gdbarch_init): Update.
1153 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1154 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1155 * i386-tdep.c (i386_gdbarch_init): Update.
1156 * frv-tdep.c (frv_gdbarch_init): Update.
1157 * cris-tdep.c (cris_gdbarch_init): Update.
1158 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1159 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1160 (deprecated_pc_in_call_dummy_after_text_end)
1161 (deprecated_pc_in_call_dummy_on_stack)
1162 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1163 * alpha-tdep.c (alpha_gdbarch_init): Update.
1164
eb784848
DJ
11652002-11-25 Daniel Jacobowitz <drow@mvista.com>
1166
1167 * acconfig.h (HAVE_PREAD64): Add.
1168 * configure.in: Check for pread64.
1169 * config.in: Regenerated.
1170 * configure: Regenerated.
1171 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1172 * linux-proc.c (linux_proc_xfer_memory): New function.
1173 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1174
933c6fe4
DC
11752002-11-25 David Carlton <carlton@math.stanford.edu>
1176
1177 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1178 pdi's with no name.
1179
158a8022
AC
11802002-11-25 Andrew Cagney <ac131313@redhat.com>
1181
1182 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1183 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1184
481d0f41
JB
11852002-11-25 Jim Blandy <jimb@redhat.com>
1186
e8289572
JB
1187 * symfile.c (init_objfile_sect_indices): New function.
1188 (default_symfile_offsets): Move the section-index-initializing
1189 stuff into init_objfile_sect_indices, and call that.
1190
b29c9944
JB
1191 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1192 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1193
13de58df
JB
1194 * symfile.c (syms_from_objfile): Adjust indentation.
1195
481d0f41
JB
1196 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1197 || info_verbose isn't true.
1198
7d6a26a7
AC
11992002-11-24 Andrew Cagney <ac131313@redhat.com>
1200
1201 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1202 default to get_frame_base.
1203 * gdbarch.h, gdbarch.c: Regenerate.
1204 * arch-utils.c (default_frame_address): Delete function.
1205 * arch-utils.h (default_frame_address): Delete declaration
1206
6abe1021
PM
12072002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1208
1209 * varobj.c (find_frame_addr_in_frame_chain):
1210 Use get_frame_base instead of FRAME_FP,
1211 obvious fix.
1212
c193f6ac
AC
12132002-11-19 Andrew Cagney <ac131313@redhat.com>
1214
1215 * frame.h (FRAME_FP): Delete macro.
1216 (get_frame_base): New function declaration.
1217 * frame.c (get_frame_base): New function.
1218 (get_frame_id): Use ->frame.
1219 (frame_find_by_id): Rewrite to use get_frame_id.
1220 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1221 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1222 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1223 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1224 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1225 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1226 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1227
e5d2af14
AC
12282002-11-24 Andrew Cagney <ac131313@redhat.com>
1229
1230 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1231
931d12c6
AC
12322002-11-24 Andrew Cagney <ac131313@redhat.com>
1233
1234 * frame.c (set_unwind_by_pc): Revert change below, use
1235 PC_IN_CALL_DUMMY.
1236 (get_prev_frame): Ditto.
1237
5e0f933e
AC
12382002-11-24 Andrew Cagney <ac131313@redhat.com>
1239
1240 * dummy-frame.c (pc_in_dummy_frame): New function.
1241 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1242 (find_dummy_frame): Update comment.
1243 (generic_pop_current_frame): Use get_frame_type.
1244 * dummy-frame.h (pc_in_dummy_frame): Declare.
1245 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1246 (create_new_frame): Use pc_in_dummy_frame.
1247 (get_prev_frame): Use pc_in_dummy_frame.
1248 (frame_saved_regs_register_unwind): Use get_prev_frame.
1249 (deprecated_generic_get_saved_register): Use get_prev_frame.
1250
7d8547c9
AC
12512002-11-23 Andrew Cagney <ac131313@redhat.com>
1252
1253 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1254 from here ...
1255 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1256 (varobj_create): Note that frame ID should be used.
1257 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1258
0225421b
AC
12592002-11-23 Andrew Cagney <ac131313@redhat.com>
1260
1261 * breakpoint.c: Include "gdb_assert.h".
1262 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1263 not being used.
1264 * Makefile.in (breakpoint.o): Update dependencies.
1265 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1266 deprecated_frame_in_dummy.
1267 * stack.c (print_frame_info_base): Ditto.
1268 (frame_info): Ditto.
1269 (print_frame_info_base): Ditto. Delete dead code.
1270
32eeb91a
AS
12712002-11-23 Andreas Schwab <schwab@suse.de>
1272
1273 * Makefile.in (m68k_tdep_h): Define.
1274 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1275 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1276 * m68k-tdep.c: Move register number enum ...
1277 * m68k-tdep.h: ... to this new file and rename the constants from
1278 E_* to M68K_*. All uses changed.
1279 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1280 * abug-rom.c: Include "m68k-tdep.h". Use
1281 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1282 * cpu32bug-rom.c: Likewise.
1283 * dbug-rom.c: Likewise.
1284 * m68k-tdep.c: Likewise.
1285 * m68klinux-nat.c: Likewise.
1286 * remote-est.c: Likewise.
1287 * rom68k-rom.c: Likewise.
1288 * config/m68k/tm-linux.h: Likewise.
1289
9648bac8
AC
12902002-11-23 Andrew Cagney <ac131313@redhat.com>
1291
1292 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1293 dummy frame initialization code.
1294 * mips-tdep.c (mips_gdbarch_init): Ditto.
1295
91a175b3
CF
12962002-11-22 Christopher Faylor <cgf@redhat.com>
1297
1298 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1299 attach will hang.
1300
f4ded5b1
AC
13012002-11-22 Andrew Cagney <ac131313@redhat.com>
1302
1303 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1304 to default_frame_address.
1305 * gdbarch.h, gdbarch.c: Re-generate.
1306
1307 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1308 or frame_locals_address to default_frame_address.
1309 * m68k-tdep.c (m68k_gdbarch_init): Update.
1310 * i386-tdep.c (i386_gdbarch_init): Update.
1311 * frv-tdep.c (frv_gdbarch_init): Update.
1312 * sh-tdep.c (sh_gdbarch_init): Update.
1313 * v850-tdep.c (v850_gdbarch_init): Update.
1314 * sparc-tdep.c (sparc_gdbarch_init): Update.
1315 * mips-tdep.c (mips_gdbarch_init): Update.
1316 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1317 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1319
1320 * cris-tdep.c (cris_frame_args_address): Delete function.
1321 (cris_frame_locals_address): Delete function.
1322 (cris_gdbarch_init): Do not set frame_args_address or
1323 frame_locals_address.
1324
f7c1e0f3
MS
13252002-11-22 Michael Snyder <msnyder@redhat.com>
1326
1327 * thread-db.c (thread_db_load): Tell the user what's going on
1328 if dlopen fails on libthread_db.
1329
03dac896
AS
13302002-11-23 Andreas Schwab <schwab@suse.de>
1331
1332 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1333 invariant return values.
1334
7a67d0fe
AS
13352002-11-22 Andreas Schwab <schwab@suse.de>
1336
1337 * valops.c (value_slice): Move declaration of `offset' to avoid
1338 warning.
1339
5633f842
CF
13402002-11-22 Christopher Faylor <cgf@redhat.com>
1341
1342 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1343 (struct so_stuff): Add end_addr field.
1344 (register_loaded_dll): Calculate and store end address of loaded dll.
1345 (solib_address): New function.
1346 (child_solib_loaded_library_pathname): Pass carefully constructed
1347 section info to safe_symbol_file_add rather than ignoring it.
1348 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1349 DLL is loaded.
1350 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1351 (child_create_inferior): Fix a compiler warning.
1352 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1353 (solib_address): Declare new function.
1354
d85fe7f7
AS
13552002-11-22 Andreas Schwab <schwab@suse.de>
1356
1357 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1358 and FPS registers.
1359
8308e54c
DJ
13602002-11-21 Daniel Jacobowitz <drow@mvista.com>
1361
1362 * maint.c (_initialize_maint_cmds): Fix typo. From
1363 Francesco Potorti` <pot@gnu.org>.
1364
8997bd5e
AC
13652002-11-21 Andrew Cagney <cagney@redhat.com>
1366
1367 * mips-tdep.c (mips_dump_tdep): Delete references to
1368 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1369 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1370 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1371 * printcmd.c (build_address_symbolic): Delete calls to
1372 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1373 (address_info): Ditto.
1374 Fix PR gdb/773.
1375
4e87b832
KD
13762002-11-19 Klee Dienes <kdienes@apple.com>
1377 Adam Fedor <fedor@gnu.org>
1378
1379 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1380 the ability to explicitly specify the quote characters and word
1381 break characters; if NULL is specified for either, use the old
1382 behavior of using the characters used by the completer.
1383 (skip_chars): New function. Convenience wrapper around
1384 skip_quoted_chars to provide the original skip_chars behavior.
1385 * completer.h (skip_quoted_chars): Add prototype.
1386
9ba8d803
AC
13872002-11-19 Andrew Cagney <ac131313@redhat.com>
1388
1389 Problems reported by Paul Eggert.
1390 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1391
0a595803
AS
13922002-11-19 Andreas Schwab <schwab@suse.de>
1393
1394 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1395 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1396 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1397 (m68k_linux_frame_saved_pc): Move to ...
1398 * m68klinux-tdep.c: ... here. New file.
1399 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1400 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1401
e8afa4d7
AF
14022002-11-19 Adam Fedor <fedor@gnu.org>
1403
1404 * objc-exp.y: Revert to old skip_quoted usage.
1405
a76c9d72
AF
14062002-11-19 Adam Fedor <fedor@gnu.org>
1407
1408 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1409 (objc_lang_h): Define.
1410 (YYFILES): Add objc-exp.tab.c.
1411 (local-maintainer-clean): Remove objc-exp.tab.c.
1412 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1413
fd0e9d45
PM
14142002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1415
1416 * p-exp.y (typecast rule): Add automatic dereference of
1417 pascal classes if needed.
1418 (THIS): Set current_type.
1419 Automatically dereference pascal classes.
1420 (typebase rule): Add ^typebase recognition.
1421
82eeeb94
AF
14222002-11-18 Adam Fedor <fedor@gnu.org>
1423
1424 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1425 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1426 (op_name): Handle OP_OBJC_SELF.
1427 * Makefile.in (expprint.o): Add additional depends.
1428
646df18d
AF
14292002-11-18 Adam Fedor <fedor@gnu.org>
1430
1431 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1432 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1433 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1434 * objc-exp.y: Likewise.
1435
379b85df
AF
14362002-11-18 Adam Fedor <fedor@gnu.org>
1437
1438 * gdb/parser-defs.h: (struct objc_class_str): New structure
1439 for parsing ObjC classes.
1440
85cf597a
AC
14412002-11-18 Andrew Cagney <ac131313@redhat.com>
1442
1443 * stack.c (frame_relative_level): Copy function from here ...
1444 * frame.c (frame_relative_level): ...to here.
1445
5a203e44
AC
14462002-11-18 Andrew Cagney <ac131313@redhat.com>
1447
1448 * frame.h (enum frame_type): Define.
1449 (get_frame_type): Declare.
1450 (struct frame_info): Add field `type'. Delete field
1451 signal_handler_caller.
1452 (deprecated_set_frame_signal_handler_caller): Declare.
1453 * frame.c (get_frame_type): New function.
1454 (deprecated_set_frame_type): New function.
1455 (create_new_frame): Set the frame's type.
1456 (get_prev_frame): Similar.
1457 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1458 * s390-tdep.c: Ditto.
1459 * m68klinux-nat.c: Ditto.
1460 * ns32k-tdep.c: Ditto.
1461 * x86-64-linux-tdep.c: Ditto.
1462 * vax-tdep.c: Ditto.
1463 * rs6000-tdep.c: Ditto.
1464 * ppc-linux-tdep.c: Ditto.
1465 * i386-interix-tdep.c: Ditto.
1466 * mips-tdep.c: Ditto.
1467 * m68k-tdep.c: Ditto.
1468 * hppa-tdep.c: Ditto.
1469 * ia64-tdep.c: Ditto.
1470 * cris-tdep.c: Ditto.
1471 * arm-tdep.c: Ditto.
1472 * alpha-tdep.c: Ditto.
1473 * i386-tdep.c: Ditto.
1474 * stack.c: Ditto.
1475 * ada-lang.c: Ditto.
1476 * blockframe.c: Update.
1477 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1478 deprecated_set_frame_type instead of signal_handler_caller.
1479 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1480 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1481 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1482
bf4ae8b2
KD
14832002-11-18 Klee Dienes <kdienes@apple.com>
1484
1485 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1486
a672ef13
KD
14872002-11-18 Klee Dienes <kdienes@apple.com>
1488
1489 * buildsym.c (pop_context): Add comment.
1490
0c5e171a
KD
14912002-11-18 Klee Dienes <kdienes@apple.com>
1492
1493 * buildsym.h (pop_context): Convert to function, defined in
1494 buildsym.c.
1495 * buildsym.c: Include gdb_assert.h.
1496 (pop_context): Implement as C function. Add check for stack
1497 underflow.
1498 * dbxread.c (process_one_symbol): Complain and stop processing
1499 that symbol if we are already at the top of the context stack for
1500 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1501 when processing N_RBRAC.
1502
8a1f4c4c
DJ
15032002-11-16 Daniel Jacobowitz <drow@mvista.com>
1504
1505 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1506 define.
1507 (struct target_waitstatus): Add opaque definition.
1508 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1509 * exec.c (init_exec_ops): Likewise.
1510 * fork-child.c (clone_and_follow_inferior): Remove.
1511 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1512 * inferior.h (clone_and_follow_inferior): Remove prototype.
1513 * infrun.c (follow_fork_mode_both): Remove.
1514 (follow_fork_mode_kind_names): Remove commented out "both".
1515 (follow_inferior_fork): Remove follow_fork_mode_both support.
1516 * inftarg.c (child_clone_and_follow_inferior): Remove.
1517 (child_post_follow_inferior_by_clone): Remove.
1518 (init_child_ops): Don't set to_clone_and_follow_inferior
1519 or to_post_follow_inferior_by_clone.
1520 * target.c (default_clone_and_follow_inferior): Remove.
1521 (cleanup_target): Don't set to_clone_and_follow_inferior
1522 or to_post_follow_inferior_by_clone.
1523 (find_default_clone_and_follow_inferior): Remove.
1524 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1525 (debug_to_clone_and_follow_inferior): Remove.
1526 (debug_to_post_follow_inferior_by_clone): Remove.
1527 (setup_target_debug): Don't set to_clone_and_follow_inferior
1528 or to_post_follow_inferior_by_clone.
1529 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1530 and to_post_follow_inferior_by_clone.
1531 (child_clone_and_follow_inferior): Remove prototype.
1532 (child_post_follow_inferior_by_clone): Remove prototype.
1533 (target_clone_and_follow_inferior): Remove macro.
1534 (target_post_follow_inferior_by_clone): Remove macro.
1535 (find_default_clone_and_follow_inferior): Remove prototype.
1536
47932f85
DJ
15372002-11-16 Daniel Jacobowitz <drow@mvista.com>
1538
1539 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1540 inferior_has_vforked, and inferior_has_execd instead of
1541 target_has_forked, target_has_vforked, and target_has_execd.
1542 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1543 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1544 (CHILD_WAIT): Define.
1545 (child_wait): Add prototype.
1546 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1547 Add prototype.
1548 (hpux_has_vforked): Likewise, from child_has_vforked.
1549 (hpux_has_execd): Likewise, from child_has_execd.
1550 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1551 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1552 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1553 and hpux_has_syscall_event instead of the target hooks.
1554 * infrun.c (inferior_has_forked, inferior_has_vforked)
1555 (inferior_has_execd): New functions.
1556 * inftarg.c (not_same_real_pid): Remove.
1557 (child_wait): Remove references to not_same_real_pid,
1558 target_has_forked, target_has_vforked, target_has_execd,
1559 and target_has_syscall_event.
1560 (child_has_forked, child_has_vforked, child_has_execd)
1561 (child_has_syscall_event): Remove.
1562 (init_child_ops): Remove references to child_has_forked,
1563 child_has_vforked, child_has_execd, and child_has_syscall_event.
1564 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1565 (hpux_has_vforked): Likewise, from child_has_vforked.
1566 (hpux_has_execd): Likewise, from child_has_execd.
1567 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1568 * target.c (cleanup_target): Remove references to
1569 to_has_forked, to_has_vforked, to_has_execd, and
1570 to_has_syscall_event.
1571 (update_current_target): Likewise.
1572 (setup_target_debug): Likewise.
1573 (debug_to_has_forked): Remove.
1574 (debug_to_has_vforked): Remove.
1575 (debug_to_has_execd): Remove.
1576 (debug_to_has_syscall_event): Remove.
1577 * target.h (struct target_ops): Remove to_has_forked.
1578 to_has_vforked, to_has_execd, and to_has_syscall_event.
1579 (child_has_forked, child_has_vforked, child_has_execd)
1580 (child_has_syscall_event): Remove prototypes.
1581 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1582 prototypes.
1583 (target_has_forked, target_has_vforked, target_has_execd)
1584 (target_has_syscall_event): Remove macros.
1585
4088142a
DJ
15862002-11-16 Daniel Jacobowitz <drow@mvista.com>
1587
1588 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1589 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1590 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1591 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1592 * target.c (cleanup_target): Remove reference to
1593 to_can_follow_vfork_prior_to_exec.
1594 (update_current_target): Likewise.
1595 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1596 (setup_target_debug): Remove reference to
1597 to_can_follow_vfork_prior_to_exec.
1598 * target.h (struct target_ops): Remove
1599 to_can_follow_vfork_prior_to_exec.
1600 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1601 (target_can_follow_vfork_prior_to_exec): Remove definition.
1602 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1603 define.
1604 * infrun.c (follow_vfork_when_exec): Remove.
1605 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1606 (follow_exec): Likewise.
1607 (handle_inferior_event): Likewise.
1608 (keep_going): Likewise.
1609
18cde8d5
AC
16102002-11-15 Andrew Cagney <cagney@redhat.com>
1611
1612 * frame.c (generic_unwind_get_saved_register): Make static.
1613 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1614 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1615 defaults to generic_unwind_get_saved_register.
1616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1617 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1618 * frv-tdep.c (frv_gdbarch_init): Ditto.
1619 * i386-tdep.c (i386_gdbarch_init): Ditto.
1620 * s390-tdep.c (s390_gdbarch_init): Ditto.
1621 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1622 * v850-tdep.c (v850_gdbarch_init): Ditto.
1623 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1624 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1625 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1626
a6b063af
AC
16272002-11-15 Andrew Cagney <cagney@redhat.com>
1628
1629 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1630 i386-tdep.c.
1631
f407986f
AC
16322002-11-15 Andrew Cagney <cagney@redhat.com>
1633
1634 * frame.h (sigtramp_saved_pc): Delete declaration.
1635 * blockframe.c (sigtramp_saved_pc): Delete function.
1636 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1637 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1638 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1639 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1640
f18c5a73
AC
16412002-11-15 Andrew Cagney <ac131313@redhat.com>
1642
1643 * frame.c (frame_pc_unwind): New function.
1644 (frame_saved_regs_pc_unwind): New function.
1645 (frame_register_unwind): Pass unwind_cache instead of
1646 register_unwind_cache.
1647 (set_unwind_by_pc): Add unwind_pc parameter, set.
1648 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1649 (get_prev_frame): Ditto.
1650 * frame.h (frame_pc_unwind_ftype): Declare.
1651 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1652 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1653 (frame_pc_unwind): Declare.
1654 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1655 (struct dummy_frame): Add comment mentioning that values are for
1656 previous frame.
1657 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1658 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1659 (generic_file_frame_chain_valid): Ditto.
1660 * stack.c (frame_info): Ditto.
1661
d9285969 16622002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1663
1664 * linespec.c (locate_first_half): New function.
1665 (decode_line_1): Move code into locate_first_half.
1666
d741b867
AC
16672002-11-15 Andrew Cagney <ac131313@redhat.com>
1668
1669 * complaints.h: Add comment explaining how to eliminate a
1670 deprecated_complain call.
24382c5c 1671 * complaints.h: Fix spelling errors.
d741b867 1672
82d03c99
DC
16732002-11-15 David Carlton <carlton@math.stanford.edu>
1674
1675 * printcmd.c: Remove #include "disasm.h".
1676
c97eb5d9
AC
16772002-11-14 Andrew Cagney <ac131313@redhat.com>
1678
1679 * frame.h: Move the most relevant interface functions to the start
1680 of the file.
1681
524d7c18
AC
16822002-11-14 Andrew Cagney <ac131313@redhat.com>
1683
1684 * regcache.h (deprecated_registers): Rename registers.
1685 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1686 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1687 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1688 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1689 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1690 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1691 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1692 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1693 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1694 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1695 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1696 * v850ice.c: Update.
1697
6411e720
AC
1698Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1699
1700 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1701 NULL buffer.
1702
73937e03
AC
17032002-11-13 Andrew Cagney <cagney@redhat.com>
1704
1705 * regcache.h (deprecated_read_register_bytes): Rename
1706 read_register_bytes.
1707 (deprecated_write_register_bytes): Rename write_register_bytes.
1708 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1709 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1710 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1711 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1712 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1713 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1714 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1715 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1716 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1717 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1718 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1719 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1720 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1721 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1722
fb0cd46e
JB
17232002-11-13 Jim Blandy <jimb@redhat.com>
1724
1725 * findvar.c (read_var_value): Doc fix.
1726
2d28509a
AC
17272002-11-13 Andrew Cagney <cagney@redhat.com>
1728
1729 * regcache.c (struct regcache): Replace passthough_p with
1730 readonly_p.
1731 (regcache_xmalloc): Initialize readonly_p.
1732 (build_regcache): Initialize readonly_p.
1733 (regcache_save): New function.
1734 (regcache_restore): New function.
1735 (regcache_cpy): Re-implement using regcache_save and
1736 regcache_restore.
1737 (regcache_raw_read): Update.
1738 (regcache_cooked_read): When a read-only cache, checked for cached
1739 pseudo register values.
1740 (regcache_raw_write): Assert that the cache is not read-only.
1741 Remove code handling a non-passthrough cache.
1742 * regcache.h (regcache_save): Declare.
1743 (regcache_restore): Declare.
1744
067df2e5
AC
17452002-11-13 Andrew Cagney <cagney@redhat.com>
1746
1747 * regcache.c (struct regcache_descr): Add fields
1748 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1749 (init_legacy_regcache_descr): Compute the size of a cooked
1750 register cache and then assign that to sizeof_raw_registers. Set
1751 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1752 (init_legacy_regcache_descr): Ditto.
1753
51b1fe4e
AC
17542002-11-13 Andrew Cagney <cagney@redhat.com>
1755
1756 * regcache.c (register_buffer): Move to near start of file, update
1757 description.
1758 (regcache_raw_read): Use.
1759 (regcache_raw_write): Use.
1760 (struct regcache): Rename raw_registers to registers and
1761 raw_register_valid_p to register_valid_p.
1762 (regcache_xmalloc): Update.
1763 (regcache_xfree): Update.
1764 (register_buffer): Update.
1765 (regcache_cpy): Update.
1766 (regcache_cpy_no_passthrough): Update.
1767 (regcache_valid_p): Update.
1768 (deprecated_grub_regcache_for_registers): Update.
1769 (deprecated_grub_regcache_for_register_valid): Update.
1770 (set_register_cached): Update.
1771 (regcache_raw_write): Update.
1772
80b4c677
PM
17732002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1774
1775 * p-exp.y (name_not_typename): Use copy_name to
1776 set current_type variable for fields of THIS.
1777
0f3fafde
DJ
17782002-11-12 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1781 * monitor.c (init_base_monitor_ops): Likewise.
1782 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1783 * remote-array.c (init_array_ops): Likewise.
1784 * remote-e7000.c (init_e7000_ops): Likewise.
1785 * remote-es.c (init_es1800_ops): Likewise.
1786 (init_es1800_child_ops): Likewise.
1787 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1788 * remote-sim.c (init_gdbsim_ops): Likewise.
1789 * remote-st.c (init_st2000_ops): Likewise.
1790 * sol-thread.c (init_sol_core_ops): Likewise.
1791 (init_sol_thread_ops): Likewise.
1792 * v850ice.c (init_850ice_ops): Likewise.
1793 * win32-nat.c (init_child_ops): Likewise.
1794 * wince.c (init_child_ops): Likewise.
1795
82c0260e
AC
17962002-11-12 Andrew Cagney <ac131313@redhat.com>
1797
1798 * utils.c (gdb_realpath): Make rp a constant pointer.
1799
70d35819
AC
18002002-11-12 Andrew Cagney <ac131313@redhat.com>
1801
1802 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1803 a constant buffer; cannonicalize_file_name(); realpath() with a
1804 pathconf() defined buffer, xstrdup().
1805
9835a8b0
AC
18062002-11-12 Andrew Cagney <ac131313@redhat.com>
1807
1808 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1809 to hang2.C; hang3.c to hang3.C.
1810
3f47be5c
EZ
18112002-11-11 Elena Zannoni <ezannoni@redhat.com>
1812
1813 * findvar.c (read_var_value): Reenable TLS code.
1814
18152002-11-11 Elena Zannoni <ezannoni@redhat.com>
1816 Jim Blandy <jimb@redhat.com>
1817
1818 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1819 * target.c (update_current_target): Add
1820 to_get_thread_local_address.
1821 * target.h (to_get_thread_local_address): Export.
1822 (target_get_thread_local_address): Define.
1823 (target_get_thread_local_address_p): Define.
1824 * thread-db.c: Include solib-svr4.h.
1825 (td_thr_tls_get_addr_p): Define.
1826 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1827 (thread_db_get_thread_local_address): New function.
1828 (init_thread_db_ops): Initialize to_get_thread_local_address.
1829 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1830 * configure: Regenerate.
1831 * config.in: Regenerate.
1832
636b1a6d
DC
18332002-11-11 David Carlton <carlton@math.stanford.edu>
1834
1835 * linespec.c (set_flags): New function.
1836 (decode_line_1): Move code into set_flags.
1837
44fe14ab
DC
18382002-11-11 David Carlton <carlton@math.stanford.edu>
1839
1840 * linespec.c (decode_line_1): Move chunks of code to separate
1841 functions.
1842 (initialize_defaults): New function.
1843 (decode_indirect): New function.
1844
e6f181f5
AC
18452002-11-11 Andrew Cagney <ac131313@redhat.com>
1846
8971b011
AC
1847 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1848 instead of void_code_ptr.
1849 (sigtramp_saved_pc): Ditto.
1850
e6f181f5
AC
1851 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1852 i386_fp_regnum_p.
1853
01ad7f36
DJ
18542002-11-10 Daniel Jacobowitz <drow@mvista.com>
1855
1856 * gdbtypes.h (struct main_type): Move artificial flag out of
1857 loc. New member of ``struct field'' named static_kind. Reduce
1858 overloaded meaning of bitsize.
1859 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1860 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1861 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1862
1863 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1864 new fields.
1865 (template_to_fixed_record_type, template_to_static_fixed_type)
1866 (to_record_with_fixed_variant_part): Likewise.
1867 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1868 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1869 * dwarfread.c (struct_type, enum_type): Likewise.
1870 * hpread.c (hpread_read_enum_type)
1871 (hpread_read_function_type, hpread_read_doc_function_type)
1872 (hpread_read_struct_type): Likewise.
1873 * mdebugread.c (parse_symbol): Likewise.
1874
bf1e52be
AC
18752002-11-10 Andrew Cagney <ac131313@redhat.com>
1876
1877 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1878 * stack.c (print_frame_info_base): Update.
1879 (print_frame_info_base, frame_info): Update.
1880 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1881 (sparc_frame_saved_pc): Update.
1882 * ada-lang.c (find_printable_frame): Update.
1883 * breakpoint.c (deprecated_frame_in_dummy): Update.
1884
ce556f85
MK
18852002-11-09 Mark Kettenis <kettenis@gnu.org>
1886
1887 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1888 defined.
1889 (regmap): Extend to cover all registers.
1890 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1891 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1892 definitions.
1893 (fetch_register, sore_register): Simplify.
1894 (old_fetch_inferior_registers, old_store_inferior_registers):
1895 Remove functions.
1896 (cannot_fetch_register, cannot_store_register): Change
1897 implementation to use regmap array to decide which registers
1898 cannot be fetched/stored. This removes $orig_eax from the
1899 registers that cannot be fetched/stored.
1900 (fetch_inferior_registers): Call fetch_register directly instead
1901 of calling old_fetch_inferior_registers.
1902 (store_inferior_registers): Call store_register directly instead
1903 of calling old_store_inferior_registers.
1904 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1905 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1906 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1907
932bb524
KD
19082002-11-09 Klee Dienes <kdienes@apple.com>
1909
1910 * i387-tdep.c (i387_supply_register): When called with NULL as a
1911 buffer, mark the register as not provided (to mirror the behavior
1912 of supply_register).
1913 (i387_supply_fxsave): Ditto.
1914 (i387_supply_fsave): Ditto (inherits the behavior from
1915 i387_supply_register).
1916
ebe68b27
KD
19172002-11-09 Klee Dienes <kdienes@apple.com>
1918
1919 * blockframe.c (sigtramp_saved_pc): Use
1920 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1921 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1922 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1923
15220c65
AC
19242002-11-09 Andrew Cagney <ac131313@redhat.com>
1925
1926 * frame.c (get_prev_frame): Test prev_p to identify a previously
1927 unwound frame. Initialize prev_p.
1928 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1929 comment.
1930
95adb866
AC
19312002-11-09 Andrew Cagney <ac131313@redhat.com>
1932
1933 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1934 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1935 more comments. Zap dead code.
1936
e71ecd70
MK
19372002-11-09 Mark Kettenis <kettenis@gnu.org>
1938
1939 * infcmd.c (print_vector_info, print_float_info): Move code that
1940 checks whether the target has any registers and whether there is a
1941 selected frame up, such that it is also used if a target provides
1942 multi-arch definitions of these functions.
1943
c525330d
AC
19442002-11-08 Andrew Cagney <ac131313@redhat.com>
1945
72bdd927
AC
1946 * Makefile.in (DESTDIR): Define.
1947 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1948 prefix.
1949
c525330d
AC
1950 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1951 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1952
38c968cf
AC
19532002-11-08 Andrew Cagney <ac131313@redhat.com>
1954
1955 * i386-linux-tdep.c: Include "reggroups.h".
1956 (i386_linux_register_reggroup_p): New function.
1957 (i386_linux_init_abi): Set register_reggroup_p to
1958 i386_linux_register_reggroup_p.
1959 * i386-tdep.h (i386_register_reggroup_p): Declare.
1960 * i386-tdep.c: Include "reggroups.h".
1961 (i386_init_reggroups): New function.
1962 (i386_add_reggroups): New function.
1963 (i386_register_reggroup_p): New function.
1964 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1965 (_initialize_i386_tdep): Call i386_init_reggroups.
1966 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1967 specific reggroups.
1968
19e33363
MK
19692002-11-09 Mark Kettenis <kettenis@gnu.org>
1970
371a6e84
MK
1971 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1972 request that's available in *BSD.
1973
94ba925a
MK
1974 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1975
19e33363
MK
1976 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1977 FDOFF_REGNUM.
1978
8779790c
AC
19792002-11-08 Andrew Cagney <ac131313@redhat.com>
1980
1981 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1982 * dummy-frame.c (find_dummy_frame): Rename
1983 generic_find_dummy_frame, make static. Return the dummy frame
1984 instead of the regcache.
1985 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1986 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1987 (dummy_frame_register_unwind): Rename
1988 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1989 * dummy-frame.h (dummy_frame_register_unwind): Rename
1990 generic_call_dummy_register_unwind.
1991
8674b74f
MK
19922002-11-08 Mark Kettenis <kettenis@gnu.org>
1993
1994 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1995 except the inclusion of "i386/tm-i386.h", to...
1996 * config/i386/nm-i386v42mp.h: ...here.
1997 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1998
4c1e7e9d
AC
19992002-11-08 Andrew Cagney <ac131313@redhat.com>
2000
2001 * Makefile.in (frame.o): Update dependencies.
2002 * blockframe.c (current_frame, frame_obstack_alloc)
2003 (frame_saved_regs_zalloc, get_current_frame)
2004 (set_current_frame, create_new_frame)
2005 (set_unwind_by_pc, get_next_frame)
2006 (flush_cached_frames, reinit_frame_cache)
2007 (frame_saved_regs_register_unwind)
2008 (deprecated_generic_get_saved_register)
2009 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2010 (_initialize_blockframe): Move frame code from here...
2011 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2012 "annotate.h" and "dummy-frame.h".
2013 (_initialize_frame): New function.
2014
921e78cf
JB
20152002-11-08 Jim Blandy <jimb@redhat.com>
2016
2017 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2018 when we finish a function a context.
2019 * buildsym.h (outermost_context_p): New macro.
2020 (Bug analyzed by David Edelsohn.)
2021
9c1412c1
AC
20222002-11-08 Andrew Cagney <ac131313@redhat.com>
2023
2024 * blockframe.c: Include "dummy-frame.h".
2025 (struct dummy_frame, dummy_frame_stack)
2026 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2027 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2028 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2029 (generic_save_call_dummy_addr, generic_pop_current_frame)
2030 (generic_pop_dummy_frame, generic_fix_call_dummy)
2031 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2032 dummy frame code from here...
2033 * dummy-frame.c: ...to here. New file.
2034 * dummy-frame.h: New file.
2035 (generic_call_dummy_register_unwind): Declare.
2036 (generic_find_dummy_frame): Declare.
2037 * Makefile.in (SFILES): Add dummy-frame.c.
2038 (dummy-frame.o): Specify dependencies.
2039 (dummy_frame_h): Define.
2040 (COMMON_OBS): Add dummy-frame.o.
2041 (blockframe.o): Update dependencies.
2042
208d8187
JB
20432002-11-08 Jim Blandy <jimb@redhat.com>
2044
2045 * dwarf2read.c (read_func_scope): Restore local_symbols and
2046 param_symbols after we finish the function context. (Based on a
2047 patch from David Edelsohn.)
2048
413dad4d
DC
20492002-11-08 David Carlton <carlton@math.stanford.edu>
2050
2051 * linespec.c (symbol_found): New function.
2052 (minsym_found): New function.
2053 (decode_line_1): Separate out some code into separate functions.
2054
5512c44a
JB
20552002-11-08 Joel Brobecker <brobecker@gnat.com>
2056
2057 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2058 the benefit of the interix target.
2059 * i386-tdep.h (i386_frameless_signal_p): Declare.
2060
1b33ef47
AC
20612002-11-08 Andrew Cagney <ac131313@redhat.com>
2062
2063 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2064 declaration that snuck in from change below.
2065
23a34459
AC
20662002-11-06 Andrew Cagney <cagney@redhat.com>
2067
2068 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2069 all callers.
2070 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2071 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2072 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2073 (i386_mxcsr_regnum_p): new function. Use instead of
2074 MXCSR_REGNUM_P.
2075 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2076 (i386_sse_regnum_p): Declare.
2077 (i386_mxcsr_regnum_p): Declare.
2078 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2079 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2080 (IS_FP_REGNUM): Update definition.
2081 (IS_FPU_CTRL_REGNUM): Update definition..
2082 (IS_SSE_REGNUM): Update definition..
2083 * i386v-nat.c (register_u_addr): Update.
2084 * go32-nat.c (fetch_register): Update.
2085 (store_register): Update.
2086
d709c020
JB
20872002-11-07 Joel Brobecker <brobecker@gnat.com>
2088
2089 Preparation work to convert the hppa targets to multiarch partial.
2090
2091 * hppa-tdep.c: Add new functions replacing macro bodies from
2092 config/pa/tm-hppa.h. These function will be used to initialize
2093 the gdbarch structure. Import some comments from tm-hppa.h,
2094 and place them where appropriate, to avoid loosing them when
2095 we cleanup this file.
2096 (hppa_reg_struct_has_addr): New function.
2097 (hppa_inner_than): New function.
2098 (hppa_stack_align): New function.
2099 (hppa_pc_requires_run_before_use): New function.
2100 (hppa_instruction_nullified): New function.
2101 (hppa_register_byte): New function.
2102 (hppa_register_virtual_type): New function.
2103 (hppa_store_struct_return): New function.
2104 (hppa_cannot_store_register): New function.
2105 (hppa_frame_args_address): New function.
2106 (hppa_frame_locals_address): New function.
2107 (hppa_smash_text_address): New function.
2108 (hppa_coerce_float_to_double): New function. Requires the inclusion
2109 of "language.h".
2110
2111 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2112
2113 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2114 gdbarch-eligible macro to a call to the new associated function
2115 created in hppa-tdep.c.
2116 (INNER_THAN): Likewise.
2117 (STACK_ALIGN): Likewise.
2118 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2119 (INSTRUCTION_NULLIFIED): Likewise.
2120 (REGISTER_BYTE): Likewise.
2121 (REGISTER_VIRTUAL_TYPE): Likewise.
2122 (STORE_STRUCT_RETURN): Likewise.
2123 (CANNOT_STORE_REGISTER): Likewise.
2124 (FRAME_ARGS_ADDRESS): Likewise.
2125 (FRAME_LOCALS_ADDRESS): Likewise.
2126 (SMASH_TEXT_ADDRESS): Likewise.
2127 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2128 (ABOUT_TO_RETURN): Delete, as no longer used.
2129
83c31e7d
FN
21302002-11-07 Fernando Nasser <fnasser@redhat.com>
2131
2132 * printcmd.c (disassemble_command): Remove obsolete function.
2133 (_initialize_printcmd): Do not create disassemble command here.
2134 * cli/cli-cmds.c (disassemble_command): New function. Implements
2135 disassemble command.
2136 (init_cli_cmds): Create disassemble command here instead.
2137
0ec30a36
AC
21382002-11-07 Andrew Cagney <ac131313@redhat.com>
2139
2140 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2141
e600bd34
AC
21422002-11-07 Andrew Cagney <ac131313@redhat.com>
2143
2144 * regcache.h (regcache_cooked_read_using_offset_hack)
2145 (regcache_cooked_write_using_offset_hack): Delete declarations.
2146 (register_changed): Delete declaration.
2147 * regcache.c (regcache_cooked_read_using_offset_hack)
2148 (regcache_cooked_write_using_offset_hack): Delete functions.
2149 (cooked_xfer_using_offset_hack): Delete function.
2150 (register_changed): Delete function.
2151
568f8739
JB
21522002-11-07 Jim Blandy <jimb@redhat.com>
2153
2154 * macroscope.c: #include "complaints.h".
2155 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2156 but not in the macro table.
2157 * Makefile.in (macroscope.o): Record dependency.
2158
b0718b7b
JB
21592002-11-07 Joel Brobecker <brobecker@gnat.com>
2160
2161 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2162
2b9e5f3f
AC
21632002-11-07 Andrew Cagney <ac131313@redhat.com>
2164
2165 * regcache.c (deprecated_registers_fetched): Update.
2166 * regcache.h (deprecated_registers_fetched): Rename
2167 registers_fetched.
2168 * remote-vxsparc.c (vx_read_register): Update.
2169 * remote-vxmips.c (vx_read_register): Update.
2170 * remote-vx68.c (vx_read_register): Update.
2171 * irix5-nat.c (fetch_core_registers): Update.
2172 * mipsm3-nat.c (fetch_inferior_registers): Update.
2173 * sun3-nat.c (fetch_inferior_registers): Update.
2174 * symm-nat.c (fetch_inferior_registers): Update.
2175 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2176 (fetch_core_registers): Update.
2177 (fetch_kcore_registers): Update.
2178 * mips-nat.c (fetch_inferior_registers): Update.
2179 * corelow.c (get_core_registers): Update.
2180 * a68v-nat.c (fetch_inferior_registers): Update.
2181
e6e68f1f
JB
21822002-11-06 Joel Brobecker <brobecker@gnat.com>
2183
2184 Put in place the framework necessary for multiarching the hppa targets.
2185 * hppa-tdep.c (hppa_gdbarch_init): New function.
2186 (hppa_dump_tdep): New function.
2187 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2188 tdep structure dumper.
2189 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2190 until the multi-arching conversion has partially been completed.
2191
492254e9
AC
21922002-11-06 Andrew Cagney <ac131313@redhat.com>
2193
2194 * valops.c (value_assign): Merge lval_register case into
2195 lval_reg_frame_relative. Use frame_register and
2196 regcache_cooked_write instead of get_saved_register and
2197 write_register_bytes. After flushing the register cache, try to
2198 re-select the selected frame.
2199
8262ee23
AC
22002002-11-06 Andrew Cagney <ac131313@redhat.com>
2201
2202 * regcache.h (deprecated_register_valid): Rename register_valid.
2203 * regcache.c: Update.
2204 * ia64-aix-nat.c: Update.
2205 * i386gnu-nat.c: Update.
2206 * alpha-nat.c: Update.
2207 * sparc-nat.c: Update.
2208 * lynx-nat.c: Update.
2209 * remote-mips.c: Update.
2210
4facf7e8
JB
22112002-11-06 Joel Brobecker <brobecker@gnat.com>
2212
2213 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2214 to end of file, to be more consistent with the pratice followed
2215 by other targets.
2216
f9418c0f
AC
22172002-11-06 Andrew Cagney <ac131313@redhat.com>
2218
2219 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2220 (print_float_info): Print registers in float_reggroup.
2221 (print_vector_info): Print registers in vector_reggroup.
2222 (default_print_registers_info): When all, print registers in
2223 all_reggroup. Otherwize, print registers in general_reggroup.
2224 (registers_info): Rewrite. Add support for register groups.
2225 Eliminate a goto.
2226
3fe235a7
EZ
22272002-11-06 Elena Zannoni <ezannoni@redhat.com>
2228
2229 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2230 ages.
2231 (symtab_symbol_info): Remove eons old ifdeffed out code.
2232 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2233 command.
2234
ef944135
TR
22352002-11-06 Theodore A. Roth <troth@openavr.org>
2236
2237 * c-exp.y: Add missing semi-colons.
2238 * f-exp.y: Add missing semi-colons.
2239 * m2-exp.y: Add missing semi-colons.
2240 * p-exp.y: Add missing semi-colons.
2241 Add empty action to start rule to avoid a type clash error when
2242 building with bison >= 1.50.
2243
f8302a57
JB
22442002-11-06 Jim Blandy <jimb@redhat.com>
2245
2246 * macrotab.h (struct macro_source_file): Doc fix.
2247
6e382aa3
JJ
22482002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2249
2250 * varobj.c (child_exists, cplus_number_of_children): Change
2251 STREQ macro references to strcmp.
2252 (cplus_name_of_child): Change code to handle the fact that
2253 fields are not necessarily contiguous with regards to their
2254 access control. This is a fix for PR gdb/792.
2255
a216a322
AC
22562002-11-05 Andrew Cagney <ac131313@redhat.com>
2257
2258 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2259 * gdbarch.h, gdbarch.c: Regnerate.
2260 * frame.h (frame_register): Declare.
2261 * frame.c (frame_register): New function.
2262 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2263 GET_SAVED_REGISTER, otherwize call
2264 generic_unwind_get_saved_register.
2265 (frame_register_read): Use frame_register instead of
2266 get_saved_register.
2267
7d5b6fdd
EZ
22682002-11-05 Elena Zannoni <ezannoni@redhat.com>
2269
2270 From Jim Ingham <jingham@apple.com>:
2271 * event-top.c (gdb_disable_readline): New function.
2272 (_initialize_event_loop): Move comment.
2273
b7c64260
EZ
22742002-11-05 Elena Zannoni <ezannoni@redhat.com>
2275
2276 * event-loop.c (start_event_loop): Add comment.
2277 Update copyright.
2278
c2e1b8f2
AC
22792002-11-05 Andrew Cagney <ac131313@redhat.com>
2280
2281 * infcmd.c (default_print_registers_info): Do not call
2282 PRINT_REGISTER_HOOK.
2283
87647bb0
AC
22842002-11-05 Andrew Cagney <ac131313@redhat.com>
2285
2286 * sparc-tdep.c (sparc_print_register_hook): Make static.
2287 (sparc_print_registers_info): New function.
2288 (sparc_do_registers_info): New function.
2289 (sparclet_print_registers_info): New function.
2290 (sparclet_do_registers_info): New function.
2291 (do_sparc_print_registers_info): New function.
2292 (sparc_print_registers): New static function, clone of infcmd.c's
2293 default_print_registers_info.
2294 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2295 (sparclet_do_registers_info): Declare.
2296 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2297 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2298 Re-define.
2299 (sparc_do_registers_info): Declare.
2300 (PRINT_REGISTER_HOOK): Delete macro.
2301 (sparc_print_register_hook): Delete declaration.
2302
8155455b
DC
23032002-11-05 David Carlton <carlton@math.stanford.edu>
2304
2305 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2306 functions.
2307 (lookup_symbol_aux_local): New function.
2308 (lookup_symbol_aux_symtabs): New function.
2309 (lookup_symbol_aux_psymtabs): New function.
2310
29924310
DC
23112002-11-05 David Carlton <carlton@math.stanford.edu>
2312
2313 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2314 previous values of 'objfile' and 'block'.
2315
cc303028
PM
23162002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2317
2318 * values.c (value_change_enclosing_type): Set
2319 enclosing_type field correctly also for the case where
2320 more memory needs to be allocated.
2321
1d70089a
MK
23222002-11-03 Mark Kettenis <kettenis@gnu.org>
2323
f16a25ae
MK
2324 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2325 of puts_filtered.
2326
1d70089a
MK
2327 * i387-tdep.c (i387_print_float_info): Replace calls to
2328 register_read and deprecated_read_register_gen with calls to
2329 frame_register_read, and make the necessary adjustments to the
2330 surrounding code.
2331
7e20f3fb
AC
23322002-11-02 Andrew Cagney <ac131313@redhat.com>
2333
2334 * gdbarch.sh (register_reggroup_p): Allow default value.
2335 * gdbarch.h, gdbarch.c: Regenerate.
2336
192dbe33
AC
23372002-11-02 Andrew Cagney <ac131313@redhat.com>
2338
2339 * regcache.h: Add coment indicating replacements for deprecated
2340 functions.
2341
b59ff9d5
AC
23422002-11-02 Andrew Cagney <cagney@redhat.com>
2343
2344 * reggroups.h, reggroups.c: New files.
2345 * regcache.c: Include "reggroups.h".
2346 (enum regcache_dump_what): Add `regcache_dump_groups'.
2347 (regcache_dump): Contract size of the "Type" column. When
2348 specified, dump the register's groups.
2349 (maintenance_print_register_groups): New function.
2350 (_initialize_regcache): Add command `maint print register-groups'.
2351 * Makefile.in (COMMON_OBS): Add reggroups.o
2352 (SFILES): Add reggroups.c.
2353 (reggroups_h): Define.
2354 (regcache.o, gdbarch.o): Update dependencies.
2355 (reggroups.o): Specify dependencies.
2356 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2357 Add opaque declaration for `struct reggroup' in generated .h file.
2358 Include "reggroups.h" in generated .c file.
2359 gdbarch.h, gdbarch.c: Re-generate.
2360
4caf0990
AC
23612002-11-02 Andrew Cagney <cagney@redhat.com>
2362
2363 * regcache.h (deprecated_read_register_gen): Rename
2364 read_register_gen.
2365 (deprecated_write_register_gen): Rename write_register_gen.
2366 * i387-tdep.c: Update.
2367 * x86-64-linux-nat.c: Update
2368 * wince.c: Update.
2369 * thread-db.c: Update.
2370 * win32-nat.c: Update.
2371 * mips-tdep.c: Update.
2372 * d10v-tdep.c: Update.
2373 * cris-tdep.c: Update.
2374 * remote-sim.c: Update.
2375 * remote-rdi.c: Update.
2376 * remote-rdp.c: Update.
2377 * frame.c: Update.
2378 * target.c: Update.
2379 * blockframe.c: Update.
2380 * x86-64-tdep.c: Update.
2381 * xstormy16-tdep.c: Update.
2382 * sh-tdep.c: Update.
2383 * s390-tdep.c: Update.
2384 * rs6000-tdep.c: Update.
2385 * sparc-tdep.c: Update.
2386 * i386-tdep.c: Update.
2387 * dwarf2cfi.c: Update.
2388 * regcache.c: Update.
2389
7a7adcdf
JB
23902002-11-01 Joel Brobecker <brobecker@gnat.com>
2391
2392 New interix-specific files:
2393 * config/i386/nm-interix.h: New file.
2394 * config/i386/interix.mh: New file.
2395 * config/i386/interix.mt: New file.
2396 * i386-interix-nat.c: New file.
2397 * i386-interix-tdep.c: New file.
2398
bdcdd535
AC
23992002-11-01 Andrew Cagney <cagney@redhat.com>
2400
2401 * frame.h (deprecated_generic_get_saved_register): Rename
2402 generic_get_saved_register.
2403 * blockframe.c (deprecated_generic_get_saved_register): Update.
2404 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2405 (xstormy16_frame_saved_register): Update.
2406 * sh-tdep.c (sh_gdbarch_init): Update.
2407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2408 * ia64-tdep.c (ia64_get_saved_register): Update.
2409 * cris-tdep.c (cris_gdbarch_init): Update.
2410 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2411 * arm-tdep.c (arm_gdbarch_init): Update.
2412
2a4b7c45
DJ
24132002-10-31 Daniel Jacobowitz <drow@mvista.com>
2414
2415 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2416
ef17e74b
DJ
24172002-10-31 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2420 trampolines in sigaction.
2421
4904ba5b
AC
24222002-10-31 Andrew Cagney <cagney@redhat.com>
2423
2424 * h8300-tdep.c: Include "gdb_assert.h".
2425 (h8300_print_register): Add gdbarch, file and frame parameters.
2426 Use frame_read_unsigned_register to read the register's value.
2427 Use fprintf_filtered to display output.
2428 (h8300_print_registers_info): Replace h8300_do_registers_info.
2429 (h8300_gdbarch_init): Set print_registers_info.
2430
f908a0eb
AC
24312002-10-31 Andrew Cagney <cagney@redhat.com>
2432
2433 * frame.c (frame_read_unsigned_register): New function.
2434 (frame_read_signed_register): New function.
2435 * frame.h (frame_read_unsigned_register): Declare.
2436 (frame_read_signed_register): Declare.
2437
c5646e11
AC
24382002-10-31 Andrew Cagney <cagney@redhat.com>
2439
2440 * h8500-tdep.c (h8500_print_registers_info): New static function,
2441 clone of infcmd.c's default_print_registers_info.
2442 (h8500_do_registers_info): New funtion.
2443 (h8500_print_register_hook): Rename print_register_hook, make
2444 static.
2445
2446 * config/h8500/tm-h8500.h: Update copyright.
2447 (DEPRECATED_DO_REGISTERS_INFO): Define.
2448 (h8500_do_registers_info: Declare.
2449 (PRINT_REGISTER_HOOK): Delete macro.
2450 (print_register_hook): Delete function.
2451
0bdd672b
AC
24522002-10-31 Andrew Cagney <cagney@redhat.com>
2453
2454 * z8k-tdep.c (z8k_print_register_hook): Make static.
2455 (z8k_print_registers_info): New static function, clone of
2456 infcmd.c's default_print_registers_info.
2457 (z8k_do_registers_info): New function. Wrap
2458 z8k_print_registers_info.
2459 * config/z8k/tm-z8k.h: Update copyright.
2460 (PRINT_REGISTER_HOOK): Delete macro.
2461 (z8k_print_register_hook): Delete declaration.
2462 (DEPRECATED_DO_REGISTERS_INFO): Define.
2463 (z8k_do_registers_info): Declare.
2464
bf9c25dc
JB
24652002-10-30 Joel Brobecker <brobecker@gnat.com>
2466
2467 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2468 as this is already provided by value.h, and was actually causing
2469 a compilation error because of a conflict in parameter type
2470 declaration due to a missing const keyword.
2471 (low_text_segment_addres): Fix a compilation warning.
2472
2c665b51
DJ
24732002-10-29 Daniel Jacobowitz <drow@mvista.com>
2474
2475 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2476 registers without a name.
2477 (mips_linux_cannot_store_register): Don't store registers without
2478 a name.
2479
e70ea697
DC
24802002-10-28 David Carlton <carlton@math.stanford.edu>
2481
2482 * symtab.c (find_addr_symbol): Delete. (It was already commented
2483 out.)
2484 * symtab.h: Delete prototype for find_addr_symbol.
2485
903ad3a6
AC
24862002-10-26 Andrew Cagney <cagney@redhat.com>
2487
2488 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2489 DO_REGISTERS_INFO.
2490 gdbarch.h, gdbarch.c: Re-generate.
2491 * infcmd.c (default_print_registers_info): Update reference.
2492 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2493 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2494 * sh-tdep.c (sh_gdbarch_init): Ditto.
2495 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2496 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2497
ab91194c
MK
24982002-10-26 Mark Kettenis <kettenis@gnu.org>
2499
e3033f15
MK
2500 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2501 cfi_init_extra_frame_info.
2502 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2503 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2504
b83b026c
MK
2505 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2506 target where necessary. Add more comments and remove the ones
2507 that don't provide any useful information.
2508
267bf4bb
MK
2509 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2510 deprecated_read_register_dummy with
2511 frame_unwind_unsigned_register.
2512
751f1375
MK
2513 * i386-tdep.c (i386_extract_struct_value_address): Use
2514 regcache_raw_read_unsigned instead of
2515 regcache_cooked_read_unsigned since we know that the register
2516 we're reading isn't a pseudo register. Rename variable 'val' into
2517 the more descriptive 'addr'.
2518
26abbdc4
MK
2519 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2520 (x86_64_push_return_address): Add comment.
2521 (x86_64_pop_frame): Make static.
2522 (examine_argument): Clarify comment.
2523 (x86_64_skip_prologue): Make prolog_expact variable static.
2524
9f1549cc
MK
2525 * dwarf2cfi.c: Fix some formatting problems.
2526 (context_cpy, read_encoded_pointer): Clarify comments.
2527
ab91194c
MK
2528 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2529 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2530 i386 target back into x86_64_gdbarch_init. Add some comments and
2531 remove meaningless ones.
2532
72367fb4
AC
25332002-10-25 Andrew Cagney <cagney@redhat.com>
2534
2535 * complaints.h (struct deprecated_complaint): Rename `struct
2536 complaint'.
2537 * complaints.c (complain): Update.
2538 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2539 incorrect comment indicating that "symfile.h" was being included
2540 for the `struct complaint' definition.
2541 * remote-vx.c: Update.
2542 * objc-lang.c: Update.
2543 * xcoffread.c: Update.
2544 * hpread.c: Update.
2545 * mdebugread.c: Update.
2546 * stabsread.c: Update.
2547 * dwarf2read.c: Update.
2548 * dwarfread.c: Update.
2549 * elfread.c: Update.
2550 * coffread.c: Update.
2551 * stabsread.h: Update.
2552 * dbxread.c: Update.
2553 * buildsym.c: Update.
2554 * gdbtypes.c: Update.
2555 * macrotab.c: Update.
2556
1f2baacc
MK
25572002-10-25 Mark Kettenis <kettenis@gnu.org>
2558
0c1a73d6
MK
2559 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2560 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2561 (x86_64_init_abi): ...new function.
2562
6aee4d54 2563 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2564 * i386v-nat.c: Include "i386-tdep.h".
2565
8f9cbe01
AC
25662002-10-25 Andrew Cagney <cagney@redhat.com>
2567
5f11f355
AC
2568 * gdbtypes.c (address_space_name_to_int): Update.
2569 (address_space_int_to_name): Update.
2570 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2571 multi-arch predicate.
2572 (address_class_name_to_type_flags): Ditto.
2573 * gdbarch.h, gdbarch.c: Re-generate.
2574
8f9cbe01
AC
2575 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2576
e8d96a5d
MH
25772002-10-24 Martin M. Hunt <hunt@redhat.com>
2578
2579 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2580
fe39c653
EZ
25812002-10-24 Elena Zannoni <ezannoni@redhat.com>
2582
2583 * symtab.h (INIT_SAL): Delete macro.
2584 (init_sal): Export.
2585 * symtab.c (init_sal): New function.
2586
2587 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2588 to init_sal function call.
2589 (find_sal_from_funcs_and_line): Ditto.
2590 (all_sals_for_line): Ditto.
2591 * breakpoint.c (create_internal_breakpoint): Ditto.
2592 (create_fork_vfork_event_catchpoint): Ditto.
2593 (create_exec_event_catchpoint): Ditto.
2594 (parse_breakpoint_sals): Ditto.
2595 (watch_command_1): Ditto.
2596 (handle_gnu_4_16_catch_command): Ditto.
2597 (clear_command): Ditto.
2598 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2599 * infcmd.c (run_stack_dummy): Ditto.
2600 * infrun.c (process_event_stop_test): Ditto.
2601 (check_sigtramp2): Ditto.
2602 (step_over_function): Ditto.
2603 * linespec.c (decode_line_2): Ditto.
2604 (decode_line_1): Ditto.
2605 * source.c (line_info): Ditto.
2606 * symtab.c (find_pc_sect_line): Ditto.
2607
baed091b
ML
26082002-10-24 Michal Ludvig <mludvig@suse.cz>
2609
2610 * dwarf2cfi.c (struct context)
2611 (struct context_reg): Moved to dwarf2cfi.h
2612 (context_alloc, frame_state_alloc, context_cpy):
2613 Made extern instead of static, removed prototypes.
2614 * dwarf2cfi.h (struct context)
2615 (struct context_reg): New, moved from dwarf2cfi.c
2616 (context_alloc, frame_state_alloc, context_cpy):
2617 New prototypes.
2618 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2619 Changed from static to extern.
2620 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2621 (LINUX_SIGCONTEXT_FP_OFFSET)
2622 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2623 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2624 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2625 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2626 set_gdbarch_*() calls now use x86-64 specific functions
2627 instead of DWARF2 CFI ones.
2628 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2629 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2630 (x86_64_init_extra_frame_info): New prototypes.
2631
c38da1af
DC
26322002-10-23 David Carlton <carlton@math.stanford.edu>
2633
2634 * linespec.c: #include "parser-defs.h".
2635 Delete prototype for find_template_name_end.
2636 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2637
fb9b6b35
JJ
26382002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2639
2640 * NEWS: add recent mi fixes.
2641 * varobj.c (struct varobj): Add new "updated" flag.
2642 (new_variable): Default "updated" flag to 0.
2643 (varobj_set_value): Set "updated" flag to 1 if value
2644 changes.
2645 (varobj_update): Check varobj "updated" flag before
2646 comparing old and refreshed values. Fix for
2647 PR gdb/702.
2648
8da065d5
DC
26492002-10-23 David Carlton <carlton@math.stanford.edu>
2650
2651 * parse.c (parse_exp_1): Use BLOCK_START.
2652 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2653 SYMBOL_BLOCK_VALUE.
2654 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2655
87f2f08c
DC
26562002-10-23 David Carlton <carlton@math.stanford.edu>
2657
2658 * symtab.c: Delete cplusplus_hint.
2659 Delete prototype for find_template_name_end.
2660
88cda038
EZ
26612002-10-23 Elena Zannoni <ezannoni@redhat.com>
2662
2663 * symtab.h: Update comment.
2664
2625d86c
MS
26652002-10-23 Michael Snyder <msnyder@redhat.com>
2666
2667 * printcmd.c (address_info): Restore quotes in output.
2668 * valops.c (value_of_local): Restore quotes in error message.
2669
9cc0d196
EZ
26702002-10-23 Elena Zannoni <ezannoni@redhat.com>
2671
2672 * symtab.c (symbol_demangled_name): New function.
2673 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2674 turning most of it into a function.
2675 (symbol_demangled_name): Export.
2676
19de93d0
MS
26772002-10-23 Michael Snyder <msnyder@redhat.com>
2678
2679 * valops.c (value_of_local): Restore quotes in error message.
2680
89aad1f9
EZ
26812002-10-23 Elena Zannoni <ezannoni@redhat.com>
2682
2683 * symtab.c (symbol_init_language_specific): New function.
2684 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2685 turning most of it into a function.
2686 (symbol_init_language_specific): Export.
2687
d9fa45fe
DC
26882002-10-23 David Carlton <carlton@math.stanford.edu>
2689
2690 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2691 (dwarf_attr_name): Ditto.
2692 (dwarf_type_encoding_name): Ditto.
2693 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2694 (process_die): Handle DW_TAG_namespace,
2695 DW_TAG_imported_declaration, DW_TAG_imported_module.
2696 (read_namespace): New function.
2697
1045b512
JB
26982002-10-22 Joel Brobecker <brobecker@gnat.com>
2699
2700 * configure.in: Define NEW_PROC_API on Interix too.
2701 * configure: Regenerate.
2702
27032002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2704
2705 * configure: Regenerate using the proper version of autoconf.
2706
3987b9d4
EZ
27072002-10-21 Elena Zannoni <ezannoni@redhat.com>
2708
2709 * findvar.c (read_var_value): Temporarily disable TLS code, until
2710 complete TLS support is added.
2711
9d774e44
EZ
27122002-10-21 Jim Blandy <jimb@redhat.com>
2713 Elena Zannoni <ezannoni@redhat.com>
2714
2715 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2716 for thread local storage locations.
2717 (struct symbol): Add objfile field.
2718 (SYMBOL_OBJFILE): Define.
2719 * dwarf2read.c (is_thread_local): New static variable.
2720 (new_symbol): If variable is in thread local fill in address class
2721 and objfile appropriately.
2722 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2723 stack operation.
2724 * printcmd.c (address_info): Print the information for thread
2725 local storage variable.
2726 * findvar.c (read_var_value): In case of thread local variable,
2727 defer to the target vector code to compute address.
2728
bc4a16ae
EZ
27292002-10-21 Elena Zannoni <ezannoni@redhat.com>
2730
2731 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2732 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2733
407caf07
EZ
27342002-10-21 Elena Zannoni <ezannoni@redhat.com>
2735
2736 * symtab.h (address_class): Rename
2737 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2738 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2739 * printcmd.c (address_info): Ditto.
2740 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2741
005328e3
MK
27422002-10-20 Mark Kettenis <kettenis@gnu.org>
2743
afdb036a
MK
2744 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2745 DBREG_DRX macro to acces debug registers.
2746
ca02e098
MK
2747 * Makefile.in (i386obsd-tdep.o): New target.
2748
03cc47f7
MK
2749 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2750 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2751
005328e3
MK
2752 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2753 * config/i386/obsd.mt: New file.
2754 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2755 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2756 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2757 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2758 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2759 * i386obsd-tdep.c: New file.
2760
9c96f9f2
AF
27612002-10-19 Adam Fedor <fedor@gnu.org>
2762
2763 * objc-exp.y (name_not_typename): Fix invalid comment.
2764
ce1ed485
MK
27652002-10-20 Mark Kettenis <kettenis@gnu.org>
2766
2767 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2768 to allocate partial syms and macro byte caches.
2769
1efc7aaa
DC
27702002-10-18 David Carlton <carlton@math.stanford.edu>
2771
2772 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2773
7e1d63ec
AF
27742002-10-18 Adam Fedor <fedor@gnu.org>
2775
2776 * stabsread.c (find_name_end): New function.
2777 (define_symbol): Use it.
2778
6e8d29a9
DJ
27792002-10-18 Daniel Jacobowitz <drow@mvista.com>
2780
2781 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2782 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2783 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2784 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2785
1efc7aaa 27862002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2787
2788 * symfile.h: Add opaque declaration for struct obstack.
2789 Declare obsavestring to take a const char *.
2790 * symfile.c (obsavestring): Make first argument a const char *.
2791
1aeae86e
AF
27922002-10-16 Adam Fedor <fedor@gnu.org>
2793
2794 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2795 names when matching breakpoints in current file.
2796
8b2dbe47
KB
27972002-10-16 Kevin Buettner <kevinb@redhat.com>
2798
2799 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2800 (read_tag_pointer_type): Add address class support.
2801 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2802 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2803 New methods.
2804 * gdbarch.h, gdbarch.c: Regenerate.
2805 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2806 (make_type_with_address_space, recursive_type_dump): Add address
2807 class support.
2808 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2809 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2810 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2811
74451869
KD
28122002-10-16 Klee Dienes <kdienes@apple.com>
2813
2814 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2815 to get the last character of a char[] buffer, not
2816 name[sizeof(vptr_name)-1].
2817
ff4cb3e8
AF
28182002-10-14 Adam Fedor <fedor@gnu.org>
2819
2820 * symtab.h: New objc_specific struct.
2821 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2822 (SYMBOL_DEMANGLED_NAME): Likewise.
2823
da2cf7e0
AF
28242002-10-14 Adam Fedor <fedor@gnu.org>
2825
2826 * symfile.c (init_filename_language_table): Add ObjC file extension.
2827
4a351cef
AF
28282002-10-14 Adam Fedor <fedor@gnu.org>
2829
2830 * utils.c (puts_filtered_tabular): New function.
2831 (fprintf_symbol_filtered): Get ObjC demangled name.
2832 * defs.h (puts_filtered_tabular): Declared.
2833
9750e763
KB
28342002-10-14 Kevin Buettner <kevinb@redhat.com>
2835
2836 * c-lang.h (c_type_print_varspec_prefix): Delete.
2837 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2838 ``need_post_space'' parameter. Adjust all callers.
2839
eee771c1
DJ
28402002-10-14 Daniel Jacobowitz <drow@mvista.com>
2841
2842 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2843 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2844 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2845 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2846
46c82446
AF
28472002-10-13 Adam Fedor <fedor@gnu.org>
2848
2849 * source.c (print_source_lines): Update comments.
2850
d069f99d
AF
28512002-10-13 Adam Fedor <fedor@gnu.org>
2852
2853 * valops.c (value_of_local): New function.
2854 (value_of_this): Use it.
2855 * value.h (value_of_local): Declared.
2856
53c551b7
AF
28572002-10-13 Adam Fedor <fedor@gnu.org>
2858
2859 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2860 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2861
eb392fbf
AF
28622002-10-12 Adam Fedor <fedor@gnu.org>
2863
2864 * language.c (binop_result_type): Add language_objc to case.
2865 (integral_type): Likewise.
2866 (character_type): Likewise.
2867 (string_type): Likewise.
2868 (boolean_type): Likewise.
2869 (structured_type): Likewise.
2870 (binop_type_check): Likewise.
2871
e2b23ee9
AF
28722002-10-11 Adam Fedor <fedor@gnu.org>
2873
2874 * printcmd.c (address_info): Print 'self' for ObjC.
2875
b01ab485
AF
28762002-10-11 Adam Fedor <fedor@gnu.org>
2877
2878 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2879 OP_SELF.
2880
806e6073
AF
28812002-10-11 Adam Fedor <fedor@gnu.org>
2882
2883 * language.h (CAST_IS_CONVERSION): Add language_objc.
2884
50f85cdf
AF
28852002-10-11 Adam Fedor <fedor@gnu.org>
2886
2887 * defs.h (enum language): Add language_objc.
2888
0d540cdf
KD
28892002-10-11 Klee Dienes <kdienes@apple.com>
2890
69266111 2891 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2892 * gdbcore.h (read_memory_typed_address): Add prototype.
2893 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2894 to read a value destined for a CORE_ADDR, not read_memory_integer.
2895 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2896 (f77_get_dynamic_lowerbound): Ditto.
2897
d5dc7960
MH
28982002-10-11 Martin M. Hunt <hunt@redhat.com>
2899
2900 * utils.c (string_to_core_addr): After turning string into
2901 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2902 which will do necessary sign-extension, etc.
2903
8343f86c
DJ
29042002-10-11 Daniel Jacobowitz <drow@mvista.com>
2905
2906 * c-exp.y (THIS): Delete token and grammar rule.
2907 (yylex): Don't return THIS.
2908 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2909 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2910 * demangle.c (cplus_markers): Update comment. Put '$'
2911 first. Remove CPLUS_MARKER.
2912 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2913 * jv-exp.y (THIS): Delete token and grammar rule.
2914 (yylex): Don't return THIS.
2915 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2916 * objc-exp.y (THIS): Delete token and grammar rule.
2917 (yylex): Don't return THIS.
2918 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2919 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2920 (read_member_functions): Likewise for opname.
2921 (read_tilde_fields): Use is_cplus_marker.
2922
2923 * defs.h (CPLUS_MARKER): Don't define.
2924 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2925 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2926 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2927 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2928 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2929
2930 * config/i386/tm-i386v4.h: Delete file.
2931 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2932 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2933 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2934 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2935 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2936 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2937 * config/i386/i386v4.mt (TM_FILE): Likewise.
2938 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2939
967c0d83
MM
29402002-10-10 Marko Mlinar <markom@opencores.org>
2941
2942 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2943 accidentially not commited 2002-10-09
2944 * gdbarch.h, gdbarch.c: Re-generate.
2945
f74fa174
MM
29462002-10-09 Marko Mlinar <markom@opencores.org>
2947
2948 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2949 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2950 * gdbarch.h, gdbarch.c: Re-generate.
2951
57349743
JB
29522002-10-08 Petr Sorfa <petrs@caldera.com>
2953
2954 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2955
2956 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2957 so we can work on more than one compilation unit at a time. This
2958 helps prepare GDB to handle inter-CU die references.
2959 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2960 the code to be defined before struct comp_unit_head.
2961 (comp_unit_head): Added new members - offset, cu_head,
2962 begin_die, next and dwarf2_abbrevs.
2963 (dwarf2_abbrevs): Removed single static var; now member of
2964 struct comp_unit_head.
2965 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2966 members.
2967 (psymtab_to_symtab_1): Changed to work with the new
2968 struct comp_unit_head.
2969 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2970 constructs the dwarf2_abbrevs[] inside the cu_header.
2971 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2972 dwarf2_abbrev table to clean up.
2973 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2974 handling of dwarf2_abbrevs inside the cu_header.
2975 (read_partial_die): Now supports the call to the new
2976 dwarf2_lookup_abbrev.
2977 (read_full_die): Now supports the call to the new
2978 dwarf2_lookup_abbrev.
2979
4092aadb
CF
29802002-10-06 Christopher Faylor <cgf@redhat.com>
2981
2982 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2983 insure that shell variables, such as "transformed_name" are propagated
2984 to later shell statements in rule.
2985
af0b2512
MK
29862002-10-06 Mark Kettenis <kettenis@gnu.org>
2987
2988 * config/i386/nm-i386sco.h: Add protection against
2989 multiple-inclusion. Include "i386/nm-i386v.h".
2990 (REGISTER_U_ADDR): Remove define.
2991 (i386_register_u_addr): Remove prototype.
2992
d6020d45
MS
29932002-10-04 Michael Snyder <msnyder@redhat.com>
2994
2995 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2996 before treating it as a single-step event.
2997
7248f48e
AF
29982002-10-03 Adam Fedor <fedor@gnu.org>
2999
3000 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3001 (objc_demangle): Remove assignment in if statements, Replace
3002 free with xfree.
3003 (add_msglist): Likewise.
3004 (end_msglist): Likewise.
3005 (complare_selectors): Likewise.
3006 (selectors_info): Likewise.
3007 (compare_classes): Likewise.
3008 (classes_info): Likewise.
3009 (print_object_command): Likewise.
3010 (find_objc_msgcall_submethod): Replace PTR with void *.
3011 * objc-lang.h: Remove check for __STDC__.
3012
52c6a6ac
JJ
30132002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3014
3015 * ui-out.h (ui_out_field_fmt_int): New prototype.
3016 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3017 of field width and alignment.
3018 * stack.c (print_frame_info_base): When printing frame level, use
3019 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3020 PR gdb/192
3021
7e3cec17
JJ
30222002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3023
3024 * MAINTAINERS: Add self to Write After Approval list.
3025
a58dd373
EZ
30262002-10-02 Elena Zannoni <ezannoni@redhat.com>
3027
3028 * infcmd.c (interrupt_target_command_wrapper): Delete.
3029 (interrupt_target_command): Make non static.
3030 (nofp_registers_info): Make static.
3031 * stack.c (return_command_wrapper): Delete.
3032 (return_command): Make non static.
3033
cee6ddeb
EZ
30342002-10-02 Elena Zannoni <ezannoni@redhat.com>
3035
3036 * event-top.c (gdb_setup_readline): New function. Code moved from
3037 _initialize_event_loop().
3038 (_initialize_event_loop): Call gdb_setup_readline().
3039
c4ed33b9
AC
30402002-10-02 Andrew Cagney <ac131313@redhat.com>
3041
3042 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3043 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3044 * gdbarch.h, gdbarch.c: Re-generate.
3045
cef4f5dd
DJ
30462002-10-02 Daniel Jacobowitz <drow@mvista.com>
3047
3048 Fix PR gdb/778
3049 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3050 before recursing.
3051 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3052 of fill_in_vptr_fieldno.
3053
36dc181b 30542002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3055
36dc181b
EZ
3056 * inferior.h (registers_info, stepi_command, nexti_command,
3057 continue_command, interrupt_target_command): Export from infcmd.c.
3058 * frame.h (args_info, selected_frame_level_changed_hook,
3059 return_command): Export from stack.c.
3060 * v850ice.c (stepi_command, nexti_command, continue_command): use
3061 prototypes from inferior.h.
3062 * tracepoint.c (registers_info, args_info, locals_info): Use
3063 prototypes from frame.h and inferior.h.
3064 * Makefile.in (mi-main.o): Add dependency on frame.h.
3065
6f99cb26
AC
30662002-10-02 Andrew Cagney <ac131313@redhat.com>
3067
da3eff49
AC
3068 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3069 value in register 3 adjusted by ppc_gp0_regnum.
3070
6f99cb26
AC
3071 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3072
da615bee
MM
30732002-10-02 Marko Mlinar <markom@opencores.org>
3074
3075 * MAINTAINERS: Add myself to the Write After Approval list.
3076
d154bee2
AO
30772002-10-01 Alexandre Oliva <aoliva@redhat.com>
3078
62a49b2c
AO
3079 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3080 of the section for the N64 ABI, fixed.
3081
d154bee2
AO
3082 * config/mips/tm-irix6.h: Include solib.h.
3083
ed348acc
EZ
30842002-10-01 Elena Zannoni <ezannoni@redhat.com>
3085
3086 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3087 GNU operators.
3088
da0f9dcd
AC
30892002-10-01 Andrew Cagney <ac131313@redhat.com>
3090
3091 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3092 and that "mi0" syntax has been removed.
3093
bdf64bac
DC
30942002-09-30 David Carlton <carlton@math.stanford.edu>
3095
3096 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3097 * ppc-sysv-tdep.c: #include "gdb_string.h".
3098 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3099 pacify GCC.
3100
54c2a1e6
AC
31012002-10-01 Andrew Cagney <ac131313@redhat.com>
3102
3103 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3104 "vrsave"'s register number.
3105
cedea778
AC
31062002-09-30 Andrew Cagney <ac131313@redhat.com>
3107
3108 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3109 use frame_unwind_signed_register to obtain the PC.
3110 (mips_frame_chain): Handle a generic dummy frame.
3111 (mips_init_extra_frame_info): When a generic dummy frame, don't
3112 re-compute the frame base.
3113 (mips_pop_frame): Handle generic dummy frames.
3114 (mips_gdbarch_init): When generic dummy frames, set
3115 use_generic_dummy_frames, push_dummy_frame to
3116 generic_push_dummy_frame, pc_in_call_dummy to
3117 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3118 generic_save_dummy_frame_tos.
3119
68315eb8
AC
31202002-09-30 Andrew Cagney <ac131313@redhat.com>
3121
3122 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3123 against TOP when TOP was explictly set.
3124 (generic_push_dummy_frame): Set TOP to zero.
3125
3b8630c3
EZ
31262002-09-30 Elena Zannoni <ezannoni@redhat.com>
3127
3128 * event-loop.c (start_event_loop): Rename variable 'result' to
3129 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3130
28ee05e9
KS
31312002-09-30 Keith Seitz <keiths@redhat.com>
3132
3133 * gdb-events.sh (selected_thread_changed): New event.
3134 * gdb-events.c: Regenerated.
3135 * gdb-events.h: Regenerated.
3136
6eecb1c8
HPN
31372002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3138
3139 * MAINTAINERS: Add self to Write After Approval list.
3140
92df71f0
FN
31412002-09-30 Fernando Nasser <fnasser@redhat.com>
3142
3b8630c3
EZ
3143 * disasm.c: New file.
3144 * disasm.h: New file.
92df71f0
FN
3145 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3146 (compare_lines): Ditto.
3147 (dump_insns): Ditto.
3b8630c3
EZ
3148 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3149 argument.
92df71f0 3150 (do_assembly_only): Ditto.
3b8630c3
EZ
3151 (do_disassembly): Renamed to gdb_disassembly and moved to
3152 disasm.c. Sdded uiout argument.
3153 * Makefile.in: Add new files. Reorder SFILES list. Update
3154 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3155
0c22854d
AC
31562002-09-29 Andrew Cagney <ac131313@redhat.com>
3157
3158 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3159 bfd/elf64-alpha-fbsd.c.
3160
e67f2023
AC
31612002-09-29 Andrew Cagney <ac131313@redhat.com>
3162
3163 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3164 i386gnu-tdep.c.
3165
89396210
AC
31662002-09-29 Andrew Cagney <ac131313@redhat.com>
3167
3168 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3169 __FUNCTION__.
3170 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3171 function name.
3172 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3173 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3174 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3175 (S_msg_sig_post_reply): Ditto.
3176
7079c36c
CV
31772002-09-28 Corinna Vinschen <vinschen@redhat.com>
3178
89396210
AC
3179 * sh-tdep.c (sh_use_struct_convention): Use definition according
3180 to ABI.
7079c36c
CV
3181 (sh_push_arguments): Store in register with correct endianess.
3182 (sh_default_store_return_value): Ditto.
3183 (sh_gdbarch_init): Set sizeof long double to 8.
3184
975ac915
MK
31852002-09-27 Mark Kettenis <kettenis@gnu.org>
3186
3187 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3188 Fix some whitespace problems.
3189
9bbe19fb
DC
31902002-09-27 David Carlton <carlton@math.stanford.edu>
3191
3192 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3193 (mcore-tdep.o): Ditto.
3194 (ns32k-tdep.o): Ditto.
3195 (ns32knbsd-tdep.o): Ditto.
3196 (sh3-rom.o): Ditto.
3197 (vax-tdep.o): Ditto.
3198 * cris-tdep.c: #include "gdb_string.h"
3199 * mcore-tdep.c: Ditto.
3200 * ns32k-tdep.c: Ditto.
3201 * ns32knbsd-tdep.c: Ditto.
3202 * sh3-rom.c: Ditto.
3203 * vax-tdep.c: Ditto.
3204
43b2fdc7
DC
32052002-09-27 David Carlton <carlton@math.stanford.edu>
3206
3207 * config/djgpp/fnchange.lst: Add entries for
3208 gdb/testsuite/gdb.c++/m-static files.
3209
e8cfbbd9
JW
32102002-09-27 Jim Wilson <wilson@redhat.com>
3211
3212 * MAINTAINERS: Add myself to the Write After Approval list.
3213
43b2fdc7 32142002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3215
3216 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3217
3218
9f3b7f07
AC
32192002-09-26 Andrew Cagney <ac131313@redhat.com>
3220
3221 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3222 frame.
3223
11269d7e
AC
32242002-09-26 Andrew Cagney <ac131313@redhat.com>
3225
3226 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3227 (rs6000_struct_return_address): Delete variable.
3228 (rs6000_store_struct_return): Update.
3229 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3230 deprecated_extract_struct_value_address.
3231 (rs6000_frame_align): New function.
3232 (rs6000_gdbarch_init): Set frame_align.
3233
f15ab4a7
AC
32342002-09-26 Andrew Cagney <ac131313@redhat.com>
3235
3236 From Grace Sainsbury <graces@redhat.com>:
3237 * Makefile.in (gdbtk-main.o): New target.
3238 (gdb.o): New target.
3239 (main_h): Define.
3240 (main.o): Update dependencies.
3241 (gdb$(EXEEXT)): Add gdb.o.
3242 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3243 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3244 (SUBDIR_GDBTK_CLEAN): Set.
3245 (install-gdbtk): Install the insight binary.
3246 (uninstall-gdbtk): New target.
3247 (all-gdbtk, clean-gdbtk): New rule.
3248 * top.c (use_windows): Default to zero.
3249 * main.c: Include "main.h".
3250 (main): Delete.
3251 (struct captured_main_args): Delete.
3252 (gdb_main): New function.
3253 * main.h: New file.
3254 * gdb.c: New File.
3255
e36180d7
AC
32562002-09-25 Andrew Cagney <cagney@redhat.com>
3257
3258 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3259 (frame_map_regnum_to_name): New function.
3260 (frame_map_name_to_regnum): New function.
3261 * frame.h (frame_map_name_to_regnum): Declare.
3262 (frame_map_regnum_to_name): Declare.
3263 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3264 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3265 * parse.c: Do not include "builtin-regs.h".
3266 (target_map_name_to_register): Delete function.
3267 (write_dollar_variable): Use frame_map_name_to_regnum.
3268 * parser-defs.h (target_map_name_to_register): Delete declaration.
3269 * expprint.c: Include "frame.h".
3270 (print_subexp): Use frame_map_regnum_to_name.
3271 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3272 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3273
8b69000d
AC
32742002-09-25 Andrew Cagney <ac131313@redhat.com>
3275
3276 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3277 wasn't saved, and the next innermost frame is a dummy, return the
3278 dummy frame's link register.
3279
046ca86a
JB
32802002-09-24 Jim Blandy <jimb@redhat.com>
3281
3282 Fix from Paul Breed:
3283 * main.c (captured_main): Add a `break' after the case for 'b'.
3284
94b66fa7
KS
32852002-09-24 Keith Seitz <keiths@redhat.com>
3286
3287 * varobj.c (c_type_of_child): Use get_target_type instead
3288 of TYPE_TARGET_TYPE.
3289
c214a6fd
FN
32902002-09-22 Fernando Nasser <fnasser@redhat.com>
3291
53cb0458
FN
3292 * source.c (get_current_or_default_source_symtab_and_line): Remove
3293 function.
3294 (set_default_source_symtab_and_line): New function. Attempts to
3295 determine a source file to list lines from if one is not currently
3296 defined.
3297 (get_current_source_symtab_and_line): Initialize sal.pc and
3298 sal.end fields.
3299 (set_current_source_symtab_and_line): Mark argument as const.
3300 * source.h: Update declarations and comments.
3301 * linespec.c (decode_line_1): Replace call to removed routine above.
3302 * stack.c (print_frame_info_base): Ditto.
3303 * cli/cli-cmds.c (edit_command): Ditto.
3304 (list_command): Ditto.
3305
33062002-09-22 Fernando Nasser <fnasser@redhat.com>
3307
d6020d45 3308 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3309 sal.pc and sal.end fields.
c214a6fd
FN
3310 (get_current_or_default_source_symtab_and_line): Ditto.
3311 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3312 so we do not cause a new source symtab to be searched for (reverting an
3313 unintentional change from the 2002-09-20 patch).
3314 * scm-lang.c (scm_unpac): Ditto.
3315
cc3b68a5
AC
33162002-09-21 Andrew Cagney <cagney@redhat.com>
3317
3318 * complaints.c (symfile_explanations): Remove new-line from
3319 ``isolated_message''.
3320 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3321 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3322
5835abe7
NC
33232002-09-20 Nick Clifton <nickc@redhat.com>
3324
3325 * NEWS: Announce that V850EA ISA is no longer supported.
3326 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3327
a15ef5f5
DC
33282002-09-20 David Carlton <carlton@math.stanford.edu>
3329
06ba1b39
DC
3330 * Makefile.in (c-lang.o): Correct dependencies.
3331 (utils.o): Gather dependencies.
3332 (charset.o): Move.
a15ef5f5
DC
3333 * c-lang.c: #include "gdb_string.h"
3334
87885426
FN
33352002-09-20 Fernando Nasser <fnasser@redhat.com>
3336
3337 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3338 * cli/cli-cmds.c (list_command): New function. Implements the new
3339 cli edit command.
3340 (_init_cli_cmds): Add new command definition.
3341 * gdb.1: Document edit command.
3342 * doc/gdb.texinfo: Document edit command.
3343
33442002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3345
3346 * source.c: Make global variables current_source_symtab and
3347 current_source_line static.
3348 (list_command): Moved to cli/cli-cmds.c.
3349 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3350 (get_first_line_listed): New accessor function.
3351 (get_lines_to_list): New accessor function.
3352 (get_current_source_symtab_and_line): New function. Retrieves the
3353 position in the source code that we consider current.
3354 (get_current_or_default_source_symtab_and_line): New function.
3355 Like the above but attempts to determine a default position if one
3356 is not currently defined.
3357 (set_current_source_symtab_and_line): New function. Sets the source
3358 code position considered current and returns the previously set one.
3359 (clear_current_source_symtab_and_line): Reset stored information about
3360 a current source line.
3361 (_initialize_source): Remove registration for the "list" command and
3362 its alias.
3363 * source.h: Add declarations for the new functions above.
3364 * symtab.h: Remove declarations for the global variables mentioned
3365 above.
3366 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3367 obtain current source line.
3368 * linespec.c (decode_line_1): Ditto.
3369 * macroscope.c (default_macro_scope): Ditto.
3370 * scm-lang.c (scm_unpac): Ditto.
3371 * stack.c (print_frame_info_base): Ditto.
3372 * symfile.c (clear_symtab_users): Ditto.
3373 * symtab.c (decode_line_spec): Ditto.
3374 * cli/cli-cmds.c (list_command): Moved here from source.c.
3375 (ambiguous_line_spec): Moved here from source.c.
3376 (_init_cli_cmds): Add definition for "list" and its alias.
3377 * Makefile.in: Update dependencies.
3378
ddd216ea
CV
33792002-09-20 Corinna Vinschen <vinschen@redhat.com>
3380
3381 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3382 with what gcc thinks is correct.
3383
6d305052
CV
33842002-09-20 Corinna Vinschen <vinschen@redhat.com>
3385
3386 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3387 multiple register push instruction.
3388
234b45d4
KB
33892002-09-19 Jim Blandy <jimb@redhat.com>
3390
3391 Add support for distinct host and target character sets.
3392 * charset.c, charset.h: New files.
3393 * c-exp.y: #include "charset.h".
3394 (yylex): Convert character and string literals to the target
3395 character set, before returning them as the semantic value of the
3396 token.
3397 * c-lang.c: #include "charset.h".
3398 (c_emit_char): Use charset-specific methods to recognize
3399 characters with backslash escape forms, to decide which characters
3400 to print literally and which to print using numeric escape
3401 sequences, and to convert target characters to host characters
3402 before printing.
3403 * utils.c: #include "charset.h".
3404 (no_control_char_error): New function.
3405 (parse_escape): Use charset-specific methods to recognize
3406 backslash escapes, parse `control character' notation, and convert
3407 characters from the host character set to the target character set.
3408 * configure.in: Set the default host character set.
3409 Check where to find iconv, and what its argument types might be.
3410 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3411 * Makefile.in (SFILES): List charset.c.
3412 (COMMON_OBS): List charset.o.
3413 (charset.o): New rule.
3414 (charset_h): New header dependency variable.
3415 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3416 (LIBICONV): New variable, set by configure.
3417 (CLIBS): Include $(LIBICONV) here.
3418 * aclocal.m4, config.in, configure: Regenerated.
3419
525d6a61
JB
34202002-09-19 Joel Brobecker <brobecker@gnat.com>
3421
3422 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3423 bison 1.35 warning.
3424
3ed93867
RE
34252002-09-19 Richard Earnshaw <rearnsha@arm.com>
3426
3427 * gdb_mbuild.sh: New file.
3428
437666f8
AC
34292002-09-19 Andrew Cagney <ac131313@redhat.com>
3430
3431 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3432
389e51db
AC
34332002-09-18 Andrew Cagney <ac131313@redhat.com>
3434
3435 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3436 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3437 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3438 valops.c, value.h: Revert previous change.
3439
3b4efeaa
MS
34402002-09-18 Michael Snyder <msnyder@redhat.com>
3441
3442 Preliminary support for Objective-C:
3443 * defs.h (language_objc): New enum value.
3444 (puts_filtered_tabular): Declaration only, exported from utils.c.
3445 (skip_quoted): Delete, declared in completer.h.
3446 * c-exp.y: Include completer.h.
3447 * p-exp.y: Ditto.
3448 * jv-exp.y: Ditto.
3449 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3450 New operator enum values.
3451 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3452 * language.c (binop_result_type): Handle language_objc case.
3453 (integral_type, character_type, string_type, boolean_type,
3454 structured_type, binop_type_check): Ditto.
3455 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3456 (struct objc_specific): Add to general_symbol_info.
3457 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3458 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3459 * parser-defs.h (struct objc_class_str): New struct type.
3460 (start_msglist, end_msglist, add_msglist): Declaration only,
3461 exported from objc-lang.c.
3462 * value.h (value_of_local, value_nsstring,
3463 call_function_by_hand_expecting_type): Exported from valops.c.
3464 * valops.c (find_function_addr): Export.
3465 (call_function_by_hand_expecting_type): New function.
3466 (value_of_local): New function.
3467 * symfile.c (init_filename_language_table): Add ".m" extension
3468 for Objective-C.
3469 * utils.c (puts_filtered_tabular): New function.
3470 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3471 (set/show demangle): Extend help-string to refer to ObjC.
3472 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3473 * stabsread.c (symbol_reference_defined): Objective-C symbols
3474 may contain colons: make allowances when scanning stabs strings
3475 for colons.
3476 (objc_find_colon): New function.
3477 * printcmd.c (address_info): If language == objc then print
3478 "self" instead of "this".
3479 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3480 OP_NSSTRING, and OP_SELF.
3481 (prefixify_subexp): Ditto.
3482 * source.c (print_source_lines): Mention objc in comment.
3483 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3484 method names.
3485
b9caf505
AC
34862002-09-18 Andrew Cagney <ac131313@redhat.com>
3487
3488 * complaints.h: Update copyright.
3489 (struct complaints): Declare.
3490 (struct complaint): Make `message' constant.
3491 (internal_complaint): Declare.
3492 (complaint): Declare.
3493 (complaint_root): Delete declaration.
3494 (symfile_complaints): Delete declaration.
3495 (struct complaints): Add opaque declaration.
3496 (clear_complaints): Add a complaints parameter.
3497 * complaints.c: Update copyright.
3498 (enum complaint_series): Define.
3499 (complaint_root): Delete.
3500 (struct complaints): Define.
3501 (complaint_sentinel, symfile_complaint_book): New variables.
3502 (symfile_explanations, symfile_complaints): New variables.
3503 New variables.
3504 (get_complaints): New function.
3505 (vcomplaint): New function.
3506 (complaint): New function.
3507 (internal_complaint): New function.
3508 (complain): Call vcomplain with symfile_complaint.
3509 (clear_complaints): Rewrite.
3510 (_initialize_complaints): Use add_setshow_command.
3511 * Makefile.in (complaints.o): Update dependencies.
3512 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3513 to call to clear_complaints.
3514 (new_symfile_objfile, reread_symbols): Ditto.
3515 (oldsyms_complaint): Delete.
3516 (empty_symtab_complaint, unknown_option_complaint): Delete.
3517 (free_named_symtabs): Use complaint instead of complain.
3518
d2e6263c
MS
35192002-09-18 Michael Snyder <msnyder@redhat.com>
3520
5fb2031a
AC
3521 Contributed by Apple Computer, Inc. Merged with current sources
3522 by Adam Fedor <fedor@doc.com> [cagney].
3523
d2e6263c
MS
3524 * objc-lang.c: First clean-up round: comments, indentation.
3525 * objc-lang.h: Ditto.
3526 * objc-lang.y: Ditto.
3527
dec43320
AC
35282002-09-18 Andrew Cagney <ac131313@redhat.com>
3529
3530 * maint.c (maintenance_internal_error): Print the parameter as the
3531 error message.
3532 (maintenance_internal_warning): New function.
3533 (_initialize_maint_cmds): Add command `maint internal-warning'.
3534
3535 * defs.h (internal_warning, internal_vwarning): Declare.
3536 * utils.c (struct internal_problem): Define.
3537 (internal_vproblem): New function.
3538 (internal_warning): New function.
3539 (internal_vwarning): New function.
3540 (internal_warning_problem, internal_error_problem): New variables.
3541 (internal_verror): Just call internal_vproblem.
3542
b81654f1
MS
35432002-09-18 Michael Snyder <msnyder@redhat.com>
3544
3545 * objc-lang.c: New file, support for Objective-C.
3546 Preliminary check-in, not yet integrated into gdb.
3547 * objc-lang.h: New file.
3548 * objc-exp.y: New file.
3549
0542c381
AC
35502002-09-18 Andrew Cagney <ac131313@redhat.com>
3551
7bda5e4a
AC
3552 * infrun.c (signal_stop_update): Convert definition to ISO C.
3553 (signal_print_update): Ditto.
3554 (signal_pass_update): Ditto.
3555 * inflow.c (terminal_save_ours): Ditto.
3556
5247b418
AC
3557 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3558 comments.
3559
fc60962c
AC
3560 * config/djgpp/fnchange.lst: Handle name clashes between
3561 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3562 bfd/coff-tic80.c.
3563
0542c381
AC
3564 * i386-linux-tdep.h: Fix tipo.
3565
5b924b9b
AF
35662002-09-18 Adam Fedor <fedor@gnu.org>
3567
3568 * MAINTAINERS: Add myself to the Write After Approval list.
3569
5afc051b
JB
35702002-09-18 Jim Blandy <jimb@redhat.com>
3571
3572 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3573 texthigh and textlow to reader-specific structs caused
3574 objfile_relocate to miss them. This is fixable, but the work that
3575 the change was supposed to prepare GDB for never got done anyway.
3576
eb944380
DC
35772002-09-18 David Carlton <carlton@math.stanford.edu>
3578
3579 * MAINTAINERS: Alphabetize Write After Approval list.
3580
948e66d9
DJ
35812002-09-18 Daniel Jacobowitz <drow@mvista.com>
3582
3583 Fix PR gdb/709
3584 * values.c (value_static_field): Call read_var_value.
3585
dc604539
AC
35862002-09-18 Andrew Cagney <ac131313@redhat.com>
3587
3588 * valops.c (hand_function_call): Align the initial stack pointer
3589 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3590 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3591 return value.
3592 * mips-tdep.c (mips_frame_align): New function.
3593 (mips_gdbarch_init): Set frame_align.
3594 * gdbarch.sh (FRAME_ALIGN): New method.
3595 * gdbarch.h, gdbarch.c: Re-generate.
3596
cb7e422f
ML
35972002-09-18 Michal Ludvig <mludvig@suse.cz>
3598
3599 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3600 registers.
3601
a094c6fb
AC
36022002-09-17 Andrew Cagney <ac131313@redhat.com>
3603
3604 * NEWS: Mention that MIPS $fp behavior changed.
3605 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3606 reference to FP_REGNUM.
3607 (mipsnbsd_cannot_store_register): Ditto.
3608 * mips-linux-nat.c: Update copyright.
3609 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3610 (mips_linux_cannot_store_register): Ditto.
3611 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3612 * config/mips/tm-mips.h: Update copyright.
3613 (FP_REGNUM): Delete macro.
3614 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3615 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3616 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3617 (mips_r3041_reg_names, mips_r3051_reg_names)
3618 (mips_r3081_reg_names): Replace "fp" with "".
3619 Fix PR gdb/480.
3620
45cf40d1
TR
36212002-09-17 Theodore A. Roth <troth@verinet.com>
3622
3623 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3624 generic_read_register_dummy() (PR gdb/703).
3625 (avr_push_return_address): #if 0 out unused vars.
3626 (avr_gdbarch_init): Enable use of avr_push_return_address().
3627
c7e701b5
MS
36282002-09-17 Michael Snyder <msnyder@redhat.com>
3629
d76ba2a5 3630 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3631 RTE will take care of it.
3632
20bcf01c
AC
36332002-09-17 Andrew Cagney <ac131313@redhat.com>
3634
3635 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3636 invalid, return SP_REGNUM.
3637
009a9971 36382002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3639
3640 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3641 point registers without sign extension.
3642
135c175f
AC
36432002-09-17 Andrew Cagney <cagney@redhat.com>
3644
3645 * blockframe.c (deprecated_read_register_dummy): Rename
3646 generic_read_register_dummy.
3647 * frame.c (frame_unwind_signed_register): New function.
3648 (frame_unwind_unsigned_register): New function.
3649 * frame.h (frame_unwind_signed_register): Declare.
3650 (frame_unwind_unsigned_register): Declare.
3651 (deprecated_read_register_dummy): Rename
3652 generic_read_register_dummy.
3653
3654 * h8300-tdep.c (h8300_frame_chain): Update.
3655 (h8300_frame_saved_pc): Update.
3656 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3657 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3658 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3659 (s390_frame_chain): Update.
3660 * v850-tdep.c (v850_find_callers_reg): Update.
3661 (v850_frame_saved_pc): Update.
3662 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3663 (m32r_find_callers_reg): Update.
3664 (m32r_frame_saved_pc): Update.
3665 * sh-tdep.c (sh_find_callers_reg): Update.
3666 (sh64_get_saved_pr): Update.
3667 (sh_init_extra_frame_info): Update.
3668 (sh_init_extra_frame_info): Update.
3669 (sh64_init_extra_frame_info): Update.
3670 (sh64_init_extra_frame_info): Update.
3671 * mcore-tdep.c (mcore_find_callers_reg): Update.
3672 (mcore_frame_saved_pc): Update.
3673 (mcore_init_extra_frame_info): Update.
3674 * i386-tdep.c (i386_frame_saved_pc): Update.
3675 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3676 (ia64_init_extra_frame_info): Update.
3677 (ia64_init_extra_frame_info): Update.
3678 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3679 * cris-tdep.c (cris_init_extra_frame_info): Update.
3680 * avr-tdep.c (avr_frame_chain): Update.
3681 (avr_init_extra_frame_info): Update.
3682 (avr_frame_saved_pc): Update.
3683 * arm-tdep.c (arm_find_callers_reg): Update.
3684 (arm_init_extra_frame_info): Update.
3685 (arm_frame_saved_pc): Update.
3686
a741e514
TT
36872002-09-17 Tom Tromey <tromey@redhat.com>
3688
3689 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3690 is "'".
3691
d1a8e808
CV
36922002-09-17 Corinna Vinschen <vinschen@redhat.com>
3693
3694 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3695 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3696 NEXT_PROLOGUE_INSN.
3697 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3698 NEXT_PROLOGUE_INSN.
3699
d9025a18
JB
37002002-09-16 Joel Brobecker <brobecker@gnat.com>
3701
3702 * osfsolib.c: Remove file, replaced by solib-osf.c.
3703 * Makefile.in: Remove compilation rules for osfsolib.c.
3704
1b2ef1b6
DC
37052002-09-16 David Carlton <carlton@math.stanford.edu>
3706
3707 * cp-valprint.c (cp_print_class_method): Correct args to
3708 check_stub_method_group.
3709
928e48af
CV
37102002-09-16 Corinna Vinschen <vinschen@redhat.com>
3711
3712 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3713 `set architecture'. Unify naming convention of functions.
3714 (h8300_skip_prologue): Improve prologue analysis.
3715 (h8300_push_arguments): Rewritten to more closely match GCC's
3716 bizarre argument-passing behavior, along with the comment describing
3717 said behavior.
3718 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3719 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3720 sim, remote-e7000.c, remote-hms.c and remote.c
3721
5e3397bb
MK
37222002-09-15 Mark Kettenis <kettenis@gnu.org>
3723
3724 * i386-tdep.c (gdb_print_insn_i386): Removed.
3725 (i386_print_insn): New function.
3726 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3727 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3728 tm_print_insn_info.
3729
f710f4fc
MK
37302002-09-14 Mark Kettenis <kettenis@gnu.org>
3731
3732 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3733 zero.
3734
db54fef4
CV
37352002-09-14 Corinna Vinschen <vinschen@redhat.com>
3736
3737 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3738 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3739 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3740
2becadee
CF
37412002-09-13 Christopher Faylor <cgf@redhat.com>
3742
3743 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3744
de17c821
DJ
37452002-09-13 Daniel Jacobowitz <drow@mvista.com>
3746
3747 * gdbtypes.c (check_stub_method): Make static.
3748 (check_stub_method_group): New function.
3749 * gdbtypes.h: Update prototypes.
3750 * cp-support.c: New file.
3751 * cp-support.h: New file.
3752
3753 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3754 (update_method_name_from_physname): New function.
3755 (read_member_functions): Correct method names for operators
3756 and v3 constructors/destructors. Separate v2 constructors and
3757 destructors.
3758 * Makefile.in (stabsread.o): Update dependencies.
3759 (SFILES): Add cp-support.c.
3760 (COMMON_OBS): Add cp-support.o.
3761 (cp_support_h, cp-support.o): Add.
3762
3763 * cp-valprint.c (cp_print_class_method): Call
3764 check_stub_method_group instead of check_stub_method. Remove
3765 extraneous QUITs.
3766 * p-valprint.c (pascal_object_print_class_method): Likewise.
3767 * valops.c (search_struct_method): Likewise.
3768 (find_method_list, value_struct_elt_for_reference): Likewise.
3769
e76cff22
AC
37702002-09-13 Andrew Cagney <cagney@redhat.com>
3771
3772 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3773 * gdbarch.h, gdbarch.c: Regenerate.
3774
905abb3f
AC
37752002-09-13 Andrew Cagney <ac131313@redhat.com>
3776
3777 * frame.c (find_saved_register): Delete function.
3778 * frame.h (find_saved_register): Delete declaration.
3779 Fix PR gdb/631.
3780
64159455
AC
3781Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3782
3783 * mips-tdep.c (read_next_frame_reg): Re-hack using
3784 frame_register_unwind.
3785
795e1e11
AC
3786Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3787
3788 * mips-tdep.c (mips_get_saved_register): Re-hack using
3789 frame_register_unwind.
3790
5720643c
JB
37912002-09-12 Joel Brobecker <brobecker@gnat.com>
3792
3793 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3794 vector. Will be useful for Interix.
3795 * gdbarch.h, gdbarch.c: Regenerate.
3796
3797 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3798 name of the malloc function by NAME_OF_MALLOC.
3799
3bada2a2
JB
38002002-09-12 Joel Brobecker <brobecker@gnat.com>
3801
3802 * value.h (find_function_in_inferior): Add const keyword to
3803 one of the parameters. Allows us to invoke this function with
3804 a const char *.
3805 * valops.c (find_function_in_inferior): Likewise.
3806
3db26b01
JB
38072002-09-12 Joel Brobecker <brobecker@gnat.com>
3808
3809 * exec.c (xfer_memory): Fix compilation warning with old versions
3810 of GCC.
3811 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3812
17c5ed2c
DC
38132002-09-12 David Carlton <carlton@math.stanford.edu>
3814
3815 * symtab.h: Run through gdb_indent.h.
3816 Add 2002 to Copyright year list.
3817
ecd1107e
AM
38182002-09-12 Alan Modra <amodra@bigpond.net.au>
3819
3820 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3821 mach constants.
3822 * MAINTAINERS: Add myself to write after approval list.
3823
e64f66d1
JB
38242002-09-11 J. Brobecker <brobecker@gnat.com>
3825
3826 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3827
f9395794
JB
38282002-09-11 J. Brobecker <brobecker@gnat.com>
3829
3830 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3831 Interix.
3832
1a303dec
MS
38332002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3834
3835 * procfs.c (do_detach): Clear current signal, not just fault.
3836 Corrects problem with breakpoint trap signal leaking to detached
3837 process on Tru64.
3838
c0219d42
MS
38392002-09-10 Michael Snyder <msnyder@redhat.com>
3840
3841 * buildsym.c (finish_block): Protect against null pointer.
3842
9d84ac84
AC
38432002-09-10 Andrew Cagney <cagney@redhat.com>
3844
3845 * infcmd.c (default_print_registers_info): Send all output to
3846 ``file'' instead of ``gdb_stdout''.
3847
77d8f2b4
MS
38482002-09-10 Michael Snyder <msnyder@redhat.com>
3849
3850 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3851 LONGEST, and use signed register read (addresses are sign-
3852 extended for mips).
3853
99656a61
SC
38542002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3855
3856 * event-loop.c (gdb_do_one_event): Make public.
3857 * event-loop.h (gdb_do_one_event): Declare.
3858
da12f4d8
JL
38592002-09-10 Jeff Law <law@redhat.com>
3860
3861 * infttrace.c (child_resume): Simplify and rework to avoid
3862 TT_PROC_CONTINUE.
3863
d0aee0c4
FF
38642002-09-09 Fred Fish <fnf@intrinsity.com>
3865
3866 * printcmd.c (print_scalar_formatted): "len" is the number of
3867 target bytes, NOT the number of target bits.
3868
7cb3ec5e
EZ
38692002-09-09 Elena Zannoni <ezannoni@redhat.com>
3870
3871 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3872 * top.c (init_main): Set rl_terminal_name.
3873
4dc81987
AS
38742002-09-08 Aidan Skinner <aidan@velvet.net>
3875
3876 * ada-lang.c (ada_array_bound, ada_type_match,
3877 _initialize_ada_language): Fix K&R definitions.
3878 * ada-tasks.c (get_current_task): Fix K&R definitions.
3879 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3880
842330b4
CF
38812002-09-07 Christopher Faylor <cgf@redhat.com>
3882
3883 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3884 Add XP.
3885
43156d82
MK
38862002-09-06 Mark Kettenis <kettenis@gnu.org>
3887
66da5fd8
MK
3888 * i386-tdep.c (i386_register_virtual_type,
3889 i386_register_convertible, i386_register_convert_to_virtual,
3890 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3891 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3892 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3893 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3894 Don't set push_arguments twice.
3895
4b218c18
MK
3896 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3897 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3898 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3899 sigtramp_end to NULL.
3900 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3901 defines.
3902 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3903
4cc314d5
MK
3904 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3905 whitespace.
3906
43156d82
MK
3907 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3908 * gdbarch.h, gdbarch.c: Re-generate.
3909 * blockframe.c (find_pc_sect_partial_function): Convert to use
3910 SIGTRAMP_START_P predicate.
3911
6672060b
MS
39122002-09-05 Michael Snyder <msnyder@redhat.com>
3913
a90c3637
MS
3914 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3915 generic_dummy_frame method and old method. Also distinguish
3916 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3917 (arm_extract_return_value): Use new regcache method.
a90c3637 3918
6672060b
MS
3919 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3920 adjustment that doesn't conform to the ABI.
3921 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3922 saved regcache, not from current regcache.
3923
299ffc64
AC
39242002-09-05 Andrew Cagney <ac131313@redhat.com>
3925
3926 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3927 * README: Update.
3928
a3a2ee65
JT
39292002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3930
3931 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3932 if arm_apcs_32 is false.
3933
2bc7eea9
AC
39342002-09-04 Andrew Cagney <ac131313@redhat.com>
3935
3936 GDB 5.3 branch created.
3937
8a55a7c5
TR
39382002-09-03 Theodore A. Roth <troth@verinet.com>
3939
3940 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3941 generic_unwind_get_saved_register.
3942
e26fb1d7
DC
39432002-09-03 David Carlton <carlton@math.stanford.edu>
3944
3945 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3946 argument (PR gdb/653). Update call to smash_to_method_type.
3947 (read_structure_scope): Update call to dwarf2_add_member_fn.
3948
30d52491
ML
39492002-09-03 Michal Ludvig <mludvig@suse.cz>
3950
3951 * x86-64-linux-tdep.c: Include gdb_string.h
3952 * x86-64-linux-nat.c: Ditto.
3953
06891d83
JT
39542002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3955
3956 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3957 when YYDEBUG is set to 1.
3958 * c-exp.y: Likewise.
3959 * f-exp.y: Likewise.
3960 * jv-exp.y: Likewise.
3961 * m2-exp.y: Likewise.
3962 * p-exp.y: Likewise.
3963
7d400e77
JT
39642002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3965
3966 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3967 dependency list.
3968 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3969 solib_svr4_fetch_link_map_offsets to
3970 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3971 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3972 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3973 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3974 solib-svr4.o, and solib-legacy.o.
3975 * config/i386/tm-nbsd.h: Include solib.h.
3976
704a27c4
JT
39772002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3978
3979 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3980 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3981 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3982 comment noting that this needs its own target configuration.
3983 * config/i386/nbsd.mt: New file.
3984 * config/i386/nbsdaout.mt: Remove.
3985 * config/i386/nbsdelf.mt: Ditto.
3986 * config/i386/tm-nbsdaout.h: Ditto.
3987
d66198e1
JT
39882002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3989
3990 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3991 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3992 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3993 tdep->sigtramp_end.
3994 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3995 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3996 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3997
3cac699e
JT
39982002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3999
4000 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4001 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4002 * i386-tdep.h (i386bsd_init_abi): New prototype.
4003 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4004 function declaration.
4005 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4006 for NetBSD-a.out or NetBSD-ELF.
4007 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4008 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4009 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4010 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4011 and nbsd-tdep.h.
4012 (i386nbsd_pc_in_sigtramp): New function.
4013 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4014 i386nbsd_pc_in_sigtramp.
4015 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4016 and i386nbsdelf_init_abi OS ABI handlers.
4017 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4018 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4019
7010ca0a
MK
40202002-09-02 Mark Kettenis <kettenis@gnu.org>
4021
4022 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4023 registers if the target really has them.
4024
6dd93b72
JT
40252002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4026
4027 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4028 than nbsd-tdep.h.
4029
2ca8ae21
JT
40302002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4031
4032 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4033 list.
4034 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4035 (alphanbsd_skip_sigtramp_frame): New functions.
4036 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4037 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4038 to alphanbsd_sigcontext_addr.
4039
3d9b49b0
JT
40402002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4041
4042 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4043 list.
4044 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4045 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4046 nbsd_pc_in_sigtramp.
4047 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4048 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4049 * nbsd-tdep.c: Include gdb_string.h.
4050 (nbsd_pc_in_sigtramp): New function.
4051 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4052 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4053 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4054 ppcnbsd_pc_in_sigtramp.
4055 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4056 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4057 shnbsd_pc_in_sigtramp.
4058 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4059 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4060 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4061
c860120c
PM
40622002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4063
4064 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4065 watchpoints to NULL.
4066 (insert_breakpoints): set val field of watchpoints if NULL.
4067
4068
c7612d53
JB
40692002-08-29 Jim Blandy <jimb@redhat.com>
4070
4071 * symtab.c (lookup_symbol_aux): In the cases where we find a
4072 minimal symbol of an appropriate name and use its address to
4073 select a symtab to read and search, use `name' (as passed to us)
4074 as the demangled name when searching the symtab's global and
4075 static blocks, not the minsym's name.
4076
66609862
KS
40772002-08-29 Keith Seitz <keiths@redhat.com>
4078
4079 * stack.c (print_frame_info_base): Always set current_source_symtab
4080 and current_source_line.
4081
151fefe2
JB
40822002-08-29 Donn Terry <donnte@microsoft.com>
4083
4084 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4085
bfb3754e
KS
40862002-08-28 Keith Seitz <keiths@redhat.com>
4087
4088 * stack.c (select_frame): Add FIXME concerning selected-frame
4089 events.
4090 (select_frame_command): Send selected-frame-level-changed
4091 event notification, but only if the level actually changed.
4092 (up_silently_base): Add selected-frame-level-changed event
4093 notification.
4094 (down_silently_base): Likewise.
4095
e822a2a0
AC
40962002-08-28 Andrew Cagney <ac131313@redhat.com>
4097
4098 * Makefile.in: Update dependencies for all gdb/*.c files.
4099
309367d4
TT
41002002-08-27 Tom Tromey <tromey@redhat.com>
4101
4102 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4103 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4104 Update dependencies.
4105 * i387-tdep.c: Include gdb_string.h.
4106 * osabi.c: Likewise.
4107 * i386-linux-nat.c: Likewise.
4108 * lin-lwp.c: Likewise.
4109 * ax-gdb.c: Likewise.
4110 * signals/signals.c: Likewise.
4111 * jv-valprint.c: Likewise.
4112 * p-lang.c: Likewise.
4113 * c-valprint.c: Likewise.
4114 * cp-abi.c: Likewise.
4115
e1507482
EZ
41162002-08-27 Elena Zannoni <ezannoni@redhat.com>
4117
4118 * cli/cli-script.h (copy_command_lines): Export.
4119 * breakpoint.c: Include cli/cli-script.h.
4120 * Makefile.in (breakpoint.o): Update dependencies.
4121
c6510018
MS
41222002-08-26 Michael Snyder <msnyder@redhat.com>
4123
4124 * breakpoint.c (insert_breakpoints): Protect all references
4125 to 'process_warning'. Shorten long lines.
4126
c2b8ed2c
MS
41272002-08-26 Joel Brobecker <brobecker@gnat.com>
4128
4129 * cli/cli-script.c (copy_command_lines): New function.
4130 * defs.h (copy_command_lines): Export.
4131 * testsuite/gdb.base/commands.exp: New tests for commands
4132 attached to a temporary breakpoint, and for commands that
4133 delete the breakpoint they are attached to.
4134
41352002-08-26 Michael Snyder <msnyder@redhat.com>
4136
4137 * breakpoint.c (bpstat_stop_status): Instead of copying the
4138 pointer to the breakpoint commands struct, make a new copy
4139 of the struct and point to that.
4140 (bpstat_clear): Free the commands struct.
4141 (bpstat_clear_actions): Free the commands struct.
4142 (bpstat_do_actions): Free the command actions. Also execute
4143 the local cleanups, instead of deleting them.
4144 (delete_breakpoint): Leave the commands field of the bpstat
4145 chain alone -- it will be freed later.
4146
64b84175
KB
41472002-08-26 Kevin Buettner <kevinb@redhat.com>
4148
4149 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4150 deleted in 2002-08-20 commit. This function is still used by
4151 ppc-linux-nat.c.
4152
55970da6
KS
41532002-08-26 Keith Seitz <keiths@redhat.com>
4154
4155 * gdb-events.sh: Add selected-frame-level-changed event.
4156 * gdb-events.c: Regenerated.
4157 * gdb-events.h: Regenerated.
4158
a790ad35
SC
41592002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4160
4161 Fix PR gdb/393:
4162 * inflow.c (terminal_save_ours): New function to save terminal
4163 settings.
4164 * inferior.h (terminal_save_ours): Declare.
4165 * target.c (debug_to_terminal_save_ours): New function.
4166 (cleanup_target): Defaults to_terminal_save_ours.
4167 (update_current_target): Inherit to_terminal_save_ours.
4168 (setup_target_debug): Set to_terminal_save_ours.
4169 * target.h (target_terminal_save_ours): New to save terminal settings.
4170 (target_ops): New member to_terminal_save_ours.
4171 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4172 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4173 * inftarg.c (init_child_ops): Likewise.
4174 * m3-nat.c (init_m3_ops): Likewise.
4175 * procfs.c (init_procfs_ops): Likewise.
4176 * wince.c (init_child_ops): Likewise.
4177 * win32-nat.c (init_child_ops): Likewise.
4178 * sol-thread.c (init_sol_thread_ops): Likewise.
4179
c00dcbe9
MK
41802002-08-26 Mark Kettenis <kettenis@gnu.org>
4181
3d7f4f49
MK
4182 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4183 use regcache_* functions.
4184 (i386_gdbarch_init): Set store_return_value instead of
4185 deprecated_store_return_value.
4186
c00dcbe9
MK
4187 * regcache.c (regcache_raw_write_signed,
4188 regcache_raw_write_unsigned): New functions.
4189 * regcache.h (regcache_raw_write_signed,
4190 regcache_raw_write_unsigned): New prototypes.
4191
0e0d15ca
AC
41922002-08-25 Andrew Cagney <ac131313@redhat.com>
4193
4194 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4195 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4196 source file dependencies. Cleanup corresponding generator rules.
4197
d3b22ed5
AC
41982002-08-25 Andrew Cagney <ac131313@redhat.com>
4199
4200 * regcache.h (register_offset_hack): Declare.
4201 (regcache_cooked_read_using_offset_hack): Declare.
4202 (regcache_cooked_write_using_offset_hack): Declare.
4203
4204 * regcache.c (register_offset_hack): New function.
4205 (regcache_cooked_read_using_offset_hack): New function.
4206 (regcache_cooked_write_using_offset_hack): New function.
4207 (regcache_dump): Check that the registers, according to their
4208 offset, are packed hard against each other.
4209 (cooked_xfer_using_offset_hack): New function.
4210
bb425013
AC
42112002-08-25 Andrew Cagney <ac131313@redhat.com>
4212
4213 * regcache.c (struct regcache_descr): Add field register_type.
4214 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4215 in as a parameter
4216 (init_regcache_descr): Initialize register_type. Pass the descr
4217 to init_legacy_regcache_descr. Use register_type instead of
4218 REGISTER_VIRTUAL_TYPE.
4219 (register_type): New function.
4220 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4221 * regcache.h (register_type): Declare.
4222
d0403e00
AC
42232002-08-25 Andrew Cagney <ac131313@redhat.com>
4224
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4226 instead of deprecated_store_return_value. Fix fallout from
4227 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4228
0ed04cce
AC
42292002-08-25 Andrew Cagney <ac131313@redhat.com>
4230
4231 * regcache.c (max_register_size): New function.
4232 (init_legacy_regcache_descr): Ensure that max_register_size is
4233 large enough for REGISTER_VIRTUAL_SIZE.
4234 * regcache.h (max_register_size): Declare.
4235
46d79c04
AC
42362002-08-24 Andrew Cagney <ac131313@redhat.com>
4237
4238 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4239 store_return_value.
4240 (e500_extract_return_value): Change type of valbuf pointer to
4241 void.
4242
853c7bd0
MK
42432002-08-24 Mark Kettenis <kettenis@gnu.org>
4244
cd87e769
MK
4245 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4246 workaround.
4247
853c7bd0
MK
4248 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4249 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4250 long long) to prevent compiler warning on 64-bit systems.
4251
ebba8386
AC
42522002-08-23 Andrew Cagney <cagney@redhat.com>
4253
4254 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4255 (DEPRECATED_STORE_RETURN_VALUE): New method.
4256 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258
4259 * values.c (set_return_value): Pass current_regcache to
4260 STORE_RETURN_VALUE.
4261 * arch-utils.h (legacy_store_return_value): Declare.
4262 * arch-utils.c (legacy_store_return_value): New function.
4263 (legacy_extract_return_value): Update parameters.
4264
4265 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4266 STORE_RETURN_VALUE.
4267 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4268 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4269 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4270 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4271 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4272 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4273 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4274 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4275 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4276 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4277
4278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4279 * i386-tdep.c (i386_extract_return_value): Update.
4280 * arch-utils.c (legacy_extract_return_value): Update.
4281 * frv-tdep.c (frv_gdbarch_init): Update.
4282 * cris-tdep.c (cris_gdbarch_init): Update.
4283 * d10v-tdep.c (d10v_gdbarch_init): Update.
4284 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4285 * m68k-tdep.c (m68k_gdbarch_init): Update.
4286 * mcore-tdep.c (mcore_gdbarch_init): Update.
4287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4288 * s390-tdep.c (s390_gdbarch_init): Update.
4289 * sparc-tdep.c (sparc_gdbarch_init): Update.
4290 * sh-tdep.c (sh_gdbarch_init): Update.
4291 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4292 * v850-tdep.c (v850_gdbarch_init): Update.
4293 * avr-tdep.c (avr_gdbarch_init): Update.
4294 * ia64-tdep.c (ia64_gdbarch_init): Update.
4295 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4296 * vax-tdep.c (vax_gdbarch_init): Update.
4297 * alpha-tdep.c (alpha_gdbarch_init): Update.
4298 * arm-tdep.c (arm_gdbarch_init): Update.
4299 * mips-tdep.c (mips_gdbarch_init): Update.
4300 * i386-tdep.c (i386_gdbarch_init): Update.
4301
5bd8c6d0
AC
43022002-08-23 Andrew Cagney <ac131313@redhat.com>
4303
4304 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4305 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4306
e73e1724
MK
43072002-08-24 Mark Kettenis <kettenis@gnu.org>
4308
4309 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4310 problems.
4311
3e6564e1
JB
43122002-08-23 Joel Brobecker <brobecker@gnat.com>
4313
4314 * infrun.c (handle_inferior_event): Move a comment outside of a
4315 function call, in order to avoid indent reformatting this part
4316 of the code in an unreadable way.
4317
81d0cc19
GS
43182002-08-23 Grace Sainsbury <graces@redhat.com>
4319
4320 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4321 when breakpoints fail. Move general breakpoint error messages to
4322 insert_breakpoints.
4323 * breakpoint.c (insert_breakpoints): Change warnings when
4324 breakpoints are nto inserted to specify the type. Remove call to
4325 memory_error when hardware breakpoints can't be inserted. Remove
4326 multiple calls to warning so all messages are sent to the user at
4327 once.
4328 (delete_breakpoints): Make insert error messsages more explicit.
4329
17574093
DJ
43302002-08-23 Daniel Jacobowitz <drow@mvista.com>
4331
4332 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4333 gdbserver/ChangeLog.
4334
8acc2935
MK
43352002-08-23 Mark Kettenis <kettenis@gnu.org>
4336
dfe01d39
MK
4337 * i386-tdep.c: Include "objfiles.h".
4338 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4339 skip_trampoline_code.
4340 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4341 (CPLUS_MARKER): Define to '.'.
4342
8acc2935
MK
4343 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4344 member.
4345 (linux_corefile_thread_callback): Increase args->num_notes.
4346 (linux_make_note_section): Initialize thread_args.num_notes, and
4347 use it to determine whether notes for any threads were created.
4348
151fefe2 43492002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4350
4351 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4352 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4353 and PCUNKILL.
4354 (write_with_trace): Conditionalize out the switch branch handling
4355 PCSHOLD if the corresponding macro is not defined. Likewise for
4356 PRSABORT and PRSTOP.
4357 This change will be needed by the Interix port.
4358
e1507482
EZ
43592002-08-22 Elena Zannoni <ezannoni@redhat.com>
4360
4361 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4362 write_register wherever possible instead of manipulating the
4363 register bytes directly.
4364 Assign VALUE_CONTENTS to a variable and use that.
4365 The GPR numbers are now dependent on the architecture.
4366
96ff0de4
EZ
43672002-08-22 Elena Zannoni <ezannoni@redhat.com>
4368
4369 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4370 ev_offset fields.
4371 (skip_prologue): Add support for BookE/e500 instructions.
4372 (e500_extract_return_value): New function.
4373 (frame_get_saved_regs): Add support for saving ev registers and
4374 pseudo gpr's.
4375 (e500_store_return_value): New function.
4376 (rs6000_gdbarch_init): Move up default intializations of
4377 deprecated_extract_return_value and store_return_value. Overwrite
4378 init of store_return_value with e500 specific version.
4379 Set extract_return_value for e500.
4380
fbefca5b
EZ
43812002-08-22 Elena Zannoni <ezannoni@redhat.com>
4382
4383 * blockframe.c (generic_call_dummy_register_unwind): Use
4384 regcache_cooked_read to catch cases in which the variable is
4385 stored in a pseudo register.
4386
4d210288
AC
43872002-08-22 Andrew Cagney <cagney@redhat.com>
4388
4389 * NEWS: Mention that the i960 has been made obsolete.
4390 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4391 i960-tdep.c
4392 (remote-nrom.o): Obsolete target.
4393 (remote-nindy.o, i960-tdep.o): Ditto.
4394 * remote-nrom.c: Make file obsolete.
4395 * remote-nindy.c, remote-vx960.c: Ditto.
4396 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4397 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4398 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4399 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4400 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4401 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4402 i960-*-vxworks* obsolete.
4403 * MAINTAINERS: Note that the i960 is obsolete.
4404
6c0c456d
CV
44052002-08-21 Corinna Vinschen <vinschen@redhat.com
4406
4407 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4408 detach to allow reinitialization.
4409
9f9d12b3
AC
44102002-08-22 Andrew Cagney <ac131313@redhat.com>
4411
4412 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4413 attempt).
4414
ebeb39fe
JB
44152002-08-22 Jim Blandy <jimb@redhat.com>
4416
4417 * coffread.c (coff_symfile_read): Don't try to read the line
4418 number table from disk if the image file doesn't have a symbol
4419 table; we'll never actually look at the info anyway, and Windows
4420 ships DLL's with bogus file offsets for the line number data.
4421
5bf1c677
EZ
44222002-08-21 Elena Zannoni <ezannoni@redhat.com>
4423
4424 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4425 an e500 executable.
4426
71b8ef93
MS
44272002-08-21 Michael Snyder <msnyder@redhat.com>
4428
4429 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4430 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4431 (DEFAULT_MIPS_TYPE): Delete unused macro.
4432 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4433 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4434
d174216d
JB
44352002-08-21 Jim Blandy <jimb@redhat.com>
4436
4437 * valops.c (value_cast): Simplify and correct logic for doing a
4438 static cast from a pointer to a base class to a pointer to a
4439 derived class.
4440
0ab7a791
AC
44412002-08-21 Andrew Cagney <ac131313@redhat.com>
4442
4443 * infcmd.c (default_print_registers_info): Replace
4444 do_registers_info.
4445 (registers_info): Use gdbarch_print_registers_info instead of
4446 DO_REGISTERS_INFO.
4447 * inferior.h (default_print_registers_info): Replace
4448 do_registers_info.
4449 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4450 (DO_REGISTERS_INFO): Change to a predicate function.
4451 * gdbarch.h, gdbarch.c: Regenerate.
4452
e23792cc
KS
44532002-08-21 Keith Seitz <keiths@redhat.com>
4454
4455 * gdb-events.sh: Add target-changed event.
4456 * gdb-events.c: Regenerated.
4457 * gdb-events.c: Regenerated.
4458 * valops.c (value_assign): Add target-changed event notification
4459 to inlval_register, lval_memory, and lval_reg_frame_relative.
4460
9fb14e79
JB
44612002-08-21 Joel Brobecker <brobecker@gnat.com>
4462
4463 * NEWS: Add an entry regarding the improvement of the next/step
4464 operation on Alpha Tru64 multi-processor machines.
4465
6d39a69f
AC
44662002-08-21 Andrew Cagney <ac131313@redhat.com>
4467
72acd513
AC
4468 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4469 directores.
342af04b 4470 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4471 * Makefile.in (install-gdbtk): Move to install section.
4472 (rdi-share/libangsd.a): Move to end of file.
4473
fa5f27c7
AC
44742002-08-19 Andrew Cagney <ac131313@redhat.com>
4475
4476 * frame.c (frame_register_unwind): When a register, set addrp to
4477 the register's byte.
4478
5a89d8aa
MS
44792002-08-20 Michael Snyder <msnyder@redhat.com>
4480
4481 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4482 used locally, so move them from the target machine header to here.
4483 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4484 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4485 Make static.
4486 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4487
822e978b
AC
44882002-08-20 Andrew Cagney <cagney@redhat.com>
4489
4490 * NEWS: Mention that the Apollo line was made obsolete.
4491 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4492 m68*-hp-hpux* obsolete.
4493 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4494 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4495 * buildsym.c (make_blockvector): Make static.
4496 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4497 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4498 (ALLDEPFILES): Remove dstread.c.
4499 (dstread.o): Obsolete make rule.
4500 * dstread.c: Makefile obsolete.
4501 * dst.h: Ditto.
4502 * config/m68k/hp300hpux.mt: Ditto.
4503 * config/m68k/hp300hpux.mh: Ditto.
4504 * config/m68k/hp300bsd.mt: Ditto.
4505 * config/m68k/hp300bsd.mh: Ditto.
4506 * config/m68k/apollo68b.mt: Ditto.
4507 * config/m68k/apollo68v.mh: Ditto.
4508 * config/m68k/apollo68b.mh: Ditto.
4509
e41b17f0
MS
45102002-08-20 Michael Snyder <msnyder@redhat.com>
4511
4512 * mips-tdep.c (mips_in_return_stub): Make static.
4513 (mips_gdbarch_init): Set in_solib_return_trampoline.
4514 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4515
d50355b6
MS
45162002-08-20 Michael Snyder <msnyder@redhat.com>
4517
4518 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4519 * gdbarch.c, gdbarch.h: Regenerate.
4520 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4521 Add.
4522 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4523
757a7cc6
MS
45242002-08-20 Michael Snyder <msnyder@redhat.com>
4525
4526 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4527 (mips_gdbarch_init): Set skip_trampoline_code,
4528 in_solib_call_trampoline.
4529 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4530 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4531
c8001721
EZ
45322002-08-20 Elena Zannoni <ezannoni@redhat.com>
4533
4534 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4535
4536 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4537 vector type for ev registers.
4538 (e500_pseudo_register_read): New function.
4539 (e500_pseudo_register_write): New function.
4540 (e500_dwarf2_reg_to_regnum): New function.
4541 (PPC_UISA_NOFP_SPRS): New macro.
4542 (PPC_EV_REGS): New macro.
4543 (PPC_GPRS_PSEUDO_REGS): New macro.
4544 (registers_e500): New register set for e500.
4545 (variants): Add e500 variant.
4546 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4547 before setting architectural dependent variations. Initialize ev
4548 registers numbers. Add case for e500 architecture. Set the
4549 number of pseudo registers.
4550
64366f1c
EZ
45512002-08-20 Elena Zannoni <ezannoni@redhat.com>
4552
4553 * rs6000-tdep.c: Clean up comments.
4554
7e78f0ca
AC
45552002-08-20 Andrew Cagney <cagney@redhat.com>
4556
4557 * h8300-tdep.c: Re-indent file.
4558
697f7479
JB
45592002-08-20 Jim Blandy <jimb@redhat.com>
4560
4561 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4562 default for this.
697f7479 4563
e86ae29f
KS
45642002-08-20 Keith Seitz <keiths@redhat.com>
4565
4566 * breakpoints.c (watch_command_1): Use internal breakpoint
4567 when setting a watchpoint_scope breakpoint.
4568
216b504f
EZ
45692002-08-20 Elena Zannoni <ezannoni@redhat.com>
4570
4571 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4572 (build_builtin_type_vec64i): Ditto.
4573 (build_builtin_type_vec128): Ditto.
4574 (build_builtin_type_vec128i): Ditto.
4575
f7ab6ec6
MS
45762002-08-19 Michael Snyder <msnyder@redhat.com>
4577
4578 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4579 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4580 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4581 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4582 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4583 CALL_DUMMY_ADDRESS): Delete.
4584 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4585 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4586 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4587 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4588 push_return_address.
4589 (mips_register_raw_size, mips_eabi_use_struct_convention,
4590 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4591 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4592 mips_init_extra_frame_info, mips_eabi_push_arguments,
4593 mips_n32n64_push_arguments, mips_push_return_address,
4594 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4595 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4596
b5d1566e
MS
45972002-08-19 Michael Snyder <msnyder@redhat.com>
4598
4599 * mips-tdep.c (mips_frame_num_args): New function.
4600 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4601 frame_saved_pc, frame_args_address, frame_locals_address,
4602 frame_num_args, and frame_args_skip.
4603 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4604 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4605 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4606 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4607
2f1488ce
MS
46082002-08-20 Michael Snyder <msnyder@redhat.com>
4609
4610 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4611 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4612 * mips-tdep.c (mips_store_struct_return): New function.
4613 (mips_extract_struct_value_address): New function.
4614 (mips_gdbarch_init): Set store_struct_return and
4615 extract_struct_value_address.
4616
41ff2da1
DC
46172002-08-20 David Carlton <carlton@math.stanford.edu>
4618
4619 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4620 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4621 (read_file_scope): Check that line_header is nonzero before
4622 decoding macro information.
4623
e5451d58
MK
46242002-08-20 Mark Kettenis <kettenis@gnu.org>
4625
4626 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4627 flag the general-purpose registers as floating-point on targets
4628 that don't support the floating-point registers.
4629
4a6daafa
EZ
46302002-08-20 Elena Zannoni <ezannoni@redhat.com>
4631
4632 * rs6000-tdep.c (altivec_register_p): Delete.
4633 (rs6000_do_altivec_registers): Delete.
4634 (rs6000_altivec_registers_info): Delete.
4635 (rs6000_do_registers_info): Delete.
4636 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4637 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4638
ab4327e0
EZ
46392002-08-20 Elena Zannoni <ezannoni@redhat.com>
4640
4641 * infcmd.c (do_registers_info): Print vector registers in hex
4642 format only.
4643 (print_vector_info): Check that printing registers
4644 makes sense.
4645 (print_float_info): Ditto.
4646
cb1d2653
AC
46472002-08-20 Andrew Cagney <ac131313@redhat.com>
4648
4649 * mips-tdep.c (mips_gdbarch_init): Update.
4650 (mips_o32_extract_return_value): Rewrite.
4651 (mips_o32_store_return_value): Rewrite.
4652 (mips_o32_xfer_return_value): New function.
4653 (mips_xfer_register): Tweak debug print message. Allow for
4654 buf_offset when dumping the value transfered.
4655
dfc3d9b2
AC
46562002-08-20 Andrew Cagney <ac131313@redhat.com>
4657
4658 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4659 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4660 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4661 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4662 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4663
7807aa61
MS
46642002-08-14 Michael Snyder <msnyder@redhat.com>
4665
4666 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4667
489461e2
EZ
46682002-08-19 Elena Zannoni <ezannoni@redhat.com>
4669
4670 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4671 register.
4672 (P): New macro to define a register as a pseudo register.
4673 (R, R4, R8, R16, FR32, R64, R0): Updated.
4674 (struct variant): Add new fields for number of pseudo registers
4675 and number of total registers.
4676 (tot_num_registers): New macro replacing....
4677 (num_registers): ...deleted macro.
4678 (num_registers): New function.
4679 (num_pseudo_registers): New function.
4680 (variants): Update all variants to intialize new fields correctly.
4681 Postpone initialization of number of pseudo regs and real regs.
4682 (init_variants): New function.
4683 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4684 registers offsets.
4685
fcaffe4c
DC
46862002-08-19 David Carlton <carlton@math.stanford.edu>
4687
2c2738a0
DC
4688 * valops.c (search_struct_field): Change error message to treat
4689 return value of 0 from value_static_field as meaning that field is
4690 optimized out.
4691 (value_struct_elt_for_reference): Ditto.
4692 * values.c (value_static_field): Treat an unresolved location the
4693 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4694 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4695 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4696 * MAINTAINERS: Add self to Write After Approval list.
4697
88658117
AC
46982002-08-19 Andrew Cagney <ac131313@redhat.com>
4699
4700 * mips-tdep.c (mips_xfer_register): New function.
4701 (mips_n32n64_extract_return_value): Rewrite.
4702 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4703 instead of deprecated_extract_return_value.
4704
21283beb
EZ
47052002-08-19 Elena Zannoni <ezannoni@redhat.com>
4706
4707 * rs6000-tdep.c (TDEP): Delete macro.
4708 (branch_dest): Replace use of TDEP macro with its body.
4709 (rs6000_pop_frame): Ditto.
4710 (rs6000_push_arguments): Ditto.
4711 (rs6000_skip_trampoline_code): Ditto.
4712 (rs6000_frame_saved_pc): Ditto.
4713 (rs6000_frame_chain): Ditto.
4714 (rs6000_register_name): Ditto.
4715 (rs6000_register_byte): Ditto.
4716 (rs6000_register_raw_size): Ditto.
4717 (rs6000_register_virtual_type): Ditto.
4718 (rs6000_register_convertible): Ditto.
4719 (rs6000_convert_from_func_ptr_addr): Ditto.
4720
bf072999
DJ
47212002-08-19 Daniel Jacobowitz <drow@mvista.com>
4722
4723 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4724 conditionally.
4725 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4726 MIPS_LINUX_JB_ELEMENT_SIZE.
4727 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4728 for MAX_REGISTER_RAW_SIZE arrays.
4729 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4730 MIPS_LINUX_JB_ELEMENT_SIZE.
4731
9b949a49
PM
47322002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4733
4734 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4735
6d3e79c6
AS
47362002-08-19 Aidan Skinner <aidan@velvet.net>
4737
4738 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4739 ada-valprint.c ada-tasks.c.
4740 (YYFILES): Add ada-exp.y.
4741 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4742 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4743 (ada-exp.tab.o): New target.
4744
06c0b04e
AC
47452002-08-18 Andrew Cagney <ac131313@redhat.com>
4746
4747 * regcache.c (regcache_xfer_part): New function.
4748 (regcache_raw_read_part): New function.
4749 (regcache_raw_write_part): New function.
4750 (regcache_cooked_read_part): New function.
4751 (regcache_cooked_write_part): New function.
4752 * regcache.h (regcache_raw_read_part): Declare.
4753 (regcache_raw_write_part): Declare.
4754 (regcache_cooked_read_part): Declare.
4755 (regcache_cooked_write_part): Declare.
4756
92d1e331
DJ
47572002-08-18 Daniel Jacobowitz <drow@mvista.com>
4758
4759 * remote.c (remote_open_1): Add async_p.
4760 (remote_async_open_1): Delete.
4761 (open_remote_target): Delete.
4762 (remote_open, extended_remote_open): Update calls to remote_open_1.
4763 (remote_async_open, extended_remote_async_open): Call
4764 remote_open_1 instead of remote_async_open_1.
4765
247055de
MK
47662002-08-19 Mark Kettenis <kettenis@gnu.org>
4767
4768 * blockframe.c: Fix a few coding standard violations.
4769
641eda39
MK
47702002-08-19 Mark Kettenis <kettenis@gnu.org>
4771
0b717710
MK
4772 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4773 here from ...
4774 * config/i386/tm-i386sco5.h: ... here. File removed.
4775 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4776
26d28e12 4777 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4778 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4779 (TM_FILE): Set to tm-i386.h.
4780 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4781 * config/i386/tm-i386v.h: Remove file.
4782 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4783 instead of "i386/tm-i386v.h".
4784 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4785 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4786 "i386/tm-i386v.h".
4787 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4788 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4789 "i386/tm-i386.h".
4790
d4e0bab4
MK
47912002-08-18 Mark Kettenis <kettenis@gnu.org>
4792
4793 * config/i386/nm-i386v.h: Add protection against
4794 multiple-inclusion.
4795 (i386_register_u_addr): Remove prototype.
4796 (register_u_addr): New prototype.
4797 (REGISTER_U_ADDR): Redefine accordingly.
4798 * i386v-nat.c: Improve several comments.
4799 (i386_register_u_addr): Change signature and rename to
4800 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4801 ubase variable.
4802
46cac009
AC
48032002-08-18 Andrew Cagney <ac131313@redhat.com>
4804
4805 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4806 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4807 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4808 deprecated_extract_return_value.
4809 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4810 rename mips_o32o64_push_arguments.
4811 (mips_gdbarch_init): Update.
4812 (mips_extract_return_value): Delete.
4813 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4814 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4815 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4816 (mips_n32n64_extract_return_value): Clone
4817 mips_extract_return_value.
4818 (mips_store_return_value): Delete.
4819 (mips_o32_store_return_value): Clone mips_store_return_value.
4820 (mips_o64_store_return_value): Clone mips_store_return_value.
4821 (mips_eabi_store_return_value): Clone mips_store_return_value.
4822 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4823
d2e4a39e
AS
48242002-08-18 Aidan Skinner <aidan@velvet.net>
4825
0c30c098
AS
4826 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4827 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4828
48292002-08-18 Aidan Skinner <aidan@velvet.net>
4830
4831 * ada-lang.c: Run through gdb_indent.sh.
4832 * ada-lang.h: Run through gdb_indent.sh.
4833 * ada-tasks.c: Run through gdb_indent.sh.
4834 * ada-typeprint.c: Run through gdb_indent.sh.
4835 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4836
01fc4e33
AC
48372002-08-18 Andrew Cagney <ac131313@redhat.com>
4838
4839 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4840 ABI.
4841
d8ee244c
MK
48422002-08-18 Mark Kettenis <kettenis@gnu.org>
4843
c38d8261
MK
4844 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4845
222db64c
MK
4846 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4847 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4848
c2848c82
MK
4849 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4850 write_register_gen instead of write_register_bytes.
4851
d8ee244c
MK
4852 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4853 i[3456]-*-osf1mk* configurations have been made obsolete.
4854 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4855 i[3456]86-*-osf1mk* hosts obsolete.
4856 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4857 targets obsolete.
4858 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4859 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4860 config/i386/i386m3.mt, config/i386/nm-m3.h,
4861 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4862 config/i386/i386mk.mh, config/i386/i386mk.mt,
4863 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4864 obsolete.
4865 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4866 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4867 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4868
61d8d407
AC
48692002-08-18 Andrew Cagney <ac131313@redhat.com>
4870
4871 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4872 (hppa_value_returned_from_stack): Declare.
4873 (hppa_extract_return_value): Declare.
4874 * config/pa/hppa.mt: New file.
4875 * configure.tgt: Recognize hppa*-*-*.
4876 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4877
0c52bd59
MK
48782002-08-18 Mark Kettenis <kettenis@gnu.org>
4879
4880 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4881 comment.
4882
b5686e99
MK
48832002-08-17 Mark Kettenis <kettenis@gnu.org>
4884
4885 * top.c (gdb_rl_operate_and_get_next): Make sure
4886 operate-and-get-next functions correctly even when the history
4887 list is completely filled.
4888
c1bab85b
AC
48892002-08-18 Andrew Cagney <ac131313@redhat.com>
4890
4891 * MAINTAINERS (Target Instruction Set Architectures): Rename
4892 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4893 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4894 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4895 already listed under Host/Native.
4896
4897 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4898 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4899 mips*-*-*.
4900
32089c7c
AC
49012002-08-17 Andrew Cagney <ac131313@redhat.com>
4902
4903 * config/ia64/ia64.mt: New file.
4904 * config/alpha/alpha.mt: New file.
4905 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4906 ia64-linux-gnu. Mention that ia64-elf is broken.
4907 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4908
b4671f85
MK
49092002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4910
4911 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4912 generic_func_frame_valid instead of func_frame_valid.
4913
c8edd8b4
JB
49142002-08-16 Joel Brobecker <brobecker@gnat.com>
4915
4916 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4917 procfs appears to be broken when debugging on multi-processor
4918 machines. So enable software single stepping in order to avoid
4919 using the procfs interface to do next/step operations, using
4920 internal breakpoints instead.
4921
4922 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4923 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4924 make this pc address equal to the value it would have if the
4925 system stepping capability was used. Also set a new flag used
4926 to ensure that we don't readjust the PC one more time later.
4927
4928 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4929 address by DECR_PC_AFTER_BREAK when software single step is
4930 in use for this architecture, as this has already been taken
4931 care of in handle_inferior_event().
4932
238617f6
JB
49332002-08-16 Joel Brobecker <brobecker@gnat.com>
4934
4935 * infrun.c (handle_inferior_event): Minor reformatting, to make
4936 a rather long condition expression easier to read.
4937
541a7aac
AC
49382002-08-16 Andrew Cagney <ac131313@redhat.com>
4939
4940 * Makefile.in (gdbtk.o): Move to end of file.
4941 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4942 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4943 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4944 (gdbtk-wrapper.o, gdbres.o): Ditto.
4945
f92d4a7b
AC
49462002-08-16 Andrew Cagney <ac131313@redhat.com>
4947
4948 * Makefile.in (copying.o): Separate out compile rule.
4949 (hpux-thread.o, procfs.o, signals.o): Ditto.
4950 (v850ice.o, z8k-tdep.o): Ditto.
4951 (tui-file.o): Move to TUI section.
4952 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4953 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4954
1cce71eb
JB
49552002-08-16 Joel Brobecker <brobecker@gnat.com>
4956
4957 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4958 skip_trampoline_code, for better namespace-proofing.
4959
4960 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4961
0851f23d
JB
49622002-08-16 Joel Brobecker <brobecker@gnat.com>
4963
4964 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4965
f8d40ec8
JB
49662002-08-16 Joel Brobecker <brobecker@gnat.com>
4967
4968 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4969 signal, check whether we hit a breakpoint before checking for a
4970 single step breakpoint. Otherwise, GDB fails to notice that a
4971 breakpoint has been hit when stepping onto a breakpoint.
4972
63d022e0
KS
49732002-08-16 Keith Seitz <keiths@redhat.com>
4974
4975 * gdb-events.sh (clear_gdb_event_hooks): New function.
4976 * gdb-events.c: Regenerate.
4977 * gdb-events.h: Regenerate.
4978
6e31adb3
AC
49792002-08-16 Andrew Cagney <ac131313@redhat.com>
4980
4981 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4982 not_a_sw_breakpoint.
4983 * breakpoint.h (bpstat_stop_status): Add parameter names.
4984
c8189ed1
GS
49852002-08-16 Grace Sainsbury <graces@redhat.com>
4986
4987 * remote.c (remote_insert_hw_breakpoint)
4988 (remote_remove_hw_breakpoint): Fix calculation of length field
4989 for Z-packet.
4990
d05285fa
MS
49912002-08-15 Michael Snyder <msnyder@redhat.com>
4992
466d7106
MS
4993 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4994 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4995 (supply_fpregset): Ditto.
4996
d05285fa
MS
4997 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4998 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4999 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5000 (TARGET_READ_SP): Delete.
bf1f5b4c 5001 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5002 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5003 Delete.
5004 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5005 from macros to functions.
bf1f5b4c 5006
d05285fa
MS
5007 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5008 (mips_register_convertible, mips_register_convert_to_virtual,
5009 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5010 (mips_read_sp): New function.
5011 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5012 (mips_do_registers_info): Make static.
5013 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5014 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5015 (mips_register_convert_from_type, mips_register_convert_to_type):
5016 New functions.
5017 (mips_gdbarch_init): Set up function_start_offset,
5018 register_virtual_size, pc_in_sigtramp.
d05285fa 5019
e76f1f2e
AC
50202002-08-15 Andrew Cagney <ac131313@redhat.com>
5021
5022 * infcmd.c (vector_info): New function.
5023 (_initialize_infcmd): Add command "info vector".
5024 (print_vector_info): New function.
5025
5026 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5027 * gdbarch.h, gdbarch.c: Regenerate.
5028
4782dc19
AC
50292002-08-15 Andrew Cagney <ac131313@redhat.com>
5030
5031 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5032 ``print_all''. Only print vector registers when ``print_all''.
5033
23e3a7ac
AC
50342002-08-15 Andrew Cagney <ac131313@redhat.com>
5035
8e186fd6
AC
5036 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5037 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5038
23e3a7ac
AC
5039 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5040 Add `args' parameter.
5041 * gdbarch.h, gdbarch.c: Regenerate.
5042
5043 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5044
5045 * infcmd.c (float_info): Call print_float_info.
5046 (print_float_info): New function. By default, print the
5047 floating-point registers.
5048
5049 * arch-utils.h (default_print_float_info): Delete declaration.
5050 * arch-utils.c (default_print_float_info): Delete function.
5051
e0ca2bb9
MK
50522002-08-16 Mark Kettenis <kettenis@gnu.org>
5053
3f733acc
MK
5054 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5055 out define.
5056
7d8d2918
MK
5057 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5058 FRAME.
5059
1c7cc583
MK
5060 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5061 * configure.host: Make i[3456]86-*-aix host obsolete.
5062 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5063 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5064 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5065 config/i386/xm-i386aix.h: Make files obsolete.
5066 * i386aix-nat.c: Make file obsolete.
5067 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5068 (i386aix-nat.o): Make target obsolete.
5069
e0ca2bb9
MK
5070 * config/i386/nm-gnu.h: Removed.
5071 * config/i386/nm-i386gnu.h: New file.
5072 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5073 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5074 Moved here from ...
5075 * config/i386/tm-i386gnu.h: ... here. Removed.
5076 * config/i386/xm-i386gnu.h: Removed.
5077 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5078 (NAT_FILE): Set to nm-i386gnu.h.
5079 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5080 * i386-tdep.c: New file.
5081 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5082 (i386gnu-tdep.o): Specify dependencies.
5083
16057ec7 50842002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5085
6b99ee2e
MK
5086 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5087 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5088 Adjust a few comments to reflect reality a bit closer.
5089 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5090 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5091 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5092 target_insert_watchpoint, target_remove_watchpoint):
5093 Move defines to ...
5094 * config/i386/nm-i386sco5.h: ... here.
5095 (kernel_u_size): Add prototype. Improve a few comments and add
5096 protection against multiple inclusion.
5097
d9a6f65c
MK
5098 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5099 out define.
5100
047eff6a
MK
5101 * uw-thread.c (SP_ARG0): Define if not already defined.
5102 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5103
dcdb1290
MK
5104 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5105
5d2d0b2a
MK
5106 * config/i386/tm-i386.h: Don't include "regcache.h".
5107
61113f8b
MK
5108 * i387-tdep.h (i387_print_float_info): New prototype.
5109 * i387-tdep.c (print_i387_value, print_i387_ext,
5110 print_i387_status_word, print_i387_control_word): Add `struct
5111 ui_file *' argument and use it for output.
5112 (i387_print_float_info): Renamed from i387_float_info. Add
5113 `struct gdbarch *' and `struct ui_file *' arguments and use the
5114 latter for output.
5115 * i386-tdep.c: Include "i387-tdep.h".
5116 (i386_gdbarch_init): Set print_float_info.
5117 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5118 (FLOAT_INFO): Remove define.
5119
46e0f506
MS
51202002-08-13 Michael Snyder <msnyder@redhat.com>
5121
5122 * mips-tdep.c (mips_push_arguments): Rename to
5123 mips_eabi_push_arguments, and tune for EABI.
5124 (MIPS_REGS_HAVE_HOME_P): Delete.
5125 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5126 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5127 Delete references to mips_regs_have_home_p.
5128
409268de
KS
51292002-08-14 Keith Seitz <keiths@redhat.com>
5130
5131 * Makefile.in (install-gdbtk): Create insight plugin directory.
5132 Install plugins.tcl file.
5133
ffc6a242
KS
51342002-08-14 Keith Seitz <keiths@redhat.com>
5135
5136 * configure.in: Move SUBDIRS to near top of the file so that
5137 --enable options may add things to it.
5138 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5139 * configure: Regenerate.
5140
ebafbe83
MS
51412002-08-13 Michael Snyder <msnyder@redhat.com>
5142
5143 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5144 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5145 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5146
32f6f25d
AC
51472002-08-13 Andrew Cagney <ac131313@redhat.com>
5148
5149 * vax-tdep.c (vax_get_saved_register): Delete function.
5150 (vax_gdbarch_init): Update.
5151 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5152 (ns32k_gdbarch_init): Update.
5153 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5154 (alpha_gdbarch_init): Update.
5155
53826de9
AC
51562002-08-13 Andrew Cagney <cagney@redhat.com>
5157
5158 * regcache.c (init_regcache_descr): Overallocate the
5159 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5160 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5161 nr_raw_registers.
5162 (set_register_cached): Add range checking assertions. Use
5163 current_regcache.
5164
16057ec7 51652002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5166
5167 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5168 numbers for MMX registers.
5169
7b4c2dce
AC
51702002-08-13 Andrew Cagney <cagney@redhat.com>
5171
5172 * i386-tdep.c (i386_gdbarch_init): Use
5173 generic_unwind_get_saved_register.
5174
1e03ad20
KB
51752002-08-13 Kevin Buettner <kevinb@redhat.com>
5176
5177 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5178 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5179 target vector.
5180 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5181 Delete. Add comment regarding this now-deleted target method.
5182
548bcbec
SC
51832002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5184
5185 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5186 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5187 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5188 real PC and the page number (if it's within the memory bank window).
5189 (m68hc11_pseudo_register_write): Likewise when saving.
5190 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5191 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5192 (m68hc11_register_raw_size): And use 32-bit for it.
5193 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5194 16K memory bank is used by the prog; also use the virtual pc.
5195
7df11f59
SC
51962002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5197
5198 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5199 (m68hc11_gdbarch_init): Install it in gdbarch.
5200 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5201 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5202 (MSYMBOL_SIZE): New for documentation.
5203 (insn_return_kind): Enum to specify how a function returns.
5204 (frame_extra_info): Cleanup and record the return mode.
5205 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5206 register in address computation.
5207 (m68hc11_get_return_insn): New to obtain the return instruction used
5208 by the function.
5209 (m68hc11_frame_init_saved_regs): Take into account the return
5210 instruction used by the function for far and interrupt functions.
5211 (m68hc11_init_extra_frame_info): Take into account page register.
5212 (m68hc11_frame_args_address): Adjust according to the return mode.
5213 (show_regs): Print page register only when it's used.
5214
5706502a
SC
52152002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5216
5217 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5218 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5219 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5220 registers.
5221 (m68hc11_register_raw_size): Likewise.
5222
28fc6740
AC
52232002-08-13 Andrew Cagney <cagney@redhat.com>
5224
5225 * i386-tdep.c (i386_register_name): Handle mmx registers.
5226 (mmx_regnum_p): New function.
5227 (i386_mmx_names): New array.
5228 (mmx_num_regs): New variable.
5229 (i386_pseudo_register_read): New function.
5230 (i386_pseudo_register_write): New function.
5231 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5232
5233 * regcache.c (regcache_raw_read_unsigned): New function.
5234 (regcache_raw_read_signed): New function.
5235 * regcache.h (regcache_raw_read_unsigned): Declare.
5236 (regcache_raw_read_signed): Declare.
5237
a378f419
AC
52382002-08-13 Andrew Cagney <cagney@redhat.com>
5239
5240 * regcache.c (regcache_raw_read_as_address): Delete function.
5241 (regcache_cooked_read_signed): New function.
5242 (regcache_cooked_read_unsigned): New function.
5243 * regcache.h (regcache_cooked_read_signed): Declare.
5244 (regcache_cooked_read_unsigned): Declare.
5245 (regcache_raw_read_as_address): Delete declaration.
5246
5247 * blockframe.c (generic_read_register_dummy): Use
5248 regcache_cooked_read_unsigned.
5249 * i386-tdep.c (i386_extract_struct_value_address): Use
5250 regcache_cooked_read_unsigned.
5251
81967506
SC
52522002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5253
5254 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5255 double sizes according to ELF ABI flags.
5256 (gdbarch_tdep): Record elf_flags.
5257
ffe1f3ee
SC
52582002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5259
5260 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5261 (m6812_prolog): They can appear in 68HC12 function prologue.
5262 (m68hc11_frame_chain): Cleanup.
5263
98216c5d
AC
52642002-08-12 Andrew Cagney <cagney@redhat.com>
5265
5266 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5267 declarations.
5268 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5269 (i386_linux_register_raw_size): Delete function.
5270 (i386_linux_init_abi): Update.
5271 * i386-tdep.c (i386_register_raw_size): Delete function.
5272 (i386_register_byte): Delete function.
5273 (i386_gdbarch_init): Update.
5274 (i386_register_size): Delete array.
5275 (i386_register_offset): Delete array.
5276
5277 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5278 (REGISTER_RAW_SIZE): Delete macro.
5279 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5280 (REGISTER_BYTE): Delete macro.
5281
3b19021e
AS
52822002-08-11 Aidan Skinner <aidan@velvet.net>
5283
5284 * ada-lang.c (ada_lookup_partial_symbol)
5285 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5286 prototype names so that grep ^func works properly.
5287
5288 * ada-lang.c (ada_array_element_type)
5289 (ada_lookup_partial_symbol): Fix typos in parameter list.
5290
5291 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5292 Fix prototype names so that grep ^func works properly.
5293
b063e7a2
AC
52942002-08-10 Andrew Cagney <cagney@redhat.com>
5295 Elena Zannoni <ezannoni@redhat.com>
5296 Martin M. Hunt <hunt@redhat.com>
5297
5298 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5299 (build_builtin_type_vec128i): Set the vector bit.
5300 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5301 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5302 (build_builtin_type_vec64): New function.
5303 (build_builtin_type_vec64i): New function.
5304 (build_gdbtypes): Initialize builtin_type_vec64 and
5305 builtin_type_vec64i.
5306
a7e3c2ad
AC
53072002-08-09 Andrew Cagney <cagney@redhat.com>
5308
5309 * regcache.c (regcache_dump): Compare the register offset
5310 with REGISTER_BYTE.
5311 * arch-utils.c (generic_register_byte): New function.
5312 * arch-utils.h (generic_register_byte): Declare.
5313 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5314 * gdbarch.h, gdbarch.c: Regenerate.
5315
af030b9a
AC
53162002-08-09 Andrew Cagney <cagney@redhat.com>
5317
5318 * regcache.c: Include "gdbcmd.h"
5319 (_initialize_regcache): Add commands "maintenance print
5320 registers", "maintenance print raw-registers" and "maintenance
5321 print cooked-registers".
5322 (enum regcache_dump_what): Define.
5323 (dump_endian_bytes): New function.
5324 (regcache_dump): New function.
5325 (regcache_print): New function.
5326 (maintenance_print_registers): New function.
5327 (maintenance_print_raw_registers): New function.
5328 (maintenance_print_cooked_registers): New function.
5329 * Makefile.in (regcache.o): Update dependencies.
5330
cb3d25d1
MS
53312002-08-09 Michael Snyder <msnyder@redhat.com>
5332
5333 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5334 (mips_push_arguments): Correct some comments. Use paddr_nz
5335 for printing addresses in debug output. Replace static
5336 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5337 (mips_n32n64_push_arguments): New function, cloned from
5338 mips_push_arguments and tuned for the n32/n64 ABI.
5339 (mips_push_register): Buffer needs dynamic allocation.
5340 (mips_print_register): Ditto.
5341 (do_gp_register_row): Ditto.
5342 (mips_store_return_value): Ditto.
5343 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5344
2163ab9d
DH
53452002-08-09 Don Howard <dhoward@redhat.com>
5346
5347 * memattr.c (mem_info_command): Print special case of upper bound
5348 as max CORE_ADDR + 1.
5349
b78bcb18
MS
53502002-08-08 Michael Snyder <msnyder@redhat.com>
5351
5352 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5353 returns structs by ref if they're too big to fit in two registers.
5354
ffabd70d
KB
53552002-08-09 Kevin Buettner <kevinb@redhat.com>
5356
5357 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5358 saved regs value.
5359 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5360 mips_find_saved_regs().
5361 (mips_pop_frame): Likewise.
5362
fbcdb4a3
KB
53632002-08-09 Kevin Buettner <kevinb@redhat.com>
5364
5365 * blockframe.c (frame_saved_regs_register_unwind): Revise
5366 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5367 frames are in use.
5368
3c3bea1c
GS
53692002-08-09 Grace Sainsbury <graces@redhat.com>
5370
5371 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5372 T-packets; the 'a' is not taken as a register number.
5373 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5374 (remote_stopped_data_address): New functions; add to target
5375 vector.
5376 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5377 prototypes to match other implementations of this
5378 function. replace integer argument with pointer -- the length
5379 field in the Z-packet is the length of what is pointed to or 1 if
5380 pointer is null. Add to target vector.
5381 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5382 target vector.
5383
5384 From Mark Salter:
5385 * remote.c (remote_wait): Add support to extract optional
5386 watchpoint information from T-packet. Ignore unrecognized
5387 optional info in T-packet.
5388 (remote_async_wait): Ditto.
5389
5d1d95de
CV
53902002-08-09 Corinna Vinschen <vinschen@redhat.com>
5391
5392 * cli/cli-dump.c: Change fopen modes to use binary open modes
5393 as defined in include/fopen-bin.h throughout.
5394
c86b5b38
MS
53952002-08-08 Michael Snyder <msnyder@redhat.com>
5396
5397 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5398
b30590dc
KB
53992002-08-08 Kevin Buettner <kevinb@redhat.com>
5400
5401 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5402 assertion failure by returning early after a warning.
5403
498868ed
KB
54042002-08-08 Kevin Buettner <kevinb@redhat.com>
5405
5406 * mips-tdep.c (mips_find_saved_regs): Make static.
5407 (mips_frame_init_saved_regs): New function.
5408 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5409 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5410 (mips_find_saved_regs): Delete declaration.
5411
b2dd6311
GS
54122002-08-08 Grace Sainsbury <graces@redhat.com>
5413
3c3bea1c
GS
5414 * remote.c (remote_wait, remote_async_wait): Change
5415 thread_num from int to ULONGEST.
5416 (unpack_varlen_hex): Change result parameter from
5417 int * to ULONGEST *.
b2dd6311 5418
ea47855f
AC
54192002-08-08 Andrew Cagney <ac131313@redhat.com>
5420
5421 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5422 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5423 powerpc*-*-*.
5424 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5425
69db8bae
AC
54262002-08-08 Andrew Cagney <cagney@redhat.com>
5427
5428 * gcore.c (override_derive_stack_segment): Delete variable.
5429 (preempt_derive_stack_segment): Delete function.
5430 (derive_stack_segment): Delete function.
5431 (default_derive_stack_segment): Renamed to derive_stack_segment.
5432 (override_derive_heap_segment): Delete variable.
5433 (preempt_derive_heap_segment): Delete function.
5434 (derive_heap_segment): Delete function.
5435 (default_derive_heap_segment): Rename to derive_heap_segment.
5436
cb811fe7
MS
54372002-08-06 Michael Snyder <msnyder@redhat.com>
5438
5439 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5440 * mips-tdep.c (mips_EABI_use_struct_convention,
5441 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5442 New functions. (mips_use_struct_convention): Delete.
5443 (mips_gdbarch_init): set use_gdbarch_convention.
5444
8b389c40
MS
54452002-08-06 Michael Snyder <msnyder@redhat.com>
5446
5447 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5448 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5449 mips_o32_reg_struct_has_addr): New functions.
5450 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5451
5c27f28a
AC
54522002-08-07 Andrew Cagney <ac131313@redhat.com>
5453
5454 * regcache.c (pseudo_register): Delete function.
5455 (fetch_register): Delete function.
5456 (store_register): Delete function.
5457 (regcache_raw_read, legacy_read_register_gen): Use
5458 target_fetch_registers instead of fetch_register.
5459 (legacy_write_register_gen, regcache_raw_write): Use
5460 target_store_register instead of store_register.
5461 (write_register_bytes): Ditto.
5462
5463 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5464 (STORE_PSEUDO_REGISTER): Delete.
5465 * gdbarch.h, gdbarch.c: Regenerate.
5466
5b331675
CV
54672002-08-06 Corinna Vinschen <vinschen@redhat.com>
5468
5469 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5470 write dump file binary.
5471
6acdf5c7
MS
54722002-08-05 Michael Snyder <msnyder@redhat.com>
5473
5474 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5475 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5476 (mips_gdbarch_init): Set N32 target to be mips64.
5477
b2f01c35
KB
54782002-08-06 Kevin Buettner <kevinb@redhat.com>
5479
5480 * frame.c (find_saved_register): Break out of loop once saved
5481 register address is found. Don't mention sparc in loop comment
5482 anymore.
5483
63db5580
KB
54842002-08-06 Kevin Buettner <kevinb@redhat.com>
5485
5486 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5487 mips_default_saved_regsize to 8.
5488
5e34e75e
AC
54892002-08-06 Andrew Cagney <ac131313@redhat.com>
5490
5491 * gcore.c: Do not include <sys/procfs.h>.
5492 * Makefile.in (gcore.o): Update dependencies.
5493
eb4c54a2
AC
54942002-08-06 Andrew Cagney <cagney@redhat.com>
5495
5496 * configure.tgt: Make arc-*-* obsolete.
5497 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5498 * MAINTAINERS: Make arc-elf obsolete.
5499 * arc-tdep.c: Make file obsolete.
5500 * config/arc/arc.mt: Ditto.
5501 * config/arc/tm-arc.h: Ditto.
5502
ced15480
TR
55032002-08-05 Theodore A. Roth <troth@verinet.com>
5504
c1bab85b 5505 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5506
b4743822
AC
55072002-08-05 Andrew Cagney <ac131313@redhat.com>
5508
5509 * mcore-tdep.c (mcore_gdbarch_init): Use
5510 generic_unwind_get_saved_register instead of
5511 generic_get_saved_register.
5512 * v850-tdep.c (v850_gdbarch_init): Ditto.
5513 * frv-tdep.c (frv_gdbarch_init): Ditto.
5514 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5515 * s390-tdep.c (s390_gdbarch_init): Ditto.
5516 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5517 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5518 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5519
3956d554
JB
55202002-08-05 Joel Brobecker <brobecker@gnat.com>
5521
5522 * objfiles.h: Add missing #include "symfile.h"
5523
5524 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5525
8249c0d6
AC
55262002-08-04 Andrew Cagney <ac131313@redhat.com>
5527
5528 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5529 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5530 of FIELD_BITSIZE.
5531
b9d14705
DJ
55322002-08-04 Daniel Jacobowitz <drow@mvista.com>
5533
5534 * NEWS: Cleanup and nitpick.
5535
dd73b9bb
AC
55362002-08-03 Andrew Cagney <ac131313@redhat.com>
5537
5538 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5539
043a27f8
AC
55402002-08-03 Andrew Cagney <ac131313@redhat.com>
5541
5542 * Makefile.in (gdbtk-bp.o): Update dependencies.
5543 (gdbtk-register.o): Ditto.
5544 (gdbtk-varobj.o): Ditto.
5545
46ce284d
AC
55462002-08-03 Andrew Cagney <cagney@redhat.com>
5547
5548 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5549 m68hc11_fetch_pseudo_register.
5550 (m68hc11_pseudo_register_write): Replace
5551 m68hc11_store_pseudo_register.
5552 (m68hc11_gdbarch_init): Update.
5553
b66d6d2e
AC
5554Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5555
5556 * gdbarch.sh: Include "gdb_string.h".
5557 * gdbarch.c: Regenerate.
5558
5559 * regcache.c: Include "gdb_string.h".
5560 * ax-general.c: Ditto.
5561 * varobj.c: Ditto.
5562 * std-regs.c: Ditto.
5563 * fbsd-proc.c: Ditto.
5564 * thread.c: Ditto.
5565
5566 * Makefile.in (regcache.o): Update dependencies.
5567 (thread.o, gdbarch.o): Ditto.
5568 (ax-general.o, gdbarch.o): Ditto.
5569 (varobj.o, std-regs.o): Ditto.
5570 (fbsd-proc.o): Specify dependencies.
5571
29e1842b
AC
55722002-08-02 Andrew Cagney <cagney@redhat.com>
5573
5574 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5575 regnum.
5576 (regcache_cooked_write): Ditto.
5577
68365089
AC
55782002-08-02 Andrew Cagney <ac131313@redhat.com>
5579
5580 * regcache.c (regcache_cooked_read): New function.
5581 (regcache_cooked_write): New function.
5582 (read_register_gen): Rewrite using regcache_cooked_read.
5583 (write_register_gen): Rewrite using regcache_cooked_write.
5584
5585 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5586 Declare.
5587
d8124050
AC
55882002-08-02 Andrew Cagney <cagney@redhat.com>
5589
5590 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5591 Replace the architecture methods register_read and register_write.
5592 * gdbarch.h, gdbarch.c: Regenerate.
5593 * regcache.c (init_regcache_descr): Update.
5594 (read_register_gen): Update.
5595 (write_register_gen): Update.
5596 (supply_register): Update comment.
5597
5598 * sh-tdep.c (sh_gdbarch_init): Update.
5599 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5600 `regcache' and `gdbarch' parameters. Make `buffer' a void
5601 pointer. Update code.
5602 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5603 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5604 void pointer. Update code.
5605 (sh64_register_write): Delete.
5606 (sh4_register_read): Delete.
5607 (sh64_register_read): Delete.
5608 (sh4_register_write): Delete.
5609 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5610 void pointer, `to' parameter a void pointer.
5611 (sh_sh64_register_convert_to_raw): Ditto.
5612
a6425924
KB
56132002-08-01 Kevin Buettner <kevinb@redhat.com>
5614
5615 * mips-tdep.c (mips_register_virtual_type): Use architecture
5616 invariant return values.
5617
ff5922b5
AC
56182002-08-01 Andrew Cagney <cagney@redhat.com>
5619
5620 * linux-proc.c: Include "gdb_string.h".
5621 * Makefile.in (linux-proc.o): Update dependency list.
5622
32a6503c
KB
56232002-08-01 Kevin Buettner <kevinb@redhat.com>
5624
5625 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5626 comment.
5627
ccaa32c7
GS
56282002-08-01 Grace Sainsbury <graces@redhat.com>
5629
5630 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5631 to_insert_watchpoint, to_remove_watchpoint,
5632 to_stopped_by_watchpoint, to_stopped_data_address,
5633 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5634 target vecctor. Define their corresponding macros so they call
5635 them.
5636
5637 * target.c: Add default and debug versions of for
5638 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5639 to_insert_watchpoint, to_remove_watchpoint,
5640 to_stopped_by_watchpoint, to_stopped_data_address,
5641 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5642
78fde5f8
KB
56432002-08-01 Kevin Buettner <kevinb@redhat.com>
5644
5645 * mips-tdep.c (mips_register_virtual_type): New function.
5646 (mips_gdbarch_init): Register mips_register_virtual_type()
5647 with gdbarch machinery.
5648 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5649 this file instead of tm-bigmips.h.
5650 (MIPS_REGSIZE): Delete this macro.
5651 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5652 multiarch version in mips-tdep.c will be found.
5653
db034ac5
AC
56542002-08-01 Andrew Cagney <cagney@redhat.com>
5655
5656 * NEWS: Menion that CHILL has been made obsolete.
5657
5658 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5659 * stabsread.c (read_range_type): Ditto.
5660 * gdbtypes.h: Ditto.
5661 * language.c (binop_type_check): Ditto.
5662 (binop_result_type): Ditto.
5663 (integral_type): Ditto.
5664 (character_type): Ditto.
5665 (string_type): Ditto.
5666 (boolean_type): Ditto.
5667 (structured_type): Ditto.
5668 (lang_bool_type): Ditto.
5669 (binop_type_check): Ditto.
5670 * language.h (_LANG_chill): Ditto.
5671 * dwarfread.c (set_cu_language): Ditto.
5672 * dwarfread.c (CHILL_PRODUCER): Ditto.
5673 * dwarfread.c (handle_producer): Ditto.
5674 * expression.h (enum exp_opcode): Ditto.
5675 * eval.c: Ditto for comments.
5676 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5677 * expprint.c (print_subexp): Ditto.
5678 (print_subexp): Ditto.
5679 * valops.c (value_cast): Ditto.
5680 (search_struct_field): Ditto.
5681 * value.h (COERCE_VARYING_ARRAY): Ditto.
5682 * symfile.c (init_filename_language_table): Ditto.
5683 (add_psymbol_with_dem_name_to_list): Ditto.
5684 * valarith.c (value_binop): Ditto.
5685 (value_neg): Ditto.
5686 * valops.c (value_slice): Ditto.
5687 * symtab.h (union language_specific): Ditto.
5688 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5689 (SYMBOL_DEMANGLED_NAME): Ditto.
5690 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5691 * defs.h (enum language): Ditto.
5692 * symtab.c (got_symtab): Ditto.
5693 * utils.c (fprintf_symbol_filtered): Ditto.
5694
5695 * ch-typeprint.c: Make file obsolete.
5696 * ch-valprint.c: Make file obsolete.
5697 * ch-lang.h: Make file obsolete.
5698 * ch-exp.c: Make file obsolete.
5699 * ch-lang.c: Make file obsolete.
5700
5701 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5702 CHILL_LIB.
5703 (TARGET_FLAGS_TO_PASS): Ditto.
5704 (CHILLFLAGS): Obsolete.
5705 (CHILL): Obsolete.
5706 (CHILL_FOR_TARGET): Obsolete.
5707 (CHILL_LIB): Obsolete.
5708 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5709 ch-valprint.c.
5710 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5711 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5712 ch-lang.o.
5713 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5714 targets.
5715
8aaf0b47
JB
57162002-07-31 Joel Brobecker <brobecker@gnat.com>
5717
5718 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5719 This does not change anything at the moment, but will be helpful
5720 later when full Ada support is integrated.
5721
f3a7b3a5
KB
57222002-07-31 Kevin Buettner <kevinb@redhat.com>
5723
5724 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5725 help message.
5726
fb850278
KB
57272002-07-31 Kevin Buettner <kevinb@redhat.com>
5728
5729 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5730 and save it in a local variable. Use variable in later test.
5731
e3bddbfa
KB
57322002-07-31 Kevin Buettner <kevinb@redhat.com>
5733
5734 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5735 test. (Thanks to Daniel Jacobowitz.)
5736
28d169de
KB
57372002-07-31 Kevin Buettner <kevinb@redhat.com>
5738
5739 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5740 (mips_abi_strings): Add "n64".
5741 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5742
7fe7e44e
KB
57432002-07-31 Kevin Buettner <kevinb@redhat.com>
5744
5745 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5746 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5747
c6caf090
KB
57482002-07-31 Kevin Buettner <kevinb@redhat.com>
5749
5750 * utils.c (host_pointer_to_address, address_to_host_pointer):
5751 Use gdb_assert() instead of explicit call to internal_error().
5752
c41669e0
KB
57532002-07-30 Kevin Buettner <kevinb@redhat.com>
5754
5755 * Makefile.in (rs6000-nat.o): Update dependencies.
5756
5757 From Nicholas Duffek:
5758 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5759 (aix-thread.o): New rule.
5760 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5761 * config/powerpc/aix432.mh: New file.
5762
2fda4977
DJ
57632002-07-30 Daniel Jacobowitz <drow@mvista.com>
5764
5765 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5766 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5767 (fetch_core_registers, ppc_linux_supply_gregset)
5768 (ppc_linux_supply_fpregset): New functions.
5769 (ppc_linux_regset_core_fns): New.
5770 (_initialize_ppc_linux_tdep): Call add_core_fns.
5771 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5772 and ppc_linux_supply_gregset.
5773 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5774 (supply_fpregset): Call ppc_linux_supply_fpregset.
5775 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5776 corelow.o.
5777 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5778
729051e6
DJ
57792002-07-30 Daniel Jacobowitz <drow@mvista.com>
5780
5781 * symtab.c (lookup_symbol): Demangle before lowercasing.
5782
5f8a3188
AC
57832002-07-30 Andrew Cagney <ac131313@redhat.com>
5784
5785 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5786 declaration.
5787 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5788 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5789 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5790 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5791 "gdb_string.h".
5792 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5793 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5794 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5795 (avr-tdep.o, mon960-rom.o): Ditto.
5796 (aout_stabs_gnu_h): Define.
5797 (symtab_h): Remove $(gdb_obstack_h).
5798
67f07146
JB
57992002-07-30 Jim Blandy <jimb@redhat.com>
5800
5801 Patch from David Carlton <carlton@math.stanford.edu>:
5802 * gdbinit.in: Move the `dir' commands that add GDB's own source
5803 directory to the search path to the end, so that the `gdb' source
5804 directory will be searched first.
5805
04ea0df1
AC
58062002-07-29 Andrew Cagney <ac131313@redhat.com>
5807
5808 * gdb_obstack.h: New file.
5809 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5810 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5811 * objfiles.h: Include "gdb_obstack.h".
5812 * Makefile.in (gdb_obstack_h): Define.
5813 (symtab_h): Add $(gdb_obstack_h).
5814 (objfiles_h): Add $(gdb_obstack_h).
5815
5816 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5817 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5818 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5819 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5820 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5821 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5822 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5823 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5824
5825 * Makefile.in (bcache.o): Update dependencies.
5826 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5827 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5828 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5829 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5830 (stabsread.o, symfile.o, symmisc.o): Ditto.
5831 (symtab.o, typeprint.o, macroexp.o): Ditto.
5832 (macrotab.o, mdebugread.o): Ditto.
5833 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5834 (coff_ecoff_h, aout_aout64_h): Define.
5835 (aout_stabs_gnu_h, libaout_h): Define.
5836
d138e37a
AC
58372002-07-29 Andrew Cagney <cagney@redhat.com>
5838
5839 * regcache.c (struct regcache_descr): Rename nr_registers to
5840 nr_cooked_registers. Revise comments describing the structure
5841 member fields.
5842 (init_regcache_descr): Update.
5843 (init_legacy_regcache_descr): Update.
5844 (read_register_gen, write_register_gen): When a cooked register in
5845 the raw register range, directly access the value from the raw
5846 register cache.
5847
460e6ec3
AC
58482002-07-29 Andrew Cagney <ac131313@redhat.com>
5849
5850 * z8k-tdep.c: Do not include "obstack.h".
5851 * h8300-tdep.c, h8500-tdep.c: Ditto.
5852 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5853 * valprint.c, v850-tdep.c: Ditto.
5854 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5855 * mn10200-tdep.c: Ditto.
5856
5857 * Makefile.in (z8k-tdep.o): Update dependencies.
5858 (m68hc11-tdep.o, valprint.o): Ditto.
5859 (v850-tdep.o, d10v-tdep.o): Ditto.
5860 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5861 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5862 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5863 (sh_opc_h, gdb_sim_sh_h): Define.
5864 (elf_sh_h, elf_bfd_h): Define.
5865 (opcode_m68hc11_h): Define.
5866 (OPCODES_SRC, OPCODES_DIR): define.
5867 (OPCODES): Use $(OPCODES_DIR).
5868 (gdb_sim_d10v_h): Rename sim_d10v_h.
5869 (gdb_sim_arm_h): Rename sim_arm_h.
5870
790c9cf0
KB
58712002-07-26 Kevin Buettner <kevinb@redhat.com>
5872
5873 * utils.c (host_pointer_to_address, address_to_host_pointer):
5874 Change internal_error() message to indicate function responsible
5875 for the error.
5876
9647fa49
KB
58772002-07-26 Kevin Buettner <kevinb@redhat.com>
5878
5879 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5880 calls to local_hex_string_custom().
5881
dabbe2c0
KB
58822002-07-26 Kevin Buettner <kevinb@redhat.com>
5883
5884 * irix5-nat.c: Move IRIX shared library support from here...
5885 * solib-irix.c: ...to here. Revised substantially to work with
5886 generic solib framework.
5887
b96d0a4e
KB
5888 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5889 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5890 * mips-irix-tdep.c: New file.
5891
313fb2f6
KB
5892 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5893 (mips-irix-tdep.o, solib-irix.o): New rules.
5894 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5895 solib-irix.o.
5896 * config/mips/irix6.mt (TDEPFILES): Likewise.
5897 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5898
ab2eaf26
KB
58992002-07-26 Kevin Buettner <kevinb@redhat.com>
5900
177e4768 5901 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5902 disabled (via ``#if 0'') includes.
5903
7244546a
KB
59042002-07-26 Kevin Buettner <kevinb@redhat.com>
5905
5906 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5907 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5908 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5909 Add support for the fpscr register.
5910 * rs6000-nat.c (regmap, fetch_inferior_registers)
5911 (store_inferior_registers, fetch_core_registers): Likewise.
5912
dd7be90a
KB
59132002-07-26 Kevin Buettner <kevinb@redhat.com>
5914
5915 * rs6000-nat.c (language.h): Include.
5916 (special_regs): Delete this array.
5917 (regmap): New function.
5918 (fetch_register, store_register): Use regmap() to map gdb
5919 register numbers to ptrace register numbers. Also, use
5920 outputs from regmap() to make decisions regarding type of
5921 ptrace() call to make. In particular, don't compare against
5922 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5923 (fetch_inferior_registers, store_inferior_registers): Where
5924 possible, obtain register numbers from tdep struct. Don't
5925 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5926 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5927 (LAST_UISA_SP_REGNUM): Delete.
5928
11bf77db
KB
59292002-07-25 Kevin Buettner <kevinb@redhat.com>
5930
5931 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5932 (fetch_registers, store_register, fetch_core_registers): Don't
5933 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5934 regcache_collect() as appropriate.
5935 (find_toc_address): Format hex address with local_hex_string().
5936
06afebeb
AC
59372002-07-25 Andrew Cagney <ac131313@redhat.com>
5938
5939 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5940 bfd/elf32-frv.c.
5941
8c554d79
TT
59422002-07-24 Tom Tromey <tromey@redhat.com>
5943
5944 * jv-exp.y: Marked all strings with _().
5945 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5946 internal_error.
5947 (MethodInvocation, CastExpression, parse_number, yyerror,
5948 java_type_from_name, push_expression_name, yylex): Typo fixes.
5949
e4c242d9
DJ
59502002-07-24 Daniel Jacobowitz <drow@mvista.com>
5951
5952 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5953 (tee_file_flush, tee_file_write, tee_file_fputs)
5954 (tee_file_isatty): New.
5955 * ui-file.h (tee_file_new): Add prototype.
5956
ebf56fd3
AS
59572002-07-24 Aidan Skinner <aidan@velvet.net>
5958
5959 * ada-lang.c: Change k&r style function definitions to prototyped
5960 form.
5961 * ada-typeprint.c: Change k&r style function definitions to prototyped
5962 form.
5963 * ada-valprint.c: Change k&r style function definitions to prototyped
5964 form.
5965
7fb623f7
AC
59662002-07-24 Andrew Cagney <cagney@redhat.com>
5967
5968 * README: Remove reference to remote-bug.
5969 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5970 remote-bug.c.
5971 (m88k-nat.o): Delete rule.
5972 (m88k-tdep.o): Delete rule.
5973 (remote-bug.o): Delete rule.
5974 * MAINTAINERS: Mark as obsolete.
5975 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5976 * m88k-tdep.c: Make file obsolete.
5977 * config/m88k/m88k.mh: Ditto.
5978 * config/m88k/delta88v4.mh: Ditto.
5979 * config/m88k/delta88v4.mt: Ditto.
5980 * config/m88k/delta88.mt: Ditto.
5981 * config/m88k/delta88.mh: Ditto.
5982 * remote-bug.c: Ditto.
5983 * config/m88k/tm-delta88.h: Ditto.
5984 * config/m88k/nm-delta88v4.h: Ditto.
5985 * config/m88k/xm-delta88.h: Ditto.
5986 * config/m88k/xm-dgux.h: Ditto.
5987 * config/m88k/tm-m88k.h: Ditto.
5988 * config/m88k/nm-m88k.h: Ditto.
5989 * config/m88k/tm-delta88v4.h: Ditto.
5990 * m88k-nat.c: Ditto.
5991 * cxux-nat.c: Ditto.
5992 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5993 and m88*-*-* obsolete.
5994 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5995 m88*-*-* obsolete.
5996
37611a2b
AC
59972002-07-24 Andrew Cagney <cagney@redhat.com>
5998
5999 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6000 constant. Same for local pointer variables.
6001 (extract_signed_integer): Ditto.
6002 * defs.h (extract_unsigned_integer): Update.
6003 (extract_signed_integer): Update.
6004
1aaa5f99
AC
60052002-07-24 Andrew Cagney <cagney@redhat.com>
6006
6007 * regcache.c (regcache_raw_write): Change buf parameter to a
6008 constant void pointer.
6009 (regcache_raw_read): Change buf parameter to a void pointer.
6010 (legacy_write_register_gen): Change myaddr parameter a constant
6011 void pointer.
6012 (supply_register): Change val parameter to a const void pointer.
6013 * regcache.h (regcache_raw_write): Update declaration.
6014 (regcache_raw_read): Update declaration.
6015 (supply_register): Update declaration.
6016
b4f5539f
TT
60172002-07-24 Tom Tromey <tromey@redhat.com>
6018
6019 * defs.h (gdb_readline_wrapper): Declare.
6020 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6021 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6022 * top.c (gdb_readline_wrapper): New function.
6023 (command_line_input): Use it.
6024
0818c12a
AC
60252002-07-24 Andrew Cagney <cagney@redhat.com>
6026
6027 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6028 regcache_read and regcache_write.
6029 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6030 * regcache.c: Update.
6031 * sh-tdep.c (sh64_push_arguments): Update comment.
6032 (sh_pseudo_register_read): Update.
6033 (sh_pseudo_register_write): Update.
6034 (sh4_register_read): Update.
6035 (sh4_register_write): Update.
6036 (sh64_pseudo_register_read): Update.
6037 (sh64_pseudo_register_write): Update.
6038 (sh64_register_read): Update.
6039 (sh64_register_write): Update.
6040 * i386-tdep.c (i386_extract_return_value): Update.
6041 (i386_extract_struct_value_address): Update.
6042 (i386_extract_return_value): Update.
6043 * blockframe.c (generic_read_register_dummy): Update.
6044 (generic_call_dummy_register_unwind): Update
6045 * infrun.c (write_inferior_status_register): Update.
6046
f7321c06
JB
60472002-07-23 Jim Blandy <jimb@redhat.com>
6048
6049 * parser-defs.h (expression_context_pc): Make this extern.
6050 (Thanks to Michael Snyder.)
6051
2037aebb
AC
60522002-07-23 Andrew Cagney <ac131313@redhat.com>
6053
6054 GDB 5.2.1 released from 5.2 branch.
6055 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6056 * README: Update to mention 5.2.1.
6057
66504d44
MS
60582002-07-23 Mark Salter <msalter@redhat.com>
6059
6060 * remote.c (remote_read_bytes): Fix check for error.
6061
27bae383
KB
60622002-07-22 Kevin Buettner <kevinb@redhat.com>
6063
6064 * aix-thread.c (language.h): Include.
6065 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6066 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6067 Print newlines at end of debug messages.
6068 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6069 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6070
60712002-07-22 Kevin Buettner <kevinb@redhat.com>
6072
6073 * aix-thread.c (ppc-tdep.h): Include.
6074 (special_register_p): New function.
6075 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6076 (store_regs_user_thread): Use register number information from
6077 gdbarch_tdep struct instead of hardcoded offsets relative to
6078 FIRST_UISA_SP_REGNUM.
6079 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6080 special_register_p() instead of using FPLAST_REGNUM and
6081 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6082 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6083 will be MQ's register number.
6084
60852002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6086
6087 * aix-thread.c (ops): Rename to aix_thread_ops.
6088 (base_ops): Rename to base_target.
6089 (ops_attach): Rename to aix_thread_attach.
6090 (ops_detach): Rename to aix_thread_detach.
6091 (ops_resume): Rename to aix_thread_detach.
6092 (ops_wait): Rename to aix_thread_wait.
6093 (ops_kill): Rename to aix_thread_kill.
6094 (init_ops): Rename to init_aix_thread_ops.
6095 (ops_fetch_register): Rename to aix_thread_fetch_register.
6096 (ops_store_register): Rename to aix_thread_store_register.
6097 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6098 (ops_thread_alive): Rename to aix_thread_thread_alive.
6099 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6100 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6101 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6102 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6103 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6104 (store_regs_lib): Rename to store_regs_user_thread.
6105 (store_regs_kern): Rename to store_regs_kernel_thread.
6106
27bae383 61072002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6108
6109 * aix-thread.c (ops_prepare_to_store): Eliminate.
6110 (init_ops): Don't initialize ops.prepare_to_store.
6111 (store_regs_kern): Pre-fetch register buffers from child,
6112 because some registers may not be in the cache. Copy
6113 regs from register cache only if they are cached.
6114 (store_regs_lib): Copy regs from register cache only
6115 if they are cached.
6116 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6117 fill_gprs64): Ditto.
6118
61c5da0b
KB
61192002-07-22 Kevin Buettner <kevinb@redhat.com>
6120
6121 * aix-thread.c (gdb_assert.h): Include.
6122 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6123 register sizes (from register cache) match size of buffer holding
6124 register data.
6125 (fill_sprs32): Change parameter types to match those in the ptrace()
6126 buffer.
6127 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6128 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6129
61302002-07-22 Michael Snyder <msnyder@redhat.com>
6131
6132 * aix-thread.c (supply_sprs64): Cosmetic change.
6133 (supply_sprs32): Cosmetic change.
6134 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6135 (fill_sprs64): Use regcache_collect instead of read_register.
6136 (store_regs_lib): Use regcache_collect instead of
6137 read_register. Use fill_sprs32 instead of fill_sprs64,
6138 if debugging a 32-bit architecture.
6139 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6140 out of the register cache, instead of passing a pointer into
6141 the register cache directly to ptrace. Use regcache_collect
6142 insteaad of read_register.
6143 (ops_prepare_to_store): Use target_read_registers instead
6144 of read_register_bytes.
6145
36479eb1
AS
61462002-07-20 Aidan Skinner <aidan@velvet.net>
6147
6148 * MAINTAINERS: Add self under write after approval.
6149
80ae6ee2
AS
61502002-07-20 Aidan Skinner <aidan@velvet.net>
6151
6152 * ada-tasks.c: Change k&r style function definitions to prototyped
6153 form.
6154
8a8ab2b9
AC
61552002-07-19 Andrew Cagney <ac131313@redhat.com>
6156
6157 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6158 * x86-64-tdep.c: Include "objfiles.h".
6159 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6160 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6161
fb16b900
ML
61622002-07-17 Michal Ludvig <michal@suse.cz>
6163
6164 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6165 (update_context): Initialise cfa variable.
6166
0fe7bf7b
MS
61672002-07-17 Michael Snyder <msnyder@redhat.com>
6168
6169 * aix-thread.c: Shorten some long lines.
6170 Bring comments into line with code spec.
6171
488f131b
JB
61722002-07-18 Joel Brobecker <brobecker@gnat.com>
6173
6174 * infrun.c: Re-indent using gdb_indent.sh.
6175
46c415d2
JB
61762002-07-18 Joel Brobecker <brobecker@gnat.com>
6177
6178 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6179 Leave the indentation temporarily untouched, to minimize the diffs.
6180
cdecafbe
EZ
61812002-07-18 Elena Zannoni <ezannoni@redhat.com>
6182
6183 * stabsread.c: Make os9k sections of the code obsolete,
6184 for real this time.
6185 * stabsread.h: Make os9k sections of the code obsolete.
6186
7b6aa020
ML
61872002-07-18 Michal Ludvig <mludvig@suse.cz>
6188
09ec9b38
ML
6189 * linux-low.c (regsets_store_inferior_registers): Add free()
6190 at the end of a loop to prevent memory leak.
6191 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6192 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6193 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6194 line a comment.
4894ac5d 6195 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6196
233282cd
JB
61972002-07-17 Jim Blandy <jimb@redhat.com>
6198
6199 * macrocmd.c (info_macro_command): Remove newline from error
6200 message.
6201
7b6aa020 62022002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6203
6204 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6205 (sh_gdbarch_init): Use it for sh-dsp.
6206
f7ef9339
KB
62072002-07-16 Kevin Buettner <kevinb@redhat.com>
6208
6209 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6210 64-bit DWARF2 format.
6211
8dd72958
JB
62122002-07-16 Joel Brobecker <brobecker@gnat.com>
6213
6214 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6215 <sys/proc.h> when not available.
6216
a99a9e1b
AC
62172002-07-16 Andrew Cagney <ac131313@redhat.com>
6218
6219 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6220 * stabsread.c: Make os9k sections of the code obsolete.
6221 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6222 * config/i386/i386os9k.mt: Make file obsolete.
6223 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6224 (COMMON_OBS): Remove os9kread.o
6225 (SFILES): Remove os9kread.c.
6226 (os9kread.o, remote-os9k.o): Make target obsolete.
6227 * remote-os9k.c: Make file obsolete.
6228 * os9kread.c: Make file obsolete.
6229 * Makefile.in
6230
7a3085c1
AC
62312002-07-16 Andrew Cagney <ac131313@redhat.com>
6232
6233 * NEWS: Mention that the FR30 has been made obsolete.
6234 * fr30-tdep.c: Make file obsolete.
6235 * config/fr30/tm-fr30.h: Ditto.
6236 * config/fr30/fr30.mt: Ditto.
6237 * configure.tgt: Make fr30-*-elf obsolete.
6238 * MAINTAINERS: Make fr30-elf obsolete.
6239
28a93f5a
PM
62402002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6241
6242 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6243 found is not inside a section.
6244
be006b8b
KB
62452002-07-15 Kevin Buettner <kevinb@redhat.com>
6246
6247 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6248 strerror().
6249 (pdc_realloc): Use xrealloc() instead of realloc().
6250
14fa3751
KB
62512002-07-15 Kevin Buettner <kevinb@redhat.com>
6252
6253 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6254 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6255 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6256 macros.
6257
42cc437f
KB
62582002-07-15 Kevin Buettner <kevinb@redhat.com>
6259
6260 * aix-thread.c (ptrace_check): Eliminate goto.
6261 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6262 problem.
6263
8e2c28d4
KB
62642002-07-15 Kevin Buettner <kevinb@redhat.com>
6265
6266 * aix-thread.c (gdbcmd.h): Include.
6267 (DEBUG, DBG, DBG2, dbg): Eliminate.
6268 (debug_aix_thread): New static global.
6269 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6270 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6271 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6272 invocations to DBG and DBG2 macros to test against
6273 ``debug_aix_thread'' and call fprintf_unfiltered().
6274 (_initialize_aix_thread): Add new command "set debug aix-thread".
6275
30413464
AC
62762002-07-15 Andrew Cagney <ac131313@redhat.com>
6277
6278 From Gerhard Tonn <TON@de.ibm.com>:
6279 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6280 instead of supply_register.
6281
7c43edc1
AC
62822002-07-15 Andrew Cagney <ac131313@redhat.com>
6283
6284 * dwarf2cfi.c: Include "gdb_assert.h".
6285 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6286 non-NULL.
6287 (update_context): Do not use __func__. Add missing ``break''.
6288 (update_context): Do not use __func__.
6289
9364a0ef
EZ
62902002-07-15 Elena Zannoni <ezannoni@redhat.com>
6291
6292 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6293 and its setting. Set gdbarch instruction printing functions
6294 directly. For non-rs6000 case use new function
6295 gdb_print_insn_powerpc.
6296 (gdb_print_insn_powerpc): New function.
6297
3fbeef0b
AC
62982002-07-13 Andrew Cagney <ac131313@redhat.com>
6299
92eb23c5 6300 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6301 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6302 * configure.tgt: Mark d30v-*-* as obsolete.
6303 * d30v-tdep.c: Mark file as obsolete.
6304 * config/d30v/d30v.mt: Ditto.
6305 * config/d30v/tm-d30v.h: Ditto.
6306
aacb1f0a
AS
63072002-07-13 Aidan Skinner <aidan@velvet.net>
6308
6309 * ada-tasks.c (add_task_entry): replace calls to
6310 malloc() with xmalloc
6311 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6312
6313 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6314 ada_finish_decode_line_1, all_sals_for_line
6315 ada_breakpoint_rewrite): replace calls to free() with xfree()
6316
c11d79f2
KB
63172002-07-12 Kevin Buettner <kevinb@redhat.com>
6318
6319 From Nicholas Duffek (with minor changes by Martin Hunt,
6320 Louis Hamilton, and Kevin Buettner):
6321 * aix-thread.c: New file.
6322
8e19ed76
PS
63232002-07-12 Petr Sorfa <petrs@caldera.com>
6324
6325 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6326 complaint for invalid attribute class or form.
6327 (read_func_scope): DW_AT_frame_base
6328 better handling of DW_AT_block*.
6329 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6330 better handling of DW_AT_block*.
6331 (read_common_block): DW_AT_location
6332 better handling of DW_AT_block*.
6333 (read_partial_die): DW_AT_location better handling
6334 of DW_AT_block*.
6335 (new_symbol): DW_AT_external better handling of
6336 DW_AT_block*. Proper initialization of variable
6337 "addr".
6338 (attr_form_is_block): New function that returns true
6339 if the attribute's form is of DW_FORM_block*.
6340
295401f7
DJ
63412002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6342
6343 * valops.c (find_method_list): Remove comment about
6344 removed STATIC_MEMFUNCP argument.
6345 (value_find_oload_method_list): Likewise.
6346
e42dc924
KB
63472002-07-12 Kevin Buettner <kevinb@redhat.com>
6348
6349 From Nicholas Duffek:
6350 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6351 target_new_objfile_hook.
6352
6904b546
KB
63532002-07-12 Kevin Buettner <kevinb@redhat.com>
6354
6355 From Nicholas Duffek:
6356 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6357 csect.
6358
53fe9346
AC
63592002-07-12 Andrew Cagney <cagney@redhat.com>
6360
6361 * MAINTAINERS: Mention --enable-sim-build-warnings.
6362 (m68hc11-elf): Disable sim build warnings.
6363 (m32r-elf): Mark as broken obsolete candidate.
6364 (x86_64-linux-gnu): Mark as buildable with -Werror.
6365 (arm-elf): Change -w to ``,'' which enables warnings but not
6366 -Werror.
6367
af5f3db6
AC
63682002-07-12 Andrew Cagney <ac131313@redhat.com>
6369
6370 * bcache.h: Update copyright.
6371 (struct bstring, struct bcache): Move definition to "bcache.c".
6372 Replaced by opaque declaration.
6373 (bcache_xfree): Replace free_bcache.
6374 (bcache_xmalloc, bcache_memory_used): Declare.
6375
6376 * bcache.c: Update copyright.
6377 (struct bstring, struct bcache): Moved to here from "bcache.h".
6378 Update comments.
6379 (bcache_xmalloc, bcache_memory_used): New functions.
6380 (bcache_xfree): Replace function free_bcache.
6381
6382 * Makefile.in (objfiles.o): Add $(bcache_h).
6383 (objfiles_h): Remove $(bcache_h).
6384 (symfile.o): Add $(bcache_h).
6385
6386 * symmisc.c: Update copyright.
6387 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6388 (print_objfile_statistics): Use bcache_memory_used.
6389
6390 * symfile.c: Include "bcache.h".
6391 (reread_symbols): Use bcache_xfree.
6392 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6393 (add_psymbol_to_list): Pass psymbol_cache by value.
6394 (add_psymbol_with_dem_name_to_list): Ditto.
6395
6396 * objfiles.h: Update copyright.
6397 (struct bcache): Declare opaque. Do not include "bcache.h".
6398 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6399 bcache'' pointers.
6400 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6401
6402 * objfiles.c: Include "bcache.h". Update copyright.
6403 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6404 macro_cache.
6405 (free_objfile): Use bcache_xfree.
6406
444199e7
GS
64072002-07-11 Grace Sainsbury <graces@redhat.com>
6408
6409 * monitor.c (monitor_fetch_register): Make name a constant.
6410 (monitor_store_register): Same.
6411
261397f8
DJ
64122002-07-11 Daniel Jacobowitz <drow@mvista.com>
6413
6414 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6415 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6416 (finish_block) For non-function blocks, hash the symbol table. For
6417 function blocks, mark the symbol table as unhashed.
6418 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6419 (msymbol_hash_iw): Likewise.
6420 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6421 value.
6422 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6423 (lookup_minimal_symbol): Likewise for both.
6424 * symtab.h (struct block): Add `hashtable' flag. Comment the
6425 hashtable.
6426 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6427 (ALL_BLOCK_SYMBOLS): Update.
6428 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6429 (struct symbol): Add `hash_next' pointer.
6430 * symtab.c (lookup_block_symbol): Search using the hash table when
6431 possible.
6432 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6433 (search_symbols, find_addr_symbol): Likewise.
6434
6435 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6436 (read_dst_symtab): Likewise.
6437 * jv-lang.c (get_java_class_symtab): Likewise.
6438 * mdebugread.c: Include "gdb_assert.h".
6439 (shrink_block): Assert that the block being modified is not hashed.
6440 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6441 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6442 symbols.
6443 (dump_symtab): Recognize hashed blocks.
6444 * printcmd.c (print_frame_args): Assert that function blocks do not
6445 have hashed symbol tables.
6446 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6447 (fill_in_ada_prototype, debug_print_block): Likewise.
6448 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6449
6f0eaa01
CV
64502002-07-11 Corinna Vinschen <vinschen@redhat.com>
6451
6452 * stack.c (print_frame): Use result of frame_address_in_block()
6453 instead of fi->pc when evaluating symbols.
6454 (backtrace_command_1): Ditto.
6455
a208b0cb
AC
64562002-07-11 Andrew Cagney <cagney@redhat.com>
6457
6458 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6459 Make static.
6460
6461 * arm-tdep.c (arm_register_name): Make return type constant.
6462
a6b6b089
AC
64632002-07-10 Andrew Cagney <ac131313@redhat.com>
6464
5ae5f592
AC
6465 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6466 prototype.
6467 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6468 * s390-tdep.c (s390_fp_regnum): Ditto.
6469 (s390_read_fp): Ditto.
6470 (s390_pop_frame): Ditto.
6471 (_initialize_s390_tdep): Ditto.
6472 * remote.c (get_remote_state): Ditto.
6473 * procfs.c (mappingflags): Ditto.
6474 * memattr.c (_initialize_mem): Ditto.
6475 * mcore-tdep.c (mcore_pop_frame): Ditto.
6476 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6477 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6478 * language.c (set_case_str): Ditto.
6479 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6480 * frv-tdep.c (new_variant): Ditto.
6481 (frv_stopped_data_address): Ditto.
6482 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6483 (context_alloc): Ditto.
6484 (frame_state_alloc): Ditto.
6485 (unwind_tmp_obstack_init): Ditto.
6486 (unwind_tmp_obstack_free): Ditto.
6487 (cfi_read_fp): Ditto.
6488 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6489 (cris_pop_frame): Ditto.
6490 * c-lang.c (scanning_macro_expansion): Ditto.
6491 (finished_macro_expansion): Ditto.
6492 (c_preprocess_and_parse): Ditto.
6493 * gdbarch.sh: Ditto.
6494 * gdbarch.h, gdbarch.c: Regenerate.
6495 * config/mn10200/tm-mn10200.h: Adjust indentation.
6496 * target.c: Adjust indentation.
6497 * symtab.h: Adjust indentation.
6498 * stabsread.h: Adjust indentation.
6499 * remote-es.c: Adjust indentation.
6500 * os9kread.c: Adjust indentation.
6501
65022002-07-10 Andrew Cagney <ac131313@redhat.com>
6503
a6b6b089
AC
6504 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6505 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6506
a1789893
GS
65072002-07-10 Grace Sainsbury <graces@redhat.com>
6508
6509 * NEWS: Mention m68k, mcore multi-arching.
6510 * MAINTAINERS: Change status of m68k, mcore to reflect
6511 multi-arching.
6512
02f0d45d
DJ
65132002-07-10 Daniel Jacobowitz <drow@mvista.com>
6514
6515 * valops.c (find_overload_match): Free oload_syms.
6516
f15f768e
JB
65172002-07-09 Joel Brobecker <brobecker@gnat.com>
6518
6519 Define HAVE_SYS_PROC_H if sys/proc.h exists
6520 * configure.in: Add check for sys/proc.h
6521 * config.in: Regenerate.
6522 * configure: Regenerate.
6523
902a7139
GS
65242002-07-09 Grace Sainsbury <graces@redhat.com>
6525
6526 * config/m68k/tm-m68k.h: Remove macros wrapped in
6527 #if !GDB_MULTI_ARCH.
6528
a534e424
AC
65292002-07-08 Andrew Cagney <ac131313@redhat.com>
6530
6531 * config.in, configure: Regenerate.
6532
9b94f7bf
MK
65332002-07-08 Mark Kettenis <kettenis@gnu.org>
6534
6535 * dwarf2cfi.c: Include "gcore.h".
6536 (execute_stack_op): Fix implementation of the
6537 DW_OP_deref and DW_OP_deref_size operators by letting do their
6538 lookup in the target.
6539
1d34db41
MK
65402002-07-07 Mark Kettenis <kettenis@gnu.org>
6541
6542 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6543 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6544 tdep->sc_sp_offset.
6545
79d5b63a
DJ
65462002-07-05 Daniel Jacobowitz <drow@mvista.com>
6547
6548 Fix PR gdb/595, gdb/602
6549 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6550 Don't call value_cast, just read the vtable pointer; update comments
6551 to match.
6552
3bb912e8
GS
65532002-07-05 Grace Sainsbury <graces@redhat.com>
6554
6555 * config/mcore/tm-mcore.h: Remove file.
6556 * config/mcore/mcore.mt: Remove definition of TM_FILE
6557 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6558
ca39387d
MK
65592002-07-05 Mark Kettenis <kettenis@gnu.org>
6560
6561 * i386bsd-tdep.c: Include "gdb_string.h".
6562
efdc1108
GS
65632002-07-04 Grace Sainsbury <graces@redhat.com>
6564
6565 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6566 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6567 mcore-tdep.
6568 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6569 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6570 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6571 (RETVAL_REGNUM): Move macros from tm-mcore.h
6572 (mcore_reg_struct_has_addr): New function.
6573 (mcore_gdbarch_init): Added initializations for the macros removed
6574 from tm-mcore.h.
6575
bb21884d
MK
65762002-07-04 Mark Kettenis <kettenis@gnu.org>
6577
6578 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6579 traditonal string branding within the ELF header.
6580
228c6d41
DJ
65812002-07-04 Daniel Jacobowitz <drow@mvista.com>
6582
6583 * symtab.c (remove_params): New function.
6584 (make_symbol_overload_list): Use it instead of cplus_demangle.
6585 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6586
2404952e
MK
65872002-07-04 Mark Kettenis <kettenis@gnu.org>
6588
e5e4acad
MK
6589 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6590
baadce09
MK
6591 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6592 New variables.
6593 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6594 and tdep->sigtramp_end.
6595 * i386obsd-nat.c: New file.
6596 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6597
2404952e
MK
6598 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6599 Don't call get_current_frame().
6600
9b4f1ba7
PM
66012002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6602
6603 * i386-nat.c (child_post_startup_inferior): New function
6604 calling i386_cleanup_dregs if
6605 I386_USE_GENERIC_WATCHPOINTS is defined.
6606 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6607 conditional to acknowledge that i386-nat.c has its
6608 own child_post_startup_inferior function.
6609
c0d1d883
MK
66102002-07-04 Mark Kettenis <kettenis@gnu.org>
6611
00f8375e
MK
6612 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6613 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6614 instead of MAX_REGISTER_RAW_SIZE.
6615 (i386_extract_return_value, i386_extract_struct_value_address):
6616 Convert to use regcache.
6617 (i386_gdbarch_init): Set max_register_raw_size and
6618 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6619 Set extract_return_value and extract_struct_value_address instead
6620 of their deprecated variants.
6621
c0d1d883
MK
6622 Convert i386 target to generic dummy frames.
6623 * i386-tdep.c: Include "symfile.h".
6624 (i386_frameless_signal_p): Consider a function to be frameless if
6625 the pc points at the first instruction of the function.
6626 (i386_frame_chain): Handle (generic) call dummies.
6627 (i386_frame_saved_pc): Likewise.
6628 (i386_frame_init_saved_regs): Remove code dealing with call
6629 dummies on the stack.
6630 (i386_push_dummy_frame): Removed.
6631 (i386_call_dummy_words): Removed.
6632 (i386_fix_call_dummy): Removed.
6633 (i386_push_return_address): New function.
6634 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6635 parameter, and don't call get_current_frame.
6636 (i386_pop_frame): New function.
6637 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6638 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6639 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6640 call_dummy_length to 0, set call_dummy_words to NULL, set
6641 sizeof_call_dummy_words to 0, set fix_call_dummy to
6642 generic_fix_call_dummy, set pc_in_call_dummy to
6643 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6644 generic_push_dummy_frame, set push_return_address to
6645 i386_push_return_address and set frame_chain_valid to
6646 generic_file_frame_chain_valid.
6647
049ee0e4
AC
66482002-07-03 Andrew Cagney <ac131313@redhat.com>
6649
6650 * gdbarch.sh (struct regcache): Add opaque declaration.
6651 (EXTRACT_RETURN_VALUE): New architecture method.
6652 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6653 * gdbarch.h, gdbarch.c: Regenerate.
6654 * arch-utils.c (legacy_extract_return_value): New function.
6655 * arch-utils.h (legacy_extract_return_value): Declare.
6656 * values.c (value_being_returned): Re-enable code handling
6657 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6658 deprecated_grub_regcache_for_registers call to block handling
6659 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6660 (EXTRACT_RETURN_VALUE): Do not define.
6661
4e0d9804
GS
66622002-07-03 Grace Sainsbury <graces@redhat.com>
6663
6664 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6665 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6666 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6667 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6668 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6669 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6670 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6671 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6672 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6673 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6674 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6675 argument so the function fits the prototype in the architecture
6676 vector.
6677 (mcore_pop_frame): Remove argument so the function fits the
6678 prototype. Use get_current_frame instead of the argument.
6679 (mcore_push_arguments): Change type of struct_return so the
6680 function can be used in the architecture vector.
6681 (mcore_store_struct_return): Add.
6682 (mcore_frame_init_saved_regs): Add.
6683 (mcore_gdbarch_init): Add function calls to replace the macros
6684 removed from tm-mcore.h
6685
36160dc4
AC
66862002-07-03 Andrew Cagney <ac131313@redhat.com>
6687
6688 * infcmd.c (print_return_value): Remove compatibility code calling
6689 deprecated_grub_regcache_for_registers.
6690
6691 * values.c: Include "regcache.h".
6692 (value_being_returned): Update. Use
6693 deprecated_grub_regcache_for_registers to extract the register
6694 buffer address.
6695 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6696 ``struct regcache''.
6697 * Makefile.in (values.o): Add dependency on $(regcache_h).
6698
6699 * inferior.h (run_stack_dummy): Change type of second parameter to
6700 a ``struct regcache''.
6701 * valops.c (hand_function_call): Change type of retbuf to ``struct
6702 regcache''. Allocate using regcache_xmalloc, clean using
6703 make_cleanup_regcache_xfree.
6704 * infcmd.c (run_stack_dummy): Update. Use
6705 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6706
6707 * regcache.c (do_regcache_xfree): New function.
6708 (make_cleanup_regcache_xfree): New function.
6709 * regcache.h (make_cleanup_regcache_xfree): Declare.
6710
e64d9b3d
MH
67112002-07-03 Martin M. Hunt <hunt@redhat.com>
6712
4dd79c29
MH
6713 * event-top.c (command_line_handler): Don't read past
6714 beginning of buffer.
e64d9b3d 6715
4dd79c29
MH
67162002-07-03 Martin M. Hunt <hunt@redhat.com>
6717
e64d9b3d
MH
6718 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6719 struct frame_id.
6720 (varobj_create): Store frame_id for root.
6721 (varobj_gen_name): Use xasprintf.
6722 (varobj_update): Save and restore frame using get_frame_id() and
6723 frame_find_by_id().
6724 (create_child): Use xasprintf.
6725 (new_root_variable): Initialize frame_id.
6726 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6727 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6728 to prevent memory leak.
6729
26e6c56a
AC
67302002-07-03 Andrew Cagney <ac131313@redhat.com>
6731
6732 * valops.c (hand_function_call): Move declaration of retbuf to
6733 start of function, allocate using malloc, add a cleanup but before
6734 the inf_status cleanup, cleanup the buffer. Rename local variable
6735 old_chain to inf_status_cleanup.
6736
f436dd25
MH
67372002-07-03 Martin M. Hunt <hunt@redhat.com>
6738
6739 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6740
6741 * cli/cli-decode.c (cmd_func_p): New function.
6742 (cmd_func): New function.
6743
6744 * command.h: Add cmd_func() and cmd_func_p().
6745
4cfe2084
GS
67462002-07-03 Grace Sainsbury <graces@redhat.com>
6747
6748 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6749 (REGISTER_SIZE): Remove.
6750 (MAX_REGISTER_RAW_SIZE): Remove.
6751 (REGISTER_VIRTUAL_TYPE): Remove.
6752 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6753 (REGISTER_NAME): Remove.
6754 (USE_GENERIC_DUMMY_FRAMES): Remove.
6755 (CALL_DUMMY): Remove.
6756 (CALL_DUMMY_START_OFFSET): Remove.
6757 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6758 (CALL_DUMMY_LOCATION): Remove.
6759 (FIX_CALL_DUMMY): Remove.
6760 (CALL_DUMMY_ADDRESS): Remove.
6761 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6762 (SAVE_DUMMY_FRAME_TOS): Remove.
6763 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6764 (mcore_register_virtual_type): New function.
6765 (mcore_register_byte): New function.
6766 (mcore_register_size): New function.
6767 (mcore_register_name): New function.
6768 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6769 macros removed from tm-mcore.h.
6770 (mcore_dump_tdep): Add.
6771 (_initialize_mcore_tdep): Add gdbarch_register call.
6772
4fd667e9
MK
67732002-07-03 Mark Kettenis <kettenis@gnu.org>
6774
6775 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6776 frameless_look_for_prologue, such that we actually call this
6777 function.
6778
42f99ac2
JB
67792002-07-02 Joel Brobecker <brobecker@gnat.com>
6780
6781 * frame.h (frame_address_in_block): New function.
6782
6783 * blockframe.c (frame_address_in_block): New function extracted
6784 from get_frame_block().
6785 (get_frame_block): Use frame_address_in_block().
6786 (block_innermost_frame): Use frame_address_in_block() to match
6787 the frame pc address against the block boundaries rather than
6788 the frame pc directly. This prevents a failure when a frame pc
6789 is actually a return-address pointing immediately after the end
6790 of the given block.
6791
103a1597 67922002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6793
6794 * MAINTAINERS: Add self under write after approval.
6795
67962002-07-02 Grace Sainsbury <graces@redhat.com>
6797
103a1597
GS
6798 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6799 used in architecture vector. The default is
6800 m68k_local_breakpoint_from_pc.
6801 (m68k_local_breakpoint_from_pc): Add.
6802 (enum): Add register numbers from tm-m68k.h.
6803 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6804 vector.
6805 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6806 GDB_MULTI_ARCH_PARTIAL.
6807 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6808 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6809 m68k-tdep.c.
6810 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6811 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6812 to enum in m68k-tdep.c
6813
7a5a0534
JB
68142002-07-02 Joel Brobecker <brobecker@gnat.com>
6815
6816 * solib-osf.c (open_map): Compute the list of shared libraries
6817 loaded by the inferior, rather than the list of libraries loaded
6818 by GDB itself. Otherwise, GDB ends up reading the symbols from
6819 the wrong shared libraries...
6820
6f558d74
MK
68212002-07-02 Mark Kettenis <kettenis@gnu.org>
6822
b7d15bf7
MK
6823 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6824 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6825 macros.
6826 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6827 Remove functions.
6828 (FRAMELESS_SIGNAL): Remove function.
6829 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6830 i386_linux_saved_pc_after_call): Removed.
6831 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6832 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6833 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6834
6bff26de
MK
6835 * i386-tdep.c (i386_frameless_signal_p): New function.
6836 (i386_frame_chain): Deal with frameless signals.
6837 (i386_sigtramp_saved_sp): New function.
6838 (i386_frame_saved_pc): Deal with frameless signals.
6839 (i386_saved_pc_after_call): Make sure the correct value is
6840 returned just after entry into a sigtramp.
6841 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6842 i386fbsd4_sc_sp_offset): New variables.
6843 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6844 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6845 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6846 similiar to what we already did for sc_pc_offset.
6847 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6848 tdep->sc_sp_offset.
6849
6f558d74
MK
6850 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6851
145564b7
ML
68522002-07-02 Michal Ludvig <mludvig@suse.cz>
6853
6854 * config/i386/tm-x86-64linux.h: New.
6855 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6856 definitions.
6857 * config/i386/nm-x86-64.h: Rename to ...
6858 * config/i386/nm-x86-64linux.h: ... this one.
6859 * config/i386/x86-64linux.mh: Reflect the above change.
6860
3a1e71e3
MK
68612002-07-01 Mark Kettenis <kettenis@gnu.org>
6862
21d0e8a4
MK
6863 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6864 with sigcontext_addr. Add sc_sp_offset.
6865 (i386bsd_sigtramp_saved_pc): Remove prototype.
6866 (i386bsd_sicontext_addr): Add prototype.
6867 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6868 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6869 (i386_svr4_sigtramp_saved_pc): Removed.
6870 (i386_svr4_sigcontext_addr): New function.
6871 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6872 Initialize tdep->sigcontext_addr instead. Initialize
6873 tdep->sc_pc_offset and tdep->sc_sp_offset.
6874 (i386_gdbarch_init): Likewise.
6875 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6876 any more.
6877 (i386bsd_sigtramp_saved_pc): Remove function.
6878 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6879 Initialize tdep->sigcontext_addr instead. Initialize
6880 tdep->sc_pc_offset.
6881 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6882 of tdep->sigtramp_saved_pc.
6883 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6884 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6885 instead.
6886
3a1e71e3
MK
6887 * i386-tdep.c (i386_frameless_function_invocation,
6888 i386_frame_num_args, i386_frame_init_saved_regs,
6889 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6890 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6891 i386_extract_return_value, i386_store_return_value,
6892 i386_extract_struct_value_address, i386_register_virtual_type,
6893 i386_register_convertible, i386_register_convert_to_virtual,
6894 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6895 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6896 static.
6897
52e9098c
MK
68982002-07-01 Mark Kettenis <kettenis@gnu.org>
6899
77b13a25
MK
6900 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6901
52e9098c
MK
6902 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6903 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6904 this macro. Include "value.h".
6905
1b372fff
AS
69062002-06-30 Aidan Skinner <aidan@velvet.net>
6907
6908 * ada-exp.tab.c: remove as it's a generated file
6909 * ada-lex.c: remove as it's a generated file
6910
9c5045b5
MK
69112002-06-30 Mark Kettenis <kettenis@gnu.org>
6912
4a93c5bb
MK
6913 * config/i386/tm-i386.h (struct frame_info, struct
6914 frame_saved_regs, struct value, struct type): Remove forward
6915 declarations.
6916
322d4fe0
MK
6917 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6918 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6919 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6920 (FILL_FPXREGSET): Define.
6921
fdd8263d
MK
6922 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6923
482e577b
MK
6924 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6925 i[3456]86-*-netbsd* case.
6926 * config/i386/tm-obsd.h: Removed.
6927 * config/i386/obsd.mt: Removed.
6928 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6929 core-aout.o.
6930 (MH_CFLAGS): Add -DYYDEBUG=0.
6931
6916549a
MK
6932 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6933 i386nbsd_sc_pc_offset on OpenBSD too.
6934
9c5045b5
MK
6935 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6936 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6937 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6938 define.
6939 * i386bsd-tdep.c: Include "arch-utils.h".
6940 (i386bsd_aout_in_solib_call_trampoline): New function.
6941 (i386bsd_init_abi): Set in_solib_call_trampoline to
6942 i386bsd_aout_in_solib_call_trampoline.
6943 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6944 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6945
aa84d1bb
AC
69462002-06-28 Andrew Cagney <ac131313@redhat.com>
6947
6948 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6949 (struct obstack, struct bcache): Add opaque declarations.
6950 * Makefile.in (macrotab_h): Update
6951
b4d83933
AC
69522002-06-28 Andrew Cagney <ac131313@redhat.com>
6953
6954 * blockframe.c (generic_find_dummy_frame): Change return type to
6955 ``struct regcache''.
6956 (struct dummy_frame): Replace field ``registers'' with regcache, a
6957 struct regcache object.
6958 (generic_find_dummy_frame): Update.
6959 (generic_push_dummy_frame): Update. Use regcache_xfree,
6960 regcache_xmalloc and regcache_cpy.
6961 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6962 regcache_xfree.
6963 (deprecated_generic_find_dummy_frame): Update.
6964 (generic_read_register_dummy): Update. Use
6965 regcache_read_as_address.
6966 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6967 (generic_get_saved_register): Update. Use regcache_read.
6968
08c0b5bc
AC
69692002-06-28 Andrew Cagney <ac131313@redhat.com>
6970
6971 * Makefile.in (objfiles_h): Add $(bcache_h).
6972 * objfiles.h: Include "bcache.h".
6973
6974 * Makefile.in (symtab_h): Remove $(bcache_h).
6975 * symtab.h: Do not include "bcache.h".
6976
1f89801a
AC
69772002-06-28 Andrew Cagney <ac131313@redhat.com>
6978
6979 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6980 generic_func_frame_chain_valid.
6981
b9644b58
DB
69822002-06-28 David O'Brien <obrien@FreeBSD.org>
6983
6984 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6985 * config/i386/tm-fbsd.h: Likewise.
6986
dd486634
AC
69872002-06-28 Andrew Cagney <ac131313@redhat.com>
6988
6989 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6990 generic_unwind_get_saved_register.
6991
0b434a00
AC
69922002-06-27 Andrew Cagney <ac131313@redhat.com>
6993
6994 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6995 * regcache.c (supply_register): Add missing argument to
6996 register_buffer call.
6997
f30e5a77
AC
69982002-06-27 Andrew Cagney <ac131313@redhat.com>
6999
7000 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7001 Solaris /bin/grep does not not like it. From Peter Schauer.
7002
9f064c95
TT
70032002-06-26 Tom Tromey <tromey@redhat.com>
7004
7005 * command.h (add_setshow_cmd): Declare.
7006 (add_setshow_cmd_full): Declare.
7007 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7008 returns void. Use add_setshow_cmd_full.
7009 (add_setshow_cmd_full): New function.
7010 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7011 (add_setshow_boolean_cmd): Likewise.
7012
099c7589
JT
70132002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7014
7015 * config/vax/tm-vax.h: Protect from multiple inclusion.
7016 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7017 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7018 * config/vax/tm-vaxbsd.h: ...here. New file.
7019 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7020
1d049c5e
JT
70212002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7022
7023 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7024 (BELIEVE_PCC_PROMOTION): Remove.
7025 (AP_REGNUM): Move to...
7026 * config/vax/nm-vax.h: ...here.
7027 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7028 (vax_breakpoint_from_pc): New function.
7029 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7030 and gdbarch_believe_pcc_promotion.
7031
4791e091
JT
70322002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7033
7034 * Makefile.in (vax_tdep_h): Define.
7035 (vax-tdep.o): Use $(vax_tdep_h).
7036 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7037 (vax_dump_tdep): New function.
7038 (_initialize_vax_tdep): Register vax_dump_tdep.
7039 * vax-tdep.h: Include osabi.h.
7040 (struct gdbarch_tdep): New.
7041
da130f98
AC
70422002-06-26 Andrew Cagney <cagney@redhat.com>
7043
7044 * frame.h (deprecated_generic_find_dummy_frame): Rename
7045 generic_find_dummy_frame.
7046 * blockframe.c (generic_find_dummy_frame): Make static.
7047 (deprecated_generic_find_dummy_frame): New function.
7048 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7049 generic_find_dummy_frame with deprecated_find_dummy_frame.
7050 (sh64_nofp_frame_init_saved_regs): Ditto.
7051 (sh_fp_frame_init_saved_regs): Ditto.
7052 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7053 (s390_frame_chain): Ditto.
7054 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7055
6300c360
GS
70562002-06-26 Grace Sainsbury <graces@redhat.com>
7057
7058 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7059 gdbarch vector are at the top.
7060 (NUM_REGS): Remove.
7061 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7062 (FRAME_ARGS_ADDRESS): Remove.
7063 (FRAME_LOCALS_ADDRESS): Remove.
7064 (FRAME_NUM_ARGS): Remove.
7065 (FRAME_ARGS_SKIP): Remove.
7066 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7067 (m68k_gdbarch_init): Add gdbarch initializations for macros
7068 undefined in tm-m68k.h
7069
1c617db8
GS
70702002-06-26 Grace Sainsbury <graces@redhat.com>
7071
7072 * monitor.h: Add the function regname to monitor_ops
7073 structure. This way NUM_REGS does not have to be a constant.
7074 * monitor.c (monitor_fetch_register): Added support for regname
7075 function. The function is called if the array regnames is NULL.
7076 (monitor_store_register): Same.
da130f98
AC
7077 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7078 regnames array.
1c617db8
GS
7079 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7080 cpu32bug_cmds.regname to point to new function.
7081 * abug-rom.c (abug_regname): Same as above.
7082 (init_abug_cmds): Same.
7083 * dbug-rom.c (dbug_regname): Same as above.
7084 (init_dbug_cmds): Same.
7085 * remote-est.c (est_regname): Same.
7086 (init_est_cmds): Same.
7087 * rom68k-rom.c (rom68k_regname): Same.
7088 (init_rom68k_cmds): Same.
7089
ea9365bb
TT
70902002-06-25 Tom Tromey <tromey@redhat.com>
7091
7092 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7093
72cec141
AC
70942002-06-25 Andrew Cagney <cagney@redhat.com>
7095
7096 * infrun.c (stop_registers): Change variable's type to ``struct
7097 regcache'''.
7098 (xmalloc_inferior_status): Delete function.
7099 (free_inferior_status): Delete function.
7100 (normal_stop): Use regcache_cpy.
7101 (struct inferior_status): Change type of fields ``stop_registers''
7102 and ``registers'' to ``struct regcache''.
7103 (write_inferior_status_register): Use regcache_write.
7104 (save_inferior_status): Instead of calling
7105 xmalloc_inferior_status, allocate the inf_status buffer directly.
7106 Use regcache_dup_no_passthrough and regcache_dup to save the
7107 buffers.
7108 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7109 Replace the stop_registers regcache instead of overriding it. Use
7110 regcache_xfree. Instead of calling free_inferior_status, xfree
7111 the buffer directly.
7112 (discard_inferior_status): Use regcache_xfree. Instead of calling
7113 free_inferior_status, xfree the buffer directly.
7114 (build_infrun): Use regcache_xmalloc.
7115 (_initialize_infrun): Delete redundant call to build_infrun.
7116
7117 * Makefile.in (infcmd.o): Add $(regcache_h).
7118
7119 * infcmd.c: Include "regcache.h".
7120 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7121 obtain the address of `stop_registers' register buffer.
7122 (print_return_value): Ditto.
7123
7124 * inferior.h (struct regcache): Add opaque declaration.
7125 (stop_registers): Change variable's declared type to ``struct
7126 regcache''.
7127
defc6f8c
TT
71282002-06-24 Tom Tromey <tromey@redhat.com>
7129
c0e624e7
TT
7130 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7131 * target.c (initialize_targets): Fixed typo in
7132 trust-readonly-sections `show' documentation.
7133
defc6f8c
TT
7134 * main.c: Marked all strings with _().
7135
2b236d82
DH
71362002-06-24 Don Howard <dhoward@redhat.com>
7137
7138 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7139 that means max CORE_ADDR+1.
7140 (lookup_mem_region): Ditto.
7141 (mem_info_command): Ditto.
7142
942dc0e9
GS
71432002-06-24 Grace Sainsbury <graces@redhat.com>
7144
7145 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7146 (REGISTER_BYTES_OK): Remove.
7147 (REGISTER_BYTES): Remove.
7148 (STORE_STRUCT_RETURN): Remove.
7149 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7150 (STORE_RETURN_VALUE): Remove.
7151 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7152 (FRAME_CHAIN): Remove.
7153 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7154 (FRAME_SAVED_PC): Remove.
7155 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7156 (m68k_store_struct_return): Add.
7157 (m68k_deprecated_extract_return_value): Add.
7158 (m68k_deprecated_extract_struct_value_address): Add.
7159 (m68k_store_return_value): Add.
7160 (m68k_frame_chain): Add.
7161 (m68k_frameless_function_invocation): Add.
7162 (m68k_frame_saved_pc): Add.
7163 (m68k_gdbarch_init): added set_gdbarch calls for new
7164 functions and deleted macros.
7165
03c30d4d
TT
71662002-06-23 Tom Tromey <tromey@redhat.com>
7167
7168 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7169 (ALLDEPFILES): Likewise.
7170 (udiheaders): Removed.
7171 (udip2soc.o): Likewise.
7172 (udi2go32.o): Likewise.
7173 (udr.o): Likewise.
7174 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7175
37e71372
AC
71762002-06-22 Andrew Cagney <ac131313@redhat.com>
7177
06a6ac57
AC
7178 * infrun.c (_initialize_infrun): Delete unnecessary call to
7179 build_infrun.
7180
37e71372
AC
7181 * regcache.h: Update comments describing the regcache_cpy family
7182 of functions.
7183 (regcache_save, regcache_restore): Delete declaration.
7184 (regcache_save_no_passthrough): Delete declaration.
7185 (regcache_restore_no_passthrough): Delete declaration.
7186 * regcache.c (regcache_save): Delete function.
7187 (regcache_save_no_passthrough): Delete function.
7188 (regcache_restore): Delete function.
7189 (regcache_restore_no_passthrough): Delete function.
7190
78f6d055
AC
71912002-06-21 Andrew Cagney <ac131313@redhat.com>
7192
7193 * config/m68k/tm-m68k.h: Fix typo.
7194 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7195 (m68k_frame_init_saved_regs): Declare.
7196
78b119cb
JB
71972002-06-21 Jim Blandy <jimb@redhat.com>
7198
7199 Remove some vestiges of Harris 88k support.
7200 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7201 register numbering quirk.
7202 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7203 odd symbols occurring in Harris 88k ELF targets.
7204
0fbb3da7
TT
72052002-06-21 Tom Tromey <tromey@redhat.com>
7206
7207 * gdb_locale.h: New file.
7208 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7209 (defs_h): Added gdb_locale.h.
7210 * configure, config.in: Rebuilt.
7211 * configure.in (PACKAGE): Define.
7212 * defs.h: Include gdb_locale.h.
7213 * main.c (captured_main): Call setlocale, bindtextdomain,
7214 textdomain.
7215
456f8b9d
DB
72162002-06-21 Dave Brolley <brolley@redhat.com>
7217
7218 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7219 * config/frv/frv.mt: New file.
7220 * config/frv/tm-frv.h: New file.
7221 * configure.tgt: Support frv-*-*.
7222 * Makefile.in (frv-tdep.o): New target.
7223 * frv-tdep.c: New file.
7224 * NEWS: Mention frv.
7225
cdd463f9
DB
72262002-06-21 Dave Brolley <brolley@redhat.com>
7227
7228 * MAINTAINERS: Add self to "Write After Approval" list.
7229
5d3ed2e3
GS
72302002-06-21 Grace Sainsbury <graces@redhat.com>
7231
7232 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7233 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7234 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7235 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7236 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7237
7238 * m68k-tdep.c: Include arch-utils.h
7239 (m68k_register_raw_size): Add.
7240 (m68k_register_virtual_size): Add.
7241 (m68k_register_virtual_type): Add.
7242 (m68k_register_name): Add.
7243 (m68k_stack_align): Add.
7244 (m68k_register_byte): Add.
7245 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7246 tm-m68k.h.
7247
7f8e7424
GS
72482002-06-21 Grace Sainsbury <graces@redhat.com>
7249
a2c6a6d5 7250 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7251 m68k_find_saved_regs.
7252 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7253 references to it with frame->saved_regs.
7f8e7424
GS
7254 (m68k_gdbarch_init): Added function calls to initialize the
7255 gdbarch structure.
a2c6a6d5
GS
7256 (m68k_fix_call_dummy): Add.
7257 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7258 (CALL_DUMMY): Remove.
7259 (CALL_DUMMY_LENGTH): Remove.
7260 (CALL_DUMMY_START_OFFSET): Remove.
7261 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7262 (FIX_CALL_DUMMY): Remove.
7263 (PUSH_DUMMY_FRAME): Remove.
7264 (POP_FRAME): Remove.
7f8e7424 7265
f461f5cf
PM
72662002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7267
7268 * parse.c (parse_fprintf): New function used to avoid calls to
7269 fprintf in bison parser generated debug code.
7270 * parser-defs.h: Declaration of new parse_fprintf function.
7271 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7272 Set YYDEBUG to 1 by default.
7273 Set YYFPRINTF as parse_fprintf.
7274
7f0c12ed
ML
72752002-06-21 Michal Ludvig <mludvig@suse.cz>
7276
7277 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7278 encoding anymore.
7279 (pointer_encoding, enum ptr_encoding): New.
7280 (execute_cfa_program): Take care about pointer encoding.
7281 (dwarf2_build_frame_info): Only call parse_frame_info for
7282 .debug_frame and .eh_frame.
7283 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7284 fixed augmentation handling, added relative addressing,
7285 ignore duplicate FDEs. Added comments.
19d833a2 7286 * dwarf2cfi.c: Reindented.
7f0c12ed 7287
87c4a039
EZ
72882002-06-20 Elena Zannoni <ezannoni@redhat.com>
7289
7290 * event-top.c (command_handler): Don't use space_at_cmd_start
7291 unless there is sbrk() on the host. Assign time and space data
7292 to union fields of the appropriate length.
7293
1cf877ad
ML
72942002-06-20 Michal Ludvig <mludvig@suse.cz>
7295
7296 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7297 x86_64_register_name. Return type changed to 'const char *'.
7298 (x86_64_register_name2nr): Rename to x86_64_register_number.
7299 (x86_64_gdbarch_init): Update to reflect the change.
7300 * x86-64-tdep.h: Ditto.
7301 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7302 (supply_fpregset): Ditto.
7303
3fadccb3
AC
73042002-06-19 Andrew Cagney <cagney@redhat.com>
7305
7306 * regcache.h: Update copyright.
7307 (struct regcache, struct gdbarch): Add opaque declarations.
7308 (current_regcache): Declare global variable.
7309 (regcache_read, regcache_write): Add gdbarch parameter.
7310 (regcache_save, regcache_save_no_passthrough)
7311 (regcache_restore, regcache_restore_no_passthrough)
7312 (regcache_dup, regcache_dup_no_passthrough)
7313 (regcache_cpy, regcache_cpy_no_passthrough)
7314 (deprecated_grub_regcache_for_registers)
7315 (deprecated_grub_regcache_for_register_valid)
7316 (regcache_valid_p): Add function declarations.
7317
7318 * regcache.c: Update copyright.
7319 (regcache_descr_handle): New global variable.
7320 (struct regcache_descr): Define.
7321 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7322 (regcache_descr, xfree_regcache_descr): New functions.
7323 (struct regcache): Define.
7324 (regcache_xmalloc, regcache_xfree): New functions.
7325 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7326 (regcache_dup, regcache_dup_no_passthrough): New functions.
7327 (regcache_valid_p, regcache_read_as_address): New functions.
7328 (deprecated_grub_regcache_for_registers): New function.
7329 (deprecated_grub_regcache_for_register_valid): New function.
7330 (current_regcache): New global variable.
7331 (register_buffer): Add regcache parameter. Update calls.
7332 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7333 (read_register_gen, write_register_gen): Update register_buffer
7334 call. Test for legacy_p instead of gdbarch_register_read_p or
7335 gdbarch_register_write_p.
7336 (regcache_collect): Update register_buffer call.
7337 (build_regcache): Rewrite. Use deprecated grub functions.
7338 (regcache_save, regcache_save_no_passthrough): New functions.
7339 (regcache_restore, regcache_restore_no_passthrough): New
7340 functions.
7341 (_initialize_regcache): Create the regcache_data_handle. Swap
7342 current_regcache global variable.
7343
7344 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7345 parameter to regcache_read and regcache_write calls.
7346 (sh4_register_read): Ditto.
7347 (sh64_pseudo_register_read): Ditto.
7348 (sh64_register_read): Ditto.
7349 (sh_pseudo_register_write): Ditto.
7350 (sh4_register_write): Ditto.
7351 (sh64_pseudo_register_write): Ditto.
7352 (sh64_register_write): Ditto.
7353
7354 * defs.h (XCALLOC): Define.
7355
152d9db6
GS
73562002-06-19 Grace Sainsbury <graces@redhat.com>
7357
7358 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7359 * m68k-tdep.c (m68k_gdbarch_init): Added.
7360 (m68k_dump_tdep): Added.
7361
170911c7
DJ
73622002-06-19 Daniel Jacobowitz <drow@mvista.com>
7363
7364 * ada-lang.c (fill_in_ada_prototype): Update comment.
7365
2e4ebe70
DJ
73662002-06-19 Daniel Jacobowitz <drow@mvista.com>
7367
7368 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7369 MIPS_ABI_LAST.
7370 (mips_abi_string, mips_abi_strings): New.
7371 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7372 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7373 tdep->mips_abi_string. Honor mips_abi_string. Default to
7374 O32 if no ABI is found.
7375 (mips_dump_tdep): Use mips_abi_strings.
7376 (mips_abi_update): New function.
7377 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7378 ``set mips abi'' and ``show mips abi''. Check the size of
7379 mips_abi_strings.
7380
16775908
AC
73812002-06-19 Andrew Cagney <cagney@redhat.com>
7382
7383 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7384 constant.
7385
5051bfa4 73862002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7387
5051bfa4
JB
7388 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7389 current frame using only the first stack size adjustment. All
7390 subsequent size adjustments are not considered to be part of
7391 the "static" part of the current frame.
7392 Compute the address of the saved registers relative to the
7393 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7394 in use in this frame.
7395
56468235
DH
73962002-06-18 Don Howard <dhoward@redhat.com>
7397
7398 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7399 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7400 suggesting this solution.
7401
0b624158
AC
74022002-06-18 Andrew Cagney <ac131313@redhat.com>
7403
7404 * config/romp/xm-rtbsd.h: Delete file.
7405 * config/romp/rtbsd.mh: Delete file.
7406
221ea385
KS
74072002-06-18 Keith Seitz <keiths@redhat.com>
7408
7409 * breakpoint.c (condition_command): Post breakpoint_modify
7410 when a condition is added to an existing breakpoint.
7411 (commands_command): Likewise for commands.
7412 (set_ignore_count): Likewise for ignore counts.
7413 If no tty, do not simply return, still need to send event
7414 notification.
7415 (ignore_command): Only print a newline if the command came
7416 from a tty.
7417 Don't call breakpoints_changed, since this is now properly
7418 handled by set_ignore_count.
7419
5402eed1
AC
74202002-06-18 Andrew Cagney <cagney@redhat.com>
7421
7422 * MAINTAINERS: Note that cris-elf target can be compiled with
7423 -Werror.
7424 * cris-tdep.c (cris_register_name): Make return type constant.
7425 (cris_breakpoint_from_pc): Ditto.
7426
cc22880b
ML
74272002-06-18 Michal Ludvig <mludvig@suse.cz>
7428
7429 * frame.h (struct frame_info): Change type of context to
7430 'struct context'.
7431
fa88f677
AC
74322002-06-17 Andrew Cagney <cagney@redhat.com>
7433
7434 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7435 pointer.
7436 * gdbarch.h, gdbarch.c: Regenerate.
7437 * config/mips/tm-mips.h (mips_register_name): Update.
7438 * i386-tdep.h (i386_register_name): Update.
7439 * mips-tdep.c (mips_register_name): Update
7440 * alpha-tdep.c (alpha_register_name): Update.
7441 * arch-utils.c (legacy_register_name): Update.
7442 * arch-utils.h (legacy_register_name): Update.
7443 * avr-tdep.c (avr_register_name): Update.
7444 * ia64-tdep.c (ia64_register_name): Update.
7445 * i386-tdep.c (i386_register_name): Update.
7446 * sparc-tdep.c (sparc32_register_name): Update.
7447 (sparc64_register_name): Update.
7448 (sparclite_register_name): Update.
7449 (sparclet_register_name): Update.
7450 * sh-tdep.c (sh_generic_register_name): Update.
7451 (sh_sh_register_name): Update.
7452 (sh_sh3_register_name): Update.
7453 (sh_sh3e_register_name): Update.
7454 (sh_sh_dsp_register_name): Update.
7455 (sh_sh3_dsp_register_name): Update.
7456 (sh_sh4_register_name): Update.
7457 (sh_sh64_register_name): Update.
7458 * s390-tdep.c (s390_register_name): Update.
7459 * rs6000-tdep.c (rs6000_register_name): Update.
7460 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7461 (ns32k_register_name_32382): Update.
7462 * d10v-tdep.c (d10v_ts2_register_name): Update.
7463 (d10v_ts3_register_name): Update.
7464 * xstormy16-tdep.c (xstormy16_register_name): Update.
7465 * vax-tdep.c (vax_register_name): Update.
7466 * v850-tdep.c (v850_register_name): Update.
7467 * m68hc11-tdep.c (m68hc11_register_name): Update.
7468 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7469 (am33_register_name): Update.
7470
ea1e7ef6
GS
74712002-06-17 Grace Sainsbury <graces@redhat.com>
7472
7473 * m68k-tdep.c: Reindented.
7474
9b02dd1b
AC
74752002-06-17 Andrew Cagney <ac131313@redhat.com>
7476
7477 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7478 list of predefined types.
7479
8758dec1
MK
74802002-06-16 Mark Kettenis <kettenis@gnu.org>
7481
b6197528
MK
7482 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7483 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7484 REGISTER_CONVERT_TO_RAW): Remove defines.
7485 (i386_register_virtual_type, i386_register_convertible,
7486 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7487 Remove prototypes.
7488 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7489 macros mentioned above.
7490
82b47e62
MK
7491 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7492 (i386lynx_saved_pc_after_call): Remove prototype.
7493 * i386ly-tdep.c: Include "i386-tdep.h".
7494 (i386lynx_saved_pc_after_call): Make static. Use
7495 read_memory_nobpt instead of read_memory. Use
7496 read_memory_unsigned_integer instead of read_memory_integer.
7497 (i386lynx_init_abi): New function.
7498 (i386lynx_coff_osabi_sniffer): New function.
7499 (_initialize_i386bsd_tdep): New function.
7500
8758dec1
MK
7501 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7502 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7503 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7504 (i386_fix_call_dummy): Remove prototype.
7505 * i386-tdep.c (i386_call_dummy_words): New variable.
7506 (i386_gdbarch_init): Adjust for removal of the
7507 macros mentioned above.
7508
e9e68a56
AC
75092002-06-15 Andrew Cagney <ac131313@redhat.com>
7510
7511 * command.h (add_setshow_auto_boolean_cmd): Replace
7512 add_set_auto_boolean_cmd.
7513 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7514 add_set_auto_boolean_cmd.
7515 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7516 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7517 mask-address'' command.
7518 (show_mask_address): Add cmd parameter.
7519 * remote.c (add_packet_config_cmd): Update. Change type of
7520 set_func and show_func to cmd_sfunc_ftype.
7521 (_initialize_remote): Update `set remote Z-packet'
7522 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7523 (show_remote_protocol_e_packet_cmd): Ditto.
7524 (show_remote_protocol_E_packet_cmd): Ditto.
7525 (show_remote_protocol_P_packet_cmd): Ditto.
7526 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7527 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7528 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7529 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7530 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7531 (show_remote_protocol_Z_packet_cmd): Ditto.
7532 (show_remote_protocol_binary_download_cmd): Ditto.
7533 (show_remote_cmd): Pass NULL to all of above.
7534
fc08ec52
MK
75352002-06-15 Mark Kettenis <kettenis@gnu.org>
7536
7537 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7538 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7539 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7540 POP_FRAME): Remove defines.
7541 (i386_push_arguments, i386_store_struct_return,
7542 i386_extract_return_value, i386_store_return_value,
7543 i386_extract_struct_value_address, i386_push_dummy_frame,
7544 i386_pop_frame): Renove prototypes.
7545 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7546 macros mentioned above.
7547
e707bbc2
AC
75482002-06-15 Andrew Cagney <ac131313@redhat.com>
7549
7550 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7551 add_set_boolean_cmd.
7552 (add_setshow_cmd): New function.
7553 * command.h (add_setshow_boolean_cmd): Replace
7554 add_set_boolean_cmd.
7555 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7556 and ``set rdiromatzero''.
7557 * maint.c (_initialize_maint_cmds): Update commented out code.
7558 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7559 * target.c (initialize_targets): Update `set
7560 trust-readonly-sections'.
7561 * remote.c (_initialize_remote): Update `set remotebreak'.
7562
42fdc8df
MK
75632002-06-15 Mark Kettenis <kettenis@gnu.org>
7564
93924b6b
MK
7565 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7566 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7567 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7568 fit into multi-arch framework.
7569 (i386_breakpoint_from_pc): New function.
7570 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7571 above.
7572
42fdc8df
MK
7573 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7574 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7575 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7576 (i386_frameless_function_invocation, i386_frame_num_args,
7577 i386_frame_init_saved_regs): Remove prototypes.
7578 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7579 macros mentioned above.
7580
9773a94b
AC
75812002-06-15 Andrew Cagney <ac131313@redhat.com>
7582
7583 * cli/cli-decode.c (set_cmd_cfunc): Update.
7584 (set_cmd_sfunc): Update.
7585 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7586 (set_cmd_sfunc, set_cmd_cfunc): Update.
7587 * cli/cli-decode.h: Update.
7588
6e157172
MK
75892002-06-15 Mark Kettenis <kettenis@gnu.org>
7590
7591 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7592 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7593
7f19b9a2
AC
75942002-06-15 Andrew Cagney <ac131313@redhat.com>
7595
7596 * defs.h (auto_boolean): Declare enum.
7597 * command.h (cmd_auto_boolean): Delete enum.
7598 * mips-tdep.c (mask_address_var): Update.
7599 (mips_mask_address_p): Update.
7600 (show_mask_address): Update.
7601 * remote.c (struct packet_config): Update.
7602 (update_packet_config): Update.
7603 (show_packet_config_cmd): Update.
7604 (packet_ok): Update.
7605 (add_packet_config_cmd): Update.
7606 (_initialize_remote):
7607 * command.h: Update.
7608 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7609 (do_setshow_command): Update.
7610 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7611 * cli/cli-decode.h: Update.
7612
1cf88de5
MK
76132002-06-15 Mark Kettenis <kettenis@gnu.org>
7614
22ba8cf2
MK
7615 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7616 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7617 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7618 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7619 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7620 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7621
762c5349
MK
7622 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7623 list of DJGPP COFF targets.
7624
091198bb
MK
7625 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7626 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7627 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7628 (FP0_REGNUM): Remove define.
7629 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7630 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7631 (i386_register_virtual_size): Remove protoype.
7632 * i386-tdep.c (i386_register_virtual_size): Removed.
7633 (i386_extract_return_value, i386_store_return_value): Use
7634 FP0_REGNUM instead of NUM_FREGS to determine whether the
7635 floating-point registers are available.
7636 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7637 Adjust for removal of macros mentioned above.
7638
76392002-06-15 Mark Kettenis <kettenis@gnu.org>
7640
fcc9bf01
MK
7641 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7642 comments.
7643 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7644 Remove prototypes.
7645 (supply_gregset, fill_gregset): Remove use of register keyword and
7646 remove declaration for regmap. Use I386_NUM_GREGS instead of
7647 NUM_REGS and NUM_FREGS.
7648 (FPREGSET_FSAVE_OFFSET): Remove.
7649 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7650 NUM_FREGS to determine whether the floating-point registers are
7651 available.
7652
65e78234
MK
7653 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7654 gnu_store_registers): Replace usage of NUM_GREGS with
7655 I386_NUM_GREGS.
7656
98df6387
MK
7657 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7658 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7659 usage of NUM_GREGS with I386_NUM_GREGS.
7660
099a9414
MK
7661 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7662
57976e88
MK
7663 * i386bsd-nat.c: Include "i386-tdep.h".
7664 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7665 I386_NUM_GREGS.
7666
b335f4a6
MK
7667 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7668 and associated comment. They no longer make any sense, since we
7669 don't use this file anymore on Linux.
7670
1cf88de5
MK
7671 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7672 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7673 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7674 elements in these arrays.
7675 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7676 MAX_NUM_REGS.
7677
daa66587
MK
76782002-06-15 Mark Kettenis <kettenis@gnu.org>
7679
7680 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7681 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7682
26e9b323
AC
76832002-06-14 Andrew Cagney <cagney@redhat.com>
7684
7685 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7686 EXTRACT_RETURN_VALUE.
7687 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7688 EXTRACT_STRUCT_VALUE_ADDRESS.
7689 * gdbarch.h, gdbarch.c: Regenerate.
7690
7691 * values.c (value_being_returned): Handle
7692 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7693 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7694
7695 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7696 * arm-tdep.c (arm_gdbarch_init): Update.
7697 * avr-tdep.c (avr_gdbarch_init): Update.
7698 * cris-tdep.c (cris_gdbarch_init): Update.
7699 * d10v-tdep.c (d10v_gdbarch_init): Update.
7700 * ia64-tdep.c (ia64_gdbarch_init): Update.
7701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7702 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7703 * s390-tdep.c (s390_gdbarch_init): Update.
7704 * sh-tdep.c (sh_gdbarch_init): Update.
7705 * s390-tdep.c (s390_gdbarch_init): Update.
7706 * sparc-tdep.c (sparc_gdbarch_init): Update.
7707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7708 * v850-tdep.c (v850_gdbarch_init): Update.
7709 * vax-tdep.c (vax_gdbarch_init): Update.
7710 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7711 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7712
7713 * config/arc/tm-arc.h: Update.
7714 * config/d30v/tm-d30v.h: Update.
7715 * config/fr30/tm-fr30.h: Update.
7716 * config/h8300/tm-h8300.h: Update.
7717 * config/h8500/tm-h8500.h: Update.
7718 * config/i386/tm-i386.h: Update.
7719 * config/i386/tm-ptx.h: Update.
7720 * config/i386/tm-symmetry.h: Update.
7721 * config/i960/tm-i960.h: Update.
7722 * config/m32r/tm-m32r.h: Update.
7723 * config/m68k/tm-delta68.h: Update.
7724 * config/m68k/tm-linux.h: Update.
7725 * config/m68k/tm-m68k.h: Update.
7726 * config/m88k/tm-m88k.h: Update.
7727 * config/mcore/tm-mcore.h: Update.
7728 * config/mips/tm-mips.h: Update.
7729 * config/mn10200/tm-mn10200.h: Update.
7730 * config/pa/tm-hppa.h: Update.
7731 * config/pa/tm-hppa64.h: Update.
7732 * config/sparc/tm-sp64.h: Update.
7733 * config/sparc/tm-sparc.h: Update.
7734 * config/sparc/tm-sparclet.h: Update.
7735 * config/z8k/tm-z8k.h: Update.
7736
5179e78f
AC
77372002-06-14 Andrew Cagney <cagney@redhat.com>
7738
7739 * Makefile.in (i386_linux_tdep_h): Define.
7740 (i386_tdep_h, i387_tdep_h): Define.
7741 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7742 $(i386_tdep_h) and $(i387_tdep_h).
7743 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7744
8201327c
MK
77452002-06-14 Mark Kettenis <kettenis@gnu.org>
7746
edf393ac
MK
7747 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7748 Already covered by the default.
7749
896fb97d
MK
7750 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7751 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7752 (i386_gdbarch_init): Initialize long_double_format and long_double
7753 bit.
7754
8201327c
MK
7755 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7756 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7757 Move these to ...
7758 * config/i386/i386sol2.mh: ... here.
7759 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7760 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7761 (SIGCONTEXT_PC_OFFSET): Remove define.
7762 (IN_SIGTRAMP): Remove define.
7763 * i386-sol2-tdep.c: New file.
7764
7765 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7766 * config/i386/tm-i386nw.h: Removed.
7767
7768 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7769 USE_STRUCT_CONVENTION): Remove defines.
7770 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7771 (get_longjmp_target): Remove prototype.
7772 (IN_SIGTRAMP): Remove define.
7773 (i386bsd_in_sigtramp): Remove prototype.
7774 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7775 function. Update comment accordingly
7776 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7777 (FRAME_SAVED_PC): Remove define.
7778 (i386bsd_frame_saved_pc): Remove prototype.
7779 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7780 GET_LONGJMP_TARGET): Remove defines.
7781 (get_longjmp_target): Remove prototype.
7782 (IN_SIGTRAMP): Remove define.
7783 (i386bsd_in_sigtramp): Remove prototype.
7784 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7785 function. Update comment accordingly
7786 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7787 (FRAME_SAVED_PC): Remove define.
7788 (i386bsd_frame_saved_pc): Remove prototype.
7789 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7790 Remove prototype.
7791 (USE_STRUCT_CONVENTION): Remove prototype.
7792 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7793 declaration.
7794 (_initialize_i386bsd_nat): Revise logic to determine some
7795 constants at compile time when compiling a native GDB. Warn if
7796 things don't match up with what we expect.
7797 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7798 Remove variables.
7799 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7800 to use date stored in `struct gdbarch_tdep'.
7801 (i386bsd_sigcontext_offset): Remove varaible.
7802 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7803 stored in `struct gdbarch_tdep'.
7804 (i386bsd_frame_saved_pc): Make static.
7805 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7806 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7807 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7808 i386fbsd4_sc_pc_offset): New variables.
7809 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7810 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7811 functions.
7812 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7813 functions.
7814 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7815 Modify the value of i386fbsd_sigtramp_start and
7816 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7817 i386fbsd_sigtramp_end.
7818 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7819 function.
7820
7821 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7822 define to i386-linux-tdep.h.
7823 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7824 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7825 defines.
7826 (i386_linux_register_name, i386_linux_register_byte,
7827 i386_linux_register_raw_size): Remove prototypes.
7828 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7829 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7830 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7831 TARGET_WRITE_PC): Remove defines.
7832 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7833 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7834 i386_linux_write_pc): Remove prototypes.
7835 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7836 (get_longjmp_target): Remove prototype.
7837 * i386-linux-tdep.h: New file.
7838 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7839 * i386-linux-tdep.c: Include "i386-tdep.h" and
7840 "i386-linux-tdep.h".
7841 (i386_linux_register_name, i386_linux_register_byte,
7842 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7843 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7844 Make static.
7845 (i386_linux_init_abi): New function.
7846 (_initialize_i386_linux_tdep): New function.
7847
7848 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7849 (i386_saved_pc_after_call): Remove prototype.
7850 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7851 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7852 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7853 (i386_register_name, i386_stab_reg_to_regnum,
7854 i386_dwarf_reg_to_regnum): Remove prototypes.
7855 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7856 SIZEOF_SSE_REGS): Remove defines.
7857 (REGISTER_BYTES): Remove define.
7858 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7859 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7860 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7861 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7862 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7863 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7864 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7865 (get_longjmp_target): Remove prototype.
7866 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7867 (sigtramp_saved_pc): Remove define.
7868 (i386v4_sigtramp_saved_pc): Remove prototype.
7869 * config/i386/tm-go32.h (FRAME_CHAIN,
7870 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7871 (i386go32_frame_saved_pc): Remove prototype.
7872 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7873 (get_longjmp_target): Remove prototype.
7874 * i386-tdep.h: Include "osabi.h".
7875 (enum i386_abi): Removed.
7876 (enum struct_return): New enum.
7877 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7878 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7879 sc_pc_offset members.
7880 (i386_gdbarch_register_os_abi): Remove prototype.
7881 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7882 I386_SSE_NUM_REGS): New defines.
7883 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7884 I386_SSE_SIZEOF_REGS): New defines.
7885 (i386_register_name, i386_register_byte, i386_register_raw_size):
7886 New prototypes.
7887 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7888 (i386bsd_sigtramp_saved_pc): New prototype.
7889 * i386-tdep.c: Don't include "elf-bfd.h".
7890 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7891 i386_frame_chain, i386_saved_pc_after_call): Make static.
7892 (i386_frame_saved_pc): Rewrite to call architecture dependent
7893 function to deal with signal handlers. Make static.
7894 (i386go32_frame_saved_pc): Removed.
7895 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7896 Removed.
7897 (i386_get_longjmp_target): New function.
7898 (default_struct_convention, pcc_struct_convention,
7899 reg_struct_convention, valid_conventions, struct_convention): New
7900 variables.
7901 (i386_use_struct_convention): New function.
7902 (i386v4_sigtramp_saved_pc): Renamed to
7903 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7904 (i386_pc_in_sigtramp): New function.
7905 (i386_abi_names): Removed.
7906 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7907 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7908 Removed.
7909 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7910 i386_gdbarch_register_os_abi): Removed.
7911 (struct i386_abi_handler): Removed.
7912 (i386_abi_handler_list): Removed.
7913 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7914 functions.
7915 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7916 i386_nw_init_abi): New functions.
7917 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7918 Use set_gdbarch_xxx() calls instead of relying on macros for a
7919 number of calls.
7920 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7921 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7922 Register the various architecture variants defined in this file.
7923
ad2f7632
DJ
79242002-06-14 Daniel Jacobowitz <drow@mvista.com>
7925
7926 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7927 (struct main_type): Remove arg_types member. Update comments for
7928 struct field.
7929 (TYPE_ARG_TYPES): Remove.
7930 (TYPE_FN_FIELD_ARGS): Update.
7931 (smash_to_method_type): Update prototype.
7932
7933 * c-typeprint.c (cp_type_print_method_args): Take method type
7934 instead of argument list. Use new argument layout. Simplify.
7935 (c_type_print_args): Use new argument layout. Simplify.
7936 (c_type_print_base): Update call to cp_type_print_method_args.
7937 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7938 argument; use die->type instead. Update call to
7939 smash_to_method_type.
7940 (read_structure_scope): Update call to dwarf2_add_member_fn.
7941 * gdbtypes.c (allocate_stub_method): Update comment.
7942 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7943 Use new argument layout.
7944 (check_stub_method): Use new argument layout. Don't count
7945 void as an argument.
7946 (print_arg_types): Update comments. Use new argument layout.
7947 (recursive_dump_type): Don't print arg_types member.
7948 * hpread.c (hpread_read_struct_type): Use new argument layout.
7949 (fixup_class_method_type): Likewise.
7950 (hpread_type_lookup): Likewise.
7951 * stabsread.c (read_type): Update calls to read_args and
7952 smash_to_method_type.
7953 (read_args): Use new argument layout. Simplify.
7954 * valops.c (typecmp): Use new argument layout. Update parameters
7955 and comments. Simplify.
7956 (hand_function_call): Use new argument layout.
7957 (search_struct_method): Update call to typecmp.
7958 (find_overload_match): Use new argument layout.
7959
6da02953
DJ
79602002-06-13 Daniel Jacobowitz <drow@mvista.com>
7961
7962 * NEWS: Mention multithreaded debug support for gdbserver.
7963
519b2366
DJ
79642002-06-13 Daniel Jacobowitz <drow@mvista.com>
7965
7966 * MAINTAINERS: Mention NEWS.
7967
6c0d6680
DJ
79682002-06-13 Daniel Jacobowitz <drow@mvista.com>
7969
7970 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7971 (struct mips_objfile_private, compare_pdr_entries): New.
7972 (non_heuristic_proc_desc): Read the ".pdr" section if it
7973 is present.
7974
6529d2dd
AC
79752002-06-12 Andrew Cagney <ac131313@redhat.com>
7976
7977 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7978 (arm_debug): New static variable.
7979 (_initialize_arm_tdep): Add ``set debug arm'' command.
7980
26216b98
AC
79812002-06-12 Andrew Cagney <ac131313@redhat.com>
7982
7983 * Makefile.in (sim_arm_h): Define.
7984 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7985 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7986 (arm_register_sim_regno): New function, map an internal REGNUM
7987 onto a simulator register number.
7988 (arm_gdbarch_init): Set register_sim_regno.
7989
814b3ba0
AH
79902002-06-09 Aldy Hernandez <aldyh@redhat.com>
7991
7992 * MAINTAINERS: Add self.
7993
475b0867
JB
79942002-06-11 Jim Blandy <jimb@redhat.com>
7995
919d772c
JB
7996 * source.c (source_info): Mention whether the symtab has
7997 information about preprocessor macros.
7998
475b0867
JB
7999 Call the command `info macro', not `show macro'.
8000 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8001 Fix error message.
8002 (_initialize_macrocmd): Register `info_macro_command' in
8003 `infolist', not `showlist'.
8004
9e364162
DJ
80052002-06-11 Daniel Jacobowitz <drow@mvista.com>
8006
8007 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8008 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8009 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8010 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8011 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8012 unconditionally.
8013 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8014 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8015 (_initialize_mips_tdep): Remove dead code.
8016 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8017 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8018 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8019 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8020 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8021 MIPS_LAST_FP_ARG_REGNUM): Remove.
8022
23aa4c72
ML
80232002-06-11 Michal Ludvig <mludvig@suse.cz>
8024
8025 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8026 (unwind_tmp_obstack_free, parse_frame_info)
8027 (update_context, cfi_read_fp, cfi_write_fp)
8028 (cfi_frame_chain, cfi_init_extra_frame_info)
8029 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8030 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8031
70eb15a4
CV
80322002-06-11 Corinna Vinschen <vinschen@redhat.com>
8033
8034 * v850-tdep.c (v850_type_is_scalar): New function.
8035 (v850_use_struct_convention): Match current gcc implementation
8036 as close as possible.
8037 (v850_push_arguments): Fix stack_offset handling. Don't write
8038 struct_addr into register. This is done by v850_store_struct_return.
8039 (v850_extract_return_value): Care for structs.
8040 (v850_store_return_value): Ditto.
8041 (v850_store_struct_return): Actually write address.
8042
482a4d06
ML
80432002-06-11 Michal Ludvig <mludvig@suse.cz>
8044
8045 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8046 without debug information too.
8047
d855c300
AC
80482002-06-10 Andrew Cagney <ac131313@redhat.com>
8049
8050 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8051 Make multi-arch pure.
8052 * gdbarch.h, gdbarch.c: Re-generate.
8053 * arm-tdep.c (arm_print_float_info): Update.
8054 * arch-utils.h (default_print_float_info): Update.
8055 * arch-utils.c (default_print_float_info): Update.
8056 * infcmd.c (float_info): Update call.
8057
dd12a101
AC
80582002-06-10 Andrew Cagney <ac131313@redhat.com>
8059
8060 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8061 the front of the initialize list.
8062
101dcfbe
AC
80632002-06-10 Andrew Cagney <ac131313@redhat.com>
8064
8065 * infrun.c (struct inferior_status): Replace fields
8066 selected_frame_address and selected_level with field
8067 selected_frame_id.
8068 (save_inferior_status): Update. Use get_frame_id.
8069 (struct restore_selected_frame_args): Delete.
8070 (restore_selected_frame): Update. Use frame_find_by_id.
8071 (restore_inferior_status): Update.
8072
8073 * breakpoint.h (struct breakpoint): Change type of
8074 watchpoint_frame to frame_id.
8075 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8076 call to get_current_frame.
8077 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8078 get_current_frame.
8079 (watchpoint_check): Use frame_find_by_id.
8080
8081 * frame.h (record_selected_frame): Delete declaration.
8082 * stack.c (record_selected_frame): Delete function.
8083
8084 * frame.h (struct frame_id): Define.
8085 (get_frame_id): Declare.
8086 (frame_find_by_id): Declare.
8087 * frame.c (frame_find_by_id): New function.
8088 (get_frame_id): New function.
8089
304270b6
AV
80902002-06-10 Andrey Volkov <avolkov@transas.com>
8091
8092 * ser-e7kpc.c: Fix duplicated define and call of
8093 _initialize_ser_e7000pc
8094
2f2cf184
DJ
80952002-06-09 Daniel Jacobowitz <drow@mvista.com>
8096
8097 * signals/signals.c (target_signal_from_host): Fix #ifdef
8098 SIGRTMIN case.
8099 (do_target_signal_to_host): Likewise.
8100
caaa3122
DJ
81012002-06-09 Daniel Jacobowitz <drow@mvista.com>
8102
8103 * mips-tdep.c (mips_find_abi_section): New function.
8104 (mips_gdbarch_init): Call it.
8105
6ac5df3a
MK
81062002-06-09 Mark Kettenis <kettenis@gnu.org>
8107
8108 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8109 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8110 after Andrew's 2002-06-08 gdbarch change.
8111
82ea117a
MK
81122002-06-09 Mark Kettenis <kettenis@gnu.org>
8113
8114 * i386-linux-nat.c (suppy_gregset): Don't supply
8115 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8116 register cache.
8117 (fill_gregset): Don't fetch it under the same circumstances.
8118
3c25f8c7
AC
81192002-06-09 Andrew Cagney <cagney@redhat.com>
8120
8121 * Makefile.in (callback_h): Define.
8122 (remote_sim_h): Update path to remote-sim.h.
8123 (remote-rdp.o): Add $(callback_h).
8124 (remote-sim.o): Use $(callback_h).
8125 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8126 * remote-rdp.c: Include "gdb/callback.h".
8127
1029b7fa
MK
81282002-06-09 Mark Kettenis <kettenis@gnu.org>
8129
8130 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8131 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8132
616675d3
AC
81332002-06-08 Andrew Cagney <ac131313@redhat.com>
8134
a3efda28
AC
8135 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8136 * rdi-share/serpardr.c: Ditto.
8137 * rdi-share/unixcomm.c: Ditto.
8138 * rdi-share/serdrv.c: Ditto.
8139 * rdi-share/hostchan.h: Ditto.
8140 * rdi-share/hostchan.c: Ditto.
8141 * rdi-share/host.h: Ditto.
8142 * rdi-share/devsw.c: Ditto.
8143
c5f10366
AC
8144 * objfiles.h: Change type of obj_private to void pointer.
8145 * pa64solib.c: Update copyright. Don't include "assert.h", use
8146 strcmp instead of STREQ, use LONGEST, do not use PTR
8147 * somsolib.c: Ditto.
8148
616675d3
AC
8149 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8150 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8151 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8152
e4b415d9
AC
81532002-06-08 Andrew Cagney <ac131313@redhat.com>
8154
8155 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8156 (default_get_saved_register): Delete function.
8157 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8158 generic_unwind_get_saved_register.
8159 * gdbarch.h, gdbarch.c: Re-generate.
8160
ca0d0b52
AC
81612002-06-08 Andrew Cagney <ac131313@redhat.com>
8162
8163 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8164 generic_func_frame_chain_valid.
8165 * gdbarch.h, gdbarch.c: Re-generate.
8166 * blockframe.c (generic_func_frame_chain_valid): Only check
8167 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8168 passing FP to PC_IN_CALL_DUMMY.
8169 Fix PR gdb/360.
8170
76860b5f
AC
81712002-06-08 Andrew Cagney <ac131313@redhat.com>
8172
8173 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8174 (register_gdbarch_data): Initialize init_p.
8175 (gdbarch_data): Initialize data pointer using the init function.
8176 (init_gdbarch_data): Delete function.
8177 (gdbarch_update_p): Update.
8178 (initialize_non_multiarch): Update.
8179 (struct gdbarch): Add field initialized_p.
8180 * gdbarch.h, gdbarch.c: Re-generate.
8181
8dda9770
ML
81822002-06-07 Michal Ludvig <mludvig@suse.cz>
8183
8184 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8185 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8186 better do the things actually here.
8187 * x86-64-tdep.c (x86_64_register_name2nr): New.
8188 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8189 (x86_64_gdbarch_init): Respect the above change.
8190 * x86-64-tdep.h (x86_64_register_name2nr)
8191 (x86_64_register_nr2name): Add prototypes.
8192 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8193
3d79a47c
MS
81942002-06-06 Michael Snyder <msnyder@redhat.com>
8195
7bd91a28
MS
8196 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8197 Delete extra braces and re-indent.
8198 (d10v_store_return_value): Char return values
3d79a47c
MS
8199 must be shifted over by one byte in R0.
8200 (d10v_extract_return_value): Delete extra braces, re-indent.
8201
095a4c96
EZ
82022002-06-06 Elena Zannoni <ezannoni@redhat.com>
8203
8204 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8205 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8206 (d10v_integer_to_address): Rewrite.
8207 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8208 the d10v specific functions which take care of converting to the
8209 correct space.
8210
e8a77ca4
EZ
82112002-06-06 Elena Zannoni <ezannoni@redhat.com>
8212
8213 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8214 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8215
4f2e4a4f
AC
82162002-06-02 Andrew Cagney <ac131313@redhat.com>
8217
8218 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8219 includes.
8220 * config/tm-linux.h: Ditto.
8221 * config/alpha/tm-alphalinux.h: Ditto.
8222 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8223 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8224 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8225 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8226 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8227 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8228 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8229 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8230 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8231 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8232 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8233 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8234 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8235 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8236 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8237 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8238 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8239 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8240 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8241 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8242 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8243 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8244 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8245 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8246 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8247 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8248 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8249 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8250 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8251 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8252 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8253 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8254 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8255 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8256 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8257 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8258 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8259
ae2ab2ce
AS
82602002-05-04 Aidan Skinner <aidan@velvet.net>
8261
8262 * ada-exp.tab.c: New file
8263 * ada-exp.y: New file
8264 * ada-lang.c: New file
8265 * ada-lang.h: New file
8266 * ada-lex.c: New file
8267 * ada-lex.l: New file
8268 * ada-tasks.c: New file
8269 * ada-typeprint.c: New file
8270 * ada-valprint.c: New file
8271
0ddd0135
JT
82722002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8273
8274 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8275 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8276
750fbacc
JT
82772002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8278
8279 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8280 insetead of ppc-linux-tdep.o.
8281 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8282 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8283
df94e18a
AC
82842002-06-02 Andrew Cagney <ac131313@redhat.com>
8285
8286 2002-05-07 Christian Groessler <chris@groessler.org>
8287 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8288 bit register contents for little endian hosts.
8289
1a38ab75
AC
82902002-06-01 Andrew Cagney <ac131313@redhat.com>
8291
8292 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8293 any maintainer.
8294
8b1632ac
AC
82952002-06-01 Andrew Cagney <ac131313@redhat.com>
8296
8297 * gdbarch.h: Regenerate.
8298
627054c8
AC
82992002-06-01 Andrew Cagney <ac131313@redhat.com>
8300
8301 * MAINTAINERS: Add everyone to write-after-approval list.
8302
4f460812
AC
83032002-06-01 Andrew Cagney <ac131313@redhat.com>
8304
8305 * stack.c (frame_info): Use frame_register_unwind instead of
8306 saved_regs. Mention when the SP is on the stack or in a register.
8307
8308 * frame.h (frame_register_unwind_ftype): Define. Document.
8309 (struct frame_info): Add field register_unwind and
8310 register_unwind_cache.
8311 (frame_register_unwind): Declare.
8312 (generic_unwind_get_saved_register): Declare.
8313
8314 * frame.c (frame_register_unwind): New function.
8315 (generic_unwind_get_saved_register): New function.
8316
8317 * blockframe.c (generic_call_dummy_register_unwind): New function.
8318 (frame_saved_regs_register_unwind): New function.
8319 (set_unwind_by_pc): New function.
8320 (create_new_frame): New function.
8321 (get_prev_frame): New function.
8322
de888f76
AC
83232002-05-30 Andrew Cagney <ac131313@redhat.com>
8324
8325 * a29k-share/: Delete directory.
8326 * remote-vx29k.c: Delete file.
8327
2f2c3626
JT
83282002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8329
8330 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8331 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8332
9ce5c36a
JT
83332002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8334
8335 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8336 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8337 (sparc64nbsd-nat.o)
8338 (sparcnbsd-nat.o)
8339 (sparcnbsd-tdep.o): New dependency lists.
8340 * NEWS: Note new UltraSPARC NetBSD native configuration.
8341 * configure.host (sparc64-*-netbsd*): New host.
8342 * configure.tgt (sparc-*-netbsdelf*)
8343 (sparc-*-netbsd*): Set gdb_target to nbsd.
8344 (sparc64-*-netbsd*): New target.
8345 * sparc64nbsd-nat.c: New file.
8346 * sparcnbsd-nat.c: New file.
8347 * sparcnbsd-tdep.c: New file.
8348 * sparcnbsd-tdep.h: New file.
8349 * config/sparc/nbsd.mt: New file.
8350 * config/sparc/nbsd64.mh: New file.
8351 * config/sparc/nbsd64.mt: New file.
8352 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8353 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8354 (HOST_IPC): Remove.
8355 * config/sparc/nbsdaout.mt: Remove.
8356 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8357 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8358 (HOST_IPC): Remove.
8359 * config/sparc/nbsdelf.mt: Remove.
8360 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8361 sparc-nat.c compatiblity defines.
8362 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8363 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8364 * config/sparc/tm-nbsd64.h: New file.
8365 * config/sparc/tm-nbsdaout.h: Remove.
8366 * config/sparc/xm-nbsd.h: Remove.
8367
ef3cf062
JT
83682002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8369
8370 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8371 * sparc-tdep.c: Include osabi.h.
8372 (gdbarch_tdep): Add osabi member.
8373 (_initialize_sparc_tdep): Use gdbarch_register.
8374 (sparc_gdbarch_init): Use generic OS ABI framework.
8375 (sparc_dump_tdep): New function.
8376
ee8ff470
KB
83772002-05-30 Kevin Buettner <kevinb@redhat.com>
8378
8379 * corefile.c (do_captured_read_memory_integer): Return non-zero
8380 result.
8381 (safe_read_memory_integer): Copy result of memory read when
8382 status is non-zero. Also, add comments.
8383
7b112f9c
JT
83842002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8385
8386 * Makefile.in (ppc_tdep_h): Define.
8387 (ppc-linux-nat.o)
8388 (ppc-linux-tdep.o)
8389 (rs6000-tdep.o): Use $(ppc_tdep_h).
8390 (ppc-sysv-tdep.o)
8391 (ppcnbsd-nat.o)
8392 (ppcnbsd-tdep.o): New dependency lists.
8393 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8394 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8395 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8396 (ppc_sysv_abi_broken_use_struct_convention)
8397 (ppc_sysv_abi_use_struct_convention)
8398 (ppc_sysv_abi_push_arguments): Move to...
8399 * ppc-sysv-tdep.c: ...here.
8400 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8401 * rs6000-tdep.c (process_note_abi_tag_sections)
8402 (get_elfosabi): Remove.
8403 (rs6000_gdbarch_init): Use generic OS ABI framework.
8404 (rs6000_dump_tdep): New function.
8405 (_initialize_rs6000_tdep): Use gdbarch_register.
8406 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8407 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8408 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8409 of ppc-linux-tdep.o.
8410 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8411 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8412 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8413 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8414 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8415 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8416
480dd42a
JB
84172002-05-29 Jim Blandy <jimb@redhat.com>
8418
8419 * macroscope.c (default_macro_scope): Put `void' in empty argument
8420 list.
8421
4182591f
AC
84222002-05-29 Andrew Cagney <ac131313@redhat.com>
8423
8424 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8425 * arch-utils.c: Include "sim-regno.h".
8426 * gdbarch.sh: Don't include "sim-regno.h".
8427 * gdbarch.h, gdbarch.c: Regenerate.
8428 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8429 here.
8430 * arch-utils.h (legacy_register_sim_regno): To here.
8431 * remote-sim.c (legacy_register_sim_regno): Move function from
8432 here.
8433 * arch-utils.c (legacy_register_sim_regno): To here.
8434
8238d0bf
AC
84352002-05-28 Andrew Cagney <ac131313@redhat.com>
8436
8437 * sim-regno.h: New file.
8438 * Makefile.in (sim_regno_h): Define.
8439 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8440 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8441 (legacy_register_sim_regno): New function.
8442 (one2one_register_sim_regno): New function.
8443 (gdbsim_fetch_register): Rewrite.
8444 (gdbsim_store_register): Only store a register when
8445 REGISTER_SIM_REGNO is valid.
8446 * d10v-tdep.c: Include "sim-regno.h".
8447 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8448 (d10v_ts3_register_sim_regno): Ditto.
8449 * gdbarch.sh: Include "sim-regno.h".
8450 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8451 * gdbarch.h, gdbarch.c: Regenerate.
8452 * arch-utils.h (default_register_sim_regno): Delete declaration.
8453 * arch-utils.c (default_register_sim_regno): Delete function.
8454
485721b1
JT
84552002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8456
8457 * ppcnbsd-nat.c: Rewrite.
8458 * ppcnbsd-tdep.c: New file.
8459 * ppcnbsd-tdep.h: New file.
8460 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8461 solib.o, and solib-svr4.o.
8462 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8463 nbsd-tdep.o, and corelow.o.
8464
697f244d
AC
84652002-05-28 Andrew Cagney <ac131313@redhat.com>
8466
8467 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8468 `tr' and `sed'. Mention that `broken' targets are not expected to
8469 build.
8470
f08caad1 84712002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8472
8473 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8474 Let PC point right after the prologue before looking up symbols.
8475
3139facc
MH
84762002-05-27 Martin M. Hunt <hunt@redhat.com>
8477
8478 * i386-tdep.c (i386_register_virtual_type): Return
8479 builtin_type_vec128i for SSE registers.
8480
8481 * gdbtypes.h (builtin_type_vec128i): Declare.
8482
8483 * gdbtypes.c (build_builtin_type_vec128i): New function.
8484 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8485 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8486 (build_gdbtypes): Initialize new builtin vector types.
8487 (_initialize_gdbtypes): Register new vector types with gdbarch.
8488
6e3ba3b8
JT
84892002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8490
8491 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8492 since it has been multi-arch'd.
8493 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8494 Move Alpha and VAX multi-arch news entries to same section
8495 as other multi-arch news.
8496
93d5585d
JT
84972002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8498
8499 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8500 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8501 static. Rename some register numbers to put them in ns32k-tdep
8502 private namespace.
8503 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8504 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8505 functions.
8506 (_initialize_ns32k_tdep): Use gdbarch_register.
8507 * ns32k-tdep.h: New file.
8508 * ns32knbsd-tdep.c: New file.
8509 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8510 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8511 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8512 REGISTER_BYTES, REGISTER_BYTE): Remove.
8513 * config/ns32k/tm-ns32k.h: New file.
8514 * config/ns32k/tm-umax.h: Remove.
8515
efb2c70e
JT
85162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8517
8518 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8519 ns32k_store_struct_return, ns32k_extract_return_value,
8520 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8521 functions.
8522 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8523 ns32k_saved_pc_after_call.
8524 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8525 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8526 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8527 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8528 ns32k_extract_struct_value_address.
8529
7bcc927b
JT
85302002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8531
8532 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8533 ns32k_fix_call_dummy): New.
8534 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8535 ns32k_call_dummy_words.
8536 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8537 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8538 CALL_DUMMY_NARGS): Remove.
8539 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8540
78f9d765
JT
85412002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8542
8543 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8544 ns32k_frame_saved_pc, ns32k_frame_args_address,
8545 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8546 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8547 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8548 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8549 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8550 (BREAKPOINT): Remove..
8551 (FRAME_CHAIN): Define as ns32k_frame_chain.
8552 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8553 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8554 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8555 (FRAME_FIND_SAVED_REGS): Remove.
8556 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8557 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8558 (POP_FRAME): Define as ns32k_pop_frame.
8559
f2c762e0
JT
85602002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8561
8562 * ns32k-tdep.c (ns32k_register_byte_32082,
8563 ns32k_register_byte_32382, ns32k_register_raw_size,
8564 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8565 functions.
8566 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8567 ns32k_register_byte_32382.
8568 * config/ns32k/tm-umax.h: Update copyright years.
8569 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8570 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8571 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8572 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8573 (ns32k_get_enter_addr): Fix prototype.
8574
af137673
JT
85752002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8576
8577 * ns32k-tdep.c: Update copyright years.
8578 (ns32k_register_name_32082): New function.
8579 (ns32k_register_name_32382): Ditto.
8580 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8581 (REGISTER_NAME): Define as ns32k_register_name_32382.
8582 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8583 (REGISTER_NAME): Define as ns32k_register_name_32082.
8584
a8bc7b56
JB
85852002-05-24 Jim Blandy <jimb@redhat.com>
8586
8587 * dwarf2read.c (free_line_header): Use xfree, not free.
8588
83a45910
JT
85892002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8590
8591 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8592 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8593
0db71247
AC
85942002-05-23 Andrew Cagney <ac131313@redhat.com>
8595
8596 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8597
b9e5e4dd
AC
85982002-05-23 Andrew Cagney <ac131313@redhat.com>
8599
8600 From Ross Alexander at NEC Europe:
8601 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8602
de530e84
MS
86032002-05-23 Michael Snyder <msnyder@redhat.com>
8604
8605 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8606 for input, rather than parse_and_eval_address.
8607
b91b96f4
AC
86082002-05-23 Andrew Cagney <ac131313@redhat.com>
8609
8610 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8611 * Makefile.in (sim_d10v_h): Update definition.
8612
8b279e7a
AC
86132002-05-24 Andrew Cagney <cagney@redhat.com>
8614
8615 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8616 change `2002-05-22 Michael Snyder' below.
8617 (d10v_push_arguments): Ditto.
8618 (d10v_extract_return_value): Ditto.
8619
0a3d0425
JB
86202002-05-23 Jim Blandy <jimb@redhat.com>
8621
8622 * macrotab.c (check_for_redefinition): Don't complain if the new
8623 definition is the same as the previous one. Take more arguments
8624 to allow the comparison.
8625 (macro_define_object, macro_define_function): Pass more arguments
8626 to check_for_redefinition.
8627
78eac43e
MS
86282002-05-22 Michael Snyder <msnyder@redhat.com>
8629
8630 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8631 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8632 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8633 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8634 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8635 Add a temp variable to save a call (and a memory read).
8636 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8637 if possible (so that PC_IN_CALL_DUMMY will work).
8638
9bc1edb8
CV
86392002-05-22 Corinna Vinschen <vinschen@redhat.com>
8640
8641 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8642
005ef3d2
ML
86432002-05-22 Michal Ludvig <mludvig@suse.cz>
8644
8645 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8646 fde->cie_ptr.
8647 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8648 (dwarf2_build_frame_info): Add offset to fde->initial_location
8649 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8650 (execute_stack_op): Change type of 'result' from ULONGEST to
8651 CORE_ADDR.
005ef3d2 8652
fcf4f891
JT
86532002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8654
8655 * config/alpha/tm-nbsd.h: Include solib.h.
8656
cfef91e4
JT
86572002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8658
8659 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8660 assumptions about the host's byte order.
8661
9964235a
JT
86622002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8663
8664 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8665 to dependency list.
8666 * alphanbsd-tdep.c: Include solib-svr4.h.
8667 * shnbsd-tdep.c: Ditto.
8668
9eeef8ef
JT
86692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8670
8671 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8672 nbsd-tdep.h to dependency list.
8673 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8674 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8675 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8676 nbsdaout.mh and nbsdelf.mh consistently.
8677 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8678 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8679 nbsdaout.mt and nbsdelf.mh consistently.
8680 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8681 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8682 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8683 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8684 a.out shared library stuff from here...
8685 * config/nm-nbsdaout.h: ...to here.
8686 * config/tm-nbsd.h: Remove.
8687 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8688 * config/arm/nbsd.mh: Remove.
8689 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8690 nbsd-tdep.o.
8691 * config/arm/nbsdaout.mh: New file.
8692 * config/arm/nbsdelf.mh: New file.
8693 * config/arm/nm-nbsdaout.h: New file.
8694 * config/i386/nbsd.mh: Remove.
8695 * config/i386/nbsd.mt: Remove.
8696 * config/i386/nbsdaout.mh: New file.
8697 * config/i386/nbsdaout.mt: New file.
8698 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8699 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8700 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8701 i386_register_u_addr): Remove.
8702 * config/i386/nm-nbsdaout.h: New file.
8703 * config/i386/nm-nbsdelf.h: Remove.
8704 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8705 (USE_STRUCT_CONVENTION): Remove.
8706 * config/i386/tm-nbsdaout.h: New file.
8707 * config/i386/tm-nbsdelf.h: Remove.
8708 * config/m68k/nbsd.mh: Remove.
8709 * config/m68k/nbsd.mt: Remove.
8710 * config/m68k/nbsdaout.mh: New file.
8711 * config/m68k/nbsdaout.mt: New file.
8712 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8713 * config/m68k/nm-nbsdaout.h: New file.
8714 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8715 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8716 * config/ns32k/nbsd.mh: Remove.
8717 * config/ns32k/nbsd.mt: Remove.
8718 * config/ns32k/nbsdaout.mh: New file.
8719 * config/ns32k/nbsdaout.mt: New file.
8720 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8721 * config/ns32k/nm-nbsdaout.h: New file.
8722 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8723 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8724 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8725 (SVR4_SHARED_LIBS): Remove.
8726 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8727 * config/sparc/nbsd.mh: Remove.
8728 * config/sparc/nbsd.mt: Remove.
8729 * config/sparc/nbsdaout.mh: New file.
8730 * config/sparc/nbsdaout.mt: New file.
8731 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8732 * config/sparc/nbsdelf.mt: New file.
8733 * config/sparc/nm-nbsdaout.h: New file.
8734 * config/sparc/nm-nbsdelf.h: Remove.
8735 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8736 * config/sparc/tm-nbsdaout.h: New file.
8737
257ce470
JT
87382002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8739
8740 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8741 mipsnbsd-tdep.c
8742 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8743
76a6d5fe
JT
87442002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8745
8746 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8747 shnbsd-nat.c.
8748 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8749
45888261
JT
87502002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8751
8752 * NEWS: Note new MIPS NetBSD native configuration.
8753 * configure.host (mips*-*-netbsd*): New host.
8754 * configure.tgt (mips*-*-netbsd*): New target.
8755 * mipsnbsd-nat.c: New file.
8756 * mipsnbsd-tdep.c: New file.
8757 * mipsnbsd-tdep.h: New file.
8758 * config/mips/nbsd.mh: New file.
8759 * config/mips/nbsd.mt: New file.
8760 * config/mips/nm-nbsd.h: New file.
8761 * config/mips/tm-nbsd.h: New file.
8762
70f80edf
JT
87632002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8764
8765 * Makefile.in (SFILES): Add osabi.c.
8766 (COMMON_OBS): Add osabi.o.
8767 (osabi.o): New dependency list.
8768 * osabi.c: New file.
8769 * osabi.h: New file.
8770 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8771
8772 * Makefile.in (alpha_tdep_h): Define and use instead of
8773 alpha-tdep.h.
8774 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8775 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8776 Remove.
8777 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8778 * alpha-tdep.h: Include osabi.h.
8779 (alpha_abi): Remove.
8780 (gdbarch_tdep): Use generic OS ABI framework.
8781 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8782 gdbarch_register_osabi.
8783 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8784 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8785 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8786
8787 * Makefile.in (sh_tdep_h): Add osabi.h.
8788 * sh-tdep.h (sh_osabi): Remove.
8789 (gdbarch_tdep): Use generic OS ABI framework.
8790 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8791 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8792 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8793 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8794
8795 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8796 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8797 gdbarch_register_osabi.
8798 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8799 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8800 (get_elfosabi): Rename to...
8801 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8802 ABI framework support routines.
8803 (arm_gdbarch_init): Use generic OS ABI framework.
8804 (arm_dump_tdep): Likewise.
8805 (_initialize_arm_tdep): Likewise.
8806 * arm-tdep.h: Include osabi.h.
8807 (arm_abi): Remove.
8808 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8809 osabi member.
8810 (arm_gdbarch_register_os_abi): Remove prototype.
8811 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8812 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8813
8814 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8815 * mips-tdep.c: Include osabi.h.
8816 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8817 OS ABI framework.
8818
d194345b
KH
88192002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8820
8821 * h8300-tdep.c: Fix formatting.
8822
70c6b0d1
EZ
88232002-05-20 Elena Zannoni <ezannoni@redhat.com>
8824
8825 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8826 printing vector registers.
8827
165b8e33
AC
88282002-05-19 Andrew Cagney <ac131313@redhat.com>
8829
8830 From Fernando Nasser:
8831 * remote.c (remote_async_open_1): Re-throw the exception when the
8832 connection fails.
8833 (remote_cisco_open): Ditto.
8834 (remote_open_1): Ditto.
8835
36918e70
AC
88362002-05-19 Andrew Cagney <ac131313@redhat.com>
8837
8838 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8839 (remote_start_remote): Add uiout parameter. Pass through to
8840 remote_start_remote_dummy.
8841 (remote_open_1): Use catch_exception instead of catch_errors.
8842 (remote_async_open_1): Ditto.
8843 (remote_cisco_open): Ditto.
8844
ae44c0c4
AC
88452002-05-19 Andrew Cagney <ac131313@redhat.com>
8846
8847 * remote.c (remote_start_remote): Replace PTR with void pointer.
8848 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8849 static.
8850
8efe637d
AC
88512002-05-18 Andrew Cagney <ac131313@redhat.com>
8852
8853 * gdb_indent.sh: Allow the script to be run in the sim directory.
8854
2f1b5984
MK
88552002-05-18 Mark Kettenis <kettenis@gnu.org>
8856
f0f625e2
MK
8857 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8858 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8859
2f1b5984
MK
8860 * corelow.c (core_open): Only call set_gdbarch_from_file if
8861 exec_bfd is NULL.
8862
fc974602
AV
88632002-05-17 Andrey Volkov <avolkov@transas.com>
8864
8865 * h8300-tdep.c: Add support of EXR register
8866 * config/h8300/tm-h8300.h: Ditto.
8867
906709f4
AV
88682002-05-17 Andrey Volkov <avolkov@transas.com>
8869
8870 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8871
6e591d68
AV
88722002-05-17 Andrey Volkov <avolkov@transas.com>
8873
8874 * h8300-tdep.c: Change literal regnums to REGNO.
8875
84f0252a
JB
88762002-05-17 Jim Blandy <jimb@redhat.com>
8877
e0e9281e
JB
8878 * NEWS: Note addition of macro support.
8879
84f0252a
JB
8880 Expand preprocessor macros in C expressions.
8881 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8882 (scan_macro_expansion, scanning_macro_expansion,
8883 finished_macro_expansion): New function declarations.
8884 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8885 variable declarations.
8886 * parser-defs.h (expression_context_pc): New declaration.
8887 * parse.c (expression_context_pc): New variable.
8888 (parse_exp_1): Set expression_context_pc, as well as
8889 expression_context_block.
8890 * c-exp.y (yylex): If we're not already reading the result of a
8891 macro expansion, try to macro-expand the next token. When we're
8892 done scanning a macro expansion, switch back to the mainline text.
8893 Commas and `if's in a macro's expansion don't terminate the input.
8894 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8895 (macro_original_text, macro_expanded_text,
8896 expression_macro_lookup_func, expression_macro_lookup_baton): New
8897 variables.
8898 (scan_macro_expansion, scanning_macro_expansion,
8899 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8900 c_preprocess_and_parse): New functions.
8901 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8902 c_preprocess_and_parse, instead of c_parse.
8903 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8904 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8905
1c509ca8
JR
8906Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8907
8908 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8909 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8910 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8911
2250ee0c
CV
89122002-05-17 Corinna Vinschen <vinschen@redhat.com>
8913
8914 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8915
ab3b8126
JT
89162002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8917
8918 * Makefile.in (sh_tdep_h): Define and use.
8919 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8920 register enum): Move to...
8921 * * sh-tdep.h: ...here.
8922 * sh-tdep.c: Include sh-tdep.h.
8923 * sh3-rom.c: Likewise.
8924 * shnbsd-tdep.c: Likewise.
8925
ed9d4749
MS
89262002-05-16 Michael Snyder <msnyder@redhat.com>
8927
8928 * arm-tdep.c: Spelling fix in comment.
8929
2e276125
JB
89302002-05-16 Jim Blandy <jimb@redhat.com>
8931
6821892e
JB
8932 Add commands for manually expanding macros and showing their
8933 definitions.
8934 * macrocmd.c, macroscope.c, macroscope.h: New files.
8935 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8936 (macroscope_h): New variable.
8937 (HFILES_NO_SRCDIR): Add macroscope.h.
8938 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8939 (macroscope.o, macrocmd.o): New rules.
8940
2e276125
JB
8941 Teach the Dwarf 2 reader to read macro information.
8942 * dwarf2read.c: #include "macrotab.h".
8943 (dwarf_macinfo_buffer): New variable.
8944 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8945 dwarf_macinfo_size.
8946 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8947 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8948 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8949 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8950 dwarf2_macro_spaces_in_definition): New complaints.
8951 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8952 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8953 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8954 the partial symbol table.
8955 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8956 from what's recorded in the partial symbol table.
8957 (read_file_scope): If the compilation unit has a
8958 `DW_AT_macro_info' attribute, read its macro information.
8959 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8960
2f53fe6c
DJ
89612002-05-16 Daniel Jacobowitz <drow@mvista.com>
8962
8963 Fix PR gdb/546
8964 * ser-tcp.c: Don't include <netinet/udp.h>.
8965
2be99286
SC
89662002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8967
8968 * MAINTAINERS: Update my email address.
8969
c9af212b 89702002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8971
8972 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8973 include file of the same name.
8974
bf5f1a52
CV
89752002-05-16 Corinna Vinschen <vinschen@redhat.com>
8976
8977 * configure.tgt: Mark v850 as multi-arched.
8978 * config/v850/tm-v850.h: Remove file.
8979 * config/v850/v850.mt: Eliminate TM_FILE.
8980
435e042a
CV
89812002-05-16 Corinna Vinschen <vinschen@redhat.com>
8982
8983 * v850-tdep.c: Full multi-arch.
8984 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8985 Define GDB_MULTI_ARCH to 2.
8986
9819c6c8
PM
89872002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8988
8989 * p-exp.y (current_type): New static variable.
8990 Carries the type of the expression at the position that is parsed.
8991 (push_current_type, pop_current_type): Two new functions. Used
8992 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8993 (search_field): New static variable. Set to one after parsing a point
8994 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8995 (FIELDNAME): New token. After a point only a token belonging to
8996 current_type type definition is allowed.
8997 (all over token rules): reset and change current_type according
8998 to rules.
8999 (exp '[' rule): insert implicit array index field if
9000 exp is a pascal string type.
9001
3a06899a
CV
90022002-05-16 Corinna Vinschen <vinschen@redhat.com>
9003
9004 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9005 frame info. Use frame_info's saved_regs instead of matching member
9006 in extra_frame_info throughout.
9007 (v850_frame_init_saved_regs): New function.
9008 (v850_init_extra_frame_info): Move most functionality into
9009 v850_frame_init_saved_regs().
9010 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9011 (v850_frame_find_saved_regs): Remove declaration.
9012 (FRAME_FIND_SAVED_REGS): Remove definition.
9013 (v850_frame_init_saved_regs): Add declaration.
9014 (FRAME_INIT_SAVED_REGS): Add definition.
9015
6ed14b0e
CV
90162002-05-16 Corinna Vinschen <vinschen@redhat.com>
9017
9018 * v850-tdep.c: Begin multi-arch'ing v850.
9019 (v850_target_architecture_hook): Remove function.
9020 (v850_gdbarch_init): New function. Add code previously in
9021 v850_target_architecture_hook().
9022 (_initialize_v850_tdep): Don't set target_architecture_hook.
9023 Call register_gdbarch_init() instead.
9024
42725910
DJ
90252002-05-16 Daniel Jacobowitz <drow@mvista.com>
9026
9027 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9028 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9029 (fixup_class_method_type): Likewise.
9030
99d9066e
JB
90312002-05-15 Jim Blandy <jimb@redhat.com>
9032
9033 Add macro structures to GDB's symbol tables. Nobody puts anything
9034 in them yet.
9035 * symtab.h (struct symtab): New member: `macro_table'.
9036 * buildsym.h (pending_macros): New global variable.
9037 * buildsym.c: #include "macrotab.h".
9038 (buildsym_init): Initialize `pending_macros'.
9039 (end_symtab): If we found macro information while reading a CU's
9040 debugging info, do build a symtab structure for it. Make the
9041 symtab point to the macro information, and clear the
9042 `pending_macros' pointer which held it while we were reading the
9043 debug info.
9044 (really_free_pendings): Free any pending macro table.
9045 * objfiles.h (struct objfile): New member: `macro_cache'.
9046 * objfiles.c (allocate_objfile): Set allocate and free functions
9047 for the macro cache's objstack.
9048 (free_objfile): Empty the macro cache's obstack.
9049 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9050 set new allocate and free functions for it.
9051 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9052 free functions for the macro cache's objstack. (Why is this
9053 function building its own objfile?)
9054 * symmisc.c (print_objfile_statistics): Print statistics on the
9055 macro bcache.
9056 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9057
c899585b
RE
90582002-05-15 Richard Earnshaw <rearnsha@arm.com>
9059
9060 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9061 (REGISTER_U_ADDR): Delete definition.
9062 (arm_register_u_addr): Delete declaration.
9063
a6cdd8c5
RE
90642002-05-15 Richard Earnshaw <rearnsha@arm.com>
9065
9066 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9067 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9068
c97dcfc7
AC
90692002-05-14 Andrew Cagney <ac131313@redhat.com>
9070
9071 * regcache.c (register_valid): Revise comments refering to "Not
9072 available" and "unavailable".
9073 * frame.c (frame_register_read): Ditto.
9074 * findvar.c (value_of_register): Ditto.
9075
93021b7d
AC
90762002-05-15 Andrew Cagney <cagney@redhat.com>
9077
9078 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9079 (remote-sim.o): Update dependencies.
9080 (d10v-tdep.o): Specify dependencies.
9081 (sim_d10v_h): Define.
9082
a86bc61c
JB
90832002-05-14 Jim Blandy <jimb@redhat.com>
9084
9085 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9086 * macrotab.c (macro_lookup_inclusion, find_definition,
9087 new_macro_table): Same.
9088
9089 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9090 not `! strcmp ()'. This is a dubious improvement.
9091 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9092
9093 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9094 although it's not necessary, to avoid a warning.
9095
2fdde8f8
DJ
90962002-05-14 Daniel Jacobowitz <drow@mvista.com>
9097
9098 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9099 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9100 TYPE_INSTANCE_FLAGS.
9101 (struct main_type): New.
9102 (struct type): Move most members to struct main_type. Change
9103 cv_type and as_type to new type_chain member. Add instance_flags.
9104 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9105 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9106 (finish_cv_type): Remove prototype.
9107 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9108 Set TYPE_CHAIN.
9109 (alloc_type_instance): New function.
9110 (smash_type): New function.
9111 (make_pointer_type, make_reference_type, make_function_type)
9112 (smash_to_member_type, smash_to_method_type): Call smash_type.
9113 (make_qualified_type): New function.
9114 (make_type_with_address_space): Call make_qualified_type.
9115 (make_cv_type): Likewise.
9116 (finish_cv_type): Remove unnecessary function.
9117 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9118 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9119 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9120 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9121 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9122 * hpread.c (hpread_read_struct_type): Likewise.
9123 * stabsread.c (read_struct_type): Likewise.
9124
843fedf4
EZ
91252002-05-14 Elena Zannoni <ezannoni@redhat.com>
9126
9127 * configure.tgt: Add a catch all sh* target, for cases like
9128 sh[2,3,4]-elf and sh-hms.
9129
05a6c72c
KS
91302002-05-14 Keith Seitz <keiths@redhat.com>
9131
9132 * event-loop.c (create_file_handler): Don't do anything but
9133 update data when we are given a fd which we are already
9134 monitoring.
9135
5d085aaf
ML
91362002-05-14 Michal Ludvig <mludvig@suse.cz>
9137
9138 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9139 (update_context): Use __func__ in warnings.
9140
9db8d71f
DJ
91412002-05-14 Daniel Jacobowitz <drow@mvista.com>
9142
9143 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9144 and tcp_close to net_open and net_close.
9145 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9146 using UDP if requested. Don't try to disable Nagle on UDP
9147 sockets.
9148 * remote.c (remote_serial_open): New function. Warn about UDP.
9149 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9150
5dbc6baa
EZ
91512002-05-13 Elena Zannoni <ezannoni@redhat.com>
9152
9153 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9154
cc3023f7
EZ
91552002-05-13 Elena Zannoni <ezannoni@redhat.com>
9156
9157 * configure.tgt: Remove sh-hms target.
9158 * MAINTAINERS: Don't list sh-hms as a separate target.
9159
ec2bcbe7
JB
91602002-05-13 Jim Blandy <jimb@redhat.com>
9161
9162 Add first preprocessor macro-expansion files.
9163 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9164 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9165 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9166 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9167 (COMMON_OBS): Add macrotab.o, macroexp.o.
9168 (macroexp.o, macrotab.o): New rules.
9169
6d531722
AC
91702002-05-13 Andrew Cagney <ac131313@redhat.com>
9171
9172 * config/m88k/tm-m88k.h: Update copyright.
9173 (m88k_target_write_pc): Declare
9174 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9175 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9176 (SHIFT_INST_REGS): Update definition.
9177 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9178 using old definition of TARGET_WRITE_PC.
9179 * regcache.c (generic_target_write_pc): Delete code handling
9180 NNPC_REGNUM.
9181 * gdbarch.sh (NNPC_REGNUM): Delete.
9182 * gdbarch.h, gdbarch.c: Regenerate.
9183
3e3f2739
RE
91842002-05-13 Richard Earnshaw <rearnsha@arm.com>
9185
9186 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9187 builtin reg number.
9188
0004e5a2
DJ
91892002-05-13 Daniel Jacobowitz <drow@mvista.com>
9190
9191 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9192 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9193 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9194 access macros.
9195 * c-typeprint.c (cp_type_print_method_args): Likewise.
9196 (c_type_print_args): Likewise.
9197 * d10v-tdep.c (d10v_push_arguments): Likewise.
9198 (d10v_extract_return_value): Likewise.
9199 * expprint.c (print_subexp): Likewise.
9200 * gdbtypes.c (lookup_primitive_typename): Likewise.
9201 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9202 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9203 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9204 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9205 (TYPE_VECTOR): Likewise.
9206 * hpread.c (hpread_read_struct_type)
9207 (fix_static_member_physnames, fixup_class_method_type)
9208 (hpread_type_lookup): Likewise.
9209 * mdebugread.c (parse_symbol, parse_type): Likewise.
9210 * p-lang.c (is_pascal_string_type): Likewise.
9211 * valops.c (hand_function_call): Likewise.
9212 * x86-64-tdep.c (classify_argument): Likewise.
9213
9214 * hpread.c (hpread_read_function_type)
9215 (hpread_read_doc_function_type): Call replace_type.
9216 * dstread.c (create_new_type): Delete.
9217 (decode_dst_structure, process_dst_function): Call alloc_type.
9218 Use type access macros.
9219
dff95cc7
MK
92202002-05-12 Mark Kettenis <kettenis@gnu.org>
9221
9222 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9223 the're not supported by the current architecture.
9224 (i387_fill_fxsave): Likewise.
9225
bbcd32ad
FF
92262002-05-12 Fred Fish <fnf@redhat.com>
9227
9228 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9229 sect_index_xxx members to index the first slot in section_offsets
9230 if all of the section_offsets are zero.
9231
89cf4787
MK
92322002-05-12 Mark Kettenis <kettenis@gnu.org>
9233
9234 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9235 checked in with last change.
9236
1f77ffc5
MK
92372002-05-12 Mark Kettenis <kettenis@gnu.org>
9238
9239 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9240 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9241 config.sub.
9242
89b8b4a9
DJ
92432002-05-12 Daniel Jacobowitz <drow@mvista.com>
9244
9245 * Makefile.in: Update dependencies.
9246
14a5e767
AC
92472002-05-11 Andrew Cagney <ac131313@redhat.com>
9248
9249 * language.c (local_hex_string_custom): Simplify. Do not depend
9250 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9251
9252 * memattr.c (mem_info_command): Replace calls to
9253 longest_local_hex_string and longest_local_hex_string_custom.
9254 * buildsym.c (make_blockvector): Ditto.
9255 * solib.c (info_sharedlibrary_command): Ditto.
9256 * tracepoint.c (tracepoints_info): Ditto.
9257 * symtab.c (print_msymbol_info): Ditto.
9258
9259 * language.c (local_hex_string): Delete.
9260 (local_hex_string_custom): Delete.
9261 (longest_local_hex_string): Rename to local_hex_string.
9262 (longest_local_hex_string_custom): Rename to
9263 local_hex_string_custom.
9264 * language.h (local_hex_string): Change parameter type to LONGEST.
9265 (local_hex_string_custom): Ditto.
9266 (longest_local_hex_string): Delete declaration.
9267 (longest_local_hex_string_custom): Ditto.
9268
9269 * solib.c: Update copyright.
9270 * memattr.c: Update copyright.
9271
13d01224
AC
92722002-05-11 Andrew Cagney <ac131313@redhat.com>
9273
9274 * arch-utils.h (legacy_register_to_value): Declare.
9275 (legacy_value_to_register): Declare.
9276 (legacy_convert_register_p): Declare.
9277 * arch-utils.c (legacy_register_to_value): New function.
9278 (legacy_value_to_register): New function.
9279 (legacy_convert_register_p): New function.
9280
9281 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9282 (VALUE_TO_REGISTER): Define.
9283 (CONVERT_REGISTER_P): Define.
9284 * gdbarch.h, gdbarch.c: Regenerate.
9285
9286 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9287 VALUE_TO_REGISTER.
9288 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9289 CONVERT_REGISTER_P.
9290
4a1970e4
DJ
92912005-05-11 Daniel Jacobowitz <drow@mvista.com>
9292 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9293
9294 * Makefile.in: Update dependencies for valops.c.
9295 * valops.c: Include "gdb_assert.h".
9296 (typecmp): Skip THIS parameter to methods.
9297 (find_method_list): Remove static_memfuncp argument,
9298 update callers. Check for stub methods.
9299 (find_value_oload_method_list): Don't set *static_memfuncp.
9300 (find_overload_match): Don't check for stub methods. Assert
9301 that methods are not stubbed. Handle static methods.
9302 (value_find_oload_method_list): Remove static_memfuncp argument.
9303 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9304 to the argument list for static stub methods.
9305 * value.h (value_find_oload_method_list): Update prototype.
9306
b2e75d78
AC
93072002-05-11 Andrew Cagney <ac131313@redhat.com>
9308
9309 * arch-utils.h (generic_register_size): Declare.
9310 (generic_register_raw_size, generic_register_virtual_size): Delete
9311 declarations.
9312 * arch-utils.c (generic_register_raw_size): Delete.
9313 (generic_register_size): New function.
9314 (generic_register_virtual_size): Delete.
9315
9316 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9317 default generic_register_size.
9318 * gdbarch.h, gdbarch.c: Re-generate.
9319
9320 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9321 register_virtual_size.
9322 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9323 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9324
451fbdda
AC
93252002-05-11 Andrew Cagney <ac131313@redhat.com>
9326
9327 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9328 * gdbarch.h, gdbarch.c: Regenerate.
9329 * gnu-v3-abi.c: Update copyright.
9330 (vtable_address_point_offset): Update.
9331 (gnuv3_rtti_type): Update.
9332 (gnuv3_baseclass_offset): Update.
9333 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9334 (init_fetch_link_map_offsets): Update.
9335 * remote.c (get_remote_state): Update.
9336
6d2f5cea
DJ
93372002-05-11 Daniel Jacobowitz <drow@mvista.com>
9338
9339 * TODO: Remove value_headof/value_from_vtable_info comment.
9340 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9341 * values.c (value_headof, value_from_vtable_info): Delete.
9342 * value.h (value_from_vtable_info): Delete prototype.
9343
d2324da4
AC
93442002-05-11 Andrew Cagney <ac131313@redhat.com>
9345
9346 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9347 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9348 $(gdb_regex_h).
9349 (gdb_assert_h): Define.
9350 (gdb_wait_h): Define.
9351 (gdb_regex_h): Define.
9352
5c717440
DJ
93532002-05-11 Daniel Jacobowitz <drow@mvista.com>
9354
9355 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9356 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9357
6c7861b3
JT
93582002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9359
9360 * nbsd-tdep.c: Fix comment.
9361
ea5bc2a6
JT
93622002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9363
9364 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9365 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9366 (nbsd-tdep.o): New dependency list.
9367 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9368 nbsd-tdep.h.
9369 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9370 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9371 * nbsd-tdep.c: New file.
9372 * nbsd-tdep.h: New file.
9373 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9374 nbsd-tdep.h.
9375 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9376 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9377 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9378 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9379
b28da865
JT
93802002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9381
9382 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9383 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9384 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9385 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9386 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9387 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9388
4b8ff1fa
JT
93892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9390
9391 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9392 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9393 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9394 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9395 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9396 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9397 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9398
dfe6eb1f
JT
93992002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9400
9401 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9402 fetch_elfcore_registers to...
9403 * i386nbsd-tdep.c: ...here.
9404 (i386nbsd_use_struct_convention): Rename to...
9405 (i386nbsd_aout_use_struct_convention): ...this.
9406 (i386nbsd_supply_reg): New function.
9407 (i386nbsd_fill_reg): New function.
9408 (fetch_core_registers): Use i386nbsd_supply_reg.
9409 (fetch_elfcore_registers): Likewise.
9410 (_initialize_i386nbsd_tdep): New function.
9411 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9412 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9413 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9414 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9415 (i386nbsd_aout_use_struct_convention): ...this.
9416
20cb8cda
JT
94172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9418
9419 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9420 (store_inferior_registers): Use shnbsd_fill_reg.
9421 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9422 sh_nbsd_supply_register): Collapse into...
9423 (shnbsd_supply_reg): ...this.
9424 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9425 (shnbsd_fill_reg): ...this.
9426 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9427 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9428 (fetch_core_registers): Use shnbsd_supply_reg.
9429 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9430 (sh_nbsd_core_fns): Rename to...
9431 (shnbsd_core_fns): ...this.
9432 (sh_nbsd_elfcore_fns): Rename to...
9433 (shnbsd_elfcore_fns): ...this.
9434 (sh_nbsd_init_abi): Rename to...
9435 (shnbsd_init_abi): ...this.
9436 (_initialize_sh_nbsd_tdep): Rename to...
9437 (_initialize_shnbsd_tdep): ...this.
9438 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9439 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9440 sh_nbsd_fill_register): Remove prototypes.
9441 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9442
e750d25e
JT
94432002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9444
9445 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9446 (i387-nat.o): Delete dependency list.
9447 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9448 (x86-64-linux-nat.o): Likewise.
9449 * i387-nat.c: Delete file, moving contents to...
9450 * i387-tdep.c: ...here.
9451 * i387-nat.h: Rename...
9452 * i387-tdep.h: ...to this.
9453 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9454 * i386-linux-nat.c: Likewise.
9455 * i386bsd-nat.c: Likewise.
9456 * i386gnu-nat.c: Likewise.
9457 * i386nbsd-nat.c: Likewise.
9458 * i386v4-nat.c: Likewise.
9459 * x86-64-linux-nat.c: Likewise.
9460 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9461 * config/i386/go32.mh (NATDEPFILES): Likewise.
9462 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9463 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9464 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9465 * config/i386/linux.mh (NATDEPFILES): Likewise.
9466 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9467 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9468 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9469 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9470
1aee598a
JT
94712002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9472
9473 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9474 (alphanbsd-nat.o): Remove dependency list.
9475 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9476 * alphanbsd-nat.c: Delete. Contents moved to...
9477 * alphanbsd-tdep.c: ...here.
9478 (_initialize_alphanbsd_tdep): Register core functions.
9479 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9480
12bcb0fe
JT
94812002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9482
9483 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9484 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9485 (alphanbsd-nat.o): Likewise.
9486 (alphabsd-tdep.o): New dependency list.
9487 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9488 (fill_gregset): Use alphabsd_fill_reg.
9489 (supply_fpregset): Use alphabsd_supply_fpreg.
9490 (fill_fpregset): Use alphabsd_fill_fpreg.
9491 (fetch_inferior_registers): Use struct reg and struct fpreg
9492 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9493 and alphabsd_supply_fpreg.
9494 (store_inferior_registers): Use struct reg and struct fpreg
9495 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9496 and alphabsd_fill_fpreg.
9497 * alphabsd-tdep.c: New file.
9498 * alphabsd-tdep.h: New file.
9499 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9500 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9501 alphabsd_supply_fpreg.
9502 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9503 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9504
361d1df0
EC
95052002-05-11 Eric Christopher <echristo@redhat.com>
9506
9507 * mips-tdep.c (mips_double_register_type): Fix thinko.
9508 (mips_single_register_type): Ditto.
9509 * MAINTAINERS: Add self.
9510
92dd7cee
MK
95112002-05-11 Mark Kettenis <kettenis@gnu.org>
9512
9513 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9514 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9515 right thing on architectures with different endianness and/or
9516 integer sizes.
9517
e27da16d
JT
95182002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9519
9520 From Christian Limpach <chris@Pin.LU>
9521 * configure.in: Change sed expression which comments out
9522 NATDEPFILES to also comment out continuation lines.
9523 * configure: Regenerate.
9524
ddde02bd
EZ
95252002-05-10 Elena Zannoni <ezannoni@redhat.com>
9526
9527 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9528 big patch.
9529
1c922164
EZ
95302002-05-10 Elena Zannoni <ezannoni@redhat.com>
9531
9532 * sh-tdep.c: Include correct file.
9533
283150cd
EZ
95342002-05-10 Elena Zannoni <ezannoni@redhat.com>
9535
9536 New support for sh64-elf (sh5) target.
9537
9538 * configure.tgt: For sh64-elf target, default to sh-elf.
9539
9540 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9541 (struct gdbarch_tdep): Add new fields for new registers and ABI
9542 info.
361d1df0 9543
283150cd
EZ
9544 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9545 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9546 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9547 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9548 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9549 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9550 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9551 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9552 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9553 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9554 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9555 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9556 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9557 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9558 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9559 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9560 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9561 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9562 sign_extend, sh64_nofp_frame_init_saved_regs,
9563 sh64_init_extra_frame_info, sh64_get_saved_register,
9564 sh64_extract_struct_value_address, sh64_pop_frame,
9565 sh64_push_arguments, sh64_extract_return_value,
9566 sh64_store_return_value, sh64_show_media_regs,
9567 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9568 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9569 sh_sh64_register_virtual_type,
9570 sh_sh64_register_convert_to_virtual,
9571 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9572 sh64_register_read, sh64_pseudo_register_write,
9573 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9574 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9575 sh64_do_pseudo_register, sh_compact_do_registers_info,
9576 sh64_do_registers_info, sh_gdbarch_init): New functions.
9577
3117ed25
EZ
95782002-05-10 Elena Zannoni <ezannoni@redhat.com>
9579
9580 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9581
2654e6d4
DJ
95822002-05-10 Daniel Jacobowitz <drow@mvista.com>
9583
9584 * linespec.c (decode_line_1): Check for a double quote after
9585 a filename correctly.
9586
9ab3e532
JB
95872002-05-10 Jim Blandy <jimb@redhat.com>
9588
9589 Properly track the size of the current objfile's .debug_line section.
9590 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9591 (DWARF_LINE_SIZE): New macro.
9592 (dwarf2_build_psymtabs_hard): Record the line section's size in
9593 the partial symbol table.
9594 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9595 symbol table.
9596
126fa72d
PS
95972002-05-10 Petr Sorfa <petrs@caldera.com>
9598
9599 * ia64-tdep.c: Handle breakpoints on L instruction type
9600 in MLX instruction bundle by moving the breakpoint to
9601 the third slot (X instruction type) as L holds only data.
9602
1f077a3e
KB
96032002-05-10 Kevin Buettner <kevinb@redhat.com>
9604
9605 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9606 (process_one_symbol): Complain about discarding local symbols
9607 due to a misplaced N_LBRAC entry.
9608
8120c9d5 96092002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9610
9611 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9612 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9613 decrease the depth we are at, in the case of templates.
361d1df0 9614
67b2c998
DJ
96152002-05-09 Daniel Jacobowitz <drow@mvista.com>
9616
9617 * mips-tdep.c (mips_float_register_type): New function.
9618 (mips_double_register_type): New function.
9619 (mips_print_register): Use them.
9620 (do_fp_register_row): Likewise.
9621
fd326606
DJ
96222002-05-09 Daniel Jacobowitz <drow@mvista.com>
9623
6609d9af 9624 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9625 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9626 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9627
bef35864
MS
96282002-05-09 Michael Snyder <msnyder@redhat.com>
9629
9630 * remote-rdp.c (remote_rdp_can_run): Remove.
9631
c55a3f73
TT
96322002-05-09 Tom Tromey <tromey@redhat.com>
9633
9634 * jv-valprint.c (java_val_print): Handle `char' as a special case
9635 of TYPE_CODE_INT.
9636
b8d5e71d
MS
96372002-05-09 Michael Snyder <msnyder@redhat.com>
9638
9639 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9640 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9641 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9642 str r(0123),[sp,#nn].
361d1df0 9643 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9644 order-independent by placing it in a loop.
9645
e2cd42dd
MS
96462002-05-06 Michael Snyder <msnyder@redhat.com>
9647
9648 * stabsread.c (read_type): Add recognition for new attribute:
9649 "@V;" means that an array type is actually a vector.
9650 This is analogous to the vector flag that's been added to dwarf2.
9651
3ce1502b
MK
96522002-05-09 Mark Kettenis <kettenis@gnu.org>
9653
9654 * i386-tdep.h (i386_abi): New enum.
9655 (struct gdbarch_tdep): Replace os_ident member with abi.
9656 (i386_gdbarch_register_os_abi): New prototype.
9657 * i386-tdep.c (i386_abi_names): New array.
9658 (process_note_abi_tag_sections): Removed.
9659 (process_note_sections): New function.
9660 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9661 (struct i386_abi_handler): New struct.
9662 (i386_abi_handler_list): New variable.
9663 (i386_gdbarch_register_os_abi): New function.
9664 (i386_gdbarch_init): Adapt for the changes given above.
9665
084c156a
DJ
96662002-05-08 Daniel Jacobowitz <drow@mvista.com>
9667
9668 * gregset.h: Say "GNU/Linux".
9669
6599f021
EZ
96702002-05-08 Elena Zannoni <ezannoni@redhat.com>
9671
9672 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9673 (build_gdbtypes): Build builtin_type_v2_float.
9674 (_initialize_gdbtypes): Register new builtin type.
9675
40af4b0c
AC
96762002-05-08 Andrew Cagney <ac131313@redhat.com>
9677
9678 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9679 (clear_gdbarch_swap): New function.
9680 (initialize_non_multiarch): Call.
9681 (gdbarch_update_p): Before calling init(), swap out and clear the
9682 existing architecture.
9683 * gdbarch.c: Regenerate.
9684
4fe84f46
JT
96852002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9686
9687 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9688 alphanbsd-tdep.c.
9689
4015edd1
JT
96902002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9691
9692 * sh-nbsd-nat.c: Rename to...
9693 * shnbsd-nat.c: ...this.
9694 * sh-nbsd-tdep.c: Rename to...
9695 * shnbsd-tdep.c: ...this.
9696 * sh-nbsd-tdep.h: Rename to...
9697 * shnbsd-tdep.h: ...this.
9698 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9699 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9700
0e2bd219
RE
97012002-05-08 Richard Earnshaw <rearnsha@arm.com>
9702
9703 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9704 concatenation for command help messages.
9705
13a38d45
JT
97062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9707
9708 * NEWS: Note new sh*-*-netbsdelf* configuration.
9709 * configure.host: Set gdb_host_cpu to sh for all sh*.
9710 (sh*-*-netbsdelf*): New host.
9711 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9712 (sh*-*-netbsdelf*): New target.
9713 * sh-nbsd-nat.c: New file.
9714 * sh-nbsd-tdep.c: New file.
9715 * sh-nbsd-tdep.h: New file.
9716 * config/sh/nbsd.mh: New file.
9717 * config/sh/nbsd.mt: New file.
9718 * config/sh/nm-nbsd.h: New file.
9719 * config/sh/tm-nbsd.h: New file.
9720
d658f924
JT
97212002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9722
9723 * sh-tdep.c (sh_osabi_names): Declare.
9724 (process_note_abi_tag_sections): New function.
9725 (get_elfosabi): Ditto.
9726 (sh_gdbarch_register_os_abi): Ditto.
9727 (sh_dump_tdep): Ditto.
9728 _initialize_sh_tdep): Use gdbarch_register to register
9729 sh_gdbarch_init and sh_dump_tdep.
9730 * config/sh/tm-sh.h (sh_osabi): Declare.
9731 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9732
848cfffb
AC
97332002-05-07 Andrew Cagney <ac131313@redhat.com>
9734
9735 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9736 (thumb_scan_prologue): Ditto.
9737 (arm_find_callers_reg): Ditto.
9738 (arm_frame_chain): Ditto.
9739 (arm_init_extra_frame_info): Ditto.
9740 (arm_frame_saved_pc): Ditto.
9741 (arm_pop_frame): Ditto.
9742 (arm_push_return_address): New function.
9743 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9744 call_dummy_location, call_dummy_breakpoint_offset_p,
9745 call_dummy_breakpoint_offset, call_dummy_p,
9746 call_dummy_stack_adjust_p, call_dummy_words,
9747 sizeof_call_dummy_words, call_dummy_start_offset,
9748 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9749 call_dummy_address, push_return_address and push_dummy_frame for
9750 generic dummy frames.
9751
e7d717c0
JT
97522002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9753
9754 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9755 size computation for alloca.
9756 (sh_fp_frame_init_saved_regs): Likewise.
9757
7bbcf283
RE
97582002-05-07 Richard Earnshaw <rearnsha@arm.com>
9759
9760 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9761 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9762 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9763 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9764 * remote-rdp.c (remote_rdp_fetch_register): Use
9765 ARM_MAX_REGISTER_RAW_SIZE.
9766 (remote_rdp_store_register): Likewise.
9767
4657573b
ML
97682002-05-07 Michal Ludvig <mludvig@suse.cz>
9769
361d1df0 9770 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9771 added default labels to switch {} statements.
9772 * x86-64-tdep.c: Ditto.
9773 * x86-64-linux-nat.c: Ditto.
9774
010f3b2f
JT
97752002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9776
9777 * solib.h: Protect against multiple inclusion.
9778
debd256d
JB
97792002-05-06 Jim Blandy <jimb@redhat.com>
9780
9ab3e532
JB
9781 Add first preprocessor macro-expansion files.
9782 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9783 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9784 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9785 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9786 (COMMON_OBS): Add macrotab.o, macroexp.o.
9787 (macroexp.o, macrotab.o): New rules.
9788
debd256d
JB
9789 Separate the job of reading the line number info statement program
9790 header (...expialidocious) out into its own function.
9791 * dwarf2read.c (struct line_head, struct filenames, struct
9792 directories): Replace with...
9793 (struct line_header): New structure, containing the full
9794 contents of the statement program header, including the
9795 include directory and file name tables.
9796 (read_file_scope): If we have line number info, instead of just
9797 calling dwarf_decode_lines to do all the work, call
9798 dwarf_decode_line_header first to get a `struct line_header'
9799 containing the data in the statement program header, and then
9800 pass that to dwarf_decode_lines, which will pick up where that
9801 left off. Be sure to clean up the `struct line_header' object.
9802 (dwarf_decode_line_header, free_line_header, add_include_dir,
9803 add_file_name): New functions.
9804 (dwarf_decode_lines): Move all the code to read the statement
9805 program header into dwarf_decode_line_header. Take the line
9806 header it built as the first argument, instead of the offset to
9807 the compilation unit's line number info. Use the new `struct
9808 line_header' type instead of the old structures. No need to do
9809 cleanups here now, since we don't allocate anything.
9810 (dwarf2_statement_list_fits_in_line_number_section,
9811 dwarf2_line_header_too_long): New complaints.
9812
ac3aafc7
EZ
98132002-05-06 Elena Zannoni <ezannoni@redhat.com>
9814
9815 * gdbtypes.c (init_vector_type): New function.
9816 (build_builtin_type_vec128): Simplify the representation of SIMD
9817 registers.
9818 (build_gdbtypes): Initialize new builtin vector types.
9819 (_initialize_gdbtypes): Register new vector types with gdbarch.
9820 (builtin_type_v4_float, builtin_type_v4_int32,
9821 builtin_type_v8_int16, builtin_type_v16_int8,
9822 builtin_type_v2_int32, builtin_type_v4_int16,
9823 builtin_type_v8_int8): New (renamed) SIMD types.
9824
13e49980
MK
98252002-05-06 Mark Kettenis <kettenis@gnu.org>
9826
9827 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9828 (i387_fill_fxsave): Likewise.
9829
997b20b8
AO
98302002-05-05 Alexandre Oliva <aoliva@redhat.com>
9831
9832 * alpha-tdep.c (alpha_extract_return_value): Don't use
9833 non-constant array size in prototype.
9834
535c96ce
AC
98352002-05-04 Andrew Cagney <ac131313@redhat.com>
9836
9837 From Brian Taylor <briant at model dot com>:
9838 * ui-out.c (ui_out_field_core_addr): Use the function
9839 longest_local_hex_string_custom'to format addresses > 32 bits
9840 wide.
9841
9842 * ui-out.c (ui_out_field_core_addr): Update comment.
9843
bedfa57b
AC
98442002-05-04 Andrew Cagney <ac131313@redhat.com>
9845
9846 * stack.c (select_and_print_frame): Make static. Delete the
9847 parameter `level'.
9848 (func_command): Update call.
9849 (select_frame_command): Delete code computing the frame level.
9850 * frame.h (select_and_print_frame): Delete declaration.
9851
f621c63e
AC
98522002-05-04 Andrew Cagney <ac131313@redhat.com>
9853
9854 * sparc-tdep.c (sparc_get_saved_register): Comment why
9855 get_prev_frame call is safe.
9856
0f7d239c
AC
98572002-05-04 Andrew Cagney <ac131313@redhat.com>
9858
9859 * frame.h (select_frame): Delete level parameter.
9860 * stack.c (select_frame): Update. Use frame_relative_level to
9861 obtain the frame's level.
9862 (select_and_print_frame): Update call.
9863 (select_frame_command): Ditto.
9864 (up_silently_base): Ditto.
9865 (down_silently_base): Ditto.
9866 * ocd.c (ocd_start_remote): Ditto.
9867 * remote-rdp.c (remote_rdp_open): Ditto.
9868 * remote-mips.c (mips_initialize): Ditto.
9869 (common_open): Ditto.
9870 * remote-e7000.c (e7000_start_remote): Ditto.
9871 * m3-nat.c (select_thread): Ditto.
9872 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9873 (child_get_current_exception_event): Ditto.
9874 * varobj.c (varobj_create): Ditto.
9875 (varobj_update): Ditto.
9876 (c_value_of_root): Ditto.
9877 * tracepoint.c (finish_tfind_command): Ditto.
9878 * corelow.c (core_open): Ditto.
9879 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9880 * thread.c (info_threads_command): Ditto.
9881 (switch_to_thread): Ditto.
9882 * infrun.c (normal_stop): Ditto.
9883 (restore_selected_frame): Ditto.
9884 (restore_inferior_status): Ditto.
9885 * breakpoint.c (insert_breakpoints): Ditto.
9886 (watchpoint_check): Ditto.
9887 (bpstat_stop_status): Ditto.
9888 (do_enable_breakpoint): Ditto.
9889 * blockframe.c (flush_cached_frames): Ditto.
9890 (reinit_frame_cache): Ditto.
9891
71d6c7b1
AC
98922002-05-04 Andrew Cagney <ac131313@redhat.com>
9893
9894 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9895 maintainer.
9896
cda6c68a
JB
98972002-05-04 Jim Blandy <jimb@redhat.com>
9898
9899 * gdbtypes.c (replace_type): Doc fix.
9900
5c1c87f0
AC
99012002-05-04 Andrew Cagney <ac131313@redhat.com>
9902
9903 * valprint.c (strcat_longest): Delete commented out function.
9904 Update copyright.
9905
cd9bfe15
AC
99062002-05-04 Andrew Cagney <ac131313@redhat.com>
9907
9908 * MAINTAINERS: Mark a29k as deleted.
9909 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9910 Move new configurations to the top.
9911 * configure.tgt: Remove a29k.
9912 * config/a29k/tm-vx29k.h: Delete.
9913 * config/a29k/vx29k.mt: Delete.
9914 * config/a29k/tm-a29k.h: Delete.
9915 * config/a29k/a29k-udi.mt: Delete.
9916 * config/a29k/a29k.mt: Delete.
9917 * a29k-tdep.c: Delete.
9918 * remote-udi.c: Delete.
9919 * remote-mm.c: Delete.
9920 * remote-eb.c: Delete.
9921 * remote-adapt.c: Delete.
9922 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9923 * config/s390/s390x.mt: Ditto.
9924 * config/s390/s390.mt: Ditto.
9925 * config/sparc/sparclynx.mh: Ditto.
9926 * config/sparc/linux.mh: Ditto.
9927 * config/pa/hppaosf.mh: Ditto.
9928 * config/pa/hppabsd.mh: Ditto.
9929 * config/ns32k/nbsd.mt: Ditto.
9930 * config/mips/vr5000.mt: Ditto.
9931 * config/m68k/sun3os4.mh: Ditto.
9932 * config/m68k/nbsd.mt: Ditto.
9933 * config/m68k/m68klynx.mh: Ditto.
9934 * config/m32r/m32r.mt: Ditto.
9935 * config/i386/x86-64linux.mt: Ditto.
9936 * config/i386/nbsdelf.mt: Ditto.
9937 * config/i386/nbsd.mt: Ditto.
9938 * config/i386/i386lynx.mh: Ditto.
9939
bf0c5130
AC
99402002-05-04 Andrew Cagney <ac131313@redhat.com>
9941
9942 * target.c (debug_print_register): New function. Handle oversize
9943 registers.
9944 (debug_to_fetch_registers): Call.
9945 (debug_to_store_registers): Call.
9946
2ae1c2d2
JB
99472002-05-03 Jim Blandy <jimb@redhat.com>
9948
13a393b0
JB
9949 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9950 (read_type): Doc fix.
9951 * gdbtypes.c (replace_type): Doc fix.
9952
2ae1c2d2
JB
9953 * stabsread.c (multiply_defined_struct): New complaint.
9954 (read_struct_type): If the type we were passed isn't empty, or
9955 incomplete, don't read the new struct type into it; complain,
9956 and return the original type unchanged. Take a new `type_code'
9957 argument, which is the type code for the new type.
9958 (read_type): Rather than storing the type's type code here, pass
9959 it as an argument to read_struct_type, and let that take care of
9960 storing it. That way, we don't overwrite the original type code,
9961 so read_struct_type can use it to decide whether we're overwriting
9962 something we shouldn't.
9963 (complain_about_struct_wipeout): New function.
9964
8de9bdc4
AC
99652002-05-03 Andrew Cagney <ac131313@redhat.com>
9966
9967 * gdbarch.sh: Assert that gdbarch is non-NULL.
9968 * gdbarch.c: Regenerate.
9969
f773fdbb
JM
99702002-05-03 Jason Merrill <jason@redhat.com>
9971
9972 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9973 and return NULL.
9974
0e04a514
ML
99752002-05-03 Michal Ludvig <mludvig@suse.cz>
9976
9977 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9978 (x86_64_dwarf2gdb_regno_map_length),
9979 (x86_64_dwarf2_reg_to_regnum): Added.
9980 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9981 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9982 (_initialize_x86_64_tdep): Synced with the change above.
9983 (x86_64_skip_prologue): Reformulated message.
9984
065432a8
PM
99852002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9986
9987 * f-exp.y: Also use new prev_lexptr variable
9988 to improve error reporting. Based on Michael Snyder
9989 2002-04-24 dated patch to c-exp.y.
9990 * jv-exp.y: Likewise.
9991 * m2-exp.y: Likewise.
9992
a3162708
EZ
99932002-05-02 Elena Zannoni <ezannoni@redhat.com>
9994
9995 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9996 we are dealing with vectors.
9997
03620c38
PM
99982002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9999
10000 * config/m68k/tm-nbsd.h: Obvious fix,
10001 correct machine name.
10002
6604db2e
PM
100032002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10004
10005 * p-typeprint.c (pascal_type_print_base): Add support
10006 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10007
0906b739
PM
100082002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10009
10010 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10011 for fondamental pascal 'char' type.
10012
e2625b33
PM
100132002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10014
10015 * p-lang.h (is_pascal_string_type): Declaration changed,
10016 new sixth argument of type char ** added.
361d1df0 10017 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10018 changed. Args length_pos, length_size, string_pos, char_size
10019 can now be NULL. New argument arrayname set to the field
10020 name of the char array. Return value set to char array
10021 field index plus one.
361d1df0 10022 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10023 is_pascal_string_type function.
10024
cf17c188
AC
100252002-05-02 Andrew Cagney <cagney@redhat.com>
10026
10027 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10028 <cagney@redhat.com> change.
10029 * gdbarch.c: Regenerate.
10030
52bca491
AC
100312002-05-02 Andrew Cagney <cagney@redhat.com>
10032
10033 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10034 before probing for a new one. Detect errorenous gdbarch_init
10035 functions.
10036 * gdbarch.c: Regenerate.
10037
d5e72505
AC
100382002-05-01 Andrew Cagney <cagney@redhat.com>
10039
10040 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10041 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10042 * config/v850/tm-v850.h: Ditto. Update copyright.
10043
af566d9f
AC
100442002-04-30 Andrew Cagney <ac131313@redhat.com>
10045
10046 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10047 current_gdbarch.
10048
880d85fa
MS
100492002-04-30 Michael Snyder <msnyder@redhat.com>
10050
94c30b78
MS
10051 * arm-tdep.c: Whitespace clean-ups.
10052 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10053 should have been removed as part of 4/24 change.
10054
6f5987a6
KB
100552002-04-30 Kevin Buettner <kevinb@redhat.com>
10056
10057 * rs6000-tdep.c: Added comment describing how fpscr register
10058 numbers were chosen.
10059
1a113c93
MS
100602002-04-30 Michael Snyder <msnyder@redhat.com>
10061
10062 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10063
9a6f53fe
EZ
100642002-04-29 Elena Zannoni <ezannoni@redhat.com>
10065
10066 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10067 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10068 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10069
11ed25ac
KB
100702002-04-29 Kevin Buettner <kevinb@redhat.com>
10071
10072 From Louis Hamilton <hamilton@redhat.com>:
10073 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10074 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10075 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10076 not bfd-private xcoff data, to determine wordsize.
10077 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10078
ae232405
AC
100792002-04-29 Andrew Cagney <ac131313@redhat.com>
10080
10081 GDB 5.2 released from 5.2 branch.
10082
91fd20f7
ML
100832002-04-29 Michal Ludvig <mludvig@suse.cz>
10084
10085 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10086 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10087 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10088
2dc5091b
EZ
100892002-04-29 Elena Zannoni <ezannoni@redhat.com>
10090
10091 * rs6000-tdep.c (rs6000_extract_return_value,
10092 rs6000_store_return_value): Handle returning vectors.
10093 (rs6000_gdbarch_init): Use
10094 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10095 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10096 New function.
10097 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10098 vectors.
10099 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10100 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10101
2b9848d8
PM
101022002-04-24 Pierre Muller <ics.u-strasbg.fr>
10103
10104 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10105 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10106 with fprintf_unfiltered (gdb_stderr,...).
10107
f8d17dc5
PM
101082002-04-24 Pierre Muller <ics.u-strasbg.fr>
10109
10110 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10111 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10112 Replace fprintf (stderr,...
10113 with fprintf_unfiltered (gdb_stderr,....
10114 * remote-es.c: Likewise.
10115 * remote-os9k.c: Likewise.
10116 * remote-st.c: Likewise.
10117
2f2f1ad1
AS
101182002-04-28 Andreas Schwab <schwab@suse.de>
10119
10120 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10121 linux-proc.o and gcore.o.
10122
b6779aa2
AC
101232002-04-26 Michal Ludvig <mludvig@suse.cz>
10124
10125 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10126 code without frame pointers.
10127
7e57f5f4
AC
101282002-04-26 Andrew Cagney <ac131313@redhat.com>
10129
10130 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10131 ON_STACK is needed.
10132
2ceb85d0
BE
101332002-04-26 Ben Elliston <bje@redhat.com>
10134
10135 * target.c (do_xfer_memory): Correct reference to the new option
10136 "trust-readonly-sections".
10137
f5f8a009
EZ
101382002-04-26 Elena Zannoni <ezannoni@redhat.com>
10139
10140 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10141 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10142 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10143 vectors.
10144 (read_array_type): Record the fact that this array type is really a
10145 vector (i.e. are passed in by value).
10146
5868c862
JT
101472002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10148
10149 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10150 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10151 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10152 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10153 * alpha-linux-tdep.c: Include frame.h.
10154 (alpha_linux_sigcontext_addr): New function.
10155 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10156 alpha_linux_sigcontext_addr.
10157 * alpha-osf1-tdep.c: Include gdbcore.h.
10158 (alpha_osf1_sigcontext_addr): New function.
10159 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10160 alpha_osf1_sigcontext_addr.
10161 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10162 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10163
bfb01f37
AC
101642002-04-26 Andrew Cagney <ac131313@redhat.com>
10165
361d1df0 10166 * stack.c (selected_frame_level):
bfb01f37
AC
10167 (select_frame): Do not set selected_frame_level.
10168 * frame.h (selected_frame_level): Delete declaration.
10169
15813d3f
AC
101702002-04-26 Andrew Cagney <ac131313@redhat.com>
10171
10172 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10173 convert_from_func_ptr-addr when AIX / PowerOpen.
10174
6096c27a
AC
101752002-04-25 Andrew Cagney <ac131313@redhat.com>
10176
10177 * valops.c (hand_function_call): Call
10178 generic_save_call_dummy_addr.
10179 * frame.h (generic_save_call_dummy_addr): Declare.
10180 * blockframe.c (struct dummy_frame): Add fields call_lo and
10181 call_hi.
10182 (generic_find_dummy_frame): Check for PC in range call_lo to
10183 call_hi instead of entry_point_address.
10184 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10185 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10186 (generic_save_call_dummy_addr): New function.
10187
f510d44e
DM
101882002-04-24 David S. Miller <davem@redhat.com>
10189
10190 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10191 sparc_skip_prologue.
10192 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10193 information to find prologue when possible.
10194 (sparc_prologue_frameless_p): Call examine_prologue directly.
10195 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10196 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10197 second argument.
10198 (SKIP_PROLOGUE): Likewise.
10199
15d72a92
JT
102002002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10201
10202 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10203 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10204 indicate that the condition it was testing is always true.
10205 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10206 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10207 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10208
accc6d1f
JT
102092002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10210
10211 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10212 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10213 tdep->jb_pc and tdep->jb_elt_size.
10214 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10215 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10216 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10217 * alpha-nat.c (get_longjmp_target): Remove.
10218 (JB_ELEMENT_SIZE): Ditto.
10219 (JB_PC): Ditto.
10220 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10221 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10222 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10223 to alpha_get_longjmp_target.
10224 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10225 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10226 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10227
1bfdc549
AC
102282002-04-25 Andrew Cagney <ac131313@redhat.com>
10229
10230 * README: Update to GDB 5.2.
10231
1bd316f0
AC
102322002-04-25 Andrew Cagney <ac131313@redhat.com>
10233
10234 * gdbarch.sh (LC_ALL): Set to `c'.
10235
2e5ff58c
TR
102362002-04-25 Theodore A. Roth <troth@verinet.com>
10237
10238 * avr-tdep.c: Ran through gdb_indent.sh.
10239
e33ce519
TR
102402002-04-25 Theodore A. Roth <troth@verinet.com>
10241
10242 * MAINTAINERS: Add myself as AVR maintainer.
10243 * NEWS: Note new target avr.
10244
8818c391
TR
102452002-04-25 Theodore A. Roth <troth@verinet.com>
10246
10247 * Makefile.in: Add support for AVR target.
10248 * configure.tgt: Add support for AVR target.
10249 * avr-tdep.c: New file
10250 * config/avr/avr.mt: New file.
10251
79509c2d
TR
102522002-04-25 Theodore A. Roth <troth@verinet.com>
10253
10254 * MAINTAINERS: Add myself to write-after-approval.
10255
dac8068e
PM
102562002-04-24 Pierre Muller <ics.u-strasbg.fr>
10257
10258 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10259 with fprintf_unfiltered (gdb_stderr,....
10260
25bf3106
PM
102612002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10262
10263 Fix PR gdb/508.
10264 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10265
24467a86
PM
102662002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10267
10268 * p-exp.y: Also use new prev_lexptr variable
10269 to improve error reporting. Based on Michael Snyder
10270 2002-04-24 dated patch to c-exp.y.
10271
95b80706
JT
102722002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10273
10274 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10275 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10276 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10277 to 0.
10278 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10279 and struct value.
10280 (FUNCTION_START_OFFSET): Remove.
10281 (BREAKPOINT): Ditto.
10282
e90cc612
JT
102832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10284
10285 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10286 * NEWS: Ditto.
10287
6c72f9f9
JT
102882002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10289
10290 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10291 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10292 alpha_linux_pc_in_sigtramp.
10293 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10294 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10295 alpha_osf1_pc_in_sigtramp.
10296 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10297 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10298 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10299 alphafbsd_pc_in_sigtramp.
10300 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10301 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10302 alphanbsd_pc_in_sigtramp.
10303 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10304 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10305
5e4f3379
JT
103062002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10307
10308 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10309
da8ca43d
JT
103102002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10311
10312 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10313 alphanbsd-tdep.c.
10314 (alphanbsd-nat.o): New dependency list.
10315 (alphanbsd-tdep.o): Ditto.
10316 * NEWS: Note new native NetBSD/alpha configuration.
10317 * alphanbsd-nat.c: New file.
10318 * alphanbsd-tdep.c: Ditto.
10319 * configure.host (alpha*-*-netbsd*): New host.
10320 * configure.tgt (alpha*-*-netbsd*): New target.
10321 * config/alpha/nbsd.mh: New file.
10322 * config/alpha/nbsd.mt: Ditto.
10323 * config/alpha/nm-nbsd.h: Ditto.
10324 * config/alpha/tm-nbsd.h: Ditto.
10325
36a6271d
JT
103262002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10327
10328 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10329 (alpha-osf1-tdep.o): New dependency list.
10330 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10331 and skip_sigtramp_frame members.
10332 * alpha-linux-tdep.c: Include gdbcore.h.
10333 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10334 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10335 * alpha-osf1-tdep.c: New file.
10336 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10337 alpha-osf1-dep.c.
10338 (alpha_frame_past_sigtramp_frame): New function.
10339 (alpha_dynamic_sigtramp_offset): Ditto.
10340 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10341 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10342 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10343 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10344 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10345 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10346 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10347 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10348 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10349 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10350 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10351 to find_solib_trampoline_target.
10352 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10353 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10354 (SKIP_TRAMPOLINE_CODE): Remove.
10355 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10356 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10357 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10358 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10359 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10360 (PROC_SIGTRAMP_MAGIC): Ditto.
10361 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10362 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10363 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10364 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10365 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10366
2f4bc57b
JT
103672002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10368
10369 * NEWS: Note that Alpha targets are now multi-arch.
10370
665132f9
MS
103712002-04-24 Michael Snyder <msnyder@redhat.com>
10372
10373 * parser-defs.h (prev_lexptr): New external variable.
10374 * parse.c (parse_exp_1): Set prev_lexptr to null before
10375 calling the language-specific parser.
10376 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10377 (yyerror): Use prev_lexptr in error reporting.
10378
32872fa7
DJ
103792002-04-24 Daniel Jacobowitz <drow@mvista.com>
10380
10381 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10382 * gregset.h: If FILL_FPXREGSET is defined, provide
10383 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10384 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10385 is defined, call fill_fpxregset.
10386
57e76fac
MS
103872002-04-24 Roland McGrath <roland@frob.com>
10388
10389 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10390 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10391 (supply_gregset, supply_fpregset): New functions.
10392
10393 * gnu-nat.c (gnu_find_memory_regions): New function.
10394 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10395 (gnu_xfer_memory): Add a cast.
10396
f43845b3
MS
103972002-04-24 Michael Snyder <msnyder@redhat.com>
10398
361d1df0 10399 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10400 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10401 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10402 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10403 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10404 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10405
a0abec03
AC
10406Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10407
10408 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10409 NUM_PSEUDO_REGS can be used.
10410
d7bd68ca
AC
104112002-04-24 Andrew Cagney <ac131313@redhat.com>
10412
10413 * arch-utils.h: Update copyright.
10414
10415 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10416 * gdbarch.h, gdbarch.c: Re-generate.
10417
10418 * inferior.h (IN_SIGTRAMP): Delete definition.
10419 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10420 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10421
10422 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10423 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10424 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10425 (find_proc_framesize): Ditto.
10426 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10427 (alpha_init_extra_frame_info): Ditto.
10428 * infrun.c (handle_inferior_event): Ditto.
10429 (handle_inferior_event): Ditto.
10430 (check_sigtramp2): Ditto.
10431 * blockframe.c (create_new_frame): Ditto.
10432 (get_prev_frame): Ditto.
10433 * ppc-linux-tdep.c: Update comments.
10434 * i386-linux-tdep.c: Update comments.
10435 * breakpoint.c (bpstat_what): Update comment.
10436
4867e41e
DM
104372002-04-24 David S. Miller <davem@redhat.com>
10438
21d83aa5
DM
10439 * i960-tdep.c (register_in_window_p): New function.
10440 (i960_find_saved_register): Use it instead of
10441 REGISTER_IN_WINDOW_P.
10442 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10443
4867e41e
DM
10444 * symtab.h (find_stab_function_addr): Kill extern.
10445 * minsyms.c (find_stab_function_addr): Remove from here...
10446 * dbxread.c: ... to here, and mark it static.
10447
69cdf6a2
DM
104482002-04-20 David S. Miller <davem@redhat.com>
10449
10450 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10451 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10452
5a595886
DM
104532002-04-21 David S. Miller <davem@redhat.com>
10454
10455 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10456 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10457 (vx_write_register): Likewise.
10458
1da1a192
JB
104592002-04-23 J. Brobecker <brobecker@gnat.com>
10460
10461 * source.c (is_regular_file): New function.
10462 (openp): Check wether file to open is a regular file
10463 to avoid opening directories.
10464
baa6f10b
JT
104652002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10466
10467 * findvar.c (extract_signed_integer): Cast printf argument
10468 to suppress format warning.
10469 (extract_unsigned_integer): Likewise.
10470 * infcmd.c (registers_info): Likewise.
10471 * top.c (get_prompt_1): Likewise.
10472 * valops.c (value_assign): Likewise.
10473 * valprint.c (print_decimal): Likewise.
10474
b2c4da81
L
104752002-04-22 H.J. Lu (hjl@gnu.org)
10476
10477 * c-exp.y (typebase): Support
361d1df0 10478
b2c4da81
L
10479 [long|long long|short] [signed|unsigned] [int|]
10480
10481 and
10482
10483 signed [long|long long|short] int
10484
f267bd6a
JT
104852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10486
10487 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10488 and vax-tdep.h.
10489 * vax-tdep.h: New file.
10490 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10491 Make several routines static.
10492 (vax_get_saved_register): New function.
10493 (vax_gdbarch_init): New function.
10494 (_initialize_vax_tdep): Register vax_gdbarch_init.
10495 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10496 Remove macros now under the control of gdbarch.
10497
da3c6d4a
MS
104982002-04-22 Michael Snyder <msnyder@redhat.com>
10499
11d3b27d
MS
10500 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10501 Some whitespace and coding standards tweaks.
da3c6d4a 10502
a33f7558
JT
105032002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10504
10505 * vax-tdep.c: Include regcache.h.
10506 (vax_call_dummy_words): New.
10507 (sizeof_vax_call_dummy_words): New.
10508 (vax_fix_call_dummy): New function.
10509 (vax_saved_pc_after_call): Ditto.
10510 * config/vax/tm-vax.h: Don't include regcache.h.
10511 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10512 (CALL_DUMMY): Remove.
10513 (CALL_DUMMY_WORDS): Define.
10514 (SIZEOF_CALL_DUMMY_WORDS): Define.
10515 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10516
47a73475
MS
105172002-04-18 Michael Snyder <msnyder@redhat.com>
10518
10519 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10520
52efde73
JT
105212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10522
10523 * vax-tdep.c (vax_frame_chain): New function.
10524 (vax_push_dummy_frame): Ditto.
10525 (vax_pop_frame): Ditto.
10526 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10527 (FRAMELESS_FUNCTION_INVOCATION): Use
10528 generic_frameless_function_invocation_not.
10529 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10530 (POP_FRAME): Use vax_pop_frame.
10531
ea74468c
JT
105322002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10533
10534 * vax-tdep.c (vax_store_struct_return): New function.
10535 (vax_extract_return_value): Ditto.
10536 (vax_store_return_value): Ditto.
10537 (vax_extract_struct_value_address): Ditto.
10538 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10539 vax_store_struct_return.
10540 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10541 (STORE_RETURN_VALUE): Use vax_store_return_value.
10542 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10543
5516aa92
JT
105442002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10545
10546 * vax-tdep.c (vax_frame_saved_pc): New function.
10547 (vax_frame_args_address_correct): Ditto.
10548 (vax_frame_args_address): Ditto.
10549 (vax_frame_locals_address): Ditto.
10550 (vax_frame_num_args): Move code to be in proximity to
10551 other frame-related functions.
10552 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10553 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10554 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10555 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10556 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10557
36af0b35
L
105582002-04-22 H.J. Lu (hjl@gnu.org)
10559
10560 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10561 includedir.
10562
ab62c900
JT
105632002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10564
10565 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10566 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10567 (FRAME_INIT_SAVED_REGS): New macro.
10568
7232b100
JT
105692002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10570
10571 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10572
b70d2aee
JT
105732002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10574
10575 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10576 where needed.
10577 (fetch_osf_core_registers): Likewise.
10578 (supply_gregset): Likewise.
10579
a0e8a2d1 105802002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10581
a0e8a2d1
JB
10582 * symfile.h (get_section_index): Define.
10583 * symfile.c (get_section_index): New function.
10584 * mdebugread.c (SC_IS_SBSS): New macro.
10585 (SC_IS_BSS): Return true for the scBss storage class only, as
10586 the scSBss storage class refers to the .sbss section.
10587 (parse_partial_symbols): Discard the symbols which associated
10588 section does not exist.
10589 Make sure to use the .sbss section index for symbols which
10590 storage class is scBss, rather than using the .bss section index.
10591
51eb8b08
JT
105922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10593
10594 * vax-tdep.c: Update copyright years.
10595 (vax_register_name): New function.
10596 (vax_register_byte): Ditto.
10597 (vax_register_raw_size): Ditto.
10598 (vax_register_virtual_size): Ditto.
10599 (vax_register_virtual_type): Ditto.
10600 * config/vax/tm-vax.h: Update copyright years.
10601 (REGISTER_NAMES): Remove.
10602 (REGISTER_NAME): Define.
10603 (REGISTER_BYTE): Use vax_register_byte.
10604 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10605 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10606 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10607
6cc1c0a8
AC
106082002-04-21 Andrew Cagney <ac131313@redhat.com>
10609
10610 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10611 declaration
10612 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10613
9319a2fe
DM
106142002-04-21 David S. Miller <davem@redhat.com>
10615
10616 * arch-utils.c (generic_prologue_frameless_p): Kill
10617 SKIP_PROLOGUE_FRAMELESS_P code.
10618 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10619 references.
10620 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10621 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10622 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10623 references.
10624 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10625 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10626 (sparc_gdbarch_init): Pass it to
10627 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10628
e9ed6d01
JT
106292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10630
10631 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10632 (alphabsd-nat.o): New dependency list.
10633
36012033
JT
106342002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10635
10636 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10637 alphafbsd-tdep.c.
10638 (alpha-linux-tdep.o): New dependency list.
10639 (alphafbsd-tdep.o): Likewise.
10640
3379287a
JT
106412002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10642
10643 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10644 to here...
10645 * alpha-tdep.c: ...from here.
10646 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10647
4bcbd6cb
JT
106482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10649
10650 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10651 prototype from here...
10652 * alpha-tdep.h: ...to here.
10653
b31da25e
AC
106542002-04-21 Andrew Cagney <ac131313@redhat.com>
10655
10656 * frame.h (selected_frame_level): Document as deprecated.
10657 (frame_relative_level): Declare.
10658 * stack.c (frame_relative_level): New function.
10659 (selected_frame_level): Document as deprecated.
10660 (select_frame): Do not set the selected_frame_level.
10661
10662 * stack.c (frame_info, record_selected_frame): Update.
10663 (frame_command, current_frame_command): Update.
10664 (up_silently_base, up_command, down_silently_base): Update.
10665 (down_command): Update.
10666 * inflow.c (kill_command): Update.
10667 * tracepoint.c (finish_tfind_command): Update.
10668 * corelow.c (core_open): Update.
10669 * thread.c (info_threads_command): Update.
10670 (do_captured_thread_select): Update.
10671 * infcmd.c (finish_command): Update.
10672 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10673
9c1d6fe5
JT
106742002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10675
10676 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10677
ab89facf
AC
106782002-04-21 Andrew Cagney <ac131313@redhat.com>
10679
10680 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10681 type const.
10682
82a4efa1
JT
106832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10684
10685 * alphafbsd-tdep.c: Update copyright years. Include
10686 alpha-tdep.h.
10687 (alphafbsd_use_struct_convention): Make static.
10688 (alphafbsd_init_abi): New function.
10689 (_initialize_alphafbsd_tdep): New function.
10690 * config/alpha/tm-fbsd.h: Update copyright years.
10691 (USE_STRUCT_CONVENTION): Remove.
10692
44dffaac
JT
106932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10696 an Alpha ABI variant.
10697 (alpha_abi_handler_list): Declare.
10698 (alpha_gdbarch_register_os_abi): New function.
10699 (alpha_gdbarch_init): Give registered ABI variant handlers a
10700 chance to tweak the gdbarch once we have set up defaults.
10701 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10702
65585be4
JT
107032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10704
10705 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10706 to standard_coerce_float_to_double.
10707 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10708
d9b023cc
JT
107092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10710
10711 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10712 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10713 from gdbarch_tdep rather than a constant.
10714 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10715 the default text address for all Alpha Unix ABIs.
10716 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10717 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10718
dc129d82
JT
107192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10720
10721 * alpha-tdep.h: New file. Includes several Alpha target constants
10722 taken from...
10723 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10724 let gdbarch deal with.
10725 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10726 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10727 to dependency list.
10728 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10729 Alpha target register names.
10730 * alphabsd-nat.c: Likewise.
10731 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10732 Alpha target register names. Make serveral routines static.
10733 (alpha_get_saved_register): New function.
10734 (alpha_abi_names): New.
10735 (process_note_abi_tag_sections): New function.
10736 (get_elfosabi): New function.
10737 (alpha_gdbarch_init): New function.
10738 (alpha_dump_tdep): New function.
10739 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10740
d49d1e0a
AC
107412002-04-21 Andrew Cagney <ac131313@redhat.com>
10742
10743 * frame.c (find_saved_register): Delete #ifdef
10744 HAVE_REGISTER_WINDOWS code.
10745 * config/sparc/tm-sparc.h: Update comments.
10746 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10747
92e8c9ed
AC
107482002-04-21 Andrew Cagney <ac131313@redhat.com>
10749
10750 * i960-tdep.c (i960_find_saved_register): New function.
10751 (i960_get_saved_register): New function.
10752 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10753 (i960_get_saved_register): Declare.
10754 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10755
e1925118
DM
107562002-04-20 David S. Miller <davem@redhat.com>
10757
10758 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10759
29673b29
AC
107602002-04-20 Andrew Cagney <ac131313@redhat.com>
10761
10762 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10763 instead of NUM_PSEUDO_REGS.
10764
6c86dcd5
DM
107652002-04-20 David S. Miller <davem@redhat.com>
10766
10767 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10768 GDB_MULTI_ARCH_PARTIAL
10769 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10770 define, let tm-sp64.h do it.
10771
aa40ec90
JT
107722002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10773
10774 * frame.c (find_saved_register): Avoid a NULL pointer
10775 dereference and actually walk the frame list.
10776
0f79675b
AC
107772002-04-20 Andrew Cagney <ac131313@redhat.com>
10778
10779 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10780 sorted in most most-recent-used order. Document.
10781 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10782
f91305dd 107832002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10784
10785 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10786 instead of ->prev.
10787 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10788 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10789 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10790 instead of ->prev.
10791
73d322b1
EZ
107922002-04-19 Elena Zannoni <ezannoni@redhat.com>
10793
10794 Fix PR gdb/471.
10795 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10796 (build_builtin_type_vec128): Ditto.
10797 (append_composite_type_field): Fix calculation of type length in
10798 union case.
10799
ccd9a834
EZ
108002002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10801
10802 * config/djgpp/README: Update.
10803
10804 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10805 compiler warnings.
10806
a57f9e49
JT
108072002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10808
10809 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10810 (alpha_setup_arbitrary_frame): ...to this.
10811 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10812 for alpha_setup_arbitrary_frame.
10813
f4f9705a
AC
108142002-04-18 Andrew Cagney <cagney@redhat.com>
10815
10816 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10817 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10818
f4f9705a
AC
10819 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10820 * target.h (memory_breakpoint_from_pc): Update declaration.
10821 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10822
10823 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10824 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10825 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10826 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10827 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10828 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10829 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10830 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10831 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10832 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10833 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10834 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10835
10836 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10837 const pointer.
10838 * monitor.c (monitor_insert_breakpoint): Ditto.
10839 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10840
10841 * config/mcore/tm-mcore.h: Update copyright.
10842 * mem-break.c: Ditto.
10843 * xstormy16-tdep.c: Ditto.
10844
29f319b8
PM
108452002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10846
10847 * p-exp.y: Add precedence rule for '^' token.
10848 This removes the shift/reduce conflicts.
10849 Remove the comment concerning these shift/reduce conflicts.
10850
ebeac11a
EZ
108512002-04-18 Elena Zannoni <ezannoni@redhat.com>
10852
10853 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10854 (registers_powerpc_nofp): New register set for processors
10855 without floating point unit.
10856
27c31547
DM
108572002-04-18 David S. Miller <davem@redhat.com>
10858
10859 * MAINTAINERS: Add myself to write-after-approval.
10860
47a73475
MS
108612002-04-17 Michael Snyder <msnyder@redhat.com>
10862
10863 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10864
953836b2
AC
108652002-04-17 Andrew Cagney <ac131313@redhat.com>
10866
10867 * rs6000-tdep.c (frame_initial_stack_address): Use
10868 frame_register_read to read the alloca_reg.
10869
8b0d4340
AC
108702002-04-17 Andrew Cagney <ac131313@redhat.com>
10871
10872 * frame.c (find_saved_register): Find saved registers in the next
10873 not prev frame.
10874 Fix PR gdb/365.
10875
d8864532
AC
108762002-04-17 Andrew Cagney <ac131313@redhat.com>
10877
10878 * gdbarch.sh (LANG): Set to ``c''.
10879
36cc83a3 108802002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10881
36cc83a3 10882 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10883
2f4150cc 108842002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10885
10886 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10887 Update copyright.
10888
628703c6 10889 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10890 Also fix PR gdb/391.
361d1df0 10891
56157b4a
AC
108922002-04-14 Andrew Cagney <ac131313@redhat.com>
10893
10894 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10895 * aclocal.m4, configure: Re-generate.
10896 Fix PR gdb/391.
361d1df0 10897
6d1e3329
EZ
108982002-04-14 Elena Zannoni <ezannoni@redhat.com>
10899
10900 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10901 instead of tm_print_insn.
10902
cb06fa07
EZ
109032002-04-14 Elena Zannoni <ezannoni@redhat.com>
10904
10905 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10906
f208ba17
AC
109072002-04-14 Andrew Cagney <ac131313@redhat.com>
10908
10909 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10910 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10911 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10912
20f01a46
DH
109132002-04-12 Don Howard <dhoward@redhat.com>
10914
10915 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10916 max_user_call_depth.
10917 (init_cmd_lists): Initialize the new value;
10918 * cli/cli-script.c (execute_user_command): Limit the call depth of
10919 user defined commands. This avoids a core-dump when user commands
10920 are infinitly recursive.
10921
a88376a3
KB
109222002-04-12 Kevin Buettner <kevinb@redhat.com>
10923
10924 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10925 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10926 from tdep struct instead of DEFAULT_LR_SAVE.
10927 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10928 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10929 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10930
f2172603
MS
109312002-04-12 Michael Snyder <msnyder@redhat.com>
10932
694f61fb 10933 * Remote.c: Spelling fix.
20fe79c8
MS
10934 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10935 If no symbol found for "sbrk", try "_sbrk".
10936 (make_output_phdrs): Use bfd_section_name.
10937 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10938 * eval.c: Indentation fix-ups.
169a7369
MS
10939 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10940 in case it gets applied to an address that is already
10941 in the instruction space.
de74f71f
MS
10942 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10943 * symfile.c: Fix indentation, long lines.
f2172603
MS
10944 * source.c: White space fix-up.
10945
cda5a58a
AC
109462002-04-12 Andrew Cagney <cagney@redhat.com>
10947
10948 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10949 * frame.c (frame_register_read): New function. Return non-zero on
10950 success.
10951 (read_relative_register_raw_bytes_for_frame): Delete.
10952 (read_relative_register_raw_bytes): Delete.
10953 * frame.h (frame_register_read): Declare.
10954 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10955 * sh-tdep.c: Ditto.
10956 * infcmd.c (do_registers_info): Ditto.
10957 * hppa-tdep.c: Ditto.
10958 * rs6000-tdep.c: Ditto.
10959 * h8500-tdep.c: Ditto.
10960 * mips-tdep.c: Ditto.
10961 * h8300-tdep.c: Ditto.
10962 * z8k-tdep.c: Ditto.
10963
2ea5f656
KB
109642002-04-12 Kevin Buettner <kevinb@redhat.com>
10965
10966 From Jimi X <jimix@watson.ibm.com>:
10967 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10968 64-bit SysV ABI.
10969
27b15785
KB
109702002-04-12 Kevin Buettner <kevinb@redhat.com>
10971
10972 From Jimi X <jimix@watson.ibm.com>:
10973 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10974 bfd info.
10975
5d57ee30
KB
109762002-04-12 Kevin Buettner <kevinb@redhat.com>
10977
10978 From Jimi X <jimix@watson.ibm.com>:
10979 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10980 register sets for these processor variants.
10981
bc1e36ca
DJ
109822002-04-11 Daniel Jacobowitz <drow@mvista.com>
10983
bc1e36ca
DJ
10984 * regformats/reg-ppc.dat: Support FPSCR.
10985
e3f36dbd
KB
109862002-04-11 Kevin Buettner <kevinb@redhat.com>
10987
10988 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10989 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10990 Add fpscr as an invalid/unfetchable register.
10991 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10992 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10993 (fill_fpregset): Add support for register fpscr.
10994 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10995 (fill_gregset): Account for the fact that register ``mq'' might
10996 not exist.
10997 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10998 (registers_power): Add fpscr to register set at slot 71.
10999 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11000 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11001
943c9c25
MS
110022002-04-11 Michael Snyder <msnyder@redhat.com>
11003
11004 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11005 * configure: Regenerate.
11006 * config.in: Regenerate.
11007 * acconfig.h: Add define for _SYSCALL32.
11008 * core-sol2.c: Remove #define _SYSCALL32.
11009 * solib-legacy.c: Remove #define _SYSCALL32.
11010
d8c0a2e7
AC
110112002-04-10 Andrew Cagney <ac131313@redhat.com>
11012
11013 * stack.c (select_frame): Cleanup internal error message, do not
11014 use %p.
11015
7cc19214
AC
110162002-04-10 Andrew Cagney <ac131313@redhat.com>
11017
11018 * stack.c (select_frame): Check that selected_frame and the
11019 specified level are as expected.
11020 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11021 Update copyright.
11022 * frame.h (struct frame_info): Add field `level'. Update
11023 copyright.
11024 Work-in-progress PR gdb/464.
11025
67a2b77e
AC
110262002-04-10 Andrew Cagney <ac131313@redhat.com>
11027
11028 * maint.c (maint_print_section_info): Rename print_section_info.
11029 (print_bfd_section_info, print_objfile_section_info): Update.
11030 * inferior.h (struct gdbarch): Add opaque declaration.
11031 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11032 * gdbarch.h: Regenerate.
11033
8cfda98c
ML
110342002-04-10 Michal Ludvig <mludvig@suse.cz>
11035
11036 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11037 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11038 (kernel_u_size): Added.
11039 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11040 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11041
ca439ad2 110422002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11043
ca439ad2
JI
11044 * valarith.c (find_size_for_pointer_math): New function, either returns
11045 the size for a pointer's target, returns 1 for void *, or errors for
11046 incomplete types.
11047 (value_add, value_sub): use find_size_for_pointer_math.
11048
2f2893d9
DJ
110492002-04-09 Daniel Jacobowitz <drow@mvista.com>
11050
11051 * linux-low.c (linux_look_up_symbols): New hook.
11052 (linux_target_ops): Add linux_look_up_symbols.
11053 * remote-utils.c (decode_address): New function.
11054 (look_up_one_symbol): New function.
11055 * server.c (handle_query): Call target look_up_symbols hook.
11056 * server.h (look_up_one_symbol): Add prototype.
11057 * target.h (struct target_ops): Add look_up_symbols hook.
11058
96cb11df
AC
110592002-04-09 Andrew Cagney <ac131313@redhat.com>
11060
11061 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11062 override FP_REGNUM with frame->fp. Update copyright.
11063 * parse.c (num_std_regs, std_regs): Delete.
11064 (target_map_name_to_register): Do not search std_regs. Update
11065 function description.
11066 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11067 declarations. Update copyright.
11068 Fix PR gdb/251.
361d1df0 11069
97658e92
DJ
110702002-04-09 Daniel Jacobowitz <drow@mvista.com>
11071
11072 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11073 after the last symbol in a block.
11074
6044e3eb
PM
110752002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11076
11077 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11078 is non zero as a found symbol.
11079
0406ec40
AC
110802002-04-08 Andrew Cagney <ac131313@redhat.com>
11081
11082 * findvar.c: Include "builtin-regs.h".
11083 (value_of_register): Call value_of_builtin_reg when applicable.
11084 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11085 (target_map_name_to_register): Call
11086 builtin_reg_map_name_to_regnum.
11087 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11088 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11089 (builtin_regs_h): Define.
11090 (builtin-regs.o): New target.
11091 (findvar.o): Add $(builtin_regs_h).
11092 * builtin-regs.c, builtin-regs.h: New files.
11093 * std-regs.c: New file.
11094 Partial fix for PR gdb/251.
11095
56a6dfb9
KB
110962002-04-08 Kevin Buettner <kevinb@redhat.com>
11097
11098 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11099 it's no longer required.
11100
3a808432
AC
111012002-04-08 Andrew Cagney <ac131313@redhat.com>
11102
11103 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11104
7c40d541
KB
111052002-04-08 Kevin Buettner <kevinb@redhat.com>
11106
11107 From Jimi X <jimix@watson.ibm.com>:
11108 * rs6000-tdep.c (rs6000_software_single_step): Use
11109 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11110 and size. Use target_insert_breakpoint() and
11111 target_remove_breakpoint() to insert and remove breakpoints
11112 instead of explicit memory reads and writes.
11113
cc9836a8
KB
111142002-04-08 Kevin Buettner <kevinb@redhat.com>
11115
11116 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11117 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11118 ELF_OBJECT_FORMAT ifdef.
11119
7495d1dc
KB
111202002-04-08 Kevin Buettner <kevinb@redhat.com>
11121
11122 From Jimi X <jimix@watson.ibm.com>:
11123 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11124
4288e836
KB
111252002-04-08 Kevin Buettner <kevinb@redhat.com>
11126
11127 From Jimi X <jimix@watson.ibm.com>:
11128 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11129 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11130
a4e4e501
MK
111312002-04-07 Mark Kettenis <kettenis@gnu.org>
11132
11133 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11134 s/asprintf/xasprintf/.
11135 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11136
006defba
AC
111372002-04-07 Andrew Cagney <ac131313@redhat.com>
11138
11139 I believe Jeff Law denies responsability for this one:
11140 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11141 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11142 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11143 Work-around for PR gdb/366.
11144
7aa83cac
EZ
111452002-04-07 Elena Zannoni <ezannoni@redhat.com>
11146
11147 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11148 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11149 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11150
cf1fcca1
EZ
111512002-04-07 Elena Zannoni <ezannoni@redhat.com>
11152
11153 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11154 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11155 information.
11156
3f289e6f
AC
111572002-04-07 Andrew Cagney <ac131313@redhat.com>
11158
11159 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11160 maintainer.
11161
129188f6
AC
111622002-04-07 Andrew Cagney <ac131313@redhat.com>
11163
11164 * README (Reporting Bugs in GDB): Document the bug web page as the
11165 prefered way of submitting bugs.
11166 Fix PR gdb/402.
11167
1200cd6e
AC
111682002-04-06 Andrew Cagney <ac131313@redhat.com>
11169
11170 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11171 -1. Update comment.
11172 * gdbarch.h, gdbarch.c: Re-generate.
11173
2853c33c
AS
111742002-04-07 Andreas Schwab <schwab@suse.de>
11175
11176 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11177 buffer to regcache_collect.
11178
c2169756
AC
111792002-04-06 Andrew Cagney <ac131313@redhat.com>
11180
11181 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11182 * gdbarch.c, gdbarch.h: Re-generate.
11183
25f1b008
AC
111842002-04-06 Andrew Cagney <ac131313@redhat.com>
11185
11186 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11187 declaration. Fix -Werror.
11188
59263426
DJ
111892002-04-05 Daniel Jacobowitz <drow@mvista.com>
11190
11191 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11192 * gdbarch.c: Regenerate.
11193
f5db4da3
MS
111942002-04-05 Michael Snyder <msnyder@redhat.com>
11195
80f8a6eb
MS
11196 * breakpoint.c (clear_command): Rewrite middle section to
11197 combine two loops with identical control conditions.
11198 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11199 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11200
ad3dcc5c
L
112012002-04-05 H.J. Lu (hjl@gnu.org)
11202
11203 * solib-svr4.c (bkpt_names): Add "__start".
11204
f32e7a74
AC
112052002-04-04 Andrew Cagney <ac131313@redhat.com>
11206
11207 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11208 as test for 64 bit target.
11209
8227c0ff
AC
112102002-04-05 Andrew Cagney <ac131313@redhat.com>
11211
11212 * h8500-tdep.c (h8500_write_fp): Delete function.
11213 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11214 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11215 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11216 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11217 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11218 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11219 (s390_write_fp):
11220 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11221 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11222 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11223 (d10v_write_fp): Delete function.
11224 * inferior.h (write_fp, generic_target_write_fp): Delete
11225 declarations.
11226 * regcache.c (generic_target_write_fp): Delete function.
11227 (write_fp): Delete function.
11228 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11229 * gdbarch.h, gdbarch.c: Regenerate.
11230 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11231 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11232 (sparc64_write_fp): Delete declaration.
11233 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11234 (h8500_write_fp): Delete declaration.
11235
2757dd86
AC
112362002-04-04 Andrew Cagney <ac131313@redhat.com>
11237
11238 * sparc-tdep.c (sparc64_write_fp): Delete.
11239 (sparc_push_dummy_frame): Replace write_fp call with code to store
11240 the FP directly.
11241 (sparc_gdbarch_init): Do not initialize write_fp.
11242
c69255e1
KB
112432002-04-05 Kevin Buettner <kevinb@redhat.com>
11244
11245 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11246 clause.
11247
ae767bfb
JB
112482002-03-29 Jim Blandy <jimb@redhat.com>
11249
11250 * stack.c (get_selected_block): Add new argument `addr_in_block',
11251 used to return the exact code address we used to select the block,
11252 not just the block.
11253 * blockframe.c (get_frame_block, get_current_block): Same.
11254 * frame.h (get_frame_block, get_current_block,
11255 get_selected_block): Update declarations.
11256 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11257 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11258
84d2ac95
MS
112592002-04-05 Michael Snyder <msnyder@redhat.com>
11260
11261 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11262 warning message.
11263
596aa3bf
JB
112642002-04-05 J. Brobecker <brobecker@gnat.com>
11265
11266 * utils.c (xfullpath): New function.
11267 * defs.h (xfullpath): Add declaration.
11268 * source.c (openp): Use xfullpath in place of gdb_realpath to
11269 avoid resolving the basename part of filenames when the
11270 associated file is a symbolic link. This fixes a potential
11271 inconsistency between the filenames known to GDB and the
11272 filenames it prints in the annotations.
11273 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11274 to be able to match a filename with either the real filename, or
11275 the name of any symbolic link to this file.
11276 (lookup_partial_symtab): Ditto.
11277
c02f5703
MS
112782002-04-04 Michael Snyder <msnyder@redhat.com>
11279
11280 * breakpoint.c: Add support for hardware breakpoints in overlays.
11281 (overlay_events_enabled): New state variable.
11282 (insert_breakpoints): Use overlay_events_enabled to decide
11283 whether to attempt to set a breakpoint at the overlay load addr.
11284 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11285 (remove_breakpoint): Use overlay_events_enabled to decide
11286 whether breakpoints need to be removed from overlay load addr.
11287 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11288 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11289 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11290 disable_overlay_breakpoints): Update overlay_events_enabled.
11291
5fb290d7
DJ
112922002-04-04 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * dwarf2read.c (struct function_range): New.
11295 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11296 (check_cu_functions): New.
11297 (read_file_scope): Initialize global function lists.
11298 Call dwarf_decode_line after processing children.
11299 (read_func_scope): Add to global function list.
11300 (dwarf_decode_lines): Call check_cu_functions everywhere
11301 record_line is called. Call record_line with a linenumber
11302 of 0 to mark sequence ends.
11303
7b3fabf0
ML
113042002-04-04 Michal Ludvig <mludvig@suse.cz>
11305
361d1df0 11306 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11307 change sync with glibc.
11308
bce58c09
JB
113092002-04-03 Jim Blandy <jimb@redhat.com>
11310
11311 * configure.in: Call AC_C_INLINE.
11312 * configure: Regenerated.
361d1df0 11313
2fccf04a
DJ
113142002-04-01 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11317 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11318
2d1bfe2e
MK
113192002-03-31 Mark Kettenis <kettenis@gnu.org>
11320
a5941fbf
MK
11321 * NEWS: Mention gcore support on FreeBSD/i386.
11322
a90cd31d
MK
11323 * fbsd-proc.c: New file.
11324 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11325 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11326
2d1bfe2e
MK
11327 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11328 while statement.
11329
9eb6e5a1
JB
113302002-03-29 Jim Blandy <jimb@redhat.com>
11331
11332 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11333 unescaped newlines in string literals, but newer ones don't. So
11334 escape them.
11335
f02df580
MS
113362002-03-26 Michael Snyder <msnyder@redhat.com>
11337 Andrew Cagney <cagney@redhat.com>
11338
361d1df0 11339 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11340 restore file to memory.
11341 * cli/cli-dump.h: New file.
11342 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11343 * NEWS: Mention new commands.
f02df580 11344
109f874e
MS
113452002-03-28 Michael Snyder <msnyder@redhat.com>
11346
11347 * symfile.c (symbol_file_add): Move test for null symbols to later.
11348
520f6ade
AC
113492002-03-27 Andrew Cagney <ac131313@redhat.com>
11350
11351 From veksler at il.ibm.com:
11352 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11353 the xstrduped original path.
11354 Fix PR gdb/417.
11355
d4654627
MS
113562002-03-27 Michael Snyder <msnyder@redhat.com>
11357
11358 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11359 * infcmd.c (_initialize_infcmd): Ditto.
11360 * language.c (_initialize_language): Ditto.
11361 * symfile.c (_initialize_symfile): Ditto.
11362 * top.c (_init_main): Ditto.
11363 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11364
6be8bc0c
EZ
113652002-03-27 Elena Zannoni <ezannoni@redhat.com>
11366
11367 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11368 vector registers handling.
11369 (skip_prologue): Handle new AltiVec instructions. Fill in new
11370 fields of frame data.
11371 (frame_get_saved_regs): Fill in information for AltiVec registers.
11372
12af6855
JB
113732002-03-27 Jim Blandy <jimb@redhat.com>
11374
11375 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11376 a function; leave this macro here to invoke that function.
11377 (symbol_init_mangled_name): Declaration for that function.
11378 * symtab.c (symbol_init_mangled_name): New function.
11379
dc672865
AC
113802002-03-27 Andrew Cagney <ac131313@redhat.com>
11381
11382 * valarith.c: Replace strerror with safe_strerror.
11383 * tracepoint.c: Ditto.
11384 * lin-lwp.c: Ditto.
11385 * go32-nat.c: Ditto.
11386 * inflow.c: Ditto.
11387 * gnu-nat.c: Ditto.
11388
d96429cd
AS
113892002-03-27 Andreas Schwab <schwab@suse.de>
11390
11391 * event-top.c (command_line_handler): Remove useless if.
11392
7e336ba1
AJ
113932002-03-27 Andreas Jaeger <aj@suse.de>
11394
11395 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11396 comment.
11397
de220d0f
ML
113982002-03-27 Michal Ludvig <mludvig@suse.cz>
11399
11400 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11401 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11402 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11403 (x86_64_linux_dr_get_status, supply_gregset),
11404 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11405 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11406 (x86_64_register_info_table): Add.
11407 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11408 (x86_64_register_raw_size, x86_64_register_virtual_type),
11409 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11410 general x86_64_register_info_table.
11411 (i386_gdbarch_init): gdbarch_register_bytes is now set
11412 dynamicaly during initialization.
11413 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11414 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11415
0e98d0a7
DJ
114162002-03-27 Daniel Jacobowitz <drow@mvista.com>
11417
11418 * gdbserver/server.c (main): Call target_signal_to_host_p
11419 and target_signal_to_host on signals received from the remote.
11420 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11421 target_signal_from_host on signals sent to the remote.
11422 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11423 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11424
3130066b
DJ
114252002-03-27 Daniel Jacobowitz <drow@mvista.com>
11426
11427 * signals/signals.c: Include "server.h" in gdbserver build.
11428 (target_signal_from_name): Don't use STREQ.
11429 (_initialize_signals): Likewise. Don't include function in
11430 gdbserver build.
11431
9aedf4f4
DJ
114322002-03-27 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * signals.c: Moved to...
11435 * signals/signals.c: Here.
7e336ba1 11436 * Makefile (signals.o): Update.
9aedf4f4 11437
3fa41cdb
JL
114382002-03-26 Jeff Law (law@redhat.com)
11439
11440 * somread.c (som_symtab_read): Remove some commented out code and
11441 updated related comments. Do not set the minimal symbol table to
11442 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11443 in a dynamic executable.
11444 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11445 where we are unable to find the minimal symbol for the given
11446 PC value.
11447
ee677e8d
MS
114482002-03-25 Jeff Law (law@redhat.com)
11449
11450 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11451
e76e1718
ML
114522002-03-25 Michal Ludvig <mludvig@suse.cz>
11453
11454 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11455
18a642a1
AC
114562002-03-23 Andrew Cagney <ac131313@redhat.com>
11457
11458 * command.h: Update copyright.
11459 (struct cmd_list_element): Replace definition with opaque
11460 declaration.
11461 (enum cmd_types): Document that it will eventually be moved to
11462 cli/cli-decode.h
11463 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11464 (MALLOCED_REPLACEMENT): Delete macro.
11465 * Makefile.in (cli_decode_h): Add $(command_h).
11466 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11467 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11468 * completer.c: Include "cli/cli-decode.h".
11469 * maint.c: Include "cli/cli-decode.h".
11470 * cli/cli-decode.h: Include "command.h".
11471 (enum command_class): Delete.
11472 (enum cmd_types): Comment out.
11473 (enum cmd_auto_boolean): Delete.
11474 (enum var_types): Delete.
11475
b2875cc0
AC
114762002-03-23 Andrew Cagney <ac131313@redhat.com>
11477
11478 * cli/cli-decode.c: Include "gdb_assert.h".
11479 (add_set_or_show_cmd): New static function.
11480 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11481 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11482 all fields, such as func, from the set command.
11483
3b45974e
AC
114842002-03-23 Andrew Cagney <ac131313@redhat.com>
11485
11486 * MAINTAINERS (sh-elf): Change warning flag to -w.
11487
823ca731
AC
114882002-03-23 Andrew Cagney <cagney@redhat.com>
11489
11490 * defs.h (error): Add printf format attribute.
11491 * thread-db.c (thread_from_lwp): Fix error format string.
11492 * stack.c (parse_frame_specification): Ditto.
11493 * cli/cli-decode.c (undef_cmd_error): Ditto.
11494 * scm-lang.c (scm_lookup_name): Ditto.
11495 * tracepoint.c (trace_error): Ditto.
11496 * remote-utils.c (usage): Ditto.
11497 * remote.c (compare_sections_command): Ditto.
11498 Fix PR gdb/328.
11499
0e101458
AC
115002002-03-22 Andrew Cagney <ac131313@redhat.com>
11501
11502 * gdbtypes.c (append_composite_type_field): New function.
11503 (init_composite_type): New function.
11504 * gdbtypes.h (append_composite_type_field): Declare.
11505 (init_composite_type): Ditto.
11506
8e0662df
EZ
115072002-03-22 Elena Zannoni <ezannoni@redhat.com>
11508
11509 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11510 function.
8e0662df
EZ
11511 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11512 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11513 structure returning convention for SYSV ABI case, but not
11514 for GNU/Linux, FreeBSD, or NetBSD.
11515
3121eff0
DJ
115162002-03-22 Daniel Jacobowitz <drow@mvista.com>
11517
11518 * symtab.h (lookup_block_symbol): Add mangled_name argument
11519 to prototype.
11520
11521 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11522 with new mangled_name argument.
11523 * linespec.c (decode_line_1): Likewise.
11524 * valops (value_of_this): Likewise.
11525 * symtab.c (lookup_transparent_type): Likewise.
11526 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11527 (lookup_symbol): If we are given a mangled name, pass it down
11528 to lookup_symbol_aux.
11529 (lookup_block_symbol): If we are given a mangled name to check
11530 against, only return symbols which match it.
11531
349b409f
CF
115322002-03-22 Christopher Faylor <cgf@redhat.com>
11533
11534 * win32-nat.c (child_create_inferior): Check for proper shell to use
11535 here, in case the user changes it on the fly.
11536 (_initialize_inftarg): Remove shell path considerations.
11537
2a873819
EZ
115382002-03-21 Elena Zannoni <ezannoni@redhat.com>
11539
11540 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11541 for gdbarch_max_register_raw_size and max_register_virtual_size.
11542 Adjust copyright year.
11543
a1b9830c
DJ
115442002-03-21 Daniel Jacobowitz <drow@mvista.com>
11545
11546 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11547 in a function to cover the entire beginning of the function
11548 as well if it does not already.
11549
8b5790f2
TR
115502002-03-21 Tom Rix <trix@redhat.com>
11551
11552 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11553 (rs6000_ptrace64): Renamed from ptrace64.
11554
bdbe5747
MH
115552002-03-20 Martin M. Hunt <hunt@redhat.com>
11556
11557 * gdbserver/remote-utils.c (remote_open): Don't call
11558 getprotobyname, we're all using TCP here so just use
11559 IPPROTO_TCP.
7e336ba1 11560 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11561
115622002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11563
bdbe5747
MH
11564 * regcache.c (_initialize_regcache): No need to call
11565 build_regcache() at this time; it gets called whenever
11566 the gdbarch changes.
11567
7781cd62
DB
115682002-03-20 David O'Brien <obrien@FreeBSD.org>
11569
11570 * sparc-nat.c: Include sys/param.h where possible.
11571
f65ca430
DJ
115722002-03-20 Daniel Jacobowitz <drow@mvista.com>
11573
11574 Fix PR gdb/422.
11575 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11576 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11577 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11578 complex types.
11579 * stabsread.c (rs6000_builtin_type): Likewise.
11580 (read_sun_floating_type): Likewise.
11581
0c867556
PS
115822002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11583
11584 * stabsread.c (read_member_functions): Remove skip code for duplicate
11585 constructor/destructor methods. Use standard parsing for these
11586 methods and just do not chain them to the list of methods after
11587 parsing.
11588
12b9c64f
AO
115892002-03-19 Alexandre Oliva <aoliva@redhat.com>
11590
11591 * coffread.c: Remove redundant static declarations. Replace
11592 occurrences of `PTR' with `void *'.
11593 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11594 * top.h (quit_cover): Likewise.
11595 * defs.h (catch_errors): Likewise.
11596
349c5d5f
AC
115972002-03-18 Andrew Cagney <ac131313@redhat.com>
11598
11599 * defs.h (XMALLOC): Define.
11600 * gdb-events.sh (XMALLOC): Delete macro.
11601 * gdb-events.c, gdb-events.h: Regenerate.
11602 * gdbarch.sh (XMALLOC): Delete macro.
11603 * gdbarch.c: Regenerate.
11604 * serial.c (XMALLOC): Delete macro.
11605 * ui-file.c (XMALLOC): Ditto.
11606 * ser-unix.h (XMALLOC): Ditto.
11607 * sh-tdep.c (XMALLOC): Ditto.
11608 * ui-out.c (XMALLOC): Ditto.
11609 * utils.c (XMALLOC): Ditto.
11610 * i386-tdep.c (XMALLOC): Ditto.
11611 * gdb-events.c (XMALLOC): Ditto.
11612 * d10v-tdep.c (XMALLOC): Ditto.
11613 * cli-out.c (XMALLOC): Ditto.
11614
11615 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11616 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11617 * ui-file.c, ui-out.c: Ditto.
11618
7d0766f3
AC
116192002-03-18 Andrew Cagney <ac131313@redhat.com>
11620
11621 * command.h (struct cmd_list_element): Add field context.
11622 (set_cmd_context, get_cmd_context): Declare.
11623 * cli/cli-decode.h: Ditto.
11624 * cli/cli-decode.c (get_cmd_context): New function.
11625 (set_cmd_context): New function.
11626 (add_cmd): Initialize context.
11627 Part of fixing PR gdb/145 and PR gdb/146.
11628
5913bcb0
AC
116292002-03-17 Andrew Cagney <ac131313@redhat.com>
11630
1868c04e
AC
11631 * cli/cli-decode.c (cmd_type): New function.
11632 * command.h (cmd_type): Declare.
11633 * infrun.c (set_schedlock_func): Call function cmd_type.
11634 * kod.c (kod_set_os): Call cmd_type.
11635 * cris-tdep.c (cris_version_update): Use function cmd_type.
11636 (cris_mode_update, cris_abi_update): Ditto.
11637
5913bcb0
AC
11638 * command.h: (execute_cmd_post_hook): Declare.
11639 (execute_cmd_pre_hook): Declare.
11640 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11641 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11642 functions. Execute pre/post hook while ensuring that afterwords
11643 hook_in is cleared.
11644 * top.c (execute_command): Use execute_cmd_post_hook, and
11645 execute_cmd_pre_hook to execute pre/post commands.
11646 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11647 hook_stop_stub.
11648 (hook_stop_stub): Call execute_cmd_pre_hook.
11649
b51450c9
AC
116502002-03-17 Andrew Cagney <ac131313@redhat.com>
11651
11652 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11653 set'' and this leads to a core dump. Move xstrdup of
11654 operating_system to after check that it is not NULL.
11655
f66c9f11
AC
116562002-03-17 Andrew Cagney <ac131313@redhat.com>
11657
8e694ecf
AC
11658 * kod.c (kod_set_os): Remove unnecessary check that
11659 ``command->type'' is set_cmd.
11660
f66c9f11
AC
11661 * valprint.c (set_input_radix): Use input_radix.
11662 (set_output_radix): Use output_radix.
11663 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11664 isn't reverted.
11665
9d01611c
AC
116662002-03-16 Andrew Cagney <ac131313@redhat.com>
11667
11668 * value.h (struct value): Delete field ``substring_addr''. Change
11669 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11670 force_core_addr_align and force_pointer_aligh.
11671
11672 * value.h (struct value): Fix typo in above change.
9d01611c 11673
4156bb53
PS
116742002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11675
11676 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11677 to fix internal_error from ``maintenance print architecture''.
11678
0e5e3ea6
PS
116792002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11680
11681 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11682 for gcc versions after gcc-2.8.1.
11683
9b013045
PS
116842002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11685
11686 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11687 for method resolution. Restore adjustment of ``this'' pointer after
11688 calling value_struct_elt, which was accidentally removed during the
11689 HP merge.
11690
376c9600
AC
116912002-03-15 Andrew Cagney <ac131313@redhat.com>
11692
11693 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11694 value_of_register.
11695 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11696 get_saved_register.
11697 * value.h (value_of_register): Update.
11698
a4db0f07
RH
116992002-03-14 Richard Henderson <rth@redhat.com>
11700
11701 * configure.in: Detect declaration for canonicalize_file_name.
11702 * utils.c (canonicalize_file_name): Declare, if needed.
11703 (gdb_realpath): Prefer realpath if available and usable.
11704 * config.in, configure: Rebuild.
11705
96383835
RH
117062002-03-14 Richard Henderson <rth@redhat.com>
11707
11708 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11709 a constant array bound.
11710
11711 * MAINTAINERS: Add myself to write-after-approval.
11712
75245b24
MS
117132002-03-14 Michael Snyder <msnyder@redhat.com>
11714
11715 * symfile.c (syms_from_objfile): Return immediately if no syms.
11716 (symbol_file_add): Return immediately if no syms.
11717 (find_sym_fns): Return immediately if no syms.
11718
e641a1ca
ML
117192002-03-13 Michal Ludvig <mludvig@suse.cz>
11720
11721 * gdbserver/remote-util.c (remote_open): Print remote-side's
11722 IP address when remote debugging over the network.
7e336ba1 11723
df08bfec
DB
117242002-03-12 David O'Brien <obrien@FreeBSD.org>
11725
11726 * config/sparc/fbsd.mh: Fix copyright.
11727 * config/sparc/fbsd.mt: Likewise.
11728
9a57864f
RE
117292002-03-11 Richard Earnshaw <rearnsha@arm.com>
11730
11731 * MAINTAINERS: Fix typo in name of gdb warnings option.
11732 (x86-64): Fix formating so that this can be parsed by awk.
11733
dd7bf85e
DJ
117342002-03-10 Daniel Jacobowitz <drow@mvista.com>
11735
11736 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11737 * defs.h: Include "gdb/signals.h".
11738 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11739
33a0a2ac
ML
117402002-03-10 Michal Ludvig <mludvig@suse.cz>
11741
11742 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11743 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11744 from x86-64-tdep.h
11745
dd824b04
DJ
117462002-03-10 Daniel Jacobowitz <drow@mvista.com>
11747 Don Howard <dhoward@redhat.com>
11748
11749 * mips-tdep.c (ST0_FR): Define.
11750 (mips2_fp_compat): New function, temporarily disabled.
11751 (mips_read_fp_register_single): New function.
11752 (mips_read_fp_register_double): New function.
11753 (mips_print_register): Use them.
11754 (do_fp_register_row): Likewise.
11755
6a41ff59
AC
117562002-03-09 Andrew Cagney <ac131313@redhat.com>
11757
11758 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11759 approval''.
11760
4ea09c10
PS
117612002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11762
11763 * stabsread.c (read_member_functions): Fix is_stub test for
11764 static member functions, improve comment.
11765
6ccc741d
RE
117662002-03-07 Richard Earnshaw <rearnsha@arm.com>
11767
11768 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11769 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11770 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11771 commands that set boolean values.
11772 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11773 (arm_rdi_resume): Always initialize PC.
11774 (arm_rdi_open): Don't use rslt as a boolean.
11775 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11776 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11777 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11778 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11779
438013df
AO
117802002-03-06 Alexandre Oliva <aoliva@redhat.com>
11781
11782 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11783 * configure: Rebuilt.
11784
70ed8774
SC
117852002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11786
11787 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11788 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11789
5ba2abeb
AC
117902002-03-06 Andrew Cagney <ac131313@redhat.com>
11791
11792 * cli/cli-decode.c (set_cmd_completer): New function.
11793 * command.h (set_cmd_completer): Declare.
11794 * cli/cli-decode.h (set_cmd_completer): Ditto.
11795
11796 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11797 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11798 * win32-nat.c (_initialize_inftarg): Ditto.
11799 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11800 * proc-api.c (_initialize_proc_api): Ditto.
11801 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11802 * source.c (_initialize_source): Ditto.
11803 * exec.c (_initialize_exec): Ditto.
11804 * solib.c (_initialize_solib): Ditto.
11805 * top.c (init_main): Ditto.
11806 * tracepoint.c (_initialize_tracepoint): Ditto.
11807 * symfile.c (_initialize_symfile): Ditto.
11808 * printcmd.c (_initialize_printcmd): Ditto.
11809 * infcmd.c (_initialize_infcmd): Ditto.
11810 * corefile.c (_initialize_core): Ditto.
11811
f779ca99
AC
118122002-03-05 Andrew Cagney <ac131313@redhat.com>
11813
11814 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11815
01a3934b
AC
118162002-03-05 Andrew Cagney <ac131313@redhat.com>
11817
11818 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11819
37057839
AC
118202002-03-05 Andrew Cagney <ac131313@redhat.com>
11821
11822 * NEWS: Update headings, 5.2 has branched.
11823
c6ecbae5
DJ
118242002-03-04 Daniel Jacobowitz <drow@mvista.com>
11825
11826 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11827 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11828 (register_addr, REGISTER_RAW_SIZE): Likewise.
11829 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11830 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11831
e9f30c21
ML
118322002-03-03 Michal Ludvig <mludvig@suse.cz>
11833
11834 * MAINTAINERS (x86-64): Add myself.
11835 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11836 changed value_ptr -> struct value *
11837
54394ac3
DB
118382002-03-01 David O'Brien <obrien@FreeBSD.org>
11839
11840 * configure.host (sparc64-*-freebsd): Add.
11841 * configure.tgt: Likewise.
11842 * config/sparc/fbsd.mh: New file.
11843 * config/sparc/fbsd.mt: Likewise.
11844 * config/sparc/nm-fbsd.h: Likewise.
11845 * config/sparc/tm-fbsd.h: Likewise.
11846
bfe95955
DJ
118472002-03-01 Daniel Jacobowitz <drow@mvista.com>
11848
11849 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11850 regformats/reg-s390x.dat.
11851
f33c6cbf
AC
118522002-03-01 Andrew Cagney <ac131313@redhat.com>
11853
11854 * utils.c: Add FIXME explaining true/false problem.
11855
5ecaa7dd
AC
118562002-02-28 Andrew Cagney <ac131313@redhat.com>
11857
11858 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11859
2a251cc2
MC
118602002-02-28 Michael Chastain <mec@shout.net>
11861
11862 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11863
6a8031a3 118642002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11865
11866 * gdbserver/linux-s390-low.c: New file.
11867 * regformats/reg-s390.dat: New file.
11868 * regformats/reg-s390x.dat: New file.
11869 * gdbserver/configure.srv: Add S/390.
11870 * gdbserver/Makefile.in: Add S/390.
11871 * configure.tgt: Enable gdbserver for S/390.
11872
ac469903
EZ
118732002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11874
11875 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11876 first line of the doc string for "info dos", except at the end of
11877 the sentence, since the short help stops at the first period.
11878
985cb1a3
JM
118792002-02-28 Jason Merrill <jason@redhat.com>
11880
11881 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11882
c570663e
FF
118832002-02-27 Fred Fish <fnf@redhat.com>
11884
11885 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11886 comment (dumy -> dummy).
11887
43630227
PS
118882002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11889
11890 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11891
b84911e8
RB
118922002-02-27 Rodney Brown <rbrown64@csc.com.au>
11893
11894 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11895
58caa3dc
DJ
118962002-02-27 Daniel Jacobowitz <drow@mvista.com>
11897
11898 * gdbserver/acconfig.h: New file.
11899 * gdbserver/i387-fp.c: New file.
11900 * gdbserver/i387-fp.h: New file.
11901 * gdbserver/linux-x86-64.c: New file.
11902 * regformats/reg-x86-64.dat: New file.
11903 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11904 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11905 * gdbserver/configure.in: Add support for regsets.
11906 * gdbserver/config.in: Regenerate.
11907 * gdbserver/configure: Regenerate.
11908 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11909 * gdbserver/linux-low.h: New file.
11910 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11911 for regsets.
11912 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11913 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11914 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11915 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11916 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11917 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11918 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11919 "i387-fp.h". Add PTRACE_GETREGS and friends.
11920 * gdbserver/regcache.c (supply_register): New function.
11921 (supply_register_by_name): New function.
11922 (collect_register): New function.
11923 (collect_register_by_name): New function.
11924
93652174
DJ
119252002-02-27 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11928 (config.status): Add configure.srv dependency.
11929 (server_h): Add config.h dependency.
11930
a02e4a61
DJ
119312002-02-27 Daniel Jacobowitz <drow@mvista.com>
11932
11933 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11934 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11935 * gdbserver/configure.srv: Change i386-*-linux* to use
11936 reg-i386-linux.o.
11937
ce0eebec
AC
119382002-02-26 Andrew Cagney <ac131313@redhat.com>
11939
11940 * x86-64-tdep.c: Re-indent. Update copyright date.
11941
82dbc5f7
AC
119422002-02-26 Andrew Cagney <ac131313@redhat.com>
11943
11944 From Michal Ludvig <mludvig@suse.cz>:
11945 * x86-64-tdep.c (value.h): Delete.
11946 (gdb_assert.h): Include.
11947 (x86_64_register_convert_to_virtual,
11948 x86_64_register_convert_to_raw ): Add check which lets only
11949 floating-point values to be converted.
11950 (value_push): Delete.
11951 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11952 (i386_gdbarch_init): Number of register_bytes fixed.
11953
e4621584
AC
119542002-02-26 Andrew Cagney <ac131313@redhat.com>
11955
11956 * MAINTAINERS: Add x86-64 target.
11957
81a9a963
AC
119582002-02-26 Andrew Cagney <ac131313@redhat.com>
11959
11960 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11961 * osfsolib.c (solib_map_sections): Ditto.
11962 * irix5-nat.c (solib_map_sections): Ditto.
11963 * corelow.c (gdb_check_format): Ditto.
11964 * symfile.c (symfile_bfd_open): Ditto.
11965 * solib.c (solib_map_sections): Ditto.
11966 Fix PR gdb/354.
7e336ba1 11967
0f017ab9
AC
119682002-02-26 Andrew Cagney <ac131313@redhat.com>
11969
11970 * remote.c (_initialize_remote): By default, disable ``e'' and
11971 ``E'' step out-of-range packets.
11972
75738c29
AS
119732002-02-26 Andreas Schwab <schwab@suse.de>
11974
11975 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11976 m68k_linux_frame_saved_pc.
11977 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11978 in_sigtramp.
11979 (SIGCONTEXT_PC_OFFSET): Remove.
11980 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11981 m68k_linux_sigtramp_saved_pc): New functions.
11982 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11983 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11984 (UCONTEXT_PC_OFFSET): Define.
11985 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11986 non-RT and RT signal trampolines.
11987
7e8ed687
RE
119882002-02-26 Richard Earnshaw <rearnsha@arm.com>
11989
11990 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11991 (TARGET_NBPG, STACK_END_ADDR): Delete
11992 (VARIABLES_INSIDE_BLOCK): Delete.
11993
6972bc8b
AC
119942002-02-25 Andrew Cagney <ac131313@redhat.com>
11995
11996 * utils.c (perror_with_name): Make string parameter constant.
11997 (print_sys_errmsg): Ditto.
11998 (query): Ditto.
11999 * defs.h (perror_with_name): Update.
12000 (print_sys_errmsg): Update.
12001 (query): Update.
12002
aa32f823
DJ
120032002-02-25 Daniel Jacobowitz <drow@mvista.com>
12004
12005 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12006 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12007
19caaa45
PS
120082002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12009
12010 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12011 if it already matches the current architecture from the exec file.
12012 Include arch-utils.h for gdbarch_info_init prototype.
12013 * Makefile.in (rs6000-nat.o): Update dependencies.
12014
d951901f
EZ
120152002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12016
12017 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12018 list of exported variables.
12019
7ea81414
DJ
120202002-02-24 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * gdbserver/configure.srv: New file.
12023 * gdbserver/configure.in: Use configure.srv instead
12024 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12025 from it.
12026 * gdbserver/configure: Regenerated.
12027 * gdbserver/terminal.h: New file.
12028 * gdbserver/Makefile.in: Update for configure changes. Remove
12029 more unneeded include paths.
12030
080fe24b
AC
120312002-02-24 Andrew Cagney <ac131313@redhat.com>
12032
12033 From wiz at danbala:
12034 * config/sparc/tm-sp64.h: Fix grammar and typos.
12035 Fix PR gdb/287.
12036
8605d56e
AC
120372002-02-24 Andrew Cagney <ac131313@redhat.com>
12038
12039 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12040 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12041 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12042 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12043 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12044 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12045 * s390-tdep.c: Ditto.
92362027
AC
12046 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12047 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12048 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12049 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12050 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12051 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12052 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12053 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12054 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12055 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12056 Fix PR gdb/378.
7e336ba1 12057
8ed32cc0
AC
120582002-02-23 Andrew Cagney <ac131313@redhat.com>
12059
a3007b6f
AC
12060 * lin-thread.c: Delete file.
12061 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12062 to gdb_proc_service.h.
12063 * configure: Re-generate.
12064
50a9e2f1
AC
12065 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12066 * serial.c (serial_open): Delete check for "ocd".
12067 Fix PR gdb/349.
12068
8b6e7932
AC
12069 * Makefile.in (linux-thread.o): Delete target.
12070 * linux-thread.c: Delete file.
12071
d155c46b
AC
12072 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12073 renamed SH files to be consistent.
12074
8ed32cc0
AC
12075 * symtab.c (sort_search_symbols): Use xfree.
12076
0e18d038
RE
120772002-02-23 Richard Earnshaw <rearnsha@arm.com>
12078
12079 * arm-linux-tdep.c (arm_linux_init_abi): Register
12080 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12081 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12082 definition with undef, since we don't want the sysvr4 definition.
12083 (SKIP_TRAMPOLINE_CODE): Likewise.
12084
27aac7ff
AC
120852002-02-23 Andrew Cagney <ac131313@redhat.com>
12086
12087 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12088
12089 * configure.in: (AC_CHECK_FUNCS) Added test for
12090 canonicalize_file_name Regenerated.
12091 * config.in, configure: Regenerated.
12092 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12093 defined use canonicalize_file_name.
7e336ba1 12094
65a6e0ee
MC
120952002-02-23 Michael Chastain <mec@shout.net>
12096
12097 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12098
47b95330
AC
120992002-02-23 Andrew Cagney <ac131313@redhat.com>
12100
12101 * README: Remove references to cygnus.com.
12102 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12103 dot com'' form. Remove references to cygnus.com and sourceware.
12104
696f451b
AC
121052002-02-23 Andrew Cagney <ac131313@redhat.com>
12106
12107 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12108 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12109 1003.1-2001 no longer allows "head -1".
12110 * gdb/Makefile.in (version.c): Likewise.
12111 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12112 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12113 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12114
bbaca940
AC
121152002-02-23 Andrew Cagney <ac131313@redhat.com>
12116
12117 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12118 * command.h (cmd_cfunc_eq): Declare.
12119 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12120
12121 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12122 ``struct cmd_list_element *''.
12123 * cli/cli-cmds.c (is_complete_command): Update. Use
12124 cmd_cfunc_eq.
12125 * top.c (execute_command): Pass the command to
12126 is_complete_command.
12127 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12128
b8b8b047
AC
121292002-02-23 Andrew Cagney <ac131313@redhat.com>
12130
12131 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12132 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12133 architecture defines.
12134 * s390-tdep.c (s390_gdbarch_init): Likewise.
12135
19d3fc80
RE
121362002-02-23 Richard Earnshaw <rearnsha@arm.com>
12137
12138 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12139 (arm_linux_push_arguments): Likewise.
12140 (arm_linux_init_abi): Register them. Also register linux-specific
12141 call_dummy_words.
12142 (find_minsym_and_objfile): Use strcmp, not STREQ.
12143 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12144 (arm_linux_call_dummy_words): Delete declaration.
12145 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12146 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12147 declarations.
12148 (LOWEST_PC): Delete.
12149
3ab13650
PS
121502002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12151
12152 * maint.c (print_section_info): Do not prepend `0x' to filepos
12153 output, it will be handled by local_hex_string_custom.
12154
19d3fc80 121552002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12156
12157 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12158 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12159 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12160
d85a5daf
JB
121612002-02-22 Jim Blandy <jimb@redhat.com>
12162
12163 Indicate that the bcache functions don't change the strings
12164 they're passed.
12165 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12166 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12167
eeb25b8a
PM
121682002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12169
12170 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12171
6badb179
CF
121722002-02-21 Christopher Faylor <cgf@redhat.com>
12173
12174 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12175 find the complete path to a loaded DLL.
12176
e8717518
FF
121772002-02-21 Fred Fish <fnf@redhat.com>
12178
12179 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12180 that marks the end of the range of a function, enter a line number
12181 entry that has a line number of zero and a PC offset that matches
12182 the end of the function. This starts a range of PC's for which no
12183 line number information is known.
12184 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12185 PC's for which no line number info is found (line number is zero)
12186 then we didn't find any valid line information.
12187 * symtab.h: Document use of zero line number entry.
12188
9abe5450
EZ
121892002-02-21 Elena Zannoni <ezannoni@redhat.com>
12190
12191 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12192 (have_ptrace_getvrregs): Define for run time checks.
12193 (gdb_vrregset_t): New type for Altivec register handling.
12194 (fetch_register, store_register): Fetch/store altivec register
12195 when needed.
12196 (fetch_altivec_register, store_altivec_register): New functions.
12197 (supply_vrregset, fill_vrregset): New functions.
12198 (fetch_altivec_registers, store_altivec_registers): New functions.
12199 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12200 registers as well.
12201
aaa38bb5
AJ
122022002-02-21 Jiri Smid <smid@suse.cz>
12203
12204 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12205
b34db576
RE
122062002-02-21 Richard Earnshaw <rearnsha@arm.com>
12207
12208 * Makefile.in (armnbsd-nat.o): Update dependencies.
12209 * armnbsd-nat.c (supply_gregset): New function. Common code to
12210 supply the integer register set.
12211 (supply_fparegset): New function. Similar for FPA registers.
12212 (fetch_regs, fetch_fp_regs): Use them.
12213 (fetch_core_registers): Likewise.
12214 (fetch_elfcore_registers): New function.
12215 (arm_netbsd_elfcore_fns): New core-file type specification.
12216 (_initialize_arm_netbsd_nat): Register it.
12217
3e56fc4b
RE
122182002-02-21 Richard Earnshaw <rearnsha@arm.com>
12219
12220 * armnbsd-nat.c: Include gdbcore.h.
12221 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12222 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12223 'void' to declaration, to shut up ARI.
12224 (fetch_core_registers): Make static. Rewrite using supply_register.
12225 (arm_netbsd_core_fns): New core-file type specification.
12226 (_initialize_arm_netbsd_nat): New function.
12227
097f6b0b
CF
122282002-02-21 Christopher Faylor <cgf@redhat.com>
12229
12230 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12231 value.
12232
c914e0cc
CF
122332002-02-20 Christopher Faylor <cgf@redhat.com>
12234
12235 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12236 fails.
12237
385fa495
DJ
122382002-02-20 Daniel Jacobowitz <drow@mvista.com>
12239
12240 * jv-exp.y (parse_number): Change type of implicit longs
12241 to builtin_type_uint64.
12242
e5f1222d
DJ
122432002-02-20 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12246 to be an integer instead of a `union wait'.
12247
75c9abc6
DJ
122482002-02-20 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * mips-linux-nat.c: Call the operating system GNU/Linux.
12251 * mips-linux-tdep.c: Likewise.
12252 * mips-tdep.c: Likewise.
12253
551792a5
DJ
122542002-02-20 Daniel Jacobowitz <drow@mvista.com>
12255
12256 Fix PR gdb/265.
12257 * jv-exp.y (parse_number): Handle 64-bit integers.
12258
ee6e2b82
DJ
122592002-02-20 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12262 AC_STDC_HEADERS to AC_HEADER_STDC.
12263 * gdbserver/configure: Regenerated.
12264
a48442a0
RE
122652002-02-20 Richard Earnshaw <rearnsha@arm.com>
12266
12267 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12268 is defined.
12269 * sparc-tdep.c (get_longjmp_target): Likewise.
12270
fe419ffc
RE
122712002-02-20 Richard Earnshaw <rearnsha@arm.com>
12272
12273 * News: Add news about ARM and Multi-arch. Mention the new target
12274 arm*-*-netbsd*.
12275
5832ed7e
JB
122762002-02-19 Jim Blandy <jimb@redhat.com>
12277
12278 * stabsread.c (error_type_complaint): Improve error message.
12279
84563040
DJ
122802002-02-19 Daniel Jacobowitz <drow@mvista.com>
12281
12282 * gdbserver/README: Update documentation.
12283 * gdbserver/configure.in: Update configury to match documentation.
12284 * gdbserver/Makefile.in: Likewise.
12285 * gdbserver/configure: Regenerated.
12286 * gdbserver/aclocal.m4: New file, generated by aclocal.
12287 * gdbserver/config.in: New file, generated by autoheader.
12288
375fd65b
RE
122892002-02-19 Richard Earnshaw <rearnsha@arm.com>
12290
12291 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12292 armnbsd-nat.c.
12293
08216dd7
RE
122942002-02-19 Richard Earnshaw <rearnsha@arm.com>
12295
12296 * arm-tdep.h (enum arm_float_model): New enum.
12297 (struct gdbarch_tdep): Add fp_model.
12298 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12299 up floating-point conversions until we know the floating-point model
12300 in use by the inferior. Don't complain about being unable to
12301 determine the ABI of the inferior when we don't have one.
12302 (arm_extract_return_value): Support different floating-point models.
12303 (arm_store_return_value): Likewise.
aaa38bb5 12304 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12305 ARM_FLOAT_SOFT.
12306 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12307
65d6d66a
PS
123082002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12309
12310 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12311 of ``current_gdbarch''.
12312
47221191
RE
123132002-02-19 Richard Earnshaw <rearnsha@arm.com>
12314
12315 * armnbsd-nat.c : ANSIfy all function declarations.
12316 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12317 (fetch_inferior_registers): Re-implement in terms of above.
12318 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12319 (store_inferior_registers): Re-implement in terms of above.
12320
fdf39c9a
RE
123212002-02-19 Richard Earnshaw <rearnsha@arm.com>
12322
aaa38bb5 12323 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12324 kernel.
12325 * arm-linux-tdep.c: Likewise.
12326 * config/arm/tm-linux.h: Likewise.
12327
93247f88
RE
123282002-02-19 Richard Earnshaw <rearnsha@arm.com>
12329
12330 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12331 * config/arm/nbsd.mt (TM_FILE): Delete.
12332 * config/arm/tm-nbsd.h: Delete.
12333
d7b486e7
RE
123342002-02-19 Richard Earnshaw <rearnsha@arm.com>
12335
12336 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12337 Initialize CALL_DUMMY_LENGTH.
12338
41d39a95
RE
123392002-02-19 Richard Earnshaw <rearnsha@arm.com>
12340
12341 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12342 function.
12343 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12344 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12345 defines one thing and that is incorrect for this port.
12346 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12347
e1195560
PM
123482002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12349
12350 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12351
c1748f97
PM
123522002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12353
12354 * win32-nat.c (display_selector): New function. Displays information
12355 about the information returned by GetThreadSelectorEntry API function.
12356 (display_selectors): New function. Displays the infomation of
12357 the selector given as argument, or of CS, DS ans FS selectors
12358 if no argument is given.
12359 ( _initialize_inftarg): Add "w32" as info prefix command.
12360 Add "info w32 selector" as command calling display_selectors.
12361
e41e6bbf
PM
123622002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12363
12364 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12365 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12366 if not defined.
12367
0d3a9f48
RE
123682002-02-18 Richard Earnshaw <rearnsha@arm.com>
12369
12370 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12371
3fb4b924
RE
123722002-02-18 Richard Earnshaw <rearnsha@arm.com>
12373
12374 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12375 (arm_fix_call_dummy): Call it.
12376 (arm_call_dummy_breakpoint_offset): Delete.
12377 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12378 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12379
7f55af32
AC
123802002-02-18 Andrew Cagney <ac131313@redhat.com>
12381
12382 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12383 Default to func_frame_chain_valid.
12384 * gdbarch.h, gdbarch.c: Re-generate.
12385 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12386
05f13b9c
EZ
123872002-02-18 Elena Zannoni <ezannoni@redhat.com>
12388
12389 * ppc-linux-nat.c: Update copyright.
12390 (fetch_register, store_register): Add tid parameter, don't compute
12391 tid here.
12392 (fetch_ppc_registers, store_ppc_registers): Add tid
12393 parameter. Pass it along to callees.
12394 (fetch_inferior_registers, store_inferior_registers): Compute tid
12395 here, and pass it to calleed functions.
12396 (fill_gregset, supply_fpregset): Clean up formatting.
12397
d7afb4c9
RE
123982002-02-18 Richard Earnshaw <rearnsha@arm.com>
12399
12400 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12401 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12402
9df628e0
RE
124032002-02-18 Richard Earnshaw <rearnsha@arm.com>
12404
12405 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12406 * gdbarch.c gdbarch.h: Regenerate.
12407 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12408 function.
12409 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12410 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12411 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12412
12413 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12414 * arm-tdep.c (arm_get_longjmp_target): New function.
12415 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12416 this to a positive value register arm_get_longjmp_target as the
12417 longjmp handler.
12418 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12419 (arm_linux_init_abi): Set up longjmp description in tdep.
12420 * armnbsd-nat.c (get_longjmp_target): Delete.
12421 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12422 description in tdep.
12423 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12424 (get_longjmp_target): Delete declaration.
12425 (GET_LONGJMP_TARGET): Delete.
12426 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12427 (GET_LONGJMP_TARGET): Delete.
12428
57bc8964
KB
124292002-02-17 Kevin Buettner <kevinb@redhat.com>
12430
12431 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12432 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12433 of ``current_gdbarch''.
12434
83d31a92
TT
124352002-02-17 Tom Tromey <tromey@redhat.com>
12436
12437 * cli/cli-cmds.c (compare_strings): New function.
12438 (complete_command): Only print each unique item once.
12439 * completer.h (complete_line): Declare.
12440 * completer.c (complete_line): New function.
12441 (line_completion_function): Use it.
12442
17ef5d92
AC
124432002-02-16 Andrew Cagney <ac131313@redhat.com>
12444
12445 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12446 * gdbarch.h, gdbarch.c: Re-generate.
12447
491b8946
DJ
124482002-02-16 Daniel Jacobowitz <drow@mvista.com>
12449
12450 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12451
124522002-02-16 Daniel Jacobowitz <drow@mvista.com>
12453
12454 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12455 * valops.c (value_arg_coerce): Don't take the address of a reference
12456 to convert an argument to a reference.
12457
dfe7f3ac
CF
124582002-02-15 Christopher Faylor <cgf@redhat.com>
12459
12460 * win32-nat.c (get_image_name): New function.
12461 (handle_load_dll): Use get_image_name function.
12462 (get_child_debug_event): Avoid registering debug events until possibly
12463 execed process is started.
12464 (child_create_inferior): Allow invocation via shell so that command
12465 line redirection, etc. works ok.
12466 (_initialize_inftarg): Add new command: "set shell" to control whether
12467 a shell is used to start a process.
12468
1d33e73a
DJ
124692002-02-15 Daniel Jacobowitz <drow@mvista.com>
12470
12471 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12472 instead of find_register_by_number.
12473 (cannot_store_register): Likewise.
12474
48cd0caa
PM
124752002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12476
aaa38bb5 12477 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12478 fprintf_unfiltered (gdb_stderr, ...).
12479
8656e7d8
DJ
124802002-02-15 Daniel Jacobowitz <drow@mvista.com>
12481
12482 * gdbserver/gdbserver.1: Document --attach.
12483
66e810cd
RE
124842002-02-15 Richard Earnshaw <rearnsha@arm.com>
12485
12486 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12487 descriptions.
12488 * arm-tdep.c (arm_default_arm_le_breakpoint)
12489 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12490 (arm_default_thumb_be_breakpoint): New. Initialize them from
12491 traditional breakpoint defines.
12492 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12493 (arm_gdbarch_init): Initialize new breakpoint variables.
12494 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12495 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12496 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12497 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12498 code out to ...
12499 (arm_netbsd_init_abi_common): ... here; new function.
12500 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12501 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12502 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12503 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12504
97e03143
RE
125052002-02-15 Richard Earnshaw <rearnsha@arm.com>
12506
12507 * arm-tdep.h (enum arm_abi): New enum.
12508 (struct gdbarch_tdep): New structure.
12509 (LOWEST_PC): Provide a default.
12510 (arm_gdbarch_register_os_abi): Declare new function.
12511 * arm-tdep.c (arm_abi_names): New array.
12512 (process_note_abi_tag_sections): New function.
12513 (get_elfosabi): New function.
12514 (arm_gdbarch_register_os_abi): New function.
12515 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12516 support for that ABI has been built in, then call the appropriate
12517 configuration routine. Use gdbarch_num_regs() to get the number
12518 of registers.
12519 (arm_dump_tdep): New function.
12520 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12521 place-holder functions.
12522 (_initialize_arm_tdep): Register them.
12523 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12524
12525 * armnbsd-tdep.c: New file.
12526 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12527 * config/arm/nbsd.mt (TDEPFILES): Add it.
12528 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12529
12530 * armnbsd-nat.c: Include regcache.h.
12531 * Makefile.in (armnbsd-nat.o): Update dependency list.
12532
12533 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12534
ad68be46
DJ
125352002-02-14 Daniel Jacobowitz <drow@mvista.com>
12536
12537 * gdbserver/Makefile.in: Fix typos in target rules.
12538
003d6d1d
DJ
125392002-02-14 Daniel Jacobowitz <drow@mvista.com>
12540
aaa38bb5 12541 Fix part of PR gdb/267.
003d6d1d
DJ
12542 * linespec.c (find_methods): Handle constructors specially for now.
12543
6b230f1b
CV
125442002-02-14 Corinna Vinschen <vinschen@redhat.com>
12545
12546 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12547 handling.
12548 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12549 standard_coerce_float_to_double().
12550
1ea98d12
CF
125512002-02-14 Christopher Faylor <cgf@redhat.com>
12552
12553 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12554 GDBINIT_FILENAME.
12555
dd47e6fd
EZ
125562002-02-14 Elena Zannoni <ezannoni@redhat.com>
12557
12558 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12559 find_variant_by_name, because it confuses the multiarch
12560 framework. Return NULL if there isn't an architecture with the
12561 user supplied name, instead of forcing a different one without
12562 recording the change with the multiarch machinery.
12563 (find_variant_by_name): Delete.
12564
d7e39b9e
PS
125652002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12566
12567 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12568 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12569
76e42a4f
MH
125702002-02-13 Martin M. Hunt <hunt@redhat.com>
12571
aaa38bb5 12572 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12573 print_frame_info_listing_hook, set current_source_symtab.
12574
0a30fbc4
DJ
125752002-02-14 Daniel Jacobowitz <drow@mvista.com>
12576
12577 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12578 and remove unused $(INCLUDE_DIR).
12579 Add regcache.c to OBS.
12580 Add generated register protocol files to clean target.
12581 Update dependencies for new objects, obsolete old target code.
12582
12583 * gdbserver/linux-low.c: Remove all platform-specific code to
12584 new files. Remove various dead code. Update to use regcache
12585 functionality.
12586 * gdbserver/remote-utils.c (fromhex): Add return statement
12587 to quiet warning.
12588 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12589 constant.
12590 (input_interrupt): Add integer parameter to match prototype
12591 of a signal handler.
12592 (outreg): Use register_data ().
12593 (prepare_resume_reply): Use gdbserver_expedite_regs.
12594 * gdbserver/server.c (main): Dynamically allocate own_buf because
12595 PBUFSIZ is no longer constant. Use registers_to_string () and
12596 registers_from_string ().
12597 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12598 for error (), fatal (), and warning (). Update definition of
12599 PBUFSIZ to use regcache functionality. Add include guard.
12600 * gdbserver/utils.c (fatal): Add missing ``const''.
12601 (warning): New function.
12602
12603 * regformats/regdat.sh: Include "regcache.h" in generated files.
12604 Provide init_registers () function.
12605 * regformats/regdef.h: Add prototype for set_register_cache ().
12606 Add include guard.
12607
12608 * gdbserver/linux-arm-low.c: New file.
12609 * gdbserver/linux-i386-low.c: New file.
12610 * gdbserver/linux-ia64-low.c: New file.
12611 * gdbserver/linux-m68k-low.c: New file.
12612 * gdbserver/linux-mips-low.c: New file.
12613 * gdbserver/linux-ppc-low.c: New file.
12614 * gdbserver/linux-sh-low.c: New file.
12615
12616 * gdbserver/regcache.c: New file.
12617 * gdbserver/regcache.h: New file.
12618
12619 * gdbserver/low-linux.c: Removed obsolete file.
12620
4cc841d0
DJ
126212002-02-14 Daniel Jacobowitz <drow@mvista.com>
12622
12623 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12624 * config/i386/linux.mt: Likewise.
12625 * config/ia64/linux.mt: Likewise.
12626 * config/m68k/linux.mh: Likewise.
12627 * config/powerpc/linux.mh: Likewise.
12628 * config/mips/linux.mt: Likewise.
12629
12630 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12631
12632 * config/i386/i386lynx.mh: Mark gdbserver variables
12633 as (currently) obsolete for this target.
12634 * config/i386/nbsd.mt: Likewise.
12635 * config/i386/nbsdelf.mt: Likewise.
12636 * config/m32r/m32r.mt: Likewise.
12637 * config/m68k/m68klynx.mh: Likewise.
12638 * config/m68k/nbsd.mt: Likewise.
12639 * config/m68k/sun3os4.mh: Likewise.
12640 * config/mips/vr5000.mt: Likewise.
12641 * config/ns32k/nbsd.mt: Likewise.
12642 * config/pa/hppabsd.mh: Likewise.
12643 * config/pa/hppaosf.mh: Likewise.
12644 * config/powerpc/nbsd.mt: Likewise.
12645 * config/rs6000/rs6000lynx.mh: Likewise.
12646 * config/s390/s390.mt: Likewise.
12647 * config/s390/s390x.mt: Likewise.
12648 * config/sparc/sparclynx.mh: Likewise.
12649 * config/sparc/sun4os4.mh: Likewise.
12650 * config/i386/x86-64linux.mt: Likewise.
12651 * config/sparc/linux.mh: Likewise.
12652
a85f51e7
DJ
126532002-02-14 Daniel Jacobowitz <drow@mvista.com>
12654
12655 * configure.tgt: Configure gdbserver only for known working
12656 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12657 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12658 SUBDIRS if it is configured. Update comment for ${nativefile}.
12659 * configure: Regenerated.
12660
65554fef
MS
126612002-02-13 Michael Snyder <msnyder@redhat.com>
12662
670a52db
MS
12663 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12664
6dbdc4a3
MS
12665 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12666 (default_gcore_mach): Just return 0, work around a problem in bfd.
12667 (default_gcore_target): OK to return NULL if exec_bfd is null.
12668 (make_mem_sec): Use a cast, avoid a warning.
12669
12670 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12671 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12672 sizeof (host pointer) != sizeof (target pointer)).
12673 (procfs_make_note_section): Avoid overflow in psargs string.
12674
aaa38bb5 12675 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12676 implementation return an error.
12677
126782002-02-13 Rodney Brown <rbrown64@csc.com.au>
12679
12680 * procfs.c (procfs_make_note_section): Provide a default definition
12681 (for alpha-dec-osf4.0f). Fix typos.
12682
1e4d76e7
EZ
126832002-02-13 Elena Zannoni <ezannoni@redhat.com>
12684
12685 * linux-proc.c: Add include of regcache.h.
12686 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12687
b6d1a1d5
AC
126882002-02-13 Andrew Cagney <ac131313@redhat.com>
12689
12690 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12691 * memattr.c (create_mem_region): Disallow useless empty region.
12692 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12693 non-overlapping.
b6d1a1d5 12694
6c6ea35e
MC
126952002-02-13 Michael Chastain <mec@shout.net>
12696
12697 * defs.h: Kill CONST_PTR.
12698 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12699 * c-lang.c (c_builtin_types): Likewise.
12700 * ch-lang.c (ch_builtin_types): Likewise.
12701 * f-lang.c (f_builtin_types): Likewise.
12702 * language.c (unknown_builtin_types): Likewise.
12703 * m2-lang.c (m2_builtin_types): Likewise.
12704 * p-lang.c (pascal_builtin_types): Likewise.
12705 * scm-lang.c (c_builtin_types): Likewise.
12706
3e0b0f48
KS
127072002-02-13 Keith Seitz <keiths@redhat.com>
12708
12709 * arm-tdep.h (arm_get_next_pc): Add declaration.
12710
67255d04
RE
127112002-02-13 Richard Earnshaw <rearnsha@arm.com>
12712
12713 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12714 with other related struct-returning functions.
12715 (arm_extract_struct_value_address): New function.
12716 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12717 initialize float_format, double_format and long_double_format as
12718 appropriate to the endianness of the target.
12719 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12720 (arm_use_struct_convention): Delete declaration.
12721 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12722
079777f6
KS
127232002-02-13 Keith Seitz <keiths@redhat.com>
12724
12725 * defs.h (core_addr_to_string_nz): New function.
12726
34588f23
MK
127272002-02-13 Mark Kettenis <kettenis@gnu.org>
12728
12729 Apply missing bits of 2002-01-15 patch.
12730 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12731 (fill_fpregset): Use i387_fill_fsave.
12732
49b563f9
KS
127332002-02-12 Keith Seitz <keiths@redhat.com>
12734
49b563f9
KS
12735 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12736 (core_addr_to_string_nz): New function.
12737
aeb98c60
RE
127382002-02-11 Richard Earnshaw <rearnsha@arm.com>
12739
12740 * arm-linux-nat.c: Really include arm-tdep.h.
12741 * config/arm/tm-linux.h (struct type, struct value): Declare.
12742
65554fef
MS
127432002-02-11 Michael Snyder <msnyder@redhat.com>
12744
12745 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12746 (gcore section): Ifdef for Solaris and Unixware only.
12747 (procfs_do_thread_registers): Unixware needs one lwpstatus
12748 per thread (not one prstatus or pstatus).
12749 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12750 not over all gdb threads. For unixware, call elfcore_write_pstatus
12751 once before iterating over threads.
12752
34e8f22d
RE
127532002-02-11 Richard Earnshaw <rearnsha@arm.com>
12754
12755 * arm-tdep.h: New file.
12756 * arm-tdep.c: Include arm-tdep.h.
12757 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12758 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12759 (arm_print_float_info, arm_register_type, convert_to_extended)
12760 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12761 (arm_extract_return_value, arm_register_name): Make static.
12762 (arm_software_single_step): Similarly. Fix types in declaration.
12763 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12764 (arm_store_return_value, arm_store_struct_return): New functions.
12765 (arm_gdbarch_init): Register the above functions. Also register
12766 call_dummy_start_offset, sizeof_call_dummy_words,
12767 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12768 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12769 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12770 prologue_cache.saved_regs here, rather than ...
12771 (_initialize_arm_tdep): ... here.
12772 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12773 declarations.
12774 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12775 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12776 (arm_print_float_info, arm_register_type, convert_to_extended)
12777 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12778 (arm_extract_return_value, arm_register_name): Delete declarations.
12779 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12780 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12781 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12782 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12783 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12784 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12785 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12786 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12787 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12788 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12789 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12790 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12791 interface.
12792 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12793 * remote-rdi.c remote-rdp.c: Likewise.
12794 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12795 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12796 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12797 definition.
12798
12799 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12800 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12801 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12802 from non-ARM_ prefixed definitions.
12803 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12804 all uses of above.
12805 * remote-rdi.c remote-rdp.c: Likewise.
12806 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12807
148754e5
RE
128082002-02-11 Richard Earnshaw <rearnsha@arm.com>
12809
12810 * arm-tdep.c (arm_frameless_function_invocation)
12811 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12812 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12813 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12814 (arm_pop_frame, arm_get_next_pc): Make static.
12815 (arm_gdbarch_init): Register above in gdbarch structure.
12816 (arm_read_fp): Renamed from arm_target_read_fp.
12817 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12818 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12819 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12820 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12821 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12822 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12823 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12824 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12825 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12826 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12827 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12828
434d2d4f
DJ
128292002-02-10 Daniel Jacobowitz <drow@mvista.com>
12830
12831 * symtab.c (compare_search_syms): New function.
12832 (sort_search_symbols): New function.
12833 (search_symbols): Sort symbols after searching rather than
12834 before.
12835
55241689
AC
128362002-02-10 Andrew Cagney <ac131313@redhat.com>
12837
12838 * NEWS: Linux -> GNU/Linux.
12839
028c194b
AC
128402002-02-10 Andrew Cagney <ac131313@redhat.com>
12841
12842 * gdbarch.sh: For for level one methods, disallow a definition
12843 when partially multi-arched. Add comments explaining rationale.
12844 * gdbarch.h: Re-generate.
12845
6acf50cd
AC
128462002-02-10 Andrew Cagney <ac131313@redhat.com>
12847
12848 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12849 multi-arch partial.
aaa38bb5 12850
50248794
AC
128512002-02-10 Andrew Cagney <ac131313@redhat.com>
12852
12853 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12854 field. Use diff -u.
12855 * gdbarch.c: Re-generate.
12856
c30e0066
AC
128572002-02-10 Andrew Cagney <ac131313@redhat.com>
12858
9b56c5f3 12859 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12860 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12861 partial.
12862
6e6d6484
AC
128632002-02-10 Andrew Cagney <ac131313@redhat.com>
12864
12865 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12866 multi-arch partial.
12867 (PUSH_ARGUMENTS): Switch to using predefault.
12868 * gdbarch.c: Regenerate.
12869
c203844d
AC
128702002-02-10 Andrew Cagney <ac131313@redhat.com>
12871
12872 * valops.c (PUSH_ARGUMENTS): Delete definition.
12873 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12874 partial. Default to default_push_arguments.
12875 * gdbarch.h, gdbarch.c: Regenerate.
12876
b5a2688f
AC
128772002-02-09 Andrew Cagney <ac131313@redhat.com>
12878
12879 * defs.h (throw_exception): Rename return_to_top_level. Update
12880 comments.
12881 * utils.c (error_stream, internal_verror, quit): Ditto.
12882 * top.c (throw_exception, catcher): Ditto.
12883 * sparclet-rom.c (sparclet_load): Ditto.
12884 * remote.c (interrupt_query, minitelnet): Ditto.
12885 * remote-sds.c (interrupt_query): Ditto.
12886 * remote-mips.c (mips_error, mips_kill): Ditto.
12887 * ocd.c (interrupt_query): Ditto.
12888 * monitor.c (monitor_interrupt_query): Ditto.
12889 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12890 * target.h: Update comment.
aaa38bb5 12891
b5a2688f 12892 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12893
2fa5c1e0
AC
128942002-02-09 Andrew Cagney <ac131313@redhat.com>
12895
12896 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12897 default_double_format.
12898 * gdbarch.h, gdbarch.c: Re-generate.
12899 * findvar.c (floatformat_unknown): Delete variable definition.
12900 * doublest.h (floatformat_unknown): Delete variable declaration.
12901
da966255
JB
129022002-02-09 Jim Blandy <jimb@redhat.com>
12903
12904 * stabsread.c (read_type): Add code to parse Sun's syntax for
12905 prototyped function types.
12906
123a4891
AC
129072002-02-09 Andrew Cagney <ac131313@redhat.com>
12908
12909 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12910 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12911
fb39c8f3
PS
129122002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12913
12914 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12915 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12916 now _initialize_xcoffsolib gets called again and overrides the
12917 commands from solib.c in a native configuration.
12918
0b87a11d
MK
129192002-02-09 Mark Kettenis <kettenis@gnu.org>
12920
12921 * doublest.c (store_typed_floating): Don't try to return a value.
12922 Fixes PR gdb/290.
12923
bdc2fc72
JB
129242002-02-08 Jim Blandy <jimb@redhat.com>
12925
12926 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12927 is prototyped and has no arguments, print its argument list as
12928 `(void)'.
12929
da69bbcf
CD
129302002-02-08 Chris Demetriou <cgd@broadcom.com>
12931
12932 * MAINTAINERS (write-after-approval): Add myself.
12933 (paper-trail): I've escaped!
aaa38bb5 12934
b69571f5
CF
129352002-02-08 Christopher Faylor <cgf@redhat.com>
12936
12937 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12938 changes.
12939 (_initialize_check_for_gdb_ini): Ditto.
12940
f6871398
MH
129412002-02-08 Martin M. Hunt <hunt@redhat.com>
12942
12943 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12944 xaprintf -> xasprintf.
12945
4e52d31c
PM
129462002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12947
12948 * win32-nat.c: Remove use of printf and sprintf functions.
12949
39bbf761
RE
129502002-02-08 Richard Earnshaw <rearnsha@arm.com>
12951
12952 * arm-tdep.c (arm_frame_chain_valid): Make static.
12953 (arm_push_arguments): Likewise.
12954 (arm_gdbarch_init): New function.
12955 (_initialize_arm_tdep): Call it.
12956 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12957 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12958 (FRAME_CHAIN_VALID): Delete.
12959 (arm_frame_chain_valid): Delete declaration.
12960 (PUSH_ARGUMENTS): Delete.
12961 (arm_push_arguments): Delete declaration.
12962 (CALL_DUMMY_P): Delete.
12963
9c9532c9
CV
129642002-02-08 Andrew Cagney <ac131313@redhat.com>
12965 Corinna Vinschen <vinschen@redhat.com>
12966
12967 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12968 on builtin float types.
12969
4e8f7a8b
DJ
129702002-02-08 Daniel Jacobowitz <drow@mvista.com>
12971
12972 * utils.c: Include <curses.h> before "bfd.h".
12973 * tui/tui-hooks.c: Likewise.
12974 * tui/tui.c: Likewise.
12975 * tui/tuiCommand.c: Likewise.
12976 * tui/tuiData.c: Likewise.
12977 * tui/tuiDataWin.c: Likewise.
12978 * tui/tuiDisassem.c: Likewise.
12979 * tui/tuiGeneralWin.c: Likewise.
12980 * tui/tuiIO.c: Likewise.
12981 * tui/tuiLayout.c: Likewise.
12982 * tui/tuiRegs.c: Likewise.
12983 * tui/tuiSource.c: Likewise.
12984 * tui/tuiSourceWin.c: Likewise.
12985 * tui/tuiStack.c: Likewise.
12986 * tui/tuiWin.c: Likewise.
12987
cd4bffcf
EZ
129882002-02-07 Elena Zannoni <ezannoni@redhat.com>
12989
12990 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12991 to include space for pseudoregs as well. Update loops accordingly.
12992 (sh_fp_frame_init_saved_regs): Ditto.
12993 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12994
26806ce2
AC
129952002-02-07 Andrew Cagney <ac131313@redhat.com>
12996
12997 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12998 Add Richard Earnshaw to Arm maintainers.
12999
97fdab62
AC
130002002-02-07 Andrew Cagney <ac131313@redhat.com>
13001
a6b98203
AC
13002 * defs.h (warning_begin): Delete declaration.
13003
97fdab62
AC
13004 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13005 Delete macro.
13006
78b29b40
MS
130072002-02-07 Michael Snyder <msnyder@redhat.com>
13008
aaa38bb5 13009 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13010 Logic bug, remove misplaced else.
13011
d8849953
KD
130122002-02-07 Klee Dienes <klee@apple.com>
13013
13014 * fork-inferior.c (fork_inferior): Add '!' to the list of
13015 characters that need to be quoted when building a string for the
13016 shell. Quote '!' specifically with a backslash, since CSH chokes
13017 when trying to evaluate "str!str".
aaa38bb5 13018
095778a0
NC
130192002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13020
13021 * rdi-share/host.h: Only provide a typedef for bool if it is not
13022 defined.
13023
1900040c
MS
130242002-02-04 Michael Snyder <msnyder@redhat.com>
13025
13026 * breakpoint.h (enum bptype): Add new overlay event bp type.
13027 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13028
1900040c
MS
13029 * breakpoint.c (create_internal_breakpoint): New function.
13030 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13031 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13032 (create_thread_event_breakpoint): Ditto.
13033 (create_solib_event_breakpoint): Ditto.
13034 (create_overlay_event_breakpoint): New function.
13035 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13036 (update_breakpoints_after_exec): Delete and re-initialize
13037 overlay event breakpoints after an exec. Add FIXME comment
13038 about longjmp breakpoint.
13039 (print_it_typical): Ignore overlay event breakpoints.
13040 (print_one_breakpoint): Ditto.
13041 (mention): Ditto.
13042 (bpstat_what): Do not stop for overlay event breakpoints.
13043 (delete_breakpoint): Don't delete overlay event breakpoints.
13044 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13045 (breakpoint_re_set): Re-create overlay event breakpoint.
13046
13047 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13048 (overlay_manual_command): Disable overlay breakpoints.
13049 (overlay_off_command): Disable overlay breakpoints.
13050
082fc60d
RE
130512002-02-06 Richard Earnshaw <rearnsha@arm.com>
13052
13053 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13054 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13055 to here from config/tm-arm.h.
13056 (coff_sym_is_thumb): Make static.
13057 (arm_elf_make_msymbol_special): New function.
13058 (arm_coff_make_msymbol_special): New function.
13059 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13060 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13061 (coff_sym_is_thumb): Delete declaration.
13062 (arm_elf_make_msymbol_special): Declare.
13063 (arm_coff_make_msymbol_special): Declare.
13064 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13065 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13066
039c5766
RE
130672002-02-06 Richard Earnshaw <rearnsha@arm.com>
13068
13069 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13070
130712002-02-06 Richard Earnshaw <rearnsha@arm.com>
13072
13073 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13074 * gdbarch.c gdbarch.h: Regenerate.
13075 * arch-utils.c (default_print_float_info): New function.
13076 * arch-utils.h (default_print_float_info): Prototype it.
13077 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13078 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13079 (PRINT_FLOAT_INFO): Document it.
13080
13081 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13082 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13083 (PRINT_FLOAT_INFO): Define.
13084
58fa08f0
PM
130852002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13086
aaa38bb5 13087 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13088 Add typecast to sprintf argument to suppress a warning.
13089
7393af7c
PM
130902002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13091
58fa08f0 13092 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13093 to allow easier handling of pass state.
13094 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13095 that gives exception name and address.
13096 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13097 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13098 exceptions added.
aaa38bb5
AJ
13099 (child_continue): Correctly report continue_status.
13100 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13101 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13102 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13103 the exception should be passed to debuggee or not.
13104
6af4589c
MS
131052002-02-05 Michael Snyder <msnyder@redhat.com>
13106
13107 * regcache.c (fetch_register): Call target_fetch_register
13108 only if we don't call FETCH_PSEUDO_REGISTER.
13109 (store_register): Call target_store_register only if we
13110 don't call STORE_PSEUDO_REGISTER.
13111
a2cf933a
EZ
131122002-02-05 Elena Zannoni <ezannoni@redhat.com>
13113
13114 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13115 ELF_MAKE_MSYMBOL_SPECIAL.
13116 * gdbarch.c, gdbarch.h: Regenerate.
13117 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13118 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13119 * elfread.c (elf_symtab_read): Compile use of
13120 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13121 multiarched.
13122 * coffread.c (coff_symtab_read): Ditto, for
13123 COFF_MAKE_MSYMBOL_SPECIAL.
13124
6bb7be43
JB
131252002-02-05 Jim Blandy <jimb@redhat.com>
13126
13127 * solib-svr4.c (svr4_truncate_ptr): New function.
13128 (svr4_relocate_section_addresses): Do the address arithmetic with
13129 the appropriate truncation for target addresses, even when
13130 CORE_ADDR is larger than a target address.
13131
e18651ec
DJ
131322002-02-05 Daniel Jacobowitz <drow@mvista.com>
13133
13134 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13135 to (int *).
13136
6b2725be
DJ
131372002-02-05 Daniel Jacobowitz <drow@mvista.com>
13138
13139 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13140 code.
13141
fca9e603
DJ
131422002-02-05 Daniel Jacobowitz <drow@mvista.com>
13143
13144 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13145
6c537a52
DJ
131462002-02-05 Daniel Jacobowitz <drow@mvista.com>
13147
13148 * gdbserver/linux-low.c: Remove unused include files.
13149
d844cde6
DJ
131502002-02-05 Daniel Jacobowitz <drow@mvista.com>
13151
13152 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13153 (read_inferior_memory): Use it.
13154 (write_inferior_memory): Likewise.
13155
d07c63e7
DJ
131562002-02-05 Daniel Jacobowitz <drow@mvista.com>
13157
13158 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13159 grubbing through sys_errlist.
13160
da6d8c04
DJ
131612002-02-05 Daniel Jacobowitz <drow@mvista.com>
13162
13163 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13164
5b421780
PM
131652002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13166 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13167
9f60d481
AC
131682002-02-04 Andrew Cagney <ac131313@redhat.com>
13169
13170 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13171 (do_sfunc, set_cmd_sfunc): New functions.
13172
13173 * command.h (struct cmd_list_element): Add field func.
13174 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13175 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13176 * cli/cli-decode.h: Ditto.
13177
13178 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13179 (help_all, help_cmd_list): Ditto.
13180 (find_cmd, complete_on_cmdlist): Ditto.
13181 * top.c (execute_command): Ditto.
13182
13183 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13184 function.sfunc.
13185
13186 * infcmd.c (notice_args_read): Fix function signature.
13187
13188 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13189 * cli/cli-decode.c (add_set_cmd): Ditto.
13190 * utils.c (initialize_utils): Ditto.
13191 * maint.c (_initialize_maint_cmds): Ditto.
13192 * infrun.c (_initialize_infrun): Ditto.
13193 * demangle.c (_initialize_demangler): Ditto.
13194 * remote.c (add_packet_config_cmd): Ditto.
13195 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13196 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13197 * proc-api.c (_initialize_proc_api): Ditto.
13198 * kod.c (_initialize_kod): Ditto.
13199 * valprint.c (_initialize_valprint): Ditto.
13200 * top.c (init_main): Ditto.
13201 * infcmd.c (_initialize_infcmd): Ditto.
13202 * corefile.c (_initialize_core): Ditto.
13203 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13204 * arch-utils.c (initialize_current_architecture): Ditto.
13205 (_initialize_gdbarch_utils): Ditto.
13206 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13207
13208 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13209 * wince.c (_initialize_inftarg): Ditto.
13210 * symfile.c (_initialize_symfile): Ditto.
13211 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13212 * language.c (_initialize_language): Ditto.
13213 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13214
f9ba0717
MS
132152002-02-04 Michael Snyder <msnyder@redhat.com>
13216
13217 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13218
0c74b2a7
DJ
132192002-02-04 Daniel Jacobowitz <drow@mvista.com>
13220
13221 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13222 Add rules for building the register data files.
13223
c638789f
DJ
132242002-02-04 Daniel Jacobowitz <drow@mvista.com>
13225
13226 * regformats/regdat.sh: Add braces to the definition of
13227 expedite_regs_${arch}.
13228
db253027
DJ
132292002-02-04 Daniel Jacobowitz <drow@mvista.com>
13230
13231 * regformats/regdef.h (struct reg): Add comment describing the
13232 requirements for offset and size fields.
13233
206be19c
AS
132342002-02-04 Andreas Schwab <schwab@suse.de>
13235
13236 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13237 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13238
181c1381
RE
132392002-02-04 Richard Earnshaw <rearnsha@arm.com>
13240
13241 * gdbarch.sh (copyright): Update years in generated header.
13242 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13243 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13244 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13245 * dbxread.c: Likewise.
13246 * dwarfread.c: Likewise.
13247 * elfread.c: Likewise.
13248 * somread.c: Likewise.
13249
13250 * arm-tdep.c (arm_smash_text_address): New function.
13251 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13252
fa4ba8da
PM
132532002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13254
13255 Add support for hardware watchpoints on win32 native.
aaa38bb5 13256 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13257 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13258 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13259 of debug registers.
13260 (debug_registers_changed): New variable. Reflects when debug registers
13261 are changed and need to be written to inferior.
aaa38bb5 13262 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13263 was set, used when new threads are created.
13264 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13265 i386-nat code.
13266 (thread_rec): Set dr array if id is the thread of current_event .
13267 (child_continue, child_resume): Change the debug registers for all
13268 threads if debug_registers_changed.
13269 (child_add_thread): Change the debug registers if debug_registers_used.
13270 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13271 Link nm.h to new nm-cygwin.h file.
13272 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13273 of hardware registers.
13274
a73c86fb
AC
132752002-02-03 Andrew Cagney <ac131313@redhat.com>
13276
13277 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13278 Restore behavour broken by 2002-01-20 Andrew Cagney
13279 <ac131313@redhat.com> IEEE_FLOAT removal.
13280
acf5ed49
DJ
132812002-02-03 Daniel Jacobowitz <drow@mvista.com>
13282
13283 * c-valprint.c (c_val_print): Pass a proper valaddr to
13284 cp_print_class_method.
13285 * valops.c (search_struct_method): If there is only one method
13286 and args is NULL, return that method.
13287
493d28d5
DJ
132882002-02-03 Daniel Jacobowitz <drow@mvista.com>
13289
13290 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13291 accessing tag_name directly.
13292
7495dfdb
DJ
132932002-02-03 Daniel Jacobowitz <drow@mvista.com>
13294
13295 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13296 of accessing tag_name directly.
13297
dd6bda65
DJ
132982002-02-03 Daniel Jacobowitz <drow@mvista.com>
13299
13300 PR gdb/280
13301 * gdbtypes.c (replace_type): New function.
13302 * gdbtypes.h (replace_type): Add prototype.
13303 * stabsread.c (read_type): Use replace_type.
13304
88fe217c
RE
133052002-02-03 Richard Earnshaw <rearnsha@arm.com>
13306
13307 * Makefile.in (memattr.o): Add missing dependencies rule.
13308
e5d66720
PS
133092002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13310
13311 * breakpoint.c (break_at_finish_command): Really export.
13312 (break_at_finish_at_depth_command): Ditto.
13313 (tbreak_at_finish_command): Ditto.
13314 * hppa-tdep.c: Include completer.h.
13315 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13316 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13317
fffee0be
AC
133182002-02-01 Andrew Cagney <ac131313@redhat.com>
13319
13320 * utils.c (do_write): New function.
13321 (error_stream): Rewrite combining the code from error_begin and
13322 verror.
13323 (verror): Rewrite using error_stream.
13324 (error_begin): Delete function.
13325
255e7dbf
AC
133262002-02-01 Andrew Cagney <ac131313@redhat.com>
13327
13328 * utils.c (error_begin): Make static.
13329 * defs.h (error_begin): Delete declaration.
13330
13331 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13332 (decode_line_1): Use cplusplus_error instead of error_begin,
13333 cplusplus_hint and return_to_top_level.
13334 * coffread.c (coff_symfile_read): Use error instead of error_begin
13335 and return_to_top_level.
13336 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13337
ddfe3c15
AC
133382002-02-01 Andrew Cagney <ac131313@redhat.com>
13339
13340 * language.h (type_error, range_error): Make string parameter
13341 constant.
13342 * language.c (warning_pre_print): Delete extern declaration.
13343 * dwarfread.c (warning_pre_print): Ditto.
13344 * language.c (type_error, range_error): Rewrite to use verror and
13345 vwarning instead of warning_begin.
13346
03ac34d5
MS
133472002-02-01 Michael Snyder <msnyder@redhat.com>
13348
261c4ca2
MS
13349 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13350 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13351
e00d1dc8
AC
133522002-02-01 Andrew Cagney <ac131313@redhat.com>
13353
13354 * command.h (NO_FUNCTION): Delete macro.
13355 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13356 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13357 * tracepoint.c (_initialize_tracepoint): Ditto.
13358 * cli/cli-decode.c (add_set_cmd): Ditto.
13359 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13360
76b79d6e
DJ
133612002-02-01 Daniel Jacobowitz <drow@mvista.com>
13362
13363 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13364 Update ``this'' pointer when calling virtual functions.
13365
799f9e91
MS
133662002-02-01 Michael Snyder <msnyder@redhat.com>
13367
c7bd442c 13368 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13369 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13370
3cf384d4
DJ
133712002-02-01 Daniel Jacobowitz <drow@mvista.com>
13372
13373 * regformats/reg-arm.dat: New file.
13374 * regformats/reg-i386.dat: New file.
13375 * regformats/reg-ia64.dat: New file.
13376 * regformats/reg-m68k.dat: New file.
13377 * regformats/reg-mips.dat: New file.
13378 * regformats/reg-ppc.dat: New file.
13379 * regformats/reg-sh.dat: New file.
13380 * regformats/regdef.h: New file.
13381 * regformats/regdat.sh: New file.
13382
0defa245
RE
133832002-02-01 Richard Earnshaw <reanrsha@arm.com>
13384
13385 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13386 (arm_frame_args_address, arm_frame_locals_address): New functions.
13387 (arm_frame_num_args): New function.
13388 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13389 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13390 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13391
405f26e6
MS
133922002-01-31 Michael Snyder <msnyder@redhat.com>
13393
502fd408
MS
13394 * breakpoint.c (break_at_finish_command): Export.
13395 (break_at_finish_at_depth_command): Export.
13396 (tbreak_at_finish_command): Export.
d6020d45 13397 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13398 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13399 "txbreak" commands, which are HPPA specific.
502fd408 13400
7d35e135
MS
13401 * printcmd.c (disassemble_command): Remove an ancient
13402 artifact of an old merge.
13403
aaa38bb5 13404 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13405 Define enum constant values for overlay mode.
13406 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13407 (overlay_is_mapped, overlay_auto_command,
13408 overlay_manual_command): Ditto.
d874f1e2 13409
aaa38bb5
AJ
13410 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13411 breakpoint_here_p, breakpoint_inserted_here_p,
13412 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13413 describe_other_breakpoints, check_duplicates, clear_command):
13414 Coding standard fixes.
13415
8add0441 13416 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13417 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13418 code: check bfd SEC_READONLY flag for section.
13419
e351066e
AC
134202002-01-31 Andrew Cagney <ac131313@redhat.com>
13421
7d35e135 13422 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13423
8a48e967
DJ
134242002-01-30 Daniel Jacobowitz <drow@mvista.com>
13425
13426 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13427 data symbols, since we search based on textlow and texthigh.
13428 (find_pc_sect_symtab): Likewise.
13429
f5a96129
AC
134302002-01-30 Andrew Cagney <ac131313@redhat.com>
13431
13432 * defs.h (vwarning): Declare.
f5a96129
AC
13433 * utils.c (vwarning): New function.
13434 (warning): Call vwarning.
13435 (warning_begin): Delete function.
13436
13437 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13438 the warning message.
13439 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13440 warning_begin.
13441
cefd4ef5
MS
134422002-01-30 Michael Snyder <msnyder@redhat.com>
13443
1a703748
MS
13444 * NEWS: Mention "set trust-readonly-sections" command.
13445 Mention generate-core-file command.
cefd4ef5 13446
3a11626d
MS
134472002-01-15 Michael Snyder <msnyder@redhat.com>
13448
13449 * target.c: New command, "set trust-readonly-sections on".
13450 (do_xfer_memory): Honor the suggestion to trust readonly sections
13451 by reading them from the object file instead of from the target.
13452 (initialize_targets): Register command "set trust-readonly-sections".
13453
d1c7e53b
AC
134542002-01-29 Andrew Cagney <ac131313@redhat.com>
13455
13456 * parse.c (target_map_name_to_register): Simplify, search regs and
13457 pseudo-regs using a single loop.
13458
e2c9a72c
AC
134592002-01-30 Andrew Cagney <ac131313@redhat.com>
13460
13461 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13462
69824b4e
MK
134632002-01-15 Rodney Brown <rbrown64@csc.com.au>
13464
13465 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13466 * config/i386/i386v42mp.mh: Add i387-nat.o .
13467 * i386v4-nat.c: Include i387-nat.h.
13468 (supply_fpregset): Use i387_supply_fsave.
13469 (fill_fpregset): Use i387_fill_fsave.
13470
6eb69eab
RE
134712002-01-30 Richard Earnshaw <rearnsha@arm.com>
13472
13473 * arm-tdep.c (arm_call_dummy_words): Define.
13474 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13475 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13476 (CALL_DUMMY_WORDS): Define.
13477 (arm_call_dummy_words): Declare.
13478 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13479 (arm_linux_call_dummy_words): Declare.
13480
9852326a
AS
134812002-01-30 Andreas Schwab <schwab@suse.de>
13482
13483 * m68klinux-nat.c: Fix last change to use regcache_collect
13484 instead of referencing registers[] directly.
13485
977a3030
AC
134862002-01-29 Andrew Cagney <ac131313@redhat.com>
13487
13488 * parse.c (target_map_name_to_register): Delete code wrapped in
13489 #ifdef REGISTER_NAME_ALIAS_HOOK.
13490
2076c72b
MS
134912002-01-28 Michael Snyder <msnyder@redhat.com>
13492
13493 * regcache.c (legacy_read_register_gen): Need to be able to
13494 read pseudo-register as well as real register.
13495 (legacy_write_register_gen): Ditto.
13496
8fcc723b
AC
134972002-01-28 Andrew Cagney <ac131313@redhat.com>
13498
13499 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13500 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13501 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13502 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13503 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13504 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13505 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13506 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13507 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13508 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13509 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13510 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13511 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13512 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13513 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13514 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13515 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13516 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13517 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13518 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13519
afe64c1a
AC
135202002-01-28 Andrew Cagney <ac131313@redhat.com>
13521
13522 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13523 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13524 (initialize_current_architecture): Update target_byte_order using
13525 information from BFD.
aaa38bb5 13526 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13527 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13528
75bc7ddf
AC
135292002-01-28 Andrew Cagney <ac131313@redhat.com>
13530
13531 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13532 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13533
13534 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13535 #ifdef INVALID_FLOAT.
13536 * infcmd.c (do_registers_info): Ditto.
13537 * values.c (unpack_double): Ditto. Add comment.
13538
13539 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13540 already commented out.
13541
0280a90a
AS
135422002-01-26 Andreas Schwab <schwab@suse.de>
13543
13544 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13545 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13546 registers and add support for PTRACE_GETREGS.
13547
7072a954
AC
135482002-01-24 Andrew Cagney <ac131313@redhat.com>
13549
13550 GDB 5.1.1 released from 5.1 branch.
13551 * NEWS: Add 5.1.1 news.
13552 * README: Sync with 5.1 branch.
13553
86f902e0
FF
135542002-01-23 Fred Fish <fnf@redhat.com>
13555
13556 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13557 stabstring on initial malloc. Reallocing will copy it for us,
13558 if necessary.
13559
8af51c36
EZ
135602002-01-23 Elena Zannoni <ezannoni@redhat.com>
13561
aaa38bb5 13562 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13563 (HFILES_NO_SRCDIR): Remove hpread.h.
13564 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13565 (hpread.o): Update dependencies.
13566 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13567
13568 * hp-psymtab-read.c: Remove file.
13569 * hp-symtab-read.c: Remove file.
13570 * hpread.h: Remove file.
13571
13572 * hpread.c: Merge all contents of hp-psymtab-read.c,
13573 hp-symtab-read.c and hpread.h into this file, as it was prior to
13574 January 1999.
13575
13576 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13577 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13578 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13579 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13580
dc5cfeb6
EZ
135812002-01-23 Elena Zannoni <ezannoni@redhat.com>
13582
13583 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13584 fill_gregset): Call gdbarch_tdep() just once, assign result to
13585 variable and use that, instead of calling the function several
13586 times.
13587
ea87b71b
AO
135882002-01-24 Alexandre Oliva <aoliva@redhat.com>
13589
13590 * configure.host: Accept sparcv9 as alias for sparc64.
13591 * configure.tgt: Likewise.
13592
13fc0c2f
KB
135932002-01-22 Kevin Buettner <kevinb@redhat.com>
13594
13595 * solib-aix5.c (build_so_list_from_mapfile)
13596 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13597 arguments is not reversed.
13598 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13599 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13600
7bd872fe
EZ
136012002-01-22 Elena Zannoni <ezannoni@redhat.com>
13602
13603 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13604 modified version of obsolete sh_fetch_pseudo_register.
13605 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13606 (sh4_register_read): New function.
13607 (sh_pseudo_register_write): New function. Renamed and modified
13608 version of obsolete sh_store_pseudo_register.
13609 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13610 (sh4_register_write): New function.
13611 (sh_gdbarch_init): Remove setting of gdbarch function
13612 fetch_pseudo_register and store_pseudo_register. Remove setting of
13613 register_convert_to_raw, register_convert_to_virtual,
13614 register_convertible.
13615 (sh_sh4_register_convertible): Delete. No longer needed. All is
13616 taken care by architecture specific functions
13617 register_read/register_write.
13618 (sh_sh4_register_convert_to_virtual): Make static.
13619 (sh_sh4_register_convert_to_raw): Ditto.
13620
069e84fd
AC
136212002-01-22 Andrew Cagney <ac131313@redhat.com>
13622
13623 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13624 (floatformat_is_nan, floatformat_mantissa): Ditto.
13625
13626 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13627 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13628 builtin_type_ieee_double_little,
13629 builtin_type_ieee_double_littlebyte_bigword,
13630 builtin_type_m68881_ext, builtin_type_i960_ext,
13631 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13632 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13633 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13634 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13635
211a4f69
CV
136362002-01-22 Corinna Vinschen <vinschen@redhat.com>
13637
13638 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13639 parameter. Set frameless flag if it exists and depended of
13640 whether the scanned function is frameless or not.
13641 (xstormy16_skip_prologue): If function is frameless, return
13642 result of xstormy16_scan_prologue().
13643 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13644 call.
13645
f81353e4
EZ
136462002-01-21 Elena Zannoni <ezannoni@redhat.com>
13647
13648 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13649 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13650 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13651 sh_sh4_register_byte, sh_sh4_register_raw_size,
13652 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13653 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13654 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13655 sh_store_pseudo_register, sh_do_pseudo_register): Call
13656 gdbarch_tdep() just once, assign result to variable and use that,
13657 instead of calling the function several times.
13658
63c73a17
MK
136592002-01-20 Mark Kettenis <kettenis@gnu.org>
13660
13661 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13662 macros instead of LAST_FPU_CTRL_REGNUM.
13663 (store_register): Likewise.
13664
39ad761d
JB
136652002-01-21 Jim Blandy <jimb@redhat.com>
13666
13667 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13668 is up-to-date before running the program, not just when a program
13669 exits.
13670
3d74b771
FF
136712002-01-21 Fred Fish <fnf@redhat.com>
13672
13673 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13674 when we have found all instructions we are looking for.
13675
966fbf70
RE
136762002-01-21 Richard Earnshaw <rearnsha@arm.com>
13677
13678 * arm-tdep.c (arm_register_name): New function.
13679 (arm_registers_names): Make static.
13680 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13681 (arm_register_name): Declare.
13682 (REGISTER_NAME): Use it.
13683
c3b4394c
RE
136842002-01-21 Richard Earnshaw <rearnsha@arm.com>
13685 Kevin Buettner <kevinb@redhat.com>
13686
13687 Convert arm targets to new FRAME interface.
13688 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13689 (arm_frame_find_save_regs): Delete.
13690 (arm_frame_init_saved_regs): New.
13691 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13692 Allocate extra_info as required. Convert all uses of fsr.regs
13693 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13694 to use extra_info.
13695 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13696 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13697 (check_prologue_cache, save_prologue_cache): Likewise.
13698 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13699 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13700 (FRAME_FIND_SAVED_REGS): Delete.
13701 (arm_frame_find_saved_regs): Delete prototype.
13702 (arm_frame_init_saved_regs): New prototype.
13703 (FRAME_INIT_SAVED_REGS): Define.
13704
61d99182
AC
137052002-01-20 Andrew Cagney <ac131313@redhat.com>
13706
13707 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13708
6aaea291
AC
137092002-01-20 Andrew Cagney <ac131313@redhat.com>
13710
13711 From Jeff Law <law@redhat.com>:
13712 * infttrace.c: Include <sys/pstat.h>.
13713 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13714 exec file if the ttrace equivalent fails.
13715
15f698d2
AC
137162002-01-20 Andrew Cagney <ac131313@redhat.com>
13717
13718 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13719 (closeLogFile): Ditto.
13720
f86ddd7c
MC
137212002-01-20 Michael Chastain <mec@shout.net>
13722
13723 * top.c (print_gdb_version): Bump copyright year to 2002.
13724
904507ce
AC
137252002-01-20 Andrew Cagney <ac131313@redhat.com>
13726
13727 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13728 Zannoni and Eli Zaretskii.
13729
d7f0b9ce
DJ
137302002-01-20 Daniel Jacobowitz <drow@mvista.com>
13731
13732 * buildsym.c: Update copyright years.
13733 * c-typeprint.c: Likewise.
13734 * dwarf2read.c: Likewise.
13735 * f-typeprint.c: Likewise.
13736 * gdbtypes.c: Likewise.
13737 * gdbtypes.h: Likewise.
13738 * hp-symtab-read.c: Likewise.
13739 * hpread.c: Likewise.
13740 * mdebugread.c: Likewise.
13741 * p-typeprint.c: Likewise.
13742
3fd3d7d2
AC
137432002-01-20 Andrew Cagney <ac131313@redhat.com>
13744
13745 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13746 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13747 byte-order selectable.
13748 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13749 * arch-utils.c: Ditto.
13750 (set_endian): Ditto.
13751 (set_endian_from_file): Ditto.
13752 * gdbserver/low-sim.c (create_inferior): Ditto.
13753 * gdbarch.sh: Ditto.
13754 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13755 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13756 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13757 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13758 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13759 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13760 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13761 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13762 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13763 macro definition.
13764 * config/mips/tm-wince.h: Remove #undef of macro
13765 TARGET_BYTE_ORDER_SELECTABLE.
13766 * config/sh/tm-wince.h: Ditto.
13767
b02dede2
DJ
137682002-01-20 Daniel Jacobowitz <drow@mvista.com>
13769
13770 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13771 member function fields. Add accessor macro
13772 TYPE_FN_FIELD_ARTIFICIAL.
13773 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13774 * c-typeprint.c (c_type_print_base): Skip artificial member
13775 functions.
13776
c3643761
DJ
137772002-01-20 Daniel Jacobowitz <drow@mvista.com>
13778
13779 * f-typeprint.c: Delete unused function f_type_print_args.
13780 * p-typeprint.c: Delete unused function pascal_type_print_args.
13781
8176bb6d
DJ
137822002-01-20 Daniel Jacobowitz <drow@mvista.com>
13783
13784 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13785 comment. Add ``artificial'' to ``union field_location''.
13786
13787 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13788
13789 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13790 * mdebugread.c (parse_symbol): Likewise.
13791 * stabsread.c (define_symbol): Likewise.
13792 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13793 initializing TYPE_FIELD_BITPOS to n (obsolete).
13794 (hpread_doc_function_type): Likewise.
13795 * hpread.c (hpread_function_type): Likewise.
13796
7fd60527
AC
137972002-01-20 Andrew Cagney <ac131313@redhat.com>
13798
13799 * configure.in (host_makefile_frag): Only require a host makefile
13800 fragment when a native build.
13801 * configure: Re-generate.
13802
c2f05ac9
AC
138032002-01-20 Andrew Cagney <ac131313@redhat.com>
13804
13805 * doublest.h (floatformat_from_type): Declare.
13806 * doublest.c (floatformat_from_type): New function.
13807 (convert_typed_floating): Use.
13808
13809 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13810 call to function floatformat_from_type.
13811
13812 * gdbarch.sh (IEEE_FLOAT): Delete.
13813 * gdbarch.h, gdbarch.c: Re-generate.
13814 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13815 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13816 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13817 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13818 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13819 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13820 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13821 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13822 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13823 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13824 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13825 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13826
13827 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13828 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13830 * sh-tdep.c (sh_gdbarch_init): Ditto.
13831 * mips-tdep.c (mips_gdbarch_init): Ditto.
13832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13833 * cris-tdep.c (cris_gdbarch_init): Ditto.
13834
abf22e64
AJ
138352002-01-20 Jiri Smid <smid@suse.cz>
13836
13837 * configure.host, configure.tgt: Support x86-64.
13838 * NEWS: Note new target x86-64.
13839
b7c4cbf8
AJ
13840 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13841 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13842 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13843 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13844 x86-64-linux-nat.o): Fix dependencies.
13845
82600034
AC
138462002-01-19 Andrew Cagney <ac131313@redhat.com>
13847
13848 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13849 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13850 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13851 * config/sparc/xm-sun4os4.h: Delete file.
13852 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13853
bbe5c628
AC
138542002-01-19 Andrew Cagney <ac131313@redhat.com>
13855
13856 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13857 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13858 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13859 * config/i386/i386lynx.mh (XM_FILE): Delete.
13860 * config/rs6000/xm-rs6000ly.h: Delete file.
13861 * config/sparc/xm-sparclynx.h: Delete file.
13862 * config/m68k/xm-m68klynx.h: Delete file.
13863 * config/i386/xm-i386lynx.h: Delete file.
13864 * config/xm-lynx.h: Delete file.
13865 * config/djgpp/fnchange.lst: Update.
13866
f8453e34
JT
138672002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13868
13869 * alpha-tdep.c (alpha_register_byte): New function.
13870 (alpha_register_raw_size): Ditto.
13871 (alpha_register_virtual_size): Ditto.
13872 (alpha_skip_prologue_internal): Renamed from
13873 alpha_skip_prologue.
13874 (alpha_skip_prologue): New version that calls
13875 alpha_skip_prologue_internal.
13876 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13877 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13878 second argument from alpha_skip_prologue.
13879 (REGISTER_BYTE): Use alpha_register_byte.
13880 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13881 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13882 (FRAMELESS_FUNCTION_INVOCATION): Use
13883 generic_frameless_function_invocation_not.
13884 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13885 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13886
52d9e613
AC
138872002-01-19 Andrew Cagney <ac131313@redhat.com>
13888
13889 * config/mips/xm-news-mips.h: Delete file.
13890 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13891
13892 * config/m88k/xm-m88k.h: Delete file.
13893 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13894 * config/m88k/xm-delta88v4.h: Ditto.
13895 * config/m88k/xm-delta88.h: Ditto.
13896
13897 * config/alpha/xm-fbsd.h: Delete file.
13898 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13899
13900 * config/sparc/xm-sparc.h: Delete file.
13901 * Makefile.in (xm-sun4os4.h): Delete dependency.
13902 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13903 * config/sparc/xm-sun4os4.h: Ditto.
13904 * config/sparc/xm-linux.h: Ditto.
13905
13906 * config/i386/xm-windows.h: Delete file.
13907
2d1b2124
AC
139082002-01-19 Andrew Cagney <ac131313@redhat.com>
13909
13910 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13911 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13912
ee1f65f0
JT
139132002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13914
13915 * alpha-tdep.c (alpha_call_dummy_words): New.
13916 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13917 (CALL_DUMMY_P): Define.
13918 (CALL_DUMMY_WORDS): Define.
13919 (SIZEOF_CALL_DUMMY_WORDS): Define.
13920
98081e55
PB
139212002-01-19 Per Bothner <per@bothner.com>
13922
13923 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13924 isn't NULL, which can happen with some gcj-3.x-produced code.
13925
0d056799
JT
139262002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13927
13928 * alpha-tdep.c (alpha_register_virtual_type): New function.
13929 (alpha_init_frame_pc_first): Ditto.
13930 (alpha_fix_call_dummy): Ditto.
13931 (alpha_store_struct_return): Ditto.
13932 (alpha_extract_struct_value_address): Ditto.
13933 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13934 alpha_register_virtual_type.
13935 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13936 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13937 alpha_extract_struct_value_address.
13938 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13939 (INIT_FRAME_PC): Use init_frame_pc_noop.
13940 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13941
4604bcad
MK
139422002-01-19 Mark Kettenis <kettenis@gnu.org>
13943
13944 * i386gnu-nat.c: Include "i386-tdep.h".
13945 (fetch_fpregs): Simplify code dealing with uninitialized floating
13946 point states such that it doesn't require FP7_REGNUM.
13947
140f9984
JT
139482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13949
abf22e64
AJ
13950 * alpha-tdep.c (frame_extra_info): New.
13951 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13952 frame->extra_info.
13953 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13954 (alpha_frame_saved_pc): Use frame->extra_info.
13955 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13956 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13957 (init_extra_frame_info): Rename to...
13958 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13959 (alpha_print_extra_frame_info): New function.
140f9984
JT
13960 (alpha_frame_locals_address): Ditto.
13961 (alpha_frame_args_address): Ditto.
abf22e64 13962 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13963 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13964 alpha_frame_args_address.
abf22e64 13965 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13966 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13967 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13968 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13969 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13970 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13971
d734c450
JT
139722002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13973
13974 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13975 (alpha_cannot_fetch_register): Ditto.
13976 (alpha_cannot_store_register): Ditto.
13977 (alpha_register_convertible): Ditto.
13978 (alpha_use_struct_convention): Ditto.
13979 * config/alpha/tm-alpha.h: Update copyright years.
13980 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13981 (INNER_THAN): Use core_addr_lessthan.
13982 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13983 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13984 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13985 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13986 (FRAME_CHAIN): Remove unnecessary cast.
13987
b4ceaee6
AC
139882002-01-18 Andrew Cagney <ac131313@redhat.com>
13989
13990 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13991 obsolete.
13992
0a65a603
AC
139932002-01-18 Andrew Cagney <ac131313@redhat.com>
13994
13995 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13996 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13997 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13998 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13999 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14000 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14001 * x86-64-linux-nat.c: Ditto.
14002
636a6dfc
JT
140032002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14004
abf22e64 14005 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14006 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14007 (REGISTER_NAME): Define.
14008
acceddb6
JT
140092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14010
14011 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14012
ec32e4be
JT
140132002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14014
14015 * alpha-tdep.c: Update copyright years.
14016 (alpha_next_pc): New function.
14017 (alpha_software_single_step): Ditto.
14018 * config/alpha/tm-alpha.h: Add prototype for
14019 alpha_software_single_step.
14020
e771a871
JT
140212002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14022
14023 * alphabsd-nat.c: Update copyright years.
14024 (fill_gregset): Use regcache_collect.
14025 (fill_fpregset): Likewise.
14026 (fetch_inferior_registers): Only fetch integer registers
14027 if requested to do so.
14028 (store_inferior_registers): Only store integer registers
14029 if requested to do so.
14030
7708fa01
AC
140312002-01-17 Andrew Cagney <ac131313@redhat.com>
14032
14033 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14034 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14035 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14036 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14037 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14038 * config/arm/linux.mh (XDEPFILES): Delete.
14039 * config/arm/nbsd.mh (XDEPFILES): Delete.
14040 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14041 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14042 * config/i386/i386m3.mh (XDEPFILES): Delete.
14043 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14044 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14045 * config/i386/fbsd.mh (XDEPFILES): Delete.
14046 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14047 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14048 * config/i386/i386v4.mh (XDEPFILES): Delete.
14049 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14050 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14051 * config/i386/i386aix.mh (XDEPFILES): Delete.
14052 * config/i386/go32.mh (XDEPFILES): Delete.
14053 * config/i386/cygwin.mh (XDEPFILES): Delete.
14054 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14055 * config/i386/i386mach.mh (XDEPFILES): Delete.
14056 * config/i386/i386v32.mh (XDEPFILES): Delete.
14057 * config/i386/linux.mh (XDEPFILES): Delete.
14058 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14059 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14060 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14061 * config/i386/i386sco.mh (XDEPFILES): Delete.
14062 * config/i386/i386v.mh (XDEPFILES): Delete.
14063 * config/i386/nbsd.mh (XDEPFILES): Delete.
14064 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14065 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14066 * config/i386/symmetry.mh (XDEPFILES): Delete.
14067 * config/i386/obsd.mh (XDEPFILES): Delete.
14068 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14069 * config/ia64/linux.mh (XDEPFILES): Delete.
14070 * config/ia64/aix.mh (XDEPFILES): Delete.
14071 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14072 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14073 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14074 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14075 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14076 * config/m68k/linux.mh (XDEPFILES): Delete.
14077 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14078 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14079 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14080 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14081 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14082 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14083 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14084 * config/m88k/delta88.mh (XDEPFILES): Delete.
14085 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14086 * config/m88k/m88k.mh (XDEPFILES): Delete.
14087 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14088 * config/mips/linux.mh (XDEPFILES): Delete.
14089 * config/mips/irix6.mh (XDEPFILES): Delete.
14090 * config/mips/irix5.mh (XDEPFILES): Delete.
14091 * config/mips/irix4.mh (XDEPFILES): Delete.
14092 * config/mips/irix3.mh (XDEPFILES): Delete.
14093 * config/mips/decstation.mh (XDEPFILES): Delete.
14094 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14095 (NATDEPFILES): Move core-aout.o to here.
14096 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14097 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14098 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14099 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14100 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14101 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14102 * config/pa/hpux11.mh (XDEPFILES): Delete.
14103 * config/powerpc/aix.mh (XDEPFILES): Delete.
14104 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14105 * config/powerpc/linux.mh (XDEPFILES): Delete.
14106 * config/romp/rtbsd.mh: Rename XDEPFILES.
14107 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14108 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14109 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14110 * config/s390/s390.mh (XDEPFILES): Delete.
14111 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14112 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14113 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14114 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14115 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14116 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14117 * config/sparc/linux.mh (XDEPFILES): Delete.
14118 * config/vax/vaxult.mh (XDEPFILES): Delete.
14119 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14120 * Makefile.in (DEPFILES): Remove XDEPFILES.
14121
375fc983
AC
141222002-01-17 Andrew Cagney <ac131313@redhat.com>
14123
14124 * utils.c (internal_verror): Fix comments, default is yes not no.
14125 Update queries to match. Default to quit and dump core.
14126
8926118c
AC
141272002-01-17 Andrew Cagney <ac131313@redhat.com>
14128
14129 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14130 copyright.
14131 * defs.h, event-top.c, gdbcmd.h: Ditto.
14132 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14133 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14134 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14135 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14136 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14137 * mi/mi-main.c:Ditto.
14138
14139 * stack.c, symfile.c: Update copyright.
14140
45b7b345
DJ
141412002-01-17 Daniel Jacobowitz <drow@mvista.com>
14142
db728ff7
DJ
14143 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14144 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14145 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14146 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14147
db728ff7
DJ
141482002-01-17 Daniel Jacobowitz <drow@mvista.com>
14149
14150 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14151 * gdbserver/low-lynx.c (myattach): Likewise.
14152 * gdbserver/low-nbsd.c (myattach): Likewise.
14153 * gdbserver/low-sim.c (myattach): Likewise.
14154 * gdbserver/low-sparc.c (myattach): Likewise.
14155 * gdbserver/low-sun3.c (myattach): Likewise.
14156
14157 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14158
db728ff7 14159 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14160 (main): Handle "--attach".
14161
8de3c354
AC
141622002-01-16 Andrew Cagney <ac131313@redhat.com>
14163
14164 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14165 maintainer.
14166
b0129042
DJ
141672002-01-15 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * c-typeprint.c (is_type_conversion_operator): Add additional
14170 check for non-conversion operators.
14171
ba8679fb 141722002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14173
14174 * linux-proc.c: Add "info proc" command, a la procfs.c.
14175 (read_mapping): New function, abstract and re-use code.
14176 (linux_find_memory_regions): Use new func read_mapping.
14177 (linux_info_proc_cmd): New function, implement "info proc".
14178 (_initialize_linux_proc): Add new command "info proc".
14179
e4f9b4d5
MS
141802002-01-15 Michael Snyder <msnyder@redhat.com>
14181
14182 * symfile.c (generic_load): Use bfd_map_over_sections method
14183 instead of manipulating bfd structure members directly.
14184 (add_section_size_callback): New function, bfd sections callback
14185 used by generic_load.
14186 (load_sections_callback): New function, bfd sections callback
14187 used by generic_load.
14188
08cf96df
EZ
141892002-01-15 Elena Zannoni <ezannoni@redhat.com>
14190
abf22e64 14191 [Based on work by Jim Blandy]
08cf96df
EZ
14192 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14193 (builtin_type_vec128): Export.
14194 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14195 types.
14196 (builtin_type_vec128): New builtin type for 128 bit vector
14197 registers.
14198 (build_gdbtypes): Initialize builtin_type_v16qi and
14199 builtin_type_v8hi. Create the vec128 register builtin type
14200 structure.
14201 (build_builtin_type_vec128): New function.
abf22e64 14202 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14203 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14204 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14205 AltiVec register to new builtin type.
14206
d7242108
DJ
142072001-01-15 Daniel Jacobowitz <drow@mvista.com>
14208
14209 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14210 to make_cv_type.
14211
4ee3352d
AC
142122002-01-14 Andrew Cagney <ac131313@redhat.com>
14213
14214 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14215 CLEAN_UP_REGISTER_VALUE.
14216 * regcache.c (supply_register): Update only call.
14217
f015b2e7
AC
142182002-01-14 Andrew Cagney <ac131313@redhat.com>
14219
14220 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14221 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14222 a29k-*-vxworks* targets as obsolete.
14223
356ae49d
MS
142242002-01-14 Michael Snyder <msnyder@redhat.com>
14225
14226 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14227 until we can resolve portability issues.
14228 * gregset.h: Remove references to fpxregs.
14229 * gcore.c (gcore_command): Initialize note_sec to NULL.
14230
ade8f45e
AC
142312002-01-13 Andrew Cagney <ac131313@redhat.com>
14232
14233 * signals.c (target_signal_to_name): Rewrite. Only use
14234 signals[].name when in bounds and non-NULL.
abf22e64 14235
89c49e7a
AC
142362002-01-13 Andrew Cagney <ac131313@redhat.com>
14237
14238 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14239 * signals.c (target_signal_to_name): Verify that SIG is within the
14240 bounds of the signals array.
14241
4daa9f9f
AC
142422002-01-13 Andrew Cagney <ac131313@redhat.com>
14243
14244 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14245
ba4bbdcb
KS
142462002-01-13 Keith Seitz <keiths@redhat.com>
14247
14248 * stack.c (print_frame_info_base): Print the frame's pc
14249 only if when print_frame_info_listing_hook is not defined.
14250
575bbeb6
KS
142512002-01-13 Keith Seitz <keiths@redhat.com>
14252
14253 * varobj.c (varobj_set_value): Make sure that there were no
14254 errors evaluating the object before attempting to set its
14255 value.
14256 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14257 so this offset adjustment is no longer necessary.
14258 (create_child): Don't set the error flag if the child is
14259 a CPLUS_FAKE_CHILD.
14260 (value_of_child): If value_fetch_lazy fails, return NULL
14261 so that callers will be notified that an error occurred.
14262 (c_value_of_variable): Delay check of variable's validity
14263 until later. We actually want all structs and unions to have
14264 the value "{...}".
14265 Do not return "???" for variables which could not be evaluated.
14266 This error condition must be returned to the caller so that it
14267 can get the error condition from gdb.
14268 (cplus_name_of_child): Adjust index for vptr before figuring
14269 out the name of the child.
14270 (cplus_value_of_child): If a child's (real) parent is not valid,
14271 don't even bother trying to give a value for it. Just return
14272 an error. Change all instances in this function.
14273 (cplus_type_of_child): If our parent is one of the "fake"
14274 parents, we need to get at the type of the real parent, and
14275 derive the child's true type using this information.
14276
b76898ab
AC
142772002-01-13 Andrew Cagney <ac131313@redhat.com>
14278
14279 From 2002-01-09 John Marshall <johnm@falch.net>:
14280 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14281 sources.redhat.com, and tweak some related URLs which had
14282 suffered from linkrot.
14283
b6649e88
AC
142842002-01-13 Andrew Cagney <ac131313@redhat.com>
14285
14286 From Jeff law:
14287 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14288 structures passed in registers.
14289
82cc5033
EZ
142902002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14291
14292 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14293 white space which prevented compilation. Reported by DSK
14294 <dsk@student.unsw.edu.au>.
14295
ba5f2f8a
MS
142962002-01-11 Michael Snyder <msnyder@redhat.com>
14297
fbd35540
MS
14298 * symfile.c (build_section_addr_info_from_section_tab):
14299 Use bfd access method instead of manipulating bfd directly.
14300 (syms_from_objfile): Ditto.
14301 (simple_overlay_update_1): Ditto.
14302 (simple_overlay_update): Ditto.
14303 (generic_load): Ditto.
14304 (overlay_unmapped_address): FIXME comment, bfd access methods.
14305 (sections_overlap): FIXME comment, bfd access methods.
14306 (pc_in_mapped_range): FIXME comment, bfd access methods.
14307 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14308 (section_is_mapped): FIXME comment, bfd access methods.
14309 (section_is_overlay): FIXME comment, bfd access methods.
14310
ba5f2f8a
MS
14311 * symfile.c (generic_load): Whitespace and long line cleanups.
14312 Remove duplicate variable, change several local variables to
14313 more appropriate data types.
14314 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14315
17df2af6
AC
143162002-01-12 Andrew Cagney <ac131313@redhat.com>
14317
14318 From Peter Schauer:
14319 * language.c (longest_local_hex_string_custom): Use phex_nz to
14320 convert NUM to a hex string.
14321
ec920329
EZ
143222002-01-12 Elena Zannoni <ezannoni@redhat.com>
14323
14324 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14325 the function.
538a76d6 14326 Update Copyright year.
ec920329 14327
3abd2e01
AC
143282002-01-12 Andrew Cagney <ac131313@redhat.com>
14329
14330 * language.c (longest_raw_hex_string): Delete unused function.
14331
b21b22e0
PS
143322002-01-11 Petr Sorfa <petrs@caldera.com>
14333
14334 * MAINTAINERS (write-after-approval): Add myself.
14335 * dwarf2read.c (read_tag_string_type): Handling of
14336 DW_AT_byte_size.
14337 (read_tag_string_type): FORTRAN fix to prevent propagation of
14338 first string size.
14339 (set_cu_language): Handling of DW_LANG_Fortran95
14340
747fe712
RE
143412002-01-11 Richard Earnshaw <rearnsha@arm.com>
14342
14343 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14344 GETPID(inferior_ptid).
14345 (store_inferior_registers): Likewise.
14346
f1bea926
JM
143472002-01-10 Jason Merrill <jason@redhat.com>
14348
14349 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14350 Fix DW_OP_minus.
14351
ae940673
AC
143522002-01-10 Andrew Cagney <ac131313@redhat.com>
14353
14354 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14355 and bfd/elf32-sh-nbsd.c.
14356
00546b04
MS
143572002-01-10 Michael Snyder <msnyder@redhat.com>
14358
352ed7b4
MS
14359 * NEWS: Mention --pid and corefile/proc-id behavior change.
14360
c18be923
MS
14361 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14362 * gcore.c: Include cli/cli-decode.h instead of command.h.
14363
00546b04
MS
14364 * main.c (captured_main): Add new command line option "--pid".
14365 If the second command line argument (following the symbol-file)
14366 begins with a digit, try to attach to it before trying to open
14367 it as a corefile.
14368 (print_gdb_help): Document the "--pid" argument.
14369
db60ec62
EZ
143702002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14371
14372 * completer.c (command_completer): New function.
14373
14374 * completer.h <command_completer>: Add prototype.
14375
14376 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14377 completer for the "help" command.
14378
39c22d1a
JM
143792002-01-09 Jason Merrill <jason@redhat.com>
14380
14381 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14382
c564377f
MS
143832002-01-09 Michael Snyder <msnyder@redhat.com>
14384
975aec09
MS
14385 * i386-linux-nat.c (fill_fpxregset): Make global.
14386 (store_fpxregset): Ditto.
14387
db4a10fa
MS
14388 * gregset.h (gdb_fpxregset_t): Define.
14389 (supply_fpxregset): Prototype.
14390 (fill_fpxregset): Prototype.
14391
c564377f
MS
14392 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14393
c3d45d70
RE
143942002-01-09 Richard Earnshaw <rearnsha@arm.com>
14395
14396 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14397 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14398 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14399
fcc87af1
AC
144002002-01-09 Andrew Cagney <ac131313@redhat.com>
14401
14402 * MAINTAINERS: Update target maintainer rules so that any
14403 Maintainer can approve a tested patch for a maintenance-only
14404 target.
14405
dd96c05b
RE
144062002-01-09 Richard Earnshaw <rearnsha@arm.com>
14407
d4297db9 14408 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14409
d4297db9 14410 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14411 IN_SIGTRAMP.
14412
145fdc6e
MS
144132002-01-08 Michael Snyder <msnyder@redhat.com>
14414
14415 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14416 real name of the executable, rather than the /proc name.
14417
be4d1333
MS
144182002-01-03 Michael Snyder <msnyder@redhat.com>
14419
14420 Implement a "generate-core-file" command in gdb, save target state.
14421 * gcore.c: New file. Implement new command 'generate-core-file'.
14422 Save a corefile image of the current state of the inferior.
14423 * linux-proc.c: Add linux-specific code for saving corefiles.
14424 * target.h (struct target_ops): Add new target vectors for saving
14425 corefiles; to_find_memory_regions and to_make_corefile_notes.
14426 (target_find_memory_regions): New macro.
14427 (target_make_corefile_notes): New macro.
14428 * target.c (update_current_target): Inherit new target methods.
14429 (dummy_find_memory_regions): New place-holder method.
14430 (dummy_make_corefile_notes): New place-holder method.
14431 (init_dummy_target): Initialize new dummy target vectors.
14432 * exec.c (exec_set_find_memory_regions): New function.
14433 Allow the exec_ops vector for memory regions to be taken over.
14434 (exec_make_note_section): New function, target vector method.
14435 * defs.h (exec_set_find_memory_regions): Export prototype.
14436 * procfs.c (proc_find_memory_regions): New function, corefile method.
14437 (procfs_make_note_section): New function, corefile method.
14438 (init_procfs_ops): Set new target vector pointers.
14439 (find_memory_regions_callback): New function.
14440 (procfs_do_thread_registers): New function.
14441 (procfs_corefile_thread_callback): New function.
14442 * sol-thread.c (sol_find_memory_regions): New function.
14443 (sol_make_note_section): New function.
14444 (init_sol_thread_ops): Initialize new target vectors.
14445 * inftarg.c (inftarg_set_find_memory_regions): New function.
14446 Allow to_find_memory_regions vector to be taken over.
14447 (inftarg_set_make_corefile_notes): New function.
14448 Allow to_make_corefile_notes vector to be taken over.
14449 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14450 interface layer if not target_has_execution (may be a corefile).
14451 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14452 * config/sparc/sun4sol2.mh: Ditto.
14453 * config/alpha/alpha-linux.mh: Ditto.
14454 * config/arm/linux.mh: Ditto.
14455 * config/i386/x86-64linux.mh: Ditto.
14456 * config/ia64/linux.mh: Ditto.
14457 * config/m68k/linux.mh: Ditto.
14458 * config/mips/linux.mh: Ditto.
14459 * config/powerpc/linux.mh: Ditto.
14460 * config/sparc/linux.mh: Ditto.
14461
c6b92abd
MS
144622002-01-07 Michael Snyder <msnyder@redhat.com>
14463
14464 * arm-linux-nat.c: Remove references to regcache.c internal data
14465 (registers[] and register_valid[]).
14466
4b09dc8c
MS
144672002-01-07 Michael Snyder <msnyder@redhat.com>
14468
abf22e64
AJ
14469 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14470 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14471 symbol file and shlibs.
14472 * Makefile.in: Add rule for linux-proc.o.
14473 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14474 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14475 * config/arm/linux.mh: Ditto.
14476 * config/i386/linux.mh: Ditto.
14477 * config/i386/x86-64linux.mh: Ditto.
14478 * config/ia64/linux.mh: Ditto.
14479 * config/m68k/linux.mh: Ditto.
14480 * config/mips/linux.mh: Ditto.
14481 * config/powerpc/linux.mh: Ditto.
14482 * config/sparc/linux.mh: Ditto.
14483
c25b74ac
PM
144842002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14485
14486 * win32-nat.c: Add i386-tdep.h dependency.
14487
94cd915f
MS
144882002-01-07 Michael Snyder <msnyder@redhat.com>
14489
c7cccb76
MS
14490 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14491 instead of bfd_get_arch_size. Don't bail out just because
14492 there's no exec_bfd.
abf22e64 14493
34c0bd93
MS
14494 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14495 * p-valprint.c (pascal_object_print_value): Ditto.
14496 * somread.c (som_symtab_read): Ditto.
14497 * symfile.c (simple_free_overlay_region_table): Ditto.
14498 * valops.c (value_assign): Ditto.
14499
21c1c920
MS
14500 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14501 use tilde_expand and strerror for opening save-tracepoints file.
14502
5bbd998e
MS
14503 * thread-db.c (thread_db_new_objfile): Indendation fix.
14504
94cd915f
MS
14505 * infptrace.c (GDB_MAX_ALLOCA): New define.
14506 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14507 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14508 can be overridden with whatever value is appropriate to the host).
14509 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14510 alloca to allocate potentially large buffer.
14511 * rs6000-nat.c (child_xfer_memory): Ditto.
14512 * symm-nat.c (child_xfer_memory): Ditto.
14513 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14514
494e8a93
JSC
145152002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14516
14517 From Nick Clifton <nickc@redhat.com>
14518 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14519
d0e1d48e
MS
145202002-01-07 Michael Snyder <msnyder@redhat.com>
14521
abf22e64 14522 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14523 Don't use exec_bfd if it's NULL.
14524
290b2c7a
MK
145252002-01-06 Mark Kettenis <kettenis@gnu.org>
14526
abf22e64 14527 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14528
aef21287
AC
145292002-01-06 Andrew Cagney <ac131313@redhat.com>
14530
14531 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14532 * gnu-nat.c: Ditto.
14533
30efa627
AC
145342002-01-06 Andrew Cagney <ac131313@redhat.com>
14535
14536 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14537 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14538 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14539 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14540 z8k-coff have not been multi-arched. Update z8k-coff build
14541 status.
14542
9b4ff276
AC
145432002-01-06 Andrew Cagney <ac131313@redhat.com>
14544
14545 * MAINTAINERS: Mark a29k target as obsolete.
14546 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14547 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14548 comments.
14549 * NEWS: Note that a29k targets are obsolete.
14550 * a29k-tdep.c: Mark as obsolete.
14551 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14552 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14553 a29k-*-vxworks* targets as obsolete.
14554 * remote-adapt.c: Obsolete.
14555 * remote-eb.c: Obsolete.
14556 * remote-mm.c: Obsolete.
14557 * remote-udi.c: Obsolete.
14558 * config/a29k/a29k-udi.mt: Obsolete.
14559 * config/a29k/a29k.mt: Obsolete.
14560 * config/a29k/tm-a29k.h: Obsolete.
14561 * config/a29k/tm-vx29k.h: Obsolete.
14562 * config/a29k/vx29k.mt: Obsolete.
14563
a9011d31
AC
145642002-01-05 Andrew Cagney <ac131313@redhat.com>
14565
14566 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14567 with BFD_ENDIAN_BIG.
14568
9299404e
AC
145692002-01-05 Andrew Cagney <ac131313@redhat.com>
14570
14571 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14572 * configure, config.in: Re-generate.
14573 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14574 * defs.h: Do not include <endian.h>.
14575
7e89e357
JT
145762002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14577
14578 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14579 * config.in: Regenerate.
14580 * configure.in: Update copyright years.
14581 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14582 * configure: Regenerate.
14583 * i386bsd-nat.c: Update copyright years.
14584 (fill_gregset): Use regcache_collect.
14585 (fetch_inferior_registers): Only fetch integer registers
14586 if requested to do so. Add support for XMM registers
14587 using PT_GETXMMREGS.
14588 (store_inferior_registers): Only store integer registers
14589 if requested to do so. Add support for XMM registers
14590 using PT_SETXMMREGS.
14591 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14592 (store_inferior_registers): Remove.
14593 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14594 (fetch_elfcore_registers): New function.
14595 (i386nbsd_elfcore_fns): New.
14596 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14597 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14598 i386bsd-nat.o.
14599 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14600 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14601 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14602 * config/i386/tm-nbsd.h: Update copyright years.
14603 (HAVE_SSE_REGS): Define.
14604 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14605 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14606 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14607 (SIGCONTEXT_PC_OFFSET): Remove.
14608 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14609
a752853e
AC
146102002-01-05 Andrew Cagney <ac131313@redhat.com>
14611
14612 * configure.tgt: Remove powerpc-*-macos* target.
14613 * config/m68k/xm-mpw.h: Delete file.
14614 * config/xm-mpw.h: Delete file.
14615 * ser-mac.c: Delete file.
14616 * mpw-make.sed: Delete file.
14617 * mpw-config.in: Delete file.
14618 * mac-xdep.c: Delete file.
14619 * mac-gdb.r: Delete file.
14620 * mac-defs.h: Delete file.
14621 * mac-nat.c: Delete file.
14622 * config/powerpc/macos.mh: Delete file.
14623 * config/powerpc/macos.mt: Delete file.
14624 * config/powerpc/nm-macos.h: Delete file.
14625 * config/powerpc/tm-macos.h: Delete file.
14626 * source.c (openp, open_source_file): Remove obsolete code.
14627 * top.c (gdb_readline): Ditto.
14628 * utils.c (query): Ditto.
14629 * event-top.c (display_gdb_prompt): Ditto.
14630 * Makefile.in (ser-mac.o): Delete obsolete target.
14631 * NEWS: Update.
14632
d7449b42
AC
146332002-01-04 Andrew Cagney <ac131313@redhat.com>
14634
14635 * defs.h (BIG_ENDIAN): Delete macro definition.
14636 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14637 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14638 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14639 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14640 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14641 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14642 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14643 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14644 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14645 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14646 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14647 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14648 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14649 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14650 * gdbarch.c: Re-generate.
14651
356374e8
DJ
146522002-01-04 Daniel Jacobowitz <drow@mvista.com>
14653
14654 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14655 for core files.
14656
a2b8f8f8
JT
146572002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14658
14659 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14660
12466af9
AC
146612002-01-04 Andrew Cagney <ac131313@redhat.com>
14662
14663 * value.h (value_ptr): Delete typedef.
14664
3549ab40
JT
146652002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14666
14667 * i386nbsd-nat.c: Update copyright years.
14668 Include i386-tdep.h.
14669
fedbd091
EZ
146702002-01-04 Elena Zannoni <ezannoni@redhat.com>
14671
14672 * stabsread.c: Update copyright years.
14673
14674 From Debashis Mahata <debashis.mahata@wipro.com>:
14675 (read_struct_fields): Deal with Sun C compiler erroneous stab
14676 output for structs and unions.
fec8b34f 14677 Fix PR gdb/269.
fedbd091 14678
eb43544b
DJ
146792002-01-04 Daniel Jacobowitz <drow@mvista.com>
14680
14681 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14682 prototype.
14683
1514d34e
DJ
146842002-01-04 Daniel Jacobowitz <drow@mvista.com>
14685
14686 * cp-abi.c: Fix whitespace.
14687 (baseclass_offset): New wrapper function.
14688 * cp-abi.h (baseclass_offset): Add prototype.
14689 (struct cp_abi_ops): Add baseclass_offset pointer.
14690
14691 * valops.c (vb_match): Move to...
14692 * gnu-v2-abi.c (vb_match): here.
14693 * valops.c (baseclass_offset): Move to...
14694 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14695
14696 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14697
14698 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14699 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14700 * hpacc-abi.c (init_hpacc_ops): Likewise.
14701
7f8c9282
DJ
147022002-01-04 Daniel Jacobowitz <drow@mvista.com>
14703
14704 * valops.c (find_overload_match): Accept obj as a
14705 reference parameter. Update it before returning.
14706 * value.h (find_overload_match): Update prototype.
14707 * eval.c (evaluate_subexp_standard): Pass object to
14708 find_overload_match by reference.
14709
f23631e4
AC
147102002-01-03 Andrew Cagney <ac131313@redhat.com>
14711
14712 * valarith.c: Replace value_ptr with struct value pointer. Remove
14713 register attribute from value declarations.
14714 * valops.c: Ditto.
14715 * value.h: Ditto.
14716 * scm-lang.c (scm_lookup_name): Ditto.
14717
79e10fab 147182002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14719
79e10fab
AC
14720 Abstract the functionality of iterating over mapped memory
14721 regions into a general purpose iterator function.
abf22e64 14722 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14723 iterator for memory sections.
14724 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14725 (solib_mappings_callback): New function, callback for above.
14726 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14727 (info_mappings_callback): New function, callback for above.
14728
14729 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14730
c5ad026a
MK
147312002-01-01 Mark Kettenis <kettenis@gnu.org>
14732
d2a7c97a
MK
14733 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14734 * i386-tdep.c: Include "elf-bfd.h".
14735 (process_note_abi_tag_sections): New function.
14736 (i386_gdbarch_init): Add code to recognize various OS/ABI
14737 combinations.
14738
c5ad026a
MK
14739 * maint.c (_initialize_maint_cmds): Add missing \ in
14740 string-literal.
14741
a1a5b71e 14742For older changes see ChangeLog-2001
c906108c
SS
14743\f
14744Local Variables:
14745mode: change-log
14746left-margin: 8
14747fill-column: 74
14748version-control: never
14749End:
This page took 1.011246 seconds and 4 git commands to generate.