daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
625602f2
RE
12002-12-17 Richard Earnshaw <rearnsha@arm.com>
2
3 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
4 All uses changed
5 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
6
38d49aff
DC
72002-12-17 David Carlton <carlton@math.stanford.edu>
8
9 * symtab.c (lookup_partial_symbol): Don't search past the end of
10 the partial symbols.
11
30f7db39
AC
122002-12-17 Andrew Cagney <ac131313@redhat.com>
13
14 * stack.c (frame_info): Use get_frame_saved_regs.
15 * breakpoint.c (until_break_command): Use get_frame_pc.
16
23136709
KB
172002-12-16 Kevin Buettner <kevinb@redhat.com>
18
19 * buildsym.c (block_end_complaint, anon_block_end_complaint)
20 (innerblock_complaint, innerblock_anon_complaint)
21 (blockvector_complaint): Delete deprecated complaint structs.
22 (finish_block, make_blockvector, end_symtab): Replace calls
23 to complain() with calls to complaint().
24 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
25 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
26 (unexpected_type_complaint, bad_sclass_complaint)
27 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
28 Delete deprecated complaint structs.
29 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
30 Replace calls to complain() with calls to complaint().
31 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
32 (unknown_symtype_complaint, unknown_symchar_complaint)
33 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
34 (lbrac_mismatch_complaint, repeated_header_complaint)
35 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
36 Delete deprecated complaint structs.
37 (unknown_symtype_complaint, lbrac_mismatch_complaint)
38 (repeated_header_complaint)
39 (function_outside_compiliation_unit_complaint): New functions.
40 (add_old_header_file, find_corresponding_bincl_psymtab)
41 (set_namestring, find_stab_function_addr, read_dbx_symtab)
42 (process_one_symbol): Replace calls to complain() with, possibly
43 indirect, calls to complaint().
44 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
45 (unknown_attribute_form, unknown_attribute_length)
46 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
47 (const_ignored, botched_modified_type, op_deref2, op_deref4)
48 (basereg_not_handled, dup_user_type_allocation)
49 (dup_user_type_definition, missing_tag, bad_array_element_type)
50 (subscript_data_items, unhandled_array_subscript_format)
51 (unknown_array_subscript_format, not_row_major)
52 (missing_at_name): Delete deprecated complaint structs.
53 (bad_die_ref_complaint, unknown_attribute_form_complaint)
54 (dup_user_type_definition_complaint)
55 (bad_array_element_type_complaint): New functions.
56 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
57 (decode_subscript_data_item, dwarf_read_array_type)
58 (read_tag_string_type, read_subroutine_type, read_func_scope)
59 (locval, scan_partial_symbols, decode_modified_type)
60 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
61 (attribute_size): Replace calls to complain() with, possibly
62 indirect, calls to complaint().
63 * elfread.c (section_info_complaint, section_info_dup_complaint)
64 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
65 Delete deprecated complaint structs.
66 (elf_symtab_read, elfstab_offset_sections): Replace calls to
67 complain() with calls to complaint().
68 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
69 struct.
70 (stub_noname_complaint): New function.
71 (check_typedef, add_mangled_type): Replace calls to complain()
72 with calls to complaint().
73 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
74 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
75 (hpread_unhandled_type_complaint, hpread_struct_complaint)
76 (hpread_array_complaint, hpread_type_lookup_complaint)
77 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
78 (hpread_unhandled_common_complaint)
79 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
80 struct definitions and declarations.
81 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
82 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
83 Replace calls to complain() with, possibly indirect, calls to
84 complaint().
85 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
86 Likewise.
87 * mdebugread.c (bad_file_number_complaint, index_complaint)
88 (aux_index_complaint, block_index_complaint)
89 (unknown_ext_complaint, unknown_sym_complaint)
90 (unknown_st_complaint, block_overflow_complaint)
91 (basic_type_complaint, unknown_type_qual_complaint)
92 (array_index_type_complaint, bad_tag_guess_complaint)
93 (block_member_complaint, stEnd_complaint)
94 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
95 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
96 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
97 (bad_continued_complaint, bad_rfd_entry_complaint)
98 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
99 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
100 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
101 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
102 complaint structs.
103 (index_complaint, unknown_ext_complaint, basic_type_complaint)
104 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
105 (unexpected_type_code_complaint)
106 (function_outside_compilation_unit_complaint): New functions.
107 (parse_symbol, parse_type, upgrade_type, parse_procedure)
108 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
109 Replace calls to complain() with, possibly indirect calls to
110 complaint().
111 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
112 Delete deprecated complaint structs.
113 (lookup__objc_class, lookup_child_selector): Replace complain()
114 with complaint().
115 * remote-vx.c (cant_contact_target): Delete deprecated complaint
116 struct.
117 (vx_lookup_symbol): Replace complain() with complaint().
118 * stabsread.c (invalid_cpp_abbrev_complaint)
119 (invalid_cpp_type_complaint, member_fn_complaint)
120 (const_vol_complaint, error_type_complaint)
121 (invalid_member_complaint, range_type_base_complaint)
122 (reg_value_complaint, vtbl_notfound_complaint)
123 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
124 (unresolved_sym_chain_complaint, stabs_general_complaint)
125 (lrs_general_complaint, multiply_defined_struct): Delete
126 deprecated complaint structs.
127 (invalid_cpp_abbrev_complaint, ref_value_complaint)
128 (stabs_general_complaint, lrs_general_complaint)
129 (msg_unknown_complaint): New functions.
130 (dbx_lookup_type, read_cfront_baseclasses)
131 (read_cfront_member_functions, resolve_symbol_reference)
132 (define_symbol, resolve_live_range, add_live_range, read_type)
133 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
134 (read_one_struct_field, read_baseclasses, read_tilde_fields)
135 (read_cfront_static_fields, attach_fields_to_type)
136 (complain_about_struct_wipeout, read_range_type)
137 (common_block_start, common_block_end, cleanup_undefined_types)
138 (scan_file_globals): Replace complain() with complaint().
139 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
140 Delete deprecated complaint struct declarations.
141 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
142 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
143 (bf_not_found_complaint, ef_complaint, eb_complaint)
144 (function_outside_compilation_unit_complaint): New functions.
145 (record_include_begin, record_include_end, enter_line_range)
146 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
147 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
148 complain() with complaint().
149
1a14e234
AC
1502002-12-16 Andrew Cagney <ac131313@redhat.com>
151
152 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
153 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
154 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
155 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
156 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
157 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
158 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
159 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
160 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
161 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
162 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
163 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
164 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
165 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
166 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
167 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
168 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
169 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
170 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
171 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
172 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
173 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
174 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
175 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
176 * config/m88k/xm-dgux.h: Delete.
177 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
178 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
179 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
180 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
181 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
182 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
183 * ch-valprint.c: Delete.
184
04e68871
DJ
1852002-12-15 Daniel Jacobowitz <drow@mvista.com>
186
187 * infrun.c (handle_inferior_event): Rearrange code to resume if
188 no catchpoint triggers for an event.
189
deb3b17b
DJ
1902002-12-15 Daniel Jacobowitz <drow@mvista.com>
191
192 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
193 and TARGET_WAITKIND_VFORKED cases.
194
675bf4cb
DJ
1952002-12-15 Daniel Jacobowitz <drow@mvista.com>
196
197 * infrun.c (handle_inferior_event): Assume that catchpoints
198 are not affected by DECR_PC_AFTER_BREAK.
199
81e56179
DJ
2002002-12-15 Daniel Jacobowitz <drow@mvista.com>
201
202 * target.c (update_current_target): Don't inherit DONT_USE.
203 * target.h (struct target_ops): Remove DONT_USE.
204 (target_next): Remove macro.
205
a3edc55b
MK
2062002-12-15 Mark Kettenis <kettenis@gnu.org>
207
208 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
209
b508a996
RE
2102002-12-14 Richard Earnshaw <rearnsha@arm.com>
211
212 * arm-tdep.c (convert_from_extended): New argument to hold the
213 type of floating point result we want to convert to. Make input
214 argument const. Fix all callers.
215 (convert_to_extended): Similarly.
216 (arm_extract_return_value): Now takes a regcache argument. Change
217 code to use regcache accessor functions. Correctly extract
218 smaller-than-word results on big-endian machines.
219 (arm_store_return_value): Now takes a regcache argument. Change
220 code to use regcache accessor functions. Correctly zero/sign extend
221 smaller than word results before storing into r0.
222 (arm_gdbarch_init): Register new-style extract_return_value and
223 store_return_value functions.
224
3197744f
MS
2252002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
226
227 * thread-db.c (thread_from_lwp): Uniquify error msg.
228 (lwp_from_thread): Ditto.
229 (check_event): Ditto.
230 (find_new_threads_callback): Ditto.
231 (thread_db_pid_to_str): Ditto.
232
6baff1d2
AC
2332002-12-13 Andrew Cagney <ac131313@redhat.com>
234
235 * frame.h (get_frame_saved_regs): Declare.
236 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
237 pointer.
238 * frame.c (get_frame_saved_regs): New function.
239 (frame_saved_regs_zalloc): Return the allocated saved_regs.
240
b87efeee
AC
2412002-12-13 Andrew Cagney <ac131313@redhat.com>
242
243 * frame.c (deprecated_update_current_frame_pc_hack): New
244 function.
245 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
246 * infrun.c (normal_stop): Use said function instead of directly
247 modifying the frame's PC.
248
3de2dc4f
AO
2492002-12-13 Alexandre Oliva <aoliva@redhat.com>
250
251 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
252
fe29b929
KB
2532002-12-13 Kevin Buettner <kevinb@redhat.com>
254
255 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
256 config/mips/tm-irix6.h (NUM_REGS): Delete.
257 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
258 (temp_saved_regs): Declare as a pointer rather than an array.
259 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
260 that ``temp_saved_regs'' has storage allocated to it and that
261 it's the correct size.
262
c04e0a08
JJ
2632002-12-13 Jeff Johnston <jjohnstn@redhat.com>
264
265 * defs.h (init_last_source_visited): New prototype.
266 (add_path): Ditto.
267 * source.c (add_path): New function that adds to a specified path.
268 (mod_path): Change to call add_path.
269 (init_last_source_visited): New function to allow interfaces to
270 initialize static variable: last_source_visited. Part of fix
271 for PR gdb/741.
272 * Makefile.in: Add support for mi/mi-cmd-env.c.
273
c689142b
AC
2742002-12-13 Andrew Cagney <ac131313@redhat.com>
275
276 * frame.h (frame_id_unwind): Declare.
277 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
278 id_unwind_cache.
279 (frame_id_unwind_ftype): Declare.
280 * frame.c (frame_id_unwind): New function.
281 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
282 (create_new_frame, get_prev_frame): Pass id_unwind to
283 set_unwind_by_pc.
284 (frame_saved_regs_id_unwind): New function.
285 (frame_saved_regs_id_unwind): New function.
286 * dummy-frame.c (dummy_frame_id_unwind): New function.
287 (struct dummy_frame): Add field id.
288 (generic_push_dummy_frame): Initialize `id'.
289 * dummy-frame.h (dummy_frame_id_unwind): Declare.
290
18ea5ba4
AC
2912002-12-13 Andrew Cagney <ac131313@redhat.com>
292
293 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
294 pass that to set_momentary_breakpoint. Move comments to where they
295 belong.
296 * frame.h (set_current_frame): Delete declaration.
297 * frame.c (set_current_frame): Delete function.
298
2c517d0e
AC
2992002-12-13 Andrew Cagney <ac131313@redhat.com>
300
301 * frame.c (frame_extra_info_zalloc): New function.
302 * frame.h (frame_extra_info_zalloc): Declare.
303
516b1f28
JB
3042002-12-13 Joel Brobecker <brobecker@gnat.com>
305
306 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
307 in the previous prototype change to set_momentary_breakpoint.
308
fbb265fc
DJ
3092002-12-12 Daniel Jacobowitz <drow@mvista.com>
310
311 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
312 and saw_child_exec.
313 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
314 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
315 (stop_stepping): Remove outdated check for child vfork events.
316
4fd7f624
AC
3172002-12-12 Andrew Cagney <ac131313@redhat.com>
318
319 * GDB 5.3 released from gdb_5_3-branch.
320
4c9ba7e0
DJ
3212002-12-11 Daniel Jacobowitz <drow@mvista.com>
322
323 * corelow.c (init_core_ops): Delete references to to_require_attach
324 and to_require_detach.
325 * exec.c (init_exec_ops): Likewise.
326 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
327 hppa_require_detach directly.
328 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
329 * inftarg.c (child_detach): Remove.
330 (child_detach_from_process): Rename to child_detach, remove
331 after_fork argument.
332 (child_attach): Remove.
333 (child_attach_to_process): Rename to child_attach, remove after_fork
334 argument.
335 (init_child_ops): Delete references to to_require_attach
336 and to_require_detach.
337 * infttrace.c (hppa_require_attach): Update comment.
338 * target.c (cleanup_target, update_current_target)
339 (init_dummy_target, setup_target_debug): Delete references to
340 to_require_attach and to_require_detach.
341 (find_default_require_detach, find_default_require_attach)
342 (debug_to_require_attach, debug_to_require_detach): Remove
343 functions.
344 * target.h (struct target_ops): Remove to_require_attach
345 and to_require_detach.
346 (target_require_attach, target_require_detach): Delete macros.
347 (find_default_require_detach, find_default_require_attach): Delete
348 prototypes.
349 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
350
0394eb2a
AC
3512002-12-11 Andrew Cagney <ac131313@redhat.com>
352
353 * frame.c (get_frame_extra_info): New function.
354 * frame.h (get_frame_extra_info): Declare.
355
818dd999
AC
3562002-12-11 Andrew Cagney <ac131313@redhat.com>
357
358 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
359 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
360 with `struct frame_id'.
361 (set_longjmp_resume_breakpoint): Ditto.
362 * infrun.c (handle_inferior_event): Update.
363 * breakpoint.c (watch_command_1, until_break_command): Update.
364 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
365 (handle_inferior_event, step_over_function): Update.
366 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
367 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
368 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
369 * infcmd.c (finish_command, run_stack_dummy): Update.
370
4d3c2250
KB
3712002-12-11 Kevin Buettner <kevinb@redhat.com>
372
373 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
374 (dwarf2_non_const_array_bound_ignored)
375 (dwarf2_missing_line_number_section)
376 (dwarf2_statement_list_fits_in_line_number_section)
377 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
378 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
379 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
380 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
381 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
382 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
383 (dwarf2_missing_member_fn_type_complaint)
384 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
385 (dwarf2_const_value_length_mismatch)
386 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
387 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
388 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
389 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
390 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
391 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
392 complaints using deprecated struct..
393 (dwarf2_non_const_array_bound_ignored_complaint)
394 (dwarf2_complex_location_expr_complaint)
395 (dwarf2_unsupported_at_frame_base_complaint)
396 (dwarf2_const_value_length_mismatch_complaint)
397 (dwarf2_macros_too_long_complaint)
398 (dwarf2_macro_malformed_definition_complaint)
399 (dwarf2_invalid_attrib_class_complaint): New functions.
400 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
401 (read_structure_scope, read_array_type, read_common_block)
402 (read_tag_pointer_type, read_base_type, read_partial_die)
403 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
404 (new_symbol, dwarf2_const_value, read_type_die)
405 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
406 (parse_macro_definition, dwarf_decode_macros): Replace calls to
407 complain() with, possibly indirect, calls to complaint().
408
95486978
AC
4092002-12-11 Andrew Cagney <cagney@redhat.com>
410
411 * frame.c (deprecated_get_frame_saved_regs): Rename
412 get_frame_saved_regs.
413 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
414 * sparc-tdep.c: Update.
415 * hppa-tdep.c: Update.
416 * h8500-tdep.c: Update.
417
321432c0
KB
4182002-12-11 Kevin Buettner <kevinb@redhat.com>
419
420 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
421 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
422 ``char *'' for return and parameter types.
423 * gdbarch.h, gdbarch.c: Regenerate.
424 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
425 return type from ``char *'' to ``const char *''.
426 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
427 const.
428
5a4d6ff4
MK
4292002-12-11 Mark Kettenis <kettenis@gnu.org>
430
431 * i386-tdep.c: Include "dummy-frame.h".
432 (i386_frame_chain, i386_frame_saved_pc): Replace
433 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
434 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
435
a5afb99f
AC
4362002-12-10 Andrew Cagney <cagney@redhat.com>
437
438 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
439 Change to a function with predicate.
440 * gdbarch.h, gdbarch.c: Re-generate.
441 * frame.c (get_prev_frame): Update. Test
442 DEPRECATED_INIT_FRAME_PC_P.
443 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
444 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
445 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
446 * alpha-tdep.c (alpha_gdbarch_init): Update.
447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
448 * mips-tdep.c (mips_gdbarch_init): Update.
449 * i386-interix-tdep.c (i386_interix_init_abi): Update.
450 * arm-tdep.c: Update comments.
451 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
452 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
453 * frv-tdep.c (frv_gdbarch_init): Ditto.
454 * x86-64-tdep.c (x86_64_init_abi): Ditto.
455 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
456 * s390-tdep.c (s390_gdbarch_init): Ditto.
457 * v850-tdep.c (v850_gdbarch_init): Ditto.
458 * vax-tdep.c (vax_gdbarch_init): Ditto.
459 * sh-tdep.c (sh_gdbarch_init): Ditto.
460 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
462 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
464 * i386-tdep.c (i386_gdbarch_init): Ditto.
465 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
466 * cris-tdep.c (cris_gdbarch_init): Ditto.
467 * avr-tdep.c (avr_gdbarch_init): Ditto.
468 * arm-tdep.c (arm_gdbarch_init): Ditto.
469 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
470 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
471
6604731b
DJ
4722002-12-10 Daniel Jacobowitz <drow@mvista.com>
473
474 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
475 CHILD_FOLLOW_FORK.
476 * hppah-nat.c (saved_vfork_pid): Add.
477 (child_post_follow_vfork): Remove.
478 (child_follow_fork): New function.
479 (child_wait): Call detach_breakpoints after receiving the child vfork.
480 Call child_resume directly instead of going through resume ().
481 Make sure we have the exec before reporting the vfork.
482 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
483 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
484 (follow_fork): New function. Call target_follow_fork.
485 (follow_inferior_reset_breakpoints): New function broken out from
486 old follow_inferior_fork.
487 (resume): Remove hack to follow exec after vfork.
488 * inftarg.c (child_post_follow_vfork): Remove.
489 (child_follow_fork): New function.
490 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
491 * target.c (cleanup_target): Replace to_post_follow_vfork with
492 to_follow_fork.
493 (update_current_target): Likewise.
494 (setup_target_debug): Likewise.
495 (debug_to_post_follow_vfork): Remove.
496 (debug_to_follow_fork): New function.
497 * target.h (struct target_ops): Replace to_post_folow_vfork with
498 to_follow_fork.
499 (child_post_follow_vfork): Remove prototype.
500 (child_follow_fork): Add prototype.
501 (target_post_follow_vfork): Remove macro.
502 (target_follow_fork): Add macro.
503
7d2830a3
DJ
5042002-12-10 Daniel Jacobowitz <drow@mvista.com>
505
506 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
507 (child_post_follow_vfork): Cancel pending exec event if we follow
508 the parent.
509 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
510 events have been processed. Return a fake TARGET_WAITKIND_EXECD
511 event at the following wait call if necessary.
512 * infrun.c (follow_vfork): Don't follow_exec here.
513 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
514 case about HP/UX 10.20. Remove code pushed down to
515 hppah-nat.c:child_wait.
516 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
517 vfork_in_flight is set.
518
5192002-12-10 Daniel Jacobowitz <drow@mvista.com>
8e7d2c16
DJ
520
521 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
522 for the parent's fork event.
523 * infrun.c (handle_inferior_event): Only expect one fork event.
524 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
525 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
526
50631d4f
AC
5272002-12-10 Andrew Cagney <ac131313@redhat.com>
528
bc124bd3
AC
529 * PROBLEMS: Delete reference to PR gdb/725.
530
50631d4f
AC
531 * MAINTAINERS (gdb.c++): Add David Carlton.
532
808013d1
DC
5332002-12-09 David Carlton <carlton@math.stanford.edu>
534
535 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
536 * cli/cli-cmds.c: Ditto.
537
31deffe5
AC
5382002-12-09 Andrew Cagney <cagney@redhat.com>
539
6cbda714
AC
540 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
541 function address in <>.
31deffe5
AC
542 * gdbarch.c: Re-generate.
543
2692ddb3
DC
5442002-12-09 David Carlton <carlton@math.stanford.edu>
545
546 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
547
f3c39e76
DC
5482002-12-09 David Carlton <carlton@math.stanford.edu>
549
550 * linespec.c (symtab_from_filename): New function.
551 (decode_line_1): Move code into symtab_from_filename.
552
1b84163e
KB
5532002-12-09 Kevin Buettner <kevinb@redhat.com>
554
555 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
556
bdd78e62
AC
5572002-12-07 Andrew Cagney <ac131313@redhat.com>
558
559 * f-valprint.c (info_common_command): Use get_frame_pc.
560 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
561 * ax-gdb.c (agent_command): Ditto.
562 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
563 (rs6000_pop_frame): Ditto.
564 (rs6000_frameless_function_invocation): Ditto.
565 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
566 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
567 * macroscope.c (default_macro_scope): Ditto.
568 * stack.c (print_frame_info_base): Ditto.
569 (print_frame, frame_info, print_frame_label_vars): Ditto.
570 (return_command, func_command, get_frame_language): Ditto.
571 * infcmd.c (finish_command): Ditto.
572 * dummy-frame.c (cached_find_dummy_frame): Ditto.
573 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
574 (break_at_finish_at_depth_command_1): Ditto.
575 (break_at_finish_command_1): Ditto.
576 (until_break_command, get_catch_sals): Ditto.
577 * blockframe.c (func_frame_chain_valid): Ditto.
578 (frameless_look_for_prologue): Ditto.
579 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
580
408400e7
AC
5812002-12-08 Andrew Cagney <ac131313@redhat.com>
582
583 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
584 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
585
97f46953
AC
5862002-12-08 Andrew Cagney <ac131313@redhat.com>
587
588 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
589 to pure functions.
590 * gdbarch.h, gdbarch.c: Re-generate.
591 * frame.c (get_prev_frame): Explictly assign prev's pc with value
592 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
593
594 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
595 declaration to a function returning a CORE_ADDR.
596 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
597 * arch-utils.c (init_frame_pc_noop): Return the PC value.
598 (init_frame_pc_default): Ditto.
599 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
600 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
601 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
602 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
603 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
604 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
605
606 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
607 to init_frame_pc_noop.
608 (i386_interix_init_frame_pc): Delete function.
609 * z8k-tdep.c (init_frame_pc): Delete function.
610 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
611 (INIT_FRAME_PC_FIRST): Ditto.
612 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
613 (INIT_FRAME_PC_FIRST): Ditto.
614 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
615 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
616 init_frame_pc_noop.
617 (INIT_FRAME_PC_FIRST): Convert to an expression.
618 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
619
8b36eed8
AC
6202002-12-08 Andrew Cagney <ac131313@redhat.com>
621
622 * blockframe.c: Use get_frame_base instead of directly accessing
623 the `struct frame_info' member frame.
624 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
625 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
626
aeeccc89
EZ
6272002-12-08 Elena Zannoni <ezannoni@redhat.com>
628
629 * Makefile.in (readline_h): Define.
630 (completer.o): Depend on readline_h.
631 (corelow.o): Ditto.
632 (event-top.o): Ditto.
633 (exec.o): Ditto.
634 (solib.o): Ditto.
635 (source.o): Ditto.
636 (symfile.o): Ditto.
637 (symmisc.o): Ditto.
638 (top.o): Ditto.
639 (tracepoint.o): Ditto.
640 (utils.o): Ditto.
641 (cli-dump.o): Ditto.
642 (tui-hooks.o): Ditto.
643 (tuiWin.o): Ditto.
644
38017ce8
EZ
6452002-12-08 Elena Zannoni <ezannoni@redhat.com>
646
647 More cleanup from import of readline 4.3.
648 * completer.h (complete_line, readline_line_completion_function):
649 Update prototypes.
650 (line_completion_function): Removed, not used outside of completer.c.
651 * completer.c (readline_line_completion_function,
652 complete_function, line_completion_function): Use const for first
653 parameter.
654 (line_completion_function): Make static.
655 (filename_completer): filename_completion_function is now called
656 rl_filename_completion_function
657 * corelow.c: Include <readline/readline.h>.
658 * exec.c: Ditto.
659 * solib.c: Ditto.
660 * source.c: Ditto.
661 * symfile.c: Ditto.
662 * symmisc.c: Ditto.
663 * top.c (init_main): No need to coerce
664 readline_line_completion_function anymore.
665 * cli/cli-dump.c: Include <readline/readline.h>.
666
75e3c1f9
AC
6672002-12-08 Andrew Cagney <ac131313@redhat.com>
668
669 * stack.c (frame_info): Use get_prev_frame.
670 * blockframe.c (frame_address_in_block): Ditto.
671 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
672 (rs6000_frameless_function_invocation): Ditto.
673 (rs6000_frame_saved_pc): Ditto.
674 (rs6000_frame_chain): Ditto.
675 * arch-utils.c (init_frame_pc_default): Ditto.
676
0d2b8049
AC
6772002-12-08 Andrew Cagney <ac131313@redhat.com>
678
679 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
680 Delete redundant definition.
681
9255ee31
EZ
6822002-12-08 Elena Zannoni <ezannoni@redhat.com>
683
684 Import of readline 4.3:
685 * cli/cli-cmds.c: Include readline/tilde.h.
686 * cli/cli-setshow.c: Ditto.
687 * defs.h: Don't declare tilde_expand anymore, since readline
688 exports it.
689
3442dad6 6902002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
691
692 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
693 -Werror on this file.
694
52f87c51
AC
6952002-12-07 Andrew Cagney <ac131313@redhat.com>
696
697 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
698 the format name.
699 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
700 * gdbarch.c: Regenerate.
701
2ca6c561
AC
7022002-12-06 Andrew Cagney <ac131313@redhat.com>
703
704 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
705 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
706 provide a default value.
707 * gdbarch.h, gdbarch.c: Regenerate.
708 * frame.c (get_prev_frame): Update. Check
709 DEPRECATED_INIT_FRAME_PC_FIRST_P.
710 * s390-tdep.c (s390_gdbarch_init): Update.
711 * mips-tdep.c (mips_gdbarch_init): Update.
712 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
713 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
714 * alpha-tdep.c (alpha_gdbarch_init): Update.
715
e162d11b
EZ
7162002-12-06 Elena Zannoni <ezannoni@redhat.com>
717
718 * ia64-linux-nat.c: Include gdb_string.h.
719 * alpha-nat.c: Ditto.
2b298b5d
EZ
720 * ppc-linux-nat.c: Ditto.
721 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
722 Update dependencies.
e162d11b 723
aa0cd9c1
AC
7242002-12-05 Andrew Cagney <ac131313@redhat.com>
725
726 * gdbthread.h: Include "frame.h".
727 (struct thread_info): Replace step_frame_address with
728 step_frame_id.
729 * inferior.h: Include "frame.h".
730 (step_frame_id): Replace external variable step_frame_address.
731 * gdbthread.h (save_infrun_state): Replace step_frame_address
732 parameter with step_frame_id parameter.
733 (load_infrun_state): Ditto.
734 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
735 * infcmd.c (step_frame_id, step_1, step_once): Update.
736 * thread.c (load_infrun_state, save_infrun_state): Update.
737 * infrun.c (clear_proceed_status, save_inferior_status): Update.
738 (handle_inferior_event, step_over_function): Update.
739 (normal_stop, context_switch, restore_inferior_status): Update.
740 (struct inferior_status): Replace step_frame_address with
741 step_frame_id.
742
a9a9bd0f
DC
7432002-12-05 David Carlton <carlton@math.stanford.edu>
744
745 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
746 DW_TAG_member as well as a declaration as being a C++ static data
747 member.
748 (read_structure_scope): Combine tests for DW_TAG_member and
749 DW_TAG_variable.
750
614b3b14
DC
7512002-12-05 David Carlton <carlton@math.stanford.edu>
752
753 * linespec.c (decode_compound): New function.
754 (decode_line_1): Move code into decode_compound.
755
e4051eeb
DC
7562002-12-05 David Carlton <carlton@math.stanford.edu>
757
758 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
759 argument.
760 (lookup_symbol_aux): Do the 'field_of_this' check before checking
761 the static block. See PR gdb/804.
762
f61e8913
DC
7632002-12-05 David Carlton <carlton@math.stanford.edu>
764
765 * symtab.c (lookup_symbol_aux_block): New function.
766 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
767
1e9f55d0
AC
7682002-12-05 Andrew Cagney <ac131313@redhat.com>
769
770 * gdbarch.sh: Dump the predicate function and macro values.
771 (read): Print error on standard error.
772 * gdbarch.c: Regenerate.
773
d1973055
KB
7742002-12-04 Kevin Buettner <kevinb@redhat.com>
775
776 * Makefile.in (mips_tdep_h): Define.
777 (mips-tdep.o): Add mips_tdep_h to dependency list.
778 * mips-tdep.h: New file.
779 * mips-tdep.c (mips-tdep.h): Include.
780 (enum mips_abi): Move to mips-tdep.h.
781 (mips_abi): New function.
782
f1253c7b
DC
7832002-12-04 David Carlton <carlton@math.stanford.edu>
784
785 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
786
406bc4de
DC
7872002-12-04 David Carlton <carlton@math.stanford.edu>
788
789 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
790 function.
791 (lookup_symbol_aux_minsyms): New function.
792
2a3750c5
JB
7932002-12-04 J. Brobecker <brobecker@gnat.com>
794
795 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
796
961d8652
JB
7972002-12-04 J. Brobecker <brobecker@gnat.com>
798
799 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
800 which is an obsolete macro name.
801
38c52d5a
DJ
8022002-12-04 Daniel Jacobowitz <drow@mvista.com>
803
804 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
805 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
806
d8ef46f5
DJ
8072002-12-03 H.J. Lu (hjl@gnu.org)
808
809 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
810 (create_breakpoints): Make sure the addr_string field is not
811 NULL.
812
02ae7771
AC
8132002-12-03 Andrew Cagney <ac131313@redhat.com>
814
815 * sparc-nat.c (fetch_inferior_registers)
816 (store_inferior_registers): Add comment on problem of LWP vs
817 threads.
818
819 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
820 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
821 (lin_lwp_store_registers): Remove.
822 (init_lin_lwp_ops): Use fetch_inferior_registers
823 and store_inferior_registers directly.
824 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
825 (store_inferior_registers): Likewise.
826 Fix PR gdb/725.
827
7a424e99
AC
8282002-12-03 Andrew Cagney <ac131313@redhat.com>
829
830 * frame.h (get_frame_id): Convert to a function.
831 (null_frame_id, frame_id_p): Declare.
832 (frame_id_eq, frame_id_inner): Declare.
833 (frame_id_build): New function.
834 * frame.c (get_frame_id): Update. Use null_frame_id.
835 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
836 frame_id_inner.
837 (null_frame_id, frame_id_p): Define.
838 (frame_id_eq, frame_id_inner): Define.
839 (frame_id_build): New function.
840 * varobj.c (varobj_create): Update.
841 (varobj_update): Update.
842 * valops.c (value_assign): Update.
843 (new_root_variable): Update.
844 * infrun.c (save_inferior_status): Update.
845 * breakpoint.c (watch_command_1): Update.
846
891c7f5f
JB
8472002-12-03 J. Brobecker <brobecker@gnat.com>
848
849 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
850 (SNAP2): Likewise.
851
144da3c1
AC
8522002-12-03 Andrew Cagney <cagney@redhat.com>
853
46248966
AC
854 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
855 patch.
856
144da3c1
AC
857 * PROBLEMS: Mention PR gdb/725.
858
03c6228e
AS
8592002-12-03 Andreas Schwab <schwab@suse.de>
860
861 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
862
36e53c63
AF
8632002-12-02 Adam Fedor <fedor@gnu.org>
864 Klee Dienes <kdienes@apple.com>
865
866 * objc-lang.c (objc_printstr): Add width arg to match
867 printstr prototype.
868 (compare_selectors): Add 'const' to arg types.
869 (compare_classes): Likewise.
870 (find_imps): Cast msym pointer to avoid compiler warning.
871 (print_object_command): Validate the address before
872 passing it to the print routine.
873 (find_objc_msgcall_submethod): Change function argument to
874 return an int.
875 * objc-lang.h: Add 'extern' to all function declarations.
876 (value_nsstring): Add declaration.
877
504d5c7e
JB
8782002-12-02 J. Brobecker <brobecker@gnat.com>
879
880 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
881 Fixes a build failure on HP/UX.
882
883 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
884 failure on HP/UX.
885 (hpread_has_name): Advance declaration to avoid a compilation warning.
886 (pst_syms_count): Add missing variable type. By change, the compiler
887 was defaulting to int, which seems a good choice. Fixes a compilation
888 warning.
889 (pst_syms_size): Likewise.
890
59623e27
JB
8912002-12-02 J. Brobecker <brobecker@gnat.com>
892
893 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
894 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
895 later to set the proper gdbarch methods depending on the osabi.
896 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
897
a09a320d
JB
8982002-12-02 J. Brobecker <brobecker@gnat.com>
899
900 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
901 * osabi.c (gdb_osabi_name): Add strings images for the two new
902 enum values.
903 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
904
8a81a99e
AC
9052002-12-02 Andrew Cagney <ac131313@redhat.com>
906
907 * MAINTAINERS (Java): Global maintainers are responible for Java.
908 (Past Maintainers): Mention both Anthony Green and Per Bothner as
909 part Java maintainers.
910
7af35dad
JB
9112002-12-02 J. Brobecker <brobecker@gnat.com>
912
913 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
914 Fixes a compilation failure on AiX.
915
f4ede9bc
JB
9162002-12-02 J. Brobecker <brobecker@gnat.com>
917
918 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
919 why aix-thread.o is not listed.
920
ae45cd16
AC
9212002-12-01 Andrew Cagney <ac131313@redhat.com>
922
923 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
924 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
925 * gdbarch.h, gdbarch.c: Re-generate.
926 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
927 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
928 * config/pa/tm-hppa.h, frame.h: Update.
929 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
930 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
931 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
932 * cris-tdep.c, alpha-tdep.c: Update.
933 * frame.c (set_unwind_by_pc, create_new_frame): Use either
934 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
935 (get_prev_frame): Ditto.
936
020cc13c
AC
9372002-11-30 Andrew Cagney <cagney@redhat.com>
938
939 * exec.c (xfer_memory): Replace boolean with int.
940 * p-exp.y: Use 0 instead of false.
941 * corelow.c (gdb_check_format): Change return type to int from
942 boolean.
943 * utils.c: Don't include <curses.h> or <term.h> first.
944
1d9b2aa8
SC
9452002-11-29 Stephane Carrez <stcarrez@nerim.fr>
946
947 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
948 (m68hc11_register_byte): Remove.
949 (m68hc11_gdbarch_init): Don't set the above.
950
a193e397
AC
9512002-11-29 Andrew Cagney <cagney@redhat.com>
952
953 * remote-mips.c (mips_initialize): Force a selected frame rebuild
954 by calling get_selected_frame.
955 * ocd.c (ocd_start_remote): Use get_selected frame instead of
956 set_current_frame, create_new_frame, select_frame and
957 get_current_frame.
958 * remote-e7000.c (e7000_start_remote): Ditto.
959 * remote-mips.c (common_open): Ditto
960 * remote-rdp.c (remote_rdp_open): Ditto.
961
b5fc49aa
AS
9622002-11-29 Andreas Schwab <schwab@suse.de>
963
964 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
965 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
966 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
967 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
968 read_memory_unsigned_integer instead of read_memory_integer when
969 dealing with addresses and instruction opcodes.
970 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
971 (m68k_linux_frame_saved_pc): Likewise.
972
6e7f8b9c
AC
9732002-11-29 Andrew Cagney <ac131313@redhat.com>
974
975 * stack.c (selected_frame, select_frame): Move from here ...
976 * frame.c (selected_frame, select_frame): ... to here. Include
977 "language.h".
978 * Makefile.in (frame.o): Update dependencies.
979 * frame.c (get_selected_frame): New function.
980 * frame.h (get_selected_frame): Declare.
981 (deprecated_selected_frame): Rename selected_frame.
982 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
983 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
984 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
985 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
986 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
987 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
988 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
989 * z8k-tdep.c, cli/cli-cmds.c: Update.
990
805e2818
AC
9912002-11-29 Andrew Cagney <ac131313@redhat.com>
992
993 * frame.h (get_selected_block): Add comments.
994
1058bca7
AC
9952002-11-28 Andrew Cagney <ac131313@redhat.com>
996
997 * frame.c (pc_notcurrent): New function.
998 (find_frame_sal): New function.
999 * frame.h (find_frame_sal): Declare.
1000 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
1001 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1002 find_pc_line.
1058bca7
AC
1003 (frame_info): Ditto.
1004 * ada-lang.c (find_printable_frame): Ditto.
1005
d92419e5
JB
10062002-11-28 J. Brobecker <brobecker@gnat.com>
1007
1008 * configure.in: Check that the pthdebug library is recent enough
1009 before enabling thread support on native AiX.
1010 * configure: Regenerate.
1011
1012 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1013 from the list of object files as it is now appended by configure
1014 if thread support is enabled.
1015 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1016 if thread support is enabled.
1017
8c69fc49
AC
10182002-11-28 Andrew Cagney <cagney@redhat.com>
1019
1020 * stack.c (get_selected_block): In-line get_current_block.
1021 * frame.h (get_current_block): Delete declaration.
1022 * blockframe.c (get_current_block): Delete function.
1023
07555a72
AC
10242002-11-28 Andrew Cagney <ac131313@redhat.com>
1025
1026 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1027 USE_GENERIC_DUMMY_FRAMES.
1028 * gdbarch.h, gdbarch.c: Regenerate.
1029 * valops.c, frame.c: Update.
1030 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1031 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1032 * config/pa/tm-hppa.h, blockframe.c: Update.
1033 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1034 * m68k-tdep.c, alpha-tdep.c: Ditto.
1035
1036 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1037 * mips-tdep.c: Ditto.
1038
b99fa2d2
AC
10392002-11-27 Andrew Cagney <ac131313@redhat.com>
1040
1041 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1042 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1043 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1044 * gdbarch.c, gdbarch.h: Re-generate.
1045 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1046 (CALL_DUMMY_LOCATION): Delete macro definition.
1047 (PC_IN_CALL_DUMMY): Delete macro definitions.
1048
1049 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1050 default is already generic_pc_in_call_dummy.
1051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1052 * v850-tdep.c (v850_gdbarch_init): Ditto.
1053 * sh-tdep.c (sh_gdbarch_init): Ditto.
1054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1055 * mips-tdep.c (mips_gdbarch_init): Ditto.
1056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1058 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1059 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1060 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1061 * avr-tdep.c (avr_gdbarch_init): Ditto.
1062
1063 * arm-tdep.c (arm_gdbarch_init): Do not set
1064 use_generic_dummy_frames, default is already 1.
1065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1066 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1067 * v850-tdep.c (v850_gdbarch_init): Ditto.
1068 * sh-tdep.c (sh_gdbarch_init): Ditto.
1069 * s390-tdep.c (s390_gdbarch_init): Ditto.
1070 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1071 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1072 * mips-tdep.c (mips_gdbarch_init): Ditto.
1073 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1075 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1076 * i386-tdep.c (i386_gdbarch_init): Ditto.
1077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1078 * frv-tdep.c (frv_gdbarch_init): Ditto.
1079 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1080 * cris-tdep.c (cris_gdbarch_init): Ditto.
1081 * avr-tdep.c (avr_gdbarch_init): Ditto.
1082
1083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1084 call_dummy_location, default is already AT_ENTRY_POINT.
1085 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1086 * v850-tdep.c (v850_gdbarch_init): Ditto.
1087 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1088 * sh-tdep.c (sh_gdbarch_init): Ditto.
1089 * s390-tdep.c (s390_gdbarch_init): Ditto.
1090 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1091 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1092 * mips-tdep.c (mips_gdbarch_init): Ditto.
1093 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1095 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1096 * i386-tdep.c (i386_gdbarch_init): Ditto.
1097 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1098 * frv-tdep.c (frv_gdbarch_init): Ditto.
1099 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1100 * cris-tdep.c (cris_gdbarch_init): Ditto.
1101 * avr-tdep.c (avr_gdbarch_init): Ditto.
1102 * arm-tdep.c (arm_gdbarch_init): Ditto.
1103 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1104
abc0af47
AC
11052002-11-28 Andrew Cagney <cagney@redhat.com>
1106
1107 * frame.h: Update comments on set_current_frame, create_new_frame,
1108 flush_cached_frames, reinit_frame_cache, select_frame and
1109 selected_frame.
1110
ed5cedc5
AC
11112002-11-27 Andrew Cagney <cagney@redhat.com>
1112
1113 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1114 deprecated pc_in_call_dummy function.
1115 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1116 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1117 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1118 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1119 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1120
b2a1bd4f
MH
11212002-11-26 Martin M. Hunt <hunt@redhat.com>
1122
1123 * Makefile.in: Remove Tix dependencies.
1124 * acinclude.m4: Ditto.
1125 * aclocal.m4: Ditto.
1126 * configure.in: Ditto.
1127 * configure: Regenerated.
1128
f09cffaa
AC
11292002-11-26 Andrew Cagney <ac131313@redhat.com>
1130
1131 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1132 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1133 * gdbarch.c: Re-generate.
1134
e92b0cc9
AC
11352002-11-26 Andrew Cagney <ac131313@redhat.com>
1136
1137 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1138 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1139 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1140 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1141 pc_in_call_dummy_at_entry_point.
1142 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1143 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1144 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1145 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1146 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1147 pc_in_call_dummy_on_stack.
1148 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1149 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1150 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1151 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1152 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1153
b4b88177
AC
11542002-11-26 Andrew Cagney <ac131313@redhat.com>
1155
1156 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1157 pc_in_call_dummy_before_text_end
1158 (deprecated_pc_in_call_dummy_after_text_end): Rename
1159 pc_in_call_dummy_after_text_end.
1160 (deprecated_pc_in_call_dummy_on_stack): Rename
1161 pc_in_call_dummy_on_stack.
1162 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1163 pc_in_call_dummy_at_entry_point.
1164 * m68k-tdep.c (m68k_gdbarch_init): Update.
1165 * s390-tdep.c (s390_gdbarch_init): Update.
1166 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1167 * vax-tdep.c (vax_gdbarch_init): Update.
1168 * sparc-tdep.c (sparc_gdbarch_init): Update.
1169 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1171 * i386-tdep.c (i386_gdbarch_init): Update.
1172 * frv-tdep.c (frv_gdbarch_init): Update.
1173 * cris-tdep.c (cris_gdbarch_init): Update.
1174 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1175 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1176 (deprecated_pc_in_call_dummy_after_text_end)
1177 (deprecated_pc_in_call_dummy_on_stack)
1178 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1179 * alpha-tdep.c (alpha_gdbarch_init): Update.
1180
eb784848
DJ
11812002-11-25 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * acconfig.h (HAVE_PREAD64): Add.
1184 * configure.in: Check for pread64.
1185 * config.in: Regenerated.
1186 * configure: Regenerated.
1187 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1188 * linux-proc.c (linux_proc_xfer_memory): New function.
1189 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1190
933c6fe4
DC
11912002-11-25 David Carlton <carlton@math.stanford.edu>
1192
1193 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1194 pdi's with no name.
1195
158a8022
AC
11962002-11-25 Andrew Cagney <ac131313@redhat.com>
1197
1198 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1199 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1200
481d0f41
JB
12012002-11-25 Jim Blandy <jimb@redhat.com>
1202
e8289572
JB
1203 * symfile.c (init_objfile_sect_indices): New function.
1204 (default_symfile_offsets): Move the section-index-initializing
1205 stuff into init_objfile_sect_indices, and call that.
1206
b29c9944
JB
1207 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1208 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1209
13de58df
JB
1210 * symfile.c (syms_from_objfile): Adjust indentation.
1211
481d0f41
JB
1212 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1213 || info_verbose isn't true.
1214
7d6a26a7
AC
12152002-11-24 Andrew Cagney <ac131313@redhat.com>
1216
1217 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1218 default to get_frame_base.
1219 * gdbarch.h, gdbarch.c: Regenerate.
1220 * arch-utils.c (default_frame_address): Delete function.
1221 * arch-utils.h (default_frame_address): Delete declaration
1222
6abe1021
PM
12232002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1224
1225 * varobj.c (find_frame_addr_in_frame_chain):
1226 Use get_frame_base instead of FRAME_FP,
1227 obvious fix.
1228
c193f6ac
AC
12292002-11-19 Andrew Cagney <ac131313@redhat.com>
1230
1231 * frame.h (FRAME_FP): Delete macro.
1232 (get_frame_base): New function declaration.
1233 * frame.c (get_frame_base): New function.
1234 (get_frame_id): Use ->frame.
1235 (frame_find_by_id): Rewrite to use get_frame_id.
1236 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1237 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1238 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1239 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1240 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1241 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1242 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1243
e5d2af14
AC
12442002-11-24 Andrew Cagney <ac131313@redhat.com>
1245
1246 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1247
931d12c6
AC
12482002-11-24 Andrew Cagney <ac131313@redhat.com>
1249
1250 * frame.c (set_unwind_by_pc): Revert change below, use
1251 PC_IN_CALL_DUMMY.
1252 (get_prev_frame): Ditto.
1253
5e0f933e
AC
12542002-11-24 Andrew Cagney <ac131313@redhat.com>
1255
1256 * dummy-frame.c (pc_in_dummy_frame): New function.
1257 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1258 (find_dummy_frame): Update comment.
1259 (generic_pop_current_frame): Use get_frame_type.
1260 * dummy-frame.h (pc_in_dummy_frame): Declare.
1261 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1262 (create_new_frame): Use pc_in_dummy_frame.
1263 (get_prev_frame): Use pc_in_dummy_frame.
1264 (frame_saved_regs_register_unwind): Use get_prev_frame.
1265 (deprecated_generic_get_saved_register): Use get_prev_frame.
1266
7d8547c9
AC
12672002-11-23 Andrew Cagney <ac131313@redhat.com>
1268
1269 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1270 from here ...
1271 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1272 (varobj_create): Note that frame ID should be used.
1273 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1274
0225421b
AC
12752002-11-23 Andrew Cagney <ac131313@redhat.com>
1276
1277 * breakpoint.c: Include "gdb_assert.h".
1278 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1279 not being used.
1280 * Makefile.in (breakpoint.o): Update dependencies.
1281 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1282 deprecated_frame_in_dummy.
1283 * stack.c (print_frame_info_base): Ditto.
1284 (frame_info): Ditto.
1285 (print_frame_info_base): Ditto. Delete dead code.
1286
32eeb91a
AS
12872002-11-23 Andreas Schwab <schwab@suse.de>
1288
1289 * Makefile.in (m68k_tdep_h): Define.
1290 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1291 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1292 * m68k-tdep.c: Move register number enum ...
1293 * m68k-tdep.h: ... to this new file and rename the constants from
1294 E_* to M68K_*. All uses changed.
1295 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1296 * abug-rom.c: Include "m68k-tdep.h". Use
1297 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1298 * cpu32bug-rom.c: Likewise.
1299 * dbug-rom.c: Likewise.
1300 * m68k-tdep.c: Likewise.
1301 * m68klinux-nat.c: Likewise.
1302 * remote-est.c: Likewise.
1303 * rom68k-rom.c: Likewise.
1304 * config/m68k/tm-linux.h: Likewise.
1305
9648bac8
AC
13062002-11-23 Andrew Cagney <ac131313@redhat.com>
1307
1308 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1309 dummy frame initialization code.
1310 * mips-tdep.c (mips_gdbarch_init): Ditto.
1311
91a175b3
CF
13122002-11-22 Christopher Faylor <cgf@redhat.com>
1313
1314 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1315 attach will hang.
1316
f4ded5b1
AC
13172002-11-22 Andrew Cagney <ac131313@redhat.com>
1318
1319 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1320 to default_frame_address.
1321 * gdbarch.h, gdbarch.c: Re-generate.
1322
1323 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1324 or frame_locals_address to default_frame_address.
1325 * m68k-tdep.c (m68k_gdbarch_init): Update.
1326 * i386-tdep.c (i386_gdbarch_init): Update.
1327 * frv-tdep.c (frv_gdbarch_init): Update.
1328 * sh-tdep.c (sh_gdbarch_init): Update.
1329 * v850-tdep.c (v850_gdbarch_init): Update.
1330 * sparc-tdep.c (sparc_gdbarch_init): Update.
1331 * mips-tdep.c (mips_gdbarch_init): Update.
1332 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1333 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1335
1336 * cris-tdep.c (cris_frame_args_address): Delete function.
1337 (cris_frame_locals_address): Delete function.
1338 (cris_gdbarch_init): Do not set frame_args_address or
1339 frame_locals_address.
1340
f7c1e0f3
MS
13412002-11-22 Michael Snyder <msnyder@redhat.com>
1342
1343 * thread-db.c (thread_db_load): Tell the user what's going on
1344 if dlopen fails on libthread_db.
1345
03dac896
AS
13462002-11-23 Andreas Schwab <schwab@suse.de>
1347
1348 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1349 invariant return values.
1350
7a67d0fe
AS
13512002-11-22 Andreas Schwab <schwab@suse.de>
1352
1353 * valops.c (value_slice): Move declaration of `offset' to avoid
1354 warning.
1355
5633f842
CF
13562002-11-22 Christopher Faylor <cgf@redhat.com>
1357
1358 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1359 (struct so_stuff): Add end_addr field.
1360 (register_loaded_dll): Calculate and store end address of loaded dll.
1361 (solib_address): New function.
1362 (child_solib_loaded_library_pathname): Pass carefully constructed
1363 section info to safe_symbol_file_add rather than ignoring it.
1364 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1365 DLL is loaded.
1366 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1367 (child_create_inferior): Fix a compiler warning.
1368 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1369 (solib_address): Declare new function.
1370
d85fe7f7
AS
13712002-11-22 Andreas Schwab <schwab@suse.de>
1372
1373 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1374 and FPS registers.
1375
8308e54c
DJ
13762002-11-21 Daniel Jacobowitz <drow@mvista.com>
1377
1378 * maint.c (_initialize_maint_cmds): Fix typo. From
1379 Francesco Potorti` <pot@gnu.org>.
1380
8997bd5e
AC
13812002-11-21 Andrew Cagney <cagney@redhat.com>
1382
1383 * mips-tdep.c (mips_dump_tdep): Delete references to
1384 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1385 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1386 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1387 * printcmd.c (build_address_symbolic): Delete calls to
1388 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1389 (address_info): Ditto.
1390 Fix PR gdb/773.
1391
4e87b832
KD
13922002-11-19 Klee Dienes <kdienes@apple.com>
1393 Adam Fedor <fedor@gnu.org>
1394
1395 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1396 the ability to explicitly specify the quote characters and word
1397 break characters; if NULL is specified for either, use the old
1398 behavior of using the characters used by the completer.
1399 (skip_chars): New function. Convenience wrapper around
1400 skip_quoted_chars to provide the original skip_chars behavior.
1401 * completer.h (skip_quoted_chars): Add prototype.
1402
9ba8d803
AC
14032002-11-19 Andrew Cagney <ac131313@redhat.com>
1404
1405 Problems reported by Paul Eggert.
1406 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1407
0a595803
AS
14082002-11-19 Andreas Schwab <schwab@suse.de>
1409
1410 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1411 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1412 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1413 (m68k_linux_frame_saved_pc): Move to ...
1414 * m68klinux-tdep.c: ... here. New file.
1415 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1416 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1417
e8afa4d7
AF
14182002-11-19 Adam Fedor <fedor@gnu.org>
1419
1420 * objc-exp.y: Revert to old skip_quoted usage.
1421
a76c9d72
AF
14222002-11-19 Adam Fedor <fedor@gnu.org>
1423
1424 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1425 (objc_lang_h): Define.
1426 (YYFILES): Add objc-exp.tab.c.
1427 (local-maintainer-clean): Remove objc-exp.tab.c.
1428 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1429
fd0e9d45
PM
14302002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1431
1432 * p-exp.y (typecast rule): Add automatic dereference of
1433 pascal classes if needed.
1434 (THIS): Set current_type.
1435 Automatically dereference pascal classes.
1436 (typebase rule): Add ^typebase recognition.
1437
82eeeb94
AF
14382002-11-18 Adam Fedor <fedor@gnu.org>
1439
1440 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1441 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1442 (op_name): Handle OP_OBJC_SELF.
1443 * Makefile.in (expprint.o): Add additional depends.
1444
646df18d
AF
14452002-11-18 Adam Fedor <fedor@gnu.org>
1446
1447 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1448 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1449 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1450 * objc-exp.y: Likewise.
1451
379b85df
AF
14522002-11-18 Adam Fedor <fedor@gnu.org>
1453
1454 * gdb/parser-defs.h: (struct objc_class_str): New structure
1455 for parsing ObjC classes.
1456
85cf597a
AC
14572002-11-18 Andrew Cagney <ac131313@redhat.com>
1458
1459 * stack.c (frame_relative_level): Copy function from here ...
1460 * frame.c (frame_relative_level): ...to here.
1461
5a203e44
AC
14622002-11-18 Andrew Cagney <ac131313@redhat.com>
1463
1464 * frame.h (enum frame_type): Define.
1465 (get_frame_type): Declare.
1466 (struct frame_info): Add field `type'. Delete field
1467 signal_handler_caller.
1468 (deprecated_set_frame_signal_handler_caller): Declare.
1469 * frame.c (get_frame_type): New function.
1470 (deprecated_set_frame_type): New function.
1471 (create_new_frame): Set the frame's type.
1472 (get_prev_frame): Similar.
1473 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1474 * s390-tdep.c: Ditto.
1475 * m68klinux-nat.c: Ditto.
1476 * ns32k-tdep.c: Ditto.
1477 * x86-64-linux-tdep.c: Ditto.
1478 * vax-tdep.c: Ditto.
1479 * rs6000-tdep.c: Ditto.
1480 * ppc-linux-tdep.c: Ditto.
1481 * i386-interix-tdep.c: Ditto.
1482 * mips-tdep.c: Ditto.
1483 * m68k-tdep.c: Ditto.
1484 * hppa-tdep.c: Ditto.
1485 * ia64-tdep.c: Ditto.
1486 * cris-tdep.c: Ditto.
1487 * arm-tdep.c: Ditto.
1488 * alpha-tdep.c: Ditto.
1489 * i386-tdep.c: Ditto.
1490 * stack.c: Ditto.
1491 * ada-lang.c: Ditto.
1492 * blockframe.c: Update.
1493 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1494 deprecated_set_frame_type instead of signal_handler_caller.
1495 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1496 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1497 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1498
bf4ae8b2
KD
14992002-11-18 Klee Dienes <kdienes@apple.com>
1500
1501 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1502
a672ef13
KD
15032002-11-18 Klee Dienes <kdienes@apple.com>
1504
1505 * buildsym.c (pop_context): Add comment.
1506
0c5e171a
KD
15072002-11-18 Klee Dienes <kdienes@apple.com>
1508
1509 * buildsym.h (pop_context): Convert to function, defined in
1510 buildsym.c.
1511 * buildsym.c: Include gdb_assert.h.
1512 (pop_context): Implement as C function. Add check for stack
1513 underflow.
1514 * dbxread.c (process_one_symbol): Complain and stop processing
1515 that symbol if we are already at the top of the context stack for
1516 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1517 when processing N_RBRAC.
1518
8a1f4c4c
DJ
15192002-11-16 Daniel Jacobowitz <drow@mvista.com>
1520
1521 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1522 define.
1523 (struct target_waitstatus): Add opaque definition.
1524 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1525 * exec.c (init_exec_ops): Likewise.
1526 * fork-child.c (clone_and_follow_inferior): Remove.
1527 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1528 * inferior.h (clone_and_follow_inferior): Remove prototype.
1529 * infrun.c (follow_fork_mode_both): Remove.
1530 (follow_fork_mode_kind_names): Remove commented out "both".
1531 (follow_inferior_fork): Remove follow_fork_mode_both support.
1532 * inftarg.c (child_clone_and_follow_inferior): Remove.
1533 (child_post_follow_inferior_by_clone): Remove.
1534 (init_child_ops): Don't set to_clone_and_follow_inferior
1535 or to_post_follow_inferior_by_clone.
1536 * target.c (default_clone_and_follow_inferior): Remove.
1537 (cleanup_target): Don't set to_clone_and_follow_inferior
1538 or to_post_follow_inferior_by_clone.
1539 (find_default_clone_and_follow_inferior): Remove.
1540 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1541 (debug_to_clone_and_follow_inferior): Remove.
1542 (debug_to_post_follow_inferior_by_clone): Remove.
1543 (setup_target_debug): Don't set to_clone_and_follow_inferior
1544 or to_post_follow_inferior_by_clone.
1545 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1546 and to_post_follow_inferior_by_clone.
1547 (child_clone_and_follow_inferior): Remove prototype.
1548 (child_post_follow_inferior_by_clone): Remove prototype.
1549 (target_clone_and_follow_inferior): Remove macro.
1550 (target_post_follow_inferior_by_clone): Remove macro.
1551 (find_default_clone_and_follow_inferior): Remove prototype.
1552
47932f85
DJ
15532002-11-16 Daniel Jacobowitz <drow@mvista.com>
1554
1555 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1556 inferior_has_vforked, and inferior_has_execd instead of
1557 target_has_forked, target_has_vforked, and target_has_execd.
1558 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1559 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1560 (CHILD_WAIT): Define.
1561 (child_wait): Add prototype.
1562 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1563 Add prototype.
1564 (hpux_has_vforked): Likewise, from child_has_vforked.
1565 (hpux_has_execd): Likewise, from child_has_execd.
1566 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1567 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1568 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1569 and hpux_has_syscall_event instead of the target hooks.
1570 * infrun.c (inferior_has_forked, inferior_has_vforked)
1571 (inferior_has_execd): New functions.
1572 * inftarg.c (not_same_real_pid): Remove.
1573 (child_wait): Remove references to not_same_real_pid,
1574 target_has_forked, target_has_vforked, target_has_execd,
1575 and target_has_syscall_event.
1576 (child_has_forked, child_has_vforked, child_has_execd)
1577 (child_has_syscall_event): Remove.
1578 (init_child_ops): Remove references to child_has_forked,
1579 child_has_vforked, child_has_execd, and child_has_syscall_event.
1580 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1581 (hpux_has_vforked): Likewise, from child_has_vforked.
1582 (hpux_has_execd): Likewise, from child_has_execd.
1583 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1584 * target.c (cleanup_target): Remove references to
1585 to_has_forked, to_has_vforked, to_has_execd, and
1586 to_has_syscall_event.
1587 (update_current_target): Likewise.
1588 (setup_target_debug): Likewise.
1589 (debug_to_has_forked): Remove.
1590 (debug_to_has_vforked): Remove.
1591 (debug_to_has_execd): Remove.
1592 (debug_to_has_syscall_event): Remove.
1593 * target.h (struct target_ops): Remove to_has_forked.
1594 to_has_vforked, to_has_execd, and to_has_syscall_event.
1595 (child_has_forked, child_has_vforked, child_has_execd)
1596 (child_has_syscall_event): Remove prototypes.
1597 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1598 prototypes.
1599 (target_has_forked, target_has_vforked, target_has_execd)
1600 (target_has_syscall_event): Remove macros.
1601
4088142a
DJ
16022002-11-16 Daniel Jacobowitz <drow@mvista.com>
1603
1604 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1605 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1606 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1607 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1608 * target.c (cleanup_target): Remove reference to
1609 to_can_follow_vfork_prior_to_exec.
1610 (update_current_target): Likewise.
1611 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1612 (setup_target_debug): Remove reference to
1613 to_can_follow_vfork_prior_to_exec.
1614 * target.h (struct target_ops): Remove
1615 to_can_follow_vfork_prior_to_exec.
1616 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1617 (target_can_follow_vfork_prior_to_exec): Remove definition.
1618 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1619 define.
1620 * infrun.c (follow_vfork_when_exec): Remove.
1621 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1622 (follow_exec): Likewise.
1623 (handle_inferior_event): Likewise.
1624 (keep_going): Likewise.
1625
18cde8d5
AC
16262002-11-15 Andrew Cagney <cagney@redhat.com>
1627
1628 * frame.c (generic_unwind_get_saved_register): Make static.
1629 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1630 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1631 defaults to generic_unwind_get_saved_register.
1632 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1634 * frv-tdep.c (frv_gdbarch_init): Ditto.
1635 * i386-tdep.c (i386_gdbarch_init): Ditto.
1636 * s390-tdep.c (s390_gdbarch_init): Ditto.
1637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1638 * v850-tdep.c (v850_gdbarch_init): Ditto.
1639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1640 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1641 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1642
a6b063af
AC
16432002-11-15 Andrew Cagney <cagney@redhat.com>
1644
1645 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1646 i386-tdep.c.
1647
f407986f
AC
16482002-11-15 Andrew Cagney <cagney@redhat.com>
1649
1650 * frame.h (sigtramp_saved_pc): Delete declaration.
1651 * blockframe.c (sigtramp_saved_pc): Delete function.
1652 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1653 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1654 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1655 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1656
f18c5a73
AC
16572002-11-15 Andrew Cagney <ac131313@redhat.com>
1658
1659 * frame.c (frame_pc_unwind): New function.
1660 (frame_saved_regs_pc_unwind): New function.
1661 (frame_register_unwind): Pass unwind_cache instead of
1662 register_unwind_cache.
1663 (set_unwind_by_pc): Add unwind_pc parameter, set.
1664 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1665 (get_prev_frame): Ditto.
1666 * frame.h (frame_pc_unwind_ftype): Declare.
1667 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1668 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1669 (frame_pc_unwind): Declare.
1670 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1671 (struct dummy_frame): Add comment mentioning that values are for
1672 previous frame.
1673 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1674 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1675 (generic_file_frame_chain_valid): Ditto.
1676 * stack.c (frame_info): Ditto.
1677
d9285969 16782002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
1679
1680 * linespec.c (locate_first_half): New function.
1681 (decode_line_1): Move code into locate_first_half.
1682
d741b867
AC
16832002-11-15 Andrew Cagney <ac131313@redhat.com>
1684
1685 * complaints.h: Add comment explaining how to eliminate a
1686 deprecated_complain call.
24382c5c 1687 * complaints.h: Fix spelling errors.
d741b867 1688
82d03c99
DC
16892002-11-15 David Carlton <carlton@math.stanford.edu>
1690
1691 * printcmd.c: Remove #include "disasm.h".
1692
c97eb5d9
AC
16932002-11-14 Andrew Cagney <ac131313@redhat.com>
1694
1695 * frame.h: Move the most relevant interface functions to the start
1696 of the file.
1697
524d7c18
AC
16982002-11-14 Andrew Cagney <ac131313@redhat.com>
1699
1700 * regcache.h (deprecated_registers): Rename registers.
1701 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1702 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1703 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1704 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1705 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1706 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1707 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1708 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1709 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1710 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1711 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1712 * v850ice.c: Update.
1713
6411e720
AC
1714Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1715
1716 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1717 NULL buffer.
1718
73937e03
AC
17192002-11-13 Andrew Cagney <cagney@redhat.com>
1720
1721 * regcache.h (deprecated_read_register_bytes): Rename
1722 read_register_bytes.
1723 (deprecated_write_register_bytes): Rename write_register_bytes.
1724 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1725 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1726 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1727 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1728 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1729 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1730 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1731 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1732 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1733 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1734 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1735 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1736 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1737 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1738
fb0cd46e
JB
17392002-11-13 Jim Blandy <jimb@redhat.com>
1740
1741 * findvar.c (read_var_value): Doc fix.
1742
2d28509a
AC
17432002-11-13 Andrew Cagney <cagney@redhat.com>
1744
1745 * regcache.c (struct regcache): Replace passthough_p with
1746 readonly_p.
1747 (regcache_xmalloc): Initialize readonly_p.
1748 (build_regcache): Initialize readonly_p.
1749 (regcache_save): New function.
1750 (regcache_restore): New function.
1751 (regcache_cpy): Re-implement using regcache_save and
1752 regcache_restore.
1753 (regcache_raw_read): Update.
1754 (regcache_cooked_read): When a read-only cache, checked for cached
1755 pseudo register values.
1756 (regcache_raw_write): Assert that the cache is not read-only.
1757 Remove code handling a non-passthrough cache.
1758 * regcache.h (regcache_save): Declare.
1759 (regcache_restore): Declare.
1760
067df2e5
AC
17612002-11-13 Andrew Cagney <cagney@redhat.com>
1762
1763 * regcache.c (struct regcache_descr): Add fields
1764 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1765 (init_legacy_regcache_descr): Compute the size of a cooked
1766 register cache and then assign that to sizeof_raw_registers. Set
1767 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1768 (init_legacy_regcache_descr): Ditto.
1769
51b1fe4e
AC
17702002-11-13 Andrew Cagney <cagney@redhat.com>
1771
1772 * regcache.c (register_buffer): Move to near start of file, update
1773 description.
1774 (regcache_raw_read): Use.
1775 (regcache_raw_write): Use.
1776 (struct regcache): Rename raw_registers to registers and
1777 raw_register_valid_p to register_valid_p.
1778 (regcache_xmalloc): Update.
1779 (regcache_xfree): Update.
1780 (register_buffer): Update.
1781 (regcache_cpy): Update.
1782 (regcache_cpy_no_passthrough): Update.
1783 (regcache_valid_p): Update.
1784 (deprecated_grub_regcache_for_registers): Update.
1785 (deprecated_grub_regcache_for_register_valid): Update.
1786 (set_register_cached): Update.
1787 (regcache_raw_write): Update.
1788
80b4c677
PM
17892002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1790
1791 * p-exp.y (name_not_typename): Use copy_name to
1792 set current_type variable for fields of THIS.
1793
0f3fafde
DJ
17942002-11-12 Daniel Jacobowitz <drow@mvista.com>
1795
1796 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1797 * monitor.c (init_base_monitor_ops): Likewise.
1798 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1799 * remote-array.c (init_array_ops): Likewise.
1800 * remote-e7000.c (init_e7000_ops): Likewise.
1801 * remote-es.c (init_es1800_ops): Likewise.
1802 (init_es1800_child_ops): Likewise.
1803 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1804 * remote-sim.c (init_gdbsim_ops): Likewise.
1805 * remote-st.c (init_st2000_ops): Likewise.
1806 * sol-thread.c (init_sol_core_ops): Likewise.
1807 (init_sol_thread_ops): Likewise.
1808 * v850ice.c (init_850ice_ops): Likewise.
1809 * win32-nat.c (init_child_ops): Likewise.
1810 * wince.c (init_child_ops): Likewise.
1811
82c0260e
AC
18122002-11-12 Andrew Cagney <ac131313@redhat.com>
1813
1814 * utils.c (gdb_realpath): Make rp a constant pointer.
1815
70d35819
AC
18162002-11-12 Andrew Cagney <ac131313@redhat.com>
1817
1818 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1819 a constant buffer; cannonicalize_file_name(); realpath() with a
1820 pathconf() defined buffer, xstrdup().
1821
9835a8b0
AC
18222002-11-12 Andrew Cagney <ac131313@redhat.com>
1823
1824 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1825 to hang2.C; hang3.c to hang3.C.
1826
3f47be5c
EZ
18272002-11-11 Elena Zannoni <ezannoni@redhat.com>
1828
1829 * findvar.c (read_var_value): Reenable TLS code.
1830
18312002-11-11 Elena Zannoni <ezannoni@redhat.com>
1832 Jim Blandy <jimb@redhat.com>
1833
1834 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1835 * target.c (update_current_target): Add
1836 to_get_thread_local_address.
1837 * target.h (to_get_thread_local_address): Export.
1838 (target_get_thread_local_address): Define.
1839 (target_get_thread_local_address_p): Define.
1840 * thread-db.c: Include solib-svr4.h.
1841 (td_thr_tls_get_addr_p): Define.
1842 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1843 (thread_db_get_thread_local_address): New function.
1844 (init_thread_db_ops): Initialize to_get_thread_local_address.
1845 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1846 * configure: Regenerate.
1847 * config.in: Regenerate.
1848
636b1a6d
DC
18492002-11-11 David Carlton <carlton@math.stanford.edu>
1850
1851 * linespec.c (set_flags): New function.
1852 (decode_line_1): Move code into set_flags.
1853
44fe14ab
DC
18542002-11-11 David Carlton <carlton@math.stanford.edu>
1855
1856 * linespec.c (decode_line_1): Move chunks of code to separate
1857 functions.
1858 (initialize_defaults): New function.
1859 (decode_indirect): New function.
1860
e6f181f5
AC
18612002-11-11 Andrew Cagney <ac131313@redhat.com>
1862
8971b011
AC
1863 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1864 instead of void_code_ptr.
1865 (sigtramp_saved_pc): Ditto.
1866
e6f181f5
AC
1867 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1868 i386_fp_regnum_p.
1869
01ad7f36
DJ
18702002-11-10 Daniel Jacobowitz <drow@mvista.com>
1871
1872 * gdbtypes.h (struct main_type): Move artificial flag out of
1873 loc. New member of ``struct field'' named static_kind. Reduce
1874 overloaded meaning of bitsize.
1875 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1876 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1877 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1878
1879 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1880 new fields.
1881 (template_to_fixed_record_type, template_to_static_fixed_type)
1882 (to_record_with_fixed_variant_part): Likewise.
1883 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1884 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1885 * dwarfread.c (struct_type, enum_type): Likewise.
1886 * hpread.c (hpread_read_enum_type)
1887 (hpread_read_function_type, hpread_read_doc_function_type)
1888 (hpread_read_struct_type): Likewise.
1889 * mdebugread.c (parse_symbol): Likewise.
1890
bf1e52be
AC
18912002-11-10 Andrew Cagney <ac131313@redhat.com>
1892
1893 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1894 * stack.c (print_frame_info_base): Update.
1895 (print_frame_info_base, frame_info): Update.
1896 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1897 (sparc_frame_saved_pc): Update.
1898 * ada-lang.c (find_printable_frame): Update.
1899 * breakpoint.c (deprecated_frame_in_dummy): Update.
1900
ce556f85
MK
19012002-11-09 Mark Kettenis <kettenis@gnu.org>
1902
1903 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1904 defined.
1905 (regmap): Extend to cover all registers.
1906 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1907 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1908 definitions.
1909 (fetch_register, sore_register): Simplify.
1910 (old_fetch_inferior_registers, old_store_inferior_registers):
1911 Remove functions.
1912 (cannot_fetch_register, cannot_store_register): Change
1913 implementation to use regmap array to decide which registers
1914 cannot be fetched/stored. This removes $orig_eax from the
1915 registers that cannot be fetched/stored.
1916 (fetch_inferior_registers): Call fetch_register directly instead
1917 of calling old_fetch_inferior_registers.
1918 (store_inferior_registers): Call store_register directly instead
1919 of calling old_store_inferior_registers.
1920 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1921 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1922 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1923
932bb524
KD
19242002-11-09 Klee Dienes <kdienes@apple.com>
1925
1926 * i387-tdep.c (i387_supply_register): When called with NULL as a
1927 buffer, mark the register as not provided (to mirror the behavior
1928 of supply_register).
1929 (i387_supply_fxsave): Ditto.
1930 (i387_supply_fsave): Ditto (inherits the behavior from
1931 i387_supply_register).
1932
ebe68b27
KD
19332002-11-09 Klee Dienes <kdienes@apple.com>
1934
1935 * blockframe.c (sigtramp_saved_pc): Use
1936 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1937 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1938 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1939
15220c65
AC
19402002-11-09 Andrew Cagney <ac131313@redhat.com>
1941
1942 * frame.c (get_prev_frame): Test prev_p to identify a previously
1943 unwound frame. Initialize prev_p.
1944 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1945 comment.
1946
95adb866
AC
19472002-11-09 Andrew Cagney <ac131313@redhat.com>
1948
1949 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1950 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1951 more comments. Zap dead code.
1952
e71ecd70
MK
19532002-11-09 Mark Kettenis <kettenis@gnu.org>
1954
1955 * infcmd.c (print_vector_info, print_float_info): Move code that
1956 checks whether the target has any registers and whether there is a
1957 selected frame up, such that it is also used if a target provides
1958 multi-arch definitions of these functions.
1959
c525330d
AC
19602002-11-08 Andrew Cagney <ac131313@redhat.com>
1961
72bdd927
AC
1962 * Makefile.in (DESTDIR): Define.
1963 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1964 prefix.
1965
c525330d
AC
1966 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1967 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1968
38c968cf
AC
19692002-11-08 Andrew Cagney <ac131313@redhat.com>
1970
1971 * i386-linux-tdep.c: Include "reggroups.h".
1972 (i386_linux_register_reggroup_p): New function.
1973 (i386_linux_init_abi): Set register_reggroup_p to
1974 i386_linux_register_reggroup_p.
1975 * i386-tdep.h (i386_register_reggroup_p): Declare.
1976 * i386-tdep.c: Include "reggroups.h".
1977 (i386_init_reggroups): New function.
1978 (i386_add_reggroups): New function.
1979 (i386_register_reggroup_p): New function.
1980 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1981 (_initialize_i386_tdep): Call i386_init_reggroups.
1982 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1983 specific reggroups.
1984
19e33363
MK
19852002-11-09 Mark Kettenis <kettenis@gnu.org>
1986
371a6e84
MK
1987 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1988 request that's available in *BSD.
1989
94ba925a
MK
1990 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1991
19e33363
MK
1992 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1993 FDOFF_REGNUM.
1994
8779790c
AC
19952002-11-08 Andrew Cagney <ac131313@redhat.com>
1996
1997 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1998 * dummy-frame.c (find_dummy_frame): Rename
1999 generic_find_dummy_frame, make static. Return the dummy frame
2000 instead of the regcache.
2001 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2002 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2003 (dummy_frame_register_unwind): Rename
2004 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2005 * dummy-frame.h (dummy_frame_register_unwind): Rename
2006 generic_call_dummy_register_unwind.
2007
8674b74f
MK
20082002-11-08 Mark Kettenis <kettenis@gnu.org>
2009
2010 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2011 except the inclusion of "i386/tm-i386.h", to...
2012 * config/i386/nm-i386v42mp.h: ...here.
2013 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2014
4c1e7e9d
AC
20152002-11-08 Andrew Cagney <ac131313@redhat.com>
2016
2017 * Makefile.in (frame.o): Update dependencies.
2018 * blockframe.c (current_frame, frame_obstack_alloc)
2019 (frame_saved_regs_zalloc, get_current_frame)
2020 (set_current_frame, create_new_frame)
2021 (set_unwind_by_pc, get_next_frame)
2022 (flush_cached_frames, reinit_frame_cache)
2023 (frame_saved_regs_register_unwind)
2024 (deprecated_generic_get_saved_register)
2025 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2026 (_initialize_blockframe): Move frame code from here...
2027 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2028 "annotate.h" and "dummy-frame.h".
2029 (_initialize_frame): New function.
2030
921e78cf
JB
20312002-11-08 Jim Blandy <jimb@redhat.com>
2032
2033 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2034 when we finish a function a context.
2035 * buildsym.h (outermost_context_p): New macro.
2036 (Bug analyzed by David Edelsohn.)
2037
9c1412c1
AC
20382002-11-08 Andrew Cagney <ac131313@redhat.com>
2039
2040 * blockframe.c: Include "dummy-frame.h".
2041 (struct dummy_frame, dummy_frame_stack)
2042 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2043 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2044 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2045 (generic_save_call_dummy_addr, generic_pop_current_frame)
2046 (generic_pop_dummy_frame, generic_fix_call_dummy)
2047 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2048 dummy frame code from here...
2049 * dummy-frame.c: ...to here. New file.
2050 * dummy-frame.h: New file.
2051 (generic_call_dummy_register_unwind): Declare.
2052 (generic_find_dummy_frame): Declare.
2053 * Makefile.in (SFILES): Add dummy-frame.c.
2054 (dummy-frame.o): Specify dependencies.
2055 (dummy_frame_h): Define.
2056 (COMMON_OBS): Add dummy-frame.o.
2057 (blockframe.o): Update dependencies.
2058
208d8187
JB
20592002-11-08 Jim Blandy <jimb@redhat.com>
2060
2061 * dwarf2read.c (read_func_scope): Restore local_symbols and
2062 param_symbols after we finish the function context. (Based on a
2063 patch from David Edelsohn.)
2064
413dad4d
DC
20652002-11-08 David Carlton <carlton@math.stanford.edu>
2066
2067 * linespec.c (symbol_found): New function.
2068 (minsym_found): New function.
2069 (decode_line_1): Separate out some code into separate functions.
2070
5512c44a
JB
20712002-11-08 Joel Brobecker <brobecker@gnat.com>
2072
2073 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2074 the benefit of the interix target.
2075 * i386-tdep.h (i386_frameless_signal_p): Declare.
2076
1b33ef47
AC
20772002-11-08 Andrew Cagney <ac131313@redhat.com>
2078
2079 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2080 declaration that snuck in from change below.
2081
23a34459
AC
20822002-11-06 Andrew Cagney <cagney@redhat.com>
2083
2084 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2085 all callers.
2086 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2087 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2088 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2089 (i386_mxcsr_regnum_p): new function. Use instead of
2090 MXCSR_REGNUM_P.
2091 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2092 (i386_sse_regnum_p): Declare.
2093 (i386_mxcsr_regnum_p): Declare.
2094 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2095 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2096 (IS_FP_REGNUM): Update definition.
2097 (IS_FPU_CTRL_REGNUM): Update definition..
2098 (IS_SSE_REGNUM): Update definition..
2099 * i386v-nat.c (register_u_addr): Update.
2100 * go32-nat.c (fetch_register): Update.
2101 (store_register): Update.
2102
d709c020
JB
21032002-11-07 Joel Brobecker <brobecker@gnat.com>
2104
2105 Preparation work to convert the hppa targets to multiarch partial.
2106
2107 * hppa-tdep.c: Add new functions replacing macro bodies from
2108 config/pa/tm-hppa.h. These function will be used to initialize
2109 the gdbarch structure. Import some comments from tm-hppa.h,
2110 and place them where appropriate, to avoid loosing them when
2111 we cleanup this file.
2112 (hppa_reg_struct_has_addr): New function.
2113 (hppa_inner_than): New function.
2114 (hppa_stack_align): New function.
2115 (hppa_pc_requires_run_before_use): New function.
2116 (hppa_instruction_nullified): New function.
2117 (hppa_register_byte): New function.
2118 (hppa_register_virtual_type): New function.
2119 (hppa_store_struct_return): New function.
2120 (hppa_cannot_store_register): New function.
2121 (hppa_frame_args_address): New function.
2122 (hppa_frame_locals_address): New function.
2123 (hppa_smash_text_address): New function.
2124 (hppa_coerce_float_to_double): New function. Requires the inclusion
2125 of "language.h".
2126
2127 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2128
2129 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2130 gdbarch-eligible macro to a call to the new associated function
2131 created in hppa-tdep.c.
2132 (INNER_THAN): Likewise.
2133 (STACK_ALIGN): Likewise.
2134 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2135 (INSTRUCTION_NULLIFIED): Likewise.
2136 (REGISTER_BYTE): Likewise.
2137 (REGISTER_VIRTUAL_TYPE): Likewise.
2138 (STORE_STRUCT_RETURN): Likewise.
2139 (CANNOT_STORE_REGISTER): Likewise.
2140 (FRAME_ARGS_ADDRESS): Likewise.
2141 (FRAME_LOCALS_ADDRESS): Likewise.
2142 (SMASH_TEXT_ADDRESS): Likewise.
2143 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2144 (ABOUT_TO_RETURN): Delete, as no longer used.
2145
83c31e7d
FN
21462002-11-07 Fernando Nasser <fnasser@redhat.com>
2147
2148 * printcmd.c (disassemble_command): Remove obsolete function.
2149 (_initialize_printcmd): Do not create disassemble command here.
2150 * cli/cli-cmds.c (disassemble_command): New function. Implements
2151 disassemble command.
2152 (init_cli_cmds): Create disassemble command here instead.
2153
0ec30a36
AC
21542002-11-07 Andrew Cagney <ac131313@redhat.com>
2155
2156 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2157
e600bd34
AC
21582002-11-07 Andrew Cagney <ac131313@redhat.com>
2159
2160 * regcache.h (regcache_cooked_read_using_offset_hack)
2161 (regcache_cooked_write_using_offset_hack): Delete declarations.
2162 (register_changed): Delete declaration.
2163 * regcache.c (regcache_cooked_read_using_offset_hack)
2164 (regcache_cooked_write_using_offset_hack): Delete functions.
2165 (cooked_xfer_using_offset_hack): Delete function.
2166 (register_changed): Delete function.
2167
568f8739
JB
21682002-11-07 Jim Blandy <jimb@redhat.com>
2169
2170 * macroscope.c: #include "complaints.h".
2171 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2172 but not in the macro table.
2173 * Makefile.in (macroscope.o): Record dependency.
2174
b0718b7b
JB
21752002-11-07 Joel Brobecker <brobecker@gnat.com>
2176
2177 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2178
2b9e5f3f
AC
21792002-11-07 Andrew Cagney <ac131313@redhat.com>
2180
2181 * regcache.c (deprecated_registers_fetched): Update.
2182 * regcache.h (deprecated_registers_fetched): Rename
2183 registers_fetched.
2184 * remote-vxsparc.c (vx_read_register): Update.
2185 * remote-vxmips.c (vx_read_register): Update.
2186 * remote-vx68.c (vx_read_register): Update.
2187 * irix5-nat.c (fetch_core_registers): Update.
2188 * mipsm3-nat.c (fetch_inferior_registers): Update.
2189 * sun3-nat.c (fetch_inferior_registers): Update.
2190 * symm-nat.c (fetch_inferior_registers): Update.
2191 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2192 (fetch_core_registers): Update.
2193 (fetch_kcore_registers): Update.
2194 * mips-nat.c (fetch_inferior_registers): Update.
2195 * corelow.c (get_core_registers): Update.
2196 * a68v-nat.c (fetch_inferior_registers): Update.
2197
e6e68f1f
JB
21982002-11-06 Joel Brobecker <brobecker@gnat.com>
2199
2200 Put in place the framework necessary for multiarching the hppa targets.
2201 * hppa-tdep.c (hppa_gdbarch_init): New function.
2202 (hppa_dump_tdep): New function.
2203 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2204 tdep structure dumper.
2205 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2206 until the multi-arching conversion has partially been completed.
2207
492254e9
AC
22082002-11-06 Andrew Cagney <ac131313@redhat.com>
2209
2210 * valops.c (value_assign): Merge lval_register case into
2211 lval_reg_frame_relative. Use frame_register and
2212 regcache_cooked_write instead of get_saved_register and
2213 write_register_bytes. After flushing the register cache, try to
2214 re-select the selected frame.
2215
8262ee23
AC
22162002-11-06 Andrew Cagney <ac131313@redhat.com>
2217
2218 * regcache.h (deprecated_register_valid): Rename register_valid.
2219 * regcache.c: Update.
2220 * ia64-aix-nat.c: Update.
2221 * i386gnu-nat.c: Update.
2222 * alpha-nat.c: Update.
2223 * sparc-nat.c: Update.
2224 * lynx-nat.c: Update.
2225 * remote-mips.c: Update.
2226
4facf7e8
JB
22272002-11-06 Joel Brobecker <brobecker@gnat.com>
2228
2229 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2230 to end of file, to be more consistent with the pratice followed
2231 by other targets.
2232
f9418c0f
AC
22332002-11-06 Andrew Cagney <ac131313@redhat.com>
2234
2235 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2236 (print_float_info): Print registers in float_reggroup.
2237 (print_vector_info): Print registers in vector_reggroup.
2238 (default_print_registers_info): When all, print registers in
2239 all_reggroup. Otherwize, print registers in general_reggroup.
2240 (registers_info): Rewrite. Add support for register groups.
2241 Eliminate a goto.
2242
3fe235a7
EZ
22432002-11-06 Elena Zannoni <ezannoni@redhat.com>
2244
2245 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2246 ages.
2247 (symtab_symbol_info): Remove eons old ifdeffed out code.
2248 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2249 command.
2250
ef944135
TR
22512002-11-06 Theodore A. Roth <troth@openavr.org>
2252
2253 * c-exp.y: Add missing semi-colons.
2254 * f-exp.y: Add missing semi-colons.
2255 * m2-exp.y: Add missing semi-colons.
2256 * p-exp.y: Add missing semi-colons.
2257 Add empty action to start rule to avoid a type clash error when
2258 building with bison >= 1.50.
2259
f8302a57
JB
22602002-11-06 Jim Blandy <jimb@redhat.com>
2261
2262 * macrotab.h (struct macro_source_file): Doc fix.
2263
6e382aa3
JJ
22642002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2265
2266 * varobj.c (child_exists, cplus_number_of_children): Change
2267 STREQ macro references to strcmp.
2268 (cplus_name_of_child): Change code to handle the fact that
2269 fields are not necessarily contiguous with regards to their
2270 access control. This is a fix for PR gdb/792.
2271
a216a322
AC
22722002-11-05 Andrew Cagney <ac131313@redhat.com>
2273
2274 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2275 * gdbarch.h, gdbarch.c: Regnerate.
2276 * frame.h (frame_register): Declare.
2277 * frame.c (frame_register): New function.
2278 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2279 GET_SAVED_REGISTER, otherwize call
2280 generic_unwind_get_saved_register.
2281 (frame_register_read): Use frame_register instead of
2282 get_saved_register.
2283
7d5b6fdd
EZ
22842002-11-05 Elena Zannoni <ezannoni@redhat.com>
2285
2286 From Jim Ingham <jingham@apple.com>:
2287 * event-top.c (gdb_disable_readline): New function.
2288 (_initialize_event_loop): Move comment.
2289
b7c64260
EZ
22902002-11-05 Elena Zannoni <ezannoni@redhat.com>
2291
2292 * event-loop.c (start_event_loop): Add comment.
2293 Update copyright.
2294
c2e1b8f2
AC
22952002-11-05 Andrew Cagney <ac131313@redhat.com>
2296
2297 * infcmd.c (default_print_registers_info): Do not call
2298 PRINT_REGISTER_HOOK.
2299
87647bb0
AC
23002002-11-05 Andrew Cagney <ac131313@redhat.com>
2301
2302 * sparc-tdep.c (sparc_print_register_hook): Make static.
2303 (sparc_print_registers_info): New function.
2304 (sparc_do_registers_info): New function.
2305 (sparclet_print_registers_info): New function.
2306 (sparclet_do_registers_info): New function.
2307 (do_sparc_print_registers_info): New function.
2308 (sparc_print_registers): New static function, clone of infcmd.c's
2309 default_print_registers_info.
2310 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2311 (sparclet_do_registers_info): Declare.
2312 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2313 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2314 Re-define.
2315 (sparc_do_registers_info): Declare.
2316 (PRINT_REGISTER_HOOK): Delete macro.
2317 (sparc_print_register_hook): Delete declaration.
2318
8155455b
DC
23192002-11-05 David Carlton <carlton@math.stanford.edu>
2320
2321 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2322 functions.
2323 (lookup_symbol_aux_local): New function.
2324 (lookup_symbol_aux_symtabs): New function.
2325 (lookup_symbol_aux_psymtabs): New function.
2326
29924310
DC
23272002-11-05 David Carlton <carlton@math.stanford.edu>
2328
2329 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2330 previous values of 'objfile' and 'block'.
2331
cc303028
PM
23322002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2333
2334 * values.c (value_change_enclosing_type): Set
2335 enclosing_type field correctly also for the case where
2336 more memory needs to be allocated.
2337
1d70089a
MK
23382002-11-03 Mark Kettenis <kettenis@gnu.org>
2339
f16a25ae
MK
2340 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2341 of puts_filtered.
2342
1d70089a
MK
2343 * i387-tdep.c (i387_print_float_info): Replace calls to
2344 register_read and deprecated_read_register_gen with calls to
2345 frame_register_read, and make the necessary adjustments to the
2346 surrounding code.
2347
7e20f3fb
AC
23482002-11-02 Andrew Cagney <ac131313@redhat.com>
2349
2350 * gdbarch.sh (register_reggroup_p): Allow default value.
2351 * gdbarch.h, gdbarch.c: Regenerate.
2352
192dbe33
AC
23532002-11-02 Andrew Cagney <ac131313@redhat.com>
2354
2355 * regcache.h: Add coment indicating replacements for deprecated
2356 functions.
2357
b59ff9d5
AC
23582002-11-02 Andrew Cagney <cagney@redhat.com>
2359
2360 * reggroups.h, reggroups.c: New files.
2361 * regcache.c: Include "reggroups.h".
2362 (enum regcache_dump_what): Add `regcache_dump_groups'.
2363 (regcache_dump): Contract size of the "Type" column. When
2364 specified, dump the register's groups.
2365 (maintenance_print_register_groups): New function.
2366 (_initialize_regcache): Add command `maint print register-groups'.
2367 * Makefile.in (COMMON_OBS): Add reggroups.o
2368 (SFILES): Add reggroups.c.
2369 (reggroups_h): Define.
2370 (regcache.o, gdbarch.o): Update dependencies.
2371 (reggroups.o): Specify dependencies.
2372 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2373 Add opaque declaration for `struct reggroup' in generated .h file.
2374 Include "reggroups.h" in generated .c file.
2375 gdbarch.h, gdbarch.c: Re-generate.
2376
4caf0990
AC
23772002-11-02 Andrew Cagney <cagney@redhat.com>
2378
2379 * regcache.h (deprecated_read_register_gen): Rename
2380 read_register_gen.
2381 (deprecated_write_register_gen): Rename write_register_gen.
2382 * i387-tdep.c: Update.
2383 * x86-64-linux-nat.c: Update
2384 * wince.c: Update.
2385 * thread-db.c: Update.
2386 * win32-nat.c: Update.
2387 * mips-tdep.c: Update.
2388 * d10v-tdep.c: Update.
2389 * cris-tdep.c: Update.
2390 * remote-sim.c: Update.
2391 * remote-rdi.c: Update.
2392 * remote-rdp.c: Update.
2393 * frame.c: Update.
2394 * target.c: Update.
2395 * blockframe.c: Update.
2396 * x86-64-tdep.c: Update.
2397 * xstormy16-tdep.c: Update.
2398 * sh-tdep.c: Update.
2399 * s390-tdep.c: Update.
2400 * rs6000-tdep.c: Update.
2401 * sparc-tdep.c: Update.
2402 * i386-tdep.c: Update.
2403 * dwarf2cfi.c: Update.
2404 * regcache.c: Update.
2405
7a7adcdf
JB
24062002-11-01 Joel Brobecker <brobecker@gnat.com>
2407
2408 New interix-specific files:
2409 * config/i386/nm-interix.h: New file.
2410 * config/i386/interix.mh: New file.
2411 * config/i386/interix.mt: New file.
2412 * i386-interix-nat.c: New file.
2413 * i386-interix-tdep.c: New file.
2414
bdcdd535
AC
24152002-11-01 Andrew Cagney <cagney@redhat.com>
2416
2417 * frame.h (deprecated_generic_get_saved_register): Rename
2418 generic_get_saved_register.
2419 * blockframe.c (deprecated_generic_get_saved_register): Update.
2420 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2421 (xstormy16_frame_saved_register): Update.
2422 * sh-tdep.c (sh_gdbarch_init): Update.
2423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2424 * ia64-tdep.c (ia64_get_saved_register): Update.
2425 * cris-tdep.c (cris_gdbarch_init): Update.
2426 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2427 * arm-tdep.c (arm_gdbarch_init): Update.
2428
2a4b7c45
DJ
24292002-10-31 Daniel Jacobowitz <drow@mvista.com>
2430
2431 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2432
ef17e74b
DJ
24332002-10-31 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2436 trampolines in sigaction.
2437
4904ba5b
AC
24382002-10-31 Andrew Cagney <cagney@redhat.com>
2439
2440 * h8300-tdep.c: Include "gdb_assert.h".
2441 (h8300_print_register): Add gdbarch, file and frame parameters.
2442 Use frame_read_unsigned_register to read the register's value.
2443 Use fprintf_filtered to display output.
2444 (h8300_print_registers_info): Replace h8300_do_registers_info.
2445 (h8300_gdbarch_init): Set print_registers_info.
2446
f908a0eb
AC
24472002-10-31 Andrew Cagney <cagney@redhat.com>
2448
2449 * frame.c (frame_read_unsigned_register): New function.
2450 (frame_read_signed_register): New function.
2451 * frame.h (frame_read_unsigned_register): Declare.
2452 (frame_read_signed_register): Declare.
2453
c5646e11
AC
24542002-10-31 Andrew Cagney <cagney@redhat.com>
2455
2456 * h8500-tdep.c (h8500_print_registers_info): New static function,
2457 clone of infcmd.c's default_print_registers_info.
2458 (h8500_do_registers_info): New funtion.
2459 (h8500_print_register_hook): Rename print_register_hook, make
2460 static.
2461
2462 * config/h8500/tm-h8500.h: Update copyright.
2463 (DEPRECATED_DO_REGISTERS_INFO): Define.
2464 (h8500_do_registers_info: Declare.
2465 (PRINT_REGISTER_HOOK): Delete macro.
2466 (print_register_hook): Delete function.
2467
0bdd672b
AC
24682002-10-31 Andrew Cagney <cagney@redhat.com>
2469
2470 * z8k-tdep.c (z8k_print_register_hook): Make static.
2471 (z8k_print_registers_info): New static function, clone of
2472 infcmd.c's default_print_registers_info.
2473 (z8k_do_registers_info): New function. Wrap
2474 z8k_print_registers_info.
2475 * config/z8k/tm-z8k.h: Update copyright.
2476 (PRINT_REGISTER_HOOK): Delete macro.
2477 (z8k_print_register_hook): Delete declaration.
2478 (DEPRECATED_DO_REGISTERS_INFO): Define.
2479 (z8k_do_registers_info): Declare.
2480
bf9c25dc
JB
24812002-10-30 Joel Brobecker <brobecker@gnat.com>
2482
2483 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2484 as this is already provided by value.h, and was actually causing
2485 a compilation error because of a conflict in parameter type
2486 declaration due to a missing const keyword.
2487 (low_text_segment_addres): Fix a compilation warning.
2488
2c665b51
DJ
24892002-10-29 Daniel Jacobowitz <drow@mvista.com>
2490
2491 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2492 registers without a name.
2493 (mips_linux_cannot_store_register): Don't store registers without
2494 a name.
2495
e70ea697
DC
24962002-10-28 David Carlton <carlton@math.stanford.edu>
2497
2498 * symtab.c (find_addr_symbol): Delete. (It was already commented
2499 out.)
2500 * symtab.h: Delete prototype for find_addr_symbol.
2501
903ad3a6
AC
25022002-10-26 Andrew Cagney <cagney@redhat.com>
2503
2504 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2505 DO_REGISTERS_INFO.
2506 gdbarch.h, gdbarch.c: Re-generate.
2507 * infcmd.c (default_print_registers_info): Update reference.
2508 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2509 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2510 * sh-tdep.c (sh_gdbarch_init): Ditto.
2511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2512 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2513
ab91194c
MK
25142002-10-26 Mark Kettenis <kettenis@gnu.org>
2515
e3033f15
MK
2516 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2517 cfi_init_extra_frame_info.
2518 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2519 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2520
b83b026c
MK
2521 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2522 target where necessary. Add more comments and remove the ones
2523 that don't provide any useful information.
2524
267bf4bb
MK
2525 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2526 deprecated_read_register_dummy with
2527 frame_unwind_unsigned_register.
2528
751f1375
MK
2529 * i386-tdep.c (i386_extract_struct_value_address): Use
2530 regcache_raw_read_unsigned instead of
2531 regcache_cooked_read_unsigned since we know that the register
2532 we're reading isn't a pseudo register. Rename variable 'val' into
2533 the more descriptive 'addr'.
2534
26abbdc4
MK
2535 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2536 (x86_64_push_return_address): Add comment.
2537 (x86_64_pop_frame): Make static.
2538 (examine_argument): Clarify comment.
2539 (x86_64_skip_prologue): Make prolog_expact variable static.
2540
9f1549cc
MK
2541 * dwarf2cfi.c: Fix some formatting problems.
2542 (context_cpy, read_encoded_pointer): Clarify comments.
2543
ab91194c
MK
2544 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2545 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2546 i386 target back into x86_64_gdbarch_init. Add some comments and
2547 remove meaningless ones.
2548
72367fb4
AC
25492002-10-25 Andrew Cagney <cagney@redhat.com>
2550
2551 * complaints.h (struct deprecated_complaint): Rename `struct
2552 complaint'.
2553 * complaints.c (complain): Update.
2554 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2555 incorrect comment indicating that "symfile.h" was being included
2556 for the `struct complaint' definition.
2557 * remote-vx.c: Update.
2558 * objc-lang.c: Update.
2559 * xcoffread.c: Update.
2560 * hpread.c: Update.
2561 * mdebugread.c: Update.
2562 * stabsread.c: Update.
2563 * dwarf2read.c: Update.
2564 * dwarfread.c: Update.
2565 * elfread.c: Update.
2566 * coffread.c: Update.
2567 * stabsread.h: Update.
2568 * dbxread.c: Update.
2569 * buildsym.c: Update.
2570 * gdbtypes.c: Update.
2571 * macrotab.c: Update.
2572
1f2baacc
MK
25732002-10-25 Mark Kettenis <kettenis@gnu.org>
2574
0c1a73d6
MK
2575 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2576 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2577 (x86_64_init_abi): ...new function.
2578
6aee4d54 2579 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2580 * i386v-nat.c: Include "i386-tdep.h".
2581
8f9cbe01
AC
25822002-10-25 Andrew Cagney <cagney@redhat.com>
2583
5f11f355
AC
2584 * gdbtypes.c (address_space_name_to_int): Update.
2585 (address_space_int_to_name): Update.
2586 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2587 multi-arch predicate.
2588 (address_class_name_to_type_flags): Ditto.
2589 * gdbarch.h, gdbarch.c: Re-generate.
2590
8f9cbe01
AC
2591 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2592
e8d96a5d
MH
25932002-10-24 Martin M. Hunt <hunt@redhat.com>
2594
2595 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2596
fe39c653
EZ
25972002-10-24 Elena Zannoni <ezannoni@redhat.com>
2598
2599 * symtab.h (INIT_SAL): Delete macro.
2600 (init_sal): Export.
2601 * symtab.c (init_sal): New function.
2602
2603 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2604 to init_sal function call.
2605 (find_sal_from_funcs_and_line): Ditto.
2606 (all_sals_for_line): Ditto.
2607 * breakpoint.c (create_internal_breakpoint): Ditto.
2608 (create_fork_vfork_event_catchpoint): Ditto.
2609 (create_exec_event_catchpoint): Ditto.
2610 (parse_breakpoint_sals): Ditto.
2611 (watch_command_1): Ditto.
2612 (handle_gnu_4_16_catch_command): Ditto.
2613 (clear_command): Ditto.
2614 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2615 * infcmd.c (run_stack_dummy): Ditto.
2616 * infrun.c (process_event_stop_test): Ditto.
2617 (check_sigtramp2): Ditto.
2618 (step_over_function): Ditto.
2619 * linespec.c (decode_line_2): Ditto.
2620 (decode_line_1): Ditto.
2621 * source.c (line_info): Ditto.
2622 * symtab.c (find_pc_sect_line): Ditto.
2623
baed091b
ML
26242002-10-24 Michal Ludvig <mludvig@suse.cz>
2625
2626 * dwarf2cfi.c (struct context)
2627 (struct context_reg): Moved to dwarf2cfi.h
2628 (context_alloc, frame_state_alloc, context_cpy):
2629 Made extern instead of static, removed prototypes.
2630 * dwarf2cfi.h (struct context)
2631 (struct context_reg): New, moved from dwarf2cfi.c
2632 (context_alloc, frame_state_alloc, context_cpy):
2633 New prototypes.
2634 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2635 Changed from static to extern.
2636 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2637 (LINUX_SIGCONTEXT_FP_OFFSET)
2638 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2639 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2640 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2641 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2642 set_gdbarch_*() calls now use x86-64 specific functions
2643 instead of DWARF2 CFI ones.
2644 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2645 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2646 (x86_64_init_extra_frame_info): New prototypes.
2647
c38da1af
DC
26482002-10-23 David Carlton <carlton@math.stanford.edu>
2649
2650 * linespec.c: #include "parser-defs.h".
2651 Delete prototype for find_template_name_end.
2652 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2653
fb9b6b35
JJ
26542002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2655
2656 * NEWS: add recent mi fixes.
2657 * varobj.c (struct varobj): Add new "updated" flag.
2658 (new_variable): Default "updated" flag to 0.
2659 (varobj_set_value): Set "updated" flag to 1 if value
2660 changes.
2661 (varobj_update): Check varobj "updated" flag before
2662 comparing old and refreshed values. Fix for
2663 PR gdb/702.
2664
8da065d5
DC
26652002-10-23 David Carlton <carlton@math.stanford.edu>
2666
2667 * parse.c (parse_exp_1): Use BLOCK_START.
2668 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2669 SYMBOL_BLOCK_VALUE.
2670 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2671
87f2f08c
DC
26722002-10-23 David Carlton <carlton@math.stanford.edu>
2673
2674 * symtab.c: Delete cplusplus_hint.
2675 Delete prototype for find_template_name_end.
2676
88cda038
EZ
26772002-10-23 Elena Zannoni <ezannoni@redhat.com>
2678
2679 * symtab.h: Update comment.
2680
2625d86c
MS
26812002-10-23 Michael Snyder <msnyder@redhat.com>
2682
2683 * printcmd.c (address_info): Restore quotes in output.
2684 * valops.c (value_of_local): Restore quotes in error message.
2685
9cc0d196
EZ
26862002-10-23 Elena Zannoni <ezannoni@redhat.com>
2687
2688 * symtab.c (symbol_demangled_name): New function.
2689 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2690 turning most of it into a function.
2691 (symbol_demangled_name): Export.
2692
19de93d0
MS
26932002-10-23 Michael Snyder <msnyder@redhat.com>
2694
2695 * valops.c (value_of_local): Restore quotes in error message.
2696
89aad1f9
EZ
26972002-10-23 Elena Zannoni <ezannoni@redhat.com>
2698
2699 * symtab.c (symbol_init_language_specific): New function.
2700 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2701 turning most of it into a function.
2702 (symbol_init_language_specific): Export.
2703
d9fa45fe
DC
27042002-10-23 David Carlton <carlton@math.stanford.edu>
2705
2706 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2707 (dwarf_attr_name): Ditto.
2708 (dwarf_type_encoding_name): Ditto.
2709 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2710 (process_die): Handle DW_TAG_namespace,
2711 DW_TAG_imported_declaration, DW_TAG_imported_module.
2712 (read_namespace): New function.
2713
1045b512
JB
27142002-10-22 Joel Brobecker <brobecker@gnat.com>
2715
2716 * configure.in: Define NEW_PROC_API on Interix too.
2717 * configure: Regenerate.
2718
27192002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2720
2721 * configure: Regenerate using the proper version of autoconf.
2722
3987b9d4
EZ
27232002-10-21 Elena Zannoni <ezannoni@redhat.com>
2724
2725 * findvar.c (read_var_value): Temporarily disable TLS code, until
2726 complete TLS support is added.
2727
9d774e44
EZ
27282002-10-21 Jim Blandy <jimb@redhat.com>
2729 Elena Zannoni <ezannoni@redhat.com>
2730
2731 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2732 for thread local storage locations.
2733 (struct symbol): Add objfile field.
2734 (SYMBOL_OBJFILE): Define.
2735 * dwarf2read.c (is_thread_local): New static variable.
2736 (new_symbol): If variable is in thread local fill in address class
2737 and objfile appropriately.
2738 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2739 stack operation.
2740 * printcmd.c (address_info): Print the information for thread
2741 local storage variable.
2742 * findvar.c (read_var_value): In case of thread local variable,
2743 defer to the target vector code to compute address.
2744
bc4a16ae
EZ
27452002-10-21 Elena Zannoni <ezannoni@redhat.com>
2746
2747 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2748 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2749
407caf07
EZ
27502002-10-21 Elena Zannoni <ezannoni@redhat.com>
2751
2752 * symtab.h (address_class): Rename
2753 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2754 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2755 * printcmd.c (address_info): Ditto.
2756 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2757
005328e3
MK
27582002-10-20 Mark Kettenis <kettenis@gnu.org>
2759
afdb036a
MK
2760 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2761 DBREG_DRX macro to acces debug registers.
2762
ca02e098
MK
2763 * Makefile.in (i386obsd-tdep.o): New target.
2764
03cc47f7
MK
2765 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2766 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2767
005328e3
MK
2768 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2769 * config/i386/obsd.mt: New file.
2770 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2771 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2772 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2773 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2774 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2775 * i386obsd-tdep.c: New file.
2776
9c96f9f2
AF
27772002-10-19 Adam Fedor <fedor@gnu.org>
2778
2779 * objc-exp.y (name_not_typename): Fix invalid comment.
2780
ce1ed485
MK
27812002-10-20 Mark Kettenis <kettenis@gnu.org>
2782
2783 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2784 to allocate partial syms and macro byte caches.
2785
1efc7aaa
DC
27862002-10-18 David Carlton <carlton@math.stanford.edu>
2787
2788 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2789
7e1d63ec
AF
27902002-10-18 Adam Fedor <fedor@gnu.org>
2791
2792 * stabsread.c (find_name_end): New function.
2793 (define_symbol): Use it.
2794
6e8d29a9
DJ
27952002-10-18 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2798 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2799 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2800 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2801
1efc7aaa 28022002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2803
2804 * symfile.h: Add opaque declaration for struct obstack.
2805 Declare obsavestring to take a const char *.
2806 * symfile.c (obsavestring): Make first argument a const char *.
2807
1aeae86e
AF
28082002-10-16 Adam Fedor <fedor@gnu.org>
2809
2810 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2811 names when matching breakpoints in current file.
2812
8b2dbe47
KB
28132002-10-16 Kevin Buettner <kevinb@redhat.com>
2814
2815 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2816 (read_tag_pointer_type): Add address class support.
2817 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2818 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2819 New methods.
2820 * gdbarch.h, gdbarch.c: Regenerate.
2821 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2822 (make_type_with_address_space, recursive_type_dump): Add address
2823 class support.
2824 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2825 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2826 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2827
74451869
KD
28282002-10-16 Klee Dienes <kdienes@apple.com>
2829
2830 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2831 to get the last character of a char[] buffer, not
2832 name[sizeof(vptr_name)-1].
2833
ff4cb3e8
AF
28342002-10-14 Adam Fedor <fedor@gnu.org>
2835
2836 * symtab.h: New objc_specific struct.
2837 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2838 (SYMBOL_DEMANGLED_NAME): Likewise.
2839
da2cf7e0
AF
28402002-10-14 Adam Fedor <fedor@gnu.org>
2841
2842 * symfile.c (init_filename_language_table): Add ObjC file extension.
2843
4a351cef
AF
28442002-10-14 Adam Fedor <fedor@gnu.org>
2845
2846 * utils.c (puts_filtered_tabular): New function.
2847 (fprintf_symbol_filtered): Get ObjC demangled name.
2848 * defs.h (puts_filtered_tabular): Declared.
2849
9750e763
KB
28502002-10-14 Kevin Buettner <kevinb@redhat.com>
2851
2852 * c-lang.h (c_type_print_varspec_prefix): Delete.
2853 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2854 ``need_post_space'' parameter. Adjust all callers.
2855
eee771c1
DJ
28562002-10-14 Daniel Jacobowitz <drow@mvista.com>
2857
2858 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2859 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2860 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2861 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2862
46c82446
AF
28632002-10-13 Adam Fedor <fedor@gnu.org>
2864
2865 * source.c (print_source_lines): Update comments.
2866
d069f99d
AF
28672002-10-13 Adam Fedor <fedor@gnu.org>
2868
2869 * valops.c (value_of_local): New function.
2870 (value_of_this): Use it.
2871 * value.h (value_of_local): Declared.
2872
53c551b7
AF
28732002-10-13 Adam Fedor <fedor@gnu.org>
2874
2875 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2876 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2877
eb392fbf
AF
28782002-10-12 Adam Fedor <fedor@gnu.org>
2879
2880 * language.c (binop_result_type): Add language_objc to case.
2881 (integral_type): Likewise.
2882 (character_type): Likewise.
2883 (string_type): Likewise.
2884 (boolean_type): Likewise.
2885 (structured_type): Likewise.
2886 (binop_type_check): Likewise.
2887
e2b23ee9
AF
28882002-10-11 Adam Fedor <fedor@gnu.org>
2889
2890 * printcmd.c (address_info): Print 'self' for ObjC.
2891
b01ab485
AF
28922002-10-11 Adam Fedor <fedor@gnu.org>
2893
2894 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2895 OP_SELF.
2896
806e6073
AF
28972002-10-11 Adam Fedor <fedor@gnu.org>
2898
2899 * language.h (CAST_IS_CONVERSION): Add language_objc.
2900
50f85cdf
AF
29012002-10-11 Adam Fedor <fedor@gnu.org>
2902
2903 * defs.h (enum language): Add language_objc.
2904
0d540cdf
KD
29052002-10-11 Klee Dienes <kdienes@apple.com>
2906
69266111 2907 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2908 * gdbcore.h (read_memory_typed_address): Add prototype.
2909 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2910 to read a value destined for a CORE_ADDR, not read_memory_integer.
2911 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2912 (f77_get_dynamic_lowerbound): Ditto.
2913
d5dc7960
MH
29142002-10-11 Martin M. Hunt <hunt@redhat.com>
2915
2916 * utils.c (string_to_core_addr): After turning string into
2917 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2918 which will do necessary sign-extension, etc.
2919
8343f86c
DJ
29202002-10-11 Daniel Jacobowitz <drow@mvista.com>
2921
2922 * c-exp.y (THIS): Delete token and grammar rule.
2923 (yylex): Don't return THIS.
2924 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2925 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2926 * demangle.c (cplus_markers): Update comment. Put '$'
2927 first. Remove CPLUS_MARKER.
2928 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2929 * jv-exp.y (THIS): Delete token and grammar rule.
2930 (yylex): Don't return THIS.
2931 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2932 * objc-exp.y (THIS): Delete token and grammar rule.
2933 (yylex): Don't return THIS.
2934 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2935 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2936 (read_member_functions): Likewise for opname.
2937 (read_tilde_fields): Use is_cplus_marker.
2938
2939 * defs.h (CPLUS_MARKER): Don't define.
2940 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2941 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2942 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2943 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2944 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2945
2946 * config/i386/tm-i386v4.h: Delete file.
2947 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2948 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2949 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2950 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2951 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2952 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2953 * config/i386/i386v4.mt (TM_FILE): Likewise.
2954 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2955
967c0d83
MM
29562002-10-10 Marko Mlinar <markom@opencores.org>
2957
2958 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2959 accidentially not commited 2002-10-09
2960 * gdbarch.h, gdbarch.c: Re-generate.
2961
f74fa174
MM
29622002-10-09 Marko Mlinar <markom@opencores.org>
2963
2964 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2965 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2966 * gdbarch.h, gdbarch.c: Re-generate.
2967
57349743
JB
29682002-10-08 Petr Sorfa <petrs@caldera.com>
2969
2970 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2971
2972 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2973 so we can work on more than one compilation unit at a time. This
2974 helps prepare GDB to handle inter-CU die references.
2975 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2976 the code to be defined before struct comp_unit_head.
2977 (comp_unit_head): Added new members - offset, cu_head,
2978 begin_die, next and dwarf2_abbrevs.
2979 (dwarf2_abbrevs): Removed single static var; now member of
2980 struct comp_unit_head.
2981 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2982 members.
2983 (psymtab_to_symtab_1): Changed to work with the new
2984 struct comp_unit_head.
2985 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2986 constructs the dwarf2_abbrevs[] inside the cu_header.
2987 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2988 dwarf2_abbrev table to clean up.
2989 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2990 handling of dwarf2_abbrevs inside the cu_header.
2991 (read_partial_die): Now supports the call to the new
2992 dwarf2_lookup_abbrev.
2993 (read_full_die): Now supports the call to the new
2994 dwarf2_lookup_abbrev.
2995
4092aadb
CF
29962002-10-06 Christopher Faylor <cgf@redhat.com>
2997
2998 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2999 insure that shell variables, such as "transformed_name" are propagated
3000 to later shell statements in rule.
3001
af0b2512
MK
30022002-10-06 Mark Kettenis <kettenis@gnu.org>
3003
3004 * config/i386/nm-i386sco.h: Add protection against
3005 multiple-inclusion. Include "i386/nm-i386v.h".
3006 (REGISTER_U_ADDR): Remove define.
3007 (i386_register_u_addr): Remove prototype.
3008
d6020d45
MS
30092002-10-04 Michael Snyder <msnyder@redhat.com>
3010
3011 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3012 before treating it as a single-step event.
3013
7248f48e
AF
30142002-10-03 Adam Fedor <fedor@gnu.org>
3015
3016 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3017 (objc_demangle): Remove assignment in if statements, Replace
3018 free with xfree.
3019 (add_msglist): Likewise.
3020 (end_msglist): Likewise.
3021 (complare_selectors): Likewise.
3022 (selectors_info): Likewise.
3023 (compare_classes): Likewise.
3024 (classes_info): Likewise.
3025 (print_object_command): Likewise.
3026 (find_objc_msgcall_submethod): Replace PTR with void *.
3027 * objc-lang.h: Remove check for __STDC__.
3028
52c6a6ac
JJ
30292002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3030
3031 * ui-out.h (ui_out_field_fmt_int): New prototype.
3032 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3033 of field width and alignment.
3034 * stack.c (print_frame_info_base): When printing frame level, use
3035 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3036 PR gdb/192
3037
7e3cec17
JJ
30382002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3039
3040 * MAINTAINERS: Add self to Write After Approval list.
3041
a58dd373
EZ
30422002-10-02 Elena Zannoni <ezannoni@redhat.com>
3043
3044 * infcmd.c (interrupt_target_command_wrapper): Delete.
3045 (interrupt_target_command): Make non static.
3046 (nofp_registers_info): Make static.
3047 * stack.c (return_command_wrapper): Delete.
3048 (return_command): Make non static.
3049
cee6ddeb
EZ
30502002-10-02 Elena Zannoni <ezannoni@redhat.com>
3051
3052 * event-top.c (gdb_setup_readline): New function. Code moved from
3053 _initialize_event_loop().
3054 (_initialize_event_loop): Call gdb_setup_readline().
3055
c4ed33b9
AC
30562002-10-02 Andrew Cagney <ac131313@redhat.com>
3057
3058 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3059 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3060 * gdbarch.h, gdbarch.c: Re-generate.
3061
cef4f5dd
DJ
30622002-10-02 Daniel Jacobowitz <drow@mvista.com>
3063
3064 Fix PR gdb/778
3065 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3066 before recursing.
3067 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3068 of fill_in_vptr_fieldno.
3069
36dc181b 30702002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 3071
36dc181b
EZ
3072 * inferior.h (registers_info, stepi_command, nexti_command,
3073 continue_command, interrupt_target_command): Export from infcmd.c.
3074 * frame.h (args_info, selected_frame_level_changed_hook,
3075 return_command): Export from stack.c.
3076 * v850ice.c (stepi_command, nexti_command, continue_command): use
3077 prototypes from inferior.h.
3078 * tracepoint.c (registers_info, args_info, locals_info): Use
3079 prototypes from frame.h and inferior.h.
3080 * Makefile.in (mi-main.o): Add dependency on frame.h.
3081
6f99cb26
AC
30822002-10-02 Andrew Cagney <ac131313@redhat.com>
3083
da3eff49
AC
3084 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3085 value in register 3 adjusted by ppc_gp0_regnum.
3086
6f99cb26
AC
3087 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3088
da615bee
MM
30892002-10-02 Marko Mlinar <markom@opencores.org>
3090
3091 * MAINTAINERS: Add myself to the Write After Approval list.
3092
d154bee2
AO
30932002-10-01 Alexandre Oliva <aoliva@redhat.com>
3094
62a49b2c
AO
3095 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3096 of the section for the N64 ABI, fixed.
3097
d154bee2
AO
3098 * config/mips/tm-irix6.h: Include solib.h.
3099
ed348acc
EZ
31002002-10-01 Elena Zannoni <ezannoni@redhat.com>
3101
3102 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3103 GNU operators.
3104
da0f9dcd
AC
31052002-10-01 Andrew Cagney <ac131313@redhat.com>
3106
3107 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3108 and that "mi0" syntax has been removed.
3109
bdf64bac
DC
31102002-09-30 David Carlton <carlton@math.stanford.edu>
3111
3112 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3113 * ppc-sysv-tdep.c: #include "gdb_string.h".
3114 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3115 pacify GCC.
3116
54c2a1e6
AC
31172002-10-01 Andrew Cagney <ac131313@redhat.com>
3118
3119 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3120 "vrsave"'s register number.
3121
cedea778
AC
31222002-09-30 Andrew Cagney <ac131313@redhat.com>
3123
3124 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3125 use frame_unwind_signed_register to obtain the PC.
3126 (mips_frame_chain): Handle a generic dummy frame.
3127 (mips_init_extra_frame_info): When a generic dummy frame, don't
3128 re-compute the frame base.
3129 (mips_pop_frame): Handle generic dummy frames.
3130 (mips_gdbarch_init): When generic dummy frames, set
3131 use_generic_dummy_frames, push_dummy_frame to
3132 generic_push_dummy_frame, pc_in_call_dummy to
3133 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3134 generic_save_dummy_frame_tos.
3135
68315eb8
AC
31362002-09-30 Andrew Cagney <ac131313@redhat.com>
3137
3138 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3139 against TOP when TOP was explictly set.
3140 (generic_push_dummy_frame): Set TOP to zero.
3141
3b8630c3
EZ
31422002-09-30 Elena Zannoni <ezannoni@redhat.com>
3143
3144 * event-loop.c (start_event_loop): Rename variable 'result' to
3145 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3146
28ee05e9
KS
31472002-09-30 Keith Seitz <keiths@redhat.com>
3148
3149 * gdb-events.sh (selected_thread_changed): New event.
3150 * gdb-events.c: Regenerated.
3151 * gdb-events.h: Regenerated.
3152
6eecb1c8
HPN
31532002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3154
3155 * MAINTAINERS: Add self to Write After Approval list.
3156
92df71f0
FN
31572002-09-30 Fernando Nasser <fnasser@redhat.com>
3158
3b8630c3
EZ
3159 * disasm.c: New file.
3160 * disasm.h: New file.
92df71f0
FN
3161 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3162 (compare_lines): Ditto.
3163 (dump_insns): Ditto.
3b8630c3
EZ
3164 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3165 argument.
92df71f0 3166 (do_assembly_only): Ditto.
3b8630c3
EZ
3167 (do_disassembly): Renamed to gdb_disassembly and moved to
3168 disasm.c. Sdded uiout argument.
3169 * Makefile.in: Add new files. Reorder SFILES list. Update
3170 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3171
0c22854d
AC
31722002-09-29 Andrew Cagney <ac131313@redhat.com>
3173
3174 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3175 bfd/elf64-alpha-fbsd.c.
3176
e67f2023
AC
31772002-09-29 Andrew Cagney <ac131313@redhat.com>
3178
3179 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3180 i386gnu-tdep.c.
3181
89396210
AC
31822002-09-29 Andrew Cagney <ac131313@redhat.com>
3183
3184 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3185 __FUNCTION__.
3186 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3187 function name.
3188 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3189 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3190 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3191 (S_msg_sig_post_reply): Ditto.
3192
7079c36c
CV
31932002-09-28 Corinna Vinschen <vinschen@redhat.com>
3194
89396210
AC
3195 * sh-tdep.c (sh_use_struct_convention): Use definition according
3196 to ABI.
7079c36c
CV
3197 (sh_push_arguments): Store in register with correct endianess.
3198 (sh_default_store_return_value): Ditto.
3199 (sh_gdbarch_init): Set sizeof long double to 8.
3200
975ac915
MK
32012002-09-27 Mark Kettenis <kettenis@gnu.org>
3202
3203 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3204 Fix some whitespace problems.
3205
9bbe19fb
DC
32062002-09-27 David Carlton <carlton@math.stanford.edu>
3207
3208 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3209 (mcore-tdep.o): Ditto.
3210 (ns32k-tdep.o): Ditto.
3211 (ns32knbsd-tdep.o): Ditto.
3212 (sh3-rom.o): Ditto.
3213 (vax-tdep.o): Ditto.
3214 * cris-tdep.c: #include "gdb_string.h"
3215 * mcore-tdep.c: Ditto.
3216 * ns32k-tdep.c: Ditto.
3217 * ns32knbsd-tdep.c: Ditto.
3218 * sh3-rom.c: Ditto.
3219 * vax-tdep.c: Ditto.
3220
43b2fdc7
DC
32212002-09-27 David Carlton <carlton@math.stanford.edu>
3222
3223 * config/djgpp/fnchange.lst: Add entries for
3224 gdb/testsuite/gdb.c++/m-static files.
3225
e8cfbbd9
JW
32262002-09-27 Jim Wilson <wilson@redhat.com>
3227
3228 * MAINTAINERS: Add myself to the Write After Approval list.
3229
43b2fdc7 32302002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
3231
3232 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3233
3234
9f3b7f07
AC
32352002-09-26 Andrew Cagney <ac131313@redhat.com>
3236
3237 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3238 frame.
3239
11269d7e
AC
32402002-09-26 Andrew Cagney <ac131313@redhat.com>
3241
3242 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3243 (rs6000_struct_return_address): Delete variable.
3244 (rs6000_store_struct_return): Update.
3245 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3246 deprecated_extract_struct_value_address.
3247 (rs6000_frame_align): New function.
3248 (rs6000_gdbarch_init): Set frame_align.
3249
f15ab4a7
AC
32502002-09-26 Andrew Cagney <ac131313@redhat.com>
3251
3252 From Grace Sainsbury <graces@redhat.com>:
3253 * Makefile.in (gdbtk-main.o): New target.
3254 (gdb.o): New target.
3255 (main_h): Define.
3256 (main.o): Update dependencies.
3257 (gdb$(EXEEXT)): Add gdb.o.
3258 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3259 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3260 (SUBDIR_GDBTK_CLEAN): Set.
3261 (install-gdbtk): Install the insight binary.
3262 (uninstall-gdbtk): New target.
3263 (all-gdbtk, clean-gdbtk): New rule.
3264 * top.c (use_windows): Default to zero.
3265 * main.c: Include "main.h".
3266 (main): Delete.
3267 (struct captured_main_args): Delete.
3268 (gdb_main): New function.
3269 * main.h: New file.
3270 * gdb.c: New File.
3271
e36180d7
AC
32722002-09-25 Andrew Cagney <cagney@redhat.com>
3273
3274 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3275 (frame_map_regnum_to_name): New function.
3276 (frame_map_name_to_regnum): New function.
3277 * frame.h (frame_map_name_to_regnum): Declare.
3278 (frame_map_regnum_to_name): Declare.
3279 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3280 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3281 * parse.c: Do not include "builtin-regs.h".
3282 (target_map_name_to_register): Delete function.
3283 (write_dollar_variable): Use frame_map_name_to_regnum.
3284 * parser-defs.h (target_map_name_to_register): Delete declaration.
3285 * expprint.c: Include "frame.h".
3286 (print_subexp): Use frame_map_regnum_to_name.
3287 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3288 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3289
8b69000d
AC
32902002-09-25 Andrew Cagney <ac131313@redhat.com>
3291
3292 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3293 wasn't saved, and the next innermost frame is a dummy, return the
3294 dummy frame's link register.
3295
046ca86a
JB
32962002-09-24 Jim Blandy <jimb@redhat.com>
3297
3298 Fix from Paul Breed:
3299 * main.c (captured_main): Add a `break' after the case for 'b'.
3300
94b66fa7
KS
33012002-09-24 Keith Seitz <keiths@redhat.com>
3302
3303 * varobj.c (c_type_of_child): Use get_target_type instead
3304 of TYPE_TARGET_TYPE.
3305
c214a6fd
FN
33062002-09-22 Fernando Nasser <fnasser@redhat.com>
3307
53cb0458
FN
3308 * source.c (get_current_or_default_source_symtab_and_line): Remove
3309 function.
3310 (set_default_source_symtab_and_line): New function. Attempts to
3311 determine a source file to list lines from if one is not currently
3312 defined.
3313 (get_current_source_symtab_and_line): Initialize sal.pc and
3314 sal.end fields.
3315 (set_current_source_symtab_and_line): Mark argument as const.
3316 * source.h: Update declarations and comments.
3317 * linespec.c (decode_line_1): Replace call to removed routine above.
3318 * stack.c (print_frame_info_base): Ditto.
3319 * cli/cli-cmds.c (edit_command): Ditto.
3320 (list_command): Ditto.
3321
33222002-09-22 Fernando Nasser <fnasser@redhat.com>
3323
d6020d45 3324 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3325 sal.pc and sal.end fields.
c214a6fd
FN
3326 (get_current_or_default_source_symtab_and_line): Ditto.
3327 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3328 so we do not cause a new source symtab to be searched for (reverting an
3329 unintentional change from the 2002-09-20 patch).
3330 * scm-lang.c (scm_unpac): Ditto.
3331
cc3b68a5
AC
33322002-09-21 Andrew Cagney <cagney@redhat.com>
3333
3334 * complaints.c (symfile_explanations): Remove new-line from
3335 ``isolated_message''.
3336 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3337 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3338
5835abe7
NC
33392002-09-20 Nick Clifton <nickc@redhat.com>
3340
3341 * NEWS: Announce that V850EA ISA is no longer supported.
3342 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3343
a15ef5f5
DC
33442002-09-20 David Carlton <carlton@math.stanford.edu>
3345
06ba1b39
DC
3346 * Makefile.in (c-lang.o): Correct dependencies.
3347 (utils.o): Gather dependencies.
3348 (charset.o): Move.
a15ef5f5
DC
3349 * c-lang.c: #include "gdb_string.h"
3350
87885426
FN
33512002-09-20 Fernando Nasser <fnasser@redhat.com>
3352
3353 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3354 * cli/cli-cmds.c (list_command): New function. Implements the new
3355 cli edit command.
3356 (_init_cli_cmds): Add new command definition.
3357 * gdb.1: Document edit command.
3358 * doc/gdb.texinfo: Document edit command.
3359
33602002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
3361
3362 * source.c: Make global variables current_source_symtab and
3363 current_source_line static.
3364 (list_command): Moved to cli/cli-cmds.c.
3365 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3366 (get_first_line_listed): New accessor function.
3367 (get_lines_to_list): New accessor function.
3368 (get_current_source_symtab_and_line): New function. Retrieves the
3369 position in the source code that we consider current.
3370 (get_current_or_default_source_symtab_and_line): New function.
3371 Like the above but attempts to determine a default position if one
3372 is not currently defined.
3373 (set_current_source_symtab_and_line): New function. Sets the source
3374 code position considered current and returns the previously set one.
3375 (clear_current_source_symtab_and_line): Reset stored information about
3376 a current source line.
3377 (_initialize_source): Remove registration for the "list" command and
3378 its alias.
3379 * source.h: Add declarations for the new functions above.
3380 * symtab.h: Remove declarations for the global variables mentioned
3381 above.
3382 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3383 obtain current source line.
3384 * linespec.c (decode_line_1): Ditto.
3385 * macroscope.c (default_macro_scope): Ditto.
3386 * scm-lang.c (scm_unpac): Ditto.
3387 * stack.c (print_frame_info_base): Ditto.
3388 * symfile.c (clear_symtab_users): Ditto.
3389 * symtab.c (decode_line_spec): Ditto.
3390 * cli/cli-cmds.c (list_command): Moved here from source.c.
3391 (ambiguous_line_spec): Moved here from source.c.
3392 (_init_cli_cmds): Add definition for "list" and its alias.
3393 * Makefile.in: Update dependencies.
3394
ddd216ea
CV
33952002-09-20 Corinna Vinschen <vinschen@redhat.com>
3396
3397 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3398 with what gcc thinks is correct.
3399
6d305052
CV
34002002-09-20 Corinna Vinschen <vinschen@redhat.com>
3401
3402 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3403 multiple register push instruction.
3404
234b45d4
KB
34052002-09-19 Jim Blandy <jimb@redhat.com>
3406
3407 Add support for distinct host and target character sets.
3408 * charset.c, charset.h: New files.
3409 * c-exp.y: #include "charset.h".
3410 (yylex): Convert character and string literals to the target
3411 character set, before returning them as the semantic value of the
3412 token.
3413 * c-lang.c: #include "charset.h".
3414 (c_emit_char): Use charset-specific methods to recognize
3415 characters with backslash escape forms, to decide which characters
3416 to print literally and which to print using numeric escape
3417 sequences, and to convert target characters to host characters
3418 before printing.
3419 * utils.c: #include "charset.h".
3420 (no_control_char_error): New function.
3421 (parse_escape): Use charset-specific methods to recognize
3422 backslash escapes, parse `control character' notation, and convert
3423 characters from the host character set to the target character set.
3424 * configure.in: Set the default host character set.
3425 Check where to find iconv, and what its argument types might be.
3426 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3427 * Makefile.in (SFILES): List charset.c.
3428 (COMMON_OBS): List charset.o.
3429 (charset.o): New rule.
3430 (charset_h): New header dependency variable.
3431 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3432 (LIBICONV): New variable, set by configure.
3433 (CLIBS): Include $(LIBICONV) here.
3434 * aclocal.m4, config.in, configure: Regenerated.
3435
525d6a61
JB
34362002-09-19 Joel Brobecker <brobecker@gnat.com>
3437
3438 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3439 bison 1.35 warning.
3440
3ed93867
RE
34412002-09-19 Richard Earnshaw <rearnsha@arm.com>
3442
3443 * gdb_mbuild.sh: New file.
3444
437666f8
AC
34452002-09-19 Andrew Cagney <ac131313@redhat.com>
3446
3447 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3448
389e51db
AC
34492002-09-18 Andrew Cagney <ac131313@redhat.com>
3450
3451 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3452 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3453 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3454 valops.c, value.h: Revert previous change.
3455
3b4efeaa
MS
34562002-09-18 Michael Snyder <msnyder@redhat.com>
3457
3458 Preliminary support for Objective-C:
3459 * defs.h (language_objc): New enum value.
3460 (puts_filtered_tabular): Declaration only, exported from utils.c.
3461 (skip_quoted): Delete, declared in completer.h.
3462 * c-exp.y: Include completer.h.
3463 * p-exp.y: Ditto.
3464 * jv-exp.y: Ditto.
3465 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3466 New operator enum values.
3467 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3468 * language.c (binop_result_type): Handle language_objc case.
3469 (integral_type, character_type, string_type, boolean_type,
3470 structured_type, binop_type_check): Ditto.
3471 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3472 (struct objc_specific): Add to general_symbol_info.
3473 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3474 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3475 * parser-defs.h (struct objc_class_str): New struct type.
3476 (start_msglist, end_msglist, add_msglist): Declaration only,
3477 exported from objc-lang.c.
3478 * value.h (value_of_local, value_nsstring,
3479 call_function_by_hand_expecting_type): Exported from valops.c.
3480 * valops.c (find_function_addr): Export.
3481 (call_function_by_hand_expecting_type): New function.
3482 (value_of_local): New function.
3483 * symfile.c (init_filename_language_table): Add ".m" extension
3484 for Objective-C.
3485 * utils.c (puts_filtered_tabular): New function.
3486 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3487 (set/show demangle): Extend help-string to refer to ObjC.
3488 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3489 * stabsread.c (symbol_reference_defined): Objective-C symbols
3490 may contain colons: make allowances when scanning stabs strings
3491 for colons.
3492 (objc_find_colon): New function.
3493 * printcmd.c (address_info): If language == objc then print
3494 "self" instead of "this".
3495 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3496 OP_NSSTRING, and OP_SELF.
3497 (prefixify_subexp): Ditto.
3498 * source.c (print_source_lines): Mention objc in comment.
3499 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3500 method names.
3501
b9caf505
AC
35022002-09-18 Andrew Cagney <ac131313@redhat.com>
3503
3504 * complaints.h: Update copyright.
3505 (struct complaints): Declare.
3506 (struct complaint): Make `message' constant.
3507 (internal_complaint): Declare.
3508 (complaint): Declare.
3509 (complaint_root): Delete declaration.
3510 (symfile_complaints): Delete declaration.
3511 (struct complaints): Add opaque declaration.
3512 (clear_complaints): Add a complaints parameter.
3513 * complaints.c: Update copyright.
3514 (enum complaint_series): Define.
3515 (complaint_root): Delete.
3516 (struct complaints): Define.
3517 (complaint_sentinel, symfile_complaint_book): New variables.
3518 (symfile_explanations, symfile_complaints): New variables.
3519 New variables.
3520 (get_complaints): New function.
3521 (vcomplaint): New function.
3522 (complaint): New function.
3523 (internal_complaint): New function.
3524 (complain): Call vcomplain with symfile_complaint.
3525 (clear_complaints): Rewrite.
3526 (_initialize_complaints): Use add_setshow_command.
3527 * Makefile.in (complaints.o): Update dependencies.
3528 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3529 to call to clear_complaints.
3530 (new_symfile_objfile, reread_symbols): Ditto.
3531 (oldsyms_complaint): Delete.
3532 (empty_symtab_complaint, unknown_option_complaint): Delete.
3533 (free_named_symtabs): Use complaint instead of complain.
3534
d2e6263c
MS
35352002-09-18 Michael Snyder <msnyder@redhat.com>
3536
5fb2031a
AC
3537 Contributed by Apple Computer, Inc. Merged with current sources
3538 by Adam Fedor <fedor@doc.com> [cagney].
3539
d2e6263c
MS
3540 * objc-lang.c: First clean-up round: comments, indentation.
3541 * objc-lang.h: Ditto.
3542 * objc-lang.y: Ditto.
3543
dec43320
AC
35442002-09-18 Andrew Cagney <ac131313@redhat.com>
3545
3546 * maint.c (maintenance_internal_error): Print the parameter as the
3547 error message.
3548 (maintenance_internal_warning): New function.
3549 (_initialize_maint_cmds): Add command `maint internal-warning'.
3550
3551 * defs.h (internal_warning, internal_vwarning): Declare.
3552 * utils.c (struct internal_problem): Define.
3553 (internal_vproblem): New function.
3554 (internal_warning): New function.
3555 (internal_vwarning): New function.
3556 (internal_warning_problem, internal_error_problem): New variables.
3557 (internal_verror): Just call internal_vproblem.
3558
b81654f1
MS
35592002-09-18 Michael Snyder <msnyder@redhat.com>
3560
3561 * objc-lang.c: New file, support for Objective-C.
3562 Preliminary check-in, not yet integrated into gdb.
3563 * objc-lang.h: New file.
3564 * objc-exp.y: New file.
3565
0542c381
AC
35662002-09-18 Andrew Cagney <ac131313@redhat.com>
3567
7bda5e4a
AC
3568 * infrun.c (signal_stop_update): Convert definition to ISO C.
3569 (signal_print_update): Ditto.
3570 (signal_pass_update): Ditto.
3571 * inflow.c (terminal_save_ours): Ditto.
3572
5247b418
AC
3573 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3574 comments.
3575
fc60962c
AC
3576 * config/djgpp/fnchange.lst: Handle name clashes between
3577 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3578 bfd/coff-tic80.c.
3579
0542c381
AC
3580 * i386-linux-tdep.h: Fix tipo.
3581
5b924b9b
AF
35822002-09-18 Adam Fedor <fedor@gnu.org>
3583
3584 * MAINTAINERS: Add myself to the Write After Approval list.
3585
5afc051b
JB
35862002-09-18 Jim Blandy <jimb@redhat.com>
3587
3588 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3589 texthigh and textlow to reader-specific structs caused
3590 objfile_relocate to miss them. This is fixable, but the work that
3591 the change was supposed to prepare GDB for never got done anyway.
3592
eb944380
DC
35932002-09-18 David Carlton <carlton@math.stanford.edu>
3594
3595 * MAINTAINERS: Alphabetize Write After Approval list.
3596
948e66d9
DJ
35972002-09-18 Daniel Jacobowitz <drow@mvista.com>
3598
3599 Fix PR gdb/709
3600 * values.c (value_static_field): Call read_var_value.
3601
dc604539
AC
36022002-09-18 Andrew Cagney <ac131313@redhat.com>
3603
3604 * valops.c (hand_function_call): Align the initial stack pointer
3605 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3606 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3607 return value.
3608 * mips-tdep.c (mips_frame_align): New function.
3609 (mips_gdbarch_init): Set frame_align.
3610 * gdbarch.sh (FRAME_ALIGN): New method.
3611 * gdbarch.h, gdbarch.c: Re-generate.
3612
cb7e422f
ML
36132002-09-18 Michal Ludvig <mludvig@suse.cz>
3614
3615 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3616 registers.
3617
a094c6fb
AC
36182002-09-17 Andrew Cagney <ac131313@redhat.com>
3619
3620 * NEWS: Mention that MIPS $fp behavior changed.
3621 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3622 reference to FP_REGNUM.
3623 (mipsnbsd_cannot_store_register): Ditto.
3624 * mips-linux-nat.c: Update copyright.
3625 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3626 (mips_linux_cannot_store_register): Ditto.
3627 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3628 * config/mips/tm-mips.h: Update copyright.
3629 (FP_REGNUM): Delete macro.
3630 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3631 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3632 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3633 (mips_r3041_reg_names, mips_r3051_reg_names)
3634 (mips_r3081_reg_names): Replace "fp" with "".
3635 Fix PR gdb/480.
3636
45cf40d1
TR
36372002-09-17 Theodore A. Roth <troth@verinet.com>
3638
3639 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3640 generic_read_register_dummy() (PR gdb/703).
3641 (avr_push_return_address): #if 0 out unused vars.
3642 (avr_gdbarch_init): Enable use of avr_push_return_address().
3643
c7e701b5
MS
36442002-09-17 Michael Snyder <msnyder@redhat.com>
3645
d76ba2a5 3646 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3647 RTE will take care of it.
3648
20bcf01c
AC
36492002-09-17 Andrew Cagney <ac131313@redhat.com>
3650
3651 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3652 invalid, return SP_REGNUM.
3653
009a9971 36542002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
3655
3656 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3657 point registers without sign extension.
3658
135c175f
AC
36592002-09-17 Andrew Cagney <cagney@redhat.com>
3660
3661 * blockframe.c (deprecated_read_register_dummy): Rename
3662 generic_read_register_dummy.
3663 * frame.c (frame_unwind_signed_register): New function.
3664 (frame_unwind_unsigned_register): New function.
3665 * frame.h (frame_unwind_signed_register): Declare.
3666 (frame_unwind_unsigned_register): Declare.
3667 (deprecated_read_register_dummy): Rename
3668 generic_read_register_dummy.
3669
3670 * h8300-tdep.c (h8300_frame_chain): Update.
3671 (h8300_frame_saved_pc): Update.
3672 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3673 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3674 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3675 (s390_frame_chain): Update.
3676 * v850-tdep.c (v850_find_callers_reg): Update.
3677 (v850_frame_saved_pc): Update.
3678 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3679 (m32r_find_callers_reg): Update.
3680 (m32r_frame_saved_pc): Update.
3681 * sh-tdep.c (sh_find_callers_reg): Update.
3682 (sh64_get_saved_pr): Update.
3683 (sh_init_extra_frame_info): Update.
3684 (sh_init_extra_frame_info): Update.
3685 (sh64_init_extra_frame_info): Update.
3686 (sh64_init_extra_frame_info): Update.
3687 * mcore-tdep.c (mcore_find_callers_reg): Update.
3688 (mcore_frame_saved_pc): Update.
3689 (mcore_init_extra_frame_info): Update.
3690 * i386-tdep.c (i386_frame_saved_pc): Update.
3691 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3692 (ia64_init_extra_frame_info): Update.
3693 (ia64_init_extra_frame_info): Update.
3694 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3695 * cris-tdep.c (cris_init_extra_frame_info): Update.
3696 * avr-tdep.c (avr_frame_chain): Update.
3697 (avr_init_extra_frame_info): Update.
3698 (avr_frame_saved_pc): Update.
3699 * arm-tdep.c (arm_find_callers_reg): Update.
3700 (arm_init_extra_frame_info): Update.
3701 (arm_frame_saved_pc): Update.
3702
a741e514
TT
37032002-09-17 Tom Tromey <tromey@redhat.com>
3704
3705 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3706 is "'".
3707
d1a8e808
CV
37082002-09-17 Corinna Vinschen <vinschen@redhat.com>
3709
3710 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3711 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3712 NEXT_PROLOGUE_INSN.
3713 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3714 NEXT_PROLOGUE_INSN.
3715
d9025a18
JB
37162002-09-16 Joel Brobecker <brobecker@gnat.com>
3717
3718 * osfsolib.c: Remove file, replaced by solib-osf.c.
3719 * Makefile.in: Remove compilation rules for osfsolib.c.
3720
1b2ef1b6
DC
37212002-09-16 David Carlton <carlton@math.stanford.edu>
3722
3723 * cp-valprint.c (cp_print_class_method): Correct args to
3724 check_stub_method_group.
3725
928e48af
CV
37262002-09-16 Corinna Vinschen <vinschen@redhat.com>
3727
3728 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3729 `set architecture'. Unify naming convention of functions.
3730 (h8300_skip_prologue): Improve prologue analysis.
3731 (h8300_push_arguments): Rewritten to more closely match GCC's
3732 bizarre argument-passing behavior, along with the comment describing
3733 said behavior.
3734 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3735 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3736 sim, remote-e7000.c, remote-hms.c and remote.c
3737
5e3397bb
MK
37382002-09-15 Mark Kettenis <kettenis@gnu.org>
3739
3740 * i386-tdep.c (gdb_print_insn_i386): Removed.
3741 (i386_print_insn): New function.
3742 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3743 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3744 tm_print_insn_info.
3745
f710f4fc
MK
37462002-09-14 Mark Kettenis <kettenis@gnu.org>
3747
3748 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3749 zero.
3750
db54fef4
CV
37512002-09-14 Corinna Vinschen <vinschen@redhat.com>
3752
3753 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3754 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3755 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3756
2becadee
CF
37572002-09-13 Christopher Faylor <cgf@redhat.com>
3758
3759 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3760
de17c821
DJ
37612002-09-13 Daniel Jacobowitz <drow@mvista.com>
3762
3763 * gdbtypes.c (check_stub_method): Make static.
3764 (check_stub_method_group): New function.
3765 * gdbtypes.h: Update prototypes.
3766 * cp-support.c: New file.
3767 * cp-support.h: New file.
3768
3769 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3770 (update_method_name_from_physname): New function.
3771 (read_member_functions): Correct method names for operators
3772 and v3 constructors/destructors. Separate v2 constructors and
3773 destructors.
3774 * Makefile.in (stabsread.o): Update dependencies.
3775 (SFILES): Add cp-support.c.
3776 (COMMON_OBS): Add cp-support.o.
3777 (cp_support_h, cp-support.o): Add.
3778
3779 * cp-valprint.c (cp_print_class_method): Call
3780 check_stub_method_group instead of check_stub_method. Remove
3781 extraneous QUITs.
3782 * p-valprint.c (pascal_object_print_class_method): Likewise.
3783 * valops.c (search_struct_method): Likewise.
3784 (find_method_list, value_struct_elt_for_reference): Likewise.
3785
e76cff22
AC
37862002-09-13 Andrew Cagney <cagney@redhat.com>
3787
3788 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3789 * gdbarch.h, gdbarch.c: Regenerate.
3790
905abb3f
AC
37912002-09-13 Andrew Cagney <ac131313@redhat.com>
3792
3793 * frame.c (find_saved_register): Delete function.
3794 * frame.h (find_saved_register): Delete declaration.
3795 Fix PR gdb/631.
3796
64159455
AC
3797Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3798
3799 * mips-tdep.c (read_next_frame_reg): Re-hack using
3800 frame_register_unwind.
3801
795e1e11
AC
3802Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3803
3804 * mips-tdep.c (mips_get_saved_register): Re-hack using
3805 frame_register_unwind.
3806
5720643c
JB
38072002-09-12 Joel Brobecker <brobecker@gnat.com>
3808
3809 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3810 vector. Will be useful for Interix.
3811 * gdbarch.h, gdbarch.c: Regenerate.
3812
3813 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3814 name of the malloc function by NAME_OF_MALLOC.
3815
3bada2a2
JB
38162002-09-12 Joel Brobecker <brobecker@gnat.com>
3817
3818 * value.h (find_function_in_inferior): Add const keyword to
3819 one of the parameters. Allows us to invoke this function with
3820 a const char *.
3821 * valops.c (find_function_in_inferior): Likewise.
3822
3db26b01
JB
38232002-09-12 Joel Brobecker <brobecker@gnat.com>
3824
3825 * exec.c (xfer_memory): Fix compilation warning with old versions
3826 of GCC.
3827 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3828
17c5ed2c
DC
38292002-09-12 David Carlton <carlton@math.stanford.edu>
3830
3831 * symtab.h: Run through gdb_indent.h.
3832 Add 2002 to Copyright year list.
3833
ecd1107e
AM
38342002-09-12 Alan Modra <amodra@bigpond.net.au>
3835
3836 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3837 mach constants.
3838 * MAINTAINERS: Add myself to write after approval list.
3839
e64f66d1
JB
38402002-09-11 J. Brobecker <brobecker@gnat.com>
3841
3842 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3843
f9395794
JB
38442002-09-11 J. Brobecker <brobecker@gnat.com>
3845
3846 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3847 Interix.
3848
1a303dec
MS
38492002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3850
3851 * procfs.c (do_detach): Clear current signal, not just fault.
3852 Corrects problem with breakpoint trap signal leaking to detached
3853 process on Tru64.
3854
c0219d42
MS
38552002-09-10 Michael Snyder <msnyder@redhat.com>
3856
3857 * buildsym.c (finish_block): Protect against null pointer.
3858
9d84ac84
AC
38592002-09-10 Andrew Cagney <cagney@redhat.com>
3860
3861 * infcmd.c (default_print_registers_info): Send all output to
3862 ``file'' instead of ``gdb_stdout''.
3863
77d8f2b4
MS
38642002-09-10 Michael Snyder <msnyder@redhat.com>
3865
3866 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3867 LONGEST, and use signed register read (addresses are sign-
3868 extended for mips).
3869
99656a61
SC
38702002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3871
3872 * event-loop.c (gdb_do_one_event): Make public.
3873 * event-loop.h (gdb_do_one_event): Declare.
3874
da12f4d8
JL
38752002-09-10 Jeff Law <law@redhat.com>
3876
3877 * infttrace.c (child_resume): Simplify and rework to avoid
3878 TT_PROC_CONTINUE.
3879
d0aee0c4
FF
38802002-09-09 Fred Fish <fnf@intrinsity.com>
3881
3882 * printcmd.c (print_scalar_formatted): "len" is the number of
3883 target bytes, NOT the number of target bits.
3884
7cb3ec5e
EZ
38852002-09-09 Elena Zannoni <ezannoni@redhat.com>
3886
3887 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3888 * top.c (init_main): Set rl_terminal_name.
3889
4dc81987
AS
38902002-09-08 Aidan Skinner <aidan@velvet.net>
3891
3892 * ada-lang.c (ada_array_bound, ada_type_match,
3893 _initialize_ada_language): Fix K&R definitions.
3894 * ada-tasks.c (get_current_task): Fix K&R definitions.
3895 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3896
842330b4
CF
38972002-09-07 Christopher Faylor <cgf@redhat.com>
3898
3899 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3900 Add XP.
3901
43156d82
MK
39022002-09-06 Mark Kettenis <kettenis@gnu.org>
3903
66da5fd8
MK
3904 * i386-tdep.c (i386_register_virtual_type,
3905 i386_register_convertible, i386_register_convert_to_virtual,
3906 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3907 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3908 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3909 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3910 Don't set push_arguments twice.
3911
4b218c18
MK
3912 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3913 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3914 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3915 sigtramp_end to NULL.
3916 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3917 defines.
3918 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3919
4cc314d5
MK
3920 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3921 whitespace.
3922
43156d82
MK
3923 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3924 * gdbarch.h, gdbarch.c: Re-generate.
3925 * blockframe.c (find_pc_sect_partial_function): Convert to use
3926 SIGTRAMP_START_P predicate.
3927
6672060b
MS
39282002-09-05 Michael Snyder <msnyder@redhat.com>
3929
a90c3637
MS
3930 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3931 generic_dummy_frame method and old method. Also distinguish
3932 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3933 (arm_extract_return_value): Use new regcache method.
a90c3637 3934
6672060b
MS
3935 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3936 adjustment that doesn't conform to the ABI.
3937 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3938 saved regcache, not from current regcache.
3939
299ffc64
AC
39402002-09-05 Andrew Cagney <ac131313@redhat.com>
3941
3942 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3943 * README: Update.
3944
a3a2ee65
JT
39452002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3946
3947 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3948 if arm_apcs_32 is false.
3949
2bc7eea9
AC
39502002-09-04 Andrew Cagney <ac131313@redhat.com>
3951
3952 GDB 5.3 branch created.
3953
8a55a7c5
TR
39542002-09-03 Theodore A. Roth <troth@verinet.com>
3955
3956 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3957 generic_unwind_get_saved_register.
3958
e26fb1d7
DC
39592002-09-03 David Carlton <carlton@math.stanford.edu>
3960
3961 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3962 argument (PR gdb/653). Update call to smash_to_method_type.
3963 (read_structure_scope): Update call to dwarf2_add_member_fn.
3964
30d52491
ML
39652002-09-03 Michal Ludvig <mludvig@suse.cz>
3966
3967 * x86-64-linux-tdep.c: Include gdb_string.h
3968 * x86-64-linux-nat.c: Ditto.
3969
06891d83
JT
39702002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3971
3972 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3973 when YYDEBUG is set to 1.
3974 * c-exp.y: Likewise.
3975 * f-exp.y: Likewise.
3976 * jv-exp.y: Likewise.
3977 * m2-exp.y: Likewise.
3978 * p-exp.y: Likewise.
3979
7d400e77
JT
39802002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3981
3982 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3983 dependency list.
3984 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3985 solib_svr4_fetch_link_map_offsets to
3986 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3987 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3988 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3989 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3990 solib-svr4.o, and solib-legacy.o.
3991 * config/i386/tm-nbsd.h: Include solib.h.
3992
704a27c4
JT
39932002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3994
3995 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3996 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3997 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3998 comment noting that this needs its own target configuration.
3999 * config/i386/nbsd.mt: New file.
4000 * config/i386/nbsdaout.mt: Remove.
4001 * config/i386/nbsdelf.mt: Ditto.
4002 * config/i386/tm-nbsdaout.h: Ditto.
4003
d66198e1
JT
40042002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4005
4006 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4007 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4008 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4009 tdep->sigtramp_end.
4010 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4011 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4012 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4013
3cac699e
JT
40142002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4015
4016 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4017 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4018 * i386-tdep.h (i386bsd_init_abi): New prototype.
4019 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4020 function declaration.
4021 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4022 for NetBSD-a.out or NetBSD-ELF.
4023 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4024 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4025 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4026 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4027 and nbsd-tdep.h.
4028 (i386nbsd_pc_in_sigtramp): New function.
4029 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4030 i386nbsd_pc_in_sigtramp.
4031 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4032 and i386nbsdelf_init_abi OS ABI handlers.
4033 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4034 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4035
7010ca0a
MK
40362002-09-02 Mark Kettenis <kettenis@gnu.org>
4037
4038 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4039 registers if the target really has them.
4040
6dd93b72
JT
40412002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4042
4043 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4044 than nbsd-tdep.h.
4045
2ca8ae21
JT
40462002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4047
4048 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4049 list.
4050 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4051 (alphanbsd_skip_sigtramp_frame): New functions.
4052 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4053 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4054 to alphanbsd_sigcontext_addr.
4055
3d9b49b0
JT
40562002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4057
4058 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4059 list.
4060 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4061 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4062 nbsd_pc_in_sigtramp.
4063 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4064 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4065 * nbsd-tdep.c: Include gdb_string.h.
4066 (nbsd_pc_in_sigtramp): New function.
4067 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4068 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4069 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4070 ppcnbsd_pc_in_sigtramp.
4071 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4072 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4073 shnbsd_pc_in_sigtramp.
4074 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4075 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4076 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4077
c860120c
PM
40782002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4079
4080 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4081 watchpoints to NULL.
4082 (insert_breakpoints): set val field of watchpoints if NULL.
4083
4084
c7612d53
JB
40852002-08-29 Jim Blandy <jimb@redhat.com>
4086
4087 * symtab.c (lookup_symbol_aux): In the cases where we find a
4088 minimal symbol of an appropriate name and use its address to
4089 select a symtab to read and search, use `name' (as passed to us)
4090 as the demangled name when searching the symtab's global and
4091 static blocks, not the minsym's name.
4092
66609862
KS
40932002-08-29 Keith Seitz <keiths@redhat.com>
4094
4095 * stack.c (print_frame_info_base): Always set current_source_symtab
4096 and current_source_line.
4097
151fefe2
JB
40982002-08-29 Donn Terry <donnte@microsoft.com>
4099
4100 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4101
bfb3754e
KS
41022002-08-28 Keith Seitz <keiths@redhat.com>
4103
4104 * stack.c (select_frame): Add FIXME concerning selected-frame
4105 events.
4106 (select_frame_command): Send selected-frame-level-changed
4107 event notification, but only if the level actually changed.
4108 (up_silently_base): Add selected-frame-level-changed event
4109 notification.
4110 (down_silently_base): Likewise.
4111
e822a2a0
AC
41122002-08-28 Andrew Cagney <ac131313@redhat.com>
4113
4114 * Makefile.in: Update dependencies for all gdb/*.c files.
4115
309367d4
TT
41162002-08-27 Tom Tromey <tromey@redhat.com>
4117
4118 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4119 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4120 Update dependencies.
4121 * i387-tdep.c: Include gdb_string.h.
4122 * osabi.c: Likewise.
4123 * i386-linux-nat.c: Likewise.
4124 * lin-lwp.c: Likewise.
4125 * ax-gdb.c: Likewise.
4126 * signals/signals.c: Likewise.
4127 * jv-valprint.c: Likewise.
4128 * p-lang.c: Likewise.
4129 * c-valprint.c: Likewise.
4130 * cp-abi.c: Likewise.
4131
e1507482
EZ
41322002-08-27 Elena Zannoni <ezannoni@redhat.com>
4133
4134 * cli/cli-script.h (copy_command_lines): Export.
4135 * breakpoint.c: Include cli/cli-script.h.
4136 * Makefile.in (breakpoint.o): Update dependencies.
4137
c6510018
MS
41382002-08-26 Michael Snyder <msnyder@redhat.com>
4139
4140 * breakpoint.c (insert_breakpoints): Protect all references
4141 to 'process_warning'. Shorten long lines.
4142
c2b8ed2c
MS
41432002-08-26 Joel Brobecker <brobecker@gnat.com>
4144
4145 * cli/cli-script.c (copy_command_lines): New function.
4146 * defs.h (copy_command_lines): Export.
4147 * testsuite/gdb.base/commands.exp: New tests for commands
4148 attached to a temporary breakpoint, and for commands that
4149 delete the breakpoint they are attached to.
4150
41512002-08-26 Michael Snyder <msnyder@redhat.com>
4152
4153 * breakpoint.c (bpstat_stop_status): Instead of copying the
4154 pointer to the breakpoint commands struct, make a new copy
4155 of the struct and point to that.
4156 (bpstat_clear): Free the commands struct.
4157 (bpstat_clear_actions): Free the commands struct.
4158 (bpstat_do_actions): Free the command actions. Also execute
4159 the local cleanups, instead of deleting them.
4160 (delete_breakpoint): Leave the commands field of the bpstat
4161 chain alone -- it will be freed later.
4162
64b84175
KB
41632002-08-26 Kevin Buettner <kevinb@redhat.com>
4164
4165 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4166 deleted in 2002-08-20 commit. This function is still used by
4167 ppc-linux-nat.c.
4168
55970da6
KS
41692002-08-26 Keith Seitz <keiths@redhat.com>
4170
4171 * gdb-events.sh: Add selected-frame-level-changed event.
4172 * gdb-events.c: Regenerated.
4173 * gdb-events.h: Regenerated.
4174
a790ad35
SC
41752002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4176
4177 Fix PR gdb/393:
4178 * inflow.c (terminal_save_ours): New function to save terminal
4179 settings.
4180 * inferior.h (terminal_save_ours): Declare.
4181 * target.c (debug_to_terminal_save_ours): New function.
4182 (cleanup_target): Defaults to_terminal_save_ours.
4183 (update_current_target): Inherit to_terminal_save_ours.
4184 (setup_target_debug): Set to_terminal_save_ours.
4185 * target.h (target_terminal_save_ours): New to save terminal settings.
4186 (target_ops): New member to_terminal_save_ours.
4187 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4188 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4189 * inftarg.c (init_child_ops): Likewise.
4190 * m3-nat.c (init_m3_ops): Likewise.
4191 * procfs.c (init_procfs_ops): Likewise.
4192 * wince.c (init_child_ops): Likewise.
4193 * win32-nat.c (init_child_ops): Likewise.
4194 * sol-thread.c (init_sol_thread_ops): Likewise.
4195
c00dcbe9
MK
41962002-08-26 Mark Kettenis <kettenis@gnu.org>
4197
3d7f4f49
MK
4198 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4199 use regcache_* functions.
4200 (i386_gdbarch_init): Set store_return_value instead of
4201 deprecated_store_return_value.
4202
c00dcbe9
MK
4203 * regcache.c (regcache_raw_write_signed,
4204 regcache_raw_write_unsigned): New functions.
4205 * regcache.h (regcache_raw_write_signed,
4206 regcache_raw_write_unsigned): New prototypes.
4207
0e0d15ca
AC
42082002-08-25 Andrew Cagney <ac131313@redhat.com>
4209
4210 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4211 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4212 source file dependencies. Cleanup corresponding generator rules.
4213
d3b22ed5
AC
42142002-08-25 Andrew Cagney <ac131313@redhat.com>
4215
4216 * regcache.h (register_offset_hack): Declare.
4217 (regcache_cooked_read_using_offset_hack): Declare.
4218 (regcache_cooked_write_using_offset_hack): Declare.
4219
4220 * regcache.c (register_offset_hack): New function.
4221 (regcache_cooked_read_using_offset_hack): New function.
4222 (regcache_cooked_write_using_offset_hack): New function.
4223 (regcache_dump): Check that the registers, according to their
4224 offset, are packed hard against each other.
4225 (cooked_xfer_using_offset_hack): New function.
4226
bb425013
AC
42272002-08-25 Andrew Cagney <ac131313@redhat.com>
4228
4229 * regcache.c (struct regcache_descr): Add field register_type.
4230 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4231 in as a parameter
4232 (init_regcache_descr): Initialize register_type. Pass the descr
4233 to init_legacy_regcache_descr. Use register_type instead of
4234 REGISTER_VIRTUAL_TYPE.
4235 (register_type): New function.
4236 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4237 * regcache.h (register_type): Declare.
4238
d0403e00
AC
42392002-08-25 Andrew Cagney <ac131313@redhat.com>
4240
4241 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4242 instead of deprecated_store_return_value. Fix fallout from
4243 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4244
0ed04cce
AC
42452002-08-25 Andrew Cagney <ac131313@redhat.com>
4246
4247 * regcache.c (max_register_size): New function.
4248 (init_legacy_regcache_descr): Ensure that max_register_size is
4249 large enough for REGISTER_VIRTUAL_SIZE.
4250 * regcache.h (max_register_size): Declare.
4251
46d79c04
AC
42522002-08-24 Andrew Cagney <ac131313@redhat.com>
4253
4254 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4255 store_return_value.
4256 (e500_extract_return_value): Change type of valbuf pointer to
4257 void.
4258
853c7bd0
MK
42592002-08-24 Mark Kettenis <kettenis@gnu.org>
4260
cd87e769
MK
4261 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4262 workaround.
4263
853c7bd0
MK
4264 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4265 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4266 long long) to prevent compiler warning on 64-bit systems.
4267
ebba8386
AC
42682002-08-23 Andrew Cagney <cagney@redhat.com>
4269
4270 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4271 (DEPRECATED_STORE_RETURN_VALUE): New method.
4272 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4273 * gdbarch.h, gdbarch.c: Re-generate.
4274
4275 * values.c (set_return_value): Pass current_regcache to
4276 STORE_RETURN_VALUE.
4277 * arch-utils.h (legacy_store_return_value): Declare.
4278 * arch-utils.c (legacy_store_return_value): New function.
4279 (legacy_extract_return_value): Update parameters.
4280
4281 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4282 STORE_RETURN_VALUE.
4283 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4284 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4285 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4286 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4287 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4288 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4289 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4290 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4291 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4292 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4293
4294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4295 * i386-tdep.c (i386_extract_return_value): Update.
4296 * arch-utils.c (legacy_extract_return_value): Update.
4297 * frv-tdep.c (frv_gdbarch_init): Update.
4298 * cris-tdep.c (cris_gdbarch_init): Update.
4299 * d10v-tdep.c (d10v_gdbarch_init): Update.
4300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4301 * m68k-tdep.c (m68k_gdbarch_init): Update.
4302 * mcore-tdep.c (mcore_gdbarch_init): Update.
4303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4304 * s390-tdep.c (s390_gdbarch_init): Update.
4305 * sparc-tdep.c (sparc_gdbarch_init): Update.
4306 * sh-tdep.c (sh_gdbarch_init): Update.
4307 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4308 * v850-tdep.c (v850_gdbarch_init): Update.
4309 * avr-tdep.c (avr_gdbarch_init): Update.
4310 * ia64-tdep.c (ia64_gdbarch_init): Update.
4311 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4312 * vax-tdep.c (vax_gdbarch_init): Update.
4313 * alpha-tdep.c (alpha_gdbarch_init): Update.
4314 * arm-tdep.c (arm_gdbarch_init): Update.
4315 * mips-tdep.c (mips_gdbarch_init): Update.
4316 * i386-tdep.c (i386_gdbarch_init): Update.
4317
5bd8c6d0
AC
43182002-08-23 Andrew Cagney <ac131313@redhat.com>
4319
4320 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4321 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4322
e73e1724
MK
43232002-08-24 Mark Kettenis <kettenis@gnu.org>
4324
4325 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4326 problems.
4327
3e6564e1
JB
43282002-08-23 Joel Brobecker <brobecker@gnat.com>
4329
4330 * infrun.c (handle_inferior_event): Move a comment outside of a
4331 function call, in order to avoid indent reformatting this part
4332 of the code in an unreadable way.
4333
81d0cc19
GS
43342002-08-23 Grace Sainsbury <graces@redhat.com>
4335
4336 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4337 when breakpoints fail. Move general breakpoint error messages to
4338 insert_breakpoints.
4339 * breakpoint.c (insert_breakpoints): Change warnings when
4340 breakpoints are nto inserted to specify the type. Remove call to
4341 memory_error when hardware breakpoints can't be inserted. Remove
4342 multiple calls to warning so all messages are sent to the user at
4343 once.
4344 (delete_breakpoints): Make insert error messsages more explicit.
4345
17574093
DJ
43462002-08-23 Daniel Jacobowitz <drow@mvista.com>
4347
4348 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4349 gdbserver/ChangeLog.
4350
8acc2935
MK
43512002-08-23 Mark Kettenis <kettenis@gnu.org>
4352
dfe01d39
MK
4353 * i386-tdep.c: Include "objfiles.h".
4354 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4355 skip_trampoline_code.
4356 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4357 (CPLUS_MARKER): Define to '.'.
4358
8acc2935
MK
4359 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4360 member.
4361 (linux_corefile_thread_callback): Increase args->num_notes.
4362 (linux_make_note_section): Initialize thread_args.num_notes, and
4363 use it to determine whether notes for any threads were created.
4364
151fefe2 43652002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
4366
4367 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4368 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4369 and PCUNKILL.
4370 (write_with_trace): Conditionalize out the switch branch handling
4371 PCSHOLD if the corresponding macro is not defined. Likewise for
4372 PRSABORT and PRSTOP.
4373 This change will be needed by the Interix port.
4374
e1507482
EZ
43752002-08-22 Elena Zannoni <ezannoni@redhat.com>
4376
4377 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4378 write_register wherever possible instead of manipulating the
4379 register bytes directly.
4380 Assign VALUE_CONTENTS to a variable and use that.
4381 The GPR numbers are now dependent on the architecture.
4382
96ff0de4
EZ
43832002-08-22 Elena Zannoni <ezannoni@redhat.com>
4384
4385 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4386 ev_offset fields.
4387 (skip_prologue): Add support for BookE/e500 instructions.
4388 (e500_extract_return_value): New function.
4389 (frame_get_saved_regs): Add support for saving ev registers and
4390 pseudo gpr's.
4391 (e500_store_return_value): New function.
4392 (rs6000_gdbarch_init): Move up default intializations of
4393 deprecated_extract_return_value and store_return_value. Overwrite
4394 init of store_return_value with e500 specific version.
4395 Set extract_return_value for e500.
4396
fbefca5b
EZ
43972002-08-22 Elena Zannoni <ezannoni@redhat.com>
4398
4399 * blockframe.c (generic_call_dummy_register_unwind): Use
4400 regcache_cooked_read to catch cases in which the variable is
4401 stored in a pseudo register.
4402
4d210288
AC
44032002-08-22 Andrew Cagney <cagney@redhat.com>
4404
4405 * NEWS: Mention that the i960 has been made obsolete.
4406 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4407 i960-tdep.c
4408 (remote-nrom.o): Obsolete target.
4409 (remote-nindy.o, i960-tdep.o): Ditto.
4410 * remote-nrom.c: Make file obsolete.
4411 * remote-nindy.c, remote-vx960.c: Ditto.
4412 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4413 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4414 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4415 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4416 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4417 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4418 i960-*-vxworks* obsolete.
4419 * MAINTAINERS: Note that the i960 is obsolete.
4420
6c0c456d
CV
44212002-08-21 Corinna Vinschen <vinschen@redhat.com
4422
4423 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4424 detach to allow reinitialization.
4425
9f9d12b3
AC
44262002-08-22 Andrew Cagney <ac131313@redhat.com>
4427
4428 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4429 attempt).
4430
ebeb39fe
JB
44312002-08-22 Jim Blandy <jimb@redhat.com>
4432
4433 * coffread.c (coff_symfile_read): Don't try to read the line
4434 number table from disk if the image file doesn't have a symbol
4435 table; we'll never actually look at the info anyway, and Windows
4436 ships DLL's with bogus file offsets for the line number data.
4437
5bf1c677
EZ
44382002-08-21 Elena Zannoni <ezannoni@redhat.com>
4439
4440 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4441 an e500 executable.
4442
71b8ef93
MS
44432002-08-21 Michael Snyder <msnyder@redhat.com>
4444
4445 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4446 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4447 (DEFAULT_MIPS_TYPE): Delete unused macro.
4448 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4449 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4450
d174216d
JB
44512002-08-21 Jim Blandy <jimb@redhat.com>
4452
4453 * valops.c (value_cast): Simplify and correct logic for doing a
4454 static cast from a pointer to a base class to a pointer to a
4455 derived class.
4456
0ab7a791
AC
44572002-08-21 Andrew Cagney <ac131313@redhat.com>
4458
4459 * infcmd.c (default_print_registers_info): Replace
4460 do_registers_info.
4461 (registers_info): Use gdbarch_print_registers_info instead of
4462 DO_REGISTERS_INFO.
4463 * inferior.h (default_print_registers_info): Replace
4464 do_registers_info.
4465 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4466 (DO_REGISTERS_INFO): Change to a predicate function.
4467 * gdbarch.h, gdbarch.c: Regenerate.
4468
e23792cc
KS
44692002-08-21 Keith Seitz <keiths@redhat.com>
4470
4471 * gdb-events.sh: Add target-changed event.
4472 * gdb-events.c: Regenerated.
4473 * gdb-events.c: Regenerated.
4474 * valops.c (value_assign): Add target-changed event notification
4475 to inlval_register, lval_memory, and lval_reg_frame_relative.
4476
9fb14e79
JB
44772002-08-21 Joel Brobecker <brobecker@gnat.com>
4478
4479 * NEWS: Add an entry regarding the improvement of the next/step
4480 operation on Alpha Tru64 multi-processor machines.
4481
6d39a69f
AC
44822002-08-21 Andrew Cagney <ac131313@redhat.com>
4483
72acd513
AC
4484 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4485 directores.
342af04b 4486 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4487 * Makefile.in (install-gdbtk): Move to install section.
4488 (rdi-share/libangsd.a): Move to end of file.
4489
fa5f27c7
AC
44902002-08-19 Andrew Cagney <ac131313@redhat.com>
4491
4492 * frame.c (frame_register_unwind): When a register, set addrp to
4493 the register's byte.
4494
5a89d8aa
MS
44952002-08-20 Michael Snyder <msnyder@redhat.com>
4496
4497 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4498 used locally, so move them from the target machine header to here.
4499 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4500 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4501 Make static.
4502 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4503
822e978b
AC
45042002-08-20 Andrew Cagney <cagney@redhat.com>
4505
4506 * NEWS: Mention that the Apollo line was made obsolete.
4507 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4508 m68*-hp-hpux* obsolete.
4509 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4510 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4511 * buildsym.c (make_blockvector): Make static.
4512 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4513 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4514 (ALLDEPFILES): Remove dstread.c.
4515 (dstread.o): Obsolete make rule.
4516 * dstread.c: Makefile obsolete.
4517 * dst.h: Ditto.
4518 * config/m68k/hp300hpux.mt: Ditto.
4519 * config/m68k/hp300hpux.mh: Ditto.
4520 * config/m68k/hp300bsd.mt: Ditto.
4521 * config/m68k/hp300bsd.mh: Ditto.
4522 * config/m68k/apollo68b.mt: Ditto.
4523 * config/m68k/apollo68v.mh: Ditto.
4524 * config/m68k/apollo68b.mh: Ditto.
4525
e41b17f0
MS
45262002-08-20 Michael Snyder <msnyder@redhat.com>
4527
4528 * mips-tdep.c (mips_in_return_stub): Make static.
4529 (mips_gdbarch_init): Set in_solib_return_trampoline.
4530 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4531
d50355b6
MS
45322002-08-20 Michael Snyder <msnyder@redhat.com>
4533
4534 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4535 * gdbarch.c, gdbarch.h: Regenerate.
4536 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4537 Add.
4538 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4539
757a7cc6
MS
45402002-08-20 Michael Snyder <msnyder@redhat.com>
4541
4542 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4543 (mips_gdbarch_init): Set skip_trampoline_code,
4544 in_solib_call_trampoline.
4545 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4546 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4547
c8001721
EZ
45482002-08-20 Elena Zannoni <ezannoni@redhat.com>
4549
4550 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4551
4552 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4553 vector type for ev registers.
4554 (e500_pseudo_register_read): New function.
4555 (e500_pseudo_register_write): New function.
4556 (e500_dwarf2_reg_to_regnum): New function.
4557 (PPC_UISA_NOFP_SPRS): New macro.
4558 (PPC_EV_REGS): New macro.
4559 (PPC_GPRS_PSEUDO_REGS): New macro.
4560 (registers_e500): New register set for e500.
4561 (variants): Add e500 variant.
4562 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4563 before setting architectural dependent variations. Initialize ev
4564 registers numbers. Add case for e500 architecture. Set the
4565 number of pseudo registers.
4566
64366f1c
EZ
45672002-08-20 Elena Zannoni <ezannoni@redhat.com>
4568
4569 * rs6000-tdep.c: Clean up comments.
4570
7e78f0ca
AC
45712002-08-20 Andrew Cagney <cagney@redhat.com>
4572
4573 * h8300-tdep.c: Re-indent file.
4574
697f7479
JB
45752002-08-20 Jim Blandy <jimb@redhat.com>
4576
4577 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4578 default for this.
697f7479 4579
e86ae29f
KS
45802002-08-20 Keith Seitz <keiths@redhat.com>
4581
4582 * breakpoints.c (watch_command_1): Use internal breakpoint
4583 when setting a watchpoint_scope breakpoint.
4584
216b504f
EZ
45852002-08-20 Elena Zannoni <ezannoni@redhat.com>
4586
4587 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4588 (build_builtin_type_vec64i): Ditto.
4589 (build_builtin_type_vec128): Ditto.
4590 (build_builtin_type_vec128i): Ditto.
4591
f7ab6ec6
MS
45922002-08-19 Michael Snyder <msnyder@redhat.com>
4593
4594 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4595 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4596 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4597 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4598 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4599 CALL_DUMMY_ADDRESS): Delete.
4600 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4601 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4602 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4603 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4604 push_return_address.
4605 (mips_register_raw_size, mips_eabi_use_struct_convention,
4606 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4607 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4608 mips_init_extra_frame_info, mips_eabi_push_arguments,
4609 mips_n32n64_push_arguments, mips_push_return_address,
4610 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4611 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4612
b5d1566e
MS
46132002-08-19 Michael Snyder <msnyder@redhat.com>
4614
4615 * mips-tdep.c (mips_frame_num_args): New function.
4616 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4617 frame_saved_pc, frame_args_address, frame_locals_address,
4618 frame_num_args, and frame_args_skip.
4619 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4620 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4621 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4622 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4623
2f1488ce
MS
46242002-08-20 Michael Snyder <msnyder@redhat.com>
4625
4626 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4627 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4628 * mips-tdep.c (mips_store_struct_return): New function.
4629 (mips_extract_struct_value_address): New function.
4630 (mips_gdbarch_init): Set store_struct_return and
4631 extract_struct_value_address.
4632
41ff2da1
DC
46332002-08-20 David Carlton <carlton@math.stanford.edu>
4634
4635 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4636 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4637 (read_file_scope): Check that line_header is nonzero before
4638 decoding macro information.
4639
e5451d58
MK
46402002-08-20 Mark Kettenis <kettenis@gnu.org>
4641
4642 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4643 flag the general-purpose registers as floating-point on targets
4644 that don't support the floating-point registers.
4645
4a6daafa
EZ
46462002-08-20 Elena Zannoni <ezannoni@redhat.com>
4647
4648 * rs6000-tdep.c (altivec_register_p): Delete.
4649 (rs6000_do_altivec_registers): Delete.
4650 (rs6000_altivec_registers_info): Delete.
4651 (rs6000_do_registers_info): Delete.
4652 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4653 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4654
ab4327e0
EZ
46552002-08-20 Elena Zannoni <ezannoni@redhat.com>
4656
4657 * infcmd.c (do_registers_info): Print vector registers in hex
4658 format only.
4659 (print_vector_info): Check that printing registers
4660 makes sense.
4661 (print_float_info): Ditto.
4662
cb1d2653
AC
46632002-08-20 Andrew Cagney <ac131313@redhat.com>
4664
4665 * mips-tdep.c (mips_gdbarch_init): Update.
4666 (mips_o32_extract_return_value): Rewrite.
4667 (mips_o32_store_return_value): Rewrite.
4668 (mips_o32_xfer_return_value): New function.
4669 (mips_xfer_register): Tweak debug print message. Allow for
4670 buf_offset when dumping the value transfered.
4671
dfc3d9b2
AC
46722002-08-20 Andrew Cagney <ac131313@redhat.com>
4673
4674 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4675 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4676 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4677 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4678 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4679
7807aa61
MS
46802002-08-14 Michael Snyder <msnyder@redhat.com>
4681
4682 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4683
489461e2
EZ
46842002-08-19 Elena Zannoni <ezannoni@redhat.com>
4685
4686 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4687 register.
4688 (P): New macro to define a register as a pseudo register.
4689 (R, R4, R8, R16, FR32, R64, R0): Updated.
4690 (struct variant): Add new fields for number of pseudo registers
4691 and number of total registers.
4692 (tot_num_registers): New macro replacing....
4693 (num_registers): ...deleted macro.
4694 (num_registers): New function.
4695 (num_pseudo_registers): New function.
4696 (variants): Update all variants to intialize new fields correctly.
4697 Postpone initialization of number of pseudo regs and real regs.
4698 (init_variants): New function.
4699 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4700 registers offsets.
4701
fcaffe4c
DC
47022002-08-19 David Carlton <carlton@math.stanford.edu>
4703
2c2738a0
DC
4704 * valops.c (search_struct_field): Change error message to treat
4705 return value of 0 from value_static_field as meaning that field is
4706 optimized out.
4707 (value_struct_elt_for_reference): Ditto.
4708 * values.c (value_static_field): Treat an unresolved location the
4709 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4710 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4711 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4712 * MAINTAINERS: Add self to Write After Approval list.
4713
88658117
AC
47142002-08-19 Andrew Cagney <ac131313@redhat.com>
4715
4716 * mips-tdep.c (mips_xfer_register): New function.
4717 (mips_n32n64_extract_return_value): Rewrite.
4718 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4719 instead of deprecated_extract_return_value.
4720
21283beb
EZ
47212002-08-19 Elena Zannoni <ezannoni@redhat.com>
4722
4723 * rs6000-tdep.c (TDEP): Delete macro.
4724 (branch_dest): Replace use of TDEP macro with its body.
4725 (rs6000_pop_frame): Ditto.
4726 (rs6000_push_arguments): Ditto.
4727 (rs6000_skip_trampoline_code): Ditto.
4728 (rs6000_frame_saved_pc): Ditto.
4729 (rs6000_frame_chain): Ditto.
4730 (rs6000_register_name): Ditto.
4731 (rs6000_register_byte): Ditto.
4732 (rs6000_register_raw_size): Ditto.
4733 (rs6000_register_virtual_type): Ditto.
4734 (rs6000_register_convertible): Ditto.
4735 (rs6000_convert_from_func_ptr_addr): Ditto.
4736
bf072999
DJ
47372002-08-19 Daniel Jacobowitz <drow@mvista.com>
4738
4739 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4740 conditionally.
4741 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4742 MIPS_LINUX_JB_ELEMENT_SIZE.
4743 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4744 for MAX_REGISTER_RAW_SIZE arrays.
4745 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4746 MIPS_LINUX_JB_ELEMENT_SIZE.
4747
9b949a49
PM
47482002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4749
4750 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4751
6d3e79c6
AS
47522002-08-19 Aidan Skinner <aidan@velvet.net>
4753
4754 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4755 ada-valprint.c ada-tasks.c.
4756 (YYFILES): Add ada-exp.y.
4757 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4758 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4759 (ada-exp.tab.o): New target.
4760
06c0b04e
AC
47612002-08-18 Andrew Cagney <ac131313@redhat.com>
4762
4763 * regcache.c (regcache_xfer_part): New function.
4764 (regcache_raw_read_part): New function.
4765 (regcache_raw_write_part): New function.
4766 (regcache_cooked_read_part): New function.
4767 (regcache_cooked_write_part): New function.
4768 * regcache.h (regcache_raw_read_part): Declare.
4769 (regcache_raw_write_part): Declare.
4770 (regcache_cooked_read_part): Declare.
4771 (regcache_cooked_write_part): Declare.
4772
92d1e331
DJ
47732002-08-18 Daniel Jacobowitz <drow@mvista.com>
4774
4775 * remote.c (remote_open_1): Add async_p.
4776 (remote_async_open_1): Delete.
4777 (open_remote_target): Delete.
4778 (remote_open, extended_remote_open): Update calls to remote_open_1.
4779 (remote_async_open, extended_remote_async_open): Call
4780 remote_open_1 instead of remote_async_open_1.
4781
247055de
MK
47822002-08-19 Mark Kettenis <kettenis@gnu.org>
4783
4784 * blockframe.c: Fix a few coding standard violations.
4785
641eda39
MK
47862002-08-19 Mark Kettenis <kettenis@gnu.org>
4787
0b717710
MK
4788 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4789 here from ...
4790 * config/i386/tm-i386sco5.h: ... here. File removed.
4791 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4792
26d28e12 4793 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4794 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4795 (TM_FILE): Set to tm-i386.h.
4796 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4797 * config/i386/tm-i386v.h: Remove file.
4798 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4799 instead of "i386/tm-i386v.h".
4800 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4801 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4802 "i386/tm-i386v.h".
4803 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4804 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4805 "i386/tm-i386.h".
4806
d4e0bab4
MK
48072002-08-18 Mark Kettenis <kettenis@gnu.org>
4808
4809 * config/i386/nm-i386v.h: Add protection against
4810 multiple-inclusion.
4811 (i386_register_u_addr): Remove prototype.
4812 (register_u_addr): New prototype.
4813 (REGISTER_U_ADDR): Redefine accordingly.
4814 * i386v-nat.c: Improve several comments.
4815 (i386_register_u_addr): Change signature and rename to
4816 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4817 ubase variable.
4818
46cac009
AC
48192002-08-18 Andrew Cagney <ac131313@redhat.com>
4820
4821 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4822 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4823 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4824 deprecated_extract_return_value.
4825 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4826 rename mips_o32o64_push_arguments.
4827 (mips_gdbarch_init): Update.
4828 (mips_extract_return_value): Delete.
4829 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4830 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4831 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4832 (mips_n32n64_extract_return_value): Clone
4833 mips_extract_return_value.
4834 (mips_store_return_value): Delete.
4835 (mips_o32_store_return_value): Clone mips_store_return_value.
4836 (mips_o64_store_return_value): Clone mips_store_return_value.
4837 (mips_eabi_store_return_value): Clone mips_store_return_value.
4838 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4839
d2e4a39e
AS
48402002-08-18 Aidan Skinner <aidan@velvet.net>
4841
0c30c098
AS
4842 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4843 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4844
48452002-08-18 Aidan Skinner <aidan@velvet.net>
4846
4847 * ada-lang.c: Run through gdb_indent.sh.
4848 * ada-lang.h: Run through gdb_indent.sh.
4849 * ada-tasks.c: Run through gdb_indent.sh.
4850 * ada-typeprint.c: Run through gdb_indent.sh.
4851 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4852
01fc4e33
AC
48532002-08-18 Andrew Cagney <ac131313@redhat.com>
4854
4855 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4856 ABI.
4857
d8ee244c
MK
48582002-08-18 Mark Kettenis <kettenis@gnu.org>
4859
c38d8261
MK
4860 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4861
222db64c
MK
4862 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4863 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4864
c2848c82
MK
4865 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4866 write_register_gen instead of write_register_bytes.
4867
d8ee244c
MK
4868 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4869 i[3456]-*-osf1mk* configurations have been made obsolete.
4870 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4871 i[3456]86-*-osf1mk* hosts obsolete.
4872 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4873 targets obsolete.
4874 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4875 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4876 config/i386/i386m3.mt, config/i386/nm-m3.h,
4877 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4878 config/i386/i386mk.mh, config/i386/i386mk.mt,
4879 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4880 obsolete.
4881 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4882 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4883 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4884
61d8d407
AC
48852002-08-18 Andrew Cagney <ac131313@redhat.com>
4886
4887 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4888 (hppa_value_returned_from_stack): Declare.
4889 (hppa_extract_return_value): Declare.
4890 * config/pa/hppa.mt: New file.
4891 * configure.tgt: Recognize hppa*-*-*.
4892 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4893
0c52bd59
MK
48942002-08-18 Mark Kettenis <kettenis@gnu.org>
4895
4896 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4897 comment.
4898
b5686e99
MK
48992002-08-17 Mark Kettenis <kettenis@gnu.org>
4900
4901 * top.c (gdb_rl_operate_and_get_next): Make sure
4902 operate-and-get-next functions correctly even when the history
4903 list is completely filled.
4904
c1bab85b
AC
49052002-08-18 Andrew Cagney <ac131313@redhat.com>
4906
4907 * MAINTAINERS (Target Instruction Set Architectures): Rename
4908 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4909 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4910 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4911 already listed under Host/Native.
4912
4913 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4914 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4915 mips*-*-*.
4916
32089c7c
AC
49172002-08-17 Andrew Cagney <ac131313@redhat.com>
4918
4919 * config/ia64/ia64.mt: New file.
4920 * config/alpha/alpha.mt: New file.
4921 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4922 ia64-linux-gnu. Mention that ia64-elf is broken.
4923 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4924
b4671f85
MK
49252002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4926
4927 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4928 generic_func_frame_valid instead of func_frame_valid.
4929
c8edd8b4
JB
49302002-08-16 Joel Brobecker <brobecker@gnat.com>
4931
4932 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4933 procfs appears to be broken when debugging on multi-processor
4934 machines. So enable software single stepping in order to avoid
4935 using the procfs interface to do next/step operations, using
4936 internal breakpoints instead.
4937
4938 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4939 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4940 make this pc address equal to the value it would have if the
4941 system stepping capability was used. Also set a new flag used
4942 to ensure that we don't readjust the PC one more time later.
4943
4944 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4945 address by DECR_PC_AFTER_BREAK when software single step is
4946 in use for this architecture, as this has already been taken
4947 care of in handle_inferior_event().
4948
238617f6
JB
49492002-08-16 Joel Brobecker <brobecker@gnat.com>
4950
4951 * infrun.c (handle_inferior_event): Minor reformatting, to make
4952 a rather long condition expression easier to read.
4953
541a7aac
AC
49542002-08-16 Andrew Cagney <ac131313@redhat.com>
4955
4956 * Makefile.in (gdbtk.o): Move to end of file.
4957 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4958 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4959 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4960 (gdbtk-wrapper.o, gdbres.o): Ditto.
4961
f92d4a7b
AC
49622002-08-16 Andrew Cagney <ac131313@redhat.com>
4963
4964 * Makefile.in (copying.o): Separate out compile rule.
4965 (hpux-thread.o, procfs.o, signals.o): Ditto.
4966 (v850ice.o, z8k-tdep.o): Ditto.
4967 (tui-file.o): Move to TUI section.
4968 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4969 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4970
1cce71eb
JB
49712002-08-16 Joel Brobecker <brobecker@gnat.com>
4972
4973 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4974 skip_trampoline_code, for better namespace-proofing.
4975
4976 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4977
0851f23d
JB
49782002-08-16 Joel Brobecker <brobecker@gnat.com>
4979
4980 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4981
f8d40ec8
JB
49822002-08-16 Joel Brobecker <brobecker@gnat.com>
4983
4984 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4985 signal, check whether we hit a breakpoint before checking for a
4986 single step breakpoint. Otherwise, GDB fails to notice that a
4987 breakpoint has been hit when stepping onto a breakpoint.
4988
63d022e0
KS
49892002-08-16 Keith Seitz <keiths@redhat.com>
4990
4991 * gdb-events.sh (clear_gdb_event_hooks): New function.
4992 * gdb-events.c: Regenerate.
4993 * gdb-events.h: Regenerate.
4994
6e31adb3
AC
49952002-08-16 Andrew Cagney <ac131313@redhat.com>
4996
4997 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4998 not_a_sw_breakpoint.
4999 * breakpoint.h (bpstat_stop_status): Add parameter names.
5000
c8189ed1
GS
50012002-08-16 Grace Sainsbury <graces@redhat.com>
5002
5003 * remote.c (remote_insert_hw_breakpoint)
5004 (remote_remove_hw_breakpoint): Fix calculation of length field
5005 for Z-packet.
5006
d05285fa
MS
50072002-08-15 Michael Snyder <msnyder@redhat.com>
5008
466d7106
MS
5009 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5010 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5011 (supply_fpregset): Ditto.
5012
d05285fa
MS
5013 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5014 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5015 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 5016 (TARGET_READ_SP): Delete.
bf1f5b4c 5017 (DO_REGISTERS_INFO): Delete.
102182a9
MS
5018 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5019 Delete.
5020 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5021 from macros to functions.
bf1f5b4c 5022
d05285fa
MS
5023 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5024 (mips_register_convertible, mips_register_convert_to_virtual,
5025 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
5026 (mips_read_sp): New function.
5027 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
5028 (mips_do_registers_info): Make static.
5029 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
5030 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5031 (mips_register_convert_from_type, mips_register_convert_to_type):
5032 New functions.
5033 (mips_gdbarch_init): Set up function_start_offset,
5034 register_virtual_size, pc_in_sigtramp.
d05285fa 5035
e76f1f2e
AC
50362002-08-15 Andrew Cagney <ac131313@redhat.com>
5037
5038 * infcmd.c (vector_info): New function.
5039 (_initialize_infcmd): Add command "info vector".
5040 (print_vector_info): New function.
5041
5042 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5043 * gdbarch.h, gdbarch.c: Regenerate.
5044
4782dc19
AC
50452002-08-15 Andrew Cagney <ac131313@redhat.com>
5046
5047 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5048 ``print_all''. Only print vector registers when ``print_all''.
5049
23e3a7ac
AC
50502002-08-15 Andrew Cagney <ac131313@redhat.com>
5051
8e186fd6
AC
5052 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5053 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5054
23e3a7ac
AC
5055 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5056 Add `args' parameter.
5057 * gdbarch.h, gdbarch.c: Regenerate.
5058
5059 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5060
5061 * infcmd.c (float_info): Call print_float_info.
5062 (print_float_info): New function. By default, print the
5063 floating-point registers.
5064
5065 * arch-utils.h (default_print_float_info): Delete declaration.
5066 * arch-utils.c (default_print_float_info): Delete function.
5067
e0ca2bb9
MK
50682002-08-16 Mark Kettenis <kettenis@gnu.org>
5069
3f733acc
MK
5070 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5071 out define.
5072
7d8d2918
MK
5073 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5074 FRAME.
5075
1c7cc583
MK
5076 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5077 * configure.host: Make i[3456]86-*-aix host obsolete.
5078 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5079 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5080 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5081 config/i386/xm-i386aix.h: Make files obsolete.
5082 * i386aix-nat.c: Make file obsolete.
5083 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5084 (i386aix-nat.o): Make target obsolete.
5085
e0ca2bb9
MK
5086 * config/i386/nm-gnu.h: Removed.
5087 * config/i386/nm-i386gnu.h: New file.
5088 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5089 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5090 Moved here from ...
5091 * config/i386/tm-i386gnu.h: ... here. Removed.
5092 * config/i386/xm-i386gnu.h: Removed.
5093 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5094 (NAT_FILE): Set to nm-i386gnu.h.
5095 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5096 * i386-tdep.c: New file.
5097 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5098 (i386gnu-tdep.o): Specify dependencies.
5099
16057ec7 51002002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 5101
6b99ee2e
MK
5102 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5103 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5104 Adjust a few comments to reflect reality a bit closer.
5105 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5106 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5107 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5108 target_insert_watchpoint, target_remove_watchpoint):
5109 Move defines to ...
5110 * config/i386/nm-i386sco5.h: ... here.
5111 (kernel_u_size): Add prototype. Improve a few comments and add
5112 protection against multiple inclusion.
5113
d9a6f65c
MK
5114 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5115 out define.
5116
047eff6a
MK
5117 * uw-thread.c (SP_ARG0): Define if not already defined.
5118 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5119
dcdb1290
MK
5120 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5121
5d2d0b2a
MK
5122 * config/i386/tm-i386.h: Don't include "regcache.h".
5123
61113f8b
MK
5124 * i387-tdep.h (i387_print_float_info): New prototype.
5125 * i387-tdep.c (print_i387_value, print_i387_ext,
5126 print_i387_status_word, print_i387_control_word): Add `struct
5127 ui_file *' argument and use it for output.
5128 (i387_print_float_info): Renamed from i387_float_info. Add
5129 `struct gdbarch *' and `struct ui_file *' arguments and use the
5130 latter for output.
5131 * i386-tdep.c: Include "i387-tdep.h".
5132 (i386_gdbarch_init): Set print_float_info.
5133 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5134 (FLOAT_INFO): Remove define.
5135
46e0f506
MS
51362002-08-13 Michael Snyder <msnyder@redhat.com>
5137
5138 * mips-tdep.c (mips_push_arguments): Rename to
5139 mips_eabi_push_arguments, and tune for EABI.
5140 (MIPS_REGS_HAVE_HOME_P): Delete.
5141 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5142 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5143 Delete references to mips_regs_have_home_p.
5144
409268de
KS
51452002-08-14 Keith Seitz <keiths@redhat.com>
5146
5147 * Makefile.in (install-gdbtk): Create insight plugin directory.
5148 Install plugins.tcl file.
5149
ffc6a242
KS
51502002-08-14 Keith Seitz <keiths@redhat.com>
5151
5152 * configure.in: Move SUBDIRS to near top of the file so that
5153 --enable options may add things to it.
5154 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5155 * configure: Regenerate.
5156
ebafbe83
MS
51572002-08-13 Michael Snyder <msnyder@redhat.com>
5158
5159 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5160 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5161 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5162
32f6f25d
AC
51632002-08-13 Andrew Cagney <ac131313@redhat.com>
5164
5165 * vax-tdep.c (vax_get_saved_register): Delete function.
5166 (vax_gdbarch_init): Update.
5167 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5168 (ns32k_gdbarch_init): Update.
5169 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5170 (alpha_gdbarch_init): Update.
5171
53826de9
AC
51722002-08-13 Andrew Cagney <cagney@redhat.com>
5173
5174 * regcache.c (init_regcache_descr): Overallocate the
5175 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5176 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5177 nr_raw_registers.
5178 (set_register_cached): Add range checking assertions. Use
5179 current_regcache.
5180
16057ec7 51812002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
5182
5183 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5184 numbers for MMX registers.
5185
7b4c2dce
AC
51862002-08-13 Andrew Cagney <cagney@redhat.com>
5187
5188 * i386-tdep.c (i386_gdbarch_init): Use
5189 generic_unwind_get_saved_register.
5190
1e03ad20
KB
51912002-08-13 Kevin Buettner <kevinb@redhat.com>
5192
5193 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5194 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5195 target vector.
5196 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5197 Delete. Add comment regarding this now-deleted target method.
5198
548bcbec
SC
51992002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5200
5201 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5202 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5203 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5204 real PC and the page number (if it's within the memory bank window).
5205 (m68hc11_pseudo_register_write): Likewise when saving.
5206 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5207 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5208 (m68hc11_register_raw_size): And use 32-bit for it.
5209 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5210 16K memory bank is used by the prog; also use the virtual pc.
5211
7df11f59
SC
52122002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5213
5214 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5215 (m68hc11_gdbarch_init): Install it in gdbarch.
5216 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5217 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5218 (MSYMBOL_SIZE): New for documentation.
5219 (insn_return_kind): Enum to specify how a function returns.
5220 (frame_extra_info): Cleanup and record the return mode.
5221 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5222 register in address computation.
5223 (m68hc11_get_return_insn): New to obtain the return instruction used
5224 by the function.
5225 (m68hc11_frame_init_saved_regs): Take into account the return
5226 instruction used by the function for far and interrupt functions.
5227 (m68hc11_init_extra_frame_info): Take into account page register.
5228 (m68hc11_frame_args_address): Adjust according to the return mode.
5229 (show_regs): Print page register only when it's used.
5230
5706502a
SC
52312002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5232
5233 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5234 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5235 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5236 registers.
5237 (m68hc11_register_raw_size): Likewise.
5238
28fc6740
AC
52392002-08-13 Andrew Cagney <cagney@redhat.com>
5240
5241 * i386-tdep.c (i386_register_name): Handle mmx registers.
5242 (mmx_regnum_p): New function.
5243 (i386_mmx_names): New array.
5244 (mmx_num_regs): New variable.
5245 (i386_pseudo_register_read): New function.
5246 (i386_pseudo_register_write): New function.
5247 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5248
5249 * regcache.c (regcache_raw_read_unsigned): New function.
5250 (regcache_raw_read_signed): New function.
5251 * regcache.h (regcache_raw_read_unsigned): Declare.
5252 (regcache_raw_read_signed): Declare.
5253
a378f419
AC
52542002-08-13 Andrew Cagney <cagney@redhat.com>
5255
5256 * regcache.c (regcache_raw_read_as_address): Delete function.
5257 (regcache_cooked_read_signed): New function.
5258 (regcache_cooked_read_unsigned): New function.
5259 * regcache.h (regcache_cooked_read_signed): Declare.
5260 (regcache_cooked_read_unsigned): Declare.
5261 (regcache_raw_read_as_address): Delete declaration.
5262
5263 * blockframe.c (generic_read_register_dummy): Use
5264 regcache_cooked_read_unsigned.
5265 * i386-tdep.c (i386_extract_struct_value_address): Use
5266 regcache_cooked_read_unsigned.
5267
81967506
SC
52682002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5269
5270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5271 double sizes according to ELF ABI flags.
5272 (gdbarch_tdep): Record elf_flags.
5273
ffe1f3ee
SC
52742002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5275
5276 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5277 (m6812_prolog): They can appear in 68HC12 function prologue.
5278 (m68hc11_frame_chain): Cleanup.
5279
98216c5d
AC
52802002-08-12 Andrew Cagney <cagney@redhat.com>
5281
5282 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5283 declarations.
5284 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5285 (i386_linux_register_raw_size): Delete function.
5286 (i386_linux_init_abi): Update.
5287 * i386-tdep.c (i386_register_raw_size): Delete function.
5288 (i386_register_byte): Delete function.
5289 (i386_gdbarch_init): Update.
5290 (i386_register_size): Delete array.
5291 (i386_register_offset): Delete array.
5292
5293 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5294 (REGISTER_RAW_SIZE): Delete macro.
5295 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5296 (REGISTER_BYTE): Delete macro.
5297
3b19021e
AS
52982002-08-11 Aidan Skinner <aidan@velvet.net>
5299
5300 * ada-lang.c (ada_lookup_partial_symbol)
5301 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5302 prototype names so that grep ^func works properly.
5303
5304 * ada-lang.c (ada_array_element_type)
5305 (ada_lookup_partial_symbol): Fix typos in parameter list.
5306
5307 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5308 Fix prototype names so that grep ^func works properly.
5309
b063e7a2
AC
53102002-08-10 Andrew Cagney <cagney@redhat.com>
5311 Elena Zannoni <ezannoni@redhat.com>
5312 Martin M. Hunt <hunt@redhat.com>
5313
5314 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5315 (build_builtin_type_vec128i): Set the vector bit.
5316 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5317 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5318 (build_builtin_type_vec64): New function.
5319 (build_builtin_type_vec64i): New function.
5320 (build_gdbtypes): Initialize builtin_type_vec64 and
5321 builtin_type_vec64i.
5322
a7e3c2ad
AC
53232002-08-09 Andrew Cagney <cagney@redhat.com>
5324
5325 * regcache.c (regcache_dump): Compare the register offset
5326 with REGISTER_BYTE.
5327 * arch-utils.c (generic_register_byte): New function.
5328 * arch-utils.h (generic_register_byte): Declare.
5329 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5330 * gdbarch.h, gdbarch.c: Regenerate.
5331
af030b9a
AC
53322002-08-09 Andrew Cagney <cagney@redhat.com>
5333
5334 * regcache.c: Include "gdbcmd.h"
5335 (_initialize_regcache): Add commands "maintenance print
5336 registers", "maintenance print raw-registers" and "maintenance
5337 print cooked-registers".
5338 (enum regcache_dump_what): Define.
5339 (dump_endian_bytes): New function.
5340 (regcache_dump): New function.
5341 (regcache_print): New function.
5342 (maintenance_print_registers): New function.
5343 (maintenance_print_raw_registers): New function.
5344 (maintenance_print_cooked_registers): New function.
5345 * Makefile.in (regcache.o): Update dependencies.
5346
cb3d25d1
MS
53472002-08-09 Michael Snyder <msnyder@redhat.com>
5348
5349 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5350 (mips_push_arguments): Correct some comments. Use paddr_nz
5351 for printing addresses in debug output. Replace static
5352 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5353 (mips_n32n64_push_arguments): New function, cloned from
5354 mips_push_arguments and tuned for the n32/n64 ABI.
5355 (mips_push_register): Buffer needs dynamic allocation.
5356 (mips_print_register): Ditto.
5357 (do_gp_register_row): Ditto.
5358 (mips_store_return_value): Ditto.
5359 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5360
2163ab9d
DH
53612002-08-09 Don Howard <dhoward@redhat.com>
5362
5363 * memattr.c (mem_info_command): Print special case of upper bound
5364 as max CORE_ADDR + 1.
5365
b78bcb18
MS
53662002-08-08 Michael Snyder <msnyder@redhat.com>
5367
5368 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5369 returns structs by ref if they're too big to fit in two registers.
5370
ffabd70d
KB
53712002-08-09 Kevin Buettner <kevinb@redhat.com>
5372
5373 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5374 saved regs value.
5375 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5376 mips_find_saved_regs().
5377 (mips_pop_frame): Likewise.
5378
fbcdb4a3
KB
53792002-08-09 Kevin Buettner <kevinb@redhat.com>
5380
5381 * blockframe.c (frame_saved_regs_register_unwind): Revise
5382 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5383 frames are in use.
5384
3c3bea1c
GS
53852002-08-09 Grace Sainsbury <graces@redhat.com>
5386
5387 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5388 T-packets; the 'a' is not taken as a register number.
5389 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5390 (remote_stopped_data_address): New functions; add to target
5391 vector.
5392 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5393 prototypes to match other implementations of this
5394 function. replace integer argument with pointer -- the length
5395 field in the Z-packet is the length of what is pointed to or 1 if
5396 pointer is null. Add to target vector.
5397 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5398 target vector.
5399
5400 From Mark Salter:
5401 * remote.c (remote_wait): Add support to extract optional
5402 watchpoint information from T-packet. Ignore unrecognized
5403 optional info in T-packet.
5404 (remote_async_wait): Ditto.
5405
5d1d95de
CV
54062002-08-09 Corinna Vinschen <vinschen@redhat.com>
5407
5408 * cli/cli-dump.c: Change fopen modes to use binary open modes
5409 as defined in include/fopen-bin.h throughout.
5410
c86b5b38
MS
54112002-08-08 Michael Snyder <msnyder@redhat.com>
5412
5413 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5414
b30590dc
KB
54152002-08-08 Kevin Buettner <kevinb@redhat.com>
5416
5417 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5418 assertion failure by returning early after a warning.
5419
498868ed
KB
54202002-08-08 Kevin Buettner <kevinb@redhat.com>
5421
5422 * mips-tdep.c (mips_find_saved_regs): Make static.
5423 (mips_frame_init_saved_regs): New function.
5424 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5425 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5426 (mips_find_saved_regs): Delete declaration.
5427
b2dd6311
GS
54282002-08-08 Grace Sainsbury <graces@redhat.com>
5429
3c3bea1c
GS
5430 * remote.c (remote_wait, remote_async_wait): Change
5431 thread_num from int to ULONGEST.
5432 (unpack_varlen_hex): Change result parameter from
5433 int * to ULONGEST *.
b2dd6311 5434
ea47855f
AC
54352002-08-08 Andrew Cagney <ac131313@redhat.com>
5436
5437 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5438 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5439 powerpc*-*-*.
5440 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5441
69db8bae
AC
54422002-08-08 Andrew Cagney <cagney@redhat.com>
5443
5444 * gcore.c (override_derive_stack_segment): Delete variable.
5445 (preempt_derive_stack_segment): Delete function.
5446 (derive_stack_segment): Delete function.
5447 (default_derive_stack_segment): Renamed to derive_stack_segment.
5448 (override_derive_heap_segment): Delete variable.
5449 (preempt_derive_heap_segment): Delete function.
5450 (derive_heap_segment): Delete function.
5451 (default_derive_heap_segment): Rename to derive_heap_segment.
5452
cb811fe7
MS
54532002-08-06 Michael Snyder <msnyder@redhat.com>
5454
5455 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5456 * mips-tdep.c (mips_EABI_use_struct_convention,
5457 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5458 New functions. (mips_use_struct_convention): Delete.
5459 (mips_gdbarch_init): set use_gdbarch_convention.
5460
8b389c40
MS
54612002-08-06 Michael Snyder <msnyder@redhat.com>
5462
5463 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5464 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5465 mips_o32_reg_struct_has_addr): New functions.
5466 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5467
5c27f28a
AC
54682002-08-07 Andrew Cagney <ac131313@redhat.com>
5469
5470 * regcache.c (pseudo_register): Delete function.
5471 (fetch_register): Delete function.
5472 (store_register): Delete function.
5473 (regcache_raw_read, legacy_read_register_gen): Use
5474 target_fetch_registers instead of fetch_register.
5475 (legacy_write_register_gen, regcache_raw_write): Use
5476 target_store_register instead of store_register.
5477 (write_register_bytes): Ditto.
5478
5479 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5480 (STORE_PSEUDO_REGISTER): Delete.
5481 * gdbarch.h, gdbarch.c: Regenerate.
5482
5b331675
CV
54832002-08-06 Corinna Vinschen <vinschen@redhat.com>
5484
5485 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5486 write dump file binary.
5487
6acdf5c7
MS
54882002-08-05 Michael Snyder <msnyder@redhat.com>
5489
5490 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5491 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5492 (mips_gdbarch_init): Set N32 target to be mips64.
5493
b2f01c35
KB
54942002-08-06 Kevin Buettner <kevinb@redhat.com>
5495
5496 * frame.c (find_saved_register): Break out of loop once saved
5497 register address is found. Don't mention sparc in loop comment
5498 anymore.
5499
63db5580
KB
55002002-08-06 Kevin Buettner <kevinb@redhat.com>
5501
5502 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5503 mips_default_saved_regsize to 8.
5504
5e34e75e
AC
55052002-08-06 Andrew Cagney <ac131313@redhat.com>
5506
5507 * gcore.c: Do not include <sys/procfs.h>.
5508 * Makefile.in (gcore.o): Update dependencies.
5509
eb4c54a2
AC
55102002-08-06 Andrew Cagney <cagney@redhat.com>
5511
5512 * configure.tgt: Make arc-*-* obsolete.
5513 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5514 * MAINTAINERS: Make arc-elf obsolete.
5515 * arc-tdep.c: Make file obsolete.
5516 * config/arc/arc.mt: Ditto.
5517 * config/arc/tm-arc.h: Ditto.
5518
ced15480
TR
55192002-08-05 Theodore A. Roth <troth@verinet.com>
5520
c1bab85b 5521 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5522
b4743822
AC
55232002-08-05 Andrew Cagney <ac131313@redhat.com>
5524
5525 * mcore-tdep.c (mcore_gdbarch_init): Use
5526 generic_unwind_get_saved_register instead of
5527 generic_get_saved_register.
5528 * v850-tdep.c (v850_gdbarch_init): Ditto.
5529 * frv-tdep.c (frv_gdbarch_init): Ditto.
5530 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5531 * s390-tdep.c (s390_gdbarch_init): Ditto.
5532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5533 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5534 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5535
3956d554
JB
55362002-08-05 Joel Brobecker <brobecker@gnat.com>
5537
5538 * objfiles.h: Add missing #include "symfile.h"
5539
5540 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5541
8249c0d6
AC
55422002-08-04 Andrew Cagney <ac131313@redhat.com>
5543
5544 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5545 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5546 of FIELD_BITSIZE.
5547
b9d14705
DJ
55482002-08-04 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * NEWS: Cleanup and nitpick.
5551
dd73b9bb
AC
55522002-08-03 Andrew Cagney <ac131313@redhat.com>
5553
5554 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5555
043a27f8
AC
55562002-08-03 Andrew Cagney <ac131313@redhat.com>
5557
5558 * Makefile.in (gdbtk-bp.o): Update dependencies.
5559 (gdbtk-register.o): Ditto.
5560 (gdbtk-varobj.o): Ditto.
5561
46ce284d
AC
55622002-08-03 Andrew Cagney <cagney@redhat.com>
5563
5564 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5565 m68hc11_fetch_pseudo_register.
5566 (m68hc11_pseudo_register_write): Replace
5567 m68hc11_store_pseudo_register.
5568 (m68hc11_gdbarch_init): Update.
5569
b66d6d2e
AC
5570Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5571
5572 * gdbarch.sh: Include "gdb_string.h".
5573 * gdbarch.c: Regenerate.
5574
5575 * regcache.c: Include "gdb_string.h".
5576 * ax-general.c: Ditto.
5577 * varobj.c: Ditto.
5578 * std-regs.c: Ditto.
5579 * fbsd-proc.c: Ditto.
5580 * thread.c: Ditto.
5581
5582 * Makefile.in (regcache.o): Update dependencies.
5583 (thread.o, gdbarch.o): Ditto.
5584 (ax-general.o, gdbarch.o): Ditto.
5585 (varobj.o, std-regs.o): Ditto.
5586 (fbsd-proc.o): Specify dependencies.
5587
29e1842b
AC
55882002-08-02 Andrew Cagney <cagney@redhat.com>
5589
5590 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5591 regnum.
5592 (regcache_cooked_write): Ditto.
5593
68365089
AC
55942002-08-02 Andrew Cagney <ac131313@redhat.com>
5595
5596 * regcache.c (regcache_cooked_read): New function.
5597 (regcache_cooked_write): New function.
5598 (read_register_gen): Rewrite using regcache_cooked_read.
5599 (write_register_gen): Rewrite using regcache_cooked_write.
5600
5601 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5602 Declare.
5603
d8124050
AC
56042002-08-02 Andrew Cagney <cagney@redhat.com>
5605
5606 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5607 Replace the architecture methods register_read and register_write.
5608 * gdbarch.h, gdbarch.c: Regenerate.
5609 * regcache.c (init_regcache_descr): Update.
5610 (read_register_gen): Update.
5611 (write_register_gen): Update.
5612 (supply_register): Update comment.
5613
5614 * sh-tdep.c (sh_gdbarch_init): Update.
5615 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5616 `regcache' and `gdbarch' parameters. Make `buffer' a void
5617 pointer. Update code.
5618 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5619 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5620 void pointer. Update code.
5621 (sh64_register_write): Delete.
5622 (sh4_register_read): Delete.
5623 (sh64_register_read): Delete.
5624 (sh4_register_write): Delete.
5625 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5626 void pointer, `to' parameter a void pointer.
5627 (sh_sh64_register_convert_to_raw): Ditto.
5628
a6425924
KB
56292002-08-01 Kevin Buettner <kevinb@redhat.com>
5630
5631 * mips-tdep.c (mips_register_virtual_type): Use architecture
5632 invariant return values.
5633
ff5922b5
AC
56342002-08-01 Andrew Cagney <cagney@redhat.com>
5635
5636 * linux-proc.c: Include "gdb_string.h".
5637 * Makefile.in (linux-proc.o): Update dependency list.
5638
32a6503c
KB
56392002-08-01 Kevin Buettner <kevinb@redhat.com>
5640
5641 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5642 comment.
5643
ccaa32c7
GS
56442002-08-01 Grace Sainsbury <graces@redhat.com>
5645
5646 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5647 to_insert_watchpoint, to_remove_watchpoint,
5648 to_stopped_by_watchpoint, to_stopped_data_address,
5649 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5650 target vecctor. Define their corresponding macros so they call
5651 them.
5652
5653 * target.c: Add default and debug versions of for
5654 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5655 to_insert_watchpoint, to_remove_watchpoint,
5656 to_stopped_by_watchpoint, to_stopped_data_address,
5657 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5658
78fde5f8
KB
56592002-08-01 Kevin Buettner <kevinb@redhat.com>
5660
5661 * mips-tdep.c (mips_register_virtual_type): New function.
5662 (mips_gdbarch_init): Register mips_register_virtual_type()
5663 with gdbarch machinery.
5664 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5665 this file instead of tm-bigmips.h.
5666 (MIPS_REGSIZE): Delete this macro.
5667 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5668 multiarch version in mips-tdep.c will be found.
5669
db034ac5
AC
56702002-08-01 Andrew Cagney <cagney@redhat.com>
5671
5672 * NEWS: Menion that CHILL has been made obsolete.
5673
5674 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5675 * stabsread.c (read_range_type): Ditto.
5676 * gdbtypes.h: Ditto.
5677 * language.c (binop_type_check): Ditto.
5678 (binop_result_type): Ditto.
5679 (integral_type): Ditto.
5680 (character_type): Ditto.
5681 (string_type): Ditto.
5682 (boolean_type): Ditto.
5683 (structured_type): Ditto.
5684 (lang_bool_type): Ditto.
5685 (binop_type_check): Ditto.
5686 * language.h (_LANG_chill): Ditto.
5687 * dwarfread.c (set_cu_language): Ditto.
5688 * dwarfread.c (CHILL_PRODUCER): Ditto.
5689 * dwarfread.c (handle_producer): Ditto.
5690 * expression.h (enum exp_opcode): Ditto.
5691 * eval.c: Ditto for comments.
5692 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5693 * expprint.c (print_subexp): Ditto.
5694 (print_subexp): Ditto.
5695 * valops.c (value_cast): Ditto.
5696 (search_struct_field): Ditto.
5697 * value.h (COERCE_VARYING_ARRAY): Ditto.
5698 * symfile.c (init_filename_language_table): Ditto.
5699 (add_psymbol_with_dem_name_to_list): Ditto.
5700 * valarith.c (value_binop): Ditto.
5701 (value_neg): Ditto.
5702 * valops.c (value_slice): Ditto.
5703 * symtab.h (union language_specific): Ditto.
5704 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5705 (SYMBOL_DEMANGLED_NAME): Ditto.
5706 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5707 * defs.h (enum language): Ditto.
5708 * symtab.c (got_symtab): Ditto.
5709 * utils.c (fprintf_symbol_filtered): Ditto.
5710
5711 * ch-typeprint.c: Make file obsolete.
5712 * ch-valprint.c: Make file obsolete.
5713 * ch-lang.h: Make file obsolete.
5714 * ch-exp.c: Make file obsolete.
5715 * ch-lang.c: Make file obsolete.
5716
5717 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5718 CHILL_LIB.
5719 (TARGET_FLAGS_TO_PASS): Ditto.
5720 (CHILLFLAGS): Obsolete.
5721 (CHILL): Obsolete.
5722 (CHILL_FOR_TARGET): Obsolete.
5723 (CHILL_LIB): Obsolete.
5724 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5725 ch-valprint.c.
5726 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5727 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5728 ch-lang.o.
5729 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5730 targets.
5731
8aaf0b47
JB
57322002-07-31 Joel Brobecker <brobecker@gnat.com>
5733
5734 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5735 This does not change anything at the moment, but will be helpful
5736 later when full Ada support is integrated.
5737
f3a7b3a5
KB
57382002-07-31 Kevin Buettner <kevinb@redhat.com>
5739
5740 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5741 help message.
5742
fb850278
KB
57432002-07-31 Kevin Buettner <kevinb@redhat.com>
5744
5745 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5746 and save it in a local variable. Use variable in later test.
5747
e3bddbfa
KB
57482002-07-31 Kevin Buettner <kevinb@redhat.com>
5749
5750 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5751 test. (Thanks to Daniel Jacobowitz.)
5752
28d169de
KB
57532002-07-31 Kevin Buettner <kevinb@redhat.com>
5754
5755 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5756 (mips_abi_strings): Add "n64".
5757 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5758
7fe7e44e
KB
57592002-07-31 Kevin Buettner <kevinb@redhat.com>
5760
5761 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5762 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5763
c6caf090
KB
57642002-07-31 Kevin Buettner <kevinb@redhat.com>
5765
5766 * utils.c (host_pointer_to_address, address_to_host_pointer):
5767 Use gdb_assert() instead of explicit call to internal_error().
5768
c41669e0
KB
57692002-07-30 Kevin Buettner <kevinb@redhat.com>
5770
5771 * Makefile.in (rs6000-nat.o): Update dependencies.
5772
5773 From Nicholas Duffek:
5774 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5775 (aix-thread.o): New rule.
5776 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5777 * config/powerpc/aix432.mh: New file.
5778
2fda4977
DJ
57792002-07-30 Daniel Jacobowitz <drow@mvista.com>
5780
5781 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5782 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5783 (fetch_core_registers, ppc_linux_supply_gregset)
5784 (ppc_linux_supply_fpregset): New functions.
5785 (ppc_linux_regset_core_fns): New.
5786 (_initialize_ppc_linux_tdep): Call add_core_fns.
5787 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5788 and ppc_linux_supply_gregset.
5789 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5790 (supply_fpregset): Call ppc_linux_supply_fpregset.
5791 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5792 corelow.o.
5793 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5794
729051e6
DJ
57952002-07-30 Daniel Jacobowitz <drow@mvista.com>
5796
5797 * symtab.c (lookup_symbol): Demangle before lowercasing.
5798
5f8a3188
AC
57992002-07-30 Andrew Cagney <ac131313@redhat.com>
5800
5801 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5802 declaration.
5803 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5804 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5805 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5806 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5807 "gdb_string.h".
5808 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5809 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5810 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5811 (avr-tdep.o, mon960-rom.o): Ditto.
5812 (aout_stabs_gnu_h): Define.
5813 (symtab_h): Remove $(gdb_obstack_h).
5814
67f07146
JB
58152002-07-30 Jim Blandy <jimb@redhat.com>
5816
5817 Patch from David Carlton <carlton@math.stanford.edu>:
5818 * gdbinit.in: Move the `dir' commands that add GDB's own source
5819 directory to the search path to the end, so that the `gdb' source
5820 directory will be searched first.
5821
04ea0df1
AC
58222002-07-29 Andrew Cagney <ac131313@redhat.com>
5823
5824 * gdb_obstack.h: New file.
5825 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5826 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5827 * objfiles.h: Include "gdb_obstack.h".
5828 * Makefile.in (gdb_obstack_h): Define.
5829 (symtab_h): Add $(gdb_obstack_h).
5830 (objfiles_h): Add $(gdb_obstack_h).
5831
5832 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5833 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5834 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5835 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5836 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5837 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5838 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5839 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5840
5841 * Makefile.in (bcache.o): Update dependencies.
5842 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5843 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5844 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5845 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5846 (stabsread.o, symfile.o, symmisc.o): Ditto.
5847 (symtab.o, typeprint.o, macroexp.o): Ditto.
5848 (macrotab.o, mdebugread.o): Ditto.
5849 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5850 (coff_ecoff_h, aout_aout64_h): Define.
5851 (aout_stabs_gnu_h, libaout_h): Define.
5852
d138e37a
AC
58532002-07-29 Andrew Cagney <cagney@redhat.com>
5854
5855 * regcache.c (struct regcache_descr): Rename nr_registers to
5856 nr_cooked_registers. Revise comments describing the structure
5857 member fields.
5858 (init_regcache_descr): Update.
5859 (init_legacy_regcache_descr): Update.
5860 (read_register_gen, write_register_gen): When a cooked register in
5861 the raw register range, directly access the value from the raw
5862 register cache.
5863
460e6ec3
AC
58642002-07-29 Andrew Cagney <ac131313@redhat.com>
5865
5866 * z8k-tdep.c: Do not include "obstack.h".
5867 * h8300-tdep.c, h8500-tdep.c: Ditto.
5868 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5869 * valprint.c, v850-tdep.c: Ditto.
5870 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5871 * mn10200-tdep.c: Ditto.
5872
5873 * Makefile.in (z8k-tdep.o): Update dependencies.
5874 (m68hc11-tdep.o, valprint.o): Ditto.
5875 (v850-tdep.o, d10v-tdep.o): Ditto.
5876 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5877 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5878 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5879 (sh_opc_h, gdb_sim_sh_h): Define.
5880 (elf_sh_h, elf_bfd_h): Define.
5881 (opcode_m68hc11_h): Define.
5882 (OPCODES_SRC, OPCODES_DIR): define.
5883 (OPCODES): Use $(OPCODES_DIR).
5884 (gdb_sim_d10v_h): Rename sim_d10v_h.
5885 (gdb_sim_arm_h): Rename sim_arm_h.
5886
790c9cf0
KB
58872002-07-26 Kevin Buettner <kevinb@redhat.com>
5888
5889 * utils.c (host_pointer_to_address, address_to_host_pointer):
5890 Change internal_error() message to indicate function responsible
5891 for the error.
5892
9647fa49
KB
58932002-07-26 Kevin Buettner <kevinb@redhat.com>
5894
5895 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5896 calls to local_hex_string_custom().
5897
dabbe2c0
KB
58982002-07-26 Kevin Buettner <kevinb@redhat.com>
5899
5900 * irix5-nat.c: Move IRIX shared library support from here...
5901 * solib-irix.c: ...to here. Revised substantially to work with
5902 generic solib framework.
5903
b96d0a4e
KB
5904 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5905 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5906 * mips-irix-tdep.c: New file.
5907
313fb2f6
KB
5908 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5909 (mips-irix-tdep.o, solib-irix.o): New rules.
5910 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5911 solib-irix.o.
5912 * config/mips/irix6.mt (TDEPFILES): Likewise.
5913 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5914
ab2eaf26
KB
59152002-07-26 Kevin Buettner <kevinb@redhat.com>
5916
177e4768 5917 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5918 disabled (via ``#if 0'') includes.
5919
7244546a
KB
59202002-07-26 Kevin Buettner <kevinb@redhat.com>
5921
5922 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5923 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5924 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5925 Add support for the fpscr register.
5926 * rs6000-nat.c (regmap, fetch_inferior_registers)
5927 (store_inferior_registers, fetch_core_registers): Likewise.
5928
dd7be90a
KB
59292002-07-26 Kevin Buettner <kevinb@redhat.com>
5930
5931 * rs6000-nat.c (language.h): Include.
5932 (special_regs): Delete this array.
5933 (regmap): New function.
5934 (fetch_register, store_register): Use regmap() to map gdb
5935 register numbers to ptrace register numbers. Also, use
5936 outputs from regmap() to make decisions regarding type of
5937 ptrace() call to make. In particular, don't compare against
5938 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5939 (fetch_inferior_registers, store_inferior_registers): Where
5940 possible, obtain register numbers from tdep struct. Don't
5941 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5942 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5943 (LAST_UISA_SP_REGNUM): Delete.
5944
11bf77db
KB
59452002-07-25 Kevin Buettner <kevinb@redhat.com>
5946
5947 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5948 (fetch_registers, store_register, fetch_core_registers): Don't
5949 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5950 regcache_collect() as appropriate.
5951 (find_toc_address): Format hex address with local_hex_string().
5952
06afebeb
AC
59532002-07-25 Andrew Cagney <ac131313@redhat.com>
5954
5955 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5956 bfd/elf32-frv.c.
5957
8c554d79
TT
59582002-07-24 Tom Tromey <tromey@redhat.com>
5959
5960 * jv-exp.y: Marked all strings with _().
5961 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5962 internal_error.
5963 (MethodInvocation, CastExpression, parse_number, yyerror,
5964 java_type_from_name, push_expression_name, yylex): Typo fixes.
5965
e4c242d9
DJ
59662002-07-24 Daniel Jacobowitz <drow@mvista.com>
5967
5968 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5969 (tee_file_flush, tee_file_write, tee_file_fputs)
5970 (tee_file_isatty): New.
5971 * ui-file.h (tee_file_new): Add prototype.
5972
ebf56fd3
AS
59732002-07-24 Aidan Skinner <aidan@velvet.net>
5974
5975 * ada-lang.c: Change k&r style function definitions to prototyped
5976 form.
5977 * ada-typeprint.c: Change k&r style function definitions to prototyped
5978 form.
5979 * ada-valprint.c: Change k&r style function definitions to prototyped
5980 form.
5981
7fb623f7
AC
59822002-07-24 Andrew Cagney <cagney@redhat.com>
5983
5984 * README: Remove reference to remote-bug.
5985 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5986 remote-bug.c.
5987 (m88k-nat.o): Delete rule.
5988 (m88k-tdep.o): Delete rule.
5989 (remote-bug.o): Delete rule.
5990 * MAINTAINERS: Mark as obsolete.
5991 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5992 * m88k-tdep.c: Make file obsolete.
5993 * config/m88k/m88k.mh: Ditto.
5994 * config/m88k/delta88v4.mh: Ditto.
5995 * config/m88k/delta88v4.mt: Ditto.
5996 * config/m88k/delta88.mt: Ditto.
5997 * config/m88k/delta88.mh: Ditto.
5998 * remote-bug.c: Ditto.
5999 * config/m88k/tm-delta88.h: Ditto.
6000 * config/m88k/nm-delta88v4.h: Ditto.
6001 * config/m88k/xm-delta88.h: Ditto.
6002 * config/m88k/xm-dgux.h: Ditto.
6003 * config/m88k/tm-m88k.h: Ditto.
6004 * config/m88k/nm-m88k.h: Ditto.
6005 * config/m88k/tm-delta88v4.h: Ditto.
6006 * m88k-nat.c: Ditto.
6007 * cxux-nat.c: Ditto.
6008 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6009 and m88*-*-* obsolete.
6010 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6011 m88*-*-* obsolete.
6012
37611a2b
AC
60132002-07-24 Andrew Cagney <cagney@redhat.com>
6014
6015 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6016 constant. Same for local pointer variables.
6017 (extract_signed_integer): Ditto.
6018 * defs.h (extract_unsigned_integer): Update.
6019 (extract_signed_integer): Update.
6020
1aaa5f99
AC
60212002-07-24 Andrew Cagney <cagney@redhat.com>
6022
6023 * regcache.c (regcache_raw_write): Change buf parameter to a
6024 constant void pointer.
6025 (regcache_raw_read): Change buf parameter to a void pointer.
6026 (legacy_write_register_gen): Change myaddr parameter a constant
6027 void pointer.
6028 (supply_register): Change val parameter to a const void pointer.
6029 * regcache.h (regcache_raw_write): Update declaration.
6030 (regcache_raw_read): Update declaration.
6031 (supply_register): Update declaration.
6032
b4f5539f
TT
60332002-07-24 Tom Tromey <tromey@redhat.com>
6034
6035 * defs.h (gdb_readline_wrapper): Declare.
6036 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6037 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6038 * top.c (gdb_readline_wrapper): New function.
6039 (command_line_input): Use it.
6040
0818c12a
AC
60412002-07-24 Andrew Cagney <cagney@redhat.com>
6042
6043 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6044 regcache_read and regcache_write.
6045 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6046 * regcache.c: Update.
6047 * sh-tdep.c (sh64_push_arguments): Update comment.
6048 (sh_pseudo_register_read): Update.
6049 (sh_pseudo_register_write): Update.
6050 (sh4_register_read): Update.
6051 (sh4_register_write): Update.
6052 (sh64_pseudo_register_read): Update.
6053 (sh64_pseudo_register_write): Update.
6054 (sh64_register_read): Update.
6055 (sh64_register_write): Update.
6056 * i386-tdep.c (i386_extract_return_value): Update.
6057 (i386_extract_struct_value_address): Update.
6058 (i386_extract_return_value): Update.
6059 * blockframe.c (generic_read_register_dummy): Update.
6060 (generic_call_dummy_register_unwind): Update
6061 * infrun.c (write_inferior_status_register): Update.
6062
f7321c06
JB
60632002-07-23 Jim Blandy <jimb@redhat.com>
6064
6065 * parser-defs.h (expression_context_pc): Make this extern.
6066 (Thanks to Michael Snyder.)
6067
2037aebb
AC
60682002-07-23 Andrew Cagney <ac131313@redhat.com>
6069
6070 GDB 5.2.1 released from 5.2 branch.
6071 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6072 * README: Update to mention 5.2.1.
6073
66504d44
MS
60742002-07-23 Mark Salter <msalter@redhat.com>
6075
6076 * remote.c (remote_read_bytes): Fix check for error.
6077
27bae383
KB
60782002-07-22 Kevin Buettner <kevinb@redhat.com>
6079
6080 * aix-thread.c (language.h): Include.
6081 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6082 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6083 Print newlines at end of debug messages.
6084 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6085 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6086
60872002-07-22 Kevin Buettner <kevinb@redhat.com>
6088
6089 * aix-thread.c (ppc-tdep.h): Include.
6090 (special_register_p): New function.
6091 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6092 (store_regs_user_thread): Use register number information from
6093 gdbarch_tdep struct instead of hardcoded offsets relative to
6094 FIRST_UISA_SP_REGNUM.
6095 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6096 special_register_p() instead of using FPLAST_REGNUM and
6097 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6098 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6099 will be MQ's register number.
6100
61012002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
6102
6103 * aix-thread.c (ops): Rename to aix_thread_ops.
6104 (base_ops): Rename to base_target.
6105 (ops_attach): Rename to aix_thread_attach.
6106 (ops_detach): Rename to aix_thread_detach.
6107 (ops_resume): Rename to aix_thread_detach.
6108 (ops_wait): Rename to aix_thread_wait.
6109 (ops_kill): Rename to aix_thread_kill.
6110 (init_ops): Rename to init_aix_thread_ops.
6111 (ops_fetch_register): Rename to aix_thread_fetch_register.
6112 (ops_store_register): Rename to aix_thread_store_register.
6113 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6114 (ops_thread_alive): Rename to aix_thread_thread_alive.
6115 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6116 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6117 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6118 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6119 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6120 (store_regs_lib): Rename to store_regs_user_thread.
6121 (store_regs_kern): Rename to store_regs_kernel_thread.
6122
27bae383 61232002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
6124
6125 * aix-thread.c (ops_prepare_to_store): Eliminate.
6126 (init_ops): Don't initialize ops.prepare_to_store.
6127 (store_regs_kern): Pre-fetch register buffers from child,
6128 because some registers may not be in the cache. Copy
6129 regs from register cache only if they are cached.
6130 (store_regs_lib): Copy regs from register cache only
6131 if they are cached.
6132 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6133 fill_gprs64): Ditto.
6134
61c5da0b
KB
61352002-07-22 Kevin Buettner <kevinb@redhat.com>
6136
6137 * aix-thread.c (gdb_assert.h): Include.
6138 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6139 register sizes (from register cache) match size of buffer holding
6140 register data.
6141 (fill_sprs32): Change parameter types to match those in the ptrace()
6142 buffer.
6143 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6144 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6145
61462002-07-22 Michael Snyder <msnyder@redhat.com>
6147
6148 * aix-thread.c (supply_sprs64): Cosmetic change.
6149 (supply_sprs32): Cosmetic change.
6150 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6151 (fill_sprs64): Use regcache_collect instead of read_register.
6152 (store_regs_lib): Use regcache_collect instead of
6153 read_register. Use fill_sprs32 instead of fill_sprs64,
6154 if debugging a 32-bit architecture.
6155 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6156 out of the register cache, instead of passing a pointer into
6157 the register cache directly to ptrace. Use regcache_collect
6158 insteaad of read_register.
6159 (ops_prepare_to_store): Use target_read_registers instead
6160 of read_register_bytes.
6161
36479eb1
AS
61622002-07-20 Aidan Skinner <aidan@velvet.net>
6163
6164 * MAINTAINERS: Add self under write after approval.
6165
80ae6ee2
AS
61662002-07-20 Aidan Skinner <aidan@velvet.net>
6167
6168 * ada-tasks.c: Change k&r style function definitions to prototyped
6169 form.
6170
8a8ab2b9
AC
61712002-07-19 Andrew Cagney <ac131313@redhat.com>
6172
6173 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6174 * x86-64-tdep.c: Include "objfiles.h".
6175 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6176 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6177
fb16b900
ML
61782002-07-17 Michal Ludvig <michal@suse.cz>
6179
6180 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6181 (update_context): Initialise cfa variable.
6182
0fe7bf7b
MS
61832002-07-17 Michael Snyder <msnyder@redhat.com>
6184
6185 * aix-thread.c: Shorten some long lines.
6186 Bring comments into line with code spec.
6187
488f131b
JB
61882002-07-18 Joel Brobecker <brobecker@gnat.com>
6189
6190 * infrun.c: Re-indent using gdb_indent.sh.
6191
46c415d2
JB
61922002-07-18 Joel Brobecker <brobecker@gnat.com>
6193
6194 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6195 Leave the indentation temporarily untouched, to minimize the diffs.
6196
cdecafbe
EZ
61972002-07-18 Elena Zannoni <ezannoni@redhat.com>
6198
6199 * stabsread.c: Make os9k sections of the code obsolete,
6200 for real this time.
6201 * stabsread.h: Make os9k sections of the code obsolete.
6202
7b6aa020
ML
62032002-07-18 Michal Ludvig <mludvig@suse.cz>
6204
09ec9b38
ML
6205 * linux-low.c (regsets_store_inferior_registers): Add free()
6206 at the end of a loop to prevent memory leak.
6207 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6208 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6209 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6210 line a comment.
4894ac5d 6211 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6212
233282cd
JB
62132002-07-17 Jim Blandy <jimb@redhat.com>
6214
6215 * macrocmd.c (info_macro_command): Remove newline from error
6216 message.
6217
7b6aa020 62182002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
6219
6220 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6221 (sh_gdbarch_init): Use it for sh-dsp.
6222
f7ef9339
KB
62232002-07-16 Kevin Buettner <kevinb@redhat.com>
6224
6225 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6226 64-bit DWARF2 format.
6227
8dd72958
JB
62282002-07-16 Joel Brobecker <brobecker@gnat.com>
6229
6230 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6231 <sys/proc.h> when not available.
6232
a99a9e1b
AC
62332002-07-16 Andrew Cagney <ac131313@redhat.com>
6234
6235 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6236 * stabsread.c: Make os9k sections of the code obsolete.
6237 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6238 * config/i386/i386os9k.mt: Make file obsolete.
6239 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6240 (COMMON_OBS): Remove os9kread.o
6241 (SFILES): Remove os9kread.c.
6242 (os9kread.o, remote-os9k.o): Make target obsolete.
6243 * remote-os9k.c: Make file obsolete.
6244 * os9kread.c: Make file obsolete.
6245 * Makefile.in
6246
7a3085c1
AC
62472002-07-16 Andrew Cagney <ac131313@redhat.com>
6248
6249 * NEWS: Mention that the FR30 has been made obsolete.
6250 * fr30-tdep.c: Make file obsolete.
6251 * config/fr30/tm-fr30.h: Ditto.
6252 * config/fr30/fr30.mt: Ditto.
6253 * configure.tgt: Make fr30-*-elf obsolete.
6254 * MAINTAINERS: Make fr30-elf obsolete.
6255
28a93f5a
PM
62562002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6257
6258 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6259 found is not inside a section.
6260
be006b8b
KB
62612002-07-15 Kevin Buettner <kevinb@redhat.com>
6262
6263 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6264 strerror().
6265 (pdc_realloc): Use xrealloc() instead of realloc().
6266
14fa3751
KB
62672002-07-15 Kevin Buettner <kevinb@redhat.com>
6268
6269 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6270 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6271 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6272 macros.
6273
42cc437f
KB
62742002-07-15 Kevin Buettner <kevinb@redhat.com>
6275
6276 * aix-thread.c (ptrace_check): Eliminate goto.
6277 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6278 problem.
6279
8e2c28d4
KB
62802002-07-15 Kevin Buettner <kevinb@redhat.com>
6281
6282 * aix-thread.c (gdbcmd.h): Include.
6283 (DEBUG, DBG, DBG2, dbg): Eliminate.
6284 (debug_aix_thread): New static global.
6285 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6286 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6287 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6288 invocations to DBG and DBG2 macros to test against
6289 ``debug_aix_thread'' and call fprintf_unfiltered().
6290 (_initialize_aix_thread): Add new command "set debug aix-thread".
6291
30413464
AC
62922002-07-15 Andrew Cagney <ac131313@redhat.com>
6293
6294 From Gerhard Tonn <TON@de.ibm.com>:
6295 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6296 instead of supply_register.
6297
7c43edc1
AC
62982002-07-15 Andrew Cagney <ac131313@redhat.com>
6299
6300 * dwarf2cfi.c: Include "gdb_assert.h".
6301 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6302 non-NULL.
6303 (update_context): Do not use __func__. Add missing ``break''.
6304 (update_context): Do not use __func__.
6305
9364a0ef
EZ
63062002-07-15 Elena Zannoni <ezannoni@redhat.com>
6307
6308 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6309 and its setting. Set gdbarch instruction printing functions
6310 directly. For non-rs6000 case use new function
6311 gdb_print_insn_powerpc.
6312 (gdb_print_insn_powerpc): New function.
6313
3fbeef0b
AC
63142002-07-13 Andrew Cagney <ac131313@redhat.com>
6315
92eb23c5 6316 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6317 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6318 * configure.tgt: Mark d30v-*-* as obsolete.
6319 * d30v-tdep.c: Mark file as obsolete.
6320 * config/d30v/d30v.mt: Ditto.
6321 * config/d30v/tm-d30v.h: Ditto.
6322
aacb1f0a
AS
63232002-07-13 Aidan Skinner <aidan@velvet.net>
6324
6325 * ada-tasks.c (add_task_entry): replace calls to
6326 malloc() with xmalloc
6327 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6328
6329 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6330 ada_finish_decode_line_1, all_sals_for_line
6331 ada_breakpoint_rewrite): replace calls to free() with xfree()
6332
c11d79f2
KB
63332002-07-12 Kevin Buettner <kevinb@redhat.com>
6334
6335 From Nicholas Duffek (with minor changes by Martin Hunt,
6336 Louis Hamilton, and Kevin Buettner):
6337 * aix-thread.c: New file.
6338
8e19ed76
PS
63392002-07-12 Petr Sorfa <petrs@caldera.com>
6340
6341 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6342 complaint for invalid attribute class or form.
6343 (read_func_scope): DW_AT_frame_base
6344 better handling of DW_AT_block*.
6345 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6346 better handling of DW_AT_block*.
6347 (read_common_block): DW_AT_location
6348 better handling of DW_AT_block*.
6349 (read_partial_die): DW_AT_location better handling
6350 of DW_AT_block*.
6351 (new_symbol): DW_AT_external better handling of
6352 DW_AT_block*. Proper initialization of variable
6353 "addr".
6354 (attr_form_is_block): New function that returns true
6355 if the attribute's form is of DW_FORM_block*.
6356
295401f7
DJ
63572002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6358
6359 * valops.c (find_method_list): Remove comment about
6360 removed STATIC_MEMFUNCP argument.
6361 (value_find_oload_method_list): Likewise.
6362
e42dc924
KB
63632002-07-12 Kevin Buettner <kevinb@redhat.com>
6364
6365 From Nicholas Duffek:
6366 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6367 target_new_objfile_hook.
6368
6904b546
KB
63692002-07-12 Kevin Buettner <kevinb@redhat.com>
6370
6371 From Nicholas Duffek:
6372 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6373 csect.
6374
53fe9346
AC
63752002-07-12 Andrew Cagney <cagney@redhat.com>
6376
6377 * MAINTAINERS: Mention --enable-sim-build-warnings.
6378 (m68hc11-elf): Disable sim build warnings.
6379 (m32r-elf): Mark as broken obsolete candidate.
6380 (x86_64-linux-gnu): Mark as buildable with -Werror.
6381 (arm-elf): Change -w to ``,'' which enables warnings but not
6382 -Werror.
6383
af5f3db6
AC
63842002-07-12 Andrew Cagney <ac131313@redhat.com>
6385
6386 * bcache.h: Update copyright.
6387 (struct bstring, struct bcache): Move definition to "bcache.c".
6388 Replaced by opaque declaration.
6389 (bcache_xfree): Replace free_bcache.
6390 (bcache_xmalloc, bcache_memory_used): Declare.
6391
6392 * bcache.c: Update copyright.
6393 (struct bstring, struct bcache): Moved to here from "bcache.h".
6394 Update comments.
6395 (bcache_xmalloc, bcache_memory_used): New functions.
6396 (bcache_xfree): Replace function free_bcache.
6397
6398 * Makefile.in (objfiles.o): Add $(bcache_h).
6399 (objfiles_h): Remove $(bcache_h).
6400 (symfile.o): Add $(bcache_h).
6401
6402 * symmisc.c: Update copyright.
6403 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6404 (print_objfile_statistics): Use bcache_memory_used.
6405
6406 * symfile.c: Include "bcache.h".
6407 (reread_symbols): Use bcache_xfree.
6408 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6409 (add_psymbol_to_list): Pass psymbol_cache by value.
6410 (add_psymbol_with_dem_name_to_list): Ditto.
6411
6412 * objfiles.h: Update copyright.
6413 (struct bcache): Declare opaque. Do not include "bcache.h".
6414 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6415 bcache'' pointers.
6416 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6417
6418 * objfiles.c: Include "bcache.h". Update copyright.
6419 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6420 macro_cache.
6421 (free_objfile): Use bcache_xfree.
6422
444199e7
GS
64232002-07-11 Grace Sainsbury <graces@redhat.com>
6424
6425 * monitor.c (monitor_fetch_register): Make name a constant.
6426 (monitor_store_register): Same.
6427
261397f8
DJ
64282002-07-11 Daniel Jacobowitz <drow@mvista.com>
6429
6430 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6431 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6432 (finish_block) For non-function blocks, hash the symbol table. For
6433 function blocks, mark the symbol table as unhashed.
6434 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6435 (msymbol_hash_iw): Likewise.
6436 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6437 value.
6438 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6439 (lookup_minimal_symbol): Likewise for both.
6440 * symtab.h (struct block): Add `hashtable' flag. Comment the
6441 hashtable.
6442 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6443 (ALL_BLOCK_SYMBOLS): Update.
6444 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6445 (struct symbol): Add `hash_next' pointer.
6446 * symtab.c (lookup_block_symbol): Search using the hash table when
6447 possible.
6448 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6449 (search_symbols, find_addr_symbol): Likewise.
6450
6451 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6452 (read_dst_symtab): Likewise.
6453 * jv-lang.c (get_java_class_symtab): Likewise.
6454 * mdebugread.c: Include "gdb_assert.h".
6455 (shrink_block): Assert that the block being modified is not hashed.
6456 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6457 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6458 symbols.
6459 (dump_symtab): Recognize hashed blocks.
6460 * printcmd.c (print_frame_args): Assert that function blocks do not
6461 have hashed symbol tables.
6462 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6463 (fill_in_ada_prototype, debug_print_block): Likewise.
6464 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6465
6f0eaa01
CV
64662002-07-11 Corinna Vinschen <vinschen@redhat.com>
6467
6468 * stack.c (print_frame): Use result of frame_address_in_block()
6469 instead of fi->pc when evaluating symbols.
6470 (backtrace_command_1): Ditto.
6471
a208b0cb
AC
64722002-07-11 Andrew Cagney <cagney@redhat.com>
6473
6474 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6475 Make static.
6476
6477 * arm-tdep.c (arm_register_name): Make return type constant.
6478
a6b6b089
AC
64792002-07-10 Andrew Cagney <ac131313@redhat.com>
6480
5ae5f592
AC
6481 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6482 prototype.
6483 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6484 * s390-tdep.c (s390_fp_regnum): Ditto.
6485 (s390_read_fp): Ditto.
6486 (s390_pop_frame): Ditto.
6487 (_initialize_s390_tdep): Ditto.
6488 * remote.c (get_remote_state): Ditto.
6489 * procfs.c (mappingflags): Ditto.
6490 * memattr.c (_initialize_mem): Ditto.
6491 * mcore-tdep.c (mcore_pop_frame): Ditto.
6492 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6493 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6494 * language.c (set_case_str): Ditto.
6495 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6496 * frv-tdep.c (new_variant): Ditto.
6497 (frv_stopped_data_address): Ditto.
6498 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6499 (context_alloc): Ditto.
6500 (frame_state_alloc): Ditto.
6501 (unwind_tmp_obstack_init): Ditto.
6502 (unwind_tmp_obstack_free): Ditto.
6503 (cfi_read_fp): Ditto.
6504 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6505 (cris_pop_frame): Ditto.
6506 * c-lang.c (scanning_macro_expansion): Ditto.
6507 (finished_macro_expansion): Ditto.
6508 (c_preprocess_and_parse): Ditto.
6509 * gdbarch.sh: Ditto.
6510 * gdbarch.h, gdbarch.c: Regenerate.
6511 * config/mn10200/tm-mn10200.h: Adjust indentation.
6512 * target.c: Adjust indentation.
6513 * symtab.h: Adjust indentation.
6514 * stabsread.h: Adjust indentation.
6515 * remote-es.c: Adjust indentation.
6516 * os9kread.c: Adjust indentation.
6517
65182002-07-10 Andrew Cagney <ac131313@redhat.com>
6519
a6b6b089
AC
6520 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6521 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6522
a1789893
GS
65232002-07-10 Grace Sainsbury <graces@redhat.com>
6524
6525 * NEWS: Mention m68k, mcore multi-arching.
6526 * MAINTAINERS: Change status of m68k, mcore to reflect
6527 multi-arching.
6528
02f0d45d
DJ
65292002-07-10 Daniel Jacobowitz <drow@mvista.com>
6530
6531 * valops.c (find_overload_match): Free oload_syms.
6532
f15f768e
JB
65332002-07-09 Joel Brobecker <brobecker@gnat.com>
6534
6535 Define HAVE_SYS_PROC_H if sys/proc.h exists
6536 * configure.in: Add check for sys/proc.h
6537 * config.in: Regenerate.
6538 * configure: Regenerate.
6539
902a7139
GS
65402002-07-09 Grace Sainsbury <graces@redhat.com>
6541
6542 * config/m68k/tm-m68k.h: Remove macros wrapped in
6543 #if !GDB_MULTI_ARCH.
6544
a534e424
AC
65452002-07-08 Andrew Cagney <ac131313@redhat.com>
6546
6547 * config.in, configure: Regenerate.
6548
9b94f7bf
MK
65492002-07-08 Mark Kettenis <kettenis@gnu.org>
6550
6551 * dwarf2cfi.c: Include "gcore.h".
6552 (execute_stack_op): Fix implementation of the
6553 DW_OP_deref and DW_OP_deref_size operators by letting do their
6554 lookup in the target.
6555
1d34db41
MK
65562002-07-07 Mark Kettenis <kettenis@gnu.org>
6557
6558 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6559 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6560 tdep->sc_sp_offset.
6561
79d5b63a
DJ
65622002-07-05 Daniel Jacobowitz <drow@mvista.com>
6563
6564 Fix PR gdb/595, gdb/602
6565 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6566 Don't call value_cast, just read the vtable pointer; update comments
6567 to match.
6568
3bb912e8
GS
65692002-07-05 Grace Sainsbury <graces@redhat.com>
6570
6571 * config/mcore/tm-mcore.h: Remove file.
6572 * config/mcore/mcore.mt: Remove definition of TM_FILE
6573 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6574
ca39387d
MK
65752002-07-05 Mark Kettenis <kettenis@gnu.org>
6576
6577 * i386bsd-tdep.c: Include "gdb_string.h".
6578
efdc1108
GS
65792002-07-04 Grace Sainsbury <graces@redhat.com>
6580
6581 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6582 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6583 mcore-tdep.
6584 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6585 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6586 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6587 (RETVAL_REGNUM): Move macros from tm-mcore.h
6588 (mcore_reg_struct_has_addr): New function.
6589 (mcore_gdbarch_init): Added initializations for the macros removed
6590 from tm-mcore.h.
6591
bb21884d
MK
65922002-07-04 Mark Kettenis <kettenis@gnu.org>
6593
6594 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6595 traditonal string branding within the ELF header.
6596
228c6d41
DJ
65972002-07-04 Daniel Jacobowitz <drow@mvista.com>
6598
6599 * symtab.c (remove_params): New function.
6600 (make_symbol_overload_list): Use it instead of cplus_demangle.
6601 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6602
2404952e
MK
66032002-07-04 Mark Kettenis <kettenis@gnu.org>
6604
e5e4acad
MK
6605 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6606
baadce09
MK
6607 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6608 New variables.
6609 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6610 and tdep->sigtramp_end.
6611 * i386obsd-nat.c: New file.
6612 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6613
2404952e
MK
6614 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6615 Don't call get_current_frame().
6616
9b4f1ba7
PM
66172002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6618
6619 * i386-nat.c (child_post_startup_inferior): New function
6620 calling i386_cleanup_dregs if
6621 I386_USE_GENERIC_WATCHPOINTS is defined.
6622 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6623 conditional to acknowledge that i386-nat.c has its
6624 own child_post_startup_inferior function.
6625
c0d1d883
MK
66262002-07-04 Mark Kettenis <kettenis@gnu.org>
6627
00f8375e
MK
6628 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6629 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6630 instead of MAX_REGISTER_RAW_SIZE.
6631 (i386_extract_return_value, i386_extract_struct_value_address):
6632 Convert to use regcache.
6633 (i386_gdbarch_init): Set max_register_raw_size and
6634 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6635 Set extract_return_value and extract_struct_value_address instead
6636 of their deprecated variants.
6637
c0d1d883
MK
6638 Convert i386 target to generic dummy frames.
6639 * i386-tdep.c: Include "symfile.h".
6640 (i386_frameless_signal_p): Consider a function to be frameless if
6641 the pc points at the first instruction of the function.
6642 (i386_frame_chain): Handle (generic) call dummies.
6643 (i386_frame_saved_pc): Likewise.
6644 (i386_frame_init_saved_regs): Remove code dealing with call
6645 dummies on the stack.
6646 (i386_push_dummy_frame): Removed.
6647 (i386_call_dummy_words): Removed.
6648 (i386_fix_call_dummy): Removed.
6649 (i386_push_return_address): New function.
6650 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6651 parameter, and don't call get_current_frame.
6652 (i386_pop_frame): New function.
6653 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6654 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6655 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6656 call_dummy_length to 0, set call_dummy_words to NULL, set
6657 sizeof_call_dummy_words to 0, set fix_call_dummy to
6658 generic_fix_call_dummy, set pc_in_call_dummy to
6659 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6660 generic_push_dummy_frame, set push_return_address to
6661 i386_push_return_address and set frame_chain_valid to
6662 generic_file_frame_chain_valid.
6663
049ee0e4
AC
66642002-07-03 Andrew Cagney <ac131313@redhat.com>
6665
6666 * gdbarch.sh (struct regcache): Add opaque declaration.
6667 (EXTRACT_RETURN_VALUE): New architecture method.
6668 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6669 * gdbarch.h, gdbarch.c: Regenerate.
6670 * arch-utils.c (legacy_extract_return_value): New function.
6671 * arch-utils.h (legacy_extract_return_value): Declare.
6672 * values.c (value_being_returned): Re-enable code handling
6673 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6674 deprecated_grub_regcache_for_registers call to block handling
6675 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6676 (EXTRACT_RETURN_VALUE): Do not define.
6677
4e0d9804
GS
66782002-07-03 Grace Sainsbury <graces@redhat.com>
6679
6680 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6681 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6682 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6683 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6684 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6685 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6686 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6687 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6688 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6689 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6690 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6691 argument so the function fits the prototype in the architecture
6692 vector.
6693 (mcore_pop_frame): Remove argument so the function fits the
6694 prototype. Use get_current_frame instead of the argument.
6695 (mcore_push_arguments): Change type of struct_return so the
6696 function can be used in the architecture vector.
6697 (mcore_store_struct_return): Add.
6698 (mcore_frame_init_saved_regs): Add.
6699 (mcore_gdbarch_init): Add function calls to replace the macros
6700 removed from tm-mcore.h
6701
36160dc4
AC
67022002-07-03 Andrew Cagney <ac131313@redhat.com>
6703
6704 * infcmd.c (print_return_value): Remove compatibility code calling
6705 deprecated_grub_regcache_for_registers.
6706
6707 * values.c: Include "regcache.h".
6708 (value_being_returned): Update. Use
6709 deprecated_grub_regcache_for_registers to extract the register
6710 buffer address.
6711 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6712 ``struct regcache''.
6713 * Makefile.in (values.o): Add dependency on $(regcache_h).
6714
6715 * inferior.h (run_stack_dummy): Change type of second parameter to
6716 a ``struct regcache''.
6717 * valops.c (hand_function_call): Change type of retbuf to ``struct
6718 regcache''. Allocate using regcache_xmalloc, clean using
6719 make_cleanup_regcache_xfree.
6720 * infcmd.c (run_stack_dummy): Update. Use
6721 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6722
6723 * regcache.c (do_regcache_xfree): New function.
6724 (make_cleanup_regcache_xfree): New function.
6725 * regcache.h (make_cleanup_regcache_xfree): Declare.
6726
e64d9b3d
MH
67272002-07-03 Martin M. Hunt <hunt@redhat.com>
6728
4dd79c29
MH
6729 * event-top.c (command_line_handler): Don't read past
6730 beginning of buffer.
e64d9b3d 6731
4dd79c29
MH
67322002-07-03 Martin M. Hunt <hunt@redhat.com>
6733
e64d9b3d
MH
6734 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6735 struct frame_id.
6736 (varobj_create): Store frame_id for root.
6737 (varobj_gen_name): Use xasprintf.
6738 (varobj_update): Save and restore frame using get_frame_id() and
6739 frame_find_by_id().
6740 (create_child): Use xasprintf.
6741 (new_root_variable): Initialize frame_id.
6742 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6743 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6744 to prevent memory leak.
6745
26e6c56a
AC
67462002-07-03 Andrew Cagney <ac131313@redhat.com>
6747
6748 * valops.c (hand_function_call): Move declaration of retbuf to
6749 start of function, allocate using malloc, add a cleanup but before
6750 the inf_status cleanup, cleanup the buffer. Rename local variable
6751 old_chain to inf_status_cleanup.
6752
f436dd25
MH
67532002-07-03 Martin M. Hunt <hunt@redhat.com>
6754
6755 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6756
6757 * cli/cli-decode.c (cmd_func_p): New function.
6758 (cmd_func): New function.
6759
6760 * command.h: Add cmd_func() and cmd_func_p().
6761
4cfe2084
GS
67622002-07-03 Grace Sainsbury <graces@redhat.com>
6763
6764 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6765 (REGISTER_SIZE): Remove.
6766 (MAX_REGISTER_RAW_SIZE): Remove.
6767 (REGISTER_VIRTUAL_TYPE): Remove.
6768 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6769 (REGISTER_NAME): Remove.
6770 (USE_GENERIC_DUMMY_FRAMES): Remove.
6771 (CALL_DUMMY): Remove.
6772 (CALL_DUMMY_START_OFFSET): Remove.
6773 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6774 (CALL_DUMMY_LOCATION): Remove.
6775 (FIX_CALL_DUMMY): Remove.
6776 (CALL_DUMMY_ADDRESS): Remove.
6777 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6778 (SAVE_DUMMY_FRAME_TOS): Remove.
6779 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6780 (mcore_register_virtual_type): New function.
6781 (mcore_register_byte): New function.
6782 (mcore_register_size): New function.
6783 (mcore_register_name): New function.
6784 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6785 macros removed from tm-mcore.h.
6786 (mcore_dump_tdep): Add.
6787 (_initialize_mcore_tdep): Add gdbarch_register call.
6788
4fd667e9
MK
67892002-07-03 Mark Kettenis <kettenis@gnu.org>
6790
6791 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6792 frameless_look_for_prologue, such that we actually call this
6793 function.
6794
42f99ac2
JB
67952002-07-02 Joel Brobecker <brobecker@gnat.com>
6796
6797 * frame.h (frame_address_in_block): New function.
6798
6799 * blockframe.c (frame_address_in_block): New function extracted
6800 from get_frame_block().
6801 (get_frame_block): Use frame_address_in_block().
6802 (block_innermost_frame): Use frame_address_in_block() to match
6803 the frame pc address against the block boundaries rather than
6804 the frame pc directly. This prevents a failure when a frame pc
6805 is actually a return-address pointing immediately after the end
6806 of the given block.
6807
103a1597 68082002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6809
6810 * MAINTAINERS: Add self under write after approval.
6811
68122002-07-02 Grace Sainsbury <graces@redhat.com>
6813
103a1597
GS
6814 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6815 used in architecture vector. The default is
6816 m68k_local_breakpoint_from_pc.
6817 (m68k_local_breakpoint_from_pc): Add.
6818 (enum): Add register numbers from tm-m68k.h.
6819 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6820 vector.
6821 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6822 GDB_MULTI_ARCH_PARTIAL.
6823 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6824 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6825 m68k-tdep.c.
6826 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6827 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6828 to enum in m68k-tdep.c
6829
7a5a0534
JB
68302002-07-02 Joel Brobecker <brobecker@gnat.com>
6831
6832 * solib-osf.c (open_map): Compute the list of shared libraries
6833 loaded by the inferior, rather than the list of libraries loaded
6834 by GDB itself. Otherwise, GDB ends up reading the symbols from
6835 the wrong shared libraries...
6836
6f558d74
MK
68372002-07-02 Mark Kettenis <kettenis@gnu.org>
6838
b7d15bf7
MK
6839 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6840 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6841 macros.
6842 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6843 Remove functions.
6844 (FRAMELESS_SIGNAL): Remove function.
6845 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6846 i386_linux_saved_pc_after_call): Removed.
6847 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6848 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6849 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6850
6bff26de
MK
6851 * i386-tdep.c (i386_frameless_signal_p): New function.
6852 (i386_frame_chain): Deal with frameless signals.
6853 (i386_sigtramp_saved_sp): New function.
6854 (i386_frame_saved_pc): Deal with frameless signals.
6855 (i386_saved_pc_after_call): Make sure the correct value is
6856 returned just after entry into a sigtramp.
6857 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6858 i386fbsd4_sc_sp_offset): New variables.
6859 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6860 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6861 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6862 similiar to what we already did for sc_pc_offset.
6863 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6864 tdep->sc_sp_offset.
6865
6f558d74
MK
6866 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6867
145564b7
ML
68682002-07-02 Michal Ludvig <mludvig@suse.cz>
6869
6870 * config/i386/tm-x86-64linux.h: New.
6871 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6872 definitions.
6873 * config/i386/nm-x86-64.h: Rename to ...
6874 * config/i386/nm-x86-64linux.h: ... this one.
6875 * config/i386/x86-64linux.mh: Reflect the above change.
6876
3a1e71e3
MK
68772002-07-01 Mark Kettenis <kettenis@gnu.org>
6878
21d0e8a4
MK
6879 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6880 with sigcontext_addr. Add sc_sp_offset.
6881 (i386bsd_sigtramp_saved_pc): Remove prototype.
6882 (i386bsd_sicontext_addr): Add prototype.
6883 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6884 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6885 (i386_svr4_sigtramp_saved_pc): Removed.
6886 (i386_svr4_sigcontext_addr): New function.
6887 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6888 Initialize tdep->sigcontext_addr instead. Initialize
6889 tdep->sc_pc_offset and tdep->sc_sp_offset.
6890 (i386_gdbarch_init): Likewise.
6891 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6892 any more.
6893 (i386bsd_sigtramp_saved_pc): Remove function.
6894 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6895 Initialize tdep->sigcontext_addr instead. Initialize
6896 tdep->sc_pc_offset.
6897 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6898 of tdep->sigtramp_saved_pc.
6899 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6900 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6901 instead.
6902
3a1e71e3
MK
6903 * i386-tdep.c (i386_frameless_function_invocation,
6904 i386_frame_num_args, i386_frame_init_saved_regs,
6905 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6906 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6907 i386_extract_return_value, i386_store_return_value,
6908 i386_extract_struct_value_address, i386_register_virtual_type,
6909 i386_register_convertible, i386_register_convert_to_virtual,
6910 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6911 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6912 static.
6913
52e9098c
MK
69142002-07-01 Mark Kettenis <kettenis@gnu.org>
6915
77b13a25
MK
6916 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6917
52e9098c
MK
6918 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6919 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6920 this macro. Include "value.h".
6921
1b372fff
AS
69222002-06-30 Aidan Skinner <aidan@velvet.net>
6923
6924 * ada-exp.tab.c: remove as it's a generated file
6925 * ada-lex.c: remove as it's a generated file
6926
9c5045b5
MK
69272002-06-30 Mark Kettenis <kettenis@gnu.org>
6928
4a93c5bb
MK
6929 * config/i386/tm-i386.h (struct frame_info, struct
6930 frame_saved_regs, struct value, struct type): Remove forward
6931 declarations.
6932
322d4fe0
MK
6933 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6934 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6935 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6936 (FILL_FPXREGSET): Define.
6937
fdd8263d
MK
6938 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6939
482e577b
MK
6940 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6941 i[3456]86-*-netbsd* case.
6942 * config/i386/tm-obsd.h: Removed.
6943 * config/i386/obsd.mt: Removed.
6944 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6945 core-aout.o.
6946 (MH_CFLAGS): Add -DYYDEBUG=0.
6947
6916549a
MK
6948 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6949 i386nbsd_sc_pc_offset on OpenBSD too.
6950
9c5045b5
MK
6951 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6952 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6953 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6954 define.
6955 * i386bsd-tdep.c: Include "arch-utils.h".
6956 (i386bsd_aout_in_solib_call_trampoline): New function.
6957 (i386bsd_init_abi): Set in_solib_call_trampoline to
6958 i386bsd_aout_in_solib_call_trampoline.
6959 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6960 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6961
aa84d1bb
AC
69622002-06-28 Andrew Cagney <ac131313@redhat.com>
6963
6964 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6965 (struct obstack, struct bcache): Add opaque declarations.
6966 * Makefile.in (macrotab_h): Update
6967
b4d83933
AC
69682002-06-28 Andrew Cagney <ac131313@redhat.com>
6969
6970 * blockframe.c (generic_find_dummy_frame): Change return type to
6971 ``struct regcache''.
6972 (struct dummy_frame): Replace field ``registers'' with regcache, a
6973 struct regcache object.
6974 (generic_find_dummy_frame): Update.
6975 (generic_push_dummy_frame): Update. Use regcache_xfree,
6976 regcache_xmalloc and regcache_cpy.
6977 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6978 regcache_xfree.
6979 (deprecated_generic_find_dummy_frame): Update.
6980 (generic_read_register_dummy): Update. Use
6981 regcache_read_as_address.
6982 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6983 (generic_get_saved_register): Update. Use regcache_read.
6984
08c0b5bc
AC
69852002-06-28 Andrew Cagney <ac131313@redhat.com>
6986
6987 * Makefile.in (objfiles_h): Add $(bcache_h).
6988 * objfiles.h: Include "bcache.h".
6989
6990 * Makefile.in (symtab_h): Remove $(bcache_h).
6991 * symtab.h: Do not include "bcache.h".
6992
1f89801a
AC
69932002-06-28 Andrew Cagney <ac131313@redhat.com>
6994
6995 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6996 generic_func_frame_chain_valid.
6997
b9644b58
DB
69982002-06-28 David O'Brien <obrien@FreeBSD.org>
6999
7000 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7001 * config/i386/tm-fbsd.h: Likewise.
7002
dd486634
AC
70032002-06-28 Andrew Cagney <ac131313@redhat.com>
7004
7005 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7006 generic_unwind_get_saved_register.
7007
0b434a00
AC
70082002-06-27 Andrew Cagney <ac131313@redhat.com>
7009
7010 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7011 * regcache.c (supply_register): Add missing argument to
7012 register_buffer call.
7013
f30e5a77
AC
70142002-06-27 Andrew Cagney <ac131313@redhat.com>
7015
7016 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7017 Solaris /bin/grep does not not like it. From Peter Schauer.
7018
9f064c95
TT
70192002-06-26 Tom Tromey <tromey@redhat.com>
7020
7021 * command.h (add_setshow_cmd): Declare.
7022 (add_setshow_cmd_full): Declare.
7023 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7024 returns void. Use add_setshow_cmd_full.
7025 (add_setshow_cmd_full): New function.
7026 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7027 (add_setshow_boolean_cmd): Likewise.
7028
099c7589
JT
70292002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7030
7031 * config/vax/tm-vax.h: Protect from multiple inclusion.
7032 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7033 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7034 * config/vax/tm-vaxbsd.h: ...here. New file.
7035 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7036
1d049c5e
JT
70372002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7038
7039 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7040 (BELIEVE_PCC_PROMOTION): Remove.
7041 (AP_REGNUM): Move to...
7042 * config/vax/nm-vax.h: ...here.
7043 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7044 (vax_breakpoint_from_pc): New function.
7045 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7046 and gdbarch_believe_pcc_promotion.
7047
4791e091
JT
70482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7049
7050 * Makefile.in (vax_tdep_h): Define.
7051 (vax-tdep.o): Use $(vax_tdep_h).
7052 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7053 (vax_dump_tdep): New function.
7054 (_initialize_vax_tdep): Register vax_dump_tdep.
7055 * vax-tdep.h: Include osabi.h.
7056 (struct gdbarch_tdep): New.
7057
da130f98
AC
70582002-06-26 Andrew Cagney <cagney@redhat.com>
7059
7060 * frame.h (deprecated_generic_find_dummy_frame): Rename
7061 generic_find_dummy_frame.
7062 * blockframe.c (generic_find_dummy_frame): Make static.
7063 (deprecated_generic_find_dummy_frame): New function.
7064 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7065 generic_find_dummy_frame with deprecated_find_dummy_frame.
7066 (sh64_nofp_frame_init_saved_regs): Ditto.
7067 (sh_fp_frame_init_saved_regs): Ditto.
7068 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7069 (s390_frame_chain): Ditto.
7070 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7071
6300c360
GS
70722002-06-26 Grace Sainsbury <graces@redhat.com>
7073
7074 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7075 gdbarch vector are at the top.
7076 (NUM_REGS): Remove.
7077 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7078 (FRAME_ARGS_ADDRESS): Remove.
7079 (FRAME_LOCALS_ADDRESS): Remove.
7080 (FRAME_NUM_ARGS): Remove.
7081 (FRAME_ARGS_SKIP): Remove.
7082 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7083 (m68k_gdbarch_init): Add gdbarch initializations for macros
7084 undefined in tm-m68k.h
7085
1c617db8
GS
70862002-06-26 Grace Sainsbury <graces@redhat.com>
7087
7088 * monitor.h: Add the function regname to monitor_ops
7089 structure. This way NUM_REGS does not have to be a constant.
7090 * monitor.c (monitor_fetch_register): Added support for regname
7091 function. The function is called if the array regnames is NULL.
7092 (monitor_store_register): Same.
da130f98
AC
7093 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7094 regnames array.
1c617db8
GS
7095 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7096 cpu32bug_cmds.regname to point to new function.
7097 * abug-rom.c (abug_regname): Same as above.
7098 (init_abug_cmds): Same.
7099 * dbug-rom.c (dbug_regname): Same as above.
7100 (init_dbug_cmds): Same.
7101 * remote-est.c (est_regname): Same.
7102 (init_est_cmds): Same.
7103 * rom68k-rom.c (rom68k_regname): Same.
7104 (init_rom68k_cmds): Same.
7105
ea9365bb
TT
71062002-06-25 Tom Tromey <tromey@redhat.com>
7107
7108 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7109
72cec141
AC
71102002-06-25 Andrew Cagney <cagney@redhat.com>
7111
7112 * infrun.c (stop_registers): Change variable's type to ``struct
7113 regcache'''.
7114 (xmalloc_inferior_status): Delete function.
7115 (free_inferior_status): Delete function.
7116 (normal_stop): Use regcache_cpy.
7117 (struct inferior_status): Change type of fields ``stop_registers''
7118 and ``registers'' to ``struct regcache''.
7119 (write_inferior_status_register): Use regcache_write.
7120 (save_inferior_status): Instead of calling
7121 xmalloc_inferior_status, allocate the inf_status buffer directly.
7122 Use regcache_dup_no_passthrough and regcache_dup to save the
7123 buffers.
7124 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7125 Replace the stop_registers regcache instead of overriding it. Use
7126 regcache_xfree. Instead of calling free_inferior_status, xfree
7127 the buffer directly.
7128 (discard_inferior_status): Use regcache_xfree. Instead of calling
7129 free_inferior_status, xfree the buffer directly.
7130 (build_infrun): Use regcache_xmalloc.
7131 (_initialize_infrun): Delete redundant call to build_infrun.
7132
7133 * Makefile.in (infcmd.o): Add $(regcache_h).
7134
7135 * infcmd.c: Include "regcache.h".
7136 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7137 obtain the address of `stop_registers' register buffer.
7138 (print_return_value): Ditto.
7139
7140 * inferior.h (struct regcache): Add opaque declaration.
7141 (stop_registers): Change variable's declared type to ``struct
7142 regcache''.
7143
defc6f8c
TT
71442002-06-24 Tom Tromey <tromey@redhat.com>
7145
c0e624e7
TT
7146 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7147 * target.c (initialize_targets): Fixed typo in
7148 trust-readonly-sections `show' documentation.
7149
defc6f8c
TT
7150 * main.c: Marked all strings with _().
7151
2b236d82
DH
71522002-06-24 Don Howard <dhoward@redhat.com>
7153
7154 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7155 that means max CORE_ADDR+1.
7156 (lookup_mem_region): Ditto.
7157 (mem_info_command): Ditto.
7158
942dc0e9
GS
71592002-06-24 Grace Sainsbury <graces@redhat.com>
7160
7161 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7162 (REGISTER_BYTES_OK): Remove.
7163 (REGISTER_BYTES): Remove.
7164 (STORE_STRUCT_RETURN): Remove.
7165 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7166 (STORE_RETURN_VALUE): Remove.
7167 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7168 (FRAME_CHAIN): Remove.
7169 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7170 (FRAME_SAVED_PC): Remove.
7171 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7172 (m68k_store_struct_return): Add.
7173 (m68k_deprecated_extract_return_value): Add.
7174 (m68k_deprecated_extract_struct_value_address): Add.
7175 (m68k_store_return_value): Add.
7176 (m68k_frame_chain): Add.
7177 (m68k_frameless_function_invocation): Add.
7178 (m68k_frame_saved_pc): Add.
7179 (m68k_gdbarch_init): added set_gdbarch calls for new
7180 functions and deleted macros.
7181
03c30d4d
TT
71822002-06-23 Tom Tromey <tromey@redhat.com>
7183
7184 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7185 (ALLDEPFILES): Likewise.
7186 (udiheaders): Removed.
7187 (udip2soc.o): Likewise.
7188 (udi2go32.o): Likewise.
7189 (udr.o): Likewise.
7190 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7191
37e71372
AC
71922002-06-22 Andrew Cagney <ac131313@redhat.com>
7193
06a6ac57
AC
7194 * infrun.c (_initialize_infrun): Delete unnecessary call to
7195 build_infrun.
7196
37e71372
AC
7197 * regcache.h: Update comments describing the regcache_cpy family
7198 of functions.
7199 (regcache_save, regcache_restore): Delete declaration.
7200 (regcache_save_no_passthrough): Delete declaration.
7201 (regcache_restore_no_passthrough): Delete declaration.
7202 * regcache.c (regcache_save): Delete function.
7203 (regcache_save_no_passthrough): Delete function.
7204 (regcache_restore): Delete function.
7205 (regcache_restore_no_passthrough): Delete function.
7206
78f6d055
AC
72072002-06-21 Andrew Cagney <ac131313@redhat.com>
7208
7209 * config/m68k/tm-m68k.h: Fix typo.
7210 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7211 (m68k_frame_init_saved_regs): Declare.
7212
78b119cb
JB
72132002-06-21 Jim Blandy <jimb@redhat.com>
7214
7215 Remove some vestiges of Harris 88k support.
7216 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7217 register numbering quirk.
7218 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7219 odd symbols occurring in Harris 88k ELF targets.
7220
0fbb3da7
TT
72212002-06-21 Tom Tromey <tromey@redhat.com>
7222
7223 * gdb_locale.h: New file.
7224 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7225 (defs_h): Added gdb_locale.h.
7226 * configure, config.in: Rebuilt.
7227 * configure.in (PACKAGE): Define.
7228 * defs.h: Include gdb_locale.h.
7229 * main.c (captured_main): Call setlocale, bindtextdomain,
7230 textdomain.
7231
456f8b9d
DB
72322002-06-21 Dave Brolley <brolley@redhat.com>
7233
7234 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7235 * config/frv/frv.mt: New file.
7236 * config/frv/tm-frv.h: New file.
7237 * configure.tgt: Support frv-*-*.
7238 * Makefile.in (frv-tdep.o): New target.
7239 * frv-tdep.c: New file.
7240 * NEWS: Mention frv.
7241
cdd463f9
DB
72422002-06-21 Dave Brolley <brolley@redhat.com>
7243
7244 * MAINTAINERS: Add self to "Write After Approval" list.
7245
5d3ed2e3
GS
72462002-06-21 Grace Sainsbury <graces@redhat.com>
7247
7248 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7249 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7250 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7251 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7252 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7253
7254 * m68k-tdep.c: Include arch-utils.h
7255 (m68k_register_raw_size): Add.
7256 (m68k_register_virtual_size): Add.
7257 (m68k_register_virtual_type): Add.
7258 (m68k_register_name): Add.
7259 (m68k_stack_align): Add.
7260 (m68k_register_byte): Add.
7261 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7262 tm-m68k.h.
7263
7f8e7424
GS
72642002-06-21 Grace Sainsbury <graces@redhat.com>
7265
a2c6a6d5 7266 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7267 m68k_find_saved_regs.
7268 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7269 references to it with frame->saved_regs.
7f8e7424
GS
7270 (m68k_gdbarch_init): Added function calls to initialize the
7271 gdbarch structure.
a2c6a6d5
GS
7272 (m68k_fix_call_dummy): Add.
7273 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7274 (CALL_DUMMY): Remove.
7275 (CALL_DUMMY_LENGTH): Remove.
7276 (CALL_DUMMY_START_OFFSET): Remove.
7277 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7278 (FIX_CALL_DUMMY): Remove.
7279 (PUSH_DUMMY_FRAME): Remove.
7280 (POP_FRAME): Remove.
7f8e7424 7281
f461f5cf
PM
72822002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7283
7284 * parse.c (parse_fprintf): New function used to avoid calls to
7285 fprintf in bison parser generated debug code.
7286 * parser-defs.h: Declaration of new parse_fprintf function.
7287 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7288 Set YYDEBUG to 1 by default.
7289 Set YYFPRINTF as parse_fprintf.
7290
7f0c12ed
ML
72912002-06-21 Michal Ludvig <mludvig@suse.cz>
7292
7293 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7294 encoding anymore.
7295 (pointer_encoding, enum ptr_encoding): New.
7296 (execute_cfa_program): Take care about pointer encoding.
7297 (dwarf2_build_frame_info): Only call parse_frame_info for
7298 .debug_frame and .eh_frame.
7299 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7300 fixed augmentation handling, added relative addressing,
7301 ignore duplicate FDEs. Added comments.
19d833a2 7302 * dwarf2cfi.c: Reindented.
7f0c12ed 7303
87c4a039
EZ
73042002-06-20 Elena Zannoni <ezannoni@redhat.com>
7305
7306 * event-top.c (command_handler): Don't use space_at_cmd_start
7307 unless there is sbrk() on the host. Assign time and space data
7308 to union fields of the appropriate length.
7309
1cf877ad
ML
73102002-06-20 Michal Ludvig <mludvig@suse.cz>
7311
7312 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7313 x86_64_register_name. Return type changed to 'const char *'.
7314 (x86_64_register_name2nr): Rename to x86_64_register_number.
7315 (x86_64_gdbarch_init): Update to reflect the change.
7316 * x86-64-tdep.h: Ditto.
7317 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7318 (supply_fpregset): Ditto.
7319
3fadccb3
AC
73202002-06-19 Andrew Cagney <cagney@redhat.com>
7321
7322 * regcache.h: Update copyright.
7323 (struct regcache, struct gdbarch): Add opaque declarations.
7324 (current_regcache): Declare global variable.
7325 (regcache_read, regcache_write): Add gdbarch parameter.
7326 (regcache_save, regcache_save_no_passthrough)
7327 (regcache_restore, regcache_restore_no_passthrough)
7328 (regcache_dup, regcache_dup_no_passthrough)
7329 (regcache_cpy, regcache_cpy_no_passthrough)
7330 (deprecated_grub_regcache_for_registers)
7331 (deprecated_grub_regcache_for_register_valid)
7332 (regcache_valid_p): Add function declarations.
7333
7334 * regcache.c: Update copyright.
7335 (regcache_descr_handle): New global variable.
7336 (struct regcache_descr): Define.
7337 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7338 (regcache_descr, xfree_regcache_descr): New functions.
7339 (struct regcache): Define.
7340 (regcache_xmalloc, regcache_xfree): New functions.
7341 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7342 (regcache_dup, regcache_dup_no_passthrough): New functions.
7343 (regcache_valid_p, regcache_read_as_address): New functions.
7344 (deprecated_grub_regcache_for_registers): New function.
7345 (deprecated_grub_regcache_for_register_valid): New function.
7346 (current_regcache): New global variable.
7347 (register_buffer): Add regcache parameter. Update calls.
7348 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7349 (read_register_gen, write_register_gen): Update register_buffer
7350 call. Test for legacy_p instead of gdbarch_register_read_p or
7351 gdbarch_register_write_p.
7352 (regcache_collect): Update register_buffer call.
7353 (build_regcache): Rewrite. Use deprecated grub functions.
7354 (regcache_save, regcache_save_no_passthrough): New functions.
7355 (regcache_restore, regcache_restore_no_passthrough): New
7356 functions.
7357 (_initialize_regcache): Create the regcache_data_handle. Swap
7358 current_regcache global variable.
7359
7360 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7361 parameter to regcache_read and regcache_write calls.
7362 (sh4_register_read): Ditto.
7363 (sh64_pseudo_register_read): Ditto.
7364 (sh64_register_read): Ditto.
7365 (sh_pseudo_register_write): Ditto.
7366 (sh4_register_write): Ditto.
7367 (sh64_pseudo_register_write): Ditto.
7368 (sh64_register_write): Ditto.
7369
7370 * defs.h (XCALLOC): Define.
7371
152d9db6
GS
73722002-06-19 Grace Sainsbury <graces@redhat.com>
7373
7374 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7375 * m68k-tdep.c (m68k_gdbarch_init): Added.
7376 (m68k_dump_tdep): Added.
7377
170911c7
DJ
73782002-06-19 Daniel Jacobowitz <drow@mvista.com>
7379
7380 * ada-lang.c (fill_in_ada_prototype): Update comment.
7381
2e4ebe70
DJ
73822002-06-19 Daniel Jacobowitz <drow@mvista.com>
7383
7384 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7385 MIPS_ABI_LAST.
7386 (mips_abi_string, mips_abi_strings): New.
7387 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7388 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7389 tdep->mips_abi_string. Honor mips_abi_string. Default to
7390 O32 if no ABI is found.
7391 (mips_dump_tdep): Use mips_abi_strings.
7392 (mips_abi_update): New function.
7393 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7394 ``set mips abi'' and ``show mips abi''. Check the size of
7395 mips_abi_strings.
7396
16775908
AC
73972002-06-19 Andrew Cagney <cagney@redhat.com>
7398
7399 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7400 constant.
7401
5051bfa4 74022002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 7403
5051bfa4
JB
7404 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7405 current frame using only the first stack size adjustment. All
7406 subsequent size adjustments are not considered to be part of
7407 the "static" part of the current frame.
7408 Compute the address of the saved registers relative to the
7409 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7410 in use in this frame.
7411
56468235
DH
74122002-06-18 Don Howard <dhoward@redhat.com>
7413
7414 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7415 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7416 suggesting this solution.
7417
0b624158
AC
74182002-06-18 Andrew Cagney <ac131313@redhat.com>
7419
7420 * config/romp/xm-rtbsd.h: Delete file.
7421 * config/romp/rtbsd.mh: Delete file.
7422
221ea385
KS
74232002-06-18 Keith Seitz <keiths@redhat.com>
7424
7425 * breakpoint.c (condition_command): Post breakpoint_modify
7426 when a condition is added to an existing breakpoint.
7427 (commands_command): Likewise for commands.
7428 (set_ignore_count): Likewise for ignore counts.
7429 If no tty, do not simply return, still need to send event
7430 notification.
7431 (ignore_command): Only print a newline if the command came
7432 from a tty.
7433 Don't call breakpoints_changed, since this is now properly
7434 handled by set_ignore_count.
7435
5402eed1
AC
74362002-06-18 Andrew Cagney <cagney@redhat.com>
7437
7438 * MAINTAINERS: Note that cris-elf target can be compiled with
7439 -Werror.
7440 * cris-tdep.c (cris_register_name): Make return type constant.
7441 (cris_breakpoint_from_pc): Ditto.
7442
cc22880b
ML
74432002-06-18 Michal Ludvig <mludvig@suse.cz>
7444
7445 * frame.h (struct frame_info): Change type of context to
7446 'struct context'.
7447
fa88f677
AC
74482002-06-17 Andrew Cagney <cagney@redhat.com>
7449
7450 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7451 pointer.
7452 * gdbarch.h, gdbarch.c: Regenerate.
7453 * config/mips/tm-mips.h (mips_register_name): Update.
7454 * i386-tdep.h (i386_register_name): Update.
7455 * mips-tdep.c (mips_register_name): Update
7456 * alpha-tdep.c (alpha_register_name): Update.
7457 * arch-utils.c (legacy_register_name): Update.
7458 * arch-utils.h (legacy_register_name): Update.
7459 * avr-tdep.c (avr_register_name): Update.
7460 * ia64-tdep.c (ia64_register_name): Update.
7461 * i386-tdep.c (i386_register_name): Update.
7462 * sparc-tdep.c (sparc32_register_name): Update.
7463 (sparc64_register_name): Update.
7464 (sparclite_register_name): Update.
7465 (sparclet_register_name): Update.
7466 * sh-tdep.c (sh_generic_register_name): Update.
7467 (sh_sh_register_name): Update.
7468 (sh_sh3_register_name): Update.
7469 (sh_sh3e_register_name): Update.
7470 (sh_sh_dsp_register_name): Update.
7471 (sh_sh3_dsp_register_name): Update.
7472 (sh_sh4_register_name): Update.
7473 (sh_sh64_register_name): Update.
7474 * s390-tdep.c (s390_register_name): Update.
7475 * rs6000-tdep.c (rs6000_register_name): Update.
7476 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7477 (ns32k_register_name_32382): Update.
7478 * d10v-tdep.c (d10v_ts2_register_name): Update.
7479 (d10v_ts3_register_name): Update.
7480 * xstormy16-tdep.c (xstormy16_register_name): Update.
7481 * vax-tdep.c (vax_register_name): Update.
7482 * v850-tdep.c (v850_register_name): Update.
7483 * m68hc11-tdep.c (m68hc11_register_name): Update.
7484 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7485 (am33_register_name): Update.
7486
ea1e7ef6
GS
74872002-06-17 Grace Sainsbury <graces@redhat.com>
7488
7489 * m68k-tdep.c: Reindented.
7490
9b02dd1b
AC
74912002-06-17 Andrew Cagney <ac131313@redhat.com>
7492
7493 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7494 list of predefined types.
7495
8758dec1
MK
74962002-06-16 Mark Kettenis <kettenis@gnu.org>
7497
b6197528
MK
7498 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7499 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7500 REGISTER_CONVERT_TO_RAW): Remove defines.
7501 (i386_register_virtual_type, i386_register_convertible,
7502 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7503 Remove prototypes.
7504 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7505 macros mentioned above.
7506
82b47e62
MK
7507 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7508 (i386lynx_saved_pc_after_call): Remove prototype.
7509 * i386ly-tdep.c: Include "i386-tdep.h".
7510 (i386lynx_saved_pc_after_call): Make static. Use
7511 read_memory_nobpt instead of read_memory. Use
7512 read_memory_unsigned_integer instead of read_memory_integer.
7513 (i386lynx_init_abi): New function.
7514 (i386lynx_coff_osabi_sniffer): New function.
7515 (_initialize_i386bsd_tdep): New function.
7516
8758dec1
MK
7517 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7518 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7519 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7520 (i386_fix_call_dummy): Remove prototype.
7521 * i386-tdep.c (i386_call_dummy_words): New variable.
7522 (i386_gdbarch_init): Adjust for removal of the
7523 macros mentioned above.
7524
e9e68a56
AC
75252002-06-15 Andrew Cagney <ac131313@redhat.com>
7526
7527 * command.h (add_setshow_auto_boolean_cmd): Replace
7528 add_set_auto_boolean_cmd.
7529 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7530 add_set_auto_boolean_cmd.
7531 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7532 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7533 mask-address'' command.
7534 (show_mask_address): Add cmd parameter.
7535 * remote.c (add_packet_config_cmd): Update. Change type of
7536 set_func and show_func to cmd_sfunc_ftype.
7537 (_initialize_remote): Update `set remote Z-packet'
7538 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7539 (show_remote_protocol_e_packet_cmd): Ditto.
7540 (show_remote_protocol_E_packet_cmd): Ditto.
7541 (show_remote_protocol_P_packet_cmd): Ditto.
7542 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7543 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7544 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7545 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7546 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7547 (show_remote_protocol_Z_packet_cmd): Ditto.
7548 (show_remote_protocol_binary_download_cmd): Ditto.
7549 (show_remote_cmd): Pass NULL to all of above.
7550
fc08ec52
MK
75512002-06-15 Mark Kettenis <kettenis@gnu.org>
7552
7553 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7554 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7555 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7556 POP_FRAME): Remove defines.
7557 (i386_push_arguments, i386_store_struct_return,
7558 i386_extract_return_value, i386_store_return_value,
7559 i386_extract_struct_value_address, i386_push_dummy_frame,
7560 i386_pop_frame): Renove prototypes.
7561 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7562 macros mentioned above.
7563
e707bbc2
AC
75642002-06-15 Andrew Cagney <ac131313@redhat.com>
7565
7566 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7567 add_set_boolean_cmd.
7568 (add_setshow_cmd): New function.
7569 * command.h (add_setshow_boolean_cmd): Replace
7570 add_set_boolean_cmd.
7571 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7572 and ``set rdiromatzero''.
7573 * maint.c (_initialize_maint_cmds): Update commented out code.
7574 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7575 * target.c (initialize_targets): Update `set
7576 trust-readonly-sections'.
7577 * remote.c (_initialize_remote): Update `set remotebreak'.
7578
42fdc8df
MK
75792002-06-15 Mark Kettenis <kettenis@gnu.org>
7580
93924b6b
MK
7581 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7582 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7583 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7584 fit into multi-arch framework.
7585 (i386_breakpoint_from_pc): New function.
7586 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7587 above.
7588
42fdc8df
MK
7589 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7590 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7591 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7592 (i386_frameless_function_invocation, i386_frame_num_args,
7593 i386_frame_init_saved_regs): Remove prototypes.
7594 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7595 macros mentioned above.
7596
9773a94b
AC
75972002-06-15 Andrew Cagney <ac131313@redhat.com>
7598
7599 * cli/cli-decode.c (set_cmd_cfunc): Update.
7600 (set_cmd_sfunc): Update.
7601 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7602 (set_cmd_sfunc, set_cmd_cfunc): Update.
7603 * cli/cli-decode.h: Update.
7604
6e157172
MK
76052002-06-15 Mark Kettenis <kettenis@gnu.org>
7606
7607 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7608 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7609
7f19b9a2
AC
76102002-06-15 Andrew Cagney <ac131313@redhat.com>
7611
7612 * defs.h (auto_boolean): Declare enum.
7613 * command.h (cmd_auto_boolean): Delete enum.
7614 * mips-tdep.c (mask_address_var): Update.
7615 (mips_mask_address_p): Update.
7616 (show_mask_address): Update.
7617 * remote.c (struct packet_config): Update.
7618 (update_packet_config): Update.
7619 (show_packet_config_cmd): Update.
7620 (packet_ok): Update.
7621 (add_packet_config_cmd): Update.
7622 (_initialize_remote):
7623 * command.h: Update.
7624 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7625 (do_setshow_command): Update.
7626 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7627 * cli/cli-decode.h: Update.
7628
1cf88de5
MK
76292002-06-15 Mark Kettenis <kettenis@gnu.org>
7630
22ba8cf2
MK
7631 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7632 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7633 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7634 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7635 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7636 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7637
762c5349
MK
7638 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7639 list of DJGPP COFF targets.
7640
091198bb
MK
7641 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7642 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7643 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7644 (FP0_REGNUM): Remove define.
7645 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7646 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7647 (i386_register_virtual_size): Remove protoype.
7648 * i386-tdep.c (i386_register_virtual_size): Removed.
7649 (i386_extract_return_value, i386_store_return_value): Use
7650 FP0_REGNUM instead of NUM_FREGS to determine whether the
7651 floating-point registers are available.
7652 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7653 Adjust for removal of macros mentioned above.
7654
76552002-06-15 Mark Kettenis <kettenis@gnu.org>
7656
fcc9bf01
MK
7657 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7658 comments.
7659 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7660 Remove prototypes.
7661 (supply_gregset, fill_gregset): Remove use of register keyword and
7662 remove declaration for regmap. Use I386_NUM_GREGS instead of
7663 NUM_REGS and NUM_FREGS.
7664 (FPREGSET_FSAVE_OFFSET): Remove.
7665 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7666 NUM_FREGS to determine whether the floating-point registers are
7667 available.
7668
65e78234
MK
7669 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7670 gnu_store_registers): Replace usage of NUM_GREGS with
7671 I386_NUM_GREGS.
7672
98df6387
MK
7673 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7674 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7675 usage of NUM_GREGS with I386_NUM_GREGS.
7676
099a9414
MK
7677 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7678
57976e88
MK
7679 * i386bsd-nat.c: Include "i386-tdep.h".
7680 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7681 I386_NUM_GREGS.
7682
b335f4a6
MK
7683 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7684 and associated comment. They no longer make any sense, since we
7685 don't use this file anymore on Linux.
7686
1cf88de5
MK
7687 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7688 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7689 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7690 elements in these arrays.
7691 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7692 MAX_NUM_REGS.
7693
daa66587
MK
76942002-06-15 Mark Kettenis <kettenis@gnu.org>
7695
7696 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7697 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7698
26e9b323
AC
76992002-06-14 Andrew Cagney <cagney@redhat.com>
7700
7701 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7702 EXTRACT_RETURN_VALUE.
7703 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7704 EXTRACT_STRUCT_VALUE_ADDRESS.
7705 * gdbarch.h, gdbarch.c: Regenerate.
7706
7707 * values.c (value_being_returned): Handle
7708 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7709 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7710
7711 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7712 * arm-tdep.c (arm_gdbarch_init): Update.
7713 * avr-tdep.c (avr_gdbarch_init): Update.
7714 * cris-tdep.c (cris_gdbarch_init): Update.
7715 * d10v-tdep.c (d10v_gdbarch_init): Update.
7716 * ia64-tdep.c (ia64_gdbarch_init): Update.
7717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7718 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7719 * s390-tdep.c (s390_gdbarch_init): Update.
7720 * sh-tdep.c (sh_gdbarch_init): Update.
7721 * s390-tdep.c (s390_gdbarch_init): Update.
7722 * sparc-tdep.c (sparc_gdbarch_init): Update.
7723 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7724 * v850-tdep.c (v850_gdbarch_init): Update.
7725 * vax-tdep.c (vax_gdbarch_init): Update.
7726 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7728
7729 * config/arc/tm-arc.h: Update.
7730 * config/d30v/tm-d30v.h: Update.
7731 * config/fr30/tm-fr30.h: Update.
7732 * config/h8300/tm-h8300.h: Update.
7733 * config/h8500/tm-h8500.h: Update.
7734 * config/i386/tm-i386.h: Update.
7735 * config/i386/tm-ptx.h: Update.
7736 * config/i386/tm-symmetry.h: Update.
7737 * config/i960/tm-i960.h: Update.
7738 * config/m32r/tm-m32r.h: Update.
7739 * config/m68k/tm-delta68.h: Update.
7740 * config/m68k/tm-linux.h: Update.
7741 * config/m68k/tm-m68k.h: Update.
7742 * config/m88k/tm-m88k.h: Update.
7743 * config/mcore/tm-mcore.h: Update.
7744 * config/mips/tm-mips.h: Update.
7745 * config/mn10200/tm-mn10200.h: Update.
7746 * config/pa/tm-hppa.h: Update.
7747 * config/pa/tm-hppa64.h: Update.
7748 * config/sparc/tm-sp64.h: Update.
7749 * config/sparc/tm-sparc.h: Update.
7750 * config/sparc/tm-sparclet.h: Update.
7751 * config/z8k/tm-z8k.h: Update.
7752
5179e78f
AC
77532002-06-14 Andrew Cagney <cagney@redhat.com>
7754
7755 * Makefile.in (i386_linux_tdep_h): Define.
7756 (i386_tdep_h, i387_tdep_h): Define.
7757 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7758 $(i386_tdep_h) and $(i387_tdep_h).
7759 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7760
8201327c
MK
77612002-06-14 Mark Kettenis <kettenis@gnu.org>
7762
edf393ac
MK
7763 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7764 Already covered by the default.
7765
896fb97d
MK
7766 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7767 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7768 (i386_gdbarch_init): Initialize long_double_format and long_double
7769 bit.
7770
8201327c
MK
7771 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7772 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7773 Move these to ...
7774 * config/i386/i386sol2.mh: ... here.
7775 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7776 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7777 (SIGCONTEXT_PC_OFFSET): Remove define.
7778 (IN_SIGTRAMP): Remove define.
7779 * i386-sol2-tdep.c: New file.
7780
7781 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7782 * config/i386/tm-i386nw.h: Removed.
7783
7784 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7785 USE_STRUCT_CONVENTION): Remove defines.
7786 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7787 (get_longjmp_target): Remove prototype.
7788 (IN_SIGTRAMP): Remove define.
7789 (i386bsd_in_sigtramp): Remove prototype.
7790 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7791 function. Update comment accordingly
7792 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7793 (FRAME_SAVED_PC): Remove define.
7794 (i386bsd_frame_saved_pc): Remove prototype.
7795 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7796 GET_LONGJMP_TARGET): Remove defines.
7797 (get_longjmp_target): Remove prototype.
7798 (IN_SIGTRAMP): Remove define.
7799 (i386bsd_in_sigtramp): Remove prototype.
7800 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7801 function. Update comment accordingly
7802 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7803 (FRAME_SAVED_PC): Remove define.
7804 (i386bsd_frame_saved_pc): Remove prototype.
7805 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7806 Remove prototype.
7807 (USE_STRUCT_CONVENTION): Remove prototype.
7808 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7809 declaration.
7810 (_initialize_i386bsd_nat): Revise logic to determine some
7811 constants at compile time when compiling a native GDB. Warn if
7812 things don't match up with what we expect.
7813 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7814 Remove variables.
7815 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7816 to use date stored in `struct gdbarch_tdep'.
7817 (i386bsd_sigcontext_offset): Remove varaible.
7818 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7819 stored in `struct gdbarch_tdep'.
7820 (i386bsd_frame_saved_pc): Make static.
7821 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7822 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7823 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7824 i386fbsd4_sc_pc_offset): New variables.
7825 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7826 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7827 functions.
7828 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7829 functions.
7830 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7831 Modify the value of i386fbsd_sigtramp_start and
7832 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7833 i386fbsd_sigtramp_end.
7834 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7835 function.
7836
7837 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7838 define to i386-linux-tdep.h.
7839 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7840 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7841 defines.
7842 (i386_linux_register_name, i386_linux_register_byte,
7843 i386_linux_register_raw_size): Remove prototypes.
7844 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7845 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7846 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7847 TARGET_WRITE_PC): Remove defines.
7848 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7849 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7850 i386_linux_write_pc): Remove prototypes.
7851 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7852 (get_longjmp_target): Remove prototype.
7853 * i386-linux-tdep.h: New file.
7854 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7855 * i386-linux-tdep.c: Include "i386-tdep.h" and
7856 "i386-linux-tdep.h".
7857 (i386_linux_register_name, i386_linux_register_byte,
7858 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7859 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7860 Make static.
7861 (i386_linux_init_abi): New function.
7862 (_initialize_i386_linux_tdep): New function.
7863
7864 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7865 (i386_saved_pc_after_call): Remove prototype.
7866 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7867 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7868 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7869 (i386_register_name, i386_stab_reg_to_regnum,
7870 i386_dwarf_reg_to_regnum): Remove prototypes.
7871 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7872 SIZEOF_SSE_REGS): Remove defines.
7873 (REGISTER_BYTES): Remove define.
7874 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7875 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7876 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7877 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7878 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7879 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7880 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7881 (get_longjmp_target): Remove prototype.
7882 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7883 (sigtramp_saved_pc): Remove define.
7884 (i386v4_sigtramp_saved_pc): Remove prototype.
7885 * config/i386/tm-go32.h (FRAME_CHAIN,
7886 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7887 (i386go32_frame_saved_pc): Remove prototype.
7888 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7889 (get_longjmp_target): Remove prototype.
7890 * i386-tdep.h: Include "osabi.h".
7891 (enum i386_abi): Removed.
7892 (enum struct_return): New enum.
7893 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7894 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7895 sc_pc_offset members.
7896 (i386_gdbarch_register_os_abi): Remove prototype.
7897 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7898 I386_SSE_NUM_REGS): New defines.
7899 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7900 I386_SSE_SIZEOF_REGS): New defines.
7901 (i386_register_name, i386_register_byte, i386_register_raw_size):
7902 New prototypes.
7903 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7904 (i386bsd_sigtramp_saved_pc): New prototype.
7905 * i386-tdep.c: Don't include "elf-bfd.h".
7906 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7907 i386_frame_chain, i386_saved_pc_after_call): Make static.
7908 (i386_frame_saved_pc): Rewrite to call architecture dependent
7909 function to deal with signal handlers. Make static.
7910 (i386go32_frame_saved_pc): Removed.
7911 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7912 Removed.
7913 (i386_get_longjmp_target): New function.
7914 (default_struct_convention, pcc_struct_convention,
7915 reg_struct_convention, valid_conventions, struct_convention): New
7916 variables.
7917 (i386_use_struct_convention): New function.
7918 (i386v4_sigtramp_saved_pc): Renamed to
7919 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7920 (i386_pc_in_sigtramp): New function.
7921 (i386_abi_names): Removed.
7922 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7923 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7924 Removed.
7925 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7926 i386_gdbarch_register_os_abi): Removed.
7927 (struct i386_abi_handler): Removed.
7928 (i386_abi_handler_list): Removed.
7929 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7930 functions.
7931 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7932 i386_nw_init_abi): New functions.
7933 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7934 Use set_gdbarch_xxx() calls instead of relying on macros for a
7935 number of calls.
7936 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7937 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7938 Register the various architecture variants defined in this file.
7939
ad2f7632
DJ
79402002-06-14 Daniel Jacobowitz <drow@mvista.com>
7941
7942 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7943 (struct main_type): Remove arg_types member. Update comments for
7944 struct field.
7945 (TYPE_ARG_TYPES): Remove.
7946 (TYPE_FN_FIELD_ARGS): Update.
7947 (smash_to_method_type): Update prototype.
7948
7949 * c-typeprint.c (cp_type_print_method_args): Take method type
7950 instead of argument list. Use new argument layout. Simplify.
7951 (c_type_print_args): Use new argument layout. Simplify.
7952 (c_type_print_base): Update call to cp_type_print_method_args.
7953 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7954 argument; use die->type instead. Update call to
7955 smash_to_method_type.
7956 (read_structure_scope): Update call to dwarf2_add_member_fn.
7957 * gdbtypes.c (allocate_stub_method): Update comment.
7958 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7959 Use new argument layout.
7960 (check_stub_method): Use new argument layout. Don't count
7961 void as an argument.
7962 (print_arg_types): Update comments. Use new argument layout.
7963 (recursive_dump_type): Don't print arg_types member.
7964 * hpread.c (hpread_read_struct_type): Use new argument layout.
7965 (fixup_class_method_type): Likewise.
7966 (hpread_type_lookup): Likewise.
7967 * stabsread.c (read_type): Update calls to read_args and
7968 smash_to_method_type.
7969 (read_args): Use new argument layout. Simplify.
7970 * valops.c (typecmp): Use new argument layout. Update parameters
7971 and comments. Simplify.
7972 (hand_function_call): Use new argument layout.
7973 (search_struct_method): Update call to typecmp.
7974 (find_overload_match): Use new argument layout.
7975
6da02953
DJ
79762002-06-13 Daniel Jacobowitz <drow@mvista.com>
7977
7978 * NEWS: Mention multithreaded debug support for gdbserver.
7979
519b2366
DJ
79802002-06-13 Daniel Jacobowitz <drow@mvista.com>
7981
7982 * MAINTAINERS: Mention NEWS.
7983
6c0d6680
DJ
79842002-06-13 Daniel Jacobowitz <drow@mvista.com>
7985
7986 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7987 (struct mips_objfile_private, compare_pdr_entries): New.
7988 (non_heuristic_proc_desc): Read the ".pdr" section if it
7989 is present.
7990
6529d2dd
AC
79912002-06-12 Andrew Cagney <ac131313@redhat.com>
7992
7993 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7994 (arm_debug): New static variable.
7995 (_initialize_arm_tdep): Add ``set debug arm'' command.
7996
26216b98
AC
79972002-06-12 Andrew Cagney <ac131313@redhat.com>
7998
7999 * Makefile.in (sim_arm_h): Define.
8000 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8001 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8002 (arm_register_sim_regno): New function, map an internal REGNUM
8003 onto a simulator register number.
8004 (arm_gdbarch_init): Set register_sim_regno.
8005
814b3ba0
AH
80062002-06-09 Aldy Hernandez <aldyh@redhat.com>
8007
8008 * MAINTAINERS: Add self.
8009
475b0867
JB
80102002-06-11 Jim Blandy <jimb@redhat.com>
8011
919d772c
JB
8012 * source.c (source_info): Mention whether the symtab has
8013 information about preprocessor macros.
8014
475b0867
JB
8015 Call the command `info macro', not `show macro'.
8016 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8017 Fix error message.
8018 (_initialize_macrocmd): Register `info_macro_command' in
8019 `infolist', not `showlist'.
8020
9e364162
DJ
80212002-06-11 Daniel Jacobowitz <drow@mvista.com>
8022
8023 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8024 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8025 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8026 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8027 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8028 unconditionally.
8029 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8030 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8031 (_initialize_mips_tdep): Remove dead code.
8032 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8033 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8034 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8035 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8036 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8037 MIPS_LAST_FP_ARG_REGNUM): Remove.
8038
23aa4c72
ML
80392002-06-11 Michal Ludvig <mludvig@suse.cz>
8040
8041 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8042 (unwind_tmp_obstack_free, parse_frame_info)
8043 (update_context, cfi_read_fp, cfi_write_fp)
8044 (cfi_frame_chain, cfi_init_extra_frame_info)
8045 (cfi_virtual_frame_pointer): Use the above function.
264d1763 8046 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 8047
70eb15a4
CV
80482002-06-11 Corinna Vinschen <vinschen@redhat.com>
8049
8050 * v850-tdep.c (v850_type_is_scalar): New function.
8051 (v850_use_struct_convention): Match current gcc implementation
8052 as close as possible.
8053 (v850_push_arguments): Fix stack_offset handling. Don't write
8054 struct_addr into register. This is done by v850_store_struct_return.
8055 (v850_extract_return_value): Care for structs.
8056 (v850_store_return_value): Ditto.
8057 (v850_store_struct_return): Actually write address.
8058
482a4d06
ML
80592002-06-11 Michal Ludvig <mludvig@suse.cz>
8060
8061 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8062 without debug information too.
8063
d855c300
AC
80642002-06-10 Andrew Cagney <ac131313@redhat.com>
8065
8066 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8067 Make multi-arch pure.
8068 * gdbarch.h, gdbarch.c: Re-generate.
8069 * arm-tdep.c (arm_print_float_info): Update.
8070 * arch-utils.h (default_print_float_info): Update.
8071 * arch-utils.c (default_print_float_info): Update.
8072 * infcmd.c (float_info): Update call.
8073
dd12a101
AC
80742002-06-10 Andrew Cagney <ac131313@redhat.com>
8075
8076 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8077 the front of the initialize list.
8078
101dcfbe
AC
80792002-06-10 Andrew Cagney <ac131313@redhat.com>
8080
8081 * infrun.c (struct inferior_status): Replace fields
8082 selected_frame_address and selected_level with field
8083 selected_frame_id.
8084 (save_inferior_status): Update. Use get_frame_id.
8085 (struct restore_selected_frame_args): Delete.
8086 (restore_selected_frame): Update. Use frame_find_by_id.
8087 (restore_inferior_status): Update.
8088
8089 * breakpoint.h (struct breakpoint): Change type of
8090 watchpoint_frame to frame_id.
8091 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8092 call to get_current_frame.
8093 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8094 get_current_frame.
8095 (watchpoint_check): Use frame_find_by_id.
8096
8097 * frame.h (record_selected_frame): Delete declaration.
8098 * stack.c (record_selected_frame): Delete function.
8099
8100 * frame.h (struct frame_id): Define.
8101 (get_frame_id): Declare.
8102 (frame_find_by_id): Declare.
8103 * frame.c (frame_find_by_id): New function.
8104 (get_frame_id): New function.
8105
304270b6
AV
81062002-06-10 Andrey Volkov <avolkov@transas.com>
8107
8108 * ser-e7kpc.c: Fix duplicated define and call of
8109 _initialize_ser_e7000pc
8110
2f2cf184
DJ
81112002-06-09 Daniel Jacobowitz <drow@mvista.com>
8112
8113 * signals/signals.c (target_signal_from_host): Fix #ifdef
8114 SIGRTMIN case.
8115 (do_target_signal_to_host): Likewise.
8116
caaa3122
DJ
81172002-06-09 Daniel Jacobowitz <drow@mvista.com>
8118
8119 * mips-tdep.c (mips_find_abi_section): New function.
8120 (mips_gdbarch_init): Call it.
8121
6ac5df3a
MK
81222002-06-09 Mark Kettenis <kettenis@gnu.org>
8123
8124 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8125 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8126 after Andrew's 2002-06-08 gdbarch change.
8127
82ea117a
MK
81282002-06-09 Mark Kettenis <kettenis@gnu.org>
8129
8130 * i386-linux-nat.c (suppy_gregset): Don't supply
8131 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8132 register cache.
8133 (fill_gregset): Don't fetch it under the same circumstances.
8134
3c25f8c7
AC
81352002-06-09 Andrew Cagney <cagney@redhat.com>
8136
8137 * Makefile.in (callback_h): Define.
8138 (remote_sim_h): Update path to remote-sim.h.
8139 (remote-rdp.o): Add $(callback_h).
8140 (remote-sim.o): Use $(callback_h).
8141 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8142 * remote-rdp.c: Include "gdb/callback.h".
8143
1029b7fa
MK
81442002-06-09 Mark Kettenis <kettenis@gnu.org>
8145
8146 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8147 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8148
616675d3
AC
81492002-06-08 Andrew Cagney <ac131313@redhat.com>
8150
a3efda28
AC
8151 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8152 * rdi-share/serpardr.c: Ditto.
8153 * rdi-share/unixcomm.c: Ditto.
8154 * rdi-share/serdrv.c: Ditto.
8155 * rdi-share/hostchan.h: Ditto.
8156 * rdi-share/hostchan.c: Ditto.
8157 * rdi-share/host.h: Ditto.
8158 * rdi-share/devsw.c: Ditto.
8159
c5f10366
AC
8160 * objfiles.h: Change type of obj_private to void pointer.
8161 * pa64solib.c: Update copyright. Don't include "assert.h", use
8162 strcmp instead of STREQ, use LONGEST, do not use PTR
8163 * somsolib.c: Ditto.
8164
616675d3
AC
8165 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8166 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8167 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8168
e4b415d9
AC
81692002-06-08 Andrew Cagney <ac131313@redhat.com>
8170
8171 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8172 (default_get_saved_register): Delete function.
8173 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8174 generic_unwind_get_saved_register.
8175 * gdbarch.h, gdbarch.c: Re-generate.
8176
ca0d0b52
AC
81772002-06-08 Andrew Cagney <ac131313@redhat.com>
8178
8179 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8180 generic_func_frame_chain_valid.
8181 * gdbarch.h, gdbarch.c: Re-generate.
8182 * blockframe.c (generic_func_frame_chain_valid): Only check
8183 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8184 passing FP to PC_IN_CALL_DUMMY.
8185 Fix PR gdb/360.
8186
76860b5f
AC
81872002-06-08 Andrew Cagney <ac131313@redhat.com>
8188
8189 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8190 (register_gdbarch_data): Initialize init_p.
8191 (gdbarch_data): Initialize data pointer using the init function.
8192 (init_gdbarch_data): Delete function.
8193 (gdbarch_update_p): Update.
8194 (initialize_non_multiarch): Update.
8195 (struct gdbarch): Add field initialized_p.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197
8dda9770
ML
81982002-06-07 Michal Ludvig <mludvig@suse.cz>
8199
8200 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8201 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8202 better do the things actually here.
8203 * x86-64-tdep.c (x86_64_register_name2nr): New.
8204 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8205 (x86_64_gdbarch_init): Respect the above change.
8206 * x86-64-tdep.h (x86_64_register_name2nr)
8207 (x86_64_register_nr2name): Add prototypes.
8208 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8209
3d79a47c
MS
82102002-06-06 Michael Snyder <msnyder@redhat.com>
8211
7bd91a28
MS
8212 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8213 Delete extra braces and re-indent.
8214 (d10v_store_return_value): Char return values
3d79a47c
MS
8215 must be shifted over by one byte in R0.
8216 (d10v_extract_return_value): Delete extra braces, re-indent.
8217
095a4c96
EZ
82182002-06-06 Elena Zannoni <ezannoni@redhat.com>
8219
8220 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8221 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8222 (d10v_integer_to_address): Rewrite.
8223 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8224 the d10v specific functions which take care of converting to the
8225 correct space.
8226
e8a77ca4
EZ
82272002-06-06 Elena Zannoni <ezannoni@redhat.com>
8228
8229 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8230 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8231
4f2e4a4f
AC
82322002-06-02 Andrew Cagney <ac131313@redhat.com>
8233
8234 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8235 includes.
8236 * config/tm-linux.h: Ditto.
8237 * config/alpha/tm-alphalinux.h: Ditto.
8238 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8239 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8240 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8241 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8242 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8243 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8244 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8245 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8246 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8247 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8248 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8249 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8250 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8251 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8252 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8253 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8254 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8255 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8256 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8257 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8258 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8259 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8260 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8261 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8262 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8263 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8264 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8265 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8266 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8267 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8268 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8269 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8270 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8271 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8272 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8273 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8274 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8275
ae2ab2ce
AS
82762002-05-04 Aidan Skinner <aidan@velvet.net>
8277
8278 * ada-exp.tab.c: New file
8279 * ada-exp.y: New file
8280 * ada-lang.c: New file
8281 * ada-lang.h: New file
8282 * ada-lex.c: New file
8283 * ada-lex.l: New file
8284 * ada-tasks.c: New file
8285 * ada-typeprint.c: New file
8286 * ada-valprint.c: New file
8287
0ddd0135
JT
82882002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8289
8290 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8291 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8292
750fbacc
JT
82932002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8294
8295 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8296 insetead of ppc-linux-tdep.o.
8297 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8298 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8299
df94e18a
AC
83002002-06-02 Andrew Cagney <ac131313@redhat.com>
8301
8302 2002-05-07 Christian Groessler <chris@groessler.org>
8303 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8304 bit register contents for little endian hosts.
8305
1a38ab75
AC
83062002-06-01 Andrew Cagney <ac131313@redhat.com>
8307
8308 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8309 any maintainer.
8310
8b1632ac
AC
83112002-06-01 Andrew Cagney <ac131313@redhat.com>
8312
8313 * gdbarch.h: Regenerate.
8314
627054c8
AC
83152002-06-01 Andrew Cagney <ac131313@redhat.com>
8316
8317 * MAINTAINERS: Add everyone to write-after-approval list.
8318
4f460812
AC
83192002-06-01 Andrew Cagney <ac131313@redhat.com>
8320
8321 * stack.c (frame_info): Use frame_register_unwind instead of
8322 saved_regs. Mention when the SP is on the stack or in a register.
8323
8324 * frame.h (frame_register_unwind_ftype): Define. Document.
8325 (struct frame_info): Add field register_unwind and
8326 register_unwind_cache.
8327 (frame_register_unwind): Declare.
8328 (generic_unwind_get_saved_register): Declare.
8329
8330 * frame.c (frame_register_unwind): New function.
8331 (generic_unwind_get_saved_register): New function.
8332
8333 * blockframe.c (generic_call_dummy_register_unwind): New function.
8334 (frame_saved_regs_register_unwind): New function.
8335 (set_unwind_by_pc): New function.
8336 (create_new_frame): New function.
8337 (get_prev_frame): New function.
8338
de888f76
AC
83392002-05-30 Andrew Cagney <ac131313@redhat.com>
8340
8341 * a29k-share/: Delete directory.
8342 * remote-vx29k.c: Delete file.
8343
2f2c3626
JT
83442002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8345
8346 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8347 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8348
9ce5c36a
JT
83492002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8350
8351 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8352 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8353 (sparc64nbsd-nat.o)
8354 (sparcnbsd-nat.o)
8355 (sparcnbsd-tdep.o): New dependency lists.
8356 * NEWS: Note new UltraSPARC NetBSD native configuration.
8357 * configure.host (sparc64-*-netbsd*): New host.
8358 * configure.tgt (sparc-*-netbsdelf*)
8359 (sparc-*-netbsd*): Set gdb_target to nbsd.
8360 (sparc64-*-netbsd*): New target.
8361 * sparc64nbsd-nat.c: New file.
8362 * sparcnbsd-nat.c: New file.
8363 * sparcnbsd-tdep.c: New file.
8364 * sparcnbsd-tdep.h: New file.
8365 * config/sparc/nbsd.mt: New file.
8366 * config/sparc/nbsd64.mh: New file.
8367 * config/sparc/nbsd64.mt: New file.
8368 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8369 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8370 (HOST_IPC): Remove.
8371 * config/sparc/nbsdaout.mt: Remove.
8372 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8373 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8374 (HOST_IPC): Remove.
8375 * config/sparc/nbsdelf.mt: Remove.
8376 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8377 sparc-nat.c compatiblity defines.
8378 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8379 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8380 * config/sparc/tm-nbsd64.h: New file.
8381 * config/sparc/tm-nbsdaout.h: Remove.
8382 * config/sparc/xm-nbsd.h: Remove.
8383
ef3cf062
JT
83842002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8385
8386 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8387 * sparc-tdep.c: Include osabi.h.
8388 (gdbarch_tdep): Add osabi member.
8389 (_initialize_sparc_tdep): Use gdbarch_register.
8390 (sparc_gdbarch_init): Use generic OS ABI framework.
8391 (sparc_dump_tdep): New function.
8392
ee8ff470
KB
83932002-05-30 Kevin Buettner <kevinb@redhat.com>
8394
8395 * corefile.c (do_captured_read_memory_integer): Return non-zero
8396 result.
8397 (safe_read_memory_integer): Copy result of memory read when
8398 status is non-zero. Also, add comments.
8399
7b112f9c
JT
84002002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8401
8402 * Makefile.in (ppc_tdep_h): Define.
8403 (ppc-linux-nat.o)
8404 (ppc-linux-tdep.o)
8405 (rs6000-tdep.o): Use $(ppc_tdep_h).
8406 (ppc-sysv-tdep.o)
8407 (ppcnbsd-nat.o)
8408 (ppcnbsd-tdep.o): New dependency lists.
8409 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8410 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8411 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8412 (ppc_sysv_abi_broken_use_struct_convention)
8413 (ppc_sysv_abi_use_struct_convention)
8414 (ppc_sysv_abi_push_arguments): Move to...
8415 * ppc-sysv-tdep.c: ...here.
8416 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8417 * rs6000-tdep.c (process_note_abi_tag_sections)
8418 (get_elfosabi): Remove.
8419 (rs6000_gdbarch_init): Use generic OS ABI framework.
8420 (rs6000_dump_tdep): New function.
8421 (_initialize_rs6000_tdep): Use gdbarch_register.
8422 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8423 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8424 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8425 of ppc-linux-tdep.o.
8426 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8427 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8428 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8429 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8430 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8431 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8432
480dd42a
JB
84332002-05-29 Jim Blandy <jimb@redhat.com>
8434
8435 * macroscope.c (default_macro_scope): Put `void' in empty argument
8436 list.
8437
4182591f
AC
84382002-05-29 Andrew Cagney <ac131313@redhat.com>
8439
8440 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8441 * arch-utils.c: Include "sim-regno.h".
8442 * gdbarch.sh: Don't include "sim-regno.h".
8443 * gdbarch.h, gdbarch.c: Regenerate.
8444 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8445 here.
8446 * arch-utils.h (legacy_register_sim_regno): To here.
8447 * remote-sim.c (legacy_register_sim_regno): Move function from
8448 here.
8449 * arch-utils.c (legacy_register_sim_regno): To here.
8450
8238d0bf
AC
84512002-05-28 Andrew Cagney <ac131313@redhat.com>
8452
8453 * sim-regno.h: New file.
8454 * Makefile.in (sim_regno_h): Define.
8455 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8456 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8457 (legacy_register_sim_regno): New function.
8458 (one2one_register_sim_regno): New function.
8459 (gdbsim_fetch_register): Rewrite.
8460 (gdbsim_store_register): Only store a register when
8461 REGISTER_SIM_REGNO is valid.
8462 * d10v-tdep.c: Include "sim-regno.h".
8463 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8464 (d10v_ts3_register_sim_regno): Ditto.
8465 * gdbarch.sh: Include "sim-regno.h".
8466 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8467 * gdbarch.h, gdbarch.c: Regenerate.
8468 * arch-utils.h (default_register_sim_regno): Delete declaration.
8469 * arch-utils.c (default_register_sim_regno): Delete function.
8470
485721b1
JT
84712002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8472
8473 * ppcnbsd-nat.c: Rewrite.
8474 * ppcnbsd-tdep.c: New file.
8475 * ppcnbsd-tdep.h: New file.
8476 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8477 solib.o, and solib-svr4.o.
8478 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8479 nbsd-tdep.o, and corelow.o.
8480
697f244d
AC
84812002-05-28 Andrew Cagney <ac131313@redhat.com>
8482
8483 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8484 `tr' and `sed'. Mention that `broken' targets are not expected to
8485 build.
8486
f08caad1 84872002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
8488
8489 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8490 Let PC point right after the prologue before looking up symbols.
8491
3139facc
MH
84922002-05-27 Martin M. Hunt <hunt@redhat.com>
8493
8494 * i386-tdep.c (i386_register_virtual_type): Return
8495 builtin_type_vec128i for SSE registers.
8496
8497 * gdbtypes.h (builtin_type_vec128i): Declare.
8498
8499 * gdbtypes.c (build_builtin_type_vec128i): New function.
8500 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8501 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8502 (build_gdbtypes): Initialize new builtin vector types.
8503 (_initialize_gdbtypes): Register new vector types with gdbarch.
8504
6e3ba3b8
JT
85052002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8506
8507 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8508 since it has been multi-arch'd.
8509 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8510 Move Alpha and VAX multi-arch news entries to same section
8511 as other multi-arch news.
8512
93d5585d
JT
85132002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8514
8515 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8516 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8517 static. Rename some register numbers to put them in ns32k-tdep
8518 private namespace.
8519 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8520 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8521 functions.
8522 (_initialize_ns32k_tdep): Use gdbarch_register.
8523 * ns32k-tdep.h: New file.
8524 * ns32knbsd-tdep.c: New file.
8525 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8526 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8527 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8528 REGISTER_BYTES, REGISTER_BYTE): Remove.
8529 * config/ns32k/tm-ns32k.h: New file.
8530 * config/ns32k/tm-umax.h: Remove.
8531
efb2c70e
JT
85322002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8533
8534 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8535 ns32k_store_struct_return, ns32k_extract_return_value,
8536 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8537 functions.
8538 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8539 ns32k_saved_pc_after_call.
8540 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8541 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8542 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8543 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8544 ns32k_extract_struct_value_address.
8545
7bcc927b
JT
85462002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8547
8548 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8549 ns32k_fix_call_dummy): New.
8550 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8551 ns32k_call_dummy_words.
8552 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8553 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8554 CALL_DUMMY_NARGS): Remove.
8555 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8556
78f9d765
JT
85572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8558
8559 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8560 ns32k_frame_saved_pc, ns32k_frame_args_address,
8561 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8562 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8563 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8564 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8565 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8566 (BREAKPOINT): Remove..
8567 (FRAME_CHAIN): Define as ns32k_frame_chain.
8568 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8569 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8570 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8571 (FRAME_FIND_SAVED_REGS): Remove.
8572 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8573 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8574 (POP_FRAME): Define as ns32k_pop_frame.
8575
f2c762e0
JT
85762002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8577
8578 * ns32k-tdep.c (ns32k_register_byte_32082,
8579 ns32k_register_byte_32382, ns32k_register_raw_size,
8580 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8581 functions.
8582 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8583 ns32k_register_byte_32382.
8584 * config/ns32k/tm-umax.h: Update copyright years.
8585 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8586 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8587 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8588 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8589 (ns32k_get_enter_addr): Fix prototype.
8590
af137673
JT
85912002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8592
8593 * ns32k-tdep.c: Update copyright years.
8594 (ns32k_register_name_32082): New function.
8595 (ns32k_register_name_32382): Ditto.
8596 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8597 (REGISTER_NAME): Define as ns32k_register_name_32382.
8598 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8599 (REGISTER_NAME): Define as ns32k_register_name_32082.
8600
a8bc7b56
JB
86012002-05-24 Jim Blandy <jimb@redhat.com>
8602
8603 * dwarf2read.c (free_line_header): Use xfree, not free.
8604
83a45910
JT
86052002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8606
8607 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8608 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8609
0db71247
AC
86102002-05-23 Andrew Cagney <ac131313@redhat.com>
8611
8612 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8613
b9e5e4dd
AC
86142002-05-23 Andrew Cagney <ac131313@redhat.com>
8615
8616 From Ross Alexander at NEC Europe:
8617 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8618
de530e84
MS
86192002-05-23 Michael Snyder <msnyder@redhat.com>
8620
8621 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8622 for input, rather than parse_and_eval_address.
8623
b91b96f4
AC
86242002-05-23 Andrew Cagney <ac131313@redhat.com>
8625
8626 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8627 * Makefile.in (sim_d10v_h): Update definition.
8628
8b279e7a
AC
86292002-05-24 Andrew Cagney <cagney@redhat.com>
8630
8631 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8632 change `2002-05-22 Michael Snyder' below.
8633 (d10v_push_arguments): Ditto.
8634 (d10v_extract_return_value): Ditto.
8635
0a3d0425
JB
86362002-05-23 Jim Blandy <jimb@redhat.com>
8637
8638 * macrotab.c (check_for_redefinition): Don't complain if the new
8639 definition is the same as the previous one. Take more arguments
8640 to allow the comparison.
8641 (macro_define_object, macro_define_function): Pass more arguments
8642 to check_for_redefinition.
8643
78eac43e
MS
86442002-05-22 Michael Snyder <msnyder@redhat.com>
8645
8646 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8647 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8648 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8649 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8650 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8651 Add a temp variable to save a call (and a memory read).
8652 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8653 if possible (so that PC_IN_CALL_DUMMY will work).
8654
9bc1edb8
CV
86552002-05-22 Corinna Vinschen <vinschen@redhat.com>
8656
8657 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8658
005ef3d2
ML
86592002-05-22 Michal Ludvig <mludvig@suse.cz>
8660
8661 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8662 fde->cie_ptr.
8663 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8664 (dwarf2_build_frame_info): Add offset to fde->initial_location
8665 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8666 (execute_stack_op): Change type of 'result' from ULONGEST to
8667 CORE_ADDR.
005ef3d2 8668
fcf4f891
JT
86692002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8670
8671 * config/alpha/tm-nbsd.h: Include solib.h.
8672
cfef91e4
JT
86732002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8674
8675 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8676 assumptions about the host's byte order.
8677
9964235a
JT
86782002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8679
8680 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8681 to dependency list.
8682 * alphanbsd-tdep.c: Include solib-svr4.h.
8683 * shnbsd-tdep.c: Ditto.
8684
9eeef8ef
JT
86852002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8686
8687 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8688 nbsd-tdep.h to dependency list.
8689 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8690 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8691 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8692 nbsdaout.mh and nbsdelf.mh consistently.
8693 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8694 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8695 nbsdaout.mt and nbsdelf.mh consistently.
8696 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8697 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8698 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8699 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8700 a.out shared library stuff from here...
8701 * config/nm-nbsdaout.h: ...to here.
8702 * config/tm-nbsd.h: Remove.
8703 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8704 * config/arm/nbsd.mh: Remove.
8705 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8706 nbsd-tdep.o.
8707 * config/arm/nbsdaout.mh: New file.
8708 * config/arm/nbsdelf.mh: New file.
8709 * config/arm/nm-nbsdaout.h: New file.
8710 * config/i386/nbsd.mh: Remove.
8711 * config/i386/nbsd.mt: Remove.
8712 * config/i386/nbsdaout.mh: New file.
8713 * config/i386/nbsdaout.mt: New file.
8714 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8715 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8716 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8717 i386_register_u_addr): Remove.
8718 * config/i386/nm-nbsdaout.h: New file.
8719 * config/i386/nm-nbsdelf.h: Remove.
8720 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8721 (USE_STRUCT_CONVENTION): Remove.
8722 * config/i386/tm-nbsdaout.h: New file.
8723 * config/i386/tm-nbsdelf.h: Remove.
8724 * config/m68k/nbsd.mh: Remove.
8725 * config/m68k/nbsd.mt: Remove.
8726 * config/m68k/nbsdaout.mh: New file.
8727 * config/m68k/nbsdaout.mt: New file.
8728 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8729 * config/m68k/nm-nbsdaout.h: New file.
8730 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8731 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8732 * config/ns32k/nbsd.mh: Remove.
8733 * config/ns32k/nbsd.mt: Remove.
8734 * config/ns32k/nbsdaout.mh: New file.
8735 * config/ns32k/nbsdaout.mt: New file.
8736 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8737 * config/ns32k/nm-nbsdaout.h: New file.
8738 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8739 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8740 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8741 (SVR4_SHARED_LIBS): Remove.
8742 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8743 * config/sparc/nbsd.mh: Remove.
8744 * config/sparc/nbsd.mt: Remove.
8745 * config/sparc/nbsdaout.mh: New file.
8746 * config/sparc/nbsdaout.mt: New file.
8747 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8748 * config/sparc/nbsdelf.mt: New file.
8749 * config/sparc/nm-nbsdaout.h: New file.
8750 * config/sparc/nm-nbsdelf.h: Remove.
8751 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8752 * config/sparc/tm-nbsdaout.h: New file.
8753
257ce470
JT
87542002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8755
8756 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8757 mipsnbsd-tdep.c
8758 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8759
76a6d5fe
JT
87602002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8761
8762 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8763 shnbsd-nat.c.
8764 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8765
45888261
JT
87662002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8767
8768 * NEWS: Note new MIPS NetBSD native configuration.
8769 * configure.host (mips*-*-netbsd*): New host.
8770 * configure.tgt (mips*-*-netbsd*): New target.
8771 * mipsnbsd-nat.c: New file.
8772 * mipsnbsd-tdep.c: New file.
8773 * mipsnbsd-tdep.h: New file.
8774 * config/mips/nbsd.mh: New file.
8775 * config/mips/nbsd.mt: New file.
8776 * config/mips/nm-nbsd.h: New file.
8777 * config/mips/tm-nbsd.h: New file.
8778
70f80edf
JT
87792002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8780
8781 * Makefile.in (SFILES): Add osabi.c.
8782 (COMMON_OBS): Add osabi.o.
8783 (osabi.o): New dependency list.
8784 * osabi.c: New file.
8785 * osabi.h: New file.
8786 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8787
8788 * Makefile.in (alpha_tdep_h): Define and use instead of
8789 alpha-tdep.h.
8790 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8791 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8792 Remove.
8793 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8794 * alpha-tdep.h: Include osabi.h.
8795 (alpha_abi): Remove.
8796 (gdbarch_tdep): Use generic OS ABI framework.
8797 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8798 gdbarch_register_osabi.
8799 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8800 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8801 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8802
8803 * Makefile.in (sh_tdep_h): Add osabi.h.
8804 * sh-tdep.h (sh_osabi): Remove.
8805 (gdbarch_tdep): Use generic OS ABI framework.
8806 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8807 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8808 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8809 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8810
8811 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8812 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8813 gdbarch_register_osabi.
8814 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8815 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8816 (get_elfosabi): Rename to...
8817 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8818 ABI framework support routines.
8819 (arm_gdbarch_init): Use generic OS ABI framework.
8820 (arm_dump_tdep): Likewise.
8821 (_initialize_arm_tdep): Likewise.
8822 * arm-tdep.h: Include osabi.h.
8823 (arm_abi): Remove.
8824 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8825 osabi member.
8826 (arm_gdbarch_register_os_abi): Remove prototype.
8827 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8828 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8829
8830 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8831 * mips-tdep.c: Include osabi.h.
8832 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8833 OS ABI framework.
8834
d194345b
KH
88352002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8836
8837 * h8300-tdep.c: Fix formatting.
8838
70c6b0d1
EZ
88392002-05-20 Elena Zannoni <ezannoni@redhat.com>
8840
8841 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8842 printing vector registers.
8843
165b8e33
AC
88442002-05-19 Andrew Cagney <ac131313@redhat.com>
8845
8846 From Fernando Nasser:
8847 * remote.c (remote_async_open_1): Re-throw the exception when the
8848 connection fails.
8849 (remote_cisco_open): Ditto.
8850 (remote_open_1): Ditto.
8851
36918e70
AC
88522002-05-19 Andrew Cagney <ac131313@redhat.com>
8853
8854 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8855 (remote_start_remote): Add uiout parameter. Pass through to
8856 remote_start_remote_dummy.
8857 (remote_open_1): Use catch_exception instead of catch_errors.
8858 (remote_async_open_1): Ditto.
8859 (remote_cisco_open): Ditto.
8860
ae44c0c4
AC
88612002-05-19 Andrew Cagney <ac131313@redhat.com>
8862
8863 * remote.c (remote_start_remote): Replace PTR with void pointer.
8864 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8865 static.
8866
8efe637d
AC
88672002-05-18 Andrew Cagney <ac131313@redhat.com>
8868
8869 * gdb_indent.sh: Allow the script to be run in the sim directory.
8870
2f1b5984
MK
88712002-05-18 Mark Kettenis <kettenis@gnu.org>
8872
f0f625e2
MK
8873 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8874 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8875
2f1b5984
MK
8876 * corelow.c (core_open): Only call set_gdbarch_from_file if
8877 exec_bfd is NULL.
8878
fc974602
AV
88792002-05-17 Andrey Volkov <avolkov@transas.com>
8880
8881 * h8300-tdep.c: Add support of EXR register
8882 * config/h8300/tm-h8300.h: Ditto.
8883
906709f4
AV
88842002-05-17 Andrey Volkov <avolkov@transas.com>
8885
8886 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8887
6e591d68
AV
88882002-05-17 Andrey Volkov <avolkov@transas.com>
8889
8890 * h8300-tdep.c: Change literal regnums to REGNO.
8891
84f0252a
JB
88922002-05-17 Jim Blandy <jimb@redhat.com>
8893
e0e9281e
JB
8894 * NEWS: Note addition of macro support.
8895
84f0252a
JB
8896 Expand preprocessor macros in C expressions.
8897 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8898 (scan_macro_expansion, scanning_macro_expansion,
8899 finished_macro_expansion): New function declarations.
8900 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8901 variable declarations.
8902 * parser-defs.h (expression_context_pc): New declaration.
8903 * parse.c (expression_context_pc): New variable.
8904 (parse_exp_1): Set expression_context_pc, as well as
8905 expression_context_block.
8906 * c-exp.y (yylex): If we're not already reading the result of a
8907 macro expansion, try to macro-expand the next token. When we're
8908 done scanning a macro expansion, switch back to the mainline text.
8909 Commas and `if's in a macro's expansion don't terminate the input.
8910 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8911 (macro_original_text, macro_expanded_text,
8912 expression_macro_lookup_func, expression_macro_lookup_baton): New
8913 variables.
8914 (scan_macro_expansion, scanning_macro_expansion,
8915 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8916 c_preprocess_and_parse): New functions.
8917 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8918 c_preprocess_and_parse, instead of c_parse.
8919 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8920 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8921
1c509ca8
JR
8922Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8923
8924 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8925 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8926 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8927
2250ee0c
CV
89282002-05-17 Corinna Vinschen <vinschen@redhat.com>
8929
8930 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8931
ab3b8126
JT
89322002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8933
8934 * Makefile.in (sh_tdep_h): Define and use.
8935 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8936 register enum): Move to...
8937 * * sh-tdep.h: ...here.
8938 * sh-tdep.c: Include sh-tdep.h.
8939 * sh3-rom.c: Likewise.
8940 * shnbsd-tdep.c: Likewise.
8941
ed9d4749
MS
89422002-05-16 Michael Snyder <msnyder@redhat.com>
8943
8944 * arm-tdep.c: Spelling fix in comment.
8945
2e276125
JB
89462002-05-16 Jim Blandy <jimb@redhat.com>
8947
6821892e
JB
8948 Add commands for manually expanding macros and showing their
8949 definitions.
8950 * macrocmd.c, macroscope.c, macroscope.h: New files.
8951 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8952 (macroscope_h): New variable.
8953 (HFILES_NO_SRCDIR): Add macroscope.h.
8954 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8955 (macroscope.o, macrocmd.o): New rules.
8956
2e276125
JB
8957 Teach the Dwarf 2 reader to read macro information.
8958 * dwarf2read.c: #include "macrotab.h".
8959 (dwarf_macinfo_buffer): New variable.
8960 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8961 dwarf_macinfo_size.
8962 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8963 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8964 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8965 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8966 dwarf2_macro_spaces_in_definition): New complaints.
8967 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8968 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8969 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8970 the partial symbol table.
8971 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8972 from what's recorded in the partial symbol table.
8973 (read_file_scope): If the compilation unit has a
8974 `DW_AT_macro_info' attribute, read its macro information.
8975 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8976
2f53fe6c
DJ
89772002-05-16 Daniel Jacobowitz <drow@mvista.com>
8978
8979 Fix PR gdb/546
8980 * ser-tcp.c: Don't include <netinet/udp.h>.
8981
2be99286
SC
89822002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8983
8984 * MAINTAINERS: Update my email address.
8985
c9af212b 89862002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8987
8988 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8989 include file of the same name.
8990
bf5f1a52
CV
89912002-05-16 Corinna Vinschen <vinschen@redhat.com>
8992
8993 * configure.tgt: Mark v850 as multi-arched.
8994 * config/v850/tm-v850.h: Remove file.
8995 * config/v850/v850.mt: Eliminate TM_FILE.
8996
435e042a
CV
89972002-05-16 Corinna Vinschen <vinschen@redhat.com>
8998
8999 * v850-tdep.c: Full multi-arch.
9000 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9001 Define GDB_MULTI_ARCH to 2.
9002
9819c6c8
PM
90032002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9004
9005 * p-exp.y (current_type): New static variable.
9006 Carries the type of the expression at the position that is parsed.
9007 (push_current_type, pop_current_type): Two new functions. Used
9008 to store/restore current_type in expression on specific tokens.
c9af212b
RE
9009 (search_field): New static variable. Set to one after parsing a point
9010 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
9011 (FIELDNAME): New token. After a point only a token belonging to
9012 current_type type definition is allowed.
9013 (all over token rules): reset and change current_type according
9014 to rules.
9015 (exp '[' rule): insert implicit array index field if
9016 exp is a pascal string type.
9017
3a06899a
CV
90182002-05-16 Corinna Vinschen <vinschen@redhat.com>
9019
9020 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9021 frame info. Use frame_info's saved_regs instead of matching member
9022 in extra_frame_info throughout.
9023 (v850_frame_init_saved_regs): New function.
9024 (v850_init_extra_frame_info): Move most functionality into
9025 v850_frame_init_saved_regs().
9026 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9027 (v850_frame_find_saved_regs): Remove declaration.
9028 (FRAME_FIND_SAVED_REGS): Remove definition.
9029 (v850_frame_init_saved_regs): Add declaration.
9030 (FRAME_INIT_SAVED_REGS): Add definition.
9031
6ed14b0e
CV
90322002-05-16 Corinna Vinschen <vinschen@redhat.com>
9033
9034 * v850-tdep.c: Begin multi-arch'ing v850.
9035 (v850_target_architecture_hook): Remove function.
9036 (v850_gdbarch_init): New function. Add code previously in
9037 v850_target_architecture_hook().
9038 (_initialize_v850_tdep): Don't set target_architecture_hook.
9039 Call register_gdbarch_init() instead.
9040
42725910
DJ
90412002-05-16 Daniel Jacobowitz <drow@mvista.com>
9042
9043 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9044 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9045 (fixup_class_method_type): Likewise.
9046
99d9066e
JB
90472002-05-15 Jim Blandy <jimb@redhat.com>
9048
9049 Add macro structures to GDB's symbol tables. Nobody puts anything
9050 in them yet.
9051 * symtab.h (struct symtab): New member: `macro_table'.
9052 * buildsym.h (pending_macros): New global variable.
9053 * buildsym.c: #include "macrotab.h".
9054 (buildsym_init): Initialize `pending_macros'.
9055 (end_symtab): If we found macro information while reading a CU's
9056 debugging info, do build a symtab structure for it. Make the
9057 symtab point to the macro information, and clear the
9058 `pending_macros' pointer which held it while we were reading the
9059 debug info.
9060 (really_free_pendings): Free any pending macro table.
9061 * objfiles.h (struct objfile): New member: `macro_cache'.
9062 * objfiles.c (allocate_objfile): Set allocate and free functions
9063 for the macro cache's objstack.
9064 (free_objfile): Empty the macro cache's obstack.
9065 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9066 set new allocate and free functions for it.
9067 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9068 free functions for the macro cache's objstack. (Why is this
9069 function building its own objfile?)
9070 * symmisc.c (print_objfile_statistics): Print statistics on the
9071 macro bcache.
9072 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9073
c899585b
RE
90742002-05-15 Richard Earnshaw <rearnsha@arm.com>
9075
9076 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9077 (REGISTER_U_ADDR): Delete definition.
9078 (arm_register_u_addr): Delete declaration.
9079
a6cdd8c5
RE
90802002-05-15 Richard Earnshaw <rearnsha@arm.com>
9081
9082 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9083 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9084
c97dcfc7
AC
90852002-05-14 Andrew Cagney <ac131313@redhat.com>
9086
9087 * regcache.c (register_valid): Revise comments refering to "Not
9088 available" and "unavailable".
9089 * frame.c (frame_register_read): Ditto.
9090 * findvar.c (value_of_register): Ditto.
9091
93021b7d
AC
90922002-05-15 Andrew Cagney <cagney@redhat.com>
9093
9094 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9095 (remote-sim.o): Update dependencies.
9096 (d10v-tdep.o): Specify dependencies.
9097 (sim_d10v_h): Define.
9098
a86bc61c
JB
90992002-05-14 Jim Blandy <jimb@redhat.com>
9100
9101 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9102 * macrotab.c (macro_lookup_inclusion, find_definition,
9103 new_macro_table): Same.
9104
9105 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9106 not `! strcmp ()'. This is a dubious improvement.
9107 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9108
9109 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9110 although it's not necessary, to avoid a warning.
9111
2fdde8f8
DJ
91122002-05-14 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9115 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9116 TYPE_INSTANCE_FLAGS.
9117 (struct main_type): New.
9118 (struct type): Move most members to struct main_type. Change
9119 cv_type and as_type to new type_chain member. Add instance_flags.
9120 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9121 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9122 (finish_cv_type): Remove prototype.
9123 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9124 Set TYPE_CHAIN.
9125 (alloc_type_instance): New function.
9126 (smash_type): New function.
9127 (make_pointer_type, make_reference_type, make_function_type)
9128 (smash_to_member_type, smash_to_method_type): Call smash_type.
9129 (make_qualified_type): New function.
9130 (make_type_with_address_space): Call make_qualified_type.
9131 (make_cv_type): Likewise.
9132 (finish_cv_type): Remove unnecessary function.
9133 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9134 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9135 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9136 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9137 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9138 * hpread.c (hpread_read_struct_type): Likewise.
9139 * stabsread.c (read_struct_type): Likewise.
9140
843fedf4
EZ
91412002-05-14 Elena Zannoni <ezannoni@redhat.com>
9142
9143 * configure.tgt: Add a catch all sh* target, for cases like
9144 sh[2,3,4]-elf and sh-hms.
9145
05a6c72c
KS
91462002-05-14 Keith Seitz <keiths@redhat.com>
9147
9148 * event-loop.c (create_file_handler): Don't do anything but
9149 update data when we are given a fd which we are already
9150 monitoring.
9151
5d085aaf
ML
91522002-05-14 Michal Ludvig <mludvig@suse.cz>
9153
9154 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9155 (update_context): Use __func__ in warnings.
9156
9db8d71f
DJ
91572002-05-14 Daniel Jacobowitz <drow@mvista.com>
9158
9159 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9160 and tcp_close to net_open and net_close.
9161 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9162 using UDP if requested. Don't try to disable Nagle on UDP
9163 sockets.
9164 * remote.c (remote_serial_open): New function. Warn about UDP.
9165 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9166
5dbc6baa
EZ
91672002-05-13 Elena Zannoni <ezannoni@redhat.com>
9168
9169 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9170
cc3023f7
EZ
91712002-05-13 Elena Zannoni <ezannoni@redhat.com>
9172
9173 * configure.tgt: Remove sh-hms target.
9174 * MAINTAINERS: Don't list sh-hms as a separate target.
9175
ec2bcbe7
JB
91762002-05-13 Jim Blandy <jimb@redhat.com>
9177
9178 Add first preprocessor macro-expansion files.
9179 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9180 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9181 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9182 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9183 (COMMON_OBS): Add macrotab.o, macroexp.o.
9184 (macroexp.o, macrotab.o): New rules.
9185
6d531722
AC
91862002-05-13 Andrew Cagney <ac131313@redhat.com>
9187
9188 * config/m88k/tm-m88k.h: Update copyright.
9189 (m88k_target_write_pc): Declare
9190 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9191 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9192 (SHIFT_INST_REGS): Update definition.
9193 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9194 using old definition of TARGET_WRITE_PC.
9195 * regcache.c (generic_target_write_pc): Delete code handling
9196 NNPC_REGNUM.
9197 * gdbarch.sh (NNPC_REGNUM): Delete.
9198 * gdbarch.h, gdbarch.c: Regenerate.
9199
3e3f2739
RE
92002002-05-13 Richard Earnshaw <rearnsha@arm.com>
9201
9202 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9203 builtin reg number.
9204
0004e5a2
DJ
92052002-05-13 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9208 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9209 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9210 access macros.
9211 * c-typeprint.c (cp_type_print_method_args): Likewise.
9212 (c_type_print_args): Likewise.
9213 * d10v-tdep.c (d10v_push_arguments): Likewise.
9214 (d10v_extract_return_value): Likewise.
9215 * expprint.c (print_subexp): Likewise.
9216 * gdbtypes.c (lookup_primitive_typename): Likewise.
9217 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9218 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9219 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9220 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9221 (TYPE_VECTOR): Likewise.
9222 * hpread.c (hpread_read_struct_type)
9223 (fix_static_member_physnames, fixup_class_method_type)
9224 (hpread_type_lookup): Likewise.
9225 * mdebugread.c (parse_symbol, parse_type): Likewise.
9226 * p-lang.c (is_pascal_string_type): Likewise.
9227 * valops.c (hand_function_call): Likewise.
9228 * x86-64-tdep.c (classify_argument): Likewise.
9229
9230 * hpread.c (hpread_read_function_type)
9231 (hpread_read_doc_function_type): Call replace_type.
9232 * dstread.c (create_new_type): Delete.
9233 (decode_dst_structure, process_dst_function): Call alloc_type.
9234 Use type access macros.
9235
dff95cc7
MK
92362002-05-12 Mark Kettenis <kettenis@gnu.org>
9237
9238 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9239 the're not supported by the current architecture.
9240 (i387_fill_fxsave): Likewise.
9241
bbcd32ad
FF
92422002-05-12 Fred Fish <fnf@redhat.com>
9243
9244 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9245 sect_index_xxx members to index the first slot in section_offsets
9246 if all of the section_offsets are zero.
9247
89cf4787
MK
92482002-05-12 Mark Kettenis <kettenis@gnu.org>
9249
9250 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9251 checked in with last change.
9252
1f77ffc5
MK
92532002-05-12 Mark Kettenis <kettenis@gnu.org>
9254
9255 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9256 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9257 config.sub.
9258
89b8b4a9
DJ
92592002-05-12 Daniel Jacobowitz <drow@mvista.com>
9260
9261 * Makefile.in: Update dependencies.
9262
14a5e767
AC
92632002-05-11 Andrew Cagney <ac131313@redhat.com>
9264
9265 * language.c (local_hex_string_custom): Simplify. Do not depend
9266 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9267
9268 * memattr.c (mem_info_command): Replace calls to
9269 longest_local_hex_string and longest_local_hex_string_custom.
9270 * buildsym.c (make_blockvector): Ditto.
9271 * solib.c (info_sharedlibrary_command): Ditto.
9272 * tracepoint.c (tracepoints_info): Ditto.
9273 * symtab.c (print_msymbol_info): Ditto.
9274
9275 * language.c (local_hex_string): Delete.
9276 (local_hex_string_custom): Delete.
9277 (longest_local_hex_string): Rename to local_hex_string.
9278 (longest_local_hex_string_custom): Rename to
9279 local_hex_string_custom.
9280 * language.h (local_hex_string): Change parameter type to LONGEST.
9281 (local_hex_string_custom): Ditto.
9282 (longest_local_hex_string): Delete declaration.
9283 (longest_local_hex_string_custom): Ditto.
9284
9285 * solib.c: Update copyright.
9286 * memattr.c: Update copyright.
9287
13d01224
AC
92882002-05-11 Andrew Cagney <ac131313@redhat.com>
9289
9290 * arch-utils.h (legacy_register_to_value): Declare.
9291 (legacy_value_to_register): Declare.
9292 (legacy_convert_register_p): Declare.
9293 * arch-utils.c (legacy_register_to_value): New function.
9294 (legacy_value_to_register): New function.
9295 (legacy_convert_register_p): New function.
9296
9297 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9298 (VALUE_TO_REGISTER): Define.
9299 (CONVERT_REGISTER_P): Define.
9300 * gdbarch.h, gdbarch.c: Regenerate.
9301
9302 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9303 VALUE_TO_REGISTER.
9304 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9305 CONVERT_REGISTER_P.
9306
4a1970e4
DJ
93072005-05-11 Daniel Jacobowitz <drow@mvista.com>
9308 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9309
9310 * Makefile.in: Update dependencies for valops.c.
9311 * valops.c: Include "gdb_assert.h".
9312 (typecmp): Skip THIS parameter to methods.
9313 (find_method_list): Remove static_memfuncp argument,
9314 update callers. Check for stub methods.
9315 (find_value_oload_method_list): Don't set *static_memfuncp.
9316 (find_overload_match): Don't check for stub methods. Assert
9317 that methods are not stubbed. Handle static methods.
9318 (value_find_oload_method_list): Remove static_memfuncp argument.
9319 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9320 to the argument list for static stub methods.
9321 * value.h (value_find_oload_method_list): Update prototype.
9322
b2e75d78
AC
93232002-05-11 Andrew Cagney <ac131313@redhat.com>
9324
9325 * arch-utils.h (generic_register_size): Declare.
9326 (generic_register_raw_size, generic_register_virtual_size): Delete
9327 declarations.
9328 * arch-utils.c (generic_register_raw_size): Delete.
9329 (generic_register_size): New function.
9330 (generic_register_virtual_size): Delete.
9331
9332 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9333 default generic_register_size.
9334 * gdbarch.h, gdbarch.c: Re-generate.
9335
9336 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9337 register_virtual_size.
9338 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9339 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9340
451fbdda
AC
93412002-05-11 Andrew Cagney <ac131313@redhat.com>
9342
9343 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9344 * gdbarch.h, gdbarch.c: Regenerate.
9345 * gnu-v3-abi.c: Update copyright.
9346 (vtable_address_point_offset): Update.
9347 (gnuv3_rtti_type): Update.
9348 (gnuv3_baseclass_offset): Update.
9349 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9350 (init_fetch_link_map_offsets): Update.
9351 * remote.c (get_remote_state): Update.
9352
6d2f5cea
DJ
93532002-05-11 Daniel Jacobowitz <drow@mvista.com>
9354
9355 * TODO: Remove value_headof/value_from_vtable_info comment.
9356 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9357 * values.c (value_headof, value_from_vtable_info): Delete.
9358 * value.h (value_from_vtable_info): Delete prototype.
9359
d2324da4
AC
93602002-05-11 Andrew Cagney <ac131313@redhat.com>
9361
9362 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9363 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9364 $(gdb_regex_h).
9365 (gdb_assert_h): Define.
9366 (gdb_wait_h): Define.
9367 (gdb_regex_h): Define.
9368
5c717440
DJ
93692002-05-11 Daniel Jacobowitz <drow@mvista.com>
9370
9371 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9372 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9373
6c7861b3
JT
93742002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9375
9376 * nbsd-tdep.c: Fix comment.
9377
ea5bc2a6
JT
93782002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9379
9380 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9381 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9382 (nbsd-tdep.o): New dependency list.
9383 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9384 nbsd-tdep.h.
9385 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9386 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9387 * nbsd-tdep.c: New file.
9388 * nbsd-tdep.h: New file.
9389 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9390 nbsd-tdep.h.
9391 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9392 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9393 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9394 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9395
b28da865
JT
93962002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9397
9398 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9399 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9400 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9401 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9402 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9403 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9404
4b8ff1fa
JT
94052002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9406
9407 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9408 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9409 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9410 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9411 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9412 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9413 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9414
dfe6eb1f
JT
94152002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9416
9417 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9418 fetch_elfcore_registers to...
9419 * i386nbsd-tdep.c: ...here.
9420 (i386nbsd_use_struct_convention): Rename to...
9421 (i386nbsd_aout_use_struct_convention): ...this.
9422 (i386nbsd_supply_reg): New function.
9423 (i386nbsd_fill_reg): New function.
9424 (fetch_core_registers): Use i386nbsd_supply_reg.
9425 (fetch_elfcore_registers): Likewise.
9426 (_initialize_i386nbsd_tdep): New function.
9427 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9428 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9429 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9430 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9431 (i386nbsd_aout_use_struct_convention): ...this.
9432
20cb8cda
JT
94332002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9434
9435 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9436 (store_inferior_registers): Use shnbsd_fill_reg.
9437 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9438 sh_nbsd_supply_register): Collapse into...
9439 (shnbsd_supply_reg): ...this.
9440 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9441 (shnbsd_fill_reg): ...this.
9442 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9443 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9444 (fetch_core_registers): Use shnbsd_supply_reg.
9445 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9446 (sh_nbsd_core_fns): Rename to...
9447 (shnbsd_core_fns): ...this.
9448 (sh_nbsd_elfcore_fns): Rename to...
9449 (shnbsd_elfcore_fns): ...this.
9450 (sh_nbsd_init_abi): Rename to...
9451 (shnbsd_init_abi): ...this.
9452 (_initialize_sh_nbsd_tdep): Rename to...
9453 (_initialize_shnbsd_tdep): ...this.
9454 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9455 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9456 sh_nbsd_fill_register): Remove prototypes.
9457 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9458
e750d25e
JT
94592002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9460
9461 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9462 (i387-nat.o): Delete dependency list.
9463 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9464 (x86-64-linux-nat.o): Likewise.
9465 * i387-nat.c: Delete file, moving contents to...
9466 * i387-tdep.c: ...here.
9467 * i387-nat.h: Rename...
9468 * i387-tdep.h: ...to this.
9469 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9470 * i386-linux-nat.c: Likewise.
9471 * i386bsd-nat.c: Likewise.
9472 * i386gnu-nat.c: Likewise.
9473 * i386nbsd-nat.c: Likewise.
9474 * i386v4-nat.c: Likewise.
9475 * x86-64-linux-nat.c: Likewise.
9476 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9477 * config/i386/go32.mh (NATDEPFILES): Likewise.
9478 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9479 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9480 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9481 * config/i386/linux.mh (NATDEPFILES): Likewise.
9482 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9483 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9484 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9485 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9486
1aee598a
JT
94872002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9488
9489 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9490 (alphanbsd-nat.o): Remove dependency list.
9491 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9492 * alphanbsd-nat.c: Delete. Contents moved to...
9493 * alphanbsd-tdep.c: ...here.
9494 (_initialize_alphanbsd_tdep): Register core functions.
9495 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9496
12bcb0fe
JT
94972002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9498
9499 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9500 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9501 (alphanbsd-nat.o): Likewise.
9502 (alphabsd-tdep.o): New dependency list.
9503 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9504 (fill_gregset): Use alphabsd_fill_reg.
9505 (supply_fpregset): Use alphabsd_supply_fpreg.
9506 (fill_fpregset): Use alphabsd_fill_fpreg.
9507 (fetch_inferior_registers): Use struct reg and struct fpreg
9508 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9509 and alphabsd_supply_fpreg.
9510 (store_inferior_registers): Use struct reg and struct fpreg
9511 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9512 and alphabsd_fill_fpreg.
9513 * alphabsd-tdep.c: New file.
9514 * alphabsd-tdep.h: New file.
9515 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9516 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9517 alphabsd_supply_fpreg.
9518 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9519 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9520
361d1df0
EC
95212002-05-11 Eric Christopher <echristo@redhat.com>
9522
9523 * mips-tdep.c (mips_double_register_type): Fix thinko.
9524 (mips_single_register_type): Ditto.
9525 * MAINTAINERS: Add self.
9526
92dd7cee
MK
95272002-05-11 Mark Kettenis <kettenis@gnu.org>
9528
9529 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9530 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9531 right thing on architectures with different endianness and/or
9532 integer sizes.
9533
e27da16d
JT
95342002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9535
9536 From Christian Limpach <chris@Pin.LU>
9537 * configure.in: Change sed expression which comments out
9538 NATDEPFILES to also comment out continuation lines.
9539 * configure: Regenerate.
9540
ddde02bd
EZ
95412002-05-10 Elena Zannoni <ezannoni@redhat.com>
9542
9543 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9544 big patch.
9545
1c922164
EZ
95462002-05-10 Elena Zannoni <ezannoni@redhat.com>
9547
9548 * sh-tdep.c: Include correct file.
9549
283150cd
EZ
95502002-05-10 Elena Zannoni <ezannoni@redhat.com>
9551
9552 New support for sh64-elf (sh5) target.
9553
9554 * configure.tgt: For sh64-elf target, default to sh-elf.
9555
9556 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9557 (struct gdbarch_tdep): Add new fields for new registers and ABI
9558 info.
361d1df0 9559
283150cd
EZ
9560 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9561 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9562 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9563 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9564 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9565 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9566 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9567 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9568 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9569 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9570 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9571 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9572 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9573 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9574 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9575 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9576 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9577 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9578 sign_extend, sh64_nofp_frame_init_saved_regs,
9579 sh64_init_extra_frame_info, sh64_get_saved_register,
9580 sh64_extract_struct_value_address, sh64_pop_frame,
9581 sh64_push_arguments, sh64_extract_return_value,
9582 sh64_store_return_value, sh64_show_media_regs,
9583 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9584 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9585 sh_sh64_register_virtual_type,
9586 sh_sh64_register_convert_to_virtual,
9587 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9588 sh64_register_read, sh64_pseudo_register_write,
9589 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9590 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9591 sh64_do_pseudo_register, sh_compact_do_registers_info,
9592 sh64_do_registers_info, sh_gdbarch_init): New functions.
9593
3117ed25
EZ
95942002-05-10 Elena Zannoni <ezannoni@redhat.com>
9595
9596 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9597
2654e6d4
DJ
95982002-05-10 Daniel Jacobowitz <drow@mvista.com>
9599
9600 * linespec.c (decode_line_1): Check for a double quote after
9601 a filename correctly.
9602
9ab3e532
JB
96032002-05-10 Jim Blandy <jimb@redhat.com>
9604
9605 Properly track the size of the current objfile's .debug_line section.
9606 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9607 (DWARF_LINE_SIZE): New macro.
9608 (dwarf2_build_psymtabs_hard): Record the line section's size in
9609 the partial symbol table.
9610 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9611 symbol table.
9612
126fa72d
PS
96132002-05-10 Petr Sorfa <petrs@caldera.com>
9614
9615 * ia64-tdep.c: Handle breakpoints on L instruction type
9616 in MLX instruction bundle by moving the breakpoint to
9617 the third slot (X instruction type) as L holds only data.
9618
1f077a3e
KB
96192002-05-10 Kevin Buettner <kevinb@redhat.com>
9620
9621 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9622 (process_one_symbol): Complain about discarding local symbols
9623 due to a misplaced N_LBRAC entry.
9624
8120c9d5 96252002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
9626
9627 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
9628 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9629 decrease the depth we are at, in the case of templates.
361d1df0 9630
67b2c998
DJ
96312002-05-09 Daniel Jacobowitz <drow@mvista.com>
9632
9633 * mips-tdep.c (mips_float_register_type): New function.
9634 (mips_double_register_type): New function.
9635 (mips_print_register): Use them.
9636 (do_fp_register_row): Likewise.
9637
fd326606
DJ
96382002-05-09 Daniel Jacobowitz <drow@mvista.com>
9639
6609d9af 9640 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9641 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9642 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9643
bef35864
MS
96442002-05-09 Michael Snyder <msnyder@redhat.com>
9645
9646 * remote-rdp.c (remote_rdp_can_run): Remove.
9647
c55a3f73
TT
96482002-05-09 Tom Tromey <tromey@redhat.com>
9649
9650 * jv-valprint.c (java_val_print): Handle `char' as a special case
9651 of TYPE_CODE_INT.
9652
b8d5e71d
MS
96532002-05-09 Michael Snyder <msnyder@redhat.com>
9654
9655 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9656 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9657 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9658 str r(0123),[sp,#nn].
361d1df0 9659 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9660 order-independent by placing it in a loop.
9661
e2cd42dd
MS
96622002-05-06 Michael Snyder <msnyder@redhat.com>
9663
9664 * stabsread.c (read_type): Add recognition for new attribute:
9665 "@V;" means that an array type is actually a vector.
9666 This is analogous to the vector flag that's been added to dwarf2.
9667
3ce1502b
MK
96682002-05-09 Mark Kettenis <kettenis@gnu.org>
9669
9670 * i386-tdep.h (i386_abi): New enum.
9671 (struct gdbarch_tdep): Replace os_ident member with abi.
9672 (i386_gdbarch_register_os_abi): New prototype.
9673 * i386-tdep.c (i386_abi_names): New array.
9674 (process_note_abi_tag_sections): Removed.
9675 (process_note_sections): New function.
9676 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9677 (struct i386_abi_handler): New struct.
9678 (i386_abi_handler_list): New variable.
9679 (i386_gdbarch_register_os_abi): New function.
9680 (i386_gdbarch_init): Adapt for the changes given above.
9681
084c156a
DJ
96822002-05-08 Daniel Jacobowitz <drow@mvista.com>
9683
9684 * gregset.h: Say "GNU/Linux".
9685
6599f021
EZ
96862002-05-08 Elena Zannoni <ezannoni@redhat.com>
9687
9688 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9689 (build_gdbtypes): Build builtin_type_v2_float.
9690 (_initialize_gdbtypes): Register new builtin type.
9691
40af4b0c
AC
96922002-05-08 Andrew Cagney <ac131313@redhat.com>
9693
9694 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9695 (clear_gdbarch_swap): New function.
9696 (initialize_non_multiarch): Call.
9697 (gdbarch_update_p): Before calling init(), swap out and clear the
9698 existing architecture.
9699 * gdbarch.c: Regenerate.
9700
4fe84f46
JT
97012002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9702
9703 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9704 alphanbsd-tdep.c.
9705
4015edd1
JT
97062002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9707
9708 * sh-nbsd-nat.c: Rename to...
9709 * shnbsd-nat.c: ...this.
9710 * sh-nbsd-tdep.c: Rename to...
9711 * shnbsd-tdep.c: ...this.
9712 * sh-nbsd-tdep.h: Rename to...
9713 * shnbsd-tdep.h: ...this.
9714 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9715 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9716
0e2bd219
RE
97172002-05-08 Richard Earnshaw <rearnsha@arm.com>
9718
9719 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9720 concatenation for command help messages.
9721
13a38d45
JT
97222002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9723
9724 * NEWS: Note new sh*-*-netbsdelf* configuration.
9725 * configure.host: Set gdb_host_cpu to sh for all sh*.
9726 (sh*-*-netbsdelf*): New host.
9727 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9728 (sh*-*-netbsdelf*): New target.
9729 * sh-nbsd-nat.c: New file.
9730 * sh-nbsd-tdep.c: New file.
9731 * sh-nbsd-tdep.h: New file.
9732 * config/sh/nbsd.mh: New file.
9733 * config/sh/nbsd.mt: New file.
9734 * config/sh/nm-nbsd.h: New file.
9735 * config/sh/tm-nbsd.h: New file.
9736
d658f924
JT
97372002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9738
9739 * sh-tdep.c (sh_osabi_names): Declare.
9740 (process_note_abi_tag_sections): New function.
9741 (get_elfosabi): Ditto.
9742 (sh_gdbarch_register_os_abi): Ditto.
9743 (sh_dump_tdep): Ditto.
9744 _initialize_sh_tdep): Use gdbarch_register to register
9745 sh_gdbarch_init and sh_dump_tdep.
9746 * config/sh/tm-sh.h (sh_osabi): Declare.
9747 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9748
848cfffb
AC
97492002-05-07 Andrew Cagney <ac131313@redhat.com>
9750
9751 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9752 (thumb_scan_prologue): Ditto.
9753 (arm_find_callers_reg): Ditto.
9754 (arm_frame_chain): Ditto.
9755 (arm_init_extra_frame_info): Ditto.
9756 (arm_frame_saved_pc): Ditto.
9757 (arm_pop_frame): Ditto.
9758 (arm_push_return_address): New function.
9759 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9760 call_dummy_location, call_dummy_breakpoint_offset_p,
9761 call_dummy_breakpoint_offset, call_dummy_p,
9762 call_dummy_stack_adjust_p, call_dummy_words,
9763 sizeof_call_dummy_words, call_dummy_start_offset,
9764 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9765 call_dummy_address, push_return_address and push_dummy_frame for
9766 generic dummy frames.
9767
e7d717c0
JT
97682002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9769
9770 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9771 size computation for alloca.
9772 (sh_fp_frame_init_saved_regs): Likewise.
9773
7bbcf283
RE
97742002-05-07 Richard Earnshaw <rearnsha@arm.com>
9775
9776 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9777 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9778 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9779 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9780 * remote-rdp.c (remote_rdp_fetch_register): Use
9781 ARM_MAX_REGISTER_RAW_SIZE.
9782 (remote_rdp_store_register): Likewise.
9783
4657573b
ML
97842002-05-07 Michal Ludvig <mludvig@suse.cz>
9785
361d1df0 9786 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9787 added default labels to switch {} statements.
9788 * x86-64-tdep.c: Ditto.
9789 * x86-64-linux-nat.c: Ditto.
9790
010f3b2f
JT
97912002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9792
9793 * solib.h: Protect against multiple inclusion.
9794
debd256d
JB
97952002-05-06 Jim Blandy <jimb@redhat.com>
9796
9ab3e532
JB
9797 Add first preprocessor macro-expansion files.
9798 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9799 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9800 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9801 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9802 (COMMON_OBS): Add macrotab.o, macroexp.o.
9803 (macroexp.o, macrotab.o): New rules.
9804
debd256d
JB
9805 Separate the job of reading the line number info statement program
9806 header (...expialidocious) out into its own function.
9807 * dwarf2read.c (struct line_head, struct filenames, struct
9808 directories): Replace with...
9809 (struct line_header): New structure, containing the full
9810 contents of the statement program header, including the
9811 include directory and file name tables.
9812 (read_file_scope): If we have line number info, instead of just
9813 calling dwarf_decode_lines to do all the work, call
9814 dwarf_decode_line_header first to get a `struct line_header'
9815 containing the data in the statement program header, and then
9816 pass that to dwarf_decode_lines, which will pick up where that
9817 left off. Be sure to clean up the `struct line_header' object.
9818 (dwarf_decode_line_header, free_line_header, add_include_dir,
9819 add_file_name): New functions.
9820 (dwarf_decode_lines): Move all the code to read the statement
9821 program header into dwarf_decode_line_header. Take the line
9822 header it built as the first argument, instead of the offset to
9823 the compilation unit's line number info. Use the new `struct
9824 line_header' type instead of the old structures. No need to do
9825 cleanups here now, since we don't allocate anything.
9826 (dwarf2_statement_list_fits_in_line_number_section,
9827 dwarf2_line_header_too_long): New complaints.
9828
ac3aafc7
EZ
98292002-05-06 Elena Zannoni <ezannoni@redhat.com>
9830
9831 * gdbtypes.c (init_vector_type): New function.
9832 (build_builtin_type_vec128): Simplify the representation of SIMD
9833 registers.
9834 (build_gdbtypes): Initialize new builtin vector types.
9835 (_initialize_gdbtypes): Register new vector types with gdbarch.
9836 (builtin_type_v4_float, builtin_type_v4_int32,
9837 builtin_type_v8_int16, builtin_type_v16_int8,
9838 builtin_type_v2_int32, builtin_type_v4_int16,
9839 builtin_type_v8_int8): New (renamed) SIMD types.
9840
13e49980
MK
98412002-05-06 Mark Kettenis <kettenis@gnu.org>
9842
9843 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9844 (i387_fill_fxsave): Likewise.
9845
997b20b8
AO
98462002-05-05 Alexandre Oliva <aoliva@redhat.com>
9847
9848 * alpha-tdep.c (alpha_extract_return_value): Don't use
9849 non-constant array size in prototype.
9850
535c96ce
AC
98512002-05-04 Andrew Cagney <ac131313@redhat.com>
9852
9853 From Brian Taylor <briant at model dot com>:
9854 * ui-out.c (ui_out_field_core_addr): Use the function
9855 longest_local_hex_string_custom'to format addresses > 32 bits
9856 wide.
9857
9858 * ui-out.c (ui_out_field_core_addr): Update comment.
9859
bedfa57b
AC
98602002-05-04 Andrew Cagney <ac131313@redhat.com>
9861
9862 * stack.c (select_and_print_frame): Make static. Delete the
9863 parameter `level'.
9864 (func_command): Update call.
9865 (select_frame_command): Delete code computing the frame level.
9866 * frame.h (select_and_print_frame): Delete declaration.
9867
f621c63e
AC
98682002-05-04 Andrew Cagney <ac131313@redhat.com>
9869
9870 * sparc-tdep.c (sparc_get_saved_register): Comment why
9871 get_prev_frame call is safe.
9872
0f7d239c
AC
98732002-05-04 Andrew Cagney <ac131313@redhat.com>
9874
9875 * frame.h (select_frame): Delete level parameter.
9876 * stack.c (select_frame): Update. Use frame_relative_level to
9877 obtain the frame's level.
9878 (select_and_print_frame): Update call.
9879 (select_frame_command): Ditto.
9880 (up_silently_base): Ditto.
9881 (down_silently_base): Ditto.
9882 * ocd.c (ocd_start_remote): Ditto.
9883 * remote-rdp.c (remote_rdp_open): Ditto.
9884 * remote-mips.c (mips_initialize): Ditto.
9885 (common_open): Ditto.
9886 * remote-e7000.c (e7000_start_remote): Ditto.
9887 * m3-nat.c (select_thread): Ditto.
9888 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9889 (child_get_current_exception_event): Ditto.
9890 * varobj.c (varobj_create): Ditto.
9891 (varobj_update): Ditto.
9892 (c_value_of_root): Ditto.
9893 * tracepoint.c (finish_tfind_command): Ditto.
9894 * corelow.c (core_open): Ditto.
9895 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9896 * thread.c (info_threads_command): Ditto.
9897 (switch_to_thread): Ditto.
9898 * infrun.c (normal_stop): Ditto.
9899 (restore_selected_frame): Ditto.
9900 (restore_inferior_status): Ditto.
9901 * breakpoint.c (insert_breakpoints): Ditto.
9902 (watchpoint_check): Ditto.
9903 (bpstat_stop_status): Ditto.
9904 (do_enable_breakpoint): Ditto.
9905 * blockframe.c (flush_cached_frames): Ditto.
9906 (reinit_frame_cache): Ditto.
9907
71d6c7b1
AC
99082002-05-04 Andrew Cagney <ac131313@redhat.com>
9909
9910 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9911 maintainer.
9912
cda6c68a
JB
99132002-05-04 Jim Blandy <jimb@redhat.com>
9914
9915 * gdbtypes.c (replace_type): Doc fix.
9916
5c1c87f0
AC
99172002-05-04 Andrew Cagney <ac131313@redhat.com>
9918
9919 * valprint.c (strcat_longest): Delete commented out function.
9920 Update copyright.
9921
cd9bfe15
AC
99222002-05-04 Andrew Cagney <ac131313@redhat.com>
9923
9924 * MAINTAINERS: Mark a29k as deleted.
9925 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9926 Move new configurations to the top.
9927 * configure.tgt: Remove a29k.
9928 * config/a29k/tm-vx29k.h: Delete.
9929 * config/a29k/vx29k.mt: Delete.
9930 * config/a29k/tm-a29k.h: Delete.
9931 * config/a29k/a29k-udi.mt: Delete.
9932 * config/a29k/a29k.mt: Delete.
9933 * a29k-tdep.c: Delete.
9934 * remote-udi.c: Delete.
9935 * remote-mm.c: Delete.
9936 * remote-eb.c: Delete.
9937 * remote-adapt.c: Delete.
9938 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9939 * config/s390/s390x.mt: Ditto.
9940 * config/s390/s390.mt: Ditto.
9941 * config/sparc/sparclynx.mh: Ditto.
9942 * config/sparc/linux.mh: Ditto.
9943 * config/pa/hppaosf.mh: Ditto.
9944 * config/pa/hppabsd.mh: Ditto.
9945 * config/ns32k/nbsd.mt: Ditto.
9946 * config/mips/vr5000.mt: Ditto.
9947 * config/m68k/sun3os4.mh: Ditto.
9948 * config/m68k/nbsd.mt: Ditto.
9949 * config/m68k/m68klynx.mh: Ditto.
9950 * config/m32r/m32r.mt: Ditto.
9951 * config/i386/x86-64linux.mt: Ditto.
9952 * config/i386/nbsdelf.mt: Ditto.
9953 * config/i386/nbsd.mt: Ditto.
9954 * config/i386/i386lynx.mh: Ditto.
9955
bf0c5130
AC
99562002-05-04 Andrew Cagney <ac131313@redhat.com>
9957
9958 * target.c (debug_print_register): New function. Handle oversize
9959 registers.
9960 (debug_to_fetch_registers): Call.
9961 (debug_to_store_registers): Call.
9962
2ae1c2d2
JB
99632002-05-03 Jim Blandy <jimb@redhat.com>
9964
13a393b0
JB
9965 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9966 (read_type): Doc fix.
9967 * gdbtypes.c (replace_type): Doc fix.
9968
2ae1c2d2
JB
9969 * stabsread.c (multiply_defined_struct): New complaint.
9970 (read_struct_type): If the type we were passed isn't empty, or
9971 incomplete, don't read the new struct type into it; complain,
9972 and return the original type unchanged. Take a new `type_code'
9973 argument, which is the type code for the new type.
9974 (read_type): Rather than storing the type's type code here, pass
9975 it as an argument to read_struct_type, and let that take care of
9976 storing it. That way, we don't overwrite the original type code,
9977 so read_struct_type can use it to decide whether we're overwriting
9978 something we shouldn't.
9979 (complain_about_struct_wipeout): New function.
9980
8de9bdc4
AC
99812002-05-03 Andrew Cagney <ac131313@redhat.com>
9982
9983 * gdbarch.sh: Assert that gdbarch is non-NULL.
9984 * gdbarch.c: Regenerate.
9985
f773fdbb
JM
99862002-05-03 Jason Merrill <jason@redhat.com>
9987
9988 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9989 and return NULL.
9990
0e04a514
ML
99912002-05-03 Michal Ludvig <mludvig@suse.cz>
9992
9993 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9994 (x86_64_dwarf2gdb_regno_map_length),
9995 (x86_64_dwarf2_reg_to_regnum): Added.
9996 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9997 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9998 (_initialize_x86_64_tdep): Synced with the change above.
9999 (x86_64_skip_prologue): Reformulated message.
10000
065432a8
PM
100012002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10002
10003 * f-exp.y: Also use new prev_lexptr variable
10004 to improve error reporting. Based on Michael Snyder
10005 2002-04-24 dated patch to c-exp.y.
10006 * jv-exp.y: Likewise.
10007 * m2-exp.y: Likewise.
10008
a3162708
EZ
100092002-05-02 Elena Zannoni <ezannoni@redhat.com>
10010
10011 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10012 we are dealing with vectors.
10013
03620c38
PM
100142002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10015
10016 * config/m68k/tm-nbsd.h: Obvious fix,
10017 correct machine name.
10018
6604db2e
PM
100192002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10020
10021 * p-typeprint.c (pascal_type_print_base): Add support
10022 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10023
0906b739
PM
100242002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10025
10026 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10027 for fondamental pascal 'char' type.
10028
e2625b33
PM
100292002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10030
10031 * p-lang.h (is_pascal_string_type): Declaration changed,
10032 new sixth argument of type char ** added.
361d1df0 10033 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
10034 changed. Args length_pos, length_size, string_pos, char_size
10035 can now be NULL. New argument arrayname set to the field
10036 name of the char array. Return value set to char array
10037 field index plus one.
361d1df0 10038 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
10039 is_pascal_string_type function.
10040
cf17c188
AC
100412002-05-02 Andrew Cagney <cagney@redhat.com>
10042
10043 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10044 <cagney@redhat.com> change.
10045 * gdbarch.c: Regenerate.
10046
52bca491
AC
100472002-05-02 Andrew Cagney <cagney@redhat.com>
10048
10049 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10050 before probing for a new one. Detect errorenous gdbarch_init
10051 functions.
10052 * gdbarch.c: Regenerate.
10053
d5e72505
AC
100542002-05-01 Andrew Cagney <cagney@redhat.com>
10055
10056 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10057 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10058 * config/v850/tm-v850.h: Ditto. Update copyright.
10059
af566d9f
AC
100602002-04-30 Andrew Cagney <ac131313@redhat.com>
10061
10062 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10063 current_gdbarch.
10064
880d85fa
MS
100652002-04-30 Michael Snyder <msnyder@redhat.com>
10066
94c30b78
MS
10067 * arm-tdep.c: Whitespace clean-ups.
10068 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
10069 should have been removed as part of 4/24 change.
10070
6f5987a6
KB
100712002-04-30 Kevin Buettner <kevinb@redhat.com>
10072
10073 * rs6000-tdep.c: Added comment describing how fpscr register
10074 numbers were chosen.
10075
1a113c93
MS
100762002-04-30 Michael Snyder <msnyder@redhat.com>
10077
10078 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10079
9a6f53fe
EZ
100802002-04-29 Elena Zannoni <ezannoni@redhat.com>
10081
10082 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10083 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10084 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10085
11ed25ac
KB
100862002-04-29 Kevin Buettner <kevinb@redhat.com>
10087
10088 From Louis Hamilton <hamilton@redhat.com>:
10089 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10090 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10091 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10092 not bfd-private xcoff data, to determine wordsize.
10093 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10094
ae232405
AC
100952002-04-29 Andrew Cagney <ac131313@redhat.com>
10096
10097 GDB 5.2 released from 5.2 branch.
10098
91fd20f7
ML
100992002-04-29 Michal Ludvig <mludvig@suse.cz>
10100
10101 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10102 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10103 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 10104
2dc5091b
EZ
101052002-04-29 Elena Zannoni <ezannoni@redhat.com>
10106
10107 * rs6000-tdep.c (rs6000_extract_return_value,
10108 rs6000_store_return_value): Handle returning vectors.
10109 (rs6000_gdbarch_init): Use
10110 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10111 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10112 New function.
10113 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10114 vectors.
10115 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10116 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 10117
2b9848d8
PM
101182002-04-24 Pierre Muller <ics.u-strasbg.fr>
10119
10120 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 10121 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
10122 with fprintf_unfiltered (gdb_stderr,...).
10123
f8d17dc5
PM
101242002-04-24 Pierre Muller <ics.u-strasbg.fr>
10125
10126 * remote-array.c (printf_monitor, write_monitor,
361d1df0 10127 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
10128 Replace fprintf (stderr,...
10129 with fprintf_unfiltered (gdb_stderr,....
10130 * remote-es.c: Likewise.
10131 * remote-os9k.c: Likewise.
10132 * remote-st.c: Likewise.
10133
2f2f1ad1
AS
101342002-04-28 Andreas Schwab <schwab@suse.de>
10135
10136 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10137 linux-proc.o and gcore.o.
10138
b6779aa2
AC
101392002-04-26 Michal Ludvig <mludvig@suse.cz>
10140
10141 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10142 code without frame pointers.
10143
7e57f5f4
AC
101442002-04-26 Andrew Cagney <ac131313@redhat.com>
10145
10146 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10147 ON_STACK is needed.
10148
2ceb85d0
BE
101492002-04-26 Ben Elliston <bje@redhat.com>
10150
10151 * target.c (do_xfer_memory): Correct reference to the new option
10152 "trust-readonly-sections".
10153
f5f8a009
EZ
101542002-04-26 Elena Zannoni <ezannoni@redhat.com>
10155
10156 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10157 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10158 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10159 vectors.
10160 (read_array_type): Record the fact that this array type is really a
10161 vector (i.e. are passed in by value).
10162
5868c862
JT
101632002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10164
10165 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10166 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10167 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10168 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10169 * alpha-linux-tdep.c: Include frame.h.
10170 (alpha_linux_sigcontext_addr): New function.
10171 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10172 alpha_linux_sigcontext_addr.
10173 * alpha-osf1-tdep.c: Include gdbcore.h.
10174 (alpha_osf1_sigcontext_addr): New function.
10175 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10176 alpha_osf1_sigcontext_addr.
10177 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10178 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10179
bfb01f37
AC
101802002-04-26 Andrew Cagney <ac131313@redhat.com>
10181
361d1df0 10182 * stack.c (selected_frame_level):
bfb01f37
AC
10183 (select_frame): Do not set selected_frame_level.
10184 * frame.h (selected_frame_level): Delete declaration.
10185
15813d3f
AC
101862002-04-26 Andrew Cagney <ac131313@redhat.com>
10187
10188 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10189 convert_from_func_ptr-addr when AIX / PowerOpen.
10190
6096c27a
AC
101912002-04-25 Andrew Cagney <ac131313@redhat.com>
10192
10193 * valops.c (hand_function_call): Call
10194 generic_save_call_dummy_addr.
10195 * frame.h (generic_save_call_dummy_addr): Declare.
10196 * blockframe.c (struct dummy_frame): Add fields call_lo and
10197 call_hi.
10198 (generic_find_dummy_frame): Check for PC in range call_lo to
10199 call_hi instead of entry_point_address.
10200 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10201 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10202 (generic_save_call_dummy_addr): New function.
10203
f510d44e
DM
102042002-04-24 David S. Miller <davem@redhat.com>
10205
10206 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10207 sparc_skip_prologue.
10208 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10209 information to find prologue when possible.
10210 (sparc_prologue_frameless_p): Call examine_prologue directly.
10211 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10212 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10213 second argument.
10214 (SKIP_PROLOGUE): Likewise.
10215
15d72a92
JT
102162002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10217
10218 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10219 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10220 indicate that the condition it was testing is always true.
10221 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10222 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10223 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10224
accc6d1f
JT
102252002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10226
10227 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10228 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10229 tdep->jb_pc and tdep->jb_elt_size.
10230 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10231 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10232 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10233 * alpha-nat.c (get_longjmp_target): Remove.
10234 (JB_ELEMENT_SIZE): Ditto.
10235 (JB_PC): Ditto.
10236 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10237 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10238 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10239 to alpha_get_longjmp_target.
10240 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10241 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10242 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10243
1bfdc549
AC
102442002-04-25 Andrew Cagney <ac131313@redhat.com>
10245
10246 * README: Update to GDB 5.2.
10247
1bd316f0
AC
102482002-04-25 Andrew Cagney <ac131313@redhat.com>
10249
10250 * gdbarch.sh (LC_ALL): Set to `c'.
10251
2e5ff58c
TR
102522002-04-25 Theodore A. Roth <troth@verinet.com>
10253
10254 * avr-tdep.c: Ran through gdb_indent.sh.
10255
e33ce519
TR
102562002-04-25 Theodore A. Roth <troth@verinet.com>
10257
10258 * MAINTAINERS: Add myself as AVR maintainer.
10259 * NEWS: Note new target avr.
10260
8818c391
TR
102612002-04-25 Theodore A. Roth <troth@verinet.com>
10262
10263 * Makefile.in: Add support for AVR target.
10264 * configure.tgt: Add support for AVR target.
10265 * avr-tdep.c: New file
10266 * config/avr/avr.mt: New file.
10267
79509c2d
TR
102682002-04-25 Theodore A. Roth <troth@verinet.com>
10269
10270 * MAINTAINERS: Add myself to write-after-approval.
10271
dac8068e
PM
102722002-04-24 Pierre Muller <ics.u-strasbg.fr>
10273
10274 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10275 with fprintf_unfiltered (gdb_stderr,....
10276
25bf3106
PM
102772002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10278
10279 Fix PR gdb/508.
10280 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10281
24467a86
PM
102822002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10283
10284 * p-exp.y: Also use new prev_lexptr variable
10285 to improve error reporting. Based on Michael Snyder
10286 2002-04-24 dated patch to c-exp.y.
10287
95b80706
JT
102882002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10289
10290 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10291 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10292 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10293 to 0.
10294 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10295 and struct value.
10296 (FUNCTION_START_OFFSET): Remove.
10297 (BREAKPOINT): Ditto.
10298
e90cc612
JT
102992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10300
10301 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10302 * NEWS: Ditto.
10303
6c72f9f9
JT
103042002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10305
10306 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10307 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10308 alpha_linux_pc_in_sigtramp.
10309 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10310 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10311 alpha_osf1_pc_in_sigtramp.
10312 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10313 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10314 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10315 alphafbsd_pc_in_sigtramp.
10316 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10317 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10318 alphanbsd_pc_in_sigtramp.
10319 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10320 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10321
5e4f3379
JT
103222002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10323
10324 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10325
da8ca43d
JT
103262002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10327
10328 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10329 alphanbsd-tdep.c.
10330 (alphanbsd-nat.o): New dependency list.
10331 (alphanbsd-tdep.o): Ditto.
10332 * NEWS: Note new native NetBSD/alpha configuration.
10333 * alphanbsd-nat.c: New file.
10334 * alphanbsd-tdep.c: Ditto.
10335 * configure.host (alpha*-*-netbsd*): New host.
10336 * configure.tgt (alpha*-*-netbsd*): New target.
10337 * config/alpha/nbsd.mh: New file.
10338 * config/alpha/nbsd.mt: Ditto.
10339 * config/alpha/nm-nbsd.h: Ditto.
10340 * config/alpha/tm-nbsd.h: Ditto.
10341
36a6271d
JT
103422002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10343
10344 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10345 (alpha-osf1-tdep.o): New dependency list.
10346 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10347 and skip_sigtramp_frame members.
10348 * alpha-linux-tdep.c: Include gdbcore.h.
10349 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10350 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10351 * alpha-osf1-tdep.c: New file.
10352 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10353 alpha-osf1-dep.c.
10354 (alpha_frame_past_sigtramp_frame): New function.
10355 (alpha_dynamic_sigtramp_offset): Ditto.
10356 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10357 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10358 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10359 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10360 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10361 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10362 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10363 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10364 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10365 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10366 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10367 to find_solib_trampoline_target.
10368 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10369 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10370 (SKIP_TRAMPOLINE_CODE): Remove.
10371 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10372 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10373 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10374 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10375 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10376 (PROC_SIGTRAMP_MAGIC): Ditto.
10377 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10378 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10379 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10380 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10381 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10382
2f4bc57b
JT
103832002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10384
10385 * NEWS: Note that Alpha targets are now multi-arch.
10386
665132f9
MS
103872002-04-24 Michael Snyder <msnyder@redhat.com>
10388
10389 * parser-defs.h (prev_lexptr): New external variable.
10390 * parse.c (parse_exp_1): Set prev_lexptr to null before
10391 calling the language-specific parser.
10392 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10393 (yyerror): Use prev_lexptr in error reporting.
10394
32872fa7
DJ
103952002-04-24 Daniel Jacobowitz <drow@mvista.com>
10396
10397 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10398 * gregset.h: If FILL_FPXREGSET is defined, provide
10399 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10400 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10401 is defined, call fill_fpxregset.
10402
57e76fac
MS
104032002-04-24 Roland McGrath <roland@frob.com>
10404
10405 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10406 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10407 (supply_gregset, supply_fpregset): New functions.
10408
10409 * gnu-nat.c (gnu_find_memory_regions): New function.
10410 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10411 (gnu_xfer_memory): Add a cast.
10412
f43845b3
MS
104132002-04-24 Michael Snyder <msnyder@redhat.com>
10414
361d1df0 10415 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10416 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10417 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10418 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10419 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10420 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10421
a0abec03
AC
10422Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10423
10424 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10425 NUM_PSEUDO_REGS can be used.
10426
d7bd68ca
AC
104272002-04-24 Andrew Cagney <ac131313@redhat.com>
10428
10429 * arch-utils.h: Update copyright.
10430
10431 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10432 * gdbarch.h, gdbarch.c: Re-generate.
10433
10434 * inferior.h (IN_SIGTRAMP): Delete definition.
10435 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10436 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10437
10438 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10439 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10440 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10441 (find_proc_framesize): Ditto.
10442 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10443 (alpha_init_extra_frame_info): Ditto.
10444 * infrun.c (handle_inferior_event): Ditto.
10445 (handle_inferior_event): Ditto.
10446 (check_sigtramp2): Ditto.
10447 * blockframe.c (create_new_frame): Ditto.
10448 (get_prev_frame): Ditto.
10449 * ppc-linux-tdep.c: Update comments.
10450 * i386-linux-tdep.c: Update comments.
10451 * breakpoint.c (bpstat_what): Update comment.
10452
4867e41e
DM
104532002-04-24 David S. Miller <davem@redhat.com>
10454
21d83aa5
DM
10455 * i960-tdep.c (register_in_window_p): New function.
10456 (i960_find_saved_register): Use it instead of
10457 REGISTER_IN_WINDOW_P.
10458 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10459
4867e41e
DM
10460 * symtab.h (find_stab_function_addr): Kill extern.
10461 * minsyms.c (find_stab_function_addr): Remove from here...
10462 * dbxread.c: ... to here, and mark it static.
10463
69cdf6a2
DM
104642002-04-20 David S. Miller <davem@redhat.com>
10465
10466 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10467 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10468
5a595886
DM
104692002-04-21 David S. Miller <davem@redhat.com>
10470
10471 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10472 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10473 (vx_write_register): Likewise.
10474
1da1a192
JB
104752002-04-23 J. Brobecker <brobecker@gnat.com>
10476
10477 * source.c (is_regular_file): New function.
10478 (openp): Check wether file to open is a regular file
10479 to avoid opening directories.
10480
baa6f10b
JT
104812002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10482
10483 * findvar.c (extract_signed_integer): Cast printf argument
10484 to suppress format warning.
10485 (extract_unsigned_integer): Likewise.
10486 * infcmd.c (registers_info): Likewise.
10487 * top.c (get_prompt_1): Likewise.
10488 * valops.c (value_assign): Likewise.
10489 * valprint.c (print_decimal): Likewise.
10490
b2c4da81
L
104912002-04-22 H.J. Lu (hjl@gnu.org)
10492
10493 * c-exp.y (typebase): Support
361d1df0 10494
b2c4da81
L
10495 [long|long long|short] [signed|unsigned] [int|]
10496
10497 and
10498
10499 signed [long|long long|short] int
10500
f267bd6a
JT
105012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10502
10503 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10504 and vax-tdep.h.
10505 * vax-tdep.h: New file.
10506 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10507 Make several routines static.
10508 (vax_get_saved_register): New function.
10509 (vax_gdbarch_init): New function.
10510 (_initialize_vax_tdep): Register vax_gdbarch_init.
10511 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10512 Remove macros now under the control of gdbarch.
10513
da3c6d4a
MS
105142002-04-22 Michael Snyder <msnyder@redhat.com>
10515
11d3b27d
MS
10516 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10517 Some whitespace and coding standards tweaks.
da3c6d4a 10518
a33f7558
JT
105192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10520
10521 * vax-tdep.c: Include regcache.h.
10522 (vax_call_dummy_words): New.
10523 (sizeof_vax_call_dummy_words): New.
10524 (vax_fix_call_dummy): New function.
10525 (vax_saved_pc_after_call): Ditto.
10526 * config/vax/tm-vax.h: Don't include regcache.h.
10527 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10528 (CALL_DUMMY): Remove.
10529 (CALL_DUMMY_WORDS): Define.
10530 (SIZEOF_CALL_DUMMY_WORDS): Define.
10531 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10532
47a73475
MS
105332002-04-18 Michael Snyder <msnyder@redhat.com>
10534
10535 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10536
52efde73
JT
105372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10538
10539 * vax-tdep.c (vax_frame_chain): New function.
10540 (vax_push_dummy_frame): Ditto.
10541 (vax_pop_frame): Ditto.
10542 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10543 (FRAMELESS_FUNCTION_INVOCATION): Use
10544 generic_frameless_function_invocation_not.
10545 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10546 (POP_FRAME): Use vax_pop_frame.
10547
ea74468c
JT
105482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10549
10550 * vax-tdep.c (vax_store_struct_return): New function.
10551 (vax_extract_return_value): Ditto.
10552 (vax_store_return_value): Ditto.
10553 (vax_extract_struct_value_address): Ditto.
10554 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10555 vax_store_struct_return.
10556 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10557 (STORE_RETURN_VALUE): Use vax_store_return_value.
10558 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10559
5516aa92
JT
105602002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10561
10562 * vax-tdep.c (vax_frame_saved_pc): New function.
10563 (vax_frame_args_address_correct): Ditto.
10564 (vax_frame_args_address): Ditto.
10565 (vax_frame_locals_address): Ditto.
10566 (vax_frame_num_args): Move code to be in proximity to
10567 other frame-related functions.
10568 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10569 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10570 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10571 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10572 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10573
36af0b35
L
105742002-04-22 H.J. Lu (hjl@gnu.org)
10575
10576 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10577 includedir.
10578
ab62c900
JT
105792002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10580
10581 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10582 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10583 (FRAME_INIT_SAVED_REGS): New macro.
10584
7232b100
JT
105852002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10586
10587 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10588
b70d2aee
JT
105892002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10590
10591 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10592 where needed.
10593 (fetch_osf_core_registers): Likewise.
10594 (supply_gregset): Likewise.
10595
a0e8a2d1 105962002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 10597
a0e8a2d1
JB
10598 * symfile.h (get_section_index): Define.
10599 * symfile.c (get_section_index): New function.
10600 * mdebugread.c (SC_IS_SBSS): New macro.
10601 (SC_IS_BSS): Return true for the scBss storage class only, as
10602 the scSBss storage class refers to the .sbss section.
10603 (parse_partial_symbols): Discard the symbols which associated
10604 section does not exist.
10605 Make sure to use the .sbss section index for symbols which
10606 storage class is scBss, rather than using the .bss section index.
10607
51eb8b08
JT
106082002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10609
10610 * vax-tdep.c: Update copyright years.
10611 (vax_register_name): New function.
10612 (vax_register_byte): Ditto.
10613 (vax_register_raw_size): Ditto.
10614 (vax_register_virtual_size): Ditto.
10615 (vax_register_virtual_type): Ditto.
10616 * config/vax/tm-vax.h: Update copyright years.
10617 (REGISTER_NAMES): Remove.
10618 (REGISTER_NAME): Define.
10619 (REGISTER_BYTE): Use vax_register_byte.
10620 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10621 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10622 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10623
6cc1c0a8
AC
106242002-04-21 Andrew Cagney <ac131313@redhat.com>
10625
10626 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10627 declaration
10628 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10629
9319a2fe
DM
106302002-04-21 David S. Miller <davem@redhat.com>
10631
10632 * arch-utils.c (generic_prologue_frameless_p): Kill
10633 SKIP_PROLOGUE_FRAMELESS_P code.
10634 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10635 references.
10636 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10637 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10638 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10639 references.
10640 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10641 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10642 (sparc_gdbarch_init): Pass it to
10643 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10644
e9ed6d01
JT
106452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10646
10647 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10648 (alphabsd-nat.o): New dependency list.
10649
36012033
JT
106502002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10651
10652 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10653 alphafbsd-tdep.c.
10654 (alpha-linux-tdep.o): New dependency list.
10655 (alphafbsd-tdep.o): Likewise.
10656
3379287a
JT
106572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10658
10659 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10660 to here...
10661 * alpha-tdep.c: ...from here.
10662 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10663
4bcbd6cb
JT
106642002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10665
10666 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10667 prototype from here...
10668 * alpha-tdep.h: ...to here.
10669
b31da25e
AC
106702002-04-21 Andrew Cagney <ac131313@redhat.com>
10671
10672 * frame.h (selected_frame_level): Document as deprecated.
10673 (frame_relative_level): Declare.
10674 * stack.c (frame_relative_level): New function.
10675 (selected_frame_level): Document as deprecated.
10676 (select_frame): Do not set the selected_frame_level.
10677
10678 * stack.c (frame_info, record_selected_frame): Update.
10679 (frame_command, current_frame_command): Update.
10680 (up_silently_base, up_command, down_silently_base): Update.
10681 (down_command): Update.
10682 * inflow.c (kill_command): Update.
10683 * tracepoint.c (finish_tfind_command): Update.
10684 * corelow.c (core_open): Update.
10685 * thread.c (info_threads_command): Update.
10686 (do_captured_thread_select): Update.
10687 * infcmd.c (finish_command): Update.
10688 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10689
9c1d6fe5
JT
106902002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10691
10692 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10693
ab89facf
AC
106942002-04-21 Andrew Cagney <ac131313@redhat.com>
10695
10696 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10697 type const.
10698
82a4efa1
JT
106992002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10700
10701 * alphafbsd-tdep.c: Update copyright years. Include
10702 alpha-tdep.h.
10703 (alphafbsd_use_struct_convention): Make static.
10704 (alphafbsd_init_abi): New function.
10705 (_initialize_alphafbsd_tdep): New function.
10706 * config/alpha/tm-fbsd.h: Update copyright years.
10707 (USE_STRUCT_CONVENTION): Remove.
10708
44dffaac
JT
107092002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10710
10711 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10712 an Alpha ABI variant.
10713 (alpha_abi_handler_list): Declare.
10714 (alpha_gdbarch_register_os_abi): New function.
10715 (alpha_gdbarch_init): Give registered ABI variant handlers a
10716 chance to tweak the gdbarch once we have set up defaults.
10717 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10718
65585be4
JT
107192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10720
10721 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10722 to standard_coerce_float_to_double.
10723 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10724
d9b023cc
JT
107252002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10726
10727 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10728 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10729 from gdbarch_tdep rather than a constant.
10730 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10731 the default text address for all Alpha Unix ABIs.
10732 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10733 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10734
dc129d82
JT
107352002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10736
10737 * alpha-tdep.h: New file. Includes several Alpha target constants
10738 taken from...
10739 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10740 let gdbarch deal with.
10741 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10742 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10743 to dependency list.
10744 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10745 Alpha target register names.
10746 * alphabsd-nat.c: Likewise.
10747 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10748 Alpha target register names. Make serveral routines static.
10749 (alpha_get_saved_register): New function.
10750 (alpha_abi_names): New.
10751 (process_note_abi_tag_sections): New function.
10752 (get_elfosabi): New function.
10753 (alpha_gdbarch_init): New function.
10754 (alpha_dump_tdep): New function.
10755 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10756
d49d1e0a
AC
107572002-04-21 Andrew Cagney <ac131313@redhat.com>
10758
10759 * frame.c (find_saved_register): Delete #ifdef
10760 HAVE_REGISTER_WINDOWS code.
10761 * config/sparc/tm-sparc.h: Update comments.
10762 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10763
92e8c9ed
AC
107642002-04-21 Andrew Cagney <ac131313@redhat.com>
10765
10766 * i960-tdep.c (i960_find_saved_register): New function.
10767 (i960_get_saved_register): New function.
10768 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10769 (i960_get_saved_register): Declare.
10770 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10771
e1925118
DM
107722002-04-20 David S. Miller <davem@redhat.com>
10773
10774 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10775
29673b29
AC
107762002-04-20 Andrew Cagney <ac131313@redhat.com>
10777
10778 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10779 instead of NUM_PSEUDO_REGS.
10780
6c86dcd5
DM
107812002-04-20 David S. Miller <davem@redhat.com>
10782
10783 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10784 GDB_MULTI_ARCH_PARTIAL
10785 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10786 define, let tm-sp64.h do it.
10787
aa40ec90
JT
107882002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10789
10790 * frame.c (find_saved_register): Avoid a NULL pointer
10791 dereference and actually walk the frame list.
10792
0f79675b
AC
107932002-04-20 Andrew Cagney <ac131313@redhat.com>
10794
10795 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10796 sorted in most most-recent-used order. Document.
10797 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10798
f91305dd 107992002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10800
10801 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10802 instead of ->prev.
10803 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10804 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10805 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10806 instead of ->prev.
10807
73d322b1
EZ
108082002-04-19 Elena Zannoni <ezannoni@redhat.com>
10809
10810 Fix PR gdb/471.
10811 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10812 (build_builtin_type_vec128): Ditto.
10813 (append_composite_type_field): Fix calculation of type length in
10814 union case.
10815
ccd9a834
EZ
108162002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10817
10818 * config/djgpp/README: Update.
10819
10820 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10821 compiler warnings.
10822
a57f9e49
JT
108232002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10824
10825 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10826 (alpha_setup_arbitrary_frame): ...to this.
10827 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10828 for alpha_setup_arbitrary_frame.
10829
f4f9705a
AC
108302002-04-18 Andrew Cagney <cagney@redhat.com>
10831
10832 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10833 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10834
f4f9705a
AC
10835 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10836 * target.h (memory_breakpoint_from_pc): Update declaration.
10837 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10838
10839 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10840 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10841 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10842 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10843 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10844 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10845 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10846 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10847 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10848 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10849 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10850 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10851
10852 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10853 const pointer.
10854 * monitor.c (monitor_insert_breakpoint): Ditto.
10855 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10856
10857 * config/mcore/tm-mcore.h: Update copyright.
10858 * mem-break.c: Ditto.
10859 * xstormy16-tdep.c: Ditto.
10860
29f319b8
PM
108612002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10862
10863 * p-exp.y: Add precedence rule for '^' token.
10864 This removes the shift/reduce conflicts.
10865 Remove the comment concerning these shift/reduce conflicts.
10866
ebeac11a
EZ
108672002-04-18 Elena Zannoni <ezannoni@redhat.com>
10868
10869 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10870 (registers_powerpc_nofp): New register set for processors
10871 without floating point unit.
10872
27c31547
DM
108732002-04-18 David S. Miller <davem@redhat.com>
10874
10875 * MAINTAINERS: Add myself to write-after-approval.
10876
47a73475
MS
108772002-04-17 Michael Snyder <msnyder@redhat.com>
10878
10879 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10880
953836b2
AC
108812002-04-17 Andrew Cagney <ac131313@redhat.com>
10882
10883 * rs6000-tdep.c (frame_initial_stack_address): Use
10884 frame_register_read to read the alloca_reg.
10885
8b0d4340
AC
108862002-04-17 Andrew Cagney <ac131313@redhat.com>
10887
10888 * frame.c (find_saved_register): Find saved registers in the next
10889 not prev frame.
10890 Fix PR gdb/365.
10891
d8864532
AC
108922002-04-17 Andrew Cagney <ac131313@redhat.com>
10893
10894 * gdbarch.sh (LANG): Set to ``c''.
10895
36cc83a3 108962002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10897
36cc83a3 10898 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10899
2f4150cc 109002002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10901
10902 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10903 Update copyright.
10904
628703c6 10905 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10906 Also fix PR gdb/391.
361d1df0 10907
56157b4a
AC
109082002-04-14 Andrew Cagney <ac131313@redhat.com>
10909
10910 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10911 * aclocal.m4, configure: Re-generate.
10912 Fix PR gdb/391.
361d1df0 10913
6d1e3329
EZ
109142002-04-14 Elena Zannoni <ezannoni@redhat.com>
10915
10916 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10917 instead of tm_print_insn.
10918
cb06fa07
EZ
109192002-04-14 Elena Zannoni <ezannoni@redhat.com>
10920
10921 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10922
f208ba17
AC
109232002-04-14 Andrew Cagney <ac131313@redhat.com>
10924
10925 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10926 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10927 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10928
20f01a46
DH
109292002-04-12 Don Howard <dhoward@redhat.com>
10930
10931 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10932 max_user_call_depth.
10933 (init_cmd_lists): Initialize the new value;
10934 * cli/cli-script.c (execute_user_command): Limit the call depth of
10935 user defined commands. This avoids a core-dump when user commands
10936 are infinitly recursive.
10937
a88376a3
KB
109382002-04-12 Kevin Buettner <kevinb@redhat.com>
10939
10940 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10941 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10942 from tdep struct instead of DEFAULT_LR_SAVE.
10943 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10944 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10945 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10946
f2172603
MS
109472002-04-12 Michael Snyder <msnyder@redhat.com>
10948
694f61fb 10949 * Remote.c: Spelling fix.
20fe79c8
MS
10950 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10951 If no symbol found for "sbrk", try "_sbrk".
10952 (make_output_phdrs): Use bfd_section_name.
10953 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10954 * eval.c: Indentation fix-ups.
169a7369
MS
10955 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10956 in case it gets applied to an address that is already
10957 in the instruction space.
de74f71f
MS
10958 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10959 * symfile.c: Fix indentation, long lines.
f2172603
MS
10960 * source.c: White space fix-up.
10961
cda5a58a
AC
109622002-04-12 Andrew Cagney <cagney@redhat.com>
10963
10964 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10965 * frame.c (frame_register_read): New function. Return non-zero on
10966 success.
10967 (read_relative_register_raw_bytes_for_frame): Delete.
10968 (read_relative_register_raw_bytes): Delete.
10969 * frame.h (frame_register_read): Declare.
10970 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10971 * sh-tdep.c: Ditto.
10972 * infcmd.c (do_registers_info): Ditto.
10973 * hppa-tdep.c: Ditto.
10974 * rs6000-tdep.c: Ditto.
10975 * h8500-tdep.c: Ditto.
10976 * mips-tdep.c: Ditto.
10977 * h8300-tdep.c: Ditto.
10978 * z8k-tdep.c: Ditto.
10979
2ea5f656
KB
109802002-04-12 Kevin Buettner <kevinb@redhat.com>
10981
10982 From Jimi X <jimix@watson.ibm.com>:
10983 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10984 64-bit SysV ABI.
10985
27b15785
KB
109862002-04-12 Kevin Buettner <kevinb@redhat.com>
10987
10988 From Jimi X <jimix@watson.ibm.com>:
10989 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10990 bfd info.
10991
5d57ee30
KB
109922002-04-12 Kevin Buettner <kevinb@redhat.com>
10993
10994 From Jimi X <jimix@watson.ibm.com>:
10995 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10996 register sets for these processor variants.
10997
bc1e36ca
DJ
109982002-04-11 Daniel Jacobowitz <drow@mvista.com>
10999
bc1e36ca
DJ
11000 * regformats/reg-ppc.dat: Support FPSCR.
11001
e3f36dbd
KB
110022002-04-11 Kevin Buettner <kevinb@redhat.com>
11003
11004 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11005 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11006 Add fpscr as an invalid/unfetchable register.
11007 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11008 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11009 (fill_fpregset): Add support for register fpscr.
11010 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11011 (fill_gregset): Account for the fact that register ``mq'' might
11012 not exist.
11013 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11014 (registers_power): Add fpscr to register set at slot 71.
11015 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11016 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11017
943c9c25
MS
110182002-04-11 Michael Snyder <msnyder@redhat.com>
11019
11020 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11021 * configure: Regenerate.
11022 * config.in: Regenerate.
11023 * acconfig.h: Add define for _SYSCALL32.
11024 * core-sol2.c: Remove #define _SYSCALL32.
11025 * solib-legacy.c: Remove #define _SYSCALL32.
11026
d8c0a2e7
AC
110272002-04-10 Andrew Cagney <ac131313@redhat.com>
11028
11029 * stack.c (select_frame): Cleanup internal error message, do not
11030 use %p.
11031
7cc19214
AC
110322002-04-10 Andrew Cagney <ac131313@redhat.com>
11033
11034 * stack.c (select_frame): Check that selected_frame and the
11035 specified level are as expected.
11036 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11037 Update copyright.
11038 * frame.h (struct frame_info): Add field `level'. Update
11039 copyright.
11040 Work-in-progress PR gdb/464.
11041
67a2b77e
AC
110422002-04-10 Andrew Cagney <ac131313@redhat.com>
11043
11044 * maint.c (maint_print_section_info): Rename print_section_info.
11045 (print_bfd_section_info, print_objfile_section_info): Update.
11046 * inferior.h (struct gdbarch): Add opaque declaration.
11047 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11048 * gdbarch.h: Regenerate.
11049
8cfda98c
ML
110502002-04-10 Michal Ludvig <mludvig@suse.cz>
11051
11052 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11053 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11054 (kernel_u_size): Added.
11055 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11056 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11057
ca439ad2 110582002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 11059
ca439ad2
JI
11060 * valarith.c (find_size_for_pointer_math): New function, either returns
11061 the size for a pointer's target, returns 1 for void *, or errors for
11062 incomplete types.
11063 (value_add, value_sub): use find_size_for_pointer_math.
11064
2f2893d9
DJ
110652002-04-09 Daniel Jacobowitz <drow@mvista.com>
11066
11067 * linux-low.c (linux_look_up_symbols): New hook.
11068 (linux_target_ops): Add linux_look_up_symbols.
11069 * remote-utils.c (decode_address): New function.
11070 (look_up_one_symbol): New function.
11071 * server.c (handle_query): Call target look_up_symbols hook.
11072 * server.h (look_up_one_symbol): Add prototype.
11073 * target.h (struct target_ops): Add look_up_symbols hook.
11074
96cb11df
AC
110752002-04-09 Andrew Cagney <ac131313@redhat.com>
11076
11077 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11078 override FP_REGNUM with frame->fp. Update copyright.
11079 * parse.c (num_std_regs, std_regs): Delete.
11080 (target_map_name_to_register): Do not search std_regs. Update
11081 function description.
11082 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11083 declarations. Update copyright.
11084 Fix PR gdb/251.
361d1df0 11085
97658e92
DJ
110862002-04-09 Daniel Jacobowitz <drow@mvista.com>
11087
11088 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11089 after the last symbol in a block.
11090
6044e3eb
PM
110912002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11092
11093 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11094 is non zero as a found symbol.
11095
0406ec40
AC
110962002-04-08 Andrew Cagney <ac131313@redhat.com>
11097
11098 * findvar.c: Include "builtin-regs.h".
11099 (value_of_register): Call value_of_builtin_reg when applicable.
11100 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11101 (target_map_name_to_register): Call
11102 builtin_reg_map_name_to_regnum.
11103 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11104 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11105 (builtin_regs_h): Define.
11106 (builtin-regs.o): New target.
11107 (findvar.o): Add $(builtin_regs_h).
11108 * builtin-regs.c, builtin-regs.h: New files.
11109 * std-regs.c: New file.
11110 Partial fix for PR gdb/251.
11111
56a6dfb9
KB
111122002-04-08 Kevin Buettner <kevinb@redhat.com>
11113
11114 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11115 it's no longer required.
11116
3a808432
AC
111172002-04-08 Andrew Cagney <ac131313@redhat.com>
11118
11119 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11120
7c40d541
KB
111212002-04-08 Kevin Buettner <kevinb@redhat.com>
11122
11123 From Jimi X <jimix@watson.ibm.com>:
11124 * rs6000-tdep.c (rs6000_software_single_step): Use
11125 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11126 and size. Use target_insert_breakpoint() and
11127 target_remove_breakpoint() to insert and remove breakpoints
11128 instead of explicit memory reads and writes.
11129
cc9836a8
KB
111302002-04-08 Kevin Buettner <kevinb@redhat.com>
11131
11132 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11133 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11134 ELF_OBJECT_FORMAT ifdef.
11135
7495d1dc
KB
111362002-04-08 Kevin Buettner <kevinb@redhat.com>
11137
11138 From Jimi X <jimix@watson.ibm.com>:
11139 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11140
4288e836
KB
111412002-04-08 Kevin Buettner <kevinb@redhat.com>
11142
11143 From Jimi X <jimix@watson.ibm.com>:
11144 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11145 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11146
a4e4e501
MK
111472002-04-07 Mark Kettenis <kettenis@gnu.org>
11148
11149 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11150 s/asprintf/xasprintf/.
11151 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11152
006defba
AC
111532002-04-07 Andrew Cagney <ac131313@redhat.com>
11154
11155 I believe Jeff Law denies responsability for this one:
11156 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11157 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11158 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11159 Work-around for PR gdb/366.
11160
7aa83cac
EZ
111612002-04-07 Elena Zannoni <ezannoni@redhat.com>
11162
11163 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11164 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11165 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11166
cf1fcca1
EZ
111672002-04-07 Elena Zannoni <ezannoni@redhat.com>
11168
11169 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11170 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11171 information.
11172
3f289e6f
AC
111732002-04-07 Andrew Cagney <ac131313@redhat.com>
11174
11175 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11176 maintainer.
11177
129188f6
AC
111782002-04-07 Andrew Cagney <ac131313@redhat.com>
11179
11180 * README (Reporting Bugs in GDB): Document the bug web page as the
11181 prefered way of submitting bugs.
11182 Fix PR gdb/402.
11183
1200cd6e
AC
111842002-04-06 Andrew Cagney <ac131313@redhat.com>
11185
11186 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11187 -1. Update comment.
11188 * gdbarch.h, gdbarch.c: Re-generate.
11189
2853c33c
AS
111902002-04-07 Andreas Schwab <schwab@suse.de>
11191
11192 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11193 buffer to regcache_collect.
11194
c2169756
AC
111952002-04-06 Andrew Cagney <ac131313@redhat.com>
11196
11197 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11198 * gdbarch.c, gdbarch.h: Re-generate.
11199
25f1b008
AC
112002002-04-06 Andrew Cagney <ac131313@redhat.com>
11201
11202 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11203 declaration. Fix -Werror.
11204
59263426
DJ
112052002-04-05 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11208 * gdbarch.c: Regenerate.
11209
f5db4da3
MS
112102002-04-05 Michael Snyder <msnyder@redhat.com>
11211
80f8a6eb
MS
11212 * breakpoint.c (clear_command): Rewrite middle section to
11213 combine two loops with identical control conditions.
11214 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11215 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11216
ad3dcc5c
L
112172002-04-05 H.J. Lu (hjl@gnu.org)
11218
11219 * solib-svr4.c (bkpt_names): Add "__start".
11220
f32e7a74
AC
112212002-04-04 Andrew Cagney <ac131313@redhat.com>
11222
11223 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11224 as test for 64 bit target.
11225
8227c0ff
AC
112262002-04-05 Andrew Cagney <ac131313@redhat.com>
11227
11228 * h8500-tdep.c (h8500_write_fp): Delete function.
11229 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11230 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11231 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11233 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11234 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11235 (s390_write_fp):
11236 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11237 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11238 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11239 (d10v_write_fp): Delete function.
11240 * inferior.h (write_fp, generic_target_write_fp): Delete
11241 declarations.
11242 * regcache.c (generic_target_write_fp): Delete function.
11243 (write_fp): Delete function.
11244 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11245 * gdbarch.h, gdbarch.c: Regenerate.
11246 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11247 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11248 (sparc64_write_fp): Delete declaration.
11249 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11250 (h8500_write_fp): Delete declaration.
11251
2757dd86
AC
112522002-04-04 Andrew Cagney <ac131313@redhat.com>
11253
11254 * sparc-tdep.c (sparc64_write_fp): Delete.
11255 (sparc_push_dummy_frame): Replace write_fp call with code to store
11256 the FP directly.
11257 (sparc_gdbarch_init): Do not initialize write_fp.
11258
c69255e1
KB
112592002-04-05 Kevin Buettner <kevinb@redhat.com>
11260
11261 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11262 clause.
11263
ae767bfb
JB
112642002-03-29 Jim Blandy <jimb@redhat.com>
11265
11266 * stack.c (get_selected_block): Add new argument `addr_in_block',
11267 used to return the exact code address we used to select the block,
11268 not just the block.
11269 * blockframe.c (get_frame_block, get_current_block): Same.
11270 * frame.h (get_frame_block, get_current_block,
11271 get_selected_block): Update declarations.
11272 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11273 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11274
84d2ac95
MS
112752002-04-05 Michael Snyder <msnyder@redhat.com>
11276
11277 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11278 warning message.
11279
596aa3bf
JB
112802002-04-05 J. Brobecker <brobecker@gnat.com>
11281
11282 * utils.c (xfullpath): New function.
11283 * defs.h (xfullpath): Add declaration.
11284 * source.c (openp): Use xfullpath in place of gdb_realpath to
11285 avoid resolving the basename part of filenames when the
11286 associated file is a symbolic link. This fixes a potential
11287 inconsistency between the filenames known to GDB and the
11288 filenames it prints in the annotations.
11289 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11290 to be able to match a filename with either the real filename, or
11291 the name of any symbolic link to this file.
11292 (lookup_partial_symtab): Ditto.
11293
c02f5703
MS
112942002-04-04 Michael Snyder <msnyder@redhat.com>
11295
11296 * breakpoint.c: Add support for hardware breakpoints in overlays.
11297 (overlay_events_enabled): New state variable.
11298 (insert_breakpoints): Use overlay_events_enabled to decide
11299 whether to attempt to set a breakpoint at the overlay load addr.
11300 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11301 (remove_breakpoint): Use overlay_events_enabled to decide
11302 whether breakpoints need to be removed from overlay load addr.
11303 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11304 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11305 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11306 disable_overlay_breakpoints): Update overlay_events_enabled.
11307
5fb290d7
DJ
113082002-04-04 Daniel Jacobowitz <drow@mvista.com>
11309
11310 * dwarf2read.c (struct function_range): New.
11311 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11312 (check_cu_functions): New.
11313 (read_file_scope): Initialize global function lists.
11314 Call dwarf_decode_line after processing children.
11315 (read_func_scope): Add to global function list.
11316 (dwarf_decode_lines): Call check_cu_functions everywhere
11317 record_line is called. Call record_line with a linenumber
11318 of 0 to mark sequence ends.
11319
7b3fabf0
ML
113202002-04-04 Michal Ludvig <mludvig@suse.cz>
11321
361d1df0 11322 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11323 change sync with glibc.
11324
bce58c09
JB
113252002-04-03 Jim Blandy <jimb@redhat.com>
11326
11327 * configure.in: Call AC_C_INLINE.
11328 * configure: Regenerated.
361d1df0 11329
2fccf04a
DJ
113302002-04-01 Daniel Jacobowitz <drow@mvista.com>
11331
11332 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11333 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11334
2d1bfe2e
MK
113352002-03-31 Mark Kettenis <kettenis@gnu.org>
11336
a5941fbf
MK
11337 * NEWS: Mention gcore support on FreeBSD/i386.
11338
a90cd31d
MK
11339 * fbsd-proc.c: New file.
11340 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11341 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11342
2d1bfe2e
MK
11343 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11344 while statement.
11345
9eb6e5a1
JB
113462002-03-29 Jim Blandy <jimb@redhat.com>
11347
11348 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11349 unescaped newlines in string literals, but newer ones don't. So
11350 escape them.
11351
f02df580
MS
113522002-03-26 Michael Snyder <msnyder@redhat.com>
11353 Andrew Cagney <cagney@redhat.com>
11354
361d1df0 11355 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11356 restore file to memory.
11357 * cli/cli-dump.h: New file.
11358 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11359 * NEWS: Mention new commands.
f02df580 11360
109f874e
MS
113612002-03-28 Michael Snyder <msnyder@redhat.com>
11362
11363 * symfile.c (symbol_file_add): Move test for null symbols to later.
11364
520f6ade
AC
113652002-03-27 Andrew Cagney <ac131313@redhat.com>
11366
11367 From veksler at il.ibm.com:
11368 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11369 the xstrduped original path.
11370 Fix PR gdb/417.
11371
d4654627
MS
113722002-03-27 Michael Snyder <msnyder@redhat.com>
11373
11374 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11375 * infcmd.c (_initialize_infcmd): Ditto.
11376 * language.c (_initialize_language): Ditto.
11377 * symfile.c (_initialize_symfile): Ditto.
11378 * top.c (_init_main): Ditto.
11379 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11380
6be8bc0c
EZ
113812002-03-27 Elena Zannoni <ezannoni@redhat.com>
11382
11383 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11384 vector registers handling.
11385 (skip_prologue): Handle new AltiVec instructions. Fill in new
11386 fields of frame data.
11387 (frame_get_saved_regs): Fill in information for AltiVec registers.
11388
12af6855
JB
113892002-03-27 Jim Blandy <jimb@redhat.com>
11390
11391 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11392 a function; leave this macro here to invoke that function.
11393 (symbol_init_mangled_name): Declaration for that function.
11394 * symtab.c (symbol_init_mangled_name): New function.
11395
dc672865
AC
113962002-03-27 Andrew Cagney <ac131313@redhat.com>
11397
11398 * valarith.c: Replace strerror with safe_strerror.
11399 * tracepoint.c: Ditto.
11400 * lin-lwp.c: Ditto.
11401 * go32-nat.c: Ditto.
11402 * inflow.c: Ditto.
11403 * gnu-nat.c: Ditto.
11404
d96429cd
AS
114052002-03-27 Andreas Schwab <schwab@suse.de>
11406
11407 * event-top.c (command_line_handler): Remove useless if.
11408
7e336ba1
AJ
114092002-03-27 Andreas Jaeger <aj@suse.de>
11410
11411 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11412 comment.
11413
de220d0f
ML
114142002-03-27 Michal Ludvig <mludvig@suse.cz>
11415
11416 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11417 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11418 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11419 (x86_64_linux_dr_get_status, supply_gregset),
11420 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11421 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11422 (x86_64_register_info_table): Add.
11423 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11424 (x86_64_register_raw_size, x86_64_register_virtual_type),
11425 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11426 general x86_64_register_info_table.
11427 (i386_gdbarch_init): gdbarch_register_bytes is now set
11428 dynamicaly during initialization.
11429 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11430 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11431
0e98d0a7
DJ
114322002-03-27 Daniel Jacobowitz <drow@mvista.com>
11433
11434 * gdbserver/server.c (main): Call target_signal_to_host_p
11435 and target_signal_to_host on signals received from the remote.
11436 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11437 target_signal_from_host on signals sent to the remote.
11438 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11439 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11440
3130066b
DJ
114412002-03-27 Daniel Jacobowitz <drow@mvista.com>
11442
11443 * signals/signals.c: Include "server.h" in gdbserver build.
11444 (target_signal_from_name): Don't use STREQ.
11445 (_initialize_signals): Likewise. Don't include function in
11446 gdbserver build.
11447
9aedf4f4
DJ
114482002-03-27 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * signals.c: Moved to...
11451 * signals/signals.c: Here.
7e336ba1 11452 * Makefile (signals.o): Update.
9aedf4f4 11453
3fa41cdb
JL
114542002-03-26 Jeff Law (law@redhat.com)
11455
11456 * somread.c (som_symtab_read): Remove some commented out code and
11457 updated related comments. Do not set the minimal symbol table to
11458 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11459 in a dynamic executable.
11460 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11461 where we are unable to find the minimal symbol for the given
11462 PC value.
11463
ee677e8d
MS
114642002-03-25 Jeff Law (law@redhat.com)
11465
11466 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11467
e76e1718
ML
114682002-03-25 Michal Ludvig <mludvig@suse.cz>
11469
11470 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11471
18a642a1
AC
114722002-03-23 Andrew Cagney <ac131313@redhat.com>
11473
11474 * command.h: Update copyright.
11475 (struct cmd_list_element): Replace definition with opaque
11476 declaration.
11477 (enum cmd_types): Document that it will eventually be moved to
11478 cli/cli-decode.h
11479 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11480 (MALLOCED_REPLACEMENT): Delete macro.
11481 * Makefile.in (cli_decode_h): Add $(command_h).
11482 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11483 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11484 * completer.c: Include "cli/cli-decode.h".
11485 * maint.c: Include "cli/cli-decode.h".
11486 * cli/cli-decode.h: Include "command.h".
11487 (enum command_class): Delete.
11488 (enum cmd_types): Comment out.
11489 (enum cmd_auto_boolean): Delete.
11490 (enum var_types): Delete.
11491
b2875cc0
AC
114922002-03-23 Andrew Cagney <ac131313@redhat.com>
11493
11494 * cli/cli-decode.c: Include "gdb_assert.h".
11495 (add_set_or_show_cmd): New static function.
11496 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11497 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11498 all fields, such as func, from the set command.
11499
3b45974e
AC
115002002-03-23 Andrew Cagney <ac131313@redhat.com>
11501
11502 * MAINTAINERS (sh-elf): Change warning flag to -w.
11503
823ca731
AC
115042002-03-23 Andrew Cagney <cagney@redhat.com>
11505
11506 * defs.h (error): Add printf format attribute.
11507 * thread-db.c (thread_from_lwp): Fix error format string.
11508 * stack.c (parse_frame_specification): Ditto.
11509 * cli/cli-decode.c (undef_cmd_error): Ditto.
11510 * scm-lang.c (scm_lookup_name): Ditto.
11511 * tracepoint.c (trace_error): Ditto.
11512 * remote-utils.c (usage): Ditto.
11513 * remote.c (compare_sections_command): Ditto.
11514 Fix PR gdb/328.
11515
0e101458
AC
115162002-03-22 Andrew Cagney <ac131313@redhat.com>
11517
11518 * gdbtypes.c (append_composite_type_field): New function.
11519 (init_composite_type): New function.
11520 * gdbtypes.h (append_composite_type_field): Declare.
11521 (init_composite_type): Ditto.
11522
8e0662df
EZ
115232002-03-22 Elena Zannoni <ezannoni@redhat.com>
11524
11525 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11526 function.
8e0662df
EZ
11527 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11528 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11529 structure returning convention for SYSV ABI case, but not
11530 for GNU/Linux, FreeBSD, or NetBSD.
11531
3121eff0
DJ
115322002-03-22 Daniel Jacobowitz <drow@mvista.com>
11533
11534 * symtab.h (lookup_block_symbol): Add mangled_name argument
11535 to prototype.
11536
11537 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11538 with new mangled_name argument.
11539 * linespec.c (decode_line_1): Likewise.
11540 * valops (value_of_this): Likewise.
11541 * symtab.c (lookup_transparent_type): Likewise.
11542 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11543 (lookup_symbol): If we are given a mangled name, pass it down
11544 to lookup_symbol_aux.
11545 (lookup_block_symbol): If we are given a mangled name to check
11546 against, only return symbols which match it.
11547
349b409f
CF
115482002-03-22 Christopher Faylor <cgf@redhat.com>
11549
11550 * win32-nat.c (child_create_inferior): Check for proper shell to use
11551 here, in case the user changes it on the fly.
11552 (_initialize_inftarg): Remove shell path considerations.
11553
2a873819
EZ
115542002-03-21 Elena Zannoni <ezannoni@redhat.com>
11555
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11557 for gdbarch_max_register_raw_size and max_register_virtual_size.
11558 Adjust copyright year.
11559
a1b9830c
DJ
115602002-03-21 Daniel Jacobowitz <drow@mvista.com>
11561
11562 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11563 in a function to cover the entire beginning of the function
11564 as well if it does not already.
11565
8b5790f2
TR
115662002-03-21 Tom Rix <trix@redhat.com>
11567
11568 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11569 (rs6000_ptrace64): Renamed from ptrace64.
11570
bdbe5747
MH
115712002-03-20 Martin M. Hunt <hunt@redhat.com>
11572
11573 * gdbserver/remote-utils.c (remote_open): Don't call
11574 getprotobyname, we're all using TCP here so just use
11575 IPPROTO_TCP.
7e336ba1 11576 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11577
115782002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 11579
bdbe5747
MH
11580 * regcache.c (_initialize_regcache): No need to call
11581 build_regcache() at this time; it gets called whenever
11582 the gdbarch changes.
11583
7781cd62
DB
115842002-03-20 David O'Brien <obrien@FreeBSD.org>
11585
11586 * sparc-nat.c: Include sys/param.h where possible.
11587
f65ca430
DJ
115882002-03-20 Daniel Jacobowitz <drow@mvista.com>
11589
11590 Fix PR gdb/422.
11591 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11592 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11593 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11594 complex types.
11595 * stabsread.c (rs6000_builtin_type): Likewise.
11596 (read_sun_floating_type): Likewise.
11597
0c867556
PS
115982002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11599
11600 * stabsread.c (read_member_functions): Remove skip code for duplicate
11601 constructor/destructor methods. Use standard parsing for these
11602 methods and just do not chain them to the list of methods after
11603 parsing.
11604
12b9c64f
AO
116052002-03-19 Alexandre Oliva <aoliva@redhat.com>
11606
11607 * coffread.c: Remove redundant static declarations. Replace
11608 occurrences of `PTR' with `void *'.
11609 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11610 * top.h (quit_cover): Likewise.
11611 * defs.h (catch_errors): Likewise.
11612
349c5d5f
AC
116132002-03-18 Andrew Cagney <ac131313@redhat.com>
11614
11615 * defs.h (XMALLOC): Define.
11616 * gdb-events.sh (XMALLOC): Delete macro.
11617 * gdb-events.c, gdb-events.h: Regenerate.
11618 * gdbarch.sh (XMALLOC): Delete macro.
11619 * gdbarch.c: Regenerate.
11620 * serial.c (XMALLOC): Delete macro.
11621 * ui-file.c (XMALLOC): Ditto.
11622 * ser-unix.h (XMALLOC): Ditto.
11623 * sh-tdep.c (XMALLOC): Ditto.
11624 * ui-out.c (XMALLOC): Ditto.
11625 * utils.c (XMALLOC): Ditto.
11626 * i386-tdep.c (XMALLOC): Ditto.
11627 * gdb-events.c (XMALLOC): Ditto.
11628 * d10v-tdep.c (XMALLOC): Ditto.
11629 * cli-out.c (XMALLOC): Ditto.
11630
11631 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11632 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11633 * ui-file.c, ui-out.c: Ditto.
11634
7d0766f3
AC
116352002-03-18 Andrew Cagney <ac131313@redhat.com>
11636
11637 * command.h (struct cmd_list_element): Add field context.
11638 (set_cmd_context, get_cmd_context): Declare.
11639 * cli/cli-decode.h: Ditto.
11640 * cli/cli-decode.c (get_cmd_context): New function.
11641 (set_cmd_context): New function.
11642 (add_cmd): Initialize context.
11643 Part of fixing PR gdb/145 and PR gdb/146.
11644
5913bcb0
AC
116452002-03-17 Andrew Cagney <ac131313@redhat.com>
11646
1868c04e
AC
11647 * cli/cli-decode.c (cmd_type): New function.
11648 * command.h (cmd_type): Declare.
11649 * infrun.c (set_schedlock_func): Call function cmd_type.
11650 * kod.c (kod_set_os): Call cmd_type.
11651 * cris-tdep.c (cris_version_update): Use function cmd_type.
11652 (cris_mode_update, cris_abi_update): Ditto.
11653
5913bcb0
AC
11654 * command.h: (execute_cmd_post_hook): Declare.
11655 (execute_cmd_pre_hook): Declare.
11656 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11657 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11658 functions. Execute pre/post hook while ensuring that afterwords
11659 hook_in is cleared.
11660 * top.c (execute_command): Use execute_cmd_post_hook, and
11661 execute_cmd_pre_hook to execute pre/post commands.
11662 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11663 hook_stop_stub.
11664 (hook_stop_stub): Call execute_cmd_pre_hook.
11665
b51450c9
AC
116662002-03-17 Andrew Cagney <ac131313@redhat.com>
11667
11668 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11669 set'' and this leads to a core dump. Move xstrdup of
11670 operating_system to after check that it is not NULL.
11671
f66c9f11
AC
116722002-03-17 Andrew Cagney <ac131313@redhat.com>
11673
8e694ecf
AC
11674 * kod.c (kod_set_os): Remove unnecessary check that
11675 ``command->type'' is set_cmd.
11676
f66c9f11
AC
11677 * valprint.c (set_input_radix): Use input_radix.
11678 (set_output_radix): Use output_radix.
11679 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11680 isn't reverted.
11681
9d01611c
AC
116822002-03-16 Andrew Cagney <ac131313@redhat.com>
11683
11684 * value.h (struct value): Delete field ``substring_addr''. Change
11685 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11686 force_core_addr_align and force_pointer_aligh.
11687
11688 * value.h (struct value): Fix typo in above change.
9d01611c 11689
4156bb53
PS
116902002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11691
11692 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11693 to fix internal_error from ``maintenance print architecture''.
11694
0e5e3ea6
PS
116952002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11696
11697 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11698 for gcc versions after gcc-2.8.1.
11699
9b013045
PS
117002002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11701
11702 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11703 for method resolution. Restore adjustment of ``this'' pointer after
11704 calling value_struct_elt, which was accidentally removed during the
11705 HP merge.
11706
376c9600
AC
117072002-03-15 Andrew Cagney <ac131313@redhat.com>
11708
11709 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11710 value_of_register.
11711 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11712 get_saved_register.
11713 * value.h (value_of_register): Update.
11714
a4db0f07
RH
117152002-03-14 Richard Henderson <rth@redhat.com>
11716
11717 * configure.in: Detect declaration for canonicalize_file_name.
11718 * utils.c (canonicalize_file_name): Declare, if needed.
11719 (gdb_realpath): Prefer realpath if available and usable.
11720 * config.in, configure: Rebuild.
11721
96383835
RH
117222002-03-14 Richard Henderson <rth@redhat.com>
11723
11724 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11725 a constant array bound.
11726
11727 * MAINTAINERS: Add myself to write-after-approval.
11728
75245b24
MS
117292002-03-14 Michael Snyder <msnyder@redhat.com>
11730
11731 * symfile.c (syms_from_objfile): Return immediately if no syms.
11732 (symbol_file_add): Return immediately if no syms.
11733 (find_sym_fns): Return immediately if no syms.
11734
e641a1ca
ML
117352002-03-13 Michal Ludvig <mludvig@suse.cz>
11736
11737 * gdbserver/remote-util.c (remote_open): Print remote-side's
11738 IP address when remote debugging over the network.
7e336ba1 11739
df08bfec
DB
117402002-03-12 David O'Brien <obrien@FreeBSD.org>
11741
11742 * config/sparc/fbsd.mh: Fix copyright.
11743 * config/sparc/fbsd.mt: Likewise.
11744
9a57864f
RE
117452002-03-11 Richard Earnshaw <rearnsha@arm.com>
11746
11747 * MAINTAINERS: Fix typo in name of gdb warnings option.
11748 (x86-64): Fix formating so that this can be parsed by awk.
11749
dd7bf85e
DJ
117502002-03-10 Daniel Jacobowitz <drow@mvista.com>
11751
11752 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11753 * defs.h: Include "gdb/signals.h".
11754 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11755
33a0a2ac
ML
117562002-03-10 Michal Ludvig <mludvig@suse.cz>
11757
11758 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11759 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11760 from x86-64-tdep.h
11761
dd824b04
DJ
117622002-03-10 Daniel Jacobowitz <drow@mvista.com>
11763 Don Howard <dhoward@redhat.com>
11764
11765 * mips-tdep.c (ST0_FR): Define.
11766 (mips2_fp_compat): New function, temporarily disabled.
11767 (mips_read_fp_register_single): New function.
11768 (mips_read_fp_register_double): New function.
11769 (mips_print_register): Use them.
11770 (do_fp_register_row): Likewise.
11771
6a41ff59
AC
117722002-03-09 Andrew Cagney <ac131313@redhat.com>
11773
11774 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11775 approval''.
11776
4ea09c10
PS
117772002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11778
11779 * stabsread.c (read_member_functions): Fix is_stub test for
11780 static member functions, improve comment.
11781
6ccc741d
RE
117822002-03-07 Richard Earnshaw <rearnsha@arm.com>
11783
11784 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11785 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11786 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11787 commands that set boolean values.
11788 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11789 (arm_rdi_resume): Always initialize PC.
11790 (arm_rdi_open): Don't use rslt as a boolean.
11791 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11792 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11793 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11794 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11795
438013df
AO
117962002-03-06 Alexandre Oliva <aoliva@redhat.com>
11797
11798 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11799 * configure: Rebuilt.
11800
70ed8774
SC
118012002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11802
11803 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11804 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11805
5ba2abeb
AC
118062002-03-06 Andrew Cagney <ac131313@redhat.com>
11807
11808 * cli/cli-decode.c (set_cmd_completer): New function.
11809 * command.h (set_cmd_completer): Declare.
11810 * cli/cli-decode.h (set_cmd_completer): Ditto.
11811
11812 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11813 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11814 * win32-nat.c (_initialize_inftarg): Ditto.
11815 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11816 * proc-api.c (_initialize_proc_api): Ditto.
11817 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11818 * source.c (_initialize_source): Ditto.
11819 * exec.c (_initialize_exec): Ditto.
11820 * solib.c (_initialize_solib): Ditto.
11821 * top.c (init_main): Ditto.
11822 * tracepoint.c (_initialize_tracepoint): Ditto.
11823 * symfile.c (_initialize_symfile): Ditto.
11824 * printcmd.c (_initialize_printcmd): Ditto.
11825 * infcmd.c (_initialize_infcmd): Ditto.
11826 * corefile.c (_initialize_core): Ditto.
11827
f779ca99
AC
118282002-03-05 Andrew Cagney <ac131313@redhat.com>
11829
11830 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11831
01a3934b
AC
118322002-03-05 Andrew Cagney <ac131313@redhat.com>
11833
11834 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11835
37057839
AC
118362002-03-05 Andrew Cagney <ac131313@redhat.com>
11837
11838 * NEWS: Update headings, 5.2 has branched.
11839
c6ecbae5
DJ
118402002-03-04 Daniel Jacobowitz <drow@mvista.com>
11841
11842 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11843 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11844 (register_addr, REGISTER_RAW_SIZE): Likewise.
11845 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11846 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11847
e9f30c21
ML
118482002-03-03 Michal Ludvig <mludvig@suse.cz>
11849
11850 * MAINTAINERS (x86-64): Add myself.
11851 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11852 changed value_ptr -> struct value *
11853
54394ac3
DB
118542002-03-01 David O'Brien <obrien@FreeBSD.org>
11855
11856 * configure.host (sparc64-*-freebsd): Add.
11857 * configure.tgt: Likewise.
11858 * config/sparc/fbsd.mh: New file.
11859 * config/sparc/fbsd.mt: Likewise.
11860 * config/sparc/nm-fbsd.h: Likewise.
11861 * config/sparc/tm-fbsd.h: Likewise.
11862
bfe95955
DJ
118632002-03-01 Daniel Jacobowitz <drow@mvista.com>
11864
11865 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11866 regformats/reg-s390x.dat.
11867
f33c6cbf
AC
118682002-03-01 Andrew Cagney <ac131313@redhat.com>
11869
11870 * utils.c: Add FIXME explaining true/false problem.
11871
5ecaa7dd
AC
118722002-02-28 Andrew Cagney <ac131313@redhat.com>
11873
11874 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11875
2a251cc2
MC
118762002-02-28 Michael Chastain <mec@shout.net>
11877
11878 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11879
6a8031a3 118802002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11881
11882 * gdbserver/linux-s390-low.c: New file.
11883 * regformats/reg-s390.dat: New file.
11884 * regformats/reg-s390x.dat: New file.
11885 * gdbserver/configure.srv: Add S/390.
11886 * gdbserver/Makefile.in: Add S/390.
11887 * configure.tgt: Enable gdbserver for S/390.
11888
ac469903
EZ
118892002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11890
11891 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11892 first line of the doc string for "info dos", except at the end of
11893 the sentence, since the short help stops at the first period.
11894
985cb1a3
JM
118952002-02-28 Jason Merrill <jason@redhat.com>
11896
11897 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11898
c570663e
FF
118992002-02-27 Fred Fish <fnf@redhat.com>
11900
11901 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11902 comment (dumy -> dummy).
11903
43630227
PS
119042002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11905
11906 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11907
b84911e8
RB
119082002-02-27 Rodney Brown <rbrown64@csc.com.au>
11909
11910 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11911
58caa3dc
DJ
119122002-02-27 Daniel Jacobowitz <drow@mvista.com>
11913
11914 * gdbserver/acconfig.h: New file.
11915 * gdbserver/i387-fp.c: New file.
11916 * gdbserver/i387-fp.h: New file.
11917 * gdbserver/linux-x86-64.c: New file.
11918 * regformats/reg-x86-64.dat: New file.
11919 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11920 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11921 * gdbserver/configure.in: Add support for regsets.
11922 * gdbserver/config.in: Regenerate.
11923 * gdbserver/configure: Regenerate.
11924 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11925 * gdbserver/linux-low.h: New file.
11926 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11927 for regsets.
11928 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11929 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11930 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11931 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11932 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11933 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11934 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11935 "i387-fp.h". Add PTRACE_GETREGS and friends.
11936 * gdbserver/regcache.c (supply_register): New function.
11937 (supply_register_by_name): New function.
11938 (collect_register): New function.
11939 (collect_register_by_name): New function.
11940
93652174
DJ
119412002-02-27 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11944 (config.status): Add configure.srv dependency.
11945 (server_h): Add config.h dependency.
11946
a02e4a61
DJ
119472002-02-27 Daniel Jacobowitz <drow@mvista.com>
11948
11949 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11950 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11951 * gdbserver/configure.srv: Change i386-*-linux* to use
11952 reg-i386-linux.o.
11953
ce0eebec
AC
119542002-02-26 Andrew Cagney <ac131313@redhat.com>
11955
11956 * x86-64-tdep.c: Re-indent. Update copyright date.
11957
82dbc5f7
AC
119582002-02-26 Andrew Cagney <ac131313@redhat.com>
11959
11960 From Michal Ludvig <mludvig@suse.cz>:
11961 * x86-64-tdep.c (value.h): Delete.
11962 (gdb_assert.h): Include.
11963 (x86_64_register_convert_to_virtual,
11964 x86_64_register_convert_to_raw ): Add check which lets only
11965 floating-point values to be converted.
11966 (value_push): Delete.
11967 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11968 (i386_gdbarch_init): Number of register_bytes fixed.
11969
e4621584
AC
119702002-02-26 Andrew Cagney <ac131313@redhat.com>
11971
11972 * MAINTAINERS: Add x86-64 target.
11973
81a9a963
AC
119742002-02-26 Andrew Cagney <ac131313@redhat.com>
11975
11976 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11977 * osfsolib.c (solib_map_sections): Ditto.
11978 * irix5-nat.c (solib_map_sections): Ditto.
11979 * corelow.c (gdb_check_format): Ditto.
11980 * symfile.c (symfile_bfd_open): Ditto.
11981 * solib.c (solib_map_sections): Ditto.
11982 Fix PR gdb/354.
7e336ba1 11983
0f017ab9
AC
119842002-02-26 Andrew Cagney <ac131313@redhat.com>
11985
11986 * remote.c (_initialize_remote): By default, disable ``e'' and
11987 ``E'' step out-of-range packets.
11988
75738c29
AS
119892002-02-26 Andreas Schwab <schwab@suse.de>
11990
11991 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11992 m68k_linux_frame_saved_pc.
11993 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11994 in_sigtramp.
11995 (SIGCONTEXT_PC_OFFSET): Remove.
11996 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11997 m68k_linux_sigtramp_saved_pc): New functions.
11998 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11999 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12000 (UCONTEXT_PC_OFFSET): Define.
12001 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12002 non-RT and RT signal trampolines.
12003
7e8ed687
RE
120042002-02-26 Richard Earnshaw <rearnsha@arm.com>
12005
12006 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12007 (TARGET_NBPG, STACK_END_ADDR): Delete
12008 (VARIABLES_INSIDE_BLOCK): Delete.
12009
6972bc8b
AC
120102002-02-25 Andrew Cagney <ac131313@redhat.com>
12011
12012 * utils.c (perror_with_name): Make string parameter constant.
12013 (print_sys_errmsg): Ditto.
12014 (query): Ditto.
12015 * defs.h (perror_with_name): Update.
12016 (print_sys_errmsg): Update.
12017 (query): Update.
12018
aa32f823
DJ
120192002-02-25 Daniel Jacobowitz <drow@mvista.com>
12020
12021 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12022 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12023
19caaa45
PS
120242002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12025
12026 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12027 if it already matches the current architecture from the exec file.
12028 Include arch-utils.h for gdbarch_info_init prototype.
12029 * Makefile.in (rs6000-nat.o): Update dependencies.
12030
d951901f
EZ
120312002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12032
12033 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12034 list of exported variables.
12035
7ea81414
DJ
120362002-02-24 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * gdbserver/configure.srv: New file.
12039 * gdbserver/configure.in: Use configure.srv instead
12040 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12041 from it.
12042 * gdbserver/configure: Regenerated.
12043 * gdbserver/terminal.h: New file.
12044 * gdbserver/Makefile.in: Update for configure changes. Remove
12045 more unneeded include paths.
12046
080fe24b
AC
120472002-02-24 Andrew Cagney <ac131313@redhat.com>
12048
12049 From wiz at danbala:
12050 * config/sparc/tm-sp64.h: Fix grammar and typos.
12051 Fix PR gdb/287.
12052
8605d56e
AC
120532002-02-24 Andrew Cagney <ac131313@redhat.com>
12054
12055 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
12056 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12057 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12058 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
12059 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12060 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12061 * s390-tdep.c: Ditto.
92362027
AC
12062 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12063 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12064 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12065 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12066 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12067 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12068 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12069 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12070 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12071 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 12072 Fix PR gdb/378.
7e336ba1 12073
8ed32cc0
AC
120742002-02-23 Andrew Cagney <ac131313@redhat.com>
12075
a3007b6f
AC
12076 * lin-thread.c: Delete file.
12077 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12078 to gdb_proc_service.h.
12079 * configure: Re-generate.
12080
50a9e2f1
AC
12081 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12082 * serial.c (serial_open): Delete check for "ocd".
12083 Fix PR gdb/349.
12084
8b6e7932
AC
12085 * Makefile.in (linux-thread.o): Delete target.
12086 * linux-thread.c: Delete file.
12087
d155c46b
AC
12088 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12089 renamed SH files to be consistent.
12090
8ed32cc0
AC
12091 * symtab.c (sort_search_symbols): Use xfree.
12092
0e18d038
RE
120932002-02-23 Richard Earnshaw <rearnsha@arm.com>
12094
12095 * arm-linux-tdep.c (arm_linux_init_abi): Register
12096 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12097 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12098 definition with undef, since we don't want the sysvr4 definition.
12099 (SKIP_TRAMPOLINE_CODE): Likewise.
12100
27aac7ff
AC
121012002-02-23 Andrew Cagney <ac131313@redhat.com>
12102
12103 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12104
12105 * configure.in: (AC_CHECK_FUNCS) Added test for
12106 canonicalize_file_name Regenerated.
12107 * config.in, configure: Regenerated.
12108 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12109 defined use canonicalize_file_name.
7e336ba1 12110
65a6e0ee
MC
121112002-02-23 Michael Chastain <mec@shout.net>
12112
12113 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12114
47b95330
AC
121152002-02-23 Andrew Cagney <ac131313@redhat.com>
12116
12117 * README: Remove references to cygnus.com.
12118 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12119 dot com'' form. Remove references to cygnus.com and sourceware.
12120
696f451b
AC
121212002-02-23 Andrew Cagney <ac131313@redhat.com>
12122
12123 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12124 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12125 1003.1-2001 no longer allows "head -1".
12126 * gdb/Makefile.in (version.c): Likewise.
12127 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12128 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12129 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12130
bbaca940
AC
121312002-02-23 Andrew Cagney <ac131313@redhat.com>
12132
12133 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12134 * command.h (cmd_cfunc_eq): Declare.
12135 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12136
12137 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12138 ``struct cmd_list_element *''.
12139 * cli/cli-cmds.c (is_complete_command): Update. Use
12140 cmd_cfunc_eq.
12141 * top.c (execute_command): Pass the command to
12142 is_complete_command.
12143 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12144
b8b8b047
AC
121452002-02-23 Andrew Cagney <ac131313@redhat.com>
12146
12147 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12148 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12149 architecture defines.
12150 * s390-tdep.c (s390_gdbarch_init): Likewise.
12151
19d3fc80
RE
121522002-02-23 Richard Earnshaw <rearnsha@arm.com>
12153
12154 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12155 (arm_linux_push_arguments): Likewise.
12156 (arm_linux_init_abi): Register them. Also register linux-specific
12157 call_dummy_words.
12158 (find_minsym_and_objfile): Use strcmp, not STREQ.
12159 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12160 (arm_linux_call_dummy_words): Delete declaration.
12161 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12162 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12163 declarations.
12164 (LOWEST_PC): Delete.
12165
3ab13650
PS
121662002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12167
12168 * maint.c (print_section_info): Do not prepend `0x' to filepos
12169 output, it will be handled by local_hex_string_custom.
12170
19d3fc80 121712002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
12172
12173 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12174 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12175 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12176
d85a5daf
JB
121772002-02-22 Jim Blandy <jimb@redhat.com>
12178
12179 Indicate that the bcache functions don't change the strings
12180 they're passed.
12181 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12182 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12183
eeb25b8a
PM
121842002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12185
12186 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12187
6badb179
CF
121882002-02-21 Christopher Faylor <cgf@redhat.com>
12189
12190 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12191 find the complete path to a loaded DLL.
12192
e8717518
FF
121932002-02-21 Fred Fish <fnf@redhat.com>
12194
12195 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12196 that marks the end of the range of a function, enter a line number
12197 entry that has a line number of zero and a PC offset that matches
12198 the end of the function. This starts a range of PC's for which no
12199 line number information is known.
12200 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12201 PC's for which no line number info is found (line number is zero)
12202 then we didn't find any valid line information.
12203 * symtab.h: Document use of zero line number entry.
12204
9abe5450
EZ
122052002-02-21 Elena Zannoni <ezannoni@redhat.com>
12206
12207 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12208 (have_ptrace_getvrregs): Define for run time checks.
12209 (gdb_vrregset_t): New type for Altivec register handling.
12210 (fetch_register, store_register): Fetch/store altivec register
12211 when needed.
12212 (fetch_altivec_register, store_altivec_register): New functions.
12213 (supply_vrregset, fill_vrregset): New functions.
12214 (fetch_altivec_registers, store_altivec_registers): New functions.
12215 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12216 registers as well.
12217
aaa38bb5
AJ
122182002-02-21 Jiri Smid <smid@suse.cz>
12219
12220 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12221
b34db576
RE
122222002-02-21 Richard Earnshaw <rearnsha@arm.com>
12223
12224 * Makefile.in (armnbsd-nat.o): Update dependencies.
12225 * armnbsd-nat.c (supply_gregset): New function. Common code to
12226 supply the integer register set.
12227 (supply_fparegset): New function. Similar for FPA registers.
12228 (fetch_regs, fetch_fp_regs): Use them.
12229 (fetch_core_registers): Likewise.
12230 (fetch_elfcore_registers): New function.
12231 (arm_netbsd_elfcore_fns): New core-file type specification.
12232 (_initialize_arm_netbsd_nat): Register it.
12233
3e56fc4b
RE
122342002-02-21 Richard Earnshaw <rearnsha@arm.com>
12235
12236 * armnbsd-nat.c: Include gdbcore.h.
12237 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12238 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12239 'void' to declaration, to shut up ARI.
12240 (fetch_core_registers): Make static. Rewrite using supply_register.
12241 (arm_netbsd_core_fns): New core-file type specification.
12242 (_initialize_arm_netbsd_nat): New function.
12243
097f6b0b
CF
122442002-02-21 Christopher Faylor <cgf@redhat.com>
12245
12246 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12247 value.
12248
c914e0cc
CF
122492002-02-20 Christopher Faylor <cgf@redhat.com>
12250
12251 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12252 fails.
12253
385fa495
DJ
122542002-02-20 Daniel Jacobowitz <drow@mvista.com>
12255
12256 * jv-exp.y (parse_number): Change type of implicit longs
12257 to builtin_type_uint64.
12258
e5f1222d
DJ
122592002-02-20 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12262 to be an integer instead of a `union wait'.
12263
75c9abc6
DJ
122642002-02-20 Daniel Jacobowitz <drow@mvista.com>
12265
12266 * mips-linux-nat.c: Call the operating system GNU/Linux.
12267 * mips-linux-tdep.c: Likewise.
12268 * mips-tdep.c: Likewise.
12269
551792a5
DJ
122702002-02-20 Daniel Jacobowitz <drow@mvista.com>
12271
12272 Fix PR gdb/265.
12273 * jv-exp.y (parse_number): Handle 64-bit integers.
12274
ee6e2b82
DJ
122752002-02-20 Daniel Jacobowitz <drow@mvista.com>
12276
12277 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12278 AC_STDC_HEADERS to AC_HEADER_STDC.
12279 * gdbserver/configure: Regenerated.
12280
a48442a0
RE
122812002-02-20 Richard Earnshaw <rearnsha@arm.com>
12282
12283 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12284 is defined.
12285 * sparc-tdep.c (get_longjmp_target): Likewise.
12286
fe419ffc
RE
122872002-02-20 Richard Earnshaw <rearnsha@arm.com>
12288
12289 * News: Add news about ARM and Multi-arch. Mention the new target
12290 arm*-*-netbsd*.
12291
5832ed7e
JB
122922002-02-19 Jim Blandy <jimb@redhat.com>
12293
12294 * stabsread.c (error_type_complaint): Improve error message.
12295
84563040
DJ
122962002-02-19 Daniel Jacobowitz <drow@mvista.com>
12297
12298 * gdbserver/README: Update documentation.
12299 * gdbserver/configure.in: Update configury to match documentation.
12300 * gdbserver/Makefile.in: Likewise.
12301 * gdbserver/configure: Regenerated.
12302 * gdbserver/aclocal.m4: New file, generated by aclocal.
12303 * gdbserver/config.in: New file, generated by autoheader.
12304
375fd65b
RE
123052002-02-19 Richard Earnshaw <rearnsha@arm.com>
12306
12307 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12308 armnbsd-nat.c.
12309
08216dd7
RE
123102002-02-19 Richard Earnshaw <rearnsha@arm.com>
12311
12312 * arm-tdep.h (enum arm_float_model): New enum.
12313 (struct gdbarch_tdep): Add fp_model.
12314 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12315 up floating-point conversions until we know the floating-point model
12316 in use by the inferior. Don't complain about being unable to
12317 determine the ABI of the inferior when we don't have one.
12318 (arm_extract_return_value): Support different floating-point models.
12319 (arm_store_return_value): Likewise.
aaa38bb5 12320 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12321 ARM_FLOAT_SOFT.
12322 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12323
65d6d66a
PS
123242002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12325
12326 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12327 of ``current_gdbarch''.
12328
47221191
RE
123292002-02-19 Richard Earnshaw <rearnsha@arm.com>
12330
12331 * armnbsd-nat.c : ANSIfy all function declarations.
12332 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12333 (fetch_inferior_registers): Re-implement in terms of above.
12334 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12335 (store_inferior_registers): Re-implement in terms of above.
12336
fdf39c9a
RE
123372002-02-19 Richard Earnshaw <rearnsha@arm.com>
12338
aaa38bb5 12339 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12340 kernel.
12341 * arm-linux-tdep.c: Likewise.
12342 * config/arm/tm-linux.h: Likewise.
12343
93247f88
RE
123442002-02-19 Richard Earnshaw <rearnsha@arm.com>
12345
12346 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12347 * config/arm/nbsd.mt (TM_FILE): Delete.
12348 * config/arm/tm-nbsd.h: Delete.
12349
d7b486e7
RE
123502002-02-19 Richard Earnshaw <rearnsha@arm.com>
12351
12352 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12353 Initialize CALL_DUMMY_LENGTH.
12354
41d39a95
RE
123552002-02-19 Richard Earnshaw <rearnsha@arm.com>
12356
12357 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12358 function.
12359 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12360 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12361 defines one thing and that is incorrect for this port.
12362 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12363
e1195560
PM
123642002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12365
12366 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12367
c1748f97
PM
123682002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12369
12370 * win32-nat.c (display_selector): New function. Displays information
12371 about the information returned by GetThreadSelectorEntry API function.
12372 (display_selectors): New function. Displays the infomation of
12373 the selector given as argument, or of CS, DS ans FS selectors
12374 if no argument is given.
12375 ( _initialize_inftarg): Add "w32" as info prefix command.
12376 Add "info w32 selector" as command calling display_selectors.
12377
e41e6bbf
PM
123782002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12379
12380 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12381 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12382 if not defined.
12383
0d3a9f48
RE
123842002-02-18 Richard Earnshaw <rearnsha@arm.com>
12385
12386 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12387
3fb4b924
RE
123882002-02-18 Richard Earnshaw <rearnsha@arm.com>
12389
12390 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12391 (arm_fix_call_dummy): Call it.
12392 (arm_call_dummy_breakpoint_offset): Delete.
12393 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12394 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12395
7f55af32
AC
123962002-02-18 Andrew Cagney <ac131313@redhat.com>
12397
12398 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12399 Default to func_frame_chain_valid.
12400 * gdbarch.h, gdbarch.c: Re-generate.
12401 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12402
05f13b9c
EZ
124032002-02-18 Elena Zannoni <ezannoni@redhat.com>
12404
12405 * ppc-linux-nat.c: Update copyright.
12406 (fetch_register, store_register): Add tid parameter, don't compute
12407 tid here.
12408 (fetch_ppc_registers, store_ppc_registers): Add tid
12409 parameter. Pass it along to callees.
12410 (fetch_inferior_registers, store_inferior_registers): Compute tid
12411 here, and pass it to calleed functions.
12412 (fill_gregset, supply_fpregset): Clean up formatting.
12413
d7afb4c9
RE
124142002-02-18 Richard Earnshaw <rearnsha@arm.com>
12415
12416 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12417 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12418
9df628e0
RE
124192002-02-18 Richard Earnshaw <rearnsha@arm.com>
12420
12421 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12422 * gdbarch.c gdbarch.h: Regenerate.
12423 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12424 function.
12425 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12426 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12427 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12428
12429 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12430 * arm-tdep.c (arm_get_longjmp_target): New function.
12431 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12432 this to a positive value register arm_get_longjmp_target as the
12433 longjmp handler.
12434 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12435 (arm_linux_init_abi): Set up longjmp description in tdep.
12436 * armnbsd-nat.c (get_longjmp_target): Delete.
12437 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12438 description in tdep.
12439 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12440 (get_longjmp_target): Delete declaration.
12441 (GET_LONGJMP_TARGET): Delete.
12442 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12443 (GET_LONGJMP_TARGET): Delete.
12444
57bc8964
KB
124452002-02-17 Kevin Buettner <kevinb@redhat.com>
12446
12447 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12448 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12449 of ``current_gdbarch''.
12450
83d31a92
TT
124512002-02-17 Tom Tromey <tromey@redhat.com>
12452
12453 * cli/cli-cmds.c (compare_strings): New function.
12454 (complete_command): Only print each unique item once.
12455 * completer.h (complete_line): Declare.
12456 * completer.c (complete_line): New function.
12457 (line_completion_function): Use it.
12458
17ef5d92
AC
124592002-02-16 Andrew Cagney <ac131313@redhat.com>
12460
12461 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12462 * gdbarch.h, gdbarch.c: Re-generate.
12463
491b8946
DJ
124642002-02-16 Daniel Jacobowitz <drow@mvista.com>
12465
12466 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12467
124682002-02-16 Daniel Jacobowitz <drow@mvista.com>
12469
12470 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12471 * valops.c (value_arg_coerce): Don't take the address of a reference
12472 to convert an argument to a reference.
12473
dfe7f3ac
CF
124742002-02-15 Christopher Faylor <cgf@redhat.com>
12475
12476 * win32-nat.c (get_image_name): New function.
12477 (handle_load_dll): Use get_image_name function.
12478 (get_child_debug_event): Avoid registering debug events until possibly
12479 execed process is started.
12480 (child_create_inferior): Allow invocation via shell so that command
12481 line redirection, etc. works ok.
12482 (_initialize_inftarg): Add new command: "set shell" to control whether
12483 a shell is used to start a process.
12484
1d33e73a
DJ
124852002-02-15 Daniel Jacobowitz <drow@mvista.com>
12486
12487 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12488 instead of find_register_by_number.
12489 (cannot_store_register): Likewise.
12490
48cd0caa
PM
124912002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12492
aaa38bb5 12493 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12494 fprintf_unfiltered (gdb_stderr, ...).
12495
8656e7d8
DJ
124962002-02-15 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * gdbserver/gdbserver.1: Document --attach.
12499
66e810cd
RE
125002002-02-15 Richard Earnshaw <rearnsha@arm.com>
12501
12502 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12503 descriptions.
12504 * arm-tdep.c (arm_default_arm_le_breakpoint)
12505 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12506 (arm_default_thumb_be_breakpoint): New. Initialize them from
12507 traditional breakpoint defines.
12508 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12509 (arm_gdbarch_init): Initialize new breakpoint variables.
12510 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12511 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12512 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12513 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12514 code out to ...
12515 (arm_netbsd_init_abi_common): ... here; new function.
12516 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12517 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12518 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12519 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12520
97e03143
RE
125212002-02-15 Richard Earnshaw <rearnsha@arm.com>
12522
12523 * arm-tdep.h (enum arm_abi): New enum.
12524 (struct gdbarch_tdep): New structure.
12525 (LOWEST_PC): Provide a default.
12526 (arm_gdbarch_register_os_abi): Declare new function.
12527 * arm-tdep.c (arm_abi_names): New array.
12528 (process_note_abi_tag_sections): New function.
12529 (get_elfosabi): New function.
12530 (arm_gdbarch_register_os_abi): New function.
12531 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12532 support for that ABI has been built in, then call the appropriate
12533 configuration routine. Use gdbarch_num_regs() to get the number
12534 of registers.
12535 (arm_dump_tdep): New function.
12536 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12537 place-holder functions.
12538 (_initialize_arm_tdep): Register them.
12539 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12540
12541 * armnbsd-tdep.c: New file.
12542 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12543 * config/arm/nbsd.mt (TDEPFILES): Add it.
12544 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12545
12546 * armnbsd-nat.c: Include regcache.h.
12547 * Makefile.in (armnbsd-nat.o): Update dependency list.
12548
12549 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12550
ad68be46
DJ
125512002-02-14 Daniel Jacobowitz <drow@mvista.com>
12552
12553 * gdbserver/Makefile.in: Fix typos in target rules.
12554
003d6d1d
DJ
125552002-02-14 Daniel Jacobowitz <drow@mvista.com>
12556
aaa38bb5 12557 Fix part of PR gdb/267.
003d6d1d
DJ
12558 * linespec.c (find_methods): Handle constructors specially for now.
12559
6b230f1b
CV
125602002-02-14 Corinna Vinschen <vinschen@redhat.com>
12561
12562 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12563 handling.
12564 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12565 standard_coerce_float_to_double().
12566
1ea98d12
CF
125672002-02-14 Christopher Faylor <cgf@redhat.com>
12568
12569 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12570 GDBINIT_FILENAME.
12571
dd47e6fd
EZ
125722002-02-14 Elena Zannoni <ezannoni@redhat.com>
12573
12574 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12575 find_variant_by_name, because it confuses the multiarch
12576 framework. Return NULL if there isn't an architecture with the
12577 user supplied name, instead of forcing a different one without
12578 recording the change with the multiarch machinery.
12579 (find_variant_by_name): Delete.
12580
d7e39b9e
PS
125812002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12582
12583 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12584 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12585
76e42a4f
MH
125862002-02-13 Martin M. Hunt <hunt@redhat.com>
12587
aaa38bb5 12588 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12589 print_frame_info_listing_hook, set current_source_symtab.
12590
0a30fbc4
DJ
125912002-02-14 Daniel Jacobowitz <drow@mvista.com>
12592
12593 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12594 and remove unused $(INCLUDE_DIR).
12595 Add regcache.c to OBS.
12596 Add generated register protocol files to clean target.
12597 Update dependencies for new objects, obsolete old target code.
12598
12599 * gdbserver/linux-low.c: Remove all platform-specific code to
12600 new files. Remove various dead code. Update to use regcache
12601 functionality.
12602 * gdbserver/remote-utils.c (fromhex): Add return statement
12603 to quiet warning.
12604 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12605 constant.
12606 (input_interrupt): Add integer parameter to match prototype
12607 of a signal handler.
12608 (outreg): Use register_data ().
12609 (prepare_resume_reply): Use gdbserver_expedite_regs.
12610 * gdbserver/server.c (main): Dynamically allocate own_buf because
12611 PBUFSIZ is no longer constant. Use registers_to_string () and
12612 registers_from_string ().
12613 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12614 for error (), fatal (), and warning (). Update definition of
12615 PBUFSIZ to use regcache functionality. Add include guard.
12616 * gdbserver/utils.c (fatal): Add missing ``const''.
12617 (warning): New function.
12618
12619 * regformats/regdat.sh: Include "regcache.h" in generated files.
12620 Provide init_registers () function.
12621 * regformats/regdef.h: Add prototype for set_register_cache ().
12622 Add include guard.
12623
12624 * gdbserver/linux-arm-low.c: New file.
12625 * gdbserver/linux-i386-low.c: New file.
12626 * gdbserver/linux-ia64-low.c: New file.
12627 * gdbserver/linux-m68k-low.c: New file.
12628 * gdbserver/linux-mips-low.c: New file.
12629 * gdbserver/linux-ppc-low.c: New file.
12630 * gdbserver/linux-sh-low.c: New file.
12631
12632 * gdbserver/regcache.c: New file.
12633 * gdbserver/regcache.h: New file.
12634
12635 * gdbserver/low-linux.c: Removed obsolete file.
12636
4cc841d0
DJ
126372002-02-14 Daniel Jacobowitz <drow@mvista.com>
12638
12639 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12640 * config/i386/linux.mt: Likewise.
12641 * config/ia64/linux.mt: Likewise.
12642 * config/m68k/linux.mh: Likewise.
12643 * config/powerpc/linux.mh: Likewise.
12644 * config/mips/linux.mt: Likewise.
12645
12646 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12647
12648 * config/i386/i386lynx.mh: Mark gdbserver variables
12649 as (currently) obsolete for this target.
12650 * config/i386/nbsd.mt: Likewise.
12651 * config/i386/nbsdelf.mt: Likewise.
12652 * config/m32r/m32r.mt: Likewise.
12653 * config/m68k/m68klynx.mh: Likewise.
12654 * config/m68k/nbsd.mt: Likewise.
12655 * config/m68k/sun3os4.mh: Likewise.
12656 * config/mips/vr5000.mt: Likewise.
12657 * config/ns32k/nbsd.mt: Likewise.
12658 * config/pa/hppabsd.mh: Likewise.
12659 * config/pa/hppaosf.mh: Likewise.
12660 * config/powerpc/nbsd.mt: Likewise.
12661 * config/rs6000/rs6000lynx.mh: Likewise.
12662 * config/s390/s390.mt: Likewise.
12663 * config/s390/s390x.mt: Likewise.
12664 * config/sparc/sparclynx.mh: Likewise.
12665 * config/sparc/sun4os4.mh: Likewise.
12666 * config/i386/x86-64linux.mt: Likewise.
12667 * config/sparc/linux.mh: Likewise.
12668
a85f51e7
DJ
126692002-02-14 Daniel Jacobowitz <drow@mvista.com>
12670
12671 * configure.tgt: Configure gdbserver only for known working
12672 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12673 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12674 SUBDIRS if it is configured. Update comment for ${nativefile}.
12675 * configure: Regenerated.
12676
65554fef
MS
126772002-02-13 Michael Snyder <msnyder@redhat.com>
12678
670a52db
MS
12679 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12680
6dbdc4a3
MS
12681 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12682 (default_gcore_mach): Just return 0, work around a problem in bfd.
12683 (default_gcore_target): OK to return NULL if exec_bfd is null.
12684 (make_mem_sec): Use a cast, avoid a warning.
12685
12686 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12687 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12688 sizeof (host pointer) != sizeof (target pointer)).
12689 (procfs_make_note_section): Avoid overflow in psargs string.
12690
aaa38bb5 12691 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12692 implementation return an error.
12693
126942002-02-13 Rodney Brown <rbrown64@csc.com.au>
12695
12696 * procfs.c (procfs_make_note_section): Provide a default definition
12697 (for alpha-dec-osf4.0f). Fix typos.
12698
1e4d76e7
EZ
126992002-02-13 Elena Zannoni <ezannoni@redhat.com>
12700
12701 * linux-proc.c: Add include of regcache.h.
12702 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12703
b6d1a1d5
AC
127042002-02-13 Andrew Cagney <ac131313@redhat.com>
12705
12706 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12707 * memattr.c (create_mem_region): Disallow useless empty region.
12708 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12709 non-overlapping.
b6d1a1d5 12710
6c6ea35e
MC
127112002-02-13 Michael Chastain <mec@shout.net>
12712
12713 * defs.h: Kill CONST_PTR.
12714 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12715 * c-lang.c (c_builtin_types): Likewise.
12716 * ch-lang.c (ch_builtin_types): Likewise.
12717 * f-lang.c (f_builtin_types): Likewise.
12718 * language.c (unknown_builtin_types): Likewise.
12719 * m2-lang.c (m2_builtin_types): Likewise.
12720 * p-lang.c (pascal_builtin_types): Likewise.
12721 * scm-lang.c (c_builtin_types): Likewise.
12722
3e0b0f48
KS
127232002-02-13 Keith Seitz <keiths@redhat.com>
12724
12725 * arm-tdep.h (arm_get_next_pc): Add declaration.
12726
67255d04
RE
127272002-02-13 Richard Earnshaw <rearnsha@arm.com>
12728
12729 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12730 with other related struct-returning functions.
12731 (arm_extract_struct_value_address): New function.
12732 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12733 initialize float_format, double_format and long_double_format as
12734 appropriate to the endianness of the target.
12735 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12736 (arm_use_struct_convention): Delete declaration.
12737 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12738
079777f6
KS
127392002-02-13 Keith Seitz <keiths@redhat.com>
12740
12741 * defs.h (core_addr_to_string_nz): New function.
12742
34588f23
MK
127432002-02-13 Mark Kettenis <kettenis@gnu.org>
12744
12745 Apply missing bits of 2002-01-15 patch.
12746 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12747 (fill_fpregset): Use i387_fill_fsave.
12748
49b563f9
KS
127492002-02-12 Keith Seitz <keiths@redhat.com>
12750
49b563f9
KS
12751 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12752 (core_addr_to_string_nz): New function.
12753
aeb98c60
RE
127542002-02-11 Richard Earnshaw <rearnsha@arm.com>
12755
12756 * arm-linux-nat.c: Really include arm-tdep.h.
12757 * config/arm/tm-linux.h (struct type, struct value): Declare.
12758
65554fef
MS
127592002-02-11 Michael Snyder <msnyder@redhat.com>
12760
12761 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12762 (gcore section): Ifdef for Solaris and Unixware only.
12763 (procfs_do_thread_registers): Unixware needs one lwpstatus
12764 per thread (not one prstatus or pstatus).
12765 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12766 not over all gdb threads. For unixware, call elfcore_write_pstatus
12767 once before iterating over threads.
12768
34e8f22d
RE
127692002-02-11 Richard Earnshaw <rearnsha@arm.com>
12770
12771 * arm-tdep.h: New file.
12772 * arm-tdep.c: Include arm-tdep.h.
12773 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12774 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12775 (arm_print_float_info, arm_register_type, convert_to_extended)
12776 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12777 (arm_extract_return_value, arm_register_name): Make static.
12778 (arm_software_single_step): Similarly. Fix types in declaration.
12779 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12780 (arm_store_return_value, arm_store_struct_return): New functions.
12781 (arm_gdbarch_init): Register the above functions. Also register
12782 call_dummy_start_offset, sizeof_call_dummy_words,
12783 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12784 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12785 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12786 prologue_cache.saved_regs here, rather than ...
12787 (_initialize_arm_tdep): ... here.
12788 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12789 declarations.
12790 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12791 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12792 (arm_print_float_info, arm_register_type, convert_to_extended)
12793 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12794 (arm_extract_return_value, arm_register_name): Delete declarations.
12795 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12796 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12797 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12798 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12799 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12800 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12801 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12802 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12803 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12804 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12805 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12806 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12807 interface.
12808 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12809 * remote-rdi.c remote-rdp.c: Likewise.
12810 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12811 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12812 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12813 definition.
12814
12815 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12816 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12817 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12818 from non-ARM_ prefixed definitions.
12819 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12820 all uses of above.
12821 * remote-rdi.c remote-rdp.c: Likewise.
12822 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12823
148754e5
RE
128242002-02-11 Richard Earnshaw <rearnsha@arm.com>
12825
12826 * arm-tdep.c (arm_frameless_function_invocation)
12827 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12828 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12829 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12830 (arm_pop_frame, arm_get_next_pc): Make static.
12831 (arm_gdbarch_init): Register above in gdbarch structure.
12832 (arm_read_fp): Renamed from arm_target_read_fp.
12833 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12834 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12835 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12836 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12837 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12838 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12839 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12840 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12841 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12842 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12843 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12844
434d2d4f
DJ
128452002-02-10 Daniel Jacobowitz <drow@mvista.com>
12846
12847 * symtab.c (compare_search_syms): New function.
12848 (sort_search_symbols): New function.
12849 (search_symbols): Sort symbols after searching rather than
12850 before.
12851
55241689
AC
128522002-02-10 Andrew Cagney <ac131313@redhat.com>
12853
12854 * NEWS: Linux -> GNU/Linux.
12855
028c194b
AC
128562002-02-10 Andrew Cagney <ac131313@redhat.com>
12857
12858 * gdbarch.sh: For for level one methods, disallow a definition
12859 when partially multi-arched. Add comments explaining rationale.
12860 * gdbarch.h: Re-generate.
12861
6acf50cd
AC
128622002-02-10 Andrew Cagney <ac131313@redhat.com>
12863
12864 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12865 multi-arch partial.
aaa38bb5 12866
50248794
AC
128672002-02-10 Andrew Cagney <ac131313@redhat.com>
12868
12869 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12870 field. Use diff -u.
12871 * gdbarch.c: Re-generate.
12872
c30e0066
AC
128732002-02-10 Andrew Cagney <ac131313@redhat.com>
12874
9b56c5f3 12875 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12876 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12877 partial.
12878
6e6d6484
AC
128792002-02-10 Andrew Cagney <ac131313@redhat.com>
12880
12881 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12882 multi-arch partial.
12883 (PUSH_ARGUMENTS): Switch to using predefault.
12884 * gdbarch.c: Regenerate.
12885
c203844d
AC
128862002-02-10 Andrew Cagney <ac131313@redhat.com>
12887
12888 * valops.c (PUSH_ARGUMENTS): Delete definition.
12889 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12890 partial. Default to default_push_arguments.
12891 * gdbarch.h, gdbarch.c: Regenerate.
12892
b5a2688f
AC
128932002-02-09 Andrew Cagney <ac131313@redhat.com>
12894
12895 * defs.h (throw_exception): Rename return_to_top_level. Update
12896 comments.
12897 * utils.c (error_stream, internal_verror, quit): Ditto.
12898 * top.c (throw_exception, catcher): Ditto.
12899 * sparclet-rom.c (sparclet_load): Ditto.
12900 * remote.c (interrupt_query, minitelnet): Ditto.
12901 * remote-sds.c (interrupt_query): Ditto.
12902 * remote-mips.c (mips_error, mips_kill): Ditto.
12903 * ocd.c (interrupt_query): Ditto.
12904 * monitor.c (monitor_interrupt_query): Ditto.
12905 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12906 * target.h: Update comment.
aaa38bb5 12907
b5a2688f 12908 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12909
2fa5c1e0
AC
129102002-02-09 Andrew Cagney <ac131313@redhat.com>
12911
12912 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12913 default_double_format.
12914 * gdbarch.h, gdbarch.c: Re-generate.
12915 * findvar.c (floatformat_unknown): Delete variable definition.
12916 * doublest.h (floatformat_unknown): Delete variable declaration.
12917
da966255
JB
129182002-02-09 Jim Blandy <jimb@redhat.com>
12919
12920 * stabsread.c (read_type): Add code to parse Sun's syntax for
12921 prototyped function types.
12922
123a4891
AC
129232002-02-09 Andrew Cagney <ac131313@redhat.com>
12924
12925 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12926 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12927
fb39c8f3
PS
129282002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12929
12930 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12931 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12932 now _initialize_xcoffsolib gets called again and overrides the
12933 commands from solib.c in a native configuration.
12934
0b87a11d
MK
129352002-02-09 Mark Kettenis <kettenis@gnu.org>
12936
12937 * doublest.c (store_typed_floating): Don't try to return a value.
12938 Fixes PR gdb/290.
12939
bdc2fc72
JB
129402002-02-08 Jim Blandy <jimb@redhat.com>
12941
12942 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12943 is prototyped and has no arguments, print its argument list as
12944 `(void)'.
12945
da69bbcf
CD
129462002-02-08 Chris Demetriou <cgd@broadcom.com>
12947
12948 * MAINTAINERS (write-after-approval): Add myself.
12949 (paper-trail): I've escaped!
aaa38bb5 12950
b69571f5
CF
129512002-02-08 Christopher Faylor <cgf@redhat.com>
12952
12953 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12954 changes.
12955 (_initialize_check_for_gdb_ini): Ditto.
12956
f6871398
MH
129572002-02-08 Martin M. Hunt <hunt@redhat.com>
12958
12959 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12960 xaprintf -> xasprintf.
12961
4e52d31c
PM
129622002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12963
12964 * win32-nat.c: Remove use of printf and sprintf functions.
12965
39bbf761
RE
129662002-02-08 Richard Earnshaw <rearnsha@arm.com>
12967
12968 * arm-tdep.c (arm_frame_chain_valid): Make static.
12969 (arm_push_arguments): Likewise.
12970 (arm_gdbarch_init): New function.
12971 (_initialize_arm_tdep): Call it.
12972 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12973 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12974 (FRAME_CHAIN_VALID): Delete.
12975 (arm_frame_chain_valid): Delete declaration.
12976 (PUSH_ARGUMENTS): Delete.
12977 (arm_push_arguments): Delete declaration.
12978 (CALL_DUMMY_P): Delete.
12979
9c9532c9
CV
129802002-02-08 Andrew Cagney <ac131313@redhat.com>
12981 Corinna Vinschen <vinschen@redhat.com>
12982
12983 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12984 on builtin float types.
12985
4e8f7a8b
DJ
129862002-02-08 Daniel Jacobowitz <drow@mvista.com>
12987
12988 * utils.c: Include <curses.h> before "bfd.h".
12989 * tui/tui-hooks.c: Likewise.
12990 * tui/tui.c: Likewise.
12991 * tui/tuiCommand.c: Likewise.
12992 * tui/tuiData.c: Likewise.
12993 * tui/tuiDataWin.c: Likewise.
12994 * tui/tuiDisassem.c: Likewise.
12995 * tui/tuiGeneralWin.c: Likewise.
12996 * tui/tuiIO.c: Likewise.
12997 * tui/tuiLayout.c: Likewise.
12998 * tui/tuiRegs.c: Likewise.
12999 * tui/tuiSource.c: Likewise.
13000 * tui/tuiSourceWin.c: Likewise.
13001 * tui/tuiStack.c: Likewise.
13002 * tui/tuiWin.c: Likewise.
13003
cd4bffcf
EZ
130042002-02-07 Elena Zannoni <ezannoni@redhat.com>
13005
13006 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13007 to include space for pseudoregs as well. Update loops accordingly.
13008 (sh_fp_frame_init_saved_regs): Ditto.
13009 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13010
26806ce2
AC
130112002-02-07 Andrew Cagney <ac131313@redhat.com>
13012
13013 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13014 Add Richard Earnshaw to Arm maintainers.
13015
97fdab62
AC
130162002-02-07 Andrew Cagney <ac131313@redhat.com>
13017
a6b98203
AC
13018 * defs.h (warning_begin): Delete declaration.
13019
97fdab62
AC
13020 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13021 Delete macro.
13022
78b29b40
MS
130232002-02-07 Michael Snyder <msnyder@redhat.com>
13024
aaa38bb5 13025 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
13026 Logic bug, remove misplaced else.
13027
d8849953
KD
130282002-02-07 Klee Dienes <klee@apple.com>
13029
13030 * fork-inferior.c (fork_inferior): Add '!' to the list of
13031 characters that need to be quoted when building a string for the
13032 shell. Quote '!' specifically with a backslash, since CSH chokes
13033 when trying to evaluate "str!str".
aaa38bb5 13034
095778a0
NC
130352002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13036
13037 * rdi-share/host.h: Only provide a typedef for bool if it is not
13038 defined.
13039
1900040c
MS
130402002-02-04 Michael Snyder <msnyder@redhat.com>
13041
13042 * breakpoint.h (enum bptype): Add new overlay event bp type.
13043 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 13044
1900040c
MS
13045 * breakpoint.c (create_internal_breakpoint): New function.
13046 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13047 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13048 (create_thread_event_breakpoint): Ditto.
13049 (create_solib_event_breakpoint): Ditto.
13050 (create_overlay_event_breakpoint): New function.
13051 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13052 (update_breakpoints_after_exec): Delete and re-initialize
13053 overlay event breakpoints after an exec. Add FIXME comment
13054 about longjmp breakpoint.
13055 (print_it_typical): Ignore overlay event breakpoints.
13056 (print_one_breakpoint): Ditto.
13057 (mention): Ditto.
13058 (bpstat_what): Do not stop for overlay event breakpoints.
13059 (delete_breakpoint): Don't delete overlay event breakpoints.
13060 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13061 (breakpoint_re_set): Re-create overlay event breakpoint.
13062
13063 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13064 (overlay_manual_command): Disable overlay breakpoints.
13065 (overlay_off_command): Disable overlay breakpoints.
13066
082fc60d
RE
130672002-02-06 Richard Earnshaw <rearnsha@arm.com>
13068
13069 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13070 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13071 to here from config/tm-arm.h.
13072 (coff_sym_is_thumb): Make static.
13073 (arm_elf_make_msymbol_special): New function.
13074 (arm_coff_make_msymbol_special): New function.
13075 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13076 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13077 (coff_sym_is_thumb): Delete declaration.
13078 (arm_elf_make_msymbol_special): Declare.
13079 (arm_coff_make_msymbol_special): Declare.
13080 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13081 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13082
039c5766
RE
130832002-02-06 Richard Earnshaw <rearnsha@arm.com>
13084
13085 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13086
130872002-02-06 Richard Earnshaw <rearnsha@arm.com>
13088
13089 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13090 * gdbarch.c gdbarch.h: Regenerate.
13091 * arch-utils.c (default_print_float_info): New function.
13092 * arch-utils.h (default_print_float_info): Prototype it.
13093 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13094 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13095 (PRINT_FLOAT_INFO): Document it.
13096
13097 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13098 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13099 (PRINT_FLOAT_INFO): Define.
13100
58fa08f0
PM
131012002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13102
aaa38bb5 13103 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
13104 Add typecast to sprintf argument to suppress a warning.
13105
7393af7c
PM
131062002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13107
58fa08f0 13108 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
13109 to allow easier handling of pass state.
13110 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13111 that gives exception name and address.
13112 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 13113 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 13114 exceptions added.
aaa38bb5
AJ
13115 (child_continue): Correctly report continue_status.
13116 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 13117 TARGET_SIGNAL_0 (new default value).
aaa38bb5 13118 (child_resume): consider sig argument passed to decide if
7393af7c
PM
13119 the exception should be passed to debuggee or not.
13120
6af4589c
MS
131212002-02-05 Michael Snyder <msnyder@redhat.com>
13122
13123 * regcache.c (fetch_register): Call target_fetch_register
13124 only if we don't call FETCH_PSEUDO_REGISTER.
13125 (store_register): Call target_store_register only if we
13126 don't call STORE_PSEUDO_REGISTER.
13127
a2cf933a
EZ
131282002-02-05 Elena Zannoni <ezannoni@redhat.com>
13129
13130 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13131 ELF_MAKE_MSYMBOL_SPECIAL.
13132 * gdbarch.c, gdbarch.h: Regenerate.
13133 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 13134 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
13135 * elfread.c (elf_symtab_read): Compile use of
13136 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13137 multiarched.
13138 * coffread.c (coff_symtab_read): Ditto, for
13139 COFF_MAKE_MSYMBOL_SPECIAL.
13140
6bb7be43
JB
131412002-02-05 Jim Blandy <jimb@redhat.com>
13142
13143 * solib-svr4.c (svr4_truncate_ptr): New function.
13144 (svr4_relocate_section_addresses): Do the address arithmetic with
13145 the appropriate truncation for target addresses, even when
13146 CORE_ADDR is larger than a target address.
13147
e18651ec
DJ
131482002-02-05 Daniel Jacobowitz <drow@mvista.com>
13149
13150 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13151 to (int *).
13152
6b2725be
DJ
131532002-02-05 Daniel Jacobowitz <drow@mvista.com>
13154
13155 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13156 code.
13157
fca9e603
DJ
131582002-02-05 Daniel Jacobowitz <drow@mvista.com>
13159
13160 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13161
6c537a52
DJ
131622002-02-05 Daniel Jacobowitz <drow@mvista.com>
13163
13164 * gdbserver/linux-low.c: Remove unused include files.
13165
d844cde6
DJ
131662002-02-05 Daniel Jacobowitz <drow@mvista.com>
13167
13168 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13169 (read_inferior_memory): Use it.
13170 (write_inferior_memory): Likewise.
13171
d07c63e7
DJ
131722002-02-05 Daniel Jacobowitz <drow@mvista.com>
13173
13174 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13175 grubbing through sys_errlist.
13176
da6d8c04
DJ
131772002-02-05 Daniel Jacobowitz <drow@mvista.com>
13178
13179 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13180
5b421780
PM
131812002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13182 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13183
9f60d481
AC
131842002-02-04 Andrew Cagney <ac131313@redhat.com>
13185
13186 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13187 (do_sfunc, set_cmd_sfunc): New functions.
13188
13189 * command.h (struct cmd_list_element): Add field func.
13190 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13191 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13192 * cli/cli-decode.h: Ditto.
13193
13194 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13195 (help_all, help_cmd_list): Ditto.
13196 (find_cmd, complete_on_cmdlist): Ditto.
13197 * top.c (execute_command): Ditto.
13198
13199 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13200 function.sfunc.
13201
13202 * infcmd.c (notice_args_read): Fix function signature.
13203
13204 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13205 * cli/cli-decode.c (add_set_cmd): Ditto.
13206 * utils.c (initialize_utils): Ditto.
13207 * maint.c (_initialize_maint_cmds): Ditto.
13208 * infrun.c (_initialize_infrun): Ditto.
13209 * demangle.c (_initialize_demangler): Ditto.
13210 * remote.c (add_packet_config_cmd): Ditto.
13211 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13212 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13213 * proc-api.c (_initialize_proc_api): Ditto.
13214 * kod.c (_initialize_kod): Ditto.
13215 * valprint.c (_initialize_valprint): Ditto.
13216 * top.c (init_main): Ditto.
13217 * infcmd.c (_initialize_infcmd): Ditto.
13218 * corefile.c (_initialize_core): Ditto.
13219 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13220 * arch-utils.c (initialize_current_architecture): Ditto.
13221 (_initialize_gdbarch_utils): Ditto.
13222 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13223
13224 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13225 * wince.c (_initialize_inftarg): Ditto.
13226 * symfile.c (_initialize_symfile): Ditto.
13227 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13228 * language.c (_initialize_language): Ditto.
13229 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13230
f9ba0717
MS
132312002-02-04 Michael Snyder <msnyder@redhat.com>
13232
13233 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13234
0c74b2a7
DJ
132352002-02-04 Daniel Jacobowitz <drow@mvista.com>
13236
13237 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13238 Add rules for building the register data files.
13239
c638789f
DJ
132402002-02-04 Daniel Jacobowitz <drow@mvista.com>
13241
13242 * regformats/regdat.sh: Add braces to the definition of
13243 expedite_regs_${arch}.
13244
db253027
DJ
132452002-02-04 Daniel Jacobowitz <drow@mvista.com>
13246
13247 * regformats/regdef.h (struct reg): Add comment describing the
13248 requirements for offset and size fields.
13249
206be19c
AS
132502002-02-04 Andreas Schwab <schwab@suse.de>
13251
13252 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13253 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13254
181c1381
RE
132552002-02-04 Richard Earnshaw <rearnsha@arm.com>
13256
13257 * gdbarch.sh (copyright): Update years in generated header.
13258 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13259 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13260 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13261 * dbxread.c: Likewise.
13262 * dwarfread.c: Likewise.
13263 * elfread.c: Likewise.
13264 * somread.c: Likewise.
13265
13266 * arm-tdep.c (arm_smash_text_address): New function.
13267 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13268
fa4ba8da
PM
132692002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13270
13271 Add support for hardware watchpoints on win32 native.
aaa38bb5 13272 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13273 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13274 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13275 of debug registers.
13276 (debug_registers_changed): New variable. Reflects when debug registers
13277 are changed and need to be written to inferior.
aaa38bb5 13278 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13279 was set, used when new threads are created.
13280 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13281 i386-nat code.
13282 (thread_rec): Set dr array if id is the thread of current_event .
13283 (child_continue, child_resume): Change the debug registers for all
13284 threads if debug_registers_changed.
13285 (child_add_thread): Change the debug registers if debug_registers_used.
13286 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13287 Link nm.h to new nm-cygwin.h file.
13288 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13289 of hardware registers.
13290
a73c86fb
AC
132912002-02-03 Andrew Cagney <ac131313@redhat.com>
13292
13293 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13294 Restore behavour broken by 2002-01-20 Andrew Cagney
13295 <ac131313@redhat.com> IEEE_FLOAT removal.
13296
acf5ed49
DJ
132972002-02-03 Daniel Jacobowitz <drow@mvista.com>
13298
13299 * c-valprint.c (c_val_print): Pass a proper valaddr to
13300 cp_print_class_method.
13301 * valops.c (search_struct_method): If there is only one method
13302 and args is NULL, return that method.
13303
493d28d5
DJ
133042002-02-03 Daniel Jacobowitz <drow@mvista.com>
13305
13306 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13307 accessing tag_name directly.
13308
7495dfdb
DJ
133092002-02-03 Daniel Jacobowitz <drow@mvista.com>
13310
13311 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13312 of accessing tag_name directly.
13313
dd6bda65
DJ
133142002-02-03 Daniel Jacobowitz <drow@mvista.com>
13315
13316 PR gdb/280
13317 * gdbtypes.c (replace_type): New function.
13318 * gdbtypes.h (replace_type): Add prototype.
13319 * stabsread.c (read_type): Use replace_type.
13320
88fe217c
RE
133212002-02-03 Richard Earnshaw <rearnsha@arm.com>
13322
13323 * Makefile.in (memattr.o): Add missing dependencies rule.
13324
e5d66720
PS
133252002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13326
13327 * breakpoint.c (break_at_finish_command): Really export.
13328 (break_at_finish_at_depth_command): Ditto.
13329 (tbreak_at_finish_command): Ditto.
13330 * hppa-tdep.c: Include completer.h.
13331 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13332 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13333
fffee0be
AC
133342002-02-01 Andrew Cagney <ac131313@redhat.com>
13335
13336 * utils.c (do_write): New function.
13337 (error_stream): Rewrite combining the code from error_begin and
13338 verror.
13339 (verror): Rewrite using error_stream.
13340 (error_begin): Delete function.
13341
255e7dbf
AC
133422002-02-01 Andrew Cagney <ac131313@redhat.com>
13343
13344 * utils.c (error_begin): Make static.
13345 * defs.h (error_begin): Delete declaration.
13346
13347 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13348 (decode_line_1): Use cplusplus_error instead of error_begin,
13349 cplusplus_hint and return_to_top_level.
13350 * coffread.c (coff_symfile_read): Use error instead of error_begin
13351 and return_to_top_level.
13352 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13353
ddfe3c15
AC
133542002-02-01 Andrew Cagney <ac131313@redhat.com>
13355
13356 * language.h (type_error, range_error): Make string parameter
13357 constant.
13358 * language.c (warning_pre_print): Delete extern declaration.
13359 * dwarfread.c (warning_pre_print): Ditto.
13360 * language.c (type_error, range_error): Rewrite to use verror and
13361 vwarning instead of warning_begin.
13362
03ac34d5
MS
133632002-02-01 Michael Snyder <msnyder@redhat.com>
13364
261c4ca2
MS
13365 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13366 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13367
e00d1dc8
AC
133682002-02-01 Andrew Cagney <ac131313@redhat.com>
13369
13370 * command.h (NO_FUNCTION): Delete macro.
13371 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13372 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13373 * tracepoint.c (_initialize_tracepoint): Ditto.
13374 * cli/cli-decode.c (add_set_cmd): Ditto.
13375 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13376
76b79d6e
DJ
133772002-02-01 Daniel Jacobowitz <drow@mvista.com>
13378
13379 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13380 Update ``this'' pointer when calling virtual functions.
13381
799f9e91
MS
133822002-02-01 Michael Snyder <msnyder@redhat.com>
13383
c7bd442c 13384 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13385 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13386
3cf384d4
DJ
133872002-02-01 Daniel Jacobowitz <drow@mvista.com>
13388
13389 * regformats/reg-arm.dat: New file.
13390 * regformats/reg-i386.dat: New file.
13391 * regformats/reg-ia64.dat: New file.
13392 * regformats/reg-m68k.dat: New file.
13393 * regformats/reg-mips.dat: New file.
13394 * regformats/reg-ppc.dat: New file.
13395 * regformats/reg-sh.dat: New file.
13396 * regformats/regdef.h: New file.
13397 * regformats/regdat.sh: New file.
13398
0defa245
RE
133992002-02-01 Richard Earnshaw <reanrsha@arm.com>
13400
13401 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13402 (arm_frame_args_address, arm_frame_locals_address): New functions.
13403 (arm_frame_num_args): New function.
13404 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13405 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13406 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13407
405f26e6
MS
134082002-01-31 Michael Snyder <msnyder@redhat.com>
13409
502fd408
MS
13410 * breakpoint.c (break_at_finish_command): Export.
13411 (break_at_finish_at_depth_command): Export.
13412 (tbreak_at_finish_command): Export.
d6020d45 13413 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13414 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13415 "txbreak" commands, which are HPPA specific.
502fd408 13416
7d35e135
MS
13417 * printcmd.c (disassemble_command): Remove an ancient
13418 artifact of an old merge.
13419
aaa38bb5 13420 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13421 Define enum constant values for overlay mode.
13422 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13423 (overlay_is_mapped, overlay_auto_command,
13424 overlay_manual_command): Ditto.
d874f1e2 13425
aaa38bb5
AJ
13426 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13427 breakpoint_here_p, breakpoint_inserted_here_p,
13428 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13429 describe_other_breakpoints, check_duplicates, clear_command):
13430 Coding standard fixes.
13431
8add0441 13432 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13433 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13434 code: check bfd SEC_READONLY flag for section.
13435
e351066e
AC
134362002-01-31 Andrew Cagney <ac131313@redhat.com>
13437
7d35e135 13438 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13439
8a48e967
DJ
134402002-01-30 Daniel Jacobowitz <drow@mvista.com>
13441
13442 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13443 data symbols, since we search based on textlow and texthigh.
13444 (find_pc_sect_symtab): Likewise.
13445
f5a96129
AC
134462002-01-30 Andrew Cagney <ac131313@redhat.com>
13447
13448 * defs.h (vwarning): Declare.
f5a96129
AC
13449 * utils.c (vwarning): New function.
13450 (warning): Call vwarning.
13451 (warning_begin): Delete function.
13452
13453 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13454 the warning message.
13455 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13456 warning_begin.
13457
cefd4ef5
MS
134582002-01-30 Michael Snyder <msnyder@redhat.com>
13459
1a703748
MS
13460 * NEWS: Mention "set trust-readonly-sections" command.
13461 Mention generate-core-file command.
cefd4ef5 13462
3a11626d
MS
134632002-01-15 Michael Snyder <msnyder@redhat.com>
13464
13465 * target.c: New command, "set trust-readonly-sections on".
13466 (do_xfer_memory): Honor the suggestion to trust readonly sections
13467 by reading them from the object file instead of from the target.
13468 (initialize_targets): Register command "set trust-readonly-sections".
13469
d1c7e53b
AC
134702002-01-29 Andrew Cagney <ac131313@redhat.com>
13471
13472 * parse.c (target_map_name_to_register): Simplify, search regs and
13473 pseudo-regs using a single loop.
13474
e2c9a72c
AC
134752002-01-30 Andrew Cagney <ac131313@redhat.com>
13476
13477 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13478
69824b4e
MK
134792002-01-15 Rodney Brown <rbrown64@csc.com.au>
13480
13481 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13482 * config/i386/i386v42mp.mh: Add i387-nat.o .
13483 * i386v4-nat.c: Include i387-nat.h.
13484 (supply_fpregset): Use i387_supply_fsave.
13485 (fill_fpregset): Use i387_fill_fsave.
13486
6eb69eab
RE
134872002-01-30 Richard Earnshaw <rearnsha@arm.com>
13488
13489 * arm-tdep.c (arm_call_dummy_words): Define.
13490 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13491 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13492 (CALL_DUMMY_WORDS): Define.
13493 (arm_call_dummy_words): Declare.
13494 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13495 (arm_linux_call_dummy_words): Declare.
13496
9852326a
AS
134972002-01-30 Andreas Schwab <schwab@suse.de>
13498
13499 * m68klinux-nat.c: Fix last change to use regcache_collect
13500 instead of referencing registers[] directly.
13501
977a3030
AC
135022002-01-29 Andrew Cagney <ac131313@redhat.com>
13503
13504 * parse.c (target_map_name_to_register): Delete code wrapped in
13505 #ifdef REGISTER_NAME_ALIAS_HOOK.
13506
2076c72b
MS
135072002-01-28 Michael Snyder <msnyder@redhat.com>
13508
13509 * regcache.c (legacy_read_register_gen): Need to be able to
13510 read pseudo-register as well as real register.
13511 (legacy_write_register_gen): Ditto.
13512
8fcc723b
AC
135132002-01-28 Andrew Cagney <ac131313@redhat.com>
13514
13515 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13516 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13517 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13518 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13519 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13520 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13521 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13522 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13523 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13524 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13525 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13526 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13527 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13528 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13529 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13530 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13531 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13532 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13533 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13534 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13535
afe64c1a
AC
135362002-01-28 Andrew Cagney <ac131313@redhat.com>
13537
13538 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13539 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13540 (initialize_current_architecture): Update target_byte_order using
13541 information from BFD.
aaa38bb5 13542 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13543 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13544
75bc7ddf
AC
135452002-01-28 Andrew Cagney <ac131313@redhat.com>
13546
13547 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13548 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13549
13550 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13551 #ifdef INVALID_FLOAT.
13552 * infcmd.c (do_registers_info): Ditto.
13553 * values.c (unpack_double): Ditto. Add comment.
13554
13555 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13556 already commented out.
13557
0280a90a
AS
135582002-01-26 Andreas Schwab <schwab@suse.de>
13559
13560 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13561 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13562 registers and add support for PTRACE_GETREGS.
13563
7072a954
AC
135642002-01-24 Andrew Cagney <ac131313@redhat.com>
13565
13566 GDB 5.1.1 released from 5.1 branch.
13567 * NEWS: Add 5.1.1 news.
13568 * README: Sync with 5.1 branch.
13569
86f902e0
FF
135702002-01-23 Fred Fish <fnf@redhat.com>
13571
13572 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13573 stabstring on initial malloc. Reallocing will copy it for us,
13574 if necessary.
13575
8af51c36
EZ
135762002-01-23 Elena Zannoni <ezannoni@redhat.com>
13577
aaa38bb5 13578 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13579 (HFILES_NO_SRCDIR): Remove hpread.h.
13580 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13581 (hpread.o): Update dependencies.
13582 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13583
13584 * hp-psymtab-read.c: Remove file.
13585 * hp-symtab-read.c: Remove file.
13586 * hpread.h: Remove file.
13587
13588 * hpread.c: Merge all contents of hp-psymtab-read.c,
13589 hp-symtab-read.c and hpread.h into this file, as it was prior to
13590 January 1999.
13591
13592 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13593 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13594 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13595 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13596
dc5cfeb6
EZ
135972002-01-23 Elena Zannoni <ezannoni@redhat.com>
13598
13599 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13600 fill_gregset): Call gdbarch_tdep() just once, assign result to
13601 variable and use that, instead of calling the function several
13602 times.
13603
ea87b71b
AO
136042002-01-24 Alexandre Oliva <aoliva@redhat.com>
13605
13606 * configure.host: Accept sparcv9 as alias for sparc64.
13607 * configure.tgt: Likewise.
13608
13fc0c2f
KB
136092002-01-22 Kevin Buettner <kevinb@redhat.com>
13610
13611 * solib-aix5.c (build_so_list_from_mapfile)
13612 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13613 arguments is not reversed.
13614 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13615 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13616
7bd872fe
EZ
136172002-01-22 Elena Zannoni <ezannoni@redhat.com>
13618
13619 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13620 modified version of obsolete sh_fetch_pseudo_register.
13621 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13622 (sh4_register_read): New function.
13623 (sh_pseudo_register_write): New function. Renamed and modified
13624 version of obsolete sh_store_pseudo_register.
13625 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13626 (sh4_register_write): New function.
13627 (sh_gdbarch_init): Remove setting of gdbarch function
13628 fetch_pseudo_register and store_pseudo_register. Remove setting of
13629 register_convert_to_raw, register_convert_to_virtual,
13630 register_convertible.
13631 (sh_sh4_register_convertible): Delete. No longer needed. All is
13632 taken care by architecture specific functions
13633 register_read/register_write.
13634 (sh_sh4_register_convert_to_virtual): Make static.
13635 (sh_sh4_register_convert_to_raw): Ditto.
13636
069e84fd
AC
136372002-01-22 Andrew Cagney <ac131313@redhat.com>
13638
13639 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13640 (floatformat_is_nan, floatformat_mantissa): Ditto.
13641
13642 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13643 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13644 builtin_type_ieee_double_little,
13645 builtin_type_ieee_double_littlebyte_bigword,
13646 builtin_type_m68881_ext, builtin_type_i960_ext,
13647 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13648 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13649 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13650 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13651
211a4f69
CV
136522002-01-22 Corinna Vinschen <vinschen@redhat.com>
13653
13654 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13655 parameter. Set frameless flag if it exists and depended of
13656 whether the scanned function is frameless or not.
13657 (xstormy16_skip_prologue): If function is frameless, return
13658 result of xstormy16_scan_prologue().
13659 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13660 call.
13661
f81353e4
EZ
136622002-01-21 Elena Zannoni <ezannoni@redhat.com>
13663
13664 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13665 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13666 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13667 sh_sh4_register_byte, sh_sh4_register_raw_size,
13668 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13669 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13670 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13671 sh_store_pseudo_register, sh_do_pseudo_register): Call
13672 gdbarch_tdep() just once, assign result to variable and use that,
13673 instead of calling the function several times.
13674
63c73a17
MK
136752002-01-20 Mark Kettenis <kettenis@gnu.org>
13676
13677 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13678 macros instead of LAST_FPU_CTRL_REGNUM.
13679 (store_register): Likewise.
13680
39ad761d
JB
136812002-01-21 Jim Blandy <jimb@redhat.com>
13682
13683 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13684 is up-to-date before running the program, not just when a program
13685 exits.
13686
3d74b771
FF
136872002-01-21 Fred Fish <fnf@redhat.com>
13688
13689 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13690 when we have found all instructions we are looking for.
13691
966fbf70
RE
136922002-01-21 Richard Earnshaw <rearnsha@arm.com>
13693
13694 * arm-tdep.c (arm_register_name): New function.
13695 (arm_registers_names): Make static.
13696 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13697 (arm_register_name): Declare.
13698 (REGISTER_NAME): Use it.
13699
c3b4394c
RE
137002002-01-21 Richard Earnshaw <rearnsha@arm.com>
13701 Kevin Buettner <kevinb@redhat.com>
13702
13703 Convert arm targets to new FRAME interface.
13704 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13705 (arm_frame_find_save_regs): Delete.
13706 (arm_frame_init_saved_regs): New.
13707 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13708 Allocate extra_info as required. Convert all uses of fsr.regs
13709 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13710 to use extra_info.
13711 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13712 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13713 (check_prologue_cache, save_prologue_cache): Likewise.
13714 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13715 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13716 (FRAME_FIND_SAVED_REGS): Delete.
13717 (arm_frame_find_saved_regs): Delete prototype.
13718 (arm_frame_init_saved_regs): New prototype.
13719 (FRAME_INIT_SAVED_REGS): Define.
13720
61d99182
AC
137212002-01-20 Andrew Cagney <ac131313@redhat.com>
13722
13723 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13724
6aaea291
AC
137252002-01-20 Andrew Cagney <ac131313@redhat.com>
13726
13727 From Jeff Law <law@redhat.com>:
13728 * infttrace.c: Include <sys/pstat.h>.
13729 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13730 exec file if the ttrace equivalent fails.
13731
15f698d2
AC
137322002-01-20 Andrew Cagney <ac131313@redhat.com>
13733
13734 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13735 (closeLogFile): Ditto.
13736
f86ddd7c
MC
137372002-01-20 Michael Chastain <mec@shout.net>
13738
13739 * top.c (print_gdb_version): Bump copyright year to 2002.
13740
904507ce
AC
137412002-01-20 Andrew Cagney <ac131313@redhat.com>
13742
13743 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13744 Zannoni and Eli Zaretskii.
13745
d7f0b9ce
DJ
137462002-01-20 Daniel Jacobowitz <drow@mvista.com>
13747
13748 * buildsym.c: Update copyright years.
13749 * c-typeprint.c: Likewise.
13750 * dwarf2read.c: Likewise.
13751 * f-typeprint.c: Likewise.
13752 * gdbtypes.c: Likewise.
13753 * gdbtypes.h: Likewise.
13754 * hp-symtab-read.c: Likewise.
13755 * hpread.c: Likewise.
13756 * mdebugread.c: Likewise.
13757 * p-typeprint.c: Likewise.
13758
3fd3d7d2
AC
137592002-01-20 Andrew Cagney <ac131313@redhat.com>
13760
13761 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13762 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13763 byte-order selectable.
13764 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13765 * arch-utils.c: Ditto.
13766 (set_endian): Ditto.
13767 (set_endian_from_file): Ditto.
13768 * gdbserver/low-sim.c (create_inferior): Ditto.
13769 * gdbarch.sh: Ditto.
13770 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13771 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13772 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13773 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13774 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13775 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13776 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13777 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13778 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13779 macro definition.
13780 * config/mips/tm-wince.h: Remove #undef of macro
13781 TARGET_BYTE_ORDER_SELECTABLE.
13782 * config/sh/tm-wince.h: Ditto.
13783
b02dede2
DJ
137842002-01-20 Daniel Jacobowitz <drow@mvista.com>
13785
13786 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13787 member function fields. Add accessor macro
13788 TYPE_FN_FIELD_ARTIFICIAL.
13789 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13790 * c-typeprint.c (c_type_print_base): Skip artificial member
13791 functions.
13792
c3643761
DJ
137932002-01-20 Daniel Jacobowitz <drow@mvista.com>
13794
13795 * f-typeprint.c: Delete unused function f_type_print_args.
13796 * p-typeprint.c: Delete unused function pascal_type_print_args.
13797
8176bb6d
DJ
137982002-01-20 Daniel Jacobowitz <drow@mvista.com>
13799
13800 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13801 comment. Add ``artificial'' to ``union field_location''.
13802
13803 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13804
13805 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13806 * mdebugread.c (parse_symbol): Likewise.
13807 * stabsread.c (define_symbol): Likewise.
13808 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13809 initializing TYPE_FIELD_BITPOS to n (obsolete).
13810 (hpread_doc_function_type): Likewise.
13811 * hpread.c (hpread_function_type): Likewise.
13812
7fd60527
AC
138132002-01-20 Andrew Cagney <ac131313@redhat.com>
13814
13815 * configure.in (host_makefile_frag): Only require a host makefile
13816 fragment when a native build.
13817 * configure: Re-generate.
13818
c2f05ac9
AC
138192002-01-20 Andrew Cagney <ac131313@redhat.com>
13820
13821 * doublest.h (floatformat_from_type): Declare.
13822 * doublest.c (floatformat_from_type): New function.
13823 (convert_typed_floating): Use.
13824
13825 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13826 call to function floatformat_from_type.
13827
13828 * gdbarch.sh (IEEE_FLOAT): Delete.
13829 * gdbarch.h, gdbarch.c: Re-generate.
13830 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13831 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13832 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13833 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13834 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13835 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13836 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13837 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13838 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13839 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13840 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13841 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13842
13843 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13844 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13845 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13846 * sh-tdep.c (sh_gdbarch_init): Ditto.
13847 * mips-tdep.c (mips_gdbarch_init): Ditto.
13848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13849 * cris-tdep.c (cris_gdbarch_init): Ditto.
13850
abf22e64
AJ
138512002-01-20 Jiri Smid <smid@suse.cz>
13852
13853 * configure.host, configure.tgt: Support x86-64.
13854 * NEWS: Note new target x86-64.
13855
b7c4cbf8
AJ
13856 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13857 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13858 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13859 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13860 x86-64-linux-nat.o): Fix dependencies.
13861
82600034
AC
138622002-01-19 Andrew Cagney <ac131313@redhat.com>
13863
13864 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13865 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13866 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13867 * config/sparc/xm-sun4os4.h: Delete file.
13868 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13869
bbe5c628
AC
138702002-01-19 Andrew Cagney <ac131313@redhat.com>
13871
13872 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13873 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13874 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13875 * config/i386/i386lynx.mh (XM_FILE): Delete.
13876 * config/rs6000/xm-rs6000ly.h: Delete file.
13877 * config/sparc/xm-sparclynx.h: Delete file.
13878 * config/m68k/xm-m68klynx.h: Delete file.
13879 * config/i386/xm-i386lynx.h: Delete file.
13880 * config/xm-lynx.h: Delete file.
13881 * config/djgpp/fnchange.lst: Update.
13882
f8453e34
JT
138832002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13884
13885 * alpha-tdep.c (alpha_register_byte): New function.
13886 (alpha_register_raw_size): Ditto.
13887 (alpha_register_virtual_size): Ditto.
13888 (alpha_skip_prologue_internal): Renamed from
13889 alpha_skip_prologue.
13890 (alpha_skip_prologue): New version that calls
13891 alpha_skip_prologue_internal.
13892 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13893 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13894 second argument from alpha_skip_prologue.
13895 (REGISTER_BYTE): Use alpha_register_byte.
13896 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13897 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13898 (FRAMELESS_FUNCTION_INVOCATION): Use
13899 generic_frameless_function_invocation_not.
13900 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13901 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13902
52d9e613
AC
139032002-01-19 Andrew Cagney <ac131313@redhat.com>
13904
13905 * config/mips/xm-news-mips.h: Delete file.
13906 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13907
13908 * config/m88k/xm-m88k.h: Delete file.
13909 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13910 * config/m88k/xm-delta88v4.h: Ditto.
13911 * config/m88k/xm-delta88.h: Ditto.
13912
13913 * config/alpha/xm-fbsd.h: Delete file.
13914 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13915
13916 * config/sparc/xm-sparc.h: Delete file.
13917 * Makefile.in (xm-sun4os4.h): Delete dependency.
13918 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13919 * config/sparc/xm-sun4os4.h: Ditto.
13920 * config/sparc/xm-linux.h: Ditto.
13921
13922 * config/i386/xm-windows.h: Delete file.
13923
2d1b2124
AC
139242002-01-19 Andrew Cagney <ac131313@redhat.com>
13925
13926 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13927 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13928
ee1f65f0
JT
139292002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13930
13931 * alpha-tdep.c (alpha_call_dummy_words): New.
13932 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13933 (CALL_DUMMY_P): Define.
13934 (CALL_DUMMY_WORDS): Define.
13935 (SIZEOF_CALL_DUMMY_WORDS): Define.
13936
98081e55
PB
139372002-01-19 Per Bothner <per@bothner.com>
13938
13939 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13940 isn't NULL, which can happen with some gcj-3.x-produced code.
13941
0d056799
JT
139422002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13943
13944 * alpha-tdep.c (alpha_register_virtual_type): New function.
13945 (alpha_init_frame_pc_first): Ditto.
13946 (alpha_fix_call_dummy): Ditto.
13947 (alpha_store_struct_return): Ditto.
13948 (alpha_extract_struct_value_address): Ditto.
13949 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13950 alpha_register_virtual_type.
13951 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13952 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13953 alpha_extract_struct_value_address.
13954 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13955 (INIT_FRAME_PC): Use init_frame_pc_noop.
13956 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13957
4604bcad
MK
139582002-01-19 Mark Kettenis <kettenis@gnu.org>
13959
13960 * i386gnu-nat.c: Include "i386-tdep.h".
13961 (fetch_fpregs): Simplify code dealing with uninitialized floating
13962 point states such that it doesn't require FP7_REGNUM.
13963
140f9984
JT
139642002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13965
abf22e64
AJ
13966 * alpha-tdep.c (frame_extra_info): New.
13967 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13968 frame->extra_info.
13969 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13970 (alpha_frame_saved_pc): Use frame->extra_info.
13971 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13972 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13973 (init_extra_frame_info): Rename to...
13974 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13975 (alpha_print_extra_frame_info): New function.
140f9984
JT
13976 (alpha_frame_locals_address): Ditto.
13977 (alpha_frame_args_address): Ditto.
abf22e64 13978 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13979 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13980 alpha_frame_args_address.
abf22e64 13981 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13982 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13983 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13984 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13985 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13986 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13987
d734c450
JT
139882002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13989
13990 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13991 (alpha_cannot_fetch_register): Ditto.
13992 (alpha_cannot_store_register): Ditto.
13993 (alpha_register_convertible): Ditto.
13994 (alpha_use_struct_convention): Ditto.
13995 * config/alpha/tm-alpha.h: Update copyright years.
13996 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13997 (INNER_THAN): Use core_addr_lessthan.
13998 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13999 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14000 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14001 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14002 (FRAME_CHAIN): Remove unnecessary cast.
14003
b4ceaee6
AC
140042002-01-18 Andrew Cagney <ac131313@redhat.com>
14005
14006 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14007 obsolete.
14008
0a65a603
AC
140092002-01-18 Andrew Cagney <ac131313@redhat.com>
14010
14011 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14012 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14013 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14014 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14015 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14016 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14017 * x86-64-linux-nat.c: Ditto.
14018
636a6dfc
JT
140192002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14020
abf22e64 14021 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
14022 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14023 (REGISTER_NAME): Define.
14024
acceddb6
JT
140252002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14026
14027 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14028
ec32e4be
JT
140292002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14030
14031 * alpha-tdep.c: Update copyright years.
14032 (alpha_next_pc): New function.
14033 (alpha_software_single_step): Ditto.
14034 * config/alpha/tm-alpha.h: Add prototype for
14035 alpha_software_single_step.
14036
e771a871
JT
140372002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14038
14039 * alphabsd-nat.c: Update copyright years.
14040 (fill_gregset): Use regcache_collect.
14041 (fill_fpregset): Likewise.
14042 (fetch_inferior_registers): Only fetch integer registers
14043 if requested to do so.
14044 (store_inferior_registers): Only store integer registers
14045 if requested to do so.
14046
7708fa01
AC
140472002-01-17 Andrew Cagney <ac131313@redhat.com>
14048
14049 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14050 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14051 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14052 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14053 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14054 * config/arm/linux.mh (XDEPFILES): Delete.
14055 * config/arm/nbsd.mh (XDEPFILES): Delete.
14056 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14057 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14058 * config/i386/i386m3.mh (XDEPFILES): Delete.
14059 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14060 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14061 * config/i386/fbsd.mh (XDEPFILES): Delete.
14062 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14063 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14064 * config/i386/i386v4.mh (XDEPFILES): Delete.
14065 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14066 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14067 * config/i386/i386aix.mh (XDEPFILES): Delete.
14068 * config/i386/go32.mh (XDEPFILES): Delete.
14069 * config/i386/cygwin.mh (XDEPFILES): Delete.
14070 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14071 * config/i386/i386mach.mh (XDEPFILES): Delete.
14072 * config/i386/i386v32.mh (XDEPFILES): Delete.
14073 * config/i386/linux.mh (XDEPFILES): Delete.
14074 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14075 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14076 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14077 * config/i386/i386sco.mh (XDEPFILES): Delete.
14078 * config/i386/i386v.mh (XDEPFILES): Delete.
14079 * config/i386/nbsd.mh (XDEPFILES): Delete.
14080 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14081 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14082 * config/i386/symmetry.mh (XDEPFILES): Delete.
14083 * config/i386/obsd.mh (XDEPFILES): Delete.
14084 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14085 * config/ia64/linux.mh (XDEPFILES): Delete.
14086 * config/ia64/aix.mh (XDEPFILES): Delete.
14087 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14088 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14089 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14090 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14091 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14092 * config/m68k/linux.mh (XDEPFILES): Delete.
14093 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14094 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14095 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14096 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14097 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14098 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14099 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14100 * config/m88k/delta88.mh (XDEPFILES): Delete.
14101 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14102 * config/m88k/m88k.mh (XDEPFILES): Delete.
14103 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14104 * config/mips/linux.mh (XDEPFILES): Delete.
14105 * config/mips/irix6.mh (XDEPFILES): Delete.
14106 * config/mips/irix5.mh (XDEPFILES): Delete.
14107 * config/mips/irix4.mh (XDEPFILES): Delete.
14108 * config/mips/irix3.mh (XDEPFILES): Delete.
14109 * config/mips/decstation.mh (XDEPFILES): Delete.
14110 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14111 (NATDEPFILES): Move core-aout.o to here.
14112 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14113 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14114 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14115 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14116 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14117 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14118 * config/pa/hpux11.mh (XDEPFILES): Delete.
14119 * config/powerpc/aix.mh (XDEPFILES): Delete.
14120 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14121 * config/powerpc/linux.mh (XDEPFILES): Delete.
14122 * config/romp/rtbsd.mh: Rename XDEPFILES.
14123 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14124 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14125 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14126 * config/s390/s390.mh (XDEPFILES): Delete.
14127 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14128 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14129 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14130 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14131 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14132 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14133 * config/sparc/linux.mh (XDEPFILES): Delete.
14134 * config/vax/vaxult.mh (XDEPFILES): Delete.
14135 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14136 * Makefile.in (DEPFILES): Remove XDEPFILES.
14137
375fc983
AC
141382002-01-17 Andrew Cagney <ac131313@redhat.com>
14139
14140 * utils.c (internal_verror): Fix comments, default is yes not no.
14141 Update queries to match. Default to quit and dump core.
14142
8926118c
AC
141432002-01-17 Andrew Cagney <ac131313@redhat.com>
14144
14145 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14146 copyright.
14147 * defs.h, event-top.c, gdbcmd.h: Ditto.
14148 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14149 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14150 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14151 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14152 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14153 * mi/mi-main.c:Ditto.
14154
14155 * stack.c, symfile.c: Update copyright.
14156
45b7b345
DJ
141572002-01-17 Daniel Jacobowitz <drow@mvista.com>
14158
db728ff7
DJ
14159 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14160 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14161 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14162 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14163
db728ff7
DJ
141642002-01-17 Daniel Jacobowitz <drow@mvista.com>
14165
14166 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14167 * gdbserver/low-lynx.c (myattach): Likewise.
14168 * gdbserver/low-nbsd.c (myattach): Likewise.
14169 * gdbserver/low-sim.c (myattach): Likewise.
14170 * gdbserver/low-sparc.c (myattach): Likewise.
14171 * gdbserver/low-sun3.c (myattach): Likewise.
14172
14173 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14174
db728ff7 14175 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14176 (main): Handle "--attach".
14177
8de3c354
AC
141782002-01-16 Andrew Cagney <ac131313@redhat.com>
14179
14180 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14181 maintainer.
14182
b0129042
DJ
141832002-01-15 Daniel Jacobowitz <drow@mvista.com>
14184
14185 * c-typeprint.c (is_type_conversion_operator): Add additional
14186 check for non-conversion operators.
14187
ba8679fb 141882002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
14189
14190 * linux-proc.c: Add "info proc" command, a la procfs.c.
14191 (read_mapping): New function, abstract and re-use code.
14192 (linux_find_memory_regions): Use new func read_mapping.
14193 (linux_info_proc_cmd): New function, implement "info proc".
14194 (_initialize_linux_proc): Add new command "info proc".
14195
e4f9b4d5
MS
141962002-01-15 Michael Snyder <msnyder@redhat.com>
14197
14198 * symfile.c (generic_load): Use bfd_map_over_sections method
14199 instead of manipulating bfd structure members directly.
14200 (add_section_size_callback): New function, bfd sections callback
14201 used by generic_load.
14202 (load_sections_callback): New function, bfd sections callback
14203 used by generic_load.
14204
08cf96df
EZ
142052002-01-15 Elena Zannoni <ezannoni@redhat.com>
14206
abf22e64 14207 [Based on work by Jim Blandy]
08cf96df
EZ
14208 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14209 (builtin_type_vec128): Export.
14210 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14211 types.
14212 (builtin_type_vec128): New builtin type for 128 bit vector
14213 registers.
14214 (build_gdbtypes): Initialize builtin_type_v16qi and
14215 builtin_type_v8hi. Create the vec128 register builtin type
14216 structure.
14217 (build_builtin_type_vec128): New function.
abf22e64 14218 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14219 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14220 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14221 AltiVec register to new builtin type.
14222
d7242108
DJ
142232001-01-15 Daniel Jacobowitz <drow@mvista.com>
14224
14225 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14226 to make_cv_type.
14227
4ee3352d
AC
142282002-01-14 Andrew Cagney <ac131313@redhat.com>
14229
14230 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14231 CLEAN_UP_REGISTER_VALUE.
14232 * regcache.c (supply_register): Update only call.
14233
f015b2e7
AC
142342002-01-14 Andrew Cagney <ac131313@redhat.com>
14235
14236 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14237 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14238 a29k-*-vxworks* targets as obsolete.
14239
356ae49d
MS
142402002-01-14 Michael Snyder <msnyder@redhat.com>
14241
14242 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14243 until we can resolve portability issues.
14244 * gregset.h: Remove references to fpxregs.
14245 * gcore.c (gcore_command): Initialize note_sec to NULL.
14246
ade8f45e
AC
142472002-01-13 Andrew Cagney <ac131313@redhat.com>
14248
14249 * signals.c (target_signal_to_name): Rewrite. Only use
14250 signals[].name when in bounds and non-NULL.
abf22e64 14251
89c49e7a
AC
142522002-01-13 Andrew Cagney <ac131313@redhat.com>
14253
14254 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14255 * signals.c (target_signal_to_name): Verify that SIG is within the
14256 bounds of the signals array.
14257
4daa9f9f
AC
142582002-01-13 Andrew Cagney <ac131313@redhat.com>
14259
14260 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14261
ba4bbdcb
KS
142622002-01-13 Keith Seitz <keiths@redhat.com>
14263
14264 * stack.c (print_frame_info_base): Print the frame's pc
14265 only if when print_frame_info_listing_hook is not defined.
14266
575bbeb6
KS
142672002-01-13 Keith Seitz <keiths@redhat.com>
14268
14269 * varobj.c (varobj_set_value): Make sure that there were no
14270 errors evaluating the object before attempting to set its
14271 value.
14272 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14273 so this offset adjustment is no longer necessary.
14274 (create_child): Don't set the error flag if the child is
14275 a CPLUS_FAKE_CHILD.
14276 (value_of_child): If value_fetch_lazy fails, return NULL
14277 so that callers will be notified that an error occurred.
14278 (c_value_of_variable): Delay check of variable's validity
14279 until later. We actually want all structs and unions to have
14280 the value "{...}".
14281 Do not return "???" for variables which could not be evaluated.
14282 This error condition must be returned to the caller so that it
14283 can get the error condition from gdb.
14284 (cplus_name_of_child): Adjust index for vptr before figuring
14285 out the name of the child.
14286 (cplus_value_of_child): If a child's (real) parent is not valid,
14287 don't even bother trying to give a value for it. Just return
14288 an error. Change all instances in this function.
14289 (cplus_type_of_child): If our parent is one of the "fake"
14290 parents, we need to get at the type of the real parent, and
14291 derive the child's true type using this information.
14292
b76898ab
AC
142932002-01-13 Andrew Cagney <ac131313@redhat.com>
14294
14295 From 2002-01-09 John Marshall <johnm@falch.net>:
14296 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14297 sources.redhat.com, and tweak some related URLs which had
14298 suffered from linkrot.
14299
b6649e88
AC
143002002-01-13 Andrew Cagney <ac131313@redhat.com>
14301
14302 From Jeff law:
14303 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14304 structures passed in registers.
14305
82cc5033
EZ
143062002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14307
14308 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14309 white space which prevented compilation. Reported by DSK
14310 <dsk@student.unsw.edu.au>.
14311
ba5f2f8a
MS
143122002-01-11 Michael Snyder <msnyder@redhat.com>
14313
fbd35540
MS
14314 * symfile.c (build_section_addr_info_from_section_tab):
14315 Use bfd access method instead of manipulating bfd directly.
14316 (syms_from_objfile): Ditto.
14317 (simple_overlay_update_1): Ditto.
14318 (simple_overlay_update): Ditto.
14319 (generic_load): Ditto.
14320 (overlay_unmapped_address): FIXME comment, bfd access methods.
14321 (sections_overlap): FIXME comment, bfd access methods.
14322 (pc_in_mapped_range): FIXME comment, bfd access methods.
14323 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14324 (section_is_mapped): FIXME comment, bfd access methods.
14325 (section_is_overlay): FIXME comment, bfd access methods.
14326
ba5f2f8a
MS
14327 * symfile.c (generic_load): Whitespace and long line cleanups.
14328 Remove duplicate variable, change several local variables to
14329 more appropriate data types.
14330 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14331
17df2af6
AC
143322002-01-12 Andrew Cagney <ac131313@redhat.com>
14333
14334 From Peter Schauer:
14335 * language.c (longest_local_hex_string_custom): Use phex_nz to
14336 convert NUM to a hex string.
14337
ec920329
EZ
143382002-01-12 Elena Zannoni <ezannoni@redhat.com>
14339
14340 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14341 the function.
538a76d6 14342 Update Copyright year.
ec920329 14343
3abd2e01
AC
143442002-01-12 Andrew Cagney <ac131313@redhat.com>
14345
14346 * language.c (longest_raw_hex_string): Delete unused function.
14347
b21b22e0
PS
143482002-01-11 Petr Sorfa <petrs@caldera.com>
14349
14350 * MAINTAINERS (write-after-approval): Add myself.
14351 * dwarf2read.c (read_tag_string_type): Handling of
14352 DW_AT_byte_size.
14353 (read_tag_string_type): FORTRAN fix to prevent propagation of
14354 first string size.
14355 (set_cu_language): Handling of DW_LANG_Fortran95
14356
747fe712
RE
143572002-01-11 Richard Earnshaw <rearnsha@arm.com>
14358
14359 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14360 GETPID(inferior_ptid).
14361 (store_inferior_registers): Likewise.
14362
f1bea926
JM
143632002-01-10 Jason Merrill <jason@redhat.com>
14364
14365 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14366 Fix DW_OP_minus.
14367
ae940673
AC
143682002-01-10 Andrew Cagney <ac131313@redhat.com>
14369
14370 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14371 and bfd/elf32-sh-nbsd.c.
14372
00546b04
MS
143732002-01-10 Michael Snyder <msnyder@redhat.com>
14374
352ed7b4
MS
14375 * NEWS: Mention --pid and corefile/proc-id behavior change.
14376
c18be923
MS
14377 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14378 * gcore.c: Include cli/cli-decode.h instead of command.h.
14379
00546b04
MS
14380 * main.c (captured_main): Add new command line option "--pid".
14381 If the second command line argument (following the symbol-file)
14382 begins with a digit, try to attach to it before trying to open
14383 it as a corefile.
14384 (print_gdb_help): Document the "--pid" argument.
14385
db60ec62
EZ
143862002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14387
14388 * completer.c (command_completer): New function.
14389
14390 * completer.h <command_completer>: Add prototype.
14391
14392 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14393 completer for the "help" command.
14394
39c22d1a
JM
143952002-01-09 Jason Merrill <jason@redhat.com>
14396
14397 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14398
c564377f
MS
143992002-01-09 Michael Snyder <msnyder@redhat.com>
14400
975aec09
MS
14401 * i386-linux-nat.c (fill_fpxregset): Make global.
14402 (store_fpxregset): Ditto.
14403
db4a10fa
MS
14404 * gregset.h (gdb_fpxregset_t): Define.
14405 (supply_fpxregset): Prototype.
14406 (fill_fpxregset): Prototype.
14407
c564377f
MS
14408 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14409
c3d45d70
RE
144102002-01-09 Richard Earnshaw <rearnsha@arm.com>
14411
14412 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14413 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14414 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14415
fcc87af1
AC
144162002-01-09 Andrew Cagney <ac131313@redhat.com>
14417
14418 * MAINTAINERS: Update target maintainer rules so that any
14419 Maintainer can approve a tested patch for a maintenance-only
14420 target.
14421
dd96c05b
RE
144222002-01-09 Richard Earnshaw <rearnsha@arm.com>
14423
d4297db9 14424 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14425
d4297db9 14426 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14427 IN_SIGTRAMP.
14428
145fdc6e
MS
144292002-01-08 Michael Snyder <msnyder@redhat.com>
14430
14431 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14432 real name of the executable, rather than the /proc name.
14433
be4d1333
MS
144342002-01-03 Michael Snyder <msnyder@redhat.com>
14435
14436 Implement a "generate-core-file" command in gdb, save target state.
14437 * gcore.c: New file. Implement new command 'generate-core-file'.
14438 Save a corefile image of the current state of the inferior.
14439 * linux-proc.c: Add linux-specific code for saving corefiles.
14440 * target.h (struct target_ops): Add new target vectors for saving
14441 corefiles; to_find_memory_regions and to_make_corefile_notes.
14442 (target_find_memory_regions): New macro.
14443 (target_make_corefile_notes): New macro.
14444 * target.c (update_current_target): Inherit new target methods.
14445 (dummy_find_memory_regions): New place-holder method.
14446 (dummy_make_corefile_notes): New place-holder method.
14447 (init_dummy_target): Initialize new dummy target vectors.
14448 * exec.c (exec_set_find_memory_regions): New function.
14449 Allow the exec_ops vector for memory regions to be taken over.
14450 (exec_make_note_section): New function, target vector method.
14451 * defs.h (exec_set_find_memory_regions): Export prototype.
14452 * procfs.c (proc_find_memory_regions): New function, corefile method.
14453 (procfs_make_note_section): New function, corefile method.
14454 (init_procfs_ops): Set new target vector pointers.
14455 (find_memory_regions_callback): New function.
14456 (procfs_do_thread_registers): New function.
14457 (procfs_corefile_thread_callback): New function.
14458 * sol-thread.c (sol_find_memory_regions): New function.
14459 (sol_make_note_section): New function.
14460 (init_sol_thread_ops): Initialize new target vectors.
14461 * inftarg.c (inftarg_set_find_memory_regions): New function.
14462 Allow to_find_memory_regions vector to be taken over.
14463 (inftarg_set_make_corefile_notes): New function.
14464 Allow to_make_corefile_notes vector to be taken over.
14465 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14466 interface layer if not target_has_execution (may be a corefile).
14467 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14468 * config/sparc/sun4sol2.mh: Ditto.
14469 * config/alpha/alpha-linux.mh: Ditto.
14470 * config/arm/linux.mh: Ditto.
14471 * config/i386/x86-64linux.mh: Ditto.
14472 * config/ia64/linux.mh: Ditto.
14473 * config/m68k/linux.mh: Ditto.
14474 * config/mips/linux.mh: Ditto.
14475 * config/powerpc/linux.mh: Ditto.
14476 * config/sparc/linux.mh: Ditto.
14477
c6b92abd
MS
144782002-01-07 Michael Snyder <msnyder@redhat.com>
14479
14480 * arm-linux-nat.c: Remove references to regcache.c internal data
14481 (registers[] and register_valid[]).
14482
4b09dc8c
MS
144832002-01-07 Michael Snyder <msnyder@redhat.com>
14484
abf22e64
AJ
14485 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14486 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14487 symbol file and shlibs.
14488 * Makefile.in: Add rule for linux-proc.o.
14489 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14490 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14491 * config/arm/linux.mh: Ditto.
14492 * config/i386/linux.mh: Ditto.
14493 * config/i386/x86-64linux.mh: Ditto.
14494 * config/ia64/linux.mh: Ditto.
14495 * config/m68k/linux.mh: Ditto.
14496 * config/mips/linux.mh: Ditto.
14497 * config/powerpc/linux.mh: Ditto.
14498 * config/sparc/linux.mh: Ditto.
14499
c25b74ac
PM
145002002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14501
14502 * win32-nat.c: Add i386-tdep.h dependency.
14503
94cd915f
MS
145042002-01-07 Michael Snyder <msnyder@redhat.com>
14505
c7cccb76
MS
14506 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14507 instead of bfd_get_arch_size. Don't bail out just because
14508 there's no exec_bfd.
abf22e64 14509
34c0bd93
MS
14510 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14511 * p-valprint.c (pascal_object_print_value): Ditto.
14512 * somread.c (som_symtab_read): Ditto.
14513 * symfile.c (simple_free_overlay_region_table): Ditto.
14514 * valops.c (value_assign): Ditto.
14515
21c1c920
MS
14516 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14517 use tilde_expand and strerror for opening save-tracepoints file.
14518
5bbd998e
MS
14519 * thread-db.c (thread_db_new_objfile): Indendation fix.
14520
94cd915f
MS
14521 * infptrace.c (GDB_MAX_ALLOCA): New define.
14522 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14523 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14524 can be overridden with whatever value is appropriate to the host).
14525 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14526 alloca to allocate potentially large buffer.
14527 * rs6000-nat.c (child_xfer_memory): Ditto.
14528 * symm-nat.c (child_xfer_memory): Ditto.
14529 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14530
494e8a93
JSC
145312002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14532
14533 From Nick Clifton <nickc@redhat.com>
14534 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14535
d0e1d48e
MS
145362002-01-07 Michael Snyder <msnyder@redhat.com>
14537
abf22e64 14538 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14539 Don't use exec_bfd if it's NULL.
14540
290b2c7a
MK
145412002-01-06 Mark Kettenis <kettenis@gnu.org>
14542
abf22e64 14543 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14544
aef21287
AC
145452002-01-06 Andrew Cagney <ac131313@redhat.com>
14546
14547 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14548 * gnu-nat.c: Ditto.
14549
30efa627
AC
145502002-01-06 Andrew Cagney <ac131313@redhat.com>
14551
14552 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14553 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14554 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14555 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14556 z8k-coff have not been multi-arched. Update z8k-coff build
14557 status.
14558
9b4ff276
AC
145592002-01-06 Andrew Cagney <ac131313@redhat.com>
14560
14561 * MAINTAINERS: Mark a29k target as obsolete.
14562 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14563 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14564 comments.
14565 * NEWS: Note that a29k targets are obsolete.
14566 * a29k-tdep.c: Mark as obsolete.
14567 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14568 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14569 a29k-*-vxworks* targets as obsolete.
14570 * remote-adapt.c: Obsolete.
14571 * remote-eb.c: Obsolete.
14572 * remote-mm.c: Obsolete.
14573 * remote-udi.c: Obsolete.
14574 * config/a29k/a29k-udi.mt: Obsolete.
14575 * config/a29k/a29k.mt: Obsolete.
14576 * config/a29k/tm-a29k.h: Obsolete.
14577 * config/a29k/tm-vx29k.h: Obsolete.
14578 * config/a29k/vx29k.mt: Obsolete.
14579
a9011d31
AC
145802002-01-05 Andrew Cagney <ac131313@redhat.com>
14581
14582 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14583 with BFD_ENDIAN_BIG.
14584
9299404e
AC
145852002-01-05 Andrew Cagney <ac131313@redhat.com>
14586
14587 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14588 * configure, config.in: Re-generate.
14589 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14590 * defs.h: Do not include <endian.h>.
14591
7e89e357
JT
145922002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14593
14594 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14595 * config.in: Regenerate.
14596 * configure.in: Update copyright years.
14597 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14598 * configure: Regenerate.
14599 * i386bsd-nat.c: Update copyright years.
14600 (fill_gregset): Use regcache_collect.
14601 (fetch_inferior_registers): Only fetch integer registers
14602 if requested to do so. Add support for XMM registers
14603 using PT_GETXMMREGS.
14604 (store_inferior_registers): Only store integer registers
14605 if requested to do so. Add support for XMM registers
14606 using PT_SETXMMREGS.
14607 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14608 (store_inferior_registers): Remove.
14609 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14610 (fetch_elfcore_registers): New function.
14611 (i386nbsd_elfcore_fns): New.
14612 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14613 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14614 i386bsd-nat.o.
14615 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14616 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14617 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14618 * config/i386/tm-nbsd.h: Update copyright years.
14619 (HAVE_SSE_REGS): Define.
14620 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14621 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14622 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14623 (SIGCONTEXT_PC_OFFSET): Remove.
14624 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14625
a752853e
AC
146262002-01-05 Andrew Cagney <ac131313@redhat.com>
14627
14628 * configure.tgt: Remove powerpc-*-macos* target.
14629 * config/m68k/xm-mpw.h: Delete file.
14630 * config/xm-mpw.h: Delete file.
14631 * ser-mac.c: Delete file.
14632 * mpw-make.sed: Delete file.
14633 * mpw-config.in: Delete file.
14634 * mac-xdep.c: Delete file.
14635 * mac-gdb.r: Delete file.
14636 * mac-defs.h: Delete file.
14637 * mac-nat.c: Delete file.
14638 * config/powerpc/macos.mh: Delete file.
14639 * config/powerpc/macos.mt: Delete file.
14640 * config/powerpc/nm-macos.h: Delete file.
14641 * config/powerpc/tm-macos.h: Delete file.
14642 * source.c (openp, open_source_file): Remove obsolete code.
14643 * top.c (gdb_readline): Ditto.
14644 * utils.c (query): Ditto.
14645 * event-top.c (display_gdb_prompt): Ditto.
14646 * Makefile.in (ser-mac.o): Delete obsolete target.
14647 * NEWS: Update.
14648
d7449b42
AC
146492002-01-04 Andrew Cagney <ac131313@redhat.com>
14650
14651 * defs.h (BIG_ENDIAN): Delete macro definition.
14652 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14653 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14654 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14655 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14656 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14657 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14658 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14659 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14660 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14661 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14662 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14663 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14664 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14665 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14666 * gdbarch.c: Re-generate.
14667
356374e8
DJ
146682002-01-04 Daniel Jacobowitz <drow@mvista.com>
14669
14670 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14671 for core files.
14672
a2b8f8f8
JT
146732002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14674
14675 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14676
12466af9
AC
146772002-01-04 Andrew Cagney <ac131313@redhat.com>
14678
14679 * value.h (value_ptr): Delete typedef.
14680
3549ab40
JT
146812002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14682
14683 * i386nbsd-nat.c: Update copyright years.
14684 Include i386-tdep.h.
14685
fedbd091
EZ
146862002-01-04 Elena Zannoni <ezannoni@redhat.com>
14687
14688 * stabsread.c: Update copyright years.
14689
14690 From Debashis Mahata <debashis.mahata@wipro.com>:
14691 (read_struct_fields): Deal with Sun C compiler erroneous stab
14692 output for structs and unions.
fec8b34f 14693 Fix PR gdb/269.
fedbd091 14694
eb43544b
DJ
146952002-01-04 Daniel Jacobowitz <drow@mvista.com>
14696
14697 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14698 prototype.
14699
1514d34e
DJ
147002002-01-04 Daniel Jacobowitz <drow@mvista.com>
14701
14702 * cp-abi.c: Fix whitespace.
14703 (baseclass_offset): New wrapper function.
14704 * cp-abi.h (baseclass_offset): Add prototype.
14705 (struct cp_abi_ops): Add baseclass_offset pointer.
14706
14707 * valops.c (vb_match): Move to...
14708 * gnu-v2-abi.c (vb_match): here.
14709 * valops.c (baseclass_offset): Move to...
14710 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14711
14712 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14713
14714 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14715 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14716 * hpacc-abi.c (init_hpacc_ops): Likewise.
14717
7f8c9282
DJ
147182002-01-04 Daniel Jacobowitz <drow@mvista.com>
14719
14720 * valops.c (find_overload_match): Accept obj as a
14721 reference parameter. Update it before returning.
14722 * value.h (find_overload_match): Update prototype.
14723 * eval.c (evaluate_subexp_standard): Pass object to
14724 find_overload_match by reference.
14725
f23631e4
AC
147262002-01-03 Andrew Cagney <ac131313@redhat.com>
14727
14728 * valarith.c: Replace value_ptr with struct value pointer. Remove
14729 register attribute from value declarations.
14730 * valops.c: Ditto.
14731 * value.h: Ditto.
14732 * scm-lang.c (scm_lookup_name): Ditto.
14733
79e10fab 147342002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14735
79e10fab
AC
14736 Abstract the functionality of iterating over mapped memory
14737 regions into a general purpose iterator function.
abf22e64 14738 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14739 iterator for memory sections.
14740 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14741 (solib_mappings_callback): New function, callback for above.
14742 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14743 (info_mappings_callback): New function, callback for above.
14744
14745 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14746
c5ad026a
MK
147472002-01-01 Mark Kettenis <kettenis@gnu.org>
14748
d2a7c97a
MK
14749 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14750 * i386-tdep.c: Include "elf-bfd.h".
14751 (process_note_abi_tag_sections): New function.
14752 (i386_gdbarch_init): Add code to recognize various OS/ABI
14753 combinations.
14754
c5ad026a
MK
14755 * maint.c (_initialize_maint_cmds): Add missing \ in
14756 string-literal.
14757
a1a5b71e 14758For older changes see ChangeLog-2001
c906108c
SS
14759\f
14760Local Variables:
14761mode: change-log
14762left-margin: 8
14763fill-column: 74
14764version-control: never
14765End:
This page took 1.046548 seconds and 4 git commands to generate.